Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: chromecast/media/cma/pipeline/video_pipeline_impl.cc

Issue 1776353006: [Chromecast] Add metrics for logging platform A/V bitrate estimates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add const qualifier to bytes_decoded accessor Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698