| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 #include "vpx/vp8dx.h" | 59 #include "vpx/vp8dx.h" |
| 60 #include "vpx/vpx_decoder.h" | 60 #include "vpx/vpx_decoder.h" |
| 61 | 61 |
| 62 #include "../tools_common.h" | 62 #include "../tools_common.h" |
| 63 #include "../video_reader.h" | 63 #include "../video_reader.h" |
| 64 #include "./vpx_config.h" | 64 #include "./vpx_config.h" |
| 65 | 65 |
| 66 static const char *exec_name; | 66 static const char *exec_name; |
| 67 | 67 |
| 68 void usage_exit() { | 68 void usage_exit(void) { |
| 69 fprintf(stderr, "Usage: %s <infile> <outfile> <N-M|N/M>\n", exec_name); | 69 fprintf(stderr, "Usage: %s <infile> <outfile> <N-M|N/M>\n", exec_name); |
| 70 exit(EXIT_FAILURE); | 70 exit(EXIT_FAILURE); |
| 71 } | 71 } |
| 72 | 72 |
| 73 int main(int argc, char **argv) { | 73 int main(int argc, char **argv) { |
| 74 int frame_cnt = 0; | 74 int frame_cnt = 0; |
| 75 FILE *outfile = NULL; | 75 FILE *outfile = NULL; |
| 76 vpx_codec_ctx_t codec; | 76 vpx_codec_ctx_t codec; |
| 77 const VpxInterface *decoder = NULL; | 77 const VpxInterface *decoder = NULL; |
| 78 VpxVideoReader *reader = NULL; | 78 VpxVideoReader *reader = NULL; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 die_codec(&codec, "Failed to destroy codec."); | 143 die_codec(&codec, "Failed to destroy codec."); |
| 144 | 144 |
| 145 printf("Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\n", | 145 printf("Play: ffplay -f rawvideo -pix_fmt yuv420p -s %dx%d %s\n", |
| 146 info->frame_width, info->frame_height, argv[2]); | 146 info->frame_width, info->frame_height, argv[2]); |
| 147 | 147 |
| 148 vpx_video_reader_close(reader); | 148 vpx_video_reader_close(reader); |
| 149 fclose(outfile); | 149 fclose(outfile); |
| 150 | 150 |
| 151 return EXIT_SUCCESS; | 151 return EXIT_SUCCESS; |
| 152 } | 152 } |
| OLD | NEW |