diff options
author | Niklas Haas <git@haasn.dev> | 2022-02-25 22:07:56 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-03-03 13:06:05 +0100 |
commit | dfe846f9de30e2606a38afb6ca6de755e84df3df (patch) | |
tree | 86f076ef7389d76c6784567536cb602951b2f320 /video/out/gpu_next | |
parent | c13f5f24cd3c7a7a1cae3258146c603864c74e67 (diff) | |
download | mpv-dfe846f9de30e2606a38afb6ca6de755e84df3df.tar.bz2 mpv-dfe846f9de30e2606a38afb6ca6de755e84df3df.tar.xz |
vo_gpu_next: add support for hardware decoding
There are two major ways of going about this:
1. Expose the native ra_gl/ra_pl/ra_d3d11 objects to the pre-existing
hwdec mappers, and then add code in vo_gpu_next to rewrap those
ra_tex objects into pl_tex.
2. Wrap the underlying pl_opengl/pl_d3d11 into a ra_pl object and expose
it to the hwdec mappers, then directly use the resulting pl_tex.
I ultimately opted for approach 1 because it enables compatibility with
more hardware decoders, specifically including ones that use native
OpenGL calls currently. The second approach only really works with
cuda_vk and vaapi_pl.
Diffstat (limited to 'video/out/gpu_next')
-rw-r--r-- | video/out/gpu_next/context.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/video/out/gpu_next/context.h b/video/out/gpu_next/context.h index 2e2bc3cd29..b98b9e7251 100644 --- a/video/out/gpu_next/context.h +++ b/video/out/gpu_next/context.h @@ -26,7 +26,6 @@ struct gl_video_opts; struct gpu_ctx { struct mp_log *log; - struct ra_ctx *ra_ctx; pl_log pllog; |