Developer World
Spresense SDK Library v3.2.0-ebc0364
IOCTL commands
Collaboration diagram for IOCTL commands:

Macros

#define VIDIOC_QUERYCAP   _VIDIOC(0x0000)
 
#define VIDIOC_ENUM_FMT   _VIDIOC(0x0002)
 
#define VIDIOC_G_FMT   _VIDIOC(0x0004)
 
#define VIDIOC_S_FMT   _VIDIOC(0x0005)
 
#define VIDIOC_REQBUFS   _VIDIOC(0x0008)
 
#define VIDIOC_QUERYBUF   _VIDIOC(0x0009)
 
#define VIDIOC_G_FBUF   _VIDIOC(0x000a)
 
#define VIDIOC_S_FBUF   _VIDIOC(0x000b)
 
#define VIDIOC_OVERLAY   _VIDIOC(0x000e)
 
#define VIDIOC_QBUF   _VIDIOC(0x000f)
 
#define VIDIOC_EXPBUF   _VIDIOC(0x0010)
 
#define VIDIOC_DQBUF   _VIDIOC(0x0011)
 
#define VIDIOC_STREAMON   _VIDIOC(0x0012)
 
#define VIDIOC_STREAMOFF   _VIDIOC(0x0013)
 
#define VIDIOC_G_PARM   _VIDIOC(0x0015)
 
#define VIDIOC_S_PARM   _VIDIOC(0x0016)
 
#define VIDIOC_G_STD   _VIDIOC(0x0017)
 
#define VIDIOC_S_STD   _VIDIOC(0x0018)
 
#define VIDIOC_ENUMSTD   _VIDIOC(0x0019)
 
#define VIDIOC_ENUMINPUT   _VIDIOC(0x001a)
 
#define VIDIOC_G_CTRL   _VIDIOC(0x001b)
 
#define VIDIOC_S_CTRL   _VIDIOC(0x001c)
 
#define VIDIOC_QUERYCTRL   _VIDIOC(0x0024)
 
#define VIDIOC_QUERYMENU   _VIDIOC(0x0025)
 
#define VIDIOC_G_INPUT   _VIDIOC(0x0026)
 
#define VIDIOC_S_INPUT   _VIDIOC(0x0027)
 
#define VIDIOC_QUERYSTD   _VIDIOC(0x003f)
 
#define VIDIOC_TRY_FMT   _VIDIOC(0x0040)
 
#define VIDIOC_G_EXT_CTRLS   _VIDIOC(0x0047)
 
#define VIDIOC_S_EXT_CTRLS   _VIDIOC(0x0048)
 
#define VIDIOC_TRY_EXT_CTRLS   _VIDIOC(0x0049)
 
#define VIDIOC_ENUM_FRAMESIZES   _VIDIOC(0x004a)
 
#define VIDIOC_ENUM_FRAMEINTERVALS   _VIDIOC(0x004b)
 
#define VIDIOC_G_SELECTION   _VIDIOC(0x005e)
 
#define VIDIOC_S_SELECTION   _VIDIOC(0x005f)
 
#define VIDIOC_QUERY_EXT_CTRL   _VIDIOC(0x00c0)
 
#define VIDIOC_CANCEL_DQBUF   _VIDIOC(0x00c1)
 
#define VIDIOC_DO_HALFPUSH   _VIDIOC(0x00c2)
 
#define VIDIOC_TAKEPICT_START   _VIDIOC(0x00c3)
 
#define VIDIOC_TAKEPICT_STOP   _VIDIOC(0x00c4)
 
#define V4SIOC_QUERY_EXT_CTRL_SCENE   _VIDIOC(0x00c5)
 
#define V4SIOC_QUERYMENU_SCENE   _VIDIOC(0x00c6)
 
#define V4SIOC_G_EXT_CTRLS_SCENE   _VIDIOC(0x00c7)
 
#define V4SIOC_S_EXT_CTRLS_SCENE   _VIDIOC(0x00c8)
 

Detailed Description

Macro Definition Documentation

◆ VIDIOC_QUERYCAP

#define VIDIOC_QUERYCAP   _VIDIOC(0x0000)

Query device capability

Parameters
[in/out]arg Address pointing to struct v4l2_capability

◆ VIDIOC_ENUM_FMT

#define VIDIOC_ENUM_FMT   _VIDIOC(0x0002)

Enumerate the formats supported by device

Parameters
[in/out]arg Address pointing to struct v4l2_fmtdesc

◆ VIDIOC_G_FMT

#define VIDIOC_G_FMT   _VIDIOC(0x0004)

Get the data format

Parameters
[in]argAddress pointing to struct v4l2_format

◆ VIDIOC_S_FMT

#define VIDIOC_S_FMT   _VIDIOC(0x0005)

Set the data format

Parameters
[in]argAddress pointing to struct v4l2_format

◆ VIDIOC_REQBUFS

#define VIDIOC_REQBUFS   _VIDIOC(0x0008)

Initiate user pointer I/O

Parameters
[in]argAddress pointing to struct v4l2_requestbuffers

◆ VIDIOC_QBUF

#define VIDIOC_QBUF   _VIDIOC(0x000f)

Enqueue an empty buffer

Parameters
[in]argAddress pointing to struct v4l2_buffer

◆ VIDIOC_DQBUF

#define VIDIOC_DQBUF   _VIDIOC(0x0011)

Dequeue a filled buffer

Parameters
[in]argAddress pointing to struct v4l2_buffer

◆ VIDIOC_STREAMON

#define VIDIOC_STREAMON   _VIDIOC(0x0012)

Start streaming

Parameters
[in]argAddress pointing to enum v4l2_buf_type

