| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 uint32_t frames_to_code; | 109 uint32_t frames_to_code; |
| 110 uint32_t frames_to_skip; | 110 uint32_t frames_to_skip; |
| 111 struct VpxInputContext input_ctx; | 111 struct VpxInputContext input_ctx; |
| 112 stats_io_t rc_stats; | 112 stats_io_t rc_stats; |
| 113 int passes; | 113 int passes; |
| 114 int pass; | 114 int pass; |
| 115 } AppInput; | 115 } AppInput; |
| 116 | 116 |
| 117 static const char *exec_name; | 117 static const char *exec_name; |
| 118 | 118 |
| 119 void usage_exit() { | 119 void usage_exit(void) { |
| 120 fprintf(stderr, "Usage: %s <options> input_filename output_filename\n", | 120 fprintf(stderr, "Usage: %s <options> input_filename output_filename\n", |
| 121 exec_name); | 121 exec_name); |
| 122 fprintf(stderr, "Options:\n"); | 122 fprintf(stderr, "Options:\n"); |
| 123 arg_show_usage(stderr, svc_args); | 123 arg_show_usage(stderr, svc_args); |
| 124 exit(EXIT_FAILURE); | 124 exit(EXIT_FAILURE); |
| 125 } | 125 } |
| 126 | 126 |
| 127 static void parse_command_line(int argc, const char **argv_, | 127 static void parse_command_line(int argc, const char **argv_, |
| 128 AppInput *app_input, SvcContext *svc_ctx, | 128 AppInput *app_input, SvcContext *svc_ctx, |
| 129 vpx_codec_enc_cfg_t *enc_cfg) { | 129 vpx_codec_enc_cfg_t *enc_cfg) { |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 | 439 |
| 440 vpx_img_free(&raw); | 440 vpx_img_free(&raw); |
| 441 | 441 |
| 442 // display average size, psnr | 442 // display average size, psnr |
| 443 printf("%s", vpx_svc_dump_statistics(&svc_ctx)); | 443 printf("%s", vpx_svc_dump_statistics(&svc_ctx)); |
| 444 | 444 |
| 445 vpx_svc_release(&svc_ctx); | 445 vpx_svc_release(&svc_ctx); |
| 446 | 446 |
| 447 return EXIT_SUCCESS; | 447 return EXIT_SUCCESS; |
| 448 } | 448 } |
| OLD | NEW |