pyobjc-framework-CoreMediaIO 10.3.2__tar.gz → 11.1__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_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/Lib/CoreMediaIO/_metadata.py +5 -3
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/Lib/pyobjc_framework_CoreMediaIO.egg-info/PKG-INFO +19 -8
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/Lib/pyobjc_framework_CoreMediaIO.egg-info/SOURCES.txt +4 -1
- pyobjc_framework_coremediaio-11.1/Lib/pyobjc_framework_CoreMediaIO.egg-info/pyobjc-build-info.txt +3 -0
- pyobjc_framework_coremediaio-11.1/Lib/pyobjc_framework_CoreMediaIO.egg-info/requires.txt +2 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/License.txt +1 -1
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/Modules/_CoreMediaIO.m +47 -14
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/Modules/pyobjc-api.h +1 -1
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/Modules/pyobjc-compat.h +175 -7
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/PKG-INFO +19 -8
- pyobjc_framework_coremediaio-11.1/PyObjCTest/__init__.py +1 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/metadata/CoreMediaIO.fwinfo +2 -0
- pyobjc_framework_coremediaio-11.1/metadata/raw/arm64-15.0.fwinfo +4311 -0
- pyobjc_framework_coremediaio-11.1/metadata/raw/x86_64-15.0.fwinfo +4311 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/pyobjc_setup.py +73 -53
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/setup.py +1 -3
- pyobjc_framework_coremediaio-10.3.2/Lib/pyobjc_framework_CoreMediaIO.egg-info/requires.txt +0 -2
- pyobjc_framework_coremediaio-10.3.2/PyObjCTest/__init__.py +0 -1
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/Lib/CoreMediaIO/__init__.py +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/Lib/pyobjc_framework_CoreMediaIO.egg-info/dependency_links.txt +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/Lib/pyobjc_framework_CoreMediaIO.egg-info/not-zip-safe +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/Lib/pyobjc_framework_CoreMediaIO.egg-info/top_level.txt +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/MANIFEST.in +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/PyObjCTest/test_cmioextensiondevice.py +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/PyObjCTest/test_cmioextensionproperties.py +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/PyObjCTest/test_cmioextensionprovider.py +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/PyObjCTest/test_cmioextensionstream.py +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/PyObjCTest/test_cmiohardware.py +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/PyObjCTest/test_cmiohardwarecontrol.py +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/PyObjCTest/test_cmiohardwaredevice.py +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/PyObjCTest/test_cmiohardwareobject.py +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/PyObjCTest/test_cmiohardwarestream.py +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/PyObjCTest/test_cmiohardwaresystem.py +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/PyObjCTest/test_cmiosamplebuffer.py +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/PyObjCTest/test_coremediaio.py +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/metadata/metadata.ini +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/metadata/raw/arm64-12.3.fwinfo +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/metadata/raw/arm64-14.5.fwinfo +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/metadata/raw/x86_64-10.13.fwinfo +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/metadata/raw/x86_64-10.14.fwinfo +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/metadata/raw/x86_64-10.15.fwinfo +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/metadata/raw/x86_64-10.16.fwinfo +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/metadata/raw/x86_64-12.3.fwinfo +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/metadata/raw/x86_64-14.5.fwinfo +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/pyproject.toml +0 -0
- {pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update:
|
|
3
|
+
# Last update: Fri Nov 15 13:01:14 2024
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -159,7 +159,8 @@ functions = {
|
|
|
159
159
|
2: {"type": b"^{CMIOObjectPropertyAddress=III}"},
|
|
160
160
|
3: {"type": b"^v"},
|
|
161
161
|
},
|
|
162
|
-
}
|
|
162
|
+
},
|
|
163
|
+
"callable_retained": True,
|
|
163
164
|
},
|
|
164
165
|
}
|
|
165
166
|
},
|
|
@@ -233,7 +234,8 @@ functions = {
|
|
|
233
234
|
2: {"type": b"^{CMIOObjectPropertyAddress=III}"},
|
|
234
235
|
3: {"type": b"^v"},
|
|
235
236
|
},
|
|
236
|
-
}
|
|
237
|
+
},
|
|
238
|
+
"callable_retained": True,
|
|
237
239
|
},
|
|
238
240
|
}
|
|
239
241
|
},
|
|
@@ -1,37 +1,48 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-CoreMediaIO
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.1
|
|
4
4
|
Summary: Wrappers for the framework CoreMediaIO on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
7
7
|
Author-email: pyobjc-dev@lists.sourceforge.net
|
|
8
|
-
License: MIT
|
|
8
|
+
License: MIT
|
|
9
9
|
Keywords: PyObjC,CoreMediaIO
|
|
10
10
|
Platform: MacOS X (>=10.7)
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Environment :: Console
|
|
13
13
|
Classifier: Environment :: MacOS X :: Cocoa
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
15
|
Classifier: Natural Language :: English
|
|
17
16
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
18
17
|
Classifier: Programming Language :: Python
|
|
19
18
|
Classifier: Programming Language :: Python :: 3
|
|
20
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
21
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
24
|
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
27
|
Classifier: Programming Language :: Objective C
|
|
29
28
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
29
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
30
|
+
Requires-Python: >=3.9
|
|
32
31
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
32
|
+
Requires-Dist: pyobjc-core>=11.1
|
|
33
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.1
|
|
34
|
+
Dynamic: author
|
|
35
|
+
Dynamic: author-email
|
|
36
|
+
Dynamic: classifier
|
|
37
|
+
Dynamic: description
|
|
38
|
+
Dynamic: description-content-type
|
|
39
|
+
Dynamic: home-page
|
|
40
|
+
Dynamic: keywords
|
|
41
|
+
Dynamic: license
|
|
42
|
+
Dynamic: platform
|
|
43
|
+
Dynamic: requires-dist
|
|
44
|
+
Dynamic: requires-python
|
|
45
|
+
Dynamic: summary
|
|
35
46
|
Project-URL: Documentation, https://pyobjc.readthedocs.io/en/latest/
|
|
36
47
|
Project-URL: Issue tracker, https://github.com/ronaldoussoren/pyobjc/issues
|
|
37
48
|
Project-URL: Repository, https://github.com/ronaldoussoren/pyobjc
|
|
@@ -9,6 +9,7 @@ Lib/pyobjc_framework_CoreMediaIO.egg-info/PKG-INFO
|
|
|
9
9
|
Lib/pyobjc_framework_CoreMediaIO.egg-info/SOURCES.txt
|
|
10
10
|
Lib/pyobjc_framework_CoreMediaIO.egg-info/dependency_links.txt
|
|
11
11
|
Lib/pyobjc_framework_CoreMediaIO.egg-info/not-zip-safe
|
|
12
|
+
Lib/pyobjc_framework_CoreMediaIO.egg-info/pyobjc-build-info.txt
|
|
12
13
|
Lib/pyobjc_framework_CoreMediaIO.egg-info/requires.txt
|
|
13
14
|
Lib/pyobjc_framework_CoreMediaIO.egg-info/top_level.txt
|
|
14
15
|
Modules/_CoreMediaIO.m
|
|
@@ -31,9 +32,11 @@ metadata/CoreMediaIO.fwinfo
|
|
|
31
32
|
metadata/metadata.ini
|
|
32
33
|
metadata/raw/arm64-12.3.fwinfo
|
|
33
34
|
metadata/raw/arm64-14.5.fwinfo
|
|
35
|
+
metadata/raw/arm64-15.0.fwinfo
|
|
34
36
|
metadata/raw/x86_64-10.13.fwinfo
|
|
35
37
|
metadata/raw/x86_64-10.14.fwinfo
|
|
36
38
|
metadata/raw/x86_64-10.15.fwinfo
|
|
37
39
|
metadata/raw/x86_64-10.16.fwinfo
|
|
38
40
|
metadata/raw/x86_64-12.3.fwinfo
|
|
39
|
-
metadata/raw/x86_64-14.5.fwinfo
|
|
41
|
+
metadata/raw/x86_64-14.5.fwinfo
|
|
42
|
+
metadata/raw/x86_64-15.0.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-2025 - 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
|
|
{pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/Modules/_CoreMediaIO.m
RENAMED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
#ifndef PyObjC_GIL_DISABLED
|
|
2
|
-
#define Py_LIMITED_API 0x03060000
|
|
3
|
-
#endif
|
|
4
1
|
#define PY_SSIZE_T_CLEAN
|
|
5
2
|
#include "Python.h"
|
|
6
3
|
#include "pyobjc-api.h"
|
|
@@ -113,21 +110,57 @@ static PyMethodDef mod_methods[] = {
|
|
|
113
110
|
{NULL} /* Sentinel */
|
|
114
111
|
};
|
|
115
112
|
|
|
113
|
+
|
|
114
|
+
static int mod_exec_module(PyObject* m)
|
|
115
|
+
{
|
|
116
|
+
if (PyObjC_ImportAPI(m) == -1)
|
|
117
|
+
return -1;
|
|
118
|
+
return 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
static struct PyModuleDef_Slot mod_slots[] = {
|
|
122
|
+
{
|
|
123
|
+
.slot = Py_mod_exec,
|
|
124
|
+
.value = (void*)mod_exec_module
|
|
125
|
+
},
|
|
126
|
+
#if PY_VERSION_HEX >= 0x030c0000
|
|
127
|
+
{
|
|
128
|
+
/* This extension does not use the CPython API other than initializing
|
|
129
|
+
* the module, hence is safe with subinterpreters and per-interpreter
|
|
130
|
+
* GILs
|
|
131
|
+
*/
|
|
132
|
+
.slot = Py_mod_multiple_interpreters,
|
|
133
|
+
.value = Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED,
|
|
134
|
+
},
|
|
135
|
+
#endif
|
|
136
|
+
#if PY_VERSION_HEX >= 0x030d0000
|
|
137
|
+
{
|
|
138
|
+
/* The code in this extension should be safe to use without the GIL */
|
|
139
|
+
.slot = Py_mod_gil,
|
|
140
|
+
.value = Py_MOD_GIL_NOT_USED,
|
|
141
|
+
},
|
|
142
|
+
#endif
|
|
143
|
+
{ /* Sentinel */
|
|
144
|
+
.slot = 0,
|
|
145
|
+
.value = 0
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
|
|
116
149
|
static struct PyModuleDef mod_module = {
|
|
117
|
-
|
|
150
|
+
.m_base = PyModuleDef_HEAD_INIT,
|
|
151
|
+
.m_name = "_CoreMediaIO",
|
|
152
|
+
.m_doc = NULL,
|
|
153
|
+
.m_size = 0,
|
|
154
|
+
.m_methods = mod_methods,
|
|
155
|
+
.m_slots = mod_slots,
|
|
156
|
+
.m_traverse = NULL,
|
|
157
|
+
.m_clear = NULL,
|
|
158
|
+
.m_free = NULL,
|
|
159
|
+
};
|
|
118
160
|
|
|
119
161
|
PyObject* PyInit__CoreMediaIO(void);
|
|
120
162
|
|
|
121
163
|
PyObject* __attribute__((__visibility__("default"))) PyInit__CoreMediaIO(void)
|
|
122
164
|
{
|
|
123
|
-
|
|
124
|
-
m = PyModule_Create(&mod_module);
|
|
125
|
-
if (!m) {
|
|
126
|
-
return NULL;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
if (PyObjC_ImportAPI(m) == -1)
|
|
130
|
-
return NULL;
|
|
131
|
-
|
|
132
|
-
return m;
|
|
165
|
+
return PyModuleDef_Init(&mod_module);
|
|
133
166
|
}
|
{pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/Modules/pyobjc-api.h
RENAMED
|
@@ -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,
|
{pyobjc_framework_coremediaio-10.3.2 → pyobjc_framework_coremediaio-11.1}/Modules/pyobjc-compat.h
RENAMED
|
@@ -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
|
|
@@ -177,7 +179,7 @@ extern const char* _Nullable PyObjC_Unicode_Fast_Bytes(PyObject* object);
|
|
|
177
179
|
|
|
178
180
|
static inline PyObject* _Nullable* _Nonnull PyTuple_ITEMS(PyObject* tuple)
|
|
179
181
|
{
|
|
180
|
-
return &PyTuple_GET_ITEM(tuple, 0);
|
|
182
|
+
return &PyTuple_GET_ITEM(tuple, 0); // LCOV_BR_EXCL_LINE
|
|
181
183
|
}
|
|
182
184
|
|
|
183
185
|
/* This is a crude hack to disable a otherwise useful warning in the context of
|
|
@@ -196,7 +198,7 @@ _PyObjCTuple_SetItem(PyObject* tuple, Py_ssize_t idx, PyObject* _Nullable value)
|
|
|
196
198
|
static inline PyObject*
|
|
197
199
|
_PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
198
200
|
{
|
|
199
|
-
return PyTuple_GET_ITEM(tuple, idx);
|
|
201
|
+
return PyTuple_GET_ITEM(tuple, idx); // LCOV_BR_EXCL_LINE
|
|
200
202
|
}
|
|
201
203
|
#undef PyTuple_GET_ITEM
|
|
202
204
|
#define PyTuple_GET_ITEM(a, b) _PyObjCTuple_GetItem(a, b)
|
|
@@ -238,7 +240,173 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
|
|
|
238
240
|
PyGILState_Release(_GILState); \
|
|
239
241
|
} while (0)
|
|
240
242
|
|
|
241
|
-
|
|
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
|
+
|
|
317
|
+
#if PY_VERSION_HEX >= 0x030c0000 && PY_VERSION_HEX < 0x030e0000
|
|
318
|
+
/*
|
|
319
|
+
* These are available in 3.14 and above, the definitions below
|
|
320
|
+
* mirror the private implementation in 3.13.
|
|
321
|
+
*/
|
|
322
|
+
static inline int PyUnstable_Object_IsUniquelyReferenced(PyObject* ob)
|
|
323
|
+
{
|
|
324
|
+
#ifdef Py_GIL_DISABLED
|
|
325
|
+
return (_Py_IsOwnedByCurrentThread(ob) &&
|
|
326
|
+
_Py_atomic_load_uint32_relaxed(&ob->ob_ref_local) == 1 &&
|
|
327
|
+
_Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared) == 0);
|
|
328
|
+
#else
|
|
329
|
+
return Py_REFCNT(ob) == 1;
|
|
330
|
+
#endif
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
static inline void
|
|
334
|
+
PyUnstable_EnableTryIncRef(PyObject* op __attribute__((__unused__)))
|
|
335
|
+
{
|
|
336
|
+
#ifdef Py_GIL_DISABLED
|
|
337
|
+
for (;;) {
|
|
338
|
+
Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
|
|
339
|
+
if ((shared & _Py_REF_SHARED_FLAG_MASK) != 0) {
|
|
340
|
+
// Nothing to do if it's in WEAKREFS, QUEUED, or MERGED states.
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
if (_Py_atomic_compare_exchange_ssize(
|
|
344
|
+
&op->ob_ref_shared, &shared, shared | _Py_REF_MAYBE_WEAKREF)) {
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
#endif
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
#ifdef Py_GIL_DISABLED
|
|
352
|
+
static inline int
|
|
353
|
+
_Py_TryIncrefFast(PyObject *op) {
|
|
354
|
+
uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
|
|
355
|
+
local += 1;
|
|
356
|
+
if (local == 0) {
|
|
357
|
+
// immortal
|
|
358
|
+
return 1;
|
|
359
|
+
}
|
|
360
|
+
if (_Py_IsOwnedByCurrentThread(op)) {
|
|
361
|
+
_Py_INCREF_STAT_INC();
|
|
362
|
+
_Py_atomic_store_uint32_relaxed(&op->ob_ref_local, local);
|
|
363
|
+
#ifdef Py_REF_DEBUG
|
|
364
|
+
_Py_IncRefTotal(_PyThreadState_GET());
|
|
365
|
+
#endif
|
|
366
|
+
return 1;
|
|
367
|
+
}
|
|
368
|
+
return 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
static inline int
|
|
372
|
+
_Py_TryIncRefShared(PyObject *op)
|
|
373
|
+
{
|
|
374
|
+
Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
|
|
375
|
+
for (;;) {
|
|
376
|
+
// If the shared refcount is zero and the object is either merged
|
|
377
|
+
// or may not have weak references, then we cannot incref it.
|
|
378
|
+
if (shared == 0 || shared == _Py_REF_MERGED) {
|
|
379
|
+
return 0;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
if (_Py_atomic_compare_exchange_ssize(
|
|
383
|
+
&op->ob_ref_shared,
|
|
384
|
+
&shared,
|
|
385
|
+
shared + (1 << _Py_REF_SHARED_SHIFT))) {
|
|
386
|
+
#ifdef Py_REF_DEBUG
|
|
387
|
+
_Py_IncRefTotal(_PyThreadState_GET());
|
|
388
|
+
#endif
|
|
389
|
+
_Py_INCREF_STAT_INC();
|
|
390
|
+
return 1;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
#endif
|
|
395
|
+
|
|
396
|
+
static inline int
|
|
397
|
+
PyUnstable_TryIncRef(PyObject *op __attribute__((__unused__)))
|
|
398
|
+
{
|
|
399
|
+
#ifdef Py_GIL_DISABLED
|
|
400
|
+
return _Py_TryIncrefFast(op) || _Py_TryIncRefShared(op);
|
|
401
|
+
#else
|
|
402
|
+
if (Py_REFCNT(op) > 0) {
|
|
403
|
+
Py_INCREF(op);
|
|
404
|
+
return 1;
|
|
405
|
+
}
|
|
406
|
+
return 0;
|
|
407
|
+
#endif
|
|
408
|
+
}
|
|
409
|
+
#endif
|
|
242
410
|
|
|
243
411
|
NS_ASSUME_NONNULL_END
|
|
244
412
|
|
|
@@ -1,37 +1,48 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: pyobjc-framework-CoreMediaIO
|
|
3
|
-
Version:
|
|
3
|
+
Version: 11.1
|
|
4
4
|
Summary: Wrappers for the framework CoreMediaIO on macOS
|
|
5
5
|
Home-page: https://github.com/ronaldoussoren/pyobjc
|
|
6
6
|
Author: Ronald Oussoren
|
|
7
7
|
Author-email: pyobjc-dev@lists.sourceforge.net
|
|
8
|
-
License: MIT
|
|
8
|
+
License: MIT
|
|
9
9
|
Keywords: PyObjC,CoreMediaIO
|
|
10
10
|
Platform: MacOS X (>=10.7)
|
|
11
11
|
Classifier: Development Status :: 5 - Production/Stable
|
|
12
12
|
Classifier: Environment :: Console
|
|
13
13
|
Classifier: Environment :: MacOS X :: Cocoa
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
16
15
|
Classifier: Natural Language :: English
|
|
17
16
|
Classifier: Operating System :: MacOS :: MacOS X
|
|
18
17
|
Classifier: Programming Language :: Python
|
|
19
18
|
Classifier: Programming Language :: Python :: 3
|
|
20
19
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
21
|
Classifier: Programming Language :: Python :: 3.10
|
|
24
22
|
Classifier: Programming Language :: Python :: 3.11
|
|
25
23
|
Classifier: Programming Language :: Python :: 3.12
|
|
26
24
|
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
27
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
28
27
|
Classifier: Programming Language :: Objective C
|
|
29
28
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
30
29
|
Classifier: Topic :: Software Development :: User Interfaces
|
|
31
|
-
Requires-Python: >=3.
|
|
30
|
+
Requires-Python: >=3.9
|
|
32
31
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
33
|
-
Requires-Dist: pyobjc-core>=
|
|
34
|
-
Requires-Dist: pyobjc-framework-Cocoa>=
|
|
32
|
+
Requires-Dist: pyobjc-core>=11.1
|
|
33
|
+
Requires-Dist: pyobjc-framework-Cocoa>=11.1
|
|
34
|
+
Dynamic: author
|
|
35
|
+
Dynamic: author-email
|
|
36
|
+
Dynamic: classifier
|
|
37
|
+
Dynamic: description
|
|
38
|
+
Dynamic: description-content-type
|
|
39
|
+
Dynamic: home-page
|
|
40
|
+
Dynamic: keywords
|
|
41
|
+
Dynamic: license
|
|
42
|
+
Dynamic: platform
|
|
43
|
+
Dynamic: requires-dist
|
|
44
|
+
Dynamic: requires-python
|
|
45
|
+
Dynamic: summary
|
|
35
46
|
|
|
36
47
|
|
|
37
48
|
Wrappers for the "CoreMediaIO" framework on macOS.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""testsuite"""
|
|
@@ -151,6 +151,7 @@
|
|
|
151
151
|
"args": {
|
|
152
152
|
"1": { "type_modifier": "n" },
|
|
153
153
|
"2": {
|
|
154
|
+
"callable_retained": true,
|
|
154
155
|
"function": {
|
|
155
156
|
"args": [
|
|
156
157
|
{
|
|
@@ -233,6 +234,7 @@
|
|
|
233
234
|
"args": {
|
|
234
235
|
"1": { "type_modifier": "n" },
|
|
235
236
|
"2": {
|
|
237
|
+
"callable_retained": true,
|
|
236
238
|
"function": {
|
|
237
239
|
"args": [
|
|
238
240
|
{
|