pyobjc-framework-VideoToolbox 10.2__tar.gz → 11.0__tar.gz

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 (59) hide show
  1. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/Lib/VideoToolbox/_metadata.py +122 -48
  2. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/Lib/pyobjc_framework_VideoToolbox.egg-info/PKG-INFO +7 -7
  3. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/Lib/pyobjc_framework_VideoToolbox.egg-info/SOURCES.txt +8 -8
  4. pyobjc_framework_videotoolbox-11.0/Lib/pyobjc_framework_VideoToolbox.egg-info/pyobjc-build-info.txt +3 -0
  5. pyobjc_framework_videotoolbox-11.0/Lib/pyobjc_framework_VideoToolbox.egg-info/requires.txt +4 -0
  6. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/Modules/_VideoToolbox.m +46 -13
  7. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/Modules/pyobjc-api.h +1 -1
  8. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/Modules/pyobjc-compat.h +80 -5
  9. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PKG-INFO +7 -7
  10. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtcompressionproperties.py +36 -0
  11. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtdecompressionproperties.py +15 -0
  12. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vterrors.py +2 -0
  13. pyobjc_framework_videotoolbox-11.0/PyObjCTest/test_vthdrperframemetadatagenerationsession.py +35 -0
  14. pyobjc_framework_videotoolbox-11.0/PyObjCTest/test_vtrawprocessingproperties.py +17 -0
  15. pyobjc_framework_videotoolbox-11.0/PyObjCTest/test_vtrawprocessingsession.py +81 -0
  16. pyobjc_framework_videotoolbox-11.0/PyObjCTest/test_vtutilities.py +41 -0
  17. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/metadata/VideoToolbox.fwinfo +65 -0
  18. pyobjc-framework-VideoToolbox-10.2/metadata/raw/arm64-14.4.fwinfo → pyobjc_framework_videotoolbox-11.0/metadata/raw/arm64-14.5.fwinfo +52 -8
  19. pyobjc-framework-VideoToolbox-10.2/metadata/raw/arm64-14.2.fwinfo → pyobjc_framework_videotoolbox-11.0/metadata/raw/arm64-15.0.fwinfo +422 -8
  20. pyobjc-framework-VideoToolbox-10.2/metadata/raw/x86_64-14.4.fwinfo → pyobjc_framework_videotoolbox-11.0/metadata/raw/x86_64-14.5.fwinfo +52 -8
  21. pyobjc-framework-VideoToolbox-10.2/metadata/raw/x86_64-14.2.fwinfo → pyobjc_framework_videotoolbox-11.0/metadata/raw/x86_64-15.0.fwinfo +422 -8
  22. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/pyobjc_setup.py +121 -27
  23. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/setup.py +1 -3
  24. pyobjc-framework-VideoToolbox-10.2/Lib/pyobjc_framework_VideoToolbox.egg-info/requires.txt +0 -4
  25. pyobjc-framework-VideoToolbox-10.2/PyObjCTest/test_vtutilities.py +0 -13
  26. pyobjc-framework-VideoToolbox-10.2/metadata/raw/arm64-12.0.fwinfo +0 -1608
  27. pyobjc-framework-VideoToolbox-10.2/metadata/raw/arm64-14.0.fwinfo +0 -1906
  28. pyobjc-framework-VideoToolbox-10.2/metadata/raw/x86_64-12.0.fwinfo +0 -1608
  29. pyobjc-framework-VideoToolbox-10.2/metadata/raw/x86_64-14.0.fwinfo +0 -1906
  30. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/Lib/VideoToolbox/__init__.py +0 -0
  31. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/Lib/pyobjc_framework_VideoToolbox.egg-info/dependency_links.txt +0 -0
  32. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/Lib/pyobjc_framework_VideoToolbox.egg-info/not-zip-safe +0 -0
  33. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/Lib/pyobjc_framework_VideoToolbox.egg-info/top_level.txt +0 -0
  34. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/License.txt +0 -0
  35. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/MANIFEST.in +0 -0
  36. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/__init__.py +0 -0
  37. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_videotoolbox.py +0 -0
  38. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtbase.py +0 -0
  39. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtcompressionsession.py +0 -0
  40. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtdecompressionsession.py +0 -0
  41. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtframesilo.py +0 -0
  42. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtmultipassstorage.py +0 -0
  43. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtpixelrotationproperties.py +0 -0
  44. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtpixelrotationsession.py +0 -0
  45. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtpixeltransferproperties.py +0 -0
  46. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtpixeltransfersession.py +0 -0
  47. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtprofessionalvideoworkflow.py +0 -0
  48. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtsession.py +0 -0
  49. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/PyObjCTest/test_vtvideoencoderlist.py +0 -0
  50. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/metadata/metadata.ini +0 -0
  51. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/metadata/raw/arm64-12.3.fwinfo +0 -0
  52. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/metadata/raw/arm64-13.0.fwinfo +0 -0
  53. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/metadata/raw/x86_64-10.14.fwinfo +0 -0
  54. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/metadata/raw/x86_64-10.15.fwinfo +0 -0
  55. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/metadata/raw/x86_64-10.16.fwinfo +0 -0
  56. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/metadata/raw/x86_64-12.3.fwinfo +0 -0
  57. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/metadata/raw/x86_64-13.0.fwinfo +0 -0
  58. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/pyproject.toml +0 -0
  59. {pyobjc-framework-VideoToolbox-10.2 → pyobjc_framework_videotoolbox-11.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Fri Jan 26 11:15:18 2024
3
+ # Last update: Fri Nov 15 11:32:16 2024
4
4
  #
5
5
  # flake8: noqa
6
6
 
@@ -40,44 +40,27 @@ misc.update(
40
40
  ),
41
41
  }
42
42
  )
