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

Side by Side Diff: webrtc/rtc_tools/frame_analyzer/frame_analyzer.cc

Issue 2965593002: Move webrtc/{tools => rtc_tools} (Closed)
Patch Set: Adding back root changes Created 3 years, 5 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
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
11 #include <stdio.h> 11 #include <stdio.h>
12 #include <stdlib.h> 12 #include <stdlib.h>
13 13
14 #include <map> 14 #include <map>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/tools/frame_analyzer/video_quality_analysis.h" 18 #include "webrtc/rtc_tools/frame_analyzer/video_quality_analysis.h"
19 #include "webrtc/tools/simple_command_line_parser.h" 19 #include "webrtc/rtc_tools/simple_command_line_parser.h"
20 20
21 /* 21 /*
22 * A command line tool running PSNR and SSIM on a reference video and a test 22 * A command line tool running PSNR and SSIM on a reference video and a test
23 * video. The test video is a record of the reference video which can start at 23 * video. The test video is a record of the reference video which can start at
24 * an arbitrary point. It is possible that there will be repeated frames or 24 * an arbitrary point. It is possible that there will be repeated frames or
25 * skipped frames as well. In order to have a way to compare corresponding 25 * skipped frames as well. In order to have a way to compare corresponding
26 * frames from the two videos, two stats files should be provided. One for the 26 * frames from the two videos, two stats files should be provided. One for the
27 * reference video and one for the test video. The stats file 27 * reference video and one for the test video. The stats file
28 * is a text file assumed to be in the format: 28 * is a text file assumed to be in the format:
29 * frame_xxxx yyyy where xxxx is the frame number in and yyyy is the 29 * frame_xxxx yyyy where xxxx is the frame number in and yyyy is the
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 parser.GetFlag("stats_file_ref").c_str(), 101 parser.GetFlag("stats_file_ref").c_str(),
102 parser.GetFlag("stats_file_test").c_str(), width, 102 parser.GetFlag("stats_file_test").c_str(), width,
103 height, &results); 103 height, &results);
104 104
105 std::string label = parser.GetFlag("label"); 105 std::string label = parser.GetFlag("label");
106 webrtc::test::PrintAnalysisResults(label, &results); 106 webrtc::test::PrintAnalysisResults(label, &results);
107 webrtc::test::PrintMaxRepeatedAndSkippedFrames( 107 webrtc::test::PrintMaxRepeatedAndSkippedFrames(
108 label, parser.GetFlag("stats_file_ref"), 108 label, parser.GetFlag("stats_file_ref"),
109 parser.GetFlag("stats_file_test")); 109 parser.GetFlag("stats_file_test"));
110 } 110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698