From 10eeb453d60f220077d2224c89c811818a396f4a Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 12 Jul 2007 18:21:46 +0000 Subject: 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 --- graphics/dxa_player.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'graphics/dxa_player.h') 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 -- cgit v1.2.3