aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/vaapi.h
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-01-22 15:32:23 +0100
committerGravatar wm4 <wm4@nowhere>2015-01-22 15:32:23 +0100
commitaae9af348e62d5feba6547855003df0d954cb3ae (patch)
treedd0d28655c65e1f814bec3ef537ea377a941b9b7 /video/vaapi.h
parent29cf62d20133b32e1514a315b4f7e013ed9cb768 (diff)
video: have a generic context struct for hwdec backends
Before this commit, each hw backend had their own specific struct types for context, and some, like VDA, had none at all. Add a context struct (mp_hwdec_ctx) that provides a somewhat generic way to pass the hwdec context around. Some things get slightly better, some slightly more verbose. mp_hwdec_info is still around; it's still needed, but is reduced to its role of handling delayed loading of the hwdec backend.
Diffstat (limited to 'video/vaapi.h')
-rw-r--r--video/vaapi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/vaapi.h b/video/vaapi.h
index 8a6ba766e5..98e21d579b 100644
--- a/video/vaapi.h
+++ b/video/vaapi.h
@@ -72,11 +72,13 @@
(const char[]){(fcc), (fcc) >> 8u, (fcc) >> 16u, (fcc) >> 24u, 0}
#include "mp_image.h"
+#include "hwdec.h"
struct mp_image_pool;
struct mp_log;
struct mp_vaapi_ctx {
+ struct mp_hwdec_ctx hwctx;
struct mp_log *log;
VADisplay display;
struct va_image_formats *image_formats;