diff options
author | Philip Langdale <philipl@overt.org> | 2022-07-31 11:50:57 -0700 |
---|---|---|
committer | Philip Langdale <github.philipl@overt.org> | 2022-08-03 16:56:17 -0700 |
commit | 06900eef63c112fc9404f649daf31de334711bbc (patch) | |
tree | c0ac337a38b5667c064bf597096cd53808acb298 /video/out/hwdec/hwdec_vaapi.c | |
parent | 490e263529a5e49e8a7b6d9c6c21a1312f3ac1a4 (diff) | |
download | mpv-06900eef63c112fc9404f649daf31de334711bbc.tar.bz2 mpv-06900eef63c112fc9404f649daf31de334711bbc.tar.xz |
hwdec/vaapi: rename interops to reflect more general use
This is the first in a series of changes that will introduce a drmprime
hwdec. As our vaapi hwdec is based around exporting surfaces as
drmprime dmabufs, we've actually got a lot of useful code already in
place in the GL/PL interops. I'm going to reorganise and adjust this
code to make the interops usable with the new hwdec as well.
The first step is to rename the files and functions. There are no
functional or other changes here. They will come next.
Diffstat (limited to 'video/out/hwdec/hwdec_vaapi.c')
-rw-r--r-- | video/out/hwdec/hwdec_vaapi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/video/out/hwdec/hwdec_vaapi.c b/video/out/hwdec/hwdec_vaapi.c index ea0fa9e746..b62c68ccc4 100644 --- a/video/out/hwdec/hwdec_vaapi.c +++ b/video/out/hwdec/hwdec_vaapi.c @@ -26,7 +26,7 @@ #include "config.h" #include "video/out/gpu/hwdec.h" -#include "video/out/hwdec/hwdec_vaapi.h" +#include "video/out/hwdec/dmabuf_interop.h" #include "video/fmt-conversion.h" #include "video/mp_image_pool.h" #include "video/vaapi.h" @@ -107,12 +107,12 @@ static void uninit(struct ra_hwdec *hw) va_destroy(p->ctx); } -const static vaapi_interop_init interop_inits[] = { +const static dmabuf_interop_init interop_inits[] = { #if HAVE_VAAPI_EGL - vaapi_gl_init, + dmabuf_interop_gl_init, #endif #if HAVE_VAAPI_LIBPLACEBO - vaapi_pl_init, + dmabuf_interop_pl_init, #endif NULL }; |