#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 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 |
| #define HALFBLOCK 20 |
| #define NBLOCKS 4 |
| 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] |
| static void dec1 | ( | Real144_internal * | glob, | |
| int * | data, | |||
| int * | inp, | |||
| int | n, | |||
| int | f | |||
| ) | [static] |
| static void dec2 | ( | Real144_internal * | glob, | |
| int * | data, | |||
| int * | inp, | |||
| int | n, | |||
| int | f, | |||
| int * | inp2, | |||
| int | l | |||
| ) | [static] |
| static void do_output_subblock | ( | Real144_internal * | glob, | |
| unsigned int | x | |||
| ) | [static] |
| static void do_voice | ( | int * | a1, | |
| int * | a2 | |||
| ) | [static] |
| static int eq | ( | Real144_internal * | glob, | |
| short * | in, | |||
| int * | target | |||
| ) | [static] |
| static void final | ( | Real144_internal * | glob, | |
| short * | i1, | |||
| short * | i2, | |||
| void * | out, | |||
| int * | statbuf, | |||
| int | len | |||
| ) | [static] |
| static int irms | ( | short * | data, | |
| int | factor | |||
| ) | [static] |
| static int ra144_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | vdata, | |||
| int * | data_size, | |||
| const uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
| static int ra144_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
| static unsigned int rms | ( | int * | data, | |
| int | f | |||
| ) | [static] |
| static void rotate_block | ( | short * | source, | |
| short * | target, | |||
| int | offset | |||
| ) | [static] |
| static int t_sqrt | ( | unsigned int | x | ) | [static] |
| static void unpack_input | ( | const unsigned char * | input, | |
| unsigned int * | output | |||
| ) | [static] |
Initial value:
{
"real_144",
CODEC_TYPE_AUDIO,
CODEC_ID_RA_144,
sizeof(Real144_internal),
ra144_decode_init,
NULL,
NULL,
ra144_decode_frame,
}
1.5.6