[x265] [PATCH] pools: FE threads start from pool 1, since lookahead is assigned to pool 0

deepthi at multicorewareinc.com deepthi at multicorewareinc.com
Tue Aug 4 03:08:10 CEST 2015


# HG changeset patch
# User Deepthi Nandakumar <deepthi at multicorewareinc.com>
# Date 1438650477 -19800
#      Tue Aug 04 06:37:57 2015 +0530
# Node ID 38f5c6c98ebf2ae934bb512df39120dbfec14401
# Parent  d5278c76d341b3bac405938dbfb64cb7e2d9bce5
pools: FE threads start from pool 1, since lookahead is assigned to pool 0

diff -r d5278c76d341 -r 38f5c6c98ebf source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp	Mon Aug 03 10:18:46 2015 -0500
+++ b/source/encoder/encoder.cpp	Tue Aug 04 06:37:57 2015 +0530
@@ -172,7 +172,7 @@
     {
         for (int i = 0; i < m_param->frameNumThreads; i++)
         {
-            int pool = i % m_numPools;
+            int pool = (i + 1) % m_numPools;
             m_frameEncoder[i]->m_pool = &m_threadPool[pool];
             m_frameEncoder[i]->m_jpId = m_threadPool[pool].m_numProviders++;
             m_threadPool[pool].m_jpTable[m_frameEncoder[i]->m_jpId] = m_frameEncoder[i];


More information about the x265-devel mailing list