aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-03 19:00:01 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-03 19:03:26 +0200
commit4251a0b84ce4745048ced24057726c65b926e6b4 (patch)
treeb351000dce44967c4b8b890b42b6b89ea5f6b522
parent6ca8ef51895ea134d0292addbc9ebaf0753e698b (diff)
downloadffmpeg-4251a0b84ce4745048ced24057726c65b926e6b4.tar.gz
imgconvert: add planar RGB formats to pix_fmt_info
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/imgconvert.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 04e83c91b0..584a3ef652 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)