harmony 鸿蒙OhosPixelMapInfo
OhosPixelMapInfo
Overview
The OHOS::Media::OhosPixelMapInfo struct describes the information about a PixelMap.
System capability: SystemCapability.Multimedia.Image
Deprecated from: 10
Since: 8
Related module: Image
Header file: image_pixel_map_napi.h
Summary
Member Variables
Name | Description |
---|---|
uint32_t width | Image width, in pixels. |
uint32_t height | Image height, in pixels. |
uint32_t rowSize | Number of bytes that each row of the image occupies in the memory. |
int32_t pixelFormat | Pixel format. |
Member Variable Description
height
uint32_t OhosPixelMapInfo::height
Description
Image height, in pixels.
pixelFormat
int32_t OhosPixelMapInfo::pixelFormat
Description
Pixel format. The options are as follows:
Value | Description |
---|---|
0 | Unknown format. |
2 | RGB_565. |
3 | RGBA_8888. |
4 | BGRA_8888. |
5 | RGB_888. |
6 | ALPHA_8. |
7 | RGBA_F16. |
8 | NV21. |
9 | NV12. |
rowSize
uint32_t OhosPixelMapInfo::rowSize
Description
Number of bytes that each row of the image occupies in the memory.
In the case of DMA, the formula is as follows: Image width x 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 x Number of bytes of each pixel.
width
uint32_t OhosPixelMapInfo::width
Description
Image width, in pixels.
你可能感兴趣的鸿蒙文章
harmony 鸿蒙_image___native_module
harmony 鸿蒙ImageEffect_FilterDelegate
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