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

Unified Diff: media/filters/frame_processor.h

Issue 1089873006: WIP - MSE: Drop non-keyframes that lack keyframe dependency (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Checkpoint of WIP while I work on prereq https://codereview.chromium.org/1091293005/ Created 5 years, 8 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/filters/chunk_demuxer.cc ('k') | media/filters/frame_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/frame_processor.h
diff --git a/media/filters/frame_processor.h b/media/filters/frame_processor.h
index 0afcf0ae17fc4be7fabd6c391db95bf3ab68256f..382967c2a09e2d61e4752f76a8919949a884504a 100644
--- a/media/filters/frame_processor.h
+++ b/media/filters/frame_processor.h
@@ -90,6 +90,17 @@ class MEDIA_EXPORT FrameProcessor {
// preroll buffers.
void OnPossibleAudioConfigUpdate(const AudioDecoderConfig& config);
+ // Must be called when the range removal algorithm has removed frames from the
+ // track associated with |track_id| in the inclusive range [|start_dts|,
+ // |end_dts|].
+ // Used to detect a potentially introduced append discontinuity caused by
+ // the range removal algorithm.
+ // Returns false on error, such as if |track_id| is unknown. Otherwise returns
+ // true.
+ bool OnRangeRemoval(StreamParser::TrackId track_id,
+ DecodeTimestamp start_dts,
+ DecodeTimestamp end_dts);
+
private:
typedef std::map<StreamParser::TrackId, MseTrackBuffer*> TrackBufferMap;
« no previous file with comments | « media/filters/chunk_demuxer.cc ('k') | media/filters/frame_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698