43
- constants = """$kVTAlphaChannelMode_PremultipliedAlpha$kVTAlphaChannelMode_StraightAlpha$kVTCompressionPropertyKey_AllowFrameReordering$kVTCompressionPropertyKey_AllowOpenGOP$kVTCompressionPropertyKey_AllowTemporalCompression$kVTCompressionPropertyKey_AlphaChannelMode$kVTCompressionPropertyKey_AspectRatio16x9$kVTCompressionPropertyKey_AverageBitRate$kVTCompressionPropertyKey_BaseLayerBitRateFraction$kVTCompressionPropertyKey_BaseLayerFrameRate$kVTCompressionPropertyKey_BaseLayerFrameRateFraction$kVTCompressionPropertyKey_CalculateMeanSquaredError$kVTCompressionPropertyKey_CleanAperture$kVTCompressionPropertyKey_ColorPrimaries$kVTCompressionPropertyKey_ConstantBitRate$kVTCompressionPropertyKey_ContentLightLevelInfo$kVTCompressionPropertyKey_DataRateLimits$kVTCompressionPropertyKey_Depth$kVTCompressionPropertyKey_EnableLTR$kVTCompressionPropertyKey_EncoderID$kVTCompressionPropertyKey_EstimatedAverageBytesPerFrame$kVTCompressionPropertyKey_ExpectedDuration$kVTCompressionPropertyKey_ExpectedFrameRate$kVTCompressionPropertyKey_FieldCount$kVTCompressionPropertyKey_FieldDetail$kVTCompressionPropertyKey_GammaLevel$kVTCompressionPropertyKey_H264EntropyMode$kVTCompressionPropertyKey_HDRMetadataInsertionMode$kVTCompressionPropertyKey_HasLeftStereoEyeView$kVTCompressionPropertyKey_HasRightStereoEyeView$kVTCompressionPropertyKey_HeroEye$kVTCompressionPropertyKey_HorizontalDisparityAdjustment$kVTCompressionPropertyKey_HorizontalFieldOfView$kVTCompressionPropertyKey_ICCProfile$kVTCompressionPropertyKey_MVHEVCLeftAndRightViewIDs$kVTCompressionPropertyKey_MVHEVCVideoLayerIDs$kVTCompressionPropertyKey_MVHEVCViewIDs$kVTCompressionPropertyKey_MasteringDisplayColorVolume$kVTCompressionPropertyKey_MaxAllowedFrameQP$kVTCompressionPropertyKey_MaxFrameDelayCount$kVTCompressionPropertyKey_MaxH264SliceBytes$kVTCompressionPropertyKey_MaxKeyFrameInterval$kVTCompressionPropertyKey_MaxKeyFrameIntervalDuration$kVTCompressionPropertyKey_MaximizePowerEfficiency$kVTCompressionPropertyKey_MinAllowedFrameQP$kVTCompressionPropertyKey_MoreFramesAfterEnd$kVTCompressionPropertyKey_MoreFramesBeforeStart$kVTCompressionPropertyKey_MultiPassStorage$kVTCompressionPropertyKey_NumberOfPendingFrames$kVTCompressionPropertyKey_OutputBitDepth$kVTCompressionPropertyKey_PixelAspectRatio$kVTCompressionPropertyKey_PixelBufferPoolIsShared$kVTCompressionPropertyKey_PixelTransferProperties$kVTCompressionPropertyKey_PreserveAlphaChannel$kVTCompressionPropertyKey_PreserveDynamicHDRMetadata$kVTCompressionPropertyKey_PrioritizeEncodingSpeedOverQuality$kVTCompressionPropertyKey_ProfileLevel$kVTCompressionPropertyKey_ProgressiveScan$kVTCompressionPropertyKey_Quality$kVTCompressionPropertyKey_RealTime$kVTCompressionPropertyKey_RecommendedParallelizationLimit$kVTCompressionPropertyKey_RecommendedParallelizedSubdivisionMinimumDuration$kVTCompressionPropertyKey_RecommendedParallelizedSubdivisionMinimumFrameCount$kVTCompressionPropertyKey_ReferenceBufferCount$kVTCompressionPropertyKey_SourceFrameCount$kVTCompressionPropertyKey_StereoCameraBaseline$kVTCompressionPropertyKey_SupportsBaseFrameQP$kVTCompressionPropertyKey_TargetQualityForAlpha$kVTCompressionPropertyKey_TransferFunction$kVTCompressionPropertyKey_UsingGPURegistryID$kVTCompressionPropertyKey_UsingHardwareAcceleratedVideoEncoder$kVTCompressionPropertyKey_VideoEncoderPixelBufferAttributes$kVTCompressionPropertyKey_YCbCrMatrix$kVTDecompressionPropertyKey_ContentHasInterframeDependencies$kVTDecompressionPropertyKey_DeinterlaceMode$kVTDecompressionPropertyKey_FieldMode$kVTDecompressionPropertyKey_GeneratePerFrameHDRDisplayMetadata$kVTDecompressionPropertyKey_MaxOutputPresentationTimeStampOfFramesBeingDecoded$kVTDecompressionPropertyKey_MaximizePowerEfficiency$kVTDecompressionPropertyKey_MinOutputPresentationTimeStampOfFramesBeingDecoded$kVTDecompressionPropertyKey_NumberOfFramesBeingDecoded$kVTDecompressionPropertyKey_OnlyTheseFrames$kVTDecompressionPropertyKey_OutputPoolRequestedMinimumBufferCount$kVTDecompressionPropertyKey_PixelBufferPool$kVTDecompressionPropertyKey_PixelBufferPoolIsShared$kVTDecompressionPropertyKey_PixelFormatsWithReducedResolutionSupport$kVTDecompressionPropertyKey_PixelTransferProperties$kVTDecompressionPropertyKey_PropagatePerFrameHDRDisplayMetadata$kVTDecompressionPropertyKey_RealTime$kVTDecompressionPropertyKey_ReducedCoefficientDecode$kVTDecompressionPropertyKey_ReducedFrameDelivery$kVTDecompressionPropertyKey_ReducedResolutionDecode$kVTDecompressionPropertyKey_RequestedMVHEVCVideoLayerIDs$kVTDecompressionPropertyKey_SuggestedQualityOfServiceTiers$kVTDecompressionPropertyKey_SupportedPixelFormatsOrderedByPerformance$kVTDecompressionPropertyKey_SupportedPixelFormatsOrderedByQuality$kVTDecompressionPropertyKey_ThreadCount$kVTDecompressionPropertyKey_UsingGPURegistryID$kVTDecompressionPropertyKey_UsingHardwareAcceleratedVideoDecoder$kVTDecompressionProperty_DeinterlaceMode_Temporal$kVTDecompressionProperty_DeinterlaceMode_VerticalFilter$kVTDecompressionProperty_FieldMode_BothFields$kVTDecompressionProperty_FieldMode_BottomFieldOnly$kVTDecompressionProperty_FieldMode_DeinterlaceFields$kVTDecompressionProperty_FieldMode_SingleField$kVTDecompressionProperty_FieldMode_TopFieldOnly$kVTDecompressionProperty_OnlyTheseFrames_AllFrames$kVTDecompressionProperty_OnlyTheseFrames_IFrames$kVTDecompressionProperty_OnlyTheseFrames_KeyFrames$kVTDecompressionProperty_OnlyTheseFrames_NonDroppableFrames$kVTDecompressionProperty_TemporalLevelLimit$kVTDecompressionResolutionKey_Height$kVTDecompressionResolutionKey_Width$kVTDownsamplingMode_Average$kVTDownsamplingMode_Decimate$kVTEncodeFrameOptionKey_AcknowledgedLTRTokens$kVTEncodeFrameOptionKey_BaseFrameQP$kVTEncodeFrameOptionKey_ForceKeyFrame$kVTEncodeFrameOptionKey_ForceLTRRefresh$kVTH264EntropyMode_CABAC$kVTH264EntropyMode_CAVLC$kVTHDRMetadataInsertionMode_Auto$kVTHDRMetadataInsertionMode_None$kVTMultiPassStorageCreationOption_DoNotDelete$kVTPixelRotationPropertyKey_FlipHorizontalOrientation$kVTPixelRotationPropertyKey_FlipVerticalOrientation$kVTPixelRotationPropertyKey_Rotation$kVTPixelTransferPropertyKey_DestinationCleanAperture$kVTPixelTransferPropertyKey_DestinationColorPrimaries$kVTPixelTransferPropertyKey_DestinationICCProfile$kVTPixelTransferPropertyKey_DestinationPixelAspectRatio$kVTPixelTransferPropertyKey_DestinationTransferFunction$kVTPixelTransferPropertyKey_DestinationYCbCrMatrix$kVTPixelTransferPropertyKey_DownsamplingMode$kVTPixelTransferPropertyKey_RealTime$kVTPixelTransferPropertyKey_ScalingMode$kVTProfileLevel_H263_Profile0_Level10$kVTProfileLevel_H263_Profile0_Level45$kVTProfileLevel_H263_Profile3_Level45$kVTProfileLevel_H264_Baseline_1_3$kVTProfileLevel_H264_Baseline_3_0$kVTProfileLevel_H264_Baseline_3_1$kVTProfileLevel_H264_Baseline_3_2$kVTProfileLevel_H264_Baseline_4_0$kVTProfileLevel_H264_Baseline_4_1$kVTProfileLevel_H264_Baseline_4_2$kVTProfileLevel_H264_Baseline_5_0$kVTProfileLevel_H264_Baseline_5_1$kVTProfileLevel_H264_Baseline_5_2$kVTProfileLevel_H264_Baseline_AutoLevel$kVTProfileLevel_H264_ConstrainedBaseline_AutoLevel$kVTProfileLevel_H264_ConstrainedHigh_AutoLevel$kVTProfileLevel_H264_Extended_5_0$kVTProfileLevel_H264_Extended_AutoLevel$kVTProfileLevel_H264_High_3_0$kVTProfileLevel_H264_High_3_1$kVTProfileLevel_H264_High_3_2$kVTProfileLevel_H264_High_4_0$kVTProfileLevel_H264_High_4_1$kVTProfileLevel_H264_High_4_2$kVTProfileLevel_H264_High_5_0$kVTProfileLevel_H264_High_5_1$kVTProfileLevel_H264_High_5_2$kVTProfileLevel_H264_High_AutoLevel$kVTProfileLevel_H264_Main_3_0$kVTProfileLevel_H264_Main_3_1$kVTProfileLevel_H264_Main_3_2$kVTProfileLevel_H264_Main_4_0$kVTProfileLevel_H264_Main_4_1$kVTProfileLevel_H264_Main_4_2$kVTProfileLevel_H264_Main_5_0$kVTProfileLevel_H264_Main_5_1$kVTProfileLevel_H264_Main_5_2$kVTProfileLevel_H264_Main_AutoLevel$kVTProfileLevel_HEVC_Main10_AutoLevel$kVTProfileLevel_HEVC_Main42210_AutoLevel$kVTProfileLevel_HEVC_Main_AutoLevel$kVTProfileLevel_MP4V_AdvancedSimple_L0$kVTProfileLevel_MP4V_AdvancedSimple_L1$kVTProfileLevel_MP4V_AdvancedSimple_L2$kVTProfileLevel_MP4V_AdvancedSimple_L3$kVTProfileLevel_MP4V_AdvancedSimple_L4$kVTProfileLevel_MP4V_Main_L2$kVTProfileLevel_MP4V_Main_L3$kVTProfileLevel_MP4V_Main_L4$kVTProfileLevel_MP4V_Simple_L0$kVTProfileLevel_MP4V_Simple_L1$kVTProfileLevel_MP4V_Simple_L2$kVTProfileLevel_MP4V_Simple_L3$kVTPropertyDocumentationKey$kVTPropertyReadWriteStatusKey$kVTPropertyReadWriteStatus_ReadOnly$kVTPropertyReadWriteStatus_ReadWrite$kVTPropertyShouldBeSerializedKey$kVTPropertySupportedValueListKey$kVTPropertySupportedValueMaximumKey$kVTPropertySupportedValueMinimumKey$kVTPropertyTypeKey$kVTPropertyType_Boolean$kVTPropertyType_Enumeration$kVTPropertyType_Number$kVTRotation_0$kVTRotation_180$kVTRotation_CCW90$kVTRotation_CW90$kVTSampleAttachmentKey_QualityMetrics$kVTSampleAttachmentKey_RequireLTRAcknowledgementToken$kVTSampleAttachmentQualityMetricsKey_ChromaBlueMeanSquaredError$kVTSampleAttachmentQualityMetricsKey_ChromaRedMeanSquaredError$kVTSampleAttachmentQualityMetricsKey_LumaMeanSquaredError$kVTScalingMode_CropSourceToCleanAperture$kVTScalingMode_Letterbox$kVTScalingMode_Normal$kVTScalingMode_Trim$kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder$kVTVideoDecoderSpecification_PreferredDecoderGPURegistryID$kVTVideoDecoderSpecification_RequireHardwareAcceleratedVideoDecoder$kVTVideoDecoderSpecification_RequiredDecoderGPURegistryID$kVTVideoEncoderListOption_IncludeStandardDefinitionDVEncoders$kVTVideoEncoderList_CodecName$kVTVideoEncoderList_CodecType$kVTVideoEncoderList_DisplayName$kVTVideoEncoderList_EncoderID$kVTVideoEncoderList_EncoderName$kVTVideoEncoderList_GPURegistryID$kVTVideoEncoderList_InstanceLimit$kVTVideoEncoderList_IsHardwareAccelerated$kVTVideoEncoderList_PerformanceRating$kVTVideoEncoderList_QualityRating$kVTVideoEncoderList_SupportedSelectionProperties$kVTVideoEncoderList_SupportsFrameReordering$kVTVideoEncoderList_SupportsMultiPass$kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder$kVTVideoEncoderSpecification_EnableLowLatencyRateControl$kVTVideoEncoderSpecification_EncoderID$kVTVideoEncoderSpecification_PreferredEncoderGPURegistryID$kVTVideoEncoderSpecification_RequireHardwareAcceleratedVideoEncoder$kVTVideoEncoderSpecification_RequiredEncoderGPURegistryID$"""
44
- enums = """$kVTAllocationFailedErr@-12904$kVTColorCorrectionImageRotationFailedErr@-12219$kVTColorCorrectionPixelTransferFailedErr@-12212$kVTColorSyncTransformConvertFailedErr@-12919$kVTCompressionSessionBeginFinalPass@1$kVTCouldNotCreateColorCorrectionDataErr@-12918$kVTCouldNotCreateInstanceErr@-12907$kVTCouldNotFindTemporalFilterErr@-12217$kVTCouldNotFindVideoDecoderErr@-12906$kVTCouldNotFindVideoEncoderErr@-12908$kVTCouldNotOutputTaggedBufferGroupErr@-17699$kVTDecodeFrame_1xRealTimePlayback@4$kVTDecodeFrame_DoNotOutputFrame@2$kVTDecodeFrame_EnableAsynchronousDecompression@1$kVTDecodeFrame_EnableTemporalProcessing@8$kVTDecodeInfo_Asynchronous@1$kVTDecodeInfo_FrameDropped@2$kVTDecodeInfo_ImageBufferModifiable@4$kVTDecodeInfo_SkippedLeadingFrameDropped@8$kVTEncodeInfo_Asynchronous@1$kVTEncodeInfo_FrameDropped@2$kVTExtensionDisabledErr@-17697$kVTFormatDescriptionChangeNotSupportedErr@-12916$kVTFrameSiloInvalidTimeRangeErr@-12216$kVTFrameSiloInvalidTimeStampErr@-12215$kVTImageRotationNotSupportedErr@-12914$kVTInsufficientSourceColorDataErr@-12917$kVTInvalidSessionErr@-12903$kVTMultiPassStorageIdentifierMismatchErr@-12213$kVTMultiPassStorageInvalidErr@-12214$kVTParameterErr@-12902$kVTPixelRotationNotSupportedErr@-12914$kVTPixelTransferNotPermittedErr@-12218$kVTPixelTransferNotSupportedErr@-12905$kVTPropertyNotSupportedErr@-12900$kVTPropertyReadOnlyErr@-12901$kVTSessionMalfunctionErr@-17691$kVTUnlimitedFrameDelayCount@-1$kVTVideoDecoderAuthorizationErr@-12210$kVTVideoDecoderBadDataErr@-12909$kVTVideoDecoderCallbackMessagingErr@-17695$kVTVideoDecoderMalfunctionErr@-12911$kVTVideoDecoderNeedsRosettaErr@-17692$kVTVideoDecoderNotAvailableNowErr@-12913$kVTVideoDecoderReferenceMissingErr@-17694$kVTVideoDecoderRemovedErr@-17690$kVTVideoDecoderUnknownErr@-17696$kVTVideoDecoderUnsupportedDataFormatErr@-12910$kVTVideoEncoderAuthorizationErr@-12211$kVTVideoEncoderMVHEVCVideoLayerIDsMismatchErr@-17698$kVTVideoEncoderMalfunctionErr@-12912$kVTVideoEncoderNeedsRosettaErr@-17693$kVTVideoEncoderNotAvailableNowErr@-12915$"""
43
+ constants = """$kVTAlphaChannelMode_PremultipliedAlpha$kVTAlphaChannelMode_StraightAlpha$kVTCompressionPropertyKey_AllowFrameReordering$kVTCompressionPropertyKey_AllowOpenGOP$kVTCompressionPropertyKey_AllowTemporalCompression$kVTCompressionPropertyKey_AlphaChannelMode$kVTCompressionPropertyKey_AspectRatio16x9$kVTCompressionPropertyKey_AverageBitRate$kVTCompressionPropertyKey_BaseLayerBitRateFraction$kVTCompressionPropertyKey_BaseLayerFrameRate$kVTCompressionPropertyKey_BaseLayerFrameRateFraction$kVTCompressionPropertyKey_CalculateMeanSquaredError$kVTCompressionPropertyKey_CleanAperture$kVTCompressionPropertyKey_ColorPrimaries$kVTCompressionPropertyKey_ConstantBitRate$kVTCompressionPropertyKey_ContentLightLevelInfo$kVTCompressionPropertyKey_DataRateLimits$kVTCompressionPropertyKey_Depth$kVTCompressionPropertyKey_EnableLTR$kVTCompressionPropertyKey_EncoderID$kVTCompressionPropertyKey_EstimatedAverageBytesPerFrame$kVTCompressionPropertyKey_ExpectedDuration$kVTCompressionPropertyKey_ExpectedFrameRate$kVTCompressionPropertyKey_FieldCount$kVTCompressionPropertyKey_FieldDetail$kVTCompressionPropertyKey_GammaLevel$kVTCompressionPropertyKey_H264EntropyMode$kVTCompressionPropertyKey_HDRMetadataInsertionMode$kVTCompressionPropertyKey_HasLeftStereoEyeView$kVTCompressionPropertyKey_HasRightStereoEyeView$kVTCompressionPropertyKey_HeroEye$kVTCompressionPropertyKey_HorizontalDisparityAdjustment$kVTCompressionPropertyKey_HorizontalFieldOfView$kVTCompressionPropertyKey_ICCProfile$kVTCompressionPropertyKey_MVHEVCLeftAndRightViewIDs$kVTCompressionPropertyKey_MVHEVCVideoLayerIDs$kVTCompressionPropertyKey_MVHEVCViewIDs$kVTCompressionPropertyKey_MasteringDisplayColorVolume$kVTCompressionPropertyKey_MaxAllowedFrameQP$kVTCompressionPropertyKey_MaxFrameDelayCount$kVTCompressionPropertyKey_MaxH264SliceBytes$kVTCompressionPropertyKey_MaxKeyFrameInterval$kVTCompressionPropertyKey_MaxKeyFrameIntervalDuration$kVTCompressionPropertyKey_MaximizePowerEfficiency$kVTCompressionPropertyKey_MaximumRealTimeFrameRate$kVTCompressionPropertyKey_MinAllowedFrameQP$kVTCompressionPropertyKey_MoreFramesAfterEnd$kVTCompressionPropertyKey_MoreFramesBeforeStart$kVTCompressionPropertyKey_MultiPassStorage$kVTCompressionPropertyKey_NumberOfPendingFrames$kVTCompressionPropertyKey_OutputBitDepth$kVTCompressionPropertyKey_PixelAspectRatio$kVTCompressionPropertyKey_PixelBufferPoolIsShared$kVTCompressionPropertyKey_PixelTransferProperties$kVTCompressionPropertyKey_PreserveAlphaChannel$kVTCompressionPropertyKey_PreserveDynamicHDRMetadata$kVTCompressionPropertyKey_PrioritizeEncodingSpeedOverQuality$kVTCompressionPropertyKey_ProfileLevel$kVTCompressionPropertyKey_ProgressiveScan$kVTCompressionPropertyKey_ProjectionKind$kVTCompressionPropertyKey_Quality$kVTCompressionPropertyKey_RealTime$kVTCompressionPropertyKey_RecommendedParallelizationLimit$kVTCompressionPropertyKey_RecommendedParallelizedSubdivisionMinimumDuration$kVTCompressionPropertyKey_RecommendedParallelizedSubdivisionMinimumFrameCount$kVTCompressionPropertyKey_ReferenceBufferCount$kVTCompressionPropertyKey_SourceFrameCount$kVTCompressionPropertyKey_SpatialAdaptiveQPLevel$kVTCompressionPropertyKey_StereoCameraBaseline$kVTCompressionPropertyKey_SuggestedLookAheadFrameCount$kVTCompressionPropertyKey_SupportsBaseFrameQP$kVTCompressionPropertyKey_TargetQualityForAlpha$kVTCompressionPropertyKey_TransferFunction$kVTCompressionPropertyKey_UsingGPURegistryID$kVTCompressionPropertyKey_UsingHardwareAcceleratedVideoEncoder$kVTCompressionPropertyKey_VideoEncoderPixelBufferAttributes$kVTCompressionPropertyKey_ViewPackingKind$kVTCompressionPropertyKey_YCbCrMatrix$kVTDecompressionPropertyKey_AllowBitstreamToChangeFrameDimensions$kVTDecompressionPropertyKey_ContentHasInterframeDependencies$kVTDecompressionPropertyKey_DecoderProducesRAWOutput$kVTDecompressionPropertyKey_DeinterlaceMode$kVTDecompressionPropertyKey_FieldMode$kVTDecompressionPropertyKey_GeneratePerFrameHDRDisplayMetadata$kVTDecompressionPropertyKey_MaxOutputPresentationTimeStampOfFramesBeingDecoded$kVTDecompressionPropertyKey_MaximizePowerEfficiency$kVTDecompressionPropertyKey_MinOutputPresentationTimeStampOfFramesBeingDecoded$kVTDecompressionPropertyKey_NumberOfFramesBeingDecoded$kVTDecompressionPropertyKey_OnlyTheseFrames$kVTDecompressionPropertyKey_OutputPoolRequestedMinimumBufferCount$kVTDecompressionPropertyKey_PixelBufferPool$kVTDecompressionPropertyKey_PixelBufferPoolIsShared$kVTDecompressionPropertyKey_PixelFormatsWithReducedResolutionSupport$kVTDecompressionPropertyKey_PixelTransferProperties$kVTDecompressionPropertyKey_PropagatePerFrameHDRDisplayMetadata$kVTDecompressionPropertyKey_RealTime$kVTDecompressionPropertyKey_ReducedCoefficientDecode$kVTDecompressionPropertyKey_ReducedFrameDelivery$kVTDecompressionPropertyKey_ReducedResolutionDecode$kVTDecompressionPropertyKey_RequestRAWOutput$kVTDecompressionPropertyKey_RequestedMVHEVCVideoLayerIDs$kVTDecompressionPropertyKey_SuggestedQualityOfServiceTiers$kVTDecompressionPropertyKey_SupportedPixelFormatsOrderedByPerformance$kVTDecompressionPropertyKey_SupportedPixelFormatsOrderedByQuality$kVTDecompressionPropertyKey_ThreadCount$kVTDecompressionPropertyKey_UsingGPURegistryID$kVTDecompressionPropertyKey_UsingHardwareAcceleratedVideoDecoder$kVTDecompressionProperty_DeinterlaceMode_Temporal$kVTDecompressionProperty_DeinterlaceMode_VerticalFilter$kVTDecompressionProperty_FieldMode_BothFields$kVTDecompressionProperty_FieldMode_BottomFieldOnly$kVTDecompressionProperty_FieldMode_DeinterlaceFields$kVTDecompressionProperty_FieldMode_SingleField$kVTDecompressionProperty_FieldMode_TopFieldOnly$kVTDecompressionProperty_OnlyTheseFrames_AllFrames$kVTDecompressionProperty_OnlyTheseFrames_IFrames$kVTDecompressionProperty_OnlyTheseFrames_KeyFrames$kVTDecompressionProperty_OnlyTheseFrames_NonDroppableFrames$kVTDecompressionProperty_TemporalLevelLimit$kVTDecompressionResolutionKey_Height$kVTDecompressionResolutionKey_Width$kVTDownsamplingMode_Average$kVTDownsamplingMode_Decimate$kVTEncodeFrameOptionKey_AcknowledgedLTRTokens$kVTEncodeFrameOptionKey_BaseFrameQP$kVTEncodeFrameOptionKey_ForceKeyFrame$kVTEncodeFrameOptionKey_ForceLTRRefresh$kVTExtensionProperties_CodecNameKey$kVTExtensionProperties_ContainingBundleNameKey$kVTExtensionProperties_ContainingBundleURLKey$kVTExtensionProperties_ExtensionIdentifierKey$kVTExtensionProperties_ExtensionNameKey$kVTExtensionProperties_ExtensionURLKey$kVTH264EntropyMode_CABAC$kVTH264EntropyMode_CAVLC$kVTHDRMetadataInsertionMode_Auto$kVTHDRMetadataInsertionMode_None$kVTHDRPerFrameMetadataGenerationHDRFormatType_DolbyVision$kVTHDRPerFrameMetadataGenerationOptionsKey_HDRFormats$kVTMultiPassStorageCreationOption_DoNotDelete$kVTPixelRotationPropertyKey_FlipHorizontalOrientation$kVTPixelRotationPropertyKey_FlipVerticalOrientation$kVTPixelRotationPropertyKey_Rotation$kVTPixelTransferPropertyKey_DestinationCleanAperture$kVTPixelTransferPropertyKey_DestinationColorPrimaries$kVTPixelTransferPropertyKey_DestinationICCProfile$kVTPixelTransferPropertyKey_DestinationPixelAspectRatio$kVTPixelTransferPropertyKey_DestinationTransferFunction$kVTPixelTransferPropertyKey_DestinationYCbCrMatrix$kVTPixelTransferPropertyKey_DownsamplingMode$kVTPixelTransferPropertyKey_RealTime$kVTPixelTransferPropertyKey_ScalingMode$kVTProfileLevel_H263_Profile0_Level10$kVTProfileLevel_H263_Profile0_Level45$kVTProfileLevel_H263_Profile3_Level45$kVTProfileLevel_H264_Baseline_1_3$kVTProfileLevel_H264_Baseline_3_0$kVTProfileLevel_H264_Baseline_3_1$kVTProfileLevel_H264_Baseline_3_2$kVTProfileLevel_H264_Baseline_4_0$kVTProfileLevel_H264_Baseline_4_1$kVTProfileLevel_H264_Baseline_4_2$kVTProfileLevel_H264_Baseline_5_0$kVTProfileLevel_H264_Baseline_5_1$kVTProfileLevel_H264_Baseline_5_2$kVTProfileLevel_H264_Baseline_AutoLevel$kVTProfileLevel_H264_ConstrainedBaseline_AutoLevel$kVTProfileLevel_H264_ConstrainedHigh_AutoLevel$kVTProfileLevel_H264_Extended_5_0$kVTProfileLevel_H264_Extended_AutoLevel$kVTProfileLevel_H264_High_3_0$kVTProfileLevel_H264_High_3_1$kVTProfileLevel_H264_High_3_2$kVTProfileLevel_H264_High_4_0$kVTProfileLevel_H264_High_4_1$kVTProfileLevel_H264_High_4_2$kVTProfileLevel_H264_High_5_0$kVTProfileLevel_H264_High_5_1$kVTProfileLevel_H264_High_5_2$kVTProfileLevel_H264_High_AutoLevel$kVTProfileLevel_H264_Main_3_0$kVTProfileLevel_H264_Main_3_1$kVTProfileLevel_H264_Main_3_2$kVTProfileLevel_H264_Main_4_0$kVTProfileLevel_H264_Main_4_1$kVTProfileLevel_H264_Main_4_2$kVTProfileLevel_H264_Main_5_0$kVTProfileLevel_H264_Main_5_1$kVTProfileLevel_H264_Main_5_2$kVTProfileLevel_H264_Main_AutoLevel$kVTProfileLevel_HEVC_Main10_AutoLevel$kVTProfileLevel_HEVC_Main42210_AutoLevel$kVTProfileLevel_HEVC_Main_AutoLevel$kVTProfileLevel_HEVC_Monochrome10_AutoLevel$kVTProfileLevel_HEVC_Monochrome_AutoLevel$kVTProfileLevel_MP4V_AdvancedSimple_L0$kVTProfileLevel_MP4V_AdvancedSimple_L1$kVTProfileLevel_MP4V_AdvancedSimple_L2$kVTProfileLevel_MP4V_AdvancedSimple_L3$kVTProfileLevel_MP4V_AdvancedSimple_L4$kVTProfileLevel_MP4V_Main_L2$kVTProfileLevel_MP4V_Main_L3$kVTProfileLevel_MP4V_Main_L4$kVTProfileLevel_MP4V_Simple_L0$kVTProfileLevel_MP4V_Simple_L1$kVTProfileLevel_MP4V_Simple_L2$kVTProfileLevel_MP4V_Simple_L3$kVTPropertyDocumentationKey$kVTPropertyReadWriteStatusKey$kVTPropertyReadWriteStatus_ReadOnly$kVTPropertyReadWriteStatus_ReadWrite$kVTPropertyShouldBeSerializedKey$kVTPropertySupportedValueListKey$kVTPropertySupportedValueMaximumKey$kVTPropertySupportedValueMinimumKey$kVTPropertyTypeKey$kVTPropertyType_Boolean$kVTPropertyType_Enumeration$kVTPropertyType_Number$kVTRAWProcessingParameterListElement_Description$kVTRAWProcessingParameterListElement_Label$kVTRAWProcessingParameterListElement_ListElementID$kVTRAWProcessingParameterValueType_Boolean$kVTRAWProcessingParameterValueType_Float$kVTRAWProcessingParameterValueType_Integer$kVTRAWProcessingParameterValueType_List$kVTRAWProcessingParameterValueType_SubGroup$kVTRAWProcessingParameter_CameraValue$kVTRAWProcessingParameter_CurrentValue$kVTRAWProcessingParameter_Description$kVTRAWProcessingParameter_Enabled$kVTRAWProcessingParameter_InitialValue$kVTRAWProcessingParameter_Key$kVTRAWProcessingParameter_ListArray$kVTRAWProcessingParameter_MaximumValue$kVTRAWProcessingParameter_MinimumValue$kVTRAWProcessingParameter_Name$kVTRAWProcessingParameter_NeutralValue$kVTRAWProcessingParameter_SubGroup$kVTRAWProcessingParameter_ValueType$kVTRAWProcessingPropertyKey_MetalDeviceRegistryID$kVTRAWProcessingPropertyKey_OutputColorAttachments$kVTRotation_0$kVTRotation_180$kVTRotation_CCW90$kVTRotation_CW90$kVTSampleAttachmentKey_QualityMetrics$kVTSampleAttachmentKey_RequireLTRAcknowledgementToken$kVTSampleAttachmentQualityMetricsKey_ChromaBlueMeanSquaredError$kVTSampleAttachmentQualityMetricsKey_ChromaRedMeanSquaredError$kVTSampleAttachmentQualityMetricsKey_LumaMeanSquaredError$kVTScalingMode_CropSourceToCleanAperture$kVTScalingMode_Letterbox$kVTScalingMode_Normal$kVTScalingMode_Trim$kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder$kVTVideoDecoderSpecification_PreferredDecoderGPURegistryID$kVTVideoDecoderSpecification_RequireHardwareAcceleratedVideoDecoder$kVTVideoDecoderSpecification_RequiredDecoderGPURegistryID$kVTVideoEncoderListOption_IncludeStandardDefinitionDVEncoders$kVTVideoEncoderList_CodecName$kVTVideoEncoderList_CodecType$kVTVideoEncoderList_DisplayName$kVTVideoEncoderList_EncoderID$kVTVideoEncoderList_EncoderName$kVTVideoEncoderList_GPURegistryID$kVTVideoEncoderList_InstanceLimit$kVTVideoEncoderList_IsHardwareAccelerated$kVTVideoEncoderList_PerformanceRating$kVTVideoEncoderList_QualityRating$kVTVideoEncoderList_SupportedSelectionProperties$kVTVideoEncoderList_SupportsFrameReordering$kVTVideoEncoderList_SupportsMultiPass$kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder$kVTVideoEncoderSpecification_EnableLowLatencyRateControl$kVTVideoEncoderSpecification_EncoderID$kVTVideoEncoderSpecification_PreferredEncoderGPURegistryID$kVTVideoEncoderSpecification_RequireHardwareAcceleratedVideoEncoder$kVTVideoEncoderSpecification_RequiredEncoderGPURegistryID$"""
44
+ enums = """$kVTAllocationFailedErr@-12904$kVTColorCorrectionImageRotationFailedErr@-12219$kVTColorCorrectionPixelTransferFailedErr@-12212$kVTColorSyncTransformConvertFailedErr@-12919$kVTCompressionSessionBeginFinalPass@1$kVTCouldNotCreateColorCorrectionDataErr@-12918$kVTCouldNotCreateInstanceErr@-12907$kVTCouldNotFindExtensionErr@-19510$kVTCouldNotFindTemporalFilterErr@-12217$kVTCouldNotFindVideoDecoderErr@-12906$kVTCouldNotFindVideoEncoderErr@-12908$kVTCouldNotOutputTaggedBufferGroupErr@-17699$kVTDecodeFrame_1xRealTimePlayback@4$kVTDecodeFrame_DoNotOutputFrame@2$kVTDecodeFrame_EnableAsynchronousDecompression@1$kVTDecodeFrame_EnableTemporalProcessing@8$kVTDecodeInfo_Asynchronous@1$kVTDecodeInfo_FrameDropped@2$kVTDecodeInfo_ImageBufferModifiable@4$kVTDecodeInfo_SkippedLeadingFrameDropped@8$kVTEncodeInfo_Asynchronous@1$kVTEncodeInfo_FrameDropped@2$kVTExtensionConflictErr@-19511$kVTExtensionDisabledErr@-17697$kVTFormatDescriptionChangeNotSupportedErr@-12916$kVTFrameSiloInvalidTimeRangeErr@-12216$kVTFrameSiloInvalidTimeStampErr@-12215$kVTImageRotationNotSupportedErr@-12914$kVTInsufficientSourceColorDataErr@-12917$kVTInvalidSessionErr@-12903$kVTMultiPassStorageIdentifierMismatchErr@-12213$kVTMultiPassStorageInvalidErr@-12214$kVTParameterErr@-12902$kVTPixelRotationNotSupportedErr@-12914$kVTPixelTransferNotPermittedErr@-12218$kVTPixelTransferNotSupportedErr@-12905$kVTPropertyNotSupportedErr@-12900$kVTPropertyReadOnlyErr@-12901$kVTQPModulationLevel_Default@-1$kVTQPModulationLevel_Disable@0$kVTSessionMalfunctionErr@-17691$kVTUnlimitedFrameDelayCount@-1$kVTVideoDecoderAuthorizationErr@-12210$kVTVideoDecoderBadDataErr@-12909$kVTVideoDecoderCallbackMessagingErr@-17695$kVTVideoDecoderMalfunctionErr@-12911$kVTVideoDecoderNeedsRosettaErr@-17692$kVTVideoDecoderNotAvailableNowErr@-12913$kVTVideoDecoderReferenceMissingErr@-17694$kVTVideoDecoderRemovedErr@-17690$kVTVideoDecoderUnknownErr@-17696$kVTVideoDecoderUnsupportedDataFormatErr@-12910$kVTVideoEncoderAuthorizationErr@-12211$kVTVideoEncoderMVHEVCVideoLayerIDsMismatchErr@-17698$kVTVideoEncoderMalfunctionErr@-12912$kVTVideoEncoderNeedsRosettaErr@-17693$kVTVideoEncoderNotAvailableNowErr@-12915$"""
45
45
  misc.update(
46
46
  {
47
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionProperties.h:507:1)": NewType(
48
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionProperties.h:507:1)",
49
- int,
50
- ),
51
47
  "VTDecodeInfoFlags": NewType("VTDecodeInfoFlags", int),
