| OLD | NEW |
| 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 <string> | 14 #include <string> |
| 15 | 15 |
| 16 #include "webrtc/base/scoped_ptr.h" | 16 #include "webrtc/base/scoped_ptr.h" |
| 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/typedefs.h" | 19 #include "webrtc/typedefs.h" |
| 19 | 20 |
| 20 using std::string; | 21 using std::string; |
| 21 | 22 |
| 22 namespace webrtc { | 23 namespace webrtc { |
| 23 | 24 |
| 24 int EditFrames(const string& in_path, int width, int height, | 25 int EditFrames(const string& in_path, int width, int height, |
| 25 int first_frame_to_process, int interval, | 26 int first_frame_to_process, int interval, |
| 26 int last_frame_to_process, const string& out_path) { | 27 int last_frame_to_process, const string& out_path) { |
| 27 if (last_frame_to_process < first_frame_to_process) { | 28 if (last_frame_to_process < first_frame_to_process) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 if (num_bytes_read > 0 && num_bytes_read < frame_length) { | 80 if (num_bytes_read > 0 && num_bytes_read < frame_length) { |
| 80 printf("Frame to small! Last frame truncated.\n"); | 81 printf("Frame to small! Last frame truncated.\n"); |
| 81 } | 82 } |
| 82 fclose(in_fid); | 83 fclose(in_fid); |
| 83 fclose(out_fid); | 84 fclose(out_fid); |
| 84 | 85 |
| 85 printf("Done editing!\n"); | 86 printf("Done editing!\n"); |
| 86 return 0; | 87 return 0; |
| 87 } | 88 } |
| 88 } // namespace webrtc | 89 } // namespace webrtc |
| OLD | NEW |