types ¶
Classes:
Attributes:
-
BotFieldLeftShift
(TypeAlias
) – -
BotFieldTopShift
(TypeAlias
) – -
Center
(TypeAlias
) – -
LeftShift
(TypeAlias
) – -
ShiftT
– -
Slope
(TypeAlias
) – -
TopFieldLeftShift
(TypeAlias
) – -
TopFieldTopShift
(TypeAlias
) – -
TopShift
(TypeAlias
) –
ShiftT module-attribute
¶
ShiftT = Union[
tuple[TopShift, LeftShift],
tuple[
TopShift | tuple[TopFieldTopShift, BotFieldTopShift],
LeftShift | tuple[TopFieldLeftShift, BotFieldLeftShift],
],
]
BorderHandling ¶
Bases: CustomIntEnum
Methods:
Attributes:
pad_amount cached
¶
Source code
40 41 42 43 44 45 |
|
prepare_clip ¶
prepare_clip(clip: VideoNode, min_pad: int = 2) -> VideoNode
Source code
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
SampleGridModel ¶
Bases: CustomIntEnum
Methods:
Attributes:
__call__ ¶
__call__(
width: int,
height: int,
src_width: float,
src_height: float,
shift: tuple[float, float],
kwargs: KwargsT,
) -> tuple[KwargsT, tuple[float, float]]
Source code
52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
|
for_dst ¶
for_dst(
clip: VideoNode,
width: int,
height: int,
shift: tuple[float, float],
**kwargs: Any
) -> tuple[KwargsT, tuple[float, float]]
Source code
67 68 69 70 71 72 73 |
|
for_src ¶
for_src(
clip: VideoNode,
width: int,
height: int,
shift: tuple[float, float],
**kwargs: Any
) -> tuple[KwargsT, tuple[float, float]]
Source code
75 76 77 78 79 80 81 |
|