LayerBuffer.md 5.1 KB
Newer Older
W
wenjun 已提交
1 2
# LayerBuffer<a name="ZH-CN_TOPIC_0000001055039524"></a>

[
[yang] 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15
-   [Overview](#section1817957125165632)
-   [Summary](#section635176130165632)
-   [Data Fields](#pub-attribs)
-   [Details](#section924765344165632)
-   [Field](#section1571466726165632)
-   [data](#a9a1831091916905de22145585cf8b682)
-   [fenceId](#a46aa174ae3d0eb28fa7f3e53749fd5d1)
-   [height](#aec2e142ea67776ec4e91fc3d8d3389ae)
-   [pitch](#a62a06a9381ac2d6fa48115ce7d01920d)
-   [pixFormat](#a1ac426fb1997d872b347cae9cce94eb6)
-   [width](#a71196d704bd8a6a69b9bccf497b8224b)

## **Overview**<a name="section1817957125165632"></a>
W
wenjun 已提交
16 17 18 19 20 21 22 23 24

**Related Modules:**

[Display](Display.md)

**Description:**

Defines the buffer, which is used to store layer data. 

[
[yang] 已提交
25
## **Summary**<a name="section635176130165632"></a>
W
wenjun 已提交
26 27 28

## Data Fields<a name="pub-attribs"></a>

[
[yang] 已提交
29 30
<a name="table1308352752165632"></a>
<table><thead align="left"><tr id="row484121331165632"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p1098182050165632"><a name="p1098182050165632"></a><a name="p1098182050165632"></a>Variable Name</p>
W
wenjun 已提交
31
</th>
[
[yang] 已提交
32
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p1834226265165632"><a name="p1834226265165632"></a><a name="p1834226265165632"></a>Description</p>
W
wenjun 已提交
33 34 35
</th>
</tr>
</thead>
[
[yang] 已提交
36
<tbody><tr id="row192378663165632"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p308191026165632"><a name="p308191026165632"></a><a name="p308191026165632"></a><a href="LayerBuffer.md#a46aa174ae3d0eb28fa7f3e53749fd5d1">fenceId</a></p>
W
wenjun 已提交
37
</td>
[
[yang] 已提交
38
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1759320707165632"><a name="p1759320707165632"></a><a name="p1759320707165632"></a>int32_t </p>
W
wenjun 已提交
39 40
</td>
</tr>
[
[yang] 已提交
41
<tr id="row754438395165632"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1192368689165632"><a name="p1192368689165632"></a><a name="p1192368689165632"></a><a href="LayerBuffer.md#a71196d704bd8a6a69b9bccf497b8224b">width</a></p>
W
wenjun 已提交
42
</td>
[
[yang] 已提交
43
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p177264162165632"><a name="p177264162165632"></a><a name="p177264162165632"></a>int32_t </p>
W
wenjun 已提交
44 45
</td>
</tr>
[
[yang] 已提交
46
<tr id="row191161255165632"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p2119526997165632"><a name="p2119526997165632"></a><a name="p2119526997165632"></a><a href="LayerBuffer.md#aec2e142ea67776ec4e91fc3d8d3389ae">height</a></p>
W
wenjun 已提交
47
</td>
[
[yang] 已提交
48
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1443151036165632"><a name="p1443151036165632"></a><a name="p1443151036165632"></a>int32_t </p>
W
wenjun 已提交
49 50
</td>
</tr>
[
[yang] 已提交
51
<tr id="row1473962906165632"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p342140239165632"><a name="p342140239165632"></a><a name="p342140239165632"></a><a href="LayerBuffer.md#a62a06a9381ac2d6fa48115ce7d01920d">pitch</a></p>
W
wenjun 已提交
52
</td>
[
[yang] 已提交
53
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1320161235165632"><a name="p1320161235165632"></a><a name="p1320161235165632"></a>int32_t </p>
W
wenjun 已提交
54 55
</td>
</tr>
[
[yang] 已提交
56
<tr id="row2042950523165632"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p873802542165632"><a name="p873802542165632"></a><a name="p873802542165632"></a><a href="LayerBuffer.md#a1ac426fb1997d872b347cae9cce94eb6">pixFormat</a></p>
W
wenjun 已提交
57
</td>
[
[yang] 已提交
58
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1055362025165632"><a name="p1055362025165632"></a><a name="p1055362025165632"></a><a href="Codec.md#ga60883d4958a60b91661e97027a85072a">PixelFormat</a> </p>
W
wenjun 已提交
59 60
</td>
</tr>
[
[yang] 已提交
61
<tr id="row2120327821165632"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p578591127165632"><a name="p578591127165632"></a><a name="p578591127165632"></a><a href="LayerBuffer.md#a9a1831091916905de22145585cf8b682">data</a></p>
W
wenjun 已提交
62
</td>
[
[yang] 已提交
63
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p65571335165632"><a name="p65571335165632"></a><a name="p65571335165632"></a><a href="BufferData.md">BufferData</a> </p>
W
wenjun 已提交
64 65 66 67 68
</td>
</tr>
</tbody>
</table>

[
[yang] 已提交
69
## **Details**<a name="section924765344165632"></a>
W
wenjun 已提交
70

[
[yang] 已提交
71
## **Field **<a name="section1571466726165632"></a>
W
wenjun 已提交
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 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132

## data<a name="a9a1831091916905de22145585cf8b682"></a>

```
[BufferData](BufferData.md) LayerBuffer::data
```

 **Description:**

Layer buffer data 

## fenceId<a name="a46aa174ae3d0eb28fa7f3e53749fd5d1"></a>

```
int32_t LayerBuffer::fenceId
```

 **Description:**

Fence ID of the buffer 

## height<a name="aec2e142ea67776ec4e91fc3d8d3389ae"></a>

```
int32_t LayerBuffer::height
```

 **Description:**

Buffer height 

## pitch<a name="a62a06a9381ac2d6fa48115ce7d01920d"></a>

```
int32_t LayerBuffer::pitch
```

 **Description:**

Number of bytes from one row of pixels in memory to the next 

## pixFormat<a name="a1ac426fb1997d872b347cae9cce94eb6"></a>

```
[PixelFormat](Codec.md#ga60883d4958a60b91661e97027a85072a) LayerBuffer::pixFormat
```

 **Description:**

Pixel format of the buffer 

## width<a name="a71196d704bd8a6a69b9bccf497b8224b"></a>

```
int32_t LayerBuffer::width
```

 **Description:**

Buffer width