| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 const AddTextTrackDoneCB& done_cb) = 0; | 55 const AddTextTrackDoneCB& done_cb) = 0; |
| 56 | 56 |
| 57 // Executed whenever the key needed to decrypt the stream is not available. | 57 // Executed whenever the key needed to decrypt the stream is not available. |
| 58 virtual void OnWaitingForDecryptionKey() = 0; | 58 virtual void OnWaitingForDecryptionKey() = 0; |
| 59 | 59 |
| 60 // Executed for the first video frame and whenever natural size changes. | 60 // Executed for the first video frame and whenever natural size changes. |
| 61 virtual void OnVideoNaturalSizeChange(const gfx::Size& size) = 0; | 61 virtual void OnVideoNaturalSizeChange(const gfx::Size& size) = 0; |
| 62 | 62 |
| 63 // Executed for the first video frame and whenever opacity changes. | 63 // Executed for the first video frame and whenever opacity changes. |
| 64 virtual void OnVideoOpacityChange(bool opaque) = 0; | 64 virtual void OnVideoOpacityChange(bool opaque) = 0; |
| 65 |
| 66 // Executed when the average keyframe distance for the video changes. |
| 67 virtual void OnVideoAverageKeyframeDistanceUpdate() = 0; |
| 65 }; | 68 }; |
| 66 | 69 |
| 67 virtual ~Pipeline() {} | 70 virtual ~Pipeline() {} |
| 68 | 71 |
| 69 // Build a pipeline to using the given |demuxer| and |renderer| to construct | 72 // Build a pipeline to using the given |demuxer| and |renderer| to construct |
| 70 // a filter chain, executing |seek_cb| when the initial seek has completed. | 73 // a filter chain, executing |seek_cb| when the initial seek has completed. |
| 71 // Methods on PipelineClient may be called up until Stop() has completed. | 74 // Methods on PipelineClient may be called up until Stop() has completed. |
| 72 // It is an error to call this method after the pipeline has already started. | 75 // It is an error to call this method after the pipeline has already started. |
| 73 virtual void Start(Demuxer* demuxer, | 76 virtual void Start(Demuxer* demuxer, |
| 74 std::unique_ptr<Renderer> renderer, | 77 std::unique_ptr<Renderer> renderer, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 // Gets the current pipeline statistics. | 169 // Gets the current pipeline statistics. |
| 167 virtual PipelineStatistics GetStatistics() const = 0; | 170 virtual PipelineStatistics GetStatistics() const = 0; |
| 168 | 171 |
| 169 virtual void SetCdm(CdmContext* cdm_context, | 172 virtual void SetCdm(CdmContext* cdm_context, |
| 170 const CdmAttachedCB& cdm_attached_cb) = 0; | 173 const CdmAttachedCB& cdm_attached_cb) = 0; |
| 171 }; | 174 }; |
| 172 | 175 |
| 173 } // namespace media | 176 } // namespace media |
| 174 | 177 |
| 175 #endif // MEDIA_BASE_PIPELINE_H_ | 178 #endif // MEDIA_BASE_PIPELINE_H_ |
| OLD | NEW |