pub struct V8Params {
pub gamma_points: [u32; 6],
pub gamma_slopes: [u32; 6],
pub clip: u32,
pub initial: [u16; 4],
pub codes: Vec<(u8, u16)>,
pub shift_down: Vec<u8>,
}Expand description
Format-8 parameters (RW2 tags 0x39–0x48).
Fields§
§gamma_points: [u32; 6]Gamma curve: 6 (point, slope) pairs (tags 0x3A and 0x39).
gamma_slopes: [u32; 6]§clip: u32Clip value (tag 0x3B).
initial: [u16; 4]Initial predictions for the 2×2 block positions TL, TR, BL, BR (tags 0x3C–0x3F).
codes: Vec<(u8, u16)>Huffman codes: (code length, code) per symbol (tag 0x40); the symbol index is the difference bit length.
shift_down: Vec<u8>Per-symbol “shift down” (tag 0x41); zero in all known files.
Trait Implementations§
Auto Trait Implementations§
impl Forget for V8Params
impl Freeze for V8Params
impl RefUnwindSafe for V8Params
impl Send for V8Params
impl Sync for V8Params
impl Unpin for V8Params
impl UnsafeUnpin for V8Params
impl UnwindSafe for V8Params
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more