1 Star 0 Fork 4.9K

Cain / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
OHOS-Media-Camera.md 9.07 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

OHOS::Media::Camera

Overview

Related Modules:

MultiMedia_Camera

Description:

Provides functions in the Camera 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.

1
https://gitee.com/cain_qin/docs.git
git@gitee.com:cain_qin/docs.git
cain_qin
docs
docs
master

搜索帮助