The vpx_codec_encode() function is at the core of
the encode loop. It processes raw images passed by the application,
producing packets of compressed data. The
parameter controls the amount of time in microseconds the encoder
should spend working on the frame. For more information on the
deadline parameter, see Deadline.