[x265-commits] [x265] frameencoder: cleanups

Steve Borho steve at borho.org
Tue Apr 28 21:43:21 CEST 2015


details:   http://hg.videolan.org/x265/rev/c4d9ee2cef03
branches:  
changeset: 10320:c4d9ee2cef03
user:      Steve Borho <steve at borho.org>
date:      Tue Apr 28 14:34:45 2015 -0500
description:
frameencoder: cleanups

diffstat:

 source/encoder/frameencoder.cpp |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r e9df93f38066 -r c4d9ee2cef03 source/encoder/frameencoder.cpp
--- a/source/encoder/frameencoder.cpp	Tue Apr 28 20:24:06 2015 +0800
+++ b/source/encoder/frameencoder.cpp	Tue Apr 28 14:34:45 2015 -0500
@@ -823,12 +823,14 @@ void FrameEncoder::processRowEncoder(int
     const uint32_t numCols = m_numCols;
     const uint32_t lineStartCUAddr = row * numCols;
     bool bIsVbv = m_param->rc.vbvBufferSize > 0 && m_param->rc.vbvMaxBitrate > 0;
-    /* These states store the count of inter,intra and skip ctus within quad tree structure of each CU */
-    uint32_t qTreeInterCnt[4];
-    uint32_t qTreeIntraCnt[4];
-    uint32_t qTreeSkipCnt[4];
+
+    /* These store the count of inter, intra and skip cus within quad tree structure of each CTU */
+    uint32_t qTreeInterCnt[NUM_CU_DEPTH];
+    uint32_t qTreeIntraCnt[NUM_CU_DEPTH];
+    uint32_t qTreeSkipCnt[NUM_CU_DEPTH];
     for (uint32_t depth = 0; depth <= g_maxCUDepth; depth++)
         qTreeIntraCnt[depth] = qTreeInterCnt[depth] = qTreeSkipCnt[depth] = 0;
+
     while (curRow.completed < numCols)
     {
         ProfileScopeEvent(encodeCTU);


More information about the x265-commits mailing list