DolbyVisionColor

data class DolbyVisionColor(val dmMetadataId: Int, val sceneRefresh: Int, val yccToRgbMatrix: List<Rational>, val yccToRgbOffset: List<Rational>, val rgbToLmsMatrix: List<Rational>, val signalEotf: Int, val signalEotfParam0: Int, val signalEotfParam1: Int, val signalEotfParam2: Long, val signalBitDepth: Int, val signalColorSpace: Int, val signalChromaFormat: Int, val signalFullRange: Int, val sourceMinPq: Int, val sourceMaxPq: Int, val sourceDiagonal: Int)

The colour of the reshaped signal, FFmpeg's AVDOVIColorMetadata, which FFmpeg fills with its defaults when the RPU carries none of its own.

A composition takes yccToRgbOffset off the reshaped components and turns them into L'M'S' with yccToRgbMatrix, makes them linear with the PQ curve, and applies rgbToLmsMatrix. Each matrix is nine entries, row by row.

Constructors

Link copied to clipboard
constructor(dmMetadataId: Int, sceneRefresh: Int, yccToRgbMatrix: List<Rational>, yccToRgbOffset: List<Rational>, rgbToLmsMatrix: List<Rational>, signalEotf: Int, signalEotfParam0: Int, signalEotfParam1: Int, signalEotfParam2: Long, signalBitDepth: Int, signalColorSpace: Int, signalChromaFormat: Int, signalFullRange: Int, sourceMinPq: Int, sourceMaxPq: Int, sourceDiagonal: Int)

Properties

Link copied to clipboard

dm_metadata_id.

Link copied to clipboard

rgb_to_lms_matrix, applied after PQ linearisation.

Link copied to clipboard

scene_refresh_flag.

Link copied to clipboard

signal_bit_depth.

Link copied to clipboard

signal_chroma_format.

Link copied to clipboard

signal_color_space.

Link copied to clipboard

signal_eotf.

Link copied to clipboard

signal_eotf_param0.

Link copied to clipboard

signal_eotf_param1.

Link copied to clipboard

signal_eotf_param2.

Link copied to clipboard

signal_full_range_flag, from 0 to 3.

Link copied to clipboard

source_diagonal.

Link copied to clipboard

The brightest level the content was graded for, as a 12-bit PQ code.

Link copied to clipboard

The darkest level the content was graded for, as a 12-bit PQ code.

Link copied to clipboard

ycc_to_rgb_matrix, applied before PQ linearisation.

Link copied to clipboard

ycc_to_rgb_offset, taken off each component before yccToRgbMatrix.