pyobjc-framework-MediaToolbox 11.1__tar.gz → 12.2.2__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 (38) hide show
  1. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/Lib/MediaToolbox/_metadata.py +1 -1
  2. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/Lib/pyobjc_framework_MediaToolbox.egg-info/PKG-INFO +6 -5
  3. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/Lib/pyobjc_framework_MediaToolbox.egg-info/SOURCES.txt +2 -8
  4. pyobjc_framework_mediatoolbox-12.2.2/Lib/pyobjc_framework_MediaToolbox.egg-info/pyobjc-build-info.txt +3 -0
  5. pyobjc_framework_mediatoolbox-12.2.2/Lib/pyobjc_framework_MediaToolbox.egg-info/requires.txt +2 -0
  6. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/Modules/_MediaToolbox.m +18 -21
  7. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/Modules/pyobjc-api.h +6 -3
  8. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/Modules/pyobjc-compat.h +56 -98
  9. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/PKG-INFO +6 -5
  10. pyobjc_framework_mediatoolbox-11.1/metadata/raw/arm64-14.5.fwinfo → pyobjc_framework_mediatoolbox-12.2.2/metadata/raw/arm64-26.5.fwinfo +39 -8
  11. pyobjc_framework_mediatoolbox-11.1/metadata/raw/x86_64-14.5.fwinfo → pyobjc_framework_mediatoolbox-12.2.2/metadata/raw/x86_64-26.5.fwinfo +39 -8
  12. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/pyobjc_setup.py +5 -4
  13. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/setup.py +1 -1
  14. pyobjc_framework_mediatoolbox-11.1/Lib/pyobjc_framework_MediaToolbox.egg-info/pyobjc-build-info.txt +0 -3
  15. pyobjc_framework_mediatoolbox-11.1/Lib/pyobjc_framework_MediaToolbox.egg-info/requires.txt +0 -2
  16. pyobjc_framework_mediatoolbox-11.1/metadata/raw/arm64-12.3.fwinfo +0 -154
  17. pyobjc_framework_mediatoolbox-11.1/metadata/raw/arm64-15.0.fwinfo +0 -165
  18. pyobjc_framework_mediatoolbox-11.1/metadata/raw/x86_64-10.13.fwinfo +0 -153
  19. pyobjc_framework_mediatoolbox-11.1/metadata/raw/x86_64-10.16.fwinfo +0 -153
  20. pyobjc_framework_mediatoolbox-11.1/metadata/raw/x86_64-12.3.fwinfo +0 -154
  21. pyobjc_framework_mediatoolbox-11.1/metadata/raw/x86_64-15.0.fwinfo +0 -165
  22. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/Examples/ProcessingTap/summary.txt +0 -0
  23. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/Examples/ProcessingTap/tap.py +0 -0
  24. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/Lib/MediaToolbox/__init__.py +0 -0
  25. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/Lib/pyobjc_framework_MediaToolbox.egg-info/dependency_links.txt +0 -0
  26. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/Lib/pyobjc_framework_MediaToolbox.egg-info/not-zip-safe +0 -0
  27. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/Lib/pyobjc_framework_MediaToolbox.egg-info/top_level.txt +0 -0
  28. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/License.txt +0 -0
  29. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/MANIFEST.in +0 -0
  30. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/PyObjCTest/__init__.py +0 -0
  31. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/PyObjCTest/test_mediatoolbox.py +0 -0
  32. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/PyObjCTest/test_mtaudioprocessingtap.py +0 -0
  33. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/PyObjCTest/test_mtformatnames.py +0 -0
  34. /pyobjc_framework_mediatoolbox-11.1/PyObjCTest/test_mtprofessionalvideoworkflow.py → /pyobjc_framework_mediatoolbox-12.2.2/PyObjCTest/test_mtprofessionalvideoWorkflow.py +0 -0
  35. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/metadata/MediaToolbox.fwinfo +0 -0
  36. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/metadata/metadata.ini +0 -0
  37. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/pyproject.toml +0 -0
  38. {pyobjc_framework_mediatoolbox-11.1 → pyobjc_framework_mediatoolbox-12.2.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  # This file is generated by objective.metadata
2
2
  #
3
- # Last update: Tue Jun 11 10:14:32 2024
3
+ # Last update: Sun May 24 11:52:36 2026
4
4
  #
5
5
  # flake8: noqa
6
6
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-MediaToolbox
3
- Version: 11.1
3
+ Version: 12.2.2
4
4
  Summary: Wrappers for the framework MediaToolbox on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -17,20 +17,21 @@ Classifier: Operating System :: MacOS :: MacOS X
17
17
  Classifier: Programming Language :: Python
18
18
  Classifier: Programming Language :: Python :: 3
19
19
  Classifier: Programming Language :: Python :: 3 :: Only
20
- Classifier: Programming Language :: Python :: 3.9
21
20
  Classifier: Programming Language :: Python :: 3.10
22
21
  Classifier: Programming Language :: Python :: 3.11
23
22
  Classifier: Programming Language :: Python :: 3.12
24
23
  Classifier: Programming Language :: Python :: 3.13
25
24
  Classifier: Programming Language :: Python :: 3.14
25
+ Classifier: Programming Language :: Python :: 3.15
26
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
+ Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
27
28
  Classifier: Programming Language :: Objective C
28
29
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
30
  Classifier: Topic :: Software Development :: User Interfaces
30
- Requires-Python: >=3.9
31
+ Requires-Python: >=3.10
31
32
  Description-Content-Type: text/x-rst; charset=UTF-8
32
- Requires-Dist: pyobjc-core>=11.1
33
- Requires-Dist: pyobjc-framework-Cocoa>=11.1
33
+ Requires-Dist: pyobjc-core>=12.2.2
34
+ Requires-Dist: pyobjc-framework-Cocoa>=12.2.2
34
35
  Dynamic: author
35
36
  Dynamic: author-email
36
37
  Dynamic: classifier
@@ -25,11 +25,5 @@ PyObjCTest/test_mtprofessionalvideoWorkflow.py
25
25
  PyObjCTest/test_mtprofessionalvideoworkflow.py
26
26
  metadata/MediaToolbox.fwinfo
27
27
  metadata/metadata.ini
28
- metadata/raw/arm64-12.3.fwinfo
29
- metadata/raw/arm64-14.5.fwinfo
30
- metadata/raw/arm64-15.0.fwinfo
31
- metadata/raw/x86_64-10.13.fwinfo
32
- metadata/raw/x86_64-10.16.fwinfo
33
- metadata/raw/x86_64-12.3.fwinfo
34
- metadata/raw/x86_64-14.5.fwinfo
35
- metadata/raw/x86_64-15.0.fwinfo
28
+ metadata/raw/arm64-26.5.fwinfo
29
+ metadata/raw/x86_64-26.5.fwinfo
@@ -0,0 +1,3 @@
1
+ macOS 26.6 (25G70)
2
+ Apple clang version 21.0.0 (clang-2100.1.1.101)
3
+ SDK: macOS 26.5
@@ -0,0 +1,2 @@
1
+ pyobjc-core>=12.2.2
2
+ pyobjc-framework-Cocoa>=12.2.2
@@ -388,54 +388,51 @@ static PyMethodDef mod_methods[] = {
388
388
  {NULL} /* Sentinel */
389
389
  };
390
390
 
391
- static int mod_exec_module(PyObject* m)
391
+ static int
392
+ mod_exec_module(PyObject* m)
392
393
  {
393
394
  return 0;
394
395
  }
395
396
 
396
397
  static struct PyModuleDef_Slot mod_slots[] = {
397
- {
398
- .slot = Py_mod_exec,
399
- .value = (void*)mod_exec_module
400
- },
398
+ {.slot = Py_mod_exec, .value = (void*)mod_exec_module},
401
399
  #if PY_VERSION_HEX >= 0x030c0000
402
400
  {
403
401
  /* This extension does not use the CPython API other than initializing
404
402
  * the module, hence is safe with subinterpreters and per-interpreter
405
403
  * GILs
406
404
  */
407
- .slot = Py_mod_multiple_interpreters,
405
+ .slot = Py_mod_multiple_interpreters,
408
406
  .value = Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED,
409
407
  },
410
408
  #endif
411
409
  #if PY_VERSION_HEX >= 0x030d0000
412
410
  {
413
411
  /* The code in this extension should be safe to use without the GIL */
414
- .slot = Py_mod_gil,
412
+ .slot = Py_mod_gil,
415
413
  .value = Py_MOD_GIL_NOT_USED,
416
414
  },
417
415
  #endif
418
- { /* Sentinel */
419
- .slot = 0,
420
- .value = 0
421
- }
422
- };
416
+ {/* Sentinel */
417
+ .slot = 0,
418
+ .value = 0}};
423
419
 
