File: GstVideo.py

package info (click to toggle)
gst-python1.0 1.28.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,024 kB
  • sloc: python: 8,717; ansic: 2,065; makefile: 33
file content (17 lines) | stat: -rw-r--r-- 487 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import typing

if typing.TYPE_CHECKING:
    # Import stubs for type checking this file.
    from gi.repository import GstVideo
else:
    from gi.module import get_introspection_module
    GstVideo = get_introspection_module('GstVideo')

__all__: list[str] = []


def __video_info_from_caps(*args):
    raise NotImplementedError('VideoInfo.from_caps was removed, use VideoInfo.new_from_caps instead')


GstVideo.VideoInfo.from_caps = __video_info_from_caps  # type: ignore[method-assign]