various ¶
Bilinear ¶
Bilinear(**kwargs: Any)
Bases: CustomComplexKernel
Bilinear resizer.
Source code
133 134 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int,
height: int,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
blur: float = 1.0,
border_handling: BorderHandling,
sample_grid_model: SampleGridModel = MATCH_EDGES,
ignore_mask: VideoNode | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
243 244 245 246 247 248 249 250 251 252 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> VideoNode
Source code
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler | Descaler | Resampler | Kernel
Source code
548 549 550 551 552 553 554 555 556 |
|
from_param classmethod
¶
from_param(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler] | type[Descaler] | type[Resampler] | type[Kernel]
Source code
510 511 512 513 514 515 516 517 518 |
|
get_clean_kwargs ¶
Source code
199 200 |
|
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
575 576 577 578 579 580 581 582 583 584 585 |
|
get_implemented_funcs ¶
Source code
603 604 |
|
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
84 85 86 87 88 89 90 91 92 93 |
|
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
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
|
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
563 564 565 566 567 568 569 570 571 572 573 |
|
kernel ¶
Source code
67 68 69 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
195 196 197 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
pretty_string ¶
pretty_string() -> str
Source code
202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> VideoNode
Source code
376 377 378 379 380 381 382 383 384 |
|
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 | bool | float | None = None,
dar: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
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 58 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
**kwargs: Any
) -> VideoNode
Source code
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
|
BlackMan ¶
Bases: CustomComplexTapsKernel
Blackman resizer.
Source code
121 122 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int,
height: int,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
blur: float = 1.0,
border_handling: BorderHandling,
sample_grid_model: SampleGridModel = MATCH_EDGES,
ignore_mask: VideoNode | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
243 244 245 246 247 248 249 250 251 252 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> VideoNode
Source code
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler | Descaler | Resampler | Kernel
Source code
548 549 550 551 552 553 554 555 556 |
|
from_param classmethod
¶
from_param(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler] | type[Descaler] | type[Resampler] | type[Kernel]
Source code
510 511 512 513 514 515 516 517 518 |
|
get_clean_kwargs ¶
Source code
199 200 |
|
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
575 576 577 578 579 580 581 582 583 584 585 |
|
get_implemented_funcs ¶
Source code
603 604 |
|
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
84 85 86 87 88 89 90 91 92 93 |
|
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
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
|
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
563 564 565 566 567 568 569 570 571 572 573 |
|
kernel ¶
Source code
129 130 131 132 133 134 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
260 261 262 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
pretty_string ¶
pretty_string() -> str
Source code
202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> VideoNode
Source code
376 377 378 379 380 381 382 383 384 |
|
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 | bool | float | None = None,
dar: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
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 58 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
**kwargs: Any
) -> VideoNode
Source code
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
|
BlackManMinLobe ¶
Bases: BlackMan
Blackmanminlobe resizer.
Source code
121 122 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int,
height: int,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
blur: float = 1.0,
border_handling: BorderHandling,
sample_grid_model: SampleGridModel = MATCH_EDGES,
ignore_mask: VideoNode | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
243 244 245 246 247 248 249 250 251 252 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> VideoNode
Source code
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler | Descaler | Resampler | Kernel
Source code
548 549 550 551 552 553 554 555 556 |
|
from_param classmethod
¶
from_param(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler] | type[Descaler] | type[Resampler] | type[Kernel]
Source code
510 511 512 513 514 515 516 517 518 |
|
get_clean_kwargs ¶
Source code
199 200 |
|
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
575 576 577 578 579 580 581 582 583 584 585 |
|
get_implemented_funcs ¶
Source code
603 604 |
|
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
84 85 86 87 88 89 90 91 92 93 |
|
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
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
|
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
563 564 565 566 567 568 569 570 571 572 573 |
|
kernel ¶
Source code
129 130 131 132 133 134 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
260 261 262 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
pretty_string ¶
pretty_string() -> str
Source code
202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> VideoNode
Source code
376 377 378 379 380 381 382 383 384 |
|
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 | bool | float | None = None,
dar: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
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 58 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
**kwargs: Any
) -> VideoNode
Source code
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
|
Bohman ¶
Bases: CustomComplexTapsKernel
Bohman kernel.
Source code
256 257 258 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int,
height: int,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
blur: float = 1.0,
border_handling: BorderHandling,
sample_grid_model: SampleGridModel = MATCH_EDGES,
ignore_mask: VideoNode | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
243 244 245 246 247 248 249 250 251 252 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> VideoNode
Source code
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler | Descaler | Resampler | Kernel
Source code
548 549 550 551 552 553 554 555 556 |
|
from_param classmethod
¶
from_param(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler] | type[Descaler] | type[Resampler] | type[Kernel]
Source code
510 511 512 513 514 515 516 517 518 |
|
get_clean_kwargs ¶
Source code
199 200 |
|
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
575 576 577 578 579 580 581 582 583 584 585 |
|
get_implemented_funcs ¶
Source code
603 604 |
|
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
84 85 86 87 88 89 90 91 92 93 |
|
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
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
|
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
563 564 565 566 567 568 569 570 571 572 573 |
|
kernel ¶
Source code
209 210 211 212 213 214 215 216 217 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
260 261 262 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
pretty_string ¶
pretty_string() -> str
Source code
202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> VideoNode
Source code
376 377 378 379 380 381 382 383 384 |
|
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 | bool | float | None = None,
dar: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
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 58 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
**kwargs: Any
) -> VideoNode
Source code
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
|
Box ¶
Box(**kwargs: Any)
Bases: CustomComplexKernel
Box resizer.
Source code
133 134 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int,
height: int,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
blur: float = 1.0,
border_handling: BorderHandling,
sample_grid_model: SampleGridModel = MATCH_EDGES,
ignore_mask: VideoNode | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
243 244 245 246 247 248 249 250 251 252 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> VideoNode
Source code
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler | Descaler | Resampler | Kernel
Source code
548 549 550 551 552 553 554 555 556 |
|
from_param classmethod
¶
from_param(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler] | type[Descaler] | type[Resampler] | type[Kernel]
Source code
510 511 512 513 514 515 516 517 518 |
|
get_clean_kwargs ¶
Source code
199 200 |
|
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
575 576 577 578 579 580 581 582 583 584 585 |
|
get_implemented_funcs ¶
Source code
603 604 |
|
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
84 85 86 87 88 89 90 91 92 93 |
|
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
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
|
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
563 564 565 566 567 568 569 570 571 572 573 |
|
kernel ¶
Source code
113 114 115 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
195 196 197 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
pretty_string ¶
pretty_string() -> str
Source code
202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> VideoNode
Source code
376 377 378 379 380 381 382 383 384 |
|
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 | bool | float | None = None,
dar: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
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 58 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
**kwargs: Any
) -> VideoNode
Source code
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
|
Cosine ¶
Bases: CustomComplexTapsKernel
Cosine kernel.
Source code
256 257 258 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int,
height: int,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
blur: float = 1.0,
border_handling: BorderHandling,
sample_grid_model: SampleGridModel = MATCH_EDGES,
ignore_mask: VideoNode | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
243 244 245 246 247 248 249 250 251 252 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> VideoNode
Source code
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler | Descaler | Resampler | Kernel
Source code
548 549 550 551 552 553 554 555 556 |
|
from_param classmethod
¶
from_param(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler] | type[Descaler] | type[Resampler] | type[Kernel]
Source code
510 511 512 513 514 515 516 517 518 |
|
get_clean_kwargs ¶
Source code
199 200 |
|
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
575 576 577 578 579 580 581 582 583 584 585 |
|
get_implemented_funcs ¶
Source code
603 604 |
|
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
84 85 86 87 88 89 90 91 92 93 |
|
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
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
|
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
563 564 565 566 567 568 569 570 571 572 573 |
|
kernel ¶
Source code
196 197 198 199 200 201 202 203 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
260 261 262 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
pretty_string ¶
pretty_string() -> str
Source code
202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> VideoNode
Source code
376 377 378 379 380 381 382 383 384 |
|
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 | bool | float | None = None,
dar: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
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 58 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
**kwargs: Any
) -> VideoNode
Source code
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
|
Gaussian ¶
Bases: CustomComplexTapsKernel
Gaussian resizer.
Sigma is the same as imagemagick's sigma scaling.
Source code
92 93 94 95 96 97 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int,
height: int,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
blur: float = 1.0,
border_handling: BorderHandling,
sample_grid_model: SampleGridModel = MATCH_EDGES,
ignore_mask: VideoNode | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
243 244 245 246 247 248 249 250 251 252 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> VideoNode
Source code
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler | Descaler | Resampler | Kernel
Source code
548 549 550 551 552 553 554 555 556 |
|
from_param classmethod
¶
from_param(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler] | type[Descaler] | type[Resampler] | type[Kernel]
Source code
510 511 512 513 514 515 516 517 518 |
|
get_clean_kwargs ¶
Source code
199 200 |
|
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
575 576 577 578 579 580 581 582 583 584 585 |
|
get_implemented_funcs ¶
Source code
603 604 |
|
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
84 85 86 87 88 89 90 91 92 93 |
|
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
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
|
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
563 564 565 566 567 568 569 570 571 572 573 |
|
kernel ¶
Source code
103 104 105 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
260 261 262 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
pretty_string ¶
pretty_string() -> str
Source code
202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> VideoNode
Source code
376 377 378 379 380 381 382 383 384 |
|
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 | bool | float | None = None,
dar: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
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 58 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
**kwargs: Any
) -> VideoNode
Source code
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
|
sigma ¶
sigma() -> gauss_sigma
Source code
99 100 101 |
|
Hamming ¶
Bases: CustomComplexTapsKernel
Hamming kernel.
Source code
256 257 258 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int,
height: int,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
blur: float = 1.0,
border_handling: BorderHandling,
sample_grid_model: SampleGridModel = MATCH_EDGES,
ignore_mask: VideoNode | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
243 244 245 246 247 248 249 250 251 252 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> VideoNode
Source code
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler | Descaler | Resampler | Kernel
Source code
548 549 550 551 552 553 554 555 556 |
|
from_param classmethod
¶
from_param(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler] | type[Descaler] | type[Resampler] | type[Kernel]
Source code
510 511 512 513 514 515 516 517 518 |
|
get_clean_kwargs ¶
Source code
199 200 |
|
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
575 576 577 578 579 580 581 582 583 584 585 |
|
get_implemented_funcs ¶
Source code
603 604 |
|
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
84 85 86 87 88 89 90 91 92 93 |
|
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
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
|
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
563 564 565 566 567 568 569 570 571 572 573 |
|
kernel ¶
Source code
174 175 176 177 178 179 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
260 261 262 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
pretty_string ¶
pretty_string() -> str
Source code
202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> VideoNode
Source code
376 377 378 379 380 381 382 383 384 |
|
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 | bool | float | None = None,
dar: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
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 58 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
**kwargs: Any
) -> VideoNode
Source code
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
|
Hann ¶
Bases: CustomComplexTapsKernel
Hann kernel.
Source code
256 257 258 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int,
height: int,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
blur: float = 1.0,
border_handling: BorderHandling,
sample_grid_model: SampleGridModel = MATCH_EDGES,
ignore_mask: VideoNode | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
243 244 245 246 247 248 249 250 251 252 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> VideoNode
Source code
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler | Descaler | Resampler | Kernel
Source code
548 549 550 551 552 553 554 555 556 |
|
from_param classmethod
¶
from_param(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler] | type[Descaler] | type[Resampler] | type[Kernel]
Source code
510 511 512 513 514 515 516 517 518 |
|
get_clean_kwargs ¶
Source code
199 200 |
|
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
575 576 577 578 579 580 581 582 583 584 585 |
|
get_implemented_funcs ¶
Source code
603 604 |
|
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
84 85 86 87 88 89 90 91 92 93 |
|
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
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
|
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
563 564 565 566 567 568 569 570 571 572 573 |
|
kernel ¶
Source code
163 164 165 166 167 168 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
260 261 262 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
pretty_string ¶
pretty_string() -> str
Source code
202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> VideoNode
Source code
376 377 378 379 380 381 382 383 384 |
|
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 | bool | float | None = None,
dar: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
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 58 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
**kwargs: Any
) -> VideoNode
Source code
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
|
Lanczos ¶
Bases: CustomComplexTapsKernel
Lanczos resizer.
Parameters:
Source code
79 80 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int,
height: int,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
blur: float = 1.0,
border_handling: BorderHandling,
sample_grid_model: SampleGridModel = MATCH_EDGES,
ignore_mask: VideoNode | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
243 244 245 246 247 248 249 250 251 252 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> VideoNode
Source code
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler | Descaler | Resampler | Kernel
Source code
548 549 550 551 552 553 554 555 556 |
|
from_param classmethod
¶
from_param(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler] | type[Descaler] | type[Resampler] | type[Kernel]
Source code
510 511 512 513 514 515 516 517 518 |
|
get_clean_kwargs ¶
Source code
199 200 |
|
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
575 576 577 578 579 580 581 582 583 584 585 |
|
get_implemented_funcs ¶
Source code
603 604 |
|
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
84 85 86 87 88 89 90 91 92 93 |
|
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
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
|
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
563 564 565 566 567 568 569 570 571 572 573 |
|
kernel ¶
Source code
82 83 84 85 86 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
260 261 262 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
pretty_string ¶
pretty_string() -> str
Source code
202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> VideoNode
Source code
376 377 378 379 380 381 382 383 384 |
|
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 | bool | float | None = None,
dar: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
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 58 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
**kwargs: Any
) -> VideoNode
Source code
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
|
Point ¶
Point(**kwargs: Any)
Bases: CustomComplexKernel
Point resizer.
Source code
133 134 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> VideoNode
Source code
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler | Descaler | Resampler | Kernel
Source code
548 549 550 551 552 553 554 555 556 |
|
from_param classmethod
¶
from_param(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler] | type[Descaler] | type[Resampler] | type[Kernel]
Source code
510 511 512 513 514 515 516 517 518 |
|
get_clean_kwargs ¶
Source code
199 200 |
|
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
575 576 577 578 579 580 581 582 583 584 585 |
|
get_implemented_funcs ¶
Source code
603 604 |
|
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
84 85 86 87 88 89 90 91 92 93 |
|
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
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
|
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
563 564 565 566 567 568 569 570 571 572 573 |
|
kernel ¶
Source code
55 56 57 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
195 196 197 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
pretty_string ¶
pretty_string() -> str
Source code
202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> VideoNode
Source code
376 377 378 379 380 381 382 383 384 |
|
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 | bool | float | None = None,
dar: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
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 58 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
**kwargs: Any
) -> VideoNode
Source code
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
|
Sinc ¶
Bases: CustomComplexTapsKernel
Sinc resizer.
Source code
149 150 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int,
height: int,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
blur: float = 1.0,
border_handling: BorderHandling,
sample_grid_model: SampleGridModel = MATCH_EDGES,
ignore_mask: VideoNode | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
243 244 245 246 247 248 249 250 251 252 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> VideoNode
Source code
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler | Descaler | Resampler | Kernel
Source code
548 549 550 551 552 553 554 555 556 |
|
from_param classmethod
¶
from_param(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler] | type[Descaler] | type[Resampler] | type[Kernel]
Source code
510 511 512 513 514 515 516 517 518 |
|
get_clean_kwargs ¶
Source code
199 200 |
|
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
575 576 577 578 579 580 581 582 583 584 585 |
|
get_implemented_funcs ¶
Source code
603 604 |
|
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
84 85 86 87 88 89 90 91 92 93 |
|
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
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
|
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
563 564 565 566 567 568 569 570 571 572 573 |
|
kernel ¶
Source code
152 153 154 155 156 157 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
260 261 262 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
pretty_string ¶
pretty_string() -> str
Source code
202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> VideoNode
Source code
376 377 378 379 380 381 382 383 384 |
|
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 | bool | float | None = None,
dar: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
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 58 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
**kwargs: Any
) -> VideoNode
Source code
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
|
Welch ¶
Bases: CustomComplexTapsKernel
Welch kernel.
Source code
256 257 258 |
|
kwargs instance-attribute
¶
kwargs: KwargsT = kwargs
Arguments passed to the internal scale function
descale ¶
descale(
clip: VideoNode,
width: int,
height: int,
shift: tuple[TopShift, LeftShift] = (0, 0),
*,
blur: float = 1.0,
border_handling: BorderHandling,
sample_grid_model: SampleGridModel = MATCH_EDGES,
ignore_mask: VideoNode | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
243 244 245 246 247 248 249 250 251 252 |
|
descale_function ¶
descale_function(
clip: VideoNode, width: int, height: int, *args: Any, **kwargs: Any
) -> VideoNode
Source code
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
|
ensure_obj classmethod
¶
ensure_obj(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler
ensure_obj(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Descaler
ensure_obj(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Resampler
ensure_obj(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> Scaler | Descaler | Resampler | Kernel
Source code
548 549 550 551 552 553 554 555 556 |
|
from_param classmethod
¶
from_param(
kernel: ScalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler]
from_param(
kernel: DescalerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Descaler]
from_param(
kernel: ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Resampler]
from_param(
kernel: ScalerT | DescalerT | ResamplerT | KernelT | None = None,
func_except: FuncExceptT | None = None,
) -> type[Scaler] | type[Descaler] | type[Resampler] | type[Kernel]
Source code
510 511 512 513 514 515 516 517 518 |
|
get_clean_kwargs ¶
Source code
199 200 |
|
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
575 576 577 578 579 580 581 582 583 584 585 |
|
get_implemented_funcs ¶
Source code
603 604 |
|
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
84 85 86 87 88 89 90 91 92 93 |
|
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
587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
|
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
563 564 565 566 567 568 569 570 571 572 573 |
|
kernel ¶
Source code
185 186 187 188 189 190 |
|
kernel_radius ¶
kernel_radius() -> int
Source code
260 261 262 |
|
multi ¶
multi(
clip: VideoNode,
multi: float = 2,
shift: tuple[TopShift, LeftShift] = (0, 0),
**kwargs: Any
) -> VideoNode
Source code
239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
pretty_string ¶
pretty_string() -> str
Source code
202 203 204 205 206 207 208 209 210 211 212 213 214 |
|
resample ¶
resample(
clip: VideoNode,
format: int | VideoFormatT | HoldsVideoFormatT,
matrix: MatrixT | None = None,
matrix_in: MatrixT | None = None,
**kwargs: Any
) -> VideoNode
Source code
376 377 378 379 380 381 382 383 384 |
|
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 | bool | float | None = None,
dar: Dar | bool | float | None = None,
keep_ar: bool | None = None,
linear: bool = False,
sigmoid: bool | tuple[Slope, Center] = False,
**kwargs: Any
) -> VideoNode
Source code
217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
|
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 58 |
|
shift ¶
shift(
clip: VideoNode,
shifts_or_top: float | tuple[float, float] | list[float] | None = None,
shift_left: float | list[float] | None = None,
**kwargs: Any
) -> VideoNode
Source code
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 |
|
gauss_sigma ¶
Bases: float
from_fmtc ¶
Source code
29 30 31 32 |
|
from_libplacebo ¶
Source code
39 40 41 42 |
|
to_fmtc ¶
Source code
34 35 36 37 |
|