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

Side by Side Diff: content/browser/speech/endpointer/energy_endpointer.h

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The EnergyEndpointer class finds likely speech onset and offset points. 5 // The EnergyEndpointer class finds likely speech onset and offset points.
6 // 6 //
7 // The implementation described here is about the simplest possible. 7 // The implementation described here is about the simplest possible.
8 // It is based on timings of threshold crossings for overall signal 8 // It is based on timings of threshold crossings for overall signal
9 // RMS. It is suitable for light weight applications. 9 // RMS. It is suitable for light weight applications.
10 // 10 //
(...skipping 18 matching lines...) Expand all
29 // If used in noisy conditions, the endpointer should be started and run in the 29 // If used in noisy conditions, the endpointer should be started and run in the
30 // EnvironmentEstimation mode, for at least 200ms, before switching to 30 // EnvironmentEstimation mode, for at least 200ms, before switching to
31 // UserInputMode. 31 // UserInputMode.
32 // Audio feedback contamination can appear in the input audio, if not cut 32 // Audio feedback contamination can appear in the input audio, if not cut
33 // out or handled by echo cancellation. Audio feedback can trigger a false 33 // out or handled by echo cancellation. Audio feedback can trigger a false
34 // accept. The false accepts can be ignored by setting 34 // accept. The false accepts can be ignored by setting
35 // ep_contamination_rejection_period. 35 // ep_contamination_rejection_period.
36 36
37 #ifndef CONTENT_BROWSER_SPEECH_ENDPOINTER_ENERGY_ENDPOINTER_H_ 37 #ifndef CONTENT_BROWSER_SPEECH_ENDPOINTER_ENERGY_ENDPOINTER_H_
38 #define CONTENT_BROWSER_SPEECH_ENDPOINTER_ENERGY_ENDPOINTER_H_ 38 #define CONTENT_BROWSER_SPEECH_ENDPOINTER_ENERGY_ENDPOINTER_H_
39 #pragma once
40 39
41 #include <vector> 40 #include <vector>
42 41
43 #include "base/basictypes.h" 42 #include "base/basictypes.h"
44 #include "base/memory/scoped_ptr.h" 43 #include "base/memory/scoped_ptr.h"
45 #include "content/browser/speech/endpointer/energy_endpointer_params.h" 44 #include "content/browser/speech/endpointer/energy_endpointer_params.h"
46 #include "content/common/content_export.h" 45 #include "content/common/content_export.h"
47 46
48 namespace speech { 47 namespace speech {
49 48
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // Time when mode switched from environment estimation to user input. This 146 // Time when mode switched from environment estimation to user input. This
148 // is used to time forced rejection of audio feedback contamination. 147 // is used to time forced rejection of audio feedback contamination.
149 int64 user_input_start_time_us_; 148 int64 user_input_start_time_us_;
150 149
151 DISALLOW_COPY_AND_ASSIGN(EnergyEndpointer); 150 DISALLOW_COPY_AND_ASSIGN(EnergyEndpointer);
152 }; 151 };
153 152
154 } // namespace speech 153 } // namespace speech
155 154
156 #endif // CONTENT_BROWSER_SPEECH_ENDPOINTER_ENERGY_ENDPOINTER_H_ 155 #endif // CONTENT_BROWSER_SPEECH_ENDPOINTER_ENERGY_ENDPOINTER_H_
OLDNEW
« no previous file with comments | « content/browser/speech/endpointer/endpointer.h ('k') | content/browser/speech/endpointer/energy_endpointer_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698