summaryrefslogtreecommitdiff
path: root/ips
diff options
context:
space:
mode:
authorfu jin <fu.jin@intel.com>2014-01-20 13:56:42 -0800
committerbuildslave <sys_buildbot@intel.com>2014-01-29 06:40:27 +0000
commit5985dd13bd4e64380aafd33ac11becbeed19e686 (patch)
treeca08ae600144020c3c6925743e360283e56860c8 /ips
parente24acf1d95bc16160a665a526e5593b22c7d4dfd (diff)
downloadhwcomposer-5985dd13bd4e64380aafd33ac11becbeed19e686.tar.gz
correct offset for NV12
BZ: 154490 correct offset for NV12 for camera preview. Change-Id: I703697cd191648f4fba7f36f739220cb2d432663 Signed-off-by: fu jin <fu.jin@intel.com>
Diffstat (limited to 'ips')
-rw-r--r--ips/common/OverlayPlaneBase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ips/common/OverlayPlaneBase.cpp b/ips/common/OverlayPlaneBase.cpp
index 245bf99..5a271d1 100644
--- a/ips/common/OverlayPlaneBase.cpp
+++ b/ips/common/OverlayPlaneBase.cpp
@@ -714,13 +714,13 @@ bool OverlayPlaneBase::bufferOffsetSetup(BufferMapper& mapper)
break;
case HAL_PIXEL_FORMAT_NV12: // NV12
backBuffer->OBUF_0Y = 0;
- backBuffer->OBUF_0U = yStride * align_to(h, 32);
+ backBuffer->OBUF_0U = yStride * h;
backBuffer->OBUF_0V = 0;
backBuffer->OCMD |= OVERLAY_FORMAT_PLANAR_NV12_2;
break;
// NOTE: this is the decoded video format, align the height to 32B
//as it's defined by video driver
- case OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar: // NV12
+ case OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar: // Intel codec NV12
backBuffer->OBUF_0Y = 0;
backBuffer->OBUF_0U = yStride * align_to(h, 32);
backBuffer->OBUF_0V = 0;