objcjs-types 0.2.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/bin/objcjs-types.ts +31 -0
  2. package/dist/AVFoundation/functions.d.ts +21 -0
  3. package/dist/AVFoundation/functions.js +32 -0
  4. package/dist/Accessibility/functions.d.ts +16 -0
  5. package/dist/Accessibility/functions.js +35 -0
  6. package/dist/AddressBook/functions.d.ts +98 -0
  7. package/dist/AddressBook/functions.js +290 -0
  8. package/dist/AppKit/functions.d.ts +112 -0
  9. package/dist/AppKit/functions.js +272 -0
  10. package/dist/AudioToolbox/functions.d.ts +377 -0
  11. package/dist/AudioToolbox/functions.js +1124 -0
  12. package/dist/AuthenticationServices/functions.d.ts +2 -0
  13. package/dist/AuthenticationServices/functions.js +5 -0
  14. package/dist/BrowserEngineCore/functions.d.ts +3 -0
  15. package/dist/BrowserEngineCore/functions.js +11 -0
  16. package/dist/CoreAudio/functions.d.ts +60 -0
  17. package/dist/CoreAudio/functions.js +173 -0
  18. package/dist/CoreMIDI/functions.d.ts +96 -0
  19. package/dist/CoreMIDI/functions.js +287 -0
  20. package/dist/CoreML/functions.d.ts +2 -0
  21. package/dist/CoreML/functions.js +5 -0
  22. package/dist/CoreMediaIO/functions.d.ts +38 -0
  23. package/dist/CoreMediaIO/functions.js +107 -0
  24. package/dist/CoreText/functions.d.ts +209 -0
  25. package/dist/CoreText/functions.js +611 -0
  26. package/dist/CoreWLAN/functions.d.ts +23 -0
  27. package/dist/CoreWLAN/functions.js +56 -0
  28. package/dist/DeviceDiscoveryExtension/functions.d.ts +11 -0
  29. package/dist/DeviceDiscoveryExtension/functions.js +17 -0
  30. package/dist/DiscRecording/functions.d.ts +97 -0
  31. package/dist/DiscRecording/functions.js +290 -0
  32. package/dist/DiscRecordingUI/functions.d.ts +13 -0
  33. package/dist/DiscRecordingUI/functions.js +38 -0
  34. package/dist/ExceptionHandling/functions.d.ts +1 -0
  35. package/dist/ExceptionHandling/functions.js +5 -0
  36. package/dist/FSKit/functions.d.ts +4 -0
  37. package/dist/FSKit/functions.js +11 -0
  38. package/dist/Foundation/functions.d.ts +145 -0
  39. package/dist/Foundation/functions.js +386 -0
  40. package/dist/GLKit/functions.d.ts +51 -0
  41. package/dist/GLKit/functions.js +146 -0
  42. package/dist/GameController/functions.d.ts +18 -0
  43. package/dist/GameController/functions.js +44 -0
  44. package/dist/HealthKit/functions.d.ts +19 -0
  45. package/dist/HealthKit/functions.js +35 -0
  46. package/dist/IOSurface/functions.d.ts +53 -0
  47. package/dist/IOSurface/functions.js +155 -0
  48. package/dist/IOUSBHost/functions.d.ts +44 -0
  49. package/dist/IOUSBHost/functions.js +131 -0
  50. package/dist/InstantMessage/functions.d.ts +1 -0
  51. package/dist/InstantMessage/functions.js +5 -0
  52. package/dist/JavaRuntimeSupport/functions.d.ts +40 -0
  53. package/dist/JavaRuntimeSupport/functions.js +113 -0
  54. package/dist/JavaScriptCore/functions.d.ts +120 -0
  55. package/dist/JavaScriptCore/functions.js +359 -0
  56. package/dist/MLCompute/functions.d.ts +27 -0
  57. package/dist/MLCompute/functions.js +41 -0
  58. package/dist/MapKit/functions.d.ts +23 -0
  59. package/dist/MapKit/functions.js +56 -0
  60. package/dist/Matter/functions.d.ts +17 -0
  61. package/dist/Matter/functions.js +26 -0
  62. package/dist/MediaAccessibility/functions.d.ts +28 -0
  63. package/dist/MediaAccessibility/functions.js +83 -0
  64. package/dist/MediaPlayer/functions.d.ts +3 -0
  65. package/dist/MediaPlayer/functions.js +11 -0
  66. package/dist/Metal/functions.d.ts +14 -0
  67. package/dist/Metal/functions.js +26 -0
  68. package/dist/MetalKit/functions.d.ts +11 -0
  69. package/dist/MetalKit/functions.js +20 -0
  70. package/dist/MetalPerformanceShaders/functions.d.ts +7 -0
  71. package/dist/MetalPerformanceShaders/functions.js +14 -0
  72. package/dist/NearbyInteraction/functions.d.ts +3 -0
  73. package/dist/NearbyInteraction/functions.js +5 -0
  74. package/dist/ParavirtualizedGraphics/functions.d.ts +7 -0
  75. package/dist/ParavirtualizedGraphics/functions.js +14 -0
  76. package/dist/QuartzCore/functions.d.ts +19 -0
  77. package/dist/QuartzCore/functions.js +50 -0
  78. package/dist/SceneKit/functions.d.ts +17 -0
  79. package/dist/SceneKit/functions.js +38 -0
  80. package/dist/SensorKit/functions.d.ts +4 -0
  81. package/dist/SensorKit/functions.js +14 -0
  82. package/dist/ServiceManagement/functions.d.ts +7 -0
  83. package/dist/ServiceManagement/functions.js +20 -0
  84. package/dist/StoreKit/functions.d.ts +1 -0
  85. package/dist/StoreKit/functions.js +5 -0
  86. package/dist/VideoToolbox/functions.d.ts +81 -0
  87. package/dist/VideoToolbox/functions.js +236 -0
  88. package/dist/Vision/functions.d.ts +16 -0
  89. package/dist/Vision/functions.js +38 -0
  90. package/generator/ast-parser.ts +1368 -0
  91. package/generator/clang.ts +167 -0
  92. package/generator/custom.ts +936 -0
  93. package/generator/discover.ts +111 -0
  94. package/generator/emitter.ts +2020 -0
  95. package/generator/frameworks.ts +135 -0
  96. package/generator/index.ts +1334 -0
  97. package/generator/parse-worker.ts +263 -0
  98. package/generator/resolve-strings.ts +121 -0
  99. package/generator/struct-fields.ts +46 -0
  100. package/generator/templates/bind.ts +100 -0
  101. package/generator/templates/helpers.ts +70 -0
  102. package/generator/templates/nsdata.ts +97 -0
  103. package/generator/templates/osversion.ts +91 -0
  104. package/generator/type-mapper.ts +615 -0
  105. package/generator/worker-pool.ts +309 -0
  106. package/package.json +17 -4
