[xiph-commits] r17168 - trunk/rhea/src/com/meviatronic/zeus/pollux
mike at svn.xiph.org
mike at svn.xiph.org
Sat Apr 24 05:38:53 PDT 2010
Author: mike
Date: 2010-04-24 05:38:53 -0700 (Sat, 24 Apr 2010)
New Revision: 17168
Modified:
trunk/rhea/src/com/meviatronic/zeus/pollux/TheoraDecoder.java
Log:
Killed performance bug, which decreases the performance.
Modified: trunk/rhea/src/com/meviatronic/zeus/pollux/TheoraDecoder.java
===================================================================
--- trunk/rhea/src/com/meviatronic/zeus/pollux/TheoraDecoder.java 2010-04-24 12:38:19 UTC (rev 17167)
+++ trunk/rhea/src/com/meviatronic/zeus/pollux/TheoraDecoder.java 2010-04-24 12:38:53 UTC (rev 17168)
@@ -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