pub struct Histogram {
pub r: [u32; 256],
pub g: [u32; 256],
pub b: [u32; 256],
pub luma: [u32; 256],
}Expand description
256-bin luminance and per-channel RGB histogram.
Fields§
§r: [u32; 256]Red channel bin counts (8-bit value → bin index).
g: [u32; 256]Green channel bin counts (8-bit value → bin index).
b: [u32; 256]Blue channel bin counts (8-bit value → bin index).
luma: [u32; 256]Luminance bin counts (Y plane for YUV frames; BT.601-derived for others).
Auto Trait Implementations§
impl Freeze for Histogram
impl RefUnwindSafe for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnsafeUnpin for Histogram
impl UnwindSafe for Histogram
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