diff options
author | Nicolas Bertrand <nicoinattendu@gmail.com> | 2013-03-26 23:21:13 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-04-04 19:50:59 +0200 |
commit | 8c65264595d5a82c56ae5043320e4b875a414229 (patch) | |
tree | b222e6f5adbcb6b3ee72f5103f44e85d8a0b94f5 /libavutil/pixdesc.c | |
parent | 5e46f6b5b7c70e2ef67714d6423013e870a875ba (diff) | |
download | ffmpeg-8c65264595d5a82c56ae5043320e4b875a414229.tar.gz |
pixdesc/pixfmt: Add XYZ colorspace for XYZ 12-bit values
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavutil/pixdesc.c')
-rw-r--r-- | libavutil/pixdesc.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index e1fa87eee9..67f9c435d0 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -1365,6 +1365,30 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { .log2_chroma_h = 1, .flags = PIX_FMT_HWACCEL, }, + [AV_PIX_FMT_XYZ12LE] = { + .name = "xyz12le", + .nb_components = 3, + .log2_chroma_w = 0, + .log2_chroma_h = 0, + .comp = { + { 0, 5, 1, 4, 11 }, /* X */ + { 0, 5, 3, 4, 11 }, /* Y */ + { 0, 5, 5, 4, 11 }, /* Z */ + }, + /*.flags = -- not used*/ + }, + [AV_PIX_FMT_XYZ12BE] = { + .name = "xyz12be", + .nb_components = 3, + .log2_chroma_w = 0, + .log2_chroma_h = 0, + .comp = { + { 0, 5, 1, 4, 11 }, /* X */ + { 0, 5, 3, 4, 11 }, /* Y */ + { 0, 5, 5, 4, 11 }, /* Z */ + }, + .flags = PIX_FMT_BE, + }, }; static enum AVPixelFormat get_pix_fmt_internal(const char *name) |