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

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

Issue 1438663003: modules/audio_coding: Remove some codec include dirs (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase again Created 5 years, 1 month 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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/include/audio_decoder_pcm16b .h" 11 #include "webrtc/modules/audio_coding/codecs/pcm16b/audio_decoder_pcm16b.h"
12 12
13 #include "webrtc/base/checks.h" 13 #include "webrtc/base/checks.h"
14 #include "webrtc/modules/audio_coding/codecs/pcm16b/include/pcm16b.h" 14 #include "webrtc/modules/audio_coding/codecs/pcm16b/pcm16b.h"
15 15
16 namespace webrtc { 16 namespace webrtc {
17 17
18 AudioDecoderPcm16B::AudioDecoderPcm16B(size_t num_channels) 18 AudioDecoderPcm16B::AudioDecoderPcm16B(size_t num_channels)
19 : num_channels_(num_channels) { 19 : num_channels_(num_channels) {
20 RTC_DCHECK_GE(num_channels, 1u); 20 RTC_DCHECK_GE(num_channels, 1u);
21 } 21 }
22 22
23 void AudioDecoderPcm16B::Reset() {} 23 void AudioDecoderPcm16B::Reset() {}
24 24
(...skipping 14 matching lines...) Expand all
39 return static_cast<int>(ret); 39 return static_cast<int>(ret);
40 } 40 }
41 41
42 int AudioDecoderPcm16B::PacketDuration(const uint8_t* encoded, 42 int AudioDecoderPcm16B::PacketDuration(const uint8_t* encoded,
43 size_t encoded_len) const { 43 size_t encoded_len) const {
44 // Two encoded byte per sample per channel. 44 // Two encoded byte per sample per channel.
45 return static_cast<int>(encoded_len / (2 * Channels())); 45 return static_cast<int>(encoded_len / (2 * Channels()));
46 } 46 }
47 47
48 } // namespace webrtc 48 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698