pub struct GainMap {
pub width: u32,
pub height: u32,
pub channels: u8,
pub data: Vec<u8>,
}Expand description
A gain map image (8-bit grayscale or per-channel).
Kept bespoke: gain map bytes are log2-quantized gain, not color samples,
so a PixelBuffer descriptor would misrepresent them.
Fields§
§width: u32Width of the gain map (may be smaller than base image).
height: u32Height of the gain map.
channels: u8Number of channels (1 for luminance-only, 3 for per-channel RGB).
data: Vec<u8>Pixel data (u8 values 0-255).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GainMap
impl RefUnwindSafe for GainMap
impl Send for GainMap
impl Sync for GainMap
impl Unpin for GainMap
impl UnsafeUnpin for GainMap
impl UnwindSafe for GainMap
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