From 23a9efd124042e7c97f8317bcd8ae5903d039ef7 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 2 Dec 2017 04:27:02 +0100 Subject: vd_lavc, vdpau, vaapi: restore emulated API avoidance This code is for trying to avoid using an emulation layer when using auto probing, so that we end up using the actual API the drivers provide. It was destroyed in the recent refactor. --- video/vdpau.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/vdpau.h') diff --git a/video/vdpau.h b/video/vdpau.h index 118db8cbfe..b0f402c3f2 100644 --- a/video/vdpau.h +++ b/video/vdpau.h @@ -103,6 +103,8 @@ bool mp_vdpau_get_rgb_format(int imgfmt, VdpRGBAFormat *out_rgba_format); struct mp_image *mp_vdpau_upload_video_surface(struct mp_vdpau_ctx *ctx, struct mp_image *mpi); +struct mp_vdpau_ctx *mp_vdpau_get_ctx_from_av(struct AVBufferRef *hw_device_ctx); + bool mp_vdpau_guess_if_emulated(struct mp_vdpau_ctx *ctx); #endif -- cgit v1.2.3