CircularEncoder

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).

bitRate

Target bit rate, in bits.

frameRate

Expected frame rate.

desiredSpanSec

How many seconds of video we want to have in our buffer at any time.