1 Star 0 Fork 4.9K

罗小黑 / docs

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

OHOS::Media::FormatData

Overview

Related Modules:

MultiMedia_MediaCommon

Description:

Represents the data format.

Since:

1.0

Version:

1.0

Summary

Public Member Functions

Public Member Function Name

Description

GetType () const

FormatDataType 

Obtains the format type.

SetValue (int32_t val)

bool 

Sets a 32-bit integer.

SetValue (int64_t val)

bool 

Sets a 64-bit long integer.

SetValue (float val)

bool 

Sets a single-precision floating-point number.

SetValue (double val)

bool 

Sets a double-precision floating-point number.

SetValue (const std::string &val)

bool 

Sets a string.

GetInt32Value (int32_t &val) const

bool 

Obtains a 32-bit integer.

GetInt64Value (int64_t &val) const

bool 

Obtains a long integer.

GetFloatValue (float &val) const

bool 

Obtains a single-precision floating-point number.

GetDoubleValue (double &val) const

bool 

Obtains a double-precision floating-point number.

GetStringValue (std::string &val) const

bool 

Obtains a string.

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

搜索帮助