Skip to content

Converting frames into a form displayable via wgpu #80

Description

@Kirottu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions