v4l2r 0.0.7

Safe and flexible abstraction over V4L2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Definition of USER class controls.

use crate::bindings;
use crate::controls::ExtControlTrait;

pub struct Brightness;
impl ExtControlTrait for Brightness {
    const ID: u32 = bindings::V4L2_CID_BRIGHTNESS;
    type PAYLOAD = i32;
}

pub struct Contrast;
impl ExtControlTrait for Contrast {
    const ID: u32 = bindings::V4L2_CID_CONTRAST;
    type PAYLOAD = i32;
}