24#include <linux/videodev2.h>
28#define V4L2_FMT(x) V4L2_PIX_FMT_##x
29#define AV_CODEC(x) AV_CODEC_ID_##x
30#define AV_FMT(x) AV_PIX_FMT_##x
56#ifdef V4L2_PIX_FMT_SRGGB8
62#ifdef V4L2_PIX_FMT_Y16
65#ifdef V4L2_PIX_FMT_NV12M
68#ifdef V4L2_PIX_FMT_NV21M
71#ifdef V4L2_PIX_FMT_YUV420M
74#ifdef V4L2_PIX_FMT_NV16M
77#ifdef V4L2_PIX_FMT_H263
80#ifdef V4L2_PIX_FMT_H264
83#ifdef V4L2_PIX_FMT_MPEG4
86#ifdef V4L2_PIX_FMT_CPIA1
92#ifdef V4L2_PIX_FMT_MPEG1
95#ifdef V4L2_PIX_FMT_MPEG2
98#ifdef V4L2_PIX_FMT_VP8
101#ifdef V4L2_PIX_FMT_VP9
104#ifdef V4L2_PIX_FMT_HEVC
107#ifdef V4L2_PIX_FMT_VC1_ANNEX_G
136 if (
fmt_map[
i].avcodec == avcodec &&
#define i(width, name, range_min, range_max)
AVCodecID
Identify the syntax and semantics of the bitstream.
AVPixelFormat
Pixel format.
#define FF_ARRAY_ELEMS(a)
enum AVPixelFormat ff_v4l2_format_v4l2_to_avfmt(uint32_t v4l2_fmt, enum AVCodecID avcodec)
uint32_t ff_v4l2_format_avcodec_to_v4l2(enum AVCodecID avcodec)
uint32_t ff_v4l2_format_avfmt_to_v4l2(enum AVPixelFormat avfmt)