THIS FILE IS USED IN PROGRAMS OTHER THAN CALCROGUE, AND SHOULD NOT INCLUDE CROGUE.H
Definition in file rle.c.
#include "crogue.h"
#include "substdio.h"
#include "config.h"
#include "rle.h"
#include "huffman.h"
Go to the source code of this file.
Defines | |
| #define | CHECKSUM_INIT 0xF1897134L |
| #define | CHECKSUM_MUL 0xA8159803L |
| #define | CHECKSUM_ADD 0x81340967L |
Functions | |
| unsigned long | _checksum_file (FILE *f) |
| unsigned char | _rleread_file (void) |
| unsigned char | _rleread_ptr (void) |
| unsigned char | _rleread_huffman (void) |
| unsigned long | checksum_bytes (void *data, unsigned int length) |
| int | frleverify (FILE *f) |
| void | frlewrite (void *data, size_t s, size_t granularity, FILE *f) |
| void | frleread (void *data, size_t s, size_t granularity, FILE *f) |
| void | frleinit (void) |
| void | frleinit_read (FILE *f) |
| void | frleinit_write (FILE *f, void(*outfunc)(unsigned char c, FILE *f)) |
| void | frleinit_write_nochecksum (void(*outfunc)(unsigned char c, FILE *f)) |
| void | frlefinalize (FILE *f) |
| void | frleflush (FILE *fout) |
| void | frleputc (unsigned char c, FILE *fout) |
| unsigned char | rlegetc (void) |
| void | rle_set_source (rle_source_type t, const void *s) |
Variables | |
| unsigned short | _runlen = 0 |
| unsigned char | _runchar = ' ' |
| const void * | _rlepos |
| unsigned char(* | _rleread )(void) |
| void(* | _putc_compress )(unsigned char c, FILE *f)=(void(*)(unsigned char c, FILE *f))&fputc |
| const unsigned char | magic_byte = 0x5F |
|
|
Definition at line 41 of file rle.c. Referenced by checksum_bytes(). |
|
|
Definition at line 39 of file rle.c. Referenced by checksum_bytes(). |
|
|
Definition at line 40 of file rle.c. Referenced by checksum_bytes(). |
|
|
Definition at line 78 of file rle.c. References checksum_bytes(). Referenced by frlefinalize(), and frleverify(). |
|
|
Definition at line 337 of file rle.c. References _rlepos. Referenced by rle_set_source(). |
|
|
Definition at line 331 of file rle.c. References _rlepos, and fhuffmangetc(). Referenced by rle_set_source(). |
|
|
Definition at line 343 of file rle.c. References _rlepos. Referenced by rle_set_source(). |
|
||||||||||||
|
Definition at line 62 of file rle.c. References CHECKSUM_ADD, CHECKSUM_INIT, and CHECKSUM_MUL. Referenced by _checksum_file(), checksum_scores(), frleread(), and frlewrite(). |
|
|
Definition at line 215 of file rle.c. References _checksum_file(), and frleflush(). Referenced by save_game(), and save_level(). |
|
|
Definition at line 227 of file rle.c. References _putc_compress, _runchar, _runlen, and magic_byte. Referenced by frlefinalize(), frleputc(), frlewrite(), save_game(), and save_level(). |
|
|
Definition at line 183 of file rle.c. References _runchar, and _runlen. Referenced by frleinit_read(), frleinit_write(), and frleinit_write_nochecksum(). |
|
|
Definition at line 190 of file rle.c. References frleinit(). Referenced by load_level(), and restore_game(). |
|
||||||||||||
|
Definition at line 197 of file rle.c. References _putc_compress, and frleinit(). Referenced by save_game(), and save_level(). |
|
|
Definition at line 208 of file rle.c. References _putc_compress, and frleinit(). |
|
||||||||||||
|
Definition at line 265 of file rle.c. References _runchar, _runlen, and frleflush(). Referenced by frlewrite(). |
|
||||||||||||||||||||
|
Definition at line 135 of file rle.c. References _rleread, checksum_bytes(), message(), rle_huffman, rle_set_source(), and rlegetc(). Referenced by load_level(), and restore_game(). |
|
|
Definition at line 90 of file rle.c. References _checksum_file(). Referenced by load_level(), and restore_game(). |
|
||||||||||||||||||||
|
Definition at line 101 of file rle.c. References _putc_compress, checksum_bytes(), frleflush(), and frleputc(). Referenced by save_game(), and save_level(). |
|
||||||||||||
|
Definition at line 312 of file rle.c. References _rlepos, _rleread, _rleread_file(), _rleread_huffman(), _rleread_ptr(), rle_file, rle_huffman, and rle_pointer. Referenced by base_coat(), and frleread(). |
|
|
Definition at line 288 of file rle.c. References _rleread, _runchar, _runlen, and magic_byte. Referenced by base_coat(), and frleread(). |
|
|
Definition at line 56 of file rle.c. Referenced by frleflush(), frleinit_write(), frleinit_write_nochecksum(), and frlewrite(). |
|
|
Definition at line 51 of file rle.c. Referenced by _rleread_file(), _rleread_huffman(), _rleread_ptr(), and rle_set_source(). |
|
|
Definition at line 52 of file rle.c. Referenced by frleread(), rle_set_source(), and rlegetc(). |
|
|
Definition at line 43 of file rle.c. Referenced by frleflush(), frleinit(), frleputc(), and rlegetc(). |
|
|
Definition at line 42 of file rle.c. Referenced by frleflush(), frleinit(), frleputc(), and rlegetc(). |
|
|
Definition at line 59 of file rle.c. Referenced by frleflush(), and rlegetc(). |
1.3.6