52
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h:24:1)": NewType(
53
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h:24:1)",
54
- int,
55
- ),
56
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionProperties.h:507:1)": NewType(
57
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionProperties.h:507:1)",
58
- int,
59
- ),
60
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h:24:1)": NewType(
61
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h:24:1)",
62
- int,
63
- ),
64
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h:24:1)": NewType(
65
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTErrors.h:24:1)",
66
- int,
67
- ),
48
+ "VTDecodeFrameFlags": NewType("VTDecodeFrameFlags", int),
49
+ "VTEncodeInfoFlags": NewType("VTEncodeInfoFlags", int),
68
50
  "VTCompressionSessionOptionFlags": NewType(
69
51
  "VTCompressionSessionOptionFlags", int
70
52
  ),
71
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionProperties.h:507:1)": NewType(
72
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/VideoToolbox.framework/Headers/VTCompressionProperties.h:507:1)",
73
- int,
53
+ }
54
+ )
55
+ misc.update(
56
+ {
57
+ "VTHDRPerFrameMetadataGenerationHDRFormatType": NewType(
58
+ "VTHDRPerFrameMetadataGenerationHDRFormatType", str
74
59
  ),
75
- "VTDecodeFrameFlags": NewType("VTDecodeFrameFlags", int),
76
- "VTEncodeInfoFlags": NewType("VTEncodeInfoFlags", int),
60
+ "VTExtensionPropertiesKey": NewType("VTExtensionPropertiesKey", str),
77
61
  }
78
62
  )
