Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: media/filters/source_buffer_stream.h

Issue 10828425: Add support for config changes during playback to FFmpegVideoDecoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add config_change_pending_ initializers to constructors. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/filters/pipeline_integration_test.cc ('k') | media/filters/source_buffer_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/filters/pipeline_integration_test.cc ('k') | media/filters/source_buffer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698