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 <map> | 14 #include <map> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "webrtc/tools/converter/converter.h" | 18 #include "webrtc/rtc_tools/converter/converter.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 based on libyuv to convert a set of RGBA files to a YUV | 22 * A command-line tool based on libyuv to convert a set of RGBA files to a YUV |
23 * video. | 23 * video. |
24 * Usage: | 24 * Usage: |
25 * rgba_to_i420_converter --frames_dir=<directory_to_rgba_frames> | 25 * rgba_to_i420_converter --frames_dir=<directory_to_rgba_frames> |
26 * --output_file=<output_yuv_file> --width=<width_of_input_frames> | 26 * --output_file=<output_yuv_file> --width=<width_of_input_frames> |
27 * --height=<height_of_input_frames> | 27 * --height=<height_of_input_frames> |
28 */ | 28 */ |
29 int main(int argc, char** argv) { | 29 int main(int argc, char** argv) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 del_frames); | 81 del_frames); |
82 | 82 |
83 if (success) { | 83 if (success) { |
84 fprintf(stdout, "Successful conversion of RGBA frames to YUV video!\n"); | 84 fprintf(stdout, "Successful conversion of RGBA frames to YUV video!\n"); |
85 return 0; | 85 return 0; |
86 } else { | 86 } else { |
87 fprintf(stdout, "Unsuccessful conversion of RGBA frames to YUV video!\n"); | 87 fprintf(stdout, "Unsuccessful conversion of RGBA frames to YUV video!\n"); |
88 return -1; | 88 return -1; |
89 } | 89 } |
90 } | 90 } |
OLD | NEW |