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

Side by Side Diff: webrtc/rtc_tools/psnr_ssim_analyzer/psnr_ssim_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 <limits.h> 11 #include <limits.h>
12 #include <stdio.h> 12 #include <stdio.h>
13 #include <stdlib.h> 13 #include <stdlib.h>
14 14
15 #include <map> 15 #include <map>
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #include "webrtc/tools/frame_analyzer/video_quality_analysis.h" 19 #include "webrtc/rtc_tools/frame_analyzer/video_quality_analysis.h"
20 #include "webrtc/tools/simple_command_line_parser.h" 20 #include "webrtc/rtc_tools/simple_command_line_parser.h"
21 21
22 #define MAX_NUM_FRAMES_PER_FILE INT_MAX 22 #define MAX_NUM_FRAMES_PER_FILE INT_MAX
23 23
24 void CompareFiles(const char* reference_file_name, const char* test_file_name, 24 void CompareFiles(const char* reference_file_name, const char* test_file_name,
25 const char* results_file_name, int width, int height) { 25 const char* results_file_name, int width, int height) {
26 // Check if the reference_file_name ends with "y4m". 26 // Check if the reference_file_name ends with "y4m".
27 bool y4m_mode = false; 27 bool y4m_mode = false;
28 if (std::string(reference_file_name).find("y4m") != std::string::npos) { 28 if (std::string(reference_file_name).find("y4m") != std::string::npos) {
29 y4m_mode = true; 29 y4m_mode = true;
30 } 30 }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 if (width <= 0 || height <= 0) { 125 if (width <= 0 || height <= 0) {
126 fprintf(stderr, "Error: width or height cannot be <= 0!\n"); 126 fprintf(stderr, "Error: width or height cannot be <= 0!\n");
127 return -1; 127 return -1;
128 } 128 }
129 129
130 CompareFiles(parser.GetFlag("reference_file").c_str(), 130 CompareFiles(parser.GetFlag("reference_file").c_str(),
131 parser.GetFlag("test_file").c_str(), 131 parser.GetFlag("test_file").c_str(),
132 parser.GetFlag("results_file").c_str(), width, height); 132 parser.GetFlag("results_file").c_str(), width, height);
133 } 133 }
OLDNEW
« no previous file with comments | « webrtc/rtc_tools/network_tester/test_controller.cc ('k') | webrtc/rtc_tools/py_event_log_analyzer/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698