diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-01-27 00:43:23 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-01-27 09:24:08 +0800 |
commit | fc115c80b7bf6f1f5a937ee7f6e14630d99eb4dd (patch) | |
tree | 6f5541c79463819f6ce13ad898529f0c62e02e98 /libavutil | |
parent | b57d262412204e54a7ef8fa1b23ff4dcede622e5 (diff) | |
download | ffmpeg-fc115c80b7bf6f1f5a937ee7f6e14630d99eb4dd.tar.gz |
sws/pixfmt/pixdesc: add support for yuva444p
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/avutil.h | 2 | ||||
-rw-r--r-- | libavutil/pixdesc.c | 13 | ||||
-rw-r--r-- | libavutil/pixfmt.h | 1 |
3 files changed, 15 insertions, 1 deletions
diff --git a/libavutil/avutil.h b/libavutil/avutil.h index f0be5c110a..0e62b4a13f 100644 --- a/libavutil/avutil.h +++ b/libavutil/avutil.h @@ -154,7 +154,7 @@ */ #define LIBAVUTIL_VERSION_MAJOR 51 -#define LIBAVUTIL_VERSION_MINOR 21 +#define LIBAVUTIL_VERSION_MINOR 22 #define LIBAVUTIL_VERSION_MICRO 0 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 6e1f23b97f..eeab7a76ed 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -521,6 +521,19 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = { }, .flags = PIX_FMT_PLANAR, }, + [PIX_FMT_YUVA444P] = { + .name = "yuva444p", + .nb_components = 4, + .log2_chroma_w = 0, + .log2_chroma_h = 0, + .comp = { + { 0, 0, 1, 0, 7 }, /* Y */ + { 1, 0, 1, 0, 7 }, /* U */ + { 2, 0, 1, 0, 7 }, /* V */ + { 3, 0, 1, 0, 7 }, /* A */ + }, + .flags = PIX_FMT_PLANAR, + }, [PIX_FMT_VDPAU_H264] = { .name = "vdpau_h264", .log2_chroma_w = 1, diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index bd898bdc8e..7d1d291e05 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -157,6 +157,7 @@ enum PixelFormat { PIX_FMT_GBRP10LE, ///< planar GBR 4:4:4 30bpp, little endian PIX_FMT_GBRP16BE, ///< planar GBR 4:4:4 48bpp, big endian PIX_FMT_GBRP16LE, ///< planar GBR 4:4:4 48bpp, little endian + PIX_FMT_YUVA444P, ///< planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples) 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 }; |