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 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1752 global->out_part = 1; | 1752 global->out_part = 1; |
1753 else if (arg_match(&arg, &debugmode, argi)) | 1753 else if (arg_match(&arg, &debugmode, argi)) |
1754 global->debug = 1; | 1754 global->debug = 1; |
1755 else if (arg_match(&arg, &q_hist_n, argi)) | 1755 else if (arg_match(&arg, &q_hist_n, argi)) |
1756 global->show_q_hist_buckets = arg_parse_uint(&arg); | 1756 global->show_q_hist_buckets = arg_parse_uint(&arg); |
1757 else if (arg_match(&arg, &rate_hist_n, argi)) | 1757 else if (arg_match(&arg, &rate_hist_n, argi)) |
1758 global->show_rate_hist_buckets = arg_parse_uint(&arg); | 1758 global->show_rate_hist_buckets = arg_parse_uint(&arg); |
1759 else | 1759 else |
1760 argj++; | 1760 argj++; |
1761 } | 1761 } |
1762 global->limit = 50; | |
1763 | 1762 |
1764 /* Validate global config */ | 1763 /* Validate global config */ |
1765 | 1764 |
1766 if (global->pass) { | 1765 if (global->pass) { |
1767 /* DWIM: Assume the user meant passes=2 if pass=2 is specified */ | 1766 /* DWIM: Assume the user meant passes=2 if pass=2 is specified */ |
1768 if (global->pass > global->passes) { | 1767 if (global->pass > global->passes) { |
1769 warn("Assuming --pass=%d implies --passes=%d\n", | 1768 warn("Assuming --pass=%d implies --passes=%d\n", |
1770 global->pass, global->pass); | 1769 global->pass, global->pass); |
1771 global->passes = global->pass; | 1770 global->passes = global->pass; |
1772 } | 1771 } |
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2785 } | 2784 } |
2786 fclose(f); | 2785 fclose(f); |
2787 }); | 2786 }); |
2788 #endif | 2787 #endif |
2789 | 2788 |
2790 vpx_img_free(&raw); | 2789 vpx_img_free(&raw); |
2791 free(argv); | 2790 free(argv); |
2792 free(streams); | 2791 free(streams); |
2793 return res ? EXIT_FAILURE : EXIT_SUCCESS; | 2792 return res ? EXIT_FAILURE : EXIT_SUCCESS; |
2794 } | 2793 } |
OLD | NEW |