vs_proxy ¶
core_on_creation_callbacks module-attribute
¶
core_on_creation_callbacks = dict[int, ReferenceType[Callable[..., None]]]()
core_on_destroy_callbacks module-attribute
¶
core_on_destroy_callbacks = dict[
int, dict[int, tuple[ReferenceType[Callable[..., None]], bool]]
]()
CoreProxy ¶
CoreProxy(core: Core | None, vs_proxy: VSCoreProxy, lazy: bool)
Bases: CoreProxyBase
Source code
236 237 238 |
|
EnvironmentProxy ¶
EnvironmentProxy()
EnvironmentProxyBase ¶
EnvironmentProxyBase()
Bases: Environment
Source code
193 194 |
|
FunctionProxy ¶
FunctionProxy(plugin: PluginProxy, func_name: str)
Bases: FunctionProxyBase
Source code
200 201 |
|
FunctionProxyBase ¶
Bases: Function
PluginProxy ¶
Bases: PluginProxyBase
Source code
216 217 |
|
PluginProxyBase ¶
Bases: Plugin
PresetFormat ¶
Deprecated, use PresetVideoFormat.
PresetVideoFormat ¶
Bases: PresetVideoFormatBase
VSCoreProxy ¶
VSCoreProxy(core: Core | None = None)
Bases: CoreProxyBase
Class for wrapping a VapourSynth core.
Source code
463 464 465 |
|
lazy property
¶
lazy: CoreProxy
Lazy Core where plugins and functions are lazily retrieved and checked, so it's safe to hold a reference and set default of anything from this, without having to worry of creating a core.
proxied property
¶
proxied: CoreProxy
Proxied Core where plugins and functions are lazily retrieved, so it's safe to hold a reference of anything from this.
register_on_destroy ¶
Register a callback on this core destroy.
Source code
528 529 530 531 532 533 534 535 536 537 538 |
|
set_affinity ¶
set_affinity(
threads: int | float | range | tuple[int, int] | list[int] | None = None,
max_cache: int | None = None,
reserve: int | Iterable[int] = 2,
) -> None
Set core affinity.
Parameters:
-
threads
¶int | float | range | tuple[int, int] | list[int] | None
, default:None
) –How many and which threads to use for VapourSynth.
-
max_cache
¶int | None
, default:None
) –Maximum cache used for frame data in VapourSynth.
-
reserve
¶int | Iterable[int]
, default:2
) –Reserve n amount of or the specified threads.
Raises:
-
DependencyNotFoundError
–Psutil was not found.
Source code
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 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 |
|
unregister_on_destroy ¶
unregister_on_destroy(callback: Callable[..., None]) -> None
Unregister a callback from this core destroy.
Source code
540 541 542 543 544 545 546 547 548 549 550 |
|
proxy_utils ¶
get_core staticmethod
¶
get_core(plugin: PluginProxy) -> tuple[CoreProxy, str]
Source code
280 281 282 |
|
get_plugin staticmethod
¶
get_plugin(func: FunctionProxy) -> tuple[PluginProxy, str]
Source code
276 277 278 |
|
get_vs_core staticmethod
¶
get_vs_core(core: CoreProxy) -> Core
Source code
253 254 255 256 257 258 259 260 261 262 263 264 265 266 |
|
get_vs_function staticmethod
¶
get_vs_function(func: FunctionProxy) -> Function
Source code
268 269 270 271 272 273 274 |
|
clear_cache ¶
clear_cache() -> None
Source code
165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
|
register_on_creation ¶
Register a callback on every core creation.
Source code
147 148 149 150 151 152 153 154 155 156 |
|
unregister_on_creation ¶
unregister_on_creation(callback: Callable[..., None]) -> None
Unregister this callback from every core creation.
Source code
159 160 161 162 |
|
vstools_isinstance ¶
vstools_isinstance(
__obj: object,
__class_or_tuple: (
type | UnionType | tuple[type | UnionType | tuple[Any, ...], ...]
),
) -> bool
Source code
285 286 287 288 289 290 291 292 293 294 295 296 297 |
|