Skip to content

generic

Type Aliases:

Classes:

Attributes:

GenericVSFunction module-attribute

GenericVSFunction = Callable[..., VideoNode]

HoldsPropValue module-attribute

HoldsPropValue = (
    FrameProps
    | VideoFrame
    | AudioFrame
    | VideoNode
    | AudioNode
    | Mapping[str, Any]
)

Types that can hold a vs.FrameProps.

HoldsVideoFormat module-attribute

HoldsVideoFormat = VideoNode | VideoFrame | VideoFormat

Types from which a clear VideoFormat can be retrieved.

VSFunction module-attribute

Function that takes a VideoNode as its first argument and returns a VideoNode.

VideoFormatLike module-attribute

VideoFormatLike = PresetVideoFormat | VideoFormat

Types representing a clear VideoFormat.

AudioNodeIterable

AudioNodeIterable = AudioNode | Iterable[AudioNodeIterable]

MissingT

MissingT = Literal[MISSING]

RawNodeIterable

RawNodeIterable = RawNode | Iterable[RawNodeIterable]

VideoNodeIterable

VideoNodeIterable = VideoNode | Iterable[VideoNodeIterable]

VSFunctionAllArgs

Bases: Protocol

Methods:

__call__

__call__(clip: VideoNode, *args: Any, **kwargs: Any) -> VideoNode
Source code in vstools/types/generic.py
66
def __call__(self, clip: vs.VideoNode, *args: Any, **kwargs: Any) -> vs.VideoNode: ...

VSFunctionArgs

Bases: Protocol

Methods:

__call__

__call__(clip: VideoNode, *args: Any) -> VideoNode
Source code in vstools/types/generic.py
56
def __call__(self, clip: vs.VideoNode, *args: Any) -> vs.VideoNode: ...

VSFunctionKwArgs

Bases: Protocol

Methods:

__call__

__call__(clip: VideoNode, **kwargs: Any) -> VideoNode
Source code in vstools/types/generic.py
61
def __call__(self, clip: vs.VideoNode, **kwargs: Any) -> vs.VideoNode: ...

VSFunctionNoArgs

Bases: Protocol

Methods:

__call__

__call__(clip: VideoNode) -> VideoNode
Source code in vstools/types/generic.py
51
def __call__(self, clip: vs.VideoNode) -> vs.VideoNode: ...

VSFunctionPlanesArgs

Bases: VSFunctionKwArgs, Protocol

Methods:

__call__

__call__(clip: VideoNode, *, planes: Planes = ..., **kwargs: Any) -> VideoNode
Source code in vstools/types/generic.py
76
def __call__(self, clip: vs.VideoNode, *, planes: Planes = ..., **kwargs: Any) -> vs.VideoNode: ...