harmony 鸿蒙native_display_soloist.h
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
Name | Description |
---|---|
struct DisplaySoloist_ExpectedRateRange | Describes the expected frame rate range. |
Types
Name | Description |
---|---|
typedef struct OH_DisplaySoloist OH_DisplaySoloist | Provides 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_ExpectedRateRange | Defines a struct for the expected frame rate range. |
Functions
Name | Description |
---|---|
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 鸿蒙DisplaySoloist_ExpectedRateRange
harmony 鸿蒙NativeColorSpaceManager
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