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_STREAM_H_ | 5 #ifndef MEDIA_BASE_DEMUXER_STREAM_H_ |
6 #define MEDIA_BASE_DEMUXER_STREAM_H_ | 6 #define MEDIA_BASE_DEMUXER_STREAM_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
11 #include "media/base/video_rotation.h" | 11 #include "media/base/video_rotation.h" |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 | 14 |
15 class AudioDecoderConfig; | 15 class AudioDecoderConfig; |
16 class DecoderBuffer; | 16 class DecoderBuffer; |
17 class VideoDecoderConfig; | 17 class VideoDecoderConfig; |
18 | 18 |
19 class MEDIA_EXPORT DemuxerStream { | 19 class MEDIA_EXPORT DemuxerStream { |
20 public: | 20 public: |
21 enum Type { | 21 enum Type { |
22 UNKNOWN, | 22 UNKNOWN, |
23 AUDIO, | 23 AUDIO, |
24 VIDEO, | 24 VIDEO, |
25 TEXT, | 25 TEXT, |
| 26 URL, |
26 NUM_TYPES, // Always keep this entry as the last one! | 27 NUM_TYPES, // Always keep this entry as the last one! |
27 }; | 28 }; |
28 | 29 |
29 enum Liveness { | 30 enum Liveness { |
30 LIVENESS_UNKNOWN, | 31 LIVENESS_UNKNOWN, |
31 LIVENESS_RECORDED, | 32 LIVENESS_RECORDED, |
32 LIVENESS_LIVE, | 33 LIVENESS_LIVE, |
33 }; | 34 }; |
34 | 35 |
35 // Status returned in the Read() callback. | 36 // Status returned in the Read() callback. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 virtual VideoRotation video_rotation() = 0; | 93 virtual VideoRotation video_rotation() = 0; |
93 | 94 |
94 protected: | 95 protected: |
95 // Only allow concrete implementations to get deleted. | 96 // Only allow concrete implementations to get deleted. |
96 virtual ~DemuxerStream(); | 97 virtual ~DemuxerStream(); |
97 }; | 98 }; |
98 | 99 |
99 } // namespace media | 100 } // namespace media |
100 | 101 |
101 #endif // MEDIA_BASE_DEMUXER_STREAM_H_ | 102 #endif // MEDIA_BASE_DEMUXER_STREAM_H_ |
OLD | NEW |