6
6
7
7
The `convertAnimated` function takes the following parameters:
8
8
- swd (Path): The sticker working directory (downloads/packName).
9
- - _threads (int, optional): The number of threads to pass to ThreadPoolExecutor .
9
+ - _threads (int, optional): The number of threads to pass to ProcessPoolExecutor .
10
10
Defaults to 4.
11
11
- frameSkip (int, optional): Skip n number of frames in the interest of
12
12
optimization with a quality trade-off. Defaults to 1.
@@ -57,7 +57,7 @@ def convertAnimated(
57
57
Args:
58
58
----
59
59
swd (Path): the sticker working directory (downloads/packName)
60
- threads (int, optional): number of threads to pass to ThreadPoolExecutor . Defaults
60
+ threads (int, optional): number of threads to pass to ProcessPoolExecutor . Defaults
61
61
to number of cores/ logical processors.
62
62
frameSkip (int, optional): skip n number of frames in the interest of
63
63
optimisation with a quality trade-off. Defaults to 1.
@@ -73,7 +73,7 @@ def convertAnimated(
73
73
74
74
fps = [None , 30 , 20 , 15 , 12 ][min (4 , max (0 , frameSkip ))]
75
75
76
- with concurrent .futures .ThreadPoolExecutor (max_workers = threads ) as executor :
76
+ with concurrent .futures .ProcessPoolExecutor (max_workers = threads ) as executor :
77
77
# Using list comprehension to submit tasks to the executor
78
78
future_to_variable = {
79
79
executor .submit (convert_single_tgs , stckr , fps , scale ): stckr
0 commit comments