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

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

Issue 2075303002: [DO NOT COMMIT] Initial MediaPlayerRenderer plumbing and basic features (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698