pyobjc-framework-IOSurface 10.3.2__py3-none-any.whl
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.
IOSurface/__init__.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Python mapping for the IOSurface framework.
|
|
3
|
+
|
|
4
|
+
This module does not contain docstrings for the wrapped code, check Apple's
|
|
5
|
+
documentation for details on how to use these functions and classes.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def _setup():
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
import Foundation
|
|
13
|
+
import objc
|
|
14
|
+
from . import _metadata
|
|
15
|
+
|
|
16
|
+
dir_func, getattr_func = objc.createFrameworkDirAndGetattr(
|
|
17
|
+
name="IOSurface",
|
|
18
|
+
frameworkIdentifier="com.apple.IOSurface",
|
|
19
|
+
frameworkPath=objc.pathForFramework(
|
|
20
|
+
"/System/Library/Frameworks/IOSurface.framework"
|
|
21
|
+
),
|
|
22
|
+
globals_dict=globals(),
|
|
23
|
+
inline_list=None,
|
|
24
|
+
parents=(Foundation,),
|
|
25
|
+
metadict=_metadata.__dict__,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
globals()["__dir__"] = dir_func
|
|
29
|
+
globals()["__getattr__"] = getattr_func
|
|
30
|
+
|
|
31
|
+
del sys.modules["IOSurface._metadata"]
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
globals().pop("_setup")()
|
IOSurface/_metadata.py
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
# This file is generated by objective.metadata
|
|
2
|
+
#
|
|
3
|
+
# Last update: Sat May 18 09:30:05 2024
|
|
4
|
+
#
|
|
5
|
+
# flake8: noqa
|
|
6
|
+
|
|
7
|
+
import objc, sys
|
|
8
|
+
from typing import NewType
|
|
9
|
+
|
|
10
|
+
if sys.maxsize > 2**32:
|
|
11
|
+
|
|
12
|
+
def sel32or64(a, b):
|
|
13
|
+
return b
|
|
14
|
+
|
|
15
|
+
else:
|
|
16
|
+
|
|
17
|
+
def sel32or64(a, b):
|
|
18
|
+
return a
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
if objc.arch == "arm64":
|
|
22
|
+
|
|
23
|
+
def selAorI(a, b):
|
|
24
|
+
return a
|
|
25
|
+
|
|
26
|
+
else:
|
|
27
|
+
|
|
28
|
+
def selAorI(a, b):
|
|
29
|
+
return b
|
|
30
|
+
|
|
31
|
+
|
|
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$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
|
+
misc.update(
|
|
36
|
+
{
|
|
37
|
+
"IOSurfaceMemoryLedgerFlags": NewType("IOSurfaceMemoryLedgerFlags", int),
|
|
38
|
+
"IOSurfacePurgeabilityState": NewType("IOSurfacePurgeabilityState", int),
|
|
39
|
+
"IOSurfaceComponentRange": NewType("IOSurfaceComponentRange", int),
|
|
40
|
+
"IOSurfaceLockOptions": NewType("IOSurfaceLockOptions", int),
|
|
41
|
+
"IOSurfaceComponentType": NewType("IOSurfaceComponentType", int),
|
|
42
|
+
"IOSurfaceSubsampling": NewType("IOSurfaceSubsampling", int),
|
|
43
|
+
"IOSurfaceComponentName": NewType("IOSurfaceComponentName", int),
|
|
44
|
+
"IOSurfaceMemoryLedgerTags": NewType("IOSurfaceMemoryLedgerTags", int),
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
misc.update({})
|
|
48
|
+
misc.update({})
|
|
49
|
+
functions = {
|
|
50
|
+
"IOSurfaceGetSeed": (b"I^{__IOSurface=}",),
|
|
51
|
+
"IOSurfaceGetRangeOfComponentOfPlane": (b"i^{__IOSurface=}QQ",),
|
|
52
|
+
"IOSurfaceLookupFromMachPort": (
|
|
53
|
+
b"^{__IOSurface=}I",
|
|
54
|
+
"",
|
|
55
|
+
{"retval": {"already_cfretained": True}},
|
|
56
|
+
),
|
|
57
|
+
"IOSurfaceGetBytesPerRow": (b"Q^{__IOSurface=}",),
|
|
58
|
+
"IOSurfaceGetUseCount": (b"i^{__IOSurface=}",),
|
|
59
|
+
"IOSurfaceSetValue": (b"v^{__IOSurface=}^{__CFString=}@",),
|
|
60
|
+
"IOSurfaceGetPlaneCount": (b"Q^{__IOSurface=}",),
|
|
61
|
+
"IOSurfaceLock": (
|
|
62
|
+
b"i^{__IOSurface=}I^I",
|
|
63
|
+
"",
|
|
64
|
+
{"arguments": {2: {"type_modifier": "o"}}},
|
|
65
|
+
),
|
|
66
|
+
"IOSurfaceDecrementUseCount": (b"v^{__IOSurface=}",),
|
|
67
|
+
"IOSurfaceGetTypeOfComponentOfPlane": (b"i^{__IOSurface=}QQ",),
|
|
68
|
+
"IOSurfaceLookupFromXPCObject": (
|
|
69
|
+
b"^{__IOSurface=}@",
|
|
70
|
+
"",
|
|
71
|
+
{"retval": {"already_cfretained": True}},
|
|
72
|
+
),
|
|
73
|
+
"IOSurfaceSetOwnershipIdentity": (b"i^{__IOSurface=}IiI",),
|
|
74
|
+
"IOSurfaceGetElementHeight": (b"Q^{__IOSurface=}",),
|
|
75
|
+
"IOSurfaceGetBaseAddressOfPlane": (
|
|
76
|
+
b"^v^{__IOSurface=}Q",
|
|
77
|
+
"",
|
|
78
|
+
{"retval": {"c_array_of_variable_length": True}},
|
|
79
|
+
),
|
|
80
|
+
"IOSurfaceGetSubsampling": (b"i^{__IOSurface=}",),
|
|
81
|
+
"IOSurfaceLookup": (
|
|
82
|
+
b"^{__IOSurface=}I",
|
|
83
|
+
"",
|
|
84
|
+
{"retval": {"already_cfretained": True}},
|
|
85
|
+
),
|
|
86
|
+
"IOSurfaceGetPixelFormat": (b"I^{__IOSurface=}",),
|
|
87
|
+
"IOSurfaceGetBitOffsetOfComponentOfPlane": (b"Q^{__IOSurface=}QQ",),
|
|
88
|
+
"IOSurfaceCopyValue": (
|
|
89
|
+
b"@^{__IOSurface=}^{__CFString=}",
|
|
90
|
+
"",
|
|
91
|
+
{"retval": {"already_cfretained": True}},
|
|
92
|
+
),
|
|
93
|
+
"IOSurfaceIncrementUseCount": (b"v^{__IOSurface=}",),
|
|
94
|
+
"IOSurfaceGetElementWidthOfPlane": (b"Q^{__IOSurface=}Q",),
|
|
95
|
+
"IOSurfaceGetID": (b"I^{__IOSurface=}",),
|
|
96
|
+
"IOSurfaceSetValues": (b"v^{__IOSurface=}^{__CFDictionary=}",),
|
|
97
|
+
"IOSurfaceRemoveAllValues": (b"v^{__IOSurface=}",),
|
|
98
|
+
"IOSurfaceGetTypeID": (b"Q",),
|
|
99
|
+
"IOSurfaceCreateXPCObject": (
|
|
100
|
+
b"@^{__IOSurface=}",
|
|
101
|
+
"",
|
|
102
|
+
{"retval": {"already_cfretained": True}},
|
|
103
|
+
),
|
|
104
|
+
"IOSurfaceGetAllocSize": (b"Q^{__IOSurface=}",),
|
|
105
|
+
"IOSurfaceGetBitDepthOfComponentOfPlane": (b"Q^{__IOSurface=}QQ",),
|
|
106
|
+
"IOSurfaceGetElementWidth": (b"Q^{__IOSurface=}",),
|
|
107
|
+
"IOSurfaceGetBytesPerElementOfPlane": (b"Q^{__IOSurface=}Q",),
|
|
108
|
+
"IOSurfaceCreateMachPort": (
|
|
109
|
+
b"I^{__IOSurface=}",
|
|
110
|
+
"",
|
|
111
|
+
{"retval": {"already_cfretained": True}},
|
|
112
|
+
),
|
|
113
|
+
"IOSurfaceGetNumberOfComponentsOfPlane": (b"Q^{__IOSurface=}Q",),
|
|
114
|
+
"IOSurfaceGetWidth": (b"Q^{__IOSurface=}",),
|
|
115
|
+
"IOSurfaceRemoveValue": (b"v^{__IOSurface=}^{__CFString=}",),
|
|
116
|
+
"IOSurfaceGetHeightOfPlane": (b"Q^{__IOSurface=}Q",),
|
|
117
|
+
"IOSurfaceGetHeight": (b"Q^{__IOSurface=}",),
|
|
118
|
+
"IOSurfaceGetBaseAddress": (
|
|
119
|
+
b"^v^{__IOSurface=}",
|
|
120
|
+
"",
|
|
121
|
+
{"retval": {"c_array_of_variable_length": True}},
|
|
122
|
+
),
|
|
123
|
+
"IOSurfaceAlignProperty": (b"Q^{__CFString=}Q",),
|
|
124
|
+
"IOSurfaceGetBytesPerRowOfPlane": (b"Q^{__IOSurface=}Q",),
|
|
125
|
+
"IOSurfaceCreate": (
|
|
126
|
+
b"^{__IOSurface=}^{__CFDictionary=}",
|
|
127
|
+
"",
|
|
128
|
+
{"retval": {"already_cfretained": True}},
|
|
129
|
+
),
|
|
130
|
+
"IOSurfaceGetElementHeightOfPlane": (b"Q^{__IOSurface=}Q",),
|
|
131
|
+
"IOSurfaceGetBytesPerElement": (b"Q^{__IOSurface=}",),
|
|
132
|
+
"IOSurfaceGetPropertyAlignment": (b"Q^{__CFString=}",),
|
|
133
|
+
"IOSurfaceGetNameOfComponentOfPlane": (b"i^{__IOSurface=}QQ",),
|
|
134
|
+
"IOSurfaceSetPurgeable": (
|
|
135
|
+
b"i^{__IOSurface=}I^I",
|
|
136
|
+
"",
|
|
137
|
+
{"arguments": {2: {"type_modifier": "o"}}},
|
|
138
|
+
),
|
|
139
|
+
"IOSurfaceUnlock": (
|
|
140
|
+
b"i^{__IOSurface=}I^I",
|
|
141
|
+
"",
|
|
142
|
+
{"arguments": {2: {"type_modifier": "o"}}},
|
|
143
|
+
),
|
|
144
|
+
"IOSurfaceGetPropertyMaximum": (b"Q^{__CFString=}",),
|
|
145
|
+
"IOSurfaceGetWidthOfPlane": (b"Q^{__IOSurface=}Q",),
|
|
146
|
+
"IOSurfaceIsInUse": (b"Z^{__IOSurface=}",),
|
|
147
|
+
"IOSurfaceAllowsPixelSizeCasting": (b"Z^{__IOSurface=}",),
|
|
148
|
+
"IOSurfaceCopyAllValues": (
|
|
149
|
+
b"^{__CFDictionary=}^{__IOSurface=}",
|
|
150
|
+
"",
|
|
151
|
+
{"retval": {"already_cfretained": True}},
|
|
152
|
+
),
|
|
153
|
+
}
|
|
154
|
+
aliases = {
|
|
155
|
+
"IOSFC_AVAILABLE_BUT_DEPRECATED": "__OSX_AVAILABLE_BUT_DEPRECATED",
|
|
156
|
+
"IOSFC_AVAILABLE_STARTING": "__OSX_AVAILABLE_STARTING",
|
|
157
|
+
"kIOSurfaceSuccess": "KERN_SUCCESS",
|
|
158
|
+
"IOSFC_DEPRECATED": "DEPRECATED_ATTRIBUTE",
|
|
159
|
+
}
|
|
160
|
+
cftypes = [("IOSurfaceRef", b"^{__IOSurface=}", "IOSurfaceGetTypeID", None)]
|
|
161
|
+
r = objc.registerMetaDataForSelector
|
|
162
|
+
objc._updatingMetadata(True)
|
|
163
|
+
try:
|
|
164
|
+
r(b"IOSurface", b"allowsPixelSizeCasting", {"retval": {"type": "Z"}})
|
|
165
|
+
r(
|
|
166
|
+
b"IOSurface",
|
|
167
|
+
b"baseAddressOfPlaneAtIndex:",
|
|
168
|
+
{"retval": {"c_array_of_variable_length": True}},
|
|
169
|
+
)
|
|
170
|
+
r(b"IOSurface", b"isInUse", {"retval": {"type": "Z"}})
|
|
171
|
+
r(
|
|
172
|
+
b"IOSurface",
|
|
173
|
+
b"lockWithOptions:seed:",
|
|
174
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
175
|
+
)
|
|
176
|
+
r(
|
|
177
|
+
b"IOSurface",
|
|
178
|
+
b"setPurgeable:oldState:",
|
|
179
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
180
|
+
)
|
|
181
|
+
r(
|
|
182
|
+
b"IOSurface",
|
|
183
|
+
b"unlockWithOptions:seed:",
|
|
184
|
+
{"arguments": {3: {"type_modifier": b"o"}}},
|
|
185
|
+
)
|
|
186
|
+
finally:
|
|
187
|
+
objc._updatingMetadata(False)
|
|
188
|
+
expressions = {}
|
|
189
|
+
|
|
190
|
+
# END OF FILE
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: pyobjc-framework-IOSurface
|
|
3
|
+
Version: 10.3.2
|
|
4
|
+
Summary: Wrappers for the framework IOSurface on macOS
|
|
5
|
+
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
|
+
Author: Ronald Oussoren
|
|
7
|
+
Author-email: pyobjc-dev@lists.sourceforge.net
|
|
8
|
+
License: MIT License
|
|
9
|
+
Keywords: PyObjC,IOSurface
|
|
10
|
+
Platform: MacOS X (>=10.6)
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Environment :: MacOS X :: Cocoa
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Natural Language :: English
|
|
17
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
18
|
+
Classifier: Programming Language :: Python
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
27
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
|
+
Classifier: Programming Language :: Objective C
|
|
29
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
|
+
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
+
Requires-Python: >=3.8
|
|
32
|
+
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
+
Requires-Dist: pyobjc-core>=10.3.2
|
|
34
|
+
Requires-Dist: pyobjc-framework-Cocoa>=10.3.2
|
|
35
|
+
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
36
|
+
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
37
|
+
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
Wrappers for the "IOSurface" framework on macOS.
|
|
41
|
+
|
|
42
|
+
These wrappers don't include documentation, please check Apple's documentation
|
|
43
|
+
for information on how to use this framework and PyObjC's documentation
|
|
44
|
+
for general tips and tricks regarding the translation between Python
|
|
45
|
+
and (Objective-)C frameworks
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
Project links
|
|
49
|
+
-------------
|
|
50
|
+
|
|
51
|
+
* `Documentation <https://pyobjc.readthedocs.io/en/latest/>`_
|
|
52
|
+
|
|
53
|
+
* `Issue Tracker <https://github.com/ronaldoussoren/pyobjc/issues>`_
|
|
54
|
+
|
|
55
|
+
* `Repository <https://github.com/ronaldoussoren/pyobjc/>`_
|
|
56
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
IOSurface/__init__.py,sha256=oqy0wryYdQg9kC89IrWDNCvVXUCUYjV31HI-SZ9MnBY,840
|
|
2
|
+
IOSurface/_metadata.py,sha256=B_KDa9-yq0pxagEPsJjjo1yxSFRbrmMJ05uJN-66Lbc,9297
|
|
3
|
+
pyobjc_framework_IOSurface-10.3.2.dist-info/METADATA,sha256=xOIxCrRreOKF3g-ilHxs2tbudClHwBuI6a6YpbClCoA,2241
|
|
4
|
+
pyobjc_framework_IOSurface-10.3.2.dist-info/WHEEL,sha256=pxeNX5JdtCe58PUSYP9upmc7jdRPgvT0Gm9kb1SHlVw,109
|
|
5
|
+
pyobjc_framework_IOSurface-10.3.2.dist-info/top_level.txt,sha256=lEU3WSYCMN0qfpwvdH0uiFRXCDH2J0TOqhJM3Vz-ozI,10
|
|
6
|
+
pyobjc_framework_IOSurface-10.3.2.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
IOSurface
|