OhosPixelMapInfos
Overview
The OhosPixelMapInfos struct defines the information about a pixel map.
System capability: SystemCapability.Multimedia.Image
Since: 10
Related module: Image
Summary
Member Variables
Name | Description |
---|---|
width | Image width, in pixels. |
height | Image height, in pixels. |
rowSize | Number of bytes per row. In the case of Direct Memory Access (DMA), the formula is as follows: Image width x Roundup(64 x Number of bytes per pixel). (The roundup means that each row is automatically padded.) In the case of other types of memory, the formula is as follows: Image width x Number of bytes per pixel. |
pixelFormat | Pixel format. |
Member Variable Description
height
uint32_t OhosPixelMapInfos::height
Description
Image height, in pixels.
pixelFormat
int32_t OhosPixelMapInfos::pixelFormat
Description
Pixel format.
rowSize
uint32_t OhosPixelMapInfos::rowSize
Description
Number of bytes per row.
In the case of DMA, the formula is as follows: Image width x Roundup(64 x Number of bytes per pixel). (The roundup means that each row is automatically padded.) In the case of other types of memory, the formula is as follows: Image width x Number of bytes per pixel.
width
uint32_t OhosPixelMapInfos::width
Description
Image width, in pixels.