summaryrefslogtreecommitdiffstats
path: root/video/vaapi.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-11 16:07:53 +0100
committerwm4 <wm4@nowhere>2017-01-11 16:34:18 +0100
commit9fd986b53a319d449ae09a51729ca7dc89146941 (patch)
tree0c0e8dd8ab9e5592179f7c34707ff1e950bac20f /video/vaapi.h
parent7dc74ee03721e8ccfa09122c56e76a9c62c68db4 (diff)
downloadmpv-9fd986b53a319d449ae09a51729ca7dc89146941.tar.bz2
mpv-9fd986b53a319d449ae09a51729ca7dc89146941.tar.xz
vaapi: move standalone display creation code to common code
Preparation for the following commits.
Diffstat (limited to 'video/vaapi.h')
-rw-r--r--video/vaapi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/vaapi.h b/video/vaapi.h
index 3f0d1dca37..add3216308 100644
--- a/video/vaapi.h
+++ b/video/vaapi.h
@@ -36,6 +36,9 @@ struct mp_vaapi_ctx {
struct va_image_formats *image_formats;
bool gpu_memcpy_message;
pthread_mutex_t lock;
+ // Internal, for va_create_standalone()
+ void *native_ctx;
+ void (*destroy_native_ctx)(void *native_ctx);
};
bool check_va_status(struct mp_log *log, VAStatus status, const char *msg);
@@ -73,4 +76,6 @@ void va_surface_init_subformat(struct mp_image *mpi);
bool va_guess_if_emulated(struct mp_vaapi_ctx *ctx);
+struct mp_vaapi_ctx *va_create_standalone(struct mp_log *plog, bool probing);
+
#endif