pub struct Av1Clip {
pub width: u32,
pub height: u32,
pub fps: u32,
pub frames: Vec<Vec<u8>>,
}Expand description
An AV1 stream: one temporal unit (the OBUs of one picture) per frame.
Fields§
§width: u32§height: u32§fps: u32§frames: Vec<Vec<u8>>Implementations§
Source§impl Av1Clip
impl Av1Clip
Sourcepub fn from_ivf(b: &[u8]) -> Option<Self>
pub fn from_ivf(b: &[u8]) -> Option<Self>
Parses an IVF file (32-byte header, then a 12-byte header before each frame) holding AV1 at a whole number of frames per second.
Sourcepub fn is_key(&self, i: usize) -> bool
pub fn is_key(&self, i: usize) -> bool
Whether frame i starts a new sequence: it carries a sequence
header, which encoders (rav1e among them) repeat at each keyframe.
Sourcepub fn av1c(&self) -> Vec<u8> ⓘ
pub fn av1c(&self) -> Vec<u8> ⓘ
The av1C record (AV1 codec configuration) that MP4 and Matroska
carry: profile, level and tier read from the sequence header, the
colour fields for 8-bit 4:2:0, and the sequence header OBU itself.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Av1Clip
impl RefUnwindSafe for Av1Clip
impl Send for Av1Clip
impl Sync for Av1Clip
impl Unpin for Av1Clip
impl UnsafeUnpin for Av1Clip
impl UnwindSafe for Av1Clip
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