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

Mp3Granule

Struct Mp3Granule 

Source
pub struct Mp3Granule {
Show 14 fields pub part2_3_length: u16, pub big_values: u16, pub global_gain: u16, pub scalefac_compress: u16, pub window_switching: bool, pub block_type: u8, pub mixed_block: bool, pub table_select: [u8; 3], pub subblock_gain: [u8; 3], pub region0_count: u8, pub region1_count: u8, pub preflag: bool, pub scalefac_scale: bool, pub count1table_select: bool,
}
Expand description

Granule side information

Fields§

§part2_3_length: u16

Number of bits in the main data for this granule

§big_values: u16

Number of values in the big value region

§global_gain: u16

Global gain value

§scalefac_compress: u16

Scalefactor compression index

§window_switching: bool

Window switching flag

§block_type: u8

Block type (0=normal, 1=start, 2=short, 3=stop)

§mixed_block: bool

Mixed block flag

§table_select: [u8; 3]

Huffman table selection for regions (3 regions)

§subblock_gain: [u8; 3]

Subblock gain for short blocks

§region0_count: u8

Region0 count (number of bands in region 0)

§region1_count: u8

Region1 count

§preflag: bool

Preflag (boosts high-frequency scalefactors)

§scalefac_scale: bool

Scalefactor scale (0 or 1)

§count1table_select: bool

Count1 table selection (0 or 1)

Trait Implementations§

Source§

impl Clone for Mp3Granule

Source§

fn clone(&self) -> Mp3Granule

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 Mp3Granule

Source§

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

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

impl Default for Mp3Granule

Source§

fn default() -> Mp3Granule

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

impl PartialEq for Mp3Granule

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Mp3Granule

Source§

impl Eq for Mp3Granule

Source§

impl StructuralPartialEq for Mp3Granule

Auto Trait Implementations§

§

impl Freeze for Mp3Granule

§

impl RefUnwindSafe for Mp3Granule

§

impl Send for Mp3Granule

§

impl Sync for Mp3Granule

§

impl Unpin for Mp3Granule

§

impl UnwindSafe for Mp3Granule

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.