Skip to main content

Crate ferroui_media_browser

Crate ferroui_media_browser 

Source
Expand description

Immutable WebGL2 storage shared by independent producers, video and camera. Two routes, chosen at run time by where the compositor’s WebGL2 context lives: on the page’s thread, native media transfers use TexImageSource directly into a shared texture; on the render worker of a module with threads, each frame is a WebCodecs VideoFrame transferred to the worker and uploaded there when the compositor imports it (#601). No framework preview pixel array or readback is admitted on either route. Browser decoder/driver internals are opaque.

Structs§

BrowserFrameStream
One producer transfer in flight, with latest-native-frame dropping. A second view reads the shared mailbox; it does not call this acquisition.
BrowserImageFrame
Native browser image and its source-frame timestamp, sampled synchronously with the subsequent TexImageSource transfer. No framework pixel buffer.
PendingWebGlFrame
Cancellation drops the caller’s view; the fence retains submitted storage.
WebGlFrameProducer
Allocation policy for the active compositor context. Old generations remain charged to the same budget until their native storage actually retires.

Functions§

unsupported