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 "media/cast/test/utility/default_config.h" | 5 #include "media/cast/test/utility/default_config.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "media/cast/net/cast_transport_config.h" | 8 #include "media/cast/net/cast_transport_config.h" |
9 | 9 |
10 namespace { | 10 namespace { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 return config; | 67 return config; |
68 } | 68 } |
69 | 69 |
70 VideoSenderConfig GetDefaultVideoSenderConfig() { | 70 VideoSenderConfig GetDefaultVideoSenderConfig() { |
71 FrameReceiverConfig recv_config = GetDefaultVideoReceiverConfig(); | 71 FrameReceiverConfig recv_config = GetDefaultVideoReceiverConfig(); |
72 VideoSenderConfig config; | 72 VideoSenderConfig config; |
73 config.ssrc = recv_config.incoming_ssrc; | 73 config.ssrc = recv_config.incoming_ssrc; |
74 config.receiver_ssrc = recv_config.feedback_ssrc; | 74 config.receiver_ssrc = recv_config.feedback_ssrc; |
75 config.rtp_payload_type = recv_config.rtp_payload_type; | 75 config.rtp_payload_type = recv_config.rtp_payload_type; |
76 config.use_external_encoder = false; | 76 config.use_external_encoder = false; |
77 config.width = 1280; | |
78 config.height = 720; | |
79 config.max_bitrate = 4000000; | 77 config.max_bitrate = 4000000; |
80 config.min_bitrate = 2000000; | 78 config.min_bitrate = 2000000; |
81 config.start_bitrate = 4000000; | 79 config.start_bitrate = 4000000; |
82 config.max_frame_rate = recv_config.target_frame_rate; | 80 config.max_frame_rate = recv_config.target_frame_rate; |
83 config.max_number_of_video_buffers_used = 1; | 81 config.max_number_of_video_buffers_used = 1; |
84 config.codec = recv_config.codec; | 82 config.codec = recv_config.codec; |
85 config.number_of_encode_threads = 2; | 83 config.number_of_encode_threads = 2; |
86 config.max_playout_delay = | 84 config.max_playout_delay = |
87 base::TimeDelta::FromMilliseconds(kDefaultRtpMaxDelayMs); | 85 base::TimeDelta::FromMilliseconds(kDefaultRtpMaxDelayMs); |
88 return config; | 86 return config; |
89 } | 87 } |
90 | 88 |
91 CreateVideoEncodeAcceleratorCallback | 89 CreateVideoEncodeAcceleratorCallback |
92 CreateDefaultVideoEncodeAcceleratorCallback() { | 90 CreateDefaultVideoEncodeAcceleratorCallback() { |
93 return base::Bind(&CreateVideoEncodeAccelerator); | 91 return base::Bind(&CreateVideoEncodeAccelerator); |
94 } | 92 } |
95 | 93 |
96 CreateVideoEncodeMemoryCallback CreateDefaultVideoEncodeMemoryCallback() { | 94 CreateVideoEncodeMemoryCallback CreateDefaultVideoEncodeMemoryCallback() { |
97 return base::Bind(&CreateVideoEncodeMemory); | 95 return base::Bind(&CreateVideoEncodeMemory); |
98 } | 96 } |
99 | 97 |
100 } // namespace cast | 98 } // namespace cast |
101 } // namespace media | 99 } // namespace media |
OLD | NEW |