libmix: enhance libmix to handle the case that resolution in container is diff from ES resolution

BZ: 25724 29844 28316

enhance libmix to handle the case that resolution in container is diff from ES resolution
1: if the resolution in container is larger than real ES resolution, return the correct crop
info to omxcodec to set the proper region for display

2: if the resolution in container is smaller than real ES resolution, Graphic buffer in omxcodec
should be reallocated and reset graphic related info to OMX IL and libmix, va should be restart.
Signed-off-by: ywan171 <yi.a.wang@intel.com>

Change-Id: Iaf97c822d66b0a978661c6c469b682713b009ad5
Reviewed-on: http://android.intel.com:8080/42767
Reviewed-by: Qiu, Junhai <junhai.qiu@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>
7 files changed