[x265] [PATCH 5 of 6] move tmpCoeff outside fast RD path

Min Chen chenm003 at 163.com
Thu Jun 4 21:13:47 CEST 2015


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1433445197 25200
# Node ID c9b76e7b55f921a8eeb57659e61f818512c5c660
# Parent  f2a13eb7ae4529ef47f03dca7e5abf2e10dcdaa4
move tmpCoeff outside fast RD path
---
 source/encoder/entropy.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff -r f2a13eb7ae45 -r c9b76e7b55f9 source/encoder/entropy.cpp
--- a/source/encoder/entropy.cpp	Thu Jun 04 12:13:14 2015 -0700
+++ b/source/encoder/entropy.cpp	Thu Jun 04 12:13:17 2015 -0700
@@ -1599,12 +1599,13 @@
             };
 
             const int offset = codingParameters.firstSignificanceMapContext;
-            ALIGN_VAR_32(uint16_t, tmpCoeff[SCAN_SET_SIZE]);
             const uint32_t blkPosBase  = codingParameters.scan[subPosBase];
 
             X265_CHECK(scanPosSigOff >= 0, "scanPosSigOff check failure\n");
             if (m_bitIf)
             {
+                ALIGN_VAR_32(uint16_t, tmpCoeff[SCAN_SET_SIZE]);
+
                 // TODO: accelerate by PABSW
                 for (int i = 0; i < MLS_CG_SIZE; i++)
                 {



More information about the x265-devel mailing list