objc2_core_video/generated/
CVHostTime.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4
5use crate::*;
6
7/// Retrieve the current value of the host time base.
8///
9/// On Mac OS X, the host time base for CoreVideo and CoreAudio are identical, and the values returned from either API
10/// may be used interchangeably.
11///
12/// Returns: The current host time.
13#[inline]
14pub extern "C-unwind" fn CVGetCurrentHostTime() -> u64 {
15    extern "C-unwind" {
16        fn CVGetCurrentHostTime() -> u64;
17    }
18    unsafe { CVGetCurrentHostTime() }
19}
20
21/// Retrieve the frequency of the host time base.
22///
23/// On Mac OS X, the host time base for CoreVideo and CoreAudio are identical, and the values returned from either API
24/// may be used interchangeably.
25///
26/// Returns: The current host frequency.
27#[inline]
28pub extern "C-unwind" fn CVGetHostClockFrequency() -> c_double {
29    extern "C-unwind" {
30        fn CVGetHostClockFrequency() -> c_double;
31    }
32    unsafe { CVGetHostClockFrequency() }
33}
34
35/// Retrieve the smallest possible increment in the host time base.
36///
37/// Returns: The smallest valid increment in the host time base.
38#[inline]
39pub extern "C-unwind" fn CVGetHostClockMinimumTimeDelta() -> u32 {
40    extern "C-unwind" {
41        fn CVGetHostClockMinimumTimeDelta() -> u32;
42    }
43    unsafe { CVGetHostClockMinimumTimeDelta() }
44}