aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/pixdesc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-10-06 23:58:46 -0300
committerJames Almer <jamrial@gmail.com>2024-10-08 14:10:07 -0300
commit1f9424e0b1d17257186d0a3b68a750b9bd341f23 (patch)
treeee3fb63bf1301ef7a2fed6e9cdbe0e90033d65e2 /libavutil/pixdesc.c
parentdc3ef53819dc8cc2e9732b70d69b029738bad266 (diff)
downloadffmpeg-1f9424e0b1d17257186d0a3b68a750b9bd341f23.tar.gz
avutil/pixfmt: add VYU444 pixel format
This maps to the 444YpCbCr8 pixel format as defined by Apple, which is ordered Cr Y' Cb. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/pixdesc.c')
-rw-r--r--libavutil/pixdesc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
index ab336433da..deff74d8a6 100644
--- a/libavutil/pixdesc.c
+++ b/libavutil/pixdesc.c
@@ -2119,6 +2119,17 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
.name = "cuda",
.flags = AV_PIX_FMT_FLAG_HWACCEL,
},
+ [AV_PIX_FMT_VYU444] = {
+ .name = "vyu444",
+ .nb_components = 3,
+ .log2_chroma_w = 0,
+ .log2_chroma_h = 0,
+ .comp = {
+ { 0, 3, 1, 0, 8 }, /* Y */
+ { 0, 3, 2, 0, 8 }, /* U */
+ { 0, 3, 0, 0, 8 }, /* V */
+ },
+ },
[AV_PIX_FMT_UYVA] = {
.name = "uyva",
.nb_components = 4,