OHOS-Media-FormatData.md 7.7 KB
Newer Older
W
wenjun 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
# OHOS::Media::FormatData<a name="ZH-CN_TOPIC_0000001054799613"></a>

## **Overview**<a name="section28711136093532"></a>

**Related Modules:**

[MultiMedia\_MediaCommon](MultiMedia_MediaCommon.md)

**Description:**

Represents the data format. 

**Since:**

1.0

**Version:**

1.0

## **Summary**<a name="section827312134093532"></a>

## Public Member Functions<a name="pub-methods"></a>

<a name="table131107942093532"></a>
<table><thead align="left"><tr id="row43250785093532"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p683828223093532"><a name="p683828223093532"></a><a name="p683828223093532"></a>Public Member Function Name</p>
</th>
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p85648403093532"><a name="p85648403093532"></a><a name="p85648403093532"></a>Description</p>
</th>
</tr>
</thead>
<tbody><tr id="row1298233595093532"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1144572959093532"><a name="p1144572959093532"></a><a name="p1144572959093532"></a><a href="MultiMedia_MediaCommon.md#ga178a65e0d58071de84e2dbc09ac93407">GetType</a> () const</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1678073086093532"><a name="p1678073086093532"></a><a name="p1678073086093532"></a><a href="MultiMedia_MediaCommon.md#gaa3bfacc6563d8ec8bc870f4b216b4f46">FormatDataType</a>&nbsp;</p>
<p id="p1396746912093532"><a name="p1396746912093532"></a><a name="p1396746912093532"></a>Obtains the format type. </p>
</td>
</tr>
<tr id="row1345685665093532"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p2094690734093532"><a name="p2094690734093532"></a><a name="p2094690734093532"></a><a href="MultiMedia_MediaCommon.md#gaa1a80e9075010faca14c5c71855efe2d">SetValue</a> (int32_t val)</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1401351415093532"><a name="p1401351415093532"></a><a name="p1401351415093532"></a>bool&nbsp;</p>
<p id="p648565360093532"><a name="p648565360093532"></a><a name="p648565360093532"></a>Sets a 32-bit integer. </p>
</td>
</tr>
<tr id="row135334294093532"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1684931648093532"><a name="p1684931648093532"></a><a name="p1684931648093532"></a><a href="MultiMedia_MediaCommon.md#gabb73fee1739b96b402a430f7879b2ca6">SetValue</a> (int64_t val)</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1875822658093532"><a name="p1875822658093532"></a><a name="p1875822658093532"></a>bool&nbsp;</p>
<p id="p1755840938093532"><a name="p1755840938093532"></a><a name="p1755840938093532"></a>Sets a 64-bit long integer. </p>
</td>
</tr>
<tr id="row372244477093532"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1162528586093532"><a name="p1162528586093532"></a><a name="p1162528586093532"></a><a href="MultiMedia_MediaCommon.md#gaa5ca8643885118cd0b3668d5497a90da">SetValue</a> (float val)</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1510770256093532"><a name="p1510770256093532"></a><a name="p1510770256093532"></a>bool&nbsp;</p>
<p id="p282621582093532"><a name="p282621582093532"></a><a name="p282621582093532"></a>Sets a single-precision floating-point number. </p>
</td>
</tr>
<tr id="row613082259093532"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p692926525093532"><a name="p692926525093532"></a><a name="p692926525093532"></a><a href="MultiMedia_MediaCommon.md#ga5e9360adeb46e7b147757ca22c65c268">SetValue</a> (double val)</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1721707714093532"><a name="p1721707714093532"></a><a name="p1721707714093532"></a>bool&nbsp;</p>
<p id="p578769420093532"><a name="p578769420093532"></a><a name="p578769420093532"></a>Sets a double-precision floating-point number. </p>
</td>
</tr>
<tr id="row506507791093532"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1871100765093532"><a name="p1871100765093532"></a><a name="p1871100765093532"></a><a href="MultiMedia_MediaCommon.md#gacbbf1dca947de8bce2e1a323a1c2664a">SetValue</a> (const std::string &amp;val)</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1842796839093532"><a name="p1842796839093532"></a><a name="p1842796839093532"></a>bool&nbsp;</p>
<p id="p817395005093532"><a name="p817395005093532"></a><a name="p817395005093532"></a>Sets a string. </p>
</td>
</tr>
<tr id="row1306321539093532"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p100767847093532"><a name="p100767847093532"></a><a name="p100767847093532"></a><a href="MultiMedia_MediaCommon.md#gac116d67e5e80f1f9c1c573ceb24df36a">GetInt32Value</a> (int32_t &amp;val) const</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p287139984093532"><a name="p287139984093532"></a><a name="p287139984093532"></a>bool&nbsp;</p>
<p id="p900241571093532"><a name="p900241571093532"></a><a name="p900241571093532"></a>Obtains a 32-bit integer. </p>
</td>
</tr>
<tr id="row1500590125093532"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1944244967093532"><a name="p1944244967093532"></a><a name="p1944244967093532"></a><a href="MultiMedia_MediaCommon.md#ga1f24cb15577c40f7044f4beb96515cfc">GetInt64Value</a> (int64_t &amp;val) const</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1209482549093532"><a name="p1209482549093532"></a><a name="p1209482549093532"></a>bool&nbsp;</p>
<p id="p770504357093532"><a name="p770504357093532"></a><a name="p770504357093532"></a>Obtains a long integer. </p>
</td>
</tr>
<tr id="row1673005350093532"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p125011393093532"><a name="p125011393093532"></a><a name="p125011393093532"></a><a href="MultiMedia_MediaCommon.md#gada31b9cf5daa944104417442a5e459dc">GetFloatValue</a> (float &amp;val) const</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1253147822093532"><a name="p1253147822093532"></a><a name="p1253147822093532"></a>bool&nbsp;</p>
<p id="p1164129315093532"><a name="p1164129315093532"></a><a name="p1164129315093532"></a>Obtains a single-precision floating-point number. </p>
</td>
</tr>
<tr id="row1957021181093532"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p971334388093532"><a name="p971334388093532"></a><a name="p971334388093532"></a><a href="MultiMedia_MediaCommon.md#gac1ed56f6d35982f770d083dc16e97dbd">GetDoubleValue</a> (double &amp;val) const</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1572601642093532"><a name="p1572601642093532"></a><a name="p1572601642093532"></a>bool&nbsp;</p>
<p id="p1960295023093532"><a name="p1960295023093532"></a><a name="p1960295023093532"></a>Obtains a double-precision floating-point number. </p>
</td>
</tr>
<tr id="row1089849673093532"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p300063785093532"><a name="p300063785093532"></a><a name="p300063785093532"></a><a href="MultiMedia_MediaCommon.md#ga9687bb5d98a92e7beb53dfe4ac44eec1">GetStringValue</a> (std::string &amp;val) const</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p555264461093532"><a name="p555264461093532"></a><a name="p555264461093532"></a>bool&nbsp;</p>
<p id="p1506392724093532"><a name="p1506392724093532"></a><a name="p1506392724093532"></a>Obtains a string. </p>
</td>
</tr>
</tbody>
</table>