History

media: v4l2-ctrls: Add camera orientation and rotation

Add support for the newly defined V4L2_CID_CAMERA_ORIENTATION and V4L2_CID_CAMERA_SENSOR_ROTATION read-only controls used to report the camera device mounting position and orientation respectively.

Jacopo Mondi committed 6 years ago

Commit 926645d1 parent 9926c222 files · +20 −0Browse files

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

Unified · Split

include/uapi/linux/v4l2-controls.h+7−0
@@ -923,6 +923,13 @@ enum v4l2_auto_focus_range { · 922 unmodified lines
923#define V4L2_CID_PAN_SPEED (V4L2_CID_CAMERA_CLASS_BASE+32)923#define V4L2_CID_PAN_SPEED (V4L2_CID_CAMERA_CLASS_BASE+32)
924#define V4L2_CID_TILT_SPEED (V4L2_CID_CAMERA_CLASS_BASE+33)924#define V4L2_CID_TILT_SPEED (V4L2_CID_CAMERA_CLASS_BASE+33)
925 925
926#define V4L2_CID_CAMERA_ORIENTATION (V4L2_CID_CAMERA_CLASS_BASE+34)
927#define V4L2_CAMERA_ORIENTATION_FRONT 0
928#define V4L2_CAMERA_ORIENTATION_BACK 1
929#define V4L2_CAMERA_ORIENTATION_EXTERNAL 2
930
931#define V4L2_CID_CAMERA_SENSOR_ROTATION (V4L2_CID_CAMERA_CLASS_BASE+35)
932
926/* FM Modulator class control IDs */933/* FM Modulator class control IDs */
927 934
928#define V4L2_CID_FM_TX_CLASS_BASE (V4L2_CTRL_CLASS_FM_TX | 0x900)935#define V4L2_CID_FM_TX_CLASS_BASE (V4L2_CTRL_CLASS_FM_TX | 0x900)