variables ¶
Classes:
-
ClipPropsVar
– -
ClipVar
– -
ComplexVar
– -
ComputedVar
– -
ExprVar
– -
LiteralVar
–
Attributes:
-
ExprOtherT
(TypeAlias
) – -
resolverT
(TypeAlias
) –
ClipPropsVar ¶
ClipPropsVar(clip_var: ClipVar)
Attributes:
-
PlaneStatsAverage
(ComputedVar
) – -
PlaneStatsMax
(ComputedVar
) – -
PlaneStatsMin
(ComputedVar
) – -
clip_var
–
Source code
277 278 |
|
ClipVar ¶
ClipVar(char: str, clip: VideoNode, parent_expr: inline_expr)
Bases: ExprVar
Methods:
-
as_var
– -
assert_in_context
– -
scale
– -
to_str
–
Attributes:
-
char
– -
clip
– -
depth
(LiteralVar
) – -
height
(LiteralVar
) – -
height_chroma
(LiteralVar
) – -
height_luma
(LiteralVar
) – -
lowest
(LiteralVar
) – -
lowest_chroma
(LiteralVar
) – -
neutral
(LiteralVar
) – -
neutral_chroma
(LiteralVar
) – -
parent_expr
(inline_expr
) – -
peak
(LiteralVar
) – -
peak_chroma
(LiteralVar
) – -
props
– -
width
(LiteralVar
) – -
width_chroma
(LiteralVar
) – -
width_luma
(LiteralVar
) –
Source code
288 289 290 291 292 |
|
as_var ¶
as_var() -> ComputedVar
Source code
207 208 209 210 |
|
assert_in_context ¶
assert_in_context() -> Literal[True]
Source code
198 199 200 201 202 203 204 205 |
|
scale ¶
scale(
value: float,
input_depth: int = 8,
range_in: ColorRangeT | None = None,
range_out: ColorRangeT | None = None,
scale_offsets: bool = True,
family: ColorFamily | None = None,
) -> ComplexVar
Source code
368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 |
|
ComplexVar dataclass
¶
Bases: LiteralVar
Methods:
-
as_var
– -
assert_in_context
– -
resolver
– -
to_str
–
Attributes:
as_var ¶
as_var() -> ComputedVar
Source code
207 208 209 210 |
|
assert_in_context ¶
assert_in_context() -> Literal[True]
Source code
198 199 200 201 202 203 204 205 |
|
resolver staticmethod
¶
resolver(
function: Callable[..., Any] | None = None,
) -> Callable[[Callable[..., Any]], resolverT] | resolverT
Source code
259 260 261 262 263 264 265 266 267 268 |
|
ComputedVar ¶
ComputedVar(operations: Iterable[BaseOperator | ExprVar])
Bases: ExprVar
Methods:
-
as_var
– -
assert_in_context
– -
to_str
–
Attributes:
Source code
227 228 229 230 231 |
|
parent_expr instance-attribute
¶
parent_expr = next(
parent_expr if isinstance(x, (ComputedVar, ClipVar)) else None
for x in operations, None
)
as_var ¶
as_var() -> ComputedVar
Source code
207 208 209 210 |
|
ExprVar ¶
Bases: int
Methods:
-
as_var
– -
assert_in_context
– -
to_str
–
Attributes:
-
parent_expr
(inline_expr | None
) –
as_var ¶
as_var() -> ComputedVar
Source code
207 208 209 210 |
|
LiteralVar ¶
Bases: ExprVar
Methods:
-
as_var
– -
assert_in_context
– -
to_str
–
Attributes:
-
parent_expr
(None
) – -
value
–
Source code
216 217 |
|
as_var ¶
as_var() -> ComputedVar
Source code
207 208 209 210 |
|