Skip to content
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

Converting frames into a form displayable via wgpu #80

Open
Kirottu opened this issue Apr 8, 2024 · 0 comments
Open

Converting frames into a form displayable via wgpu #80

Kirottu opened this issue Apr 8, 2024 · 0 comments

Comments

@Kirottu
Copy link

Kirottu commented Apr 8, 2024

I am currently trying to write a video player widget for a GUI framework using this crate and wgpu, which requires me to convert frames to a suitable pixel format (like rgba) after they have been decoded.

I did this conversion using VideoFrameScaler, but after that I have no idea how to turn the data from the planes into an actually valid frame for wgpu.

A naive solution of just appending all the data slices together works for some videos, but not all.

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

No branches or pull requests

1 participant