1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use *;
use crate::*;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtpropertynotsupportederr?language=objc)
pub const kVTPropertyNotSupportedErr: OSStatus = -12900;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtpropertyreadonlyerr?language=objc)
pub const kVTPropertyReadOnlyErr: OSStatus = -12901;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtparametererr?language=objc)
pub const kVTParameterErr: OSStatus = -12902;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtinvalidsessionerr?language=objc)
pub const kVTInvalidSessionErr: OSStatus = -12903;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtallocationfailederr?language=objc)
pub const kVTAllocationFailedErr: OSStatus = -12904;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtpixeltransfernotsupportederr?language=objc)
pub const kVTPixelTransferNotSupportedErr: OSStatus = -12905;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcouldnotfindvideodecodererr?language=objc)
pub const kVTCouldNotFindVideoDecoderErr: OSStatus = -12906;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcouldnotcreateinstanceerr?language=objc)
pub const kVTCouldNotCreateInstanceErr: OSStatus = -12907;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcouldnotfindvideoencodererr?language=objc)
pub const kVTCouldNotFindVideoEncoderErr: OSStatus = -12908;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideodecoderbaddataerr?language=objc)
pub const kVTVideoDecoderBadDataErr: OSStatus = -12909;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideodecoderunsupporteddataformaterr?language=objc)
pub const kVTVideoDecoderUnsupportedDataFormatErr: OSStatus = -12910;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideodecodermalfunctionerr?language=objc)
pub const kVTVideoDecoderMalfunctionErr: OSStatus = -12911;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideoencodermalfunctionerr?language=objc)
pub const kVTVideoEncoderMalfunctionErr: OSStatus = -12912;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideodecodernotavailablenowerr?language=objc)
pub const kVTVideoDecoderNotAvailableNowErr: OSStatus = -12913;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtimagerotationnotsupportederr?language=objc)
pub const kVTImageRotationNotSupportedErr: OSStatus = -12914;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtpixelrotationnotsupportederr?language=objc)
pub const kVTPixelRotationNotSupportedErr: OSStatus = -12914;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideoencodernotavailablenowerr?language=objc)
pub const kVTVideoEncoderNotAvailableNowErr: OSStatus = -12915;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtformatdescriptionchangenotsupportederr?language=objc)
pub const kVTFormatDescriptionChangeNotSupportedErr: OSStatus = -12916;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtinsufficientsourcecolordataerr?language=objc)
pub const kVTInsufficientSourceColorDataErr: OSStatus = -12917;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcouldnotcreatecolorcorrectiondataerr?language=objc)
pub const kVTCouldNotCreateColorCorrectionDataErr: OSStatus = -12918;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcolorsynctransformconvertfailederr?language=objc)
pub const kVTColorSyncTransformConvertFailedErr: OSStatus = -12919;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideodecoderauthorizationerr?language=objc)
pub const kVTVideoDecoderAuthorizationErr: OSStatus = -12210;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideoencoderauthorizationerr?language=objc)
pub const kVTVideoEncoderAuthorizationErr: OSStatus = -12211;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcolorcorrectionpixeltransferfailederr?language=objc)
pub const kVTColorCorrectionPixelTransferFailedErr: OSStatus = -12212;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtmultipassstorageidentifiermismatcherr?language=objc)
pub const kVTMultiPassStorageIdentifierMismatchErr: OSStatus = -12213;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtmultipassstorageinvaliderr?language=objc)
pub const kVTMultiPassStorageInvalidErr: OSStatus = -12214;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtframesiloinvalidtimestamperr?language=objc)
pub const kVTFrameSiloInvalidTimeStampErr: OSStatus = -12215;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtframesiloinvalidtimerangeerr?language=objc)
pub const kVTFrameSiloInvalidTimeRangeErr: OSStatus = -12216;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcouldnotfindtemporalfiltererr?language=objc)
pub const kVTCouldNotFindTemporalFilterErr: OSStatus = -12217;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtpixeltransfernotpermittederr?language=objc)
pub const kVTPixelTransferNotPermittedErr: OSStatus = -12218;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcolorcorrectionimagerotationfailederr?language=objc)
pub const kVTColorCorrectionImageRotationFailedErr: OSStatus = -12219;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideodecoderremovederr?language=objc)
pub const kVTVideoDecoderRemovedErr: OSStatus = -17690;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtsessionmalfunctionerr?language=objc)
pub const kVTSessionMalfunctionErr: OSStatus = -17691;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideodecoderneedsrosettaerr?language=objc)
pub const kVTVideoDecoderNeedsRosettaErr: OSStatus = -17692;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideoencoderneedsrosettaerr?language=objc)
pub const kVTVideoEncoderNeedsRosettaErr: OSStatus = -17693;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideodecoderreferencemissingerr?language=objc)
pub const kVTVideoDecoderReferenceMissingErr: OSStatus = -17694;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideodecodercallbackmessagingerr?language=objc)
pub const kVTVideoDecoderCallbackMessagingErr: OSStatus = -17695;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideodecoderunknownerr?language=objc)
pub const kVTVideoDecoderUnknownErr: OSStatus = -17696;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtextensiondisablederr?language=objc)
pub const kVTExtensionDisabledErr: OSStatus = -17697;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideoencodermvhevcvideolayeridsmismatcherr?language=objc)
pub const kVTVideoEncoderMVHEVCVideoLayerIDsMismatchErr: OSStatus = -17698;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcouldnotoutputtaggedbuffergrouperr?language=objc)
pub const kVTCouldNotOutputTaggedBufferGroupErr: OSStatus = -17699;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtcouldnotfindextensionerr?language=objc)
pub const kVTCouldNotFindExtensionErr: OSStatus = -19510;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtextensionconflicterr?language=objc)
pub const kVTExtensionConflictErr: OSStatus = -19511;
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/kvtvideoencoderautowhitebalancenotlockederr?language=objc)
pub const kVTVideoEncoderAutoWhiteBalanceNotLockedErr: OSStatus = -19512;
/// Directives for the decompression session and the video decoder, passed into
/// decodeFlags parameter of VTDecompressionSessionDecodeFrame.
///
///
/// With the kVTDecodeFrame_EnableAsynchronousDecompression bit clear, the video decoder
/// is compelled to emit every frame before it returns. With the bit set, the decoder may
/// process frames asynchronously, but it is not compelled to do so.
///
/// A hint to the decompression session and video decoder that a CVImageBuffer should not
/// be emitted for this frame. NULL will be returned instead.
///
/// A hint to the video decoder that it would be OK to use a low-power mode that can not decode faster than 1x realtime.
///
/// With the kVTDecodeFrame_EnableTemporalProcessing bit clear, the video decoder should emit
/// every frame once that frame's decoding is done -- frames may not be delayed indefinitely. With
/// the bit set, it is legal for the decoder to delay frames indefinitely -- at least
/// until VTDecompressionSessionFinishDelayedFrames or VTDecompressionSessionInvalidate is called.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/vtdecodeframeflags?language=objc)
// NS_OPTIONS
;
bitflags!
unsafe
unsafe
/// Informational status for decoding -- non-error flags
///
///
/// The kVTDecodeInfo_Asynchronous bit may be set if the decode ran asynchronously.
///
/// The kVTDecodeInfo_FrameDropped bit may be set if the frame was dropped.
///
/// If the kVTDecodeInfo_ImageBufferModifiable bit is set, it is safe for the client to modify the imageBuffer.
///
/// The kVTDecodeInfo_SkippedLeadingFrameDropped may be set if a leading frame after a sync frame is dropped.
/// This can happen when a seek to a sync frame is initiated and, due to frame reordering, there are leading
/// frames following the sync frame that cannot be decoded due to missing references. Dropping these frames
/// has no impact to playback since the non-decodeable frames will not be rendered.
/// If kVTDecodeInfo_SkippedLeadingFrameDropped is set, kVTDecodeInfo_FrameDropped will also be set.
///
/// The kVTDecodeInfo_FrameInterrupted bit may be set if the frame was decoded successfully but the decoded
/// content was not provided in the output callback. When this bit is set, the imageBuffer provided to the output
/// handler may either be NULL or contain only black pixels.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/vtdecodeinfoflags?language=objc)
// NS_OPTIONS
;
bitflags!
unsafe
unsafe
/// [Apple's documentation](https://developer.apple.com/documentation/videotoolbox/vtencodeinfoflags?language=objc)
// NS_OPTIONS
;
bitflags!
unsafe
unsafe