From 9fd986b53a319d449ae09a51729ca7dc89146941 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 11 Jan 2017 16:07:53 +0100 Subject: vaapi: move standalone display creation code to common code Preparation for the following commits. --- video/vaapi.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'video/vaapi.h') 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 -- cgit v1.2.3