Chromium Code Reviews| 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" |
| 11 #include "media/base/pipeline_status.h" | 11 #include "media/base/pipeline_status.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 DecoderBuffer; | 16 class DecoderBuffer; |
| 17 class VideoDecoderConfig; | 17 class VideoDecoderConfig; |
| 18 class VideoFrame; | 18 class VideoFrame; |
| 19 | 19 |
| 20 class MEDIA_EXPORT VideoDecoder { | 20 class MEDIA_EXPORT VideoDecoder { |
| 21 public: | 21 public: |
| 22 // Status codes for decode operations on VideoDecoder. | 22 // Status codes for decode operations on VideoDecoder. |
| 23 // TODO(rileya): Now that both AudioDecoder and VideoDecoder Status enums | |
|
xhwang
2014/02/27 19:52:28
double space after "that"
| |
| 24 // match, break them into a decoder_status.h. | |
| 23 enum Status { | 25 enum Status { |
| 24 kOk, // Everything went as planned. | 26 kOk, // Everything went as planned. |
| 25 kAborted, // Decode was aborted as a result of Reset() being called. | 27 kAborted, // Decode was aborted as a result of Reset() being called. |
| 26 kNotEnoughData, // Not enough data to produce a video frame. | 28 kNotEnoughData, // Not enough data to produce a video frame. |
| 27 kDecodeError, // Decoding error happened. | 29 kDecodeError, // Decoding error happened. |
| 28 kDecryptError // Decrypting error happened. | 30 kDecryptError // Decrypting error happened. |
| 29 }; | 31 }; |
| 30 | 32 |
| 31 VideoDecoder(); | 33 VideoDecoder(); |
| 32 virtual ~VideoDecoder(); | 34 virtual ~VideoDecoder(); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 // use a fixed set of VideoFrames for decoding. | 88 // use a fixed set of VideoFrames for decoding. |
| 87 virtual bool CanReadWithoutStalling() const; | 89 virtual bool CanReadWithoutStalling() const; |
| 88 | 90 |
| 89 private: | 91 private: |
| 90 DISALLOW_COPY_AND_ASSIGN(VideoDecoder); | 92 DISALLOW_COPY_AND_ASSIGN(VideoDecoder); |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 } // namespace media | 95 } // namespace media |
| 94 | 96 |
| 95 #endif // MEDIA_BASE_VIDEO_DECODER_H_ | 97 #endif // MEDIA_BASE_VIDEO_DECODER_H_ |
| OLD | NEW |