winrt-Windows.Media.Transcoding 4!10.0.28000.2705__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.
@@ -0,0 +1,16 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "MediaVideoProcessingAlgorithm",
10
+ "TranscodeFailureReason",
11
+ "MediaTranscoder",
12
+ "PrepareTranscodeResult",
13
+ ]
14
+
15
+ winrt.runtime._internals.alias_method(MediaTranscoder, "add_audio_effect_with_settings", "add_audio_effect")
16
+ winrt.runtime._internals.alias_method(MediaTranscoder, "add_video_effect_with_settings", "add_video_effect")
@@ -0,0 +1,108 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import datetime
4
+ import enum
5
+ import typing
6
+ from builtins import property as _property
7
+ from typing_extensions import deprecated
8
+
9
+ import winrt.system
10
+ import winrt.windows.foundation as windows_foundation
11
+ import winrt.windows.foundation.collections as windows_foundation_collections
12
+ import winrt.windows.media.core as windows_media_core
13
+ import winrt.windows.media.mediaproperties as windows_media_mediaproperties
14
+ import winrt.windows.storage as windows_storage
15
+ import winrt.windows.storage.streams as windows_storage_streams
16
+
17
+ __all__ = [
18
+ "MediaVideoProcessingAlgorithm",
19
+ "TranscodeFailureReason",
20
+ "MediaTranscoder",
21
+ "PrepareTranscodeResult",
22
+ ]
23
+
24
+ class MediaVideoProcessingAlgorithm(enum.IntEnum):
25
+ DEFAULT = 0
26
+ MRF_CRF444 = 1
27
+
28
+ class TranscodeFailureReason(enum.IntEnum):
29
+ NONE = 0
30
+ UNKNOWN = 1
31
+ INVALID_PROFILE = 2
32
+ CODEC_NOT_FOUND = 3
33
+
34
+ @typing.final
35
+ class MediaTranscoder(winrt.system.Object):
36
+ def __new__(cls) -> typing.Self: ...
37
+ @typing.overload
38
+ # System.Void Windows.Media.Transcoding.MediaTranscoder::AddAudioEffect(System.String)
39
+ def add_audio_effect(self, activatable_class_id: str, /) -> None: ...
40
+ @typing.overload
41
+ # System.Void Windows.Media.Transcoding.MediaTranscoder::AddAudioEffect(System.String,System.Boolean,Windows.Foundation.Collections.IPropertySet)
42
+ def add_audio_effect(self, activatable_class_id: str, effect_required: bool, configuration: windows_foundation_collections.IPropertySet, /) -> None: ...
43
+ # Deprecated alias of add_audio_effect() for pywinrt v3.x compatibility.
44
+ # System.Void Windows.Media.Transcoding.MediaTranscoder::AddAudioEffect(System.String,System.Boolean,Windows.Foundation.Collections.IPropertySet)
45
+ @deprecated("Use add_audio_effect() instead.")
46
+ def add_audio_effect_with_settings(self, activatable_class_id: str, effect_required: bool, configuration: windows_foundation_collections.IPropertySet, /) -> None: ...
47
+ @typing.overload
48
+ # System.Void Windows.Media.Transcoding.MediaTranscoder::AddVideoEffect(System.String)
49
+ def add_video_effect(self, activatable_class_id: str, /) -> None: ...
50
+ @typing.overload
51
+ # System.Void Windows.Media.Transcoding.MediaTranscoder::AddVideoEffect(System.String,System.Boolean,Windows.Foundation.Collections.IPropertySet)
52
+ def add_video_effect(self, activatable_class_id: str, effect_required: bool, configuration: windows_foundation_collections.IPropertySet, /) -> None: ...
53
+ # Deprecated alias of add_video_effect() for pywinrt v3.x compatibility.
54
+ # System.Void Windows.Media.Transcoding.MediaTranscoder::AddVideoEffect(System.String,System.Boolean,Windows.Foundation.Collections.IPropertySet)
55
+ @deprecated("Use add_video_effect() instead.")
56
+ def add_video_effect_with_settings(self, activatable_class_id: str, effect_required: bool, configuration: windows_foundation_collections.IPropertySet, /) -> None: ...
57
+ # System.Void Windows.Media.Transcoding.MediaTranscoder::ClearEffects()
58
+ def clear_effects(self) -> None: ...
59
+ # Windows.Foundation.IAsyncOperation`1<Windows.Media.Transcoding.PrepareTranscodeResult> Windows.Media.Transcoding.MediaTranscoder::PrepareFileTranscodeAsync(Windows.Storage.IStorageFile,Windows.Storage.IStorageFile,Windows.Media.MediaProperties.MediaEncodingProfile)
60
+ def prepare_file_transcode_async(self, source: windows_storage.IStorageFile, destination: windows_storage.IStorageFile, profile: windows_media_mediaproperties.MediaEncodingProfile, /) -> windows_foundation.IAsyncOperation[PrepareTranscodeResult]: ...
61
+ # Windows.Foundation.IAsyncOperation`1<Windows.Media.Transcoding.PrepareTranscodeResult> Windows.Media.Transcoding.MediaTranscoder::PrepareMediaStreamSourceTranscodeAsync(Windows.Media.Core.IMediaSource,Windows.Storage.Streams.IRandomAccessStream,Windows.Media.MediaProperties.MediaEncodingProfile)
62
+ def prepare_media_stream_source_transcode_async(self, source: windows_media_core.IMediaSource, destination: windows_storage_streams.IRandomAccessStream, profile: windows_media_mediaproperties.MediaEncodingProfile, /) -> windows_foundation.IAsyncOperation[PrepareTranscodeResult]: ...
63
+ # Windows.Foundation.IAsyncOperation`1<Windows.Media.Transcoding.PrepareTranscodeResult> Windows.Media.Transcoding.MediaTranscoder::PrepareStreamTranscodeAsync(Windows.Storage.Streams.IRandomAccessStream,Windows.Storage.Streams.IRandomAccessStream,Windows.Media.MediaProperties.MediaEncodingProfile)
64
+ def prepare_stream_transcode_async(self, source: windows_storage_streams.IRandomAccessStream, destination: windows_storage_streams.IRandomAccessStream, profile: windows_media_mediaproperties.MediaEncodingProfile, /) -> windows_foundation.IAsyncOperation[PrepareTranscodeResult]: ...
65
+ # Windows.Foundation.TimeSpan Windows.Media.Transcoding.MediaTranscoder::get_TrimStopTime()
66
+ @_property
67
+ def trim_stop_time(self) -> datetime.timedelta: ...
68
+ # System.Void Windows.Media.Transcoding.MediaTranscoder::put_TrimStopTime(Windows.Foundation.TimeSpan)
69
+ @trim_stop_time.setter
70
+ def trim_stop_time(self, value: datetime.timedelta) -> None: ...
71
+ # Windows.Foundation.TimeSpan Windows.Media.Transcoding.MediaTranscoder::get_TrimStartTime()
72
+ @_property
73
+ def trim_start_time(self) -> datetime.timedelta: ...
74
+ # System.Void Windows.Media.Transcoding.MediaTranscoder::put_TrimStartTime(Windows.Foundation.TimeSpan)
75
+ @trim_start_time.setter
76
+ def trim_start_time(self, value: datetime.timedelta) -> None: ...
77
+ # System.Boolean Windows.Media.Transcoding.MediaTranscoder::get_HardwareAccelerationEnabled()
78
+ @_property
79
+ def hardware_acceleration_enabled(self) -> bool: ...
80
+ # System.Void Windows.Media.Transcoding.MediaTranscoder::put_HardwareAccelerationEnabled(System.Boolean)
81
+ @hardware_acceleration_enabled.setter
82
+ def hardware_acceleration_enabled(self, value: bool) -> None: ...
83
+ # System.Boolean Windows.Media.Transcoding.MediaTranscoder::get_AlwaysReencode()
84
+ @_property
85
+ def always_reencode(self) -> bool: ...
86
+ # System.Void Windows.Media.Transcoding.MediaTranscoder::put_AlwaysReencode(System.Boolean)
87
+ @always_reencode.setter
88
+ def always_reencode(self, value: bool) -> None: ...
89
+ # Windows.Media.Transcoding.MediaVideoProcessingAlgorithm Windows.Media.Transcoding.MediaTranscoder::get_VideoProcessingAlgorithm()
90
+ @_property
91
+ def video_processing_algorithm(self) -> MediaVideoProcessingAlgorithm: ...
92
+ # System.Void Windows.Media.Transcoding.MediaTranscoder::put_VideoProcessingAlgorithm(Windows.Media.Transcoding.MediaVideoProcessingAlgorithm)
93
+ @video_processing_algorithm.setter
94
+ def video_processing_algorithm(self, value: MediaVideoProcessingAlgorithm) -> None: ...
95
+
96
+ @typing.final
97
+ class PrepareTranscodeResult(winrt.system.Object):
98
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
99
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
100
+ # Windows.Foundation.IAsyncActionWithProgress`1<System.Double> Windows.Media.Transcoding.PrepareTranscodeResult::TranscodeAsync()
101
+ def transcode_async(self) -> windows_foundation.IAsyncActionWithProgress[winrt.system.Double]: ...
102
+ # System.Boolean Windows.Media.Transcoding.PrepareTranscodeResult::get_CanTranscode()
103
+ @_property
104
+ def can_transcode(self) -> bool: ...
105
+ # Windows.Media.Transcoding.TranscodeFailureReason Windows.Media.Transcoding.PrepareTranscodeResult::get_FailureReason()
106
+ @_property
107
+ def failure_reason(self) -> TranscodeFailureReason: ...
108
+
File without changes
@@ -0,0 +1,51 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.Media.Transcoding
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.Media.Transcoding namespace
5
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
6
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
18
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: winrt-runtime<5,>=4.0.0
23
+ Requires-Dist: winrt-windows-foundation-collections>=4!10.0.28000.2705
24
+ Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
25
+ Requires-Dist: winrt-windows-storage-streams>=4!10.0.28000.2705
26
+ Provides-Extra: all
27
+ Requires-Dist: winrt-windows-foundation-collections[all]>=4!10.0.28000.2705; extra == 'all'
28
+ Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
29
+ Requires-Dist: winrt-windows-media-core[all]>=4!10.0.28000.2705; extra == 'all'
30
+ Requires-Dist: winrt-windows-media-mediaproperties[all]>=4!10.0.28000.2705; extra == 'all'
31
+ Requires-Dist: winrt-windows-storage-streams[all]>=4!10.0.28000.2705; extra == 'all'
32
+ Requires-Dist: winrt-windows-storage[all]>=4!10.0.28000.2705; extra == 'all'
33
+ Description-Content-Type: text/markdown
34
+
35
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
36
+
37
+ # winrt-Windows.Media.Transcoding
38
+
39
+ Windows Runtime (WinRT) APIs for the `Windows.Media.Transcoding` namespace.
40
+
41
+ This package provides the `winrt.windows.media.transcoding` module.
42
+
43
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
44
+ `Microsoft.Windows.SDK.CPP` NuGet package.
45
+
46
+ ```
47
+ pip install winrt-Windows.Media.Transcoding
48
+ ```
49
+
50
+ Other WinRT namespaces are packages of their own, so install the package of
51
+ each namespace your code imports from.
@@ -0,0 +1,8 @@
1
+ winrt/windows/media/transcoding/__init__.py,sha256=pOSeu7J8a1aRiQGFIJxFKkx6Y5rpX0vcamcMEB5j6C0,532
2
+ winrt/windows/media/transcoding/__init__.pyi,sha256=DtvzZ0gikx_9JDnrdMd5-CcPqzzjAhmytbh1FnaZBK4,7580
3
+ winrt/windows/media/transcoding/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ winrt/windows/media/transcoding/_table.pywinrt,sha256=v4sCXWCe7FOjY-djJQMxF5j84xJL8lQjJFXjhOHFQYg,9560
5
+ winrt_windows_media_transcoding-4!10.0.28000.2705.dist-info/METADATA,sha256=bnJ4zUt6A-Q1Ya8hkkJmmVd561Di4Wn8wf7_qxhIcuc,2356
6
+ winrt_windows_media_transcoding-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ winrt_windows_media_transcoding-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
8
+ winrt_windows_media_transcoding-4!10.0.28000.2705.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+ Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE