| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "media/base/demuxer_stream.h" | 9 #include "media/base/demuxer_stream.h" |
| 10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Alert the Demuxer that the video preload value has been changed. | 54 // Alert the Demuxer that the video preload value has been changed. |
| 55 virtual void SetPreload(Preload preload) = 0; | 55 virtual void SetPreload(Preload preload) = 0; |
| 56 | 56 |
| 57 // Returns the starting time for the media file. | 57 // Returns the starting time for the media file. |
| 58 virtual base::TimeDelta GetStartTime() const = 0; | 58 virtual base::TimeDelta GetStartTime() const = 0; |
| 59 | 59 |
| 60 // Returns the content bitrate. May be obtained from container or | 60 // Returns the content bitrate. May be obtained from container or |
| 61 // approximated. Returns 0 if it is unknown. | 61 // approximated. Returns 0 if it is unknown. |
| 62 virtual int GetBitrate() = 0; | 62 virtual int GetBitrate() = 0; |
| 63 | 63 |
| 64 // Returns true if the source is from a local file or stream (such as a |
| 65 // webcam stream), false otherwise. |
| 66 virtual bool IsLocalSource() = 0; |
| 67 |
| 68 // Returns true if seeking is possible; false otherwise. |
| 69 virtual bool IsSeekable() = 0; |
| 70 |
| 64 protected: | 71 protected: |
| 65 Demuxer(); | 72 Demuxer(); |
| 66 FilterHost* host() { return host_; } | 73 FilterHost* host() { return host_; } |
| 67 | 74 |
| 68 friend class base::RefCountedThreadSafe<Demuxer>; | 75 friend class base::RefCountedThreadSafe<Demuxer>; |
| 69 virtual ~Demuxer(); | 76 virtual ~Demuxer(); |
| 70 | 77 |
| 71 private: | 78 private: |
| 72 FilterHost* host_; | 79 FilterHost* host_; |
| 73 | 80 |
| 74 DISALLOW_COPY_AND_ASSIGN(Demuxer); | 81 DISALLOW_COPY_AND_ASSIGN(Demuxer); |
| 75 }; | 82 }; |
| 76 | 83 |
| 77 } // namespace media | 84 } // namespace media |
| 78 | 85 |
| 79 #endif // MEDIA_BASE_DEMUXER_H_ | 86 #endif // MEDIA_BASE_DEMUXER_H_ |
| OLD | NEW |