#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include "lists.h"
#include "bitops.h"
#include "lzw.h"
Go to the source code of this file.
Classes | |
struct | lzw_dict_s |
struct | lzw_state_s |
Defines | |
#define | BITBUF_TYPE unsigned int |
Typedefs | |
typedef struct lzw_dict_s | lzw_dict_t |
typedef struct lzw_state_s | lzw_state_t |
Functions | |
static void | lzw_clear_table (lzw_state_t *st) |
int | lzw_compress (lzw_stream_t *s, int mode) |
static void | lzw_emit (int code, lzw_state_t *st) |
static int | lzw_encode_char (lzw_state_t *st, char c) |
static void | lzw_encode_eod (lzw_state_t *st) |
void | lzw_free (lzw_stream_t *s) |
static void | lzw_free_dict (lzw_dict_t *s) |
lzw_stream_t * | lzw_init (void) |
static void | lzw_read_bitbuf (lzw_stream_t *s) |
#define BITBUF_TYPE unsigned int |
typedef struct lzw_dict_s lzw_dict_t |
typedef struct lzw_state_s lzw_state_t |
static void lzw_clear_table | ( | lzw_state_t * | st | ) | [static] |
int lzw_compress | ( | lzw_stream_t * | s, |
int | mode | ||
) |
static void lzw_emit | ( | int | code, |
lzw_state_t * | st | ||
) | [inline, static] |
static int lzw_encode_char | ( | lzw_state_t * | st, |
char | c | ||
) | [static] |
static void lzw_encode_eod | ( | lzw_state_t * | st | ) | [static] |
void lzw_free | ( | lzw_stream_t * | s | ) |
static void lzw_free_dict | ( | lzw_dict_t * | s | ) | [static] |
lzw_stream_t* lzw_init | ( | void | ) |
static void lzw_read_bitbuf | ( | lzw_stream_t * | s | ) | [inline, static] |