Home
last modified time | relevance | path

Searched refs:captureId (Results 1 – 25 of 118) sorted by relevance

12345

/drivers/peripheral/camera/test/common/callback/src/
Dstream_operator_callback.cpp21 int32_t StreamOperatorCallback::OnCaptureStarted(int32_t captureId, const std::vector<int32_t>& str… in OnCaptureStarted() argument
23 (void)captureId; in OnCaptureStarted()
29 int32_t StreamOperatorCallback::OnCaptureEnded(int32_t captureId, const std::vector<CaptureEndedInf… in OnCaptureEnded() argument
31 (void)captureId; in OnCaptureEnded()
37 int32_t StreamOperatorCallback::OnCaptureError(int32_t captureId, const std::vector<CaptureErrorInf… in OnCaptureError() argument
39 (void)captureId; in OnCaptureError()
45 int32_t StreamOperatorCallback::OnFrameShutter(int32_t captureId, in OnFrameShutter() argument
48 (void)captureId; in OnFrameShutter()
/drivers/peripheral/camera/hal_c/include/
Dstream_operator_c_if.h27 void (*OnCaptureStarted)(int captureId, int* streamId, int count);
28 void (*OnCaptureEnded)(int captureId, CaptureEndedInfoCIF* info, int count);
29 void (*OnCaptureError)(int captureId, CaptureErrorInfoCIF* info, int count);
30 void (*OnFrameShutter)(int captureId, int* streamId, int count, uint64_t timestamp);
34 int (*CancelCapture)(int captureId);
51 int (*Capture)(int captureId, CaptureInfoCIF info, int isStreaming);
52 int (*CancelCapture)(int captureId);
/drivers/peripheral/audio/hdi_service/primary_impl/vendor_src/
Daudio_capture_vendor.h22 …oCapture *AudioHwiCreateCaptureById(const struct AudioSampleAttributes *attrs, uint32_t *captureId,
24 void AudioHwiDestroyCaptureById(uint32_t captureId);
25 struct AudioHwiCapture *AudioHwiGetHwiCaptureById(uint32_t captureId);
27 uint32_t *captureId);
28 uint32_t DecreaseCaptureUsrCount(uint32_t captureId);
Daudio_capture_vendor.c35 uint32_t captureId; member
52 struct AudioHwiCapture *AudioHwiGetHwiCaptureById(uint32_t captureId) in AudioHwiGetHwiCaptureById() argument
55 if (priv->captureInfos[captureId] == NULL) { in AudioHwiGetHwiCaptureById()
60 return priv->captureInfos[captureId]->hwiCapture; in AudioHwiGetHwiCaptureById()
762 uint32_t *captureId) in FindCaptureCreated() argument
765 if (captureId == NULL || attrs == NULL) { in FindCaptureCreated()
791 *captureId = capturePriv->captureInfos[index]->captureId; in FindCaptureCreated()
800 uint32_t captureId = AUDIO_HW_STREAM_NUM_MAX; in GetAvailableCaptureId() local
804 return captureId; in GetAvailableCaptureId()
808 captureId = capturePriv->captureCnt; in GetAvailableCaptureId()
[all …]
/drivers/peripheral/audio/hdi_service/primary_impl/vdi_src/
Daudio_capture_vdi.h22 …oCapture *AudioCreateCaptureByIdVdi(const struct AudioSampleAttributes *attrs, uint32_t *captureId,
24 void AudioDestroyCaptureByIdVdi(uint32_t captureId);
25 struct IAudioCaptureVdi *AudioGetVdiCaptureByIdVdi(uint32_t captureId);
27 uint32_t *captureId);
28 uint32_t DecreaseCaptureUsrCount(uint32_t captureId);
Daudio_capture_vdi.c35 uint32_t captureId; member
51 struct IAudioCaptureVdi *AudioGetVdiCaptureByIdVdi(uint32_t captureId) in AudioGetVdiCaptureByIdVdi() argument
54 if (priv->captureInfos[captureId] == NULL) { in AudioGetVdiCaptureByIdVdi()
59 return priv->captureInfos[captureId]->vdiCapture; in AudioGetVdiCaptureByIdVdi()
760 uint32_t *captureId) in FindCaptureCreated() argument
764 if (captureId == NULL || attrs == NULL) { in FindCaptureCreated()
790 *captureId = capturePriv->captureInfos[index]->captureId; in FindCaptureCreated()
800 uint32_t captureId = AUDIO_VDI_STREAM_NUM_MAX; in GetAvailableCaptureId() local
803 return captureId; in GetAvailableCaptureId()
807 captureId = capturePriv->captureCnt; in GetAvailableCaptureId()
[all …]
/drivers/peripheral/camera/hal_c/hdi_cif/src/
Dstream_operator_callback_wrapper.cpp28 void StreamCBOnCaptureStarted(int captureId, const int* streamId, int count) in StreamCBOnCaptureStarted() argument
38 g_streamCallback->OnCaptureStarted(captureId, ids); in StreamCBOnCaptureStarted()
41 void StreamCBOnCaptureEnded(int captureId, CaptureEndedInfoCIF* info, int count) in StreamCBOnCaptureEnded() argument
51 …CAMERA_LOGE("it is nullptr captureId: %{public}d streamId: %{public}d", captureId, info[i].streamI… in StreamCBOnCaptureEnded()
59 g_streamCallback->OnCaptureEnded(captureId, ends); in StreamCBOnCaptureEnded()
64 void StreamCBOnCaptureError(int captureId, CaptureErrorInfoCIF* info, int count) in StreamCBOnCaptureError() argument
74 …CAMERA_LOGE("it is nullptr captureId: %{public}d streamId: %{public}d", captureId, info[i].streamI… in StreamCBOnCaptureError()
82 g_streamCallback->OnCaptureError(captureId, errors); in StreamCBOnCaptureError()
87 void StreamCBOnFrameShutter(int captureId, const int* streamId, int count, uint64_t timestamp) in StreamCBOnFrameShutter() argument
101 g_streamCallback->OnFrameShutter(captureId, ids, timestamp); in StreamCBOnFrameShutter()
/drivers/peripheral/camera/hdi_service/v1_0/src/
Dstream_operator_service_callback.cpp25 int32_t StreamOperatorServiceCallback::OnCaptureStarted(int32_t captureId, const std::vector<int32_… in OnCaptureStarted() argument
28 return streamOperatorCallback_->OnCaptureStarted(captureId, streamIds); in OnCaptureStarted()
31 int32_t StreamOperatorServiceCallback::OnCaptureEnded(int32_t captureId, const std::vector<VdiCaptu… in OnCaptureEnded() argument
40 return streamOperatorCallback_->OnCaptureEnded(captureId, hdiInfos); in OnCaptureEnded()
43 int32_t StreamOperatorServiceCallback::OnCaptureError(int32_t captureId, const std::vector<VdiCaptu… in OnCaptureError() argument
52 return streamOperatorCallback_->OnCaptureError(captureId, hdiInfos); in OnCaptureError()
55 int32_t StreamOperatorServiceCallback::OnFrameShutter(int32_t captureId, in OnFrameShutter() argument
59 return streamOperatorCallback_->OnFrameShutter(captureId, streamIds, timestamp); in OnFrameShutter()
/drivers/peripheral/camera/vdi_base/v4l2/src/offline_stream_operator/
Doffline_stream_operator_vdi_impl.cpp31 int32_t OfflineStreamOperatorVdiImpl::CancelCapture(int32_t captureId) in CancelCapture() argument
33 CHECK_IF_EQUAL_RETURN_VALUE(captureId < 0, true, INVALID_ARGUMENT); in CancelCapture()
38 std::shared_ptr<OfflineStream> stream = FindStreamByCaptureId(captureId); in CancelCapture()
40 CAMERA_LOGD("can't find stream by captureId %{public}d, buffer all returned.", captureId); in CancelCapture()
43 RetCode ret = stream->CancelCapture(captureId); in CancelCapture()
45 CAMERA_LOGE("cancel captureId %{public}d failed", captureId); in CancelCapture()
102 …d::shared_ptr<OfflineStream> OfflineStreamOperatorVdiImpl::FindStreamByCaptureId(int32_t captureId) in FindStreamByCaptureId() argument
108 if (it->second->CheckCaptureIdExist(captureId)) { in FindStreamByCaptureId()
Doffline_stream.cpp64 RetCode OfflineStream::CancelCapture(int32_t captureId) in CancelCapture() argument
67 RetCode ret = manager.CancelCapture(streamId_, captureId); in CancelCapture()
69 CAMERA_LOGE("cancel capture %{public}d failed", captureId); in CancelCapture()
125 int32_t captureId = buffer->GetCaptureId(); in ReturnBuffer() local
132 … [captureId](const std::shared_ptr<CaptureRequest>& r) { return r->GetCaptureId() == captureId; }); in ReturnBuffer()
171 bool OfflineStream::CheckCaptureIdExist(int32_t captureId) in CheckCaptureIdExist() argument
176 … [captureId](const std::shared_ptr<CaptureRequest>& r) { return r->GetCaptureId() == captureId; }); in CheckCaptureIdExist()
223 void OfflineStream::OnCaptureEnded(int32_t captureId, const std::vector<VdiCaptureEndedInfo>& infos) in OnCaptureEnded() argument
226 callback_->OnCaptureEnded(captureId, infos); in OnCaptureEnded()
229 void OfflineStream::OnCaptureError(int32_t captureId, const std::vector<VdiCaptureErrorInfo>& infos) in OnCaptureError() argument
[all …]
/drivers/peripheral/camera/hal_c/hdi_cif/include/
Dstream_operator_callback_wrapper.h29 extern void StreamCBOnCaptureStarted(int captureId, const int* streamId, int count);
30 extern void StreamCBOnCaptureEnded(int captureId, CaptureEndedInfoCIF* info, int count);
31 extern void StreamCBOnCaptureError(int captureId, CaptureErrorInfoCIF* info, int count);
32 extern void StreamCBOnFrameShutter(int captureId, const int* streamId, int count, uint64_t timestam…
/drivers/peripheral/camera/interfaces/hdi_passthrough/callback/src/
Dstream_operator_callback.cpp20 void StreamOperatorCallback::OnCaptureStarted(int32_t captureId, in OnCaptureStarted() argument
26 void StreamOperatorCallback::OnCaptureEnded(int32_t captureId, in OnCaptureEnded() argument
32 void StreamOperatorCallback::OnCaptureError(int32_t captureId, in OnCaptureError() argument
38 void StreamOperatorCallback::OnFrameShutter(int32_t captureId, in OnFrameShutter() argument
/drivers/peripheral/camera/interfaces/hdi_passthrough/callback/include/
Dstream_operator_callback.h28 void OnCaptureStarted(int32_t captureId, const std::vector<int32_t> &streamId) override;
29 void OnCaptureEnded(int32_t captureId,
31 void OnCaptureError(int32_t captureId,
33 void OnFrameShutter(int32_t captureId,
/drivers/peripheral/distributed_camera/hdi_service/test/unittest/common/dstream_operator/
Dmock_dstream_operator_callback.h30 int32_t OnCaptureStarted(int32_t captureId, const std::vector<int32_t>& streamIds) override in OnCaptureStarted() argument
35 int32_t OnCaptureEnded(int32_t captureId, const std::vector<CaptureEndedInfo>& infos) override in OnCaptureEnded() argument
40 int32_t OnCaptureError(int32_t captureId, const std::vector<CaptureErrorInfo>& infos) override in OnCaptureError() argument
45 …int32_t OnFrameShutter(int32_t captureId, const std::vector<int32_t>& streamIds, uint64_t timestam… in OnFrameShutter() argument
/drivers/peripheral/camera/test/common/callback/include/
Dstream_operator_callback.h29 int32_t OnCaptureStarted(int32_t captureId, const std::vector<int32_t>& streamIds) override;
30 int32_t OnCaptureEnded(int32_t captureId, const std::vector<CaptureEndedInfo>& infos) override;
31 int32_t OnCaptureError(int32_t captureId, const std::vector<CaptureErrorInfo>& infos) override;
32 …int32_t OnFrameShutter(int32_t captureId, const std::vector<int32_t>& streamIds, uint64_t timestam…
/drivers/peripheral/camera/vdi_base/interfaces/v1_0/
Distream_operator_vdi_callback.h37 virtual int32_t OnCaptureStarted(int32_t captureId, const std::vector<int32_t> &streamIds) = 0;
39 …virtual int32_t OnCaptureEnded(int32_t captureId, const std::vector<VdiCaptureEndedInfo> &infos) =…
41 …virtual int32_t OnCaptureError(int32_t captureId, const std::vector<VdiCaptureErrorInfo> &infos) =…
43 …virtual int32_t OnFrameShutter(int32_t captureId, const std::vector<int32_t> &streamIds, uint64_t …
/drivers/peripheral/camera/vdi_base/v4l2/include/stream_operator/
Dcapture_message.h40 ICaptureMessage(int32_t streamId, int32_t captureId, uint64_t time, uint32_t count);
63 CaptureStartedMessage(int32_t streamId, int32_t captureId, uint64_t time, uint32_t count) in CaptureStartedMessage() argument
64 : ICaptureMessage(streamId, captureId, time, count) in CaptureStartedMessage()
76 …CaptureEndedMessage(int32_t streamId, int32_t captureId, uint64_t time, uint32_t peerCount, uint32… in CaptureEndedMessage() argument
77 : ICaptureMessage(streamId, captureId, time, peerCount) in CaptureEndedMessage()
97 CaptureErrorMessage(int32_t streamId, int32_t captureId, uint64_t time, uint32_t peerCount, in CaptureErrorMessage() argument
98 VdiStreamError errorCode) : ICaptureMessage(streamId, captureId, time, peerCount) in CaptureErrorMessage()
120 FrameShutterMessage(int32_t streamId, int32_t captureId, uint64_t time, uint32_t count) in FrameShutterMessage() argument
121 : ICaptureMessage(streamId, captureId, time, count) in FrameShutterMessage()
/drivers/peripheral/camera/test/ut/v4l2/
Ddouble_preview_test.cpp100 void DoublePreviewTest::StartCapture(int streamId, int captureId, bool shutterCallback, bool isStre… in StartCapture() argument
106 … result_ = (CamRetCode)cameraBase_->streamOperator->Capture(captureId, captureInfo_, isStreaming); in StartCapture()
109 CAMERA_LOGI("check Capture: Capture success, captureId = %{public}d", captureId); in StartCapture()
111 …E("check Capture: Capture fail, captureId = %{public}d, result_ = %{public}d", captureId, result_); in StartCapture()
113 if (captureId == cameraBase_->CAPTURE_ID_PREVIEW) { in StartCapture()
117 } else if (captureId == CAPTUREID_PREVIEW_DOUBLE) { in StartCapture()
133 for (const auto &captureId : captureIds) { in StopStream() local
134 if (captureId == cameraBase_->CAPTURE_ID_PREVIEW) { in StopStream()
136 } else if (captureId == CAPTUREID_PREVIEW_DOUBLE) { in StopStream()
138 } else if (captureId == cameraBase_->CAPTURE_ID_CAPTURE) { in StopStream()
[all …]
/drivers/peripheral/camera/hdi_service/v1_0/include/
Dstream_operator_service_callback.h36 int32_t OnCaptureStarted(int32_t captureId, const std::vector<int32_t> &streamIds) override;
38 … int32_t OnCaptureEnded(int32_t captureId, const std::vector<VdiCaptureEndedInfo> &infos) override;
40 … int32_t OnCaptureError(int32_t captureId, const std::vector<VdiCaptureErrorInfo> &infos) override;
42 …int32_t OnFrameShutter(int32_t captureId, const std::vector<int32_t> &streamIds, uint64_t timestam…
/drivers/peripheral/camera/vdi_base/v4l2/include/
Dutils.h33 std::function<void (int32_t captureId, const std::vector<int32_t> &streamId)> OnCaptureStarted;
34 std::function<void (int32_t captureId,
36 std::function<void (int32_t captureId,
38 std::function<void (int32_t captureId, const std::vector<int> &streamIds)> OnFrameShutter;
/drivers/peripheral/camera/vdi_base/v4l2/include/offline_stream_operator/
Doffline_stream.h35 RetCode CancelCapture(int32_t captureId);
37 bool CheckCaptureIdExist(int32_t captureId);
44 void OnCaptureEnded(int32_t captureId, const std::vector<VdiCaptureEndedInfo> &infos);
45 void OnCaptureError(int32_t captureId, const std::vector<VdiCaptureErrorInfo> &infos);
/drivers/peripheral/camera/test/fuzztest/common/src/
Dcommon.cpp92 int32_t CameraManager::TestStreamOperatorCallback::OnCaptureStarted(int32_t captureId, in OnCaptureStarted() argument
96 CAMERA_LOGE("captureId: %{public}d, streamId: %{public}d", captureId, it); in OnCaptureStarted()
101 int32_t CameraManager::TestStreamOperatorCallback::OnCaptureEnded(int32_t captureId, in OnCaptureEnded() argument
105 …CAMERA_LOGE("captureId: %{public}d, streamId: %{public}d, count: %{public}d", captureId, it.stream… in OnCaptureEnded()
111 int32_t CameraManager::TestStreamOperatorCallback::OnCaptureError(int32_t captureId, in OnCaptureError() argument
115 …CAMERA_LOGE("captureId: %{public}d, streamId: %{public}d, error: %{public}d", captureId, it.stream… in OnCaptureError()
121 int32_t CameraManager::TestStreamOperatorCallback::OnFrameShutter(int32_t captureId, in OnFrameShutter() argument
126 CAMERA_LOGE("captureId: %{public}d, streamId: %{public}d", captureId, it); in OnFrameShutter()
/drivers/peripheral/distributed_camera/hdi_service/test/fuzztest/dstreamchangetoofflinestream_fuzzer/
Ddstreamchangetoofflinestream_fuzzer.cpp32 int32_t OnCaptureStarted(int32_t captureId, const std::vector<int32_t>& streamIds) override in OnCaptureStarted() argument
37 int32_t OnCaptureEnded(int32_t captureId, const std::vector<CaptureEndedInfo>& infos) override in OnCaptureEnded() argument
42 int32_t OnCaptureError(int32_t captureId, const std::vector<CaptureErrorInfo>& infos) override in OnCaptureError() argument
47 …int32_t OnFrameShutter(int32_t captureId, const std::vector<int32_t>& streamIds, uint64_t timestam… in OnFrameShutter() argument
/drivers/interface/camera/v1_0/
DIStreamOperatorCallback.idl33 * @param captureId Indicates the ID of the capture request corresponding to the callback.
39 OnCaptureStarted([in] int captureId, [in] int[] streamIds);
44 * @param captureId Indicates the ID of the capture request corresponding to the callback.
50 OnCaptureEnded([in] int captureId, [in] struct CaptureEndedInfo[] infos);
55 * @param captureId Indicates the ID of the capture request corresponding to the callback.
61 OnCaptureError([in] int captureId, [in] struct CaptureErrorInfo[] infos);
70 * @param captureId Indicates the ID of the capture request corresponding to the callback.
77 OnFrameShutter([in] int captureId, [in] int[] streamIds, [in] unsigned long timestamp);
/drivers/peripheral/camera/test/benchmarktest/v1_1/src/
Dbenchmark_common.cpp259 void Test::StartCapture(int streamId, int captureId, bool shutterCallback, bool isStreaming) in StartCapture() argument
266 rc = (CamRetCode)streamOperator_V1_1->Capture(captureId, *captureInfo, isStreaming); in StartCapture()
268 rc = (CamRetCode)streamOperator->Capture(captureId, *captureInfo, isStreaming); in StartCapture()
272 CAMERA_LOGI("check Capture: Capture success, %{public}d", captureId); in StartCapture()
283 for (auto &captureId : captureIds) { in StopStream() local
285 rc = streamOperator_V1_1->CancelCapture(captureId); in StopStream()
287 rc = streamOperator->CancelCapture(captureId); in StopStream()
291 CAMERA_LOGI("check Capture: CancelCapture success, %{public}d", captureId); in StopStream()
294 rc, captureId); in StopStream()
368 int32_t captureId = 0; in CreateProducer() local
[all …]

12345