diff options
author | Austin Hu <austin.hu@intel.com> | 2016-06-17 19:22:58 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-06-17 19:22:58 +0000 |
commit | a755b30cd4248c7d9338528b6b6e47918f953331 (patch) | |
tree | fe21266442c562b1dab3f4874001da6369f86175 | |
parent | 668e7d549370a6e32336301b1f012acc131462c9 (diff) | |
parent | 0b9b9ee0b8436147a74734c0a7f86e8258d38170 (diff) | |
download | hwcomposer-a755b30cd4248c7d9338528b6b6e47918f953331.tar.gz |
Fixed the video playback messy issues by hardware decoding by libva. am: ca4b950d7e
am: 0b9b9ee0b8
Change-Id: I0b8ce32b3c95b520c63698ba46809f46820049f1
-rw-r--r-- | moorefield_hdmi/ips/tangier/TngGrallocBuffer.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/moorefield_hdmi/ips/tangier/TngGrallocBuffer.cpp b/moorefield_hdmi/ips/tangier/TngGrallocBuffer.cpp index 47d36d4..5984ea5 100644 --- a/moorefield_hdmi/ips/tangier/TngGrallocBuffer.cpp +++ b/moorefield_hdmi/ips/tangier/TngGrallocBuffer.cpp @@ -15,6 +15,7 @@ */ #include <common/utils/HwcTrace.h> #include <ips/tangier/TngGrallocBuffer.h> +#include <khronos/openmax/OMX_IntelVideoExt.h> namespace android { namespace intel { @@ -47,7 +48,11 @@ void TngGrallocBuffer::initBuffer(uint32_t handle) } mFormat = grallocHandle->iFormat; - mWidth = grallocHandle->iWidth; + if (mFormat == OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar || + mFormat == OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar_Tiled) { + mWidth = grallocHandle->aiStride[0]; + } else + mWidth = grallocHandle->iWidth; mHeight = grallocHandle->iHeight; mUsage = grallocHandle->usage; mKey = grallocHandle->ui64Stamp; |