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

Side by Side Diff: webrtc/rtc_tools/frame_editing/frame_editing.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 "webrtc/tools/frame_editing/frame_editing_lib.h" 11 #include "webrtc/rtc_tools/frame_editing/frame_editing_lib.h"
12 12
13 #include <stdio.h> 13 #include <stdio.h>
14 #include <stdlib.h> 14 #include <stdlib.h>
15 #include <string.h> 15 #include <string.h>
16 16
17 #include "webrtc/tools/simple_command_line_parser.h" 17 #include "webrtc/rtc_tools/simple_command_line_parser.h"
18 18
19 // A command-line tool to edit a YUV-video (I420 sub-sampled). 19 // A command-line tool to edit a YUV-video (I420 sub-sampled).
20 int main(int argc, char** argv) { 20 int main(int argc, char** argv) {
21 std::string program_name = argv[0]; 21 std::string program_name = argv[0];
22 std::string usage = "Deletes a series of frames in a yuv file." 22 std::string usage = "Deletes a series of frames in a yuv file."
23 " Only I420 is supported!\n" 23 " Only I420 is supported!\n"
24 "Example usage:\n" + program_name + 24 "Example usage:\n" + program_name +
25 " --in_path=input.yuv --width=320 --height=240 --f=60 --interval=1 --l=120" 25 " --in_path=input.yuv --width=320 --height=240 --f=60 --interval=1 --l=120"
26 " --out_path=edited_clip.yuv\n" 26 " --out_path=edited_clip.yuv\n"
27 "Command line flags:\n" 27 "Command line flags:\n"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 return -2; 100 return -2;
101 } 101 }
102 102
103 if (width <= 0 || height <= 0) { 103 if (width <= 0 || height <= 0) {
104 fprintf(stderr, "Error: width or height cannot be <= 0!\n"); 104 fprintf(stderr, "Error: width or height cannot be <= 0!\n");
105 return -3; 105 return -3;
106 } 106 }
107 return webrtc::EditFrames(in_path, width, height, first_frame_to_cut, 107 return webrtc::EditFrames(in_path, width, height, first_frame_to_cut,
108 interval, last_frame_to_cut, out_path); 108 interval, last_frame_to_cut, out_path);
109 } 109 }
OLDNEW
« no previous file with comments | « webrtc/rtc_tools/frame_analyzer/video_quality_analysis_unittest.cc ('k') | webrtc/rtc_tools/frame_editing/frame_editing_lib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698