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 |
11 #include "./vpxenc.h" | 11 #include "./vpxenc.h" |
12 #include "./vpx_config.h" | 12 #include "./vpx_config.h" |
13 | 13 |
14 #include <assert.h> | 14 #include <assert.h> |
15 #include <limits.h> | 15 #include <limits.h> |
16 #include <math.h> | 16 #include <math.h> |
17 #include <stdarg.h> | 17 #include <stdarg.h> |
18 #include <stdio.h> | 18 #include <stdio.h> |
19 #include <stdlib.h> | 19 #include <stdlib.h> |
20 #include <string.h> | 20 #include <string.h> |
21 | 21 |
| 22 #if CONFIG_LIBYUV |
| 23 #include "third_party/libyuv/include/libyuv/scale.h" |
| 24 #endif |
| 25 |
22 #include "vpx/vpx_encoder.h" | 26 #include "vpx/vpx_encoder.h" |
23 #if CONFIG_DECODERS | 27 #if CONFIG_DECODERS |
24 #include "vpx/vpx_decoder.h" | 28 #include "vpx/vpx_decoder.h" |
25 #endif | 29 #endif |
26 | 30 |
27 #include "third_party/libyuv/include/libyuv/scale.h" | |
28 #include "./args.h" | 31 #include "./args.h" |
29 #include "./ivfenc.h" | 32 #include "./ivfenc.h" |
30 #include "./tools_common.h" | 33 #include "./tools_common.h" |
31 | 34 |
32 #if CONFIG_VP8_ENCODER || CONFIG_VP9_ENCODER | 35 #if CONFIG_VP8_ENCODER || CONFIG_VP9_ENCODER |
33 #include "vpx/vp8cx.h" | 36 #include "vpx/vp8cx.h" |
34 #endif | 37 #endif |
35 #if CONFIG_VP8_DECODER || CONFIG_VP9_DECODER | 38 #if CONFIG_VP8_DECODER || CONFIG_VP9_DECODER |
36 #include "vpx/vp8dx.h" | 39 #include "vpx/vp8dx.h" |
37 #endif | 40 #endif |
(...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1891 } | 1894 } |
1892 fclose(f); | 1895 fclose(f); |
1893 }); | 1896 }); |
1894 #endif | 1897 #endif |
1895 | 1898 |
1896 vpx_img_free(&raw); | 1899 vpx_img_free(&raw); |
1897 free(argv); | 1900 free(argv); |
1898 free(streams); | 1901 free(streams); |
1899 return res ? EXIT_FAILURE : EXIT_SUCCESS; | 1902 return res ? EXIT_FAILURE : EXIT_SUCCESS; |
1900 } | 1903 } |
OLD | NEW |