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

Side by Side Diff: webrtc/modules/audio_coding/main/interface/audio_coding_module.h

Issue 1322973004: Fold AudioEncoderMutable into AudioEncoder (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: review fixes Created 5 years, 3 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
« no previous file with comments | « webrtc/modules/audio_coding/main/acm2/codec_owner_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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
(...skipping 10 matching lines...) Expand all
21 #include "webrtc/system_wrappers/interface/clock.h" 21 #include "webrtc/system_wrappers/interface/clock.h"
22 #include "webrtc/typedefs.h" 22 #include "webrtc/typedefs.h"
23 23
24 namespace webrtc { 24 namespace webrtc {
25 25
26 // forward declarations 26 // forward declarations
27 struct CodecInst; 27 struct CodecInst;
28 struct WebRtcRTPHeader; 28 struct WebRtcRTPHeader;
29 class AudioFrame; 29 class AudioFrame;
30 class RTPFragmentationHeader; 30 class RTPFragmentationHeader;
31 class AudioEncoderMutable; 31 class AudioEncoder;
32 class AudioDecoder; 32 class AudioDecoder;
33 33
34 #define WEBRTC_10MS_PCM_AUDIO 960 // 16 bits super wideband 48 kHz 34 #define WEBRTC_10MS_PCM_AUDIO 960 // 16 bits super wideband 48 kHz
35 35
36 // Callback class used for sending data ready to be packetized 36 // Callback class used for sending data ready to be packetized
37 class AudioPacketizationCallback { 37 class AudioPacketizationCallback {
38 public: 38 public:
39 virtual ~AudioPacketizationCallback() {} 39 virtual ~AudioPacketizationCallback() {}
40 40
41 virtual int32_t SendData(FrameType frame_type, 41 virtual int32_t SendData(FrameType frame_type,
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // 218 //
219 // Return value: 219 // Return value:
220 // -1 if failed to initialize, 220 // -1 if failed to initialize,
221 // 0 if succeeded. 221 // 0 if succeeded.
222 // 222 //
223 virtual int32_t RegisterSendCodec(const CodecInst& send_codec) = 0; 223 virtual int32_t RegisterSendCodec(const CodecInst& send_codec) = 0;
224 224
225 // Registers |external_speech_encoder| as encoder. The new encoder will 225 // Registers |external_speech_encoder| as encoder. The new encoder will
226 // replace any previously registered speech encoder (internal or external). 226 // replace any previously registered speech encoder (internal or external).
227 virtual void RegisterExternalSendCodec( 227 virtual void RegisterExternalSendCodec(
228 AudioEncoderMutable* external_speech_encoder) = 0; 228 AudioEncoder* external_speech_encoder) = 0;
229 229
230 /////////////////////////////////////////////////////////////////////////// 230 ///////////////////////////////////////////////////////////////////////////
231 // int32_t SendCodec() 231 // int32_t SendCodec()
232 // Get parameters for the codec currently registered as send codec. 232 // Get parameters for the codec currently registered as send codec.
233 // 233 //
234 // Output: 234 // Output:
235 // -current_send_codec : parameters of the send codec. 235 // -current_send_codec : parameters of the send codec.
236 // 236 //
237 // Return value: 237 // Return value:
238 // -1 if failed to get send codec, 238 // -1 if failed to get send codec,
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1042 virtual std::vector<uint16_t> GetNackList(int round_trip_time_ms) const = 0; 1042 virtual std::vector<uint16_t> GetNackList(int round_trip_time_ms) const = 0;
1043 1043
1044 // Returns the timing statistics for calls to Get10MsAudio. 1044 // Returns the timing statistics for calls to Get10MsAudio.
1045 virtual void GetDecodingCallStatistics( 1045 virtual void GetDecodingCallStatistics(
1046 AudioDecodingCallStats* call_stats) const = 0; 1046 AudioDecodingCallStats* call_stats) const = 0;
1047 }; 1047 };
1048 1048
1049 } // namespace webrtc 1049 } // namespace webrtc
1050 1050
1051 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_ 1051 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/main/acm2/codec_owner_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698