diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2024-06-26 13:19:06 +0200 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2024-07-01 13:43:07 +0200 |
commit | cc6fb1643d7e14c6f76a48e0cffad96394cb197c (patch) | |
tree | 1cefc46fe8425b2c382bccab72521fcd9c39bde0 /libavdevice | |
parent | b818dff8d8e16f0831a379a5cdc15e813474a841 (diff) | |
download | ffmpeg-cc6fb1643d7e14c6f76a48e0cffad96394cb197c.tar.gz |
avdevice/v4l2: add NV16 and NV24 pixel formats
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/v4l2-common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavdevice/v4l2-common.c b/libavdevice/v4l2-common.c index b5b4448a31..ebfd2b6d8d 100644 --- a/libavdevice/v4l2-common.c +++ b/libavdevice/v4l2-common.c @@ -50,6 +50,12 @@ const struct fmt_map ff_fmt_conversion_table[] = { { AV_PIX_FMT_GRAY16LE,AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_Z16 }, #endif { AV_PIX_FMT_NV12, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_NV12 }, +#ifdef V4L2_PIX_FMT_NV16 + { AV_PIX_FMT_NV16, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_NV16 }, +#endif +#ifdef V4L2_PIX_FMT_NV24 + { AV_PIX_FMT_NV24, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_NV24 }, +#endif { AV_PIX_FMT_NONE, AV_CODEC_ID_MJPEG, V4L2_PIX_FMT_MJPEG }, { AV_PIX_FMT_NONE, AV_CODEC_ID_MJPEG, V4L2_PIX_FMT_JPEG }, #ifdef V4L2_PIX_FMT_H264 |