| 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_BASE_VIDEO_PIPELINE_IMPL_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_ |
| 6 #define CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_ | 6 #define CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 ~VideoPipelineImpl() override; | 37 ~VideoPipelineImpl() override; |
| 38 | 38 |
| 39 // Input port of the pipeline. | 39 // Input port of the pipeline. |
| 40 void SetCodedFrameProvider(scoped_ptr<CodedFrameProvider> frame_provider); | 40 void SetCodedFrameProvider(scoped_ptr<CodedFrameProvider> frame_provider); |
| 41 | 41 |
| 42 // Provide the CDM to use to decrypt samples. | 42 // Provide the CDM to use to decrypt samples. |
| 43 void SetCdm(BrowserCdmCast* media_keys); | 43 void SetCdm(BrowserCdmCast* media_keys); |
| 44 | 44 |
| 45 // Functions to control the state of the audio pipeline. | 45 // Functions to control the state of the audio pipeline. |
| 46 void Initialize( | 46 void Initialize( |
| 47 const ::media::VideoDecoderConfig& config, | 47 const std::vector<::media::VideoDecoderConfig>& configs, |
| 48 scoped_ptr<CodedFrameProvider> frame_provider, | 48 scoped_ptr<CodedFrameProvider> frame_provider, |
| 49 const ::media::PipelineStatusCB& status_cb); | 49 const ::media::PipelineStatusCB& status_cb); |
| 50 bool StartPlayingFrom(base::TimeDelta time, | 50 bool StartPlayingFrom(base::TimeDelta time, |
| 51 const scoped_refptr<BufferingState>& buffering_state); | 51 const scoped_refptr<BufferingState>& buffering_state); |
| 52 void Flush(const ::media::PipelineStatusCB& status_cb); | 52 void Flush(const ::media::PipelineStatusCB& status_cb); |
| 53 void Stop(); | 53 void Stop(); |
| 54 | 54 |
| 55 // Update the playback statistics for this video stream. | 55 // Update the playback statistics for this video stream. |
| 56 void UpdateStatistics(); | 56 void UpdateStatistics(); |
| 57 | 57 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 75 base::WeakPtr<VideoPipelineImpl> weak_this_; | 75 base::WeakPtr<VideoPipelineImpl> weak_this_; |
| 76 base::WeakPtrFactory<VideoPipelineImpl> weak_factory_; | 76 base::WeakPtrFactory<VideoPipelineImpl> weak_factory_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(VideoPipelineImpl); | 78 DISALLOW_COPY_AND_ASSIGN(VideoPipelineImpl); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace media | 81 } // namespace media |
| 82 } // namespace chromecast | 82 } // namespace chromecast |
| 83 | 83 |
| 84 #endif // CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_ | 84 #endif // CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_ |
| OLD | NEW |