Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #ifndef MOZPNGCONF_H |
michael@0 | 6 | #define MOZPNGCONF_H |
michael@0 | 7 | #define PNGLCONF_H /* So we don't try to use libpng's pnglibconf.h */ |
michael@0 | 8 | |
michael@0 | 9 | /* limit image dimensions (bug #251381, #591822, and #967656) */ |
michael@0 | 10 | #ifndef MOZ_PNG_MAX_DIMENSION |
michael@0 | 11 | # define MOZ_PNG_MAX_DIMENSION 32767 |
michael@0 | 12 | #endif |
michael@0 | 13 | |
michael@0 | 14 | #define PNG_API_RULE 0 |
michael@0 | 15 | #define PNG_COST_SHIFT 3 |
michael@0 | 16 | #define PNG_GAMMA_THRESHOLD_FIXED 5000 |
michael@0 | 17 | #define PNG_MAX_GAMMA_8 11 |
michael@0 | 18 | #define PNG_USER_CHUNK_CACHE_MAX 128 |
michael@0 | 19 | #define PNG_USER_CHUNK_MALLOC_MAX 4000000L |
michael@0 | 20 | #define PNG_USER_HEIGHT_MAX MOZ_PNG_MAX_DIMENSION |
michael@0 | 21 | #define PNG_USER_WIDTH_MAX MOZ_PNG_MAX_DIMENSION |
michael@0 | 22 | #define PNG_WEIGHT_SHIFT 8 |
michael@0 | 23 | #define PNG_ZBUF_SIZE 8192 |
michael@0 | 24 | #define PNG_IDAT_READ_SIZE PNG_ZBUF_SIZE |
michael@0 | 25 | #define PNG_INFLATE_BUF_SIZE 1024 |
michael@0 | 26 | #define PNG_Z_DEFAULT_COMPRESSION (-1) |
michael@0 | 27 | #define PNG_Z_DEFAULT_NOFILTER_STRATEGY 0 |
michael@0 | 28 | #define PNG_Z_DEFAULT_STRATEGY 1 |
michael@0 | 29 | |
michael@0 | 30 | #ifdef _MSC_VER |
michael@0 | 31 | /* The PNG_PEDANTIC_WARNINGS (attributes) fail to build with some MSC |
michael@0 | 32 | * compilers; we'll play it safe and disable them for all MSC compilers. |
michael@0 | 33 | */ |
michael@0 | 34 | #define PNG_NO_PEDANTIC_WARNINGS |
michael@0 | 35 | #endif |
michael@0 | 36 | |
michael@0 | 37 | #undef PNG_ARM_NEON_OPT /* This may have been defined in pngpriv.h */ |
michael@0 | 38 | #ifdef __ARM_NEON__ |
michael@0 | 39 | # ifdef MOZ_PNG_HAVE_ARM_NEON |
michael@0 | 40 | # ifdef MOZ_PNG_HAVE_ARM_NEON_CHECK |
michael@0 | 41 | # define PNG_ARM_NEON_CHECK_SUPPORTED |
michael@0 | 42 | # define PNG_ARM_NEON_OPT 1 |
michael@0 | 43 | # else |
michael@0 | 44 | # define PNG_ARM_NEON_OPT 2 |
michael@0 | 45 | # endif |
michael@0 | 46 | # define PNG_ALIGNED_MEMORY_SUPPORTED |
michael@0 | 47 | /* Accept the PNG_ARM_NEON_IMPLEMENTATION setting from pngpriv.h. */ |
michael@0 | 48 | # else |
michael@0 | 49 | # define PNG_ARM_NEON_OPT 0 |
michael@0 | 50 | # endif |
michael@0 | 51 | #else |
michael@0 | 52 | # define PNG_ARM_NEON_OPT 0 |
michael@0 | 53 | #endif |
michael@0 | 54 | |
michael@0 | 55 | #define PNG_READ_SUPPORTED |
michael@0 | 56 | #define PNG_PROGRESSIVE_READ_SUPPORTED |
michael@0 | 57 | #define PNG_READ_APNG_SUPPORTED |
michael@0 | 58 | #define PNG_READ_cHRM_SUPPORTED |
michael@0 | 59 | #define PNG_READ_gAMA_SUPPORTED |
michael@0 | 60 | #define PNG_READ_iCCP_SUPPORTED |
michael@0 | 61 | #define PNG_READ_sRGB_SUPPORTED |
michael@0 | 62 | #define PNG_READ_tRNS_SUPPORTED |
michael@0 | 63 | #define PNG_READ_16BIT_SUPPORTED |
michael@0 | 64 | #define PNG_READ_ANCILLARY_CHUNKS_SUPPORTED |
michael@0 | 65 | #define PNG_READ_COMPOSITE_NODIV_SUPPORTED |
michael@0 | 66 | #define PNG_READ_COMPRESSED_TEXT_SUPPORTED |
michael@0 | 67 | #define PNG_READ_EXPAND_SUPPORTED |
michael@0 | 68 | #define PNG_READ_GAMMA_SUPPORTED |
michael@0 | 69 | #define PNG_READ_GRAY_TO_RGB_SUPPORTED |
michael@0 | 70 | #define PNG_READ_INTERLACING_SUPPORTED |
michael@0 | 71 | #define PNG_READ_SCALE_16_TO_8_SUPPORTED |
michael@0 | 72 | #define PNG_READ_TRANSFORMS_SUPPORTED |
michael@0 | 73 | |
michael@0 | 74 | /* necessary for freetype color bitmap support (Android & B2G) |
michael@0 | 75 | and boot animation code (Gonk) */ |
michael@0 | 76 | #if defined(ANDROID) || defined(FT_CONFIG_OPTION_USE_PNG) |
michael@0 | 77 | #define PNG_READ_PACK_SUPPORTED |
michael@0 | 78 | #define PNG_READ_FILLER_SUPPORTED |
michael@0 | 79 | #define PNG_READ_STRIP_16_TO_8_SUPPORTED |
michael@0 | 80 | #define PNG_READ_USER_TRANSFORM_SUPPORTED |
michael@0 | 81 | #define PNG_SEQUENTIAL_READ_SUPPORTED |
michael@0 | 82 | #endif |
michael@0 | 83 | |
michael@0 | 84 | /* necessary for boot animation code (Gonk) */ |
michael@0 | 85 | #ifdef MOZ_WIDGET_GONK |
michael@0 | 86 | #define PNG_UNKNOWN_CHUNKS_SUPPORTED |
michael@0 | 87 | #define PNG_SET_UNKNOWN_CHUNKS_SUPPORTED |
michael@0 | 88 | #define PNG_HANDLE_AS_UNKNOWN_SUPPORTED |
michael@0 | 89 | #define PNG_EASY_ACCESS_SUPPORTED |
michael@0 | 90 | #define PNG_READ_BGR_SUPPORTED |
michael@0 | 91 | #define PNG_READ_GRAY_TO_RGB_SUPPORTED |
michael@0 | 92 | #define PNG_READ_STRIP_ALPHA_SUPPORTED |
michael@0 | 93 | #endif |
michael@0 | 94 | |
michael@0 | 95 | #define PNG_WRITE_SUPPORTED |
michael@0 | 96 | #define PNG_WRITE_APNG_SUPPORTED |
michael@0 | 97 | #define PNG_WRITE_tRNS_SUPPORTED |
michael@0 | 98 | #define PNG_WRITE_16BIT_SUPPORTED |
michael@0 | 99 | #define PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED |
michael@0 | 100 | #define PNG_WRITE_FLUSH_SUPPORTED |
michael@0 | 101 | #define PNG_WRITE_OPTIMIZE_CMF_SUPPORTED |
michael@0 | 102 | #define PNG_WRITE_INT_FUNCTIONS_SUPPORTED |
michael@0 | 103 | |
michael@0 | 104 | #define PNG_APNG_SUPPORTED |
michael@0 | 105 | #define PNG_ALLOW_BENIGN_ERRORS |
michael@0 | 106 | #define PNG_BENIGN_ERRORS_SUPPORTED |
michael@0 | 107 | #define PNG_BENIGN_READ_ERRORS_SUPPORTED |
michael@0 | 108 | #define PNG_cHRM_SUPPORTED |
michael@0 | 109 | #define PNG_COLORSPACE_SUPPORTED |
michael@0 | 110 | #define PNG_gAMA_SUPPORTED |
michael@0 | 111 | #define PNG_GAMMA_SUPPORTED |
michael@0 | 112 | #define PNG_iCCP_SUPPORTED |
michael@0 | 113 | #define PNG_sRGB_SUPPORTED |
michael@0 | 114 | #define PNG_tRNS_SUPPORTED |
michael@0 | 115 | #define PNG_16BIT_SUPPORTED |
michael@0 | 116 | #define PNG_CHECK_cHRM_SUPPORTED |
michael@0 | 117 | #define PNG_FLOATING_ARITHMETIC_SUPPORTED |
michael@0 | 118 | #define PNG_FLOATING_POINT_SUPPORTED |
michael@0 | 119 | #define PNG_POINTER_INDEXING_SUPPORTED |
michael@0 | 120 | #define PNG_SETJMP_SUPPORTED |
michael@0 | 121 | #define PNG_STDIO_SUPPORTED |
michael@0 | 122 | #define PNG_TEXT_SUPPORTED |
michael@0 | 123 | |
michael@0 | 124 | #ifdef PR_LOGGING |
michael@0 | 125 | #define PNG_ERROR_TEXT_SUPPORTED |
michael@0 | 126 | #define PNG_WARNINGS_SUPPORTED |
michael@0 | 127 | #endif |
michael@0 | 128 | |
michael@0 | 129 | /* Mangle names of exported libpng functions so different libpng versions |
michael@0 | 130 | can coexist. It is recommended that if you do this, you give your |
michael@0 | 131 | library a different name such as "mozlibpng" instead of "libpng". */ |
michael@0 | 132 | |
michael@0 | 133 | /* The following has been present since libpng-0.88, has never changed, and |
michael@0 | 134 | is unaffected by conditional compilation macros. It will not be mangled |
michael@0 | 135 | and it is the only choice for use in configure scripts for detecting the |
michael@0 | 136 | presence of any libpng version since 0.88. |
michael@0 | 137 | |
michael@0 | 138 | png_get_io_ptr |
michael@0 | 139 | */ |
michael@0 | 140 | |
michael@0 | 141 | /* Mozilla: mangle it anyway. */ |
michael@0 | 142 | #define png_get_io_ptr MOZ_PNG_get_io_ptr |
michael@0 | 143 | |
michael@0 | 144 | /* The following weren't present in libpng-0.88 but have never changed since |
michael@0 | 145 | they were first introduced and are not affected by any conditional compile |
michael@0 | 146 | choices and therefore don't need to be mangled. We'll mangle them anyway. */ |
michael@0 | 147 | #define png_sig_cmp MOZ_PNG_sig_cmp |
michael@0 | 148 | #define png_access_version_number MOZ_PNG_access_vn |
michael@0 | 149 | |
michael@0 | 150 | /* These have never changed since they were first introduced but they |
michael@0 | 151 | make direct reference to members of png_ptr that might have been moved, |
michael@0 | 152 | so they will be mangled. */ |
michael@0 | 153 | |
michael@0 | 154 | #define png_set_sig_bytes MOZ_PNG_set_sig_b |
michael@0 | 155 | #define png_reset_zstream MOZ_PNG_reset_zs |
michael@0 | 156 | |
michael@0 | 157 | /* The following may have changed, or can be affected by conditional compilation |
michael@0 | 158 | choices, and will be mangled. */ |
michael@0 | 159 | #define png_64bit_product MOZ_PNG_64bit_product |
michael@0 | 160 | #define png_build_gamma_table MOZ_PNG_build_gamma_tab |
michael@0 | 161 | #define png_build_grayscale_palette MOZ_PNG_build_g_p |
michael@0 | 162 | #define png_calculate_crc MOZ_PNG_calc_crc |
michael@0 | 163 | #define png_calloc MOZ_PNG_calloc |
michael@0 | 164 | #define png_check_cHRM_fixed MOZ_PNG_ck_cHRM_fixed |
michael@0 | 165 | #define png_check_chunk_name MOZ_PNG_ck_chunk_name |
michael@0 | 166 | #define png_check_IHDR MOZ_PNG_ck_IHDR |
michael@0 | 167 | #define png_check_keyword MOZ_PNG_ck_keyword |
michael@0 | 168 | #define png_combine_row MOZ_PNG_combine_row |
michael@0 | 169 | #define png_convert_from_struct_tm MOZ_PNG_cv_from_struct_tm |
michael@0 | 170 | #define png_convert_from_time_t MOZ_PNG_cv_from_time_t |
michael@0 | 171 | #define png_convert_to_rfc1123 MOZ_PNG_cv_to_rfc1123 |
michael@0 | 172 | #define png_correct_palette MOZ_PNG_correct_palette |
michael@0 | 173 | #define png_crc_error MOZ_PNG_crc_error |
michael@0 | 174 | #define png_crc_finish MOZ_PNG_crc_finish |
michael@0 | 175 | #define png_crc_read MOZ_PNG_crc_read |
michael@0 | 176 | #define png_create_info_struct MOZ_PNG_cr_info_str |
michael@0 | 177 | #define png_create_read_struct MOZ_PNG_cr_read_str |
michael@0 | 178 | #define png_create_read_struct_2 MOZ_PNG_cr_read_str_2 |
michael@0 | 179 | #define png_create_struct MOZ_PNG_create_st |
michael@0 | 180 | #define png_create_struct_2 MOZ_PNG_create_s2 |
michael@0 | 181 | #define png_create_write_struct MOZ_PNG_cr_write_str |
michael@0 | 182 | #define png_create_write_struct_2 MOZ_PNG_cr_write_str_2 |
michael@0 | 183 | #define png_data_freer MOZ_PNG_data_freer |
michael@0 | 184 | #define png_decompress_chunk MOZ_PNG_decomp_chunk |
michael@0 | 185 | #define png_default_error MOZ_PNG_def_error |
michael@0 | 186 | #define png_default_flush MOZ_PNG_def_flush |
michael@0 | 187 | #define png_default_read_data MOZ_PNG_def_read_data |
michael@0 | 188 | #define png_default_warning MOZ_PNG_def_warning |
michael@0 | 189 | #define png_default_write_data MOZ_PNG_default_write_data |
michael@0 | 190 | #define png_destroy_info_struct MOZ_PNG_dest_info_str |
michael@0 | 191 | #define png_destroy_read_struct MOZ_PNG_dest_read_str |
michael@0 | 192 | #define png_destroy_struct MOZ_PNG_dest_str |
michael@0 | 193 | #define png_destroy_struct_2 MOZ_PNG_dest_str_2 |
michael@0 | 194 | #define png_destroy_write_struct MOZ_PNG_dest_write_str |
michael@0 | 195 | #define png_digit MOZ_PNG_digit |
michael@0 | 196 | #define png_do_bgr MOZ_PNG_do_bgr |
michael@0 | 197 | #define png_do_chop MOZ_PNG_do_chop |
michael@0 | 198 | #define png_do_expand MOZ_PNG_do_expand |
michael@0 | 199 | #define png_do_expand_palette MOZ_PNG_do_expand_plte |
michael@0 | 200 | #define png_do_gamma MOZ_PNG_do_gamma |
michael@0 | 201 | #define png_do_gray_to_rgb MOZ_PNG_do_g_to_rgb |
michael@0 | 202 | #define png_do_invert MOZ_PNG_do_invert |
michael@0 | 203 | #define png_do_packswap MOZ_PNG_do_packswap |
michael@0 | 204 | #define png_do_read_filler MOZ_PNG_do_read_fill |
michael@0 | 205 | #define png_do_read_interlace MOZ_PNG_do_read_int |
michael@0 | 206 | #define png_do_read_intrapixel MOZ_PNG_do_read_intra |
michael@0 | 207 | #define png_do_read_invert_alpha MOZ_PNG_do_read_inv_alph |
michael@0 | 208 | #define png_do_read_swap_alpha MOZ_PNG_do_read_swap_alph |
michael@0 | 209 | #define png_do_read_transformations MOZ_PNG_do_read_trans |
michael@0 | 210 | #define png_do_rgb_to_gray MOZ_PNG_do_rgb_to_g |
michael@0 | 211 | #define png_do_shift MOZ_PNG_do_shift |
michael@0 | 212 | #define png_do_swap MOZ_PNG_do_swap |
michael@0 | 213 | #define png_do_unpack MOZ_PNG_do_unpack |
michael@0 | 214 | #define png_do_unshift MOZ_PNG_do_unshift |
michael@0 | 215 | #define png_do_write_interlace MOZ_PNG_do_write_interlace |
michael@0 | 216 | #define png_do_write_intrapixel MOZ_PNG_do_write_intrapixel |
michael@0 | 217 | #define png_do_write_invert_alpha MOZ_PNG_do_write_invert_alpha |
michael@0 | 218 | #define png_do_write_swap_alpha MOZ_PNG_do_write_swap_alpha |
michael@0 | 219 | #define png_do_write_transformations MOZ_PNG_do_write_trans |
michael@0 | 220 | #define png_err MOZ_PNG_err |
michael@0 | 221 | #define png_far_to_near MOZ_PNG_far_to_near |
michael@0 | 222 | #define png_fixed MOZ_PNG_fixed |
michael@0 | 223 | #define png_flush MOZ_PNG_flush |
michael@0 | 224 | #define png_format_buffer MOZ_PNG_format_buf |
michael@0 | 225 | #define png_free MOZ_PNG_free |
michael@0 | 226 | #define png_free_data MOZ_PNG_free_data |
michael@0 | 227 | #define png_free_default MOZ_PNG_free_def |
michael@0 | 228 | #define png_get_bit_depth MOZ_PNG_get_bit_depth |
michael@0 | 229 | #define png_get_bKGD MOZ_PNG_get_bKGD |
michael@0 | 230 | #define png_get_channels MOZ_PNG_get_channels |
michael@0 | 231 | #define png_get_cHRM MOZ_PNG_get_cHRM |
michael@0 | 232 | #define png_get_cHRM_fixed MOZ_PNG_get_cHRM_fixed |
michael@0 | 233 | #define png_get_color_type MOZ_PNG_get_color_type |
michael@0 | 234 | #define png_get_compression_buffer_size MOZ_PNG_get_comp_buf_siz |
michael@0 | 235 | #define png_get_compression_type MOZ_PNG_get_comp_type |
michael@0 | 236 | #define png_get_copyright MOZ_PNG_get_copyright |
michael@0 | 237 | #define png_get_error_ptr MOZ_PNG_get_error_ptr |
michael@0 | 238 | #define png_get_filter_type MOZ_PNG_get_filter_type |
michael@0 | 239 | #define png_get_gAMA MOZ_PNG_get_gAMA |
michael@0 | 240 | #define png_get_gAMA_fixed MOZ_PNG_get_gAMA_fixed |
michael@0 | 241 | #define png_get_header_ver MOZ_PNG_get_hdr_ver |
michael@0 | 242 | #define png_get_header_version MOZ_PNG_get_hdr_vn |
michael@0 | 243 | #define png_get_hIST MOZ_PNG_get_hIST |
michael@0 | 244 | #define png_get_iCCP MOZ_PNG_get_iCCP |
michael@0 | 245 | #define png_get_IHDR MOZ_PNG_get_IHDR |
michael@0 | 246 | #define png_get_image_height MOZ_PNG_get_image_h |
michael@0 | 247 | #define png_get_image_width MOZ_PNG_get_image_w |
michael@0 | 248 | #define png_get_interlace_type MOZ_PNG_get_interlace_type |
michael@0 | 249 | #define png_get_libpng_ver MOZ_PNG_get_libpng_ver |
michael@0 | 250 | #define png_get_mem_ptr MOZ_PNG_get_mem_ptr |
michael@0 | 251 | #define png_get_oFFs MOZ_PNG_get_oFFs |
michael@0 | 252 | #define png_get_pCAL MOZ_PNG_get_pCAL |
michael@0 | 253 | #define png_get_pHYs MOZ_PNG_get_pHYs |
michael@0 | 254 | #define png_get_pHYs_dpi MOZ_PNG_get_pHYs_dpi |
michael@0 | 255 | #define png_get_pixel_aspect_ratio MOZ_PNG_get_pixel_aspect_ratio |
michael@0 | 256 | #define png_get_pixels_per_inch MOZ_PNG_get_pixels_per_inch |
michael@0 | 257 | #define png_get_pixels_per_meter MOZ_PNG_get_pixels_p_m |
michael@0 | 258 | #define png_get_PLTE MOZ_PNG_get_PLTE |
michael@0 | 259 | #define png_get_progressive_ptr MOZ_PNG_get_progressive_ptr |
michael@0 | 260 | #define png_get_rgb_to_gray_status MOZ_PNG_get_rgb_to_gray_status |
michael@0 | 261 | #define png_get_rowbytes MOZ_PNG_get_rowbytes |
michael@0 | 262 | #define png_get_rows MOZ_PNG_get_rows |
michael@0 | 263 | #define png_get_sBIT MOZ_PNG_get_sBIT |
michael@0 | 264 | #define png_get_sCAL MOZ_PNG_get_sCAL |
michael@0 | 265 | #define png_get_sCAL_s MOZ_PNG_get_sCAL_s |
michael@0 | 266 | #define png_get_signature MOZ_PNG_get_signature |
michael@0 | 267 | #define png_get_sPLT MOZ_PNG_get_sPLT |
michael@0 | 268 | #define png_get_sRGB MOZ_PNG_get_sRGB |
michael@0 | 269 | #define png_get_text MOZ_PNG_get_text |
michael@0 | 270 | #define png_get_tIME MOZ_PNG_get_tIME |
michael@0 | 271 | #define png_get_tRNS MOZ_PNG_get_tRNS |
michael@0 | 272 | #define png_get_unknown_chunks MOZ_PNG_get_unk_chunks |
michael@0 | 273 | #define png_get_user_chunk_ptr MOZ_PNG_get_user_chunk_ptr |
michael@0 | 274 | #define png_get_user_height_max MOZ_PNG_get_user_height_max |
michael@0 | 275 | #define png_get_user_transform_ptr MOZ_PNG_get_user_transform_ptr |
michael@0 | 276 | #define png_get_user_width_max MOZ_PNG_get_user_width_max |
michael@0 | 277 | #define png_get_valid MOZ_PNG_get_valid |
michael@0 | 278 | #define png_get_x_offset_inches MOZ_PNG_get_x_offset_inches |
michael@0 | 279 | #define png_get_x_offset_microns MOZ_PNG_get_x_offs_microns |
michael@0 | 280 | #define png_get_x_offset_pixels MOZ_PNG_get_x_offs_pixels |
michael@0 | 281 | #define png_get_x_pixels_per_inch MOZ_PNG_get_x_pixels_per_inch |
michael@0 | 282 | #define png_get_x_pixels_per_meter MOZ_PNG_get_x_pix_per_meter |
michael@0 | 283 | #define png_get_y_offset_inches MOZ_PNG_get_y_offset_inches |
michael@0 | 284 | #define png_get_y_offset_microns MOZ_PNG_get_y_offs_microns |
michael@0 | 285 | #define png_get_y_offset_pixels MOZ_PNG_get_y_offs_pixels |
michael@0 | 286 | #define png_get_y_pixels_per_inch MOZ_PNG_get_y_pixels_per_inch |
michael@0 | 287 | #define png_get_y_pixels_per_meter MOZ_PNG_get_y_pix_per_meter |
michael@0 | 288 | #define png_handle_as_unknown MOZ_PNG_handle_as_unknown |
michael@0 | 289 | #define png_handle_bKGD MOZ_PNG_handle_bKGD |
michael@0 | 290 | #define png_handle_cHRM MOZ_PNG_handle_cHRM |
michael@0 | 291 | #define png_handle_gAMA MOZ_PNG_handle_gAMA |
michael@0 | 292 | #define png_handle_hIST MOZ_PNG_handle_hIST |
michael@0 | 293 | #define png_handle_iCCP MOZ_PNG_handle_iCCP |
michael@0 | 294 | #define png_handle_IEND MOZ_PNG_handle_IEND |
michael@0 | 295 | #define png_handle_IHDR MOZ_PNG_handle_IHDR |
michael@0 | 296 | #define png_handle_iTXt MOZ_PNG_handle_iTXt |
michael@0 | 297 | #define png_handle_oFFs MOZ_PNG_handle_oFFs |
michael@0 | 298 | #define png_handle_pCAL MOZ_PNG_handle_pCAL |
michael@0 | 299 | #define png_handle_pHYs MOZ_PNG_handle_pHYs |
michael@0 | 300 | #define png_handle_PLTE MOZ_PNG_handle_PLTE |
michael@0 | 301 | #define png_handle_sBIT MOZ_PNG_handle_sBIT |
michael@0 | 302 | #define png_handle_sCAL MOZ_PNG_handle_sCAL |
michael@0 | 303 | #define png_handle_sPLT MOZ_PNG_handle_sPLT |
michael@0 | 304 | #define png_handle_sRGB MOZ_PNG_handle_sRGB |
michael@0 | 305 | #define png_handle_tEXt MOZ_PNG_handle_tEXt |
michael@0 | 306 | #define png_handle_tIME MOZ_PNG_handle_tIME |
michael@0 | 307 | #define png_handle_tRNS MOZ_PNG_handle_tRNS |
michael@0 | 308 | #define png_handle_unknown MOZ_PNG_handle_unknown |
michael@0 | 309 | #define png_handle_zTXt MOZ_PNG_handle_zTXt |
michael@0 | 310 | #define png_inflate MOZ_PNG_inflate |
michael@0 | 311 | #define png_info_destroy MOZ_PNG_info_dest |
michael@0 | 312 | #define png_info_init_3 MOZ_PNG_info_init_3 |
michael@0 | 313 | #define png_init_io MOZ_PNG_init_io |
michael@0 | 314 | #define png_init_read_transformations MOZ_PNG_init_read_transf |
michael@0 | 315 | #define png_malloc MOZ_PNG_malloc |
michael@0 | 316 | #define png_malloc_default MOZ_PNG_malloc_default |
michael@0 | 317 | #define png_malloc_warn MOZ_PNG_malloc_warn |
michael@0 | 318 | #define png_permit_mng_features MOZ_PNG_permit_mng_features |
michael@0 | 319 | #define png_process_data MOZ_PNG_process_data |
michael@0 | 320 | #define png_process_IDAT_data MOZ_PNG_proc_IDAT_data |
michael@0 | 321 | #define png_process_some_data MOZ_PNG_proc_some_data |
michael@0 | 322 | #define png_progressive_combine_row MOZ_PNG_progressive_combine_row |
michael@0 | 323 | #define png_push_check_crc MOZ_PNG_push_check_crc |
michael@0 | 324 | #define png_push_crc_finish MOZ_PNG_push_crc_finish |
michael@0 | 325 | #define png_push_crc_skip MOZ_PNG_push_crc_skip |
michael@0 | 326 | #define png_push_fill_buffer MOZ_PNG_push_fill_buffer |
michael@0 | 327 | #define png_push_handle_iTXt MOZ_PNG_push_handle_iTXt |
michael@0 | 328 | #define png_push_handle_tEXt MOZ_PNG_push_handle_tEXt |
michael@0 | 329 | #define png_push_handle_unknown MOZ_PNG_push_handle_unk |
michael@0 | 330 | #define png_push_handle_zTXt MOZ_PNG_push_handle_ztXt |
michael@0 | 331 | #define png_push_have_end MOZ_PNG_push_have_end |
michael@0 | 332 | #define png_push_have_info MOZ_PNG_push_have_info |
michael@0 | 333 | #define png_push_have_row MOZ_PNG_push_have_row |
michael@0 | 334 | #define png_push_process_row MOZ_PNG_push_proc_row |
michael@0 | 335 | #define png_push_read_chunk MOZ_PNG_push_read_chunk |
michael@0 | 336 | #define png_push_read_end MOZ_PNG_push_read_end |
michael@0 | 337 | #define png_push_read_IDAT MOZ_PNG_push_read_IDAT |
michael@0 | 338 | #define png_push_read_iTXt MOZ_PNG_push_read_iTXt |
michael@0 | 339 | #define png_push_read_sig MOZ_PNG_push_read_sig |
michael@0 | 340 | #define png_push_read_tEXt MOZ_PNG_push_read_tEXt |
michael@0 | 341 | #define png_push_read_zTXt MOZ_PNG_push_read_zTXt |
michael@0 | 342 | #define png_push_restore_buffer MOZ_PNG_push_rest_buf |
michael@0 | 343 | #define png_push_save_buffer MOZ_PNG_push_save_buf |
michael@0 | 344 | #define png_read_chunk_header MOZ_PNG_read_chunk_header |
michael@0 | 345 | #define png_read_data MOZ_PNG_read_data |
michael@0 | 346 | #define png_read_destroy MOZ_PNG_read_dest |
michael@0 | 347 | #define png_read_end MOZ_PNG_read_end |
michael@0 | 348 | #define png_read_filter_row MOZ_PNG_read_filt_row |
michael@0 | 349 | #define png_read_finish_row MOZ_PNG_read_finish_row |
michael@0 | 350 | #define png_read_image MOZ_PNG_read_image |
michael@0 | 351 | #define png_read_info MOZ_PNG_read_info |
michael@0 | 352 | #define png_read_png MOZ_PNG_read_png |
michael@0 | 353 | #define png_read_push_finish_row MOZ_PNG_read_push_finish_row |
michael@0 | 354 | #define png_read_row MOZ_PNG_read_row |
michael@0 | 355 | #define png_read_rows MOZ_PNG_read_rows |
michael@0 | 356 | #define png_read_start_row MOZ_PNG_read_start_row |
michael@0 | 357 | #define png_read_transform_info MOZ_PNG_read_transform_info |
michael@0 | 358 | #define png_read_update_info MOZ_PNG_read_update_info |
michael@0 | 359 | #define png_reset_crc MOZ_PNG_reset_crc |
michael@0 | 360 | #define png_save_int_32 MOZ_PNG_save_int_32 |
michael@0 | 361 | #define png_save_uint_16 MOZ_PNG_save_uint_16 |
michael@0 | 362 | #define png_save_uint_32 MOZ_PNG_save_uint_32 |
michael@0 | 363 | #define png_set_add_alpha MOZ_PNG_set_add_alpha |
michael@0 | 364 | #define png_set_background MOZ_PNG_set_background |
michael@0 | 365 | #define png_set_benign_errors MOZ_PNG_set_benign_errors |
michael@0 | 366 | #define png_set_bgr MOZ_PNG_set_bgr |
michael@0 | 367 | #define png_set_bKGD MOZ_PNG_set_bKGD |
michael@0 | 368 | #define png_set_cHRM MOZ_PNG_set_cHRM |
michael@0 | 369 | #define png_set_cHRM_fixed MOZ_PNG_set_cHRM_fixed |
michael@0 | 370 | #define png_set_compression_buffer_size MOZ_PNG_set_comp_buf_siz |
michael@0 | 371 | #define png_set_compression_level MOZ_PNG_set_comp_level |
michael@0 | 372 | #define png_set_compression_mem_level MOZ_PNG_set_comp_mem_lev |
michael@0 | 373 | #define png_set_compression_method MOZ_PNG_set_comp_method |
michael@0 | 374 | #define png_set_compression_strategy MOZ_PNG_set_comp_strategy |
michael@0 | 375 | #define png_set_compression_window_bits MOZ_PNG_set_comp_win_bits |
michael@0 | 376 | #define png_set_crc_action MOZ_PNG_set_crc_action |
michael@0 | 377 | #define png_set_error_fn MOZ_PNG_set_error_fn |
michael@0 | 378 | #define png_set_expand MOZ_PNG_set_expand |
michael@0 | 379 | #define png_set_expand_gray_1_2_4_to_8 MOZ_PNG_set_x_g_124_to_8 |
michael@0 | 380 | #define png_set_filler MOZ_PNG_set_filler |
michael@0 | 381 | #define png_set_filter MOZ_PNG_set_filter |
michael@0 | 382 | #define png_set_filter_heuristics MOZ_PNG_set_filter_heur |
michael@0 | 383 | #define png_set_flush MOZ_PNG_set_flush |
michael@0 | 384 | #define png_set_gAMA MOZ_PNG_set_gAMA |
michael@0 | 385 | #define png_set_gAMA_fixed MOZ_PNG_set_gAMA_fixed |
michael@0 | 386 | #define png_set_gamma MOZ_PNG_set_gamma |
michael@0 | 387 | #define png_set_gray_to_rgb MOZ_PNG_set_gray_to_rgb |
michael@0 | 388 | #define png_set_hIST MOZ_PNG_set_hIST |
michael@0 | 389 | #define png_set_iCCP MOZ_PNG_set_iCCP |
michael@0 | 390 | #define png_set_IHDR MOZ_PNG_set_IHDR |
michael@0 | 391 | #define png_set_interlace_handling MOZ_PNG_set_interlace_handling |
michael@0 | 392 | #define png_set_invalid MOZ_PNG_set_invalid |
michael@0 | 393 | #define png_set_invert_alpha MOZ_PNG_set_invert_alpha |
michael@0 | 394 | #define png_set_invert_mono MOZ_PNG_set_invert_mono |
michael@0 | 395 | #define png_set_keep_unknown_chunks MOZ_PNG_set_keep_unknown_chunks |
michael@0 | 396 | #define png_set_mem_fn MOZ_PNG_set_mem_fn |
michael@0 | 397 | #define png_set_oFFs MOZ_PNG_set_oFFs |
michael@0 | 398 | #define png_set_packing MOZ_PNG_set_packing |
michael@0 | 399 | #define png_set_packswap MOZ_PNG_set_packswap |
michael@0 | 400 | #define png_set_palette_to_rgb MOZ_PNG_set_palette_to_rgb |
michael@0 | 401 | #define png_set_pCAL MOZ_PNG_set_pCAL |
michael@0 | 402 | #define png_set_pHYs MOZ_PNG_set_pHYs |
michael@0 | 403 | #define png_set_PLTE MOZ_PNG_set_PLTE |
michael@0 | 404 | #define png_set_progressive_read_fn MOZ_PNG_set_progressive_read_fn |
michael@0 | 405 | #define png_set_read_fn MOZ_PNG_set_read_fn |
michael@0 | 406 | #define png_set_read_status_fn MOZ_PNG_set_read_status_fn |
michael@0 | 407 | #define png_set_read_user_chunk_fn MOZ_PNG_set_read_user_chunk_fn |
michael@0 | 408 | #define png_set_read_user_transform_fn MOZ_PNG_set_read_user_trans_fn |
michael@0 | 409 | #define png_set_rgb_to_gray MOZ_PNG_set_rgb_to_gray |
michael@0 | 410 | #define png_set_rgb_to_gray_fixed MOZ_PNG_set_rgb_to_gray_fixed |
michael@0 | 411 | #define png_set_rows MOZ_PNG_set_rows |
michael@0 | 412 | #define png_set_sBIT MOZ_PNG_set_sBIT |
michael@0 | 413 | #define png_set_sCAL MOZ_PNG_set_sCAL |
michael@0 | 414 | #define png_set_sCAL_s MOZ_PNG_set_sCAL_s |
michael@0 | 415 | #define png_set_shift MOZ_PNG_set_shift |
michael@0 | 416 | #define png_set_sPLT MOZ_PNG_set_sPLT |
michael@0 | 417 | #define png_set_sRGB MOZ_PNG_set_sRGB |
michael@0 | 418 | #define png_set_sRGB_gAMA_and_cHRM MOZ_PNG_set_sRGB_gAMA_and_cHRM |
michael@0 | 419 | #define png_set_strip_16 MOZ_PNG_set_strip_16 |
michael@0 | 420 | #define png_set_strip_alpha MOZ_PNG_set_strip_alpha |
michael@0 | 421 | #define png_set_strip_error_numbers MOZ_PNG_set_strip_err_nums |
michael@0 | 422 | #define png_set_swap MOZ_PNG_set_swap |
michael@0 | 423 | #define png_set_swap_alpha MOZ_PNG_set_swap_alpha |
michael@0 | 424 | #define png_set_text MOZ_PNG_set_text |
michael@0 | 425 | #define png_set_text_2 MOZ_PNG_set_text_2 |
michael@0 | 426 | #define png_set_tIME MOZ_PNG_set_tIME |
michael@0 | 427 | #define png_set_tRNS MOZ_PNG_set_tRNS |
michael@0 | 428 | #define png_set_tRNS_to_alpha MOZ_PNG_set_tRNS_to_alpha |
michael@0 | 429 | #define png_set_unknown_chunk_location MOZ_PNG_set_unknown_chunk_loc |
michael@0 | 430 | #define png_set_unknown_chunks MOZ_PNG_set_unknown_chunks |
michael@0 | 431 | #define png_set_user_limits MOZ_PNG_set_user_limits |
michael@0 | 432 | #define png_set_user_transform_info MOZ_PNG_set_user_transform_info |
michael@0 | 433 | #define png_set_write_fn MOZ_PNG_set_write_fn |
michael@0 | 434 | #define png_set_write_status_fn MOZ_PNG_set_write_status_fn |
michael@0 | 435 | #define png_set_write_user_transform_fn MOZ_PNG_set_write_user_trans_fn |
michael@0 | 436 | #define png_start_read_image MOZ_PNG_start_read_image |
michael@0 | 437 | #define png_text_compress MOZ_PNG_text_compress |
michael@0 | 438 | #define png_write_bKGD MOZ_PNG_write_bKGD |
michael@0 | 439 | #define png_write_cHRM MOZ_PNG_write_cHRM |
michael@0 | 440 | #define png_write_cHRM_fixed MOZ_PNG_write_cHRM_fixed |
michael@0 | 441 | #define png_write_chunk MOZ_PNG_write_chunk |
michael@0 | 442 | #define png_write_chunk_data MOZ_PNG_write_chunk_data |
michael@0 | 443 | #define png_write_chunk_end MOZ_PNG_write_chunk_end |
michael@0 | 444 | #define png_write_chunk_start MOZ_PNG_write_chunk_start |
michael@0 | 445 | #define png_write_compressed_data_out MOZ_PNG_write_compressed_data_out |
michael@0 | 446 | #define png_write_data MOZ_PNG_write_data |
michael@0 | 447 | #define png_write_destroy MOZ_PNG_write_destroy |
michael@0 | 448 | #define png_write_end MOZ_PNG_write_end |
michael@0 | 449 | #define png_write_filtered_row MOZ_PNG_write_filtered_row |
michael@0 | 450 | #define png_write_find_filter MOZ_PNG_write_find_filter |
michael@0 | 451 | #define png_write_finish_row MOZ_PNG_write_finish_row |
michael@0 | 452 | #define png_write_flush MOZ_PNG_write_flush |
michael@0 | 453 | #define png_write_gAMA MOZ_PNG_write_gAMA |
michael@0 | 454 | #define png_write_gAMA_fixed MOZ_PNG_write_gAMA_fixed |
michael@0 | 455 | #define png_write_hIST MOZ_PNG_write_hIST |
michael@0 | 456 | #define png_write_iCCP MOZ_PNG_write_iCCP |
michael@0 | 457 | #define png_write_IDAT MOZ_PNG_write_IDAT |
michael@0 | 458 | #define png_write_IEND MOZ_PNG_write_IEND |
michael@0 | 459 | #define png_write_IHDR MOZ_PNG_write_IHDR |
michael@0 | 460 | #define png_write_image MOZ_PNG_write_image |
michael@0 | 461 | #define png_write_info MOZ_PNG_write_info |
michael@0 | 462 | #define png_write_info_before_PLTE MOZ_PNG_write_info_before_PLTE |
michael@0 | 463 | #define png_write_iTXt MOZ_PNG_write_iTXt |
michael@0 | 464 | #define png_write_oFFs MOZ_PNG_write_oFFs |
michael@0 | 465 | #define png_write_pCAL MOZ_PNG_write_pCAL |
michael@0 | 466 | #define png_write_pHYs MOZ_PNG_write_pHYs |
michael@0 | 467 | #define png_write_PLTE MOZ_PNG_write_PLTE |
michael@0 | 468 | #define png_write_png MOZ_PNG_write_png |
michael@0 | 469 | #define png_write_row MOZ_PNG_write_row |
michael@0 | 470 | #define png_write_rows MOZ_PNG_write_rows |
michael@0 | 471 | #define png_write_sBIT MOZ_PNG_write_sBIT |
michael@0 | 472 | #define png_write_sCAL_s MOZ_PNG_write_sCAL_s |
michael@0 | 473 | #define png_write_sig MOZ_PNG_write_sig |
michael@0 | 474 | #define png_write_sPLT MOZ_PNG_write_sPLT |
michael@0 | 475 | #define png_write_sRGB MOZ_PNG_write_sRGB |
michael@0 | 476 | #define png_write_start_row MOZ_PNG_write_trans |
michael@0 | 477 | #define png_write_tEXt MOZ_PNG_write_tEXt |
michael@0 | 478 | #define png_write_tIME MOZ_PNG_write_tIME |
michael@0 | 479 | #define png_write_tRNS MOZ_PNG_write_tRNS |
michael@0 | 480 | #define png_write_zTXt MOZ_PNG_write_zTXt |
michael@0 | 481 | #define png_zalloc MOZ_PNG_zalloc |
michael@0 | 482 | #define png_zfree MOZ_PNG_zfree |
michael@0 | 483 | #define onebppswaptable MOZ_onebppswaptable |
michael@0 | 484 | #define twobppswaptable MOZ_twobppswaptable |
michael@0 | 485 | #define fourbppswaptable MOZ_fourbppswaptable |
michael@0 | 486 | |
michael@0 | 487 | /* APNG additions */ |
michael@0 | 488 | #define png_ensure_fcTL_is_valid MOZ_APNG_ensure_fcTL_is_valid |
michael@0 | 489 | #define png_ensure_sequence_number MOZ_APNG_ensure_seqno |
michael@0 | 490 | #define png_get_acTL MOZ_APNG_get_acTL |
michael@0 | 491 | #define png_get_first_frame_is_hidden MOZ_APNG_get_first_frame_is_hidden |
michael@0 | 492 | #define png_get_next_frame_blend_op MOZ_APNG_get_next_frame_blend_op |
michael@0 | 493 | #define png_get_next_frame_delay_den MOZ_APNG_get_next_frame_delay_den |
michael@0 | 494 | #define png_get_next_frame_delay_num MOZ_APNG_get_next_frame_delay_num |
michael@0 | 495 | #define png_get_next_frame_dispose_op MOZ_APNG_get_next_frame_dispose_op |
michael@0 | 496 | #define png_get_next_frame_fcTL MOZ_APNG_get_next_frame_fcTL |
michael@0 | 497 | #define png_get_next_frame_height MOZ_APNG_get_next_frame_height |
michael@0 | 498 | #define png_get_next_frame_width MOZ_APNG_get_next_frame_width |
michael@0 | 499 | #define png_get_next_frame_x_offset MOZ_APNG_get_next_frame_x_offset |
michael@0 | 500 | #define png_get_next_frame_y_offset MOZ_APNG_get_next_frame_y_offset |
michael@0 | 501 | #define png_get_num_frames MOZ_APNG_set_num_frames |
michael@0 | 502 | #define png_get_num_plays MOZ_APNG_set_num_plays |
michael@0 | 503 | #define png_handle_acTL MOZ_APNG_handle_acTL |
michael@0 | 504 | #define png_handle_fcTL MOZ_APNG_handle_fcTL |
michael@0 | 505 | #define png_handle_fdAT MOZ_APNG_handle_fdAT |
michael@0 | 506 | #define png_have_info MOZ_APNG_have_info |
michael@0 | 507 | #define png_progressive_read_reset MOZ_APNG_prog_read_reset |
michael@0 | 508 | #define png_read_frame_head MOZ_APNG_read_frame_head |
michael@0 | 509 | #define png_read_reinit MOZ_APNG_read_reinit |
michael@0 | 510 | #define png_read_reset MOZ_APNG_read_reset |
michael@0 | 511 | #define png_set_acTL MOZ_APNG_set_acTL |
michael@0 | 512 | #define png_set_first_frame_is_hidden MOZ_APNG_set_first_frame_is_hidden |
michael@0 | 513 | #define png_set_next_frame_fcTL MOZ_APNG_set_next_frame_fcTL |
michael@0 | 514 | #define png_set_progressive_frame_fn MOZ_APNG_set_prog_frame_fn |
michael@0 | 515 | #define png_write_acTL MOZ_APNG_write_acTL |
michael@0 | 516 | #define png_write_fcTL MOZ_APNG_write_fcTL |
michael@0 | 517 | #define png_write_fdAT MOZ_APNG_write_fdAT |
michael@0 | 518 | #define png_write_frame_head MOZ_APNG_write_frame_head |
michael@0 | 519 | #define png_write_frame_tail MOZ_APNG_write_frame_tail |
michael@0 | 520 | #define png_write_reinit MOZ_APNG_write_reinit |
michael@0 | 521 | #define png_write_reset MOZ_APNG_write_reset |
michael@0 | 522 | |
michael@0 | 523 | /* libpng-1.4.x additions */ |
michael@0 | 524 | #define png_do_quantize MOZ_PNG_do_quantize |
michael@0 | 525 | #define png_get_chunk_cache_max MOZ_PNG_get_chunk_cache_max |
michael@0 | 526 | #define png_get_chunk_malloc_max MOZ_PNG_get_chunk_malloc_max |
michael@0 | 527 | #define png_get_io_chunk_name MOZ_PNG_get_io_chunk_name |
michael@0 | 528 | #define png_get_io_state MOZ_PNG_get_io_state |
michael@0 | 529 | #define png_longjmp MOZ_PNG_longjmp |
michael@0 | 530 | #define png_read_sig MOZ_PNG_read_sig |
michael@0 | 531 | #define png_set_chunk_cache_max MOZ_PNG_set_chunk_cache_max |
michael@0 | 532 | #define png_set_chunk_malloc_max MOZ_PNG_set_chunk_malloc_max |
michael@0 | 533 | #define png_set_longjmp_fn MOZ_PNG_set_longjmp_fn |
michael@0 | 534 | #define png_set_quantize MOZ_PNG_set_quantize |
michael@0 | 535 | |
michael@0 | 536 | /* libpng-1.5.x additions */ |
michael@0 | 537 | #define png_32bit_exp MOZ_PNG_32bit_exp |
michael@0 | 538 | #define png_8bit_l2 MOZ_PNG_8bit_l2 |
michael@0 | 539 | #define png_ascii_from_fixed MOZ_PNG_ascii_from_fixed |
michael@0 | 540 | #define png_ascii_from_fp MOZ_PNG_ascii_from_fp |
michael@0 | 541 | #define png_build_16bit_table MOZ_PNG_build_16bit_table |
michael@0 | 542 | #define png_build_16to8_table MOZ_PNG_build_16to8_table |
michael@0 | 543 | #define png_build_8bit_table MOZ_PNG_build_8bit_table |
michael@0 | 544 | #define png_check_fp_number MOZ_PNG_check_fp_number |
michael@0 | 545 | #define png_check_fp_string MOZ_PNG_check_fp_string |
michael@0 | 546 | #define png_chunk_unknown_handling MOZ_PNG_chunk_unk_handling |
michael@0 | 547 | #define png_destroy_gamma_table MOZ_PNG_destroy_gamma_table |
michael@0 | 548 | #define png_do_compose MOZ_PNG_do_compose |
michael@0 | 549 | #define png_do_encode_alpha MOZ_PNG_do_encode_alpha |
michael@0 | 550 | #define png_do_expand_16 MOZ_PNG_do_expand_16 |
michael@0 | 551 | #define png_do_scale_16_to_8 MOZ_PNG_do_scale_16_to_8 |
michael@0 | 552 | #define png_do_strip_channel MOZ_PNG_do_strip_channel |
michael@0 | 553 | #define png_exp MOZ_PNG_exp |
michael@0 | 554 | #define png_exp16bit MOZ_PNG_exp16bit |
michael@0 | 555 | #define png_exp8bit MOZ_PNG_exp8bit |
michael@0 | 556 | #define png_fixed_inches_from_microns MOZ_PNG_fixed_inch_from_micr |
michael@0 | 557 | #define png_format_number MOZ_PNG_format_number |
michael@0 | 558 | #define png_gamma_16bit_correct MOZ_PNG_gamma_16bit_correct |
michael@0 | 559 | #define png_gamma_8bit_correct MOZ_PNG_gamma_8bit_correct |
michael@0 | 560 | #define png_gamma_correct MOZ_PNG_gamma_correct |
michael@0 | 561 | #define png_gamma_significant MOZ_PNG_gamma_significant |
michael@0 | 562 | #define png_gamma_threshold MOZ_PNG_gamma_threshold |
michael@0 | 563 | #define png_get_cHRM_XYZ MOZ_PNG_get_cHRM_XYZ |
michael@0 | 564 | #define png_get_cHRM_XYZ_fixed MOZ_PNG_get_cHRM_XYZ_fixed |
michael@0 | 565 | #define png_get_current_pass_number MOZ_PNG_get_cur_pass_number |
michael@0 | 566 | #define png_get_current_row_number MOZ_PNG_get_cur_row_number |
michael@0 | 567 | #define png_get_fixed_point MOZ_PNG_get_fixed_point |
michael@0 | 568 | #define png_get_io_chunk_type MOZ_PNG_get_io_chunk_type |
michael@0 | 569 | #define png_get_pixel_aspect_ratio_fixed MOZ_PNG_get_pixel_aspect_fx |
michael@0 | 570 | #define png_get_sCAL_fixed MOZ_PNG_get_sCAL_fixed |
michael@0 | 571 | #define png_get_x_offset_inches_fixed MOZ_PNG_get_x_offs_inches_fx |
michael@0 | 572 | #define png_get_y_offset_inches_fixed MOZ_PNG_get_y_offs_inches_fx |
michael@0 | 573 | #define png_have_hwcap MOZ_PNG_have_hwcap |
michael@0 | 574 | #define png_init_filter_functions MOZ_PNG_init_filt_func |
michael@0 | 575 | #define png_init_filter_functions_neon MOZ_PNG_init_filt_func_neon |
michael@0 | 576 | #define png_init_filter_heuristics MOZ_PNG_init_filt_heur |
michael@0 | 577 | #define png_init_palette_transformations MOZ_PNG_init_palette_transf |
michael@0 | 578 | #define png_init_rgb_transformations MOZ_PNG_init_rgb_transf |
michael@0 | 579 | #define png_log16bit MOZ_PNG_log16bit |
michael@0 | 580 | #define png_log8bit MOZ_PNG_log8bit |
michael@0 | 581 | #define png_muldiv MOZ_PNG_muldiv |
michael@0 | 582 | #define png_muldiv_warn MOZ_PNG_muldiv_warn |
michael@0 | 583 | #define png_pow10 MOZ_PNG_pow10 |
michael@0 | 584 | #define png_process_data_pause MOZ_PNG_process_data_pause |
michael@0 | 585 | #define png_process_data_skip MOZ_PNG_process_data_skip |
michael@0 | 586 | #define png_product2 MOZ_PNG_product2 |
michael@0 | 587 | #define png_read_filter_row_avg MOZ_PNG_read_filt_row_a |
michael@0 | 588 | #define png_read_filter_row_avg3_neon MOZ_PNG_read_filt_row_a3_neon |
michael@0 | 589 | #define png_read_filter_row_avg4_neon MOZ_PNG_read_filt_row_a4_neon |
michael@0 | 590 | #define png_read_filter_row_paeth_1byte_pixel MOZ_PNG_read_filt_row_p_1b_px |
michael@0 | 591 | #define png_read_filter_row_paeth_multibyte_pixel MOZ_PNG_read_filt_row_p_mb_px |
michael@0 | 592 | #define png_read_filter_row_paeth3_neon MOZ_PNG_read_filt_row_p3_neon |
michael@0 | 593 | #define png_read_filter_row_paeth4_neon MOZ_PNG_read_filt_row_p4_neon |
michael@0 | 594 | #define png_read_filter_row_sub MOZ_PNG_read_filt_row_s |
michael@0 | 595 | #define png_read_filter_row_sub3_neon MOZ_PNG_read_filt_row_s3_neon |
michael@0 | 596 | #define png_read_filter_row_sub4_neon MOZ_PNG_read_filt_row_s4_neon |
michael@0 | 597 | #define png_read_filter_row_up MOZ_PNG_read_filt_row_up |
michael@0 | 598 | #define png_read_filter_row_up_neon MOZ_PNG_read_filt_row_up_neon |
michael@0 | 599 | #define png_reciprocal MOZ_PNG_reciprocal |
michael@0 | 600 | #define png_reciprocal2 MOZ_PNG_reciprocal2 |
michael@0 | 601 | #define png_reset_filter_heuristics MOZ_PNG_reset_filt_heur |
michael@0 | 602 | #define png_safecat MOZ_PNG_safecat |
michael@0 | 603 | #define png_set_alpha_mode MOZ_PNG_set_alpha_mode |
michael@0 | 604 | #define png_set_alpha_mode_fixed MOZ_PNG_set_alpha_mode_fx |
michael@0 | 605 | #define png_set_background_fixed MOZ_PNG_set_background_fx |
michael@0 | 606 | #define png_set_cHRM_XYZ MOZ_PNG_set_cHRM_XYZ |
michael@0 | 607 | #define png_set_cHRM_XYZ_fixed MOZ_PNG_set_cHRM_XYZ_fixed |
michael@0 | 608 | #define png_set_expand_16 MOZ_PNG_set_expand_16 |
michael@0 | 609 | #define png_set_filter_heuristics_fixed MOZ_PNG_set_filter_heur_fx |
michael@0 | 610 | #define png_set_gamma_fixed MOZ_PNG_set_gamma_fixed |
michael@0 | 611 | #define png_set_sCAL_fixed MOZ_PNG_set_sCAL_fixed |
michael@0 | 612 | #define png_set_scale_16 MOZ_PNG_set_scale_16 |
michael@0 | 613 | #define png_set_text_compression_level MOZ_PNG_set_text_c_level |
michael@0 | 614 | #define png_set_text_compression_mem_level MOZ_PNG_set_text_c_mem_level |
michael@0 | 615 | #define png_set_text_compression_method MOZ_PNG_set_text_c_method |
michael@0 | 616 | #define png_set_text_compression_strategy MOZ_PNG_set_text_c_strategy |
michael@0 | 617 | #define png_set_text_compression_window_bits MOZ_PNG_set_text_c_wnd_bits |
michael@0 | 618 | #define png_user_version_check MOZ_PNG_user_version_check |
michael@0 | 619 | #define png_write_chunk_header MOZ_PNG_write_chunk_header |
michael@0 | 620 | #define png_write_complete_chunk MOZ_PNG_write_complete_chunk |
michael@0 | 621 | #define png_xy_from_XYZ MOZ_PNG_xy_from_XYZ |
michael@0 | 622 | #define png_XYZ_from_xy MOZ_PNG_XYZ_from_xy |
michael@0 | 623 | #define png_XYZ_from_xy_checked MOZ_PNG_XYZ_from_xy_checked |
michael@0 | 624 | #define png_zlib_claim MOZ_PNG_zlib_claim |
michael@0 | 625 | #define png_zlib_release MOZ_PNG_zlib_release |
michael@0 | 626 | #define convert_gamma_value MOZ_convert_gamma_value |
michael@0 | 627 | #define ppi_from_ppm MOZ_ppi_from_ppm |
michael@0 | 628 | #define translate_gamma_flags MOZ_translate_gamma_flags |
michael@0 | 629 | |
michael@0 | 630 | /* libpng-1.6.x additions */ |
michael@0 | 631 | #define png_app_error MOZ_PNG_app_err |
michael@0 | 632 | #define png_app_warning MOZ_PNG_app_warn |
michael@0 | 633 | #ifndef png_benign_error |
michael@0 | 634 | # define png_benign_error MOZ_PNG_benign_err |
michael@0 | 635 | #endif |
michael@0 | 636 | #ifndef png_chunk_benign_error |
michael@0 | 637 | # define png_chunk_benign_error MOZ_PNG_chunk_benign_err |
michael@0 | 638 | #endif |
michael@0 | 639 | #define png_chunk_report MOZ_PNG_chunk_report |
michael@0 | 640 | #define png_colorspace_set_ICC MOZ_PNG_cs_set_ICC |
michael@0 | 641 | #define png_colorspace_set_chromaticities MOZ_PNG_cs_set_chromats |
michael@0 | 642 | #define png_colorspace_set_endpoints MOZ_PNG_cs_set_endpts |
michael@0 | 643 | #define png_colorspace_set_gamma MOZ_PNG_cs_set_gamma |
michael@0 | 644 | #define png_colorspace_set_sRGB MOZ_PNG_cs_set_sRGB |
michael@0 | 645 | #define png_colorspace_sync MOZ_PNG_cs_sync |
michael@0 | 646 | #define png_colorspace_sync_info MOZ_PNG_cs_sync_info |
michael@0 | 647 | #define png_compress_IDAT MOZ_PNG_compress_IDAT |
michael@0 | 648 | #define png_create_png_struct MOZ_PNG_create_png_struct |
michael@0 | 649 | #define png_destroy_png_struct MOZ_PNG_destroy_png_struct |
michael@0 | 650 | #define png_free_buffer_list MOZ_PNG_free_buffer_list |
michael@0 | 651 | #define png_free_jmpbuf MOZ_PNG_free_jmpbuf |
michael@0 | 652 | #define png_get_uint_31 MOZ_PNG_get_uint_31 |
michael@0 | 653 | #define png_icc_check_header MOZ_PNG_icc_check_header |
michael@0 | 654 | #define png_icc_check_length MOZ_PNG_icc_check_length |
michael@0 | 655 | #define png_icc_check_tag_table MOZ_PNG_icc_check_tags |
michael@0 | 656 | #define png_icc_set_sRGB MOZ_PNG_icc_set_sRGB |
michael@0 | 657 | #define png_malloc_array MOZ_PNG_malloc_array |
michael@0 | 658 | #define png_malloc_base MOZ_PNG_malloc_base |
michael@0 | 659 | #define png_realloc_array MOZ_PNG_realloc_array |
michael@0 | 660 | #define png_zstream_error MOZ_PNG_zstream_error |
michael@0 | 661 | |
michael@0 | 662 | #if defined(PR_LOGGING) |
michael@0 | 663 | #ifndef png_warning |
michael@0 | 664 | # define png_warning MOZ_PNG_warning |
michael@0 | 665 | #endif |
michael@0 | 666 | #ifndef png_chunk_error |
michael@0 | 667 | # define png_chunk_error MOZ_PNG_chunk_err |
michael@0 | 668 | #endif |
michael@0 | 669 | #ifndef png_chunk_warning |
michael@0 | 670 | # define png_chunk_warning MOZ_PNG_chunk_warn |
michael@0 | 671 | #endif |
michael@0 | 672 | #define png_fixed_error MOZ_PNG_fixed_err |
michael@0 | 673 | #define png_formatted_warning MOZ_PNG_formatted_warning |
michael@0 | 674 | #define png_warning_parameter MOZ_PNG_warn_param |
michael@0 | 675 | #define png_warning_parameter_signed MOZ_PNG_warn_param_signed |
michael@0 | 676 | #define png_warning_parameter_unsigned MOZ_PNG_warn_param_unsigned |
michael@0 | 677 | #endif |
michael@0 | 678 | |
michael@0 | 679 | #if defined(PNG_READ_PACK_SUPPORTED) || defined(PNG_WRITE_PACK_SUPPORTED) |
michael@0 | 680 | #define png_set_packing MOZ_PNG_set_packing |
michael@0 | 681 | #endif |
michael@0 | 682 | |
michael@0 | 683 | #endif /* MOZPNGCONF_H */ |