diff options
author | James Almer <jamrial@gmail.com> | 2024-10-06 19:28:33 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-10-08 14:10:07 -0300 |
commit | dc3ef53819dc8cc2e9732b70d69b029738bad266 (patch) | |
tree | 21b0df76fdce0db405bc72c2a5812620ef4aa186 /libavutil/pixdesc.c | |
parent | 263108a5049761911d2c35cbb15ef9a9c0a84027 (diff) | |
download | ffmpeg-dc3ef53819dc8cc2e9732b70d69b029738bad266.tar.gz |
avutil/pixfmt: add UYVA pixel format
This maps to the 4444YpCbCrA8 pixel format as defined by Apple, which is ordered
Cb Y' Cr A.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/pixdesc.c')
-rw-r--r-- | libavutil/pixdesc.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 588a5845c9..ab336433da 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -2119,6 +2119,19 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { .name = "cuda", .flags = AV_PIX_FMT_FLAG_HWACCEL, }, + [AV_PIX_FMT_UYVA] = { + .name = "uyva", + .nb_components = 4, + .log2_chroma_w = 0, + .log2_chroma_h = 0, + .comp = { + { 0, 4, 1, 0, 8 }, /* Y */ + { 0, 4, 0, 0, 8 }, /* U */ + { 0, 4, 2, 0, 8 }, /* V */ + { 0, 4, 3, 0, 8 }, /* A */ + }, + .flags = AV_PIX_FMT_FLAG_ALPHA, + }, [AV_PIX_FMT_AYUV] = { .name = "ayuv", .nb_components = 4, |