Struct VuiParameters

Source
pub struct VuiParameters {
    pub aspect_ratio_info: AspectRatioInfo,
    pub overscan_appropriate_flag: Option<bool>,
    pub video_signal_type: VideoSignalType,
    pub chroma_loc_info: Option<ChromaLocInfo>,
    pub neutral_chroma_indication_flag: bool,
    pub field_seq_flag: bool,
    pub frame_field_info_present_flag: bool,
    pub default_display_window: DefaultDisplayWindow,
    pub vui_timing_info: Option<VuiTimingInfo>,
    pub bitstream_restriction: BitStreamRestriction,
}
Expand description

VUI parameters.

vui_parameters()

  • ISO/IEC 23008-2 - E.2.1
  • ISO/IEC 23008-2 - E.3.1

Fields§

§aspect_ratio_info: AspectRatioInfo

AspectRatioInfo if aspect_ratio_info_present_flag is true.

§overscan_appropriate_flag: Option<bool>

Equal to true indicates that the cropped decoded pictures output are suitable for display using overscan.

Equal to false indicates that the cropped decoded pictures output contain visually important information in the entire region out to the edges of the conformance cropping window of the picture, such that the cropped decoded pictures output should not be displayed using overscan. Instead, they should be displayed using either an exact match between the display area and the conformance cropping window, or using underscan. As used in this paragraph, the term “overscan” refers to display processes in which some parts near the borders of the cropped decoded pictures are not visible in the display area. The term “underscan” describes display processes in which the entire cropped decoded pictures are visible in the display area, but they do not cover the entire display area. For display processes that neither use overscan nor underscan, the display area exactly matches the area of the cropped decoded pictures.

Only present if overscan_info_present_flag is true.

§video_signal_type: VideoSignalType

video_format, video_full_range_flag and colour_primaries, if video_signal_type_present_flag is true.

See VideoSignalType for details.

§chroma_loc_info: Option<ChromaLocInfo>

chroma_sample_loc_type_top_field and chroma_sample_loc_type_bottom_field, if chroma_loc_info_present_flag is true.

See ChromaLocInfo for details.

§neutral_chroma_indication_flag: bool

Equal to true indicates that the value of all decoded chroma samples is equal to 1 << (BitDepthC − 1).

Equal to false provides no indication of decoded chroma sample values.

§field_seq_flag: bool

Equal to true indicates that the CVS conveys pictures that represent fields, and specifies that a picture timing SEI message shall be present in every access unit of the current CVS.

Equal to false indicates that the CVS conveys pictures that represent frames and that a picture timing SEI message may or may not be present in any access unit of the current CVS.

§frame_field_info_present_flag: bool

Equal to true specifies that picture timing SEI messages are present for every picture and include the pic_struct, source_scan_type, and duplicate_flag syntax elements.

Equal to false specifies that the pic_struct syntax element is not present in picture timing SEI messages.

§default_display_window: DefaultDisplayWindow

def_disp_win_left_offset, def_disp_win_right_offset, def_disp_win_top_offset and def_disp_win_bottom_offset, if default_display_window_flag is true.

See DefaultDisplayWindow for details.

§vui_timing_info: Option<VuiTimingInfo>

vui_num_units_in_tick, vui_time_scale, vui_poc_proportional_to_timing_flag and vui_num_ticks_poc_diff_one_minus1, if vui_timing_info_present_flag is true.

See VuiTimingInfo for details.

§bitstream_restriction: BitStreamRestriction

tiles_fixed_structure_flag, motion_vectors_over_pic_boundaries_flag, restricted_ref_pic_lists_flag, min_spatial_segmentation_idc, max_bytes_per_pic_denom, max_bits_per_min_cu_denom, log2_max_mv_length_horizontal and log2_max_mv_length_vertical, if bitstream_restriction_flag is true.

See BitStreamRestriction for details.

Trait Implementations§

Source§

impl Clone for VuiParameters

Source§

fn clone(&self) -> VuiParameters

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
Source§

impl Debug for VuiParameters

Source§

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

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

impl PartialEq for VuiParameters

Source§

fn eq(&self, other: &VuiParameters) -> 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 StructuralPartialEq for VuiParameters

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.