History

[media] v4l2-ctrl: Add helper function for the controls range update

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.

Sylwester Nawrocki committed 13 years ago

Commit 2ccbe771 parent af9bb336 files · +138 −40Browse files

Showing the changes to include/uapi/linux (1 of 6 files). Show all

Unified · Split

include/uapi/linux/videodev2.h+1−0
@@ -1822,6 +1822,7 @@ struct v4l2_event_vsync { · 1821 unmodified lines
18221822 /* Payload for V4L2_EVENT_CTRL */
18231823 #define V4L2_EVENT_CTRL_CH_VALUE (1 << 0)
18241824 #define V4L2_EVENT_CTRL_CH_FLAGS (1 << 1)
1825+#define V4L2_EVENT_CTRL_CH_RANGE (1 << 2)
18251826
18261827 struct v4l2_event_ctrl {
18271828 __u32 changes;

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