OLD | NEW |
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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 // properly, false if the offset cannot be applied because we're in the | 128 // properly, false if the offset cannot be applied because we're in the |
129 // middle of parsing a media segment. | 129 // middle of parsing a media segment. |
130 bool SetTimestampOffset(const std::string& id, base::TimeDelta offset); | 130 bool SetTimestampOffset(const std::string& id, base::TimeDelta offset); |
131 | 131 |
132 // Called to signal changes in the "end of stream" | 132 // Called to signal changes in the "end of stream" |
133 // state. UnmarkEndOfStream() must not be called if a matching | 133 // state. UnmarkEndOfStream() must not be called if a matching |
134 // MarkEndOfStream() has not come before it. | 134 // MarkEndOfStream() has not come before it. |
135 void MarkEndOfStream(PipelineStatus status); | 135 void MarkEndOfStream(PipelineStatus status); |
136 void UnmarkEndOfStream(); | 136 void UnmarkEndOfStream(); |
137 | 137 |
| 138 // Set the append window start and end values for the source buffer |
| 139 // associated with |id|. |
| 140 void SetAppendWindowStart(const std::string& id, base::TimeDelta start); |
| 141 void SetAppendWindowEnd(const std::string& id, base::TimeDelta end); |
| 142 |
138 void Shutdown(); | 143 void Shutdown(); |
139 | 144 |
140 void SetMemoryLimitsForTesting(int memory_limit); | 145 void SetMemoryLimitsForTesting(int memory_limit); |
141 | 146 |
142 private: | 147 private: |
143 enum State { | 148 enum State { |
144 WAITING_FOR_INIT, | 149 WAITING_FOR_INIT, |
145 INITIALIZING, | 150 INITIALIZING, |
146 INITIALIZED, | 151 INITIALIZED, |
147 ENDED, | 152 ENDED, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 // removed with RemoveID() but can not be re-added (yet). | 259 // removed with RemoveID() but can not be re-added (yet). |
255 std::string source_id_audio_; | 260 std::string source_id_audio_; |
256 std::string source_id_video_; | 261 std::string source_id_video_; |
257 | 262 |
258 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 263 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
259 }; | 264 }; |
260 | 265 |
261 } // namespace media | 266 } // namespace media |
262 | 267 |
263 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 268 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
OLD | NEW |