diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-10-13 00:09:22 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-12-07 09:47:51 +0100 |
commit | 5068fb1e2417acab11286847a757783427776bac (patch) | |
tree | e5a30d38d8537a73a9d1a49f8f002c78b3d43b87 /ffmpeg_dxva2.c | |
parent | 1e6cf7272fa8910fa44f1cf9e8b643326c2cf407 (diff) | |
download | ffmpeg-5068fb1e2417acab11286847a757783427776bac.tar.gz |
ffmpeg_dxva2: support vp9 hwaccel
Diffstat (limited to 'ffmpeg_dxva2.c')
-rw-r--r-- | ffmpeg_dxva2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ffmpeg_dxva2.c b/ffmpeg_dxva2.c index 6b20195f82..905bf8907c 100644 --- a/ffmpeg_dxva2.c +++ b/ffmpeg_dxva2.c @@ -53,6 +53,7 @@ DEFINE_GUID(DXVADDI_Intel_ModeH264_E, 0x604F8E68, 0x4951,0x4C54,0x88,0xFE,0xAB,0 DEFINE_GUID(DXVA2_ModeVC1_D, 0x1b81beA3, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); DEFINE_GUID(DXVA2_ModeVC1_D2010, 0x1b81beA4, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); DEFINE_GUID(DXVA2_ModeHEVC_VLD_Main, 0x5b11d51b, 0x2f4c,0x4452,0xbc,0xc3,0x09,0xf2,0xa1,0x16,0x0c,0xc0); +DEFINE_GUID(DXVA2_ModeVP9_VLD_Profile0, 0x463707f8, 0xa1d0,0x4585,0x87,0x6d,0x83,0xaa,0x6d,0x60,0xb8,0x9e); DEFINE_GUID(DXVA2_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5); DEFINE_GUID(GUID_NULL, 0x00000000, 0x0000,0x0000,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00); @@ -84,6 +85,9 @@ static const dxva2_mode dxva2_modes[] = { /* HEVC/H.265 */ { &DXVA2_ModeHEVC_VLD_Main, AV_CODEC_ID_HEVC }, + /* VP8/9 */ + { &DXVA2_ModeVP9_VLD_Profile0, AV_CODEC_ID_VP9 }, + { NULL, 0 }, }; @@ -543,6 +547,8 @@ static int dxva2_create_decoder(AVCodecContext *s) /* add surfaces based on number of possible refs */ if (s->codec_id == AV_CODEC_ID_H264 || s->codec_id == AV_CODEC_ID_HEVC) ctx->num_surfaces += 16; + else if (s->codec_id == AV_CODEC_ID_VP9) + ctx->num_surfaces += 8; else ctx->num_surfaces += 2; |