accelerate camera recording start up speed
When do initial buffer submit, if do drainInputBuffers() first, it will always wait all input buffers reached, and then start fillOutputBuffers().During this time, nothing to do in level codec, all time is cost on waiting, it is especially severe for Camera recording case, for example, in 30fps case, If 3 input buffers are required, HW codec will wait at least 99ms to start video encoding, since no outport buffer ready at this time. After change call sequence, fillOutputBuffers() is done fast firstly, then do drainInputBuffers(), when receive one input buffer in HW codec, it can start working immediately, because the working condition is reached, both input port and out port buffers are ready. Change-Id: If74fd839f2bb0cae6c7d8ae0912d47abb2cdc045 Signed-off-by: jiguoliang <guoliang.ji@intel.com> Signed-off-by: ywan171 <yi.a.wang@intel.com>
Loading
Please register or sign in to comment