| 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 // SourceBufferStream is a data structure that stores media Buffers in ranges. | 5 // SourceBufferStream is a data structure that stores media Buffers in ranges. |
| 6 // Buffers can be appended out of presentation order. Buffers are retrieved by | 6 // Buffers can be appended out of presentation order. Buffers are retrieved by |
| 7 // seeking to the desired start point and calling GetNextBuffer(). Buffers are | 7 // seeking to the desired start point and calling GetNextBuffer(). Buffers are |
| 8 // returned in sequential presentation order. | 8 // returned in sequential presentation order. |
| 9 | 9 |
| 10 #ifndef MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_ | 10 #ifndef MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_ |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 // Indicates which of the splice buffers in |splice_buffer_| should be | 412 // Indicates which of the splice buffers in |splice_buffer_| should be |
| 413 // handled out next. | 413 // handled out next. |
| 414 size_t splice_buffers_index_; | 414 size_t splice_buffers_index_; |
| 415 | 415 |
| 416 // Indicates that all buffers before |pending_buffer_| have been handed out. | 416 // Indicates that all buffers before |pending_buffer_| have been handed out. |
| 417 bool pending_buffers_complete_; | 417 bool pending_buffers_complete_; |
| 418 | 418 |
| 419 // Indicates that splice frame generation is enabled. | 419 // Indicates that splice frame generation is enabled. |
| 420 const bool splice_frames_enabled_; | 420 const bool splice_frames_enabled_; |
| 421 | 421 |
| 422 // To prevent log spam, count the number of splice generation warnings and |
| 423 // successes logged. |
| 424 int num_splice_generation_warning_logs_; |
| 425 int num_splice_generation_success_logs_; |
| 426 |
| 422 DISALLOW_COPY_AND_ASSIGN(SourceBufferStream); | 427 DISALLOW_COPY_AND_ASSIGN(SourceBufferStream); |
| 423 }; | 428 }; |
| 424 | 429 |
| 425 } // namespace media | 430 } // namespace media |
| 426 | 431 |
| 427 #endif // MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_ | 432 #endif // MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_ |
| OLD | NEW |