pyobjc-framework-IOSurface 10.1__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 (36) hide show
  1. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/Lib/IOSurface/_metadata.py +9 -14
  2. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/Lib/pyobjc_framework_IOSurface.egg-info/PKG-INFO +5 -5
  3. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/Lib/pyobjc_framework_IOSurface.egg-info/SOURCES.txt +6 -4
  4. pyobjc_framework_iosurface-11.0/Lib/pyobjc_framework_IOSurface.egg-info/pyobjc-build-info.txt +3 -0
  5. pyobjc_framework_iosurface-11.0/Lib/pyobjc_framework_IOSurface.egg-info/requires.txt +2 -0
  6. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/License.txt +1 -1
  7. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/PKG-INFO +5 -5
  8. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/PyObjCTest/test_iosurfaceapi.py +2 -2
  9. pyobjc_framework_iosurface-11.0/PyObjCTest/test_iosurfaceref.py +154 -0
  10. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/metadata/IOSurface.fwinfo +2 -2
  11. pyobjc-framework-IOSurface-10.1/metadata/raw/arm64-14.0.fwinfo → pyobjc_framework_iosurface-11.0/metadata/raw/arm64-14.5.fwinfo +38 -7
  12. pyobjc_framework_iosurface-11.0/metadata/raw/arm64-15.0.fwinfo +928 -0
  13. pyobjc-framework-IOSurface-10.1/metadata/raw/x86_64-14.0.fwinfo → pyobjc_framework_iosurface-11.0/metadata/raw/x86_64-14.5.fwinfo +38 -7
  14. pyobjc_framework_iosurface-11.0/metadata/raw/x86_64-15.0.fwinfo +928 -0
  15. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/pyobjc_setup.py +121 -27
  16. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/setup.py +1 -1
  17. pyobjc-framework-IOSurface-10.1/Lib/pyobjc_framework_IOSurface.egg-info/requires.txt +0 -2
  18. pyobjc-framework-IOSurface-10.1/metadata/raw/arm64-12.0.fwinfo +0 -855
  19. pyobjc-framework-IOSurface-10.1/metadata/raw/x86_64-12.0.fwinfo +0 -855
  20. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/Lib/IOSurface/__init__.py +0 -0
  21. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/Lib/pyobjc_framework_IOSurface.egg-info/dependency_links.txt +0 -0
  22. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/Lib/pyobjc_framework_IOSurface.egg-info/not-zip-safe +0 -0
  23. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/Lib/pyobjc_framework_IOSurface.egg-info/top_level.txt +0 -0
  24. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/MANIFEST.in +0 -0
  25. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/PyObjCTest/__init__.py +0 -0
  26. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/PyObjCTest/test_iosurface.py +0 -0
  27. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/PyObjCTest/test_iosurfaceobjc.py +0 -0
  28. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/metadata/metadata.ini +0 -0
  29. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/metadata/raw/arm64-12.3.fwinfo +0 -0
  30. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/metadata/raw/arm64-13.0.fwinfo +0 -0
  31. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/metadata/raw/x86_64-10.10.fwinfo +0 -0
  32. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/metadata/raw/x86_64-10.16.fwinfo +0 -0
  33. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/metadata/raw/x86_64-12.3.fwinfo +0 -0
  34. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/metadata/raw/x86_64-13.0.fwinfo +0 -0
  35. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/pyproject.toml +0 -0
  36. {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-11.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Sat Jul 1 14:09:30 2023
3
+ # Last update: Tue Jun 11 10:12:28 2024
4
4
  #
5
5
  # flake8: noqa
6
6
 
@@ -30,24 +30,18 @@ else:
30
30
 
31
31
 
32
32
  misc = {}
33
- constants = """$IOSurfacePropertyAllocSizeKey$IOSurfacePropertyKeyAllocSize$IOSurfacePropertyKeyBytesPerElement$IOSurfacePropertyKeyBytesPerRow$IOSurfacePropertyKeyCacheMode$IOSurfacePropertyKeyElementHeight$IOSurfacePropertyKeyElementWidth$IOSurfacePropertyKeyHeight$IOSurfacePropertyKeyName$IOSurfacePropertyKeyOffset$IOSurfacePropertyKeyPixelFormat$IOSurfacePropertyKeyPixelSizeCastingAllowed$IOSurfacePropertyKeyPlaneBase$IOSurfacePropertyKeyPlaneBytesPerElement$IOSurfacePropertyKeyPlaneBytesPerRow$IOSurfacePropertyKeyPlaneElementHeight$IOSurfacePropertyKeyPlaneElementWidth$IOSurfacePropertyKeyPlaneHeight$IOSurfacePropertyKeyPlaneInfo$IOSurfacePropertyKeyPlaneOffset$IOSurfacePropertyKeyPlaneSize$IOSurfacePropertyKeyPlaneWidth$IOSurfacePropertyKeyWidth$kIOSurfaceAllocSize$kIOSurfaceBytesPerElement$kIOSurfaceBytesPerRow$kIOSurfaceCacheMode$kIOSurfaceColorSpace$kIOSurfaceElementHeight$kIOSurfaceElementWidth$kIOSurfaceHeight$kIOSurfaceICCProfile$kIOSurfaceIsGlobal$kIOSurfaceName$kIOSurfaceOffset$kIOSurfacePixelFormat$kIOSurfacePixelSizeCastingAllowed$kIOSurfacePlaneBase$kIOSurfacePlaneBitsPerElement$kIOSurfacePlaneBytesPerElement$kIOSurfacePlaneBytesPerRow$kIOSurfacePlaneComponentBitDepths$kIOSurfacePlaneComponentBitOffsets$kIOSurfacePlaneComponentNames$kIOSurfacePlaneComponentRanges$kIOSurfacePlaneComponentTypes$kIOSurfacePlaneElementHeight$kIOSurfacePlaneElementWidth$kIOSurfacePlaneHeight$kIOSurfacePlaneInfo$kIOSurfacePlaneOffset$kIOSurfacePlaneSize$kIOSurfacePlaneWidth$kIOSurfaceSubsampling$kIOSurfaceWidth$"""
34
- enums = """$IOSURFACE_API_H@1$IOSURFACE_H@1$IOSURFACE_REF_H@1$_IOSURFACE_API_H@1$_IOSURFACE_H@1$kIOSurfaceComponentNameAlpha@1$kIOSurfaceComponentNameBlue@4$kIOSurfaceComponentNameChromaBlue@7$kIOSurfaceComponentNameChromaRed@6$kIOSurfaceComponentNameGreen@3$kIOSurfaceComponentNameLuma@5$kIOSurfaceComponentNameRed@2$kIOSurfaceComponentNameUnknown@0$kIOSurfaceComponentRangeFullRange@1$kIOSurfaceComponentRangeUnknown@0$kIOSurfaceComponentRangeVideoRange@2$kIOSurfaceComponentRangeWideRange@3$kIOSurfaceComponentTypeFloat@3$kIOSurfaceComponentTypeSignedInteger@2$kIOSurfaceComponentTypeSignedNormalized@4$kIOSurfaceComponentTypeUnknown@0$kIOSurfaceComponentTypeUnsignedInteger@1$kIOSurfaceCopybackCache@3$kIOSurfaceCopybackInnerCache@5$kIOSurfaceDefaultCache@0$kIOSurfaceInhibitCache@1$kIOSurfaceLockAvoidSync@2$kIOSurfaceLockReadOnly@1$kIOSurfaceMapCacheShift@8$kIOSurfaceMapCopybackCache@768$kIOSurfaceMapCopybackInnerCache@1280$kIOSurfaceMapDefaultCache@0$kIOSurfaceMapInhibitCache@256$kIOSurfaceMapWriteCombineCache@1024$kIOSurfaceMapWriteThruCache@512$kIOSurfacePurgeableEmpty@2$kIOSurfacePurgeableKeepCurrent@3$kIOSurfacePurgeableNonVolatile@0$kIOSurfacePurgeableVolatile@1$kIOSurfaceSubsampling411@4$kIOSurfaceSubsampling420@3$kIOSurfaceSubsampling422@2$kIOSurfaceSubsamplingNone@1$kIOSurfaceSubsamplingUnknown@0$kIOSurfaceWriteCombineCache@4$kIOSurfaceWriteThruCache@2$"""
33
+ constants = """$IOSurfacePropertyAllocSizeKey$IOSurfacePropertyKeyAllocSize$IOSurfacePropertyKeyBytesPerElement$IOSurfacePropertyKeyBytesPerRow$IOSurfacePropertyKeyCacheMode$IOSurfacePropertyKeyElementHeight$IOSurfacePropertyKeyElementWidth$IOSurfacePropertyKeyHeight$IOSurfacePropertyKeyName$IOSurfacePropertyKeyOffset$IOSurfacePropertyKeyPixelFormat$IOSurfacePropertyKeyPixelSizeCastingAllowed$IOSurfacePropertyKeyPlaneBase$IOSurfacePropertyKeyPlaneBytesPerElement$IOSurfacePropertyKeyPlaneBytesPerRow$IOSurfacePropertyKeyPlaneElementHeight$IOSurfacePropertyKeyPlaneElementWidth$IOSurfacePropertyKeyPlaneHeight$IOSurfacePropertyKeyPlaneInfo$IOSurfacePropertyKeyPlaneOffset$IOSurfacePropertyKeyPlaneSize$IOSurfacePropertyKeyPlaneWidth$IOSurfacePropertyKeyWidth$kIOSurfaceAllocSize$kIOSurfaceBytesPerElement$kIOSurfaceBytesPerRow$kIOSurfaceCacheMode$kIOSurfaceColorSpace$kIOSurfaceContentHeadroom$kIOSurfaceElementHeight$kIOSurfaceElementWidth$kIOSurfaceHeight$kIOSurfaceICCProfile$kIOSurfaceIsGlobal$kIOSurfaceName$kIOSurfaceOffset$kIOSurfacePixelFormat$kIOSurfacePixelSizeCastingAllowed$kIOSurfacePlaneBase$kIOSurfacePlaneBitsPerElement$kIOSurfacePlaneBytesPerElement$kIOSurfacePlaneBytesPerRow$kIOSurfacePlaneComponentBitDepths$kIOSurfacePlaneComponentBitOffsets$kIOSurfacePlaneComponentNames$kIOSurfacePlaneComponentRanges$kIOSurfacePlaneComponentTypes$kIOSurfacePlaneElementHeight$kIOSurfacePlaneElementWidth$kIOSurfacePlaneHeight$kIOSurfacePlaneInfo$kIOSurfacePlaneOffset$kIOSurfacePlaneSize$kIOSurfacePlaneWidth$kIOSurfaceSubsampling$kIOSurfaceWidth$"""
34
+ enums = """$IOSURFACE_API_H@1$IOSURFACE_H@1$IOSURFACE_REF_H@1$_IOSURFACE_API_H@1$_IOSURFACE_H@1$kIOSurfaceComponentNameAlpha@1$kIOSurfaceComponentNameBlue@4$kIOSurfaceComponentNameChromaBlue@7$kIOSurfaceComponentNameChromaRed@6$kIOSurfaceComponentNameGreen@3$kIOSurfaceComponentNameLuma@5$kIOSurfaceComponentNameRed@2$kIOSurfaceComponentNameUnknown@0$kIOSurfaceComponentRangeFullRange@1$kIOSurfaceComponentRangeUnknown@0$kIOSurfaceComponentRangeVideoRange@2$kIOSurfaceComponentRangeWideRange@3$kIOSurfaceComponentTypeFloat@3$kIOSurfaceComponentTypeSignedInteger@2$kIOSurfaceComponentTypeSignedNormalized@4$kIOSurfaceComponentTypeUnknown@0$kIOSurfaceComponentTypeUnsignedInteger@1$kIOSurfaceCopybackCache@3$kIOSurfaceCopybackInnerCache@5$kIOSurfaceDefaultCache@0$kIOSurfaceInhibitCache@1$kIOSurfaceLockAvoidSync@2$kIOSurfaceLockReadOnly@1$kIOSurfaceMapCacheShift@8$kIOSurfaceMapCopybackCache@768$kIOSurfaceMapCopybackInnerCache@1280$kIOSurfaceMapDefaultCache@0$kIOSurfaceMapInhibitCache@256$kIOSurfaceMapWriteCombineCache@1024$kIOSurfaceMapWriteThruCache@512$kIOSurfaceMemoryLedgerFlagNoFootprint@1$kIOSurfaceMemoryLedgerTagDefault@1$kIOSurfaceMemoryLedgerTagGraphics@4$kIOSurfaceMemoryLedgerTagMedia@3$kIOSurfaceMemoryLedgerTagNetwork@2$kIOSurfaceMemoryLedgerTagNeural@5$kIOSurfacePurgeableEmpty@2$kIOSurfacePurgeableKeepCurrent@3$kIOSurfacePurgeableNonVolatile@0$kIOSurfacePurgeableVolatile@1$kIOSurfaceSubsampling411@4$kIOSurfaceSubsampling420@3$kIOSurfaceSubsampling422@2$kIOSurfaceSubsamplingNone@1$kIOSurfaceSubsamplingUnknown@0$kIOSurfaceWriteCombineCache@4$kIOSurfaceWriteThruCache@2$"""
35
35
  misc.update(
36
36
  {
37
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h:53:1)": NewType(
38
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h:53:1)",
39
- int,
40
- ),
41
- "IOSurfaceComponentRange": NewType("IOSurfaceComponentRange", int),
37
+ "IOSurfaceMemoryLedgerFlags": NewType("IOSurfaceMemoryLedgerFlags", int),
42
38
  "IOSurfacePurgeabilityState": NewType("IOSurfacePurgeabilityState", int),
