diff options
author | James Almer <jamrial@gmail.com> | 2024-10-07 13:29:25 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-10-08 19:45:10 -0300 |
commit | 29ea34728f1064877a0ab9b8dee0f3de69a2d750 (patch) | |
tree | b53224e74affe97c65845cf8597095cb705471c4 /libavutil/pixdesc.c | |
parent | 1f9424e0b1d17257186d0a3b68a750b9bd341f23 (diff) | |
download | ffmpeg-29ea34728f1064877a0ab9b8dee0f3de69a2d750.tar.gz |
avutil/pixfmt: add V30X pixel format
This maps to the 444YpCbCr10 pixel format as defined by Apple.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/pixdesc.c')
-rw-r--r-- | libavutil/pixdesc.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index deff74d8a6..f8d6055084 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -2727,6 +2727,29 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { }, .flags = AV_PIX_FMT_FLAG_BE, }, + [AV_PIX_FMT_V30XLE] = { + .name = "v30xle", + .nb_components = 3, + .log2_chroma_w = 0, + .log2_chroma_h = 0, + .comp = { + { 0, 4, 1, 4, 10 }, /* Y */ + { 0, 4, 0, 2, 10 }, /* U */ + { 0, 4, 2, 6, 10 }, /* V */ + }, + }, + [AV_PIX_FMT_V30XBE] = { + .name = "v30xbe", + .nb_components= 3, + .log2_chroma_w= 0, + .log2_chroma_h= 0, + .comp = { + { 0, 32, 12, 0, 10 }, /* Y */ + { 0, 32, 2, 0, 10 }, /* U */ + { 0, 32, 22, 0, 10 }, /* V */ + }, + .flags = AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_BITSTREAM, + }, [AV_PIX_FMT_RGBF32BE] = { .name = "rgbf32be", .nb_components = 3, |