1 Star 0 Fork 4.9K

罗小黑 / docs

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

MultiMedia_FrameStateCallback

Overview

Provides callbacks for frame state changes, in which you can implement operations to response to the changes.

Since:

1.0

Version:

1.0

Summary

Files

File Name

Description

camera_kit.h

Declares functions in the CameraKit class.

Data Structures

Data Structure Name

Description

OHOS::Media::FrameStateCallback

Provides functions to listen for frame states and response to the state changes.

Functions

Function Name

Description

OHOS::Media::FrameStateCallback::FrameStateCallback ()=default

 

A constructor used to create a FrameStateCallback instance.

OHOS::Media::FrameStateCallback::~FrameStateCallback ()=default

 

A destructor used to delete the FrameStateCallback instance.

OHOS::Media::FrameStateCallback::OnFrameFinished (Camera &camera, FrameConfig &frameConfig, FrameResult &frameResult)

virtual void 

Called when the frame capture is finished.

OHOS::Media::FrameStateCallback::OnFrameError (Camera &camera, FrameConfig &frameConfig, int32_t errorCode, FrameResult &frameResult)

virtual void 

Called when the frame capture fails.

Details

Function Documentation

FrameStateCallback()

OHOS::Media::FrameStateCallback::FrameStateCallback ()

Description:

A constructor used to create a FrameStateCallback instance.

OnFrameError()

virtual void OHOS::Media::FrameStateCallback::OnFrameError ([Camera](OHOS-Media-Camera.md) & camera, [FrameConfig](OHOS-Media-FrameConfig.md) & frameConfig, int32_t errorCode, FrameResult & frameResult )

Description:

Called when the frame capture fails.

Parameters:

Name

Description

camera Indicates the camera.
frameConfig Indicates the frame configuration.
errorCode Indicates the error code.
frameResult Indicates the capture results.

OnFrameFinished()

virtual void OHOS::Media::FrameStateCallback::OnFrameFinished ([Camera](OHOS-Media-Camera.md) & camera, [FrameConfig](OHOS-Media-FrameConfig.md) & frameConfig, FrameResult & frameResult )

Description:

Called when the frame capture is finished.

Parameters:

Name

Description

camera Indicates the camera.
frameConfig Indicates the frame configuration.
frameResult Indicates the capture results.

~FrameStateCallback()

OHOS::Media::FrameStateCallback::~FrameStateCallback ()

Description:

A destructor used to delete the FrameStateCallback instance.

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

搜索帮助