| OLD | NEW |
| 1 /* | 1 /* |
| 2 * cdjpeg.h | 2 * cdjpeg.h |
| 3 * | 3 * |
| 4 * Copyright (C) 1994-1997, Thomas G. Lane. | 4 * Copyright (C) 1994-1997, Thomas G. Lane. |
| 5 * This file is part of the Independent JPEG Group's software. | 5 * This file is part of the Independent JPEG Group's software. |
| 6 * For conditions of distribution and use, see the accompanying README file. | 6 * For conditions of distribution and use, see the accompanying README file. |
| 7 * | 7 * |
| 8 * This file contains common declarations for the sample applications | 8 * This file contains common declarations for the sample applications |
| 9 * cjpeg and djpeg. It is NOT used by the core JPEG library. | 9 * cjpeg and djpeg. It is NOT used by the core JPEG library. |
| 10 */ | 10 */ |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 #define jinit_read_gif jIRdGIF | 97 #define jinit_read_gif jIRdGIF |
| 98 #define jinit_write_gif jIWrGIF | 98 #define jinit_write_gif jIWrGIF |
| 99 #define jinit_read_ppm jIRdPPM | 99 #define jinit_read_ppm jIRdPPM |
| 100 #define jinit_write_ppm jIWrPPM | 100 #define jinit_write_ppm jIWrPPM |
| 101 #define jinit_read_rle jIRdRLE | 101 #define jinit_read_rle jIRdRLE |
| 102 #define jinit_write_rle jIWrRLE | 102 #define jinit_write_rle jIWrRLE |
| 103 #define jinit_read_targa jIRdTarga | 103 #define jinit_read_targa jIRdTarga |
| 104 #define jinit_write_targa jIWrTarga | 104 #define jinit_write_targa jIWrTarga |
| 105 #define read_quant_tables RdQTables | 105 #define read_quant_tables RdQTables |
| 106 #define read_scan_script RdScnScript | 106 #define read_scan_script RdScnScript |
| 107 #define set_quality_ratings SetQRates |
| 107 #define set_quant_slots SetQSlots | 108 #define set_quant_slots SetQSlots |
| 108 #define set_sample_factors SetSFacts | 109 #define set_sample_factors SetSFacts |
| 109 #define read_color_map RdCMap | 110 #define read_color_map RdCMap |
| 110 #define enable_signal_catcher EnSigCatcher | 111 #define enable_signal_catcher EnSigCatcher |
| 111 #define start_progress_monitor StProgMon | 112 #define start_progress_monitor StProgMon |
| 112 #define end_progress_monitor EnProgMon | 113 #define end_progress_monitor EnProgMon |
| 113 #define read_stdin RdStdin | 114 #define read_stdin RdStdin |
| 114 #define write_stdout WrStdout | 115 #define write_stdout WrStdout |
| 115 #endif /* NEED_SHORT_EXTERNAL_NAMES */ | 116 #endif /* NEED_SHORT_EXTERNAL_NAMES */ |
| 116 | 117 |
| 117 /* Module selection routines for I/O modules. */ | 118 /* Module selection routines for I/O modules. */ |
| 118 | 119 |
| 119 EXTERN(cjpeg_source_ptr) jinit_read_bmp JPP((j_compress_ptr cinfo)); | 120 EXTERN(cjpeg_source_ptr) jinit_read_bmp JPP((j_compress_ptr cinfo)); |
| 120 EXTERN(djpeg_dest_ptr) jinit_write_bmp JPP((j_decompress_ptr cinfo, | 121 EXTERN(djpeg_dest_ptr) jinit_write_bmp JPP((j_decompress_ptr cinfo, |
| 121 boolean is_os2)); | 122 boolean is_os2)); |
| 122 EXTERN(cjpeg_source_ptr) jinit_read_gif JPP((j_compress_ptr cinfo)); | 123 EXTERN(cjpeg_source_ptr) jinit_read_gif JPP((j_compress_ptr cinfo)); |
| 123 EXTERN(djpeg_dest_ptr) jinit_write_gif JPP((j_decompress_ptr cinfo)); | 124 EXTERN(djpeg_dest_ptr) jinit_write_gif JPP((j_decompress_ptr cinfo)); |
| 124 EXTERN(cjpeg_source_ptr) jinit_read_ppm JPP((j_compress_ptr cinfo)); | 125 EXTERN(cjpeg_source_ptr) jinit_read_ppm JPP((j_compress_ptr cinfo)); |
| 125 EXTERN(djpeg_dest_ptr) jinit_write_ppm JPP((j_decompress_ptr cinfo)); | 126 EXTERN(djpeg_dest_ptr) jinit_write_ppm JPP((j_decompress_ptr cinfo)); |
| 126 EXTERN(cjpeg_source_ptr) jinit_read_rle JPP((j_compress_ptr cinfo)); | 127 EXTERN(cjpeg_source_ptr) jinit_read_rle JPP((j_compress_ptr cinfo)); |
| 127 EXTERN(djpeg_dest_ptr) jinit_write_rle JPP((j_decompress_ptr cinfo)); | 128 EXTERN(djpeg_dest_ptr) jinit_write_rle JPP((j_decompress_ptr cinfo)); |
| 128 EXTERN(cjpeg_source_ptr) jinit_read_targa JPP((j_compress_ptr cinfo)); | 129 EXTERN(cjpeg_source_ptr) jinit_read_targa JPP((j_compress_ptr cinfo)); |
| 129 EXTERN(djpeg_dest_ptr) jinit_write_targa JPP((j_decompress_ptr cinfo)); | 130 EXTERN(djpeg_dest_ptr) jinit_write_targa JPP((j_decompress_ptr cinfo)); |
| 130 | 131 |
| 131 /* cjpeg support routines (in rdswitch.c) */ | 132 /* cjpeg support routines (in rdswitch.c) */ |
| 132 | 133 |
| 133 EXTERN(boolean) read_quant_tables JPP((j_compress_ptr cinfo, char * filename, | 134 EXTERN(boolean) read_quant_tables JPP((j_compress_ptr cinfo, char * filename, |
| 134 » » » » int scale_factor, boolean force_baseline)); | 135 » » » » boolean force_baseline)); |
| 135 EXTERN(boolean) read_scan_script JPP((j_compress_ptr cinfo, char * filename)); | 136 EXTERN(boolean) read_scan_script JPP((j_compress_ptr cinfo, char * filename)); |
| 137 EXTERN(boolean) set_quality_ratings JPP((j_compress_ptr cinfo, char *arg, |
| 138 boolean force_baseline)); |
| 136 EXTERN(boolean) set_quant_slots JPP((j_compress_ptr cinfo, char *arg)); | 139 EXTERN(boolean) set_quant_slots JPP((j_compress_ptr cinfo, char *arg)); |
| 137 EXTERN(boolean) set_sample_factors JPP((j_compress_ptr cinfo, char *arg)); | 140 EXTERN(boolean) set_sample_factors JPP((j_compress_ptr cinfo, char *arg)); |
| 138 | 141 |
| 139 /* djpeg support routines (in rdcolmap.c) */ | 142 /* djpeg support routines (in rdcolmap.c) */ |
| 140 | 143 |
| 141 EXTERN(void) read_color_map JPP((j_decompress_ptr cinfo, FILE * infile)); | 144 EXTERN(void) read_color_map JPP((j_decompress_ptr cinfo, FILE * infile)); |
| 142 | 145 |
| 143 /* common support routines (in cdjpeg.c) */ | 146 /* common support routines (in cdjpeg.c) */ |
| 144 | 147 |
| 145 EXTERN(void) enable_signal_catcher JPP((j_common_ptr cinfo)); | 148 EXTERN(void) enable_signal_catcher JPP((j_common_ptr cinfo)); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 175 #define EXIT_SUCCESS 0 | 178 #define EXIT_SUCCESS 0 |
| 176 #endif | 179 #endif |
| 177 #endif | 180 #endif |
| 178 #ifndef EXIT_WARNING | 181 #ifndef EXIT_WARNING |
| 179 #ifdef VMS | 182 #ifdef VMS |
| 180 #define EXIT_WARNING 1 /* VMS is very nonstandard */ | 183 #define EXIT_WARNING 1 /* VMS is very nonstandard */ |
| 181 #else | 184 #else |
| 182 #define EXIT_WARNING 2 | 185 #define EXIT_WARNING 2 |
| 183 #endif | 186 #endif |
| 184 #endif | 187 #endif |
| OLD | NEW |