424
420
  static struct PyModuleDef mod_module = {
425
- .m_base = PyModuleDef_HEAD_INIT,
426
- .m_name = "_MediaToolbox",
427
- .m_doc = NULL,
428
- .m_size = 0,
429
- .m_methods = mod_methods,
430
- .m_slots = mod_slots,
421
+ .m_base = PyModuleDef_HEAD_INIT,
422
+ .m_name = "_MediaToolbox",
423
+ .m_doc = NULL,
424
+ .m_size = 0,
425
+ .m_methods = mod_methods,
426
+ .m_slots = mod_slots,
431
427
  .m_traverse = NULL,
432
- .m_clear = NULL,
433
- .m_free = NULL,
428
+ .m_clear = NULL,
429
+ .m_free = NULL,
434
430
  };
435
431
 
436
432
  PyObject* PyInit__MediaToolbox(void);
437
433
 
438
- PyObject* __attribute__((__visibility__("default"))) PyInit__MediaToolbox(void)
434
+ PyObject* __attribute__((__visibility__("default")))
435
+ PyInit__MediaToolbox(void)
439
436
  {
440
437
  return PyModuleDef_Init(&mod_module);
441
438
  }
@@ -53,8 +53,9 @@ NS_ASSUME_NONNULL_BEGIN
53
53
  /*
54
54
  * Only add items to the end of this list!
55
55
  */
