Chromium Code Reviews| 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 the next GetCurrentXXXDecoderConfig() should update the current config. | |
|
Ami GONE FROM CHROMIUM
2012/08/17 15:16:59
This comment implies that the contract is that GNB
acolwell GONE FROM CHROMIUM
2012/08/20 23:10:12
That was the original intent, but I like your sugg
| |
| 266 bool config_change_pending_; | |
| 267 | |
| 264 DISALLOW_COPY_AND_ASSIGN(SourceBufferStream); | 268 DISALLOW_COPY_AND_ASSIGN(SourceBufferStream); |
| 265 }; | 269 }; |
| 266 | 270 |
| 267 } // namespace media | 271 } // namespace media |
| 268 | 272 |
| 269 #endif // MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_ | 273 #endif // MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_ |
| OLD | NEW |