00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 #ifndef AVCODEC_SBRDSP_H
00022 #define AVCODEC_SBRDSP_H
00023 
00024 #include <stdint.h>
00025 
00026 typedef struct SBRDSPContext {
00027     void (*sum64x5)(float *z);
00028     float (*sum_square)(float (*x)[2], int n);
00029     void (*neg_odd_64)(float *x);
00030     void (*qmf_pre_shuffle)(float *z);
00031     void (*qmf_post_shuffle)(float W[32][2], const float *z);
00032     void (*qmf_deint_neg)(float *v, const float *src);
00033     void (*qmf_deint_bfly)(float *v, const float *src0, const float *src1);
00034     void (*autocorrelate)(const float x[40][2], float phi[3][2][2]);
00035     void (*hf_gen)(float (*X_high)[2], const float (*X_low)[2],
00036                    const float alpha0[2], const float alpha1[2],
00037                    float bw, int start, int end);
00038     void (*hf_g_filt)(float (*Y)[2], const float (*X_high)[40][2],
00039                       const float *g_filt, int m_max, intptr_t ixh);
00040     void (*hf_apply_noise[4])(float (*Y)[2], const float *s_m,
00041                               const float *q_filt, int noise,
00042                               int kx, int m_max);
00043 } SBRDSPContext;
00044 
00045 extern const float ff_sbr_noise_table[][2];
00046 
00047 void ff_sbrdsp_init(SBRDSPContext *s);
00048 void ff_sbrdsp_init_arm(SBRDSPContext *s);
00049 void ff_sbrdsp_init_x86(SBRDSPContext *s);
00050 
00051 #endif