FFmpeg
Loading...
Searching...
No Matches
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 structure. 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.
 
void ff_mlz_flush_dict (MLZ *dict)
 Flush the dictionary.
 
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.
 

Macro Definition Documentation

◆ CODE_UNSET

#define CODE_UNSET   -1

Definition at line 26 of file mlz.h.

Referenced by decode_string(), and ff_mlz_flush_dict().

◆ CODE_BIT_INIT

#define CODE_BIT_INIT   9

Definition at line 27 of file mlz.h.

Referenced by ff_mlz_flush_dict(), and ff_mlz_init_dict().

◆ DIC_INDEX_INIT

#define DIC_INDEX_INIT   512

Definition at line 28 of file mlz.h.

Referenced by ff_mlz_flush_dict(), and ff_mlz_init_dict().

◆ DIC_INDEX_MAX

#define DIC_INDEX_MAX   32768

Definition at line 29 of file mlz.h.

Referenced by decode_string().

◆ FLUSH_CODE

#define FLUSH_CODE   256

Definition at line 30 of file mlz.h.

Referenced by ff_mlz_decompression(), and ff_mlz_init_dict().

◆ FREEZE_CODE

#define FREEZE_CODE   257

Definition at line 31 of file mlz.h.

Referenced by ff_mlz_decompression().

◆ FIRST_CODE

#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().

◆ MAX_CODE

#define MAX_CODE   32767

Definition at line 33 of file mlz.h.

Referenced by ff_mlz_decompression().

◆ TABLE_SIZE

#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

◆ ff_mlz_init_dict()

int ff_mlz_init_dict ( void * context,
MLZ * mlz )

Initialize the dictionary.

Definition at line 24 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 41 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 129 of file mlz.c.

Referenced by read_diff_float_data().