Struct dolby_vision::rpu::vdr_dm_data::VdrDmData
source · pub struct VdrDmData {Show 38 fields
pub compressed: bool,
pub affected_dm_metadata_id: u64,
pub current_dm_metadata_id: u64,
pub scene_refresh_flag: u64,
pub ycc_to_rgb_coef0: i16,
pub ycc_to_rgb_coef1: i16,
pub ycc_to_rgb_coef2: i16,
pub ycc_to_rgb_coef3: i16,
pub ycc_to_rgb_coef4: i16,
pub ycc_to_rgb_coef5: i16,
pub ycc_to_rgb_coef6: i16,
pub ycc_to_rgb_coef7: i16,
pub ycc_to_rgb_coef8: i16,
pub ycc_to_rgb_offset0: u32,
pub ycc_to_rgb_offset1: u32,
pub ycc_to_rgb_offset2: u32,
pub rgb_to_lms_coef0: i16,
pub rgb_to_lms_coef1: i16,
pub rgb_to_lms_coef2: i16,
pub rgb_to_lms_coef3: i16,
pub rgb_to_lms_coef4: i16,
pub rgb_to_lms_coef5: i16,
pub rgb_to_lms_coef6: i16,
pub rgb_to_lms_coef7: i16,
pub rgb_to_lms_coef8: i16,
pub signal_eotf: u16,
pub signal_eotf_param0: u16,
pub signal_eotf_param1: u16,
pub signal_eotf_param2: u32,
pub signal_bit_depth: u8,
pub signal_color_space: u8,
pub signal_chroma_format: u8,
pub signal_full_range_flag: u8,
pub source_min_pq: u16,
pub source_max_pq: u16,
pub source_diagonal: u16,
pub cmv29_metadata: Option<DmData>,
pub cmv40_metadata: Option<DmData>,
}
Fields§
§compressed: bool
§affected_dm_metadata_id: u64
§current_dm_metadata_id: u64
§scene_refresh_flag: u64
§ycc_to_rgb_coef0: i16
§ycc_to_rgb_coef1: i16
§ycc_to_rgb_coef2: i16
§ycc_to_rgb_coef3: i16
§ycc_to_rgb_coef4: i16
§ycc_to_rgb_coef5: i16
§ycc_to_rgb_coef6: i16
§ycc_to_rgb_coef7: i16
§ycc_to_rgb_coef8: i16
§ycc_to_rgb_offset0: u32
§ycc_to_rgb_offset1: u32
§ycc_to_rgb_offset2: u32
§rgb_to_lms_coef0: i16
§rgb_to_lms_coef1: i16
§rgb_to_lms_coef2: i16
§rgb_to_lms_coef3: i16
§rgb_to_lms_coef4: i16
§rgb_to_lms_coef5: i16
§rgb_to_lms_coef6: i16
§rgb_to_lms_coef7: i16
§rgb_to_lms_coef8: i16
§signal_eotf: u16
§signal_eotf_param0: u16
§signal_eotf_param1: u16
§signal_eotf_param2: u32
§signal_bit_depth: u8
§signal_color_space: u8
§signal_chroma_format: u8
§signal_full_range_flag: u8
§source_min_pq: u16
§source_max_pq: u16
§source_diagonal: u16
§cmv29_metadata: Option<DmData>
§cmv40_metadata: Option<DmData>
Implementations§
source§impl VdrDmData
impl VdrDmData
pub fn validate(&self) -> Result<()>
pub fn write(&self, writer: &mut BitstreamIoWriter) -> Result<()>
pub fn with_cmv29_dm_data(self) -> Self
pub fn extension_metadata_for_level(&self, level: u8) -> Option<&DmData>
pub fn extension_metadata_for_level_mut( &mut self, level: u8 ) -> Option<&mut DmData>
pub fn metadata_blocks(&self, level: u8) -> Option<&Vec<ExtMetadataBlock>>
pub fn metadata_blocks_mut( &mut self, level: u8 ) -> Option<&mut Vec<ExtMetadataBlock>>
pub fn level_blocks_iter( &self, level: u8 ) -> impl Iterator<Item = &ExtMetadataBlock>
pub fn level_blocks_iter_mut( &mut self, level: u8 ) -> impl Iterator<Item = &mut ExtMetadataBlock>
pub fn get_block(&self, level: u8) -> Option<&ExtMetadataBlock>
pub fn get_block_mut(&mut self, level: u8) -> Option<&mut ExtMetadataBlock>
pub fn add_metadata_block(&mut self, block: ExtMetadataBlock) -> Result<()>
pub fn remove_metadata_level(&mut self, level: u8)
pub fn replace_metadata_level(&mut self, block: ExtMetadataBlock) -> Result<()>
pub fn replace_metadata_block(&mut self, block: ExtMetadataBlock) -> Result<()>
sourcepub fn replace_metadata_blocks<'a, I>(&mut self, blocks: I) -> Result<()>where
I: Iterator<Item = &'a ExtMetadataBlock>,
pub fn replace_metadata_blocks<'a, I>(&mut self, blocks: I) -> Result<()>where
I: Iterator<Item = &'a ExtMetadataBlock>,
Clones every block to replace
pub fn set_p81_coeffs(&mut self)
pub fn change_source_levels(&mut self, min_pq: Option<u16>, max_pq: Option<u16>)
pub fn set_scene_cut(&mut self, is_scene_cut: bool)
pub fn default_pq() -> VdrDmData
sourcepub fn from_generate_config(config: &GenerateConfig) -> Result<VdrDmData>
pub fn from_generate_config(config: &GenerateConfig) -> Result<VdrDmData>
Sets static metadata (L5/L6/L11) and source levels
pub fn set_static_metadata(&mut self, config: &GenerateConfig) -> Result<()>
Trait Implementations§
source§impl<'de> Deserialize<'de> for VdrDmData
impl<'de> Deserialize<'de> for VdrDmData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VdrDmData
impl RefUnwindSafe for VdrDmData
impl Send for VdrDmData
impl Sync for VdrDmData
impl Unpin for VdrDmData
impl UnwindSafe for VdrDmData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> FmtForward for T
impl<T> FmtForward for T
source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self
to use its Binary
implementation when Debug
-formatted.source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self
to use its Display
implementation when
Debug
-formatted.source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self
to use its LowerExp
implementation when
Debug
-formatted.source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self
to use its LowerHex
implementation when
Debug
-formatted.source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self
to use its Octal
implementation when Debug
-formatted.source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self
to use its Pointer
implementation when
Debug
-formatted.source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self
to use its UpperExp
implementation when
Debug
-formatted.source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self
to use its UpperHex
implementation when
Debug
-formatted.source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self
and passes that borrow into the pipe function. Read moresource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function. Read moresource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self
, then passes self.as_ref()
into the pipe function.source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self
, then passes self.as_mut()
into the pipe
function.source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self
, then passes self.deref()
into the pipe function.source§impl<T> Tap for T
impl<T> Tap for T
source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B>
of a value. Read moresource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B>
of a value. Read moresource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R>
view of a value. Read moresource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R>
view of a value. Read moresource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target
of a value. Read moresource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target
of a value. Read moresource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap()
only in debug builds, and is erased in release builds.source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds.source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref()
only in debug builds, and is erased in release
builds.source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut()
only in debug builds, and is erased in release
builds.source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref()
only in debug builds, and is erased in release
builds.