cidre 0.11.7

Apple frameworks bindings for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{arc, cf, cg, cv, os};

pub fn cg_image_from_cv_pixel_buf(
    pixel_buffer: &cv::PixelBuf,
    options: Option<&cf::Dictionary>,
) -> os::Result<arc::R<cg::Image>> {
    unsafe {
        os::result_unchecked(|res| VTCreateCGImageFromCVPixelBuffer(pixel_buffer, options, res))
    }
}

unsafe extern "C" {
    fn VTCreateCGImageFromCVPixelBuffer(
        pixel_buffer: &cv::PixelBuf,
        options: Option<&cf::Dictionary>,
        image_out: *mut Option<arc::R<cg::Image>>,
    ) -> os::Status;
}