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