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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // AddId(). | 212 // AddId(). |
213 void RemoveId(const std::string& id); | 213 void RemoveId(const std::string& id); |
214 | 214 |
215 // Gets the currently buffered ranges for the specified ID. | 215 // Gets the currently buffered ranges for the specified ID. |
216 Ranges<base::TimeDelta> GetBufferedRanges(const std::string& id) const; | 216 Ranges<base::TimeDelta> GetBufferedRanges(const std::string& id) const; |
217 | 217 |
218 // Appends media data to the source buffer associated with |id|, applying | 218 // Appends media data to the source buffer associated with |id|, applying |
219 // and possibly updating |*timestamp_offset| during coded frame processing. | 219 // and possibly updating |*timestamp_offset| during coded frame processing. |
220 // |append_window_start| and |append_window_end| correspond to the MSE spec's | 220 // |append_window_start| and |append_window_end| correspond to the MSE spec's |
221 // similarly named source buffer attributes that are used in coded frame | 221 // similarly named source buffer attributes that are used in coded frame |
222 // processing. | 222 // processing. Returns true on success, false if the caller needs to run the |
223 void AppendData(const std::string& id, | 223 // append error algorithm with decode error parameter set to true. |
| 224 bool AppendData(const std::string& id, |
224 const uint8_t* data, | 225 const uint8_t* data, |
225 size_t length, | 226 size_t length, |
226 base::TimeDelta append_window_start, | 227 base::TimeDelta append_window_start, |
227 base::TimeDelta append_window_end, | 228 base::TimeDelta append_window_end, |
228 base::TimeDelta* timestamp_offset); | 229 base::TimeDelta* timestamp_offset); |
229 | 230 |
230 // Aborts parsing the current segment and reset the parser to a state where | 231 // Aborts parsing the current segment and reset the parser to a state where |
231 // it can accept a new segment. | 232 // it can accept a new segment. |
232 // Some pending frames can be emitted during that process. These frames are | 233 // Some pending frames can be emitted during that process. These frames are |
233 // applied |timestamp_offset|. | 234 // applied |timestamp_offset|. |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
413 int detected_audio_track_count_; | 414 int detected_audio_track_count_; |
414 int detected_video_track_count_; | 415 int detected_video_track_count_; |
415 int detected_text_track_count_; | 416 int detected_text_track_count_; |
416 | 417 |
417 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 418 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
418 }; | 419 }; |
419 | 420 |
420 } // namespace media | 421 } // namespace media |
421 | 422 |
422 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 423 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
OLD | NEW |