Struct AVHDRVividColorTransformParams

#[repr(C)]
pub struct AVHDRVividColorTransformParams { pub minimum_maxrgb: AVRational, pub average_maxrgb: AVRational, pub variance_maxrgb: AVRational, pub maximum_maxrgb: AVRational, pub tone_mapping_mode_flag: i32, pub tone_mapping_param_num: i32, pub tm_params: [AVHDRVividColorToneMappingParams; 2], pub color_saturation_mapping_flag: i32, pub color_saturation_num: i32, pub color_saturation_gain: [AVRational; 8], }
Expand description

Color transform parameters at a processing window in a dynamic metadata for CUVA 005.1:2021.

Fields§

§minimum_maxrgb: AVRational

Indicates the minimum brightness of the displayed content. The values should be in the range of 0.0 to 1.0, inclusive and in multiples of 1/4095.

§average_maxrgb: AVRational

Indicates the average brightness of the displayed content. The values should be in the range of 0.0 to 1.0, inclusive and in multiples of 1/4095.

§variance_maxrgb: AVRational

Indicates the variance brightness of the displayed content. The values should be in the range of 0.0 to 1.0, inclusive and in multiples of 1/4095.

§maximum_maxrgb: AVRational

Indicates the maximum brightness of the displayed content. The values should be in the range of 0.0 to 1.0, inclusive and in multiples of 1/4095.

§tone_mapping_mode_flag: i32

This flag indicates that the metadata for the tone mapping function in the processing window is present (for value of 1).

§tone_mapping_param_num: i32

The number of tone mapping param. The value shall be in the range of 1 to 2, inclusive.

§tm_params: [AVHDRVividColorToneMappingParams; 2]

The color tone mapping parameters.

§color_saturation_mapping_flag: i32

This flag indicates that the metadata for the color saturation mapping in the processing window is present (for value of 1).

§color_saturation_num: i32

The number of color saturation param. The value shall be in the range of 0 to 7, inclusive.

§color_saturation_gain: [AVRational; 8]

Indicates the color correction strength parameter. The values should be in the range of 0.0 to 2.0, inclusive and in multiples of 1/128.

Trait Implementations§

§

impl Clone for AVHDRVividColorTransformParams

§

fn clone(&self) -> AVHDRVividColorTransformParams

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 AVHDRVividColorTransformParams

§

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

Formats the value using the given formatter. Read more
§

impl Copy for AVHDRVividColorTransformParams

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