Circular Encoder
constructor(width: Int, height: Int, bitRate: Int, frameRate: Int, desiredSpanSec: Int, cb: CircularEncoder.Callback)
Configures encoder, and prepares the input Surface.
Parameters
width
Width of encoded video, in pixels. Should be a multiple of 16.
height
Height of encoded video, in pixels. Usually a multiple of 16 (1080 is ok).
bit Rate
Target bit rate, in bits.
frame Rate
Expected frame rate.
desired Span Sec
How many seconds of video we want to have in our buffer at any time.