OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Implementation of Pipeline. | 5 // Implementation of Pipeline. |
6 | 6 |
7 #ifndef MEDIA_BASE_PIPELINE_IMPL_H_ | 7 #ifndef MEDIA_BASE_PIPELINE_IMPL_H_ |
8 #define MEDIA_BASE_PIPELINE_IMPL_H_ | 8 #define MEDIA_BASE_PIPELINE_IMPL_H_ |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 // when playback has finished. | 397 // when playback has finished. |
398 scoped_refptr<AudioRenderer> audio_renderer_; | 398 scoped_refptr<AudioRenderer> audio_renderer_; |
399 scoped_refptr<VideoRenderer> video_renderer_; | 399 scoped_refptr<VideoRenderer> video_renderer_; |
400 | 400 |
401 // Vector of threads owned by the pipeline and being used by filters. | 401 // Vector of threads owned by the pipeline and being used by filters. |
402 typedef std::vector<base::Thread*> FilterThreadVector; | 402 typedef std::vector<base::Thread*> FilterThreadVector; |
403 FilterThreadVector filter_threads_; | 403 FilterThreadVector filter_threads_; |
404 | 404 |
405 // Helper class that stores filter references during pipeline | 405 // Helper class that stores filter references during pipeline |
406 // initialization. | 406 // initialization. |
407 class PipelineInitState { | 407 class PipelineInitState; |
408 public: | |
409 scoped_refptr<DataSource> data_source_; | |
410 scoped_refptr<Demuxer> demuxer_; | |
411 scoped_refptr<AudioDecoder> audio_decoder_; | |
412 scoped_refptr<VideoDecoder> video_decoder_; | |
413 }; | |
414 | |
415 scoped_ptr<PipelineInitState> pipeline_init_state_; | 408 scoped_ptr<PipelineInitState> pipeline_init_state_; |
416 | 409 |
417 FRIEND_TEST_ALL_PREFIXES(PipelineImplTest, GetBufferedTime); | 410 FRIEND_TEST_ALL_PREFIXES(PipelineImplTest, GetBufferedTime); |
418 FRIEND_TEST_ALL_PREFIXES(PipelineImplTest, AudioStreamShorterThanVideo); | 411 FRIEND_TEST_ALL_PREFIXES(PipelineImplTest, AudioStreamShorterThanVideo); |
419 | 412 |
420 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); | 413 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); |
421 }; | 414 }; |
422 | 415 |
423 } // namespace media | 416 } // namespace media |
424 | 417 |
425 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ | 418 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ |
OLD | NEW |