Skip to content

Improve video frame conversion logic#203

Merged
MaxHeimbrock merged 6 commits intomainfrom
max/mirror-videos-correctly
Mar 27, 2026
Merged

Improve video frame conversion logic#203
MaxHeimbrock merged 6 commits intomainfrom
max/mirror-videos-correctly

Conversation

@MaxHeimbrock
Copy link
Copy Markdown
Contributor

@MaxHeimbrock MaxHeimbrock commented Mar 26, 2026

Fixes:

  • CPU conversion misses mirror
  • GPU shader was not included in builds automatically
  • GPU shader used wrong color conventions, images turned too bright

=============================================

We only mirrored in GPU YUV conversion path and also did not have the shader in a resource folder, so you had to manually specify it in graphics settings to be included in platform builds.

In resource builds the shader now gets included in all builds automatically. So the CPU fallback is not used anymore, and if it was I also added the mirror to the CPU path as well.

I did the same for the resizing shader in the Meet example and also did a small addition to .gitignore on the side.

The YUV to RGBA conversion shader was using wrong assumptions about sRGB and ARGB color spaces. That is why the conversion looked wrong with a too bright image.

@MaxHeimbrock MaxHeimbrock changed the title Mirror videos correctly Improve video frame conversion logic Mar 27, 2026
@MaxHeimbrock
Copy link
Copy Markdown
Contributor Author

Proof of improved GPU color conversion:
Screenshot 2026-03-27 at 15 43 50

@MaxHeimbrock MaxHeimbrock merged commit 41c58ee into main Mar 27, 2026
14 checks passed
@MaxHeimbrock MaxHeimbrock deleted the max/mirror-videos-correctly branch March 27, 2026 15:46
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.

2 participants