From 06068bffa9d226ab578e8dea5540179da89aebf9 Mon Sep 17 00:00:00 2001 From: Eino-Ville Talvala Date: Thu, 13 Sep 2012 16:29:45 -0700 Subject: [PATCH] Camera2: Use FORMAT_ZSL until transition to new gralloc scheme. Until all HAL implementations move to the new format negotiation scheme, use CAMERA2_HAL_PIXEL_FORMAT_ZSL to indicate ZSL mode. Bug: 6243944 Change-Id: Idf5d9f42e203903ba906d5df156100646b27404c --- services/camera/libcameraservice/camera2/ZslProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/camera/libcameraservice/camera2/ZslProcessor.cpp b/services/camera/libcameraservice/camera2/ZslProcessor.cpp index 58e820cb8d..f17b5d3417 100644 --- a/services/camera/libcameraservice/camera2/ZslProcessor.cpp +++ b/services/camera/libcameraservice/camera2/ZslProcessor.cpp @@ -157,7 +157,7 @@ status_t ZslProcessor::updateStream(const Parameters ¶ms) { // TODO: Sort out better way to select resolution for ZSL res = device->createStream(mZslWindow, params.fastInfo.arrayWidth, params.fastInfo.arrayHeight, - HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED, 0, + CAMERA2_HAL_PIXEL_FORMAT_ZSL, 0, &mZslStreamId); if (res != OK) { ALOGE("%s: Camera %d: Can't create output stream for ZSL: " -- 2.11.0