support different color format in gralloc buffer mapping in libmix

BZ: 130945

support different color format in gralloc buffer mapping in libmix,
and update mix_encoder2 to fix some bugs and add support for surfacemediasource
as well

Change-Id: I3026aab9dae3fea45d109d9945f50bf2415e4f78
Signed-off-by: Zhao Liang <leo.zhao@intel.com>
Reviewed-on: http://android.intel.com:8080/125866
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>
2 files changed