Struct AVDOVIColorMetadata

#[repr(C)]
pub struct AVDOVIColorMetadata {
Show 16 fields pub dm_metadata_id: u8, pub scene_refresh_flag: u8, pub ycc_to_rgb_matrix: [AVRational; 9], pub ycc_to_rgb_offset: [AVRational; 3], pub rgb_to_lms_matrix: [AVRational; 9], 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,
}
Expand description

Dolby Vision RPU colorspace metadata parameters.

@note sizeof(AVDOVIColorMetadata) is not part of the public ABI.

Fields§

§dm_metadata_id: u8§scene_refresh_flag: u8§ycc_to_rgb_matrix: [AVRational; 9]

Coefficients of the custom Dolby Vision IPT-PQ matrices. These are to be used instead of the matrices indicated by the frame’s colorspace tags. The output of rgb_to_lms_matrix is to be fed into a BT.2020 LMS->RGB matrix based on a Hunt-Pointer-Estevez transform, but without any crosstalk. (See the definition of the ICtCp colorspace for more information.)

§ycc_to_rgb_offset: [AVRational; 3]§rgb_to_lms_matrix: [AVRational; 9]§signal_eotf: u16

Extra signal metadata (see Dolby patents for more info).

§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

Trait Implementations§

§

impl Clone for AVDOVIColorMetadata

§

fn clone(&self) -> AVDOVIColorMetadata

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for AVDOVIColorMetadata

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Copy for AVDOVIColorMetadata

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more