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

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

Issue 2366373003: Not for submission. fastSeek prototype. (Closed)
Patch Set: Created 4 years, 2 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/base/renderer_client.h ('k') | media/base/stream_position.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_STREAM_POSITION_H_
6 #define MEDIA_BASE_STREAM_POSITION_H_
7
8 #include "base/time/time.h"
9 #include "media/base/media_export.h"
10
11 namespace media {
12
13 struct MEDIA_EXPORT StreamPosition {
14 enum class Kind {
15 PRECISE,
16 KEY_FRAME_PRECEDING_TIME,
17 };
18
19 static StreamPosition Precise(base::TimeDelta time);
20 static StreamPosition KeyFramePrecedingTime(base::TimeDelta time);
21
22 bool operator==(const StreamPosition& other);
23
24 Kind kind;
25 base::TimeDelta time;
26 };
27
28 MEDIA_EXPORT std::string ToString(StreamPosition position);
29
30 } // namespace media
31
32 #endif // MEDIA_BASE_STREAM_POSITION_H_
OLDNEW
« no previous file with comments | « media/base/renderer_client.h ('k') | media/base/stream_position.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698