pub struct IvfFileHeader {
pub magic: [u8; 4],
pub version: u16,
pub header_size: u16,
pub codec: [u8; 4],
pub width: u16,
pub height: u16,
pub framerate: u32,
pub timescale: u32,
pub frame_count: u32,
pub unused: u32,
}
Expand description
Helper struct for synthesizing IVF file header
Fields§
§magic: [u8; 4]
§version: u16
§header_size: u16
§codec: [u8; 4]
§width: u16
§height: u16
§framerate: u32
§timescale: u32
§frame_count: u32
§unused: u32
Implementations§
Source§impl IvfFileHeader
impl IvfFileHeader
Source§impl IvfFileHeader
impl IvfFileHeader
Sourcepub fn writo_into(&self, writer: &mut impl Write) -> Result<()>
pub fn writo_into(&self, writer: &mut impl Write) -> Result<()>
Writes header into writer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IvfFileHeader
impl RefUnwindSafe for IvfFileHeader
impl Send for IvfFileHeader
impl Sync for IvfFileHeader
impl Unpin 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