v4l2_ctrl_new_std_menu — Allocate and initialize a new standard V4L2 menu control.
The control handler.
The control ops.
The control ID.
The control's maximum value.
The control's skip mask for menu controls. This makes it easy to skip menu items that are not valid. If bit X is set, then menu item X is skipped. Of course, this only works for menus with <= 64 menu items. There are no menus that come close to that number, so this is OK. Should we ever need more, then this will have to be extended to a bit array.
The control's default value.
min is set to 0 and the
determines which menu items are to be skipped.
id refers to a non-menu control, then this function will return NULL.