v4l2_ctrl_new_std — Allocate and initialize a new standard V4L2 non-menu control.
struct v4l2_ctrl * v4l2_ctrl_new_std ( | struct v4l2_ctrl_handler * hdl, |
| const struct v4l2_ctrl_ops * ops, | |
| u32 id, | |
| s64 min, | |
| s64 max, | |
| u64 step, | |
s64 def); |
hdlThe control handler.
opsThe control ops.
idThe control ID.
minThe control's minimum value.
maxThe control's maximum value.
stepThe control's step value
defThe control's default value.
If the v4l2_ctrl struct could not be allocated, or the control
ID is not known, then NULL is returned and hdl->error is set to the
appropriate error code (if it wasn't set already).
If id refers to a menu control, then this function will return NULL.
Use v4l2_ctrl_new_std_menu when adding menu controls.