[media] v4l: Introduce integer menu controls
Create a new control type called V4L2_CTRL_TYPE_INTEGER_MENU. Integer menu controls are just like menu controls but the menu items are 64-bit integers rather than strings. Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:

committato da
Mauro Carvalho Chehab

parent
3fd7e4341e
commit
ce580fe519
@@ -130,7 +130,10 @@ struct v4l2_ctrl {
|
||||
u32 step;
|
||||
u32 menu_skip_mask;
|
||||
};
|
||||
const char * const *qmenu;
|
||||
union {
|
||||
const char * const *qmenu;
|
||||
const s64 *qmenu_int;
|
||||
};
|
||||
unsigned long flags;
|
||||
union {
|
||||
s32 val;
|
||||
@@ -220,6 +223,7 @@ struct v4l2_ctrl_config {
|
||||
u32 flags;
|
||||
u32 menu_skip_mask;
|
||||
const char * const *qmenu;
|
||||
const s64 *qmenu_int;
|
||||
unsigned int is_private:1;
|
||||
};
|
||||
|
||||
|
Fai riferimento in un nuovo problema
Block a user