Optimaz libmix encoder in async mode.

BZ: 30377

Before vaSyncSurface(frame N), vaEndPicture(frame N-1) should be invoked,
which prevents TopazSC from entering D0i3 while there is upcomming encoding request.
Signed-off-by: Elaine Wang <elaine.wang@intel.com>

Change-Id: I9d91d778eb83d555c37ea4a7d9e379afaf29db63
Reviewed-on: http://android.intel.com:8080/43342
Reviewed-by: Wang, Elaine <elaine.wang@intel.com>
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Tao, Tao Q <tao.q.tao@intel.com>
Reviewed-by: Ding, Haitao <haitao.ding@intel.com>
Tested-by: Ding, Haitao <haitao.ding@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
1 file changed