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

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

Issue 12638030: Make AudioDecoderConfig copyable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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
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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // it must signal that a config change is needed. 263 // it must signal that a config change is needed.
264 int current_config_index_; 264 int current_config_index_;
265 265
266 // Indicates which decoder config to associate with new buffers 266 // Indicates which decoder config to associate with new buffers
267 // being appended. Each new buffer appended has its config ID set 267 // being appended. Each new buffer appended has its config ID set
268 // to the value of this field. 268 // to the value of this field.
269 int append_config_index_; 269 int append_config_index_;
270 270
271 // Holds the audio/video configs for this stream. |current_config_index_| 271 // Holds the audio/video configs for this stream. |current_config_index_|
272 // and |append_config_index_| represent indexes into one of these vectors. 272 // and |append_config_index_| represent indexes into one of these vectors.
273 std::vector<AudioDecoderConfig*> audio_configs_; 273 std::vector<AudioDecoderConfig> audio_configs_;
274 std::vector<VideoDecoderConfig> video_configs_; 274 std::vector<VideoDecoderConfig> video_configs_;
275 275
276 // True if more data needs to be appended before the Seek() can complete, 276 // True if more data needs to be appended before the Seek() can complete,
277 // false if no Seek() has been requested or the Seek() is completed. 277 // false if no Seek() has been requested or the Seek() is completed.
278 bool seek_pending_; 278 bool seek_pending_;
279 279
280 // Timestamp of the last request to Seek(). 280 // Timestamp of the last request to Seek().
281 base::TimeDelta seek_buffer_timestamp_; 281 base::TimeDelta seek_buffer_timestamp_;
282 282
283 // Pointer to the seeked-to Range. This is the range from which 283 // Pointer to the seeked-to Range. This is the range from which
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // config. GetNextBuffer() must not be called again until 319 // config. GetNextBuffer() must not be called again until
320 // GetCurrentXXXDecoderConfig() has been called. 320 // GetCurrentXXXDecoderConfig() has been called.
321 bool config_change_pending_; 321 bool config_change_pending_;
322 322
323 DISALLOW_COPY_AND_ASSIGN(SourceBufferStream); 323 DISALLOW_COPY_AND_ASSIGN(SourceBufferStream);
324 }; 324 };
325 325
326 } // namespace media 326 } // namespace media
327 327
328 #endif // MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_ 328 #endif // MEDIA_FILTERS_SOURCE_BUFFER_STREAM_H_
OLDNEW
« no previous file with comments | « media/filters/decrypting_audio_decoder_unittest.cc ('k') | media/filters/source_buffer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698