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

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

Issue 163413004: Add base::TimeDelta::Max(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
« no previous file with comments | « content/renderer/media/websourcebuffer_impl.cc ('k') | media/filters/chunk_demuxer.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) 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 // Timestamps are derived directly from the encoded media file and are commonly 5 // Timestamps are derived directly from the encoded media file and are commonly
6 // known as the presentation timestamp (PTS). Durations are a best-guess and 6 // known as the presentation timestamp (PTS). Durations are a best-guess and
7 // are usually derived from the sample/frame rate of the media file. 7 // are usually derived from the sample/frame rate of the media file.
8 // 8 //
9 // Due to encoding and transmission errors, it is not guaranteed that timestamps 9 // Due to encoding and transmission errors, it is not guaranteed that timestamps
10 // arrive in a monotonically increasing order nor that the next timestamp will 10 // arrive in a monotonically increasing order nor that the next timestamp will
(...skipping 19 matching lines...) Expand all
30 30
31 // TODO(scherkus): Move the contents of this file elsewhere. 31 // TODO(scherkus): Move the contents of this file elsewhere.
32 32
33 // Indicates an invalid or missing timestamp. 33 // Indicates an invalid or missing timestamp.
34 MEDIA_EXPORT extern inline base::TimeDelta kNoTimestamp() { 34 MEDIA_EXPORT extern inline base::TimeDelta kNoTimestamp() {
35 return base::TimeDelta::FromMicroseconds(kint64min); 35 return base::TimeDelta::FromMicroseconds(kint64min);
36 } 36 }
37 37
38 // Represents an infinite stream duration. 38 // Represents an infinite stream duration.
39 MEDIA_EXPORT extern inline base::TimeDelta kInfiniteDuration() { 39 MEDIA_EXPORT extern inline base::TimeDelta kInfiniteDuration() {
40 return base::TimeDelta::FromMicroseconds(kint64max); 40 return base::TimeDelta::Max();
41 } 41 }
42 42
43 } // namespace media 43 } // namespace media
44 44
45 #endif // MEDIA_BASE_BUFFERS_H_ 45 #endif // MEDIA_BASE_BUFFERS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/websourcebuffer_impl.cc ('k') | media/filters/chunk_demuxer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698