/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #include #include #include #include #include #include "rtc_tools/frame_analyzer/video_quality_analysis.h" #include "rtc_tools/simple_command_line_parser.h" #include "test/testsupport/perf_test.h" /* * A command line tool running PSNR and SSIM on a reference video and a test * video. The test video is a record of the reference video which can start at * an arbitrary point. It is possible that there will be repeated frames or * skipped frames as well. In order to have a way to compare corresponding * frames from the two videos, two stats files should be provided. One for the * reference video and one for the test video. The stats file * is a text file assumed to be in the format: * frame_xxxx yyyy where xxxx is the frame number in and yyyy is the * corresponding barcode. The video files should be 1420 YUV videos. * The tool prints the result to standard output in the Chromium perf format: * RESULT :