winrt-Windows.Media.Transcoding 2.1.0__tar.gz → 2.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/PKG-INFO +9 -9
- winrt_windows_media_transcoding-2.3.0/all-requirements.txt +8 -0
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/py.Windows.Media.Transcoding.cpp +174 -25
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/pyproject.toml +3 -2
- winrt_windows_media_transcoding-2.3.0/pywinrt-version.txt +1 -0
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/requirements.txt +2 -2
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/winrt/_winrt_windows_media_transcoding.pyi +1 -1
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/winrt/windows/media/transcoding/__init__.py +1 -1
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/winrt_Windows.Media.Transcoding.egg-info/PKG-INFO +9 -9
- winrt_windows_media_transcoding-2.3.0/winrt_Windows.Media.Transcoding.egg-info/requires.txt +9 -0
- winrt_windows_media_transcoding-2.1.0/all-requirements.txt +0 -8
- winrt_windows_media_transcoding-2.1.0/pywinrt-version.txt +0 -1
- winrt_windows_media_transcoding-2.1.0/winrt_Windows.Media.Transcoding.egg-info/requires.txt +0 -9
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/README.md +0 -0
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/setup.cfg +0 -0
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/setup.py +0 -0
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/winrt/windows/media/transcoding/py.typed +0 -0
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/winrt_Windows.Media.Transcoding.egg-info/SOURCES.txt +0 -0
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/winrt_Windows.Media.Transcoding.egg-info/dependency_links.txt +0 -0
- {winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/winrt_Windows.Media.Transcoding.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Media.Transcoding
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,16 +10,16 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Media.Core[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Media.MediaProperties[all]==2.
|
|
21
|
-
Requires-Dist: winrt-Windows.Storage[all]==2.
|
|
22
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Media.Core[all]==2.3.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Media.MediaProperties[all]==2.3.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Storage[all]==2.3.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
|
|
23
23
|
|
|
24
24
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
25
25
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
|
+
|
|
3
|
+
winrt-Windows.Foundation[all]==2.3.0
|
|
4
|
+
winrt-Windows.Foundation.Collections[all]==2.3.0
|
|
5
|
+
winrt-Windows.Media.Core[all]==2.3.0
|
|
6
|
+
winrt-Windows.Media.MediaProperties[all]==2.3.0
|
|
7
|
+
winrt-Windows.Storage[all]==2.3.0
|
|
8
|
+
winrt-Windows.Storage.Streams[all]==2.3.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Media.Transcoding.h"
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
19
19
|
{
|
|
20
20
|
try
|
|
21
21
|
{
|
|
22
|
-
winrt::Windows::Media::Transcoding::MediaTranscoder instance{
|
|
22
|
+
winrt::Windows::Media::Transcoding::MediaTranscoder instance{};
|
|
23
23
|
return py::wrap(instance, type);
|
|
24
24
|
}
|
|
25
25
|
catch (...)
|
|
@@ -51,7 +51,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
51
51
|
{
|
|
52
52
|
try
|
|
53
53
|
{
|
|
54
|
-
|
|
54
|
+
static std::optional<bool> is_overload_present{};
|
|
55
|
+
|
|
56
|
+
if (!is_overload_present.has_value())
|
|
57
|
+
{
|
|
58
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"AddAudioEffect", 1);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (!is_overload_present.value())
|
|
55
62
|
{
|
|
56
63
|
py::set_arg_count_version_error(1);
|
|
57
64
|
return nullptr;
|
|
@@ -72,7 +79,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
72
79
|
{
|
|
73
80
|
try
|
|
74
81
|
{
|
|
75
|
-
|
|
82
|
+
static std::optional<bool> is_overload_present{};
|
|
83
|
+
|
|
84
|
+
if (!is_overload_present.has_value())
|
|
85
|
+
{
|
|
86
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"AddAudioEffect", 3);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (!is_overload_present.value())
|
|
76
90
|
{
|
|
77
91
|
py::set_arg_count_version_error(3);
|
|
78
92
|
return nullptr;
|
|
@@ -106,7 +120,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
106
120
|
{
|
|
107
121
|
try
|
|
108
122
|
{
|
|
109
|
-
|
|
123
|
+
static std::optional<bool> is_overload_present{};
|
|
124
|
+
|
|
125
|
+
if (!is_overload_present.has_value())
|
|
126
|
+
{
|
|
127
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"AddVideoEffect", 1);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
if (!is_overload_present.value())
|
|
110
131
|
{
|
|
111
132
|
py::set_arg_count_version_error(1);
|
|
112
133
|
return nullptr;
|
|
@@ -127,7 +148,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
127
148
|
{
|
|
128
149
|
try
|
|
129
150
|
{
|
|
130
|
-
|
|
151
|
+
static std::optional<bool> is_overload_present{};
|
|
152
|
+
|
|
153
|
+
if (!is_overload_present.has_value())
|
|
154
|
+
{
|
|
155
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"AddVideoEffect", 3);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (!is_overload_present.value())
|
|
131
159
|
{
|
|
132
160
|
py::set_arg_count_version_error(3);
|
|
133
161
|
return nullptr;
|
|
@@ -161,7 +189,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
161
189
|
{
|
|
162
190
|
try
|
|
163
191
|
{
|
|
164
|
-
|
|
192
|
+
static std::optional<bool> is_overload_present{};
|
|
193
|
+
|
|
194
|
+
if (!is_overload_present.has_value())
|
|
195
|
+
{
|
|
196
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"ClearEffects", 0);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (!is_overload_present.value())
|
|
165
200
|
{
|
|
166
201
|
py::set_arg_count_version_error(0);
|
|
167
202
|
return nullptr;
|
|
@@ -191,7 +226,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
191
226
|
{
|
|
192
227
|
try
|
|
193
228
|
{
|
|
194
|
-
|
|
229
|
+
static std::optional<bool> is_overload_present{};
|
|
230
|
+
|
|
231
|
+
if (!is_overload_present.has_value())
|
|
232
|
+
{
|
|
233
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"PrepareFileTranscodeAsync", 3);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (!is_overload_present.value())
|
|
195
237
|
{
|
|
196
238
|
py::set_arg_count_version_error(3);
|
|
197
239
|
return nullptr;
|
|
@@ -224,7 +266,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
224
266
|
{
|
|
225
267
|
try
|
|
226
268
|
{
|
|
227
|
-
|
|
269
|
+
static std::optional<bool> is_overload_present{};
|
|
270
|
+
|
|
271
|
+
if (!is_overload_present.has_value())
|
|
272
|
+
{
|
|
273
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"PrepareMediaStreamSourceTranscodeAsync", 3);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (!is_overload_present.value())
|
|
228
277
|
{
|
|
229
278
|
py::set_arg_count_version_error(3);
|
|
230
279
|
return nullptr;
|
|
@@ -257,7 +306,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
257
306
|
{
|
|
258
307
|
try
|
|
259
308
|
{
|
|
260
|
-
|
|
309
|
+
static std::optional<bool> is_overload_present{};
|
|
310
|
+
|
|
311
|
+
if (!is_overload_present.has_value())
|
|
312
|
+
{
|
|
313
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"PrepareStreamTranscodeAsync", 3);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
if (!is_overload_present.value())
|
|
261
317
|
{
|
|
262
318
|
py::set_arg_count_version_error(3);
|
|
263
319
|
return nullptr;
|
|
@@ -286,7 +342,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
286
342
|
{
|
|
287
343
|
try
|
|
288
344
|
{
|
|
289
|
-
|
|
345
|
+
static std::optional<bool> is_property_present{};
|
|
346
|
+
|
|
347
|
+
if (!is_property_present.has_value())
|
|
348
|
+
{
|
|
349
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"TrimStopTime");
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
if (!is_property_present.value())
|
|
290
353
|
{
|
|
291
354
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
292
355
|
return nullptr;
|
|
@@ -311,7 +374,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
311
374
|
|
|
312
375
|
try
|
|
313
376
|
{
|
|
314
|
-
|
|
377
|
+
static std::optional<bool> is_property_present{};
|
|
378
|
+
|
|
379
|
+
if (!is_property_present.has_value())
|
|
380
|
+
{
|
|
381
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"TrimStopTime");
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
if (!is_property_present.value())
|
|
315
385
|
{
|
|
316
386
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
317
387
|
return -1;
|
|
@@ -333,7 +403,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
333
403
|
{
|
|
334
404
|
try
|
|
335
405
|
{
|
|
336
|
-
|
|
406
|
+
static std::optional<bool> is_property_present{};
|
|
407
|
+
|
|
408
|
+
if (!is_property_present.has_value())
|
|
409
|
+
{
|
|
410
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"TrimStartTime");
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
if (!is_property_present.value())
|
|
337
414
|
{
|
|
338
415
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
339
416
|
return nullptr;
|
|
@@ -358,7 +435,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
358
435
|
|
|
359
436
|
try
|
|
360
437
|
{
|
|
361
|
-
|
|
438
|
+
static std::optional<bool> is_property_present{};
|
|
439
|
+
|
|
440
|
+
if (!is_property_present.has_value())
|
|
441
|
+
{
|
|
442
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"TrimStartTime");
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
if (!is_property_present.value())
|
|
362
446
|
{
|
|
363
447
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
364
448
|
return -1;
|
|
@@ -380,7 +464,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
380
464
|
{
|
|
381
465
|
try
|
|
382
466
|
{
|
|
383
|
-
|
|
467
|
+
static std::optional<bool> is_property_present{};
|
|
468
|
+
|
|
469
|
+
if (!is_property_present.has_value())
|
|
470
|
+
{
|
|
471
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"HardwareAccelerationEnabled");
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
if (!is_property_present.value())
|
|
384
475
|
{
|
|
385
476
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
386
477
|
return nullptr;
|
|
@@ -405,7 +496,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
405
496
|
|
|
406
497
|
try
|
|
407
498
|
{
|
|
408
|
-
|
|
499
|
+
static std::optional<bool> is_property_present{};
|
|
500
|
+
|
|
501
|
+
if (!is_property_present.has_value())
|
|
502
|
+
{
|
|
503
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"HardwareAccelerationEnabled");
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
if (!is_property_present.value())
|
|
409
507
|
{
|
|
410
508
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
411
509
|
return -1;
|
|
@@ -427,7 +525,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
427
525
|
{
|
|
428
526
|
try
|
|
429
527
|
{
|
|
430
|
-
|
|
528
|
+
static std::optional<bool> is_property_present{};
|
|
529
|
+
|
|
530
|
+
if (!is_property_present.has_value())
|
|
531
|
+
{
|
|
532
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"AlwaysReencode");
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
if (!is_property_present.value())
|
|
431
536
|
{
|
|
432
537
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
433
538
|
return nullptr;
|
|
@@ -452,7 +557,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
452
557
|
|
|
453
558
|
try
|
|
454
559
|
{
|
|
455
|
-
|
|
560
|
+
static std::optional<bool> is_property_present{};
|
|
561
|
+
|
|
562
|
+
if (!is_property_present.has_value())
|
|
563
|
+
{
|
|
564
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"AlwaysReencode");
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
if (!is_property_present.value())
|
|
456
568
|
{
|
|
457
569
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
458
570
|
return -1;
|
|
@@ -474,7 +586,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
474
586
|
{
|
|
475
587
|
try
|
|
476
588
|
{
|
|
477
|
-
|
|
589
|
+
static std::optional<bool> is_property_present{};
|
|
590
|
+
|
|
591
|
+
if (!is_property_present.has_value())
|
|
592
|
+
{
|
|
593
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"VideoProcessingAlgorithm");
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
if (!is_property_present.value())
|
|
478
597
|
{
|
|
479
598
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
480
599
|
return nullptr;
|
|
@@ -499,7 +618,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
499
618
|
|
|
500
619
|
try
|
|
501
620
|
{
|
|
502
|
-
|
|
621
|
+
static std::optional<bool> is_property_present{};
|
|
622
|
+
|
|
623
|
+
if (!is_property_present.has_value())
|
|
624
|
+
{
|
|
625
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Transcoding.MediaTranscoder", L"VideoProcessingAlgorithm");
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
if (!is_property_present.value())
|
|
503
629
|
{
|
|
504
630
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
505
631
|
return -1;
|
|
@@ -602,7 +728,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
602
728
|
{
|
|
603
729
|
try
|
|
604
730
|
{
|
|
605
|
-
|
|
731
|
+
static std::optional<bool> is_overload_present{};
|
|
732
|
+
|
|
733
|
+
if (!is_overload_present.has_value())
|
|
734
|
+
{
|
|
735
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Media.Transcoding.PrepareTranscodeResult", L"TranscodeAsync", 0);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
if (!is_overload_present.value())
|
|
606
739
|
{
|
|
607
740
|
py::set_arg_count_version_error(0);
|
|
608
741
|
return nullptr;
|
|
@@ -627,7 +760,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
627
760
|
{
|
|
628
761
|
try
|
|
629
762
|
{
|
|
630
|
-
|
|
763
|
+
static std::optional<bool> is_property_present{};
|
|
764
|
+
|
|
765
|
+
if (!is_property_present.has_value())
|
|
766
|
+
{
|
|
767
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Transcoding.PrepareTranscodeResult", L"CanTranscode");
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
if (!is_property_present.value())
|
|
631
771
|
{
|
|
632
772
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
633
773
|
return nullptr;
|
|
@@ -646,7 +786,14 @@ namespace py::cpp::Windows::Media::Transcoding
|
|
|
646
786
|
{
|
|
647
787
|
try
|
|
648
788
|
{
|
|
649
|
-
|
|
789
|
+
static std::optional<bool> is_property_present{};
|
|
790
|
+
|
|
791
|
+
if (!is_property_present.has_value())
|
|
792
|
+
{
|
|
793
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Media.Transcoding.PrepareTranscodeResult", L"FailureReason");
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
if (!is_property_present.value())
|
|
650
797
|
{
|
|
651
798
|
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
652
799
|
return nullptr;
|
|
@@ -758,12 +905,14 @@ PyMODINIT_FUNC PyInit__winrt_windows_media_transcoding(void) noexcept
|
|
|
758
905
|
return nullptr;
|
|
759
906
|
}
|
|
760
907
|
|
|
761
|
-
|
|
908
|
+
py::pytype_handle MediaTranscoder_type{py::register_python_type(module.get(), &type_spec_MediaTranscoder, object_bases.get(), nullptr)};
|
|
909
|
+
if (!MediaTranscoder_type)
|
|
762
910
|
{
|
|
763
911
|
return nullptr;
|
|
764
912
|
}
|
|
765
913
|
|
|
766
|
-
|
|
914
|
+
py::pytype_handle PrepareTranscodeResult_type{py::register_python_type(module.get(), &type_spec_PrepareTranscodeResult, object_bases.get(), nullptr)};
|
|
915
|
+
if (!PrepareTranscodeResult_type)
|
|
767
916
|
{
|
|
768
917
|
return nullptr;
|
|
769
918
|
}
|
{winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/pyproject.toml
RENAMED
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.3.0
|
{winrt_windows_media_transcoding-2.1.0 → winrt_windows_media_transcoding-2.3.0}/requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.3.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Media.Transcoding
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.3.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,16 +10,16 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.
|
|
15
|
+
Requires-Dist: winrt-runtime==2.3.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.
|
|
18
|
-
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.
|
|
19
|
-
Requires-Dist: winrt-Windows.Media.Core[all]==2.
|
|
20
|
-
Requires-Dist: winrt-Windows.Media.MediaProperties[all]==2.
|
|
21
|
-
Requires-Dist: winrt-Windows.Storage[all]==2.
|
|
22
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.3.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Foundation.Collections[all]==2.3.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.Media.Core[all]==2.3.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.Media.MediaProperties[all]==2.3.0; extra == "all"
|
|
21
|
+
Requires-Dist: winrt-Windows.Storage[all]==2.3.0; extra == "all"
|
|
22
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.3.0; extra == "all"
|
|
23
23
|
|
|
24
24
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
25
25
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
winrt-runtime==2.3.0
|
|
2
|
+
|
|
3
|
+
[all]
|
|
4
|
+
winrt-Windows.Foundation[all]==2.3.0
|
|
5
|
+
winrt-Windows.Foundation.Collections[all]==2.3.0
|
|
6
|
+
winrt-Windows.Media.Core[all]==2.3.0
|
|
7
|
+
winrt-Windows.Media.MediaProperties[all]==2.3.0
|
|
8
|
+
winrt-Windows.Storage[all]==2.3.0
|
|
9
|
+
winrt-Windows.Storage.Streams[all]==2.3.0
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
|
-
|
|
3
|
-
winrt-Windows.Foundation[all]==2.1.0
|
|
4
|
-
winrt-Windows.Foundation.Collections[all]==2.1.0
|
|
5
|
-
winrt-Windows.Media.Core[all]==2.1.0
|
|
6
|
-
winrt-Windows.Media.MediaProperties[all]==2.1.0
|
|
7
|
-
winrt-Windows.Storage[all]==2.1.0
|
|
8
|
-
winrt-Windows.Storage.Streams[all]==2.1.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.0
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
winrt-runtime==2.1.0
|
|
2
|
-
|
|
3
|
-
[all]
|
|
4
|
-
winrt-Windows.Foundation[all]==2.1.0
|
|
5
|
-
winrt-Windows.Foundation.Collections[all]==2.1.0
|
|
6
|
-
winrt-Windows.Media.Core[all]==2.1.0
|
|
7
|
-
winrt-Windows.Media.MediaProperties[all]==2.1.0
|
|
8
|
-
winrt-Windows.Storage[all]==2.1.0
|
|
9
|
-
winrt-Windows.Storage.Streams[all]==2.1.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|