Struct mp4::Vp09Box

source ·
pub struct Vp09Box {
Show 15 fields pub version: u8, pub flags: u32, pub start_code: u16, pub data_reference_index: u16, pub reserved0: [u8; 16], pub width: u16, pub height: u16, pub horizresolution: (u16, u16), pub vertresolution: (u16, u16), pub reserved1: [u8; 4], pub frame_count: u16, pub compressorname: [u8; 32], pub depth: u16, pub end_code: u16, pub vpcc: VpccBox,
}

Fields§

§version: u8§flags: u32§start_code: u16§data_reference_index: u16§reserved0: [u8; 16]§width: u16§height: u16§horizresolution: (u16, u16)§vertresolution: (u16, u16)§reserved1: [u8; 4]§frame_count: u16§compressorname: [u8; 32]§depth: u16§end_code: u16§vpcc: VpccBox

Implementations§

source§

impl Vp09Box

source

pub const DEFAULT_START_CODE: u16 = 0u16

source

pub const DEFAULT_END_CODE: u16 = 65_535u16

source

pub const DEFAULT_DATA_REFERENCE_INDEX: u16 = 1u16

source

pub const DEFAULT_HORIZRESOLUTION: (u16, u16) = _

source

pub const DEFAULT_VERTRESOLUTION: (u16, u16) = _

source

pub const DEFAULT_FRAME_COUNT: u16 = 1u16

source

pub const DEFAULT_COMPRESSORNAME: [u8; 32] = _

source

pub const DEFAULT_DEPTH: u16 = 24u16

source

pub fn new(config: &Vp9Config) -> Self

Trait Implementations§

source§

impl Clone for Vp09Box

source§

fn clone(&self) -> Vp09Box

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Vp09Box

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Vp09Box

source§

fn default() -> Vp09Box

Returns the “default value” for a type. Read more
source§

impl Mp4Box for Vp09Box

source§

impl PartialEq for Vp09Box

source§

fn eq(&self, other: &Vp09Box) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<R: Read + Seek> ReadBox<&mut R> for Vp09Box

source§

fn read_box(reader: &mut R, size: u64) -> Result<Self>

source§

impl Serialize for Vp09Box

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<W: Write> WriteBox<&mut W> for Vp09Box

source§

fn write_box(&self, writer: &mut W) -> Result<u64>

source§

impl Eq for Vp09Box

source§

impl StructuralPartialEq for Vp09Box

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.