diff options
author | Speth Chang <spethchang@google.com> | 2023-04-27 19:15:42 +0800 |
---|---|---|
committer | Speth Chang <spethchang@google.com> | 2023-04-27 19:19:41 +0800 |
commit | 542a6e28961c3c1aed3999af7cd085a862968282 (patch) | |
tree | 69870ff606c7d062d3d5035552c31078e2bdbc57 | |
parent | afb11d2062ee17c1ebfeb58fa73f16e057930096 (diff) | |
download | camera-542a6e28961c3c1aed3999af7cd085a862968282.tar.gz |
ZslSnapshotCaptureSession: reduce log level for non-error case
Change log level to information if the stream configuration is not
compatible.
Bug: 251044817
Test: GCA
Change-Id: I59d5e7137acc9d229f7367e61b5bac0fb7d9194a
-rw-r--r-- | common/hal/google_camera_hal/zsl_snapshot_capture_session.cc | 16 |
1 files changed, 8 insertions, 8 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 8d9e6d7..f6e658a 100644 --- a/common/hal/google_camera_hal/zsl_snapshot_capture_session.cc +++ b/common/hal/google_camera_hal/zsl_snapshot_capture_session.cc @@ -211,7 +211,7 @@ bool ZslSnapshotCaptureSession::IsStreamConfigurationSupported( camera_metadata_ro_entry entry; res = characteristics->Get(VendorTagIds::kSwDenoiseEnabled, &entry); if (res != OK || entry.data.u8[0] != 1) { - ALOGE("%s: Software denoised not enabled", __FUNCTION__); + ALOGI("%s: Software denoised not enabled", __FUNCTION__); return false; } @@ -220,11 +220,11 @@ bool ZslSnapshotCaptureSession::IsStreamConfigurationSupported( bool has_hdr_preview_stream = false; for (const auto& stream : stream_config.streams) { if (stream.is_physical_camera_stream) { - ALOGE("%s: support logical stream only", __FUNCTION__); + ALOGI("%s: support logical stream only", __FUNCTION__); return false; } if (utils::IsSecuredStream(stream)) { - ALOGE("%s: don't support secured stream", __FUNCTION__); + ALOGI("%s: don't support secured stream", __FUNCTION__); return false; } if (utils::IsJPEGSnapshotStream(stream) || @@ -238,27 +238,27 @@ bool ZslSnapshotCaptureSession::IsStreamConfigurationSupported( has_hdr_preview_stream = true; } } else { - ALOGE("%s: only support preview + (snapshot and/or YUV) streams", + ALOGI("%s: only support preview + (snapshot and/or YUV) streams", __FUNCTION__); return false; } } if (!has_eligible_snapshot_stream) { - ALOGE("%s: no eligible JPEG or YUV stream", __FUNCTION__); + ALOGI("%s: no eligible JPEG or YUV stream", __FUNCTION__); return false; } if (!has_preview_stream) { - ALOGE("%s: no preview stream", __FUNCTION__); + ALOGI("%s: no preview stream", __FUNCTION__); return false; } if (has_hdr_preview_stream) { - ALOGE("%s: 10-bit HDR preview stream does not support ZSL snapshot", + ALOGI("%s: 10-bit HDR preview stream does not support ZSL snapshot", __FUNCTION__); return false; } - ALOGD("%s: ZslSnapshotCaptureSession supports the stream config", + ALOGI("%s: ZslSnapshotCaptureSession supports the stream config", __FUNCTION__); return true; } |