Would GPUI benefit from YUV surface rendering on Linux/Windows? #45866
jlucaso1
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I wanted to gauge interest before submitting a PR.
What I Built
I've implemented YUV video surface rendering for GPUI on Linux/Windows, bringing feature parity with macOS's existing
CVPixelBuffersupport. The implementation is complete and working in my fork:Branch: https://github.com/jlucaso1/zed/tree/gpui-yuv-surface-linux-windows
Why I Built It
I'm building a WhatsApp desktop client using GPUI and needed to render video frames from FFmpeg. On macOS, GPUI already supports this via
CVPixelBuffer, but Linux/Windows had no equivalent.What It Does
YuvFormat(NV12/I420) andYuvFrameDatatypessurface()element for non-macOS platformsPotential Use Cases in Zed
I noticed some related issues where this could help:
This could also benefit GPUI users building:
My Question
Before submitting a PR, I wanted to ask:
I completely understand if the answer is "keep it in your fork" - I don't want to add maintenance burden for a feature Zed isn't actively using. Just wanted to offer it upstream in case it's useful.
The implementation is ~500 lines across 5 files, follows existing GPUI patterns, and includes tests.
Thanks for your time!
Beta Was this translation helpful? Give feedback.
All reactions