#include <config.h>
#include <math.h>
#include "decode_i386.h"
#include "dct64_i386.h"
#include "tabinit.h"
Include dependency graph for decode_i386.c:
Go to the source code of this file.
Defines | |
#define | strchr index |
#define | strrchr rindex |
#define | memcpy(d, s, n) bcopy ((s), (d), (n)) |
#define | memmove(d, s, n) bcopy ((s), (d), (n)) |
#define | WRITE_SAMPLE_CLIPPED(samples, sum, clip) |
#define | WRITE_SAMPLE_UNCLIPPED(samples, sum, clip) *samples = sum; |
#define | SYNTH_1TO1_MONO_CLIPCHOICE(TYPE, SYNTH_1TO1) |
#define | SYNTH_1TO1_CLIPCHOICE(TYPE, WRITE_SAMPLE) |
Functions | |
char * | strchr () |
char ** | strrchr () |
int | synth_1to1_mono (PMPSTR mp, real *bandPtr, unsigned char *out, int *pnt) |
int | synth_1to1_mono_unclipped (PMPSTR mp, real *bandPtr, unsigned char *out, int *pnt) |
int | synth_1to1 (PMPSTR mp, real *bandPtr, int channel, unsigned char *out, int *pnt) |
int | synth_1to1_unclipped (PMPSTR mp, real *bandPtr, int channel, unsigned char *out, int *pnt) |
#define memcpy | ( | d, | |||
s, | |||||
n | ) | bcopy ((s), (d), (n)) |
Definition at line 30 of file decode_i386.c.
Referenced by addbuf(), AnalyzeSamples(), best_huffman_divide(), copy_buffer(), copy_mp(), frameadv1(), id3tag_set_albumart(), outer_loop(), putheader_bits(), PutVbrTag(), recalc_divide_sub(), set_frame_pinfo(), set_pointer(), and VBR_encode_granule().
#define memmove | ( | d, | |||
s, | |||||
n | ) | bcopy ((s), (d), (n)) |
#define strchr index |
#define strrchr rindex |
Definition at line 26 of file decode_i386.c.
#define SYNTH_1TO1_CLIPCHOICE | ( | TYPE, | |||
WRITE_SAMPLE | ) |
Definition at line 91 of file decode_i386.c.
Referenced by synth_1to1(), and synth_1to1_unclipped().
#define SYNTH_1TO1_MONO_CLIPCHOICE | ( | TYPE, | |||
SYNTH_1TO1 | ) |
Value:
TYPE samples_tmp[64]; \ TYPE *tmp1 = samples_tmp; \ int i,ret; \ int pnt1 = 0; \ \ ret = SYNTH_1TO1 (mp,bandPtr,0,(unsigned char *) samples_tmp,&pnt1); \ out += *pnt; \ \ for(i=0;i<32;i++) { \ *( (TYPE *) out) = *tmp1; \ out += sizeof(TYPE); \ tmp1 += 2; \ } \ *pnt += 32*sizeof(TYPE); \ \ return ret;
Definition at line 61 of file decode_i386.c.
Referenced by synth_1to1_mono(), and synth_1to1_mono_unclipped().
#define WRITE_SAMPLE_CLIPPED | ( | samples, | |||
sum, | |||||
clip | ) |
Value:
if( (sum) > 32767.0) { *(samples) = 0x7fff; (clip)++; } \ else if( (sum) < -32768.0) { *(samples) = -0x8000; (clip)++; } \ else { *(samples) = ((sum)>0 ? (sum)+0.5 : (sum)-0.5) ; }
Definition at line 51 of file decode_i386.c.
Referenced by synth_1to1().
#define WRITE_SAMPLE_UNCLIPPED | ( | samples, | |||
sum, | |||||
clip | ) | *samples = sum; |
char* strchr | ( | ) |
char* * strrchr | ( | ) |
int synth_1to1 | ( | PMPSTR | mp, | |
real * | bandPtr, | |||
int | channel, | |||
unsigned char * | out, | |||
int * | pnt | |||
) |
Definition at line 195 of file decode_i386.c.
References SYNTH_1TO1_CLIPCHOICE, and WRITE_SAMPLE_CLIPPED.
Referenced by decodeMP3(), do_layer1(), do_layer2(), and synth_1to1_mono().
int synth_1to1_mono | ( | PMPSTR | mp, | |
real * | bandPtr, | |||
unsigned char * | out, | |||
int * | pnt | |||
) |
Definition at line 80 of file decode_i386.c.
References synth_1to1(), and SYNTH_1TO1_MONO_CLIPCHOICE.
Referenced by decodeMP3(), do_layer1(), and do_layer2().
Here is the call graph for this function:
int synth_1to1_mono_unclipped | ( | PMPSTR | mp, | |
real * | bandPtr, | |||
unsigned char * | out, | |||
int * | pnt | |||
) |
Definition at line 85 of file decode_i386.c.
References real, SYNTH_1TO1_MONO_CLIPCHOICE, and synth_1to1_unclipped().
Referenced by decodeMP3_unclipped().
Here is the call graph for this function:
int synth_1to1_unclipped | ( | PMPSTR | mp, | |
real * | bandPtr, | |||
int | channel, | |||
unsigned char * | out, | |||
int * | pnt | |||
) |
Definition at line 200 of file decode_i386.c.
References real, SYNTH_1TO1_CLIPCHOICE, and WRITE_SAMPLE_UNCLIPPED.
Referenced by decodeMP3_unclipped(), and synth_1to1_mono_unclipped().