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

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

Issue 39170: Pipeline_Impl was modified to properly render a stream that has video but no ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // FilterHost describes an interface for individual filters to access and 5 // FilterHost describes an interface for individual filters to access and
6 // modify global playback information. Every filter is given a filter host 6 // modify global playback information. Every filter is given a filter host
7 // reference as part of initialization. 7 // reference as part of initialization.
8 // 8 //
9 // This interface is intentionally verbose to cover the needs for the different 9 // This interface is intentionally verbose to cover the needs for the different
10 // types of filters (see media/base/filters.h for filter definitionss). Filters 10 // types of filters (see media/base/filters.h for filter definitionss). Filters
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void ScheduleTimeUpdateCallback(base::TimeDelta time) = 0; 55 virtual void ScheduleTimeUpdateCallback(base::TimeDelta time) = 0;
56 56
57 // Filters must call this method to indicate that their initialization is 57 // Filters must call this method to indicate that their initialization is
58 // complete. They may call this from within their Initialize() method or may 58 // complete. They may call this from within their Initialize() method or may
59 // choose call it after processing some data. 59 // choose call it after processing some data.
60 virtual void InitializationComplete() = 0; 60 virtual void InitializationComplete() = 0;
61 61
62 // Posts a task to be executed asynchronously on the pipeline's thread. 62 // Posts a task to be executed asynchronously on the pipeline's thread.
63 virtual void PostTask(Task* task) = 0; 63 virtual void PostTask(Task* task) = 0;
64 64
65 // Stops execution of the pipeline due to a fatal error. 65 // Stops execution of the pipeline due to a fatal error. Do not call this
66 // method with PIPELINE_OK or PIPELINE_STOPPING (used internally by pipeline).
66 virtual void Error(PipelineError error) = 0; 67 virtual void Error(PipelineError error) = 0;
67 68
68 // Sets the current time. Any filters that have registered a callback through 69 // Sets the current time. Any filters that have registered a callback through
69 // the SetTimeUpdateCallback method will be notified of the change. 70 // the SetTimeUpdateCallback method will be notified of the change.
70 virtual void SetTime(base::TimeDelta time) = 0; 71 virtual void SetTime(base::TimeDelta time) = 0;
71 72
72 // Get the duration of the media in microseconds. If the duration has not 73 // Get the duration of the media in microseconds. If the duration has not
73 // been determined yet, then returns 0. 74 // been determined yet, then returns 0.
74 virtual void SetDuration(base::TimeDelta duration) = 0; 75 virtual void SetDuration(base::TimeDelta duration) = 0;
75 76
(...skipping 11 matching lines...) Expand all
87 // Sets the size of the video output in pixel units. 88 // Sets the size of the video output in pixel units.
88 virtual void SetVideoSize(size_t width, size_t height) = 0; 89 virtual void SetVideoSize(size_t width, size_t height) = 0;
89 90
90 protected: 91 protected:
91 virtual ~FilterHost() {} 92 virtual ~FilterHost() {}
92 }; 93 };
93 94
94 } // namespace media 95 } // namespace media
95 96
96 #endif // MEDIA_BASE_FILTER_HOST_H_ 97 #endif // MEDIA_BASE_FILTER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698