VuiParams

Struct VuiParams 

Source
pub struct VuiParams {
Show 34 fields pub aspect_ratio_info_present_flag: bool, pub aspect_ratio_idc: u8, pub sar_width: u16, pub sar_height: u16, pub overscan_info_present_flag: bool, pub overscan_appropriate_flag: bool, pub video_signal_type_present_flag: bool, pub video_format: u8, pub video_full_range_flag: bool, pub colour_description_present_flag: bool, pub colour_primaries: u8, pub transfer_characteristics: u8, pub matrix_coefficients: u8, pub chroma_loc_info_present_flag: bool, pub chroma_sample_loc_type_top_field: u8, pub chroma_sample_loc_type_bottom_field: u8, pub timing_info_present_flag: bool, pub num_units_in_tick: u32, pub time_scale: u32, pub fixed_frame_rate_flag: bool, pub nal_hrd_parameters_present_flag: bool, pub nal_hrd_parameters: HrdParams, pub vcl_hrd_parameters_present_flag: bool, pub vcl_hrd_parameters: HrdParams, pub low_delay_hrd_flag: bool, pub pic_struct_present_flag: bool, pub bitstream_restriction_flag: bool, pub motion_vectors_over_pic_boundaries_flag: bool, pub max_bytes_per_pic_denom: u32, pub max_bits_per_mb_denom: u32, pub log2_max_mv_length_horizontal: u32, pub log2_max_mv_length_vertical: u32, pub max_num_reorder_frames: u32, pub max_dec_frame_buffering: u32,
}

Fields§

§aspect_ratio_info_present_flag: bool

Specifies whether aspect_ratio_idc is present.

§aspect_ratio_idc: u8

Specifies the value of the sample aspect ratio of the luma samples. Table E-1 shows the meaning of the code. When aspect_ratio_idc indicates Extended_SAR, the sample aspect ratio is represented by sar_width : sar_height. When the aspect_ratio_idc syntax element is not present, aspect_ratio_idc value shall be inferred to be equal to 0

§sar_width: u16

Indicates the horizontal size of the sample aspect ratio (in arbitrary units)

§sar_height: u16

Indicates the vertical size of the sample aspect ratio (in the same arbitrary units as sar_width).

§overscan_info_present_flag: bool

If true specifies that the overscan_appropriate_flag is present. Else, the preferred display method for the video signal is unspecified

§overscan_appropriate_flag: bool

If true, indicates that the cropped decoded pictures output are suitable for display using overscan. Else, indicates that the cropped decoded pictures output contain visually important information in the entire region out to the edges of the cropping rectangle of the picture, such that the cropped decoded pictures output should not be displayed using overscan.

§video_signal_type_present_flag: bool

Specifies that video_format, video_full_range_flag and colour_description_present_flag are present

§video_format: u8

Indicates the representation of the pictures as specified in Table E-2, before being coded in accordance with this Recommendation | International Standard. When the video_format syntax element is not present, video_format value shall be inferred to be equal to 5.

§video_full_range_flag: bool

Indicates the black level and range of the luma and chroma signals as derived from E′Y, E′PB, and E′PR or E′ R, E′G, and E′B real-valued component signals.

§colour_description_present_flag: bool

Specifies that colour_primaries, transfer_characteristics and matrix_coefficients are present.

§colour_primaries: u8

Indicates the chromaticity coordinates of the source primaries as specified in Table E-3 in terms of the CIE 1931 definition of x and y as specified by ISO 11664-1.

§transfer_characteristics: u8

Retains same meaning as in the specification.

§matrix_coefficients: u8

Describes the matrix coefficients used in deriving luma and chroma signals from the green, blue, and red, or Y, Z, and X primaries, as specified in Table E-5.

§chroma_loc_info_present_flag: bool

Specifies that chroma_sample_loc_type_top_field and chroma_sample_loc_type_bottom_field are present

§chroma_sample_loc_type_top_field: u8

Specify the location of chroma samples. See the spec for more details.

§chroma_sample_loc_type_bottom_field: u8

Specify the location of chroma samples. See the spec for more details.

§timing_info_present_flag: bool

Specifies that num_units_in_tick, time_scale and fixed_frame_rate_flag are present in the bitstream

§num_units_in_tick: u32

The number of time units of a clock operating at the frequency time_scale Hz that corresponds to one increment (called a clock tick) of a clock tick counter

§time_scale: u32

