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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 #include "vpx/vp8dx.h" | 46 #include "vpx/vp8dx.h" |
47 #include "vpx/vpx_decoder.h" | 47 #include "vpx/vpx_decoder.h" |
48 | 48 |
49 #include "../tools_common.h" | 49 #include "../tools_common.h" |
50 #include "../video_reader.h" | 50 #include "../video_reader.h" |
51 #include "./vpx_config.h" | 51 #include "./vpx_config.h" |
52 | 52 |
53 static const char *exec_name; | 53 static const char *exec_name; |
54 | 54 |
55 void usage_exit() { | 55 void usage_exit(void) { |
56 fprintf(stderr, "Usage: %s <infile> <outfile>\n", exec_name); | 56 fprintf(stderr, "Usage: %s <infile> <outfile>\n", exec_name); |
57 exit(EXIT_FAILURE); | 57 exit(EXIT_FAILURE); |
58 } | 58 } |
59 | 59 |
60 int main(int argc, char **argv) { | 60 int main(int argc, char **argv) { |
61 int frame_cnt = 0; | 61 int frame_cnt = 0; |
62 FILE *outfile = NULL; | 62 FILE *outfile = NULL; |
63 vpx_codec_ctx_t codec; | 63 vpx_codec_ctx_t codec; |
64 vpx_codec_err_t res; | 64 vpx_codec_err_t res; |
65 VpxVideoReader *reader = NULL; | 65 VpxVideoReader *reader = NULL; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 die_codec(&codec, "Failed to destroy codec"); | 129 die_codec(&codec, "Failed to destroy codec"); |
130 | 130 |
131 printf("Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\n", | 131 printf("Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\n", |
132 info->frame_width, info->frame_height, argv[2]); | 132 info->frame_width, info->frame_height, argv[2]); |
133 | 133 |
134 vpx_video_reader_close(reader); | 134 vpx_video_reader_close(reader); |
135 | 135 |
136 fclose(outfile); | 136 fclose(outfile); |
137 return EXIT_SUCCESS; | 137 return EXIT_SUCCESS; |
138 } | 138 } |
OLD | NEW |