Classes | Defines | Typedefs | Functions
lzw.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include "lists.h"
#include "bitops.h"
#include "lzw.h"
Include dependency graph for lzw.c:

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_tlzw_init (void)
static void lzw_read_bitbuf (lzw_stream_t *s)

Define Documentation

#define BITBUF_TYPE   unsigned int

Definition at line 76 of file lzw.c.


Typedef Documentation

typedef struct lzw_dict_s lzw_dict_t

Definition at line 93 of file lzw.c.

typedef struct lzw_state_s lzw_state_t

Definition at line 113 of file lzw.c.


Function Documentation

static void lzw_clear_table ( lzw_state_t st) [static]

Definition at line 130 of file lzw.c.

int lzw_compress ( lzw_stream_t s,
int  mode 
)

Definition at line 297 of file lzw.c.

static void lzw_emit ( int  code,
lzw_state_t st 
) [inline, static]

Definition at line 144 of file lzw.c.

static int lzw_encode_char ( lzw_state_t st,
char  c 
) [static]

Definition at line 178 of file lzw.c.

static void lzw_encode_eod ( lzw_state_t st) [static]

Definition at line 247 of file lzw.c.

void lzw_free ( lzw_stream_t s)

Definition at line 345 of file lzw.c.

static void lzw_free_dict ( lzw_dict_t s) [static]

Definition at line 119 of file lzw.c.

lzw_stream_t* lzw_init ( void  )

Definition at line 271 of file lzw.c.

static void lzw_read_bitbuf ( lzw_stream_t s) [inline, static]

Definition at line 158 of file lzw.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


portrait_painter
Author(s): Niklas Meinzer, Ina Baumgarten
autogenerated on Wed Dec 26 2012 16:00:43