Add support for the PIX_FMT_RGB555 and PIX_FMT_RGB565 pixel formats in

video4linux2 devices.
Patch by Jean Delvare (khali AT linux-fr DOT org)

Originally committed as revision 15218 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Jean Delvare 17 years ago committed by Luca Abeni
parent 2881a656ff
commit 97a290efcb
  1. 8
      libavdevice/v4l2.c

@ -98,6 +98,14 @@ static struct fmt_map fmt_conversion_table[] = {
.ff_fmt = PIX_FMT_YUV410P,
.v4l2_fmt = V4L2_PIX_FMT_YUV410,
},
{
.ff_fmt = PIX_FMT_RGB555,
.v4l2_fmt = V4L2_PIX_FMT_RGB555,
},
{
.ff_fmt = PIX_FMT_RGB565,
.v4l2_fmt = V4L2_PIX_FMT_RGB565,
},
{
.ff_fmt = PIX_FMT_BGR24,
.v4l2_fmt = V4L2_PIX_FMT_BGR24,

Loading…
Cancel
Save