pub struct VuiParams {
Show 34 fields aspect_ratio_info_present_flag: bool, aspect_ratio_idc: u8, sar_width: u16, sar_height: u16, overscan_info_present_flag: bool, overscan_appropriate_flag: bool, video_signal_type_present_flag: bool, video_format: u8, video_full_range_flag: bool, colour_description_present_flag: bool, colour_primaries: u8, transfer_characteristics: u8, matrix_coefficients: u8, chroma_loc_info_present_flag: bool, chroma_sample_loc_type_top_field: u8, chroma_sample_loc_type_bottom_field: u8, timing_info_present_flag: bool, num_units_in_tick: u32, time_scale: u32, fixed_frame_rate_flag: bool, nal_hrd_parameters_present_flag: bool, nal_hrd_parameters: HrdParams, vcl_hrd_parameters_present_flag: bool, vcl_hrd_parameters: HrdParams, low_delay_hrd_flag: bool, pic_struct_present_flag: bool, bitstream_restriction_flag: bool, motion_vectors_over_pic_boundaries_flag: bool, max_bytes_per_pic_denom: u32, max_bits_per_mb_denom: u32, log2_max_mv_length_horizontal: u32, log2_max_mv_length_vertical: u32, max_num_reorder_frames: u32, 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.

Implementations

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.