|
|
@ -391,7 +391,7 @@ struct v4l2_buffer
|
|
|
|
|
|
|
|
|
|
|
|
/* Flags for 'flags' field */
|
|
|
|
/* Flags for 'flags' field */
|
|
|
|
#define V4L2_BUF_FLAG_MAPPED 0x0001 /* Buffer is mapped (flag) */
|
|
|
|
#define V4L2_BUF_FLAG_MAPPED 0x0001 /* Buffer is mapped (flag) */
|
|
|
|
#define V4L2_BUF_FLAG_TQUEUED 0x0002 /* Buffer is queued for processing */
|
|
|
|
#define V4L2_BUF_FLAG_QUEUED 0x0002 /* Buffer is queued for processing */
|
|
|
|
#define V4L2_BUF_FLAG_DONE 0x0004 /* Buffer is ready */
|
|
|
|
#define V4L2_BUF_FLAG_DONE 0x0004 /* Buffer is ready */
|
|
|
|
#define V4L2_BUF_FLAG_KEYFRAME 0x0008 /* Image is a keyframe (I-frame) */
|
|
|
|
#define V4L2_BUF_FLAG_KEYFRAME 0x0008 /* Image is a keyframe (I-frame) */
|
|
|
|
#define V4L2_BUF_FLAG_PFRAME 0x0010 /* Image is a P-frame */
|
|
|
|
#define V4L2_BUF_FLAG_PFRAME 0x0010 /* Image is a P-frame */
|
|
|
@ -450,7 +450,7 @@ struct v4l2_captureparm
|
|
|
|
__u32 reserved[4];
|
|
|
|
__u32 reserved[4];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
/* Flags for 'capability' and 'capturemode' fields */
|
|
|
|
/* Flags for 'capability' and 'capturemode' fields */
|
|
|
|
#define V4L2_MODE_HIGHTQUALITY 0x0001 /* High quality imaging mode */
|
|
|
|
#define V4L2_MODE_HIGHQUALITY 0x0001 /* High quality imaging mode */
|
|
|
|
#define V4L2_CAP_TIMEPERFRAME 0x1000 /* timeperframe field is supported */
|
|
|
|
#define V4L2_CAP_TIMEPERFRAME 0x1000 /* timeperframe field is supported */
|
|
|
|
|
|
|
|
|
|
|
|
struct v4l2_outputparm
|
|
|
|
struct v4l2_outputparm
|
|
|
@ -623,7 +623,7 @@ struct v4l2_control
|
|
|
|
__s32 value;
|
|
|
|
__s32 value;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* Used in the VIDIOC_TQUERYCTRL ioctl for querying controls */
|
|
|
|
/* Used in the VIDIOC_QUERYCTRL ioctl for querying controls */
|
|
|
|
struct v4l2_queryctrl
|
|
|
|
struct v4l2_queryctrl
|
|
|
|
{
|
|
|
|
{
|
|
|
|
__u32 id;
|
|
|
|
__u32 id;
|
|
|
@ -637,7 +637,7 @@ struct v4l2_queryctrl
|
|
|
|
__u32 reserved[2];
|
|
|
|
__u32 reserved[2];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* Used in the VIDIOC_TQUERYMENU ioctl for querying menu items */
|
|
|
|
/* Used in the VIDIOC_QUERYMENU ioctl for querying menu items */
|
|
|
|
struct v4l2_querymenu
|
|
|
|
struct v4l2_querymenu
|
|
|
|
{
|
|
|
|
{
|
|
|
|
__u32 id;
|
|
|
|
__u32 id;
|
|
|
@ -828,7 +828,7 @@ struct v4l2_streamparm
|
|
|
|
* I O C T L C O D E S F O R V I D E O D E V I C E S
|
|
|
|
* I O C T L C O D E S F O R V I D E O D E V I C E S
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
#define VIDIOC_TQUERYCAP _IOR ('V', 0, struct v4l2_capability)
|
|
|
|
#define VIDIOC_QUERYCAP _IOR ('V', 0, struct v4l2_capability)
|
|
|
|
#define VIDIOC_RESERVED _IO ('V', 1)
|
|
|
|
#define VIDIOC_RESERVED _IO ('V', 1)
|
|
|
|
#define VIDIOC_ENUM_FMT _IOWR ('V', 2, struct v4l2_fmtdesc)
|
|
|
|
#define VIDIOC_ENUM_FMT _IOWR ('V', 2, struct v4l2_fmtdesc)
|
|
|
|
#define VIDIOC_G_FMT _IOWR ('V', 4, struct v4l2_format)
|
|
|
|
#define VIDIOC_G_FMT _IOWR ('V', 4, struct v4l2_format)
|
|
|
@ -838,7 +838,7 @@ struct v4l2_streamparm
|
|
|
|
#define VIDIOC_S_COMP _IOW ('V', 7, struct v4l2_compression)
|
|
|
|
#define VIDIOC_S_COMP _IOW ('V', 7, struct v4l2_compression)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#define VIDIOC_RETQBUFS _IOWR ('V', 8, struct v4l2_requestbuffers)
|
|
|
|
#define VIDIOC_RETQBUFS _IOWR ('V', 8, struct v4l2_requestbuffers)
|
|
|
|
#define VIDIOC_TQUERYBUF _IOWR ('V', 9, struct v4l2_buffer)
|
|
|
|
#define VIDIOC_QUERYBUF _IOWR ('V', 9, struct v4l2_buffer)
|
|
|
|
#define VIDIOC_G_FBUF _IOR ('V', 10, struct v4l2_framebuffer)
|
|
|
|
#define VIDIOC_G_FBUF _IOR ('V', 10, struct v4l2_framebuffer)
|
|
|
|
#define VIDIOC_S_FBUF _IOW ('V', 11, struct v4l2_framebuffer)
|
|
|
|
#define VIDIOC_S_FBUF _IOW ('V', 11, struct v4l2_framebuffer)
|
|
|
|
#define VIDIOC_OVERLAY _IOW ('V', 14, int)
|
|
|
|
#define VIDIOC_OVERLAY _IOW ('V', 14, int)
|
|
|
@ -858,8 +858,8 @@ struct v4l2_streamparm
|
|
|
|
#define VIDIOC_S_TUNER _IOW ('V', 30, struct v4l2_tuner)
|
|
|
|
#define VIDIOC_S_TUNER _IOW ('V', 30, struct v4l2_tuner)
|
|
|
|
#define VIDIOC_G_AUDIO _IOR ('V', 33, struct v4l2_audio)
|
|
|
|
#define VIDIOC_G_AUDIO _IOR ('V', 33, struct v4l2_audio)
|
|
|
|
#define VIDIOC_S_AUDIO _IOW ('V', 34, struct v4l2_audio)
|
|
|
|
#define VIDIOC_S_AUDIO _IOW ('V', 34, struct v4l2_audio)
|
|
|
|
#define VIDIOC_TQUERYCTRL _IOWR ('V', 36, struct v4l2_queryctrl)
|
|
|
|
#define VIDIOC_QUERYCTRL _IOWR ('V', 36, struct v4l2_queryctrl)
|
|
|
|
#define VIDIOC_TQUERYMENU _IOWR ('V', 37, struct v4l2_querymenu)
|
|
|
|
#define VIDIOC_QUERYMENU _IOWR ('V', 37, struct v4l2_querymenu)
|
|
|
|
#define VIDIOC_G_INPUT _IOR ('V', 38, int)
|
|
|
|
#define VIDIOC_G_INPUT _IOR ('V', 38, int)
|
|
|
|
#define VIDIOC_S_INPUT _IOWR ('V', 39, int)
|
|
|
|
#define VIDIOC_S_INPUT _IOWR ('V', 39, int)
|
|
|
|
#define VIDIOC_G_OUTPUT _IOR ('V', 46, int)
|
|
|
|
#define VIDIOC_G_OUTPUT _IOR ('V', 46, int)
|
|
|
@ -876,7 +876,7 @@ struct v4l2_streamparm
|
|
|
|
#define VIDIOC_S_CROP _IOW ('V', 60, struct v4l2_crop)
|
|
|
|
#define VIDIOC_S_CROP _IOW ('V', 60, struct v4l2_crop)
|
|
|
|
#define VIDIOC_G_JPEGCOMP _IOR ('V', 61, struct v4l2_jpegcompression)
|
|
|
|
#define VIDIOC_G_JPEGCOMP _IOR ('V', 61, struct v4l2_jpegcompression)
|
|
|
|
#define VIDIOC_S_JPEGCOMP _IOW ('V', 62, struct v4l2_jpegcompression)
|
|
|
|
#define VIDIOC_S_JPEGCOMP _IOW ('V', 62, struct v4l2_jpegcompression)
|
|
|
|
#define VIDIOC_TQUERYSTD _IOR ('V', 63, v4l2_std_id)
|
|
|
|
#define VIDIOC_QUERYSTD _IOR ('V', 63, v4l2_std_id)
|
|
|
|
#define VIDIOC_TRY_FMT _IOWR ('V', 64, struct v4l2_format)
|
|
|
|
#define VIDIOC_TRY_FMT _IOWR ('V', 64, struct v4l2_format)
|
|
|
|
#define VIDIOC_ENUMAUDIO _IOWR ('V', 65, struct v4l2_audio)
|
|
|
|
#define VIDIOC_ENUMAUDIO _IOWR ('V', 65, struct v4l2_audio)
|
|
|
|
#define VIDIOC_ENUMAUDOUT _IOWR ('V', 66, struct v4l2_audioout)
|
|
|
|
#define VIDIOC_ENUMAUDOUT _IOWR ('V', 66, struct v4l2_audioout)
|
|
|
|