aboutsummaryrefslogtreecommitdiff
path: root/video/avi_decoder.h
diff options
context:
space:
mode:
authorMatthew Hoops2013-06-23 19:36:27 -0400
committerMatthew Hoops2015-04-11 14:36:26 -0400
commitcfc64157a093bd369432169d069effc9e622ba21 (patch)
treee4e9143d2a753300ac8ff49c2cc2d41526e8df25 /video/avi_decoder.h
parentf6d7c5e176a08c32702cdfb80ec8a626c25ead67 (diff)
downloadscummvm-rg350-cfc64157a093bd369432169d069effc9e622ba21.tar.gz
scummvm-rg350-cfc64157a093bd369432169d069effc9e622ba21.tar.bz2
scummvm-rg350-cfc64157a093bd369432169d069effc9e622ba21.zip
VIDEO: Allow AVI tracks to be dithered via the Codec
Video for Windows made the Codec do the dithering work
Diffstat (limited to 'video/avi_decoder.h')
-rw-r--r--video/avi_decoder.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/video/avi_decoder.h b/video/avi_decoder.h
index 8941ff4e75..6c1ce1a4b9 100644
--- a/video/avi_decoder.h
+++ b/video/avi_decoder.h
@@ -179,11 +179,14 @@ protected:
int getCurFrame() const { return _curFrame; }
int getFrameCount() const { return _frameCount; }
const Graphics::Surface *decodeNextFrame() { return _lastFrame; }
- const byte *getPalette() const { _dirtyPalette = false; return _palette; }
- bool hasDirtyPalette() const { return _dirtyPalette; }
+
+ const byte *getPalette() const;
+ bool hasDirtyPalette() const;
void setCurFrame(int frame) { _curFrame = frame; }
void loadPaletteFromChunk(Common::SeekableReadStream *chunk);
void useInitialPalette();
+ bool canDither() const;
+ void setDither(const byte *palette);
bool isTruemotion1() const;
void forceDimensions(uint16 width, uint16 height);