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

Unified Diff: media/filters/chunk_demuxer.h

Issue 180153003: Implement core of compliant MediaSource coded frame processing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT in preparation for dcommit Created 6 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
« no previous file with comments | « content/renderer/media/websourcebuffer_impl.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/chunk_demuxer.h
diff --git a/media/filters/chunk_demuxer.h b/media/filters/chunk_demuxer.h
index 6324d79aee1c489f0dace94b9c0e85102873be74..807839370bc4de79ea2a66688d38e1adaa82fedb 100644
--- a/media/filters/chunk_demuxer.h
+++ b/media/filters/chunk_demuxer.h
@@ -23,7 +23,7 @@ namespace media {
class FFmpegURLProtocol;
class SourceState;
-class ChunkDemuxerStream : public DemuxerStream {
+class MEDIA_EXPORT ChunkDemuxerStream : public DemuxerStream {
public:
typedef std::deque<scoped_refptr<StreamParserBuffer> > BufferQueue;
@@ -193,10 +193,7 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
// Registers a new |id| to use for AppendData() calls. |type| indicates
// the MIME type for the data that we intend to append for this ID.
// |use_legacy_frame_processor| determines which of LegacyFrameProcessor or
- // a (not yet implemented) more compliant frame processor to use to process
- // parsed frames from AppendData() calls.
- // TODO(wolenetz): Enable usage of new frame processor based on this flag.
- // See http://crbug.com/249422.
+ // FrameProcessor to use to process parsed frames from AppendData() calls.
// kOk is returned if the demuxer has enough resources to support another ID
// and supports the format indicated by |type|.
// kNotSupported is returned if |type| is not a supported format.
@@ -255,6 +252,12 @@ class MEDIA_EXPORT ChunkDemuxer : public Demuxer {
// mode.
void SetSequenceMode(const std::string& id, bool sequence_mode);
+ // Signals the coded frame processor for the source buffer associated with
+ // |id| to update its group start timestamp to be |timestamp_offset| if it is
+ // in sequence append mode.
+ void SetGroupStartTimestampIfInSequenceMode(const std::string& id,
+ base::TimeDelta timestamp_offset);
+
// Called to signal changes in the "end of stream"
// state. UnmarkEndOfStream() must not be called if a matching
// MarkEndOfStream() has not come before it.
« no previous file with comments | « content/renderer/media/websourcebuffer_impl.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698