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

Side by Side Diff: webrtc/modules/audio_coding/codecs/pcm16b/audio_encoder_pcm16b.cc

Issue 2969653002: Update includes for webrtc/{base => rtc_base} rename (1/3) (Closed)
Patch Set: Rebased onto 89c4a7e57d524b13fbe0c823a83a4c10c2e63bd0 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/pcm16b/audio_encoder_pcm16b.h" 11 #include "webrtc/modules/audio_coding/codecs/pcm16b/audio_encoder_pcm16b.h"
12 12
13 #include <algorithm> 13 #include <algorithm>
14 14
15 #include "webrtc/base/checks.h"
16 #include "webrtc/base/safe_conversions.h"
17 #include "webrtc/base/string_to_number.h"
18 #include "webrtc/common_types.h" 15 #include "webrtc/common_types.h"
19 #include "webrtc/modules/audio_coding/codecs/pcm16b/pcm16b.h" 16 #include "webrtc/modules/audio_coding/codecs/pcm16b/pcm16b.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 size_t AudioEncoderPcm16B::EncodeCall(const int16_t* audio, 23 size_t AudioEncoderPcm16B::EncodeCall(const int16_t* audio,
24 size_t input_len, 24 size_t input_len,
25 uint8_t* encoded) { 25 uint8_t* encoded) {
26 return WebRtcPcm16b_Encode(audio, input_len, encoded); 26 return WebRtcPcm16b_Encode(audio, input_len, encoded);
27 } 27 }
28 28
29 size_t AudioEncoderPcm16B::BytesPerSample() const { 29 size_t AudioEncoderPcm16B::BytesPerSample() const {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 return rtc::Optional<AudioCodecInfo>( 88 return rtc::Optional<AudioCodecInfo>(
89 {config.sample_rate_hz, config.num_channels, 89 {config.sample_rate_hz, config.num_channels,
90 config.sample_rate_hz * bits_per_sample * 90 config.sample_rate_hz * bits_per_sample *
91 rtc::dchecked_cast<int>(config.num_channels)}); 91 rtc::dchecked_cast<int>(config.num_channels)});
92 } 92 }
93 } 93 }
94 return rtc::Optional<AudioCodecInfo>(); 94 return rtc::Optional<AudioCodecInfo>();
95 } 95 }
96 96
97 } // namespace webrtc 97 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698