Skip to content

Commit

Permalink
Set kvazaar config threads to 0 if ENABLE_MULTITHREADING_SUPPORT is f…
Browse files Browse the repository at this point in the history
…alse
  • Loading branch information
meowtec authored and zhubo committed Dec 22, 2023
1 parent 1282bb2 commit 57c23bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libheif/plugins/encoder_kvazaar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,17 @@ static struct heif_error kvazaar_encode_image(void* encoder_raw, const struct he

kvz_config* config = api->config_alloc();
api->config_init(config); // param, encoder->preset.c_str(), encoder->tune.c_str());

#if HAVE_KVAZAAR_ENABLE_LOGGING
config->enable_logging_output = 0;
#endif

#if !ENABLE_MULTITHREADING_SUPPORT
// 0: Process everything with main thread
// -1 (default): Select automatically.
config->threads = 0;
#endif

#if 1
#if 0
while (ctuSize > 16 &&
Expand Down

0 comments on commit 57c23bf

Please sign in to comment.