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

Side by Side Diff: webrtc/api/audio_codecs/audio_encoder.cc

Issue 2799033006: Injectable audio encoders: Moved audio encoder, factory and builtin factory to api/. (Closed)
Patch Set: More backwards-compatibility! Created 3 years, 7 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/api/audio_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 AudioEncoder::EncodedInfo::EncodedInfo(const EncodedInfo&) = default; 19 AudioEncoder::EncodedInfo::EncodedInfo(const EncodedInfo&) = default;
20 AudioEncoder::EncodedInfo::EncodedInfo(EncodedInfo&&) = default; 20 AudioEncoder::EncodedInfo::EncodedInfo(EncodedInfo&&) = default;
21 AudioEncoder::EncodedInfo::~EncodedInfo() = default; 21 AudioEncoder::EncodedInfo::~EncodedInfo() = default;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 bool AudioEncoder::SetApplication(Application application) { 57 bool AudioEncoder::SetApplication(Application application) {
58 return false; 58 return false;
59 } 59 }
60 60
61 void AudioEncoder::SetMaxPlaybackRate(int frequency_hz) {} 61 void AudioEncoder::SetMaxPlaybackRate(int frequency_hz) {}
62 62
63 void AudioEncoder::SetTargetBitrate(int target_bps) {} 63 void AudioEncoder::SetTargetBitrate(int target_bps) {}
64 64
65 rtc::ArrayView<std::unique_ptr<AudioEncoder>> 65 rtc::ArrayView<std::unique_ptr<AudioEncoder>>
66 AudioEncoder::ReclaimContainedEncoders() { return nullptr; } 66 AudioEncoder::ReclaimContainedEncoders() {
67 return nullptr;
68 }
67 69
68 bool AudioEncoder::EnableAudioNetworkAdaptor(const std::string& config_string, 70 bool AudioEncoder::EnableAudioNetworkAdaptor(const std::string& config_string,
69 RtcEventLog* event_log) { 71 RtcEventLog* event_log) {
70 return false; 72 return false;
71 } 73 }
72 74
73 void AudioEncoder::DisableAudioNetworkAdaptor() {} 75 void AudioEncoder::DisableAudioNetworkAdaptor() {}
74 76
75 void AudioEncoder::OnReceivedUplinkPacketLossFraction( 77 void AudioEncoder::OnReceivedUplinkPacketLossFraction(
76 float uplink_packet_loss_fraction) {} 78 float uplink_packet_loss_fraction) {}
(...skipping 10 matching lines...) Expand all
87 rtc::Optional<int64_t> probing_interval_ms) {} 89 rtc::Optional<int64_t> probing_interval_ms) {}
88 90
89 void AudioEncoder::OnReceivedRtt(int rtt_ms) {} 91 void AudioEncoder::OnReceivedRtt(int rtt_ms) {}
90 92
91 void AudioEncoder::OnReceivedOverhead(size_t overhead_bytes_per_packet) {} 93 void AudioEncoder::OnReceivedOverhead(size_t overhead_bytes_per_packet) {}
92 94
93 void AudioEncoder::SetReceiverFrameLengthRange(int min_frame_length_ms, 95 void AudioEncoder::SetReceiverFrameLengthRange(int min_frame_length_ms,
94 int max_frame_length_ms) {} 96 int max_frame_length_ms) {}
95 97
96 } // namespace webrtc 98 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/audio_codecs/audio_encoder.h ('k') | webrtc/api/audio_codecs/audio_encoder_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698