diff options
Diffstat (limited to 'v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol-priv.h')
-rw-r--r-- | v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol-priv.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol-priv.h b/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol-priv.h index 59305a237..0dd675754 100644 --- a/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol-priv.h +++ b/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol-priv.h @@ -24,10 +24,27 @@ #define V4LCONTROL_SHM_SIZE 4096 +#define V4LCONTROL_WANTS_WB (1 << V4LCONTROL_WHITEBALANCE) +#define V4LCONTROL_WANTS_NORM ((1 << V4LCONTROL_NORMALIZE) | \ + (1 << V4LCONTROL_NORM_LOW_BOUND) | \ + (1 << V4LCONTROL_NORM_HIGH_BOUND)) + struct v4lcontrol_data { - int fd; /* Knowledge of the fd is needed in original syscalls */ - unsigned int controls; /* Which controls to use for this device */ + int fd; /* Device fd */ + int flags; /* Special flags for this device */ + int controls; /* Which controls to use for this device */ unsigned int *shm_values; /* shared memory control value store */ }; +struct v4lcontrol_flags_info { + unsigned short vendor_id; + unsigned short product_id; + unsigned short product_mask; +/* We could also use the USB manufacturer and product strings some devices have + const char *manufacturer; + const char *product; */ + int flags; + int controls; +}; + #endif |