⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

AviStreamHeader

Struct AviStreamHeader 

Source
pub struct AviStreamHeader {
Show 17 fields pub stream_type: [u8; 4], pub handler: [u8; 4], pub flags: u32, pub priority: u16, pub language: u16, pub initial_frames: u32, pub scale: u32, pub rate: u32, pub start: u32, pub length: u32, pub suggested_buffer_size: u32, pub quality: u32, pub sample_size: u32, pub frame_left: u16, pub frame_top: u16, pub frame_right: u16, pub frame_bottom: u16,
}
Expand description

AVI stream header (strh chunk) – 56 bytes.

Fields§

§stream_type: [u8; 4]

Stream type FourCC (vids, auds, …).

§handler: [u8; 4]

Codec handler FourCC (e.g. DIB for uncompressed, MJPG, etc.).

§flags: u32

Stream flags.

§priority: u16

Priority (used for language selection, etc.).

§language: u16

Language tag.

§initial_frames: u32

Initial frames (delay before interleave).

§scale: u32

Time scale (denominator of sample rate).

§rate: u32

Rate (numerator of sample rate). sample_rate = rate / scale.

§start: u32

Start time of the stream.

§length: u32

Length of the stream (in scale units).

§suggested_buffer_size: u32

Suggested buffer size.

§quality: u32

Quality indicator (-1 = default).

§sample_size: u32

Sample size (0 for variable-size, else fixed).

§frame_left: u16

Frame rectangle: left.

§frame_top: u16

Frame rectangle: top.

§frame_right: u16

Frame rectangle: right.

§frame_bottom: u16

Frame rectangle: bottom.

Trait Implementations§

Source§

impl Clone for AviStreamHeader

Source§

fn clone(&self) -> AviStreamHeader

Returns a duplicate of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for AviStreamHeader

Source§

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

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

impl Default for AviStreamHeader

Source§

fn default() -> AviStreamHeader

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

impl Copy for AviStreamHeader

Auto Trait Implementations§

§

impl Freeze for AviStreamHeader

§

impl RefUnwindSafe for AviStreamHeader

§

impl Send for AviStreamHeader

§

impl Sync for AviStreamHeader

§

impl Unpin for AviStreamHeader

§

impl UnwindSafe for AviStreamHeader

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

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

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

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

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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.
§

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

Performs the conversion.