@@ -0,0 +1,236 @@
1
+ // AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
2
+ import { callFunction } from "objc-js";
3
+ export function VTCompressionSessionBeginPass(session, beginPassFlags, reserved) {
4
+ return callFunction("VTCompressionSessionBeginPass", { returns: "i" }, session, beginPassFlags, reserved);
5
+ }
6
+ export function VTCompressionSessionCompleteFrames(session, completeUntilPresentationTimeStamp) {
7
+ return callFunction("VTCompressionSessionCompleteFrames", { returns: "i", args: ["@", "{CMTime}"] }, session, completeUntilPresentationTimeStamp);
8
+ }
9
+ export function VTCompressionSessionCreate(allocator, width, height, codecType, encoderSpecification, sourceImageBufferAttributes, compressedDataAllocator, outputCallback, outputCallbackRefCon, compressionSessionOut) {
10
+ return callFunction("VTCompressionSessionCreate", { returns: "i", args: ["@", "i", "i", "I", "@", "@", "@", "@", "^v", "@"] }, allocator, width, height, codecType, encoderSpecification, sourceImageBufferAttributes, compressedDataAllocator, outputCallback, outputCallbackRefCon, compressionSessionOut);
11
+ }
12
+ export function VTCompressionSessionEncodeFrame(session, imageBuffer, presentationTimeStamp, duration, frameProperties, sourceFrameRefcon, infoFlagsOut) {
13
+ return callFunction("VTCompressionSessionEncodeFrame", { returns: "i", args: ["@", "@", "{CMTime}", "{CMTime}", "@", "^v", "@"] }, session, imageBuffer, presentationTimeStamp, duration, frameProperties, sourceFrameRefcon, infoFlagsOut);
14
+ }
15
+ export function VTCompressionSessionEncodeFrameWithOutputHandler(session, imageBuffer, presentationTimeStamp, duration, frameProperties, infoFlagsOut, outputHandler) {
16
+ return callFunction("VTCompressionSessionEncodeFrameWithOutputHandler", { returns: "i", args: ["@", "@", "{CMTime}", "{CMTime}", "@", "@", "@"] }, session, imageBuffer, presentationTimeStamp, duration, frameProperties, infoFlagsOut, outputHandler);
17
+ }
18
+ export function VTCompressionSessionEncodeMultiImageFrame(session, taggedBufferGroup, presentationTimeStamp, duration, frameProperties, sourceFrameRefcon, infoFlagsOut) {
19
+ return callFunction("VTCompressionSessionEncodeMultiImageFrame", { returns: "i", args: ["@", "@", "{CMTime}", "{CMTime}", "@", "^v", "@"] }, session, taggedBufferGroup, presentationTimeStamp, duration, frameProperties, sourceFrameRefcon, infoFlagsOut);
20
+ }
21
+ export function VTCompressionSessionEncodeMultiImageFrameWithOutputHandler(session, taggedBufferGroup, presentationTimeStamp, duration, frameProperties, infoFlagsOut, outputHandler) {
22
+ return callFunction("VTCompressionSessionEncodeMultiImageFrameWithOutputHandler", { returns: "i", args: ["@", "@", "{CMTime}", "{CMTime}", "@", "@", "@"] }, session, taggedBufferGroup, presentationTimeStamp, duration, frameProperties, infoFlagsOut, outputHandler);
23
+ }
24
+ export function VTCompressionSessionEndPass(session, furtherPassesRequestedOut, reserved) {
25
+ return callFunction("VTCompressionSessionEndPass", { returns: "i" }, session, furtherPassesRequestedOut, reserved);
26
+ }
27
+ export function VTCompressionSessionGetPixelBufferPool(session) {
28
+ return callFunction("VTCompressionSessionGetPixelBufferPool", { returns: "@" }, session);
29
+ }
30
+ export function VTCompressionSessionGetTimeRangesForNextPass(session, timeRangeCountOut, timeRangeArrayOut) {
31
+ return callFunction("VTCompressionSessionGetTimeRangesForNextPass", { returns: "i" }, session, timeRangeCountOut, timeRangeArrayOut);
32
+ }
33
+ export function VTCompressionSessionGetTypeID() {
34
+ return callFunction("VTCompressionSessionGetTypeID", { returns: "L" });
35
+ }
36
+ export function VTCompressionSessionInvalidate(session) {
37
+ callFunction("VTCompressionSessionInvalidate", undefined, session);
38
+ }
39
+ export function VTCompressionSessionPrepareToEncodeFrames(session) {
40
+ return callFunction("VTCompressionSessionPrepareToEncodeFrames", { returns: "i" }, session);
41
+ }
42
+ export function VTCopyRAWProcessorExtensionProperties(formatDesc, mediaExtensionPropertiesOut) {
43
+ return callFunction("VTCopyRAWProcessorExtensionProperties", { returns: "i" }, formatDesc, mediaExtensionPropertiesOut);
44
+ }
45
+ export function VTCopySupportedPropertyDictionaryForEncoder(width, height, codecType, encoderSpecification, encoderIDOut, supportedPropertiesOut) {
46
+ return callFunction("VTCopySupportedPropertyDictionaryForEncoder", { returns: "i", args: ["i", "i", "I", "@", "@", "@"] }, width, height, codecType, encoderSpecification, encoderIDOut, supportedPropertiesOut);
47
+ }
48
+ export function VTCopyVideoDecoderExtensionProperties(formatDesc, mediaExtensionPropertiesOut) {
49
+ return callFunction("VTCopyVideoDecoderExtensionProperties", { returns: "i" }, formatDesc, mediaExtensionPropertiesOut);
50
+ }
51
+ export function VTCopyVideoEncoderList(options, listOfVideoEncodersOut) {
52
+ return callFunction("VTCopyVideoEncoderList", { returns: "i" }, options, listOfVideoEncodersOut);
53
+ }
54
+ export function VTCreateCGImageFromCVPixelBuffer(pixelBuffer, options, imageOut) {
55
+ return callFunction("VTCreateCGImageFromCVPixelBuffer", { returns: "i" }, pixelBuffer, options, imageOut);
56
+ }
57
+ export function VTDecompressionSessionCanAcceptFormatDescription(session, newFormatDesc) {
58
+ return callFunction("VTDecompressionSessionCanAcceptFormatDescription", { returns: "C" }, session, newFormatDesc);
59
+ }
60
+ export function VTDecompressionSessionCopyBlackPixelBuffer(session, pixelBufferOut) {
61
+ return callFunction("VTDecompressionSessionCopyBlackPixelBuffer", { returns: "i" }, session, pixelBufferOut);
62
+ }
63
+ export function VTDecompressionSessionCreate(allocator, videoFormatDescription, videoDecoderSpecification, destinationImageBufferAttributes, outputCallback, decompressionSessionOut) {
64
+ return callFunction("VTDecompressionSessionCreate", { returns: "i" }, allocator, videoFormatDescription, videoDecoderSpecification, destinationImageBufferAttributes, outputCallback, decompressionSessionOut);
65
+ }
66
+ export function VTDecompressionSessionDecodeFrame(session, sampleBuffer, decodeFlags, sourceFrameRefCon, infoFlagsOut) {
67
+ return callFunction("VTDecompressionSessionDecodeFrame", { returns: "i", args: ["@", "@", "@", "^v", "@"] }, session, sampleBuffer, decodeFlags, sourceFrameRefCon, infoFlagsOut);
68
+ }
69
+ export function VTDecompressionSessionDecodeFrameWithMultiImageCapableOutputHandler(session, sampleBuffer, decodeFlags, infoFlagsOut, multiImageCapableOutputHandler) {
70
+ return callFunction("VTDecompressionSessionDecodeFrameWithMultiImageCapableOutputHandler", { returns: "i" }, session, sampleBuffer, decodeFlags, infoFlagsOut, multiImageCapableOutputHandler);
71
+ }
72
+ export function VTDecompressionSessionDecodeFrameWithOptions(session, sampleBuffer, decodeFlags, frameOptions, sourceFrameRefCon, infoFlagsOut) {
73
+ return callFunction("VTDecompressionSessionDecodeFrameWithOptions", { returns: "i", args: ["@", "@", "@", "@", "^v", "@"] }, session, sampleBuffer, decodeFlags, frameOptions, sourceFrameRefCon, infoFlagsOut);
74
+ }
75
+ export function VTDecompressionSessionDecodeFrameWithOptionsAndOutputHandler(session, sampleBuffer, decodeFlags, frameOptions, infoFlagsOut, outputHandler) {
76
+ return callFunction("VTDecompressionSessionDecodeFrameWithOptionsAndOutputHandler", { returns: "i" }, session, sampleBuffer, decodeFlags, frameOptions, infoFlagsOut, outputHandler);
77
+ }
78
+ export function VTDecompressionSessionDecodeFrameWithOutputHandler(session, sampleBuffer, decodeFlags, infoFlagsOut, outputHandler) {
79
+ return callFunction("VTDecompressionSessionDecodeFrameWithOutputHandler", { returns: "i" }, session, sampleBuffer, decodeFlags, infoFlagsOut, outputHandler);
80
+ }
81
+ export function VTDecompressionSessionFinishDelayedFrames(session) {
82
+ return callFunction("VTDecompressionSessionFinishDelayedFrames", { returns: "i" }, session);
83
+ }
84
+ export function VTDecompressionSessionGetTypeID() {
85
+ return callFunction("VTDecompressionSessionGetTypeID", { returns: "L" });
86
+ }
87
+ export function VTDecompressionSessionInvalidate(session) {
88
+ callFunction("VTDecompressionSessionInvalidate", undefined, session);
89
+ }
90
+ export function VTDecompressionSessionSetMultiImageCallback(decompressionSession, outputMultiImageCallback, outputMultiImageRefcon) {
91
+ return callFunction("VTDecompressionSessionSetMultiImageCallback", { returns: "i", args: ["@", "@", "^v"] }, decompressionSession, outputMultiImageCallback, outputMultiImageRefcon);
92
+ }
93
+ export function VTDecompressionSessionWaitForAsynchronousFrames(session) {
94
+ return callFunction("VTDecompressionSessionWaitForAsynchronousFrames", { returns: "i" }, session);
95
+ }
96
+ export function VTFrameSiloAddSampleBuffer(silo, sampleBuffer) {
97
+ return callFunction("VTFrameSiloAddSampleBuffer", { returns: "i" }, silo, sampleBuffer);
98
+ }
99
+ export function VTFrameSiloCallBlockForEachSampleBuffer(silo, timeRange, handler) {
100
+ return callFunction("VTFrameSiloCallBlockForEachSampleBuffer", { returns: "i", args: ["@", "{CMTimeRange}", "@"] }, silo, timeRange, handler);
101
+ }
102
+ export function VTFrameSiloCallFunctionForEachSampleBuffer(silo, timeRange, refcon, callback) {
103
+ return callFunction("VTFrameSiloCallFunctionForEachSampleBuffer", { returns: "i", args: ["@", "{CMTimeRange}", "^v", "@"] }, silo, timeRange, refcon, callback);
104
+ }
105
+ export function VTFrameSiloCreate(allocator, fileURL, timeRange, options, frameSiloOut) {
106
+ return callFunction("VTFrameSiloCreate", { returns: "i", args: ["@", "@", "{CMTimeRange}", "@", "@"] }, allocator, fileURL, timeRange, options, frameSiloOut);
107
+ }
108
+ export function VTFrameSiloGetProgressOfCurrentPass(silo, progressOut) {
109
+ return callFunction("VTFrameSiloGetProgressOfCurrentPass", { returns: "i" }, silo, progressOut);
110
+ }
111
+ export function VTFrameSiloGetTypeID() {
112
+ return callFunction("VTFrameSiloGetTypeID", { returns: "L" });
113
+ }
114
+ export function VTFrameSiloSetTimeRangesForNextPass(silo, timeRangeCount, timeRangeArray) {
115
+ return callFunction("VTFrameSiloSetTimeRangesForNextPass", { returns: "i", args: ["@", "q", "@"] }, silo, timeRangeCount, timeRangeArray);
116
+ }
117
+ export function VTHDRPerFrameMetadataGenerationSessionAttachMetadata(hdrPerFrameMetadataGenerationSession, pixelBuffer, sceneChange) {
118
+ return callFunction("VTHDRPerFrameMetadataGenerationSessionAttachMetadata", { returns: "i", args: ["@", "@", "C"] }, hdrPerFrameMetadataGenerationSession, pixelBuffer, sceneChange);
119
+ }
120
+ export function VTHDRPerFrameMetadataGenerationSessionCreate(allocator, framesPerSecond, options, hdrPerFrameMetadataGenerationSessionOut) {
121
+ return callFunction("VTHDRPerFrameMetadataGenerationSessionCreate", { returns: "i", args: ["@", "f", "@", "@"] }, allocator, framesPerSecond, options, hdrPerFrameMetadataGenerationSessionOut);
122
+ }
123
+ export function VTHDRPerFrameMetadataGenerationSessionGetTypeID() {
124
+ return callFunction("VTHDRPerFrameMetadataGenerationSessionGetTypeID", { returns: "L" });
125
+ }
126
+ export function VTIsHardwareDecodeSupported(codecType) {
127
+ return callFunction("VTIsHardwareDecodeSupported", { returns: "C", args: ["I"] }, codecType);
128
+ }
129
+ export function VTIsStereoMVHEVCDecodeSupported() {
130
+ return callFunction("VTIsStereoMVHEVCDecodeSupported", { returns: "C" });
131
+ }
132
+ export function VTIsStereoMVHEVCEncodeSupported() {
133
+ return callFunction("VTIsStereoMVHEVCEncodeSupported", { returns: "C" });
134
+ }
135
+ export function VTMotionEstimationSessionCompleteFrames(session) {
136
+ return callFunction("VTMotionEstimationSessionCompleteFrames", { returns: "i" }, session);
137
+ }
138
+ export function VTMotionEstimationSessionCopySourcePixelBufferAttributes(motionEstimationSession, attributesOut) {
139
+ return callFunction("VTMotionEstimationSessionCopySourcePixelBufferAttributes", { returns: "i" }, motionEstimationSession, attributesOut);
140
+ }
141
+ export function VTMotionEstimationSessionCreate(allocator, motionVectorProcessorSelectionOptions, width, height, motionEstimationSessionOut) {
142
+ return callFunction("VTMotionEstimationSessionCreate", { returns: "i", args: ["@", "@", "I", "I", "@"] }, allocator, motionVectorProcessorSelectionOptions, width, height, motionEstimationSessionOut);
143
+ }
144
+ export function VTMotionEstimationSessionEstimateMotionVectors(session, referenceImage, currentImage, motionEstimationFrameFlags, additionalFrameOptions, outputHandler) {
145
+ return callFunction("VTMotionEstimationSessionEstimateMotionVectors", { returns: "i" }, session, referenceImage, currentImage, motionEstimationFrameFlags, additionalFrameOptions, outputHandler);
146
+ }
147
+ export function VTMotionEstimationSessionGetTypeID() {
148
+ return callFunction("VTMotionEstimationSessionGetTypeID", { returns: "L" });
149
+ }
150
+ export function VTMotionEstimationSessionInvalidate(session) {
151
+ callFunction("VTMotionEstimationSessionInvalidate", undefined, session);
152
+ }
153
+ export function VTMultiPassStorageClose(multiPassStorage) {
154
+ return callFunction("VTMultiPassStorageClose", { returns: "i" }, multiPassStorage);
155
+ }
156
+ export function VTMultiPassStorageCreate(allocator, fileURL, timeRange, options, multiPassStorageOut) {
157
+ return callFunction("VTMultiPassStorageCreate", { returns: "i", args: ["@", "@", "{CMTimeRange}", "@", "@"] }, allocator, fileURL, timeRange, options, multiPassStorageOut);
158
+ }
159
+ export function VTMultiPassStorageGetTypeID() {
160
+ return callFunction("VTMultiPassStorageGetTypeID", { returns: "L" });
161
+ }
162
+ export function VTPixelRotationSessionCreate(allocator, pixelRotationSessionOut) {
163
+ return callFunction("VTPixelRotationSessionCreate", { returns: "i" }, allocator, pixelRotationSessionOut);
164
+ }
165
+ export function VTPixelRotationSessionGetTypeID() {
166
+ return callFunction("VTPixelRotationSessionGetTypeID", { returns: "L" });
167
+ }
168
+ export function VTPixelRotationSessionInvalidate(session) {
169
+ callFunction("VTPixelRotationSessionInvalidate", undefined, session);
170
+ }
171
+ export function VTPixelRotationSessionRotateImage(session, sourceBuffer, destinationBuffer) {
172
+ return callFunction("VTPixelRotationSessionRotateImage", { returns: "i" }, session, sourceBuffer, destinationBuffer);
173
+ }
174
+ export function VTPixelTransferSessionCreate(allocator, pixelTransferSessionOut) {
175
+ return callFunction("VTPixelTransferSessionCreate", { returns: "i" }, allocator, pixelTransferSessionOut);
176
+ }
177
+ export function VTPixelTransferSessionGetTypeID() {
178
+ return callFunction("VTPixelTransferSessionGetTypeID", { returns: "L" });
179
+ }
180
+ export function VTPixelTransferSessionInvalidate(session) {
181
+ callFunction("VTPixelTransferSessionInvalidate", undefined, session);
182
+ }
183
+ export function VTPixelTransferSessionTransferImage(session, sourceBuffer, destinationBuffer) {
184
+ return callFunction("VTPixelTransferSessionTransferImage", { returns: "i" }, session, sourceBuffer, destinationBuffer);
185
+ }
186
+ export function VTRAWProcessingSessionCompleteFrames(session) {
187
+ return callFunction("VTRAWProcessingSessionCompleteFrames", { returns: "i" }, session);
188
+ }
189
+ export function VTRAWProcessingSessionCopyProcessingParameters(session, outParameterArray) {
190
+ return callFunction("VTRAWProcessingSessionCopyProcessingParameters", { returns: "i" }, session, outParameterArray);
191
+ }
192
+ export function VTRAWProcessingSessionCreate(allocator, formatDescription, outputPixelBufferAttributes, processingSessionOptions, processingSessionOut) {
193
+ return callFunction("VTRAWProcessingSessionCreate", { returns: "i" }, allocator, formatDescription, outputPixelBufferAttributes, processingSessionOptions, processingSessionOut);
194
+ }
195
+ export function VTRAWProcessingSessionGetTypeID() {
196
+ return callFunction("VTRAWProcessingSessionGetTypeID", { returns: "L" });
197
+ }
198
+ export function VTRAWProcessingSessionInvalidate(session) {
199
+ callFunction("VTRAWProcessingSessionInvalidate", undefined, session);
200
+ }
201
+ export function VTRAWProcessingSessionProcessFrame(session, inputPixelBuffer, frameOptions, outputHandler) {
202
+ return callFunction("VTRAWProcessingSessionProcessFrame", { returns: "i" }, session, inputPixelBuffer, frameOptions, outputHandler);
203
+ }
204
+ export function VTRAWProcessingSessionSetParameterChangedHander(session, parameterChangeHandler) {
205
+ return callFunction("VTRAWProcessingSessionSetParameterChangedHander", { returns: "i" }, session, parameterChangeHandler);
206
+ }
207
+ export function VTRAWProcessingSessionSetParameterChangedHandler(session, parameterChangeHandler) {
208
+ return callFunction("VTRAWProcessingSessionSetParameterChangedHandler", { returns: "i" }, session, parameterChangeHandler);
209
+ }
210
+ export function VTRAWProcessingSessionSetProcessingParameters(session, processingParameters) {
211
+ return callFunction("VTRAWProcessingSessionSetProcessingParameters", { returns: "i" }, session, processingParameters);
212
+ }
213
+ export function VTRegisterProfessionalVideoWorkflowVideoDecoders() {
214
+ callFunction("VTRegisterProfessionalVideoWorkflowVideoDecoders");
215
+ }
216
+ export function VTRegisterProfessionalVideoWorkflowVideoEncoders() {
217
+ callFunction("VTRegisterProfessionalVideoWorkflowVideoEncoders");
218
+ }
219
+ export function VTRegisterSupplementalVideoDecoderIfAvailable(codecType) {
220
+ callFunction("VTRegisterSupplementalVideoDecoderIfAvailable", { args: ["I"] }, codecType);
221
+ }
222
+ export function VTSessionCopyProperty(session, propertyKey, allocator, propertyValueOut) {
223
+ return callFunction("VTSessionCopyProperty", { returns: "i", args: ["^", "^", "@", "^v"] }, session, propertyKey, allocator, propertyValueOut);
224
+ }
225
+ export function VTSessionCopySerializableProperties(session, allocator, dictionaryOut) {
226
+ return callFunction("VTSessionCopySerializableProperties", { returns: "i", args: ["^", "@", "@"] }, session, allocator, dictionaryOut);
227
+ }
228
+ export function VTSessionCopySupportedPropertyDictionary(session, supportedPropertyDictionaryOut) {
229
+ return callFunction("VTSessionCopySupportedPropertyDictionary", { returns: "i", args: ["^", "@"] }, session, supportedPropertyDictionaryOut);
230
+ }
231
+ export function VTSessionSetProperties(session, propertyDictionary) {
232
+ return callFunction("VTSessionSetProperties", { returns: "i", args: ["^", "@"] }, session, propertyDictionary);
233
+ }
234
+ export function VTSessionSetProperty(session, propertyKey, propertyValue) {
235
+ return callFunction("VTSessionSetProperty", { returns: "i", args: ["^", "^", "^"] }, session, propertyKey, propertyValue);
236
+ }
@@ -0,0 +1,16 @@
1
+ import type { NobjcObject } from "objc-js";
2
+ import type { CGPoint } from "../structs/CGPoint.js";
3
+ import type { CGRect } from "../structs/CGRect.js";
4
+ import type { VNElementType } from "./VNElementType.js";
5
+ export declare function VNElementTypeSize(elementType: VNElementType): number;
6
+ export declare function VNImagePointForFaceLandmarkPoint(faceLandmarkPoint: NobjcObject, faceBoundingBox: CGRect, imageWidth: number, imageHeight: number): CGPoint;
7
+ export declare function VNImagePointForNormalizedPoint(normalizedPoint: CGPoint, imageWidth: number, imageHeight: number): CGPoint;
8
+ export declare function VNImagePointForNormalizedPointUsingRegionOfInterest(normalizedPoint: CGPoint, imageWidth: number, imageHeight: number, roi: CGRect): CGPoint;
9
+ export declare function VNImageRectForNormalizedRect(normalizedRect: CGRect, imageWidth: number, imageHeight: number): CGRect;
10
+ export declare function VNImageRectForNormalizedRectUsingRegionOfInterest(normalizedRect: CGRect, imageWidth: number, imageHeight: number, roi: CGRect): CGRect;
11
+ export declare function VNNormalizedFaceBoundingBoxPointForLandmarkPoint(faceLandmarkPoint: NobjcObject, faceBoundingBox: CGRect, imageWidth: number, imageHeight: number): CGPoint;
12
+ export declare function VNNormalizedPointForImagePoint(imagePoint: CGPoint, imageWidth: number, imageHeight: number): CGPoint;
13
+ export declare function VNNormalizedPointForImagePointUsingRegionOfInterest(imagePoint: CGPoint, imageWidth: number, imageHeight: number, roi: CGRect): CGPoint;
14
+ export declare function VNNormalizedRectForImageRect(imageRect: CGRect, imageWidth: number, imageHeight: number): CGRect;
15
+ export declare function VNNormalizedRectForImageRectUsingRegionOfInterest(imageRect: CGRect, imageWidth: number, imageHeight: number, roi: CGRect): CGRect;
16
+ export declare function VNNormalizedRectIsIdentityRect(normalizedRect: CGRect): boolean;
@@ -0,0 +1,38 @@
1
+ // AUTO-GENERATED by objcjs-types generator — DO NOT EDIT
2
+ import { callFunction } from "objc-js";
3
+ export function VNElementTypeSize(elementType) {
4
+ return callFunction("VNElementTypeSize", { returns: "Q", args: ["q"] }, elementType);
5
+ }
6
+ export function VNImagePointForFaceLandmarkPoint(faceLandmarkPoint, faceBoundingBox, imageWidth, imageHeight) {
7
+ return callFunction("VNImagePointForFaceLandmarkPoint", { returns: "{CGPoint}", args: ["@", "{CGRect}", "Q", "Q"] }, faceLandmarkPoint, faceBoundingBox, imageWidth, imageHeight);
8
+ }
9
+ export function VNImagePointForNormalizedPoint(normalizedPoint, imageWidth, imageHeight) {
10
+ return callFunction("VNImagePointForNormalizedPoint", { returns: "{CGPoint}", args: ["{CGPoint}", "Q", "Q"] }, normalizedPoint, imageWidth, imageHeight);
11
+ }
12
+ export function VNImagePointForNormalizedPointUsingRegionOfInterest(normalizedPoint, imageWidth, imageHeight, roi) {
13
+ return callFunction("VNImagePointForNormalizedPointUsingRegionOfInterest", { returns: "{CGPoint}", args: ["{CGPoint}", "Q", "Q", "{CGRect}"] }, normalizedPoint, imageWidth, imageHeight, roi);
14
+ }
15
+ export function VNImageRectForNormalizedRect(normalizedRect, imageWidth, imageHeight) {
16
+ return callFunction("VNImageRectForNormalizedRect", { returns: "{CGRect}", args: ["{CGRect}", "Q", "Q"] }, normalizedRect, imageWidth, imageHeight);
17
+ }
18
+ export function VNImageRectForNormalizedRectUsingRegionOfInterest(normalizedRect, imageWidth, imageHeight, roi) {
19
+ return callFunction("VNImageRectForNormalizedRectUsingRegionOfInterest", { returns: "{CGRect}", args: ["{CGRect}", "Q", "Q", "{CGRect}"] }, normalizedRect, imageWidth, imageHeight, roi);
20
+ }
21
+ export function VNNormalizedFaceBoundingBoxPointForLandmarkPoint(faceLandmarkPoint, faceBoundingBox, imageWidth, imageHeight) {
22
+ return callFunction("VNNormalizedFaceBoundingBoxPointForLandmarkPoint", { returns: "{CGPoint}", args: ["@", "{CGRect}", "Q", "Q"] }, faceLandmarkPoint, faceBoundingBox, imageWidth, imageHeight);
23
+ }
24
+ export function VNNormalizedPointForImagePoint(imagePoint, imageWidth, imageHeight) {
25
+ return callFunction("VNNormalizedPointForImagePoint", { returns: "{CGPoint}", args: ["{CGPoint}", "Q", "Q"] }, imagePoint, imageWidth, imageHeight);
26
+ }
27
+ export function VNNormalizedPointForImagePointUsingRegionOfInterest(imagePoint, imageWidth, imageHeight, roi) {
28
+ return callFunction("VNNormalizedPointForImagePointUsingRegionOfInterest", { returns: "{CGPoint}", args: ["{CGPoint}", "Q", "Q", "{CGRect}"] }, imagePoint, imageWidth, imageHeight, roi);
29
+ }
30
+ export function VNNormalizedRectForImageRect(imageRect, imageWidth, imageHeight) {
31
+ return callFunction("VNNormalizedRectForImageRect", { returns: "{CGRect}", args: ["{CGRect}", "Q", "Q"] }, imageRect, imageWidth, imageHeight);
32
+ }
33
+ export function VNNormalizedRectForImageRectUsingRegionOfInterest(imageRect, imageWidth, imageHeight, roi) {
34
+ return callFunction("VNNormalizedRectForImageRectUsingRegionOfInterest", { returns: "{CGRect}", args: ["{CGRect}", "Q", "Q", "{CGRect}"] }, imageRect, imageWidth, imageHeight, roi);
35
+ }
36
+ export function VNNormalizedRectIsIdentityRect(normalizedRect) {
37
+ return callFunction("VNNormalizedRectIsIdentityRect", { returns: "B", args: ["{CGRect}"] }, normalizedRect);
38
+ }