Author: post
Date: 2010-03-21 16:16:34 +0100 (Sun, 21 Mar 2010)
New Revision: 209

Modified:
   RawSpeed/LJpegDecompressor.cpp
Log:
Minor optimization in JPEG decoder.

Modified: RawSpeed/LJpegDecompressor.cpp
===================================================================
--- RawSpeed/LJpegDecompressor.cpp      2010-03-21 15:16:04 UTC (rev 208)
+++ RawSpeed/LJpegDecompressor.cpp      2010-03-21 15:16:34 UTC (rev 209)
@@ -533,8 +533,8 @@
    */
 
   bits->fill();
+  code = bits->peekBitsNoFill(14);
   if (htbl->bigTable) {
-    code = bits->peekBitsNoFill(14);
     val = htbl->bigTable[code];
     if ((val&0xff) !=  0xff) {
       bits->skipBitsNoFill(val&0xff);
@@ -547,7 +547,7 @@
   * 3-4% of the time.
   */
   rv = 0;
-  code = bits->peekByteNoFill();
+  code = code>>6;
   val = htbl->numbits[code];
   l = val & 15;
   if (l) {


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to