harmony 鸿蒙OH_NativeBuffer_Config

  • 2025-06-12
  • 浏览 (6)

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.

\@syscap SystemCapability.Graphic.Graphic2D.NativeBuffer

Since: 9

Related module: OH_NativeBuffer

Header file: native_buffer.h

Summary

Member Variables

Name Description
width Width, in pixels.
height Height, in pixels.
format Pixel format. For details, see OH_NativeBuffer_Format.
usage Usage of the buffer. For details, see OH_NativeBuffer_Usage.
stride Output parameter. Stride of the local window buffer, in bytes.

Member Variable Description

format

int32_t OH_NativeBuffer_Config::format

Description

Pixel format.

height

int32_t OH_NativeBuffer_Config::height

Description

Height, in pixels.

stride

int32_t OH_NativeBuffer_Config::stride

Description

Output parameter. Stride of the local window buffer, in bytes.

Since

10

usage

int32_t OH_NativeBuffer_Config::usage

Description

Description of the buffer usage.

width

int32_t OH_NativeBuffer_Config::width

Description

Width, in pixels.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkGraphics 2D

harmony 鸿蒙BufferHandle

harmony 鸿蒙ColorSpacePrimaries

harmony 鸿蒙DisplaySoloist_ExpectedRateRange

harmony 鸿蒙_drawing

harmony 鸿蒙NativeColorSpaceManager

harmony 鸿蒙NativeDisplaySoloist

harmony 鸿蒙NativeVsync

harmony 鸿蒙NativeWindow

harmony 鸿蒙OH_Drawing_BitmapFormat

0  赞