| 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 <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // StartWaitingForSeek() call. This method also arranges for the next Seek() | 185 // StartWaitingForSeek() call. This method also arranges for the next Seek() |
| 186 // call received before a StartWaitingForSeek() call to immediately call its | 186 // call received before a StartWaitingForSeek() call to immediately call its |
| 187 // callback without waiting for any data. | 187 // callback without waiting for any data. |
| 188 // |seek_time| - The presentation timestamp for the seek request that | 188 // |seek_time| - The presentation timestamp for the seek request that |
| 189 // triggered this call. It represents the most recent position the caller is | 189 // triggered this call. It represents the most recent position the caller is |
| 190 // trying to seek to. | 190 // trying to seek to. |
| 191 void CancelPendingSeek(base::TimeDelta seek_time); | 191 void CancelPendingSeek(base::TimeDelta seek_time); |
| 192 | 192 |
| 193 // Registers a new |id| to use for AppendData() calls. |type| indicates | 193 // Registers a new |id| to use for AppendData() calls. |type| indicates |
| 194 // the MIME type for the data that we intend to append for this ID. | 194 // the MIME type for the data that we intend to append for this ID. |
| 195 // |use_legacy_frame_processor| determines which of LegacyFrameProcessor or | |
| 196 // FrameProcessor to use to process parsed frames from AppendData() calls. | |
| 197 // kOk is returned if the demuxer has enough resources to support another ID | 195 // kOk is returned if the demuxer has enough resources to support another ID |
| 198 // and supports the format indicated by |type|. | 196 // and supports the format indicated by |type|. |
| 199 // kNotSupported is returned if |type| is not a supported format. | 197 // kNotSupported is returned if |type| is not a supported format. |
| 200 // kReachedIdLimit is returned if the demuxer cannot handle another ID right | 198 // kReachedIdLimit is returned if the demuxer cannot handle another ID right |
| 201 // now. | 199 // now. |
| 202 Status AddId(const std::string& id, const std::string& type, | 200 Status AddId(const std::string& id, const std::string& type, |
| 203 std::vector<std::string>& codecs, | 201 std::vector<std::string>& codecs); |
| 204 const bool use_legacy_frame_processor); | |
| 205 | 202 |
| 206 // Removed an ID & associated resources that were previously added with | 203 // Removed an ID & associated resources that were previously added with |
| 207 // AddId(). | 204 // AddId(). |
| 208 void RemoveId(const std::string& id); | 205 void RemoveId(const std::string& id); |
| 209 | 206 |
| 210 // Gets the currently buffered ranges for the specified ID. | 207 // Gets the currently buffered ranges for the specified ID. |
| 211 Ranges<base::TimeDelta> GetBufferedRanges(const std::string& id) const; | 208 Ranges<base::TimeDelta> GetBufferedRanges(const std::string& id) const; |
| 212 | 209 |
| 213 // Appends media data to the source buffer associated with |id|, applying | 210 // Appends media data to the source buffer associated with |id|, applying |
| 214 // and possibly updating |*timestamp_offset| during coded frame processing. | 211 // and possibly updating |*timestamp_offset| during coded frame processing. |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 386 |
| 390 // Indicates that splice frame generation is enabled. | 387 // Indicates that splice frame generation is enabled. |
| 391 const bool splice_frames_enabled_; | 388 const bool splice_frames_enabled_; |
| 392 | 389 |
| 393 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 390 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
| 394 }; | 391 }; |
| 395 | 392 |
| 396 } // namespace media | 393 } // namespace media |
| 397 | 394 |
| 398 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 395 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| OLD | NEW |