gstreamer-python 1.27.90__cp313-cp313-win_amd64.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.
- gstreamer_python/Lib/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
- gstreamer_python/Lib/girepository-1.0/HarfBuzz-0.0.typelib +0 -0
- gstreamer_python/Lib/girepository-1.0/Json-1.0.typelib +0 -0
- gstreamer_python/Lib/girepository-1.0/Pango-1.0.typelib +0 -0
- gstreamer_python/Lib/girepository-1.0/PangoCairo-1.0.typelib +0 -0
- gstreamer_python/Lib/girepository-1.0/Soup-3.0.typelib +0 -0
- gstreamer_python/Lib/gstreamer-1.0/gstpython.dll +0 -0
- gstreamer_python/Lib/site-packages/PyGObject-3.50.2.dist-info/METADATA +21 -0
- gstreamer_python/Lib/site-packages/cairo/__init__.py +25 -0
- gstreamer_python/Lib/site-packages/cairo/__init__.pyi +5889 -0
- gstreamer_python/Lib/site-packages/cairo/_cairo.cp313-win_amd64.pyd +0 -0
- gstreamer_python/Lib/site-packages/cairo/include/py3cairo.h +266 -0
- gstreamer_python/Lib/site-packages/cairo/py.typed +0 -0
- gstreamer_python/Lib/site-packages/gi/__init__.py +197 -0
- gstreamer_python/Lib/site-packages/gi/_constants.py +47 -0
- gstreamer_python/Lib/site-packages/gi/_error.py +55 -0
- gstreamer_python/Lib/site-packages/gi/_gi.cp313-win_amd64.pyd +0 -0
- gstreamer_python/Lib/site-packages/gi/_gi_cairo.cp313-win_amd64.pyd +0 -0
- gstreamer_python/Lib/site-packages/gi/_gtktemplate.py +307 -0
- gstreamer_python/Lib/site-packages/gi/_option.py +379 -0
- gstreamer_python/Lib/site-packages/gi/_ossighelper.py +275 -0
- gstreamer_python/Lib/site-packages/gi/_propertyhelper.py +402 -0
- gstreamer_python/Lib/site-packages/gi/_signalhelper.py +249 -0
- gstreamer_python/Lib/site-packages/gi/docstring.py +205 -0
- gstreamer_python/Lib/site-packages/gi/events.py +674 -0
- gstreamer_python/Lib/site-packages/gi/importer.py +153 -0
- gstreamer_python/Lib/site-packages/gi/module.py +269 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GES.py +94 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GIMarshallingTests.py +72 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GLib.py +882 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GObject.py +692 -0
- gstreamer_python/Lib/site-packages/gi/overrides/Gdk.py +444 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GdkPixbuf.py +53 -0
- gstreamer_python/Lib/site-packages/gi/overrides/Gio.py +655 -0
- gstreamer_python/Lib/site-packages/gi/overrides/Gst.py +1273 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GstAnalytics.py +106 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GstApp.py +50 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GstAudio.py +18 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GstPbutils.py +99 -0
- gstreamer_python/Lib/site-packages/gi/overrides/GstVideo.py +17 -0
- gstreamer_python/Lib/site-packages/gi/overrides/Gtk.py +1707 -0
- gstreamer_python/Lib/site-packages/gi/overrides/Pango.py +58 -0
- gstreamer_python/Lib/site-packages/gi/overrides/__init__.py +357 -0
- gstreamer_python/Lib/site-packages/gi/overrides/_gi_gst.cp313-win_amd64.pyd +0 -0
- gstreamer_python/Lib/site-packages/gi/overrides/_gi_gst_analytics.cp313-win_amd64.pyd +0 -0
- gstreamer_python/Lib/site-packages/gi/overrides/keysyms.py +53 -0
- gstreamer_python/Lib/site-packages/gi/pygtkcompat.py +26 -0
- gstreamer_python/Lib/site-packages/gi/repository/__init__.py +28 -0
- gstreamer_python/Lib/site-packages/gi/types.py +350 -0
- gstreamer_python/Lib/site-packages/pycairo-1.27.0.dist-info/METADATA +9 -0
- gstreamer_python/__init__.py +32 -0
- gstreamer_python-1.27.90.dist-info/METADATA +26 -0
- gstreamer_python-1.27.90.dist-info/RECORD +55 -0
- gstreamer_python-1.27.90.dist-info/WHEEL +5 -0
- gstreamer_python-1.27.90.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# -*- Mode: Python; py-indent-offset: 4 -*-
|
|
2
|
+
# vim: tabstop=4 shiftwidth=4 expandtab
|
|
3
|
+
#
|
|
4
|
+
# GstAnalytics.py
|
|
5
|
+
#
|
|
6
|
+
# Copyright (C) 2024 Daniel Morin <daniel.morin@dmohub.org>
|
|
7
|
+
#
|
|
8
|
+
# This program is free software; you can redistribute it and/or
|
|
9
|
+
# modify it under the terms of the GNU Lesser General Public
|
|
10
|
+
# License as published by the Free Software Foundation; either
|
|
11
|
+
# version 2.1 of the License, or (at your option) any later version.
|
|
12
|
+
#
|
|
13
|
+
# This program is distributed in the hope that it will be useful,
|
|
14
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
16
|
+
# Lesser General Public License for more details.
|
|
17
|
+
#
|
|
18
|
+
# You should have received a copy of the GNU Lesser General Public
|
|
19
|
+
# License along with this program; if not, write to the
|
|
20
|
+
# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
21
|
+
# Boston, MA 02110-1301, USA.
|
|
22
|
+
#
|
|
23
|
+
# SPDX-License-Identifier: LGPL-2.0-or-later
|
|
24
|
+
|
|
25
|
+
import sys
|
|
26
|
+
import typing
|
|
27
|
+
|
|
28
|
+
from gi.overrides import override
|
|
29
|
+
from gi.overrides import _gi_gst_analytics # type: ignore[attr-defined]
|
|
30
|
+
_gi_gst_analytics
|
|
31
|
+
|
|
32
|
+
if typing.TYPE_CHECKING:
|
|
33
|
+
# Import stubs for type checking this file.
|
|
34
|
+
from gi.repository import GstAnalytics
|
|
35
|
+
else:
|
|
36
|
+
from gi.module import get_introspection_module
|
|
37
|
+
GstAnalytics = get_introspection_module('GstAnalytics')
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
__all__ = []
|
|
41
|
+
__mtd_types__ = {}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class Mtd(GstAnalytics.Mtd):
|
|
45
|
+
def __eq__(self, other):
|
|
46
|
+
if not hasattr(other, 'meta') or not hasattr(other, 'id'):
|
|
47
|
+
return False
|
|
48
|
+
return self.meta == other.meta and self.id == other.id
|
|
49
|
+
|
|
50
|
+
def iter_direct_related(self, relation, mtd_type=GstAnalytics.Mtd):
|
|
51
|
+
if mtd_type != GstAnalytics.Mtd:
|
|
52
|
+
mtd_type = mtd_type.get_mtd_type()
|
|
53
|
+
else:
|
|
54
|
+
mtd_type = GstAnalytics.MTD_TYPE_ANY
|
|
55
|
+
|
|
56
|
+
return _gi_gst_analytics.AnalyticsMtdDirectRelatedIterator(
|
|
57
|
+
sys.modules[__name__], self, relation, mtd_type)
|
|
58
|
+
|
|
59
|
+
def relation_path(self, mtd, max_span=0, reltype=GstAnalytics.RelTypes.ANY):
|
|
60
|
+
return _gi_gst_analytics.AnalyticsMtdRelationPath(
|
|
61
|
+
sys.modules[__name__], self, mtd.get_id(), max_span, reltype)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
__all__.append('Mtd')
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def _wrap_mtd(module, name, getter):
|
|
68
|
+
baseclass = getattr(module, name)
|
|
69
|
+
wrapper = type(name, (baseclass, Mtd), {})
|
|
70
|
+
globals()[name] = wrapper
|
|
71
|
+
|
|
72
|
+
__mtd_types__[baseclass.get_mtd_type()] = getter
|
|
73
|
+
__all__.append(name)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
for c in dir(GstAnalytics):
|
|
77
|
+
if c.endswith('Mtd') and c != 'Mtd':
|
|
78
|
+
lower_c = c[:-3].lower()
|
|
79
|
+
getter = getattr(GstAnalytics.RelationMeta, 'get_' + lower_c + '_mtd')
|
|
80
|
+
_wrap_mtd(GstAnalytics, c, getter)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def _get_mtd(mtd_type, rmeta, mtd_id):
|
|
84
|
+
res = __mtd_types__[mtd_type](rmeta, mtd_id)
|
|
85
|
+
if not res[0]:
|
|
86
|
+
raise Gst.AddError('Mtd with id={mtd_id} of rmeta={rmeta} is not known.')
|
|
87
|
+
return res[1]
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class RelationMeta(GstAnalytics.RelationMeta):
|
|
91
|
+
def __iter__(self):
|
|
92
|
+
return _gi_gst_analytics.AnalyticsRelationMetaIterator(sys.modules[__name__], self)
|
|
93
|
+
|
|
94
|
+
def iter_on_type(self, filter):
|
|
95
|
+
if filter == GstAnalytics.Mtd:
|
|
96
|
+
return self.__iter__()
|
|
97
|
+
|
|
98
|
+
mtdtype = filter.get_mtd_type()
|
|
99
|
+
if mtdtype in __mtd_types__:
|
|
100
|
+
return _gi_gst_analytics.AnalyticsRelationMetaIteratorWithMtdTypeFilter(
|
|
101
|
+
sys.modules[__name__], self, mtdtype)
|
|
102
|
+
else:
|
|
103
|
+
raise TypeError('Wrong filter type is used for iter_on_type method.')
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
__all__.append('RelationMeta')
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# -*- Mode: Python -*-
|
|
2
|
+
# vi:si:et:sw=4:sts=4:ts=4
|
|
3
|
+
#
|
|
4
|
+
# Copyright (C) 2025 Netflix Inc.
|
|
5
|
+
#
|
|
6
|
+
# This library is free software; you can redistribute it and/or
|
|
7
|
+
# modify it under the terms of the GNU Lesser General Public
|
|
8
|
+
# License as published by the Free Software Foundation; either
|
|
9
|
+
# version 2.1 of the License, or (at your option) any later version.
|
|
10
|
+
#
|
|
11
|
+
# This library is distributed in the hope that it will be useful,
|
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
14
|
+
# Lesser General Public License for more details.
|
|
15
|
+
#
|
|
16
|
+
# You should have received a copy of the GNU Lesser General Public
|
|
17
|
+
# License along with this library; if not, write to the Free Software
|
|
18
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
19
|
+
|
|
20
|
+
import typing
|
|
21
|
+
import gi
|
|
22
|
+
|
|
23
|
+
gi.require_version('Gst', '1.0')
|
|
24
|
+
from gi.repository import Gst
|
|
25
|
+
from gi.overrides import _gi_gst # type: ignore[attr-defined]
|
|
26
|
+
from gi.overrides import override
|
|
27
|
+
|
|
28
|
+
if typing.TYPE_CHECKING:
|
|
29
|
+
# Import stubs for type checking this file.
|
|
30
|
+
from gi.repository import GstApp
|
|
31
|
+
else:
|
|
32
|
+
from gi.module import get_introspection_module
|
|
33
|
+
GstApp = get_introspection_module('GstApp')
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
__all__ = []
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class AppSink(GstApp.AppSink):
|
|
40
|
+
def pull_object(self) -> Gst.MiniObject:
|
|
41
|
+
obj = super().pull_object()
|
|
42
|
+
return _gi_gst.mini_object_to_subclass(obj)
|
|
43
|
+
|
|
44
|
+
def try_pull_object(self, timeout: int) -> typing.Optional[Gst.MiniObject]:
|
|
45
|
+
obj = super().try_pull_object(timeout)
|
|
46
|
+
return _gi_gst.mini_object_to_subclass(obj) if obj else None
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
override(AppSink)
|
|
50
|
+
__all__.append('AppSink')
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import typing
|
|
2
|
+
|
|
3
|
+
if typing.TYPE_CHECKING:
|
|
4
|
+
# Import stubs for type checking this file.
|
|
5
|
+
from gi.repository import GstAudio
|
|
6
|
+
else:
|
|
7
|
+
from gi.module import get_introspection_module
|
|
8
|
+
GstAudio = get_introspection_module('GstAudio')
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
__all__: list[str] = []
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def __audio_info_from_caps(*args):
|
|
15
|
+
raise NotImplementedError('AudioInfo.from_caps was removed, use AudioInfo.new_from_caps instead')
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
GstAudio.AudioInfo.from_caps = __audio_info_from_caps # type: ignore[method-assign]
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# -*- Mode: Python; py-indent-offset: 4 -*-
|
|
2
|
+
# vim: tabstop=4 shiftwidth=4 expandtab
|
|
3
|
+
#
|
|
4
|
+
# Gst.py
|
|
5
|
+
#
|
|
6
|
+
# Copyright (C) 2012 Alessandro Decina <alessandro.d@gmail.com>
|
|
7
|
+
#
|
|
8
|
+
# This program is free software; you can redistribute it and/or
|
|
9
|
+
# modify it under the terms of the GNU Lesser General Public
|
|
10
|
+
# License as published by the Free Software Foundation; either
|
|
11
|
+
# version 2.1 of the License, or (at your option) any later version.
|
|
12
|
+
#
|
|
13
|
+
# This program is distributed in the hope that it will be useful,
|
|
14
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
16
|
+
# Lesser General Public License for more details.
|
|
17
|
+
#
|
|
18
|
+
# You should have received a copy of the GNU Lesser General Public
|
|
19
|
+
# License along with this program; if not, write to the
|
|
20
|
+
# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
21
|
+
# Boston, MA 02110-1301, USA.
|
|
22
|
+
#
|
|
23
|
+
# SPDX-License-Identifier: LGPL-2.0-or-later
|
|
24
|
+
|
|
25
|
+
import typing
|
|
26
|
+
import gi
|
|
27
|
+
|
|
28
|
+
gi.require_version('Gst', '1.0')
|
|
29
|
+
from gi.repository import Gst
|
|
30
|
+
from gi.overrides import override as override_
|
|
31
|
+
|
|
32
|
+
if typing.TYPE_CHECKING:
|
|
33
|
+
# Import stubs for type checking this file.
|
|
34
|
+
from gi.repository import GstPbutils
|
|
35
|
+
else:
|
|
36
|
+
from gi.module import get_introspection_module
|
|
37
|
+
GstPbutils = get_introspection_module('GstPbutils')
|
|
38
|
+
|
|
39
|
+
__all__ = []
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def override(cls):
|
|
43
|
+
name = cls.__name__
|
|
44
|
+
globals()[name] = override_(cls)
|
|
45
|
+
__all__.append(name)
|
|
46
|
+
|
|
47
|
+
return cls
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
real_init = GstPbutils.pb_utils_init
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
def init():
|
|
54
|
+
if not Gst.is_initialized():
|
|
55
|
+
raise RuntimeError("Gst.init() needs to be called before importing GstPbutils")
|
|
56
|
+
|
|
57
|
+
real_init()
|
|
58
|
+
|
|
59
|
+
@override
|
|
60
|
+
class EncodingVideoProfile(GstPbutils.EncodingVideoProfile):
|
|
61
|
+
def __init__(self, format, preset=None, restriction=None, presence=0):
|
|
62
|
+
GstPbutils.EncodingVideoProfile.__init__(self)
|
|
63
|
+
self.set_format(format)
|
|
64
|
+
if preset is not None:
|
|
65
|
+
self.set_preset(preset)
|
|
66
|
+
if restriction is None:
|
|
67
|
+
restriction = Gst.Caps('ANY')
|
|
68
|
+
self.set_restriction(restriction)
|
|
69
|
+
self.set_presence(presence)
|
|
70
|
+
|
|
71
|
+
@override
|
|
72
|
+
class EncodingAudioProfile(GstPbutils.EncodingAudioProfile):
|
|
73
|
+
def __init__(self, format, preset=None, restriction=None, presence=0):
|
|
74
|
+
GstPbutils.EncodingAudioProfile.__init__(self)
|
|
75
|
+
self.set_format(format)
|
|
76
|
+
if preset is not None:
|
|
77
|
+
self.set_preset(preset)
|
|
78
|
+
if restriction is None:
|
|
79
|
+
restriction = Gst.Caps('ANY')
|
|
80
|
+
self.set_restriction(restriction)
|
|
81
|
+
self.set_presence(presence)
|
|
82
|
+
|
|
83
|
+
@override
|
|
84
|
+
class EncodingContainerProfile(GstPbutils.EncodingContainerProfile):
|
|
85
|
+
def __init__(self, name, description, format, preset=None):
|
|
86
|
+
GstPbutils.EncodingContainerProfile.__init__(self)
|
|
87
|
+
self.set_format(format)
|
|
88
|
+
if name is not None:
|
|
89
|
+
self.set_name(name)
|
|
90
|
+
if description is not None:
|
|
91
|
+
self.set_description(description)
|
|
92
|
+
if preset is not None:
|
|
93
|
+
self.set_preset(preset)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
GstPbutils.pb_utils_init = init
|
|
97
|
+
GstPbutils.init = init
|
|
98
|
+
if Gst.is_initialized():
|
|
99
|
+
init()
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import typing
|
|
2
|
+
|
|
3
|
+
if typing.TYPE_CHECKING:
|
|
4
|
+
# Import stubs for type checking this file.
|
|
5
|
+
from gi.repository import GstVideo
|
|
6
|
+
else:
|
|
7
|
+
from gi.module import get_introspection_module
|
|
8
|
+
GstVideo = get_introspection_module('GstVideo')
|
|
9
|
+
|
|
10
|
+
__all__: list[str] = []
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def __video_info_from_caps(*args):
|
|
14
|
+
raise NotImplementedError('VideoInfo.from_caps was removed, use VideoInfo.new_from_caps instead')
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
GstVideo.VideoInfo.from_caps = __video_info_from_caps # type: ignore[method-assign]
|