pub struct ColourGains(pub [f32; 2]);
Expand description
Pair of gain values for the Red and Blue colour channels, in that order.
ColourGains can only be applied in a Request when the AWB is disabled. If ColourGains is set in a request but ColourTemperature is not, the implementation shall calculate and set the ColourTemperature based on the ColourGains.
\sa AwbEnable \sa ColourTemperature
Tuple Fields§
§0: [f32; 2]
Trait Implementations§
Source§impl Clone for ColourGains
impl Clone for ColourGains
Source§fn clone(&self) -> ColourGains
fn clone(&self) -> ColourGains
Returns a copy 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 ControlEntry for ColourGains
impl ControlEntry for ColourGains
Source§impl Debug for ColourGains
impl Debug for ColourGains
Source§impl Deref for ColourGains
impl Deref for ColourGains
Source§impl DerefMut for ColourGains
impl DerefMut for ColourGains
Source§impl From<ColourGains> for ControlValue
impl From<ColourGains> for ControlValue
Source§fn from(val: ColourGains) -> Self
fn from(val: ColourGains) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ControlValue> for ColourGains
impl TryFrom<ControlValue> for ColourGains
Source§type Error = ControlValueError
type Error = ControlValueError
The type returned in the event of a conversion error.
impl Control for ColourGains
Auto Trait Implementations§
impl Freeze for ColourGains
impl RefUnwindSafe for ColourGains
impl Send for ColourGains
impl Sync for ColourGains
impl Unpin for ColourGains
impl UnwindSafe for ColourGains
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