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

Side by Side Diff: webrtc/modules/video_coding/codecs/tools/video_quality_measurement.cc

Issue 2993063002: Remove source file writer from VideoProcessor. (Closed)
Patch Set: video_quality_measurement updates. Created 3 years, 4 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 | « webrtc/modules/video_coding/codecs/test/videoprocessor_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 501
502 webrtc::test::PacketManipulatorImpl packet_manipulator( 502 webrtc::test::PacketManipulatorImpl packet_manipulator(
503 &packet_reader, config.networking_config, config.verbose); 503 &packet_reader, config.networking_config, config.verbose);
504 // By default the packet manipulator is seeded with a fixed random. 504 // By default the packet manipulator is seeded with a fixed random.
505 // If disabled we must generate a new seed. 505 // If disabled we must generate a new seed.
506 if (FLAGS_disable_fixed_random_seed) { 506 if (FLAGS_disable_fixed_random_seed) {
507 packet_manipulator.InitializeRandomSeed(time(NULL)); 507 packet_manipulator.InitializeRandomSeed(time(NULL));
508 } 508 }
509 webrtc::test::VideoProcessor* processor = new webrtc::test::VideoProcessor( 509 webrtc::test::VideoProcessor* processor = new webrtc::test::VideoProcessor(
510 encoder, decoder, &frame_reader, &frame_writer, &packet_manipulator, 510 encoder, decoder, &frame_reader, &frame_writer, &packet_manipulator,
511 config, &stats, nullptr /* source_frame_writer */, 511 config, &stats, nullptr /* encoded_frame_writer */,
512 nullptr /* encoded_frame_writer */, nullptr /* decoded_frame_writer */); 512 nullptr /* decoded_frame_writer */);
513 processor->Init(); 513 processor->Init();
514 514
515 int frame_number = 0; 515 int frame_number = 0;
516 while (processor->ProcessFrame(frame_number)) { 516 while (processor->ProcessFrame(frame_number)) {
517 if (frame_number % 80 == 0) { 517 if (frame_number % 80 == 0) {
518 Log("\n"); // make the output a bit nicer. 518 Log("\n"); // make the output a bit nicer.
519 } 519 }
520 Log("."); 520 Log(".");
521 frame_number++; 521 frame_number++;
522 } 522 }
(...skipping 23 matching lines...) Expand all
546 } 546 }
547 if (FLAGS_python) { 547 if (FLAGS_python) {
548 PrintPythonOutput(config, stats, ssim_result, psnr_result); 548 PrintPythonOutput(config, stats, ssim_result, psnr_result);
549 } 549 }
550 delete processor; 550 delete processor;
551 delete encoder; 551 delete encoder;
552 delete decoder; 552 delete decoder;
553 Log("Quality test finished!"); 553 Log("Quality test finished!");
554 return 0; 554 return 0;
555 } 555 }
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/test/videoprocessor_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698