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
impl Clone for AVHDRPlusColorTransformParams
§fn clone(&self) -> AVHDRPlusColorTransformParams
fn clone(&self) -> AVHDRPlusColorTransformParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more