[FFmpeg-cvslog] imgconvert: add planar RGB formats to pix_fmt_info
Michael Niedermayer
git at videolan.org
Tue Jul 3 19:06:36 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Jul 3 19:00:01 2012 +0200| [4251a0b84ce4745048ced24057726c65b926e6b4] | committer: Michael Niedermayer
imgconvert: add planar RGB formats to pix_fmt_info
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4251a0b84ce4745048ced24057726c65b926e6b4
---
libavcodec/imgconvert.c | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 04e83c9..584a3ef 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -352,6 +352,40 @@ static const PixFmtInfo pix_fmt_info[PIX_FMT_NB] = {
[PIX_FMT_RGBA] = {
.color_type = FF_COLOR_RGB,
},
+
+ [PIX_FMT_GBRP] = {
+ .color_type = FF_COLOR_RGB,
+ },
+ [PIX_FMT_GBRP9BE] = {
+ .color_type = FF_COLOR_RGB,
+ },
+ [PIX_FMT_GBRP9LE] = {
+ .color_type = FF_COLOR_RGB,
+ },
+ [PIX_FMT_GBRP10BE] = {
+ .color_type = FF_COLOR_RGB,
+ },
+ [PIX_FMT_GBRP10LE] = {
+ .color_type = FF_COLOR_RGB,
+ },
+ [PIX_FMT_GBRP12BE] = {
+ .color_type = FF_COLOR_RGB,
+ },
+ [PIX_FMT_GBRP12LE] = {
+ .color_type = FF_COLOR_RGB,
+ },
+ [PIX_FMT_GBRP14BE] = {
+ .color_type = FF_COLOR_RGB,
+ },
+ [PIX_FMT_GBRP14LE] = {
+ .color_type = FF_COLOR_RGB,
+ },
+ [PIX_FMT_GBRP16BE] = {
+ .color_type = FF_COLOR_RGB,
+ },
+ [PIX_FMT_GBRP16LE] = {
+ .color_type = FF_COLOR_RGB,
+ },
};
void avcodec_get_chroma_sub_sample(enum PixelFormat pix_fmt, int *h_shift, int *v_shift)
More information about the ffmpeg-cvslog
mailing list