| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0; | 85 virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0; |
| 86 | 86 |
| 87 // Returns the starting time for the media file. | 87 // Returns the starting time for the media file. |
| 88 virtual base::TimeDelta GetStartTime() const = 0; | 88 virtual base::TimeDelta GetStartTime() const = 0; |
| 89 | 89 |
| 90 // Returns Time represented by presentation timestamp 0. | 90 // Returns Time represented by presentation timestamp 0. |
| 91 // If the timstamps are not associated with a Time, then | 91 // If the timstamps are not associated with a Time, then |
| 92 // a null Time is returned. | 92 // a null Time is returned. |
| 93 virtual base::Time GetTimelineOffset() const = 0; | 93 virtual base::Time GetTimelineOffset() const = 0; |
| 94 | 94 |
| 95 // True when the stream is a live stream. Decoders may use this flag e.g. to |
| 96 // minimize decoding delay for live streams. |
| 97 virtual bool IsLiveMode() const = 0; |
| 98 |
| 95 private: | 99 private: |
| 96 DISALLOW_COPY_AND_ASSIGN(Demuxer); | 100 DISALLOW_COPY_AND_ASSIGN(Demuxer); |
| 97 }; | 101 }; |
| 98 | 102 |
| 99 } // namespace media | 103 } // namespace media |
| 100 | 104 |
| 101 #endif // MEDIA_BASE_DEMUXER_H_ | 105 #endif // MEDIA_BASE_DEMUXER_H_ |
| OLD | NEW |