From 6aa4efd1e3205c9b1385865df1b5b09646d2160c Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 20 Feb 2017 08:39:55 +0100 Subject: vd_lavc, vaapi: move hw device creation to generic code hw_vaapi.c didn't do much interesting anymore. Other than the function to create a device for decoding with vaapi-copy, everything can be done by generic code. Other libavcodec hwaccels are planned to provide the same API as vaapi. It will be possible to drop the other hw_ files in the future. They will use this generic code instead. --- video/vaapi.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'video/vaapi.h') diff --git a/video/vaapi.h b/video/vaapi.h index de7d6d98d8..d21e3a34ee 100644 --- a/video/vaapi.h +++ b/video/vaapi.h @@ -73,6 +73,8 @@ 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); +struct mpv_global; +struct mp_hwdec_ctx *va_create_standalone(struct mpv_global *global, + struct mp_log *plog, bool probing); #endif -- cgit v1.2.3