56
+
56
57
  typedef int(RegisterMethodMappingFunctionType)(
57
- Class, SEL,
58
+ Class _Nullable, SEL,
58
59
  PyObject* _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull,
59
60
  PyObject* _Nonnull const* _Nonnull, size_t),
60
61
  IMP _Nullable (*_Nonnull)(PyObject* _Nonnull, PyObject* _Nonnull));
@@ -83,7 +84,8 @@ struct pyobjc_api {
83
84
  PyObject* _Nullable (*_Nonnull unsupported_method_caller)(
84
85
  PyObject* _Nonnull, PyObject* _Nonnull, PyObject* _Nonnull const* _Nonnull,
85
86
  size_t);
86
- void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state) __attribute__((__noreturn__));
87
+ void (*_Nonnull err_python_to_objc_gil)(PyGILState_STATE* _Nonnull state)
88
+ __attribute__((__noreturn__));
87
89
  int (*_Nonnull simplify_sig)(const char* signature, char* buf, size_t buflen);
88
90
  void (*_Nonnull free_c_array)(int, Py_buffer*);
89
91
  int (*_Nonnull py_to_c_array)(BOOL, BOOL, const char* _Nonnull, PyObject* _Nonnull,
@@ -113,7 +115,8 @@ struct pyobjc_api {
113
115
  int (*_Nonnull checknokwnames)(PyObject* _Nonnull callable,
114
116
  PyObject* _Nullable kwnames);
115
117
 
116
- PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*, const char*);
118
+ PyObject* _Nullable (*_Nonnull createopaquepointertype)(const char*, const char*,
119
+ const char*);
117
120
  };
118
121
 
119
122
  #ifndef PYOBJC_BUILD
@@ -22,12 +22,14 @@ NS_ASSUME_NONNULL_BEGIN
22
22
  * Start of compiler definitions
23
23
  *
24
24
  */
25
+ #if 0
25
26
  #ifndef __has_feature
26
27
  #define __has_feature(x) 0
27
28
  #endif
28
29
  #ifndef __has_extension
29
30
  #define __has_extension(x) __has_feature(x)
30
31
  #endif
32
+ #endif
31
33
 
32
34
  #if __has_extension(c_static_assert)
