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>
This commit is contained in:
James Almer
2024-10-06 23:58:46 -03:00
parent dc3ef53819
commit 1f9424e0b1
6 changed files with 20 additions and 1 deletions

View File

@ -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,