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 #ifndef MEDIA_BASE_PIPELINE_H_ | 5 #ifndef MEDIA_BASE_PIPELINE_H_ |
6 #define MEDIA_BASE_PIPELINE_H_ | 6 #define MEDIA_BASE_PIPELINE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 class Clock; | 31 class Clock; |
32 class FilterCollection; | 32 class FilterCollection; |
33 class MediaLog; | 33 class MediaLog; |
34 class TextRenderer; | 34 class TextRenderer; |
35 class TextTrackConfig; | 35 class TextTrackConfig; |
36 class VideoRenderer; | 36 class VideoRenderer; |
37 | 37 |
38 // Metadata describing a pipeline once it has been initialized. | 38 // Metadata describing a pipeline once it has been initialized. |
39 struct PipelineMetadata { | 39 struct PipelineMetadata { |
40 PipelineMetadata() : has_audio(false), has_video(false) {} | 40 PipelineMetadata() : has_audio(false), has_video(false), rotation(0) {} |
41 | 41 |
42 bool has_audio; | 42 bool has_audio; |
43 bool has_video; | 43 bool has_video; |
44 gfx::Size natural_size; | 44 gfx::Size natural_size; |
| 45 int rotation; |
45 base::Time timeline_offset; | 46 base::Time timeline_offset; |
46 }; | 47 }; |
47 | 48 |
48 typedef base::Callback<void(PipelineMetadata)> PipelineMetadataCB; | 49 typedef base::Callback<void(PipelineMetadata)> PipelineMetadataCB; |
49 | 50 |
50 // Pipeline runs the media pipeline. Filters are created and called on the | 51 // Pipeline runs the media pipeline. Filters are created and called on the |
51 // task runner injected into this object. Pipeline works like a state | 52 // task runner injected into this object. Pipeline works like a state |
52 // machine to perform asynchronous initialization, pausing, seeking and playing. | 53 // machine to perform asynchronous initialization, pausing, seeking and playing. |
53 // | 54 // |
54 // Here's a state diagram that describes the lifetime of this object. | 55 // Here's a state diagram that describes the lifetime of this object. |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 bool underflow_disabled_for_testing_; | 435 bool underflow_disabled_for_testing_; |
435 | 436 |
436 base::ThreadChecker thread_checker_; | 437 base::ThreadChecker thread_checker_; |
437 | 438 |
438 DISALLOW_COPY_AND_ASSIGN(Pipeline); | 439 DISALLOW_COPY_AND_ASSIGN(Pipeline); |
439 }; | 440 }; |
440 | 441 |
441 } // namespace media | 442 } // namespace media |
442 | 443 |
443 #endif // MEDIA_BASE_PIPELINE_H_ | 444 #endif // MEDIA_BASE_PIPELINE_H_ |
OLD | NEW |