diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-09-27 16:06:02 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-09-28 19:36:08 +0200 |
commit | 8e1ef7c38f6906455ae96984d032e57106e11b77 (patch) | |
tree | 4c4e3ae71ef88fcd002e354651294409d5804159 /libavutil/pixdesc.c | |
parent | 05f8b2ca0f7e28775837a572c65ce9218f534ee2 (diff) | |
download | ffmpeg-8e1ef7c38f6906455ae96984d032e57106e11b77.tar.gz |
avutil: add GBRAP14 format support
Diffstat (limited to 'libavutil/pixdesc.c')
-rw-r--r-- | libavutil/pixdesc.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index e1e0dd2a9e..6ded9467b0 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -2223,6 +2223,34 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { }, .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_BE, }, + [AV_PIX_FMT_GBRAP14LE] = { + .name = "gbrap14le", + .nb_components = 4, + .log2_chroma_w = 0, + .log2_chroma_h = 0, + .comp = { + { 2, 2, 0, 0, 14 }, /* R */ + { 0, 2, 0, 0, 14 }, /* G */ + { 1, 2, 0, 0, 14 }, /* B */ + { 3, 2, 0, 0, 14 }, /* A */ + }, + .flags = AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB | + AV_PIX_FMT_FLAG_ALPHA, + }, + [AV_PIX_FMT_GBRAP14BE] = { + .name = "gbrap14be", + .nb_components = 4, + .log2_chroma_w = 0, + .log2_chroma_h = 0, + .comp = { + { 2, 2, 0, 0, 14 }, /* R */ + { 0, 2, 0, 0, 14 }, /* G */ + { 1, 2, 0, 0, 14 }, /* B */ + { 3, 2, 0, 0, 14 }, /* A */ + }, + .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | + AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA, + }, [AV_PIX_FMT_GBRAP12LE] = { .name = "gbrap12le", .nb_components = 4, |