pub struct IVFFileHeader {
pub signature: [u8; 4],
pub version: u16,
pub header_size: u16,
pub four_cc: [u8; 4],
pub width: u16,
pub height: u16,
pub timebase_denominator: u32,
pub timebase_numerator: u32,
pub num_frames: u32,
pub unused: u32,
}Expand description
IVFFileHeader 32-byte header for IVF files https://wiki.multimedia.cx/index.php/IVF
Fields§
§signature: [u8; 4]Bytes 0–3: always DKIF.
version: u16Bytes 4–5: the format version, currently 0.
header_size: u16Bytes 6–7: the header length, normally 32.
four_cc: [u8; 4]Bytes 8–11: the codec FourCC, such as VP80, VP90 or AV01.
width: u16Bytes 12–13: frame width in pixels.
height: u16Bytes 14–15: frame height in pixels.
timebase_denominator: u32Bytes 16–19: the timebase denominator — the frame rate’s numerator, confusingly.
timebase_numerator: u32Bytes 20–23: the timebase numerator.
num_frames: u32Bytes 24–27: the frame count, if the writer knew it.
unused: u32Bytes 28–31: reserved.
Trait Implementations§
Source§impl Clone for IVFFileHeader
impl Clone for IVFFileHeader
Source§fn clone(&self) -> IVFFileHeader
fn clone(&self) -> IVFFileHeader
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 moreimpl Copy for IVFFileHeader
Source§impl Debug for IVFFileHeader
impl Debug for IVFFileHeader
Source§impl Default for IVFFileHeader
impl Default for IVFFileHeader
Source§fn default() -> IVFFileHeader
fn default() -> IVFFileHeader
Returns the “default value” for a type. Read more
impl Eq for IVFFileHeader
Source§impl PartialEq for IVFFileHeader
impl PartialEq for IVFFileHeader
impl StructuralPartialEq for IVFFileHeader
Auto Trait Implementations§
impl Freeze for IVFFileHeader
impl RefUnwindSafe for IVFFileHeader
impl Send for IVFFileHeader
impl Sync for IVFFileHeader
impl Unpin for IVFFileHeader
impl UnsafeUnpin for IVFFileHeader
impl UnwindSafe for IVFFileHeader
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