diff options
Diffstat (limited to 'video/hwdec.h')
-rw-r--r-- | video/hwdec.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/video/hwdec.h b/video/hwdec.h index a57010d33f..8219fd5dab 100644 --- a/video/hwdec.h +++ b/video/hwdec.h @@ -51,16 +51,23 @@ void hwdec_devices_add(struct mp_hwdec_devices *devs, struct mp_hwdec_ctx *ctx); // not added yet. This is not thread-safe. void hwdec_devices_remove(struct mp_hwdec_devices *devs, struct mp_hwdec_ctx *ctx); +struct hwdec_imgfmt_request { + int imgfmt; + bool probing; +}; + // Can be used to enable lazy loading of an API with hwdec_devices_request(). // If used at all, this must be set/unset during initialization/uninitialization, // as concurrent use with hwdec_devices_request() is a race condition. void hwdec_devices_set_loader(struct mp_hwdec_devices *devs, - void (*load_api)(void *ctx, int imgfmt), void *load_api_ctx); + void (*load_api)(void *ctx, struct hwdec_imgfmt_request *params), + void *load_api_ctx); // Cause VO to lazily load all devices for a specified img format, and will // block until this is done (even if not available). Pass IMGFMT_NONE to load // all available devices. -void hwdec_devices_request_for_img_fmt(struct mp_hwdec_devices *devs, int imgfmt); +void hwdec_devices_request_for_img_fmt(struct mp_hwdec_devices *devs, + struct hwdec_imgfmt_request *params); // Return "," concatenated list (for introspection/debugging). Use talloc_free(). char *hwdec_devices_get_names(struct mp_hwdec_devices *devs); |