diff options
author | Robin Watts | 2007-07-12 18:21:46 +0000 |
---|---|---|
committer | Robin Watts | 2007-07-12 18:21:46 +0000 |
commit | 10eeb453d60f220077d2224c89c811818a396f4a (patch) | |
tree | df2e1ee900c278e8794767fa4d03d09cb3601b55 /graphics/dxa_player.h | |
parent | 17a4539a65c5813862b85691cca094ba616e027c (diff) | |
download | scummvm-rg350-10eeb453d60f220077d2224c89c811818a396f4a.tar.gz scummvm-rg350-10eeb453d60f220077d2224c89c811818a396f4a.tar.bz2 scummvm-rg350-10eeb453d60f220077d2224c89c811818a396f4a.zip |
Some optimisations to the DXA player to reduce the amount of needless mallocing
and memcpying it does.
This commit also contains some code protected by #ifdef DXA_EXPERIMENT_MAXD
that allows for reading an extended header on a .dxa file and using a MAXD
chunk, if found, to reduce the amount of memory required to play a movie.
Whether this gets enabled or not will ultimately depend on whether the savings
are justified (i.e. if we can find a case where it makes enough difference).
svn-id: r28047
Diffstat (limited to 'graphics/dxa_player.h')
-rw-r--r-- | graphics/dxa_player.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/graphics/dxa_player.h b/graphics/dxa_player.h index b8155153c9..5415e440d2 100644 --- a/graphics/dxa_player.h +++ b/graphics/dxa_player.h @@ -47,6 +47,10 @@ protected: byte *_frameBuffer2; byte *_scaledBuffer; byte *_drawBuffer; + byte *_inBuffer; + uint32 _inBufferSize; + byte *_decompBuffer; + uint32 _decompBufferSize; uint16 _width; uint16 _height, _curHeight; uint16 _framesCount; @@ -121,10 +125,10 @@ protected: void decodeNextFrame(); void decodeZlib(byte *data, int size, int totalSize); - void decode12(byte *data, int size, int totalSize); - void decode13(byte *data, int size, int totalSize); + void decode12(int size); + void decode13(int size); }; - + } // End of namespace Graphics #endif |