objc2_av_kit/generated/
AVKitTypes.rs1use objc2::__framework_prelude::*;
4
5use crate::*;
6
7#[repr(transparent)]
26#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
27pub struct AVVideoFrameAnalysisType(pub NSUInteger);
28bitflags::bitflags! {
29 impl AVVideoFrameAnalysisType: NSUInteger {
30 #[doc(alias = "AVVideoFrameAnalysisTypeNone")]
31 const None = 0;
32 #[doc(alias = "AVVideoFrameAnalysisTypeDefault")]
33 const Default = 1<<0;
34 #[doc(alias = "AVVideoFrameAnalysisTypeText")]
35 const Text = 1<<1;
36 #[doc(alias = "AVVideoFrameAnalysisTypeSubject")]
37 const Subject = 1<<2;
38 #[doc(alias = "AVVideoFrameAnalysisTypeVisualSearch")]
39 const VisualSearch = 1<<3;
40 #[doc(alias = "AVVideoFrameAnalysisTypeMachineReadableCode")]
41 const MachineReadableCode = 1<<4;
42 }
43}
44
45unsafe impl Encode for AVVideoFrameAnalysisType {
46 const ENCODING: Encoding = NSUInteger::ENCODING;
47}
48
49unsafe impl RefEncode for AVVideoFrameAnalysisType {
50 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
51}
52
53#[repr(transparent)]
58#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
59pub struct AVDisplayDynamicRange(pub NSInteger);
60impl AVDisplayDynamicRange {
61 #[doc(alias = "AVDisplayDynamicRangeAutomatic")]
63 pub const Automatic: Self = Self(0);
64 #[doc(alias = "AVDisplayDynamicRangeStandard")]
66 pub const Standard: Self = Self(1);
67 #[doc(alias = "AVDisplayDynamicRangeConstrainedHigh")]
69 pub const ConstrainedHigh: Self = Self(2);
70 #[doc(alias = "AVDisplayDynamicRangeHigh")]
72 pub const High: Self = Self(3);
73}
74
75unsafe impl Encode for AVDisplayDynamicRange {
76 const ENCODING: Encoding = NSInteger::ENCODING;
77}
78
79unsafe impl RefEncode for AVDisplayDynamicRange {
80 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
81}