typedef struct {...} OH_ImageBufferData OH_ImageBufferData is a struct that encapsulates image data at the native layer. To obtain an OH_ImageBufferData object, use the OH_ImageNative_GetBufferData function.
The struct stores a shallow copy of the original image data. After the original data is released, do not perform any read or write operations on the pointers in this struct; otherwise, undefined behavior may occur.
Since: 23
Related module: Image_NativeModule
Header file: image_native.h
| Name | Description |
|---|---|
| int32_t *rowStride | Array of row strides of image color components, in pixels. |
| int32_t *pixelStride | Array of pixel pitches of image color components, in pixels. |
| int32_t numStride | Array length. |
| size_t bufferSize | Buffer size, in bytes. |
| OH_NativeBuffer *nativeBuffer | Pointer to the OH_NativeBuffer object of the image. |