pub struct SeqParameterSet {
Show 15 fields 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: ProfileIdc§constraint_flags: ConstraintFlags§level_idc: u8§seq_parameter_set_id: ParamSetId§chroma_info: ChromaInfo§log2_max_frame_num_minus4: u8§pic_order_cnt: PicOrderCntType§max_num_ref_frames: u32§gaps_in_frame_num_value_allowed_flag: bool§pic_width_in_mbs_minus1: u32§pic_height_in_map_units_minus1: u32§frame_mbs_flags: FrameMbsFlags§direct_8x8_inference_flag: bool§frame_cropping: Option<FrameCropping>§vui_parameters: Option<VuiParameters>

Implementations§

source§

impl SeqParameterSet

source

pub fn from_bits<R: BitRead>(r: R) -> Result<SeqParameterSet, SpsError>

source

pub fn id(&self) -> ParamSetId

source

pub fn profile(&self) -> Profile

source

pub fn level(&self) -> Level

source

pub fn log2_max_frame_num(&self) -> u8

returned value will be in the range 4 to 16 inclusive

source

pub fn pixel_dimensions(&self) -> Result<(u32, u32), SpsError>

Helper to calculate the pixel-dimensions of the video image specified by this SPS, taking into account sample-format, interlacing and cropping.

source

pub fn rfc6381(&self) -> Codec

source

pub fn fps(&self) -> Option<f64>

Trait Implementations§

source§

impl Clone for SeqParameterSet

source§

fn clone(&self) -> SeqParameterSet

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 SeqParameterSet

source§

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

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

impl PartialEq<SeqParameterSet> for SeqParameterSet

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for SeqParameterSet

source§

impl StructuralEq for SeqParameterSet

source§

impl StructuralPartialEq for SeqParameterSet

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. 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 Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.