summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-03-09 12:26:18 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-04-07 23:50:34 +0200
commit8b17243d1742279bcb2368f8d325ea71e66736c8 (patch)
tree3a225d35ac9b7dfb356b6b25be041a884e1ecbc0 /libavutil
parent46439e156219d27f059cf687743ba5aacf238b87 (diff)
lavu: Add packed YVYU422 pixel format
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/pixdesc.c11
-rw-r--r--libavutil/pixfmt.h2
-rw-r--r--libavutil/version.h2
3 files changed, 14 insertions, 1 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
index 1b34fc9f1c..80c97b0096 100644
--- a/libavutil/pixdesc.c
+++ b/libavutil/pixdesc.c
@@ -152,6 +152,17 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
{ 0, 3, 4, 0, 7 }, /* V */
},
},
+ [AV_PIX_FMT_YVYU422] = {
+ .name = "yvyu422",
+ .nb_components = 3,
+ .log2_chroma_w = 1,
+ .log2_chroma_h = 0,
+ .comp = {
+ { 0, 1, 1, 0, 7 }, /* Y */
+ { 0, 3, 2, 0, 7 }, /* V */
+ { 0, 3, 4, 0, 7 }, /* U */
+ },
+ },
[AV_PIX_FMT_RGB24] = {
.name = "rgb24",
.nb_components = 3,
diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
index e86ec7ee79..bfd16e64e2 100644
--- a/libavutil/pixfmt.h
+++ b/libavutil/pixfmt.h
@@ -196,6 +196,8 @@ enum AVPixelFormat {
AV_PIX_FMT_BGRA64BE, ///< packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is stored as big-endian
AV_PIX_FMT_BGRA64LE, ///< packed RGBA 16:16:16:16, 64bpp, 16B, 16G, 16R, 16A, the 2-byte value for each R/G/B/A component is stored as little-endian
+ AV_PIX_FMT_YVYU422, ///< packed YUV 4:2:2, 16bpp, Y0 Cr Y1 Cb
+
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
#if FF_API_PIX_FMT
diff --git a/libavutil/version.h b/libavutil/version.h
index e920653e8b..8fd90bccc2 100644
--- a/libavutil/version.h
+++ b/libavutil/version.h
@@ -54,7 +54,7 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 53
-#define LIBAVUTIL_VERSION_MINOR 10
+#define LIBAVUTIL_VERSION_MINOR 11
#define LIBAVUTIL_VERSION_MICRO 0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \