| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 28 matching lines...) Expand all Loading... |
| 39 public StreamDataCountersCallback { | 39 public StreamDataCountersCallback { |
| 40 public: | 40 public: |
| 41 ReceiveStatisticsProxy(const VideoReceiveStream::Config& config, | 41 ReceiveStatisticsProxy(const VideoReceiveStream::Config& config, |
| 42 Clock* clock); | 42 Clock* clock); |
| 43 virtual ~ReceiveStatisticsProxy(); | 43 virtual ~ReceiveStatisticsProxy(); |
| 44 | 44 |
| 45 VideoReceiveStream::Stats GetStats() const; | 45 VideoReceiveStream::Stats GetStats() const; |
| 46 | 46 |
| 47 void OnDecodedFrame(); | 47 void OnDecodedFrame(); |
| 48 void OnRenderedFrame(const VideoFrame& frame); | 48 void OnRenderedFrame(const VideoFrame& frame); |
| 49 void OnSyncOffsetUpdated(int64_t sync_offset_ms); |
| 49 void OnIncomingPayloadType(int payload_type); | 50 void OnIncomingPayloadType(int payload_type); |
| 50 void OnDecoderImplementationName(const char* implementation_name); | 51 void OnDecoderImplementationName(const char* implementation_name); |
| 51 void OnIncomingRate(unsigned int framerate, unsigned int bitrate_bps); | 52 void OnIncomingRate(unsigned int framerate, unsigned int bitrate_bps); |
| 52 void OnDecoderTiming(int decode_ms, | 53 void OnDecoderTiming(int decode_ms, |
| 53 int max_decode_ms, | 54 int max_decode_ms, |
| 54 int current_delay_ms, | 55 int current_delay_ms, |
| 55 int target_delay_ms, | 56 int target_delay_ms, |
| 56 int jitter_buffer_ms, | 57 int jitter_buffer_ms, |
| 57 int min_playout_delay_ms, | 58 int min_playout_delay_ms, |
| 58 int render_delay_ms, | 59 int render_delay_ms, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 const VideoReceiveStream::Config config_; | 100 const VideoReceiveStream::Config config_; |
| 100 | 101 |
| 101 rtc::CriticalSection crit_; | 102 rtc::CriticalSection crit_; |
| 102 VideoReceiveStream::Stats stats_ GUARDED_BY(crit_); | 103 VideoReceiveStream::Stats stats_ GUARDED_BY(crit_); |
| 103 RateStatistics decode_fps_estimator_ GUARDED_BY(crit_); | 104 RateStatistics decode_fps_estimator_ GUARDED_BY(crit_); |
| 104 RateStatistics renders_fps_estimator_ GUARDED_BY(crit_); | 105 RateStatistics renders_fps_estimator_ GUARDED_BY(crit_); |
| 105 rtc::RateTracker render_fps_tracker_ GUARDED_BY(crit_); | 106 rtc::RateTracker render_fps_tracker_ GUARDED_BY(crit_); |
| 106 rtc::RateTracker render_pixel_tracker_ GUARDED_BY(crit_); | 107 rtc::RateTracker render_pixel_tracker_ GUARDED_BY(crit_); |
| 107 SampleCounter render_width_counter_ GUARDED_BY(crit_); | 108 SampleCounter render_width_counter_ GUARDED_BY(crit_); |
| 108 SampleCounter render_height_counter_ GUARDED_BY(crit_); | 109 SampleCounter render_height_counter_ GUARDED_BY(crit_); |
| 110 SampleCounter sync_offset_counter_ GUARDED_BY(crit_); |
| 109 SampleCounter decode_time_counter_ GUARDED_BY(crit_); | 111 SampleCounter decode_time_counter_ GUARDED_BY(crit_); |
| 110 SampleCounter delay_counter_ GUARDED_BY(crit_); | 112 SampleCounter delay_counter_ GUARDED_BY(crit_); |
| 111 ReportBlockStats report_block_stats_ GUARDED_BY(crit_); | 113 ReportBlockStats report_block_stats_ GUARDED_BY(crit_); |
| 112 QpCounters qp_counters_; // Only accessed on the decoding thread. | 114 QpCounters qp_counters_; // Only accessed on the decoding thread. |
| 113 std::map<uint32_t, StreamDataCounters> rtx_stats_ GUARDED_BY(crit_); | 115 std::map<uint32_t, StreamDataCounters> rtx_stats_ GUARDED_BY(crit_); |
| 114 }; | 116 }; |
| 115 | 117 |
| 116 } // namespace webrtc | 118 } // namespace webrtc |
| 117 #endif // WEBRTC_VIDEO_RECEIVE_STATISTICS_PROXY_H_ | 119 #endif // WEBRTC_VIDEO_RECEIVE_STATISTICS_PROXY_H_ |
| OLD | NEW |