Home
last modified time | relevance | path

Searched refs:frame_threads (Results 1 – 1 of 1) sorted by relevance

/external/libgav1/src/
Dthreading_strategy.cc180 const int frame_threads = in InitializeThreadPoolsForFrameParallel() local
182 if (frame_threads == 0) return true; in InitializeThreadPoolsForFrameParallel()
183 *frame_thread_pool = ThreadPool::Create(frame_threads); in InitializeThreadPoolsForFrameParallel()
186 frame_threads); in InitializeThreadPoolsForFrameParallel()
189 int remaining_threads = thread_count - frame_threads; in InitializeThreadPoolsForFrameParallel()
191 int threads_per_frame = remaining_threads / frame_threads; in InitializeThreadPoolsForFrameParallel()
192 const int extra_threads = remaining_threads % frame_threads; in InitializeThreadPoolsForFrameParallel()
194 if (!frame_scratch_buffers.reserve(frame_threads)) return false; in InitializeThreadPoolsForFrameParallel()
196 for (int i = 0; i < frame_threads && remaining_threads > 0; ++i) { in InitializeThreadPoolsForFrameParallel()