This patch adds a helper function that allows to modify range, i.e. minimum, maximum, step and default value of a v4l2 control, after the control has been created and initialized. This is helpful in situations when range of a control depends on user configurable parameters, e.g. camera sensor absolute exposure time depending on an output image resolution and frame rate. v4l2_ctrl_modify_range() function allows to modify range of an INTEGER, BOOL, MENU, INTEGER_MENU and BITMASK type controls. Based on a patch from Hans Verkuil http://patchwork.linuxtv.org/patch/8654.
Showing the changes to include/uapi (1 of 6 files). Show all
Unified · Split
| @@ -1822,6 +1822,7 @@ struct v4l2_event_vsync { · 1821 unmodified lines | ||
| 1822 | 1822 | /* Payload for V4L2_EVENT_CTRL */ |
| 1823 | 1823 | #define V4L2_EVENT_CTRL_CH_VALUE (1 << 0) |
| 1824 | 1824 | #define V4L2_EVENT_CTRL_CH_FLAGS (1 << 1) |
| 1825 | +#define V4L2_EVENT_CTRL_CH_RANGE (1 << 2) | |
| 1825 | 1826 | |
| 1826 | 1827 | struct v4l2_event_ctrl { |
| 1827 | 1828 | __u32 changes; |