peachsim 0.1.1659 → 0.1.1667
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.
- package/README.md +7 -0
- package/cli/bridge-flow-runner.ts +2 -2
- package/cli/commands/box.ts +2 -0
- package/cli/commands/control.ts +56 -17
- package/cli/commands/debug.ts +100 -9
- package/cli/commands/flow.ts +2 -2
- package/cli/commands/inspect/settle.ts +4 -2
- package/cli/commands/inspect/settling.ts +17 -14
- package/cli/commands/platform.ts +3 -0
- package/cli/current-sim.ts +21 -1
- package/cli/dev-build-freshness.ts +36 -2
- package/cli/maestro-compare.ts +44 -14
- package/cli/main.ts +3 -0
- package/cli/material-symbol-fonts.ts +3 -100
- package/cli/output-redaction.ts +21 -6
- package/cli/parent-pid.ts +2 -2
- package/cli/ws-bridge.ts +19 -1
- package/detox/attempt-events.cjs +48 -18
- package/detox/index.ts +0 -1
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +2156 -25785
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +85 -37
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +1747 -25394
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +2195 -25834
- package/dist-lib/host/fetch-proxy-handler.cjs +7 -7
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +190 -45
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +81 -9
- package/dist-lib/native-app-identity-project.cjs +81 -9
- package/dist-lib/native-app-identity-project.mjs +81 -9
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +26 -24
- package/dist-lib/public-origins-lib.json +79 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +18 -15
- package/dist-lib/sdk.mjs +18 -15
- package/dist-lib/skills.cjs +2995 -26434
- package/dist-lib/swift-compile.cjs +985 -24728
- package/dist-lib/swift-compile.mjs +914 -24657
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +28 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +1780 -25372
- package/dist-lib/vite.cjs +73 -21
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-gesture-handler.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/demo/demo-bundle-platform.d.ts +29 -0
- package/dist-types/packages/peach-engine/src/engine/app-font-registry.d.ts +13 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +17 -0
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +73 -0
- package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +1 -2
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +19 -3
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -4
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/ios/aux-shell-animated-sources.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +68 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/nativeSyncReplyContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-scene-schema.d.ts +10 -2
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/accessibilityBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/androidDateTimePickerBridgeContract.d.ts +41 -0
- package/dist-types/packages/peach-globals/src/appLifecycleBridgeContract.d.ts +22 -0
- package/dist-types/packages/peach-globals/src/audioBridgeContract.d.ts +33 -0
- package/dist-types/packages/peach-globals/src/bridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +94 -0
- package/dist-types/packages/peach-globals/src/captureBridgeContract.d.ts +36 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +27 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +31 -0
- package/dist-types/packages/peach-globals/src/debugBridgeContract.d.ts +27 -0
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +29 -0
- package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +200 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +462 -0
- package/dist-types/packages/peach-globals/src/hostStorageBridgeContract.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/imagePickerBridgeContract.d.ts +47 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +47 -3334
- package/dist-types/packages/peach-globals/src/interactionBridgeContract.d.ts +21 -0
- package/dist-types/packages/peach-globals/src/keyboardBridgeContract.d.ts +44 -0
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +77 -0
- package/dist-types/packages/peach-globals/src/nativeViewContract.d.ts +28 -0
- package/dist-types/packages/peach-globals/src/navigationBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +664 -0
- package/dist-types/packages/peach-globals/src/performanceBridgeContract.d.ts +100 -0
- package/dist-types/packages/peach-globals/src/permissionsBridgeContract.d.ts +152 -0
- package/dist-types/packages/peach-globals/src/photoLibraryBridgeContract.d.ts +36 -0
- package/dist-types/packages/peach-globals/src/portalBridgeContract.d.ts +9 -0
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +131 -0
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +125 -0
- package/dist-types/packages/peach-globals/src/sceneStreamBridgeContract.d.ts +37 -0
- package/dist-types/packages/peach-globals/src/settingsBridgeContract.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/shareSheetBridgeContract.d.ts +14 -0
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +82 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +28 -0
- package/dist-types/packages/peach-globals/src/speechSynthesisBridgeContract.d.ts +25 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +278 -0
- package/dist-types/packages/peach-globals/src/timelineBridgeContract.d.ts +58 -0
- package/dist-types/packages/peach-globals/src/videoBridgeContract.d.ts +80 -0
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +331 -0
- package/dist-types/packages/peach-globals/src/windowBridgeContract.d.ts +5 -0
- package/dist-types/packages/peach-kit/src/ui/popover-placement.d.ts +3 -5
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h +20 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsynchronousKeyValueLoading.h +15 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataFormat.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +16 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTimedMetadataGroup.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Conversion.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Convolution.h +11 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Geometry.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h +307 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Utilities.h +174 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h +21 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedResultsController.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h +10 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +185 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +316 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTimeRange.h +8 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h +12 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/UTCoreTypes.h +1276 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/UTType.h +644 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h +20 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +1441 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h +106 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h +429 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h +665 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h +2504 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h +634 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h +22 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h +18 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/MobileCoreServices.h +9 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +14 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h +9 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h +2 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecBase.h +3 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +3 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAppearance.h +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h +2 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +817 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/usr/include/Availability.h +630 -0
- package/sdk/ios/usr/include/AvailabilityInternal.h +556 -0
- package/sdk/ios/usr/include/AvailabilityInternalLegacy.h +4346 -0
- package/sdk/ios/usr/include/AvailabilityVersions.h +547 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonDigest.h +130 -0
- package/sdk/ios/usr/include/MacTypes.h +3 -0
- package/sdk/ios/usr/include/TargetConditionals.h +14 -0
- package/sdk/ios/usr/include/__xlocale.h +41 -0
- package/sdk/ios/usr/include/_bounds.h +67 -0
- package/sdk/ios/usr/include/_ctermid.h +42 -0
- package/sdk/ios/usr/include/_mb_cur_max.h +39 -0
- package/sdk/ios/usr/include/_printf.h +38 -0
- package/sdk/ios/usr/include/_stdio.h +510 -0
- package/sdk/ios/usr/include/_types/_intmax_t.h +40 -0
- package/sdk/ios/usr/include/_types/_locale_t.h +38 -0
- package/sdk/ios/usr/include/_types/_uint16_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint32_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint64_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint8_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uintmax_t.h +40 -0
- package/sdk/ios/usr/include/_types.h +72 -0
- package/sdk/ios/usr/include/arm/_endian.h +105 -0
- package/sdk/ios/usr/include/arm/_mcontext.h +95 -0
- package/sdk/ios/usr/include/arm/_param.h +25 -0
- package/sdk/ios/usr/include/arm/_types.h +125 -0
- package/sdk/ios/usr/include/arm/endian.h +65 -0
- package/sdk/ios/usr/include/arm/signal.h +22 -0
- package/sdk/ios/usr/include/arm/types.h +110 -0
- package/sdk/ios/usr/include/asl.h +160 -0
- package/sdk/ios/usr/include/assert.h +14 -0
- package/sdk/ios/usr/include/dirent.h +224 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +114 -0
- package/sdk/ios/usr/include/dlfcn.h +16 -0
- package/sdk/ios/usr/include/errno.h +24 -0
- package/sdk/ios/usr/include/execinfo.h +11 -0
- package/sdk/ios/usr/include/fcntl.h +23 -0
- package/sdk/ios/usr/include/i386/_endian.h +105 -0
- package/sdk/ios/usr/include/i386/_mcontext.h +216 -0
- package/sdk/ios/usr/include/i386/_param.h +49 -0
- package/sdk/ios/usr/include/i386/_types.h +149 -0
- package/sdk/ios/usr/include/i386/endian.h +89 -0
- package/sdk/ios/usr/include/i386/signal.h +47 -0
- package/sdk/ios/usr/include/libkern/OSAtomic.h +51 -0
- package/sdk/ios/usr/include/libkern/OSAtomicDeprecated.h +1267 -0
- package/sdk/ios/usr/include/libkern/OSAtomicQueue.h +115 -0
- package/sdk/ios/usr/include/libkern/OSSpinLockDeprecated.h +212 -0
- package/sdk/ios/usr/include/libkern/_OSByteOrder.h +125 -0
- package/sdk/ios/usr/include/libkern/arm/_OSByteOrder.h +99 -0
- package/sdk/ios/usr/include/libkern/i386/_OSByteOrder.h +110 -0
- package/sdk/ios/usr/include/limits.h +4 -0
- package/sdk/ios/usr/include/mach/arm/_structs.h +741 -0
- package/sdk/ios/usr/include/mach/boolean.h +4 -0
- package/sdk/ios/usr/include/mach/exception_types.h +40 -0
- package/sdk/ios/usr/include/mach/host_info.h +200 -0
- package/sdk/ios/usr/include/mach/i386/_structs.h +1316 -0
- package/sdk/ios/usr/include/mach/kern_return.h +61 -0
- package/sdk/ios/usr/include/mach/mach.h +16 -0
- package/sdk/ios/usr/include/mach/mach_error.h +10 -0
- package/sdk/ios/usr/include/mach/mach_host.h +18 -0
- package/sdk/ios/usr/include/mach/mach_init.h +15 -0
- package/sdk/ios/usr/include/mach/mach_port.h +11 -0
- package/sdk/ios/usr/include/mach/mach_time.h +14 -0
- package/sdk/ios/usr/include/mach/mach_types.h +20 -0
- package/sdk/ios/usr/include/mach/machine/_structs.h +40 -0
- package/sdk/ios/usr/include/mach/machine.h +144 -0
- package/sdk/ios/usr/include/mach/task.h +14 -0
- package/sdk/ios/usr/include/mach/task_info.h +23 -0
- package/sdk/ios/usr/include/mach/task_policy.h +29 -0
- package/sdk/ios/usr/include/mach/thread_act.h +12 -0
- package/sdk/ios/usr/include/mach/thread_info.h +32 -0
- package/sdk/ios/usr/include/mach/time_value.h +4 -0
- package/sdk/ios/usr/include/mach/vm_prot.h +8 -0
- package/sdk/ios/usr/include/mach/vm_region.h +43 -0
- package/sdk/ios/usr/include/mach/vm_statistics.h +491 -0
- package/sdk/ios/usr/include/mach/vm_types.h +8 -0
- package/sdk/ios/usr/include/mach-o/arch.h +21 -0
- package/sdk/ios/usr/include/mach-o/dyld.h +16 -0
- package/sdk/ios/usr/include/mach-o/dyld_images.h +71 -0
- package/sdk/ios/usr/include/mach-o/getsect.h +17 -0
- package/sdk/ios/usr/include/mach-o/loader.h +158 -0
- package/sdk/ios/usr/include/mach-o/nlist.h +38 -0
- package/sdk/ios/usr/include/mach-o/stab.h +33 -0
- package/sdk/ios/usr/include/mach-o/utils.h +10 -0
- package/sdk/ios/usr/include/machine/_endian.h +42 -0
- package/sdk/ios/usr/include/machine/_mcontext.h +39 -0
- package/sdk/ios/usr/include/machine/_param.h +39 -0
- package/sdk/ios/usr/include/machine/_types.h +39 -0
- package/sdk/ios/usr/include/machine/endian.h +42 -0
- package/sdk/ios/usr/include/machine/signal.h +39 -0
- package/sdk/ios/usr/include/machine/types.h +42 -0
- package/sdk/ios/usr/include/math.h +5 -0
- package/sdk/ios/usr/include/module.modulemap +4 -0
- package/sdk/ios/usr/include/net/if.h +20 -0
- package/sdk/ios/usr/include/net/if_dl.h +10 -0
- package/sdk/ios/usr/include/net/if_var.h +15 -0
- package/sdk/ios/usr/include/net/net_kev.h +100 -0
- package/sdk/ios/usr/include/netdb.h +5 -0
- package/sdk/ios/usr/include/netinet/in.h +670 -0
- package/sdk/ios/usr/include/netinet6/in6.h +676 -0
- package/sdk/ios/usr/include/notify.h +45 -0
- package/sdk/ios/usr/include/notify_keys.h +17 -0
- package/sdk/ios/usr/include/objc/NSObject.h +79 -0
- package/sdk/ios/usr/include/os/availability.h +140 -0
- package/sdk/ios/usr/include/os/lock.h +24 -0
- package/sdk/ios/usr/include/os/log.h +77 -0
- package/sdk/ios/usr/include/os/object.h +13 -0
- package/sdk/ios/usr/include/peach/darwin.h +6 -0
- package/sdk/ios/usr/include/peach/netdb.h +316 -0
- package/sdk/ios/usr/include/peach/pthread.h +19 -0
- package/sdk/ios/usr/include/pthread.h +4 -0
- package/sdk/ios/usr/include/secure/_common.h +45 -0
- package/sdk/ios/usr/include/secure/_stdio.h +130 -0
- package/sdk/ios/usr/include/signal.h +132 -0
- package/sdk/ios/usr/include/stdint.h +205 -0
- package/sdk/ios/usr/include/stdio.h +65 -0
- package/sdk/ios/usr/include/stdlib.h +17 -0
- package/sdk/ios/usr/include/string.h +8 -0
- package/sdk/ios/usr/include/sys/__endian.h +108 -0
- package/sdk/ios/usr/include/sys/_endian.h +152 -0
- package/sdk/ios/usr/include/sys/_posix_availability.h +73 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_attr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_types.h +120 -0
- package/sdk/ios/usr/include/sys/_symbol_aliasing.h +1093 -0
- package/sdk/ios/usr/include/sys/_types/_errno_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_filesec_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_gid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_in_addr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_in_port_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ino_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_int16_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int32_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int64_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int8_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_intptr_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_iovec_t.h +35 -0
- package/sdk/ios/usr/include/sys/_types/_mode_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_null.h +54 -0
- package/sdk/ios/usr/include/sys/_types/_o_dsync.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_o_sync.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_off_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_pid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ptrdiff_t.h +56 -0
- package/sdk/ios/usr/include/sys/_types/_s_ifmt.h +74 -0
- package/sdk/ios/usr/include/sys/_types/_sa_family_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_seek_set.h +51 -0
- package/sdk/ios/usr/include/sys/_types/_sigaltstack.h +50 -0
- package/sdk/ios/usr/include/sys/_types/_sigset_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_size_t.h +56 -0
- package/sdk/ios/usr/include/sys/_types/_socklen_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ssize_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_timespec.h +38 -0
- package/sdk/ios/usr/include/sys/_types/_timeval32.h +3 -0
- package/sdk/ios/usr/include/sys/_types/_u_int16_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int32_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int64_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int8_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_ucontext.h +59 -0
- package/sdk/ios/usr/include/sys/_types/_uid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_uintptr_t.h +37 -0
- package/sdk/ios/usr/include/sys/_types/_va_list.h +49 -0
- package/sdk/ios/usr/include/sys/_types/_wchar_t.h +59 -0
- package/sdk/ios/usr/include/sys/_types.h +103 -0
- package/sdk/ios/usr/include/sys/appleapiopts.h +61 -0
- package/sdk/ios/usr/include/sys/cdefs.h +341 -0
- package/sdk/ios/usr/include/sys/constrained_ctypes.h +622 -0
- package/sdk/ios/usr/include/sys/dirent.h +141 -0
- package/sdk/ios/usr/include/sys/errno.h +271 -0
- package/sdk/ios/usr/include/sys/fcntl.h +649 -0
- package/sdk/ios/usr/include/sys/mman.h +273 -0
- package/sdk/ios/usr/include/sys/proc.h +65 -0
- package/sdk/ios/usr/include/sys/qos.h +61 -0
- package/sdk/ios/usr/include/sys/signal.h +394 -0
- package/sdk/ios/usr/include/sys/socket.h +752 -0
- package/sdk/ios/usr/include/sys/stdio.h +61 -0
- package/sdk/ios/usr/include/sys/sysctl.h +74 -0
- package/sdk/ios/usr/include/sys/syslimits.h +11 -0
- package/sdk/ios/usr/include/sys/time.h +5 -0
- package/sdk/ios/usr/include/sys/types.h +21 -0
- package/sdk/ios/usr/include/sys/ucontext.h +41 -0
- package/sdk/ios/usr/include/sys/xattr.h +50 -0
- package/sdk/ios/usr/include/time.h +2 -0
- package/sdk/ios/usr/include/unistd.h +3 -0
- package/sdk/ios/usr/include/uuid/uuid.h +19 -0
- package/sdk/ios/usr/include/xlocale/_stdio.h +85 -0
- package/sdk/ios/usr/lib/swift/CoreGraphics.swiftmodule/arm64-apple-ios-simulator.swiftinterface +8 -0
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +51 -0
- package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +20 -0
- package/sdk/ios/wasm/include/dlfcn.h +3 -0
- package/sdk/ios/wasm/include/netdb.h +4 -0
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/stdlib.h +3 -0
- package/sdk/ios/wasm/include/string.h +3 -0
- package/sdk/ios/wasm/include/sys/socket.h +7 -0
- package/sdk/ios/wasm/include/sys/types.h +4 -0
- package/sdk/ios/wasm/include/sys/ucontext.h +38 -0
- package/src/cli-runtime.ts +5 -5
- package/src/conformance-comparison-contract.ts +146 -0
- package/src/conformance-pixel-comparison.ts +327 -0
- package/src/device-catalog.ts +12 -3
- package/src/material-symbol-fonts.ts +107 -0
- package/src/stub-pattern-matcher.ts +4 -0
- package/src/swift-compile.ts +517 -189
- package/src/swift-compiler-digest.ts +6 -2
- package/src/swift-distribution.ts +2 -1
- package/src/swift-host.ts +26 -3
- package/src/swift-objc-compile.ts +72 -97
- package/src/swift-objc-import.ts +47 -11
- package/src/swift-objc-metadata.ts +54 -7
- package/src/swift-objc-sdk-tree.ts +17 -0
- package/src/swift-objc-sdk.ts +27 -24178
- package/src/swift-objc-standin.ts +4 -2
- package/src/swift-standins.ts +2 -2
- package/src/swift-toolchain.ts +36 -0
- package/src/swift-vite-lifetime.ts +42 -0
- package/src/swiftContract.ts +54 -0
- package/src/vite-plugin-one.ts +36 -15
- package/src/vite-plugin-swift.ts +21 -2
- package/src/xcode-header-search.ts +114 -0
- package/src/xcode-project.ts +103 -9
|
@@ -0,0 +1,634 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ImageIO - CGImageSource.h
|
|
3
|
+
* Copyright (c) 2004-2016 Apple Inc. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
#ifndef CGIMAGESOURCE_H_
|
|
8
|
+
#define CGIMAGESOURCE_H_
|
|
9
|
+
|
|
10
|
+
#include <ImageIO/ImageIOBase.h>
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* An opaque type that you use to read image data from a URL, data object, or data consumer.
|
|
14
|
+
*
|
|
15
|
+
* Use a ``CGImageSource`` type to read data efficiently for most image file formats. The image source object manages the data buffers needed to load the image data and performs any operations on that data to turn it into a usable image. For example, it decompresses data stored in a compressed format. You can also use an image source to fetch or create thumbnail images and access metadata stored with the image.
|
|
16
|
+
*
|
|
17
|
+
* Create an image source object from a <doc://com.apple.documentation/documentation/corefoundation/cfurl>, <doc://com.apple.documentation/documentation/corefoundation/cfdata>, or <doc://com.apple.documentation/documentation/coregraphics/cgdataprovider> data type. The image source object reads data from the specified type and extracts the image information for you.
|
|
18
|
+
*
|
|
19
|
+
* For more information, see [Image I/O Programming Guide](https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/ImageIOGuide/imageio_intro/ikpg_intro.html#//apple_ref/doc/uid/TP40005462).
|
|
20
|
+
*/
|
|
21
|
+
typedef struct IIO_BRIDGED_TYPE(id) CGImageSource * CGImageSourceRef;
|
|
22
|
+
|
|
23
|
+
#include <CoreGraphics/CoreGraphics.h>
|
|
24
|
+
#include <ImageIO/CGImageMetadata.h>
|
|
25
|
+
|
|
26
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
27
|
+
|
|
28
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The set of status values for images and image sources.
|
|
32
|
+
*
|
|
33
|
+
* The ``CGImageSourceGetStatus(_:)`` and ``CGImageSourceGetStatusAtIndex(_:_:)`` functions return these values.
|
|
34
|
+
*/
|
|
35
|
+
typedef CF_ENUM(int32_t, CGImageSourceStatus) {
|
|
36
|
+
/**
|
|
37
|
+
* The end of the file occurred unexpectedly.
|
|
38
|
+
*/
|
|
39
|
+
kCGImageStatusUnexpectedEOF = -5,
|
|
40
|
+
/**
|
|
41
|
+
* The data is not valid.
|
|
42
|
+
*/
|
|
43
|
+
kCGImageStatusInvalidData = -4,
|
|
44
|
+
/**
|
|
45
|
+
* The image is an unknown type.
|
|
46
|
+
*/
|
|
47
|
+
kCGImageStatusUnknownType = -3,
|
|
48
|
+
/**
|
|
49
|
+
* The image source is reading the header.
|
|
50
|
+
*/
|
|
51
|
+
kCGImageStatusReadingHeader = -2,
|
|
52
|
+
/**
|
|
53
|
+
* The operation is not complete
|
|
54
|
+
*/
|
|
55
|
+
kCGImageStatusIncomplete = -1,
|
|
56
|
+
/**
|
|
57
|
+
* The operation is complete.
|
|
58
|
+
*/
|
|
59
|
+
kCGImageStatusComplete = 0
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** Keys for the options dictionary when creating a CGImageSourceRef. **/
|
|
63
|
+
|
|
64
|
+
/* Specifies the "best guess" of the type identifier for the format of the
|
|
65
|
+
* image source file. If specified, the value of this key must be a
|
|
66
|
+
* CFStringRef. For more information about type identifiers, see "UTType.h"
|
|
67
|
+
* in the Application Services framework. */
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The uniform type identifier that represents your best guess for the image's type.
|
|
71
|
+
*
|
|
72
|
+
* The value of this key is a <doc://com.apple.documentation/documentation/corefoundation/cfstring> object. Add this key to the options dictionary when you create a ``CGImageSource`` object.
|
|
73
|
+
*/
|
|
74
|
+
extern const CFStringRef kCGImageSourceTypeIdentifierHint __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Option key for restricting which image formats can be decoded.
|
|
78
|
+
*
|
|
79
|
+
* The value is a <doc://com.apple.documentation/documentation/corefoundation/cfarray> containing <doc://com.apple.documentation/documentation/corefoundation/cfstring> Uniform Type Identifiers (UTIs)
|
|
80
|
+
* of allowed image formats. When specified, ImageIO will only decode images
|
|
81
|
+
* whose format matches one of the entries in the allow list. If no matching reader
|
|
82
|
+
* is found, decoding fails.
|
|
83
|
+
*
|
|
84
|
+
* Unknown format identifiers are ignored.
|
|
85
|
+
* If not specified, all supported ImageIO formats are allowed (default behavior).
|
|
86
|
+
* If process-wide format restrictions were set via ``CGImageSourceSetAllowableTypes``,
|
|
87
|
+
* only formats allowed by both mechanisms are permitted.
|
|
88
|
+
*
|
|
89
|
+
* See also <doc://com.apple.documentation/documentation/uniformtypeidentifiers/system-declared-uniform-type-identifiers>.
|
|
90
|
+
*
|
|
91
|
+
* ## Example
|
|
92
|
+
* @TabNavigator {
|
|
93
|
+
* @Tab("Swift") {
|
|
94
|
+
* ```swift
|
|
95
|
+
* let allowedTypes = ["public.jpeg" as CFString, "public.png" as CFString]
|
|
96
|
+
* let options = [
|
|
97
|
+
* kCGImageSourceAllowableTypes: allowedTypes
|
|
98
|
+
* ] as CFDictionary
|
|
99
|
+
* ```
|
|
100
|
+
* }
|
|
101
|
+
* @Tab("Objective-C") {
|
|
102
|
+
* ```objc
|
|
103
|
+
* NSArray *allowedTypes = @[@"public.jpeg", @"public.png"];
|
|
104
|
+
* NSDictionary *options = @{
|
|
105
|
+
* (id)kCGImageSourceAllowableTypes: allowedTypes
|
|
106
|
+
* };
|
|
107
|
+
* ```
|
|
108
|
+
* }
|
|
109
|
+
* }
|
|
110
|
+
*/
|
|
111
|
+
extern const CFStringRef kCGImageSourceAllowableTypes __attribute__((availability(macos,introduced=27.0), availability(ios,introduced=27.0), availability(tvos,introduced=27.0), availability(watchos,introduced=27.0)));
|
|
112
|
+
|
|
113
|
+
/** Keys for the options dictionary of "CGImageSourceCopyPropertiesAtIndex"
|
|
114
|
+
** and "CGImageSourceCreateImageAtIndex". **/
|
|
115
|
+
|
|
116
|
+
/* Specifies whether the image should be cached in a decoded form. The
|
|
117
|
+
* value of this key must be a CFBooleanRef.
|
|
118
|
+
* kCFBooleanFalse indicates no caching, kCFBooleanTrue indicates caching.
|
|
119
|
+
* For 64-bit architectures, the default is kCFBooleanTrue, for 32-bit the default is kCFBooleanFalse.
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* A Boolean value that indicates whether to cache the decoded image.
|
|
124
|
+
*
|
|
125
|
+
* The value of this key is a <doc://com.apple.documentation/documentation/corefoundation/cfboolean>. The default value is <doc://com.apple.documentation/documentation/corefoundation/kcfbooleantrue> for 64-bit architectures, and <doc://com.apple.documentation/documentation/corefoundation/kcfbooleanfalse> for 32-bit architectures.
|
|
126
|
+
*
|
|
127
|
+
* Include this key in the options dictionary you pass to the functions ``CGImageSourceCopyPropertiesAtIndex(_:_:_:)`` and ``CGImageSourceCreateImageAtIndex(_:_:_:)``.
|
|
128
|
+
*/
|
|
129
|
+
extern const CFStringRef kCGImageSourceShouldCache __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
130
|
+
|
|
131
|
+
/* Specifies whether image decoding and caching should happen at image creation time.
|
|
132
|
+
* The value of this key must be a CFBooleanRef. The default value is kCFBooleanFalse (image decoding will
|
|
133
|
+
* happen at rendering time).
|
|
134
|
+
*/
|
|
135
|
+
/**
|
|
136
|
+
* A Boolean value that indicates whether image decoding and caching happens at image creation time.
|
|
137
|
+
*
|
|
138
|
+
* The value of this key is a <doc://com.apple.documentation/documentation/corefoundation/cfboolean>. The default value is <doc://com.apple.documentation/documentation/corefoundation/kcfbooleanfalse>, which causes decoding and caching to happen only when you render the image.
|
|
139
|
+
*
|
|
140
|
+
* Include this key in the options dictionary you pass to the functions ``CGImageSourceCopyPropertiesAtIndex(_:_:_:)`` and ``CGImageSourceCreateImageAtIndex(_:_:_:)``.
|
|
141
|
+
*/
|
|
142
|
+
extern const CFStringRef kCGImageSourceShouldCacheImmediately __attribute__((availability(macos,introduced=10.9), availability(ios,introduced=7.0)));
|
|
143
|
+
|
|
144
|
+
/* Specifies whether the image should be returned as a floating
|
|
145
|
+
* point CGImageRef if supported by the file format. Extended
|
|
146
|
+
* range floating point CGImageRef may require additional
|
|
147
|
+
* processing to render pleasingly. The value of this key must
|
|
148
|
+
* be a CFBooleanRef; the default value is kCFBooleanFalse. */
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* A Boolean that indicates whether to use floating-point values in returned images.
|
|
152
|
+
*
|
|
153
|
+
* The value of this key is a <doc://com.apple.documentation/documentation/corefoundation/cfboolean>. The default value is <doc://com.apple.documentation/documentation/corefoundation/kcfbooleanfalse>, which tells the image source not to use floating-point values.
|
|
154
|
+
*
|
|
155
|
+
* If the image format supports floating-point values, this key tells the image source to format <doc://com.apple.documentation/documentation/coregraphics/cgimage> types using those values. The use of extended-range floating-point values may require additional processing to render in a pleasing manner.
|
|
156
|
+
*/
|
|
157
|
+
extern const CFStringRef kCGImageSourceShouldAllowFloat __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
158
|
+
|
|
159
|
+
/* A Boolean value that indicates whether to prioritize image quality over
|
|
160
|
+
* decode speed. Currently, image sources support this option only for camera
|
|
161
|
+
* RAW images. The value of this key must be a CFBooleanRef; the default value
|
|
162
|
+
* is kCFBooleanFalse. */
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* A Boolean value that indicates whether to prioritize image quality over decode speed.
|
|
166
|
+
*
|
|
167
|
+
* When you set this key to <doc://com.apple.documentation/documentation/corefoundation/kcfbooleantrue>, the image source decodes the full-size image using the highest-quality decode method available for the file. The value of this key is a <doc://com.apple.documentation/documentation/corefoundation/cfboolean>. The default value is <doc://com.apple.documentation/documentation/corefoundation/kcfbooleanfalse>.
|
|
168
|
+
*
|
|
169
|
+
* Currently, image sources support this option only for camera RAW images. This key is a no-op when it is absent or <doc://com.apple.documentation/documentation/corefoundation/kcfbooleanfalse>, when the image isn't a camera RAW format, or when no higher-quality decode method is available, so it is always safe to set.
|
|
170
|
+
*
|
|
171
|
+
* Include this key in the options dictionary you pass to the functions ``CGImageSourceCopyPropertiesAtIndex(_:_:_:)`` and ``CGImageSourceCreateImageAtIndex(_:_:_:)``.
|
|
172
|
+
*
|
|
173
|
+
* ## Example
|
|
174
|
+
* @TabNavigator {
|
|
175
|
+
* @Tab("Swift") {
|
|
176
|
+
* ```swift
|
|
177
|
+
* let options = [
|
|
178
|
+
* kCGImageSourcePrioritizeQuality: true
|
|
179
|
+
* ] as CFDictionary
|
|
180
|
+
* let image = CGImageSourceCreateImageAtIndex(source, 0, options)
|
|
181
|
+
* ```
|
|
182
|
+
* }
|
|
183
|
+
* @Tab("Objective-C") {
|
|
184
|
+
* ```objc
|
|
185
|
+
* NSDictionary *options = @{
|
|
186
|
+
* (id)kCGImageSourcePrioritizeQuality: @YES
|
|
187
|
+
* };
|
|
188
|
+
* CGImageRef image = CGImageSourceCreateImageAtIndex(source, 0, (CFDictionaryRef)options);
|
|
189
|
+
* ```
|
|
190
|
+
* }
|
|
191
|
+
* }
|
|
192
|
+
*/
|
|
193
|
+
extern const CFStringRef kCGImageSourcePrioritizeQuality __attribute__((availability(macos,introduced=27.0), availability(ios,introduced=27.0), availability(tvos,introduced=27.0), availability(watchos,introduced=27.0)));
|
|
194
|
+
|
|
195
|
+
/** Keys for the options dictionary of
|
|
196
|
+
** "CGImageSourceCreateThumbnailAtIndex". **/
|
|
197
|
+
|
|
198
|
+
/* Specifies whether a thumbnail should be automatically created for an
|
|
199
|
+
* image if a thumbnail isn't present in the image source file. The
|
|
200
|
+
* thumbnail will be created from the full image, subject to the limit
|
|
201
|
+
* specified by kCGImageSourceThumbnailMaxPixelSize---if a maximum pixel
|
|
202
|
+
* size isn't specified, then the thumbnail will be the size of the full
|
|
203
|
+
* image, which probably isn't what you want. The value of this key must be
|
|
204
|
+
* a CFBooleanRef; the default value of this key is kCFBooleanFalse. */
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* A Boolean value that indicates whether to create a thumbnail image automatically if the data source doesn't contain one.
|
|
208
|
+
*
|
|
209
|
+
* The value of this key is a <doc://com.apple.documentation/documentation/corefoundation/cfboolean>. The default value is <doc://com.apple.documentation/documentation/corefoundation/kcfbooleanfalse>.
|
|
210
|
+
*
|
|
211
|
+
* If you set the value of this key to <doc://com.apple.documentation/documentation/corefoundation/kcfbooleantrue>, the image source creates the thumbnail from the full image, subject to the limit specified by ``kCGImageSourceThumbnailMaxPixelSize``. If you don't specify a maximum pixel size, the image soucre creates the thumbnail using the image's full size, which in most cases is not desirable.
|
|
212
|
+
*
|
|
213
|
+
* Include this key in the options dictionary you pass to the function ``CGImageSourceCreateThumbnailAtIndex(_:_:_:)``.
|
|
214
|
+
*/
|
|
215
|
+
extern const CFStringRef kCGImageSourceCreateThumbnailFromImageIfAbsent __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
216
|
+
|
|
217
|
+
/* Specifies whether a thumbnail should be created from the full image even
|
|
218
|
+
* if a thumbnail is present in the image source file. The thumbnail will
|
|
219
|
+
* be created from the full image, subject to the limit specified by
|
|
220
|
+
* kCGImageSourceThumbnailMaxPixelSize---if a maximum pixel size isn't
|
|
221
|
+
* specified, then the thumbnail will be the size of the full image, which
|
|
222
|
+
* probably isn't what you want. The value of this key must be a
|
|
223
|
+
* CFBooleanRef; the default value of this key is kCFBooleanFalse. */
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* A Boolean value that indicates whether to always create a thumbnail image.
|
|
227
|
+
*
|
|
228
|
+
* The value of this key is a <doc://com.apple.documentation/documentation/corefoundation/cfboolean>. The default value is <doc://com.apple.documentation/documentation/corefoundation/kcfbooleanfalse>.
|
|
229
|
+
*
|
|
230
|
+
* If you set the value of this key to <doc://com.apple.documentation/documentation/corefoundation/kcfbooleantrue>, the image source creates the thumbnail from the full image, subject to the limit specified by ``kCGImageSourceThumbnailMaxPixelSize``. If you don't specify a maximum pixel size, the image source creates the thumbnail using the image's full size, which in most cases is not desirable.
|
|
231
|
+
*
|
|
232
|
+
* Include this key in the options dictionary you pass to the function ``CGImageSourceCreateThumbnailAtIndex(_:_:_:)``.
|
|
233
|
+
*/
|
|
234
|
+
extern const CFStringRef kCGImageSourceCreateThumbnailFromImageAlways __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
235
|
+
|
|
236
|
+
/* Specifies the maximum width and height in pixels of a thumbnail. If
|
|
237
|
+
* this this key is not specified, the width and height of a thumbnail is
|
|
238
|
+
* not limited and thumbnails may be as big as the image itself. If
|
|
239
|
+
* present, this value of this key must be a CFNumberRef. */
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* The maximum width and height of a thumbnail image, specified in pixels.
|
|
243
|
+
*
|
|
244
|
+
* If this key is not specified, the width and height of a thumbnail is not limited and thumbnails may be as big as the image itself. If present, this key must be a CFNumber value. This key can be provided in the options dictionary that you pass to the function ``CGImageSourceCreateThumbnailAtIndex(_:_:_:)``.
|
|
245
|
+
*/
|
|
246
|
+
extern const CFStringRef kCGImageSourceThumbnailMaxPixelSize __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
247
|
+
|
|
248
|
+
/* Specifies whether the thumbnail should be rotated and scaled according
|
|
249
|
+
* to the orientation and pixel aspect ratio of the full image. The value
|
|
250
|
+
* of this key must be a CFBooleanRef; the default value of this key is
|
|
251
|
+
* kCFBooleanFalse. */
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* A Boolean value that indicates whether to rotate and scale the thumbnail image to match the image's orientation and aspect ratio.
|
|
255
|
+
*
|
|
256
|
+
* The value of this key must be a CFBoolean value. The default value is <doc://com.apple.documentation/documentation/corefoundation/kcfbooleanfalse>.
|
|
257
|
+
*/
|
|
258
|
+
extern const CFStringRef kCGImageSourceCreateThumbnailWithTransform __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
259
|
+
|
|
260
|
+
/* Specifies that, if possible, an image should be returned as scaled down (in height and width) by a specified factor.
|
|
261
|
+
* The resulting image will be smaller and have reduced spatial quality but will otherwise have the same characteristics
|
|
262
|
+
* as the full size normal image.
|
|
263
|
+
* If the specified scaling factor is not supported, a larger or full size normal image will be returned.
|
|
264
|
+
* Supported file formats are JPEG, HEIF, TIFF, and PNG.
|
|
265
|
+
* The value of this key must be an integer CFNumberRef (allowed values: 2, 4, and 8).
|
|
266
|
+
*/
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* The factor by which to scale down any returned images.
|
|
270
|
+
*
|
|
271
|
+
* When you specify this key, the image source scales down the image data by the specified numerical factor. The value of this key must be a <doc://com.apple.documentation/documentation/corefoundation/cfnumber> containing the integer value 2, 4, or 8. If the image doesn't support the specified scale factor, the image source provides a larger or full-size normal image.
|
|
272
|
+
*
|
|
273
|
+
* Image sources support this option only for JPEG, HEIF, TIFF, and PNG images.
|
|
274
|
+
*/
|
|
275
|
+
extern const CFStringRef kCGImageSourceSubsampleFactor __attribute__((availability(macos,introduced=10.11), availability(ios,introduced=9.0)));
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
/* Return the CFTypeID for CGImageSources. */
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Returns the unique type identifier of an image source opaque type.
|
|
282
|
+
*
|
|
283
|
+
* - Returns: Returns the Core Foundation type ID for an image source.
|
|
284
|
+
*
|
|
285
|
+
* A type identifier is an integer that identifies the opaque type to which a Core Foundation object belongs. You use type IDs in various contexts, such as when you are operating on heterogeneous collections. Note that a Core Foundation type ID is different from a uniform type identifier.
|
|
286
|
+
*/
|
|
287
|
+
extern CFTypeID CGImageSourceGetTypeID (void) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
288
|
+
|
|
289
|
+
/* Return an array of supported type identifiers. */
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Returns an array of uniform type identifiers that are supported for image sources.
|
|
293
|
+
*
|
|
294
|
+
* - Returns: Returns an array of the uniform type identifiers that are supported for image sources.
|
|
295
|
+
*
|
|
296
|
+
* For a list of system-declared and third-party identifiers, see <doc://com.apple.documentation/documentation/uniformtypeidentifiers>.
|
|
297
|
+
*/
|
|
298
|
+
extern CFArrayRef _iio_Nonnull CGImageSourceCopyTypeIdentifiers(void) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
299
|
+
|
|
300
|
+
/* Create an image source reading from the data provider `provider'. The
|
|
301
|
+
* `options' dictionary may be used to request additional creation options;
|
|
302
|
+
* see the list of keys above for more information. */
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Creates an image source that reads data from the specified data provider.
|
|
306
|
+
*
|
|
307
|
+
* - Parameters:
|
|
308
|
+
* - provider: The data provider to read from. For more information on data providers, see <doc://com.apple.documentation/documentation/coregraphics/cgdataprovider> and [Quartz 2D Programming Guide](https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/Introduction/Introduction.html#//apple_ref/doc/uid/TP30001066).
|
|
309
|
+
* - options: A dictionary that specifies additional creation options. For a list of possible values, see <doc:CGImageSource#Specifying-the-Read-Options>.
|
|
310
|
+
*
|
|
311
|
+
* - Returns: An image source. You're responsible for releasing this type using <doc://com.apple.documentation/documentation/corefoundation/cfrelease>.
|
|
312
|
+
*/
|
|
313
|
+
extern CGImageSourceRef _iio_Nullable CGImageSourceCreateWithDataProvider(CGDataProviderRef _iio_Nonnull provider, CFDictionaryRef _iio_Nullable options) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
314
|
+
|
|
315
|
+
/* Create an image source reading from `data'. The `options' dictionary
|
|
316
|
+
* may be used to request additional creation options; see the list of keys
|
|
317
|
+
* above for more information. */
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Creates an image source that reads from a Core Foundation data object.
|
|
321
|
+
*
|
|
322
|
+
* - Parameters:
|
|
323
|
+
*
|
|
324
|
+
* - data: The data object from which to read. For more information on data objects, see <doc://com.apple.documentation/documentation/corefoundation/cfdata> and [Data Objects](https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBinaryData/DataObjects.html#//apple_ref/doc/uid/20000171).
|
|
325
|
+
*
|
|
326
|
+
*
|
|
327
|
+
* - options: A dictionary that specifies additional creation options. For a list of possible values, see <doc:CGImageSource#Specifying-the-Read-Options>.
|
|
328
|
+
*
|
|
329
|
+
* - Returns: An image source. You're responsible for releasing this type using <doc://com.apple.documentation/documentation/corefoundation/cfrelease>.
|
|
330
|
+
*/
|
|
331
|
+
extern CGImageSourceRef _iio_Nullable CGImageSourceCreateWithData(CFDataRef _iio_Nonnull data, CFDictionaryRef _iio_Nullable options) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
332
|
+
|
|
333
|
+
/* Create an image source reading from `url'. The `options' dictionary may
|
|
334
|
+
* be used to request additional creation options; see the list of keys
|
|
335
|
+
* above for more information. */
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Creates an image source that reads from a location specified by a URL.
|
|
339
|
+
*
|
|
340
|
+
* - Parameters:
|
|
341
|
+
* - url: The URL of the image.
|
|
342
|
+
* - options: A dictionary that specifies additional creation options. For a list of possible values, see <doc:CGImageSource#Specifying-the-Read-Options>.
|
|
343
|
+
*
|
|
344
|
+
* - Returns: An image source. You're responsible for releasing this type using <doc://com.apple.documentation/documentation/corefoundation/cfrelease>.
|
|
345
|
+
*/
|
|
346
|
+
extern CGImageSourceRef _iio_Nullable CGImageSourceCreateWithURL(CFURLRef _iio_Nonnull url, CFDictionaryRef _iio_Nullable options) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
347
|
+
|
|
348
|
+
/* Return the type identifier of the image source `isrc'. This type is the
|
|
349
|
+
* type of the source "container", which is not necessarily the type of the
|
|
350
|
+
* image(s) in the container. For example, the .icns format supports
|
|
351
|
+
* embedded JPEG2000 but the source type will be "com.apple.icns". */
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Returns the uniform type identifier of the source container.
|
|
355
|
+
*
|
|
356
|
+
* - Parameters:
|
|
357
|
+
* - isrc: The image source that contains the image data.
|
|
358
|
+
*
|
|
359
|
+
* - Returns: The uniform type identifier of the image source container.
|
|
360
|
+
*
|
|
361
|
+
* The uniform type identifier of the source container can be different from the type of the images in the container. For example, the `.icns` format supports embedded `JPEG2000`. The type of the source container is `"com.apple.icns"`, but type of the images is `JPEG2000`.
|
|
362
|
+
*
|
|
363
|
+
* For a list of system-declared and third-party identifiers, see <doc://com.apple.documentation/documentation/uniformtypeidentifiers>.
|
|
364
|
+
*/
|
|
365
|
+
extern CFStringRef _iio_Nullable CGImageSourceGetType(CGImageSourceRef _iio_Nonnull isrc) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
366
|
+
|
|
367
|
+
/* Return the number of images (not including thumbnails) in the image
|
|
368
|
+
* source `isrc'. */
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Returns the number of images (not including thumbnails) in the image source.
|
|
372
|
+
*
|
|
373
|
+
* - Parameters:
|
|
374
|
+
* - isrc: The image source that contains the image data.
|
|
375
|
+
*
|
|
376
|
+
* - Returns: The number of images. If the image source is a multilayered Photoshop (PSD) file, the function returns `1`.
|
|
377
|
+
*
|
|
378
|
+
* This function does not extract the layers of a PSD file.
|
|
379
|
+
*/
|
|
380
|
+
extern size_t CGImageSourceGetCount(CGImageSourceRef _iio_Nonnull isrc) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
381
|
+
|
|
382
|
+
/* Return the properties of the image source `isrc'. These properties
|
|
383
|
+
* apply to the container in general but not necessarily to any individual
|
|
384
|
+
* image that it contains. */
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Returns the properties of the image source.
|
|
388
|
+
*
|
|
389
|
+
* - Parameters:
|
|
390
|
+
* - isrc: The image source that contains the image data.
|
|
391
|
+
* - options: A dictionary you can use to request additional options. For a list of possible values, see <doc:CGImageSource#Specifying-the-Read-Options>.
|
|
392
|
+
*
|
|
393
|
+
* - Returns: A dictionary that contains the properties associated with the image source container. See `CGImageProperties` for a list of properties that can be in the dictionary.
|
|
394
|
+
*
|
|
395
|
+
* These properties apply to the container in general but not necessarily to any individual image contained in the image source.
|
|
396
|
+
*/
|
|
397
|
+
extern CFDictionaryRef _iio_Nullable CGImageSourceCopyProperties(CGImageSourceRef _iio_Nonnull isrc, CFDictionaryRef _iio_Nullable options) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
398
|
+
|
|
399
|
+
/* Return the properties of the image at `index' in the image source
|
|
400
|
+
* `isrc'. The index is zero-based. The `options' dictionary may be used
|
|
401
|
+
* to request additional options; see the list of keys above for more
|
|
402
|
+
* information. */
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Returns the properties of the image at a specified location in an image source.
|
|
406
|
+
*
|
|
407
|
+
* - Parameters:
|
|
408
|
+
* - isrc: The image source that contains the image data.
|
|
409
|
+
* - index: The zero-based index into the images of the image source. If the index is invalid, this method returns `NULL`.
|
|
410
|
+
* - options: A dictionary you can use to request additional options. For a list of possible values, see <doc:CGImageSource#Specifying-the-Read-Options>.
|
|
411
|
+
*
|
|
412
|
+
* - Returns: A dictionary that contains the properties associated with the image. See `CGImageProperties` for a list of properties that allowed in the dictionary.
|
|
413
|
+
*/
|
|
414
|
+
extern CFDictionaryRef _iio_Nullable CGImageSourceCopyPropertiesAtIndex(CGImageSourceRef _iio_Nonnull isrc, size_t index, CFDictionaryRef _iio_Nullable options) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
415
|
+
|
|
416
|
+
/* Return the metadata of the image at `index' in the image source
|
|
417
|
+
* `isrc'. The index is zero-based. The `options' dictionary may be used
|
|
418
|
+
* to request additional options; see the list of keys above for more
|
|
419
|
+
* information. Please refer to CGImageMetadata.h for usage of metadata. */
|
|
420
|
+
extern CGImageMetadataRef _iio_Nullable CGImageSourceCopyMetadataAtIndex (CGImageSourceRef _iio_Nonnull isrc, size_t index, CFDictionaryRef _iio_Nullable options) __attribute__((availability(macos,introduced=10.8), availability(ios,introduced=7.0)));
|
|
421
|
+
|
|
422
|
+
/* Return the image at `index' in the image source `isrc'. The index is
|
|
423
|
+
* zero-based. The `options' dictionary may be used to request additional
|
|
424
|
+
* creation options; see the list of keys above for more information. */
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Creates an image object from the data at the specified index in an image source.
|
|
428
|
+
*
|
|
429
|
+
* - Parameters:
|
|
430
|
+
* - isrc: The image source that contains the image data.
|
|
431
|
+
* - index: The zero-based index of the image you want. If the index is invalid, this method returns `NULL`.
|
|
432
|
+
* - options: A dictionary that specifies additional creation options. For a list of possible values, see <doc:CGImageSource#Specifying-the-Read-Options>.
|
|
433
|
+
*
|
|
434
|
+
* - Returns: The image at the specified index, or `NULL` if an error occurs. You're responsible for releasing the returned object using <doc://com.apple.documentation/documentation/coregraphics/cgimagerelease>.
|
|
435
|
+
*/
|
|
436
|
+
extern CGImageRef _iio_Nullable CGImageSourceCreateImageAtIndex(CGImageSourceRef _iio_Nonnull isrc, size_t index, CFDictionaryRef _iio_Nullable options) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
437
|
+
|
|
438
|
+
/* Remove the cached decoded image data for the image at `index' in the image source `isrc'.
|
|
439
|
+
* The index is zero-based.
|
|
440
|
+
*/
|
|
441
|
+
extern void CGImageSourceRemoveCacheAtIndex(CGImageSourceRef _iio_Nonnull isrc, size_t index) __attribute__((availability(macos,introduced=10.9), availability(ios,introduced=7.0)));
|
|
442
|
+
|
|
443
|
+
/* Return the thumbnail of the image at `index' in the image source `isrc'.
|
|
444
|
+
* The index is zero-based. The `options' dictionary may be used to request
|
|
445
|
+
* additional thumbnail creation options; see the list of keys above for
|
|
446
|
+
* more information. */
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Creates a thumbnail version of the image at the specified index in an image source.
|
|
450
|
+
*
|
|
451
|
+
* - Parameters:
|
|
452
|
+
* - isrc: The image source that contains the image data.
|
|
453
|
+
* - index: The zero-based index of the image you want. If the index is invalid, this method returns `NULL`.
|
|
454
|
+
* - options: A dictionary that specifies additional creation options. For a list of possible values, see <doc:CGImageSource#Specifying-the-Read-Options>.
|
|
455
|
+
*
|
|
456
|
+
* - Returns: The image at the specified index, or `NULL` if an error occurs. You are responsible for releasing the returned object using <doc://com.apple.documentation/documentation/coregraphics/cgimagerelease>.
|
|
457
|
+
*
|
|
458
|
+
* If the image source is a PDF, this function creates a 72 dpi image of the PDF page specified by the index that you pass. You must, however, pass an options dictionary that contains either the ``kCGImageSourceCreateThumbnailFromImageIfAbsent`` or ``kCGImageSourceCreateThumbnailFromImageAlways`` keys, with the value of the key set to `true`.
|
|
459
|
+
*/
|
|
460
|
+
extern CGImageRef _iio_Nullable CGImageSourceCreateThumbnailAtIndex(CGImageSourceRef _iio_Nonnull isrc, size_t index, CFDictionaryRef _iio_Nullable options) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
461
|
+
|
|
462
|
+
/* Create an incremental image source. No data is provided at creation
|
|
463
|
+
* time; it is assumed that data will eventually be provided using
|
|
464
|
+
* "CGImageSourceUpdateDataProvider" or "CGImageSourceUpdateData". The
|
|
465
|
+
* `options' dictionary may be used to request additional creation options;
|
|
466
|
+
* see the list of keys above for more information. */
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Creates an empty image source that you can use to accumulate incremental image data.
|
|
470
|
+
*
|
|
471
|
+
* - Parameters:
|
|
472
|
+
* - options: A dictionary that specifies additional creation options. For a list of possible values, see <doc:CGImageSource#Specifying-the-Read-Options>.
|
|
473
|
+
*
|
|
474
|
+
* - Returns: An empty image source object. You're responsible for releasing this type using <doc://com.apple.documentation/documentation/corefoundation/cfrelease>.
|
|
475
|
+
*
|
|
476
|
+
* This function creates an empty image source container, which you use to accumulate data downloaded in chunks from the network. To add new chunks of data to the image source, call the ``CGImageSourceUpdateDataProvider(_:_:_:)`` or ``CGImageSourceUpdateData(_:_:_:)`` functions.
|
|
477
|
+
*/
|
|
478
|
+
extern CGImageSourceRef _iio_Nonnull CGImageSourceCreateIncremental(CFDictionaryRef _iio_Nullable options) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
479
|
+
|
|
480
|
+
/* Update the incremental image source `isrc' with new data. The new data
|
|
481
|
+
* must include all the previous data plus any additional new data. The
|
|
482
|
+
* `final' parameter should be true when the final set of data is provided;
|
|
483
|
+
* false otherwise. */
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* Updates the data in an incremental image source.
|
|
487
|
+
*
|
|
488
|
+
* - Parameters:
|
|
489
|
+
* - isrc: The image source to modify.
|
|
490
|
+
* - data: The updated data for the image source. Each time you call this function, specify all of the accumulated image data so far.
|
|
491
|
+
* - final: A Boolean value that indicates whether the `data` parameter represents the complete data set. Specify `true` if the data is complete or `false` if it isn't.
|
|
492
|
+
*
|
|
493
|
+
* This method updates the state of the image source and its contained images. Call this method one or more times to update the contents of an incremental data source. Each time you call the method, you must specify all of the accumulated image data, not just the new data you received.
|
|
494
|
+
*/
|
|
495
|
+
extern void CGImageSourceUpdateData(CGImageSourceRef _iio_Nonnull isrc, CFDataRef _iio_Nonnull data, bool final) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
496
|
+
|
|
497
|
+
/* Update the incremental image source `isrc' with a new data provider.
|
|
498
|
+
* The new data provider must provide all the previous data plus any
|
|
499
|
+
* additional new data. The `final' parameter should be true when the final
|
|
500
|
+
* set of data is provided; false otherwise. */
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Updates an incremental image source with a new data provider.
|
|
504
|
+
*
|
|
505
|
+
* - Parameters:
|
|
506
|
+
* - isrc: The image source to modify.
|
|
507
|
+
* - provider: The new data provider. The new data provider must provide all the previous data supplied to the image source and any additional new data.
|
|
508
|
+
* - final: A Boolean value that indicates whether the `provider` parameter provides the complete data set. Specify `true` if the data is complete or `false` if it isn't.
|
|
509
|
+
*/
|
|
510
|
+
extern void CGImageSourceUpdateDataProvider(CGImageSourceRef _iio_Nonnull isrc, CGDataProviderRef _iio_Nonnull provider, bool final) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
511
|
+
|
|
512
|
+
/* Return the overall status of the image source `isrc'. The status is
|
|
513
|
+
* particularly informative for incremental image sources, but may be used
|
|
514
|
+
* by clients providing non-incremental data as well. */
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Return the status of an image source.
|
|
518
|
+
*
|
|
519
|
+
* - Parameters:
|
|
520
|
+
* - isrc: The image source that contains the image data.
|
|
521
|
+
*
|
|
522
|
+
* - Returns: Returns the current status of the image source. See ``CGImageSourceStatus`` for a list of possible values.
|
|
523
|
+
*
|
|
524
|
+
* Status information is particularly informative for incremental image sources, but it may also be useful on image sources that contain non-incremental data.
|
|
525
|
+
*/
|
|
526
|
+
extern CGImageSourceStatus CGImageSourceGetStatus(CGImageSourceRef _iio_Nonnull isrc) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
527
|
+
|
|
528
|
+
/* Return the current status of the image at `index' in the image source
|
|
529
|
+
* `isrc'. The index is zero-based. The returned status is particularly
|
|
530
|
+
* informative for incremental image sources but may used by clients
|
|
531
|
+
* providing non-incremental data as well. */
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Returns the current status of an image at the specified location in the image source.
|
|
535
|
+
*
|
|
536
|
+
* - Parameters:
|
|
537
|
+
* - isrc: The image source that contains the image data.
|
|
538
|
+
* - index: The zero-based index into the images of the image source. If the index is invalid, this method returns `NULL`.
|
|
539
|
+
*
|
|
540
|
+
* - Returns: Returns the current status of the image. See ``CGImageSourceStatus`` for a list of possible values.
|
|
541
|
+
*
|
|
542
|
+
* Status information is particularly informative for incremental image sources, but you may also use it on image sources that contain non-incremental data.
|
|
543
|
+
*/
|
|
544
|
+
extern CGImageSourceStatus CGImageSourceGetStatusAtIndex(CGImageSourceRef _iio_Nonnull isrc, size_t index) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=4.0)));
|
|
545
|
+
|
|
546
|
+
/* Return the primary image index for HEIF images.
|
|
547
|
+
* Zero for all other formats.
|
|
548
|
+
*/
|
|
549
|
+
/**
|
|
550
|
+
* Returns the index of the primary image for an High Efficiency Image File Format (HEIF) image.
|
|
551
|
+
*
|
|
552
|
+
* - Parameters:
|
|
553
|
+
* - isrc: The image source that contains the image data.
|
|
554
|
+
*
|
|
555
|
+
* - Returns: The index of the primary image, or `0` for image formats other than the HEIF format.
|
|
556
|
+
*/
|
|
557
|
+
extern size_t CGImageSourceGetPrimaryImageIndex(CGImageSourceRef _iio_Nonnull isrc) __attribute__((availability(macos,introduced=10.14), availability(ios,introduced=12.0)));
|
|
558
|
+
|
|
559
|
+
/* Auxiliary data support for JPEG, HEIF, and DNG images (kCGImageAuxiliaryDataTypeDepth, ...)
|
|
560
|
+
* The returned CFDictionary contains:
|
|
561
|
+
* - the depth data (CFDataRef) - (kCGImageAuxiliaryDataInfoData),
|
|
562
|
+
* - the depth data description (CFDictionary) - (kCGImageAuxiliaryDataInfoDataDescription)
|
|
563
|
+
* - metadata (CGImageMetadataRef) - (kCGImageAuxiliaryDataInfoMetadata)
|
|
564
|
+
* - optional color space (CGColorSpaceRef) - (kCGImageAuxiliaryDataInfoColorSpace)
|
|
565
|
+
* CGImageSourceCopyAuxiliaryDataInfoAtIndex returns nil if the image did not contain ‘auxiliaryImageDataType’ data.
|
|
566
|
+
*/
|
|
567
|
+
/**
|
|
568
|
+
* Returns auxiliary data, such as mattes and depth information, that accompany the image.
|
|
569
|
+
*
|
|
570
|
+
* - Parameters:
|
|
571
|
+
* - isrc: The image source that contains the image data.
|
|
572
|
+
* - index: The zero-based index into the images of the image source. If the index is invalid, this method returns `NULL`.
|
|
573
|
+
* - auxiliaryImageDataType: The auxiliary data to retrieve. For a list of possible values, see <doc:individual-image-properties#Auxiliary-Image-Data> and <doc:individual-image-properties#Auxiliary-Data-Types>.
|
|
574
|
+
*
|
|
575
|
+
* - Returns: A dictionary that contains the auxiliary data, or `NULL` if an error occurs.
|
|
576
|
+
*/
|
|
577
|
+
extern CFDictionaryRef _iio_Nullable CGImageSourceCopyAuxiliaryDataInfoAtIndex(CGImageSourceRef _iio_Nonnull isrc, size_t index, CFStringRef _iio_Nonnull auxiliaryImageDataType ) __attribute__((availability(macos,introduced=10.13), availability(ios,introduced=11.0)));
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
/* HDR-related */
|
|
581
|
+
|
|
582
|
+
/* kCGImageSourceDecodeRequest - value is one of the predefined keys (kCGImageSourceDecodeToHDR, kCGImageSourceDecodeToSDR, ...)
|
|
583
|
+
*/
|
|
584
|
+
/**
|
|
585
|
+
* ## Overview
|
|
586
|
+
*
|
|
587
|
+
* For more information, see [Image I/O Programming Guide](https://developer.apple.com/library/archive/documentation/GraphicsImaging/Conceptual/ImageIOGuide/imageio_intro/ikpg_intro.html#//apple_ref/doc/uid/TP40005462).
|
|
588
|
+
*/
|
|
589
|
+
extern const CFStringRef kCGImageSourceDecodeRequest __attribute__((availability(macos,introduced=14.0), availability(ios,introduced=17.0), availability(tvos,introduced=17.0), availability(watchos,introduced=10.0)));
|
|
590
|
+
|
|
591
|
+
extern const CFStringRef kCGImageSourceDecodeToHDR __attribute__((availability(macos,introduced=14.0), availability(ios,introduced=17.0), availability(tvos,introduced=17.0), availability(watchos,introduced=10.0)));
|
|
592
|
+
extern const CFStringRef kCGImageSourceDecodeToSDR __attribute__((availability(macos,introduced=14.0), availability(ios,introduced=17.0), availability(tvos,introduced=17.0), availability(watchos,introduced=10.0)));
|
|
593
|
+
|
|
594
|
+
/* kCGImageSourceGenerateImageSpecificLumaScaling - generate a global tone mapping function based on the gain map. Dafault value is "YES" (kCFBooleanTrue)
|
|
595
|
+
*/
|
|
596
|
+
extern const CFStringRef kCGImageSourceGenerateImageSpecificLumaScaling __attribute__((availability(macos,introduced=15.0), availability(ios,introduced=18.0), availability(tvos,introduced=18.0), availability(watchos,introduced=11.0)));
|
|
597
|
+
|
|
598
|
+
/* kCGImageSourceDecodeRequestOptions - CFDictionaryRef to specify additional options
|
|
599
|
+
*/
|
|
600
|
+
extern const CFStringRef kCGImageSourceDecodeRequestOptions __attribute__((availability(macos,introduced=14.0), availability(ios,introduced=17.0), availability(tvos,introduced=17.0), availability(watchos,introduced=10.0)));
|
|
601
|
+
|
|
602
|
+
// HDR statistics
|
|
603
|
+
extern const CFStringRef kCGComputeHDRStats __attribute__((availability(macos,introduced=16.0), availability(ios,introduced=19.0), availability(tvos,introduced=19.0), availability(watchos,introduced=12.0)));
|
|
604
|
+
|
|
605
|
+
/* To limit the image formats that ImageIO can decode, you can call 'CGImageSourceSetAllowableTypes' with
|
|
606
|
+
* an array of type identifiers.
|
|
607
|
+
* The 'allowableTypes' array should contain valid type identifiers.
|
|
608
|
+
* CGImageSourceSetAllowableTypes can only be called once.
|
|
609
|
+
*/
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Restricts which image formats can be decoded in the current process.
|
|
613
|
+
*
|
|
614
|
+
* When this method has been called, ImageIO will only decode images whose format matches one of the entries in the allow list for the remaining lifetime of the process.
|
|
615
|
+
*
|
|
616
|
+
* If per-asset format restrictions are set via ``kCGImageSourceAllowableTypes``,
|
|
617
|
+
* only formats allowed by both mechanisms are permitted.
|
|
618
|
+
* If `allowableTypes` is empty, all image parsing is disabled.
|
|
619
|
+
* Unknown format identifiers are ignored.
|
|
620
|
+
* Can only be called once per process; subsequent calls are ignored.
|
|
621
|
+
*
|
|
622
|
+
* See also <doc://com.apple.documentation/documentation/uniformtypeidentifiers/system-declared-uniform-type-identifiers>.
|
|
623
|
+
*
|
|
624
|
+
* - Parameters:
|
|
625
|
+
* - allowableTypes: A <doc://com.apple.documentation/documentation/corefoundation/cfarray> containing <doc://com.apple.documentation/documentation/corefoundation/cfstring> Uniform Type Identifiers (UTIs) of allowed image formats.
|
|
626
|
+
*/
|
|
627
|
+
extern OSStatus CGImageSourceSetAllowableTypes(CFArrayRef allowableTypes) __attribute__((availability(macos,introduced=14.2), availability(ios,introduced=17.2), availability(tvos,introduced=17.2), availability(watchos,introduced=10.2)));
|
|
628
|
+
|
|
629
|
+
CF_ASSUME_NONNULL_END
|
|
630
|
+
|
|
631
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
#endif /* CGIMAGESOURCE_H_ */
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ImageIO - ImageIO.h
|
|
3
|
+
* Copyright (c) 2004-2016 Apple Inc. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
#ifndef __IMAGEIO__
|
|
8
|
+
#define __IMAGEIO__
|
|
9
|
+
|
|
10
|
+
#include <ImageIO/ImageIOBase.h>
|
|
11
|
+
|
|
12
|
+
#include <ImageIO/CGImageSource.h>
|
|
13
|
+
|
|
14
|
+
#include <ImageIO/CGImageDestination.h>
|
|
15
|
+
|
|
16
|
+
#include <ImageIO/CGImageProperties.h>
|
|
17
|
+
|
|
18
|
+
#include <ImageIO/CGImageMetadata.h>
|
|
19
|
+
|
|
20
|
+
#include <ImageIO/CGImageAnimation.h>
|
|
21
|
+
|
|
22
|
+
#endif /* __IMAGEIO__ */
|