summaryrefslogtreecommitdiffstats
path: root/video/hwdec.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-12-02 04:27:02 +0100
committerwm4 <wm4@nowhere>2017-12-02 04:53:51 +0100
commit23a9efd124042e7c97f8317bcd8ae5903d039ef7 (patch)
tree8af4a34bd494abe51608d3648de612d5af920314 /video/hwdec.h
parent0780d3832997056b581cdecb29e605132fae9417 (diff)
downloadmpv-23a9efd124042e7c97f8317bcd8ae5903d039ef7.tar.bz2
mpv-23a9efd124042e7c97f8317bcd8ae5903d039ef7.tar.xz
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.
Diffstat (limited to 'video/hwdec.h')
-rw-r--r--video/hwdec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/hwdec.h b/video/hwdec.h
index 34dd52e08b..2c0f19b606 100644
--- a/video/hwdec.h
+++ b/video/hwdec.h
@@ -119,6 +119,8 @@ struct hwcontext_fns {
struct AVBufferRef *(*create_dev)(struct mpv_global *global,
struct mp_log *log,
struct hwcontext_create_dev_params *params);
+ // Return whether this is using some sort of sub-optimal emulation layer.
+ bool (*is_emulated)(struct AVBufferRef *hw_device_ctx);
};
// The parameter is of type enum AVHWDeviceType (as in int to avoid extensive