| 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 RtcpPacketTypeCounterObserver, | 39 public RtcpPacketTypeCounterObserver, |
| 40 public StreamDataCountersCallback, | 40 public StreamDataCountersCallback, |
| 41 public CallStatsObserver { | 41 public CallStatsObserver { |
| 42 public: | 42 public: |
| 43 ReceiveStatisticsProxy(const VideoReceiveStream::Config* config, | 43 ReceiveStatisticsProxy(const VideoReceiveStream::Config* config, |
| 44 Clock* clock); | 44 Clock* clock); |
| 45 virtual ~ReceiveStatisticsProxy(); | 45 virtual ~ReceiveStatisticsProxy(); |
| 46 | 46 |
| 47 VideoReceiveStream::Stats GetStats() const; | 47 VideoReceiveStream::Stats GetStats() const; |
| 48 | 48 |
| 49 void OnDecodedFrame(rtc::Optional<uint8_t> qp); | 49 void OnDecodedFrame(rtc::Optional<uint8_t> qp, VideoContentType content_type); |
| 50 void OnSyncOffsetUpdated(int64_t sync_offset_ms, double estimated_freq_khz); | 50 void OnSyncOffsetUpdated(int64_t sync_offset_ms, double estimated_freq_khz); |
| 51 void OnRenderedFrame(const VideoFrame& frame); | 51 void OnRenderedFrame(const VideoFrame& frame); |
| 52 void OnIncomingPayloadType(int payload_type); | 52 void OnIncomingPayloadType(int payload_type); |
| 53 void OnDecoderImplementationName(const char* implementation_name); | 53 void OnDecoderImplementationName(const char* implementation_name); |
| 54 void OnIncomingRate(unsigned int framerate, unsigned int bitrate_bps); | 54 void OnIncomingRate(unsigned int framerate, unsigned int bitrate_bps); |
| 55 | 55 |
| 56 void OnPreDecode(const EncodedImage& encoded_image, | 56 void OnPreDecode(const EncodedImage& encoded_image, |
| 57 const CodecSpecificInfo* codec_specific_info); | 57 const CodecSpecificInfo* codec_specific_info); |
| 58 | 58 |
| 59 // Overrides VCMReceiveStatisticsCallback. | 59 // Overrides VCMReceiveStatisticsCallback. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 rtc::RateTracker render_pixel_tracker_ GUARDED_BY(crit_); | 133 rtc::RateTracker render_pixel_tracker_ GUARDED_BY(crit_); |
| 134 rtc::RateTracker total_byte_tracker_ GUARDED_BY(crit_); | 134 rtc::RateTracker total_byte_tracker_ GUARDED_BY(crit_); |
| 135 SampleCounter render_width_counter_ GUARDED_BY(crit_); | 135 SampleCounter render_width_counter_ GUARDED_BY(crit_); |
| 136 SampleCounter render_height_counter_ GUARDED_BY(crit_); | 136 SampleCounter render_height_counter_ GUARDED_BY(crit_); |
| 137 SampleCounter sync_offset_counter_ GUARDED_BY(crit_); | 137 SampleCounter sync_offset_counter_ GUARDED_BY(crit_); |
| 138 SampleCounter decode_time_counter_ GUARDED_BY(crit_); | 138 SampleCounter decode_time_counter_ GUARDED_BY(crit_); |
| 139 SampleCounter jitter_buffer_delay_counter_ GUARDED_BY(crit_); | 139 SampleCounter jitter_buffer_delay_counter_ GUARDED_BY(crit_); |
| 140 SampleCounter target_delay_counter_ GUARDED_BY(crit_); | 140 SampleCounter target_delay_counter_ GUARDED_BY(crit_); |
| 141 SampleCounter current_delay_counter_ GUARDED_BY(crit_); | 141 SampleCounter current_delay_counter_ GUARDED_BY(crit_); |
| 142 SampleCounter delay_counter_ GUARDED_BY(crit_); | 142 SampleCounter delay_counter_ GUARDED_BY(crit_); |
| 143 SampleCounter e2e_delay_counter_ GUARDED_BY(crit_); | 143 SampleCounter e2e_delay_counter_video_ GUARDED_BY(crit_); |
| 144 SampleCounter e2e_delay_counter_screenshare_ GUARDED_BY(crit_); |
| 145 int64_t e2e_delay_max_ms_video_ GUARDED_BY(crit_); |
| 146 int64_t e2e_delay_max_ms_screenshare_ GUARDED_BY(crit_); |
| 144 MaxCounter freq_offset_counter_ GUARDED_BY(crit_); | 147 MaxCounter freq_offset_counter_ GUARDED_BY(crit_); |
| 145 int64_t first_report_block_time_ms_ GUARDED_BY(crit_); | 148 int64_t first_report_block_time_ms_ GUARDED_BY(crit_); |
| 146 ReportBlockStats report_block_stats_ GUARDED_BY(crit_); | 149 ReportBlockStats report_block_stats_ GUARDED_BY(crit_); |
| 147 QpCounters qp_counters_; // Only accessed on the decoding thread. | 150 QpCounters qp_counters_; // Only accessed on the decoding thread. |
| 148 std::map<uint32_t, StreamDataCounters> rtx_stats_ GUARDED_BY(crit_); | 151 std::map<uint32_t, StreamDataCounters> rtx_stats_ GUARDED_BY(crit_); |
| 149 int64_t avg_rtt_ms_ GUARDED_BY(crit_); | 152 int64_t avg_rtt_ms_ GUARDED_BY(crit_); |
| 150 mutable std::map<int64_t, size_t> frame_window_ GUARDED_BY(&crit_); | 153 mutable std::map<int64_t, size_t> frame_window_ GUARDED_BY(&crit_); |
| 154 VideoContentType last_content_type_ GUARDED_BY(&crit_); |
| 151 }; | 155 }; |
| 152 | 156 |
| 153 } // namespace webrtc | 157 } // namespace webrtc |
| 154 #endif // WEBRTC_VIDEO_RECEIVE_STATISTICS_PROXY_H_ | 158 #endif // WEBRTC_VIDEO_RECEIVE_STATISTICS_PROXY_H_ |
| OLD | NEW |