pyobjc-framework-IOSurface 10.1__tar.gz → 10.3__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.
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/Lib/IOSurface/_metadata.py +8 -13
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/Lib/pyobjc_framework_IOSurface.egg-info/PKG-INFO +3 -3
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/Lib/pyobjc_framework_IOSurface.egg-info/SOURCES.txt +3 -4
- pyobjc_framework_iosurface-10.3/Lib/pyobjc_framework_IOSurface.egg-info/requires.txt +2 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/License.txt +1 -1
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/PKG-INFO +3 -3
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/PyObjCTest/test_iosurfaceapi.py +2 -2
- pyobjc_framework_iosurface-10.3/PyObjCTest/test_iosurfaceref.py +150 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/metadata/IOSurface.fwinfo +2 -2
- pyobjc-framework-IOSurface-10.1/metadata/raw/arm64-14.0.fwinfo → pyobjc_framework_iosurface-10.3/metadata/raw/arm64-14.5.fwinfo +38 -7
- pyobjc-framework-IOSurface-10.1/metadata/raw/x86_64-14.0.fwinfo → pyobjc_framework_iosurface-10.3/metadata/raw/x86_64-14.5.fwinfo +38 -7
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/setup.py +1 -1
- pyobjc-framework-IOSurface-10.1/Lib/pyobjc_framework_IOSurface.egg-info/requires.txt +0 -2
- pyobjc-framework-IOSurface-10.1/metadata/raw/arm64-12.0.fwinfo +0 -855
- pyobjc-framework-IOSurface-10.1/metadata/raw/x86_64-12.0.fwinfo +0 -855
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/Lib/IOSurface/__init__.py +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/Lib/pyobjc_framework_IOSurface.egg-info/dependency_links.txt +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/Lib/pyobjc_framework_IOSurface.egg-info/not-zip-safe +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/Lib/pyobjc_framework_IOSurface.egg-info/top_level.txt +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/MANIFEST.in +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/PyObjCTest/__init__.py +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/PyObjCTest/test_iosurface.py +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/PyObjCTest/test_iosurfaceobjc.py +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/metadata/metadata.ini +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/metadata/raw/arm64-12.3.fwinfo +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/metadata/raw/arm64-13.0.fwinfo +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/metadata/raw/x86_64-10.10.fwinfo +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/metadata/raw/x86_64-10.16.fwinfo +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/metadata/raw/x86_64-12.3.fwinfo +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/metadata/raw/x86_64-13.0.fwinfo +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/pyobjc_setup.py +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/pyproject.toml +0 -0
- {pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/setup.cfg +0 -0
{pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/Lib/IOSurface/_metadata.py
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update: Sat
|
|
3
|
+
# Last update: Sat May 18 09:30:05 2024
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -31,23 +31,17 @@ else:
|
|
|
31
31
|
|
|
32
32
|
misc = {}
|
|
33
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$"""
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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": "
|
|
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": "
|
|
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.
|
|
3
|
+
Version: 10.3
|
|
4
4
|
Summary: Wrappers for the framework IOSurface on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -30,8 +30,8 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
31
|
Requires-Python: >=3.8
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=10.
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=10.
|
|
33
|
+
Requires-Dist: pyobjc-core>=10.3
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=10.3
|
|
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
|
|
@@ -15,15 +15,14 @@ PyObjCTest/__init__.py
|
|
|
15
15
|
PyObjCTest/test_iosurface.py
|
|
16
16
|
PyObjCTest/test_iosurfaceapi.py
|
|
17
17
|
PyObjCTest/test_iosurfaceobjc.py
|
|
18
|
+
PyObjCTest/test_iosurfaceref.py
|
|
18
19
|
metadata/IOSurface.fwinfo
|
|
19
20
|
metadata/metadata.ini
|
|
20
|
-
metadata/raw/arm64-12.0.fwinfo
|
|
21
21
|
metadata/raw/arm64-12.3.fwinfo
|
|
22
22
|
metadata/raw/arm64-13.0.fwinfo
|
|
23
|
-
metadata/raw/arm64-14.
|
|
23
|
+
metadata/raw/arm64-14.5.fwinfo
|
|
24
24
|
metadata/raw/x86_64-10.10.fwinfo
|
|
25
25
|
metadata/raw/x86_64-10.16.fwinfo
|
|
26
|
-
metadata/raw/x86_64-12.0.fwinfo
|
|
27
26
|
metadata/raw/x86_64-12.3.fwinfo
|
|
28
27
|
metadata/raw/x86_64-13.0.fwinfo
|
|
29
|
-
metadata/raw/x86_64-14.
|
|
28
|
+
metadata/raw/x86_64-14.5.fwinfo
|
|
@@ -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-
|
|
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.
|
|
3
|
+
Version: 10.3
|
|
4
4
|
Summary: Wrappers for the framework IOSurface on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
@@ -30,8 +30,8 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
30
30
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
31
|
Requires-Python: >=3.8
|
|
32
32
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=10.
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=10.
|
|
33
|
+
Requires-Dist: pyobjc-core>=10.3
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=10.3
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
Wrappers for the "IOSurface" framework on macOS.
|
{pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/PyObjCTest/test_iosurfaceapi.py
RENAMED
|
@@ -125,8 +125,8 @@ class TestIOSurfaceAPI(TestCase):
|
|
|
125
125
|
|
|
126
126
|
IOSurface.IOSurfaceGetID
|
|
127
127
|
|
|
128
|
-
self.
|
|
129
|
-
self.
|
|
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,150 @@
|
|
|
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
|
+
def test_funtions(self):
|
|
92
|
+
IOSurface.IOSurfaceGetTypeID
|
|
93
|
+
self.assertResultIsCFRetained(IOSurface.IOSurfaceCreate)
|
|
94
|
+
self.assertResultIsCFRetained(IOSurface.IOSurfaceLookup)
|
|
95
|
+
IOSurface.IOSurfaceGetID
|
|
96
|
+
self.assertArgIsOut(IOSurface.IOSurfaceLock, 2)
|
|
97
|
+
self.assertArgIsOut(IOSurface.IOSurfaceUnlock, 2)
|
|
98
|
+
IOSurface.IOSurfaceGetAllocSize
|
|
99
|
+
IOSurface.IOSurfaceGetWidth
|
|
100
|
+
IOSurface.IOSurfaceGetHeight
|
|
101
|
+
IOSurface.IOSurfaceGetBytesPerElement
|
|
102
|
+
IOSurface.IOSurfaceGetBytesPerRow
|
|
103
|
+
IOSurface.IOSurfaceGetBaseAddress
|
|
104
|
+
IOSurface.IOSurfaceGetElementWidth
|
|
105
|
+
IOSurface.IOSurfaceGetElementHeight
|
|
106
|
+
IOSurface.IOSurfaceGetPixelFormat
|
|
107
|
+
IOSurface.IOSurfaceGetSeed
|
|
108
|
+
IOSurface.IOSurfaceGetPlaneCount
|
|
109
|
+
IOSurface.IOSurfaceGetWidthOfPlane
|
|
110
|
+
IOSurface.IOSurfaceGetHeightOfPlane
|
|
111
|
+
IOSurface.IOSurfaceGetBytesPerElementOfPlane
|
|
112
|
+
IOSurface.IOSurfaceGetBytesPerRowOfPlane
|
|
113
|
+
IOSurface.IOSurfaceGetBaseAddressOfPlane
|
|
114
|
+
IOSurface.IOSurfaceGetElementWidthOfPlane
|
|
115
|
+
IOSurface.IOSurfaceGetElementHeightOfPlane
|
|
116
|
+
IOSurface.IOSurfaceGetNumberOfComponentsOfPlane
|
|
117
|
+
IOSurface.IOSurfaceSetValue
|
|
118
|
+
self.assertResultIsCFRetained(IOSurface.IOSurfaceCopyValue)
|
|
119
|
+
IOSurface.IOSurfaceRemoveValue
|
|
120
|
+
IOSurface.IOSurfaceSetValues
|
|
121
|
+
self.assertResultIsCFRetained(IOSurface.IOSurfaceCopyAllValues)
|
|
122
|
+
IOSurface.IOSurfaceRemoveAllValues
|
|
123
|
+
IOSurface.IOSurfaceCreateMachPort
|
|
124
|
+
self.assertResultIsCFRetained(IOSurface.IOSurfaceLookupFromMachPort)
|
|
125
|
+
IOSurface.IOSurfaceGetPropertyMaximum
|
|
126
|
+
IOSurface.IOSurfaceGetPropertyAlignment
|
|
127
|
+
IOSurface.IOSurfaceAlignProperty
|
|
128
|
+
IOSurface.IOSurfaceIncrementUseCount
|
|
129
|
+
IOSurface.IOSurfaceDecrementUseCount
|
|
130
|
+
IOSurface.IOSurfaceGetUseCount
|
|
131
|
+
IOSurface.IOSurfaceIsInUse
|
|
132
|
+
|
|
133
|
+
@min_os_level("10.12")
|
|
134
|
+
def test_funtions10_12(self):
|
|
135
|
+
IOSurface.IOSurfaceAllowsPixelSizeCasting
|
|
136
|
+
IOSurface.IOSurfaceSetPurgeable
|
|
137
|
+
self.assertArgIsOut(IOSurface.IOSurfaceSetPurgeable, 2)
|
|
138
|
+
|
|
139
|
+
@min_os_level("10.13")
|
|
140
|
+
def test_funtions10_13(self):
|
|
141
|
+
IOSurface.IOSurfaceGetNameOfComponentOfPlane
|
|
142
|
+
IOSurface.IOSurfaceGetTypeOfComponentOfPlane
|
|
143
|
+
IOSurface.IOSurfaceGetRangeOfComponentOfPlane
|
|
144
|
+
IOSurface.IOSurfaceGetBitDepthOfComponentOfPlane
|
|
145
|
+
IOSurface.IOSurfaceGetBitOffsetOfComponentOfPlane
|
|
146
|
+
IOSurface.IOSurfaceGetSubsampling
|
|
147
|
+
|
|
148
|
+
@min_os_level("14.4")
|
|
149
|
+
def test_funtions14_4(self):
|
|
150
|
+
IOSurface.IOSurfaceSetOwnershipIdentity
|
{pyobjc-framework-IOSurface-10.1 → pyobjc_framework_iosurface-10.3}/metadata/IOSurface.fwinfo
RENAMED
|
@@ -454,7 +454,7 @@
|
|
|
454
454
|
},
|
|
455
455
|
"2": {
|
|
456
456
|
"type_override": "^I",
|
|
457
|
-
"type_modifier": "
|
|
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": "
|
|
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
|
|
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
|
-
"
|
|
84
|
+
"IOSurfaceMemoryLedgerFlags": {
|
|
79
85
|
"type": "I"
|
|
80
86
|
},
|
|
81
|
-
"
|
|
87
|
+
"IOSurfaceMemoryLedgerTags": {
|
|
82
88
|
"type": "i"
|
|
83
89
|
},
|
|
84
|
-
"
|
|
90
|
+
"IOSurfacePurgeabilityState": {
|
|
85
91
|
"type": "I"
|
|
86
92
|
},
|
|
87
|
-
"
|
|
88
|
-
"type": "
|
|
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
|
|
924
|
+
"sdk": "/Users/ronald/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk"
|
|
894
925
|
}
|
|
@@ -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
|
|
4
|
+
// Last update: Sat May 18 09:30:03 2024
|
|
5
5
|
{
|
|
6
6
|
"arch": "x86_64",
|
|
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
|
-
"
|
|
84
|
+
"IOSurfaceMemoryLedgerFlags": {
|
|
79
85
|
"type": "I"
|
|
80
86
|
},
|
|
81
|
-
"
|
|
87
|
+
"IOSurfaceMemoryLedgerTags": {
|
|
82
88
|
"type": "i"
|
|
83
89
|
},
|
|
84
|
-
"
|
|
90
|
+
"IOSurfacePurgeabilityState": {
|
|
85
91
|
"type": "I"
|
|
86
92
|
},
|
|
87
|
-
"
|
|
88
|
-
"type": "
|
|
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
|
|
924
|
+
"sdk": "/Users/ronald/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk"
|
|
894
925
|
}
|