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/media_export.h" | 10 #include "media/base/media_export.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // that return formats with an alpha channel. | 81 // that return formats with an alpha channel. |
82 virtual bool HasAlpha() const; | 82 virtual bool HasAlpha() const; |
83 | 83 |
84 // Returns true if the decoder needs bitstream conversion before decoding. | 84 // Returns true if the decoder needs bitstream conversion before decoding. |
85 virtual bool NeedsBitstreamConversion() const; | 85 virtual bool NeedsBitstreamConversion() const; |
86 | 86 |
87 // Returns true if the decoder currently has the ability to decode and return | 87 // Returns true if the decoder currently has the ability to decode and return |
88 // a VideoFrame. Most implementations can allocate a new VideoFrame and hence | 88 // a VideoFrame. Most implementations can allocate a new VideoFrame and hence |
89 // this will always return true. Override and return false for decoders that | 89 // this will always return true. Override and return false for decoders that |
90 // use a fixed set of VideoFrames for decoding. | 90 // use a fixed set of VideoFrames for decoding. |
91 virtual bool HasOutputFrameAvailable() const; | 91 virtual bool CanReadWithoutStalling() const; |
92 | 92 |
93 private: | 93 private: |
94 DISALLOW_COPY_AND_ASSIGN(VideoDecoder); | 94 DISALLOW_COPY_AND_ASSIGN(VideoDecoder); |
95 }; | 95 }; |
96 | 96 |
97 } // namespace media | 97 } // namespace media |
98 | 98 |
99 #endif // MEDIA_BASE_VIDEO_DECODER_H_ | 99 #endif // MEDIA_BASE_VIDEO_DECODER_H_ |
OLD | NEW |