diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2011-11-07 03:30:10 +0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-11-24 20:13:50 +0400 |
commit | bd97b2e1ce713a4886d909f71b6f1f5403446f53 (patch) | |
tree | 301abbfbc400fcd00bcdca67252c08e4346a3e87 /libavutil/pixdesc.c | |
parent | bbb46f3ec7128d8a624f2aa5b4f99ec44c0b9567 (diff) |
pixfmt: add planar RGB formats.
Diffstat (limited to 'libavutil/pixdesc.c')
-rw-r--r-- | libavutil/pixdesc.c | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index e0616df828..5864cdba35 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -967,6 +967,86 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = { {0,1,2,0,7}, /* A */ }, }, + [PIX_FMT_GBRP] = { + .name = "gbrp", + .nb_components= 3, + .log2_chroma_w= 0, + .log2_chroma_h= 0, + .comp = { + {0,0,1,0,7}, /* G */ + {1,0,1,0,7}, /* B */ + {2,0,1,0,7}, /* R */ + }, + }, + [PIX_FMT_GBRP9LE] = { + .name = "gbrp9le", + .nb_components= 3, + .log2_chroma_w= 0, + .log2_chroma_h= 0, + .comp = { + {0,1,1,0,8}, /* G */ + {1,1,1,0,8}, /* B */ + {2,1,1,0,8}, /* R */ + }, + }, + [PIX_FMT_GBRP9BE] = { + .name = "gbrp9be", + .nb_components= 3, + .log2_chroma_w= 0, + .log2_chroma_h= 0, + .comp = { + {0,1,1,0,8}, /* G */ + {1,1,1,0,8}, /* B */ + {2,1,1,0,8}, /* R */ + }, + .flags = PIX_FMT_BE, + }, + [PIX_FMT_GBRP10LE] = { + .name = "gbrp10le", + .nb_components= 3, + .log2_chroma_w= 0, + .log2_chroma_h= 0, + .comp = { + {0,1,1,0,9}, /* G */ + {1,1,1,0,9}, /* B */ + {2,1,1,0,9}, /* R */ + }, + }, + [PIX_FMT_GBRP10BE] = { + .name = "gbrp10be", + .nb_components= 3, + .log2_chroma_w= 0, + .log2_chroma_h= 0, + .comp = { + {0,1,1,0,9}, /* G */ + {1,1,1,0,9}, /* B */ + {2,1,1,0,9}, /* R */ + }, + .flags = PIX_FMT_BE, + }, + [PIX_FMT_GBRP16LE] = { + .name = "gbrp16le", + .nb_components= 3, + .log2_chroma_w= 0, + .log2_chroma_h= 0, + .comp = { + {0,1,1,0,15}, /* G */ + {1,1,1,0,15}, /* B */ + {2,1,1,0,15}, /* R */ + }, + }, + [PIX_FMT_GBRP16BE] = { + .name = "gbrp16be", + .nb_components= 3, + .log2_chroma_w= 0, + .log2_chroma_h= 0, + .comp = { + {0,1,1,0,15}, /* G */ + {1,1,1,0,15}, /* B */ + {2,1,1,0,15}, /* R */ + }, + .flags = PIX_FMT_BE, + }, }; static enum PixelFormat get_pix_fmt_internal(const char *name) |