79
63
  misc.update({})
80
- misc.update({})
81
64
  functions = {
82
65
  "VTPixelTransferSessionCreate": (
83
66
  b"i^{__CFAllocator=}^^{OpaqueVTPixelTransferSession=}",
@@ -95,7 +78,11 @@ functions = {
95
78
  "arguments": {2: {"already_cfretained": True, "type_modifier": "o"}},
96
79
  },
97
80
  ),
98
- "VTMultiPassStorageGetTypeID": (b"Q",),
81
+ "VTCompressionSessionEndPass": (
82
+ b"i^{OpaqueVTCompressionSession=}^Z^I",
83
+ "",
84
+ {"arguments": {1: {"type_modifier": "o"}, 2: {"type_modifier": "o"}}},
85
+ ),
99
86
  "VTDecompressionSessionFinishDelayedFrames": (
100
87
  b"i^{OpaqueVTDecompressionSession=}",
101
88
  ),
@@ -115,6 +102,7 @@ functions = {
115
102
  "arguments": {1: {"already_cfretained": True, "type_modifier": "o"}},
116
103
  },
117
104
  ),
105
+ "VTHDRPerFrameMetadataGenerationSessionGetTypeID": (b"Q",),
118
106
  "VTCompressionSessionEncodeMultiImageFrameWithOutputHandler": (
119
107
  b"i^{OpaqueVTCompressionSession=}^{OpaqueCMTaggedBufferGroup=}{CMTime=qiIq}{CMTime=qiIq}^{__CFDictionary=}^I@?",
120
108
  "",
@@ -166,6 +154,20 @@ functions = {
166
154
  "VTIsHardwareDecodeSupported": (b"ZI",),
167
155
  "VTCompressionSessionPrepareToEncodeFrames": (b"i^{OpaqueVTCompressionSession=}",),
168
156
  "VTCompressionSessionInvalidate": (b"v^{OpaqueVTCompressionSession=}",),
157
+ "VTRAWProcessingSessionSetParameterChangedHander": (
158
+ b"i^{OpaqueVTRAWProcessingSession=}@?",
159
+ "",
160
+ {
161
+ "arguments": {
162
+ 1: {
163
+ "callable": {
164
+ "retval": {"type": b"v"},
165
+ "arguments": {0: {"type": "^v"}, 1: {"type": "@"}},
166
+ }
167
+ }
168
+ }
169
+ },
170
+ ),
169
171
  "VTPixelRotationSessionGetTypeID": (b"Q",),
170
172
  "VTCompressionSessionCompleteFrames": (
171
173
  b"i^{OpaqueVTCompressionSession=}{CMTime=qiIq}",
@@ -201,12 +203,38 @@ functions = {
201
203
  "arguments": {3: {"already_cfretained": True, "type_modifier": "o"}},
202
204
  },
203
205
  ),
206
+ "VTCopyRAWProcessorExtensionProperties": (
207
+ b"i^{opaqueCMFormatDescription=}^^{__CFDictionary=}",
208
+ "",
209
+ {
210
+ "retval": {"already_cfretained": True},
211
+ "arguments": {1: {"already_cfretained": True, "type_modifier": "o"}},
212
+ },
213
+ ),
204
214
  "VTCompressionSessionBeginPass": (
205
215
  b"i^{OpaqueVTCompressionSession=}I^I",
206
216
  "",
207
217
  {"arguments": {2: {"type_modifier": "o"}}},
208
218
  ),
209
219
  "VTRegisterProfessionalVideoWorkflowVideoDecoders": (b"v",),
220
+ "VTRAWProcessingSessionProcessFrame": (
221
+ b"i^{OpaqueVTRAWProcessingSession=}^{__CVBuffer=}^{__CFDictionary=}@?",
222
+ "",
223
+ {
224
+ "arguments": {
225
+ 3: {
226
+ "callable": {
227
+ "retval": {"type": b"v"},
228
+ "arguments": {
229
+ 0: {"type": "^v"},
230
+ 1: {"type": "i"},
231
+ 2: {"type": "@"},
232
+ },
233
+ }
234
+ }
235
+ }
236
+ },
237
+ ),
210
238
  "VTDecompressionSessionDecodeFrame": (
211
239
  b"i^{OpaqueVTDecompressionSession=}^{opaqueCMSampleBuffer=}I^v^I",
212
240
  "",
@@ -218,6 +246,7 @@ functions = {
218
246
  "",
219
247
  {"arguments": {6: {"type_modifier": "o"}}},
220
248
  ),
249
+ "VTRAWProcessingSessionCompleteFrames": (b"i^{OpaqueVTRAWProcessingSession=}",),
221
250
  "VTCompressionSessionEncodeFrameWithOutputHandler": (
222
251
  b"i^{OpaqueVTCompressionSession=}^{__CVBuffer=}{CMTime=qiIq}{CMTime=qiIq}^{__CFDictionary=}^I@?",
223
252
  "",
@@ -251,6 +280,14 @@ functions = {
251
280
  },
252
281
  },
253
282
  ),
283
+ "VTHDRPerFrameMetadataGenerationSessionCreate": (
284
+ b"i^{__CFAllocator=}f^{__CFDictionary=}^^{OpaqueVTHDRPerFrameMetadataGenerationSession=}",
285
+ "",
286
+ {
287
+ "retval": {"already_cfretained": True},
288
+ "arguments": {3: {"already_cfretained": True, "type_modifier": "o"}},
289
+ },
290
+ ),
254
291
  "VTPixelRotationSessionRotateImage": (
255
292
  b"i^{OpaqueVTPixelRotationSession=}^{__CVBuffer=}^{__CVBuffer=}",
256
293
  ),
@@ -276,6 +313,7 @@ functions = {
276
313
  }
277
314
  },
278
315
  ),
