| 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 #include "media/base/decoder_buffer.h" | 5 #include "media/base/decoder_buffer.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "media/base/decrypt_config.h" | 8 #include "media/base/decrypt_config.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 std::string DecoderBuffer::AsHumanReadableString() { | 73 std::string DecoderBuffer::AsHumanReadableString() { |
| 74 if (end_of_stream()) { | 74 if (end_of_stream()) { |
| 75 return "end of stream"; | 75 return "end of stream"; |
| 76 } | 76 } |
| 77 | 77 |
| 78 std::ostringstream s; | 78 std::ostringstream s; |
| 79 s << "timestamp: " << timestamp_.InMicroseconds() | 79 s << "timestamp: " << timestamp_.InMicroseconds() |
| 80 << " duration: " << duration_.InMicroseconds() | 80 << " duration: " << duration_.InMicroseconds() |
| 81 << " size: " << size_ | 81 << " size: " << size_ |
| 82 << " side_data_size: " << side_data_size_ | 82 << " side_data_size: " << side_data_size_ |
| 83 << " encrypted: " << (decrypt_config_ != NULL); | 83 << " encrypted: " << (decrypt_config_ != NULL) |
| 84 << " discard_padding (ms): " << discard_padding_.InMilliseconds(); |
| 84 return s.str(); | 85 return s.str(); |
| 85 } | 86 } |
| 86 | 87 |
| 87 } // namespace media | 88 } // namespace media |
| OLD | NEW |