[libav-commits] pixfmt: add picture format for VDPAU

Rémi Denis-Courmont git at libav.org
Sat Jan 12 12:04:31 CET 2013


Module: libav
Branch: master
Commit: 169fb94f0f65dcb18549f6f25fb29ea58d7eaf92

Author:    Rémi Denis-Courmont <remi at remlab.net>
Committer: Diego Biurrun <diego at biurrun.de>
Date:      Fri Jan 11 23:27:58 2013 +0200

pixfmt: add picture format for VDPAU

Signed-off-by: Diego Biurrun <diego at biurrun.de>

---

 libavutil/pixdesc.c |    6 ++++++
 libavutil/pixfmt.h  |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c
index 06d5def..df906ac 100644
--- a/libavutil/pixdesc.c
+++ b/libavutil/pixdesc.c
@@ -1359,6 +1359,12 @@ const AVPixFmtDescriptor av_pix_fmt_descriptors[AV_PIX_FMT_NB] = {
         },
         .flags = PIX_FMT_BE | PIX_FMT_PLANAR | PIX_FMT_RGB,
     },
+    [AV_PIX_FMT_VDPAU] = {
+        .name = "vdpau",
+        .log2_chroma_w = 1,
+        .log2_chroma_h = 1,
+        .flags = PIX_FMT_HWACCEL,
+    },
 };
 
 static enum AVPixelFormat get_pix_fmt_internal(const char *name)
diff --git a/libavutil/pixfmt.h b/libavutil/pixfmt.h
index 1072f00..1863099 100644
--- a/libavutil/pixfmt.h
+++ b/libavutil/pixfmt.h
@@ -178,6 +178,7 @@ enum AVPixelFormat {
     AV_PIX_FMT_YUVA422P16LE, ///< planar YUV 4:2:2 48bpp, (1 Cr & Cb sample per 2x1 Y & A samples, little-endian)
     AV_PIX_FMT_YUVA444P16BE, ///< planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, big-endian)
     AV_PIX_FMT_YUVA444P16LE, ///< planar YUV 4:4:4 64bpp, (1 Cr & Cb sample per 1x1 Y & A samples, little-endian)
+    AV_PIX_FMT_VDPAU,     ///< HW acceleration through VDPAU, Picture.data[3] contains a VdpVideoSurface
     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



More information about the libav-commits mailing list