summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/hwdec.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-01 20:02:52 +0100
committerwm4 <wm4@nowhere>2016-02-01 20:02:52 +0100
commit05ffde6599fde77cf3e5cd6e244063563f88c112 (patch)
treee457d31f4c937605da5958754da62d8b4f4f8c48 /video/out/opengl/hwdec.h
parenta9dfd8d557b1651e6d9ae7a374426dbcd856da99 (diff)
downloadmpv-05ffde6599fde77cf3e5cd6e244063563f88c112.tar.bz2
mpv-05ffde6599fde77cf3e5cd6e244063563f88c112.tar.xz
vo_opengl: hwdec: use IDs for API, and log which backend is used
Since there can be multiple backends for a single API (vaapi can use GLX or EGL), not logging the exact backend name is annoying. So add it. At the same time, there is no need to duplicate the name as used by the --hwdec options, so replace it with using the numeric hwdec API ID.
Diffstat (limited to 'video/out/opengl/hwdec.h')
-rw-r--r--video/out/opengl/hwdec.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/opengl/hwdec.h b/video/out/opengl/hwdec.h
index ac1771c28d..c04962dd76 100644
--- a/video/out/opengl/hwdec.h
+++ b/video/out/opengl/hwdec.h
@@ -27,8 +27,10 @@ struct gl_hwdec {
};
struct gl_hwdec_driver {
- // Same name as used by mp_hwdec_info->load_api()
- const char *api_name;
+ // Name of the interop backend. This is used for logging only.
+ const char *name;
+ // Used to explicitly request a specific API.
+ enum hwdec_type api;
// The hardware surface IMGFMT_ that must be passed to map_image later.
int imgfmt;
// Create the hwdec device. It must fill in hw->info, if applicable.