openharmony 鸿蒙 capi-image-ohospixelmapinfo

2026-08-25 浏览 (1)

OhosPixelMapInfo

struct OhosPixelMapInfo {...}

Overview

The struct describes the information about a PixelMap.

Since: 8

Deprecated from: 10

Related module: Image

Header file: image_pixel_map_napi.h

Summary

Member Variables

NameDescription
uint32_t widthImage width, in pixels.
uint32_t heightImage height, in pixels.
uint32_t rowSizeNumber of bytes that each row of the image occupies in the memory.
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.
int32_t pixelFormatPixel format. The options are as follows:
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.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-image-nativemodule-oh-pixelmap-hdrmetadatavalue

openharmony 鸿蒙 capi-image-imagepacker-opts-

openharmony 鸿蒙 capi-image-nativemodule-image-region

openharmony 鸿蒙 capi-image-imagepacker-native-

openharmony 鸿蒙 capi-image-imagenative-

openharmony 鸿蒙 capi-image-processing-h

openharmony 鸿蒙 capi-image-ohosimagesourcesupportedformat

openharmony 鸿蒙 capi-image-nativemodule-image-size

openharmony 鸿蒙 capi-image-mdk-h

openharmony 鸿蒙 capi-image-ohosimagesourcedelaytimelist

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/qU1RVAq7