加入收藏
举报
02-14 20:02
#0
文件名称:
OHOS-Media-Camera.md
所在目录:
Openharmony v1.0 / docs / api / api-SmartVision-Devices
文件大小:
9.07 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# OHOS::Media::Camera
## **Overview**
**Related Modules:**
[MultiMedia\_Camera](MultiMedia_Camera.md)
**Description:**
Provides functions in the **[Camera](OHOS-Media-Camera.md)** class to implement camera operations. operations.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Public Member Functions

































Public Member Function Name


Description


~Camera ()=default


virtual 


A destructor used to delete the Camera instance.


GetCameraId ()


virtual std::string 


Obtains the camera ID.


GetCameraConfig () const


virtual const CameraConfig


Obtains the camera configuration. You can use the obtained CameraConfig object to configure the camera.


GetFrameConfig (int32_t type)


virtual FrameConfig


Obtains the frame configuration.


Configure (CameraConfig &config)


virtual void 


Configures the camera using the CameraConfig object.


TriggerLoopingCapture (FrameConfig &frameConfig)


virtual int32_t 


Triggers looping-frame capture.


StopLoopingCapture ()


virtual void 


Stops looping-frame capture.


TriggerSingleCapture (FrameConfig &frameConfig)


virtual int32_t 


Starts single-frame capture. The frame parameters are set through the FrameConfig object, and the captured image data is stored in the surface of the FrameConfig object.


Release ()


virtual void 


Releases the Camera object and associated resources.



## Protected Member Functions









Protected Member Function Name


Description


Camera ()=default


 


A constructor used to create a Camera instance.


点赞 回复
回帖
支持markdown部分语法 ?