Struct h264_reader::nal::sps::SeqParameterSet
source · 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
impl SeqParameterSet
pub fn from_bits<R: BitRead>(r: R) -> Result<SeqParameterSet, SpsError>
pub fn id(&self) -> ParamSetId
pub fn profile(&self) -> Profile
pub fn level(&self) -> Level
sourcepub fn log2_max_frame_num(&self) -> u8
pub fn log2_max_frame_num(&self) -> u8
returned value will be in the range 4 to 16 inclusive
sourcepub fn pixel_dimensions(&self) -> Result<(u32, u32), SpsError>
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.
pub fn rfc6381(&self) -> Codec
pub fn fps(&self) -> Option<f64>
Trait Implementations§
source§impl Clone for SeqParameterSet
impl Clone for SeqParameterSet
source§fn clone(&self) -> SeqParameterSet
fn clone(&self) -> SeqParameterSet
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SeqParameterSet
impl Debug for SeqParameterSet
source§impl PartialEq for SeqParameterSet
impl PartialEq for SeqParameterSet
source§fn eq(&self, other: &SeqParameterSet) -> bool
fn eq(&self, other: &SeqParameterSet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SeqParameterSet
impl StructuralPartialEq for SeqParameterSet
Auto Trait Implementations§
impl Freeze for SeqParameterSet
impl RefUnwindSafe for SeqParameterSet
impl Send for SeqParameterSet
impl Sync for SeqParameterSet
impl Unpin for SeqParameterSet
impl UnwindSafe for SeqParameterSet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more