pub struct GammaLut { /* private fields */ }Expand description
Gamma correction using pre-computed lookup tables.
Port of C++ gamma_lut<LoResT, HiResT, GammaShift, HiResShift>.
Default parameters match C++ defaults: u8 for both low/high resolution, shift=8 for both, giving 256-entry tables.
Implementations§
Source§impl GammaLut
impl GammaLut
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a gamma LUT with identity gamma (1.0). Uses the default 8-bit/8-bit configuration.
Sourcepub fn new_with_gamma(g: f64) -> Self
pub fn new_with_gamma(g: f64) -> Self
Create a gamma LUT with the specified gamma value.
Sourcepub fn with_shifts(gamma_shift: u32, hi_res_shift: u32) -> Self
pub fn with_shifts(gamma_shift: u32, hi_res_shift: u32) -> Self
Create a gamma LUT with custom shift parameters.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GammaLut
impl RefUnwindSafe for GammaLut
impl Send for GammaLut
impl Sync for GammaLut
impl Unpin for GammaLut
impl UnwindSafe for GammaLut
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