Skip to content

generic

BoundVSMapValue module-attribute

BoundVSMapValue = TypeVar('BoundVSMapValue', bound=VSMapValue)

Type variable that can be one of the types in a VSMapValue.

GenericVSFunction module-attribute

GenericVSFunction = Callable[..., VideoNode]

HoldsPropValueT module-attribute

HoldsPropValueT = Union[
    FrameProps, VideoFrame, AudioFrame, VideoNode, AudioNode
]

Types that can hold :py:attr:vs.FrameProps.

HoldsVideoFormatT module-attribute

HoldsVideoFormatT = Union[VideoNode, VideoFrame, VideoFormat]

Types from which a clear VideoFormat can be retrieved.

VSFunction module-attribute

Function that takes a :py:attr:vs.VideoNode as its first argument and returns a :py:attr:vs.VideoNode.

VSMapValue module-attribute

VSMapValue = Union[_VSMapValue, SingleOrArr[Callable[..., _VSMapValue]]]

Values that a VSMap can hold, so all that a :py:attr:`vs.Function`` can accept in args and can return.

VSMapValueCallback module-attribute

VSMapValueCallback = Callable[..., VSMapValue]

Callback that can be held in a VSMap. It can only return values representable in a VSMap.

VideoFormatT module-attribute

VideoFormatT = Union[VSPresetVideoFormat, VideoFormat]

Types representing a clear VideoFormat.

ConstantFormatVideoNode

Bases: VideoNode

format instance-attribute

format: VideoFormat

VSFunctionAllArgs

Bases: Protocol

__call__

__call__(clip: VideoNode, *args: Any, **kwargs: Any) -> VideoNode
Source code
85
86
def __call__(self, clip: vs.VideoNode, *args: Any, **kwargs: Any) -> vs.VideoNode:
    ...

VSFunctionArgs

Bases: Protocol

__call__

__call__(clip: VideoNode, *args: Any) -> VideoNode
Source code
75
76
def __call__(self, clip: vs.VideoNode, *args: Any) -> vs.VideoNode:
    ...

VSFunctionKwArgs

Bases: Protocol

__call__

__call__(clip: VideoNode, **kwargs: Any) -> VideoNode
Source code
80
81
def __call__(self, clip: vs.VideoNode, **kwargs: Any) -> vs.VideoNode:
    ...

VSFunctionNoArgs

Bases: Protocol

__call__

__call__(clip: VideoNode) -> VideoNode
Source code
70
71
def __call__(self, clip: vs.VideoNode) -> vs.VideoNode:
    ...