types ¶
Classes:
Attributes:
-
BotFieldLeftShift
(TypeAlias
) –Type alias for the bottom field's horizontal shift in pixels.
-
BotFieldTopShift
(TypeAlias
) –Type alias for the bottom field's vertical shift in pixels.
-
Center
(TypeAlias
) –Type alias for the center point of the sigmoid curve, determining the midpoint of the transition.
-
LeftShift
(TypeAlias
) –Type alias for horizontal shift in pixels (left).
-
ShiftT
–Type alias for shift in both horizontal and vertical directions.
-
Slope
(TypeAlias
) –Type alias for the slope of the sigmoid curve, controlling the steepness of the transition.
-
TopFieldLeftShift
(TypeAlias
) –Type alias for the top field's horizontal shift in pixels.
-
TopFieldTopShift
(TypeAlias
) –Type alias for the top field's vertical shift in pixels.
-
TopShift
(TypeAlias
) –Type alias for vertical shift in pixels (top).
BotFieldLeftShift module-attribute
¶
Type alias for the bottom field's horizontal shift in pixels.
Used when processing interlaced video to describe the horizontal shift of the bottom field.
BotFieldTopShift module-attribute
¶
Type alias for the bottom field's vertical shift in pixels.
Used when processing interlaced video to describe the vertical shift of the bottom field.
Center module-attribute
¶
Type alias for the center point of the sigmoid curve, determining the midpoint of the transition.
LeftShift module-attribute
¶
Type alias for horizontal shift in pixels (left).
Represents the amount of horizontal offset when scaling a video.
ShiftT module-attribute
¶
ShiftT = Union[
tuple[TopShift, LeftShift],
tuple[
TopShift | tuple[TopFieldTopShift, BotFieldTopShift],
LeftShift | tuple[TopFieldLeftShift, BotFieldLeftShift],
],
]
Type alias for shift in both horizontal and vertical directions.
Can either represent a single shift (for progressive video) or separate shifts for top and bottom fields (for interlaced video).
The first value in the tuple represents vertical shift, and the second represents horizontal shift.
Slope module-attribute
¶
Type alias for the slope of the sigmoid curve, controlling the steepness of the transition.
TopFieldLeftShift module-attribute
¶
Type alias for the top field's horizontal shift in pixels.
Used when processing interlaced video to describe the horizontal shift of the top field.
TopFieldTopShift module-attribute
¶
Type alias for the top field's vertical shift in pixels.
Used when processing interlaced video to describe the vertical shift of the top field.
TopShift module-attribute
¶
Type alias for vertical shift in pixels (top).
Represents the amount of vertical offset when scaling a video.
BorderHandling ¶
Bases: CustomIntEnum
Methods:
Attributes:
pad_amount cached
¶
Source code
50 51 52 53 54 55 |
|
prepare_clip ¶
prepare_clip(
clip: VideoNode,
min_pad: int = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
) -> tuple[VideoNode, tuple[TopShift, LeftShift]]
Source code
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
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
62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
|
for_dst ¶
for_dst(
clip: VideoNode,
width: int,
height: int,
shift: tuple[float, float],
**kwargs: Any
) -> tuple[KwargsT, tuple[float, float]]
Source code
77 78 79 80 81 82 83 |
|
for_src ¶
for_src(
clip: VideoNode,
width: int,
height: int,
shift: tuple[float, float],
**kwargs: Any
) -> tuple[KwargsT, tuple[float, float]]
Source code
85 86 87 88 89 90 91 |
|