1 Star 0 Fork 4.9K

famoustang / docs

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

MultiMedia_CameraAbility

Overview

Defines the camera capability set for applications to achieve and access the capabilities.

Since:

1.0

Version:

1.0

Summary

Files

File Name

Description

camera_ability.h

Declares functions of the CameraAbility class.

Data Structures

Data Structure Name

Description

OHOS::Media::CameraAbility

Declares functions of the CameraAbility class.

Functions

Function Name

Description

OHOS::Media::CameraAbility::CameraAbility ()

 

A constructor used to create a CameraAbility instance.

OHOS::Media::CameraAbility::~CameraAbility ()

virtual 

A destructor used to delete the CameraAbility instance.

OHOS::Media::CameraAbility::GetSupportedSizes (int format) const

std::list< CameraPicSize > 

Obtains the supported image sizes for a specified image format.

     
  

Sets value ranges for a specified parameter.

     
  

Obtains the parameter value range based on a specified parameter key.

Details

Function Documentation

CameraAbility()

OHOS::Media::CameraAbility::CameraAbility ()

Description:

A constructor used to create a CameraAbility instance.

GetParameterRange()

std::list<T> OHOS::Media::CameraAbility::GetParameterRange (uint32_t key) const

Description:

Obtains the parameter value range based on a specified parameter key.

Parameters:

Name

Description

key Indicates the parameter key.

Returns:

Returns the parameter value range if obtained; returns NULL otherwise.

GetSupportedSizes()

std::list<CameraPicSize> OHOS::Media::CameraAbility::GetSupportedSizes (int format) const

Description:

Obtains the supported image sizes for a specified image format.

Parameters:

Name

Description

format Indicates the image format, which can be YUV, H.265, or H.264.

Returns:

Returns the image size list if obtained; returns NULL otherwise.

SetParameterRange()

int32_t OHOS::Media::CameraAbility::SetParameterRange (uint32_t key, std::list< T > rangeList )

Description:

Sets value ranges for a specified parameter.

Parameters:

Name

Description

key Indicates the parameter key.
rangeList Indicates the list of parameter value ranges.

Returns:

Returns SUCCESS if the setting is successful; returns FAIL otherwise.

~CameraAbility()

virtual OHOS::Media::CameraAbility::~CameraAbility ()

Description:

A destructor used to delete the CameraAbility instance.

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

搜索帮助