mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user