OLD | NEW |
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 #ifndef MEDIA_BASE_DEMUXER_H_ | 5 #ifndef MEDIA_BASE_DEMUXER_H_ |
6 #define MEDIA_BASE_DEMUXER_H_ | 6 #define MEDIA_BASE_DEMUXER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 virtual void Stop() = 0; | 80 virtual void Stop() = 0; |
81 | 81 |
82 // Returns the starting time for the media file; it's always positive. | 82 // Returns the starting time for the media file; it's always positive. |
83 virtual base::TimeDelta GetStartTime() const = 0; | 83 virtual base::TimeDelta GetStartTime() const = 0; |
84 | 84 |
85 // Returns Time represented by presentation timestamp 0. | 85 // Returns Time represented by presentation timestamp 0. |
86 // If the timstamps are not associated with a Time, then | 86 // If the timstamps are not associated with a Time, then |
87 // a null Time is returned. | 87 // a null Time is returned. |
88 virtual base::Time GetTimelineOffset() const = 0; | 88 virtual base::Time GetTimelineOffset() const = 0; |
89 | 89 |
90 // Returns the memory usage in bytes for the demuxer. May be called from any | 90 // Returns the memory usage in bytes for the demuxer. |
91 // thread. | |
92 virtual int64_t GetMemoryUsage() const = 0; | 91 virtual int64_t GetMemoryUsage() const = 0; |
93 | 92 |
94 private: | 93 private: |
95 DISALLOW_COPY_AND_ASSIGN(Demuxer); | 94 DISALLOW_COPY_AND_ASSIGN(Demuxer); |
96 }; | 95 }; |
97 | 96 |
98 } // namespace media | 97 } // namespace media |
99 | 98 |
100 #endif // MEDIA_BASE_DEMUXER_H_ | 99 #endif // MEDIA_BASE_DEMUXER_H_ |
OLD | NEW |