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

Unified Diff: webrtc/video/rtp_streams_synchronizer.h

Issue 2385763002: Add stats for frequency offset when converting RTP timestamp to NTP time. (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/video/rtp_streams_synchronizer.h
diff --git a/webrtc/video/rtp_streams_synchronizer.h b/webrtc/video/rtp_streams_synchronizer.h
index 082bec7b6e0f4fd3c5d582a0ebc5ebb170b42bdd..bc24d6f8071762c390b3a2e42cbbcaba1ef5afc2 100644
--- a/webrtc/video/rtp_streams_synchronizer.h
+++ b/webrtc/video/rtp_streams_synchronizer.h
@@ -46,8 +46,11 @@ class RtpStreamsSynchronizer : public Module {
// Gets the sync offset between the current played out audio frame and the
// video |frame|. Returns true on success, false otherwise.
+ // The estimated frequency is the frequency used in the RTP to NTP timestamp
+ // conversion.
bool GetStreamSyncOffsetInMs(const VideoFrame& frame,
- int64_t* stream_offset_ms) const;
+ int64_t* stream_offset_ms,
+ double* estimated_freq_khz) const;
private:
Clock* const clock_;

Powered by Google App Engine
This is Rietveld 408576698