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

Unified Diff: webrtc/modules/audio_coding/neteq/audio_classifier.h

Issue 2615983002: Remove AudioClassifier (Closed)
Patch Set: Created 3 years, 11 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 | « webrtc/modules/audio_coding/BUILD.gn ('k') | webrtc/modules/audio_coding/neteq/audio_classifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/neteq/audio_classifier.h
diff --git a/webrtc/modules/audio_coding/neteq/audio_classifier.h b/webrtc/modules/audio_coding/neteq/audio_classifier.h
deleted file mode 100644
index c94bd02a00247137ac1bdaa1cffbd70ad957d3e0..0000000000000000000000000000000000000000
--- a/webrtc/modules/audio_coding/neteq/audio_classifier.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (c) 2014 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_CODING_NETEQ_AUDIO_CLASSIFIER_H_
-#define WEBRTC_MODULES_AUDIO_CODING_NETEQ_AUDIO_CLASSIFIER_H_
-
-#include "webrtc/base/ignore_wundef.h"
-
-extern "C" {
-RTC_PUSH_IGNORING_WUNDEF()
-#include "celt.h"
-RTC_POP_IGNORING_WUNDEF()
-#include "analysis.h"
-#include "opus_private.h"
-}
-
-#include "webrtc/typedefs.h"
-
-namespace webrtc {
-
-// This class provides a speech/music classification and is a wrapper over the
-// Opus classifier. It currently only supports 48 kHz mono or stereo with a
-// frame size of 20 ms.
-
-class AudioClassifier {
- public:
- AudioClassifier();
- virtual ~AudioClassifier();
-
- // Classifies one frame of audio data in input,
- // input_length : must be channels * 960;
- // channels : must be 1 (mono) or 2 (stereo).
- bool Analysis(const int16_t* input, int input_length, int channels);
-
- // Gets the current classification : true = music, false = speech.
- virtual bool is_music() const;
-
- // Gets the current music probability.
- float music_probability() const { return music_probability_; }
-
- private:
- AnalysisInfo analysis_info_;
- bool is_music_;
- float music_probability_;
- const CELTMode* celt_mode_;
- TonalityAnalysisState analysis_state_;
-};
-
-} // namespace webrtc
-
-#endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_AUDIO_CLASSIFIER_H_
« no previous file with comments | « webrtc/modules/audio_coding/BUILD.gn ('k') | webrtc/modules/audio_coding/neteq/audio_classifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698