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_PIPELINE_STATUS_H_ | 5 #ifndef MEDIA_BASE_PIPELINE_STATUS_H_ |
| 6 #define MEDIA_BASE_PIPELINE_STATUS_H_ | 6 #define MEDIA_BASE_PIPELINE_STATUS_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 | 9 |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 37 // Decoder related errors. | 37 // Decoder related errors. |
| 38 DECODER_ERROR_NOT_SUPPORTED = 15, | 38 DECODER_ERROR_NOT_SUPPORTED = 15, |
| 39 | 39 |
| 40 // ChunkDemuxer related errors. | 40 // ChunkDemuxer related errors. |
| 41 CHUNK_DEMUXER_ERROR_APPEND_FAILED = 16, | 41 CHUNK_DEMUXER_ERROR_APPEND_FAILED = 16, |
| 42 CHUNK_DEMUXER_ERROR_EOS_STATUS_DECODE_ERROR = 17, | 42 CHUNK_DEMUXER_ERROR_EOS_STATUS_DECODE_ERROR = 17, |
| 43 CHUNK_DEMUXER_ERROR_EOS_STATUS_NETWORK_ERROR = 18, | 43 CHUNK_DEMUXER_ERROR_EOS_STATUS_NETWORK_ERROR = 18, |
| 44 | 44 |
| 45 // Audio rendering errors. | 45 // Audio rendering errors. |
| 46 AUDIO_RENDERER_ERROR = 19, | 46 AUDIO_RENDERER_ERROR = 19, |
| 47 AUDIO_RENDERER_ERROR_SPLICE_FAILED = 20, | 47 // Deprecated: AUDIO_RENDERER_ERROR_SPLICE_FAILED = 20, |
|
DaleCurtis
2016/11/11 00:54:48
Need to keep this value here but commented out, ot
| |
| 48 | 48 |
| 49 // Must be equal to the largest value ever logged. | 49 // Must be equal to the largest value ever logged. |
| 50 PIPELINE_STATUS_MAX = PIPELINE_ERROR_EXTERNAL_RENDERER_FAILED, | 50 PIPELINE_STATUS_MAX = PIPELINE_ERROR_EXTERNAL_RENDERER_FAILED, |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 typedef base::Callback<void(PipelineStatus)> PipelineStatusCB; | 53 typedef base::Callback<void(PipelineStatus)> PipelineStatusCB; |
| 54 | 54 |
| 55 struct PipelineStatistics { | 55 struct PipelineStatistics { |
| 56 uint64_t audio_bytes_decoded = 0; | 56 uint64_t audio_bytes_decoded = 0; |
| 57 uint64_t video_bytes_decoded = 0; | 57 uint64_t video_bytes_decoded = 0; |
| 58 uint32_t video_frames_decoded = 0; | 58 uint32_t video_frames_decoded = 0; |
| 59 uint32_t video_frames_dropped = 0; | 59 uint32_t video_frames_dropped = 0; |
| 60 int64_t audio_memory_usage = 0; | 60 int64_t audio_memory_usage = 0; |
| 61 int64_t video_memory_usage = 0; | 61 int64_t video_memory_usage = 0; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 // Used for updating pipeline statistics; the passed value should be a delta | 64 // Used for updating pipeline statistics; the passed value should be a delta |
| 65 // of all attributes since the last update. | 65 // of all attributes since the last update. |
| 66 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB; | 66 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB; |
| 67 | 67 |
| 68 } // namespace media | 68 } // namespace media |
| 69 | 69 |
| 70 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ | 70 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ |
| OLD | NEW |