Trait Frame

Source
pub trait Frame {
Show 13 methods // Required methods fn seq(&self) -> u64; fn pts(&self) -> i64; fn dts(&self) -> u64; fn codec(&self) -> Fourcc; fn flags(&self) -> FrameFlags; fn timestamp(&self) -> Option<u64>; fn params(&self) -> impl Iterator<Item = &[u8]>; fn units(&self) -> impl Iterator<Item = &[u8]>; // Provided methods fn is_key_frame(&self) -> bool { ... } fn is_last_frame(&self) -> bool { ... } fn has_params(&self) -> bool { ... } fn has_timestamp(&self) -> bool { ... } fn units_annexb(&self) -> impl Iterator<Item = &[u8]> { ... }
}

Required Methods§

Source

fn seq(&self) -> u64

Source

fn pts(&self) -> i64

Source

fn dts(&self) -> u64

Source

fn codec(&self) -> Fourcc

Source

fn flags(&self) -> FrameFlags

Source

fn timestamp(&self) -> Option<u64>

Source

fn params(&self) -> impl Iterator<Item = &[u8]>

Source

fn units(&self) -> impl Iterator<Item = &[u8]>

Provided Methods§

Source

fn is_key_frame(&self) -> bool

Source

fn is_last_frame(&self) -> bool

Source

fn has_params(&self) -> bool

Source

fn has_timestamp(&self) -> bool

Source

fn units_annexb(&self) -> impl Iterator<Item = &[u8]>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§