33
35
  #define STATIC_ASSERT(test, message) _Static_assert(test, message)
@@ -55,46 +57,10 @@ NS_ASSUME_NONNULL_BEGIN
55
57
  /*
56
58
  *
57
59
  * Start of compiler support helpers
58
- *
59
- * XXX: Are these needed?
60
60
  */
61
61
 
62
- #ifdef __GNUC__
63
62
  #define unlikely(x) __builtin_expect(!!(x), 0)
64
63
  #define likely(x) __builtin_expect(!!(x), 1)
65
- #else
66
- #define likely(x) x
67
- #define likely(x) x
68
- #endif
69
-
70
- /* On some versions of GCC <limits.h> defines LONG_LONG_MAX but not LLONG_MAX, compensate.
71
- */
72
- #ifndef LLONG_MIN
73
- #ifdef LONG_LONG_MIN
74
- #define LLONG_MIN LONG_LONG_MIN
75
- #define LLONG_MAX LONG_LONG_MAX
76
- #define ULLONG_MAX ULONG_LONG_MAX
77
- #endif
78
- #endif
79
-
80
- /*
81
- *
82
- * End of compiler support helpers
83
- *
84
- * XXX: These two are no longer needed, all supported platforms
85
- * are 64-bit
86
- */
87
-
88
- #if __LP64__
89
- #define Py_ARG_NSInteger "l"
90
- #define Py_ARG_NSUInteger "k"
91
- #else
92
- #define Py_ARG_NSInteger "i"
93
- #define Py_ARG_NSUInteger "I"
94
- #endif
95
-
96
- #define PyObjC__STR(x) #x
97
- #define PyObjC_STR(x) PyObjC__STR(x)
98
64
 
99
65
  /*
100
66
  *
@@ -123,34 +89,6 @@ NS_ASSUME_NONNULL_BEGIN
123
89
  } while (0)
124
90
  #endif
125
91
 
126
- #if PY_VERSION_HEX < 0x03090000
127
-
128
- /* For use on Python 3.8 and earlier. PyObjC doesn't use the
129
- * "flag" bit internally.
130
- */
131
-
132
- #ifndef PY_VECTORCALL_ARGUMENTS_OFFSET
133
- #define PY_VECTORCALL_ARGUMENTS_OFFSET ((size_t)1 << (8 * sizeof(size_t) - 1))
134
- #endif
135
-
136
- #define PyVectorcall_NARGS(nargsf) ((nargsf) & ~PY_VECTORCALL_ARGUMENTS_OFFSET)
137
-
138
- #ifdef OBJC_VERSION
139
- /* Don't use PyObject prefixed symbols in our binaries */
140
- #define PyObject_Vectorcall PyObjC_Vectorcall
141
- #define PyObject_VectorcallMethod PyObjC_VectorcallMethod
142
-
143
- extern PyObject* _Nullable PyObject_Vectorcall(PyObject* callable,
144
- PyObject* _Nonnull const* _Nonnull args,
145
- size_t nargsf,
146
- PyObject* _Nullable kwnames);
147
- extern PyObject* _Nullable PyObject_VectorcallMethod(
148
- PyObject* name, PyObject* _Nonnull const* _Nonnull args, size_t nargsf,
149
- PyObject* _Nullable kwnames);
150
- #endif
151
-
152
- #endif /* Python < 3.9 */
153
-
154
92
  /* Use CLINIC_SEP between the prototype and
155
93
  * description in doc strings, to get clean
156
94
  * docstrings.
@@ -159,20 +97,6 @@ extern PyObject* _Nullable PyObject_VectorcallMethod(
159
97
 
160
98
  extern int PyObjC_Cmp(PyObject* o1, PyObject* o2, int* result);
161
99
 
162
- /*
163
- * A micro optimization: when using Python 3.3 or later it
164
- * is possible to access a 'char*' with an ASCII representation
165
- * of a unicode object without first converting it to a bytes
166
- * string (if the string can be encoded as ASCII in the first
167
- * place.
168
- *
169
- * This slightly reduces the object allocation rate during
170
- * attribute access.
171
- *
172
- * XXX: Use PyUnicode_AsUTF8 instead.
173
- */
174
- extern const char* _Nullable PyObjC_Unicode_Fast_Bytes(PyObject* object);
175
-
176
100
  #ifdef __clang__
