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

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

Issue 306783002: [Cast] Clean-up: Merge AudioReceiverConfig+VideoReceiverConfig-->FrameReceiverConfig. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed kFakeSoftwareAudio in AudioCodec enum, per hclam@. Created 6 years, 6 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/utility/default_config.h ('k') | media/cast/test/utility/in_process_receiver.h » ('j') | 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/transport/cast_transport_config.h" 8 #include "media/cast/transport/cast_transport_config.h"
9 9
10 namespace { 10 namespace {
11 11
12 void CreateVideoEncodeAccelerator( 12 void CreateVideoEncodeAccelerator(
13 const media::cast::ReceiveVideoEncodeAcceleratorCallback& callback) { 13 const media::cast::ReceiveVideoEncodeAcceleratorCallback& callback) {
14 // Do nothing. 14 // Do nothing.
15 } 15 }
16 16
17 void CreateVideoEncodeMemory( 17 void CreateVideoEncodeMemory(
18 size_t size, 18 size_t size,
19 const media::cast::ReceiveVideoEncodeMemoryCallback& callback) { 19 const media::cast::ReceiveVideoEncodeMemoryCallback& callback) {
20 // Do nothing. 20 // Do nothing.
21 } 21 }
22 22
23 } // namespace 23 } // namespace
24 24
25 namespace media { 25 namespace media {
26 namespace cast { 26 namespace cast {
27 27
28 AudioReceiverConfig GetDefaultAudioReceiverConfig() { 28 FrameReceiverConfig GetDefaultAudioReceiverConfig() {
29 AudioReceiverConfig 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_payload_type = 127; 34 config.rtp_payload_type = 127;
33 config.rtcp_c_name = "audio_receiver@a.b.c.d";
34 config.use_external_decoder = false;
35 config.frequency = 48000; 35 config.frequency = 48000;
36 config.channels = 2; 36 config.channels = 2;
37 config.codec = media::cast::transport::kOpus; 37 config.max_frame_rate = 100; // 10ms of signal per frame
38 config.codec.audio = media::cast::transport::kOpus;
38 return config; 39 return config;
39 } 40 }
40 41
41 VideoReceiverConfig GetDefaultVideoReceiverConfig() { 42 FrameReceiverConfig GetDefaultVideoReceiverConfig() {
42 VideoReceiverConfig config; 43 FrameReceiverConfig config;
43 config.feedback_ssrc = 12; 44 config.feedback_ssrc = 12;
44 config.incoming_ssrc = 11; 45 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_payload_type = 96; 48 config.rtp_payload_type = 96;
46 config.rtcp_c_name = "video_receiver@a.b.c.d"; 49 config.frequency = kVideoFrequency;
47 config.use_external_decoder = false; 50 config.channels = 1;
48 config.codec = media::cast::transport::kVp8; 51 config.max_frame_rate = kDefaultMaxFrameRate;
52 config.codec.video = media::cast::transport::kVp8;
49 return config; 53 return config;
50 } 54 }
51 55
52 CreateVideoEncodeAcceleratorCallback 56 CreateVideoEncodeAcceleratorCallback
53 CreateDefaultVideoEncodeAcceleratorCallback() { 57 CreateDefaultVideoEncodeAcceleratorCallback() {
54 return base::Bind(&CreateVideoEncodeAccelerator); 58 return base::Bind(&CreateVideoEncodeAccelerator);
55 } 59 }
56 60
57 CreateVideoEncodeMemoryCallback CreateDefaultVideoEncodeMemoryCallback() { 61 CreateVideoEncodeMemoryCallback CreateDefaultVideoEncodeMemoryCallback() {
58 return base::Bind(&CreateVideoEncodeMemory); 62 return base::Bind(&CreateVideoEncodeMemory);
59 } 63 }
60 64
61 } // namespace cast 65 } // namespace cast
62 } // namespace media 66 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/test/utility/default_config.h ('k') | media/cast/test/utility/in_process_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698