| 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 video_sender_config_.height = kVideoHdHeight; | 456 video_sender_config_.height = kVideoHdHeight; |
| 457 video_sender_config_.max_bitrate = 5000000; | 457 video_sender_config_.max_bitrate = 5000000; |
| 458 video_sender_config_.min_bitrate = 1000000; | 458 video_sender_config_.min_bitrate = 1000000; |
| 459 video_sender_config_.start_bitrate = 5000000; | 459 video_sender_config_.start_bitrate = 5000000; |
| 460 video_sender_config_.max_qp = 30; | 460 video_sender_config_.max_qp = 30; |
| 461 video_sender_config_.min_qp = 4; | 461 video_sender_config_.min_qp = 4; |
| 462 video_sender_config_.max_frame_rate = 30; | 462 video_sender_config_.max_frame_rate = 30; |
| 463 video_sender_config_.max_number_of_video_buffers_used = | 463 video_sender_config_.max_number_of_video_buffers_used = |
| 464 max_number_of_video_buffers_used; | 464 max_number_of_video_buffers_used; |
| 465 video_sender_config_.codec = transport::kVp8; | 465 video_sender_config_.codec = transport::kVp8; |
| 466 video_sender_config_.number_of_cores = 1; | |
| 467 | 466 |
| 468 video_receiver_config_.feedback_ssrc = | 467 video_receiver_config_.feedback_ssrc = |
| 469 video_sender_config_.incoming_feedback_ssrc; | 468 video_sender_config_.incoming_feedback_ssrc; |
| 470 video_receiver_config_.incoming_ssrc = video_sender_config_.sender_ssrc; | 469 video_receiver_config_.incoming_ssrc = video_sender_config_.sender_ssrc; |
| 471 video_receiver_config_.rtp_payload_type = | 470 video_receiver_config_.rtp_payload_type = |
| 472 video_sender_config_.rtp_config.payload_type; | 471 video_sender_config_.rtp_config.payload_type; |
| 473 video_receiver_config_.use_external_decoder = false; | 472 video_receiver_config_.use_external_decoder = false; |
| 474 video_receiver_config_.codec = video_sender_config_.codec; | 473 video_receiver_config_.codec = video_sender_config_.codec; |
| 475 | 474 |
| 476 transport_audio_config_.base.ssrc = audio_sender_config_.sender_ssrc; | 475 transport_audio_config_.base.ssrc = audio_sender_config_.sender_ssrc; |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1236 EXPECT_EQ(total_event_count_for_frame, expected_event_count_for_frame); | 1235 EXPECT_EQ(total_event_count_for_frame, expected_event_count_for_frame); |
| 1237 } | 1236 } |
| 1238 | 1237 |
| 1239 // TODO(pwestin): Add repeatable packet loss test. | 1238 // TODO(pwestin): Add repeatable packet loss test. |
| 1240 // TODO(pwestin): Add test for misaligned send get calls. | 1239 // TODO(pwestin): Add test for misaligned send get calls. |
| 1241 // TODO(pwestin): Add more tests that does not resample. | 1240 // TODO(pwestin): Add more tests that does not resample. |
| 1242 // TODO(pwestin): Add test when we have starvation for our RunTask. | 1241 // TODO(pwestin): Add test when we have starvation for our RunTask. |
| 1243 | 1242 |
| 1244 } // namespace cast | 1243 } // namespace cast |
| 1245 } // namespace media | 1244 } // namespace media |
| OLD | NEW |