Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: media/cast/test/utility/default_config.cc

Issue 427733002: Cast: Remove unused RTCP messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/cast/test/sender.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 11 matching lines...) Expand all
22 22
23 } // namespace 23 } // namespace
24 24
25 namespace media { 25 namespace media {
26 namespace cast { 26 namespace cast {
27 27
28 FrameReceiverConfig GetDefaultAudioReceiverConfig() { 28 FrameReceiverConfig GetDefaultAudioReceiverConfig() {
29 FrameReceiverConfig config; 29 FrameReceiverConfig config;
30 config.feedback_ssrc = 2; 30 config.feedback_ssrc = 2;
31 config.incoming_ssrc = 1; 31 config.incoming_ssrc = 1;
32 config.rtcp_c_name = "audio_receiver@a.b.c.d";
33 config.rtp_max_delay_ms = kDefaultRtpMaxDelayMs; 32 config.rtp_max_delay_ms = kDefaultRtpMaxDelayMs;
34 config.rtp_payload_type = 127; 33 config.rtp_payload_type = 127;
35 config.frequency = 48000; 34 config.frequency = 48000;
36 config.channels = 2; 35 config.channels = 2;
37 config.max_frame_rate = 100; // 10ms of signal per frame 36 config.max_frame_rate = 100; // 10ms of signal per frame
38 config.codec = media::cast::CODEC_AUDIO_OPUS; 37 config.codec = media::cast::CODEC_AUDIO_OPUS;
39 return config; 38 return config;
40 } 39 }
41 40
42 FrameReceiverConfig GetDefaultVideoReceiverConfig() { 41 FrameReceiverConfig GetDefaultVideoReceiverConfig() {
43 FrameReceiverConfig config; 42 FrameReceiverConfig config;
44 config.feedback_ssrc = 12; 43 config.feedback_ssrc = 12;
45 config.incoming_ssrc = 11; 44 config.incoming_ssrc = 11;
46 config.rtcp_c_name = "video_receiver@a.b.c.d";
47 config.rtp_max_delay_ms = kDefaultRtpMaxDelayMs; 45 config.rtp_max_delay_ms = kDefaultRtpMaxDelayMs;
48 config.rtp_payload_type = 96; 46 config.rtp_payload_type = 96;
49 config.frequency = kVideoFrequency; 47 config.frequency = kVideoFrequency;
50 config.channels = 1; 48 config.channels = 1;
51 config.max_frame_rate = kDefaultMaxFrameRate; 49 config.max_frame_rate = kDefaultMaxFrameRate;
52 config.codec = media::cast::CODEC_VIDEO_VP8; 50 config.codec = media::cast::CODEC_VIDEO_VP8;
53 return config; 51 return config;
54 } 52 }
55 53
56 AudioSenderConfig GetDefaultAudioSenderConfig() { 54 AudioSenderConfig GetDefaultAudioSenderConfig() {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 CreateDefaultVideoEncodeAcceleratorCallback() { 92 CreateDefaultVideoEncodeAcceleratorCallback() {
95 return base::Bind(&CreateVideoEncodeAccelerator); 93 return base::Bind(&CreateVideoEncodeAccelerator);
96 } 94 }
97 95
98 CreateVideoEncodeMemoryCallback CreateDefaultVideoEncodeMemoryCallback() { 96 CreateVideoEncodeMemoryCallback CreateDefaultVideoEncodeMemoryCallback() {
99 return base::Bind(&CreateVideoEncodeMemory); 97 return base::Bind(&CreateVideoEncodeMemory);
100 } 98 }
101 99
102 } // namespace cast 100 } // namespace cast
103 } // namespace media 101 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/test/sender.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698