V4L2结构体手册,2021年Android笔试题总结

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

};

#define V4L2_CAP_VIDEO_CAPTURE 0x00000001

#define V4L2_CAP_VIDEO_OUTPUT 0x00000002

#define V4L2_CAP_VIDEO_OVERLAY 0x00000004

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_CAP_VBI_CAPTURE 0x00000010

#define V4L2_CAP_VBI_OUTPUT 0x00000020

#define V4L2_CAP_SLICED_VBI_CAPTURE 0x00000040

#define V4L2_CAP_SLICED_VBI_OUTPUT 0x00000080

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_CAP_RDS_CAPTURE 0x00000100

#define V4L2_CAP_VIDEO_OUTPUT_OVERLAY 0x00000200

#define V4L2_CAP_HW_FREQ_SEEK 0x00000400

#define V4L2_CAP_RDS_OUTPUT 0x00000800

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_CAP_VIDEO_CAPTURE_MPLANE 0x00001000

#define V4L2_CAP_VIDEO_OUTPUT_MPLANE 0x00002000

#define V4L2_CAP_VIDEO_M2M_MPLANE 0x00004000

#define V4L2_CAP_VIDEO_M2M 0x00008000

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_CAP_TUNER 0x00010000

#define V4L2_CAP_AUDIO 0x00020000

#define V4L2_CAP_RADIO 0x00040000

#define V4L2_CAP_MODULATOR 0x00080000

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_CAP_SDR_CAPTURE 0x00100000

#define V4L2_CAP_EXT_PIX_FORMAT 0x00200000

#define V4L2_CAP_READWRITE 0x01000000

#define V4L2_CAP_ASYNCIO 0x02000000

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_CAP_STREAMING 0x04000000

#define V4L2_CAP_DEVICE_CAPS 0x80000000

struct v4l2_pix_format {

__u32 width;

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

__u32 height;

__u32 pixelformat;

__u32 field;

__u32 bytesperline;

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

__u32 sizeimage;

__u32 colorspace;

__u32 priv;

__u32 flags;

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

};

#define V4L2_PIX_FMT_RGB332 v4l2_fourcc(‘R’, ‘G’, ‘B’, ‘1’)

#define V4L2_PIX_FMT_RGB444 v4l2_fourcc(‘R’, ‘4’, ‘4’, ‘4’)

#define V4L2_PIX_FMT_ARGB444 v4l2_fourcc(‘A’, ‘R’, ‘1’, ‘2’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_XRGB444 v4l2_fourcc(‘X’, ‘R’, ‘1’, ‘2’)

#define V4L2_PIX_FMT_RGB555 v4l2_fourcc(‘R’, ‘G’, ‘B’, ‘O’)

#define V4L2_PIX_FMT_ARGB555 v4l2_fourcc(‘A’, ‘R’, ‘1’, ‘5’)

#define V4L2_PIX_FMT_XRGB555 v4l2_fourcc(‘X’, ‘R’, ‘1’, ‘5’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_RGB565 v4l2_fourcc(‘R’, ‘G’, ‘B’, ‘P’)

#define V4L2_PIX_FMT_RGB555X v4l2_fourcc(‘R’, ‘G’, ‘B’, ‘Q’)

#define V4L2_PIX_FMT_ARGB555X v4l2_fourcc_be(‘A’, ‘R’, ‘1’, ‘5’)

#define V4L2_PIX_FMT_XRGB555X v4l2_fourcc_be(‘X’, ‘R’, ‘1’, ‘5’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_RGB565X v4l2_fourcc(‘R’, ‘G’, ‘B’, ‘R’)

#define V4L2_PIX_FMT_BGR666 v4l2_fourcc(‘B’, ‘G’, ‘R’, ‘H’)

#define V4L2_PIX_FMT_BGR24 v4l2_fourcc(‘B’, ‘G’, ‘R’, ‘3’)

#define V4L2_PIX_FMT_RGB24 v4l2_fourcc(‘R’, ‘G’, ‘B’, ‘3’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_BGR32 v4l2_fourcc(‘B’, ‘G’, ‘R’, ‘4’)

#define V4L2_PIX_FMT_ABGR32 v4l2_fourcc(‘A’, ‘R’, ‘2’, ‘4’)

