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

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

Issue 1267683002: Hooked up RtcEventLog. It lives in Voice Engine and pointers are propagated to ACM and Call. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Initial version Created 5 years, 4 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) 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
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_ 12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_
13 13
14 #include <vector> 14 #include <vector>
15 15
16 #include "webrtc/common_types.h" 16 #include "webrtc/common_types.h"
17 #include "webrtc/modules/audio_coding/main/acm2/acm_codec_database.h" 17 #include "webrtc/modules/audio_coding/main/acm2/acm_codec_database.h"
18 #include "webrtc/modules/audio_coding/main/interface/audio_coding_module_typedef s.h" 18 #include "webrtc/modules/audio_coding/main/interface/audio_coding_module_typedef s.h"
19 #include "webrtc/modules/audio_coding/neteq/interface/neteq.h" 19 #include "webrtc/modules/audio_coding/neteq/interface/neteq.h"
20 #include "webrtc/modules/interface/module.h" 20 #include "webrtc/modules/interface/module.h"
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 AudioEncoderMutable;
29 class AudioFrame; 30 class AudioFrame;
31 class RtcEventLog;
30 class RTPFragmentationHeader; 32 class RTPFragmentationHeader;
31 class AudioEncoderMutable;
32 33
33 #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
34 35
35 // Callback class used for sending data ready to be packetized 36 // Callback class used for sending data ready to be packetized
36 class AudioPacketizationCallback { 37 class AudioPacketizationCallback {
37 public: 38 public:
38 virtual ~AudioPacketizationCallback() {} 39 virtual ~AudioPacketizationCallback() {}
39 40
40 virtual int32_t SendData(FrameType frame_type, 41 virtual int32_t SendData(FrameType frame_type,
41 uint8_t payload_type, 42 uint8_t payload_type,
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 // 972 //
972 // |max_nack_list_size| should be positive (none zero) and less than or 973 // |max_nack_list_size| should be positive (none zero) and less than or
973 // equal to |Nack::kNackListSizeLimit|. Otherwise, No change is applied and -1 974 // equal to |Nack::kNackListSizeLimit|. Otherwise, No change is applied and -1
974 // is returned. 0 is returned at success. 975 // is returned. 0 is returned at success.
975 // 976 //
976 virtual int EnableNack(size_t max_nack_list_size) = 0; 977 virtual int EnableNack(size_t max_nack_list_size) = 0;
977 978
978 // Disable NACK. 979 // Disable NACK.
979 virtual void DisableNack() = 0; 980 virtual void DisableNack() = 0;
980 981
982 ///////////////////////////////////////////////////////////////////////////
983 // void SetEventLog(RtcEventLog* event_log)
984 //
985 // Set an RtcEventLog object to enable logging of debug events inside the
986 // audio coding module.
987 //
988 // Input:
989 // -event_log : pointer to logging object.
990 virtual void SetEventLog(RtcEventLog* event_log) = 0;
991
981 // 992 //
982 // Get a list of packets to be retransmitted. |round_trip_time_ms| is an 993 // Get a list of packets to be retransmitted. |round_trip_time_ms| is an
983 // estimate of the round-trip-time (in milliseconds). Missing packets which 994 // estimate of the round-trip-time (in milliseconds). Missing packets which
984 // will be playout in a shorter time than the round-trip-time (with respect 995 // will be playout in a shorter time than the round-trip-time (with respect
985 // to the time this API is called) will not be included in the list. 996 // to the time this API is called) will not be included in the list.
986 // 997 //
987 // Negative |round_trip_time_ms| results is an error message and empty list 998 // Negative |round_trip_time_ms| results is an error message and empty list
988 // is returned. 999 // is returned.
989 // 1000 //
990 virtual std::vector<uint16_t> GetNackList( 1001 virtual std::vector<uint16_t> GetNackList(
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 virtual std::vector<uint16_t> GetNackList(int round_trip_time_ms) const = 0; 1173 virtual std::vector<uint16_t> GetNackList(int round_trip_time_ms) const = 0;
1163 1174
1164 // Returns the timing statistics for calls to Get10MsAudio. 1175 // Returns the timing statistics for calls to Get10MsAudio.
1165 virtual void GetDecodingCallStatistics( 1176 virtual void GetDecodingCallStatistics(
1166 AudioDecodingCallStats* call_stats) const = 0; 1177 AudioDecodingCallStats* call_stats) const = 0;
1167 }; 1178 };
1168 1179
1169 } // namespace webrtc 1180 } // namespace webrtc
1170 1181
1171 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_ 1182 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698