316
+ "VTMultiPassStorageGetTypeID": (b"Q",),
279
317
  "VTDecompressionSessionCopyBlackPixelBuffer": (
280
318
  b"i^{OpaqueVTDecompressionSession=}^^{__CVBuffer=}",
281
319
  "",
@@ -284,6 +322,15 @@ functions = {
284
322
  "arguments": {1: {"already_cfretained": True, "type_modifier": "o"}},
285
323
  },
286
324
  ),
325
+ "VTRAWProcessingSessionCreate": (
326
+ b"i^{__CFAllocator=}^{opaqueCMFormatDescription=}^{__CFDictionary=}^{__CFDictionary=}^^{OpaqueVTRAWProcessingSession=}",
327
+ "",
328
+ {
329
+ "retval": {"already_cfretained": True},
330
+ "arguments": {4: {"already_cfretained": True, "type_modifier": "o"}},
331
+ },
332
+ ),
333
+ "VTRAWProcessingSessionGetTypeID": (b"Q",),
287
334
  "VTDecompressionSessionCanAcceptFormatDescription": (
288
335
  b"Z^{OpaqueVTDecompressionSession=}^{opaqueCMFormatDescription=}",
289
336
  ),
@@ -313,6 +360,9 @@ functions = {
313
360
  "",
314
361
  {"arguments": {2: {"c_array_length_in_arg": 1, "type_modifier": "n"}}},
315
362
  ),
