diff options
author | wm4 <wm4@nowhere> | 2017-02-20 08:39:55 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-02-20 08:39:55 +0100 |
commit | 6aa4efd1e3205c9b1385865df1b5b09646d2160c (patch) | |
tree | 4a0f78718f21f7f644f9ca7de4fbcfb8a83aafa9 /video/vaapi.h | |
parent | 6e2d3d991912f230ee66448307e8e2657237ffd2 (diff) | |
download | mpv-6aa4efd1e3205c9b1385865df1b5b09646d2160c.tar.bz2 mpv-6aa4efd1e3205c9b1385865df1b5b09646d2160c.tar.xz |
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.
Diffstat (limited to 'video/vaapi.h')
-rw-r--r-- | video/vaapi.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |