[vlc-commits] fourcc: add VAAPI opaque chroma

Thomas Guillem git at videolan.org
Fri Jun 16 16:48:08 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Aug 23 12:50:30 2016 +0300| [6fc392b6978978614006ca9d26d4fbd36267a267] | committer: Thomas Guillem

fourcc: add VAAPI opaque chroma

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6fc392b6978978614006ca9d26d4fbd36267a267
---

 include/vlc_fourcc.h | 3 +++
 src/misc/fourcc.c    | 8 ++++++++
 2 files changed, 11 insertions(+)

diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index b950b0622b..1ac9d40508 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -348,6 +348,9 @@
 /* VDPAU output surface RGBA */
 #define VLC_CODEC_VDPAU_OUTPUT    VLC_FOURCC('V','D','O','R')
 
+/* VAAPI opaque surface */
+#define VLC_CODEC_VAAPI_420 VLC_FOURCC('V','A','O','P') /* 4:2:0  8 bpc */
+
 /* MediaCodec/IOMX opaque buffer type */
 #define VLC_CODEC_ANDROID_OPAQUE  VLC_FOURCC('A','N','O','P')
 
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index ab86d83171..59ed71469b 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -377,6 +377,10 @@ static const vlc_fourcc_t p_CVPX_VIDEO_I420_fallback[] = {
     VLC_CODEC_CVPX_I420, VLC_CODEC_I420, 0,
 };
 
+static const vlc_fourcc_t p_VAAPI_420_fallback[] = {
+    VLC_CODEC_VAAPI_420, VLC_CODEC_I420,
+};
+
 static const vlc_fourcc_t p_I440_fallback[] = {
     VLC_CODEC_I440,
     VLC_CODEC_YUV_PLANAR_420,
@@ -459,6 +463,7 @@ static const vlc_fourcc_t *pp_YUV_fallback[] = {
     p_CVPX_VIDEO_NV12_fallback,
     p_CVPX_VIDEO_UYVY_fallback,
     p_CVPX_VIDEO_I420_fallback,
+    p_VAAPI_420_fallback,
     NULL,
 };
 
@@ -481,6 +486,7 @@ static const vlc_fourcc_t p_list_YUV[] = {
     VLC_CODEC_CVPX_NV12,
     VLC_CODEC_CVPX_UYVY,
     VLC_CODEC_CVPX_I420,
+    VLC_CODEC_VAAPI_420,
     0,
 };
 
@@ -697,6 +703,8 @@ static const struct
         VLC_CODEC_CVPX_I420, VLC_CODEC_CVPX_BGRA },
                                                FAKE_FMT() },
 
+    { { VLC_CODEC_VAAPI_420 },                 FAKE_FMT() },
+
     { { 0 },                                   FAKE_FMT() }
 };
 



More information about the vlc-commits mailing list