1 Star 0 Fork 4.9K

famoustang / docs

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

MultiMedia_FrameConfig

Overview

Defines the FrameConfig class for operations related to frame configurations.

Since:

1.0

Version:

1.0

Summary

Files

File Name

Description

frame_config.h

Declares APIs of the FrameConfig class.

Data Structures

Data Structure Name

Description

OHOS::Media::FrameConfig

Provides functions to configure frames.

Functions

Function Name

Description

OHOS::Media::FrameConfig::FrameConfig ()=delete

 

A constructor used to create a FrameConfig instance.

OHOS::Media::FrameConfig::FrameConfig (int32_t type)

 

A constructor used to create a FrameConfig instance based on the configuration mode.

OHOS::Media::FrameConfig::~FrameConfig ()

 

A destructor used to delete the FrameConfig instance.

OHOS::Media::FrameConfig::GetFrameConfigType ()

int32_t 

Obtains the frame configuration type.

OHOS::Media::FrameConfig::GetSurfaces ()

std::list< Surface * > 

Obtains a list of shared memories (surface objects).

OHOS::Media::FrameConfig::AddSurface (Surface &surface)

void 

Adds a surface (an object of shared memory).

OHOS::Media::FrameConfig::RemoveSurface (Surface &surface)

void 

Removes a surface (an object of shared memory). You can call this function to release the surface when your application does not need to obtain data.

Details

Function Documentation

AddSurface()

void OHOS::Media::FrameConfig::AddSurface ([Surface](OHOS-Surface.md) & surface)

Description:

Adds a surface (an object of shared memory).

Parameters:

Name

Description

surface Indicates the surface to add.

FrameConfig() [1/2]

OHOS::Media::FrameConfig::FrameConfig ()

Description:

A constructor used to create a FrameConfig instance.

FrameConfig() [2/2]

OHOS::Media::FrameConfig::FrameConfig (int32_t type)

Description:

A constructor used to create a FrameConfig instance based on the configuration mode.

Parameters:

Name

Description

type Indicates the frame configuration mode, which can be FRAME_CONFIG_PREVIEW, <b>FRAME_CONFIG_RECORD, or FRAME_CONFIG_CAPTURE.

GetFrameConfigType()

int32_t OHOS::Media::FrameConfig::GetFrameConfigType ()

Description:

Obtains the frame configuration type.

Returns:

Returns the frame configuration type if obtained; returns -1 otherwise.

GetSurfaces()

std::list<[Surface](OHOS-Surface.md) *> OHOS::Media::FrameConfig::GetSurfaces ()

Description:

Obtains a list of shared memories (surface objects).

Returns:

Returns the list of shared memories if obtained; returns NULL otherwise.

RemoveSurface()

void OHOS::Media::FrameConfig::RemoveSurface ([Surface](OHOS-Surface.md) & surface)

Description:

Removes a surface (an object of shared memory). You can call this function to release the surface when your application does not need to obtain data.

Parameters:

Name

Description

surface Indicates the surface to remove.

~FrameConfig()

OHOS::Media::FrameConfig::~FrameConfig ()

Description:

A destructor used to delete the FrameConfig instance.

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

搜索帮助