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_IMPL_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ |
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ | 6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 const ::media::AudioDecoderConfig& config, | 44 const ::media::AudioDecoderConfig& config, |
45 scoped_ptr<CodedFrameProvider> frame_provider, | 45 scoped_ptr<CodedFrameProvider> frame_provider, |
46 const ::media::PipelineStatusCB& status_cb) override; | 46 const ::media::PipelineStatusCB& status_cb) override; |
47 void InitializeVideo( | 47 void InitializeVideo( |
48 const ::media::VideoDecoderConfig& config, | 48 const ::media::VideoDecoderConfig& config, |
49 scoped_ptr<CodedFrameProvider> frame_provider, | 49 scoped_ptr<CodedFrameProvider> frame_provider, |
50 const ::media::PipelineStatusCB& status_cb) override; | 50 const ::media::PipelineStatusCB& status_cb) override; |
51 void StartPlayingFrom(base::TimeDelta time) override; | 51 void StartPlayingFrom(base::TimeDelta time) override; |
52 void Flush(const ::media::PipelineStatusCB& status_cb) override; | 52 void Flush(const ::media::PipelineStatusCB& status_cb) override; |
53 void Stop() override; | 53 void Stop() override; |
54 void SetPlaybackRate(float playback_rate) override; | 54 void SetPlaybackRate(double playback_rate) override; |
55 | 55 |
56 AudioPipelineImpl* GetAudioPipelineImpl() const; | 56 AudioPipelineImpl* GetAudioPipelineImpl() const; |
57 VideoPipelineImpl* GetVideoPipelineImpl() const; | 57 VideoPipelineImpl* GetVideoPipelineImpl() const; |
58 | 58 |
59 void SetCdm(BrowserCdmCast* cdm); | 59 void SetCdm(BrowserCdmCast* cdm); |
60 | 60 |
61 private: | 61 private: |
62 void StateTransition(const ::media::PipelineStatusCB& status_cb, | 62 void StateTransition(const ::media::PipelineStatusCB& status_cb, |
63 ::media::PipelineStatus status); | 63 ::media::PipelineStatus status); |
64 | 64 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 base::WeakPtr<MediaPipelineImpl> weak_this_; | 104 base::WeakPtr<MediaPipelineImpl> weak_this_; |
105 base::WeakPtrFactory<MediaPipelineImpl> weak_factory_; | 105 base::WeakPtrFactory<MediaPipelineImpl> weak_factory_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(MediaPipelineImpl); | 107 DISALLOW_COPY_AND_ASSIGN(MediaPipelineImpl); |
108 }; | 108 }; |
109 | 109 |
110 } // namespace media | 110 } // namespace media |
111 } // namespace chromecast | 111 } // namespace chromecast |
112 | 112 |
113 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ | 113 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ |
OLD | NEW |