diff options
author | Cheng Gu <gucheng@google.com> | 2022-07-20 18:23:49 +0000 |
---|---|---|
committer | Cheng Gu <gucheng@google.com> | 2022-07-20 23:03:57 +0000 |
commit | 1008b72245822783b515ab2fe5553e1f8ce90691 (patch) | |
tree | 48e1db9bdd912a5871f7fe6901b494ff2e567868 | |
parent | 65c9ef8a9b2079658805f28fcc1ef380b30bcde6 (diff) | |
download | camera-1008b72245822783b515ab2fe5553e1f8ce90691.tar.gz |
realtime_zsl: Add verbose log in RealtimeZslResultRequestProcessor
Adds ALOGV() in ProcessResult() and Notify().
Bug: 235371520
Test: Framework stress test, CTS
Change-Id: I62642e692858128831835d318047708343402118
-rw-r--r-- | common/hal/google_camera_hal/realtime_zsl_result_request_processor.cc | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/common/hal/google_camera_hal/realtime_zsl_result_request_processor.cc b/common/hal/google_camera_hal/realtime_zsl_result_request_processor.cc index dec275d..d0d401d 100644 --- a/common/hal/google_camera_hal/realtime_zsl_result_request_processor.cc +++ b/common/hal/google_camera_hal/realtime_zsl_result_request_processor.cc @@ -99,6 +99,14 @@ void RealtimeZslResultRequestProcessor::ProcessResult( return; } + // May change to ALOGD for per-frame results. + ALOGV( + "%s: Received result at frame: %d, has metadata (%s), output buffer " + "counts: %lu, input buffer counts: %lu", + __FUNCTION__, result->frame_number, + (result->result_metadata ? "yes" : "no"), result->output_buffers.size(), + result->input_buffers.size()); + // Pending request should always exist RequestEntry& pending_request = pending_frame_number_to_requests_[result->frame_number]; @@ -348,6 +356,10 @@ void RealtimeZslResultRequestProcessor::Notify( // Will return buffer for kErrorRequest and kErrorBuffer. if (message.type == MessageType::kError) { + // May change to ALOGD for per-frame error messages. + ALOGV("%s: Received error message at frame: %d, error code (%d)", + __FUNCTION__, message.message.error.frame_number, + static_cast<int>(message.message.error.error_code)); if (message.message.error.error_code == ErrorCode::kErrorRequest || message.message.error.error_code == ErrorCode::kErrorBuffer) { pending_error_frames_.try_emplace( @@ -361,9 +373,17 @@ void RealtimeZslResultRequestProcessor::Notify( .partial_results_received++; } } + } else { + // May change to ALOGD for per-frame shutter messages. + ALOGV( + "%s: Received shutter message for frame %d, timestamp_ns: %lu, " + "readout_timestamp_ns: %lu", + __FUNCTION__, message.message.shutter.frame_number, + message.message.shutter.timestamp_ns, + message.message.shutter.readout_timestamp_ns); } notify_(message); } } // namespace google_camera_hal -} // namespace android
\ No newline at end of file +} // namespace android |