enums ¶
Classes:
-
MVDirection–Motion vector analyze direction.
-
MaskMode–Defines the type of analysis mask to generate.
-
PenaltyMode–Controls how motion estimation penalties scale with hierarchical levels.
-
RFilterMode–Hierarchical levels smoothing and reducing (halving) filter.
-
SearchMode–Decides the type of search at every level.
-
SharpMode–Subpixel interpolation method for pel = 2 or 4.
MaskMode ¶
Bases: CustomIntEnum
Defines the type of analysis mask to generate.
Methods:
-
from_param–Return the enum value from a parameter.
-
value–
Attributes:
-
OCCLUSION–Generates a mask highlighting areas where motion estimation fails due to occlusion.
-
SAD–Generates a mask based on SAD (Sum of Absolute Differences) values.
-
VECTOR_LENGTH–Generates a mask based on motion vector magnitudes.
OCCLUSION class-attribute instance-attribute ¶
OCCLUSION = 2
Generates a mask highlighting areas where motion estimation fails due to occlusion.
SAD class-attribute instance-attribute ¶
SAD = 1
Generates a mask based on SAD (Sum of Absolute Differences) values.
VECTOR_LENGTH class-attribute instance-attribute ¶
VECTOR_LENGTH = 0
Generates a mask based on motion vector magnitudes.
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 | |
PenaltyMode ¶
Bases: CustomIntEnum
Controls how motion estimation penalties scale with hierarchical levels.
Methods:
-
from_param–Return the enum value from a parameter.
-
value–
Attributes:
-
LINEAR–Penalties scale linearly with hierarchical level size.
-
NONE–Penalties remain constant across all hierarchical levels.
-
QUADRATIC–Penalties scale quadratically with hierarchical level size.
LINEAR class-attribute instance-attribute ¶
LINEAR = 1
Penalties scale linearly with hierarchical level size.
NONE class-attribute instance-attribute ¶
NONE = 0
Penalties remain constant across all hierarchical levels.
QUADRATIC class-attribute instance-attribute ¶
QUADRATIC = 2
Penalties scale quadratically with hierarchical level size.
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 | |
RFilterMode ¶
Bases: CustomIntEnum
Hierarchical levels smoothing and reducing (halving) filter.
Methods:
-
from_param–Return the enum value from a parameter.
-
value–
Attributes:
-
AVERAGE–Simple 4 pixels averaging.
-
BILINEAR–Triangle filter for even more smoothing.
-
CUBIC–Cubic filter for even more smoothing.
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 | |
SearchMode ¶
Bases: CustomIntEnum
Decides the type of search at every level.
Methods:
-
from_param–Return the enum value from a parameter.
-
value–
Attributes:
-
DIAMOND–Logarithmic search, also named Diamond Search.
-
EXHAUSTIVE–Exhaustive search, square side is 2 * radius + 1. It's slow, but gives the best results SAD-wise.
-
EXHAUSTIVE_H–Pure horizontal exhaustive search, width is 2 * radius + 1.
-
EXHAUSTIVE_V–Pure vertical exhaustive search, height is 2 * radius + 1.
-
HEXAGON–Hexagon search (similar to x264).
-
UMH–Uneven Multi Hexagon search (similar to x264).
DIAMOND class-attribute instance-attribute ¶
DIAMOND = 0
Logarithmic search, also named Diamond Search.
EXHAUSTIVE class-attribute instance-attribute ¶
EXHAUSTIVE = 1
Exhaustive search, square side is 2 * radius + 1. It's slow, but gives the best results SAD-wise.
EXHAUSTIVE_H class-attribute instance-attribute ¶
EXHAUSTIVE_H = 4
Pure horizontal exhaustive search, width is 2 * radius + 1.
EXHAUSTIVE_V class-attribute instance-attribute ¶
EXHAUSTIVE_V = 5
Pure vertical exhaustive search, height is 2 * radius + 1.
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 | |
SharpMode ¶
Bases: CustomIntEnum
Subpixel interpolation method for pel = 2 or 4.
This enum controls the calculation of the first level only. If pel=4, bilinear interpolation is always used to compute the second level.
Methods:
-
from_param–Return the enum value from a parameter.
-
value–
Attributes:
-
BICUBIC–Bicubic interpolation (4-tap Catmull-Rom).
-
BILINEAR–Soft bilinear interpolation.
-
WIENER–Sharper Wiener interpolation (6-tap, similar to Lanczos).
WIENER class-attribute instance-attribute ¶
WIENER = 2
Sharper Wiener interpolation (6-tap, similar to Lanczos).
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 | |