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.
This commit is contained in:
wm4
2017-12-02 04:27:02 +01:00
parent 0780d38329
commit 23a9efd124
5 changed files with 48 additions and 3 deletions

View File

@@ -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