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

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

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: Fix formatting issue 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 #ifndef CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_
6 #define CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_ 6 #define CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 29 matching lines...) Expand all
40 40
41 private: 41 private:
42 // AvPipelineImpl implementation: 42 // AvPipelineImpl implementation:
43 void OnVideoResolutionChanged(const Size& size) override; 43 void OnVideoResolutionChanged(const Size& size) override;
44 void OnUpdateConfig(StreamId id, 44 void OnUpdateConfig(StreamId id,
45 const ::media::AudioDecoderConfig& audio_config, 45 const ::media::AudioDecoderConfig& audio_config,
46 const ::media::VideoDecoderConfig& video_config) override; 46 const ::media::VideoDecoderConfig& video_config) override;
47 47
48 MediaPipelineBackend::VideoDecoder* const video_decoder_; 48 MediaPipelineBackend::VideoDecoder* const video_decoder_;
49 const VideoPipelineClient::NaturalSizeChangedCB natural_size_changed_cb_; 49 const VideoPipelineClient::NaturalSizeChangedCB natural_size_changed_cb_;
50 base::Time last_sample_time_;
51 base::TimeDelta elapsed_time_delta_;
52 int video_bytes_for_bitrate_estimation_;
halliwell 2016/03/10 17:57:54 I was about to leave 'ditto' comments on the video
ejason 2016/03/11 00:24:45 Done. I refactored the code so that this calculati
50 53
51 DISALLOW_COPY_AND_ASSIGN(VideoPipelineImpl); 54 DISALLOW_COPY_AND_ASSIGN(VideoPipelineImpl);
52 }; 55 };
53 56
54 } // namespace media 57 } // namespace media
55 } // namespace chromecast 58 } // namespace chromecast
56 59
57 #endif // CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_ 60 #endif // CHROMECAST_MEDIA_CMA_BASE_VIDEO_PIPELINE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698