diff options
author | Bastien Bouclet | 2011-02-06 13:43:40 +0000 |
---|---|---|
committer | Bastien Bouclet | 2011-02-06 13:43:40 +0000 |
commit | e7a57de38ba56f2708403f28ea78ed56c9061ac6 (patch) | |
tree | 0cfd821caf81eecfc5aa4891c2066187896ee07d /graphics/jpeg.h | |
parent | 91491006298bea91e415edb937e83c309e963048 (diff) | |
download | scummvm-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.h | 4 |
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 |