OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |