Skip to main content

L3Loop

Struct L3Loop 

Source
#[repr(C)]
pub struct L3Loop { pub xr: *mut i32, pub xrsq: Box<[i32; 576]>, pub xrabs: Box<[i32; 576]>, pub xrmax: i32, pub en_tot: [i32; 2], pub en: [[i32; 21]; 2], pub xm: [[i32; 21]; 2], pub xrmaxl: [i32; 2], pub steptab: [f64; 128], pub steptabi: [i32; 128], pub int2idx: Box<[i32; 10000]>, }
Expand description

L3 loop structure (matches l3loop_t) (ref/shine/src/lib/types.h:89-101)

Fields§

§xr: *mut i32

Magnitudes of the spectral values

§xrsq: Box<[i32; 576]>

xr squared

§xrabs: Box<[i32; 576]>

xr absolute

§xrmax: i32

Maximum of xrabs array

§en_tot: [i32; 2]

Total energy per granule

§en: [[i32; 21]; 2]

Energy per scalefactor band [granule][sfb]

§xm: [[i32; 21]; 2]

Masking threshold per scalefactor band [granule][sfb]

§xrmaxl: [i32; 2]

Maximum per granule

§steptab: [f64; 128]

2**(-x/4) for x = -127..0

§steptabi: [i32; 128]

2**(-x/4) for x = -127..0 (integer version)

§int2idx: Box<[i32; 10000]>

x**(3/4) for x = 0..9999

Trait Implementations§

Source§

impl Debug for L3Loop

Source§

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

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

impl Default for L3Loop

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl Freeze for L3Loop

§

impl RefUnwindSafe for L3Loop

§

impl !Send for L3Loop

§

impl !Sync for L3Loop

§

impl Unpin for L3Loop

§

impl UnwindSafe for L3Loop

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.