39555c89创建于 2025年12月19日历史提交

OH_NativeBuffer_Config

typedef struct {...} OH_NativeBuffer_Config

Overview

The OH_NativeBuffer_Config struct describes the OH_NativeBuffer attribute configuration, which is used when you apply for a new OH_NativeBuffer instance or query the attributes of an existing instance.

Since: 9

Related module: OH_NativeBuffer

Header file: native_buffer.h

Summary

Member Variables

Name Description
int32_t width Width, in pixels.
int32_t height Height, in pixels.
int32_t format Pixel format. For details about the available options, see OH_NativeBuffer_Format.
int32_t usage Usage of the buffer. For details about the available options, see OH_NativeBuffer_Usage.
int32_t stride Double pointer to the image processing instance created. Stride of the local window buffer, in bytes.
Since: 10