[vlc-commits] vaapi: add support for HEVC decoding

Mathieu Velten git at videolan.org
Mon Nov 28 20:18:01 CET 2016


vlc | branch: master | Mathieu Velten <matmaul at gmail.com> | Mon Nov 28 20:11:05 2016 +0100| [df48e332f748fb05205476f53ed7a53fde13462e] | committer: Rémi Denis-Courmont

vaapi: add support for HEVC decoding

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 modules/codec/avcodec/vaapi.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/vaapi.c b/modules/codec/avcodec/vaapi.c
index d0affab..c9e51fe 100644
--- a/modules/codec/avcodec/vaapi.c
+++ b/modules/codec/avcodec/vaapi.c
@@ -317,7 +317,16 @@ static int Create( vlc_va_t *va, AVCodecContext *ctx, enum PixelFormat pix_fmt,
     case AV_CODEC_ID_H264:
         i_profile = VAProfileH264High;
         count = 18;
-        break;;
+        break;
+    case AV_CODEC_ID_HEVC:
+        if (ctx->profile == FF_PROFILE_HEVC_MAIN)
+            i_profile = VAProfileHEVCMain;
+        else if (ctx->profile == FF_PROFILE_HEVC_MAIN_10)
+            i_profile = VAProfileHEVCMain10;
+        else
+            return VLC_EGENERIC;
+        count = 18;
+        break;
     default:
         return VLC_EGENERIC;
     }



More information about the vlc-commits mailing list