363
+ "VTHDRPerFrameMetadataGenerationSessionAttachMetadata": (
364
+ b"i^{OpaqueVTHDRPerFrameMetadataGenerationSession=}^{__CVBuffer=}Z",
365
+ ),
316
366
  "VTPixelRotationSessionInvalidate": (b"v^{OpaqueVTPixelRotationSession=}",),
317
367
  "VTFrameSiloCallBlockForEachSampleBuffer": (
318
368
  b"i^{OpaqueVTFrameSilo=}{CMTimeRange={CMTime=qiIq}{CMTime=qiIq}}@?",
@@ -323,19 +373,23 @@ functions = {
323
373
  "callable": {
324
374
  "retval": {"type": b"i"},
325
375
  "arguments": {
326
- 0: {"type": "^v"},
327
- 1: {"type": "^{opaqueCMSampleBuffer=}"},
376
+ 0: {"type": b"^v"},
377
+ 1: {"type": b"^{opaqueCMSampleBuffer=}"},
328
378
  },
329
- },
330
- "block": {
331
- "retval": {"type": b"i"},
332
- "arguments": {0: {"type": b"^{opaqueCMSampleBuffer=}"}},
333
- },
379
+ }
334
380
  }
335
381
  }
336
382
  },
337
383
  ),
338
384
  "VTPixelTransferSessionInvalidate": (b"v^{OpaqueVTPixelTransferSession=}",),
