Moved all function pointer declarations in iSAC to a single place.
Review URL: https://webrtc-codereview.appspot.com/1057006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3406 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -26,9 +26,6 @@
|
|||||||
#include "filterbank_tables.h"
|
#include "filterbank_tables.h"
|
||||||
#include "settings.h"
|
#include "settings.h"
|
||||||
|
|
||||||
// Declare a function pointer.
|
|
||||||
AllpassFilter2FixDec16 WebRtcIsacfix_AllpassFilter2FixDec16;
|
|
||||||
|
|
||||||
void WebRtcIsacfix_AllpassFilter2FixDec16C(
|
void WebRtcIsacfix_AllpassFilter2FixDec16C(
|
||||||
int16_t *data_ch1, // Input and output in channel 1, in Q0
|
int16_t *data_ch1, // Input and output in channel 1, in Q0
|
||||||
int16_t *data_ch2, // Input and output in channel 2, in Q0
|
int16_t *data_ch2, // Input and output in channel 2, in Q0
|
||||||
|
|||||||
@@ -27,6 +27,13 @@
|
|||||||
#include "modules/audio_coding/codecs/isac/fix/source/structs.h"
|
#include "modules/audio_coding/codecs/isac/fix/source/structs.h"
|
||||||
#include "system_wrappers/interface/cpu_features_wrapper.h"
|
#include "system_wrappers/interface/cpu_features_wrapper.h"
|
||||||
|
|
||||||
|
// Declare function pointers.
|
||||||
|
AllpassFilter2FixDec16 WebRtcIsacfix_AllpassFilter2FixDec16;
|
||||||
|
AutocorrFix WebRtcIsacfix_AutocorrFix;
|
||||||
|
CalculateResidualEnergy WebRtcIsacfix_CalculateResidualEnergy;
|
||||||
|
FilterMaLoopFix WebRtcIsacfix_FilterMaLoopFix;
|
||||||
|
Spec2Time WebRtcIsacfix_Spec2Time;
|
||||||
|
Time2Spec WebRtcIsacfix_Time2Spec;
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* WebRtcIsacfix_AssignSize(...)
|
* WebRtcIsacfix_AssignSize(...)
|
||||||
|
|||||||
@@ -84,9 +84,6 @@ void WebRtcIsacfix_FilterMaLoopC(int16_t input0, // Filter coefficient
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Declare a function pointer.
|
|
||||||
FilterMaLoopFix WebRtcIsacfix_FilterMaLoopFix;
|
|
||||||
|
|
||||||
/* filter the signal using normalized lattice filter */
|
/* filter the signal using normalized lattice filter */
|
||||||
/* MA filter */
|
/* MA filter */
|
||||||
void WebRtcIsacfix_NormLatticeFilterMa(WebRtc_Word16 orderCoef,
|
void WebRtcIsacfix_NormLatticeFilterMa(WebRtc_Word16 orderCoef,
|
||||||
|
|||||||
@@ -463,11 +463,6 @@ static __inline WebRtc_Word16 exp2_Q10_T(WebRtc_Word16 x) { // Both in and out
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Declare function pointers.
|
|
||||||
AutocorrFix WebRtcIsacfix_AutocorrFix;
|
|
||||||
CalculateResidualEnergy WebRtcIsacfix_CalculateResidualEnergy;
|
|
||||||
|
|
||||||
/* This routine calculates the residual energy for LPC.
|
/* This routine calculates the residual energy for LPC.
|
||||||
* Formula as shown in comments inside.
|
* Formula as shown in comments inside.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -95,10 +95,6 @@ const WebRtc_Word16 kSinTab2[FRAMESAMPLES/4] = {
|
|||||||
2032, -1819, 1606, -1392, 1179, -965, 750, -536, 322, -107
|
2032, -1819, 1606, -1392, 1179, -965, 750, -536, 322, -107
|
||||||
};
|
};
|
||||||
|
|
||||||
// Declare function pointers.
|
|
||||||
Spec2Time WebRtcIsacfix_Spec2Time;
|
|
||||||
Time2Spec WebRtcIsacfix_Time2Spec;
|
|
||||||
|
|
||||||
void WebRtcIsacfix_Time2SpecC(WebRtc_Word16 *inre1Q9,
|
void WebRtcIsacfix_Time2SpecC(WebRtc_Word16 *inre1Q9,
|
||||||
WebRtc_Word16 *inre2Q9,
|
WebRtc_Word16 *inre2Q9,
|
||||||
WebRtc_Word16 *outreQ7,
|
WebRtc_Word16 *outreQ7,
|
||||||
|
|||||||
Reference in New Issue
Block a user