Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1127)

Unified Diff: webrtc/modules/audio_coding/codecs/isac/main/source/filter_functions.c

Issue 1296513002: Remove WebRtcIsac_Highpass_float(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix build failure Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/codecs/isac/main/source/filter_functions.c
diff --git a/webrtc/modules/audio_coding/codecs/isac/main/source/filter_functions.c b/webrtc/modules/audio_coding/codecs/isac/main/source/filter_functions.c
index 76a9e7530d07505ddca93ac82241e8f7aa5ab117..089f26ec039150b46ab510713e04e7d969b671c6 100644
--- a/webrtc/modules/audio_coding/codecs/isac/main/source/filter_functions.c
+++ b/webrtc/modules/audio_coding/codecs/isac/main/source/filter_functions.c
@@ -245,8 +245,6 @@ void WebRtcIsac_DecimateAllpass(const double *in,
* HP_a = [1, -2*real(p), abs(p)^2]; */
static const double a_coef[2] = { 1.86864659625574, -0.88360000000000};
static const double b_coef[2] = {-1.99524591718270, 0.99600400000000};
-static const float a_coef_float[2] = { 1.86864659625574f, -0.88360000000000f};
-static const float b_coef_float[2] = {-1.99524591718270f, 0.99600400000000f};
/* second order high-pass filter */
void WebRtcIsac_Highpass(const double *in, double *out, double *state, int N)
@@ -259,14 +257,3 @@ void WebRtcIsac_Highpass(const double *in, double *out, double *state, int N)
state[0] = b_coef[1] * *in++ + a_coef[1] * *out++;
}
}
-
-void WebRtcIsac_Highpass_float(const float *in, double *out, double *state, int N)
-{
- int k;
-
- for (k=0; k<N; k++) {
- *out = (double)*in + state[1];
- state[1] = state[0] + b_coef_float[0] * *in + a_coef_float[0] * *out;
- state[0] = b_coef_float[1] * (double)*in++ + a_coef_float[1] * *out++;
- }
-}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698