| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "media/cast/cast_config.h" | 10 #include "media/cast/cast_config.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 } // namespace | 27 } // namespace |
| 28 | 28 |
| 29 namespace media { | 29 namespace media { |
| 30 namespace cast { | 30 namespace cast { |
| 31 | 31 |
| 32 FrameReceiverConfig GetDefaultAudioReceiverConfig() { | 32 FrameReceiverConfig GetDefaultAudioReceiverConfig() { |
| 33 FrameReceiverConfig config; | 33 FrameReceiverConfig config; |
| 34 config.receiver_ssrc = 2; | 34 config.receiver_ssrc = 2; |
| 35 config.sender_ssrc = 1; | 35 config.sender_ssrc = 1; |
| 36 config.rtp_max_delay_ms = kDefaultRtpMaxDelayMs; | 36 config.rtp_max_delay_ms = kDefaultRtpMaxDelayMs; |
| 37 config.rtp_payload_type = kDefaultRtpAudioPayloadType; | 37 config.rtp_payload_type = RtpPayloadType::AUDIO_OPUS; |
| 38 config.rtp_timebase = 48000; | 38 config.rtp_timebase = 48000; |
| 39 config.channels = 2; | 39 config.channels = 2; |
| 40 config.target_frame_rate = 100; // 10ms of signal per frame | 40 config.target_frame_rate = 100; // 10ms of signal per frame |
| 41 config.codec = media::cast::CODEC_AUDIO_OPUS; | 41 config.codec = media::cast::CODEC_AUDIO_OPUS; |
| 42 return config; | 42 return config; |
| 43 } | 43 } |
| 44 | 44 |
| 45 FrameReceiverConfig GetDefaultVideoReceiverConfig() { | 45 FrameReceiverConfig GetDefaultVideoReceiverConfig() { |
| 46 FrameReceiverConfig config; | 46 FrameReceiverConfig config; |
| 47 config.receiver_ssrc = 12; | 47 config.receiver_ssrc = 12; |
| 48 config.sender_ssrc = 11; | 48 config.sender_ssrc = 11; |
| 49 config.rtp_max_delay_ms = kDefaultRtpMaxDelayMs; | 49 config.rtp_max_delay_ms = kDefaultRtpMaxDelayMs; |
| 50 config.rtp_payload_type = kDefaultRtpVideoPayloadType; | 50 config.rtp_payload_type = RtpPayloadType::VIDEO_VP8; |
| 51 config.rtp_timebase = kVideoFrequency; | 51 config.rtp_timebase = kVideoFrequency; |
| 52 config.channels = 1; | 52 config.channels = 1; |
| 53 config.target_frame_rate = kDefaultMaxFrameRate; | 53 config.target_frame_rate = kDefaultMaxFrameRate; |
| 54 config.codec = media::cast::CODEC_VIDEO_VP8; | 54 config.codec = media::cast::CODEC_VIDEO_VP8; |
| 55 return config; | 55 return config; |
| 56 } | 56 } |
| 57 | 57 |
| 58 AudioSenderConfig GetDefaultAudioSenderConfig() { | 58 AudioSenderConfig GetDefaultAudioSenderConfig() { |
| 59 FrameReceiverConfig recv_config = GetDefaultAudioReceiverConfig(); | 59 FrameReceiverConfig recv_config = GetDefaultAudioReceiverConfig(); |
| 60 AudioSenderConfig config; | 60 AudioSenderConfig config; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 CreateDefaultVideoEncodeAcceleratorCallback() { | 94 CreateDefaultVideoEncodeAcceleratorCallback() { |
| 95 return base::Bind(&CreateVideoEncodeAccelerator); | 95 return base::Bind(&CreateVideoEncodeAccelerator); |
| 96 } | 96 } |
| 97 | 97 |
| 98 CreateVideoEncodeMemoryCallback CreateDefaultVideoEncodeMemoryCallback() { | 98 CreateVideoEncodeMemoryCallback CreateDefaultVideoEncodeMemoryCallback() { |
| 99 return base::Bind(&CreateVideoEncodeMemory); | 99 return base::Bind(&CreateVideoEncodeMemory); |
| 100 } | 100 } |
| 101 | 101 |
| 102 } // namespace cast | 102 } // namespace cast |
| 103 } // namespace media | 103 } // namespace media |
| OLD | NEW |