aboutsummaryrefslogtreecommitdiff
path: root/engines/cryo/video.h
diff options
context:
space:
mode:
authorStrangerke2016-11-27 14:45:28 -0800
committerEugene Sandulenko2017-01-25 22:42:08 +0100
commit61998c7a996a52e6988c48275e3a784aa9a2901a (patch)
treeb8a4b8792af26f4a343aa0df81c37932dda6a746 /engines/cryo/video.h
parentb735962436c2f33a877f623d92b61a4a46680fb3 (diff)
downloadscummvm-rg350-61998c7a996a52e6988c48275e3a784aa9a2901a.tar.gz
scummvm-rg350-61998c7a996a52e6988c48275e3a784aa9a2901a.tar.bz2
scummvm-rg350-61998c7a996a52e6988c48275e3a784aa9a2901a.zip
CRYO: Move some more functions to HnmPlayer
Diffstat (limited to 'engines/cryo/video.h')
-rw-r--r--engines/cryo/video.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/engines/cryo/video.h b/engines/cryo/video.h
index b574fe0ec8..fdb0d2403c 100644
--- a/engines/cryo/video.h
+++ b/engines/cryo/video.h
@@ -36,6 +36,14 @@ private:
void decompADPCM(byte *buffer, int16 *output, int size);
void loadDecompTable(int16 *buffer);
void soundInADPCM(bool is_adpcm); // Unused
+ bool loadFrame(hnm_t *hnm);
+ void tryRead(hnm_t *hnm, int size); // TODO: remove this function
+ void changePalette(hnm_t *hnm);
+ void selectBuffers(hnm_t *hnm);
+ void decompLempelZiv(byte *buffer, byte *output);
+ void desentrelace320(byte *frame_buffer, byte *final_buffer, uint16 height);
+ void desentrelace(hnm_t *hnm);
+ void decompUBA(byte *output, byte *curr_buffer, byte *prev_buffer, byte *input, int width, char flags);
bool sound_started;
int16 pending_sounds;
@@ -50,6 +58,7 @@ private:
bool use_adpcm;
bool preserve_color0;
int16 decomp_table[256];
+ bool safe_palette;
void (*custom_chunk_handler)(byte *buffer, int size, int16 id, char h6, char h7);
@@ -73,6 +82,13 @@ public:
bool nextElement(hnm_t *hnm);
void init();
void setForceZero2Black(bool forceblack);
+ void readHeader(hnm_t *hnm);
+ int16 getVersion(hnm_t *hnm);
+ void allocMemory(hnm_t *hnm);
+ void deallocMemory(hnm_t *hnm);
+ void setFinalBuffer(hnm_t *hnm, byte *buffer);
+ int getFrameNum(hnm_t *hnm);
+
soundchannel_t *getSoundChannel();
};