History

[media] videodev2.h: Extend struct v4l2_ext_controls

So it can be used to get the default value of a control. Without this change it is not possible to get the default value of array controls.

Ricardo Ribalda committed 11 years ago

Commit 35ec2a21 parent dc5e0201 file · +6 −1Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/linux/videodev2.h+6−1
@@ -1476,7 +1476,10 @@ struct v4l2_ext_control { · 1475 unmodified lines
14761476 } __attribute__ ((packed));
14771477
14781478 struct v4l2_ext_controls {
1479− __u32 ctrl_class;
1479+ union {
1480+ __u32 ctrl_class;
1481+ __u32 which;
1482+ };
14801483 __u32 count;
14811484 __u32 error_idx;
14821485 __u32 reserved[2];
@@ -1487,6 +1490,8 @@ struct v4l2_ext_controls { · 4 unmodified lines
14871490 #define V4L2_CTRL_ID2CLASS(id) ((id) & 0x0fff0000UL)
14881491 #define V4L2_CTRL_DRIVER_PRIV(id) (((id) & 0xffff) >= 0x1000)
14891492 #define V4L2_CTRL_MAX_DIMS (4)
1493+#define V4L2_CTRL_WHICH_CUR_VAL 0
1494+#define V4L2_CTRL_WHICH_DEF_VAL 0x0f000000
14901495
14911496 enum v4l2_ctrl_type {
14921497 V4L2_CTRL_TYPE_INTEGER = 1,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t