VideoEncode: set graphic buffer stride accordingly.

BZ: 76032

Graphic buffer's width and its stride has following relations:
(0, 512]      ==> 512
(512, 1024]  ==> 1024
(1024, 1280] ==> 1280
(1280,       ==> 2048
Set accordingly.

Change-Id: I537a412166bd15f934fd130a5081d0901e6155b1
Signed-off-by: Chang Ying <ying.chang@intel.com>
Reviewed-on: http://android.intel.com:8080/83615
Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com>
Reviewed-by: Shi, PingX <pingx.shi@intel.com>
Tested-by: Shi, PingX <pingx.shi@intel.com>
Reviewed-by: cactus <cactus@intel.com>
Tested-by: cactus <cactus@intel.com>
1 file changed