mirror of https://git.ffmpeg.org/ffmpeg.git
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).
This commit is contained in:
parent
900ce6f8c3
commit
6ab8a9d375
|
@ -14,6 +14,9 @@ libavutil: 2021-04-27
|
|||
|
||||
API changes, most recent first:
|
||||
|
||||
2022-08-03 - xxxxxxxxxx - lavu 57.32.100 - pixfmt.h
|
||||
Add AV_PIX_FMT_VUYA.
|
||||
|
||||
2022-08-xx - xxxxxxxxxx - lavc 59.41.100 - avcodec.h codec.h
|
||||
Add AV_CODEC_FLAG_RECON_FRAME and AV_CODEC_CAP_ENCODER_RECON_FRAME.
|
||||
avcodec_receive_frame() may now be used on encoders when
|
||||
|
|
|
@ -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[] = {
|
||||
|
|
|
@ -367,6 +367,8 @@ enum AVPixelFormat {
|
|||
AV_PIX_FMT_P416BE, ///< interleaved chroma YUV 4:4:4, 48bpp, big-endian
|
||||
AV_PIX_FMT_P416LE, ///< interleaved chroma YUV 4:4:4, 48bpp, little-endian
|
||||
|
||||
AV_PIX_FMT_VUYA, ///< packed VUYA 4:4:4, 32bpp, VUYAVUYA...
|
||||
|
||||
AV_PIX_FMT_NB ///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions
|
||||
};
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
*/
|
||||
|
||||
#define LIBAVUTIL_VERSION_MAJOR 57
|
||||
#define LIBAVUTIL_VERSION_MINOR 31
|
||||
#define LIBAVUTIL_VERSION_MINOR 32
|
||||
#define LIBAVUTIL_VERSION_MICRO 100
|
||||
|
||||
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
|
||||
|
|
|
@ -246,3 +246,4 @@ p216be planes: 2, linesizes: 128 128 0 0, plane_sizes: 6144 6144
|
|||
p216le planes: 2, linesizes: 128 128 0 0, plane_sizes: 6144 6144 0 0, plane_offsets: 6144 0 0, total_size: 12288
|
||||
p416be planes: 2, linesizes: 128 256 0 0, plane_sizes: 6144 12288 0 0, plane_offsets: 6144 0 0, total_size: 18432
|
||||
p416le planes: 2, linesizes: 128 256 0 0, plane_sizes: 6144 12288 0 0, plane_offsets: 6144 0 0, total_size: 18432
|
||||
vuya planes: 1, linesizes: 256 0 0 0, plane_sizes: 12288 0 0 0, plane_offsets: 0 0 0, total_size: 12288
|
||||
|
|
|
@ -215,6 +215,7 @@ isYUV:
|
|||
p416le
|
||||
uyvy422
|
||||
uyyvyy411
|
||||
vuya
|
||||
xyz12be
|
||||
xyz12le
|
||||
y210be
|
||||
|
@ -654,6 +655,7 @@ ALPHA:
|
|||
rgb32_1
|
||||
rgba64be
|
||||
rgba64le
|
||||
vuya
|
||||
ya16be
|
||||
ya16le
|
||||
ya8
|
||||
|
@ -739,6 +741,7 @@ Packed:
|
|||
rgba64le
|
||||
uyvy422
|
||||
uyyvyy411
|
||||
vuya
|
||||
x2bgr10be
|
||||
x2bgr10le
|
||||
x2rgb10be
|
||||
|
@ -967,5 +970,6 @@ DataInHighBits:
|
|||
SwappedChroma:
|
||||
nv21
|
||||
nv42
|
||||
vuya
|
||||
yvyu422
|
||||
|
||||
|
|
Loading…
Reference in New Issue