KiteFFmpegWebPainter

Paints this backend's video frames into a web destination as RGBA, inside the codec module.

It holds a scratch buffer sized to the largest frame it has seen, 24.9 MB for 4K, and that memory belongs to the codec module rather than to any collector that could reclaim it, so close it with the renderer that owns it.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun paint(frame: VideoFrame, destination: JsAny): Boolean

Converts frame into destination, a JavaScript array the size of the frame's RGBA. False for a frame from another backend, which the renderer counts as a drop.