complex ¶
Classes:
-
ComplexKernel
– -
ComplexScaler
– -
CustomComplexKernel
– -
CustomComplexTapsKernel
– -
KeepArScaler
– -
LinearDescaler
– -
LinearScaler
–
Attributes:
ComplexKernel ¶
ComplexKernel(**kwargs: Any)
Bases: Kernel
, LinearDescaler
, ComplexScaler
Methods:
-
descale
– -
ensure_obj
– -
from_param
– -
get_clean_kwargs
– -
get_descale_args
– -
get_implemented_funcs
– -
get_params_args
– -
get_resample_args
– -
get_scale_args
– -
kernel_radius
– -
multi
– -
pretty_string
– -
resample
– -
scale
– -
shift
– -
supersample
–
Attributes:
-
descale_function
(Callable[..., ConstantFormatVideoNode]
) –Descale function called internally when descaling
-
kwargs
(KwargsT
) –Arguments passed to the internal scale function
-
resample_function
(Callable[..., ConstantFormatVideoNode]
) –Resample function called internally when resampling
-
scale_function
(Callable[..., VideoNode]
) –Scale function called internally when scaling
Source code
182 183 |
|
descale_function instance-attribute
¶
descale_function: Callable[..., ConstantFormatVideoNode]
Descale function called internally when descaling
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
resample_function instance-attribute
¶
resample_function: Callable[..., ConstantFormatVideoNode]
Resample function called internally when resampling
scale_function instance-attribute
¶
scale_function: Callable[..., VideoNode]
Scale function called internally when scaling
descale ¶
descale(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
shift: ShiftT = (0, 0),
*,
border_handling: BorderHandling = MIRROR,
sample_grid_model: SampleGridModel = MATCH_EDGES,
field_based: FieldBased | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> ConstantFormatVideoNode
Source code
99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: str | type[BaseScaler] | BaseScaler | None = None,
/,
func_except: FuncExceptT | None = None,
) -> BaseScaler
Source code
647 648 649 650 651 652 653 654 |
|
from_param classmethod
¶
from_param(
kernel: KernelT | None = ..., /, func_except: FuncExceptT | None = None
) -> type[Kernel]
from_param(
kernel: ScalerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: str | type[BaseScaler] | BaseScaler | None = None,
/,
func_except: FuncExceptT | None = None,
) -> type[BaseScaler]
Source code
611 612 613 614 615 616 617 |
|
get_clean_kwargs ¶
Source code
216 217 |
|
get_descale_args ¶
get_descale_args(
clip: VideoNode,
shift: tuple[TopShift, LeftShift] = (0, 0),
width: int | None = None,
height: int | None = None,
*funcs: Callable[..., Any],
**kwargs: Any
) -> KwargsT
Source code
673 674 675 676 677 678 679 680 681 682 683 |
|
get_implemented_funcs ¶
Source code
701 702 |
|
get_params_args ¶
get_params_args(
is_descale: bool,
clip: VideoNode,
width: int | None = None,
height: int | None = None,
**kwargs: Any
) -> KwargsT
Source code
656 657 658 659 |
|
get_resample_args ¶
get_resample_args(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None,
matrix_in: MatrixT | None,
*funcs: Callable[..., Any],
**kwargs: Any
) -> KwargsT
Source code
685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 |
|
get_scale_args ¶
get_scale_args(
clip: VideoNode,
shift: tuple[TopShift, LeftShift] = (0, 0),
width: int | None = None,
height: int | None = None,
*funcs: Callable[..., Any],
**kwargs: Any
) -> KwargsT
Source code
661 662 663 664 665 666 667 668 669 670 671 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
210 211 212 213 214 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2.0,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
272 273 274 275 276 277 278 279 280 281 |
|
pretty_string ¶
pretty_string() -> str
Source code
225 226 227 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> ConstantFormatVideoNode
Source code
438 439 440 441 442 443 444 445 446 |
|
scale ¶
scale(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
border_handling: BorderHandling = MIRROR,
sample_grid_model: SampleGridModel = MATCH_EDGES,
sar: Sar | float | bool | None = None,
dar: Dar | float | bool | None = None,
dar_in: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
/,
**kwargs: Any,
) -> ConstantFormatVideoNode
Source code
523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 |
|
supersample ¶
supersample(
clip: VideoNode,
rfactor: float = 2.0,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
|
ComplexScaler ¶
ComplexScaler(**kwargs: Any)
Bases: LinearScaler
, KeepArScaler
Methods:
-
ensure_obj
– -
from_param
– -
get_clean_kwargs
– -
get_implemented_funcs
– -
get_scale_args
– -
kernel_radius
– -
multi
– -
pretty_string
– -
scale
– -
supersample
–
Attributes:
-
kwargs
(KwargsT
) –Arguments passed to the internal scale function
-
scale_function
(Callable[..., VideoNode]
) –Scale function called internally when scaling
Source code
182 183 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
scale_function instance-attribute
¶
scale_function: Callable[..., VideoNode]
Scale function called internally when scaling
ensure_obj classmethod
¶
ensure_obj(
scaler: str | type[BaseScalerT] | BaseScalerT | None = None,
/,
func_except: FuncExceptT | None = None,
) -> BaseScalerT
Source code
201 202 203 204 205 206 207 208 |
|
from_param classmethod
¶
from_param(
scaler: str | type[BaseScalerT] | BaseScalerT | None = None,
/,
func_except: FuncExceptT | None = None,
) -> type[BaseScalerT]
Source code
192 193 194 195 196 197 198 199 |
|
get_clean_kwargs ¶
Source code
216 217 |
|
get_implemented_funcs ¶
Source code
299 300 |
|
get_scale_args ¶
get_scale_args(
clip: VideoNode,
shift: tuple[TopShift, LeftShift] = (0, 0),
width: int | None = None,
height: int | None = None,
*funcs: Callable[..., Any],
**kwargs: Any
) -> KwargsT
Source code
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
210 211 212 213 214 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2.0,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
272 273 274 275 276 277 278 279 280 281 |
|
pretty_string ¶
pretty_string() -> str
Source code
225 226 227 |
|
scale ¶
scale(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
border_handling: BorderHandling = MIRROR,
sample_grid_model: SampleGridModel = MATCH_EDGES,
sar: Sar | float | bool | None = None,
dar: Dar | float | bool | None = None,
dar_in: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
|
supersample ¶
supersample(
clip: VideoNode,
rfactor: float = 2.0,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
|
CustomComplexKernel ¶
CustomComplexKernel(**kwargs: Any)
Bases: CustomKernel
, ComplexKernel
Methods:
-
descale
– -
descale_function
– -
ensure_obj
– -
from_param
– -
get_clean_kwargs
– -
get_descale_args
– -
get_implemented_funcs
– -
get_params_args
– -
get_resample_args
– -
get_scale_args
– -
kernel
– -
kernel_radius
– -
multi
– -
pretty_string
– -
resample
– -
resample_function
– -
scale
– -
scale_function
– -
shift
– -
supersample
–
Attributes:
-
kwargs
(KwargsT
) –Arguments passed to the internal scale function
Source code
182 183 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
shift: ShiftT = (0, 0),
*,
border_handling: BorderHandling = MIRROR,
sample_grid_model: SampleGridModel = MATCH_EDGES,
field_based: FieldBased | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
blur: float = 1.0,
ignore_mask: VideoNode | None = None,
**kwargs: Any
) -> ConstantFormatVideoNode
Source code
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> ConstantFormatVideoNode
Source code
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: str | type[BaseScaler] | BaseScaler | None = None,
/,
func_except: FuncExceptT | None = None,
) -> BaseScaler
Source code
647 648 649 650 651 652 653 654 |
|
from_param classmethod
¶
from_param(
kernel: KernelT | None = ..., /, func_except: FuncExceptT | None = None
) -> type[Kernel]
from_param(
kernel: ScalerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: str | type[BaseScaler] | BaseScaler | None = None,
/,
func_except: FuncExceptT | None = None,
) -> type[BaseScaler]
Source code
611 612 613 614 615 616 617 |
|
get_clean_kwargs ¶
Source code
216 217 |
|
get_descale_args ¶
get_descale_args(
clip: VideoNode,
shift: tuple[TopShift, LeftShift] = (0, 0),
width: int | None = None,
height: int | None = None,
*funcs: Callable[..., Any],
**kwargs: Any
) -> KwargsT
Source code
673 674 675 676 677 678 679 680 681 682 683 |
|
get_implemented_funcs ¶
Source code
701 702 |
|
get_params_args ¶
get_params_args(
is_descale: bool,
clip: VideoNode,
width: int | None = None,
height: int | None = None,
**kwargs: Any
) -> dict[str, Any]
Source code
85 86 87 88 89 90 91 92 93 94 |
|
get_resample_args ¶
get_resample_args(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None,
matrix_in: MatrixT | None,
*funcs: Callable[..., Any],
**kwargs: Any
) -> KwargsT
Source code
685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 |
|
get_scale_args ¶
get_scale_args(
clip: VideoNode,
shift: tuple[TopShift, LeftShift] = (0, 0),
width: int | None = None,
height: int | None = None,
*funcs: Callable[..., Any],
**kwargs: Any
) -> KwargsT
Source code
661 662 663 664 665 666 667 668 669 670 671 |
|
kernel ¶
Source code
24 25 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
210 211 212 213 214 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2.0,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
272 273 274 275 276 277 278 279 280 281 |
|
pretty_string ¶
pretty_string() -> str
Source code
225 226 227 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> ConstantFormatVideoNode
Source code
438 439 440 441 442 443 444 445 446 |
|
resample_function ¶
resample_function(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
*args: Any,
**kwargs: Any
) -> ConstantFormatVideoNode
Source code
59 60 61 62 |
|
scale ¶
scale(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
border_handling: BorderHandling = MIRROR,
sample_grid_model: SampleGridModel = MATCH_EDGES,
sar: Sar | float | bool | None = None,
dar: Dar | float | bool | None = None,
dar_in: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
|
scale_function ¶
scale_function(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
*args: Any,
**kwargs: Any
) -> VideoNode
Source code
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
/,
**kwargs: Any,
) -> ConstantFormatVideoNode
Source code
523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 |
|
supersample ¶
supersample(
clip: VideoNode,
rfactor: float = 2.0,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
|
CustomComplexTapsKernel ¶
Bases: CustomComplexKernel
Methods:
-
descale
– -
descale_function
– -
ensure_obj
– -
from_param
– -
get_clean_kwargs
– -
get_descale_args
– -
get_implemented_funcs
– -
get_params_args
– -
get_resample_args
– -
get_scale_args
– -
kernel
– -
kernel_radius
– -
multi
– -
pretty_string
– -
resample
– -
resample_function
– -
scale
– -
scale_function
– -
shift
– -
supersample
–
Attributes:
Source code
283 284 285 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
shift: ShiftT = (0, 0),
*,
border_handling: BorderHandling = MIRROR,
sample_grid_model: SampleGridModel = MATCH_EDGES,
field_based: FieldBased | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
blur: float = 1.0,
ignore_mask: VideoNode | None = None,
**kwargs: Any
) -> ConstantFormatVideoNode
Source code
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> ConstantFormatVideoNode
Source code
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: str | type[BaseScaler] | BaseScaler | None = None,
/,
func_except: FuncExceptT | None = None,
) -> BaseScaler
Source code
647 648 649 650 651 652 653 654 |
|
from_param classmethod
¶
from_param(
kernel: KernelT | None = ..., /, func_except: FuncExceptT | None = None
) -> type[Kernel]
from_param(
kernel: ScalerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = ...,
/,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: str | type[BaseScaler] | BaseScaler | None = None,
/,
func_except: FuncExceptT | None = None,
) -> type[BaseScaler]
Source code
611 612 613 614 615 616 617 |
|
get_clean_kwargs ¶
Source code
216 217 |
|
get_descale_args ¶
get_descale_args(
clip: VideoNode,
shift: tuple[TopShift, LeftShift] = (0, 0),
width: int | None = None,
height: int | None = None,
*funcs: Callable[..., Any],
**kwargs: Any
) -> KwargsT
Source code
673 674 675 676 677 678 679 680 681 682 683 |
|
get_implemented_funcs ¶
Source code
701 702 |
|
get_params_args ¶
get_params_args(
is_descale: bool,
clip: VideoNode,
width: int | None = None,
height: int | None = None,
**kwargs: Any
) -> dict[str, Any]
Source code
85 86 87 88 89 90 91 92 93 94 |
|
get_resample_args ¶
get_resample_args(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None,
matrix_in: MatrixT | None,
*funcs: Callable[..., Any],
**kwargs: Any
) -> KwargsT
Source code
685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 |
|
get_scale_args ¶
get_scale_args(
clip: VideoNode,
shift: tuple[TopShift, LeftShift] = (0, 0),
width: int | None = None,
height: int | None = None,
*funcs: Callable[..., Any],
**kwargs: Any
) -> KwargsT
Source code
661 662 663 664 665 666 667 668 669 670 671 |
|
kernel ¶
Source code
24 25 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
287 288 289 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2.0,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
272 273 274 275 276 277 278 279 280 281 |
|
pretty_string ¶
pretty_string() -> str
Source code
225 226 227 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> ConstantFormatVideoNode
Source code
438 439 440 441 442 443 444 445 446 |
|
resample_function ¶
resample_function(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
*args: Any,
**kwargs: Any
) -> ConstantFormatVideoNode
Source code
59 60 61 62 |
|
scale ¶
scale(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
border_handling: BorderHandling = MIRROR,
sample_grid_model: SampleGridModel = MATCH_EDGES,
sar: Sar | float | bool | None = None,
dar: Dar | float | bool | None = None,
dar_in: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
|
scale_function ¶
scale_function(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
*args: Any,
**kwargs: Any
) -> VideoNode
Source code
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
/,
**kwargs: Any,
) -> ConstantFormatVideoNode
Source code
523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 |
|
supersample ¶
supersample(
clip: VideoNode,
rfactor: float = 2.0,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
|
KeepArScaler ¶
KeepArScaler(**kwargs: Any)
Bases: Scaler
Methods:
-
ensure_obj
– -
from_param
– -
get_clean_kwargs
– -
get_implemented_funcs
– -
get_scale_args
– -
kernel_radius
– -
multi
– -
pretty_string
– -
scale
– -
supersample
–
Attributes:
-
kwargs
(KwargsT
) –Arguments passed to the internal scale function
-
scale_function
(Callable[..., VideoNode]
) –Scale function called internally when scaling
Source code
182 183 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
scale_function instance-attribute
¶
scale_function: Callable[..., VideoNode]
Scale function called internally when scaling
ensure_obj classmethod
¶
ensure_obj(
scaler: str | type[BaseScalerT] | BaseScalerT | None = None,
/,
func_except: FuncExceptT | None = None,
) -> BaseScalerT
Source code
201 202 203 204 205 206 207 208 |
|
from_param classmethod
¶
from_param(
scaler: str | type[BaseScalerT] | BaseScalerT | None = None,
/,
func_except: FuncExceptT | None = None,
) -> type[BaseScalerT]
Source code
192 193 194 195 196 197 198 199 |
|
get_clean_kwargs ¶
Source code
216 217 |
|
get_implemented_funcs ¶
Source code
299 300 |
|
get_scale_args ¶
get_scale_args(
clip: VideoNode,
shift: tuple[TopShift, LeftShift] = (0, 0),
width: int | None = None,
height: int | None = None,
*funcs: Callable[..., Any],
**kwargs: Any
) -> KwargsT
Source code
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
210 211 212 213 214 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2.0,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
272 273 274 275 276 277 278 279 280 281 |
|
pretty_string ¶
pretty_string() -> str
Source code
225 226 227 |
|
scale ¶
scale(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
border_handling: BorderHandling = MIRROR,
sample_grid_model: SampleGridModel = MATCH_EDGES,
sar: Sar | float | bool | None = None,
dar: Dar | float | bool | None = None,
dar_in: Dar | bool | float | None = None,
keep_ar: bool | None = None,
**kwargs: Any
) -> VideoNode
Source code
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 |
|
supersample ¶
supersample(
clip: VideoNode,
rfactor: float = 2.0,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
|
LinearDescaler ¶
LinearDescaler(**kwargs: Any)
Bases: _BaseLinearOperation
, Descaler
Methods:
-
descale
– -
ensure_obj
– -
from_param
– -
get_clean_kwargs
– -
get_descale_args
– -
get_implemented_funcs
– -
kernel_radius
– -
pretty_string
–
Attributes:
-
descale_function
(Callable[..., ConstantFormatVideoNode]
) –Descale function called internally when descaling
-
kwargs
(KwargsT
) –Arguments passed to the internal scale function
Source code
182 183 |
|
descale_function instance-attribute
¶
descale_function: Callable[..., ConstantFormatVideoNode]
Descale function called internally when descaling
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
shift: ShiftT = (0, 0),
*,
border_handling: BorderHandling = MIRROR,
sample_grid_model: SampleGridModel = MATCH_EDGES,
field_based: FieldBased | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> ConstantFormatVideoNode
Source code
99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
|
ensure_obj classmethod
¶
ensure_obj(
scaler: str | type[BaseScalerT] | BaseScalerT | None = None,
/,
func_except: FuncExceptT | None = None,
) -> BaseScalerT
Source code
201 202 203 204 205 206 207 208 |
|
from_param classmethod
¶
from_param(
scaler: str | type[BaseScalerT] | BaseScalerT | None = None,
/,
func_except: FuncExceptT | None = None,
) -> type[BaseScalerT]
Source code
192 193 194 195 196 197 198 199 |
|
get_clean_kwargs ¶
Source code
216 217 |
|
get_descale_args ¶
get_descale_args(
clip: VideoNode,
shift: tuple[TopShift, LeftShift] = (0, 0),
width: int | None = None,
height: int | None = None,
*funcs: Callable[..., Any],
**kwargs: Any
) -> KwargsT
Source code
408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 |
|
get_implemented_funcs ¶
Source code
424 425 |
|
LinearScaler ¶
LinearScaler(**kwargs: Any)
Bases: _BaseLinearOperation
, Scaler
Methods:
-
ensure_obj
– -
from_param
– -
get_clean_kwargs
– -
get_implemented_funcs
– -
get_scale_args
– -
kernel_radius
– -
multi
– -
pretty_string
– -
scale
– -
supersample
–
Attributes:
-
kwargs
(KwargsT
) –Arguments passed to the internal scale function
-
scale_function
(Callable[..., VideoNode]
) –Scale function called internally when scaling
Source code
182 183 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
scale_function instance-attribute
¶
scale_function: Callable[..., VideoNode]
Scale function called internally when scaling
ensure_obj classmethod
¶
ensure_obj(
scaler: str | type[BaseScalerT] | BaseScalerT | None = None,
/,
func_except: FuncExceptT | None = None,
) -> BaseScalerT
Source code
201 202 203 204 205 206 207 208 |
|
from_param classmethod
¶
from_param(
scaler: str | type[BaseScalerT] | BaseScalerT | None = None,
/,
func_except: FuncExceptT | None = None,
) -> type[BaseScalerT]
Source code
192 193 194 195 196 197 198 199 |
|
get_clean_kwargs ¶
Source code
216 217 |
|
get_implemented_funcs ¶
Source code
299 300 |
|
get_scale_args ¶
get_scale_args(
clip: VideoNode,
shift: tuple[TopShift, LeftShift] = (0, 0),
width: int | None = None,
height: int | None = None,
*funcs: Callable[..., Any],
**kwargs: Any
) -> KwargsT
Source code
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
210 211 212 213 214 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2.0,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
272 273 274 275 276 277 278 279 280 281 |
|
pretty_string ¶
pretty_string() -> str
Source code
225 226 227 |
|
scale ¶
scale(
clip: VideoNode,
width: int | None = None,
height: int | None = None,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
83 84 85 86 87 88 89 90 91 92 |
|
supersample ¶
supersample(
clip: VideoNode,
rfactor: float = 2.0,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
257 258 259 260 261 262 263 264 265 266 267 268 269 270 |
|