summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/api1/client2/CallbackProcessor.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/CallbackProcessor.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/CallbackProcessor.cpp')
-rw-r--r--services/camera/libcameraservice/api1/client2/CallbackProcessor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/camera/libcameraservice/api1/client2/CallbackProcessor.cpp b/services/camera/libcameraservice/api1/client2/CallbackProcessor.cpp
index c266213..bf3318e 100644
--- a/services/camera/libcameraservice/api1/client2/CallbackProcessor.cpp
+++ b/services/camera/libcameraservice/api1/client2/CallbackProcessor.cpp
@@ -155,7 +155,7 @@ status_t CallbackProcessor::updateStream(const Parameters &params) {
callbackFormat, params.previewFormat);
res = device->createStream(mCallbackWindow,
params.previewWidth, params.previewHeight,
- callbackFormat, 0, &mCallbackStreamId);
+ callbackFormat, &mCallbackStreamId);
if (res != OK) {
ALOGE("%s: Camera %d: Can't create output stream for callbacks: "
"%s (%d)", __FUNCTION__, mId,