385
+ "VTRAWProcessingSessionCopyProcessingParameters": (
386
+ b"i^{OpaqueVTRAWProcessingSession=}^^{__CFArray=}",
387
+ "",
388
+ {
389
+ "retval": {"already_cfretained": True},
390
+ "arguments": {1: {"already_cfretained": True, "type_modifier": "o"}},
391
+ },
392
+ ),
339
393
  "VTDecompressionSessionDecodeFrameWithOutputHandler": (
340
394
  b"i^{OpaqueVTDecompressionSession=}^{opaqueCMSampleBuffer=}I^I@?",
341
395
  "",
@@ -358,11 +412,15 @@ functions = {
358
412
  }
359
413
  },
360
414
  ),
361
- "VTCompressionSessionEndPass": (
362
- b"i^{OpaqueVTCompressionSession=}^Z^I",
415
+ "VTCopyVideoDecoderExtensionProperties": (
416
+ b"i^{opaqueCMFormatDescription=}^^{__CFDictionary=}",
363
417
  "",
364
- {"arguments": {1: {"type_modifier": "o"}, 2: {"type_modifier": "o"}}},
418
+ {
419
+ "retval": {"already_cfretained": True},
420
+ "arguments": {1: {"already_cfretained": True, "type_modifier": "o"}},
421
+ },
365
422
  ),
423
+ "VTRAWProcessingSessionInvalidate": (b"v^{OpaqueVTRAWProcessingSession=}",),
366
424
  "VTCompressionSessionEncodeFrame": (
367
425
  b"i^{OpaqueVTCompressionSession=}^{__CVBuffer=}{CMTime=qiIq}{CMTime=qiIq}^{__CFDictionary=}^v^I",
368
426
  "",
@@ -394,6 +452,9 @@ functions = {
394
452
  },
395
453
  ),
396
454
  "VTIsStereoMVHEVCEncodeSupported": (b"Z",),
455
+ "VTRAWProcessingSessionSetProcessingParameters": (
456
+ b"i^{OpaqueVTRAWProcessingSession=}^{__CFDictionary=}",
457
+ ),
397
458
  "VTCompressionSessionCreate": (
398
459
  b"i^{__CFAllocator=}iiI^{__CFDictionary=}^{__CFDictionary=}^{__CFAllocator=}^?^v^^{OpaqueVTCompressionSession=}",
399
460
  "",
@@ -411,7 +472,8 @@ functions = {
411
472
  3: {"type": b"I"},
412
473
  4: {"type": b"^{opaqueCMSampleBuffer=}"},
413
474
  },
414
- }
475
+ },
476
+ "callable_retained": True,
415
477
  },
416
478
  },
417
479
  },
@@ -419,31 +481,43 @@ functions = {
419
481
  }
420
482
  aliases = {"VT_SUPPORT_COLORSYNC_PIXEL_TRANSFER": "COREMEDIA_TRUE"}
421
483
  cftypes = [
422
- (
423
- "VTDecompressionSessionRef",
424
- b"^{OpaqueVTDecompressionSession=}",
425
- ":VTDecompressionSessionGetTypeID",
426
- None,
427
- ),
428
484
  (
429
485
  "VTMultiPassStorageRef",
430
486
  b"^{OpaqueVTMultiPassStorage=}",
431
487
  ":VTMultiPassStorageGetTypeID",
432
488
  None,
433
489
  ),
490
+ (
491
+ "VTRAWProcessingSessionRef",
492
+ b"^{OpaqueVTRAWProcessingSession=}",
493
+ "VTRAWProcessingSessionGetTypeID",
494
+ None,
495
+ ),
496
+ (
497
+ "VTDecompressionSessionRef",
498
+ b"^{OpaqueVTDecompressionSession=}",
499
+ ":VTDecompressionSessionGetTypeID",
500
+ None,
501
+ ),
434
502
  (
435
503
  "VTPixelTransferSessionRef",
436
504
  b"^{OpaqueVTPixelTransferSession=}",
437
505
  "VTPixelTransferSessionGetTypeID",
438
506
  None,
439
507
  ),
440
- ("VTFrameSiloRef", b"^{OpaqueVTFrameSilo=}", ":VTFrameSiloGetTypeID", None),
508
+ (
509
+ "VTHDRPerFrameMetadataGenerationSessionRef",
510
+ b"^{OpaqueVTHDRPerFrameMetadataGenerationSession=}",
511
+ "VTHDRPerFrameMetadataGenerationSessionGetTypeID",
512
+ None,
513
+ ),
441
514
  (
442
515
  "VTPixelRotationSessionRef",
443
516
  b"^{OpaqueVTPixelRotationSession=}",
444
517
  "VTPixelRotationSessionGetTypeID",
445
518
  None,
446
519
  ),
520
+ ("VTFrameSiloRef", b"^{OpaqueVTFrameSilo=}", ":VTFrameSiloGetTypeID", None),
447
521
  ("VTSessionRef", b"^{OpaqueVTSession=}", ":VTSessionGetTypeID", None),
448
522
  ]
449
523
  expressions = {}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobjc-framework-VideoToolbox
3
- Version: 10.2
3
+ Version: 11.0
4
4
  Summary: Wrappers for the framework VideoToolbox on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -18,22 +18,22 @@ Classifier: Operating System :: MacOS :: MacOS X
18
18
  Classifier: Programming Language :: Python
19
19
  Classifier: Programming Language :: Python :: 3
20
20
  Classifier: Programming Language :: Python :: 3 :: Only
21
- Classifier: Programming Language :: Python :: 3.8
22
21
  Classifier: Programming Language :: Python :: 3.9
23
22
  Classifier: Programming Language :: Python :: 3.10
24
23
  Classifier: Programming Language :: Python :: 3.11
25
24
  Classifier: Programming Language :: Python :: 3.12
26
25
  Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
27
  Classifier: Programming Language :: Python :: Implementation :: CPython
28
28
  Classifier: Programming Language :: Objective C
29
29
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
30
30
  Classifier: Topic :: Software Development :: User Interfaces
31
- Requires-Python: >=3.8
31
+ Requires-Python: >=3.9
32
32
  Description-Content-Type: text/x-rst; charset=UTF-8
33
- Requires-Dist: pyobjc-core>=10.2
34
- Requires-Dist: pyobjc-framework-Cocoa>=10.2
35
- Requires-Dist: pyobjc-framework-Quartz>=10.2
36
- Requires-Dist: pyobjc-framework-CoreMedia>=10.2
33
+ Requires-Dist: pyobjc-core>=11.0
34
+ Requires-Dist: pyobjc-framework-Cocoa>=11.0
35
+ Requires-Dist: pyobjc-framework-Quartz>=11.0
36
+ Requires-Dist: pyobjc-framework-CoreMedia>=11.0
37
37
  Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
38
38
  Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
39
39
  Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
@@ -9,6 +9,7 @@ Lib/pyobjc_framework_VideoToolbox.egg-info/PKG-INFO
9
9
  Lib/pyobjc_framework_VideoToolbox.egg-info/SOURCES.txt
10
10
  Lib/pyobjc_framework_VideoToolbox.egg-info/dependency_links.txt
11
11
  Lib/pyobjc_framework_VideoToolbox.egg-info/not-zip-safe
12
+ Lib/pyobjc_framework_VideoToolbox.egg-info/pyobjc-build-info.txt
12
13
  Lib/pyobjc_framework_VideoToolbox.egg-info/requires.txt
13
14
  Lib/pyobjc_framework_VideoToolbox.egg-info/top_level.txt
14
15
  Modules/_VideoToolbox.m
@@ -23,29 +24,28 @@ PyObjCTest/test_vtdecompressionproperties.py
23
24
  PyObjCTest/test_vtdecompressionsession.py
24
25
  PyObjCTest/test_vterrors.py
25
26
  PyObjCTest/test_vtframesilo.py
27
+ PyObjCTest/test_vthdrperframemetadatagenerationsession.py
26
28
  PyObjCTest/test_vtmultipassstorage.py
27
29
  PyObjCTest/test_vtpixelrotationproperties.py
28
30
  PyObjCTest/test_vtpixelrotationsession.py
29
31
  PyObjCTest/test_vtpixeltransferproperties.py
30
32
  PyObjCTest/test_vtpixeltransfersession.py
31
33
  PyObjCTest/test_vtprofessionalvideoworkflow.py
34
+ PyObjCTest/test_vtrawprocessingproperties.py
35
+ PyObjCTest/test_vtrawprocessingsession.py
32
36
  PyObjCTest/test_vtsession.py
