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

Side by Side Diff: webrtc/rtc_tools/frame_editing/frame_editing_lib.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 <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 16
17 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" 17 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
18 #include "webrtc/tools/frame_editing/frame_editing_lib.h" 18 #include "webrtc/rtc_tools/frame_editing/frame_editing_lib.h"
19 #include "webrtc/typedefs.h" 19 #include "webrtc/typedefs.h"
20 20
21 namespace webrtc { 21 namespace webrtc {
22 22
23 int EditFrames(const std::string& in_path, int width, int height, 23 int EditFrames(const std::string& in_path, int width, int height,
24 int first_frame_to_process, int interval, 24 int first_frame_to_process, int interval,
25 int last_frame_to_process, const std::string& out_path) { 25 int last_frame_to_process, const std::string& out_path) {
26 if (last_frame_to_process < first_frame_to_process) { 26 if (last_frame_to_process < first_frame_to_process) {
27 fprintf(stderr, "The set of frames to cut is empty! (l < f)\n"); 27 fprintf(stderr, "The set of frames to cut is empty! (l < f)\n");
28 return -10; 28 return -10;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 if (num_bytes_read > 0 && num_bytes_read < frame_length) { 78 if (num_bytes_read > 0 && num_bytes_read < frame_length) {
79 printf("Frame to small! Last frame truncated.\n"); 79 printf("Frame to small! Last frame truncated.\n");
80 } 80 }
81 fclose(in_fid); 81 fclose(in_fid);
82 fclose(out_fid); 82 fclose(out_fid);
83 83
84 printf("Done editing!\n"); 84 printf("Done editing!\n");
85 return 0; 85 return 0;
86 } 86 }
87 } // namespace webrtc 87 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/rtc_tools/frame_editing/frame_editing_lib.h ('k') | webrtc/rtc_tools/frame_editing/frame_editing_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698