rl.h File Reference

rl header. More...

#include <stdint.h>
#include "get_bits.h"
Include dependency graph for rl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

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

void ff_init_rl (RLTable *rl, uint8_t static_store[2][2 *MAX_RUN+MAX_LEVEL+3])
 
void ff_init_vlc_rl (RLTable *rl)
 
static int get_rl_index (const RLTable *rl, int last, int run, int level)
 

Detailed Description

rl header.

Definition in file rl.h.

Macro Definition Documentation

#define INIT_VLC_RL (   rl,
  static_size 
)
Value:
{\
int q;\
static RL_VLC_ELEM rl_vlc_table[32][static_size];\
INIT_VLC_STATIC(&rl.vlc, 9, rl.n + 1,\
&rl.table_vlc[0][1], 4, 2,\
&rl.table_vlc[0][0], 4, 2, static_size);\
if(!rl.rl_vlc[0]){\
for(q=0; q<32; q++)\
rl.rl_vlc[q]= rl_vlc_table[q];\
\
}\
}
initialize output if(nPeaks >3)%at least 3 peaks in spectrum for trying to find f0 nf0peaks
#define INIT_VLC_STATIC(vlc, bits, a, b, c, d, e, f, g, static_size)
Definition: get_bits.h:445
void ff_init_vlc_rl(RLTable *rl)
Definition: mpegvideo.c:1356
for(j=16;j >0;--j)

Definition at line 59 of file rl.h.

Referenced by ff_h263_decode_init_vlc(), ff_mpeg4videodec_static_init(), ff_msmpeg4_decode_init(), and h261_decode_init_vlc().

Typedef Documentation

typedef struct RLTable RLTable

Function Documentation

void ff_init_rl ( 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

Definition at line 1304 of file mpegvideo.c.

Referenced by encode_init(), ff_h261_common_init(), ff_h263_decode_init_vlc(), ff_h263_encode_init(), ff_mpeg12_init_vlcs(), ff_mpeg1_encode_init(), ff_mpeg4videodec_static_init(), ff_msmpeg4_decode_init(), and ff_msmpeg4_encode_init().

void ff_init_vlc_rl ( RLTable rl)

Definition at line 1356 of file mpegvideo.c.

static int get_rl_index ( const RLTable rl,
int  last,
int  run,
int  level 
)
inlinestatic