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

Side by Side Diff: webrtc/tools/frame_analyzer/video_quality_analysis.cc

Issue 2912933002: Change from stderr to output, add new line and replace return with break. (Closed)
Patch Set: use break instead and add new line Created 3 years, 6 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 | « no previous file | 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 // and will not calculate skipped frames for that part. 453 // and will not calculate skipped frames for that part.
454 skipped_frames = 0; 454 skipped_frames = 0;
455 } 455 }
456 if (it_ref != end_ref && it_ref->first == it_test->first) { 456 if (it_ref != end_ref && it_ref->first == it_test->first) {
457 total_skipped_frames += skipped_frames; 457 total_skipped_frames += skipped_frames;
458 if (skipped_frames > max_skipped_frames) { 458 if (skipped_frames > max_skipped_frames) {
459 max_skipped_frames = skipped_frames; 459 max_skipped_frames = skipped_frames;
460 } 460 }
461 continue; 461 continue;
462 } 462 }
463 fprintf(stderr, 463 fprintf(output,
464 "Found barcode %d in test video, which is not in reference video", 464 "Found barcode %d in test video, which is not in reference video\n",
465 it_test->first); 465 it_test->first);
466 return; 466 break;
467 } 467 }
468 468
469 fprintf(output, "RESULT Max_repeated: %s= %d\n", label.c_str(), 469 fprintf(output, "RESULT Max_repeated: %s= %d\n", label.c_str(),
470 max_repeated_frames); 470 max_repeated_frames);
471 fprintf(output, "RESULT Max_skipped: %s= %d\n", label.c_str(), 471 fprintf(output, "RESULT Max_skipped: %s= %d\n", label.c_str(),
472 max_skipped_frames); 472 max_skipped_frames);
473 fprintf(output, "RESULT Total_skipped: %s= %d\n", label.c_str(), 473 fprintf(output, "RESULT Total_skipped: %s= %d\n", label.c_str(),
474 total_skipped_frames); 474 total_skipped_frames);
475 fprintf(output, "RESULT Decode_errors_reference: %s= %d\n", label.c_str(), 475 fprintf(output, "RESULT Decode_errors_reference: %s= %d\n", label.c_str(),
476 decode_errors_ref); 476 decode_errors_ref);
(...skipping 24 matching lines...) Expand all
501 for (iter = results->frames.begin(); iter != results->frames.end() - 1; 501 for (iter = results->frames.begin(); iter != results->frames.end() - 1;
502 ++iter) { 502 ++iter) {
503 fprintf(output, "%f,", iter->ssim_value); 503 fprintf(output, "%f,", iter->ssim_value);
504 } 504 }
505 fprintf(output, "%f] score\n", iter->ssim_value); 505 fprintf(output, "%f] score\n", iter->ssim_value);
506 } 506 }
507 } 507 }
508 508
509 } // namespace test 509 } // namespace test
510 } // namespace webrtc 510 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698