mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 00:37:19 +00:00
Add comment to thread_level in wp2
This commit is contained in:
@@ -43,6 +43,7 @@ val encode(std::string image_in, int image_width, int image_height, WP2Options o
|
|||||||
}
|
}
|
||||||
|
|
||||||
WP2::MemoryWriter memory_writer;
|
WP2::MemoryWriter memory_writer;
|
||||||
|
// In WebP2, thread_level is number of *extra* threads to use (0 for no multithreading).
|
||||||
config.thread_level = emscripten_num_logical_cores() - 1;
|
config.thread_level = emscripten_num_logical_cores() - 1;
|
||||||
status = WP2::Encode(src, &memory_writer, config);
|
status = WP2::Encode(src, &memory_writer, config);
|
||||||
if (status != WP2_STATUS_OK) {
|
if (status != WP2_STATUS_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user