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

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

Issue 173072: Suppress slider thumb jumping around during seeking... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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
« no previous file with comments | « no previous file | media/base/buffers.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) 2008-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008-2009 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 // Defines various types of timestamped media buffers used for transporting 5 // Defines various types of timestamped media buffers used for transporting
6 // data between filters. Every buffer contains a timestamp in microseconds 6 // data between filters. Every buffer contains a timestamp in microseconds
7 // describing the relative position of the buffer within the media stream, and 7 // describing the relative position of the buffer within the media stream, and
8 // the duration in microseconds for the length of time the buffer will be 8 // the duration in microseconds for the length of time the buffer will be
9 // rendered. 9 // rendered.
10 // 10 //
(...skipping 17 matching lines...) Expand all
28 #define MEDIA_BASE_BUFFERS_H_ 28 #define MEDIA_BASE_BUFFERS_H_
29 29
30 #include "base/logging.h" 30 #include "base/logging.h"
31 #include "base/ref_counted.h" 31 #include "base/ref_counted.h"
32 #include "base/time.h" 32 #include "base/time.h"
33 33
34 namespace media { 34 namespace media {
35 35
36 class StreamSample : public base::RefCountedThreadSafe<StreamSample> { 36 class StreamSample : public base::RefCountedThreadSafe<StreamSample> {
37 public: 37 public:
38 // Constant timestamp value to indicate an invalid or missing timestamp.
39 static const base::TimeDelta kInvalidTimestamp;
40
38 // Returns the timestamp of this buffer in microseconds. 41 // Returns the timestamp of this buffer in microseconds.
39 base::TimeDelta GetTimestamp() const { 42 base::TimeDelta GetTimestamp() const {
40 return timestamp_; 43 return timestamp_;
41 } 44 }
42 45
43 // Returns the duration of this buffer in microseconds. 46 // Returns the duration of this buffer in microseconds.
44 base::TimeDelta GetDuration() const { 47 base::TimeDelta GetDuration() const {
45 return duration_; 48 return duration_;
46 } 49 }
47 50
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // Unlocks the underlying surface, the VideoSurface acquired from Lock is no 174 // Unlocks the underlying surface, the VideoSurface acquired from Lock is no
172 // longer guaranteed to be valid. 175 // longer guaranteed to be valid.
173 virtual void Unlock() = 0; 176 virtual void Unlock() = 0;
174 177
175 virtual bool IsEndOfStream() const = 0; 178 virtual bool IsEndOfStream() const = 0;
176 }; 179 };
177 180
178 } // namespace media 181 } // namespace media
179 182
180 #endif // MEDIA_BASE_BUFFERS_H_ 183 #endif // MEDIA_BASE_BUFFERS_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/buffers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698