diff options
author | ralphl@chromium.org <ralphl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-11 18:07:01 +0000 |
---|---|---|
committer | ralphl@chromium.org <ralphl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-11 18:07:01 +0000 |
commit | 4d430ef1335bdfbfe04be7ff7a048c2aff06c000 (patch) | |
tree | 1abd9c9064e8ff823f546365bfe9e0ac9dd50bf6 /media | |
parent | 9bae4b9a123cda92bc3bd0da16784d9ec75d1494 (diff) | |
download | chromium_src-4d430ef1335bdfbfe04be7ff7a048c2aff06c000.zip chromium_src-4d430ef1335bdfbfe04be7ff7a048c2aff06c000.tar.gz chromium_src-4d430ef1335bdfbfe04be7ff7a048c2aff06c000.tar.bz2 |
Almost complete implementation of the Chrome video renderer. Still needs to implement color space conversion for final bitblt.
Review URL: http://codereview.chromium.org/21037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9575 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/base/pipeline.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/media/base/pipeline.h b/media/base/pipeline.h index 50e1a06..f6ef541 100644 --- a/media/base/pipeline.h +++ b/media/base/pipeline.h @@ -70,10 +70,22 @@ class PipelineStatus { // values for playback rate are >= 0.0f. virtual float GetPlaybackRate() const = 0; - // Gets the current pipeline time in microseconds. For a pipeline "time" - // progresses from 0 to the end of the media. + // Gets the current pipeline time in microseconds. For a pipeline "time" + // progresses from 0 to the end of the media. This time base is updated + // by the audio renderer to allow for synchronization of audio and video. + // Note that a more accurate time may be obtained by calling the + // GetInterpolatedTime method which estimates the position of the audio + // device based on a combination of the last time the audio device reported + // it's position and the current system time. virtual base::TimeDelta GetTime() const = 0; + // Gets the current pipeline time in microseconds. For a pipeline "time" + // progresses from 0 to the end of the media. Becuase this method provides + // an estimated time, it is possible that subsequent calls to this method will + // actually progress backwards slightly, so callers must not assume that this + // method will always return times larger than the last one. + virtual base::TimeDelta GetInterpolatedTime() const = 0; + // Gets the current error status for the pipeline. If the pipeline is // operating correctly, this will return OK. virtual PipelineError GetError() const = 0; |