summaryrefslogtreecommitdiff
path: root/libavutil/pixdesc.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-08-05 14:19:26 +0200
committerPaul B Mahol <onemda@gmail.com>2017-08-07 13:06:51 +0200
commitab6d89d7ee5cdb4b5e58efbf5bbc2517e39aa705 (patch)
treedf22194ffa8d3e31d37b404a337e025f209c26a5 /libavutil/pixdesc.c
parent5621a99e27511f9eabcf097764cb5ca554aac639 (diff)
libavutil: add GRAY9 pixel format
Diffstat (limited to 'libavutil/pixdesc.c')
-rw-r--r--libavutil/pixdesc.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
index cea5b0ffd9..9f1c21cc94 100644
--- a/libavutil/pixdesc.c
+++ b/libavutil/pixdesc.c
@@ -560,6 +560,27 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
},
.flags = AV_PIX_FMT_FLAG_RGB,
},
+ [AV_PIX_FMT_GRAY9BE] = {
+ .name = "gray9be",
+ .nb_components = 1,
+ .log2_chroma_w = 0,
+ .log2_chroma_h = 0,
+ .comp = {
+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
+ },
+ .flags = AV_PIX_FMT_FLAG_BE,
+ .alias = "y9be",
+ },
+ [AV_PIX_FMT_GRAY9LE] = {
+ .name = "gray9le",
+ .nb_components = 1,
+ .log2_chroma_w = 0,
+ .log2_chroma_h = 0,
+ .comp = {
+ { 0, 2, 0, 0, 9, 1, 8, 1 }, /* Y */
+ },
+ .alias = "y9le",
+ },
[AV_PIX_FMT_GRAY10BE] = {
.name = "gray10be",
.nb_components = 1,