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

Side by Side Diff: media/filters/chunk_demuxer.h

Issue 1091293005: MSE: Relax the 'media segment must begin with keyframe' requirement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased(noop) + addressed comments from PS12 Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_ 5 #ifndef MEDIA_FILTERS_CHUNK_DEMUXER_H_
6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_ 6 #define MEDIA_FILTERS_CHUNK_DEMUXER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 Ranges<base::TimeDelta> GetBufferedRanges(base::TimeDelta duration) const; 73 Ranges<base::TimeDelta> GetBufferedRanges(base::TimeDelta duration) const;
74 74
75 // Returns the duration of the buffered data. 75 // Returns the duration of the buffered data.
76 // Returns base::TimeDelta() if the stream has no buffered data. 76 // Returns base::TimeDelta() if the stream has no buffered data.
77 base::TimeDelta GetBufferedDuration() const; 77 base::TimeDelta GetBufferedDuration() const;
78 78
79 // Returns the size of the buffered data in bytes. 79 // Returns the size of the buffered data in bytes.
80 size_t GetBufferedSize() const; 80 size_t GetBufferedSize() const;
81 81
82 // Signal to the stream that buffers handed in through subsequent calls to 82 // Signal to the stream that buffers handed in through subsequent calls to
83 // Append() belong to a media segment that starts at |start_timestamp|. 83 // Append() belong to a coded frame group that starts at |start_timestamp|.
84 void OnNewMediaSegment(DecodeTimestamp start_timestamp); 84 void OnStartOfCodedFrameGroup(DecodeTimestamp start_timestamp);
85 85
86 // Called when midstream config updates occur. 86 // Called when midstream config updates occur.
87 // Returns true if the new config is accepted. 87 // Returns true if the new config is accepted.
88 // Returns false if the new config should trigger an error. 88 // Returns false if the new config should trigger an error.
89 bool UpdateAudioConfig(const AudioDecoderConfig& config, 89 bool UpdateAudioConfig(const AudioDecoderConfig& config,
90 const scoped_refptr<MediaLog>& media_log); 90 const scoped_refptr<MediaLog>& media_log);
91 bool UpdateVideoConfig(const VideoDecoderConfig& config, 91 bool UpdateVideoConfig(const VideoDecoderConfig& config,
92 const scoped_refptr<MediaLog>& media_log); 92 const scoped_refptr<MediaLog>& media_log);
93 void UpdateTextConfig(const TextTrackConfig& config, 93 void UpdateTextConfig(const TextTrackConfig& config,
94 const scoped_refptr<MediaLog>& media_log); 94 const scoped_refptr<MediaLog>& media_log);
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 421
422 // Indicates that splice frame generation is enabled. 422 // Indicates that splice frame generation is enabled.
423 const bool splice_frames_enabled_; 423 const bool splice_frames_enabled_;
424 424
425 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); 425 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer);
426 }; 426 };
427 427
428 } // namespace media 428 } // namespace media
429 429
430 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ 430 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_
OLDNEW
« no previous file with comments | « no previous file | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698