[vlc-commits] directx_va: log when VP8/VP9 hardware decoding is detected

Steve Lhomme git at videolan.org
Tue Apr 5 13:42:34 CEST 2016


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Fri Apr  1 13:44:16 2016 +0200| [a00ba4482e7e7921f69667cb8643f855d3229b6a] | committer: Jean-Baptiste Kempf

directx_va: log when VP8/VP9 hardware decoding is detected

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/codec/avcodec/directx_va.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index 538b45e..90e9611 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -141,6 +141,9 @@ DEFINE_GUID(DXVA_ModeH263_D,                        0x1b81be06, 0xa0c7, 0x11d3,
 DEFINE_GUID(DXVA_ModeH263_E,                        0x1b81be07, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5);
 DEFINE_GUID(DXVA_ModeH263_F,                        0x1b81be08, 0xa0c7, 0x11d3, 0xb9, 0x84, 0x00, 0xc0, 0x4f, 0x2e, 0x73, 0xc5);
 
+DEFINE_GUID(DXVA_ModeVP8_VLD,                       0x90b899ea, 0x3a62, 0x4705, 0x88, 0xb3, 0x8d, 0xf0, 0x4b, 0x27, 0x44, 0xe7);
+DEFINE_GUID(DXVA_ModeVP9_VLD_Profile0,              0x463707f8, 0xa1d0, 0x4585, 0x87, 0x6d, 0x83, 0xaa, 0x6d, 0x60, 0xb8, 0x9e);
+
 typedef struct {
     const char   *name;
     const GUID   *guid;
@@ -235,6 +238,10 @@ static const directx_va_mode_t DXVA_MODES[] = {
     { "H.263 decoder, restricted profile E",                                          &DXVA_ModeH263_E,                       0, NULL },
     { "H.263 decoder, restricted profile F",                                          &DXVA_ModeH263_F,                       0, NULL },
 
+    /* VPx */
+    { "VP8",                                                                          &DXVA_ModeVP8_VLD,                      0, NULL },
+    { "VP9 profile 0",                                                                &DXVA_ModeVP9_VLD_Profile0,             0, NULL },
+
     { NULL, NULL, 0, NULL }
 };
 



More information about the vlc-commits mailing list