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

Side by Side Diff: media/filters/video_renderer_base.h

Issue 3032030: Implement accurate seeking by decoding audio/video until we reach our desired timestamp. (Closed)
Patch Set: Fixes Created 10 years, 5 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/filters/ffmpeg_audio_decoder.cc ('k') | media/filters/video_renderer_base.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // VideoRendererBase creates its own thread for the sole purpose of timing frame 5 // VideoRendererBase creates its own thread for the sole purpose of timing frame
6 // presentation. It handles reading from the decoder and stores the results in 6 // presentation. It handles reading from the decoder and stores the results in
7 // a queue of decoded frames, calling OnFrameAvailable() on subclasses to notify 7 // a queue of decoded frames, calling OnFrameAvailable() on subclasses to notify
8 // when a frame is ready to display. 8 // when a frame is ready to display.
9 // 9 //
10 // The media filter methods Initialize(), Stop(), SetPlaybackRate() and Seek() 10 // The media filter methods Initialize(), Stop(), SetPlaybackRate() and Seek()
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // We use size_t since we compare against std::deque::size(). 174 // We use size_t since we compare against std::deque::size().
175 size_t pending_reads_; 175 size_t pending_reads_;
176 bool pending_paint_; 176 bool pending_paint_;
177 177
178 float playback_rate_; 178 float playback_rate_;
179 179
180 // Filter callbacks. 180 // Filter callbacks.
181 scoped_ptr<FilterCallback> pause_callback_; 181 scoped_ptr<FilterCallback> pause_callback_;
182 scoped_ptr<FilterCallback> seek_callback_; 182 scoped_ptr<FilterCallback> seek_callback_;
183 183
184 base::TimeDelta seek_timestamp_;
185
184 DISALLOW_COPY_AND_ASSIGN(VideoRendererBase); 186 DISALLOW_COPY_AND_ASSIGN(VideoRendererBase);
185 }; 187 };
186 188
187 } // namespace media 189 } // namespace media
188 190
189 #endif // MEDIA_FILTERS_VIDEO_RENDERER_BASE_H_ 191 #endif // MEDIA_FILTERS_VIDEO_RENDERER_BASE_H_
OLDNEW
« no previous file with comments | « media/filters/ffmpeg_audio_decoder.cc ('k') | media/filters/video_renderer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698