add preSandboxInit
add getOutput to render to Pixmap directly
add setOutputCallback
add withWait to encoder getOutput
add forceKeyFrame, no implementation yet
set output flag basing on picture type, set input buffer bufAvailable after data is uploaded to driver
submitEncode after reorder

then P frame can be pushed to the front of the input queue