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

Side by Side Diff: webrtc/video/video_stream_decoder.h

Issue 2946413002: Report timing frames info in GetStats. (Closed)
Patch Set: Created 3 years, 6 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
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 void OnDiscardedPacketsUpdated(int discarded_packets) override; 70 void OnDiscardedPacketsUpdated(int discarded_packets) override;
71 void OnFrameCountsUpdated(const FrameCounts& frame_counts) override; 71 void OnFrameCountsUpdated(const FrameCounts& frame_counts) override;
72 void OnCompleteFrame(bool is_keyframe, size_t size_bytes) override; 72 void OnCompleteFrame(bool is_keyframe, size_t size_bytes) override;
73 void OnFrameBufferTimingsUpdated(int decode_ms, 73 void OnFrameBufferTimingsUpdated(int decode_ms,
74 int max_decode_ms, 74 int max_decode_ms,
75 int current_delay_ms, 75 int current_delay_ms,
76 int target_delay_ms, 76 int target_delay_ms,
77 int jitter_buffer_ms, 77 int jitter_buffer_ms,
78 int min_playout_delay_ms, 78 int min_playout_delay_ms,
79 int render_delay_ms) override; 79 int render_delay_ms) override;
80 void OnTimingFrameInfoUpdated(const TimingFrameInfo& info) override;
80 81
81 void RegisterReceiveStatisticsProxy( 82 void RegisterReceiveStatisticsProxy(
82 ReceiveStatisticsProxy* receive_statistics_proxy); 83 ReceiveStatisticsProxy* receive_statistics_proxy);
83 84
84 // Implements StatsObserver. 85 // Implements StatsObserver.
85 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override; 86 void OnRttUpdate(int64_t avg_rtt_ms, int64_t max_rtt_ms) override;
86 87
87 private: 88 private:
88 // Used for all registered callbacks except rendering. 89 // Used for all registered callbacks except rendering.
89 rtc::CriticalSection crit_; 90 rtc::CriticalSection crit_;
90 91
91 vcm::VideoReceiver* const video_receiver_; 92 vcm::VideoReceiver* const video_receiver_;
92 93
93 ReceiveStatisticsProxy* const receive_stats_callback_; 94 ReceiveStatisticsProxy* const receive_stats_callback_;
94 rtc::VideoSinkInterface<VideoFrame>* const incoming_video_stream_; 95 rtc::VideoSinkInterface<VideoFrame>* const incoming_video_stream_;
95 96
96 int64_t last_rtt_ms_ GUARDED_BY(crit_); 97 int64_t last_rtt_ms_ GUARDED_BY(crit_);
97 }; 98 };
98 99
99 } // namespace webrtc 100 } // namespace webrtc
100 101
101 #endif // WEBRTC_VIDEO_VIDEO_STREAM_DECODER_H_ 102 #endif // WEBRTC_VIDEO_VIDEO_STREAM_DECODER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698