Home
last modified time | relevance | path

Searched refs:capture (Results 1 - 20 of 20) sorted by relevance

/foundation/multimedia/player_framework/interfaces/kits/c/
H A Dnative_avscreen_capture.h30 * @brief Create a screen capture
39 * @brief To init the screen capture, typically, you need to configure the description information of the audio
43 * @param capture Pointer to an OH_AVScreenCapture instance
50 OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_Init(struct OH_AVScreenCapture *capture,
54 * @brief Start the av screen capture
56 * @param capture Pointer to an OH_AVScreenCapture instance
62 OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StartScreenCapture(struct OH_AVScreenCapture *capture);
65 * @brief Start the av screen capture
67 * @param capture Pointer to an OH_AVScreenCapture instance
74 OH_AVSCREEN_CAPTURE_ErrCode OH_AVScreenCapture_StartScreenCaptureWithSurface(struct OH_AVScreenCapture *capture,
[all...]
H A Dnative_avscreen_capture_base.h54 * @brief Enumerates screen capture mode.
61 /* capture home screen */
63 /* capture a specified screen */
65 /* capture a specified window */
131 * @brief Enumerates screen capture data type.
181 * @brief Audio capture info struct
188 /* Audio capture sample rate info */
190 /* Audio capture channel info */
192 /* Audio capture source type */
218 /* Audio capture inf
[all...]
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/manager/
H A Dhdi_adapter_manager.cpp30 int32_t CaptureHandleInit(void *capture) in CaptureHandleInit() argument
32 IAudioCapturerSource *captureSource = static_cast<IAudioCapturerSource *>(capture); in CaptureHandleInit()
33 CHECK_AND_RETURN_RET_LOG(captureSource != nullptr, ERR_INVALID_HANDLE, "wrong capture"); in CaptureHandleInit()
38 int32_t CaptureHandleDeinit(void *capture) in CaptureHandleDeinit() argument
40 IAudioCapturerSource *captureSource = static_cast<IAudioCapturerSource *>(capture); in CaptureHandleDeinit()
41 CHECK_AND_RETURN_RET_LOG(captureSource != nullptr, ERR_INVALID_HANDLE, "wrong capture"); in CaptureHandleDeinit()
48 int32_t CaptureHandleStart(void *capture) in CaptureHandleStart() argument
50 IAudioCapturerSource *captureSource = static_cast<IAudioCapturerSource *>(capture); in CaptureHandleStart()
51 CHECK_AND_RETURN_RET_LOG(captureSource != nullptr, ERR_INVALID_HANDLE, "wrong capture"); in CaptureHandleStart()
56 int32_t CaptureHandleStop(void *capture) in CaptureHandleStop() argument
64 CaptureHandleCaptureFrame(void *capture, char *frame, uint64_t requestBytes, uint64_t *replyBytes) CaptureHandleCaptureFrame() argument
73 CaptureHandleCaptureFrameWithEc(void *capture, FrameDesc *fdesc, uint64_t *replyBytes, FrameDesc *fdescEc, uint64_t *replyBytesEc) CaptureHandleCaptureFrameWithEc() argument
98 IAudioCapturerSource *capture = manager->CreateCapture(attr); CreateCaptureHandle() local
120 IAudioCapturerSource *capture = reinterpret_cast<IAudioCapturerSource *>(handle->capture); ReleaseCaptureHandle() local
142 IAudioCapturerSource *capture = IAudioCapturerSource::Create(attr); CreateCapture() local
146 ReleaseCapture(IAudioCapturerSource *capture) ReleaseCapture() argument
[all...]
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/manager/include/
H A Dhdi_adapter_manager_api.h27 void *capture; member
28 int32_t (*Init)(void *capture);
29 int32_t (*Deinit)(void *capture);
30 int32_t (*Start)(void *capture);
31 int32_t (*Stop)(void *capture);
32 int32_t (*CaptureFrame)(void *capture,
34 int32_t (*CaptureFrameWithEc)(void *capture,
H A Dhdi_adapter_manager.h33 void ReleaseCapture(IAudioCapturerSource *capture);
/foundation/multimedia/player_framework/frameworks/native/capi/screencapture/
H A Dnative_avscreen_capture.cpp44 explicit ScreenCaptureObject(const std::shared_ptr<ScreenCapture> &capture) in ScreenCaptureObject()
45 : screenCapture_(capture) {} in ScreenCaptureObject()
58 void OnStateChange(struct OH_AVScreenCapture *capture, AVScreenCaptureStateCode infoType) in OnStateChange() argument
60 CHECK_AND_RETURN(capture != nullptr && callback_ != nullptr); in OnStateChange()
61 callback_(capture, static_cast<OH_AVScreenCaptureStateCode>(infoType), userData_); in OnStateChange()
75 void OnError(struct OH_AVScreenCapture *capture, int32_t errorCode) in OnError() argument
77 CHECK_AND_RETURN(capture != nullptr && callback_ != nullptr); in OnError()
78 callback_(capture, errorCode, userData_); in OnError()
92 void OnBufferAvailable(struct OH_AVScreenCapture *capture, OH_AVScreenCaptureBufferType bufferType) in OnBufferAvailable() argument
94 CHECK_AND_RETURN(capture ! in OnBufferAvailable()
141 OnProcessAudioBuffer(struct OH_AVScreenCapture *capture, OH_AVScreenCaptureBufferType bufferType) OnProcessAudioBuffer() argument
201 OnProcessVideoBuffer(struct OH_AVScreenCapture *capture) OnProcessVideoBuffer() argument
227 NativeScreenCaptureCallback(struct OH_AVScreenCapture *capture, struct OH_AVScreenCaptureCallback callback) NativeScreenCaptureCallback() argument
404 OH_AVScreenCapture_ExcludeContent(struct OH_AVScreenCapture *capture, struct OH_AVScreenCapture_ContentFilter *filter) OH_AVScreenCapture_ExcludeContent() argument
492 OH_AVScreenCapture_Init(struct OH_AVScreenCapture *capture, OH_AVScreenCaptureConfig config) OH_AVScreenCapture_Init() argument
516 OH_AVScreenCapture_StartScreenCapture(struct OH_AVScreenCapture *capture) OH_AVScreenCapture_StartScreenCapture() argument
532 OH_AVScreenCapture_StartScreenCaptureWithSurface(struct OH_AVScreenCapture *capture, OHNativeWindow* window) OH_AVScreenCapture_StartScreenCaptureWithSurface() argument
552 OH_AVScreenCapture_StopScreenCapture(struct OH_AVScreenCapture *capture) OH_AVScreenCapture_StopScreenCapture() argument
566 OH_AVScreenCapture_StartScreenRecording(struct OH_AVScreenCapture *capture) OH_AVScreenCapture_StartScreenRecording() argument
582 OH_AVScreenCapture_StopScreenRecording(struct OH_AVScreenCapture *capture) OH_AVScreenCapture_StopScreenRecording() argument
596 OH_AVScreenCapture_AcquireAudioBuffer(struct OH_AVScreenCapture *capture, OH_AudioBuffer **audiobuffer, OH_AudioCaptureSourceType type) OH_AVScreenCapture_AcquireAudioBuffer() argument
628 OH_AVScreenCapture_AcquireVideoBuffer(struct OH_AVScreenCapture *capture, int32_t *fence, int64_t *timestamp, struct OH_Rect *region) OH_AVScreenCapture_AcquireVideoBuffer() argument
657 OH_AVScreenCapture_ReleaseVideoBuffer(struct OH_AVScreenCapture *capture) OH_AVScreenCapture_ReleaseVideoBuffer() argument
683 OH_AVScreenCapture_ReleaseAudioBuffer(struct OH_AVScreenCapture *capture, OH_AudioCaptureSourceType type) OH_AVScreenCapture_ReleaseAudioBuffer() argument
702 OH_AVScreenCapture_SetCallback(struct OH_AVScreenCapture *capture, struct OH_AVScreenCaptureCallback callback) OH_AVScreenCapture_SetCallback() argument
725 OH_AVScreenCapture_Release(struct OH_AVScreenCapture *capture) OH_AVScreenCapture_Release() argument
749 OH_AVScreenCapture_SetMicrophoneEnabled(struct OH_AVScreenCapture *capture, bool isMicrophone) OH_AVScreenCapture_SetMicrophoneEnabled() argument
764 AVScreenCaptureSetCallback(struct OH_AVScreenCapture *capture, struct ScreenCaptureObject *screenCaptureObj) AVScreenCaptureSetCallback() argument
790 OH_AVScreenCapture_SetStateCallback(struct OH_AVScreenCapture *capture, OH_AVScreenCapture_OnStateChange callback, void *userData) OH_AVScreenCapture_SetStateCallback() argument
812 OH_AVScreenCapture_SetErrorCallback(struct OH_AVScreenCapture *capture, OH_AVScreenCapture_OnError callback, void *userData) OH_AVScreenCapture_SetErrorCallback() argument
833 OH_AVScreenCapture_SetDataCallback(struct OH_AVScreenCapture *capture, OH_AVScreenCapture_OnBufferAvailable callback, void *userData) OH_AVScreenCapture_SetDataCallback() argument
855 OH_AVScreenCapture_SetCanvasRotation(struct OH_AVScreenCapture *capture, bool canvasRotation) OH_AVScreenCapture_SetCanvasRotation() argument
889 OH_AVScreenCapture_ResizeCanvas(struct OH_AVScreenCapture *capture, int32_t width, int32_t height) OH_AVScreenCapture_ResizeCanvas() argument
908 OH_AVScreenCapture_SkipPrivacyMode(struct OH_AVScreenCapture *capture, int32_t *windowIDs, int32_t windowCount) OH_AVScreenCapture_SkipPrivacyMode() argument
932 OH_AVScreenCapture_SetMaxVideoFrameRate(struct OH_AVScreenCapture *capture, int32_t frameRate) OH_AVScreenCapture_SetMaxVideoFrameRate() argument
[all...]
/foundation/distributedhardware/distributed_camera/common/src/utils/
H A Ddcamera_hisysevent_adapter.cpp121 void ReportStartCaptureEvent(const std::string& eventName, EventCaptureInfo& capture, const std::string& errMsg) in ReportStartCaptureEvent() argument
123 if (capture.encodeType_ < 0 || capture.encodeType_ >= ENUM_ENCODETYPE_LEN || in ReportStartCaptureEvent()
124 capture.type_ < 0 || capture.type_ >= ENUM_STREAMTYPE_LEN) { in ReportStartCaptureEvent()
125 DHLOGE("Invalid capture parameters."); in ReportStartCaptureEvent()
131 "WIDTH", capture.width_, in ReportStartCaptureEvent()
132 "HEIGHT", capture.height_, in ReportStartCaptureEvent()
133 "FORMAT", capture.format_, in ReportStartCaptureEvent()
134 "ISCAPTURE", capture in ReportStartCaptureEvent()
[all...]
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/src/
H A Ddcamera_capture_info_cmd.cpp38 std::shared_ptr<DCameraCaptureInfo> capture = *iter; in Marshal() local
39 if (capture == nullptr) { in Marshal()
46 cJSON_AddNumberToObject(captureInfo, "Width", capture->width_); in Marshal()
47 cJSON_AddNumberToObject(captureInfo, "Height", capture->height_); in Marshal()
48 cJSON_AddNumberToObject(captureInfo, "Format", capture->format_); in Marshal()
49 cJSON_AddNumberToObject(captureInfo, "DataSpace", capture->dataspace_); in Marshal()
50 cJSON_AddBoolToObject(captureInfo, "IsCapture", capture->isCapture_); in Marshal()
51 cJSON_AddNumberToObject(captureInfo, "EncodeType", capture->encodeType_); in Marshal()
52 cJSON_AddNumberToObject(captureInfo, "StreamType", capture->streamType_); in Marshal()
56 for (auto settingIter = capture in Marshal()
[all...]
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/test/unittest/common/distributedcameramgr/
H A Ddcamera_source_controller_test.cpp125 std::shared_ptr<DCameraCaptureInfo> capture = std::make_shared<DCameraCaptureInfo>(); in HWTEST_F() local
126 capture->width_ = TEST_WIDTH; in HWTEST_F()
127 capture->height_ = TEST_HEIGTH; in HWTEST_F()
128 capture->format_ = TEST_FORMAT; in HWTEST_F()
129 capture->dataspace_ = TEST_DATASPACE; in HWTEST_F()
130 capture->isCapture_ = TEST_ISCAPTURE; in HWTEST_F()
131 capture->encodeType_ = DCEncodeType::ENCODE_TYPE_H264; in HWTEST_F()
132 capture->streamType_ = DCStreamType::SNAPSHOT_FRAME; in HWTEST_F()
133 captureInfos.push_back(capture); in HWTEST_F()
155 std::shared_ptr<DCameraCaptureInfo> capture in HWTEST_F() local
526 std::shared_ptr<DCameraCaptureInfo> capture = std::make_shared<DCameraCaptureInfo>(); HWTEST_F() local
[all...]
/foundation/distributedhardware/distributed_camera/common/test/unittest/common/utils/
H A Ddcamera_hisysevent_adapter_test.cpp136 EventCaptureInfo capture; in HWTEST_F() local
137 capture.width_ = 640; in HWTEST_F()
138 capture.height_ = 480; in HWTEST_F()
139 capture.isCapture_ = true; in HWTEST_F()
140 capture.encodeType_ = 1; in HWTEST_F()
141 capture.type_ = 0; in HWTEST_F()
143 ReportStartCaptureEvent(eventName, capture, errMsg); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/drawable/dfx/
H A Drs_skp_capture_dfx_test.cpp53 * @tc.desc: Test If capture Can Run
71 RSSkpCaptureDfx capture(canvas); in HWTEST_F()
72 ASSERT_EQ(capture.recordingCanvas_, nullptr); in HWTEST_F()
76 RSSkpCaptureDfx capture(canvas); in HWTEST_F()
77 ASSERT_EQ(capture.recordingCanvas_, nullptr); in HWTEST_F()
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcamerahdf/
H A Ddcamera_provider_callback_impl.cpp207 std::shared_ptr<DCCaptureInfo> capture = std::make_shared<DCCaptureInfo>(); in StartCapture() local
208 capture->streamIds_.assign(iter->streamIds_.begin(), iter->streamIds_.end()); in StartCapture()
209 capture->width_ = iter->width_; in StartCapture()
210 capture->height_ = iter->height_; in StartCapture()
211 capture->stride_ = iter->stride_; in StartCapture()
212 capture->format_ = iter->format_; in StartCapture()
213 capture->dataspace_ = iter->dataspace_; in StartCapture()
214 capture->isCapture_ = iter->isCapture_; in StartCapture()
215 capture->encodeType_ = iter->encodeType_; in StartCapture()
216 capture in StartCapture()
[all...]
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/
H A Ddcamera_source_dev.cpp591 std::shared_ptr<DCameraCaptureInfo> capture = std::make_shared<DCameraCaptureInfo>(); in StartCapture() local
592 capture->width_ = (*iter)->width_; in StartCapture()
593 capture->height_ = (*iter)->height_; in StartCapture()
594 capture->format_ = (*iter)->format_; in StartCapture()
595 capture->dataspace_ = (*iter)->dataspace_; in StartCapture()
596 capture->isCapture_ = (*iter)->isCapture_; in StartCapture()
597 capture->encodeType_ = (*iter)->encodeType_; in StartCapture()
598 capture->streamType_ = (*iter)->type_; in StartCapture()
602 capture->width_, capture in StartCapture()
628 std::shared_ptr<DCCaptureInfo> capture = *iter; HitraceAndHisyseventImpl() local
[all...]
/foundation/multimedia/audio_framework/frameworks/native/pulseaudio/modules/hdi/
H A Dhdi_source.c151 u->captureHandleEc->Init(u->captureHandleEc->capture); in InitAuxCapture()
154 u->captureHandleMicRef->Init(u->captureHandleMicRef->capture); in InitAuxCapture()
161 u->captureHandleEc->Deinit(u->captureHandleEc->capture); in DeinitAuxCapture()
164 u->captureHandleMicRef->Deinit(u->captureHandleMicRef->capture); in DeinitAuxCapture()
171 u->captureHandleEc->Start(u->captureHandleEc->capture); in StartAuxCapture()
174 u->captureHandleMicRef->Start(u->captureHandleMicRef->capture); in StartAuxCapture()
181 u->captureHandleEc->Stop(u->captureHandleEc->capture); in StopAuxCapture()
184 u->captureHandleMicRef->Stop(u->captureHandleMicRef->capture); in StopAuxCapture()
496 u->captureHandleEc->CaptureFrameWithEc(u->captureHandleEc->capture, in HandleCaptureFrame()
507 u->captureHandleMicRef->CaptureFrame(u->captureHandleMicRef->capture, in HandleCaptureFrame()
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/
H A Dmake_callback.h18 #include <meta/base/capture.h>
57 * @brief As above MakeCallable but using capture helper. @see Capture.
/foundation/distributedhardware/distributed_camera/common/include/utils/
H A Ddcamera_hisysevent_adapter.h64 void ReportStartCaptureEvent(const std::string& eventName, EventCaptureInfo& capture, const std::string& errMsg);
/foundation/multimedia/player_framework/test/unittest/screen_capture_test/capi/include/
H A Dscreen_capture_capi_mock.h72 static void OnStateChange(struct OH_AVScreenCapture *capture,
/foundation/graphic/graphic_3d/lume/metaobject/test/src/base/
H A DCaptureTest.cpp22 #include <meta/base/capture.h>
/foundation/multimedia/camera_framework/frameworks/native/camera/test/moduletest/src/
H A Dcamera_framework_moduletest.cpp1738 * Function: Test capture session with commit config multiple times
1742 * CaseDescription: Test capture session with commit config multiple times
1769 * Function: Test capture session add input with invalid value
1773 * CaseDescription: Test capture session add input with invalid value
1789 * Function: Test capture session add output with invalid value
1793 * CaseDescription: Test capture session add output with invalid value
1809 * Function: Test capture session commit config without adding input
1813 * CaseDescription: Test capture session commit config without adding input
1834 * Function: Test capture session commit config without adding output
1838 * CaseDescription: Test capture sessio
5454 int32_t capture = photoOutput_1->Capture(); HWTEST_F() local
6134 sptr<IStreamCapture> capture = iface_cast<IStreamCapture>(object); HWTEST_F() local
6173 sptr<IStreamCapture> capture = iface_cast<IStreamCapture>(object); HWTEST_F() local
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_display_render_node_drawable.cpp737 RSSkpCaptureDfx capture(curCanvas_); in OnDraw()
1002 // set mirror screen capture param in DrawMirror()
1070 // set expand screen capture param(isSnapshot, isSingleSurface, isMirror) in DrawExpandScreen()

Completed in 21 milliseconds