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

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

Issue 2366373003: Not for submission. fastSeek prototype. (Closed)
Patch Set: Created 4 years, 2 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/audio_renderer.cc ('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"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "media/base/buffering_state.h" 12 #include "media/base/buffering_state.h"
13 #include "media/base/cdm_context.h" 13 #include "media/base/cdm_context.h"
14 #include "media/base/media_export.h" 14 #include "media/base/media_export.h"
15 #include "media/base/media_track.h" 15 #include "media/base/media_track.h"
16 #include "media/base/pipeline_metadata.h" 16 #include "media/base/pipeline_metadata.h"
17 #include "media/base/pipeline_status.h" 17 #include "media/base/pipeline_status.h"
18 #include "media/base/ranges.h" 18 #include "media/base/ranges.h"
19 #include "media/base/stream_position.h"
19 #include "media/base/text_track.h" 20 #include "media/base/text_track.h"
20 #include "media/base/video_rotation.h" 21 #include "media/base/video_rotation.h"
21 #include "ui/gfx/geometry/size.h" 22 #include "ui/gfx/geometry/size.h"
22 23
23 namespace media { 24 namespace media {
24 25
25 class Demuxer; 26 class Demuxer;
26 class Renderer; 27 class Renderer;
27 class VideoFrame; 28 class VideoFrame;
28 29
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual void Stop() = 0; 96 virtual void Stop() = 0;
96 97
97 // Attempt to seek to the position specified by time. |seek_cb| will be 98 // Attempt to seek to the position specified by time. |seek_cb| will be
98 // executed when the all filters in the pipeline have processed the seek. 99 // executed when the all filters in the pipeline have processed the seek.
99 // 100 //
100 // Clients are expected to call GetMediaTime() to check whether the seek 101 // Clients are expected to call GetMediaTime() to check whether the seek
101 // succeeded. 102 // succeeded.
102 // 103 //
103 // It is an error to call this method if the pipeline has not started or 104 // It is an error to call this method if the pipeline has not started or
104 // has been suspended. 105 // has been suspended.
105 virtual void Seek(base::TimeDelta time, const PipelineStatusCB& seek_cb) = 0; 106 virtual void Seek(StreamPosition position,
107 const PipelineStatusCB& seek_cb) = 0;
106 108
107 // Suspends the pipeline, discarding the current renderer. 109 // Suspends the pipeline, discarding the current renderer.
108 // 110 //
109 // While suspended, GetMediaTime() returns the presentation timestamp of the 111 // While suspended, GetMediaTime() returns the presentation timestamp of the
110 // last rendered frame. 112 // last rendered frame.
111 // 113 //
112 // It is an error to call this method if the pipeline has not started or is 114 // It is an error to call this method if the pipeline has not started or is
113 // seeking. 115 // seeking.
114 virtual void Suspend(const PipelineStatusCB& suspend_cb) = 0; 116 virtual void Suspend(const PipelineStatusCB& suspend_cb) = 0;
115 117
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Gets the current pipeline statistics. 169 // Gets the current pipeline statistics.
168 virtual PipelineStatistics GetStatistics() const = 0; 170 virtual PipelineStatistics GetStatistics() const = 0;
169 171
170 virtual void SetCdm(CdmContext* cdm_context, 172 virtual void SetCdm(CdmContext* cdm_context,
171 const CdmAttachedCB& cdm_attached_cb) = 0; 173 const CdmAttachedCB& cdm_attached_cb) = 0;
172 }; 174 };
173 175
174 } // namespace media 176 } // namespace media
175 177
176 #endif // MEDIA_BASE_PIPELINE_H_ 178 #endif // MEDIA_BASE_PIPELINE_H_
OLDNEW
« no previous file with comments | « media/base/audio_renderer.cc ('k') | media/base/pipeline_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698