39
+ "IOSurfaceComponentRange": NewType("IOSurfaceComponentRange", int),
43
40
  "IOSurfaceLockOptions": NewType("IOSurfaceLockOptions", int),
44
41
  "IOSurfaceComponentType": NewType("IOSurfaceComponentType", int),
45
42
  "IOSurfaceSubsampling": NewType("IOSurfaceSubsampling", int),
46
43
  "IOSurfaceComponentName": NewType("IOSurfaceComponentName", int),
47
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h:43:1)": NewType(
48
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h:43:1)",
49
- int,
50
- ),
44
+ "IOSurfaceMemoryLedgerTags": NewType("IOSurfaceMemoryLedgerTags", int),
51
45
  }
52
46
  )
53
47
  misc.update({})
@@ -67,7 +61,7 @@ functions = {
67
61
  "IOSurfaceLock": (
68
62
  b"i^{__IOSurface=}I^I",
69
63
  "",
70
- {"arguments": {2: {"type_modifier": "N"}}},
64
+ {"arguments": {2: {"type_modifier": "o"}}},
71
65
  ),
72
66
  "IOSurfaceDecrementUseCount": (b"v^{__IOSurface=}",),
73
67
  "IOSurfaceGetTypeOfComponentOfPlane": (b"i^{__IOSurface=}QQ",),
@@ -76,6 +70,7 @@ functions = {
76
70
  "",
77
71
  {"retval": {"already_cfretained": True}},
78
72
  ),
73
+ "IOSurfaceSetOwnershipIdentity": (b"i^{__IOSurface=}IiI",),
79
74
  "IOSurfaceGetElementHeight": (b"Q^{__IOSurface=}",),
80
75
  "IOSurfaceGetBaseAddressOfPlane": (
81
76
  b"^v^{__IOSurface=}Q",
@@ -144,7 +139,7 @@ functions = {
144
139
  "IOSurfaceUnlock": (
145
140
  b"i^{__IOSurface=}I^I",
146
141
  "",
147
- {"arguments": {2: {"type_modifier": "N"}}},
142
+ {"arguments": {2: {"type_modifier": "o"}}},
148
143
  ),
149
144
  "IOSurfaceGetPropertyMaximum": (b"Q^{__CFString=}",),
150
145
  "IOSurfaceGetWidthOfPlane": (b"Q^{__IOSurface=}Q",),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobjc-framework-IOSurface
3
- Version: 10.1
3
+ Version: 11.0
4
4
  Summary: Wrappers for the framework IOSurface on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -18,20 +18,20 @@ 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.1
34
- Requires-Dist: pyobjc-framework-Cocoa>=10.1
33
+ Requires-Dist: pyobjc-core>=11.0
34
+ Requires-Dist: pyobjc-framework-Cocoa>=11.0
35
35
  Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
36
36
  Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
37
37
  Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
@@ -9,21 +9,23 @@ Lib/pyobjc_framework_IOSurface.egg-info/PKG-INFO
9
9
  Lib/pyobjc_framework_IOSurface.egg-info/SOURCES.txt
10
10
  Lib/pyobjc_framework_IOSurface.egg-info/dependency_links.txt
11
11
  Lib/pyobjc_framework_IOSurface.egg-info/not-zip-safe
12
+ Lib/pyobjc_framework_IOSurface.egg-info/pyobjc-build-info.txt
12
13
  Lib/pyobjc_framework_IOSurface.egg-info/requires.txt
13
14
  Lib/pyobjc_framework_IOSurface.egg-info/top_level.txt
14
15
  PyObjCTest/__init__.py
15
16
  PyObjCTest/test_iosurface.py
16
17
  PyObjCTest/test_iosurfaceapi.py
17
18
  PyObjCTest/test_iosurfaceobjc.py
19
+ PyObjCTest/test_iosurfaceref.py
18
20
  metadata/IOSurface.fwinfo
19
21
  metadata/metadata.ini
20
- metadata/raw/arm64-12.0.fwinfo
21
22
  metadata/raw/arm64-12.3.fwinfo
22
23
  metadata/raw/arm64-13.0.fwinfo
23
- metadata/raw/arm64-14.0.fwinfo
24
+ metadata/raw/arm64-14.5.fwinfo
25
+ metadata/raw/arm64-15.0.fwinfo
24
26
  metadata/raw/x86_64-10.10.fwinfo
25
27
  metadata/raw/x86_64-10.16.fwinfo
26
- metadata/raw/x86_64-12.0.fwinfo
27
28
  metadata/raw/x86_64-12.3.fwinfo
28
29
  metadata/raw/x86_64-13.0.fwinfo
29
- metadata/raw/x86_64-14.0.fwinfo
30
+ metadata/raw/x86_64-14.5.fwinfo
31
+ 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,2 @@
1
+ pyobjc-core>=11.0
2
+ pyobjc-framework-Cocoa>=11.0
@@ -1,7 +1,7 @@
1
1
  (This is the MIT license, note that libffi-src is a separate product with its own license)
2
2
 
3
3
  Copyright 2002, 2003 - Bill Bumgarner, Ronald Oussoren, Steve Majewski, Lele Gaifax, et.al.
4
- Copyright 2003-2022 - Ronald Oussoren
4
+ Copyright 2003-2024 - Ronald Oussoren
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7
7
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyobjc-framework-IOSurface
3
- Version: 10.1
3
+ Version: 11.0
4
4
  Summary: Wrappers for the framework IOSurface on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -18,20 +18,20 @@ 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.1
34
- Requires-Dist: pyobjc-framework-Cocoa>=10.1
33
+ Requires-Dist: pyobjc-core>=11.0
34
+ Requires-Dist: pyobjc-framework-Cocoa>=11.0
35
35
 
36
36
 
37
37
  Wrappers for the "IOSurface" framework on macOS.
@@ -125,8 +125,8 @@ class TestIOSurfaceAPI(TestCase):
125
125
 
126
126
  IOSurface.IOSurfaceGetID
127
127
 
128
- self.assertArgIsInOut(IOSurface.IOSurfaceLock, 2)
129
- self.assertArgIsInOut(IOSurface.IOSurfaceUnlock, 2)
128
+ self.assertArgIsOut(IOSurface.IOSurfaceLock, 2)
129
+ self.assertArgIsOut(IOSurface.IOSurfaceUnlock, 2)
130
130
 
131
131
  IOSurface.IOSurfaceGetAllocSize
132
132
  IOSurface.IOSurfaceGetWidth
@@ -0,0 +1,154 @@
1
+ import IOSurface
2
+ from PyObjCTools.TestSupport import TestCase, min_os_level
3
+
4
+
5
+ class TestIOSurfaceObjC(TestCase):
6
+ def testEnum(self):
7
+ self.assertIsEnumType(IOSurface.IOSurfaceComponentName)
8
+ self.assertEqual(IOSurface.kIOSurfaceComponentNameUnknown, 0)
9
+ self.assertEqual(IOSurface.kIOSurfaceComponentNameAlpha, 1)
10
+ self.assertEqual(IOSurface.kIOSurfaceComponentNameRed, 2)
11
+ self.assertEqual(IOSurface.kIOSurfaceComponentNameGreen, 3)
12
+ self.assertEqual(IOSurface.kIOSurfaceComponentNameBlue, 4)
13
+ self.assertEqual(IOSurface.kIOSurfaceComponentNameLuma, 5)
14
+ self.assertEqual(IOSurface.kIOSurfaceComponentNameChromaRed, 6)
15
+ self.assertEqual(IOSurface.kIOSurfaceComponentNameChromaBlue, 7)
16
+
17
+ self.assertIsEnumType(IOSurface.IOSurfaceComponentType)
18
+ self.assertEqual(IOSurface.kIOSurfaceComponentTypeUnknown, 0)
19
+ self.assertEqual(IOSurface.kIOSurfaceComponentTypeUnsignedInteger, 1)
20
+ self.assertEqual(IOSurface.kIOSurfaceComponentTypeSignedInteger, 2)
21
+ self.assertEqual(IOSurface.kIOSurfaceComponentTypeFloat, 3)
22
+ self.assertEqual(IOSurface.kIOSurfaceComponentTypeSignedNormalized, 4)
23
+
24
+ self.assertIsEnumType(IOSurface.IOSurfaceComponentRange)
25
+ self.assertEqual(IOSurface.kIOSurfaceComponentRangeUnknown, 0)
26
+ self.assertEqual(IOSurface.kIOSurfaceComponentRangeFullRange, 1)
27
+ self.assertEqual(IOSurface.kIOSurfaceComponentRangeVideoRange, 2)
28
+ self.assertEqual(IOSurface.kIOSurfaceComponentRangeWideRange, 3)
29
+
30
+ self.assertIsEnumType(IOSurface.IOSurfaceSubsampling)
31
+ self.assertEqual(IOSurface.kIOSurfaceSubsamplingUnknown, 0)
32
+ self.assertEqual(IOSurface.kIOSurfaceSubsamplingNone, 1)
33
+ self.assertEqual(IOSurface.kIOSurfaceSubsampling422, 2)
34
+ self.assertEqual(IOSurface.kIOSurfaceSubsampling420, 3)
35
+ self.assertEqual(IOSurface.kIOSurfaceSubsampling411, 4)
36
+
37
+ self.assertIsEnumType(IOSurface.IOSurfaceMemoryLedgerTags)
38
+ self.assertEqual(IOSurface.kIOSurfaceMemoryLedgerTagDefault, 0x00000001)
39
+ self.assertEqual(IOSurface.kIOSurfaceMemoryLedgerTagNetwork, 0x00000002)
40
+ self.assertEqual(IOSurface.kIOSurfaceMemoryLedgerTagMedia, 0x00000003)
41
+ self.assertEqual(IOSurface.kIOSurfaceMemoryLedgerTagGraphics, 0x00000004)
42
+ self.assertEqual(IOSurface.kIOSurfaceMemoryLedgerTagNeural, 0x00000005)
43
+
44
+ self.assertIsEnumType(IOSurface.IOSurfaceMemoryLedgerFlags)
45
+ self.assertEqual(IOSurface.kIOSurfaceMemoryLedgerFlagNoFootprint, 1 << 0)
46
+
47
+ @min_os_level("10.12")
48
+ def testConstants(self):
49
+ self.assertIsInstance(IOSurface.kIOSurfaceAllocSize, str)
50
+ self.assertIsInstance(IOSurface.kIOSurfaceWidth, str)
51
+ self.assertIsInstance(IOSurface.kIOSurfaceHeight, str)
52
+ self.assertIsInstance(IOSurface.kIOSurfaceBytesPerRow, str)
53
+ self.assertIsInstance(IOSurface.kIOSurfaceBytesPerElement, str)
54
+ self.assertIsInstance(IOSurface.kIOSurfaceElementWidth, str)
55
+ self.assertIsInstance(IOSurface.kIOSurfaceElementHeight, str)
56
+ self.assertIsInstance(IOSurface.kIOSurfaceOffset, str)
57
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneInfo, str)
58
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneWidth, str)
59
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneHeight, str)
60
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneBytesPerRow, str)
61
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneOffset, str)
62
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneSize, str)
63
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneBase, str)
64
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneBitsPerElement, str)
65
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneBytesPerElement, str)
66
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneElementWidth, str)
67
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneElementHeight, str)
68
+ self.assertIsInstance(IOSurface.kIOSurfaceCacheMode, str)
69
+ self.assertIsInstance(IOSurface.kIOSurfaceIsGlobal, str)
70
+ self.assertIsInstance(IOSurface.kIOSurfacePixelFormat, str)
71
+ self.assertIsInstance(IOSurface.kIOSurfaceColorSpace, str)
72
+ self.assertIsInstance(IOSurface.kIOSurfaceICCProfile, str)
73
+
74
+ @min_os_level("10.12")
75
+ def test_constants10_12(self):
76
+ self.assertIsInstance(IOSurface.kIOSurfacePixelSizeCastingAllowed, str)
77
+
78
+ @min_os_level("10.13")
79
+ def test_constants10_13(self):
80
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneComponentBitDepths, str)
81
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneComponentBitOffsets, str)
82
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneComponentNames, str)
83
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneComponentTypes, str)
84
+ self.assertIsInstance(IOSurface.kIOSurfacePlaneComponentRanges, str)
85
+ self.assertIsInstance(IOSurface.kIOSurfaceSubsampling, str)
86
+
87
+ @min_os_level("11.0")
88
+ def test_constants11_0(self):
89
+ self.assertIsInstance(IOSurface.kIOSurfaceName, str)
90
+
91
+ @min_os_level("15.0")
92
+ def test_constants15_0(self):
93
+ self.assertIsInstance(IOSurface.kIOSurfaceContentHeadroom, str)
94
+
95
+ def test_funtions(self):
96
+ IOSurface.IOSurfaceGetTypeID
97
+ self.assertResultIsCFRetained(IOSurface.IOSurfaceCreate)
98
+ self.assertResultIsCFRetained(IOSurface.IOSurfaceLookup)
99
+ IOSurface.IOSurfaceGetID
100
+ self.assertArgIsOut(IOSurface.IOSurfaceLock, 2)
101
+ self.assertArgIsOut(IOSurface.IOSurfaceUnlock, 2)
102
+ IOSurface.IOSurfaceGetAllocSize
103
+ IOSurface.IOSurfaceGetWidth
104
+ IOSurface.IOSurfaceGetHeight
105
+ IOSurface.IOSurfaceGetBytesPerElement
106
+ IOSurface.IOSurfaceGetBytesPerRow
107
+ IOSurface.IOSurfaceGetBaseAddress
108
+ IOSurface.IOSurfaceGetElementWidth
109
+ IOSurface.IOSurfaceGetElementHeight
110
+ IOSurface.IOSurfaceGetPixelFormat
111
+ IOSurface.IOSurfaceGetSeed
112
+ IOSurface.IOSurfaceGetPlaneCount
113
+ IOSurface.IOSurfaceGetWidthOfPlane
114
+ IOSurface.IOSurfaceGetHeightOfPlane
115
+ IOSurface.IOSurfaceGetBytesPerElementOfPlane
116
+ IOSurface.IOSurfaceGetBytesPerRowOfPlane
117
+ IOSurface.IOSurfaceGetBaseAddressOfPlane
118
+ IOSurface.IOSurfaceGetElementWidthOfPlane
119
+ IOSurface.IOSurfaceGetElementHeightOfPlane
120
+ IOSurface.IOSurfaceGetNumberOfComponentsOfPlane
121
+ IOSurface.IOSurfaceSetValue
122
+ self.assertResultIsCFRetained(IOSurface.IOSurfaceCopyValue)
123
+ IOSurface.IOSurfaceRemoveValue
124
+ IOSurface.IOSurfaceSetValues
125
+ self.assertResultIsCFRetained(IOSurface.IOSurfaceCopyAllValues)
126
+ IOSurface.IOSurfaceRemoveAllValues
127
+ IOSurface.IOSurfaceCreateMachPort
128
+ self.assertResultIsCFRetained(IOSurface.IOSurfaceLookupFromMachPort)
129
+ IOSurface.IOSurfaceGetPropertyMaximum
130
+ IOSurface.IOSurfaceGetPropertyAlignment
131
+ IOSurface.IOSurfaceAlignProperty
132
+ IOSurface.IOSurfaceIncrementUseCount
133
+ IOSurface.IOSurfaceDecrementUseCount
134
+ IOSurface.IOSurfaceGetUseCount
135
+ IOSurface.IOSurfaceIsInUse
136
+
137
+ @min_os_level("10.12")
138
+ def test_funtions10_12(self):
139
+ IOSurface.IOSurfaceAllowsPixelSizeCasting
140
+ IOSurface.IOSurfaceSetPurgeable
141
+ self.assertArgIsOut(IOSurface.IOSurfaceSetPurgeable, 2)
142
+
143
+ @min_os_level("10.13")
144
+ def test_funtions10_13(self):
145
+ IOSurface.IOSurfaceGetNameOfComponentOfPlane
146
+ IOSurface.IOSurfaceGetTypeOfComponentOfPlane
147
+ IOSurface.IOSurfaceGetRangeOfComponentOfPlane
148
+ IOSurface.IOSurfaceGetBitDepthOfComponentOfPlane
149
+ IOSurface.IOSurfaceGetBitOffsetOfComponentOfPlane
150
+ IOSurface.IOSurfaceGetSubsampling
151
+
152
+ @min_os_level("14.4")
153
+ def test_funtions14_4(self):
154
+ IOSurface.IOSurfaceSetOwnershipIdentity
@@ -454,7 +454,7 @@
454
454
  },
