| 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // True when the next call to Append() begins a new media segment. | 251 // True when the next call to Append() begins a new media segment. |
| 252 bool new_media_segment_; | 252 bool new_media_segment_; |
| 253 | 253 |
| 254 // The timestamp of the last buffer appended to the media segment, set to | 254 // The timestamp of the last buffer appended to the media segment, set to |
| 255 // kNoTimestamp() if the beginning of the segment. | 255 // kNoTimestamp() if the beginning of the segment. |
| 256 base::TimeDelta last_buffer_timestamp_; | 256 base::TimeDelta last_buffer_timestamp_; |
| 257 | 257 |
| 258 // Stores the largest distance between two adjacent buffers in this stream. | 258 // Stores the largest distance between two adjacent buffers in this stream. |
| 259 base::TimeDelta max_interbuffer_distance_; | 259 base::TimeDelta max_interbuffer_distance_; |
| 260 | 260 |
| 261 // The maximum amount of data in bytes the stream will keep in memory. | 261 // The maximum amount of data in bytes the stream will keep in memory. |
| 262 int memory_limit_; | 262 int memory_limit_; |
| 263 | 263 |
| 264 // Indicates that a kConfigChanged status has been reported by GetNextBuffer() |
| 265 // and GetCurrentXXXDecoderConfig() must be called to update the current |
| 266 // config. GetNextBuffer() must not be called again until |
| 267 // GetCurrentXXXDecoderConfig() has been called. |
| 268 bool config_change_pending_; |
| 269 |
| 264 DISALLOW_COPY_AND_ASSIGN(SourceBufferStream); | 270 DISALLOW_COPY_AND_ASSIGN(SourceBufferStream); |
| 265 }; | 271 }; |
| 266 | 272 |
| 267 } // namespace media | 273 } // namespace media |
| 268 | 274 |
| 269 #endif // MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_ | 275 #endif // MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_ |
| OLD | NEW |