Chromium Code Reviews| 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 #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 Loading... | |
| 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_ |
| OLD | NEW |