diff options
| author | bolunliu <bolun.liu@intel.com> | 2014-06-19 14:40:46 +0800 |
|---|---|---|
| committer | Patrick Tjin <pattjin@google.com> | 2014-07-21 21:51:54 -0700 |
| commit | 2060c3087569ab655dba4fcc93e6ee9d12093887 (patch) | |
| tree | f9e711d127fc9fdccc310ce4c699f191b184939a | |
| parent | f25436d6101c07bf8328950ce26b550502b593c9 (diff) | |
| download | android_hardware_intel_common_libmix-2060c3087569ab655dba4fcc93e6ee9d12093887.tar.gz android_hardware_intel_common_libmix-2060c3087569ab655dba4fcc93e6ee9d12093887.tar.bz2 android_hardware_intel_common_libmix-2060c3087569ab655dba4fcc93e6ee9d12093887.zip | |
Fix CTS failed cases
BZ:205039
Add walk round method in libmix to fix CTS failed cases.
Change-Id: I3b4d158cd4cc7e1a4bb1b0760aa71d454394a786
Signed-off-by: bolunliu <bolun.liu@intel.com>
| -rw-r--r-- | videoencoder/VideoEncoderUtils.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/videoencoder/VideoEncoderUtils.cpp b/videoencoder/VideoEncoderUtils.cpp index e2f76d5..53aafbd 100644 --- a/videoencoder/VideoEncoderUtils.cpp +++ b/videoencoder/VideoEncoderUtils.cpp @@ -321,6 +321,10 @@ Encode_Status VASurfaceMap::doMapping() { mAction |= MAP_ACTION_COPY; } + if(mAction & MAP_ACTION_ALIGN64 && width <= 320 && height <= 240) { + mAction |= MAP_ACTION_COPY; + } + if (mAction & MAP_ACTION_COPY) { //must allocate new vasurface(EXternalMemoryNULL, uncached) //allocate new vasurface mVASurface = CreateNewVASurface(mVADisplay, stride, height); |
