1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef THIRD_PARTY_LIBJPEG_JPEGLIBMANGLER_H_
6 #define THIRD_PARTY_LIBJPEG_JPEGLIBMANGLER_H_
8 // Mangle all externally visible function names so we can build our own libjpeg
9 // without system libraries trying to use it.
11 #define jpeg_make_c_derived_tbl chromium_jpeg_make_c_derived_tbl
12 #define jpeg_gen_optimal_table chromium_jpeg_gen_optimal_table
13 #define jpeg_make_d_derived_tbl chromium_jpeg_make_d_derived_tbl
14 #define jpeg_fill_bit_buffer chromium_jpeg_fill_bit_buffer
15 #define jpeg_huff_decode chromium_jpeg_huff_decode
16 #define jpeg_fdct_islow chromium_jpeg_fdct_islow
17 #define jpeg_fdct_ifast chromium_jpeg_fdct_ifast
18 #define jpeg_fdct_float chromium_jpeg_fdct_float
19 #define jpeg_idct_islow chromium_jpeg_idct_islow
20 #define jpeg_idct_ifast chromium_jpeg_idct_ifast
21 #define jpeg_idct_float chromium_jpeg_idct_float
22 #define jpeg_idct_4x4 chromium_jpeg_idct_4x4
23 #define jpeg_idct_2x2 chromium_jpeg_idct_2x2
24 #define jpeg_idct_1x1 chromium_jpeg_idct_1x1
25 #define jinit_compress_master chromium_jinit_compress_master
26 #define jinit_c_master_control chromium_jinit_c_master_control
27 #define jinit_c_main_controller chromium_jinit_c_main_controller
28 #define jinit_c_prep_controller chromium_jinit_c_prep_controller
29 #define jinit_c_coef_controller chromium_jinit_c_coef_controller
30 #define jinit_color_converter chromium_jinit_color_converter
31 #define jinit_downsampler chromium_jinit_downsampler
32 #define jinit_forward_dct chromium_jinit_forward_dct
33 #define jinit_huff_encoder chromium_jinit_huff_encoder
34 #define jinit_phuff_encoder chromium_jinit_phuff_encoder
35 #define jinit_marker_writer chromium_jinit_marker_writer
36 #define jinit_master_decompress chromium_jinit_master_decompress
37 #define jinit_d_main_controller chromium_jinit_d_main_controller
38 #define jinit_d_coef_controller chromium_jinit_d_coef_controller
39 #define jinit_d_post_controller chromium_jinit_d_post_controller
40 #define jinit_input_controller chromium_jinit_input_controller
41 #define jinit_marker_reader chromium_jinit_marker_reader
42 #define jinit_huff_decoder chromium_jinit_huff_decoder
43 #define jinit_phuff_decoder chromium_jinit_phuff_decoder
44 #define jinit_inverse_dct chromium_jinit_inverse_dct
45 #define jinit_upsampler chromium_jinit_upsampler
46 #define jinit_color_deconverter chromium_jinit_color_deconverter
47 #define jinit_1pass_quantizer chromium_jinit_1pass_quantizer
48 #define jinit_2pass_quantizer chromium_jinit_2pass_quantizer
49 #define jinit_merged_upsampler chromium_jinit_merged_upsampler
50 #define jinit_memory_mgr chromium_jinit_memory_mgr
51 #define jdiv_round_up chromium_jdiv_round_up
52 #define jround_up chromium_jround_up
53 #define jcopy_sample_rows chromium_jcopy_sample_rows
54 #define jcopy_block_row chromium_jcopy_block_row
55 #define jzero_far chromium_jzero_far
56 #define jpeg_std_error chromium_jpeg_std_error
57 #define jpeg_CreateCompress chromium_jpeg_CreateCompress
58 #define jpeg_CreateDecompress chromium_jpeg_CreateDecompress
59 #define jpeg_destroy_compress chromium_jpeg_destroy_compress
60 #define jpeg_destroy_decompress chromium_jpeg_destroy_decompress
61 #define jpeg_stdio_dest chromium_jpeg_stdio_dest
62 #define jpeg_stdio_src chromium_jpeg_stdio_src
63 #define jpeg_set_defaults chromium_jpeg_set_defaults
64 #define jpeg_set_colorspace chromium_jpeg_set_colorspace
65 #define jpeg_default_colorspace chromium_jpeg_default_colorspace
66 #define jpeg_set_quality chromium_jpeg_set_quality
67 #define jpeg_set_linear_quality chromium_jpeg_set_linear_quality
68 #define jpeg_add_quant_table chromium_jpeg_add_quant_table
69 #define jpeg_quality_scaling chromium_jpeg_quality_scaling
70 #define jpeg_simple_progression chromium_jpeg_simple_progression
71 #define jpeg_suppress_tables chromium_jpeg_suppress_tables
72 #define jpeg_alloc_quant_table chromium_jpeg_alloc_quant_table
73 #define jpeg_alloc_huff_table chromium_jpeg_alloc_huff_table
74 #define jpeg_start_compress chromium_jpeg_start_compress
75 #define jpeg_write_scanlines chromium_jpeg_write_scanlines
76 #define jpeg_finish_compress chromium_jpeg_finish_compress
77 #define jpeg_write_raw_data chromium_jpeg_write_raw_data
78 #define jpeg_write_marker chromium_jpeg_write_marker
79 #define jpeg_write_m_header chromium_jpeg_write_m_header
80 #define jpeg_write_m_byte chromium_jpeg_write_m_byte
81 #define jpeg_write_tables chromium_jpeg_write_tables
82 #define jpeg_read_header chromium_jpeg_read_header
83 #define jpeg_start_decompress chromium_jpeg_start_decompress
84 #define jpeg_read_scanlines chromium_jpeg_read_scanlines
85 #define jpeg_finish_decompress chromium_jpeg_finish_decompress
86 #define jpeg_read_raw_data chromium_jpeg_read_raw_data
87 #define jpeg_has_multiple_scans chromium_jpeg_has_multiple_scans
88 #define jpeg_start_output chromium_jpeg_start_output
89 #define jpeg_finish_output chromium_jpeg_finish_output
90 #define jpeg_input_complete chromium_jpeg_input_complete
91 #define jpeg_new_colormap chromium_jpeg_new_colormap
92 #define jpeg_consume_input chromium_jpeg_consume_input
93 #define jpeg_calc_output_dimensions chromium_jpeg_calc_output_dimensions
94 #define jpeg_save_markers chromium_jpeg_save_markers
95 #define jpeg_set_marker_processor chromium_jpeg_set_marker_processor
96 #define jpeg_read_coefficients chromium_jpeg_read_coefficients
97 #define jpeg_write_coefficients chromium_jpeg_write_coefficients
98 #define jpeg_copy_critical_parameters chromium_jpeg_copy_critical_parameters
99 #define jpeg_abort_compress chromium_jpeg_abort_compress
100 #define jpeg_abort_decompress chromium_jpeg_abort_decompress
101 #define jpeg_abort chromium_jpeg_abort
102 #define jpeg_destroy chromium_jpeg_destroy
103 #define jpeg_resync_to_restart chromium_jpeg_resync_to_restart
104 #define jpeg_get_small chromium_jpeg_get_small
105 #define jpeg_free_small chromium_jpeg_free_small
106 #define jpeg_get_large chromium_jpeg_get_large
107 #define jpeg_free_large chromium_jpeg_free_large
108 #define jpeg_mem_available chromium_jpeg_mem_available
109 #define jpeg_open_backing_store chromium_jpeg_open_backing_store
110 #define jpeg_mem_init chromium_jpeg_mem_init
111 #define jpeg_mem_term chromium_jpeg_mem_term
113 #endif // THIRD_PARTY_LIBJPEG_JPEGLIBMANGLER_H_