OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // This test generate synthetic data. For audio it's a sinusoid waveform with | 5 // This test generate synthetic data. For audio it's a sinusoid waveform with |
6 // frequency kSoundFrequency and different amplitudes. For video it's a pattern | 6 // frequency kSoundFrequency and different amplitudes. For video it's a pattern |
7 // that is shifting by one pixel per frame, each pixels neighbors right and down | 7 // that is shifting by one pixel per frame, each pixels neighbors right and down |
8 // is this pixels value +1, since the pixel value is 8 bit it will wrap | 8 // is this pixels value +1, since the pixel value is 8 bit it will wrap |
9 // frequently within the image. Visually this will create diagonally color bands | 9 // frequently within the image. Visually this will create diagonally color bands |
10 // that moves across the screen | 10 // that moves across the screen |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 | 486 |
487 test_receiver_audio_callback_->SetExpectedSamplingFrequency( | 487 test_receiver_audio_callback_->SetExpectedSamplingFrequency( |
488 audio_receiver_config_.frequency); | 488 audio_receiver_config_.frequency); |
489 | 489 |
490 video_sender_config_.rtp_config.ssrc = 3; | 490 video_sender_config_.rtp_config.ssrc = 3; |
491 video_sender_config_.incoming_feedback_ssrc = 4; | 491 video_sender_config_.incoming_feedback_ssrc = 4; |
492 video_sender_config_.rtp_config.payload_type = 97; | 492 video_sender_config_.rtp_config.payload_type = 97; |
493 video_sender_config_.use_external_encoder = false; | 493 video_sender_config_.use_external_encoder = false; |
494 video_sender_config_.width = kVideoHdWidth; | 494 video_sender_config_.width = kVideoHdWidth; |
495 video_sender_config_.height = kVideoHdHeight; | 495 video_sender_config_.height = kVideoHdHeight; |
496 video_sender_config_.max_bitrate = 5000000; | 496 video_sender_config_.max_bitrate = 50000; |
497 video_sender_config_.min_bitrate = 1000000; | 497 video_sender_config_.min_bitrate = 10000; |
498 video_sender_config_.start_bitrate = 5000000; | 498 video_sender_config_.start_bitrate = 10000; |
499 video_sender_config_.max_qp = 30; | 499 video_sender_config_.max_qp = 30; |
500 video_sender_config_.min_qp = 4; | 500 video_sender_config_.min_qp = 4; |
501 video_sender_config_.max_frame_rate = 30; | 501 video_sender_config_.max_frame_rate = 30; |
502 video_sender_config_.max_number_of_video_buffers_used = | 502 video_sender_config_.max_number_of_video_buffers_used = |
503 max_number_of_video_buffers_used; | 503 max_number_of_video_buffers_used; |
504 video_sender_config_.codec = video_codec; | 504 video_sender_config_.codec = video_codec; |
505 | 505 |
506 video_receiver_config_.feedback_ssrc = | 506 video_receiver_config_.feedback_ssrc = |
507 video_sender_config_.incoming_feedback_ssrc; | 507 video_sender_config_.incoming_feedback_ssrc; |
508 video_receiver_config_.incoming_ssrc = video_sender_config_.rtp_config.ssrc; | 508 video_receiver_config_.incoming_ssrc = video_sender_config_.rtp_config.ssrc; |
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1349 EXPECT_LT((video_ticks_.back().second - test_end).InMilliseconds(), 1000); | 1349 EXPECT_LT((video_ticks_.back().second - test_end).InMilliseconds(), 1000); |
1350 } | 1350 } |
1351 | 1351 |
1352 // TODO(pwestin): Add repeatable packet loss test. | 1352 // TODO(pwestin): Add repeatable packet loss test. |
1353 // TODO(pwestin): Add test for misaligned send get calls. | 1353 // TODO(pwestin): Add test for misaligned send get calls. |
1354 // TODO(pwestin): Add more tests that does not resample. | 1354 // TODO(pwestin): Add more tests that does not resample. |
1355 // TODO(pwestin): Add test when we have starvation for our RunTask. | 1355 // TODO(pwestin): Add test when we have starvation for our RunTask. |
1356 | 1356 |
1357 } // namespace cast | 1357 } // namespace cast |
1358 } // namespace media | 1358 } // namespace media |
OLD | NEW |