objc2_video_toolbox/
lib.rs

1//! # Bindings to the `VideoToolbox` framework
2//!
3//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
4//!
5//! [apple-doc]: https://developer.apple.com/documentation/videotoolbox/
6//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html
7#![no_std]
8#![cfg_attr(docsrs, feature(doc_auto_cfg))]
9// Update in Cargo.toml as well.
10#![doc(html_root_url = "https://docs.rs/objc2-video-toolbox/0.3.1")]
11
12#[cfg(feature = "alloc")]
13extern crate alloc;
14
15#[cfg(feature = "std")]
16extern crate std;
17
18mod generated;
19#[allow(unused_imports, unreachable_pub)]
20pub use self::generated::*;
21
22// MacTypes.h
23#[allow(dead_code)]
24pub(crate) type Boolean = u8;
25#[allow(dead_code)]
26pub(crate) type OSStatus = i32;
27
28// NOTE: `VTRAWProcessingSessionRef` is marked as `CM_SWIFT_NONSENDABLE`, but
29// `$(xcrun --show-sdk-path)/usr/lib/swift/VideoToolbox.swiftmodule/*`
30// includes an `@unchecked Swift.Sendable` extension, so might be safe to
31// mark it as sendable?