From 8720245aac3d92006438352927a3eea906f8c87e Mon Sep 17 00:00:00 2001 From: wangchaole Date: Tue, 22 Mar 2022 17:37:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=8B=8D=E7=85=A7=E6=B5=81?= =?UTF-8?q?=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..2ae88bec 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); + DHLOGD("snapshot stream successfully reported captureId = %d streamId = %d.", captureId, streamId); + } + } + } } uint64_t resultTimestamp = GetCurrentLocalTimeStamp(); -- Gitee