vs_proxy ¶
Classes:
Functions:
-
clear_cache
– -
register_on_creation
–Register a callback on every core creation.
-
unregister_on_creation
–Unregister this callback from every core creation.
Attributes:
-
GRAY10
– -
GRAY11
– -
GRAY12
– -
GRAY13
– -
GRAY14
– -
GRAY15
– -
GRAY16
– -
GRAY17
– -
GRAY18
– -
GRAY19
– -
GRAY20
– -
GRAY21
– -
GRAY22
– -
GRAY23
– -
GRAY24
– -
GRAY25
– -
GRAY26
– -
GRAY27
– -
GRAY28
– -
GRAY29
– -
GRAY30
– -
GRAY31
– -
GRAY32
– -
GRAY8
– -
GRAY9
– -
GRAYH
– -
GRAYS
– -
RGB24
– -
RGB27
– -
RGB30
– -
RGB33
– -
RGB36
– -
RGB39
– -
RGB42
– -
RGB45
– -
RGB48
– -
RGB51
– -
RGB54
– -
RGB57
– -
RGB60
– -
RGB63
– -
RGB66
– -
RGB69
– -
RGB72
– -
RGB75
– -
RGB78
– -
RGB81
– -
RGB84
– -
RGB87
– -
RGB90
– -
RGB93
– -
RGB96
– -
RGBH
– -
RGBS
– -
YUV410P10
– -
YUV410P11
– -
YUV410P12
– -
YUV410P13
– -
YUV410P14
– -
YUV410P15
– -
YUV410P16
– -
YUV410P17
– -
YUV410P18
– -
YUV410P19
– -
YUV410P20
– -
YUV410P21
– -
YUV410P22
– -
YUV410P23
– -
YUV410P24
– -
YUV410P25
– -
YUV410P26
– -
YUV410P27
– -
YUV410P28
– -
YUV410P29
– -
YUV410P30
– -
YUV410P31
– -
YUV410P32
– -
YUV410P8
– -
YUV410P9
– -
YUV410PH
– -
YUV410PS
– -
YUV411P10
– -
YUV411P11
– -
YUV411P12
– -
YUV411P13
– -
YUV411P14
– -
YUV411P15
– -
YUV411P16
– -
YUV411P17
– -
YUV411P18
– -
YUV411P19
– -
YUV411P20
– -
YUV411P21
– -
YUV411P22
– -
YUV411P23
– -
YUV411P24
– -
YUV411P25
– -
YUV411P26
– -
YUV411P27
– -
YUV411P28
– -
YUV411P29
– -
YUV411P30
– -
YUV411P31
– -
YUV411P32
– -
YUV411P8
– -
YUV411P9
– -
YUV411PH
– -
YUV411PS
– -
YUV420P10
– -
YUV420P11
– -
YUV420P12
– -
YUV420P13
– -
YUV420P14
– -
YUV420P15
– -
YUV420P16
– -
YUV420P17
– -
YUV420P18
– -
YUV420P19
– -
YUV420P20
– -
YUV420P21
– -
YUV420P22
– -
YUV420P23
– -
YUV420P24
– -
YUV420P25
– -
YUV420P26
– -
YUV420P27
– -
YUV420P28
– -
YUV420P29
– -
YUV420P30
– -
YUV420P31
– -
YUV420P32
– -
YUV420P8
– -
YUV420P9
– -
YUV420PH
– -
YUV420PS
– -
YUV422P10
– -
YUV422P11
– -
YUV422P12
– -
YUV422P13
– -
YUV422P14
– -
YUV422P15
– -
YUV422P16
– -
YUV422P17
– -
YUV422P18
– -
YUV422P19
– -
YUV422P20
– -
YUV422P21
– -
YUV422P22
– -
YUV422P23
– -
YUV422P24
– -
YUV422P25
– -
YUV422P26
– -
YUV422P27
– -
YUV422P28
– -
YUV422P29
– -
YUV422P30
– -
YUV422P31
– -
YUV422P32
– -
YUV422P8
– -
YUV422P9
– -
YUV422PH
– -
YUV422PS
– -
YUV440P10
– -
YUV440P11
– -
YUV440P12
– -
YUV440P13
– -
YUV440P14
– -
YUV440P15
– -
YUV440P16
– -
YUV440P17
– -
YUV440P18
– -
YUV440P19
– -
YUV440P20
– -
YUV440P21
– -
YUV440P22
– -
YUV440P23
– -
YUV440P24
– -
YUV440P25
– -
YUV440P26
– -
YUV440P27
– -
YUV440P28
– -
YUV440P29
– -
YUV440P30
– -
YUV440P31
– -
YUV440P32
– -
YUV440P8
– -
YUV440P9
– -
YUV440PH
– -
YUV440PS
– -
YUV444P10
– -
YUV444P11
– -
YUV444P12
– -
YUV444P13
– -
YUV444P14
– -
YUV444P15
– -
YUV444P16
– -
YUV444P17
– -
YUV444P18
– -
YUV444P19
– -
YUV444P20
– -
YUV444P21
– -
YUV444P22
– -
YUV444P23
– -
YUV444P24
– -
YUV444P25
– -
YUV444P26
– -
YUV444P27
– -
YUV444P28
– -
YUV444P29
– -
YUV444P30
– -
YUV444P31
– -
YUV444P32
– -
YUV444P8
– -
YUV444P9
– -
YUV444PH
– -
YUV444PS
– -
core
–
core_on_creation_callbacks module-attribute
¶
core_on_creation_callbacks = dict[int, ReferenceType[Callable[..., None]]]()
CoreProxy ¶
CoreProxy(core: Core | None, vs_proxy: VSCoreProxy, lazy: bool)
Bases: CoreProxyBase
Attributes:
-
lazy
–
Source code in vstools/utils/vs_proxy.py
871 872 873 |
|
CoreProxyBase ¶
CoreProxyBase()
Bases: Core
Source code in vstools/utils/vs_proxy.py
826 |
|
EnvironmentProxy ¶
EnvironmentProxy()
Bases: EnvironmentProxyBase
Attributes:
Source code in vstools/utils/vs_proxy.py
829 |
|
EnvironmentProxyBase ¶
EnvironmentProxyBase()
Bases: Environment
Source code in vstools/utils/vs_proxy.py
829 |
|
FunctionProxy ¶
FunctionProxy(plugin: PluginProxy, func_name: str)
Bases: FunctionProxyBase
Methods:
-
__call__
–
Source code in vstools/utils/vs_proxy.py
835 836 |
|
FunctionProxyBase ¶
Bases: Function
PluginProxy ¶
Bases: PluginProxyBase
Source code in vstools/utils/vs_proxy.py
851 852 |
|
PluginProxyBase ¶
Bases: Plugin
PresetVideoFormat ¶
Bases: PresetVideoFormatBase
Attributes:
-
GRAY10
– -
GRAY11
– -
GRAY12
– -
GRAY13
– -
GRAY14
– -
GRAY15
– -
GRAY16
– -
GRAY17
– -
GRAY18
– -
GRAY19
– -
GRAY20
– -
GRAY21
– -
GRAY22
– -
GRAY23
– -
GRAY24
– -
GRAY25
– -
GRAY26
– -
GRAY27
– -
GRAY28
– -
GRAY29
– -
GRAY30
– -
GRAY31
– -
GRAY32
– -
GRAY8
– -
GRAY9
– -
GRAYH
– -
GRAYS
– -
NONE
– -
RGB24
– -
RGB27
– -
RGB30
– -
RGB33
– -
RGB36
– -
RGB39
– -
RGB42
– -
RGB45
– -
RGB48
– -
RGB51
– -
RGB54
– -
RGB57
– -
RGB60
– -
RGB63
– -
RGB66
– -
RGB69
– -
RGB72
– -
RGB75
– -
RGB78
– -
RGB81
– -
RGB84
– -
RGB87
– -
RGB90
– -
RGB93
– -
RGB96
– -
RGBH
– -
RGBS
– -
YUV410P10
– -
YUV410P11
– -
YUV410P12
– -
YUV410P13
– -
YUV410P14
– -
YUV410P15
– -
YUV410P16
– -
YUV410P17
– -
YUV410P18
– -
YUV410P19
– -
YUV410P20
– -
YUV410P21
– -
YUV410P22
– -
YUV410P23
– -
YUV410P24
– -
YUV410P25
– -
YUV410P26
– -
YUV410P27
– -
YUV410P28
– -
YUV410P29
– -
YUV410P30
– -
YUV410P31
– -
YUV410P32
– -
YUV410P8
– -
YUV410P9
– -
YUV410PH
– -
YUV410PS
– -
YUV411P10
– -
YUV411P11
– -
YUV411P12
– -
YUV411P13
– -
YUV411P14
– -
YUV411P15
– -
YUV411P16
– -
YUV411P17
– -
YUV411P18
– -
YUV411P19
– -
YUV411P20
– -
YUV411P21
– -
YUV411P22
– -
YUV411P23
– -
YUV411P24
– -
YUV411P25
– -
YUV411P26
– -
YUV411P27
– -
YUV411P28
– -
YUV411P29
– -
YUV411P30
– -
YUV411P31
– -
YUV411P32
– -
YUV411P8
– -
YUV411P9
– -
YUV411PH
– -
YUV411PS
– -
YUV420P10
– -
YUV420P11
– -
YUV420P12
– -
YUV420P13
– -
YUV420P14
– -
YUV420P15
– -
YUV420P16
– -
YUV420P17
– -
YUV420P18
– -
YUV420P19
– -
YUV420P20
– -
YUV420P21
– -
YUV420P22
– -
YUV420P23
– -
YUV420P24
– -
YUV420P25
– -
YUV420P26
– -
YUV420P27
– -
YUV420P28
– -
YUV420P29
– -
YUV420P30
– -
YUV420P31
– -
YUV420P32
– -
YUV420P8
– -
YUV420P9
– -
YUV420PH
– -
YUV420PS
– -
YUV422P10
– -
YUV422P11
– -
YUV422P12
– -
YUV422P13
– -
YUV422P14
– -
YUV422P15
– -
YUV422P16
– -
YUV422P17
– -
YUV422P18
– -
YUV422P19
– -
YUV422P20
– -
YUV422P21
– -
YUV422P22
– -
YUV422P23
– -
YUV422P24
– -
YUV422P25
– -
YUV422P26
– -
YUV422P27
– -
YUV422P28
– -
YUV422P29
– -
YUV422P30
– -
YUV422P31
– -
YUV422P32
– -
YUV422P8
– -
YUV422P9
– -
YUV422PH
– -
YUV422PS
– -
YUV440P10
– -
YUV440P11
– -
YUV440P12
– -
YUV440P13
– -
YUV440P14
– -
YUV440P15
– -
YUV440P16
– -
YUV440P17
– -
YUV440P18
– -
YUV440P19
– -
YUV440P20
– -
YUV440P21
– -
YUV440P22
– -
YUV440P23
– -
YUV440P24
– -
YUV440P25
– -
YUV440P26
– -
YUV440P27
– -
YUV440P28
– -
YUV440P29
– -
YUV440P30
– -
YUV440P31
– -
YUV440P32
– -
YUV440P8
– -
YUV440P9
– -
YUV440PH
– -
YUV440PS
– -
YUV444P10
– -
YUV444P11
– -
YUV444P12
– -
YUV444P13
– -
YUV444P14
– -
YUV444P15
– -
YUV444P16
– -
YUV444P17
– -
YUV444P18
– -
YUV444P19
– -
YUV444P20
– -
YUV444P21
– -
YUV444P22
– -
YUV444P23
– -
YUV444P24
– -
YUV444P25
– -
YUV444P26
– -
YUV444P27
– -
YUV444P28
– -
YUV444P29
– -
YUV444P30
– -
YUV444P31
– -
YUV444P32
– -
YUV444P8
– -
YUV444P9
– -
YUV444PH
– -
YUV444PS
–
VSCoreProxy ¶
VSCoreProxy(core: Core | None = None)
Bases: CoreProxyBase
Class for wrapping a VapourSynth core.
Methods:
-
register_on_destroy
–Register a callback on this core destroy.
-
set_affinity
–Configure CPU core affinity and cache settings for VapourSynth.
-
unregister_on_destroy
–Unregister a callback from this core destroy.
Attributes:
-
active
(bool
) – -
core
(Core
) –The underlying VapourSynth Core instance.
-
core_id
(int
) – -
env
(EnvironmentProxy
) – -
lazy
(CoreProxy
) –Lazy Core where plugins and functions are lazily retrieved and checked,
-
proxied
(CoreProxy
) –Proxied Core where plugins and functions are lazily retrieved,
Source code in vstools/utils/vs_proxy.py
1030 1031 1032 |
|
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 in vstools/utils/vs_proxy.py
1097 1098 1099 1100 1101 1102 1103 |
|
set_affinity ¶
set_affinity(
threads: int | float | range | tuple[int, int] | list[int] | None = None,
max_cache: int | None = None,
reserve: Iterable[int] = [],
) -> None
Configure CPU core affinity and cache settings for VapourSynth.
This function selects which CPU cores the current process is allowed to run on, and configures the number of worker threads used by VapourSynth. It also allows tuning of the frame buffer cache.
Parameters:
-
threads
¶int | float | range | tuple[int, int] | list[int] | None
, default:None
) –Defines how many and which CPU cores to use.
Accepted formats:
None
: Use all available CPU cores.int
: Use cores0
throughthreads - 1
.float
: A fraction of available cores (e.g.,0.5
= half the cores).range
: Use the specified range of cores.tuple[int, int]
: Equivalent torange(start, stop)
.list[int]
: Explicit list of core indices.
-
max_cache
¶int | None
, default:None
) –Maximum VapourSynth frame buffer cache size, in megabytes. If
None
, the default setting is preserved.
Raises:
-
CustomValueError
–If
threads
is lower than or equal to 0.
Source code in vstools/utils/vs_proxy.py
1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 |
|
unregister_on_destroy ¶
unregister_on_destroy(callback: Callable[..., None]) -> None
Unregister a callback from this core destroy.
Source code in vstools/utils/vs_proxy.py
1105 1106 1107 1108 1109 1110 1111 |
|
proxy_utils ¶
Methods:
-
get_core
– -
get_plugin
– -
get_vs_core
– -
get_vs_function
–
get_core staticmethod
¶
get_core(plugin: PluginProxy) -> tuple[CoreProxy, str]
Source code in vstools/utils/vs_proxy.py
915 916 917 |
|
get_plugin staticmethod
¶
get_plugin(func: FunctionProxy) -> tuple[PluginProxy, str]
Source code in vstools/utils/vs_proxy.py
911 912 913 |
|
get_vs_core staticmethod
¶
get_vs_core(core: CoreProxy) -> Core
Source code in vstools/utils/vs_proxy.py
888 889 890 891 892 893 894 895 896 897 898 899 900 901 |
|
get_vs_function staticmethod
¶
get_vs_function(func: FunctionProxy) -> Function
Source code in vstools/utils/vs_proxy.py
903 904 905 906 907 908 909 |
|
clear_cache ¶
clear_cache() -> None
Source code in vstools/utils/vs_proxy.py
803 804 805 806 807 808 809 810 811 812 813 814 815 816 |
|
register_on_creation ¶
Register a callback on every core creation.
Source code in vstools/utils/vs_proxy.py
781 782 783 784 785 786 787 788 789 790 791 792 |
|
unregister_on_creation ¶
unregister_on_creation(callback: Callable[..., None]) -> None
Unregister this callback from every core creation.
Source code in vstools/utils/vs_proxy.py
795 796 797 798 799 800 |
|