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

Unified Diff: media/filters/source_buffer_range.h

Issue 2171133002: Implement opus seek preroll for MediaSourceExtensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback Created 4 years 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/BUILD.gn ('k') | media/filters/source_buffer_range.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/source_buffer_range.h
diff --git a/media/filters/source_buffer_range.h b/media/filters/source_buffer_range.h
index 5a612142fc53a6a09c95136eac1814592730255e..3a9fcc36f3af90d0aeede1b4713db4c0c396257e 100644
--- a/media/filters/source_buffer_range.h
+++ b/media/filters/source_buffer_range.h
@@ -37,6 +37,15 @@ class SourceBufferRange {
ALLOW_GAPS
};
+ // Return the config ID for the buffer at |timestamp|. Precondition: callers
+ // must first verify CanSeekTo(timestamp) == true.
+ int GetConfigIdAtTime(DecodeTimestamp timestamp);
+
+ // Return true if all buffers in range of [start, end] have the same config
+ // ID. Precondition: callers must first verify that
+ // CanSeekTo(start) == CanSeekTo(end) == true.
+ bool SameConfigThruRange(DecodeTimestamp start, DecodeTimestamp end);
+
// Sequential buffers with the same decode timestamp make sense under certain
// conditions, typically when the first buffer is a keyframe. Due to some
// atypical media append behaviors where a new keyframe might have the same
« no previous file with comments | « media/BUILD.gn ('k') | media/filters/source_buffer_range.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698