455
455
  "2": {
456
456
  "type_override": "^I",
457
- "type_modifier": "N"
457
+ "type_modifier": "o"
458
458
  }
459
459
  }
460
460
  },
@@ -507,7 +507,7 @@
507
507
  "type_override": "^{__IOSurface=}"
508
508
  },
509
509
  "2": {
510
- "type_modifier": "N",
510
+ "type_modifier": "o",
511
511
  "type_override": "^I"
512
512
  }
513
513
  }
@@ -1,7 +1,7 @@
1
1
  // GENERATED FILE DO NOT EDIT
2
2
  //
3
3
  // This file was generated by objective.metadata
4
- // Last update: Sat Jul 1 14:09:30 2023
4
+ // Last update: Sat May 18 09:30:05 2024
5
5
  {
6
6
  "arch": "arm64",
7
7
  "definitions": {
@@ -50,6 +50,12 @@
50
50
  "kIOSurfaceMapInhibitCache": 256,
51
51
  "kIOSurfaceMapWriteCombineCache": 1024,
52
52
  "kIOSurfaceMapWriteThruCache": 512,
53
+ "kIOSurfaceMemoryLedgerFlagNoFootprint": 1,
54
+ "kIOSurfaceMemoryLedgerTagDefault": 1,
55
+ "kIOSurfaceMemoryLedgerTagGraphics": 4,
56
+ "kIOSurfaceMemoryLedgerTagMedia": 3,
57
+ "kIOSurfaceMemoryLedgerTagNetwork": 2,
58
+ "kIOSurfaceMemoryLedgerTagNeural": 5,
53
59
  "kIOSurfacePurgeableEmpty": 2,
54
60
  "kIOSurfacePurgeableKeepCurrent": 3,
55
61
  "kIOSurfacePurgeableNonVolatile": 0,
@@ -75,17 +81,17 @@
75
81
  "IOSurfaceLockOptions": {
76
82
  "type": "I"
77
83
  },
78
- "IOSurfacePurgeabilityState": {
84
+ "IOSurfaceMemoryLedgerFlags": {
79
85
  "type": "I"
80
86
  },
81
- "IOSurfaceSubsampling": {
87
+ "IOSurfaceMemoryLedgerTags": {
82
88
  "type": "i"
83
89
  },
84
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h:43:1)": {
90
+ "IOSurfacePurgeabilityState": {
85
91
  "type": "I"
86
92
  },
87
- "enum (unnamed at /Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceTypes.h:53:1)": {
88
- "type": "I"
93
+ "IOSurfaceSubsampling": {
94
+ "type": "i"
89
95
  }
90
96
  },
91
97
  "expressions": {},
@@ -795,6 +801,29 @@
795
801
  "typestr": "v"
796
802
  }
797
803
  },
804
+ "IOSurfaceSetOwnershipIdentity": {
805
+ "args": [
806
+ {
807
+ "name": "buffer",
808
+ "typestr": "^{__IOSurface=}"
809
+ },
810
+ {
811
+ "name": "task_id_token",
812
+ "typestr": "I"
813
+ },
814
+ {
815
+ "name": "newLedgerTag",
816
+ "typestr": "i"
817
+ },
818
+ {
819
+ "name": "newLedgerOptions",
820
+ "typestr": "I"
821
+ }
822
+ ],
823
+ "retval": {
824
+ "typestr": "i"
825
+ }
826
+ },
798
827
  "IOSurfaceSetPurgeable": {
799
828
  "args": [
800
829
  {
@@ -877,6 +906,8 @@
877
906
  "IOSurfaceComponentType": "enum IOSurfaceComponentType",
878
907
  "IOSurfaceID": "uint32_t",
879
908
  "IOSurfaceLockOptions": "enum IOSurfaceLockOptions",
909
+ "IOSurfaceMemoryLedgerFlags": "enum IOSurfaceMemoryLedgerFlags",
910
+ "IOSurfaceMemoryLedgerTags": "enum IOSurfaceMemoryLedgerTags",
880
911
  "IOSurfacePurgeabilityState": "enum IOSurfacePurgeabilityState",
881
912
  "IOSurfaceRef": "struct __IOSurface *",
882
913
  "IOSurfaceSubsampling": "enum IOSurfaceSubsampling"
@@ -890,5 +921,5 @@
890
921
  "IOSurfaceTypes.h"
891
922
  ],
892
923
  "release": "10.16",
893
- "sdk": "/Users/ronald/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk"
924
+ "sdk": "/Users/ronald/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk"
894
925
  }