Struct AVHDRPlusColorTransformParams

#[repr(C)]
pub struct AVHDRPlusColorTransformParams {
Show 23 fields pub window_upper_left_corner_x: AVRational, pub window_upper_left_corner_y: AVRational, pub window_lower_right_corner_x: AVRational, pub window_lower_right_corner_y: AVRational, pub center_of_ellipse_x: u16, pub center_of_ellipse_y: u16, pub rotation_angle: u8, pub semimajor_axis_internal_ellipse: u16, pub semimajor_axis_external_ellipse: u16, pub semiminor_axis_external_ellipse: u16, pub overlap_process_option: u32, pub maxscl: [AVRational; 3], pub average_maxrgb: AVRational, pub num_distribution_maxrgb_percentiles: u8, pub distribution_maxrgb: [AVHDRPlusPercentile; 15], pub fraction_bright_pixels: AVRational, pub tone_mapping_flag: u8, pub knee_point_x: AVRational, pub knee_point_y: AVRational, pub num_bezier_curve_anchors: u8, pub bezier_curve_anchors: [AVRational; 15], pub color_saturation_mapping_flag: u8, pub color_saturation_weight: AVRational,
}
Expand description

Color transform parameters at a processing window in a dynamic metadata for SMPTE 2094-40.

Fields§

§window_upper_left_corner_x: AVRational

The relative x coordinate of the top left pixel of the processing window. The value shall be in the range of 0 and 1, inclusive and in multiples of 1/(width of Picture - 1). The value 1 corresponds to the absolute coordinate of width of Picture - 1. The value for first processing window shall be 0.

§window_upper_left_corner_y: AVRational

The relative y coordinate of the top left pixel of the processing window. The value shall be in the range of 0 and 1, inclusive and in multiples of 1/(height of Picture - 1). The value 1 corresponds to the absolute coordinate of height of Picture - 1. The value for first processing window shall be 0.

§window_lower_right_corner_x: AVRational

The relative x coordinate of the bottom right pixel of the processing window. The value shall be in the range of 0 and 1, inclusive and in multiples of 1/(width of Picture - 1). The value 1 corresponds to the absolute coordinate of width of Picture - 1. The value for first processing window shall be 1.

§window_lower_right_corner_y: AVRational

The relative y coordinate of the bottom right pixel of the processing window. The value shall be in the range of 0 and 1, inclusive and in multiples of 1/(height of Picture - 1). The value 1 corresponds to the absolute coordinate of height of Picture - 1. The value for first processing window shall be 1.

§center_of_ellipse_x: u16

The x coordinate of the center position of the concentric internal and external ellipses of the elliptical pixel selector in the processing window. The value shall be in the range of 0 to (width of Picture - 1), inclusive and in multiples of 1 pixel.

§center_of_ellipse_y: u16

The y coordinate of the center position of the concentric internal and external ellipses of the elliptical pixel selector in the processing window. The value shall be in the range of 0 to (height of Picture - 1), inclusive and in multiples of 1 pixel.

§rotation_angle: u8

The clockwise rotation angle in degree of arc with respect to the positive direction of the x-axis of the concentric internal and external ellipses of the elliptical pixel selector in the processing window. The value shall be in the range of 0 to 180, inclusive and in multiples of 1.

§semimajor_axis_internal_ellipse: u16

The semi-major axis value of the internal ellipse of the elliptical pixel selector in amount of pixels in the processing window. The value shall be in the range of 1 to 65535, inclusive and in multiples of 1 pixel.

§semimajor_axis_external_ellipse: u16

The semi-major axis value of the external ellipse of the elliptical pixel selector in amount of pixels in the processing window. The value shall not be less than semimajor_axis_internal_ellipse of the current processing window. The value shall be in the range of 1 to 65535, inclusive and in multiples of 1 pixel.

§semiminor_axis_external_ellipse: u16

The semi-minor axis value of the external ellipse of the elliptical pixel selector in amount of pixels in the processing window. The value shall be in the range of 1 to 65535, inclusive and in multiples of 1 pixel.

§overlap_process_option: u32

Overlap process option indicates one of the two methods of combining rendered pixels in the processing window in an image with at least one elliptical pixel selector. For overlapping elliptical pixel selectors in an image, overlap_process_option shall have the same value.

§maxscl: [AVRational; 3]

The maximum of the color components of linearized RGB values in the processing window in the scene. The values should be in the range of 0 to 1, inclusive and in multiples of 0.00001. maxscl[ 0 ], maxscl[ 1 ], and maxscl[ 2 ] are corresponding to R, G, B color components respectively.

§average_maxrgb: AVRational

The average of linearized maxRGB values in the processing window in the scene. The value should be in the range of 0 to 1, inclusive and in multiples of 0.00001.

§num_distribution_maxrgb_percentiles: u8

The number of linearized maxRGB values at given percentiles in the processing window in the scene. The maximum value shall be 15.

§distribution_maxrgb: [AVHDRPlusPercentile; 15]

The linearized maxRGB values at given percentiles in the processing window in the scene.

§fraction_bright_pixels: AVRational

The fraction of selected pixels in the image that contains the brightest pixel in the scene. The value shall be in the range of 0 to 1, inclusive and in multiples of 0.001.

§tone_mapping_flag: u8

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

§knee_point_x: AVRational

The x coordinate of the separation point between the linear part and the curved part of the tone mapping function. The value shall be in the range of 0 to 1, excluding 0 and in multiples of 1/4095.

§knee_point_y: AVRational

The y coordinate of the separation point between the linear part and the curved part of the tone mapping function. The value shall be in the range of 0 to 1, excluding 0 and in multiples of 1/4095.

§num_bezier_curve_anchors: u8

The number of the intermediate anchor parameters of the tone mapping function in the processing window. The maximum value shall be 15.

§bezier_curve_anchors: [AVRational; 15]

The intermediate anchor parameters of the tone mapping function in the processing window in the scene. The values should be in the range of 0 to 1, inclusive and in multiples of 1/1023.

§color_saturation_mapping_flag: u8

This flag shall be equal to 0 in bitstreams conforming to this version of this Specification. Other values are reserved for future use.

§color_saturation_weight: AVRational

The color saturation gain in the processing window in the scene. The value shall be in the range of 0 to 63/8, inclusive and in multiples of 1/8. The default value shall be 1.

Trait Implementations§

§

impl Clone for AVHDRPlusColorTransformParams

§

fn clone(&self) -> AVHDRPlusColorTransformParams

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 AVHDRPlusColorTransformParams

§

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

Formats the value using the given formatter. Read more
§

impl Copy for AVHDRPlusColorTransformParams

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