summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/api1/client2/ZslProcessor.cpp
diff options
context:
space:
mode:
authorZhijun He <zhijunhe@google.com>2014-08-08 12:00:47 -0700
committerZhijun He <zhijunhe@google.com>2014-08-11 04:32:14 +0000
commit28c9b6f298134624cb52b1af4ed8716dddb983d3 (patch)
tree4a9fb69c4b4f9783b8f1efe6369f5862633eddbb /services/camera/libcameraservice/api1/client2/ZslProcessor.cpp
parent2dfe8ea7c131a045067c123efc934ef6ccdb8821 (diff)
downloadframeworks_av-28c9b6f298134624cb52b1af4ed8716dddb983d3.zip
frameworks_av-28c9b6f298134624cb52b1af4ed8716dddb983d3.tar.gz
frameworks_av-28c9b6f298134624cb52b1af4ed8716dddb983d3.tar.bz2
Camera2/3: Cleanup the jpeg buffer size calcaulation logic
- Only one place calculating the jpeg size-the device layer, Camera2Device and Camera3Device. - Remove size argument for CameraDeviceBase and cleanup related code. Bug: 14327010 Change-Id: I45d2ab4859ee0cc9273e579254f0569108c748f1
Diffstat (limited to 'services/camera/libcameraservice/api1/client2/ZslProcessor.cpp')
-rw-r--r--services/camera/libcameraservice/api1/client2/ZslProcessor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/camera/libcameraservice/api1/client2/ZslProcessor.cpp b/services/camera/libcameraservice/api1/client2/ZslProcessor.cpp
index 10463c1..8fb876e 100644
--- a/services/camera/libcameraservice/api1/client2/ZslProcessor.cpp
+++ b/services/camera/libcameraservice/api1/client2/ZslProcessor.cpp
@@ -183,8 +183,7 @@ status_t ZslProcessor::updateStream(const Parameters &params) {
(int)HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED;
res = device->createStream(mZslWindow,
params.fastInfo.arrayWidth, params.fastInfo.arrayHeight,
- streamType, 0,
- &mZslStreamId);
+ streamType, &mZslStreamId);
if (res != OK) {
ALOGE("%s: Camera %d: Can't create output stream for ZSL: "
"%s (%d)", __FUNCTION__, mId,