| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM 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 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // an error, a descriptive message is printed and the program exits. With | 75 // an error, a descriptive message is printed and the program exits. With |
| 76 // few exceptions, vpx_codec functions return an enumerated error status, | 76 // few exceptions, vpx_codec functions return an enumerated error status, |
| 77 // with the value `0` indicating success. | 77 // with the value `0` indicating success. |
| 78 | 78 |
| 79 #include <stdio.h> | 79 #include <stdio.h> |
| 80 #include <stdlib.h> | 80 #include <stdlib.h> |
| 81 #include <string.h> | 81 #include <string.h> |
| 82 | 82 |
| 83 #include "vpx/vpx_decoder.h" | 83 #include "vpx/vpx_decoder.h" |
| 84 | 84 |
| 85 #include "./tools_common.h" | 85 #include "../tools_common.h" |
| 86 #include "./video_reader.h" | 86 #include "../video_reader.h" |
| 87 #include "./vpx_config.h" | 87 #include "./vpx_config.h" |
| 88 | 88 |
| 89 static const char *exec_name; | 89 static const char *exec_name; |
| 90 | 90 |
| 91 void usage_exit() { | 91 void usage_exit() { |
| 92 fprintf(stderr, "Usage: %s <infile> <outfile>\n", exec_name); | 92 fprintf(stderr, "Usage: %s <infile> <outfile>\n", exec_name); |
| 93 exit(EXIT_FAILURE); | 93 exit(EXIT_FAILURE); |
| 94 } | 94 } |
| 95 | 95 |
| 96 int main(int argc, char **argv) { | 96 int main(int argc, char **argv) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 printf("Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\n", | 146 printf("Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\n", |
| 147 info->frame_width, info->frame_height, argv[2]); | 147 info->frame_width, info->frame_height, argv[2]); |
| 148 | 148 |
| 149 vpx_video_reader_close(reader); | 149 vpx_video_reader_close(reader); |
| 150 | 150 |
| 151 fclose(outfile); | 151 fclose(outfile); |
| 152 | 152 |
| 153 return EXIT_SUCCESS; | 153 return EXIT_SUCCESS; |
| 154 } | 154 } |
| OLD | NEW |