• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# OhosPixelMapInfo
2
3## Overview
4
5The OhosPixelMapInfo struct describes the information about a PixelMap.
6
7**Since**: 8
8
9**Deprecated from**: 10
10
11**Related module**: [Image](capi-image.md)
12
13**Header file**: [image_pixel_map_napi.h](capi-image-pixel-map-napi-h.md)
14
15## Summary
16
17### Member Variables
18
19| Name| Description|
20| -- | -- |
21| uint32_t width | Image width, in pixels.|
22| uint32_t height | Image height, in pixels.|
23| uint32_t rowSize | Number of bytes that each row of the image occupies in the memory.<br>In the case of DMA, the formula is as follows: Image width \* Number of bytes of each pixel + Number of padding bytes at the end of each row. In the case of other types of memory, the formula is as follows: Image width \* Number of bytes of each pixel.|
24| int32_t pixelFormat |  Pixel format. The options are as follows:<br>**0**: Unknown format.<br>**2**: RGB_565.<br>**3**: RGBA_8888.<br>**4**: BGRA_8888.<br>**5**: RGB_888.<br>**6**: ALPHA_8.<br>**7**: RGBA_F16.<br>**8**: NV21.<br>**9**: NV12.|
25