[x265] [PATCH 1 of 2] WaveFront: add new function to enable all rows

deepthidevaki at multicorewareinc.com deepthidevaki at multicorewareinc.com
Fri Oct 18 14:51:17 CEST 2013


# HG changeset patch
# User Deepthi Devaki <deepthidevaki at multicorewareinc.com>
# Date 1382095892 -19800
# Node ID 721aa50b54be835593f602fe56e990187ffcee65
# Parent  f3523973eafba8b2157d87bdc06932bf8bac47bf
WaveFront: add new function to enable all rows

diff -r f3523973eafb -r 721aa50b54be source/common/wavefront.cpp
--- a/source/common/wavefront.cpp	Fri Oct 18 14:18:05 2013 +0530
+++ b/source/common/wavefront.cpp	Fri Oct 18 17:01:32 2013 +0530
@@ -82,6 +82,11 @@
     ATOMIC_OR(&m_enableBitmap[row >> 6], bit);
 }
 
+void WaveFront::enableAllRows()
+{
+    memset((void*)m_enableBitmap, ~0, sizeof(uint64_t) * m_numWords);
+}
+
 bool WaveFront::checkHigherPriorityRow(int curRow)
 {
     int fullwords = curRow >> 6;
diff -r f3523973eafb -r 721aa50b54be source/common/wavefront.h
--- a/source/common/wavefront.h	Fri Oct 18 14:18:05 2013 +0530
+++ b/source/common/wavefront.h	Fri Oct 18 17:01:32 2013 +0530
@@ -67,6 +67,8 @@
 
     void enableRow(int row);
 
+    void enableAllRows();
+
     void clearEnabledRowMask();
 
     // Returns true if a row above curRow is available for processing.  The processRow()


More information about the x265-devel mailing list