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

Unified Diff: media/cast/sender/rtp_timestamp_helper.h

Issue 502333002: [Cast] In Audio/VideoSender, drop frames when too-long a duration is in-flight. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix missing brace (rebase oops). Created 6 years, 4 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
« no previous file with comments | « media/cast/sender/frame_sender.cc ('k') | media/cast/sender/rtp_timestamp_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/rtp_timestamp_helper.h
diff --git a/media/cast/sender/rtp_timestamp_helper.h b/media/cast/sender/rtp_timestamp_helper.h
deleted file mode 100644
index 8f56681dac3651579884f8ce619a61718677c21a..0000000000000000000000000000000000000000
--- a/media/cast/sender/rtp_timestamp_helper.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_CAST_SENDER_RTP_TIMESTAMP_HELPER_H_
-#define MEDIA_CAST_SENDER_RTP_TIMESTAMP_HELPER_H_
-
-#include "base/basictypes.h"
-#include "base/time/time.h"
-
-namespace media {
-namespace cast {
-
-// A helper class used to convert current time ticks into RTP timestamp.
-class RtpTimestampHelper {
- public:
- explicit RtpTimestampHelper(int frequency);
- ~RtpTimestampHelper();
-
- // Compute a RTP timestamp using current time, last encoded time and
- // last encoded RTP timestamp.
- // Return true if |rtp_timestamp| is computed.
- bool GetCurrentTimeAsRtpTimestamp(const base::TimeTicks& now,
- uint32* rtp_timestamp) const;
-
- // Store the capture time and the corresponding RTP timestamp for the
- // last encoded frame.
- void StoreLatestTime(base::TimeTicks capture_time, uint32 rtp_timestamp);
-
- private:
- int frequency_;
- base::TimeTicks last_capture_time_;
- uint32 last_rtp_timestamp_;
-
- DISALLOW_COPY_AND_ASSIGN(RtpTimestampHelper);
-};
-
-} // namespace cast
-} // namespace media
-
-#endif // MEDIA_CAST_SENDER_RTP_TIMESTAMP_HELPER_H_
« no previous file with comments | « media/cast/sender/frame_sender.cc ('k') | media/cast/sender/rtp_timestamp_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698