pub struct ProcessingControls {
pub backlight_compensation: Option<ControlRange<u16>>,
pub brightness: Option<ControlRange<i16>>,
pub contrast: Option<ControlRange<u16>>,
pub gain: Option<ControlRange<u16>>,
pub power_line_frequency: Option<u8>,
pub hue: Option<ControlRange<i16>>,
pub saturation: Option<ControlRange<u16>>,
pub sharpness: Option<ControlRange<u16>>,
pub gamma: Option<ControlRange<u16>>,
pub white_balance_temp: Option<ControlRange<u16>>,
pub white_balance_auto: Option<bool>,
pub hue_auto: Option<bool>,
}Expand description
Supported Processing Unit (VC_PROCESSING_UNIT) controls.
Fields§
§backlight_compensation: Option<ControlRange<u16>>Backlight compensation (PU_BACKLIGHT_COMPENSATION_CONTROL).
brightness: Option<ControlRange<i16>>Brightness (PU_BRIGHTNESS_CONTROL).
contrast: Option<ControlRange<u16>>Contrast (PU_CONTRAST_CONTROL).
gain: Option<ControlRange<u16>>Gain (PU_GAIN_CONTROL).
power_line_frequency: Option<u8>Power line frequency anti-flicker default (0 = disabled, 1 = 50 Hz, 2 = 60 Hz, 3 = Auto).
hue: Option<ControlRange<i16>>Hue (PU_HUE_CONTROL).
saturation: Option<ControlRange<u16>>Saturation (PU_SATURATION_CONTROL).
sharpness: Option<ControlRange<u16>>Sharpness (PU_SHARPNESS_CONTROL).
gamma: Option<ControlRange<u16>>Gamma (PU_GAMMA_CONTROL).
white_balance_temp: Option<ControlRange<u16>>White balance color temperature in Kelvin (PU_WHITE_BALANCE_TEMPERATURE_CONTROL).
white_balance_auto: Option<bool>Auto white balance temperature default (PU_WHITE_BALANCE_TEMPERATURE_AUTO_CONTROL).
hue_auto: Option<bool>Auto hue default (PU_HUE_AUTO_CONTROL).
Implementations§
Trait Implementations§
Source§impl Clone for ProcessingControls
impl Clone for ProcessingControls
impl Copy for ProcessingControls
Source§impl Debug for ProcessingControls
impl Debug for ProcessingControls
Source§impl Default for ProcessingControls
impl Default for ProcessingControls
Auto Trait Implementations§
impl Forget for ProcessingControls
impl Freeze for ProcessingControls
impl Move for ProcessingControls
impl RefUnwindSafe for ProcessingControls
impl Send for ProcessingControls
impl Sync for ProcessingControls
impl Unpin for ProcessingControls
impl UnsafeUnpin for ProcessingControls
impl UnwindSafe for ProcessingControls
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