| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 struct Config { | 26 struct Config { |
| 27 size_t width; | 27 size_t width; |
| 28 size_t height; | 28 size_t height; |
| 29 int32_t fps; | 29 int32_t fps; |
| 30 size_t min_bitrate_kbps; | 30 size_t min_bitrate_kbps; |
| 31 size_t start_bitrate_kbps; | 31 size_t start_bitrate_kbps; |
| 32 size_t max_bitrate_kbps; | 32 size_t max_bitrate_kbps; |
| 33 int32_t min_transmit_bitrate_kbps; | 33 int32_t min_transmit_bitrate_kbps; |
| 34 std::string codec; | 34 std::string codec; |
| 35 size_t num_temporal_layers; | 35 size_t num_temporal_layers; |
| 36 size_t num_spatial_layers; |
| 37 // Discard all temporal/spatial layers with id greater or equal the |
| 38 // threshold. 0 to disable. |
| 39 size_t tl_discard_threshold; |
| 40 size_t sl_discard_threshold; |
| 36 int32_t loss_percent; | 41 int32_t loss_percent; |
| 37 int32_t link_capacity_kbps; | 42 int32_t link_capacity_kbps; |
| 38 int32_t queue_size; | 43 int32_t queue_size; |
| 39 int32_t avg_propagation_delay_ms; | 44 int32_t avg_propagation_delay_ms; |
| 40 int32_t std_propagation_delay_ms; | 45 int32_t std_propagation_delay_ms; |
| 41 bool logs; | 46 bool logs; |
| 42 }; | 47 }; |
| 43 | 48 |
| 44 explicit Loopback(const Config& config); | 49 explicit Loopback(const Config& config); |
| 45 virtual ~Loopback(); | 50 virtual ~Loopback(); |
| 46 | 51 |
| 47 void Run(); | 52 void Run(); |
| 48 | 53 |
| 49 protected: | 54 protected: |
| 50 virtual VideoEncoderConfig CreateEncoderConfig(); | 55 virtual VideoEncoderConfig CreateEncoderConfig(); |
| 51 virtual VideoCapturer* CreateCapturer(VideoSendStream* send_stream); | 56 virtual VideoCapturer* CreateCapturer(VideoSendStream* send_stream); |
| 52 | 57 |
| 53 const Config config_; | 58 const Config config_; |
| 54 Clock* const clock_; | 59 Clock* const clock_; |
| 55 }; | 60 }; |
| 56 | 61 |
| 57 } // namespace test | 62 } // namespace test |
| 58 } // namespace webrtc | 63 } // namespace webrtc |
| OLD | NEW |