Hi!
> Add support for exponential bases, prefixes as well as units for V4L2
> controls. This makes it possible to convey information on the relation
> between the control value and the hardware feature being controlled.
>
> Signed-off-by: Sakari Ailus <[email protected]>
Sounds good.
> +/* V4L2 control exponential bases */
> +#define V4L2_CTRL_BASE_UNDEFINED 0
> +#define V4L2_CTRL_BASE_LINEAR 1
> +#define V4L2_CTRL_BASE_2 2
> +#define V4L2_CTRL_BASE_10 10
Do we also want to support logarithmic and 1/x?
For example focus is usually in diopters and thats 1/meter...
> +/* V4L2 control units */
> +#define V4L2_CTRL_UNIT_UNDEFINED 0
> +#define V4L2_CTRL_UNIT_NONE 1
> +#define V4L2_CTRL_UNIT_SECOND 2
> +#define V4L2_CTRL_UNIT_AMPERE 3
> +#define V4L2_CTRL_UNIT_LINE 4
> +#define V4L2_CTRL_UNIT_PIXEL 5
> +#define V4L2_CTRL_UNIT_PIXELS_PER_SEC 6
> +#define V4L2_CTRL_UNIT_HZ 7
And Hz is 1/second.
Should we also have some support for ISO-sensitivity and f/ aperture numbers?
Thanks,
Pavel