generic ¶
Classes:
-
ConstantFormatVideoNode
– -
VSFunctionAllArgs
– -
VSFunctionArgs
– -
VSFunctionKwArgs
– -
VSFunctionNoArgs
– -
VSFunctionPlanesArgs
–
Attributes:
-
BoundVSMapValue
–Type variable that can be one of the types in a VSMapValue.
-
F_VD
– -
FuncExceptT
– -
GenericVSFunction
– -
HoldsPropValue
–Types that can hold a vs.FrameProps.
-
HoldsPropValueT
–Deprecated alias of HoldsPropValue.
-
HoldsVideoFormat
–Types from which a clear VideoFormat can be retrieved.
-
HoldsVideoFormatT
–Deprecated alias of HoldsVideoFormat.
-
VSFunction
–Function that takes a VideoNode as its first argument and returns a VideoNode.
-
VSMapValue
–Values that a VSMap can hold, so all that a vs.Function can accept in args and can return.
-
VSMapValueCallback
–Callback that can be held in a VSMap. It can only return values representable in a VSMap.
-
VideoFormatLike
–Types representing a clear VideoFormat.
-
VideoFormatT
–Deprecated alias of VideoFormatLike.
-
VideoNodeIterableT
(TypeAlias
) – -
VideoNodeT
–
BoundVSMapValue module-attribute
¶
BoundVSMapValue = TypeVar('BoundVSMapValue', bound=VSMapValue)
Type variable that can be one of the types in a VSMapValue.
HoldsPropValue module-attribute
¶
HoldsPropValue = (
FrameProps
| VideoFrame
| AudioFrame
| VideoNode
| AudioNode
| Mapping[str, Any]
)
Types that can hold a vs.FrameProps.
HoldsPropValueT module-attribute
¶
HoldsPropValueT = HoldsPropValue
Deprecated alias of HoldsPropValue.
HoldsVideoFormat module-attribute
¶
HoldsVideoFormat = VideoNode | VideoFrame | VideoFormat
Types from which a clear VideoFormat can be retrieved.
HoldsVideoFormatT module-attribute
¶
HoldsVideoFormatT = HoldsVideoFormat
Deprecated alias of HoldsVideoFormat.
VSFunction module-attribute
¶
VSFunction = Union[
VSFunctionNoArgs[VideoNodeT, VideoNodeT],
VSFunctionArgs[VideoNodeT, VideoNodeT],
VSFunctionKwArgs[VideoNodeT, VideoNodeT],
VSFunctionAllArgs[VideoNodeT, VideoNodeT],
]
Function that takes a VideoNode as its first argument and returns a VideoNode.
VSMapValue module-attribute
¶
Values that a VSMap can hold, so all that a 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.
VideoFormatLike module-attribute
¶
VideoFormatLike = PresetVideoFormat | VideoFormat
Types representing a clear VideoFormat.
VideoNodeIterableT module-attribute
¶
VideoNodeIterableT: TypeAlias = Union[
VideoNodeT, Iterable["VideoNodeIterableT[VideoNodeT]"]
]
VideoNodeT_co module-attribute
¶
VideoNodeT_co = TypeVar('VideoNodeT_co', bound=VideoNode, covariant=True)
VideoNodeT_contra module-attribute
¶
VideoNodeT_contra = TypeVar(
"VideoNodeT_contra", bound=VideoNode, contravariant=True
)
ConstantFormatVideoNode ¶
VSFunctionAllArgs ¶
Bases: Protocol[VideoNodeT_contra, VideoNodeT_co]
Methods:
-
__call__
–
__call__ ¶
__call__(clip: VideoNodeT_contra, *args: Any, **kwargs: Any) -> VideoNodeT_co
Source code in vstools/types/generic.py
121 |
|
VSFunctionArgs ¶
Bases: Protocol[VideoNodeT_contra, VideoNodeT_co]
Methods:
-
__call__
–
__call__ ¶
__call__(clip: VideoNodeT_contra, *args: Any) -> VideoNodeT_co
Source code in vstools/types/generic.py
113 |
|
VSFunctionKwArgs ¶
Bases: Protocol[VideoNodeT_contra, VideoNodeT_co]
Methods:
-
__call__
–
__call__ ¶
__call__(clip: VideoNodeT_contra, **kwargs: Any) -> VideoNodeT_co
Source code in vstools/types/generic.py
117 |
|
VSFunctionNoArgs ¶
Bases: Protocol[VideoNodeT_contra, VideoNodeT_co]
Methods:
-
__call__
–
__call__ ¶
__call__(clip: VideoNodeT_contra) -> VideoNodeT_co
Source code in vstools/types/generic.py
109 |
|
VSFunctionPlanesArgs ¶
Bases: VSFunctionKwArgs[VideoNodeT_contra, VideoNodeT_co]
, Protocol
Methods:
-
__call__
–
__call__ ¶
__call__(
clip: VideoNodeT_contra, *, planes: Planes = ..., **kwargs: Any
) -> VideoNodeT_co
Source code in vstools/types/generic.py
136 |
|