panning ¶
Classes:
Functions:
-
panner–
PanDirection ¶
Bases: CustomIntEnum
Methods:
-
from_param–Return the enum value from a parameter.
-
value–
Attributes:
from_param classmethod ¶
from_param(value: Any, func_except: FuncExcept | None = None) -> Self
Return the enum value from a parameter.
Parameters:
-
(value¶Any) –Value to instantiate the enum class.
-
(func_except¶FuncExcept | None, default:None) –Exception function.
Returns:
-
Self–Enum value.
Raises:
-
NotFoundEnumValue–Variable not found in the given enum.
Source code in jetpytools/enums/base.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
PanFunction ¶
Bases: NamedTuple
Attributes:
-
direction(PanDirection) – -
function_x(EasingT) – -
function_y(EasingT) –
PanFunctions ¶
Bases: PanFunction, CustomEnum
Methods:
-
from_param–Return the enum value from a parameter.
Attributes:
-
HORIZONTAL_LTR– -
HORIZONTAL_RTL– -
VERTICAL_BTT– -
VERTICAL_TTB– -
direction(PanDirection) – -
function_x(EasingT) – -
function_y(EasingT) –
HORIZONTAL_RTL class-attribute instance-attribute ¶
HORIZONTAL_RTL = PanFunction(INVERTED, function_x=Linear)
VERTICAL_BTT class-attribute instance-attribute ¶
VERTICAL_BTT = PanFunction(INVERTED, function_y=Linear)
from_param classmethod ¶
from_param(value: Any, func_except: FuncExcept | None = None) -> Self
Return the enum value from a parameter.
Parameters:
-
(value¶Any) –Value to instantiate the enum class.
-
(func_except¶FuncExcept | None, default:None) –Exception function.
Returns:
-
Self–Enum value.
Raises:
-
NotFoundEnumValue–Variable not found in the given enum.
Source code in jetpytools/enums/base.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
panner ¶
panner(
clip: VideoNode,
stitched: VideoNode,
pan_func: PanFunction | PanFunctions = VERTICAL_TTB,
fps: Fraction = Fraction(24000, 1001),
kernel: KernelLike = Catrom,
) -> VideoNode
Source code in vstransitions/panning.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |