From 02560792147e3f9ed9ecd8d525bf3bad504f39a3 Mon Sep 17 00:00:00 2001 From: wangchaole Date: Tue, 22 Mar 2022 17:06:22 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=8B=8D=E7=85=A7?= =?UTF-8?q?=E6=B5=81=E4=B8=8A=E6=8A=A5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangchaole --- .../src/dstream_operator/dstream_operator.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp b/camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp index 21af8d76..80b90ea2 100644 --- a/camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp +++ b/camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp @@ -492,6 +492,21 @@ DCamRetCode DStreamOperator::ShutterBuffer(int streamId, const std::shared_ptrsecond->type_ == DCStreamType::SNAPSHOT_FRAME) { + std::vector> info; + std::shared_ptr tmp = std::make_shared(); + tmp->frameCount_ = acceptedBufferNum_[std::make_pair(captureId, streamId)]; + tmp->streamId_ = streamId; + info.push_back(tmp); + if (dcStreamOperatorCallback_) { + dcStreamOperatorCallback_->OnCaptureEnded(captureId, info); + DHLOGE("snapshot stream successfully reported."); + } + } + } } uint64_t resultTimestamp = GetCurrentLocalTimeStamp(); -- Gitee From d25b5db89d72e18af449b8edeb479556149342a0 Mon Sep 17 00:00:00 2001 From: wangchaole Date: Tue, 22 Mar 2022 09:20:38 +0000 Subject: [PATCH 2/3] update camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp. --- camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp b/camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp index 80b90ea2..1d34ac33 100644 --- a/camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp +++ b/camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp @@ -503,7 +503,7 @@ DCamRetCode DStreamOperator::ShutterBuffer(int streamId, const std::shared_ptrOnCaptureEnded(captureId, info); - DHLOGE("snapshot stream successfully reported."); + DHLOGI("snapshot stream successfully reported captureId = %d streamId = %d.", captureId, streamId); } } } -- Gitee From d2ab4a78be9675a2585f9382e0763d8e737bf55e Mon Sep 17 00:00:00 2001 From: wangchaole Date: Tue, 22 Mar 2022 09:23:37 +0000 Subject: [PATCH 3/3] update camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp. --- camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp b/camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp index 1d34ac33..2ae88bec 100644 --- a/camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp +++ b/camera_hdf/hdi_impl/src/dstream_operator/dstream_operator.cpp @@ -503,7 +503,7 @@ DCamRetCode DStreamOperator::ShutterBuffer(int streamId, const std::shared_ptrOnCaptureEnded(captureId, info); - DHLOGI("snapshot stream successfully reported captureId = %d streamId = %d.", captureId, streamId); + DHLOGD("snapshot stream successfully reported captureId = %d streamId = %d.", captureId, streamId); } } } -- Gitee