| 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 // Simulate end to end streaming. | 5 // Simulate end to end streaming. |
| 6 // | 6 // |
| 7 // Input: | 7 // Input: |
| 8 // --source= | 8 // --source= |
| 9 // WebM used as the source of video and audio frames. | 9 // WebM used as the source of video and audio frames. |
| 10 // --output= | 10 // --output= |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "base/files/memory_mapped_file.h" | 47 #include "base/files/memory_mapped_file.h" |
| 48 #include "base/files/scoped_file.h" | 48 #include "base/files/scoped_file.h" |
| 49 #include "base/json/json_writer.h" | 49 #include "base/json/json_writer.h" |
| 50 #include "base/logging.h" | 50 #include "base/logging.h" |
| 51 #include "base/macros.h" | 51 #include "base/macros.h" |
| 52 #include "base/memory/ptr_util.h" | 52 #include "base/memory/ptr_util.h" |
| 53 #include "base/path_service.h" | 53 #include "base/path_service.h" |
| 54 #include "base/strings/string_number_conversions.h" | 54 #include "base/strings/string_number_conversions.h" |
| 55 #include "base/strings/stringprintf.h" | 55 #include "base/strings/stringprintf.h" |
| 56 #include "base/test/simple_test_tick_clock.h" | 56 #include "base/test/simple_test_tick_clock.h" |
| 57 #include "base/thread_task_runner_handle.h" | 57 #include "base/threading/thread_task_runner_handle.h" |
| 58 #include "base/time/tick_clock.h" | 58 #include "base/time/tick_clock.h" |
| 59 #include "base/values.h" | 59 #include "base/values.h" |
| 60 #include "media/base/audio_bus.h" | 60 #include "media/base/audio_bus.h" |
| 61 #include "media/base/fake_single_thread_task_runner.h" | 61 #include "media/base/fake_single_thread_task_runner.h" |
| 62 #include "media/base/media.h" | 62 #include "media/base/media.h" |
| 63 #include "media/base/video_frame.h" | 63 #include "media/base/video_frame.h" |
| 64 #include "media/cast/cast_config.h" | 64 #include "media/cast/cast_config.h" |
| 65 #include "media/cast/cast_environment.h" | 65 #include "media/cast/cast_environment.h" |
| 66 #include "media/cast/cast_receiver.h" | 66 #include "media/cast/cast_receiver.h" |
| 67 #include "media/cast/cast_sender.h" | 67 #include "media/cast/cast_sender.h" |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 values.SetString("sim-id", sim_id); | 734 values.SetString("sim-id", sim_id); |
| 735 | 735 |
| 736 std::string extra_data; | 736 std::string extra_data; |
| 737 base::JSONWriter::Write(values, &extra_data); | 737 base::JSONWriter::Write(values, &extra_data); |
| 738 | 738 |
| 739 // Run. | 739 // Run. |
| 740 media::cast::RunSimulation(source_path, log_output_path, metrics_output_path, | 740 media::cast::RunSimulation(source_path, log_output_path, metrics_output_path, |
| 741 yuv_output_path, extra_data, model); | 741 yuv_output_path, extra_data, model); |
| 742 return 0; | 742 return 0; |
| 743 } | 743 } |
| OLD | NEW |