aboutsummaryrefslogtreecommitdiff
path: root/graphics/jpeg.h
diff options
context:
space:
mode:
authorBastien Bouclet2011-02-06 13:43:40 +0000
committerBastien Bouclet2011-02-06 13:43:40 +0000
commite7a57de38ba56f2708403f28ea78ed56c9061ac6 (patch)
tree0cfd821caf81eecfc5aa4891c2066187896ee07d /graphics/jpeg.h
parent91491006298bea91e415edb937e83c309e963048 (diff)
downloadscummvm-rg350-e7a57de38ba56f2708403f28ea78ed56c9061ac6.tar.gz
scummvm-rg350-e7a57de38ba56f2708403f28ea78ed56c9061ac6.tar.bz2
scummvm-rg350-e7a57de38ba56f2708403f28ea78ed56c9061ac6.zip
GRAPHICS: Improved JPEG decoder performance
Replaced the 2D IDCT by two 1D IDCT (rows, then columns). JPEG images now decode about twice as fast as they used to. svn-id: r55794
Diffstat (limited to 'graphics/jpeg.h')
-rw-r--r--graphics/jpeg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/jpeg.h b/graphics/jpeg.h
index c8e0cd5f9d..3e26e9add2 100644
--- a/graphics/jpeg.h
+++ b/graphics/jpeg.h
@@ -118,8 +118,8 @@ private:
uint8 _bitsData;
uint8 _bitsNumber;
- // Discrete Cosine Transformation
- float idct(int x, int y, int weight, int fx, int fy);
+ // Inverse Discrete Cosine Transformation
+ void idct8x8(float dst[64], const int16 src[64]);
};
} // End of Graphics namespace