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
266 267 |
|
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
277 278 279 280 281 |
|
as_var ¶
as_var() -> ComputedVar
Source code
194 195 196 197 |
|
assert_in_context ¶
Source code
185 186 187 188 189 190 191 192 |
|
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
357 358 359 360 361 362 363 364 365 366 367 368 |
|
ComplexVar dataclass
¶
Bases: LiteralVar
Methods:
-
as_var
– -
assert_in_context
– -
resolver
– -
to_str
–
Attributes:
as_var ¶
as_var() -> ComputedVar
Source code
194 195 196 197 |
|
assert_in_context ¶
Source code
185 186 187 188 189 190 191 192 |
|
resolver staticmethod
¶
resolver(
function: Callable[..., Any] | None = None,
) -> Callable[[Callable[..., Any]], resolverT] | resolverT
Source code
248 249 250 251 252 253 254 255 256 257 |
|
ComputedVar ¶
ComputedVar(operations: Iterable[BaseOperator | ExprVar])
Bases: ExprVar
Methods:
-
as_var
– -
assert_in_context
– -
to_str
–
Attributes:
Source code
214 215 216 217 218 |
|
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
194 195 196 197 |
|
assert_in_context ¶
Source code
185 186 187 188 189 190 191 192 |
|
ExprVar ¶
Bases: int
Methods:
-
as_var
– -
assert_in_context
– -
to_str
–
Attributes:
-
parent_expr
(inline_expr | None
) –
as_var ¶
as_var() -> ComputedVar
Source code
194 195 196 197 |
|
assert_in_context ¶
Source code
185 186 187 188 189 190 191 192 |
|
LiteralVar ¶
Bases: ExprVar
Methods:
-
as_var
– -
assert_in_context
– -
to_str
–
Attributes:
-
parent_expr
(None
) – -
value
–
Source code
203 204 |
|
as_var ¶
as_var() -> ComputedVar
Source code
194 195 196 197 |
|
assert_in_context ¶
Source code
185 186 187 188 189 190 191 192 |
|