The number of time units that pass in one second. For example, a time coordinate system that measures time using a 27 MHz clock has a time_scale of 27 000 000. time_scale shall be greater than 0.

§fixed_frame_rate_flag: bool

Retains the same meaning as the specification.

§nal_hrd_parameters_present_flag: bool

Specifies that NAL HRD parameters (pertaining to Type II bitstream conformance) are present.

§nal_hrd_parameters: HrdParams

The NAL HDR parameters

§vcl_hrd_parameters_present_flag: bool

Specifies that VCL HRD parameters (pertaining to all bitstream conformance) are present.

§vcl_hrd_parameters: HrdParams

The VCL HRD parameters

§low_delay_hrd_flag: bool

Specifies the HRD operational mode as specified in Annex C.

§pic_struct_present_flag: bool

Specifies that picture timing SEI messages (clause D.2.3) are present that include the pic_struct syntax element.

§bitstream_restriction_flag: bool

Specifies that the following coded video sequence bitstream restriction parameters are present

§motion_vectors_over_pic_boundaries_flag: bool

If false, indicates that no sample outside the picture boundaries and no sample at a fractional sample position for which the sample value is derived using one or more samples outside the picture boundaries is used for inter prediction of any sample. If true, indicates that one or more samples outside picture boundaries may be used in inter prediction. When the motion_vectors_over_pic_boundaries_flag syntax element is not present, motion_vectors_over_pic_boundaries_flag value shall be inferred to be true.

§max_bytes_per_pic_denom: u32

Indicates a number of bytes not exceeded by the sum of the sizes of the VCL NAL units associated with any coded picture in the coded video sequence.

§max_bits_per_mb_denom: u32

Indicates an upper bound for the number of coded bits of macroblock_layer( ) data for any macroblock in any picture of the coded video sequence

§log2_max_mv_length_horizontal: u32

Retains the same meaning as the specification.

§log2_max_mv_length_vertical: u32

Retains the same meaning as the specification.

§max_num_reorder_frames: u32

Indicates an upper bound for the number of frames buffers, in the decoded picture buffer (DPB), that are required for storing frames, complementary field pairs, and non-paired fields before output. It is a requirement of bitstream conformance that the maximum number of frames, complementary field pairs, or non-paired fields that precede any frame, complementary field pair, or non-paired field in the coded video sequence in decoding order and follow it in output order shall be less than or equal to max_num_reorder_frames. The value of max_num_reorder_frames shall be in the range of 0 to max_dec_frame_buffering, inclusive.

When the max_num_reorder_frames syntax element is not present, the value of max_num_reorder_frames value shall be inferred as follows: If profile_idc is equal to 44, 86, 100, 110, 122, or 244 and constraint_set3_flag is equal to 1, the value of max_num_reorder_frames shall be inferred to be equal to 0.

Otherwise (profile_idc is not equal to 44, 86, 100, 110, 122, or 244 or constraint_set3_flag is equal to 0), the value of max_num_reorder_frames shall be inferred to be equal to MaxDpbFrames.

§max_dec_frame_buffering: u32

Specifies the required size of the HRD decoded picture buffer (DPB) in units of frame buffers. It is a requirement of bitstream conformance that the coded video sequence shall not require a decoded picture buffer with size of more than Max( 1, max_dec_frame_buffering ) frame buffers to enable the output of decoded pictures at the output times specified by dpb_output_delay of the picture timing SEI messages. The value of max_dec_frame_buffering shall be greater than or equal to max_num_ref_frames. An upper bound for the value of max_dec_frame_buffering is specified by the level limits in clauses A.3.1, A.3.2, G.10.2.1, and H.10.2.

When the max_dec_frame_buffering syntax element is not present, the value of max_dec_frame_buffering shall be inferred as follows:

If profile_idc is equal to 44, 86, 100, 110, 122, or 244 and constraint_set3_flag is equal to 1, the value of max_dec_frame_buffering shall be inferred to be equal to 0.

Otherwise (profile_idc is not equal to 44, 86, 100, 110, 122, or 244 or constraint_set3_flag is equal to 0), the value of max_dec_frame_buffering shall be inferred to be equal to MaxDpbFrames.

Trait Implementations§

Source§

impl Clone for VuiParams

Source§

fn clone(&self) -> VuiParams

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for VuiParams

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for VuiParams

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for VuiParams

Source§

fn eq(&self, other: &VuiParams) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for VuiParams

Source§

impl StructuralPartialEq for VuiParams

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.

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.