00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef AVCODEC_MPEGAUDIODSP_H
00020 #define AVCODEC_MPEGAUDIODSP_H
00021
00022 #include <stdint.h>
00023
00024 typedef struct MPADSPContext {
00025 void (*apply_window_float)(float *synth_buf, float *window,
00026 int *dither_state, float *samples, int incr);
00027 void (*apply_window_fixed)(int32_t *synth_buf, int32_t *window,
00028 int *dither_state, int16_t *samples, int incr);
00029 void (*dct32_float)(float *dst, const float *src);
00030 void (*dct32_fixed)(int *dst, const int *src);
00031 void (*imdct36_float)(float *out, float *buf, float *in, float *win);
00032 void (*imdct36_fixed)(int *out, int *buf, int *in, int *win);
00033 } MPADSPContext;
00034
00035 void ff_mpadsp_init(MPADSPContext *s);
00036
00037 extern int32_t ff_mpa_synth_window_fixed[];
00038 extern float ff_mpa_synth_window_float[];
00039
00040 void ff_mpa_synth_filter_fixed(MPADSPContext *s,
00041 int32_t *synth_buf_ptr, int *synth_buf_offset,
00042 int32_t *window, int *dither_state,
00043 int16_t *samples, int incr,
00044 int32_t *sb_samples);
00045
00046 void ff_mpa_synth_filter_float(MPADSPContext *s,
00047 float *synth_buf_ptr, int *synth_buf_offset,
00048 float *window, int *dither_state,
00049 float *samples, int incr,
00050 float *sb_samples);
00051
00052 void ff_mpadsp_init_arm(MPADSPContext *s);
00053 void ff_mpadsp_init_mmx(MPADSPContext *s);
00054 void ff_mpadsp_init_altivec(MPADSPContext *s);
00055
00056 void ff_mpa_synth_init_float(float *window);
00057 void ff_mpa_synth_init_fixed(int32_t *window);
00058
00059 void ff_mpadsp_apply_window_float(float *synth_buf, float *window,
00060 int *dither_state, float *samples,
00061 int incr);
00062 void ff_mpadsp_apply_window_fixed(int32_t *synth_buf, int32_t *window,
00063 int *dither_state, int16_t *samples,
00064 int incr);
00065
00066 void ff_imdct36_fixed(int *out, int *buf, int *in, int *win);
00067 void ff_imdct36_float(float *out, float *buf, float *in, float *win);
00068
00069 #endif