FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mlz.h File Reference
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  MLZDict
 Dictionary structure for mlz decompression. More...
 
struct  MLZ
 MLZ data strucure. More...
 

Macros

#define CODE_UNSET   -1
 
#define CODE_BIT_INIT   9
 
#define DIC_INDEX_INIT   512
 
#define DIC_INDEX_MAX   32768
 
#define FLUSH_CODE   256
 
#define FREEZE_CODE   257
 
#define FIRST_CODE   258
 
#define MAX_CODE   32767
 
#define TABLE_SIZE   35023
 

Functions

void ff_mlz_init_dict (void *context, MLZ *mlz)
 Initialize the dictionary. More...
 
void ff_mlz_flush_dict (MLZ *dict)
 Flush the dictionary. More...
 
int ff_mlz_decompression (MLZ *mlz, GetBitContext *gb, int size, unsigned char *buff)
 Run mlz decompression on the next size bits and the output will be stored in buff. More...
 

Macro Definition Documentation

#define CODE_UNSET   -1

Definition at line 26 of file mlz.h.

Referenced by decode_string(), and ff_mlz_flush_dict().

#define CODE_BIT_INIT   9

Definition at line 27 of file mlz.h.

Referenced by ff_mlz_flush_dict(), and ff_mlz_init_dict().

#define DIC_INDEX_INIT   512

Definition at line 28 of file mlz.h.

Referenced by ff_mlz_flush_dict(), and ff_mlz_init_dict().

#define DIC_INDEX_MAX   32768

Definition at line 29 of file mlz.h.

Referenced by decode_string().

#define FLUSH_CODE   256

Definition at line 30 of file mlz.h.

Referenced by ff_mlz_decompression(), and ff_mlz_init_dict().

#define FREEZE_CODE   257

Definition at line 31 of file mlz.h.

Referenced by ff_mlz_decompression().

#define FIRST_CODE   258

Definition at line 32 of file mlz.h.

Referenced by decode_string(), ff_mlz_flush_dict(), ff_mlz_init_dict(), and set_new_entry_dict().

#define MAX_CODE   32767

Definition at line 33 of file mlz.h.

Referenced by ff_mlz_decompression().

#define TABLE_SIZE   35023

Definition at line 34 of file mlz.h.

Referenced by ff_mlz_decompression(), ff_mlz_flush_dict(), and ff_mlz_init_dict().

Function Documentation

void ff_mlz_init_dict ( void context,
MLZ mlz 
)

Initialize the dictionary.

Definition at line 23 of file mlz.c.

Referenced by decode_init().

void ff_mlz_flush_dict ( MLZ dict)

Flush the dictionary.

Definition at line 35 of file mlz.c.

Referenced by decode_init(), ff_mlz_decompression(), and read_diff_float_data().

int ff_mlz_decompression ( MLZ mlz,
GetBitContext gb,
int  size,
unsigned char *  buff 
)

Run mlz decompression on the next size bits and the output will be stored in buff.

Definition at line 123 of file mlz.c.

Referenced by read_diff_float_data().