diff options
author | Philip Langdale <philipl@overt.org> | 2022-07-23 11:11:59 -0700 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2022-08-03 14:09:46 -0700 |
commit | 6ab8a9d375ca922b2a94cd7160a4e3c5abe6339c (patch) | |
tree | 6a1b7e534f3c71ce880d98fa820a8ec072874f3b /libavutil/pixdesc.c | |
parent | 900ce6f8c3526f27173057bb955f54f4f4f41246 (diff) | |
download | ffmpeg-6ab8a9d375ca922b2a94cd7160a4e3c5abe6339c.tar.gz |
lavu/pixfmt: Add packed 4:4:4 format
The "AYUV" format is defined by Microsoft as their preferred format for
4:4:4 content, and so it is the format used by Intel VAAPI and QSV.
As Microsoft like to define their byte ordering in little-endian
fashion, the memory order is reversed, and so our pix_fmt, which
follows memory order, has a reversed name (VUYA).
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 6e57a82cb6..e078fd5320 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -2491,6 +2491,19 @@ static const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = { }, .flags = AV_PIX_FMT_FLAG_PLANAR, }, + [AV_PIX_FMT_VUYA] = { + .name = "vuya", + .nb_components = 4, + .log2_chroma_w = 0, + .log2_chroma_h = 0, + .comp = { + { 0, 4, 2, 0, 8 }, /* Y */ + { 0, 4, 1, 0, 8 }, /* U */ + { 0, 4, 0, 0, 8 }, /* V */ + { 0, 4, 3, 0, 8 }, /* A */ + }, + .flags = AV_PIX_FMT_FLAG_ALPHA, + }, }; static const char * const color_range_names[] = { |