pub enum KnownCameraControl {
Show 16 variants
Brightness,
Contrast,
Hue,
Saturation,
Sharpness,
Gamma,
WhiteBalance,
BacklightComp,
Gain,
Pan,
Tilt,
Zoom,
Exposure,
Iris,
Focus,
Other(u128),
}Expand description
The list of known camera controls to the library.
These can control the picture brightness, etc.
Note that not all backends/devices support all these. Run supported_camera_controls() to see which ones can be set.
Variants§
Brightness
Contrast
Hue
Saturation
Sharpness
Gamma
WhiteBalance
BacklightComp
Gain
Pan
Tilt
Zoom
Exposure
Iris
Focus
Other(u128)
Other camera control. Listed is the ID. Wasteful, however is needed for a unified API across Windows, Linux, and MacOSX due to Microsoft’s usage of GUIDs.
THIS SHOULD ONLY BE USED WHEN YOU KNOW THE PLATFORM THAT YOU ARE RUNNING ON.
Trait Implementations§
Source§impl Clone for KnownCameraControl
impl Clone for KnownCameraControl
Source§fn clone(&self) -> KnownCameraControl
fn clone(&self) -> KnownCameraControl
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 KnownCameraControl
impl Debug for KnownCameraControl
Source§impl Display for KnownCameraControl
impl Display for KnownCameraControl
Source§impl Hash for KnownCameraControl
impl Hash for KnownCameraControl
Source§impl Ord for KnownCameraControl
impl Ord for KnownCameraControl
Source§fn cmp(&self, other: &KnownCameraControl) -> Ordering
fn cmp(&self, other: &KnownCameraControl) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KnownCameraControl
impl PartialEq for KnownCameraControl
Source§impl PartialOrd for KnownCameraControl
impl PartialOrd for KnownCameraControl
impl Copy for KnownCameraControl
impl Eq for KnownCameraControl
impl StructuralPartialEq for KnownCameraControl
Auto Trait Implementations§
impl Freeze for KnownCameraControl
impl RefUnwindSafe for KnownCameraControl
impl Send for KnownCameraControl
impl Sync for KnownCameraControl
impl Unpin for KnownCameraControl
impl UnsafeUnpin for KnownCameraControl
impl UnwindSafe for KnownCameraControl
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