History

avcodec/dovi_rpu: add ext_blocks array to DOVIContext

Niklas Haas committed 2 years ago

Commit 3a1916c1 parent b90c18b2 files · +9 −0Browse files

Showing the changes to libavcodec (2 of 2 files). Show all

Unified · Split

2 files
  1. libavcodec/dovi_rpu.c +3 −0
  2. libavcodec/dovi_rpu.h +6 −0
libavcodec/dovi_rpu.c+3−0
@@ -48,6 +48,7 @@ void ff_dovi_ctx_unref(DOVIContext *s) · 47 unmodified lines
4848 {
4949 for (int i = 0; i < FF_ARRAY_ELEMS(s->vdr); i++)
5050 ff_refstruct_unref(&s->vdr[i]);
51+ ff_refstruct_unref(&s->ext_blocks);
5152 av_free(s->rpu_buf);
5253
5354 *s = (DOVIContext) {
@@ -59,6 +60,7 @@ void ff_dovi_ctx_flush(DOVIContext *s) · 5 unmodified lines
5960 {
6061 for (int i = 0; i < FF_ARRAY_ELEMS(s->vdr); i++)
6162 ff_refstruct_unref(&s->vdr[i]);
63+ ff_refstruct_unref(&s->ext_blocks);
6264
6365 *s = (DOVIContext) {
6466 .logctx = s->logctx,
@@ -77,6 +79,7 @@ void ff_dovi_ctx_replace(DOVIContext *s, const DOVIContext *s0) · 12 unmodified lines
7779 s->dv_profile = s0->dv_profile;
7880 for (int i = 0; i <= DOVI_MAX_DM_ID; i++)
7981 ff_refstruct_replace(&s->vdr[i], s0->vdr[i]);
82+ ff_refstruct_replace(&s->ext_blocks, s0->ext_blocks);
8083 }
8184
8285 void ff_dovi_update_cfg(DOVIContext *s, const AVDOVIDecoderConfigurationRecord *cfg)
libavcodec/dovi_rpu.h+6−0
@@ -44,6 +44,12 @@ typedef struct DOVIContext { · 43 unmodified lines
4444 const AVDOVIDataMapping *mapping;
4545 const AVDOVIColorMetadata *color;
4646
47+ /**
48+ * Currently active extension blocks, updates on every ff_dovi_rpu_parse()
49+ */
50+ AVDOVIDmData *ext_blocks;
51+ int num_ext_blocks;
52+
4753 /**
4854 * Private fields internal to dovi_rpu.c
4955 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t