| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 // AddId(). | 219 // AddId(). |
| 220 void RemoveId(const std::string& id); | 220 void RemoveId(const std::string& id); |
| 221 | 221 |
| 222 // Gets the currently buffered ranges for the specified ID. | 222 // Gets the currently buffered ranges for the specified ID. |
| 223 Ranges<base::TimeDelta> GetBufferedRanges(const std::string& id) const; | 223 Ranges<base::TimeDelta> GetBufferedRanges(const std::string& id) const; |
| 224 | 224 |
| 225 // Appends media data to the source buffer associated with |id|, applying | 225 // Appends media data to the source buffer associated with |id|, applying |
| 226 // and possibly updating |*timestamp_offset| during coded frame processing. | 226 // and possibly updating |*timestamp_offset| during coded frame processing. |
| 227 // |append_window_start| and |append_window_end| correspond to the MSE spec's | 227 // |append_window_start| and |append_window_end| correspond to the MSE spec's |
| 228 // similarly named source buffer attributes that are used in coded frame | 228 // similarly named source buffer attributes that are used in coded frame |
| 229 // processing. | 229 // processing. Returns true on success, false if the caller needs to run the |
| 230 void AppendData(const std::string& id, | 230 // append error algorithm with decode error parameter set to true. |
| 231 bool AppendData(const std::string& id, |
| 231 const uint8_t* data, | 232 const uint8_t* data, |
| 232 size_t length, | 233 size_t length, |
| 233 base::TimeDelta append_window_start, | 234 base::TimeDelta append_window_start, |
| 234 base::TimeDelta append_window_end, | 235 base::TimeDelta append_window_end, |
| 235 base::TimeDelta* timestamp_offset); | 236 base::TimeDelta* timestamp_offset); |
| 236 | 237 |
| 237 // Aborts parsing the current segment and reset the parser to a state where | 238 // Aborts parsing the current segment and reset the parser to a state where |
| 238 // it can accept a new segment. | 239 // it can accept a new segment. |
| 239 // Some pending frames can be emitted during that process. These frames are | 240 // Some pending frames can be emitted during that process. These frames are |
| 240 // applied |timestamp_offset|. | 241 // applied |timestamp_offset|. |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 int detected_audio_track_count_; | 424 int detected_audio_track_count_; |
| 424 int detected_video_track_count_; | 425 int detected_video_track_count_; |
| 425 int detected_text_track_count_; | 426 int detected_text_track_count_; |
| 426 | 427 |
| 427 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); | 428 DISALLOW_COPY_AND_ASSIGN(ChunkDemuxer); |
| 428 }; | 429 }; |
| 429 | 430 |
| 430 } // namespace media | 431 } // namespace media |
| 431 | 432 |
| 432 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ | 433 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_H_ |
| OLD | NEW |