diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-09-05 20:36:42 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2008-09-05 20:36:42 +0000 |
commit | 97a290efcbc594c43df691bb93050389c6ac3747 (patch) | |
tree | 25e862c25d00f200dde8760488f0a81c7d1599ff /libavdevice | |
parent | 2881a656ff6a0fd5e94c7f73eb65fd1a4b32a514 (diff) | |
download | ffmpeg-97a290efcbc594c43df691bb93050389c6ac3747.tar.gz |
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
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/v4l2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 818366a715..034cdcfd98 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -99,6 +99,14 @@ static struct fmt_map fmt_conversion_table[] = { .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, }, |