33
37
  PyObjCTest/test_vtutilities.py
34
38
  PyObjCTest/test_vtvideoencoderlist.py
35
39
  metadata/VideoToolbox.fwinfo
36
40
  metadata/metadata.ini
37
- metadata/raw/arm64-12.0.fwinfo
38
41
  metadata/raw/arm64-12.3.fwinfo
39
42
  metadata/raw/arm64-13.0.fwinfo
40
- metadata/raw/arm64-14.0.fwinfo
41
- metadata/raw/arm64-14.2.fwinfo
42
- metadata/raw/arm64-14.4.fwinfo
43
+ metadata/raw/arm64-14.5.fwinfo
44
+ metadata/raw/arm64-15.0.fwinfo
43
45
  metadata/raw/x86_64-10.14.fwinfo
44
46
  metadata/raw/x86_64-10.15.fwinfo
45
47
  metadata/raw/x86_64-10.16.fwinfo
46
- metadata/raw/x86_64-12.0.fwinfo
47
48
  metadata/raw/x86_64-12.3.fwinfo
48
49
  metadata/raw/x86_64-13.0.fwinfo
49
- metadata/raw/x86_64-14.0.fwinfo
50
- metadata/raw/x86_64-14.2.fwinfo
51
- metadata/raw/x86_64-14.4.fwinfo
50
+ metadata/raw/x86_64-14.5.fwinfo
51
+ metadata/raw/x86_64-15.0.fwinfo
@@ -0,0 +1,3 @@
1
+ macOS 15.3 (24D5040f)
2
+ Apple clang version 16.0.0 (clang-1600.0.26.6)
3
+ SDK: macOS 15.2
@@ -0,0 +1,4 @@
1
+ pyobjc-core>=11.0
2
+ pyobjc-framework-Cocoa>=11.0
3
+ pyobjc-framework-Quartz>=11.0
4
+ pyobjc-framework-CoreMedia>=11.0
@@ -1,4 +1,3 @@
1
- #define Py_LIMITED_API 0x03060000
2
1
  #define PY_SSIZE_T_CLEAN
3
2
  #include "Python.h"
4
3
  #include "pyobjc-api.h"
@@ -144,22 +143,56 @@ static PyMethodDef mod_methods[] = {
144
143
  {0, 0, 0, 0} /* sentinel */
145
144
  };
146
145
 
147
- /* Python glue */
146
+ static int mod_exec_module(PyObject* m)
147
+ {
148
+ if (PyObjC_ImportAPI(m) == -1)
149
+ return -1;
150
+ return 0;
151
+ }
152
+
153
+ static struct PyModuleDef_Slot mod_slots[] = {
154
+ {
155
+ .slot = Py_mod_exec,
156
+ .value = (void*)mod_exec_module
157
+ },
158
+ #if PY_VERSION_HEX >= 0x030c0000
159
+ {
160
+ /* This extension does not use the CPython API other than initializing
161
+ * the module, hence is safe with subinterpreters and per-interpreter
162
+ * GILs
163
+ */
164
+ .slot = Py_mod_multiple_interpreters,
165
+ .value = Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED,
166
+ },
167
+ #endif
168
+ #if PY_VERSION_HEX >= 0x030d0000
169
+ {
170
+ /* The code in this extension should be safe to use without the GIL */
171
+ .slot = Py_mod_gil,
172
+ .value = Py_MOD_GIL_NOT_USED,
173
+ },
174
+ #endif
175
+ { /* Sentinel */
176
+ .slot = 0,
177
+ .value = 0
178
+ }
179
+ };
180
+
148
181
  static struct PyModuleDef mod_module = {
149
- PyModuleDef_HEAD_INIT, "_VideoToolbox", NULL, 0, mod_methods, NULL, NULL, NULL, NULL};
182
+ .m_base = PyModuleDef_HEAD_INIT,
183
+ .m_name = "_VideoToolbox",
184
+ .m_doc = NULL,
185
+ .m_size = 0,
186
+ .m_methods = mod_methods,
187
+ .m_slots = mod_slots,
188
+ .m_traverse = NULL,
189
+ .m_clear = NULL,
190
+ .m_free = NULL,
191
+ };
150
192
 
151
193
  PyObject* PyInit__VideoToolbox(void);
152
194
 
153
195
  PyObject* __attribute__((__visibility__("default"))) PyInit__VideoToolbox(void)
154
196
  {
155
- PyObject* m;
156
- m = PyModule_Create(&mod_module);
157
- if (!m) {
158
- return NULL;
159
- }
160
-
161
- if (PyObjC_ImportAPI(m) == -1)
162
- return NULL;
163
-
164
- return m;
197
+ return PyModuleDef_Init(&mod_module);
165
198
  }
@@ -83,7 +83,7 @@ struct pyobjc_api {
83
83
  PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
84
84
  PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
85
85
  size_t);
86
- void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state);
86
+ void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
87
87
  int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
88
88
  void (*_Nonnull free_c_array)(int, Py_buffer*);
89
89
  int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
@@ -11,6 +11,12 @@
11
11
 
12
12
  NS_ASSUME_NONNULL_BEGIN
13
13
 
14
+ #ifdef USE_STATIC_ANALYZER
15
+ #define CLANG_SUPPRESS [[clang::suppress]]
16
+ #else
17
+ #define CLANG_SUPPRESS
18
+ #endif
19
+
14
20
  /*
15
21
  *
16
22
  * Start of compiler definitions
@@ -153,10 +159,6 @@ extern PyObject* _Nullable PyObject_VectorcallMethod(
153
159
 
154
160
  extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
155
161
 
156
- extern PyObject* _Nullable PyObjCBytes_InternFromString(const char* v);
157
- extern PyObject* _Nullable PyObjCBytes_InternFromStringAndSize(const char* v,
158
- Py_ssize_t l);
159
-
160
162
  /*
161
163
  * A micro optimization: when using Python 3.3 or later it
162
164
  * is possible to access a 'char*' with an ASCII representation
@@ -238,7 +240,80 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
238
240
  PyGILState_Release(_GILState); \
239
241
  } while (0)
240
242
 
241
- extern PyObject* _Nullable PyObjC_get_tp_dict(PyTypeObject* _Nonnull tp);
243
+ #if PY_VERSION_HEX < 0x030a0000
244
+
245
+ static inline PyObject* Py_NewRef(PyObject* o)
246
+ {
247
+ Py_INCREF(o);
248
+ return o;
249
+ }
250
+
251
+ static inline PyObject* Py_XNewRef(PyObject* o)
252
+ {
253
+ Py_XINCREF(o);
254
+ return o;
255
+ }
256
+
257
+ #endif /* PY_VERSION_HEX < 0x030a0000 */
258
+
259
+ #if PY_VERSION_HEX < 0x030d0000
260
+ #define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
261
+ #define Py_END_CRITICAL_SECTION() }
262
+ #define Py_EXIT_CRITICAL_SECTION() ((void)0)
263
+
264
+ #define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
265
+ #define Py_END_CRITICAL_SECTION2() }
266
+ #define Py_EXIT_CRITICAL_SECTION2() ((void)0)
267
+
268
+ #define PyObjC_ATOMIC
269
+
270
+ #else
271
+
272
+ #ifdef Py_GIL_DISABLED
273
+ #define Py_EXIT_CRITICAL_SECTION() PyCriticalSection_End(&_py_cs)
274
+ #define Py_EXIT_CRITICAL_SECTION2() PyCriticalSection2_End(&_py_cs2)
275
+ #define PyObjC_ATOMIC _Atomic
276
+ #else
277
+ #define Py_EXIT_CRITICAL_SECTION() ((void)0)
278
+ #define Py_EXIT_CRITICAL_SECTION2() ((void)0)
279
+ #define PyObjC_ATOMIC
280
+ #endif
281
+
282
+ #endif
283
+
284
+ #if PY_VERSION_HEX < 0x030d0000
285
+ static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
286
+ {
287
+ *result = PyDict_GetItemWithError(p, key);
288
+ if (*result == NULL) {
289
+ if (PyErr_Occurred()) {
290
+ return -1;
291
+ } else {
292
+ return 0;
293
+ }
294
+ } else {
295
+ Py_INCREF(*result);
296
+ return 1;
297
+ }
298
+ }
299
+
300
+ static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
301
+ {
302
+ PyObject* result = PyList_GetItem(l, i);
303
+ Py_XINCREF(result);
304
+ return result;
305
+ }
306
+ #endif
307
+
308
+ #if PY_VERSION_HEX < 0x030c0000
309
+ static inline PyObject* PyType_GetDict(PyTypeObject* type)
310
+ {
311
+ PyObject* result = type->tp_dict;
312
+ Py_INCREF(result);
313
+ return result;
314
+ }
315
+ #endif
316
+
242
317
 
243
318
  NS_ASSUME_NONNULL_END
244
319