harmony 鸿蒙native_vsync.h

  • 2022-10-28
  • 浏览 (639)

native_vsync.h

概述

定义获取和使用NativeVsync的相关函数

起始版本:

9

相关模块:

NativeVsync

汇总

类型定义

类型名称 描述
OH_NativeVSync 提供OH_NativeVSync结构体声明
(*OH_NativeVSync_FrameCallback) (long long timestamp, void *data) VSync回调函数类型

函数

函数名称 描述
OH_NativeVSync_Create (const char *name, unsigned int length) 创建一个OH_NativeVSync实例,每次调用都会产生一个新的实例
OH_NativeVSync_Destroy (OH_NativeVSync *nativeVsync) 销毁OH_NativeVSync实例
OH_NativeVSync_RequestFrame (OH_NativeVSync *nativeVsync, OH_NativeVSync_FrameCallback callback, void *data) 请求下一次vsync信号,当信号到来时,调用回调函数callback
OH_NativeVSync_GetPeriod (OH_NativeVSync *nativeVsync, long long *period) 获取vsync周期。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Native API

harmony 鸿蒙AVCapability

harmony 鸿蒙AVDemuxer

harmony 鸿蒙AVMuxer

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙AVSource

harmony 鸿蒙AudioDecoder

harmony 鸿蒙AudioEncoder

harmony 鸿蒙CodecBase

harmony 鸿蒙Core

0  赞