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

Unified Diff: webrtc/modules/audio_processing/agc/pole_zero_filter.h

Issue 1181933002: Pull the Voice Activity Detector out from the AGC (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove unused files from isolate Created 5 years, 6 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
Index: webrtc/modules/audio_processing/agc/pole_zero_filter.h
diff --git a/webrtc/modules/audio_processing/agc/pole_zero_filter.h b/webrtc/modules/audio_processing/agc/pole_zero_filter.h
deleted file mode 100644
index c9d96fdd42154aa640eca0fc9c4c09f0c220f91d..0000000000000000000000000000000000000000
--- a/webrtc/modules/audio_processing/agc/pole_zero_filter.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AGC_POLE_ZERO_FILTER_H_
-#define WEBRTC_MODULES_AUDIO_PROCESSING_AGC_POLE_ZERO_FILTER_H_
-
-#include "webrtc/typedefs.h"
-
-namespace webrtc {
-
-class PoleZeroFilter {
- public:
- ~PoleZeroFilter() {}
-
- static PoleZeroFilter* Create(const float* numerator_coefficients,
- int order_numerator,
- const float* denominator_coefficients,
- int order_denominator);
-
- int Filter(const int16_t* in, int num_input_samples, float* output);
-
- private:
- PoleZeroFilter(const float* numerator_coefficients,
- int order_numerator,
- const float* denominator_coefficients,
- int order_denominator);
-
- static const int kMaxFilterOrder = 24;
-
- int16_t past_input_[kMaxFilterOrder * 2];
- float past_output_[kMaxFilterOrder * 2];
-
- float numerator_coefficients_[kMaxFilterOrder + 1];
- float denominator_coefficients_[kMaxFilterOrder + 1];
-
- int order_numerator_;
- int order_denominator_;
- int highest_order_;
-};
-
-} // namespace webrtc
-
-#endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC_POLE_ZERO_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698