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

Unified Diff: webrtc/media/base/videoframefactory.h

Issue 2017443003: Implement timestamp translation/filter in VideoCapturer. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix offset update equation, and nits. Created 4 years, 7 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/media/base/videoframefactory.h
diff --git a/webrtc/media/base/videoframefactory.h b/webrtc/media/base/videoframefactory.h
index 6aa2ce51733b0c01ea8d5187ace63865a2d32571..d1cc28d3d7c578f612c2364262aab6a6de7d4a90 100644
--- a/webrtc/media/base/videoframefactory.h
+++ b/webrtc/media/base/videoframefactory.h
@@ -24,7 +24,7 @@ class VideoFrame;
// depending on the subclass of VideoFrameFactory.
class VideoFrameFactory {
public:
- VideoFrameFactory() : apply_rotation_(false) {}
+ VideoFrameFactory() : apply_rotation_(false), timestamp_offset_us_(0) {}
virtual ~VideoFrameFactory() {}
// The returned frame aliases the aliased_frame if the input color
@@ -47,9 +47,11 @@ class VideoFrameFactory {
int output_height) const;
void SetApplyRotation(bool enable) { apply_rotation_ = enable; }
+ void SetTimestampOffset(int64_t offset) { timestamp_offset_us_ = offset; }
protected:
bool apply_rotation_;
+ int64_t timestamp_offset_us_;
pthatcher1 2016/05/27 22:47:44 This could use a comment about what effect is has
nisse-webrtc 2016/05/30 08:57:30 Done.
private:
// An internal frame buffer to avoid reallocations. It is mutable because it

Powered by Google App Engine
This is Rietveld 408576698