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 21af8d7640b6d29ab9d715628463aaed5850e0f9..2ae88bec9f1c4b825732918f408c3498742ff95d 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();