177
101
 
178
102
  #ifndef Py_LIMITED_API
@@ -198,7 +122,10 @@ _PyObjCTuple_SetItem(PyObject* tuple, Py_ssize_t idx, PyObject* _Nullable value)
198
122
  static inline PyObject*
199
123
  _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
200
124
  {
201
- return PyTuple_GET_ITEM(tuple, idx); // LCOV_BR_EXCL_LINE
125
+ /* The protocol for tuples is that they are full initialized
126
+ * before handing them over to other code.
127
+ */
128
+ return (PyObject* _Nonnull)PyTuple_GET_ITEM(tuple, idx); // LCOV_BR_EXCL_LINE
202
129
  }
203
130
  #undef PyTuple_GET_ITEM
204
131
  #define PyTuple_GET_ITEM(a, b) _PyObjCTuple_GetItem(a, b)
@@ -242,13 +169,15 @@ _PyObjCTuple_GetItem(PyObject* tuple, Py_ssize_t idx)
242
169
 
243
170
  #if PY_VERSION_HEX < 0x030a0000
244
171
 
245
- static inline PyObject* Py_NewRef(PyObject* o)
172
+ static inline PyObject*
173
+ Py_NewRef(PyObject* o)
246
174
  {
247
175
  Py_INCREF(o);
248
176
  return o;
249
177
  }
250
178
 
