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 <string> | 10 #include <string> |
(...skipping 26 matching lines...) Expand all Loading... | |
37 }; | 37 }; |
38 | 38 |
39 typedef base::Callback<void(PipelineStatus)> PipelineStatusCB; | 39 typedef base::Callback<void(PipelineStatus)> PipelineStatusCB; |
40 | 40 |
41 // TODO(scherkus): this should be moved alongside host interface definitions. | 41 // TODO(scherkus): this should be moved alongside host interface definitions. |
42 struct PipelineStatistics { | 42 struct PipelineStatistics { |
43 PipelineStatistics() | 43 PipelineStatistics() |
44 : audio_bytes_decoded(0), | 44 : audio_bytes_decoded(0), |
45 video_bytes_decoded(0), | 45 video_bytes_decoded(0), |
46 video_frames_decoded(0), | 46 video_frames_decoded(0), |
47 video_frames_dropped(0) { | 47 video_frames_dropped(0), |
48 } | 48 audio_memory_usage(-1), |
49 video_memory_usage(-1) {} | |
49 | 50 |
50 uint32 audio_bytes_decoded; // Should be uint64? | 51 uint32 audio_bytes_decoded; // Should be uint64? |
51 uint32 video_bytes_decoded; // Should be uint64? | 52 uint32 video_bytes_decoded; // Should be uint64? |
52 uint32 video_frames_decoded; | 53 uint32 video_frames_decoded; |
53 uint32 video_frames_dropped; | 54 uint32 video_frames_dropped; |
55 int64_t audio_memory_usage; | |
56 int64_t video_memory_usage; | |
xhwang
2015/10/25 17:01:56
nit: how about using the c++11 Non-Static Class Me
DaleCurtis
2015/10/27 23:14:20
Done.
| |
54 }; | 57 }; |
55 | 58 |
56 // Used for updating pipeline statistics. | 59 // Used for updating pipeline statistics. |
57 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB; | 60 typedef base::Callback<void(const PipelineStatistics&)> StatisticsCB; |
58 | 61 |
59 } // namespace media | 62 } // namespace media |
60 | 63 |
61 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ | 64 #endif // MEDIA_BASE_PIPELINE_STATUS_H_ |
OLD | NEW |