• Home
  • Raw
  • Download

Lines Matching full:streams

27   std::vector<VideoStream> streams(3);  in GetSimulcastBitrates720p()  local
28 streams[0].min_bitrate_bps = 30000; in GetSimulcastBitrates720p()
29 streams[0].target_bitrate_bps = 150000; in GetSimulcastBitrates720p()
30 streams[0].max_bitrate_bps = 200000; in GetSimulcastBitrates720p()
31 streams[1].min_bitrate_bps = 150000; in GetSimulcastBitrates720p()
32 streams[1].target_bitrate_bps = 500000; in GetSimulcastBitrates720p()
33 streams[1].max_bitrate_bps = 700000; in GetSimulcastBitrates720p()
34 streams[2].min_bitrate_bps = 600000; in GetSimulcastBitrates720p()
35 streams[2].target_bitrate_bps = 2500000; in GetSimulcastBitrates720p()
36 streams[2].max_bitrate_bps = 2500000; in GetSimulcastBitrates720p()
37 return streams; in GetSimulcastBitrates720p()
42 std::vector<VideoStream> streams; in TEST() local
43 EXPECT_EQ(0, cricket::GetTotalMaxBitrate(streams).bps()); in TEST()
47 std::vector<VideoStream> streams(1); in TEST() local
48 streams[0].max_bitrate_bps = 100000; in TEST()
49 EXPECT_EQ(100000, cricket::GetTotalMaxBitrate(streams).bps()); in TEST()
53 std::vector<VideoStream> streams(3); in TEST() local
54 streams[0].target_bitrate_bps = 100000; in TEST()
55 streams[1].target_bitrate_bps = 200000; in TEST()
56 streams[2].max_bitrate_bps = 400000; in TEST()
57 EXPECT_EQ(700000, cricket::GetTotalMaxBitrate(streams).bps()); in TEST()
61 std::vector<VideoStream> streams(3); in TEST() local
62 streams[0].target_bitrate_bps = 100000; in TEST()
63 streams[1].target_bitrate_bps = 200000; in TEST()
64 streams[2].max_bitrate_bps = 400000; in TEST()
70 cricket::GetTotalMaxBitrate(streams); in TEST()
71 cricket::BoostMaxSimulcastLayer(max_total_bitrate, &streams); in TEST()
72 EXPECT_EQ(400000, streams[2].max_bitrate_bps); in TEST()
73 EXPECT_EQ(max_total_bitrate, cricket::GetTotalMaxBitrate(streams)); in TEST()
76 cricket::BoostMaxSimulcastLayer(max_total_bitrate + one_bps, &streams); in TEST()
77 EXPECT_EQ(400000 + 1, streams[2].max_bitrate_bps); in TEST()
78 EXPECT_EQ(max_total_bitrate + one_bps, cricket::GetTotalMaxBitrate(streams)); in TEST()
86 std::vector<VideoStream> streams = cricket::GetSimulcastConfig( in TEST() local
90 EXPECT_EQ(kMaxLayers, streams.size()); in TEST()
91 EXPECT_EQ(320u, streams[0].width); in TEST()
92 EXPECT_EQ(180u, streams[0].height); in TEST()
93 EXPECT_EQ(640u, streams[1].width); in TEST()
94 EXPECT_EQ(360u, streams[1].height); in TEST()
95 EXPECT_EQ(1280u, streams[2].width); in TEST()
96 EXPECT_EQ(720u, streams[2].height); in TEST()
98 for (size_t i = 0; i < streams.size(); ++i) { in TEST()
99 EXPECT_EQ(size_t{kDefaultTemporalLayers}, streams[i].num_temporal_layers); in TEST()
100 EXPECT_EQ(cricket::kDefaultVideoMaxFramerate, streams[i].max_framerate); in TEST()
101 EXPECT_EQ(kQpMax, streams[i].max_qp); in TEST()
102 EXPECT_EQ(kExpected[i].min_bitrate_bps, streams[i].min_bitrate_bps); in TEST()
103 EXPECT_EQ(kExpected[i].target_bitrate_bps, streams[i].target_bitrate_bps); in TEST()
104 EXPECT_EQ(kExpected[i].max_bitrate_bps, streams[i].max_bitrate_bps); in TEST()
105 EXPECT_TRUE(streams[i].active); in TEST()
108 EXPECT_EQ(kBitratePriority, streams[0].bitrate_priority); in TEST()
109 EXPECT_FALSE(streams[1].bitrate_priority); in TEST()
110 EXPECT_FALSE(streams[2].bitrate_priority); in TEST()
121 std::vector<VideoStream> streams = cricket::GetSimulcastConfig( in TEST() local
125 EXPECT_EQ(kExpected[0].min_bitrate_bps, streams[0].min_bitrate_bps); in TEST()
127 streams[0].target_bitrate_bps); in TEST()
129 streams[0].max_bitrate_bps); in TEST()
130 for (size_t i = 1; i < streams.size(); ++i) { in TEST()
131 EXPECT_EQ(kExpected[i].min_bitrate_bps, streams[i].min_bitrate_bps); in TEST()
132 EXPECT_EQ(kExpected[i].target_bitrate_bps, streams[i].target_bitrate_bps); in TEST()
133 EXPECT_EQ(kExpected[i].max_bitrate_bps, streams[i].max_bitrate_bps); in TEST()
140 std::vector<VideoStream> streams = cricket::GetSimulcastConfig( in TEST() local
144 EXPECT_EQ(kMaxLayers, streams.size()); in TEST()
145 EXPECT_EQ(640u, streams[0].width); in TEST()
146 EXPECT_EQ(360u, streams[0].height); in TEST()
147 EXPECT_EQ(1280u, streams[1].width); in TEST()
148 EXPECT_EQ(720u, streams[1].height); in TEST()
156 std::vector<VideoStream> streams = cricket::GetSimulcastConfig( in TEST() local
160 EXPECT_EQ(2u, streams.size()); in TEST()
161 EXPECT_EQ(400u, streams[0].width); in TEST()
162 EXPECT_EQ(300u, streams[0].height); in TEST()
163 EXPECT_EQ(800u, streams[1].width); in TEST()
164 EXPECT_EQ(600u, streams[1].height); in TEST()
172 std::vector<VideoStream> streams = in TEST() local
176 // Simulcast streams number is never decreased for screenshare, in TEST()
178 EXPECT_GT(streams.size(), 1u); in TEST()
186 std::vector<VideoStream> streams = cricket::GetSimulcastConfig( in TEST() local
190 EXPECT_EQ(kMaxLayers, streams.size()); in TEST()
191 EXPECT_EQ(200u, streams[0].width); in TEST()
192 EXPECT_EQ(150u, streams[0].height); in TEST()
193 EXPECT_EQ(400u, streams[1].width); in TEST()
194 EXPECT_EQ(300u, streams[1].height); in TEST()
195 EXPECT_EQ(800u, streams[2].width); in TEST()
196 EXPECT_EQ(600u, streams[2].height); in TEST()
202 std::vector<VideoStream> streams = cricket::GetSimulcastConfig( in TEST() local
207 EXPECT_EQ(kMaxLayers, streams.size()); in TEST()
208 EXPECT_EQ(320u, streams[0].width); in TEST()
209 EXPECT_EQ(180u, streams[0].height); in TEST()
210 EXPECT_EQ(640u, streams[1].width); in TEST()
211 EXPECT_EQ(360u, streams[1].height); in TEST()
220 std::vector<VideoStream> streams = cricket::GetSimulcastConfig( in TEST() local
225 EXPECT_EQ(kMaxLayers, streams.size()); in TEST()
226 EXPECT_EQ(354u, streams[0].width); in TEST()
227 EXPECT_EQ(250u, streams[0].height); in TEST()
228 EXPECT_EQ(708u, streams[1].width); in TEST()
229 EXPECT_EQ(500u, streams[1].height); in TEST()
238 std::vector<VideoStream> streams = cricket::GetSimulcastConfig( in TEST() local
243 EXPECT_EQ(kMaxLayers, streams.size()); in TEST()
244 EXPECT_EQ(352u, streams[0].width); in TEST()
245 EXPECT_EQ(248u, streams[0].height); in TEST()
246 EXPECT_EQ(704u, streams[1].width); in TEST()
247 EXPECT_EQ(496u, streams[1].height); in TEST()
256 std::vector<VideoStream> streams = cricket::GetSimulcastConfig( in TEST() local
259 EXPECT_EQ(1u, streams.size()); in TEST()
261 streams = cricket::GetSimulcastConfig(kMinLayers, kMaxLayers, 640, 360, in TEST()
264 EXPECT_EQ(2u, streams.size()); in TEST()
266 streams = cricket::GetSimulcastConfig(kMinLayers, kMaxLayers, 1920, 1080, in TEST()
269 EXPECT_EQ(3u, streams.size()); in TEST()
278 std::vector<VideoStream> streams = cricket::GetSimulcastConfig( in TEST() local
281 EXPECT_EQ(3u, streams.size()); in TEST()
283 streams = cricket::GetSimulcastConfig(kMinLayers, kMaxLayers, 640, 360, in TEST()
286 EXPECT_EQ(3u, streams.size()); in TEST()
288 streams = cricket::GetSimulcastConfig(kMinLayers, kMaxLayers, 1920, 1080, in TEST()
291 EXPECT_EQ(3u, streams.size()); in TEST()
297 std::vector<VideoStream> streams = in TEST() local
301 EXPECT_GT(streams.size(), 1u); in TEST()
302 for (size_t i = 0; i < streams.size(); ++i) { in TEST()
303 EXPECT_EQ(1400u, streams[i].width) << "Screen content never scaled."; in TEST()
304 EXPECT_EQ(800u, streams[i].height) << "Screen content never scaled."; in TEST()
305 EXPECT_EQ(kQpMax, streams[i].max_qp); in TEST()
306 EXPECT_TRUE(streams[i].active); in TEST()
307 EXPECT_GT(streams[i].num_temporal_layers, size_t{1}); in TEST()
308 EXPECT_GT(streams[i].max_framerate, 0); in TEST()
309 EXPECT_GT(streams[i].min_bitrate_bps, 0); in TEST()
310 EXPECT_GT(streams[i].target_bitrate_bps, streams[i].min_bitrate_bps); in TEST()
311 EXPECT_GE(streams[i].max_bitrate_bps, streams[i].target_bitrate_bps); in TEST()
318 std::vector<VideoStream> streams = in TEST() local
322 EXPECT_EQ(kMaxLayers, streams.size()); in TEST()
333 std::vector<VideoStream> streams = in TEST() local
336 EXPECT_EQ(kMaxLayers, streams.size()); in TEST()
337 EXPECT_EQ(streams[1].max_bitrate_bps, kScreenshareHighStreamMaxBitrateBps); in TEST()
338 EXPECT_EQ(streams[1].min_bitrate_bps, kScreenshareHighStreamMinBitrateBps); in TEST()
339 EXPECT_GE(streams[1].max_bitrate_bps, streams[1].min_bitrate_bps); in TEST()
342 streams = in TEST()
345 EXPECT_EQ(kMaxLayers, streams.size()); in TEST()
346 EXPECT_EQ(streams[1].max_bitrate_bps, kMaxBitrate960_540); in TEST()
347 EXPECT_EQ(streams[1].min_bitrate_bps, kScreenshareHighStreamMinBitrateBps); in TEST()
348 EXPECT_GE(streams[1].max_bitrate_bps, streams[1].min_bitrate_bps); in TEST()
352 streams = in TEST()
355 EXPECT_EQ(kMaxLayers, streams.size()); in TEST()
356 EXPECT_EQ(streams[1].max_bitrate_bps, kScreenshareHighStreamMinBitrateBps); in TEST()
357 EXPECT_EQ(streams[1].min_bitrate_bps, kScreenshareHighStreamMinBitrateBps); in TEST()
358 EXPECT_GE(streams[1].max_bitrate_bps, streams[1].min_bitrate_bps); in TEST()
364 std::vector<VideoStream> streams = cricket::GetSimulcastConfig( in TEST() local
368 EXPECT_EQ(kMaxLayers, streams.size()); in TEST()
369 EXPECT_EQ(900u, streams[2].width); in TEST()
370 EXPECT_EQ(800u, streams[2].height); in TEST()
371 EXPECT_EQ(1850000, streams[2].max_bitrate_bps); in TEST()
372 EXPECT_EQ(1850000, streams[2].target_bitrate_bps); in TEST()
373 EXPECT_EQ(475000, streams[2].min_bitrate_bps); in TEST()
384 std::vector<VideoStream> streams = cricket::GetSimulcastConfig( in TEST() local
388 EXPECT_EQ(kMaxLayers, streams.size()); in TEST()
389 EXPECT_EQ(kWidth, streams[2].width); in TEST()
390 EXPECT_EQ(kHeight, streams[2].height); in TEST()
391 for (size_t i = 0; i < streams.size(); ++i) { in TEST()
392 EXPECT_NEAR(kExpectedNear[i].max_bitrate_bps, streams[i].max_bitrate_bps, in TEST()
395 streams[i].target_bitrate_bps, 20000); in TEST()
396 EXPECT_NEAR(kExpectedNear[i].min_bitrate_bps, streams[i].min_bitrate_bps, in TEST()