From 8c9382f146c495aebc30deb89f2d086dba37f844 Mon Sep 17 00:00:00 2001 From: lvxiaoqiang Date: Tue, 21 Nov 2023 15:43:57 +0800 Subject: [PATCH] add night mode Signed-off-by: lvxiaoqiang Change-Id: I70b818a3282774309a5a9830e4e71b4ddeb6bf04 --- .../client/include/callback/dcamera_photo_callback.h | 1 + .../client/src/callback/dcamera_photo_callback.cpp | 5 +++++ .../cameraoperator/client/test/sample/dcamera_client_demo.h | 5 +++++ test/distributedcameraclienttest/dcamera_client_demo.h | 5 +++++ 4 files changed, 16 insertions(+) diff --git a/services/cameraservice/cameraoperator/client/include/callback/dcamera_photo_callback.h b/services/cameraservice/cameraoperator/client/include/callback/dcamera_photo_callback.h index d21be488..b1effe83 100644 --- a/services/cameraservice/cameraoperator/client/include/callback/dcamera_photo_callback.h +++ b/services/cameraservice/cameraoperator/client/include/callback/dcamera_photo_callback.h @@ -26,6 +26,7 @@ class DCameraPhotoCallback : public CameraStandard::PhotoStateCallback { public: explicit DCameraPhotoCallback(const std::shared_ptr& callback); void OnCaptureStarted(const int32_t captureID) const override; + void OnCaptureStarted(const int32_t captureID, uint32_t exposureTime) const override; void OnCaptureEnded(const int32_t captureID, const int32_t frameCount) const override; void OnFrameShutter(const int32_t captureId, const uint64_t timestamp) const override; void OnCaptureError(const int32_t captureId, const int32_t errorCode) const override; diff --git a/services/cameraservice/cameraoperator/client/src/callback/dcamera_photo_callback.cpp b/services/cameraservice/cameraoperator/client/src/callback/dcamera_photo_callback.cpp index 3231589a..e6d06ba2 100644 --- a/services/cameraservice/cameraoperator/client/src/callback/dcamera_photo_callback.cpp +++ b/services/cameraservice/cameraoperator/client/src/callback/dcamera_photo_callback.cpp @@ -29,6 +29,11 @@ void DCameraPhotoCallback::OnCaptureStarted(const int32_t captureID) const DHLOGI("enter, captureID: %d", captureID); } +void DCameraPhotoCallback::OnCaptureStarted(const int32_t captureID, uint32_t exposureTime) const +{ + DHLOGI("enter, captureID: %d, exposureTime: %u", captureID, exposureTime); +} + void DCameraPhotoCallback::OnCaptureEnded(const int32_t captureID, const int32_t frameCount) const { DHLOGI("enter, captureID: %d, frameCount: %d", captureID, frameCount); diff --git a/services/cameraservice/cameraoperator/client/test/sample/dcamera_client_demo.h b/services/cameraservice/cameraoperator/client/test/sample/dcamera_client_demo.h index 12cbdf89..533e0c5b 100644 --- a/services/cameraservice/cameraoperator/client/test/sample/dcamera_client_demo.h +++ b/services/cameraservice/cameraoperator/client/test/sample/dcamera_client_demo.h @@ -199,6 +199,11 @@ public: DHLOGI("DemoDCameraPhotoCallback::OnCaptureStarted captureID: %d", captureID); } + void OnCaptureStarted(const int32_t captureID, uint32_t exposureTime) const + { + DHLOGI("DemoDCameraPhotoCallback::OnCaptureStarted captureID: %d, exposureTime: %u", captureID, exposureTime); + } + void OnCaptureEnded(const int32_t captureID, int32_t frameCount) const { DHLOGI("DemoDCameraPhotoCallback::OnCaptureEnded captureID: %d frameCount: %d", captureID, frameCount); diff --git a/test/distributedcameraclienttest/dcamera_client_demo.h b/test/distributedcameraclienttest/dcamera_client_demo.h index 80bd2504..1d6ed8bd 100644 --- a/test/distributedcameraclienttest/dcamera_client_demo.h +++ b/test/distributedcameraclienttest/dcamera_client_demo.h @@ -199,6 +199,11 @@ public: DHLOGI("DemoDCameraPhotoCallback::OnCaptureStarted captureID: %d", captureID); } + void OnCaptureStarted(const int32_t captureID, uint32_t exposureTime) const + { + DHLOGI("DemoDCameraPhotoCallback::OnCaptureStarted captureID: %d, exposureTime: %u", captureID, exposureTime); + } + void OnCaptureEnded(const int32_t captureID, int32_t frameCount) const { DHLOGI("DemoDCameraPhotoCallback::OnCaptureEnded captureID: %d frameCount: %d", captureID, frameCount); -- Gitee