Skip to content

feat(encoder): add VK_VALVE_video_encode_rgb_convertion#14

Open
porkloin wants to merge 2 commits into
hgaiser:mainfrom
porkloin:vk-valve-video
Open

feat(encoder): add VK_VALVE_video_encode_rgb_convertion#14
porkloin wants to merge 2 commits into
hgaiser:mainfrom
porkloin:vk-valve-video

Conversation

@porkloin
Copy link
Copy Markdown
Contributor

@porkloin porkloin commented May 8, 2026

Adds an opt-in RGB-direct encode path via VK_VALVE_video_encode_rgb_conversion. If a device advertises support for the extension and the caller opts in with `EncodeConfig::with_rgb_input(true), the encoder will take an already RGB formattied input image and functionally skip the conversion step. This has been wired in for H264, HEVC, and AV1.

If support isn't detected, it's a no-op.

For now, this extension only has support on AMD cards, but hopefully additional vendors will get support soon. Tested on 9070XT.

Note: this PR is stacked on top of the commit for #12 because it depends on the work there/would be messy to merge without it. Once #12 is in, I'll rebase without the cherry pick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant