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_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_BASE_VIDEO_DECODER_H_ |
6 #define MEDIA_BASE_VIDEO_DECODER_H_ | 6 #define MEDIA_BASE_VIDEO_DECODER_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/pipeline_status.h" | 10 #include "media/base/pipeline_status.h" |
11 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
12 #include "ui/gfx/size.h" | 12 #include "ui/gfx/size.h" |
13 | 13 |
14 namespace media { | 14 namespace media { |
15 | 15 |
16 class Buffer; | |
17 class DemuxerStream; | 16 class DemuxerStream; |
18 class VideoFrame; | 17 class VideoFrame; |
19 | 18 |
20 class MEDIA_EXPORT VideoDecoder | 19 class MEDIA_EXPORT VideoDecoder |
21 : public base::RefCountedThreadSafe<VideoDecoder> { | 20 : public base::RefCountedThreadSafe<VideoDecoder> { |
22 public: | 21 public: |
23 // Status codes for read operations on VideoDecoder. | 22 // Status codes for read operations on VideoDecoder. |
24 enum DecoderStatus { | 23 enum DecoderStatus { |
25 kOk, // Everything went as planned. | 24 kOk, // Everything went as planned. |
26 kDecodeError, // Decoding error happened. | 25 kDecodeError, // Decoding error happened. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 friend class base::RefCountedThreadSafe<VideoDecoder>; | 85 friend class base::RefCountedThreadSafe<VideoDecoder>; |
87 virtual ~VideoDecoder(); | 86 virtual ~VideoDecoder(); |
88 VideoDecoder(); | 87 VideoDecoder(); |
89 | 88 |
90 DISALLOW_COPY_AND_ASSIGN(VideoDecoder); | 89 DISALLOW_COPY_AND_ASSIGN(VideoDecoder); |
91 }; | 90 }; |
92 | 91 |
93 } // namespace media | 92 } // namespace media |
94 | 93 |
95 #endif // MEDIA_BASE_VIDEO_DECODER_H_ | 94 #endif // MEDIA_BASE_VIDEO_DECODER_H_ |
OLD | NEW |