Skip to main content

Module convert

Module convert 

Source
Expand description

CPU conversion of native video surfaces to packed pixels.

Surface::to_rgba is the portable rendering exit: it downloads a GPU surface when necessary, applies the surface’s color space, and returns owned pixels for an image or UI toolkit.

Structs§

Config
CPU surface conversion options.
Rgba
Owned, tightly packed RGBA8 pixels in row-major order.