OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_ |
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_ | 6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 const ::media::VideoDecoderConfig& config, | 50 const ::media::VideoDecoderConfig& config, |
51 scoped_ptr<CodedFrameProvider> frame_provider, | 51 scoped_ptr<CodedFrameProvider> frame_provider, |
52 const ::media::PipelineStatusCB& status_cb) = 0; | 52 const ::media::PipelineStatusCB& status_cb) = 0; |
53 | 53 |
54 // Control the media pipeline state machine. | 54 // Control the media pipeline state machine. |
55 virtual void StartPlayingFrom(base::TimeDelta time) = 0; | 55 virtual void StartPlayingFrom(base::TimeDelta time) = 0; |
56 virtual void Flush(const ::media::PipelineStatusCB& status_cb) = 0; | 56 virtual void Flush(const ::media::PipelineStatusCB& status_cb) = 0; |
57 virtual void Stop() = 0; | 57 virtual void Stop() = 0; |
58 | 58 |
59 // Set the playback rate. | 59 // Set the playback rate. |
60 virtual void SetPlaybackRate(float playback_rate) = 0; | 60 virtual void SetPlaybackRate(double playback_rate) = 0; |
61 | 61 |
62 private: | 62 private: |
63 DISALLOW_COPY_AND_ASSIGN(MediaPipeline); | 63 DISALLOW_COPY_AND_ASSIGN(MediaPipeline); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace media | 66 } // namespace media |
67 } // namespace chromecast | 67 } // namespace chromecast |
68 | 68 |
69 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_ | 69 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_H_ |
OLD | NEW |