diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-02-23 13:47:18 +0400 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-02-23 16:42:41 +0400 |
commit | 5642dd41ccb91284f2f606c62b21acba2262fbf9 (patch) | |
tree | 97bd52b07a289114aa0fdf2160e85ac8b100dd5c /libavdevice/v4l2-common.c | |
parent | dd5abb0bac214a4e3c526cdf93d05fa80ad0adca (diff) |
Add more Bayer colour spaces to the video4linux2 device wrapper.
Diffstat (limited to 'libavdevice/v4l2-common.c')
-rw-r--r-- | libavdevice/v4l2-common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavdevice/v4l2-common.c b/libavdevice/v4l2-common.c index 1ab67e368f..c4c75d7b6d 100644 --- a/libavdevice/v4l2-common.c +++ b/libavdevice/v4l2-common.c @@ -49,7 +49,12 @@ const struct fmt_map avpriv_fmt_conversion_table[] = { #ifdef V4L2_PIX_FMT_CPIA1 { AV_PIX_FMT_NONE, AV_CODEC_ID_CPIA, V4L2_PIX_FMT_CPIA1 }, #endif +#ifdef V4L2_PIX_FMT_SRGGB8 + { AV_PIX_FMT_BAYER_BGGR8, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_SBGGR8 }, + { AV_PIX_FMT_BAYER_GBRG8, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_SGBRG8 }, + { AV_PIX_FMT_BAYER_GRBG8, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_SGRBG8 }, { AV_PIX_FMT_BAYER_RGGB8, AV_CODEC_ID_RAWVIDEO, V4L2_PIX_FMT_SRGGB8 }, +#endif { AV_PIX_FMT_NONE, AV_CODEC_ID_NONE, 0 }, }; |