hvirtual/quicktime/ffmpeg/libavcodec/ra144.c File Reference

#include "avcodec.h"
#include "ra144.h"

Include dependency graph for ra144.c:

Go to the source code of this file.

Data Structures

struct  Real144_internal

Defines

#define DATABLOCK1   20
#define DATACHUNK1   1440
#define AUDIOBLOCK   160
#define AUDIOBUFFER   12288
#define NBLOCKS   4
#define BLOCKSIZE   40
#define HALFBLOCK   20
#define BUFFERSIZE   146

Functions

static int ra144_decode_init (AVCodecContext *avctx)
static void final (Real144_internal *glob, short *i1, short *i2, void *out, int *statbuf, int len)
static void add_wav (Real144_internal *glob, int n, int f, int m1, int m2, int m3, short *s1, short *s2, short *s3, short *dest)
static int irms (short *data, int factor)
static void rotate_block (short *source, short *target, int offset)
static int t_sqrt (unsigned int x)
static void do_voice (int *a1, int *a2)
static void do_output_subblock (Real144_internal *glob, unsigned int x)
static void unpack_input (unsigned char *input, unsigned int *output)
static unsigned int rms (int *data, int f)
static void dec1 (Real144_internal *glob, int *data, int *inp, int n, int f)
static int eq (Real144_internal *glob, short *in, int *target)
static void dec2 (Real144_internal *glob, int *data, int *inp, int n, int f, int *inp2, int l)
static int ra144_decode_frame (AVCodecContext *avctx, void *vdata, int *data_size, uint8_t *buf, int buf_size)

Variables

AVCodec ra_144_decoder


Define Documentation

#define AUDIOBLOCK   160

Definition at line 25 of file ra144.c.

#define AUDIOBUFFER   12288

Definition at line 26 of file ra144.c.

#define BLOCKSIZE   40

Definition at line 29 of file ra144.c.

Referenced by add_wav(), do_output_subblock(), irms(), ra144_decode_frame(), and rotate_block().

#define BUFFERSIZE   146

Definition at line 31 of file ra144.c.

#define DATABLOCK1   20

Definition at line 23 of file ra144.c.

#define DATACHUNK1   1440

Definition at line 24 of file ra144.c.

#define HALFBLOCK   20

Definition at line 30 of file ra144.c.

Referenced by do_output_subblock().

#define NBLOCKS   4

Definition at line 28 of file ra144.c.

Referenced by dec2(), and ra144_decode_frame().


Function Documentation

static void add_wav ( Real144_internal glob,
int  n,
int  f,
int  m1,
int  m2,
int  m3,
short *  s1,
short *  s2,
short *  s3,
short *  dest 
) [static]

Definition at line 185 of file ra144.c.

References a, b, BLOCKSIZE, c, Real144_internal::wavtable1, and Real144_internal::wavtable2.

Referenced by do_output_subblock().

static void dec1 ( Real144_internal glob,
int *  data,
int *  inp,
int  n,
int  f 
) [static]

Definition at line 340 of file ra144.c.

References Real144_internal::decptr, Real144_internal::decsp, and rms().

Referenced by dec2(), and ra144_decode_frame().

Here is the call graph for this function:

static void dec2 ( Real144_internal glob,
int *  data,
int *  inp,
int  n,
int  f,
int *  inp2,
int  l 
) [static]

Definition at line 394 of file ra144.c.

References a, b, dec1(), Real144_internal::decptr, Real144_internal::decsp, eq(), Real144_internal::gbuf1, Real144_internal::gbuf2, NBLOCKS, rms(), and Real144_internal::sptr.

Referenced by ra144_decode_frame().

Here is the call graph for this function:

static void do_output_subblock ( Real144_internal glob,
unsigned int  x 
) [static]

static void do_voice ( int *  a1,
int *  a2 
) [static]

Definition at line 104 of file ra144.c.

Referenced by ra144_decode_frame().

static int eq ( Real144_internal glob,
short *  in,
int *  target 
) [static]

Definition at line 350 of file ra144.c.

References a, b, Real144_internal::buffer1, Real144_internal::buffer2, and c.

Referenced by dec2().

static void final ( Real144_internal glob,
short *  i1,
short *  i2,
void *  out,
int *  statbuf,
int  len 
) [static]

Definition at line 211 of file ra144.c.

References memcpy.

static int irms ( short *  data,
int  factor 
) [static]

Definition at line 174 of file ra144.c.

References BLOCKSIZE, and t_sqrt().

Referenced by do_output_subblock().

Here is the call graph for this function:

static int ra144_decode_frame ( AVCodecContext avctx,
void *  vdata,
int *  data_size,
uint8_t *  buf,
int  buf_size 
) [static]

static int ra144_decode_init ( AVCodecContext avctx  )  [static]

static unsigned int rms ( int *  data,
int  f 
) [static]

Definition at line 306 of file ra144.c.

References b, c, and t_sqrt().

Referenced by dec1(), and dec2().

Here is the call graph for this function:

static void rotate_block ( short *  source,
short *  target,
int  offset 
) [static]

Definition at line 158 of file ra144.c.

References BLOCKSIZE, and BUFFERSIZE.

Referenced by do_output_subblock().

static int t_sqrt ( unsigned int  x  )  [static]

Definition at line 96 of file ra144.c.

References s, and sqrt_table.

Referenced by irms(), ra144_decode_frame(), and rms().

static void unpack_input ( unsigned char *  input,
unsigned int *  output 
) [static]

Definition at line 252 of file ra144.c.

Referenced by ra144_decode_frame().


Variable Documentation

Initial value:

Definition at line 507 of file ra144.c.

Referenced by avcodec_register_all().


Generated on Mon Apr 28 14:05:50 2008 for Cinelerra by  doxygen 1.5.5