frame

fun frame(frame: ColorBuffer)(source)

Feed a frame to the video encoder

Parameters

frame

a ColorBuffer (RGBA, 8bit) holding the image data to be written to the video. The ColorBuffer should have the same resolution as the VideoWriter. For HDR profiles, see VideoWriterProfile.hdrTransfer, the ColorBuffer holds linear colors in which 1.0 is SDR white, typically a floating point ColorBuffer.