harmony 鸿蒙native_display_soloist.h

2025-06-12 浏览 (1)

native_display_soloist.h

Overview

The native_display_soloist.h file declares the functions for obtaining and using native display soloist.

File to include: <native_display_soloist/native_display_soloist.h>

System capability: SystemCapability.Graphic.Graphic2D.HyperGraphicManager

Library: libnative_display_soloist.so

Since: 12

Related module: NativeDisplaySoloist

Summary

Structs

NameDescription
struct  DisplaySoloist_ExpectedRateRangeDescribes the expected frame rate range.

Types

NameDescription
typedef struct OH_DisplaySoloist OH_DisplaySoloistProvides the declaration of an OH_DisplaySoloist struct.
typedef void(* OH_DisplaySoloist_FrameCallback) (long long timestamp, long long targetTimestamp, void *data)Defines the pointer to an OH_DisplaySoloist callback function.
typedef struct DisplaySoloist_ExpectedRateRange DisplaySoloist_ExpectedRateRangeDefines a struct for the expected frame rate range.

Functions

NameDescription
OH_DisplaySoloist * OH_DisplaySoloist_Create (bool useExclusiveThread)Creates an OH_DisplaySoloist instance. A new OH_DisplaySoloist instance is created each time this API is called.
int32_t OH_DisplaySoloist_Destroy (OH_DisplaySoloist *displaySoloist)Destroys an OH_DisplaySoloist object and reclaims the memory occupied.
int32_t OH_DisplaySoloist_Start (OH_DisplaySoloist *displaySoloist, OH_DisplaySoloist_FrameCallback callback, void *data)Sets a callback function for each frame. The callback function is triggered each time a VSync signal arrives.
int32_t OH_DisplaySoloist_Stop (OH_DisplaySoloist *displaySoloist)Stops requesting the next VSync signal and triggering the callback function.
int32_t OH_DisplaySoloist_SetExpectedFrameRateRange (OH_DisplaySoloist *displaySoloist, DisplaySoloist_ExpectedRateRange *range)Sets the expected frame rate range.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkGraphics 2D

harmony 鸿蒙BufferHandle

harmony 鸿蒙ColorSpacePrimaries

harmony 鸿蒙DisplaySoloist_ExpectedRateRange

harmony 鸿蒙_drawing

harmony 鸿蒙NativeColorSpaceManager

harmony 鸿蒙NativeDisplaySoloist

harmony 鸿蒙NativeVsync

harmony 鸿蒙NativeWindow

harmony 鸿蒙OH_Drawing_BitmapFormat

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/m6XgZA