objc2-core-video 0.3.2

Bindings to the CoreVideo framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;

use crate::*;

/// Retrieve the current value of the host time base.
///
/// On Mac OS X, the host time base for CoreVideo and CoreAudio are identical, and the values returned from either API
/// may be used interchangeably.
///
/// Returns: The current host time.
#[inline]
pub extern "C-unwind" fn CVGetCurrentHostTime() -> u64 {
    extern "C-unwind" {
        fn CVGetCurrentHostTime() -> u64;
    }
    unsafe { CVGetCurrentHostTime() }
}

/// Retrieve the frequency of the host time base.
///
/// On Mac OS X, the host time base for CoreVideo and CoreAudio are identical, and the values returned from either API
/// may be used interchangeably.
///
/// Returns: The current host frequency.
#[inline]
pub extern "C-unwind" fn CVGetHostClockFrequency() -> c_double {
    extern "C-unwind" {
        fn CVGetHostClockFrequency() -> c_double;
    }
    unsafe { CVGetHostClockFrequency() }
}

/// Retrieve the smallest possible increment in the host time base.
///
/// Returns: The smallest valid increment in the host time base.
#[inline]
pub extern "C-unwind" fn CVGetHostClockMinimumTimeDelta() -> u32 {
    extern "C-unwind" {
        fn CVGetHostClockMinimumTimeDelta() -> u32;
    }
    unsafe { CVGetHostClockMinimumTimeDelta() }
}