加入收藏
举报
02-14 20:02
#0
文件名称:
OHOS-Media-Format.md
所在目录:
Openharmony v1.0 / docs / api / api-SmartVision-Devices
文件大小:
9.53 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# OHOS::Media::Format
## **Overview**
**Related Modules:**
[MultiMedia\_MediaCommon](MultiMedia_MediaCommon.md)
**Description:**
Saves and sets media metadata, such as the media playback duration.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Public Member Functions













































Public Member Function Name


Description


Format ()


 


Default constructor of the Format instance.


PutIntValue (const std::string &key, int32_t value)


bool 


Sets metadata of the integer type.


PutLongValue (const std::string &key, int64_t value)


bool 


Sets metadata of the long integer type.


PutFloatValue (const std::string &key, float value)


bool 


Sets metadata of the single-precision floating-point type.


PutDoubleValue (const std::string &key, double value)


bool 


Sets metadata of the double-precision floating-point type.


PutStringValue (const std::string &key, const std::string &value)


bool 


Sets metadata of the string type.


GetIntValue (const std::string &key, int32_t &value) const


bool 


Obtains the metadata value of the integer type.


GetLongValue (const std::string &key, int64_t &value) const


bool 


Obtains the metadata value of the long integer type.


GetFloatValue (const std::string &key, float &value) const


bool 


Obtains the metadata value of the single-precision floating-point type.


GetDoubleValue (const std::string &key, double &value) const


bool 


Obtains the metadata value of the double-precision floating-point type.


GetStringValue (const std::string &key, std::string &value) const


bool 


Obtains the metadata value of the string type.


GetFormatMap () const


const std::map< std::string, FormatData * > & 


Obtains the metadata map.


CopyFrom (const Format &format)


bool 


Sets all metadata to a specified format.


点赞 回复
回帖
支持markdown部分语法 ?