[go: up one dir, main page]

core-video-sys 0.1.3

Bindings to CoreVideo.framework for macOS and iOS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{
    core_foundation_sys::base::CFTypeID,
    core_graphics::display::CGDirectDisplayID,
    CVReturn, CVTime,
};

#[derive(Debug, Copy, Clone)]
pub enum __CVDisplayLink { }
pub type CVDisplayLinkRef = *mut __CVDisplayLink;

extern "C" {
    pub fn CVDisplayLinkGetTypeID() -> CFTypeID;
    pub fn CVDisplayLinkCreateWithCGDisplay(displayID: CGDirectDisplayID, displayLinkOut: *mut CVDisplayLinkRef) -> CVReturn;
    pub fn CVDisplayLinkGetNominalOutputVideoRefreshPeriod(displayLink: CVDisplayLinkRef) -> CVTime;
    pub fn CVDisplayLinkRelease(displayLink: CVDisplayLinkRef);
}