diff options
author | Philip Langdale <philipl@overt.org> | 2022-08-27 09:53:31 -0700 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2022-10-11 10:07:48 -0700 |
commit | 064059e6c36329e1b1fd567d0efdfbaf13ec53c4 (patch) | |
tree | 154a9afe75e3288499da84ffb9157166c81c60bb /video/out/gpu/hwdec.h | |
parent | d050e350fee8b3bef3f77e9c161bf35aea8faa2e (diff) | |
download | mpv-064059e6c36329e1b1fd567d0efdfbaf13ec53c4.tar.bz2 mpv-064059e6c36329e1b1fd567d0efdfbaf13ec53c4.tar.xz |
vo_gpu/hwdec: rename and introduce legacy names for some interops
We've had some annoying names for interops, which we can't simply
rename because that would break config files and command lines. So we
need to put a little more effort in and add a concept of legacy names
that allow us to continue loading them, but with a warning.
The two I'm renaming here are:
* vaapi-egl -> vaapi (vaapi works with Vulkan too)
* drmprime-drm -> drmprime-overlay (actually describes what it does)
* cuda-nvdec -> cuda (cuda interop is not nvdec specific)
Diffstat (limited to 'video/out/gpu/hwdec.h')
-rw-r--r-- | video/out/gpu/hwdec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/gpu/hwdec.h b/video/out/gpu/hwdec.h index 0dd2e14588..b0013e8775 100644 --- a/video/out/gpu/hwdec.h +++ b/video/out/gpu/hwdec.h @@ -127,6 +127,11 @@ struct ra_hwdec_driver { // hw_image==src==dst==NULL is passed to clear the overlay. int (*overlay_frame)(struct ra_hwdec *hw, struct mp_image *hw_image, struct mp_rect *src, struct mp_rect *dst, bool newframe); + + // Some interop backends have changed name over time. We record the old name + // so that config files and command lines continue to work when they + // reference the old name. + const char *legacy_name; }; extern const struct ra_hwdec_driver *const ra_hwdec_drivers[]; |