exprop ¶
Classes:
-
ExprList
– -
ExprOp
– -
ExprToken
– -
TupleExprList
–
ExprList ¶
Bases: StrList
Methods:
-
__call__
–
__call__ ¶
__call__(
*clips: VideoNodeIterableT[VideoNodeT],
planes: PlanesT = None,
format: HoldsVideoFormatT | VideoFormatT | None = None,
opt: bool | None = None,
boundary: bool = True,
func: FuncExceptT | None = None,
split_planes: bool = False,
**kwargs: Any
) -> VideoNodeT
Source code
114 115 116 117 118 119 120 121 122 123 124 |
|
ExprOp ¶
Bases: ExprOpBase
, CustomEnum
Methods:
Attributes:
-
ABS
– -
ABS_PIX
– -
ADD
– -
AND
– -
CLAMP
– -
COS
– -
DIV
– -
DUP
– -
DUPN
– -
EQ
– -
EXP
– -
FLOOR
– -
GT
– -
GTE
– -
LOG
– -
LT
– -
LTE
– -
MAX
– -
MIN
– -
MOD
– -
MUL
– -
NOT
– -
OR
– -
POW
– -
REL_PIX
– -
ROUND
– -
SIN
– -
SQRT
– -
SUB
– -
SWAP
– -
SWAPN
– -
TERN
– -
TRUNC
– -
XOR
– -
n_op
(int
) – -
value
(str
) –
__call__ ¶
__call__(
*clips: VideoNodeIterableT[VideoNodeT],
suffix: StrArrOpt = None,
prefix: StrArrOpt = None,
expr_suffix: StrArrOpt = None,
expr_prefix: StrArrOpt = None,
planes: PlanesT = None,
**expr_kwargs: Any
) -> VideoNodeT
__call__(*pos_args: Any, **kwargs: Any) -> ExprOpBase
__call__(*pos_args: Any, **kwargs: Any) -> VideoNode | ExprOpBase
Source code
224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
|
clamp classmethod
¶
clamp(
min: float | ExprToken = RangeMin,
max: float | ExprToken = RangeMax,
c: str = "",
) -> ExprList
Source code
251 252 253 254 255 256 257 258 259 |
|
combine ¶
combine(
*clips: VideoNode | Iterable[VideoNode | Iterable[VideoNode]],
suffix: StrArrOpt = None,
prefix: StrArrOpt = None,
expr_suffix: StrArrOpt = None,
expr_prefix: StrArrOpt = None,
planes: PlanesT = None,
**expr_kwargs: Any
) -> ConstantFormatVideoNode
Source code
158 159 160 161 162 163 164 165 |
|
convolution classmethod
¶
convolution(
var: str | ExprVarsT,
matrix: Iterable[SupportsFloat] | Iterable[Iterable[SupportsFloat]],
bias: float | None = None,
divisor: float | bool = True,
saturate: bool = True,
mode: ConvMode = HV,
premultiply: float | int | None = None,
multiply: float | int | None = None,
clamp: bool = False,
) -> TupleExprList
Source code
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 |
|
mae classmethod
¶
mae(planesa: ExprVarRangeT, planesb: ExprVarRangeT | None = None) -> ExprList
Source code
388 389 390 391 392 393 394 395 396 397 398 |
|
matrix classmethod
¶
matrix(
var: str | ExprVarsT,
radius: int,
mode: ConvMode,
exclude: Iterable[tuple[int, int]] | None = None,
) -> TupleExprList
Source code
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 |
|
rmse classmethod
¶
rmse(planesa: ExprVarRangeT, planesb: ExprVarRangeT | None = None) -> ExprList
Source code
375 376 377 378 379 380 381 382 383 384 385 386 |
|
ExprOpBase ¶
Bases: str
Methods:
-
combine
–
Attributes:
combine ¶
combine(
*clips: VideoNode | Iterable[VideoNode | Iterable[VideoNode]],
suffix: StrArrOpt = None,
prefix: StrArrOpt = None,
expr_suffix: StrArrOpt = None,
expr_prefix: StrArrOpt = None,
planes: PlanesT = None,
**expr_kwargs: Any
) -> ConstantFormatVideoNode
Source code
158 159 160 161 162 163 164 165 |
|
ExprToken ¶
Bases: ExprTokenBase
, CustomEnum
Methods:
Attributes:
-
ChromaMax
– -
ChromaMin
– -
ChromaRangeInMax
– -
ChromaRangeInMin
– -
ChromaRangeMax
– -
ChromaRangeMin
– -
LumaMax
– -
LumaMin
– -
LumaRangeInMax
– -
LumaRangeInMin
– -
LumaRangeMax
– -
LumaRangeMin
– -
Neutral
– -
RangeHalf
– -
RangeInMax
– -
RangeInMin
– -
RangeMax
– -
RangeMin
– -
RangeSize
– -
is_chroma
(bool
) – -
value
(str
) –
get_value ¶
get_value(
clip: VideoNode,
chroma: bool | None = None,
range_in: ColorRange | None = None,
) -> float
Source code
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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
|
TupleExprList ¶
Methods:
-
__call__
–
__call__ ¶
__call__(
*clips: VideoNodeIterableT[VideoNodeT],
planes: PlanesT = None,
format: HoldsVideoFormatT | VideoFormatT | None = None,
opt: bool | None = None,
boundary: bool = True,
func: FuncExceptT | None = None,
split_planes: bool = False,
**kwargs: Any
) -> VideoNodeT
Source code
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
|