Closed oscarbg closed 5 months ago
I added threaded decode to vvc as it's slow:
if (codecpar->codec_id == AV_CODEC_ID_VVC)
{
context->strict_std_compliance = -2;
//#include <thread>
//const auto processor_count = std::thread::hardware_concurrency();
//context->thread_count = 16;
#ifdef _WIN32
SYSTEM_INFO sysinfo;
GetSystemInfo(&sysinfo);
int numCPU = sysinfo.dwNumberOfProcessors;
context->thread_count = numCPU;
#else
context->thread_count =sysconf(_SC_NPROCESSORS_ONLN);
#endif
printf("using %d threads for VVC decode\n",context->thread_count);
context->thread_type = FF_THREAD_FRAME |FF_THREAD_SLICE;
}
Here you go!
Thanks!
You're welcome!
Hi, both supported in FFMPEG 7.0..
first one replacing in testffmpeg_vulkan:
second one adding :
just before:
thanks..