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

Side by Side Diff: media/cast/test/end2end_unittest.cc

Issue 228313002: Cast: Use 2 threads for encoding on capable systems (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged Created 6 years, 8 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/encode_decode_test.cc ('k') | media/cast/test/sender.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 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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 video_sender_config_.height = kVideoHdHeight; 469 video_sender_config_.height = kVideoHdHeight;
470 video_sender_config_.max_bitrate = 5000000; 470 video_sender_config_.max_bitrate = 5000000;
471 video_sender_config_.min_bitrate = 1000000; 471 video_sender_config_.min_bitrate = 1000000;
472 video_sender_config_.start_bitrate = 5000000; 472 video_sender_config_.start_bitrate = 5000000;
473 video_sender_config_.max_qp = 30; 473 video_sender_config_.max_qp = 30;
474 video_sender_config_.min_qp = 4; 474 video_sender_config_.min_qp = 4;
475 video_sender_config_.max_frame_rate = 30; 475 video_sender_config_.max_frame_rate = 30;
476 video_sender_config_.max_number_of_video_buffers_used = 476 video_sender_config_.max_number_of_video_buffers_used =
477 max_number_of_video_buffers_used; 477 max_number_of_video_buffers_used;
478 video_sender_config_.codec = transport::kVp8; 478 video_sender_config_.codec = transport::kVp8;
479 video_sender_config_.number_of_cores = 1;
480 479
481 video_receiver_config_.feedback_ssrc = 480 video_receiver_config_.feedback_ssrc =
482 video_sender_config_.incoming_feedback_ssrc; 481 video_sender_config_.incoming_feedback_ssrc;
483 video_receiver_config_.incoming_ssrc = video_sender_config_.sender_ssrc; 482 video_receiver_config_.incoming_ssrc = video_sender_config_.sender_ssrc;
484 video_receiver_config_.rtp_payload_type = 483 video_receiver_config_.rtp_payload_type =
485 video_sender_config_.rtp_config.payload_type; 484 video_sender_config_.rtp_config.payload_type;
486 video_receiver_config_.use_external_decoder = false; 485 video_receiver_config_.use_external_decoder = false;
487 video_receiver_config_.codec = video_sender_config_.codec; 486 video_receiver_config_.codec = video_sender_config_.codec;
488 487
489 transport_audio_config_.base.ssrc = audio_sender_config_.sender_ssrc; 488 transport_audio_config_.base.ssrc = audio_sender_config_.sender_ssrc;
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 EXPECT_EQ(total_event_count_for_frame, expected_event_count_for_frame); 1256 EXPECT_EQ(total_event_count_for_frame, expected_event_count_for_frame);
1258 } 1257 }
1259 1258
1260 // TODO(pwestin): Add repeatable packet loss test. 1259 // TODO(pwestin): Add repeatable packet loss test.
1261 // TODO(pwestin): Add test for misaligned send get calls. 1260 // TODO(pwestin): Add test for misaligned send get calls.
1262 // TODO(pwestin): Add more tests that does not resample. 1261 // TODO(pwestin): Add more tests that does not resample.
1263 // TODO(pwestin): Add test when we have starvation for our RunTask. 1262 // TODO(pwestin): Add test when we have starvation for our RunTask.
1264 1263
1265 } // namespace cast 1264 } // namespace cast
1266 } // namespace media 1265 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/test/encode_decode_test.cc ('k') | media/cast/test/sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698