mirror of
https://gitee.com/openharmony/xts_hats
synced 2025-02-19 18:00:51 +00:00
新增HDI接口适配
Signed-off-by: zhanghang133 <zhanghang133@huawei.com>
This commit is contained in:
parent
343f339733
commit
a7987da370
@ -272,6 +272,8 @@ public:
|
||||
virtual ~TestStreamOperatorCallbackV1_3() = default;
|
||||
int32_t OnCaptureStarted(int32_t captureId, const std::vector<int32_t> &streamId) override;
|
||||
int32_t OnCaptureEnded(int32_t captureId, const std::vector<CaptureEndedInfo> &infos) override;
|
||||
int32_t OnCaptureEndedExt(int32_t captureId,
|
||||
const std::vector<HDI::Camera::V1_3::CaptureEndedInfoExt> &infos) override;
|
||||
int32_t OnCaptureError(int32_t captureId, const std::vector<CaptureErrorInfo> &infos) override;
|
||||
int32_t OnFrameShutter(int32_t captureId, const std::vector<int32_t> &streamIds, uint64_t timestamp) override;
|
||||
int32_t OnCaptureStarted_V1_2(int32_t captureId,
|
||||
|
@ -869,6 +869,15 @@ int32_t Test::TestStreamOperatorCallbackV1_3::OnCaptureEnded(int32_t captureId,
|
||||
return instanceImpl.OnCaptureEnded(captureId, infos);
|
||||
}
|
||||
|
||||
int32_t Test::TestStreamOperatorCallbackV1_3::OnCaptureEndedExt(int32_t captureId,
|
||||
const std::vector<HDI::Camera::V1_3::CaptureEndedInfoExt> &infos)
|
||||
{
|
||||
for (auto it : infos) {
|
||||
CAMERA_LOGI("OnCaptureEndedExt captureId: %{public}d, streamId: %{public}d", captureId, it.streamId_);
|
||||
}
|
||||
return HDI::Camera::V1_0::NO_ERROR;
|
||||
}
|
||||
|
||||
int32_t Test::TestStreamOperatorCallbackV1_3::OnCaptureError(int32_t captureId,
|
||||
const std::vector<CaptureErrorInfo> &infos)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user