hwdec_d3d11va: support 4:4:4 and high bit depth zero-copy formats#18176
Open
kasper93 wants to merge 1 commit into
Open
hwdec_d3d11va: support 4:4:4 and high bit depth zero-copy formats#18176kasper93 wants to merge 1 commit into
kasper93 wants to merge 1 commit into
Conversation
Replace the static format whitelist with a device-probed table and add 4:4:4 (VUYX/XV30/XV36/XV48) and 4:2:0 12/16-bit (P012/P016) surfaces to both the zero-copy and copy mapper paths. The packed YUV formats can't be decomposed by ra_get_imgfmt_desc(), so they are viewed as a single RGBA texture and the swizzle is recovered from the imgfmt descriptor, which only works with --vo=gpu-next.
Member
Author
|
Currently, doesn't change much. But this change enables 12-bit decoding, added by https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23553. Also for the future where HEVC 444 might be added. |
Contributor
|
What about 4:2:2? Intel and NV Blackwell indeed support them. |
Member
Author
It would be supported too, but it's not exposed in ffmpeg, there needed to be changes. |
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
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.
Replace the static format whitelist with a device-probed table and add 4:4:4 (VUYX/XV30/XV36/XV48) and 4:2:0 12/16-bit (P012/P016) surfaces to both the zero-copy and copy mapper paths. The packed YUV formats can't be decomposed by ra_get_imgfmt_desc(), so they are viewed as a single RGBA texture and the swizzle is recovered from the imgfmt descriptor, which only works with --vo=gpu-next.