objc2_av_foundation/generated/
AVError.rs1use objc2::__framework_prelude::*;
4use objc2_foundation::*;
5
6use crate::*;
7
8extern "C" {
9 pub static AVFoundationErrorDomain: Option<&'static NSErrorDomain>;
11}
12
13extern "C" {
14 pub static AVErrorDeviceKey: Option<&'static NSString>;
16}
17
18extern "C" {
19 pub static AVErrorTimeKey: Option<&'static NSString>;
21}
22
23extern "C" {
24 pub static AVErrorFileSizeKey: Option<&'static NSString>;
26}
27
28extern "C" {
29 pub static AVErrorPIDKey: Option<&'static NSString>;
31}
32
33extern "C" {
34 pub static AVErrorRecordingSuccessfullyFinishedKey: Option<&'static NSString>;
36}
37
38extern "C" {
39 pub static AVErrorMediaTypeKey: Option<&'static NSString>;
41}
42
43extern "C" {
44 pub static AVErrorMediaSubTypeKey: Option<&'static NSString>;
46}
47
48extern "C" {
49 pub static AVErrorPresentationTimeStampKey: Option<&'static NSString>;
51}
52
53extern "C" {
54 pub static AVErrorPersistentTrackIDKey: Option<&'static NSString>;
56}
57
58extern "C" {
59 pub static AVErrorFileTypeKey: Option<&'static NSString>;
61}
62
63extern "C" {
64 pub static AVErrorDiscontinuityFlagsKey: Option<&'static NSString>;
66}
67
68#[repr(transparent)]
70#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
71pub struct AVError(pub NSInteger);
72impl AVError {
73 #[doc(alias = "AVErrorUnknown")]
74 pub const Unknown: Self = Self(-11800);
75 #[doc(alias = "AVErrorOutOfMemory")]
76 pub const OutOfMemory: Self = Self(-11801);
77 #[doc(alias = "AVErrorSessionNotRunning")]
78 pub const SessionNotRunning: Self = Self(-11803);
79 #[doc(alias = "AVErrorDeviceAlreadyUsedByAnotherSession")]
80 pub const DeviceAlreadyUsedByAnotherSession: Self = Self(-11804);
81 #[doc(alias = "AVErrorNoDataCaptured")]
82 pub const NoDataCaptured: Self = Self(-11805);
83 #[doc(alias = "AVErrorSessionConfigurationChanged")]
84 pub const SessionConfigurationChanged: Self = Self(-11806);
85 #[doc(alias = "AVErrorDiskFull")]
86 pub const DiskFull: Self = Self(-11807);
87 #[doc(alias = "AVErrorDeviceWasDisconnected")]
88 pub const DeviceWasDisconnected: Self = Self(-11808);
89 #[doc(alias = "AVErrorMediaChanged")]
90 pub const MediaChanged: Self = Self(-11809);
91 #[doc(alias = "AVErrorMaximumDurationReached")]
92 pub const MaximumDurationReached: Self = Self(-11810);
93 #[doc(alias = "AVErrorMaximumFileSizeReached")]
94 pub const MaximumFileSizeReached: Self = Self(-11811);
95 #[doc(alias = "AVErrorMediaDiscontinuity")]
96 pub const MediaDiscontinuity: Self = Self(-11812);
97 #[doc(alias = "AVErrorMaximumNumberOfSamplesForFileFormatReached")]
98 pub const MaximumNumberOfSamplesForFileFormatReached: Self = Self(-11813);
99 #[doc(alias = "AVErrorDeviceNotConnected")]
100 pub const DeviceNotConnected: Self = Self(-11814);
101 #[doc(alias = "AVErrorDeviceInUseByAnotherApplication")]
102 pub const DeviceInUseByAnotherApplication: Self = Self(-11815);
103 #[doc(alias = "AVErrorDeviceLockedForConfigurationByAnotherProcess")]
104 pub const DeviceLockedForConfigurationByAnotherProcess: Self = Self(-11817);
105 #[doc(alias = "AVErrorExportFailed")]
106 pub const ExportFailed: Self = Self(-11820);
107 #[doc(alias = "AVErrorDecodeFailed")]
108 pub const DecodeFailed: Self = Self(-11821);
109 #[doc(alias = "AVErrorInvalidSourceMedia")]
110 pub const InvalidSourceMedia: Self = Self(-11822);
111 #[doc(alias = "AVErrorFileAlreadyExists")]
112 pub const FileAlreadyExists: Self = Self(-11823);
113 #[doc(alias = "AVErrorCompositionTrackSegmentsNotContiguous")]
114 pub const CompositionTrackSegmentsNotContiguous: Self = Self(-11824);
115 #[doc(alias = "AVErrorInvalidCompositionTrackSegmentDuration")]
116 pub const InvalidCompositionTrackSegmentDuration: Self = Self(-11825);
117 #[doc(alias = "AVErrorInvalidCompositionTrackSegmentSourceStartTime")]
118 pub const InvalidCompositionTrackSegmentSourceStartTime: Self = Self(-11826);
119 #[doc(alias = "AVErrorInvalidCompositionTrackSegmentSourceDuration")]
120 pub const InvalidCompositionTrackSegmentSourceDuration: Self = Self(-11827);
121 #[doc(alias = "AVErrorFileFormatNotRecognized")]
122 pub const FileFormatNotRecognized: Self = Self(-11828);
123 #[doc(alias = "AVErrorFileFailedToParse")]
124 pub const FileFailedToParse: Self = Self(-11829);
125 #[doc(alias = "AVErrorMaximumStillImageCaptureRequestsExceeded")]
126 pub const MaximumStillImageCaptureRequestsExceeded: Self = Self(-11830);
127 #[doc(alias = "AVErrorContentIsProtected")]
128 pub const ContentIsProtected: Self = Self(-11831);
129 #[doc(alias = "AVErrorNoImageAtTime")]
130 pub const NoImageAtTime: Self = Self(-11832);
131 #[doc(alias = "AVErrorDecoderNotFound")]
132 pub const DecoderNotFound: Self = Self(-11833);
133 #[doc(alias = "AVErrorEncoderNotFound")]
134 pub const EncoderNotFound: Self = Self(-11834);
135 #[doc(alias = "AVErrorContentIsNotAuthorized")]
136 pub const ContentIsNotAuthorized: Self = Self(-11835);
137 #[doc(alias = "AVErrorApplicationIsNotAuthorized")]
138 pub const ApplicationIsNotAuthorized: Self = Self(-11836);
139 #[doc(alias = "AVErrorOperationNotSupportedForAsset")]
140 pub const OperationNotSupportedForAsset: Self = Self(-11838);
141 #[doc(alias = "AVErrorDecoderTemporarilyUnavailable")]
142 pub const DecoderTemporarilyUnavailable: Self = Self(-11839);
143 #[doc(alias = "AVErrorEncoderTemporarilyUnavailable")]
144 pub const EncoderTemporarilyUnavailable: Self = Self(-11840);
145 #[doc(alias = "AVErrorInvalidVideoComposition")]
146 pub const InvalidVideoComposition: Self = Self(-11841);
147 #[doc(alias = "AVErrorReferenceForbiddenByReferencePolicy")]
148 pub const ReferenceForbiddenByReferencePolicy: Self = Self(-11842);
149 #[doc(alias = "AVErrorInvalidOutputURLPathExtension")]
150 pub const InvalidOutputURLPathExtension: Self = Self(-11843);
151 #[doc(alias = "AVErrorScreenCaptureFailed")]
152 pub const ScreenCaptureFailed: Self = Self(-11844);
153 #[doc(alias = "AVErrorDisplayWasDisabled")]
154 pub const DisplayWasDisabled: Self = Self(-11845);
155 #[doc(alias = "AVErrorTorchLevelUnavailable")]
156 pub const TorchLevelUnavailable: Self = Self(-11846);
157 #[doc(alias = "AVErrorIncompatibleAsset")]
158 pub const IncompatibleAsset: Self = Self(-11848);
159 #[doc(alias = "AVErrorFailedToLoadMediaData")]
160 pub const FailedToLoadMediaData: Self = Self(-11849);
161 #[doc(alias = "AVErrorServerIncorrectlyConfigured")]
162 pub const ServerIncorrectlyConfigured: Self = Self(-11850);
163 #[doc(alias = "AVErrorApplicationIsNotAuthorizedToUseDevice")]
164 pub const ApplicationIsNotAuthorizedToUseDevice: Self = Self(-11852);
165 #[doc(alias = "AVErrorFailedToParse")]
166 pub const FailedToParse: Self = Self(-11853);
167 #[doc(alias = "AVErrorFileTypeDoesNotSupportSampleReferences")]
168 pub const FileTypeDoesNotSupportSampleReferences: Self = Self(-11854);
169 #[doc(alias = "AVErrorUndecodableMediaData")]
170 pub const UndecodableMediaData: Self = Self(-11855);
171 #[doc(alias = "AVErrorAirPlayControllerRequiresInternet")]
172 pub const AirPlayControllerRequiresInternet: Self = Self(-11856);
173 #[doc(alias = "AVErrorAirPlayReceiverRequiresInternet")]
174 pub const AirPlayReceiverRequiresInternet: Self = Self(-11857);
175 #[doc(alias = "AVErrorVideoCompositorFailed")]
176 pub const VideoCompositorFailed: Self = Self(-11858);
177 #[doc(alias = "AVErrorRecordingAlreadyInProgress")]
178 pub const RecordingAlreadyInProgress: Self = Self(-11859);
179 #[doc(alias = "AVErrorCreateContentKeyRequestFailed")]
180 pub const CreateContentKeyRequestFailed: Self = Self(-11860);
181 #[doc(alias = "AVErrorUnsupportedOutputSettings")]
182 pub const UnsupportedOutputSettings: Self = Self(-11861);
183 #[doc(alias = "AVErrorOperationNotAllowed")]
184 pub const OperationNotAllowed: Self = Self(-11862);
185 #[doc(alias = "AVErrorContentIsUnavailable")]
186 pub const ContentIsUnavailable: Self = Self(-11863);
187 #[doc(alias = "AVErrorFormatUnsupported")]
188 pub const FormatUnsupported: Self = Self(-11864);
189 #[doc(alias = "AVErrorMalformedDepth")]
190 pub const MalformedDepth: Self = Self(-11865);
191 #[doc(alias = "AVErrorContentNotUpdated")]
192 pub const ContentNotUpdated: Self = Self(-11866);
193 #[doc(alias = "AVErrorNoLongerPlayable")]
194 pub const NoLongerPlayable: Self = Self(-11867);
195 #[doc(alias = "AVErrorNoCompatibleAlternatesForExternalDisplay")]
196 pub const NoCompatibleAlternatesForExternalDisplay: Self = Self(-11868);
197 #[doc(alias = "AVErrorNoSourceTrack")]
198 pub const NoSourceTrack: Self = Self(-11869);
199 #[doc(alias = "AVErrorExternalPlaybackNotSupportedForAsset")]
200 pub const ExternalPlaybackNotSupportedForAsset: Self = Self(-11870);
201 #[doc(alias = "AVErrorOperationNotSupportedForPreset")]
202 pub const OperationNotSupportedForPreset: Self = Self(-11871);
203 #[doc(alias = "AVErrorSessionHardwareCostOverage")]
204 pub const SessionHardwareCostOverage: Self = Self(-11872);
205 #[doc(alias = "AVErrorUnsupportedDeviceActiveFormat")]
206 pub const UnsupportedDeviceActiveFormat: Self = Self(-11873);
207 #[doc(alias = "AVErrorIncorrectlyConfigured")]
208 pub const IncorrectlyConfigured: Self = Self(-11875);
209 #[doc(alias = "AVErrorSegmentStartedWithNonSyncSample")]
210 pub const SegmentStartedWithNonSyncSample: Self = Self(-11876);
211 #[doc(alias = "AVErrorRosettaNotInstalled")]
212 pub const RosettaNotInstalled: Self = Self(-11877);
213 #[doc(alias = "AVErrorOperationCancelled")]
214 pub const OperationCancelled: Self = Self(-11878);
215 #[doc(alias = "AVErrorContentKeyRequestCancelled")]
216 pub const ContentKeyRequestCancelled: Self = Self(-11879);
217 #[doc(alias = "AVErrorInvalidSampleCursor")]
218 pub const InvalidSampleCursor: Self = Self(-11880);
219 #[doc(alias = "AVErrorFailedToLoadSampleData")]
220 pub const FailedToLoadSampleData: Self = Self(-11881);
221 #[doc(alias = "AVErrorAirPlayReceiverTemporarilyUnavailable")]
222 pub const AirPlayReceiverTemporarilyUnavailable: Self = Self(-11882);
223 #[doc(alias = "AVErrorEncodeFailed")]
224 pub const EncodeFailed: Self = Self(-11883);
225 #[doc(alias = "AVErrorSandboxExtensionDenied")]
226 pub const SandboxExtensionDenied: Self = Self(-11884);
227 #[doc(alias = "AVErrorToneMappingFailed")]
228 pub const ToneMappingFailed: Self = Self(-11885);
229 #[doc(alias = "AVErrorMediaExtensionDisabled")]
230 pub const MediaExtensionDisabled: Self = Self(-11886);
231 #[doc(alias = "AVErrorMediaExtensionConflict")]
232 pub const MediaExtensionConflict: Self = Self(-11887);
233 #[doc(
234 alias = "AVErrorContentKeyRequestPlaybackDestinationDoesNotSupportDeviceIdentifierRandomization"
235 )]
236 pub const ContentKeyRequestPlaybackDestinationDoesNotSupportDeviceIdentifierRandomization:
237 Self = Self(-11888);
238 #[doc(alias = "AVErrorContentKeyInvalid")]
239 pub const ContentKeyInvalid: Self = Self(-11889);
240 #[doc(alias = "AVErrorNoSmartFramingsEnabled")]
241 pub const NoSmartFramingsEnabled: Self = Self(-11890);
242 #[doc(alias = "AVErrorAutoWhiteBalanceNotLocked")]
243 pub const AutoWhiteBalanceNotLocked: Self = Self(-11891);
244 #[doc(alias = "AVErrorFollowExternalSyncDeviceTimedOut")]
245 pub const FollowExternalSyncDeviceTimedOut: Self = Self(-11892);
246}
247
248unsafe impl Encode for AVError {
249 const ENCODING: Encoding = NSInteger::ENCODING;
250}
251
252unsafe impl RefEncode for AVError {
253 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
254}