linux V4L2子系统——v4l2的结构体(4)之ioctl, my write
创始人
2024-09-25 05:19:39
0

文章目录

  • linux V4L2子系统——v4l2的结构体(4)之ioctl
  • struct v4l2_ioctl_ops
    • 介绍
    • 定义
    • v4l2 API介绍
      • Query Capability:
      • Application Priority
      • Input/Output
      • Image Format
      • TV视频标准
      • Device Inputs and Outputs
      • Camera Control Reference
      • Cropping, composing and scaling
      • 其他杂项
    • struct v4l2_capability 与 VIDIOC_QUERYCAP
    • struct v4l2_format 与 VIDIOC_G_FMT、VIDIOC_S_FMT、VIDIOC_TRY_FMT
    • struct v4l2_requestbuffers 与 VIDIOC_REQBUFS
    • struct v4l2_buffer与 VIDIOC_QUERYBUF、VIDIOC_QBUF、VIDIOC_DQBUF
    • enum v4l2_buf_type 与 VIDIOC_STREAMON、VIDIOC_STREAMOFF
    • struct v4l2_queryctrl 与 VIDIOC_QUERYCTRL
    • ioctl的实现video_ioctl2

structv4l2_ioctl_ops

介绍

在应用程序获取视频数据的流程中,都是通过 ioctl 命令与驱动程序进行交互,结合实际需求,实现struct v4l2_ioctl_ops相关的成员即可。

定义

