pub struct Feat {
pub nb: [u16; 8],
pub sg: [i8; 3],
pub par: u16,
pub pnb: u16,
pub class: u8,
pub mask: u8,
pub has_par: bool,
pub pm: u16,
pub sv: [i32; 18],
pub pv: i32,
}Expand description
Context features of one coefficient — all causal (already coded).
Fields§
§nb: [u16; 8]Capped magnitudes of causal neighbours: W, N, U, NW, NE, UW, UN, WW (axis 2 = W/E, axis 1 = N, axis 0 = U), 0 outside the band.
sg: [i8; 3]Signs of W, N, U (−1, 0, +1).
par: u16Capped parent magnitude (0 if no parent band).
pnb: u16Capped sum of the parent’s 6 face neighbours.
class: u8Subband class 0..NCLASS.
mask: u8Highpass mask.
has_par: boolWhether a parent band exists.
pm: u16Capped magnitude of the in-band prediction (0 when prediction is off).
sv: [i32; 18]Signed context values: 0–7 behind nb, 8 parent, 9 NN, 10 UU,
11 UE, 12–17 the parent’s face neighbours (−/+ per axis).
pv: i32Signed in-band prediction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Feat
impl RefUnwindSafe for Feat
impl Send for Feat
impl Sync for Feat
impl Unpin for Feat
impl UnsafeUnpin for Feat
impl UnwindSafe for Feat
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