OH_NativeVSync_ExpectedRateRange
typedef struct {...} OH_NativeVSync_ExpectedRateRange
Overview
Provides the expected frame rate range.
Since: 20
Related module: NativeVsync
Header file: native_vsync.h
Summary
Member Variables
| Name | Description |
|---|---|
| int32_t min | Minimum frame rate. |
| int32_t max | Maximum frame rate. |
| int32_t expected | Expected frame rate. |
Member Functions
| Name | typedef Keyword | Description |
|---|---|---|
| typedef void (*OH_NativeVSync_FrameCallback)(long long timestamp, void *data) | OH_NativeVSync_FrameCallback() | Defines the pointer to a VSync callback function. Since: 9 System capability: SystemCapability.Graphic.Graphic2D.NativeVsync |
Member Function Description
OH_NativeVSync_FrameCallback()
typedef void (*OH_NativeVSync_FrameCallback)(long long timestamp, void *data)
Item
Defines the pointer to a VSync callback function.
System capability: SystemCapability.Graphic.Graphic2D.NativeVsync
Since: 9
Parameters
| Name | Description |
|---|---|
| long long timestamp | System timestamp obtained by VSync using CLOCK_MONOTONIC, in nanoseconds. |
| void *data | Pointer to user-defined data. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 capi-drawing-gpu-context-h
openharmony 鸿蒙 capi-drawing-nativepixelmap-
openharmony 鸿蒙 capi-drawing-oh-drawing-brush
openharmony 鸿蒙 capi-drawing-oh-drawing-image-info
openharmony 鸿蒙 capi-drawing-text-linetypography-h
openharmony 鸿蒙 capi-oh-nativeimage-oh-nativeimage
openharmony 鸿蒙 capi-drawing-typeface-h
openharmony 鸿蒙 capi-drawing-brush-h