OSDN Git Service

mediatek: Align height to 16 bytes for NV12
authorMoja Hsu <mojahsu@google.com>
Wed, 2 Oct 2019 06:47:10 +0000 (14:47 +0800)
committerCommit Bot <commit-bot@chromium.org>
Wed, 8 Jan 2020 04:44:25 +0000 (04:44 +0000)
commit059ac08b0b3ad075b741fe090c031be63fc5a1e7
tree7445a85ac4d44e4968fd815eb1904ed8687dfc4f
parent2a2bfc25bb4eaf53d6d1d9e1990c6b2888d4d3fb
mediatek: Align height to 16 bytes for NV12

We want to use the same buffer from camera to JPEG hardware encoder so
align the height of camera usage buffer 16 that is required by the JPEG
hardware encoder.

BUG=b:141516308
TEST=Check if data offset is correct. Take picture with CCA.

Change-Id: I0db10762494423f7c4a340725015839803b40af4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/1984211
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Hsu Wei-Cheng <mojahsu@chromium.org>
Commit-Queue: Hsu Wei-Cheng <mojahsu@chromium.org>
mediatek.c