FFmpeg
Classes | Macros | Typedefs | Functions
rl.h File Reference

rl header. More...

#include <stdint.h>
#include "vlc.h"

Go to the source code of this file.

Classes

struct  RLTable
 RLTable. More...
 

Macros

#define MAX_RUN   64
 
#define MAX_LEVEL   64
 
#define INIT_VLC_RL(rl, static_size)
 

Typedefs

typedef struct RLTable RLTable
 RLTable. More...
 

Functions

int ff_rl_init (RLTable *rl, uint8_t static_store[2][2 *MAX_RUN+MAX_LEVEL+3])
 
void ff_rl_init_vlc (RLTable *rl, unsigned static_size)
 
void ff_rl_free (RLTable *rl)
 Free the contents of a dynamically allocated table.
 

Detailed Description

rl header.

Macro Definition Documentation

§ INIT_VLC_RL

#define INIT_VLC_RL (   rl,
  static_size 
)
Value:
{\
int q;\
static RL_VLC_ELEM rl_vlc_table[32][static_size];\
\
if(!rl.rl_vlc[0]){\
for(q=0; q<32; q++)\
rl.rl_vlc[q]= rl_vlc_table[q];\
\
ff_rl_init_vlc(&rl, static_size);\
}\
}
Definition: vlc.h:32

Typedef Documentation

§ RLTable

typedef struct RLTable RLTable

Function Documentation

§ ff_rl_init()

int ff_rl_init ( RLTable rl,
uint8_t  static_store[2][2 *MAX_RUN+MAX_LEVEL+3] 
)
Parameters
static_storestatic uint8_t array[2][2*MAX_RUN + MAX_LEVEL + 3] which will hold the level and run tables, if this is NULL av_malloc() will be used