[xiph-commits] r17167 - trunk/cronus/src/com/meviatronic/zeus/pollux

mike at svn.xiph.org mike at svn.xiph.org
Sat Apr 24 05:38:19 PDT 2010


Author: mike
Date: 2010-04-24 05:38:19 -0700 (Sat, 24 Apr 2010)
New Revision: 17167

Modified:
   trunk/cronus/src/com/meviatronic/zeus/pollux/TheoraDecoder.java
Log:
Killed performance bug, which decreases the performance.

Modified: trunk/cronus/src/com/meviatronic/zeus/pollux/TheoraDecoder.java
===================================================================
--- trunk/cronus/src/com/meviatronic/zeus/pollux/TheoraDecoder.java	2010-04-23 18:16:54 UTC (rev 17166)
+++ trunk/cronus/src/com/meviatronic/zeus/pollux/TheoraDecoder.java	2010-04-24 12:38:19 UTC (rev 17167)
@@ -1029,7 +1029,7 @@
 				}
 			}
 		
-      		// 7.7 DCT Coefficients
+			// 7.7 DCT Coefficients
 			// 7.7.3 DCT Coefficient Decode
 		
 			int token; // No The current token being decoded.
@@ -1054,7 +1054,7 @@
 					htic = getBuffer & 0xF;
 				}
 				
-				while (traversable(qcbIndex)) {
+				while (qcbIndex.next != qcbIndex) {
 			
 					qcbIndex = qcbIndex.next;
 				
@@ -2406,10 +2406,6 @@
 		return pointer;
 	}
 	
-	private boolean traversable(Node node) {
-		return node.next != node ? true : false;
-	}
-	
 	private class Node {
 		Node next = this;
 		Node previous;



More information about the commits mailing list