//源码:include/media/v4l2-ioctl.h  /**  * struct v4l2_ioctl_ops - describe operations for each V4L2 ioctl  *  * @vidioc_querycap: pointer to the function that implements  *	:ref:`VIDIOC_QUERYCAP ` ioctl  * @vidioc_enum_fmt_vid_cap: pointer to the function that implements  *	:ref:`VIDIOC_ENUM_FMT ` ioctl logic  *	for video capture in single plane mode  * @vidioc_enum_fmt_vid_overlay: pointer to the function that implements  *	:ref:`VIDIOC_ENUM_FMT ` ioctl logic  *	for video overlay  * @vidioc_enum_fmt_vid_out: pointer to the function that implements  *	:ref:`VIDIOC_ENUM_FMT ` ioctl logic  *	for video output in single plane mode  * @vidioc_enum_fmt_vid_cap_mplane: pointer to the function that implements  *	:ref:`VIDIOC_ENUM_FMT ` ioctl logic  *	for video capture in multiplane mode  * @vidioc_enum_fmt_vid_out_mplane: pointer to the function that implements  *	:ref:`VIDIOC_ENUM_FMT ` ioctl logic  *	for video output in multiplane mode  * @vidioc_enum_fmt_sdr_cap: pointer to the function that implements  *	:ref:`VIDIOC_ENUM_FMT ` ioctl logic  *	for Software Defined Radio capture  * @vidioc_enum_fmt_sdr_out: pointer to the function that implements  *	:ref:`VIDIOC_ENUM_FMT ` ioctl logic  *	for Software Defined Radio output  * @vidioc_enum_fmt_meta_cap: pointer to the function that implements  *	:ref:`VIDIOC_ENUM_FMT ` ioctl logic  *	for metadata capture  * @vidioc_g_fmt_vid_cap: pointer to the function that implements  *	:ref:`VIDIOC_G_FMT ` ioctl logic for video capture  *	in single plane mode  * @vidioc_g_fmt_vid_overlay: pointer to the function that implements  *	:ref:`VIDIOC_G_FMT ` ioctl logic for video overlay  * @vidioc_g_fmt_vid_out: pointer to the function that implements  *	:ref:`VIDIOC_G_FMT ` ioctl logic for video out  *	in single plane mode  * @vidioc_g_fmt_vid_out_overlay: pointer to the function that implements  *	:ref:`VIDIOC_G_FMT ` ioctl logic for video overlay output  * @vidioc_g_fmt_vbi_cap: pointer to the function that implements  *	:ref:`VIDIOC_G_FMT ` ioctl logic for raw VBI capture  * @vidioc_g_fmt_vbi_out: pointer to the function that implements  *	:ref:`VIDIOC_G_FMT ` ioctl logic for raw VBI output  * @vidioc_g_fmt_sliced_vbi_cap: pointer to the function that implements  *	:ref:`VIDIOC_G_FMT ` ioctl logic for sliced VBI capture  * @vidioc_g_fmt_sliced_vbi_out: pointer to the function that implements  *	:ref:`VIDIOC_G_FMT ` ioctl logic for sliced VBI output  * @vidioc_g_fmt_vid_cap_mplane: pointer to the function that implements  *	:ref:`VIDIOC_G_FMT ` ioctl logic for video capture  *	in multiple plane mode  * @vidioc_g_fmt_vid_out_mplane: pointer to the function that implements  *	:ref:`VIDIOC_G_FMT ` ioctl logic for video out  *	in multiplane plane mode  * @vidioc_g_fmt_sdr_cap: pointer to the function that implements  *	:ref:`VIDIOC_G_FMT ` ioctl logic for Software Defined  *	Radio capture  * @vidioc_g_fmt_sdr_out: pointer to the function that implements  *	:ref:`VIDIOC_G_FMT ` ioctl logic for Software Defined  *	Radio output  * @vidioc_g_fmt_meta_cap: pointer to the function that implements  *	:ref:`VIDIOC_G_FMT ` ioctl logic for metadata capture  * @vidioc_s_fmt_vid_cap: pointer to the function that implements  *	:ref:`VIDIOC_S_FMT ` ioctl logic for video capture  *	in single plane mode  * @vidioc_s_fmt_vid_overlay: pointer to the function that implements  *	:ref:`VIDIOC_S_FMT ` ioctl logic for video overlay  * @vidioc_s_fmt_vid_out: pointer to the function that implements  *	:ref:`VIDIOC_S_FMT ` ioctl logic for video out  *	in single plane mode  * @vidioc_s_fmt_vid_out_overlay: pointer to the function that implements  *	:ref:`VIDIOC_S_FMT ` ioctl logic for video overlay output  * @vidioc_s_fmt_vbi_cap: pointer to the function that implements  *	:ref:`VIDIOC_S_FMT ` ioctl logic for raw VBI capture  * @vidioc_s_fmt_vbi_out: pointer to the function that implements  *	:ref:`VIDIOC_S_FMT ` ioctl logic for raw VBI output  * @vidioc_s_fmt_sliced_vbi_cap: pointer to the function that implements  *	:ref:`VIDIOC_S_FMT ` ioctl logic for sliced VBI capture  * @vidioc_s_fmt_sliced_vbi_out: pointer to the function that implements  *	:ref:`VIDIOC_S_FMT ` ioctl logic for sliced VBI output  * @vidioc_s_fmt_vid_cap_mplane: pointer to the function that implements  *	:ref:`VIDIOC_S_FMT ` ioctl logic for video capture  *	in multiple plane mode  * @vidioc_s_fmt_vid_out_mplane: pointer to the function that implements  *	:ref:`VIDIOC_S_FMT ` ioctl logic for video out  *	in multiplane plane mode  * @vidioc_s_fmt_sdr_cap: pointer to the function that implements  *	:ref:`VIDIOC_S_FMT ` ioctl logic for Software Defined  *	Radio capture  * @vidioc_s_fmt_sdr_out: pointer to the function that implements  *	:ref:`VIDIOC_S_FMT ` ioctl logic for Software Defined  *	Radio output  * @vidioc_s_fmt_meta_cap: pointer to the function that implements  *	:ref:`VIDIOC_S_FMT ` ioctl logic for metadata capture  * @vidioc_try_fmt_vid_cap: pointer to the function that implements  *	:ref:`VIDIOC_TRY_FMT ` ioctl logic for video capture  *	in single plane mode  * @vidioc_try_fmt_vid_overlay: pointer to the function that implements  *	:ref:`VIDIOC_TRY_FMT ` ioctl logic for video overlay  * @vidioc_try_fmt_vid_out: pointer to the function that implements  *	:ref:`VIDIOC_TRY_FMT ` ioctl logic for video out  *	in single plane mode  * @vidioc_try_fmt_vid_out_overlay: pointer to the function that implements  *	:ref:`VIDIOC_TRY_FMT ` ioctl logic for video overlay  *	output  * @vidioc_try_fmt_vbi_cap: pointer to the function that implements  *	:ref:`VIDIOC_TRY_FMT ` ioctl logic for raw VBI capture  * @vidioc_try_fmt_vbi_out: pointer to the function that implements  *	:ref:`VIDIOC_TRY_FMT ` ioctl logic for raw VBI output  * @vidioc_try_fmt_sliced_vbi_cap: pointer to the function that implements  *	:ref:`VIDIOC_TRY_FMT ` ioctl logic for sliced VBI  *	capture  * @vidioc_try_fmt_sliced_vbi_out: pointer to the function that implements  *	:ref:`VIDIOC_TRY_FMT ` ioctl logic for sliced VBI output  * @vidioc_try_fmt_vid_cap_mplane: pointer to the function that implements  *	:ref:`VIDIOC_TRY_FMT ` ioctl logic for video capture  *	in multiple plane mode  * @vidioc_try_fmt_vid_out_mplane: pointer to the function that implements  *	:ref:`VIDIOC_TRY_FMT ` ioctl logic for video out  *	in multiplane plane mode  * @vidioc_try_fmt_sdr_cap: pointer to the function that implements  *	:ref:`VIDIOC_TRY_FMT ` ioctl logic for Software Defined  *	Radio capture  * @vidioc_try_fmt_sdr_out: pointer to the function that implements  *	:ref:`VIDIOC_TRY_FMT ` ioctl logic for Software Defined  *	Radio output  * @vidioc_try_fmt_meta_cap: pointer to the function that implements  *	:ref:`VIDIOC_TRY_FMT ` ioctl logic for metadata capture  * @vidioc_reqbufs: pointer to the function that implements  *	:ref:`VIDIOC_REQBUFS ` ioctl  * @vidioc_querybuf: pointer to the function that implements  *	:ref:`VIDIOC_QUERYBUF ` ioctl  * @vidioc_qbuf: pointer to the function that implements  *	:ref:`VIDIOC_QBUF ` ioctl  * @vidioc_expbuf: pointer to the function that implements  *	:ref:`VIDIOC_EXPBUF ` ioctl  * @vidioc_dqbuf: pointer to the function that implements  *	:ref:`VIDIOC_DQBUF ` ioctl  * @vidioc_create_bufs: pointer to the function that implements  *	:ref:`VIDIOC_CREATE_BUFS ` ioctl  * @vidioc_prepare_buf: pointer to the function that implements  *	:ref:`VIDIOC_PREPARE_BUF ` ioctl  * @vidioc_overlay: pointer to the function that implements  *	:ref:`VIDIOC_OVERLAY ` ioctl  * @vidioc_g_fbuf: pointer to the function that implements  *	:ref:`VIDIOC_G_FBUF ` ioctl  * @vidioc_s_fbuf: pointer to the function that implements  *	:ref:`VIDIOC_S_FBUF ` ioctl  * @vidioc_streamon: pointer to the function that implements  *	:ref:`VIDIOC_STREAMON ` ioctl  * @vidioc_streamoff: pointer to the function that implements  *	:ref:`VIDIOC_STREAMOFF ` ioctl  * @vidioc_g_std: pointer to the function that implements  *	:ref:`VIDIOC_G_STD ` ioctl  * @vidioc_s_std: pointer to the function that implements  *	:ref:`VIDIOC_S_STD ` ioctl  * @vidioc_querystd: pointer to the function that implements  *	:ref:`VIDIOC_QUERYSTD ` ioctl  * @vidioc_enum_input: pointer to the function that implements  *	:ref:`VIDIOC_ENUM_INPUT ` ioctl  * @vidioc_g_input: pointer to the function that implements  *	:ref:`VIDIOC_G_INPUT ` ioctl  * @vidioc_s_input: pointer to the function that implements  *	:ref:`VIDIOC_S_INPUT ` ioctl  * @vidioc_enum_output: pointer to the function that implements  *	:ref:`VIDIOC_ENUM_OUTPUT ` ioctl  * @vidioc_g_output: pointer to the function that implements  *	:ref:`VIDIOC_G_OUTPUT ` ioctl  * @vidioc_s_output: pointer to the function that implements  *	:ref:`VIDIOC_S_OUTPUT ` ioctl  * @vidioc_queryctrl: pointer to the function that implements  *	:ref:`VIDIOC_QUERYCTRL ` ioctl  * @vidioc_query_ext_ctrl: pointer to the function that implements  *	:ref:`VIDIOC_QUERY_EXT_CTRL ` ioctl  * @vidioc_g_ctrl: pointer to the function that implements  *	:ref:`VIDIOC_G_CTRL ` ioctl  * @vidioc_s_ctrl: pointer to the function that implements  *	:ref:`VIDIOC_S_CTRL ` ioctl  * @vidioc_g_ext_ctrls: pointer to the function that implements  *	:ref:`VIDIOC_G_EXT_CTRLS 

