objc2_ar_kit/generated/
ARVideoFormat.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4#[cfg(feature = "objc2")]
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-av-foundation")]
7use objc2_av_foundation::*;
8#[cfg(feature = "objc2-core-foundation")]
9use objc2_core_foundation::*;
10#[cfg(feature = "objc2-foundation")]
11use objc2_foundation::*;
12
13use crate::*;
14
15#[cfg(feature = "objc2")]
16extern_class!(
17    /// [Apple's documentation](https://developer.apple.com/documentation/arkit/arvideoformat?language=objc)
18    #[unsafe(super(NSObject))]
19    #[derive(Debug, PartialEq, Eq, Hash)]
20    #[cfg(feature = "objc2")]
21    pub struct ARVideoFormat;
22);
23
24#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
25unsafe impl NSCopying for ARVideoFormat {}
26
27#[cfg(all(feature = "objc2", feature = "objc2-foundation"))]
28unsafe impl CopyingHelper for ARVideoFormat {
29    type Result = Self;
30}
31
32#[cfg(feature = "objc2")]
33unsafe impl NSObjectProtocol for ARVideoFormat {}
34
35#[cfg(feature = "objc2")]
36impl ARVideoFormat {
37    extern_methods!(
38        #[cfg(feature = "objc2-av-foundation")]
39        /// Indicates the physical position of an AVCaptureDevice's hardware on the system.
40        #[unsafe(method(captureDevicePosition))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn captureDevicePosition(&self) -> AVCaptureDevicePosition;
43
44        #[cfg(feature = "objc2-av-foundation")]
45        /// Indicates the type of AVCaptureDevice.
46        #[unsafe(method(captureDeviceType))]
47        #[unsafe(method_family = none)]
48        pub unsafe fn captureDeviceType(&self) -> Retained<AVCaptureDeviceType>;
49
50        #[cfg(feature = "objc2-core-foundation")]
51        /// Image resolution.
52        #[unsafe(method(imageResolution))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn imageResolution(&self) -> CGSize;
55
56        /// Frame rate.
57        #[unsafe(method(framesPerSecond))]
58        #[unsafe(method_family = none)]
59        pub unsafe fn framesPerSecond(&self) -> NSInteger;
60
61        /// Indicates if the video format is recommended for capturing high resolution frames.
62        #[unsafe(method(isRecommendedForHighResolutionFrameCapturing))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn isRecommendedForHighResolutionFrameCapturing(&self) -> bool;
65
66        /// Indicates if the video format supports high dynamic range (HDR) streaming.
67        #[unsafe(method(isVideoHDRSupported))]
68        #[unsafe(method_family = none)]
69        pub unsafe fn isVideoHDRSupported(&self) -> bool;
70
71        /// Unavailable
72        #[unsafe(method(init))]
73        #[unsafe(method_family = init)]
74        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
75
76        #[unsafe(method(new))]
77        #[unsafe(method_family = new)]
78        pub unsafe fn new() -> Retained<Self>;
79    );
80}