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

Unified Diff: media/base/stream_parser.h

Issue 10803019: Chrome-side implementation of media source timestamp offset (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « no previous file | media/filters/chunk_demuxer.h » ('j') | media/mp4/mp4_stream_parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/stream_parser.h
diff --git a/media/base/stream_parser.h b/media/base/stream_parser.h
index 3ad3cd77839e62c21c7d8436abf325d21132f834..8976ff80b08356732f5dcfde08b9080a85e40f70 100644
--- a/media/base/stream_parser.h
+++ b/media/base/stream_parser.h
@@ -86,6 +86,15 @@ class MEDIA_EXPORT StreamParser {
// Returns true if the parse succeeds.
virtual bool Parse(const uint8* buf, int size) = 0;
+ // Gives the parser a time offset to apply to the buffers it parsers,
+ // beginning at the next media segment.
+ // First parameter - The time offset.
+ virtual void SetTimestampOffset(base::TimeDelta offset) = 0;
+
+ // Called to clear the offset set from a call SetTimestampOffset(). Does
+ // nothing if SetTimestampOffset() was never called before.
+ virtual void ClearTimestampOffset() = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(StreamParser);
};
« no previous file with comments | « no previous file | media/filters/chunk_demuxer.h » ('j') | media/mp4/mp4_stream_parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698