| 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 "media/cast/transport/cast_transport_config.h" | 8 #include "media/cast/transport/cast_transport_config.h" |
| 8 | 9 |
| 10 namespace { |
| 11 |
| 12 void CreateVideoEncodeAccelerator( |
| 13 const media::cast::ReceiveVideoEncodeAcceleratorCallback& callback) { |
| 14 // Do nothing. |
| 15 } |
| 16 |
| 17 void CreateVideoEncodeMemory( |
| 18 size_t size, |
| 19 const media::cast::ReceiveVideoEncodeMemoryCallback& callback) { |
| 20 // Do nothing. |
| 21 } |
| 22 |
| 23 } // namespace |
| 24 |
| 9 namespace media { | 25 namespace media { |
| 10 namespace cast { | 26 namespace cast { |
| 11 | 27 |
| 12 AudioReceiverConfig GetDefaultAudioReceiverConfig() { | 28 AudioReceiverConfig GetDefaultAudioReceiverConfig() { |
| 13 AudioReceiverConfig config; | 29 AudioReceiverConfig config; |
| 14 config.feedback_ssrc = 2; | 30 config.feedback_ssrc = 2; |
| 15 config.incoming_ssrc = 1; | 31 config.incoming_ssrc = 1; |
| 16 config.rtp_payload_type = 127; | 32 config.rtp_payload_type = 127; |
| 17 config.rtcp_c_name = "audio_receiver@a.b.c.d"; | 33 config.rtcp_c_name = "audio_receiver@a.b.c.d"; |
| 18 config.use_external_decoder = false; | 34 config.use_external_decoder = false; |
| 19 config.frequency = 48000; | 35 config.frequency = 48000; |
| 20 config.channels = 2; | 36 config.channels = 2; |
| 21 config.codec = media::cast::transport::kOpus; | 37 config.codec = media::cast::transport::kOpus; |
| 22 return config; | 38 return config; |
| 23 } | 39 } |
| 24 | 40 |
| 25 VideoReceiverConfig GetDefaultVideoReceiverConfig() { | 41 VideoReceiverConfig GetDefaultVideoReceiverConfig() { |
| 26 VideoReceiverConfig config; | 42 VideoReceiverConfig config; |
| 27 config.feedback_ssrc = 12; | 43 config.feedback_ssrc = 12; |
| 28 config.incoming_ssrc = 11; | 44 config.incoming_ssrc = 11; |
| 29 config.rtp_payload_type = 96; | 45 config.rtp_payload_type = 96; |
| 30 config.rtcp_c_name = "video_receiver@a.b.c.d"; | 46 config.rtcp_c_name = "video_receiver@a.b.c.d"; |
| 31 config.use_external_decoder = false; | 47 config.use_external_decoder = false; |
| 32 config.codec = media::cast::transport::kVp8; | 48 config.codec = media::cast::transport::kVp8; |
| 33 return config; | 49 return config; |
| 34 } | 50 } |
| 35 | 51 |
| 52 CreateVideoEncodeAcceleratorCallback |
| 53 CreateDefaultVideoEncodeAcceleratorCallback() { |
| 54 return base::Bind(&CreateVideoEncodeAccelerator); |
| 55 } |
| 56 |
| 57 CreateVideoEncodeMemoryCallback CreateDefaultVideoEncodeMemoryCallback() { |
| 58 return base::Bind(&CreateVideoEncodeMemory); |
| 59 } |
| 60 |
| 36 } // namespace cast | 61 } // namespace cast |
| 37 } // namespace media | 62 } // namespace media |
| OLD | NEW |