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

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

Issue 906403006: [Cast] Size-Adaptable platform video encoders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed hubbe's comments. Created 5 years, 10 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
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | media/cast/test/utility/video_utility.cc » ('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/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
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
OLDNEW
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | media/cast/test/utility/video_utility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698