Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_BASE_DECODER_STATUS_H_ | |
| 6 #define MEDIA_BASE_DECODER_STATUS_H_ | |
| 7 | |
| 8 #include <ostream> | |
|
xhwang
2016/03/29 19:42:28
Will "#include <iosfwd>" work?
See example: https
DaleCurtis
2016/03/30 00:34:19
Done.
| |
| 9 | |
| 10 #include "media/base/media_export.h" | |
| 11 | |
| 12 namespace media { | |
| 13 | |
| 14 enum class DecoderStatus { | |
|
xhwang
2016/03/29 19:42:28
Since this the status of the "decode" operation, n
DaleCurtis
2016/03/30 00:34:19
Renamed to DecodeStatus.
| |
| 15 OK = 0, // Everything went as planned. | |
| 16 ABORTED, // Read aborted due to Reset() during pending read. | |
| 17 DECODE_ERROR, // Decoder returned decode error. | |
|
xhwang
2016/03/29 19:42:28
The "DECODE" part seems redundant but apparently "
DaleCurtis
2016/03/30 00:34:19
Done.
| |
| 18 }; | |
| 19 | |
| 20 // Helper function so that DecoderStatus can be printed easily. | |
| 21 MEDIA_EXPORT std::ostream& operator<<(std::ostream& os, | |
| 22 const DecoderStatus& status); | |
| 23 | |
| 24 } // namespace media | |
| 25 | |
| 26 #endif // MEDIA_BASE_DECODER_STATUS_H_ | |
| OLD | NEW |