OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/media/cma/pipeline/video_pipeline_impl.h" | 5 #include "chromecast/media/cma/pipeline/video_pipeline_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 current_stats.video_frames_dropped = video_stats.dropped_frames; | 110 current_stats.video_frames_dropped = video_stats.dropped_frames; |
111 | 111 |
112 ::media::PipelineStatistics delta_stats; | 112 ::media::PipelineStatistics delta_stats; |
113 delta_stats.video_bytes_decoded = | 113 delta_stats.video_bytes_decoded = |
114 current_stats.video_bytes_decoded - previous_stats_.video_bytes_decoded; | 114 current_stats.video_bytes_decoded - previous_stats_.video_bytes_decoded; |
115 delta_stats.video_frames_decoded = | 115 delta_stats.video_frames_decoded = |
116 current_stats.video_frames_decoded - previous_stats_.video_frames_decoded; | 116 current_stats.video_frames_decoded - previous_stats_.video_frames_decoded; |
117 delta_stats.video_frames_dropped = | 117 delta_stats.video_frames_dropped = |
118 current_stats.video_frames_dropped - previous_stats_.video_frames_dropped; | 118 current_stats.video_frames_dropped - previous_stats_.video_frames_dropped; |
119 | 119 |
| 120 bytes_decoded_since_last_update_ = delta_stats.video_bytes_decoded; |
120 previous_stats_ = current_stats; | 121 previous_stats_ = current_stats; |
121 | 122 |
122 client().statistics_cb.Run(delta_stats); | 123 client().statistics_cb.Run(delta_stats); |
123 } | 124 } |
124 | 125 |
125 } // namespace media | 126 } // namespace media |
126 } // namespace chromecast | 127 } // namespace chromecast |
OLD | NEW |