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: u32Implementations§
Source§impl SequenceHeader
impl SequenceHeader
pub fn parse(data: &[u8]) -> Result<Self>
Sourcepub fn parse_wvc1(data: &[u8]) -> Result<Self>
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.
pub fn apply_wvc1_entry_point(&mut self, data: &[u8]) -> Result<()>
pub fn uses_transposed_scans(&self) -> bool
Trait Implementations§
Source§impl Clone for SequenceHeader
impl Clone for SequenceHeader
Source§fn clone(&self) -> SequenceHeader
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SequenceHeader
impl RefUnwindSafe for SequenceHeader
impl Send for SequenceHeader
impl Sync for SequenceHeader
impl Unpin for SequenceHeader
impl UnsafeUnpin for SequenceHeader
impl UnwindSafe for SequenceHeader
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