-
Notifications
You must be signed in to change notification settings - Fork 3.1k
vo_libmpv: introduce 'gpu-next' render backend #16818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sparky3387
wants to merge
1
commit into
mpv-player:master
Choose a base branch
from
sparky3387:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
For testing purposes, I have also got a fork with the changes needed for Haruna/mpvQt here: |
|
Thanks, I will take a look when I get a longer second. /cc @haasn if you are interested. |
|
Download the artifacts for this pull request: Windows |
3ebc201 to
b2e14d4
Compare
3 tasks
|
For anyone out there on nix os patch can be used with: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit adds a new rendering backend for the libmpv render
API, named 'gpu-next'. It is designed as a successor to the legacy
'gpu' backend for API users.
The new backend is built entirely on top of libplacebo, offloading all
complex rendering tasks like scaling, colorspace conversion, OSD, and
tone-mapping to it. This aligns the render API with the core mpv
rendering architecture with the eventual aim of reducing code duplication.
A key design goal is the decoupling of graphics API specifics from the
core rendering logic. It introduces an API context interface
(libmpv_gpu_next.h) that separates the API-specific host duties (like
wrapping a user-provided framebuffer) from the shared, API-agnostic
video engine (video.c).
This initial implementation provides an OpenGL backend, which is selected
when the client specifies MPV_RENDER_API_TYPE_OPENGL. The architecture is
designed to easily accommodate other backends like Vulkan or D3D11 in
the future.
To use it, libmpv clients can pass the MPV_RENDER_PARAM_BACKEND
parameter with the value "gpu-next" during the call to
mpv_render_context_create.
Resolves:
#15107
#10810