#define V4L2_PIX_FMT_XBGR32 v4l2_fourcc(‘X’, ‘R’, ‘2’, ‘4’)

#define V4L2_PIX_FMT_RGB32 v4l2_fourcc(‘R’, ‘G’, ‘B’, ‘4’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_ARGB32 v4l2_fourcc(‘B’, ‘A’, ‘2’, ‘4’)

#define V4L2_PIX_FMT_XRGB32 v4l2_fourcc(‘B’, ‘X’, ‘2’, ‘4’)

#define V4L2_PIX_FMT_GREY v4l2_fourcc(‘G’, ‘R’, ‘E’, ‘Y’)

#define V4L2_PIX_FMT_Y4 v4l2_fourcc(‘Y’, ‘0’, ‘4’, ’ ')

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_Y6 v4l2_fourcc(‘Y’, ‘0’, ‘6’, ’ ')

#define V4L2_PIX_FMT_Y10 v4l2_fourcc(‘Y’, ‘1’, ‘0’, ’ ')

#define V4L2_PIX_FMT_Y12 v4l2_fourcc(‘Y’, ‘1’, ‘2’, ’ ')

#define V4L2_PIX_FMT_Y16 v4l2_fourcc(‘Y’, ‘1’, ‘6’, ’ ')

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_Y10BPACK v4l2_fourcc(‘Y’, ‘1’, ‘0’, ‘B’)

#define V4L2_PIX_FMT_PAL8 v4l2_fourcc(‘P’, ‘A’, ‘L’, ‘8’)

#define V4L2_PIX_FMT_UV8 v4l2_fourcc(‘U’, ‘V’, ‘8’, ’ ')

#define V4L2_PIX_FMT_YVU410 v4l2_fourcc(‘Y’, ‘V’, ‘U’, ‘9’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_YVU420 v4l2_fourcc(‘Y’, ‘V’, ‘1’, ‘2’)

#define V4L2_PIX_FMT_YUYV v4l2_fourcc(‘Y’, ‘U’, ‘Y’, ‘V’)

#define V4L2_PIX_FMT_YYUV v4l2_fourcc(‘Y’, ‘Y’, ‘U’, ‘V’)

#define V4L2_PIX_FMT_YVYU v4l2_fourcc(‘Y’, ‘V’, ‘Y’, ‘U’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_UYVY v4l2_fourcc(‘U’, ‘Y’, ‘V’, ‘Y’)

#define V4L2_PIX_FMT_VYUY v4l2_fourcc(‘V’, ‘Y’, ‘U’, ‘Y’)

#define V4L2_PIX_FMT_YUV422P v4l2_fourcc(‘4’, ‘2’, ‘2’, ‘P’)

#define V4L2_PIX_FMT_YUV411P v4l2_fourcc(‘4’, ‘1’, ‘1’, ‘P’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_Y41P v4l2_fourcc(‘Y’, ‘4’, ‘1’, ‘P’)

#define V4L2_PIX_FMT_YUV444 v4l2_fourcc(‘Y’, ‘4’, ‘4’, ‘4’)

#define V4L2_PIX_FMT_YUV555 v4l2_fourcc(‘Y’, ‘U’, ‘V’, ‘O’)

#define V4L2_PIX_FMT_YUV565 v4l2_fourcc(‘Y’, ‘U’, ‘V’, ‘P’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_YUV32 v4l2_fourcc(‘Y’, ‘U’, ‘V’, ‘4’)

#define V4L2_PIX_FMT_YUV410 v4l2_fourcc(‘Y’, ‘U’, ‘V’, ‘9’)

#define V4L2_PIX_FMT_YUV420 v4l2_fourcc(‘Y’, ‘U’, ‘1’, ‘2’)

#define V4L2_PIX_FMT_HI240 v4l2_fourcc(‘H’, ‘I’, ‘2’, ‘4’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_HM12 v4l2_fourcc(‘H’, ‘M’, ‘1’, ‘2’)

#define V4L2_PIX_FMT_M420 v4l2_fourcc(‘M’, ‘4’, ‘2’, ‘0’)

#define V4L2_PIX_FMT_NV12 v4l2_fourcc(‘N’, ‘V’, ‘1’, ‘2’)

#define V4L2_PIX_FMT_NV21 v4l2_fourcc(‘N’, ‘V’, ‘2’, ‘1’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_NV16 v4l2_fourcc(‘N’, ‘V’, ‘1’, ‘6’)

#define V4L2_PIX_FMT_NV61 v4l2_fourcc(‘N’, ‘V’, ‘6’, ‘1’)

#define V4L2_PIX_FMT_NV24 v4l2_fourcc(‘N’, ‘V’, ‘2’, ‘4’)

#define V4L2_PIX_FMT_NV42 v4l2_fourcc(‘N’, ‘V’, ‘4’, ‘2’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_NV12M v4l2_fourcc(‘N’, ‘M’, ‘1’, ‘2’)

#define V4L2_PIX_FMT_NV21M v4l2_fourcc(‘N’, ‘M’, ‘2’, ‘1’)

#define V4L2_PIX_FMT_NV16M v4l2_fourcc(‘N’, ‘M’, ‘1’, ‘6’)

#define V4L2_PIX_FMT_NV61M v4l2_fourcc(‘N’, ‘M’, ‘6’, ‘1’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_NV12MT v4l2_fourcc(‘T’, ‘M’, ‘1’, ‘2’)

#define V4L2_PIX_FMT_NV12MT_16X16 v4l2_fourcc(‘V’, ‘M’, ‘1’, ‘2’)

#define V4L2_PIX_FMT_YUV420M v4l2_fourcc(‘Y’, ‘M’, ‘1’, ‘2’)

#define V4L2_PIX_FMT_YVU420M v4l2_fourcc(‘Y’, ‘M’, ‘2’, ‘1’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_SBGGR8 v4l2_fourcc(‘B’, ‘A’, ‘8’, ‘1’)

#define V4L2_PIX_FMT_SGBRG8 v4l2_fourcc(‘G’, ‘B’, ‘R’, ‘G’)

#define V4L2_PIX_FMT_SGRBG8 v4l2_fourcc(‘G’, ‘R’, ‘B’, ‘G’)

#define V4L2_PIX_FMT_SRGGB8 v4l2_fourcc(‘R’, ‘G’, ‘G’, ‘B’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_SBGGR10 v4l2_fourcc(‘B’, ‘G’, ‘1’, ‘0’)

#define V4L2_PIX_FMT_SGBRG10 v4l2_fourcc(‘G’, ‘B’, ‘1’, ‘0’)

#define V4L2_PIX_FMT_SGRBG10 v4l2_fourcc(‘B’, ‘A’, ‘1’, ‘0’)

#define V4L2_PIX_FMT_SRGGB10 v4l2_fourcc(‘R’, ‘G’, ‘1’, ‘0’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_SBGGR12 v4l2_fourcc(‘B’, ‘G’, ‘1’, ‘2’)

#define V4L2_PIX_FMT_SGBRG12 v4l2_fourcc(‘G’, ‘B’, ‘1’, ‘2’)

#define V4L2_PIX_FMT_SGRBG12 v4l2_fourcc(‘B’, ‘A’, ‘1’, ‘2’)

#define V4L2_PIX_FMT_SRGGB12 v4l2_fourcc(‘R’, ‘G’, ‘1’, ‘2’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_SBGGR10ALAW8 v4l2_fourcc(‘a’, ‘B’, ‘A’, ‘8’)

#define V4L2_PIX_FMT_SGBRG10ALAW8 v4l2_fourcc(‘a’, ‘G’, ‘A’, ‘8’)

#define V4L2_PIX_FMT_SGRBG10ALAW8 v4l2_fourcc(‘a’, ‘g’, ‘A’, ‘8’)

#define V4L2_PIX_FMT_SRGGB10ALAW8 v4l2_fourcc(‘a’, ‘R’, ‘A’, ‘8’)

/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */

#define V4L2_PIX_FMT_SBGGR10DPCM8 v4l2_fourcc(‘b’, ‘B’, ‘A’, ‘8’)

#define V4L2_PIX_FMT_SGBRG10DPCM8 v4l2_fourcc(‘b’, ‘G’, ‘A’, ‘8’)

#define V4L2_PIX_FMT_SGRBG10DPCM8 v4l2_fourcc(‘B’, ‘D’, ‘1’, ‘0’)

#define V4L2_PIX_FMT_SRGGB10DPCM8

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值