Skip to main content

SequenceHeader

Struct SequenceHeader 

Source
pub struct SequenceHeader {
Show 37 fields pub profile: Profile, pub level: u8, pub max_b_frames: u8, pub frame_rate_num: u32, pub frame_rate_den: u32, pub loop_filter: bool, pub multires: bool, pub fastuvmc: bool, pub extended_mv: bool, pub extended_dmv: bool, pub dquant: u8, pub vstransform: bool, pub overlap: bool, pub syncmarker: bool, pub rangered: bool, pub quantizer_mode: QuantizerMode, pub finterpflag: bool, pub res_x8: bool, pub res_fasttx: bool, pub res_rtm_flag: bool, pub res_sprite: bool, pub postprocflag: bool, pub broadcast: bool, pub interlace: bool, pub tfcntrflag: bool, pub psf: bool, pub panscanflag: bool, pub refdist_flag: bool, pub broken_link: bool, pub closed_entry: bool, pub range_mapy: Option<u8>, pub range_mapuv: Option<u8>, pub hrd_num_leaky_buckets: u8, pub width: u32, pub height: u32, pub display_width: u32, pub display_height: u32,
}

Fields§

§profile: Profile§level: u8§max_b_frames: u8§frame_rate_num: u32§frame_rate_den: u32§loop_filter: bool§multires: bool§fastuvmc: bool§extended_mv: bool§extended_dmv: bool§dquant: u8§vstransform: bool§overlap: bool§syncmarker: bool§rangered: bool§quantizer_mode: QuantizerMode§finterpflag: bool§res_x8: bool§res_fasttx: bool§res_rtm_flag: bool§res_sprite: bool§postprocflag: bool§broadcast: bool§interlace: bool§tfcntrflag: bool§psf: bool§panscanflag: bool§refdist_flag: bool§broken_link: bool§closed_entry: bool§range_mapy: Option<u8>§range_mapuv: Option<u8>§hrd_num_leaky_buckets: u8§width: u32§height: u32§display_width: u32§display_height: u32

Implementations§

Source§

impl SequenceHeader

Source

pub fn parse(data: &[u8]) -> Result<Self>

Source

pub fn parse_wvc1(data: &[u8]) -> Result<Self>

Parse VC-1 Advanced Profile private data carried by WVC1.

WVC1 ASF stream properties contain VC-1 start-code-delimited sequence and entry-point units (the first byte is commonly the private-data length). This follows FFmpeg’s VC1/WVC1 initialization path: locate the 0x0000010f sequence header and 0x0000010e entry point, remove VC-1 emulation-prevention bytes from each payload, then parse both units.

Source

pub fn apply_wvc1_entry_point(&mut self, data: &[u8]) -> Result<()>

Source

pub fn uses_transposed_scans(&self) -> bool

Trait Implementations§

Source§

impl Clone for SequenceHeader

Source§

fn clone(&self) -> SequenceHeader

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SequenceHeader

Source§

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

Formats the value using the given formatter. Read more

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.