aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/coktelvideo/coktelvideo.h
diff options
context:
space:
mode:
authorSven Hesse2009-07-27 19:01:17 +0000
committerSven Hesse2009-07-27 19:01:17 +0000
commit14114bf3976097ca3d92cb21fa6ac3b8e4abb010 (patch)
tree9b16c976e1bacd2c8b332f74b4c58b2e970fa508 /graphics/video/coktelvideo/coktelvideo.h
parent17fe3ce29e21e2d88830a88941474221c2fc2b98 (diff)
downloadscummvm-rg350-14114bf3976097ca3d92cb21fa6ac3b8e4abb010.tar.gz
scummvm-rg350-14114bf3976097ca3d92cb21fa6ac3b8e4abb010.tar.bz2
scummvm-rg350-14114bf3976097ca3d92cb21fa6ac3b8e4abb010.zip
Abstracting off the block types from Imd::renderFrame() and Vmd::renderFrame()
svn-id: r42851
Diffstat (limited to 'graphics/video/coktelvideo/coktelvideo.h')
-rw-r--r--graphics/video/coktelvideo/coktelvideo.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/graphics/video/coktelvideo/coktelvideo.h b/graphics/video/coktelvideo/coktelvideo.h
index 912f6a1325..db80b4c43d 100644
--- a/graphics/video/coktelvideo/coktelvideo.h
+++ b/graphics/video/coktelvideo/coktelvideo.h
@@ -350,6 +350,17 @@ protected:
uint32 renderFrame(int16 left, int16 top, int16 right, int16 bottom);
void deLZ77(byte *dest, byte *src);
+ void renderBlockWhole (byte *dest, const byte *src, int16 width, int16 height,
+ int16 destWidth, int16 destHeight);
+ void renderBlockWhole4X (byte *dest, const byte *src, int16 width, int16 height,
+ int16 destWidth, int16 destHeight);
+ void renderBlockWhole2Y (byte *dest, const byte *src, int16 width, int16 height,
+ int16 destWidth, int16 destHeight);
+ void renderBlockSparse (byte *dest, const byte *src, int16 width, int16 height,
+ int16 destWidth, int16 destHeight);
+ void renderBlockSparse2Y(byte *dest, const byte *src, int16 width, int16 height,
+ int16 destWidth, int16 destHeight);
+
void calcFrameCoords(uint16 frame, State &state);
void nextSoundSlice(bool hasNextCmd);
@@ -479,7 +490,10 @@ protected:
State processFrame(uint16 frame);
uint32 renderFrame(int16 &left, int16 &top, int16 &right, int16 &bottom);
- void deRLE(byte *&srcPtr, byte *&destPtr, int16 len);
+ void renderBlockRLE(byte *dest, const byte *src, int16 width, int16 height,
+ int16 destWidth, int16 destHeight);
+
+ void deRLE(byte *&destPtr, const byte *&srcPtr, int16 len);
inline int32 preScaleX(int32 x) const;
inline int32 postScaleX(int32 x) const;