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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 "'total_packets': %" PRIuS ", 'ssim': %f, 'psnr': %f},\n", | 418 "'total_packets': %" PRIuS ", 'ssim': %f, 'psnr': %f},\n", |
419 f.frame_number, | 419 f.frame_number, |
420 f.encoding_successful ? "True " : "False", | 420 f.encoding_successful ? "True " : "False", |
421 f.decoding_successful ? "True " : "False", | 421 f.decoding_successful ? "True " : "False", |
422 f.encode_time_in_us, | 422 f.encode_time_in_us, |
423 f.decode_time_in_us, | 423 f.decode_time_in_us, |
424 f.encode_return_code, | 424 f.encode_return_code, |
425 f.decode_return_code, | 425 f.decode_return_code, |
426 f.bit_rate_in_kbps, | 426 f.bit_rate_in_kbps, |
427 f.encoded_frame_length_in_bytes, | 427 f.encoded_frame_length_in_bytes, |
428 f.frame_type == webrtc::kDeltaFrame ? "'Delta'" : "'Other'", | 428 f.frame_type == webrtc::kVideoFrameDelta ? "'Delta'" : "'Other'", |
429 f.packets_dropped, | 429 f.packets_dropped, |
430 f.total_packets, | 430 f.total_packets, |
431 ssim.value, | 431 ssim.value, |
432 psnr.value); | 432 psnr.value); |
433 } | 433 } |
434 printf("]\n"); | 434 printf("]\n"); |
435 } | 435 } |
436 | 436 |
437 // Runs a quality measurement on the input file supplied to the program. | 437 // Runs a quality measurement on the input file supplied to the program. |
438 // The input file must be in YUV format. | 438 // The input file must be in YUV format. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 } | 519 } |
520 if (FLAGS_python) { | 520 if (FLAGS_python) { |
521 PrintPythonOutput(config, stats, ssim_result, psnr_result); | 521 PrintPythonOutput(config, stats, ssim_result, psnr_result); |
522 } | 522 } |
523 delete processor; | 523 delete processor; |
524 delete encoder; | 524 delete encoder; |
525 delete decoder; | 525 delete decoder; |
526 Log("Quality test finished!"); | 526 Log("Quality test finished!"); |
527 return 0; | 527 return 0; |
528 } | 528 } |
OLD | NEW |