Warning, /graphics/krita/3rdparty/ext_heif/A03-threads-pool-adjustments.patch is written in an unsupported language. File is not indexed.

0001 diff --git a/source/common/threadpool.cpp b/source/common/threadpool.cpp
0002 index 4ed534d..f67f752 100644
0003 --- a/source/common/threadpool.cpp
0004 +++ b/source/common/threadpool.cpp
0005 @@ -661,9 +661,17 @@ void ThreadPool::getFrameThreadsCount(x265_param* p, int cpuCount)
0006      else if (cpuCount >= 32)
0007          p->frameNumThreads = (p->sourceHeight > 2000) ? 6 : 5; 
0008      else if (cpuCount >= 16)
0009 -        p->frameNumThreads = 4; 
0010 +#if MACOS && X265_ARCH_ARM64
0011 +        p->frameNumThreads = 16;
0012 +#else
0013 +        p->frameNumThreads = 4;
0014 +#endif
0015      else if (cpuCount >= 8)
0016 +#if MACOS && X265_ARCH_ARM64
0017 +        p->frameNumThreads = 8;
0018 +#else
0019          p->frameNumThreads = 3;
0020 +#endif
0021      else if (cpuCount >= 4)
0022          p->frameNumThreads = 2;
0023      else