openharmony 鸿蒙 capi-image-nativemodule-oh-imagebufferdata

2026-08-25 浏览 (1)

OH_ImageBufferData

typedef struct {...} OH_ImageBufferData

Overview

OH_ImageBufferData is the image data struct encapsulated at the native layer. To obtain an OH_ImageNative_GetBufferData object, call OH_ImageNative_GetBufferData.
The struct stores the shallow copy of the original image data. Once the original data is released, no read or write operations should be performed on the pointers within this struct; otherwise, undefined behavior will occur.

Since: 23

Related module: Image_NativeModule

Header file: image_native.h

Summary

Member Variables

NameDescription
int32_t *rowStrideArray of row strides of image color components, in pixels.
int32_t *pixelStrideArray of pixel pitches of image color components, in pixels.
int32_t numStrideArray length.
size_t bufferSizeBuffer size, in bytes.
OH_NativeBuffer *nativeBufferPointer to the OH_NativeBuffer object of the image.

你可能感兴趣的鸿蒙文章

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/0GLAbpGf