251
- static inline PyObject* Py_XNewRef(PyObject* o)
179
+ static inline PyObject*
180
+ Py_XNewRef(PyObject* o)
252
181
  {
253
182
  Py_XINCREF(o);
254
183
  return o;
@@ -257,11 +186,16 @@ static inline PyObject* Py_XNewRef(PyObject* o)
257
186
  #endif /* PY_VERSION_HEX < 0x030a0000 */
258
187
 
259
188
  #if PY_VERSION_HEX < 0x030d0000
260
- #define Py_BEGIN_CRITICAL_SECTION(value) { (void)(value);
189
+ #define Py_BEGIN_CRITICAL_SECTION(value) \
190
+ { \
191
+ (void)(value);
261
192
  #define Py_END_CRITICAL_SECTION() }
262
193
  #define Py_EXIT_CRITICAL_SECTION() ((void)0)
263
194
 
264
- #define Py_BEGIN_CRITICAL_SECTION2(value1, value2) { (void)(value1); (void)(value2);
195
+ #define Py_BEGIN_CRITICAL_SECTION2(value1, value2) \
196
+ { \
197
+ (void)(value1); \
198
+ (void)(value2);
265
199
  #define Py_END_CRITICAL_SECTION2() }
266
200
  #define Py_EXIT_CRITICAL_SECTION2() ((void)0)
267
201
 
@@ -282,7 +216,8 @@ static inline PyObject* Py_XNewRef(PyObject* o)
282
216
  #endif
283
217
 
284
218
  #if PY_VERSION_HEX < 0x030d0000
285
- static inline int PyDict_GetItemRef(PyObject *p, PyObject *key, PyObject * _Nonnull* _Nullable result)
219
+ static inline int
220
+ PyDict_GetItemRef(PyObject* p, PyObject* key, PyObject* _Nonnull* _Nullable result)
286
221
  {
287
222
  *result = PyDict_GetItemWithError(p, key);
288
223
  if (*result == NULL) {
@@ -303,10 +238,28 @@ static inline PyObject* _Nullable PyList_GetItemRef(PyObject* l, Py_ssize_t i)
303
238
  Py_XINCREF(result);
304
239
  return result;
305
240
  }
241
+
242
+ static inline int
243
+ PyDict_SetDefaultRef(PyObject* p, PyObject* key, PyObject* default_value,
244
+ PyObject* _Nonnull* _Nullable result)
245
+ {
246
+ *result = PyDict_SetDefault(p, key, default_value);
247
+ if (*result == NULL) {
248
+ return -1;
249
+ }
250
+ Py_INCREF(*result);
251
+
252
+ /* This does not follow the spec, should return 1 when the key was already
253
+ * in the dict. That part of the API is not used in PyObjC though.
254
+ */
255
+ return 0;
256
+ }
257
+
306
258
  #endif
307
259
 
308
260
  #if PY_VERSION_HEX < 0x030c0000
309
- static inline PyObject* PyType_GetDict(PyTypeObject* type)
261
+ static inline PyObject*
262
+ PyType_GetDict(PyTypeObject* type)
310
263
  {
311
264
  PyObject* result = type->tp_dict;
312
265
  Py_INCREF(result);
@@ -319,12 +272,13 @@ static inline PyObject* PyType_GetDict(PyTypeObject* type)
319
272
  * These are available in 3.14 and above, the definitions below
320
273
  * mirror the private implementation in 3.13.
321
274
  */
322
- static inline int PyUnstable_Object_IsUniquelyReferenced(PyObject* ob)
275
+ static inline int
276
+ PyUnstable_Object_IsUniquelyReferenced(PyObject* ob)
323
277
  {
324
278
  #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);
279
+ return (_Py_IsOwnedByCurrentThread(ob)
280
+ && _Py_atomic_load_uint32_relaxed(&ob->ob_ref_local) == 1
281
+ && _Py_atomic_load_ssize_relaxed(&ob->ob_ref_shared) == 0);
328
282
  #else
329
283
  return Py_REFCNT(ob) == 1;
330
284
  #endif
@@ -340,8 +294,8 @@ PyUnstable_EnableTryIncRef(PyObject* op __attribute__((__unused__)))
340
294
  // Nothing to do if it's in WEAKREFS, QUEUED, or MERGED states.
341
295
  return;
342
296
  }
343
- if (_Py_atomic_compare_exchange_ssize(
344
- &op->ob_ref_shared, &shared, shared | _Py_REF_MAYBE_WEAKREF)) {
297
+ if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
298
+ shared | _Py_REF_MAYBE_WEAKREF)) {
345
299
  return;
346
300
  }
347
301
  }
@@ -350,7 +304,8 @@ PyUnstable_EnableTryIncRef(PyObject* op __attribute__((__unused__)))
350
304
 
351
305
  #ifdef Py_GIL_DISABLED
352
306
  static inline int
353
- _Py_TryIncrefFast(PyObject *op) {
307
+ _Py_TryIncrefFast(PyObject* op)
308
+ {
354
309
  uint32_t local = _Py_atomic_load_uint32_relaxed(&op->ob_ref_local);
355
310
  local += 1;
356
311
  if (local == 0) {
@@ -369,7 +324,7 @@ _Py_TryIncrefFast(PyObject *op) {
369
324
  }
370
325
 
371
326
  static inline int
372
- _Py_TryIncRefShared(PyObject *op)
327
+ _Py_TryIncRefShared(PyObject* op)
373
328
  {
374
329
  Py_ssize_t shared = _Py_atomic_load_ssize_relaxed(&op->ob_ref_shared);
375
330
  for (;;) {
@@ -379,10 +334,8 @@ _Py_TryIncRefShared(PyObject *op)
379
334
  return 0;
380
335
  }
381
336
 
382
- if (_Py_atomic_compare_exchange_ssize(
383
- &op->ob_ref_shared,
384
- &shared,
385
- shared + (1 << _Py_REF_SHARED_SHIFT))) {
337
+ if (_Py_atomic_compare_exchange_ssize(&op->ob_ref_shared, &shared,
338
+ shared + (1 << _Py_REF_SHARED_SHIFT))) {
386
339
  #ifdef Py_REF_DEBUG
387
340
  _Py_IncRefTotal(_PyThreadState_GET());
388
341
  #endif
@@ -394,7 +347,7 @@ _Py_TryIncRefShared(PyObject *op)
394
347
  #endif
395
348
 
396
349
  static inline int
397
- PyUnstable_TryIncRef(PyObject *op __attribute__((__unused__)))
350
+ PyUnstable_TryIncRef(PyObject* op __attribute__((__unused__)))
398
351
  {
399
352
  #ifdef Py_GIL_DISABLED
400
353
  return _Py_TryIncrefFast(op) || _Py_TryIncRefShared(op);
@@ -408,6 +361,11 @@ PyUnstable_TryIncRef(PyObject *op __attribute__((__unused__)))
408
361
  }
409
362
  #endif
410
363
 
364
+ #if PY_VERSION_HEX < 0x030f00a7
365
+ #define PyAnyDict_CheckExact PyDict_CheckExact
366
+ #define PyAnyDict_Check PyDict_Check
367
+ #endif
368
+
411
369
  NS_ASSUME_NONNULL_END
412
370
 
413
371
  #endif /* PyObjC_COMPAT_H */
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyobjc-framework-MediaToolbox
3
- Version: 11.1
3
+ Version: 12.2.2
4
4
  Summary: Wrappers for the framework MediaToolbox on macOS
5
5
  Home-page: https://github.com/ronaldoussoren/pyobjc
6
6
  Author: Ronald Oussoren
@@ -17,20 +17,21 @@ Classifier: Operating System :: MacOS :: MacOS X
17
17
  Classifier: Programming Language :: Python
18
18
  Classifier: Programming Language :: Python :: 3
19
19
  Classifier: Programming Language :: Python :: 3 :: Only
20
- Classifier: Programming Language :: Python :: 3.9
21
20
  Classifier: Programming Language :: Python :: 3.10
22
21
  Classifier: Programming Language :: Python :: 3.11
23
22
  Classifier: Programming Language :: Python :: 3.12
24
23
  Classifier: Programming Language :: Python :: 3.13
25
24
  Classifier: Programming Language :: Python :: 3.14
25
+ Classifier: Programming Language :: Python :: 3.15
26
26
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
+ Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
27
28
  Classifier: Programming Language :: Objective C
28
29
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
30
  Classifier: Topic :: Software Development :: User Interfaces
30
- Requires-Python: >=3.9
31
+ Requires-Python: >=3.10
31
32
  Description-Content-Type: text/x-rst; charset=UTF-8
32
- Requires-Dist: pyobjc-core>=11.1
33
- Requires-Dist: pyobjc-framework-Cocoa>=11.1
33
+ Requires-Dist: pyobjc-core>=12.2.2
34
+ Requires-Dist: pyobjc-framework-Cocoa>=12.2.2
34
35
  Dynamic: author
35
36
  Dynamic: author-email
36
37
  Dynamic: classifier
@@ -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 May 18 09:31:55 2024
4
+ // Last update: Sun May 24 11:52:36 2026
5
5
  {
6
6
  "arch": "arm64",
7
7
  "definitions": {
@@ -10,11 +10,21 @@
10
10
  "cftypes": {},
11
11
  "classes": {},
12
12
  "enum": {
13
- "kMTAudioProcessingTapCallbacksVersion_0": 0,
14
- "kMTAudioProcessingTapCreationFlag_PostEffects": 2,
15
- "kMTAudioProcessingTapCreationFlag_PreEffects": 1,
16
- "kMTAudioProcessingTapFlag_EndOfStream": 512,
17
- "kMTAudioProcessingTapFlag_StartOfStream": 256
13
+ "kMTAudioProcessingTapCallbacksVersion_0": {
14
+ "value": 0
15
+ },
16
+ "kMTAudioProcessingTapCreationFlag_PostEffects": {
17
+ "value": 2
18
+ },
19
+ "kMTAudioProcessingTapCreationFlag_PreEffects": {
20
+ "value": 1
21
+ },
22
+ "kMTAudioProcessingTapFlag_EndOfStream": {
23
+ "value": 512
24
+ },
25
+ "kMTAudioProcessingTapFlag_StartOfStream": {
26
+ "value": 256
27
+ }
18
28
  },
19
29
  "enum_type": {},
20
30
  "expressions": {},
@@ -26,21 +36,26 @@
26
36
  "args": [
27
37
  {
28
38
  "name": "allocator",
39
+ "type_name": "CFAllocatorRef",
29
40
  "typestr": "^{__CFAllocator=}"
30
41
  },
31
42
  {
32
43
  "name": "callbacks",
44
+ "type_name": "const MTAudioProcessingTapCallbacks *",
33
45
  "typestr": "^{MTAudioProcessingTapCallbacks=i^v^?^?^?^?^?}"
34
46
  },
35
47
  {
36
48
  "name": "flags",
49
+ "type_name": "MTAudioProcessingTapCreationFlags",
37
50
  "typestr": "I"
38
51
  },
39
52
  {
40
53
  "name": "tapOut",
54
+ "type_name": "MTAudioProcessingTapRef _Nullable *",
41
55
  "typestr": "^^{opaqueMTAudioProcessingTap=}"
42
56
  }
43
57
  ],
58
+ "introduced": "10.9",
44
59
  "retval": {
45
60
  "already_cfretained": true,
46
61
  "typestr": "i"
@@ -50,29 +65,36 @@
50
65
  "args": [
51
66
  {
52
67
  "name": "tap",
68
+ "type_name": "MTAudioProcessingTapRef",
53
69
  "typestr": "^{opaqueMTAudioProcessingTap=}"
54
70
  },
55
71
  {
56
72
  "name": "numberFrames",
73
+ "type_name": "CMItemCount",
57
74
  "typestr": "q"
58
75
  },
59
76
  {
60
77
  "name": "bufferListInOut",
78
+ "type_name": "AudioBufferList *",
61
79
  "typestr": "^{AudioBufferList=I[1{AudioBuffer=II^v}]}"
62
80
  },
63
81
  {
64
82
  "name": "flagsOut",
83
+ "type_name": "MTAudioProcessingTapFlags *",
65
84
  "typestr": "^I"
66
85
  },
67
86
  {
68
87
  "name": "timeRangeOut",
88
+ "type_name": "CMTimeRange *",
69
89
  "typestr": "^{CMTimeRange={CMTime=qiIq}{CMTime=qiIq}}"
70
90
  },
71
91
  {
72
92
  "name": "numberFramesOut",
93
+ "type_name": "CMItemCount *",
73
94
  "typestr": "^q"
74
95
  }
75
96
  ],
97
+ "introduced": "10.9",
76
98
  "retval": {
77
99
  "typestr": "i"
78
100
  }
@@ -81,9 +103,11 @@
81
103
  "args": [
82
104
  {
83
105
  "name": "tap",
106
+ "type_name": "MTAudioProcessingTapRef",
84
107
  "typestr": "^{opaqueMTAudioProcessingTap=}"
85
108
  }
86
109
  ],
110
+ "introduced": "10.9",
87
111
  "retval": {
88
112
  "typestr": "^v"
89
113
  }
@@ -95,6 +119,7 @@
95
119
  "typestr": "v"
96
120
  }
97
121
  ],
122
+ "introduced": "10.9",
98
123
  "retval": {
99
124
  "typestr": "Q"
100
125
  }
@@ -103,13 +128,16 @@
103
128
  "args": [
104
129
  {
105
130
  "name": "mediaType",
131
+ "type_name": "CMMediaType",
106
132
  "typestr": "I"
107
133
  },
108
134
  {
109
135
  "name": "mediaSubType",
136
+ "type_name": "FourCharCode",
110
137
  "typestr": "I"
111
138
  }
112
139
  ],
140
+ "introduced": "10.9",
113
141
  "retval": {
114
142
  "already_cfretained": true,
115
143
  "typestr": "^{__CFString=}"
@@ -119,9 +147,11 @@
119
147
  "args": [
120
148
  {
121
149
  "name": "mediaType",
150
+ "type_name": "CMMediaType",
122
151
  "typestr": "I"
123
152
  }
124
153
  ],
154
+ "introduced": "10.9",
125
155
  "retval": {
126
156
  "already_cfretained": true,
127
157
  "typestr": "^{__CFString=}"
@@ -134,6 +164,7 @@
134
164
  "typestr": "v"
135
165
  }
136
166
  ],
167
+ "introduced": "10.10",
137
168
  "retval": {
138
169
  "typestr": "v"
139
170
  }
@@ -160,6 +191,6 @@
160
191
  "MTFormatNames.h",
161
192
  "MTProfessionalVideoWorkflow.h"
162
193
  ],
163
- "release": "10.16",
164
- "sdk": "/Users/ronald/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk"
194
+ "release": "26.5",
195
+ "sdk": "/Users/ronald/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.5.sdk"
165
196
  }