OLD | NEW |
1 /* ***** BEGIN LICENSE BLOCK ***** | 1 /* ***** BEGIN LICENSE BLOCK ***** |
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
3 * | 3 * |
4 * The contents of this file are subject to the Mozilla Public License Version | 4 * The contents of this file are subject to the Mozilla Public License Version |
5 * 1.1 (the "License"); you may not use this file except in compliance with | 5 * 1.1 (the "License"); you may not use this file except in compliance with |
6 * the License. You may obtain a copy of the License at | 6 * the License. You may obtain a copy of the License at |
7 * http://www.mozilla.org/MPL/ | 7 * http://www.mozilla.org/MPL/ |
8 * | 8 * |
9 * Software distributed under the License is distributed on an "AS IS" basis, | 9 * Software distributed under the License is distributed on an "AS IS" basis, |
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
(...skipping 16 matching lines...) Expand all Loading... |
27 * of those above. If you wish to allow use of your version of this file only | 27 * of those above. If you wish to allow use of your version of this file only |
28 * under the terms of either the GPL or the LGPL, and not to allow others to | 28 * under the terms of either the GPL or the LGPL, and not to allow others to |
29 * use your version of this file under the terms of the MPL, indicate your | 29 * use your version of this file under the terms of the MPL, indicate your |
30 * decision by deleting the provisions above and replace them with the notice | 30 * decision by deleting the provisions above and replace them with the notice |
31 * and other provisions required by the GPL or the LGPL. If you do not delete | 31 * and other provisions required by the GPL or the LGPL. If you do not delete |
32 * the provisions above, a recipient may use your version of this file under | 32 * the provisions above, a recipient may use your version of this file under |
33 * the terms of any one of the MPL, the GPL or the LGPL. | 33 * the terms of any one of the MPL, the GPL or the LGPL. |
34 * | 34 * |
35 * ***** END LICENSE BLOCK ***** */ | 35 * ***** END LICENSE BLOCK ***** */ |
36 | 36 |
37 #ifndef CHROME_THIRD_PARTY_LIBPNG_PNGUSR_H__ | 37 #ifndef CHROME_THIRD_PARTY_LIBPNG_PNGLIBCONF_H__ |
38 #define CHROME_THIRD_PARTY_LIBPNG_PNGUSR_H__ | 38 #define CHROME_THIRD_PARTY_LIBPNG_PNGLIBCONF_H__ |
39 | 39 |
40 #define PNG_NO_GLOBAL_ARRAYS | 40 // For libpng 1.6.3 |
| 41 #define PNG_SAFE_LIMITS_SUPPORTED |
| 42 #define PNG_SETJMP_SUPPORTED |
| 43 #define PNG_PROGRESSIVE_READ_SUPPORTED |
| 44 #define PNG_READ_INTERLACING_SUPPORTED |
| 45 #define PNG_USER_TRANSFORM_PTR_SUPPORTED |
| 46 #define PNG_WRITE_USER_TRANSFORM_SUPPORTED |
| 47 #define PNG_READ_SUPPORTED |
| 48 #define PNG_READ_USER_TRANSFORM_SUPPORTED |
| 49 #define PNG_READ_GAMMA_SUPPORTED |
| 50 #define PNG_GAMMA_SUPPORTED |
| 51 #define PNG_COLORSPACE_SUPPORTED |
| 52 #define PNG_READ_EXPAND_SUPPORTED |
| 53 #define PNG_READ_STRIP_16_TO_8_SUPPORTED |
| 54 #define PNG_READ_FILLER_SUPPORTED |
| 55 #define PNG_READ_BGR_SUPPORTED |
| 56 #define PNG_READ_STRIP_ALPHA_SUPPORTED |
| 57 #define PNG_READ_GRAY_TO_RGB_SUPPORTED |
| 58 #define PNG_gAMA_SUPPORTED |
| 59 #define PNG_FLOATING_POINT_SUPPORTED |
| 60 #define PNG_ERROR_TEXT_SUPPORTED |
| 61 #define PNG_EASY_ACCESS_SUPPORTED |
| 62 #define PNG_tRNS_SUPPORTED |
| 63 #define PNG_READ_tRNS_SUPPORTED |
| 64 #define PNG_WRITE_tRNS_SUPPORTED |
| 65 #define PNG_WARNINGS_SUPPORTED |
| 66 #define PNG_WRITE_INT_FUNCTIONS_SUPPORTED |
| 67 #define PNG_WRITE_TRANSFORMS_SUPPORTED |
| 68 #define PNG_READ_TRANSFORMS_SUPPORTED |
| 69 #define PNG_INFO_IMAGE_SUPPORTED |
41 | 70 |
42 #undef PNG_NO_INFO_IMAGE | 71 #define PNG_TEXT_SUPPORTED |
43 #define PNG_NO_READ_BACKGROUND | 72 #define PNG_WRITE_TEXT_SUPPORTED |
44 #define PNG_NO_READ_DITHER | 73 #define PNG_tEXt_SUPPORTED |
45 #define PNG_NO_READ_INVERT | 74 #define PNG_READ_tEXt_SUPPORTED |
46 #define PNG_NO_READ_SHIFT | 75 #define PNG_WRITE_tEXt_SUPPORTED |
47 #define PNG_NO_READ_PACK | 76 #define PNG_cHRM_SUPPORTED |
48 #define PNG_NO_READ_PACKSWAP | 77 #define PNG_READ_cHRM_SUPPORTED |
49 #undef PNG_NO_READ_FILLER | 78 #define PNG_gAMA_SUPPORTED |
50 #define PNG_NO_READ_SWAP | 79 #define PNG_READ_gAMA_SUPPORTED |
51 #define PNG_NO_READ_SWAP_ALPHA | 80 #define PNG_iCCP_SUPPORTED |
52 #define PNG_NO_READ_INVERT_ALPHA | 81 #define PNG_READ_iCCP_SUPPORTED |
53 #define PNG_NO_READ_RGB_TO_GRAY | 82 |
54 #define PNG_NO_READ_bKGD | 83 #define PNG_FORMAT_BGR_SUPPORTED |
55 #undef PNG_NO_READ_cHRM | 84 #define PNG_WRITE_BGR_SUPPORTED |
56 #undef PNG_NO_READ_gAMA | |
57 #define PNG_NO_READ_hIST | |
58 #undef PNG_NO_READ_iCCP | |
59 #define PNG_NO_READ_oFFs | |
60 #define PNG_NO_READ_pCAL | |
61 #define PNG_NO_READ_pHYs | |
62 #define PNG_NO_READ_sBIT | |
63 #define PNG_NO_READ_sCAL | |
64 #define PNG_NO_READ_sPLT | |
65 #undef PNG_NO_READ_sRGB | |
66 #define PNG_NO_READ_TEXT | |
67 #define PNG_NO_READ_tIME | |
68 #define PNG_NO_READ_UNKNOWN_CHUNKS | |
69 #define PNG_NO_READ_USER_CHUNKS | |
70 #define PNG_NO_READ_EMPTY_PLTE | |
71 #define PNG_NO_READ_OPT_PLTE | |
72 | 85 |
73 #ifdef CHROME_PNG_WRITE_SUPPORT | 86 #ifdef CHROME_PNG_WRITE_SUPPORT |
74 #define PNG_NO_WRITE_BACKGROUND | 87 #define PNG_WRITE_SUPPORTED |
75 #define PNG_NO_WRITE_DITHER | 88 #define PNG_WRITE_FILLER_SUPPORTED |
76 #define PNG_NO_WRITE_INVERT | |
77 #define PNG_NO_WRITE_SHIFT | |
78 #define PNG_NO_WRITE_PACK | |
79 #define PNG_NO_WRITE_PACKSWAP | |
80 #undef PNG_NO_WRITE_FILLER | |
81 #define PNG_NO_WRITE_SWAP | |
82 #define PNG_NO_WRITE_SWAP_ALPHA | |
83 #define PNG_NO_WRITE_INVERT_ALPHA | |
84 #define PNG_NO_WRITE_RGB_TO_GRAY | |
85 #define PNG_NO_WRITE_USER_TRANSFORM | |
86 #define PNG_NO_WRITE_bKGD | |
87 #define PNG_NO_WRITE_cHRM | |
88 #define PNG_NO_WRITE_gAMA | |
89 #define PNG_NO_WRITE_hIST | |
90 #define PNG_NO_WRITE_iCCP | |
91 #define PNG_NO_WRITE_oFFs | |
92 #define PNG_NO_WRITE_pCAL | |
93 #define PNG_NO_WRITE_pHYs | |
94 #define PNG_NO_WRITE_sBIT | |
95 #define PNG_NO_WRITE_sCAL | |
96 #define PNG_NO_WRITE_sPLT | |
97 #define PNG_NO_WRITE_sRGB | |
98 #define PNG_NO_WRITE_tIME | |
99 #define PNG_NO_WRITE_UNKNOWN_CHUNKS | |
100 #define PNG_NO_WRITE_USER_CHUNKS | |
101 #define PNG_NO_WRITE_EMPTY_PLTE | |
102 #define PNG_NO_WRITE_OPT_PLTE | |
103 #else | |
104 #define PNG_NO_WRITE_SUPPORTED | |
105 #endif | 89 #endif |
106 | 90 |
107 #define PNG_NO_USER_MEM | 91 #define PNG_CORRECT_PALETTE_SUPPORTED |
108 #define PNG_NO_FIXED_POINT_SUPPORTED | 92 #define PNG_GET_PALETTE_MAX_SUPPORTED |
109 #define PNG_NO_MNG_FEATURES | 93 |
110 #define PNG_NO_HANDLE_AS_UNKNOWN | 94 // For NEON support on ARM |
111 #define PNG_NO_CONSOLE_IO | 95 #ifdef __arm__ |
112 #define PNG_NO_ZALLOC_ZERO | 96 #define PNG_ALIGNED_MEMORY_SUPPORTED |
113 #define PNG_NO_ERROR_NUMBERS | 97 #define PNG_ARM_NEON_CHECK_SUPPORTED |
114 #undef PNG_NO_EASY_ACCESS | 98 #define PNG_ARM_NEON_OPT 2 |
115 #define PNG_NO_USER_LIMITS | 99 #endif /* __arm__ */ |
116 #define PNG_NO_SET_USER_LIMITS | 100 |
117 #define PNG_NO_TIME_RFC1123 | 101 // For libpng 1.6.3 obtained from scripts/pnglibconf.h.prebuilt. |
118 #undef PNG_NO_INFO_IMAGE | 102 #define PNG_INFLATE_BUF_SIZE 1024 |
119 #undef PNG_NO_PROGRESSIVE_READ | 103 #define PNG_ZBUF_SIZE 8192 |
120 #undef PNG_NO_SEQUENTIAL_READ | 104 #define PNG_IDAT_READ_SIZE PNG_ZBUF_SIZE |
| 105 #define PNG_Z_DEFAULT_COMPRESSION (-1) |
| 106 #define PNG_Z_DEFAULT_NOFILTER_STRATEGY 0 |
| 107 #define PNG_Z_DEFAULT_STRATEGY 1 |
| 108 #define PNG_GAMMA_THRESHOLD_FIXED 5000 |
| 109 #define PNG_MAX_GAMMA_8 11 |
| 110 |
121 | 111 |
122 /* Mangle names of exported libpng functions so different libpng versions | 112 /* Mangle names of exported libpng functions so different libpng versions |
123 can coexist. It is recommended that if you do this, you give your | 113 can coexist. It is recommended that if you do this, you give your |
124 library a different name such as "libwkpng" instead of "libpng". */ | 114 library a different name such as "libwkpng" instead of "libpng". */ |
125 | 115 |
126 #define png_64bit_product wk_png_64bit_product | 116 #define png_64bit_product wk_png_64bit_product |
127 #define png_access_version_number wk_png_access_version_number | 117 #define png_access_version_number wk_png_access_version_number |
128 #undef png_benign_error | 118 #undef png_benign_error |
129 #define png_build_gamma_table wk_png_build_gamma_table | 119 #define png_build_gamma_table wk_png_build_gamma_table |
130 #define png_build_grayscale_palette wk_png_build_grayscale_palette | 120 #define png_build_grayscale_palette wk_png_build_grayscale_palette |
131 #define png_calculate_crc wk_png_calculate_crc | 121 #define png_calculate_crc wk_png_calculate_crc |
132 #define png_calloc wk_png_calloc | 122 #define png_calloc wk_png_calloc |
133 #define png_check_IHDR wk_png_check_IHDR | 123 #define png_check_IHDR wk_png_check_IHDR |
134 #define png_check_cHRM_fixed wk_png_check_cHRM_fixed | 124 #define png_check_cHRM_fixed wk_png_check_cHRM_fixed |
135 #define png_check_chunk_name wk_png_check_chunk_name | 125 #define png_check_chunk_name wk_png_check_chunk_name |
136 #define png_check_keyword wk_png_check_keyword | 126 #define png_check_keyword wk_png_check_keyword |
137 #define png_check_sig wk_png_check_sig | 127 // No exported on >=1.6.3 |
| 128 //#define png_check_sig wk_png_check_sig |
138 #undef png_chunk_benign_error | 129 #undef png_chunk_benign_error |
139 #define png_chunk_error wk_png_chunk_error | 130 #define png_chunk_error wk_png_chunk_error |
140 #define png_chunk_warning wk_png_chunk_warning | 131 #define png_chunk_warning wk_png_chunk_warning |
141 #define png_combine_row wk_png_combine_row | 132 #define png_combine_row wk_png_combine_row |
142 #define png_convert_from_struct_tm wk_png_convert_from_struct_tm | 133 #define png_convert_from_struct_tm wk_png_convert_from_struct_tm |
143 #define png_convert_from_time_t wk_png_convert_from_time_t | 134 #define png_convert_from_time_t wk_png_convert_from_time_t |
144 #define png_convert_size wk_png_convert_size | 135 #define png_convert_size wk_png_convert_size |
145 #define png_convert_to_rfc1123 wk_png_convert_to_rfc1123 | 136 #define png_convert_to_rfc1123 wk_png_convert_to_rfc1123 |
146 #define png_correct_palette wk_png_correct_palette | 137 #define png_correct_palette wk_png_correct_palette |
147 #define png_crc_error wk_png_crc_error | 138 #define png_crc_error wk_png_crc_error |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 #define png_write_sRGB wk_png_write_sRGB | 470 #define png_write_sRGB wk_png_write_sRGB |
480 #define png_write_sig wk_png_write_sig | 471 #define png_write_sig wk_png_write_sig |
481 #define png_write_start_row wk_png_write_start_row | 472 #define png_write_start_row wk_png_write_start_row |
482 #define png_write_tEXt wk_png_write_tEXt | 473 #define png_write_tEXt wk_png_write_tEXt |
483 #define png_write_tIME wk_png_write_tIME | 474 #define png_write_tIME wk_png_write_tIME |
484 #define png_write_tRNS wk_png_write_tRNS | 475 #define png_write_tRNS wk_png_write_tRNS |
485 #define png_write_zTXt wk_png_write_zTXt | 476 #define png_write_zTXt wk_png_write_zTXt |
486 #define png_zalloc wk_png_zalloc | 477 #define png_zalloc wk_png_zalloc |
487 #define png_zfree wk_png_zfree | 478 #define png_zfree wk_png_zfree |
488 | 479 |
489 #endif // CHROME_THIRD_PARTY_LIBPNG_PNGUSR_H__ | 480 #endif // CHROME_THIRD_PARTY_LIBPNG_PNGLIBCONF_H__ |
OLD | NEW |