/* * 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 "webrtc/tools/frame_analyzer/video_quality_analysis.h" #include "webrtc/tools/simple_command_line_parser.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, a stats file should be provided. The stats file * is a text file assumed to be in the format: * frame_xxxx yyyy * where xxxx is the frame number in the test video and yyyy is the * corresponding frame number in the original video. * The video files should be 1420 YUV videos. * The tool prints the result to standard output in the Chromium perf format: * RESULT :