54 .rpu_buf =
s->rpu_buf,
55 .rpu_buf_sz =
s->rpu_buf_sz,
96 .scene_refresh_flag = 0,
97 .ycc_to_rgb_matrix = {
108 .ycc_to_rgb_offset = {
113 .rgb_to_lms_matrix = {
124 .signal_eotf = 39322,
125 .signal_eotf_param0 = 15867,
126 .signal_eotf_param1 = 228,
127 .signal_eotf_param2 = 1383604,
128 .signal_bit_depth = 14,
129 .signal_color_space = 0,
130 .signal_chroma_format = 0,
131 .signal_full_range_flag = 1,
133 .source_max_pq = 3696,
134 .source_diagonal = 42,
#define i(width, name, range_min, range_max)
const AVDOVIColorMetadata ff_dovi_color_default
void ff_dovi_ctx_replace(DOVIContext *s, const DOVIContext *s0)
int ff_dovi_guess_profile_hevc(const AVDOVIRpuDataHeader *hdr)
Internal helper function to guess the correct DV profile for HEVC.
av_cold void ff_dovi_ctx_flush(DOVIContext *s)
Partially reset the internal state.
void ff_dovi_ctx_unref(DOVIContext *s)
Completely reset a DOVIContext, preserving only logctx.
Macro definitions for various function/variable attributes.
Memory handling functions.
void av_refstruct_unref(void *objp)
Decrement the reference count of the underlying object and automatically free the object if there are...
void av_refstruct_replace(void *dstp, const void *src)
Ensure *dstp refers to the same object as src.
#define FF_ARRAY_ELEMS(a)
AVDOVIDecoderConfigurationRecord cfg
Currently active dolby vision configuration, or {0} for none.
AVDOVIColorMetadata * dm
Private fields internal to dovi_rpu.c.
const AVDOVIDataMapping * mapping
Currently active data mappings, or NULL.
const AVDOVIColorMetadata * color
AVDOVIRpuDataHeader header
Currently active RPU data header, updates on every ff_dovi_rpu_parse() or ff_dovi_rpu_generate().
AVDOVIDataMapping * vdr[DOVI_MAX_DM_ID+1]
RefStruct references.
DOVIExt * ext_blocks
Currently active extension blocks, updates on every ff_dovi_rpu_parse() or ff_dovi_rpu_generate().