相关内容

热门资讯

4分钟创建(云扑克辅助器!aa... 4分钟创建(云扑克辅助器!aapoker俱乐部后台)的确是真的有挂(透视)详细教程(有挂有辅助挂)-...
九分钟德州!浙江宝宝游戏辅助工... WePoker透视辅助版本稳定性对比与推荐‌:九分钟德州!浙江宝宝游戏辅助工具(透视)外挂透明挂辅助...
3分钟能玩!阳光岛麻将有挂的(... 3分钟能玩!阳光岛麻将有挂的(透视)详细教程(2025已更新)(哔哩哔哩);(需添加指定薇13670...
透视了解!新科乐棋牌有挂的(透... 您好:新科乐棋牌有挂的 这款游戏可以开挂,确实是有挂的,需要了解加微【285696317】很多玩家在...
三分钟ai助手!心悦麻将神器(... 1、玩家可以在心悦麻将神器软件透明挂俱乐部对游戏的模式、选边、强度,还有提示、模拟局势、撤销辅助功能...
7分钟AI!wpk微扑克有辅助... 7分钟AI!wpk微扑克有辅助,太坑了其实是真的有挂,详细教程(有挂总结)-哔哩哔哩这是由厦门游乐互...
3分钟入池率(德州之星可能有外... 3分钟入池率(德州之星可能有外挂!德州wpk)原来真的有挂(透视)详细教程(有挂安卓)-哔哩哔哩;人...
五分钟私人房!大菠萝十三水有外... 五分钟私人房!大菠萝十三水有外挂的(透视)详细教程(2022已更新)(哔哩哔哩);亲,其实确实真的有...
透明教程!川麻圈有外挂的(辅助... 《川麻圈有外挂的软件透明挂》是一款多人竞技的川麻圈有外挂的辅助透视游戏,你将微扑克对手来到同一个战场...
透明肯定!大赢家棋牌神器(透视... 透明肯定!大赢家棋牌神器(透视)外挂透明挂辅助插件(有挂规律)-哔哩哔哩;1.大赢家棋牌神器 ai辅...