summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-07-16 01:07:30 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-07-16 01:07:30 +0000
commit45116c173795229d61b1c4c4c1c10842b6005196 (patch)
tree865eb27b75b87093ea2d3afd4dbf0a4278f009b3
parentd9094cfc540838e7cd44caf831ed0f96d1b5e537 (diff)
parente3451b87d4da7467390383800c59eb607df123ee (diff)
downloadcamera-45116c173795229d61b1c4c4c1c10842b6005196.tar.gz
Snap for 7553867 from e3451b87d4da7467390383800c59eb607df123ee to sc-release
Change-Id: Ic34a12917d5f54a3e0df01e280d988c9f27fa330
-rw-r--r--common/hal/google_camera_hal/zsl_snapshot_capture_session.cc20
1 files changed, 2 insertions, 18 deletions
diff --git a/common/hal/google_camera_hal/zsl_snapshot_capture_session.cc b/common/hal/google_camera_hal/zsl_snapshot_capture_session.cc
index 56fb96d..a7c0fd8 100644
--- a/common/hal/google_camera_hal/zsl_snapshot_capture_session.cc
+++ b/common/hal/google_camera_hal/zsl_snapshot_capture_session.cc
@@ -163,17 +163,12 @@ bool ZslSnapshotCaptureSession::IsStreamConfigurationSupported(
return false;
}
- bool has_physical_camera_stream = false;
- bool has_non_physical_camera_stream = false;
bool has_jpeg_stream = false;
bool has_preview_stream = false;
- std::set<int> physical_camera_in_use;
for (const auto& stream : stream_config.streams) {
if (stream.is_physical_camera_stream) {
- has_physical_camera_stream = true;
- physical_camera_in_use.insert(stream.physical_camera_id);
- } else {
- has_non_physical_camera_stream = true;
+ ALOGE("%s: support logical camera only", __FUNCTION__);
+ return false;
}
if (utils::IsJPEGSnapshotStream(stream)) {
has_jpeg_stream = true;
@@ -194,17 +189,6 @@ bool ZslSnapshotCaptureSession::IsStreamConfigurationSupported(
return false;
}
- if (has_physical_camera_stream && has_non_physical_camera_stream) {
- ALOGE("%s: support only physical camera or logical camera, but not both",
- __FUNCTION__);
- return false;
- }
-
- if (has_physical_camera_stream && physical_camera_in_use.size() != 1) {
- ALOGE("%s: support only 1 physical camera, but %d have set up streams",
- __FUNCTION__, static_cast<int>(physical_camera_in_use.size()));
- }
-
ALOGD("%s: ZslSnapshotCaptureSession supports the stream config",
__FUNCTION__);
return true;