VideoWriter

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun advisedSize(width: Int, height: Int): Pair<Int, Int>
Link copied to clipboard
Link copied to clipboard
fun frame(frame: ColorBuffer)

Feed a frame to the video encoder

Link copied to clipboard
fun output(filename: String)

Set the output file, should be set before calling start()

Link copied to clipboard
Link copied to clipboard
fun size(width: Int, height: Int)
Link copied to clipboard

Start writing to the video file

Link copied to clipboard
fun stop()

Stop writing to the video file. This closes the video, after calling stop() it is no longer possible to provide new frames.

Properties

Link copied to clipboard
Link copied to clipboard
var height: Int
Link copied to clipboard
Link copied to clipboard

Returns true if the video process was started

Link copied to clipboard
var width: Int