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

Side by Side Diff: webrtc/audio_receive_stream.h

Issue 1390753002: Implement AudioReceiveStream::GetStats(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: merge master Created 5 years, 2 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/audio/webrtc_audio.gypi ('k') | webrtc/call/bitrate_estimator_tests.cc » ('j') | 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) 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 #ifndef WEBRTC_AUDIO_RECEIVE_STREAM_H_ 11 #ifndef WEBRTC_AUDIO_RECEIVE_STREAM_H_
12 #define WEBRTC_AUDIO_RECEIVE_STREAM_H_ 12 #define WEBRTC_AUDIO_RECEIVE_STREAM_H_
13 13
14 #include <map> 14 #include <map>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/config.h" 18 #include "webrtc/config.h"
19 #include "webrtc/stream.h" 19 #include "webrtc/stream.h"
20 #include "webrtc/transport.h" 20 #include "webrtc/transport.h"
21 #include "webrtc/typedefs.h" 21 #include "webrtc/typedefs.h"
22 22
23 namespace webrtc { 23 namespace webrtc {
24 24
25 class AudioDecoder; 25 class AudioDecoder;
26 26
27 class AudioReceiveStream : public ReceiveStream { 27 class AudioReceiveStream : public ReceiveStream {
28 public: 28 public:
29 struct Stats {}; 29 struct Stats {
30 uint32_t remote_ssrc = 0;
31 int64_t bytes_rcvd = 0;
32 uint32_t packets_rcvd = 0;
33 uint32_t packets_lost = 0;
34 float fraction_lost = 0.0f;
35 std::string codec_name;
36 uint32_t ext_seqnum = 0;
37 uint32_t jitter_ms = 0;
38 uint32_t jitter_buffer_ms = 0;
39 uint32_t jitter_buffer_preferred_ms = 0;
40 uint32_t delay_estimate_ms = 0;
41 int32_t audio_level = -1;
42 float expand_rate = 0.0f;
43 float speech_expand_rate = 0.0f;
44 float secondary_decoded_rate = 0.0f;
45 float accelerate_rate = 0.0f;
46 float preemptive_expand_rate = 0.0f;
47 int32_t decoding_calls_to_silence_generator = 0;
48 int32_t decoding_calls_to_neteq = 0;
49 int32_t decoding_normal = 0;
50 int32_t decoding_plc = 0;
51 int32_t decoding_cng = 0;
52 int32_t decoding_plc_cng = 0;
53 int64_t capture_start_ntp_time_ms = 0;
54 };
30 55
31 struct Config { 56 struct Config {
32 std::string ToString() const; 57 std::string ToString() const;
33 58
34 // Receive-stream specific RTP settings. 59 // Receive-stream specific RTP settings.
35 struct Rtp { 60 struct Rtp {
36 std::string ToString() const; 61 std::string ToString() const;
37 62
38 // Synchronization source (stream identifier) to be received. 63 // Synchronization source (stream identifier) to be received.
39 uint32_t remote_ssrc = 0; 64 uint32_t remote_ssrc = 0;
(...skipping 27 matching lines...) Expand all
67 92
68 // TODO(pbos): Remove config option once combined A/V BWE is always on. 93 // TODO(pbos): Remove config option once combined A/V BWE is always on.
69 bool combined_audio_video_bwe = false; 94 bool combined_audio_video_bwe = false;
70 }; 95 };
71 96
72 virtual Stats GetStats() const = 0; 97 virtual Stats GetStats() const = 0;
73 }; 98 };
74 } // namespace webrtc 99 } // namespace webrtc
75 100
76 #endif // WEBRTC_AUDIO_RECEIVE_STREAM_H_ 101 #endif // WEBRTC_AUDIO_RECEIVE_STREAM_H_
OLDNEW
« no previous file with comments | « webrtc/audio/webrtc_audio.gypi ('k') | webrtc/call/bitrate_estimator_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698