Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-11-18 20:55:24 +0300
committerMark Thompson <sw@jkqxz.net>2017-11-27 00:41:19 +0300
commit40b75a943bcb6a4af00c44ef6e52cbfc3e6580d8 (patch)
treeed24581c0e5c2f521c86af78c78e8befd82e1a6b /libavcodec/vp8.c
parent9f00fa536938130e3c7ad2640a61795770d419a1 (diff)
vaapi: Add VP8 decode hwaccel
Diffstat (limited to 'libavcodec/vp8.c')
-rw-r--r--libavcodec/vp8.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index 31cd6a0d81..2b1cd155e2 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -2599,6 +2599,9 @@ int vp78_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
// avctx->pix_fmt already set in caller.
} else if (!is_vp7 && s->pix_fmt == AV_PIX_FMT_NONE) {
enum AVPixelFormat pix_fmts[] = {
+#if CONFIG_VP8_VAAPI_HWACCEL
+ AV_PIX_FMT_VAAPI,
+#endif
AV_PIX_FMT_YUV420P,
AV_PIX_FMT_NONE,
};
@@ -2944,6 +2947,9 @@ AVCodec ff_vp8_decoder = {
.init_thread_copy = ONLY_IF_THREADS_ENABLED(vp8_decode_init_thread_copy),
.update_thread_context = ONLY_IF_THREADS_ENABLED(vp8_decode_update_thread_context),
.hw_configs = (const AVCodecHWConfigInternal*[]) {
+#if CONFIG_VP8_VAAPI_HWACCEL
+ HWACCEL_VAAPI(vp8),
+#endif
NULL
},
};