diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-05-08 08:39:37 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2012-05-08 08:39:37 +0200 |
commit | 143a5c55ff4d792e66045b6b0c44d26fe30158f1 (patch) | |
tree | dcf0c775022125e560716cd6b2baf791fe15147e /libavutil | |
parent | 7da0a07283e8546c7cf4cde9eca7ad4fe9f57fb4 (diff) | |
download | ffmpeg-143a5c55ff4d792e66045b6b0c44d26fe30158f1.tar.gz |
Add yuva422p pix_fmt.
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 04b0277900..a85f6fbb45 100644 --- a/libavutil/avutil.h +++ b/libavutil/avutil.h @@ -153,7 +153,7 @@ */ #define LIBAVUTIL_VERSION_MAJOR 51 -#define LIBAVUTIL_VERSION_MINOR 49 +#define LIBAVUTIL_VERSION_MINOR 50 #define LIBAVUTIL_VERSION_MICRO 100 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 8572719822..e73cf8d70a 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -572,6 +572,19 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = { }, .flags = PIX_FMT_PLANAR, }, + [PIX_FMT_YUVA422P] = { + .name = "yuva422p", + .nb_components = 4, + .log2_chroma_w = 1, + .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_YUVA444P] = { .name = "yuva444p", .nb_components = 4, diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h index b3a8dd045a..1e81a2ae37 100644 --- a/libavutil/pixfmt.h +++ b/libavutil/pixfmt.h @@ -180,6 +180,7 @@ enum PixelFormat { PIX_FMT_0BGR, ///< packed BGR 8:8:8, 32bpp, 0BGR0BGR... PIX_FMT_BGR0, ///< packed BGR 8:8:8, 32bpp, BGR0BGR0... PIX_FMT_YUVA444P, ///< planar YUV 4:4:4 32bpp, (1 Cr & Cb sample per 1x1 Y & A samples) + PIX_FMT_YUVA422P, ///< planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 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 }; |