Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: media/base/pipeline.h

Issue 2688383006: [Media, Video] Update WMPI when the pipeline gets a new average keyframe distance. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « media/base/mock_filters.h ('k') | media/base/pipeline_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698