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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(void) { |
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) { |
97 int frame_cnt = 0; | 97 int frame_cnt = 0; |
98 FILE *outfile = NULL; | 98 FILE *outfile = NULL; |
99 vpx_codec_ctx_t codec; | 99 vpx_codec_ctx_t codec; |
100 VpxVideoReader *reader = NULL; | 100 VpxVideoReader *reader = NULL; |
101 const VpxInterface *decoder = NULL; | 101 const VpxInterface *decoder = NULL; |
(...skipping 43 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 |