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

Side by Side Diff: chromecast/media/cma/pipeline/audio_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: Handle different audio/video pipeline configurations 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
« no previous file with comments | « no previous file | chromecast/media/cma/pipeline/av_pipeline_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/audio_pipeline_impl.h" 5 #include "chromecast/media/cma/pipeline/audio_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 MediaPipelineBackend::AudioDecoder::Statistics audio_stats; 77 MediaPipelineBackend::AudioDecoder::Statistics audio_stats;
78 audio_decoder_->GetStatistics(&audio_stats); 78 audio_decoder_->GetStatistics(&audio_stats);
79 79
80 ::media::PipelineStatistics current_stats; 80 ::media::PipelineStatistics current_stats;
81 current_stats.audio_bytes_decoded = audio_stats.decoded_bytes; 81 current_stats.audio_bytes_decoded = audio_stats.decoded_bytes;
82 82
83 ::media::PipelineStatistics delta_stats; 83 ::media::PipelineStatistics delta_stats;
84 delta_stats.audio_bytes_decoded = 84 delta_stats.audio_bytes_decoded =
85 current_stats.audio_bytes_decoded - previous_stats_.audio_bytes_decoded; 85 current_stats.audio_bytes_decoded - previous_stats_.audio_bytes_decoded;
86 86
87 bytes_decoded_since_last_update_ = delta_stats.audio_bytes_decoded;
87 previous_stats_ = current_stats; 88 previous_stats_ = current_stats;
88 89
89 client().statistics_cb.Run(delta_stats); 90 client().statistics_cb.Run(delta_stats);
90 } 91 }
91 92
92 } // namespace media 93 } // namespace media
93 } // namespace chromecast 94 } // namespace chromecast
OLDNEW
« no previous file with comments | « no previous file | chromecast/media/cma/pipeline/av_pipeline_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698