◆ VIDIOC_STREAMOFF

#define VIDIOC_STREAMOFF   _VIDIOC(0x0013)

Stop streaming

Parameters
[in]argAddress pointing to enum v4l2_buf_type

◆ VIDIOC_G_PARM

#define VIDIOC_G_PARM   _VIDIOC(0x0015)

Get streaming parameters

Parameters
[in]argAddress pointing to struct v4l2_streamparm

◆ VIDIOC_S_PARM

#define VIDIOC_S_PARM   _VIDIOC(0x0016)

Set streaming parameters

Parameters
[in]argAddress pointing to struct v4l2_streamparm

◆ VIDIOC_G_CTRL

#define VIDIOC_G_CTRL   _VIDIOC(0x001b)

Get current control value. This request is a special case of VIDIOC_G_EXT_CTRLS.

Parameters
[in]argAddress pointing to struct v4l2_control

◆ VIDIOC_S_CTRL

#define VIDIOC_S_CTRL   _VIDIOC(0x001c)

Set control value. This request is a special case of VIDIOC_S_EXT_CTRLS.

Parameters
[in]argAddress pointing to struct v4l2_control

◆ VIDIOC_QUERYCTRL

#define VIDIOC_QUERYCTRL   _VIDIOC(0x0024)

Query control

Parameters
[in]argAddress pointing to struct v4l2_queryctrl

◆ VIDIOC_QUERYMENU

#define VIDIOC_QUERYMENU   _VIDIOC(0x0025)

Query menu

Parameters
[in]argAddress pointing to struct v4l2_querymenu

◆ VIDIOC_TRY_FMT

#define VIDIOC_TRY_FMT   _VIDIOC(0x0040)

Try format

Parameters
[in/out]arg Address pointing to struct #v4l2_try_pix_format

◆ VIDIOC_G_EXT_CTRLS

#define VIDIOC_G_EXT_CTRLS   _VIDIOC(0x0047)

Get current control value

Parameters
[in/out]arg Address pointing to struct v4l2_ext_controls

◆ VIDIOC_S_EXT_CTRLS

#define VIDIOC_S_EXT_CTRLS   _VIDIOC(0x0048)

Set control value

Parameters
[in/out]arg Address pointing to struct v4l2_ext_controls

◆ VIDIOC_ENUM_FRAMESIZES

#define VIDIOC_ENUM_FRAMESIZES   _VIDIOC(0x004a)

Enumerate the framesizes supported by device

Parameters
[in/out]arg Address pointing to struct v4l2_frmsizeenum

◆ VIDIOC_ENUM_FRAMEINTERVALS

#define VIDIOC_ENUM_FRAMEINTERVALS   _VIDIOC(0x004b)

Enumerate the frameintervals supported by device

Parameters
[in/out]arg Address pointing to struct v4l2_frmivalenum

◆ VIDIOC_G_SELECTION

#define VIDIOC_G_SELECTION   _VIDIOC(0x005e)

Get clip

Parameters
[out]argAddress pointing to struct v4l2_selection

◆ VIDIOC_S_SELECTION

#define VIDIOC_S_SELECTION   _VIDIOC(0x005f)

Set clip

Parameters
[in/out]arg Address pointing to struct v4l2_selection

◆ VIDIOC_QUERY_EXT_CTRL

#define VIDIOC_QUERY_EXT_CTRL   _VIDIOC(0x00c0)

Query control

Parameters
[in/out]arg Address pointing to struct v4l2_query_ext_ctrl

◆ VIDIOC_CANCEL_DQBUF

#define VIDIOC_CANCEL_DQBUF   _VIDIOC(0x00c1)

Cancel DQBUF

Parameters
[in]argAddress pointing to struct v4l2_buf_type

◆ VIDIOC_DO_HALFPUSH

#define VIDIOC_DO_HALFPUSH   _VIDIOC(0x00c2)

Do halfpush

Parameters
[in]argAddress pointing to struct bool

◆ VIDIOC_TAKEPICT_START

#define VIDIOC_TAKEPICT_START   _VIDIOC(0x00c3)

Start taking picture

Parameters
[in]argThe number of times the picture is taken. Type is int32_t, not address pointer.
0 or negative value means continuing until VIDIOC_TAKEPICT_STOP.
Positive value(to be supported) means continuing up to a specified number of times or until VIDIOC_TAKEPICT_STOP.

◆ VIDIOC_TAKEPICT_STOP

#define VIDIOC_TAKEPICT_STOP   _VIDIOC(0x00c4)

Stop taking picture

Parameters
[in]argAddress pointing to bool

◆ V4SIOC_QUERY_EXT_CTRL_SCENE

#define V4SIOC_QUERY_EXT_CTRL_SCENE   _VIDIOC(0x00c5)

Query control for scene parameter

Parameters
[in/out]arg Address pointing to struct v4s_query_ext_ctrl_scene

◆ V4SIOC_QUERYMENU_SCENE

#define V4SIOC_QUERYMENU_SCENE   _VIDIOC(0x00c6)

Query menu for scene parameter

Parameters
[in/out]arg Address pointing to struct v4s_querymenu_scene

◆ V4SIOC_G_EXT_CTRLS_SCENE

#define V4SIOC_G_EXT_CTRLS_SCENE   _VIDIOC(0x00c7)

Get current control value

Parameters
[in/out]arg Address pointing to struct v4s_ext_controls_scene

◆ V4SIOC_S_EXT_CTRLS_SCENE

#define V4SIOC_S_EXT_CTRLS_SCENE   _VIDIOC(0x00c8)

Set control value

Parameters
[in/out]arg Address pointing to struct v4s_ext_controls_scene