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

Side by Side Diff: webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.cc

Issue 2964773002: Revert "Update includes for webrtc/{base => rtc_base} rename (1/3)" (Closed)
Patch Set: Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include "webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h" 11 #include "webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h"
12 12
13 #include <algorithm> 13 #include <algorithm>
14 #include <limits> 14 #include <limits>
15 #include "webrtc/base/checks.h"
16 #include "webrtc/base/safe_conversions.h"
17 #include "webrtc/base/string_to_number.h"
15 #include "webrtc/common_types.h" 18 #include "webrtc/common_types.h"
16 #include "webrtc/modules/audio_coding/codecs/ilbc/ilbc.h" 19 #include "webrtc/modules/audio_coding/codecs/ilbc/ilbc.h"
17 #include "webrtc/rtc_base/checks.h"
18 #include "webrtc/rtc_base/safe_conversions.h"
19 #include "webrtc/rtc_base/string_to_number.h"
20 20
21 namespace webrtc { 21 namespace webrtc {
22 22
23 namespace { 23 namespace {
24 24
25 const int kSampleRateHz = 8000; 25 const int kSampleRateHz = 8000;
26 26
27 AudioEncoderIlbcConfig CreateConfig(const CodecInst& codec_inst) { 27 AudioEncoderIlbcConfig CreateConfig(const CodecInst& codec_inst) {
28 AudioEncoderIlbcConfig config; 28 AudioEncoderIlbcConfig config;
29 config.frame_size_ms = codec_inst.pacsize / 8; 29 config.frame_size_ms = codec_inst.pacsize / 8;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 switch (num_10ms_frames_per_packet_) { 186 switch (num_10ms_frames_per_packet_) {
187 case 2: return 38; 187 case 2: return 38;
188 case 3: return 50; 188 case 3: return 50;
189 case 4: return 2 * 38; 189 case 4: return 2 * 38;
190 case 6: return 2 * 50; 190 case 6: return 2 * 50;
191 default: FATAL(); 191 default: FATAL();
192 } 192 }
193 } 193 }
194 194
195 } // namespace webrtc 195 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698