FFmpeg
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

int 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

◆ CODE_UNSET

#define CODE_UNSET   -1

Definition at line 26 of file mlz.h.

◆ CODE_BIT_INIT

#define CODE_BIT_INIT   9

Definition at line 27 of file mlz.h.

◆ DIC_INDEX_INIT

#define DIC_INDEX_INIT   512

Definition at line 28 of file mlz.h.

◆ DIC_INDEX_MAX

#define DIC_INDEX_MAX   32768

Definition at line 29 of file mlz.h.

◆ FLUSH_CODE

#define FLUSH_CODE   256

Definition at line 30 of file mlz.h.

◆ FREEZE_CODE

#define FREEZE_CODE   257

Definition at line 31 of file mlz.h.

◆ FIRST_CODE

#define FIRST_CODE   258

Definition at line 32 of file mlz.h.

◆ MAX_CODE

#define MAX_CODE   32767

Definition at line 33 of file mlz.h.

◆ TABLE_SIZE

#define TABLE_SIZE   35023

Definition at line 34 of file mlz.h.

Function Documentation

◆ ff_mlz_init_dict()

int ff_mlz_init_dict ( void *  context,
MLZ mlz 
)

Initialize the dictionary.

Definition at line 23 of file mlz.c.

Referenced by decode_init().

◆ ff_mlz_flush_dict()

void ff_mlz_flush_dict ( MLZ dict)

Flush the dictionary.

Definition at line 40 of file mlz.c.

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

◆ ff_mlz_decompression()

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 128 of file mlz.c.

Referenced by read_diff_float_data().