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/media_pipeline_impl.h" | 5 #include "chromecast/media/cma/pipeline/media_pipeline_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "chromecast/base/metrics/cast_metrics_helper.h" | 17 #include "chromecast/base/metrics/cast_metrics_helper.h" |
18 #include "chromecast/media/cdm/browser_cdm_cast.h" | 18 #include "chromecast/media/cdm/browser_cdm_cast.h" |
19 #include "chromecast/media/cma/base/buffering_controller.h" | 19 #include "chromecast/media/cma/base/buffering_controller.h" |
20 #include "chromecast/media/cma/base/buffering_state.h" | 20 #include "chromecast/media/cma/base/buffering_state.h" |
21 #include "chromecast/media/cma/base/cma_logging.h" | 21 #include "chromecast/media/cma/base/cma_logging.h" |
22 #include "chromecast/media/cma/base/coded_frame_provider.h" | 22 #include "chromecast/media/cma/base/coded_frame_provider.h" |
23 #include "chromecast/media/cma/pipeline/audio_decoder_software_wrapper.h" | 23 #include "chromecast/media/cma/pipeline/audio_decoder_software_wrapper.h" |
24 #include "chromecast/media/cma/pipeline/audio_pipeline_impl.h" | 24 #include "chromecast/media/cma/pipeline/audio_pipeline_impl.h" |
25 #include "chromecast/media/cma/pipeline/video_pipeline_impl.h" | 25 #include "chromecast/media/cma/pipeline/video_pipeline_impl.h" |
26 #include "chromecast/public/media/media_pipeline_backend.h" | 26 #include "chromecast/public/media/media_pipeline_backend.h" |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 | 513 |
514 void MediaPipelineImpl::ResetBitrateState() { | 514 void MediaPipelineImpl::ResetBitrateState() { |
515 elapsed_time_delta_ = base::TimeDelta::FromSeconds(0); | 515 elapsed_time_delta_ = base::TimeDelta::FromSeconds(0); |
516 audio_bytes_for_bitrate_estimation_ = 0; | 516 audio_bytes_for_bitrate_estimation_ = 0; |
517 video_bytes_for_bitrate_estimation_ = 0; | 517 video_bytes_for_bitrate_estimation_ = 0; |
518 last_sample_time_ = base::TimeTicks::Now(); | 518 last_sample_time_ = base::TimeTicks::Now(); |
519 } | 519 } |
520 | 520 |
521 } // namespace media | 521 } // namespace media |
522 } // namespace chromecast | 522 } // namespace chromecast |
OLD | NEW |