[][src]Struct h264_reader::nal::sps::SeqParameterSet

pub struct SeqParameterSet {
    pub profile_idc: ProfileIdc,
    pub constraint_flags: ConstraintFlags,
    pub level_idc: u8,
    pub seq_parameter_set_id: ParamSetId,
    pub chroma_info: ChromaInfo,
    pub log2_max_frame_num_minus4: u8,
    pub pic_order_cnt: PicOrderCntType,
    pub max_num_ref_frames: u32,
    pub gaps_in_frame_num_value_allowed_flag: bool,
    pub pic_width_in_mbs_minus1: u32,
    pub pic_height_in_map_units_minus1: u32,
    pub frame_mbs_flags: FrameMbsFlags,
    pub direct_8x8_inference_flag: bool,
    pub frame_cropping: Option<FrameCropping>,
    pub vui_parameters: Option<VuiParameters>,
}

Fields

profile_idc: ProfileIdcconstraint_flags: ConstraintFlagslevel_idc: u8seq_parameter_set_id: ParamSetIdchroma_info: ChromaInfolog2_max_frame_num_minus4: u8pic_order_cnt: PicOrderCntTypemax_num_ref_frames: u32gaps_in_frame_num_value_allowed_flag: boolpic_width_in_mbs_minus1: u32pic_height_in_map_units_minus1: u32frame_mbs_flags: FrameMbsFlagsdirect_8x8_inference_flag: boolframe_cropping: Option<FrameCropping>vui_parameters: Option<VuiParameters>

Methods

impl SeqParameterSet[src]

pub fn from_bytes(buf: &[u8]) -> Result<SeqParameterSet, SpsError>[src]

pub fn profile(&self) -> Profile[src]

pub fn level(&self) -> Level[src]

pub fn log2_max_frame_num(&self) -> u8[src]

returned value will be in the range 4 to 16 inclusive

Trait Implementations

impl Clone for SeqParameterSet[src]

impl Debug for SeqParameterSet[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.