libmpg123 1.15.4
git-svn-id: svn://kolibrios.org@3960 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -30,16 +30,13 @@
|
||||
#define NTOM_MAX 8 /* maximum allowed factor for upsampling */
|
||||
#define NTOM_MAX_FREQ 96000 /* maximum frequency to upsample to / downsample from */
|
||||
#define NTOM_MUL (32768)
|
||||
void ntom_set_ntom(mpg123_handle *fr, off_t num);
|
||||
#endif
|
||||
|
||||
/* Let's collect all possible synth functions here, for an overview.
|
||||
If they are actually defined and used depends on preprocessor machinery.
|
||||
See synth.c and optimize.h for that, also some special C and assembler files. */
|
||||
|
||||
/* The call of left and right plain synth, wrapped.
|
||||
This may be replaced by a direct stereo optimized synth. */
|
||||
int synth_stereo_wrap(real*, real*, mpg123_handle*);
|
||||
|
||||
#ifndef NO_16BIT
|
||||
/* The signed-16bit-producing variants. */
|
||||
int synth_1to1 (real*, int, mpg123_handle*, int);
|
||||
@@ -57,13 +54,15 @@ int synth_1to1_stereo_altivec(real*, real*, mpg123_handle*);
|
||||
int synth_1to1_x86_64 (real*, int, mpg123_handle*, int);
|
||||
int synth_1to1_stereo_x86_64(real*, real*, mpg123_handle*);
|
||||
int synth_1to1_arm (real*, int, mpg123_handle*, int);
|
||||
int synth_1to1_neon (real*, int, mpg123_handle*, int);
|
||||
int synth_1to1_stereo_neon(real*, real*, mpg123_handle*);
|
||||
/* This is different, special usage in layer3.c only.
|
||||
Hence, the name... and now forget about it.
|
||||
Never use it outside that special portion of code inside layer3.c! */
|
||||
int absynth_1to1_i486(real*, int, mpg123_handle*, int);
|
||||
/* These mono/stereo converters use one of the above for the grunt work. */
|
||||
int synth_1to1_mono (real*, mpg123_handle*);
|
||||
int synth_1to1_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_1to1_m2s(real*, mpg123_handle*);
|
||||
|
||||
/* Sample rate decimation comes in less flavours. */
|
||||
#ifndef NO_DOWNSAMPLE
|
||||
@@ -71,18 +70,18 @@ int synth_2to1 (real*, int, mpg123_handle*, int);
|
||||
int synth_2to1_dither (real*, int, mpg123_handle*, int);
|
||||
int synth_2to1_i386 (real*, int, mpg123_handle*, int);
|
||||
int synth_2to1_mono (real*, mpg123_handle*);
|
||||
int synth_2to1_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_2to1_m2s(real*, mpg123_handle*);
|
||||
int synth_4to1 (real *,int, mpg123_handle*, int);
|
||||
int synth_4to1_dither (real *,int, mpg123_handle*, int);
|
||||
int synth_4to1_i386 (real*, int, mpg123_handle*, int);
|
||||
int synth_4to1_mono (real*, mpg123_handle*);
|
||||
int synth_4to1_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_4to1_m2s(real*, mpg123_handle*);
|
||||
#endif
|
||||
#ifndef NO_NTOM
|
||||
/* NtoM is really just one implementation. */
|
||||
int synth_ntom (real *,int, mpg123_handle*, int);
|
||||
int synth_ntom_mono (real *, mpg123_handle *);
|
||||
int synth_ntom_mono2stereo (real *, mpg123_handle *);
|
||||
int synth_ntom_m2s (real *, mpg123_handle *);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -95,26 +94,25 @@ int synth_1to1_8bit_i386 (real*, int, mpg123_handle*, int);
|
||||
int synth_1to1_8bit_wrap (real*, int, mpg123_handle*, int);
|
||||
int synth_1to1_8bit_mono (real*, mpg123_handle*);
|
||||
#endif
|
||||
int synth_1to1_8bit_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_1to1_8bit_m2s(real*, mpg123_handle*);
|
||||
#ifndef NO_16BIT
|
||||
int synth_1to1_8bit_wrap_mono (real*, mpg123_handle*);
|
||||
int synth_1to1_8bit_wrap_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_1to1_8bit_wrap_m2s(real*, mpg123_handle*);
|
||||
#endif
|
||||
#ifndef NO_DOWNSAMPLE
|
||||
int synth_2to1_8bit (real*, int, mpg123_handle*, int);
|
||||
int synth_2to1_8bit_i386 (real*, int, mpg123_handle*, int);
|
||||
int synth_2to1_8bit_mono (real*, mpg123_handle*);
|
||||
int synth_2to1_8bit_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_2to1_8bit_m2s(real*, mpg123_handle*);
|
||||
int synth_4to1_8bit (real*, int, mpg123_handle*, int);
|
||||
int synth_4to1_8bit_i386 (real*, int, mpg123_handle*, int);
|
||||
int synth_4to1_8bit_mono (real*, mpg123_handle*);
|
||||
int synth_4to1_8bit_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_4to1_8bit_m2s(real*, mpg123_handle*);
|
||||
#endif
|
||||
#ifndef NO_NTOM
|
||||
int synth_ntom_8bit (real*, int, mpg123_handle*, int);
|
||||
int synth_ntom_8bit_mono (real*, mpg123_handle*);
|
||||
int synth_ntom_8bit_mono2stereo(real*, mpg123_handle*);
|
||||
void ntom_set_ntom(mpg123_handle *fr, off_t num);
|
||||
int synth_ntom_8bit_m2s(real*, mpg123_handle*);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -130,22 +128,24 @@ int synth_1to1_real_x86_64 (real*, int, mpg123_handle*, int);
|
||||
int synth_1to1_real_stereo_x86_64(real*, real*, mpg123_handle*);
|
||||
int synth_1to1_real_altivec (real*, int, mpg123_handle*, int);
|
||||
int synth_1to1_real_stereo_altivec(real*, real*, mpg123_handle*);
|
||||
int synth_1to1_real_neon (real*, int, mpg123_handle*, int);
|
||||
int synth_1to1_real_stereo_neon(real*, real*, mpg123_handle*);
|
||||
int synth_1to1_real_mono (real*, mpg123_handle*);
|
||||
int synth_1to1_real_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_1to1_real_m2s(real*, mpg123_handle*);
|
||||
#ifndef NO_DOWNSAMPLE
|
||||
int synth_2to1_real (real*, int, mpg123_handle*, int);
|
||||
int synth_2to1_real_i386 (real*, int, mpg123_handle*, int);
|
||||
int synth_2to1_real_mono (real*, mpg123_handle*);
|
||||
int synth_2to1_real_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_2to1_real_m2s(real*, mpg123_handle*);
|
||||
int synth_4to1_real (real*, int, mpg123_handle*, int);
|
||||
int synth_4to1_real_i386 (real*, int, mpg123_handle*, int);
|
||||
int synth_4to1_real_mono (real*, mpg123_handle*);
|
||||
int synth_4to1_real_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_4to1_real_m2s(real*, mpg123_handle*);
|
||||
#endif
|
||||
#ifndef NO_NTOM
|
||||
int synth_ntom_real (real*, int, mpg123_handle*, int);
|
||||
int synth_ntom_real_mono (real*, mpg123_handle*);
|
||||
int synth_ntom_real_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_ntom_real_m2s(real*, mpg123_handle*);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -159,22 +159,24 @@ int synth_1to1_s32_x86_64 (real*, int, mpg123_handle*, int);
|
||||
int synth_1to1_s32_stereo_x86_64(real*, real*, mpg123_handle*);
|
||||
int synth_1to1_s32_altivec (real*, int, mpg123_handle*, int);
|
||||
int synth_1to1_s32_stereo_altivec(real*, real*, mpg123_handle*);
|
||||
int synth_1to1_s32_neon (real*, int, mpg123_handle*, int);
|
||||
int synth_1to1_s32_stereo_neon(real*, real*, mpg123_handle*);
|
||||
int synth_1to1_s32_mono (real*, mpg123_handle*);
|
||||
int synth_1to1_s32_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_1to1_s32_m2s(real*, mpg123_handle*);
|
||||
#ifndef NO_DOWNSAMPLE
|
||||
int synth_2to1_s32 (real*, int, mpg123_handle*, int);
|
||||
int synth_2to1_s32_i386 (real*, int, mpg123_handle*, int);
|
||||
int synth_2to1_s32_mono (real*, mpg123_handle*);
|
||||
int synth_2to1_s32_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_2to1_s32_m2s(real*, mpg123_handle*);
|
||||
int synth_4to1_s32 (real*, int, mpg123_handle*, int);
|
||||
int synth_4to1_s32_i386 (real*, int, mpg123_handle*, int);
|
||||
int synth_4to1_s32_mono (real*, mpg123_handle*);
|
||||
int synth_4to1_s32_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_4to1_s32_m2s(real*, mpg123_handle*);
|
||||
#endif
|
||||
#ifndef NO_NTOM
|
||||
int synth_ntom_s32 (real*, int, mpg123_handle*, int);
|
||||
int synth_ntom_s32_mono (real*, mpg123_handle*);
|
||||
int synth_ntom_s32_mono2stereo(real*, mpg123_handle*);
|
||||
int synth_ntom_s32_m2s(real*, mpg123_handle*);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -199,6 +201,12 @@ int synth_ntom_set_step(mpg123_handle *fr); /* prepare ntom decoding */
|
||||
unsigned long ntom_val(mpg123_handle *fr, off_t frame); /* compute ntom_val for frame offset */
|
||||
/* Frame and sample offsets. */
|
||||
#ifndef NO_NTOM
|
||||
/*
|
||||
Outsamples of _this_ frame.
|
||||
To be exact: The samples to be expected from the next frame decode (using the current ntom_val). When you already decoded _this_ frame, this is the number of samples to be expected from the next one.
|
||||
*/
|
||||
off_t ntom_frame_outsamples(mpg123_handle *fr);
|
||||
/* Total out/insample offset. */
|
||||
off_t ntom_frmouts(mpg123_handle *fr, off_t frame);
|
||||
off_t ntom_ins2outs(mpg123_handle *fr, off_t ins);
|
||||
off_t ntom_frameoff(mpg123_handle *fr, off_t soff);
|
||||
|
Reference in New Issue
Block a user