pub struct ChannelGains {
pub r: f32,
pub g: f32,
pub b: f32,
}Expand description
Per-channel multiplicative gain applied through the Pipe1 colour-
conversion matrix as a diagonal. 1.0 is pass-through. The hardware
encodes each coefficient as 11-bit signed two’s complement with a
scale of 256 = 1.0 (matches the ST ISP middleware’s To_CConv_Reg).
The effective positive range is therefore ~0.0..3.99; values
outside saturate.
Fields§
§r: f32Red gain.
g: f32Green gain.
b: f32Blue gain.
Implementations§
Source§impl ChannelGains
impl ChannelGains
Trait Implementations§
Source§impl Clone for ChannelGains
impl Clone for ChannelGains
Source§fn clone(&self) -> ChannelGains
fn clone(&self) -> ChannelGains
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelGains
impl Debug for ChannelGains
Source§impl Format for ChannelGains
impl Format for ChannelGains
Source§impl PartialEq for ChannelGains
impl PartialEq for ChannelGains
impl Copy for ChannelGains
impl StructuralPartialEq for ChannelGains
Auto Trait Implementations§
impl Freeze for ChannelGains
impl RefUnwindSafe for ChannelGains
impl Send for ChannelGains
impl Sync for ChannelGains
impl Unpin for ChannelGains
impl UnwindSafe for ChannelGains
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