目录

OH_ImageBufferData

typedef struct {...} OH_ImageBufferData

Overview

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

Summary

[h2]Member Variables

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.