OSDN Git Service

Add MediaTek private format for reprocessing
authorJasmine Chen <lnishan@google.com>
Wed, 14 Aug 2019 07:28:22 +0000 (15:28 +0800)
committerCommit Bot <commit-bot@chromium.org>
Thu, 5 Dec 2019 07:56:40 +0000 (07:56 +0000)
commitc7aa974dd383680ce8b1384785416bc77fa2c145
tree42c89ec20b633be79b68f966d87e9468d077c853
parent758cf12c8e701c2f783d895eeb87e9bb9017e72e
Add MediaTek private format for reprocessing

In this CL, we add DRM_FORMAT_MTISP_SXYZW10, a 10-bit private bayer
format for private reprocessing on MediaTek ISP P1. We change the logic
around resolving the DRM format for IMPLEMENTATION_DEFINED buffers. When
CAMERA_READ usage flag is present, we consider it to be a buffer for
reprocessing and resolve the format to our private format.

BUG=b:130851309
TEST=Emerge and deploy minigbm cros-camera-libcbm cros-camera
cros-camera-hal-mtk, then verify that ZSL is working.

Change-Id: I8d9fd4e6a20c284751915e136bef0b4ceb143d78
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/1753902
Tested-by: Jasmine Chen <lnishan@google.com>
Auto-Submit: Jasmine Chen <lnishan@google.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Commit-Queue: Jasmine Chen <lnishan@google.com>
drv.h
helpers.c
mediatek.c