lavd/v4l2-common: Add an entry for Z16.

pull/310/head
Carl Eugen Hoyos 6 years ago
parent b073fb9eea
commit e704070f61
  1. 3
      libavdevice/v4l2-common.c

@ -45,6 +45,9 @@ const struct fmt_map ff_fmt_conversion_table[] = {
{ AV_PIX_FMT_GRAY8, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_GREY },
#ifdef V4L2_PIX_FMT_Y16
{ AV_PIX_FMT_GRAY16LE,AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_Y16 },
#endif
#ifdef V4L2_PIX_FMT_Z16
{ 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 },
{ AV_PIX_FMT_NONE, AV_CODEC_ID_MJPEG, V4L2_PIX_FMT_MJPEG },

Loading…
Cancel
Save