libavcodec/ra144.c File Reference

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

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 (const 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, const uint8_t *buf, int buf_size)

Variables

AVCodec ra_144_decoder


Define Documentation

#define AUDIOBLOCK   160

Definition at line 27 of file ra144.c.

#define AUDIOBUFFER   12288

Definition at line 28 of file ra144.c.

#define BLOCKSIZE   40

Definition at line 31 of file ra144.c.

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

#define BUFFERSIZE   146

Definition at line 33 of file ra144.c.

Referenced by do_output_subblock(), and rotate_block().

#define DATABLOCK1   20

Definition at line 25 of file ra144.c.

#define DATACHUNK1   1440

Definition at line 26 of file ra144.c.

#define HALFBLOCK   20

Definition at line 32 of file ra144.c.

Referenced by do_output_subblock().

#define NBLOCKS   4

Definition at line 30 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 187 of file ra144.c.

Referenced by do_output_subblock().

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

Definition at line 342 of file ra144.c.

Referenced by dec2(), and ra144_decode_frame().

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

Definition at line 396 of file ra144.c.

Referenced by ra144_decode_frame().

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

Definition at line 135 of file ra144.c.

Referenced by ra144_decode_frame().

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

Definition at line 106 of file ra144.c.

Referenced by ra144_decode_frame().

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

Definition at line 352 of file ra144.c.

Referenced by dec2().

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

Definition at line 213 of file ra144.c.

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

Definition at line 176 of file ra144.c.

Referenced by do_output_subblock().

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

Definition at line 428 of file ra144.c.

static int ra144_decode_init ( AVCodecContext avctx  )  [static]

Definition at line 76 of file ra144.c.

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

Definition at line 308 of file ra144.c.

Referenced by dec1(), and dec2().

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

Definition at line 160 of file ra144.c.

Referenced by do_output_subblock().

static int t_sqrt ( unsigned int  x  )  [static]

Definition at line 98 of file ra144.c.

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

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

Definition at line 254 of file ra144.c.

Referenced by ra144_decode_frame().


Variable Documentation

Initial value:

Definition at line 503 of file ra144.c.


Generated on Thu Apr 2 07:15:42 2009 for ffmpeg by  doxygen 1.5.6