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

Side by Side Diff: webrtc/modules/audio_coding/codecs/audio_encoder.cc

Issue 1896953004: Roll chromium_revision 212f976fef..61ed337cfe (387882:388120) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix Clang warnings Created 4 years, 8 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/audio_encoder.h" 11 #include "webrtc/modules/audio_coding/codecs/audio_encoder.h"
12 12
13 #include "webrtc/base/checks.h" 13 #include "webrtc/base/checks.h"
14 #include "webrtc/base/trace_event.h" 14 #include "webrtc/base/trace_event.h"
15 15
16 namespace webrtc { 16 namespace webrtc {
17 17
18 AudioEncoder::EncodedInfo::EncodedInfo() = default; 18 AudioEncoder::EncodedInfo::EncodedInfo() = default;
19 19
20 AudioEncoder::EncodedInfo::EncodedInfo(const EncodedInfo&) = default;
21
20 AudioEncoder::EncodedInfo::~EncodedInfo() = default; 22 AudioEncoder::EncodedInfo::~EncodedInfo() = default;
21 23
22 int AudioEncoder::RtpTimestampRateHz() const { 24 int AudioEncoder::RtpTimestampRateHz() const {
23 return SampleRateHz(); 25 return SampleRateHz();
24 } 26 }
25 27
26 AudioEncoder::EncodedInfo AudioEncoder::Encode( 28 AudioEncoder::EncodedInfo AudioEncoder::Encode(
27 uint32_t rtp_timestamp, 29 uint32_t rtp_timestamp,
28 rtc::ArrayView<const int16_t> audio, 30 rtc::ArrayView<const int16_t> audio,
29 rtc::Buffer* encoded) { 31 rtc::Buffer* encoded) {
(...skipping 24 matching lines...) Expand all
54 void AudioEncoder::SetProjectedPacketLossRate(double fraction) {} 56 void AudioEncoder::SetProjectedPacketLossRate(double fraction) {}
55 57
56 void AudioEncoder::SetTargetBitrate(int target_bps) {} 58 void AudioEncoder::SetTargetBitrate(int target_bps) {}
57 59
58 size_t AudioEncoder::MaxEncodedBytes() const { 60 size_t AudioEncoder::MaxEncodedBytes() const {
59 RTC_CHECK(false); 61 RTC_CHECK(false);
60 return 0; 62 return 0;
61 } 63 }
62 64
63 } // namespace webrtc 65 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698