dbf-halloween2015

annotate libs/libjpeg/jpegint.h @ 3:c37fe5d8a4ed

windows port
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 01 Nov 2015 06:04:28 +0200
parents
children
rev   line source
nuclear@1 1 /*
nuclear@1 2 * jpegint.h
nuclear@1 3 *
nuclear@1 4 * Copyright (C) 1991-1997, Thomas G. Lane.
nuclear@1 5 * This file is part of the Independent JPEG Group's software.
nuclear@1 6 * For conditions of distribution and use, see the accompanying README file.
nuclear@1 7 *
nuclear@1 8 * This file provides common declarations for the various JPEG modules.
nuclear@1 9 * These declarations are considered internal to the JPEG library; most
nuclear@1 10 * applications using the library shouldn't need to include this file.
nuclear@1 11 */
nuclear@1 12
nuclear@1 13
nuclear@1 14 /* Declarations for both compression & decompression */
nuclear@1 15
nuclear@1 16 typedef enum { /* Operating modes for buffer controllers */
nuclear@1 17 JBUF_PASS_THRU, /* Plain stripwise operation */
nuclear@1 18 /* Remaining modes require a full-image buffer to have been created */
nuclear@1 19 JBUF_SAVE_SOURCE, /* Run source subobject only, save output */
nuclear@1 20 JBUF_CRANK_DEST, /* Run dest subobject only, using saved data */
nuclear@1 21 JBUF_SAVE_AND_PASS /* Run both subobjects, save output */
nuclear@1 22 } J_BUF_MODE;
nuclear@1 23
nuclear@1 24 /* Values of global_state field (jdapi.c has some dependencies on ordering!) */
nuclear@1 25 #define CSTATE_START 100 /* after create_compress */
nuclear@1 26 #define CSTATE_SCANNING 101 /* start_compress done, write_scanlines OK */
nuclear@1 27 #define CSTATE_RAW_OK 102 /* start_compress done, write_raw_data OK */
nuclear@1 28 #define CSTATE_WRCOEFS 103 /* jpeg_write_coefficients done */
nuclear@1 29 #define DSTATE_START 200 /* after create_decompress */
nuclear@1 30 #define DSTATE_INHEADER 201 /* reading header markers, no SOS yet */
nuclear@1 31 #define DSTATE_READY 202 /* found SOS, ready for start_decompress */
nuclear@1 32 #define DSTATE_PRELOAD 203 /* reading multiscan file in start_decompress*/
nuclear@1 33 #define DSTATE_PRESCAN 204 /* performing dummy pass for 2-pass quant */
nuclear@1 34 #define DSTATE_SCANNING 205 /* start_decompress done, read_scanlines OK */
nuclear@1 35 #define DSTATE_RAW_OK 206 /* start_decompress done, read_raw_data OK */
nuclear@1 36 #define DSTATE_BUFIMAGE 207 /* expecting jpeg_start_output */
nuclear@1 37 #define DSTATE_BUFPOST 208 /* looking for SOS/EOI in jpeg_finish_output */
nuclear@1 38 #define DSTATE_RDCOEFS 209 /* reading file in jpeg_read_coefficients */
nuclear@1 39 #define DSTATE_STOPPING 210 /* looking for EOI in jpeg_finish_decompress */
nuclear@1 40
nuclear@1 41
nuclear@1 42 /* Declarations for compression modules */
nuclear@1 43
nuclear@1 44 /* Master control module */
nuclear@1 45 struct jpeg_comp_master {
nuclear@1 46 JMETHOD(void, prepare_for_pass, (j_compress_ptr cinfo));
nuclear@1 47 JMETHOD(void, pass_startup, (j_compress_ptr cinfo));
nuclear@1 48 JMETHOD(void, finish_pass, (j_compress_ptr cinfo));
nuclear@1 49
nuclear@1 50 /* State variables made visible to other modules */
nuclear@1 51 boolean call_pass_startup; /* True if pass_startup must be called */
nuclear@1 52 boolean is_last_pass; /* True during last pass */
nuclear@1 53 };
nuclear@1 54
nuclear@1 55 /* Main buffer control (downsampled-data buffer) */
nuclear@1 56 struct jpeg_c_main_controller {
nuclear@1 57 JMETHOD(void, start_pass, (j_compress_ptr cinfo, J_BUF_MODE pass_mode));
nuclear@1 58 JMETHOD(void, process_data, (j_compress_ptr cinfo,
nuclear@1 59 JSAMPARRAY input_buf, JDIMENSION *in_row_ctr,
nuclear@1 60 JDIMENSION in_rows_avail));
nuclear@1 61 };
nuclear@1 62
nuclear@1 63 /* Compression preprocessing (downsampling input buffer control) */
nuclear@1 64 struct jpeg_c_prep_controller {
nuclear@1 65 JMETHOD(void, start_pass, (j_compress_ptr cinfo, J_BUF_MODE pass_mode));
nuclear@1 66 JMETHOD(void, pre_process_data, (j_compress_ptr cinfo,
nuclear@1 67 JSAMPARRAY input_buf,
nuclear@1 68 JDIMENSION *in_row_ctr,
nuclear@1 69 JDIMENSION in_rows_avail,
nuclear@1 70 JSAMPIMAGE output_buf,
nuclear@1 71 JDIMENSION *out_row_group_ctr,
nuclear@1 72 JDIMENSION out_row_groups_avail));
nuclear@1 73 };
nuclear@1 74
nuclear@1 75 /* Coefficient buffer control */
nuclear@1 76 struct jpeg_c_coef_controller {
nuclear@1 77 JMETHOD(void, start_pass, (j_compress_ptr cinfo, J_BUF_MODE pass_mode));
nuclear@1 78 JMETHOD(boolean, compress_data, (j_compress_ptr cinfo,
nuclear@1 79 JSAMPIMAGE input_buf));
nuclear@1 80 };
nuclear@1 81
nuclear@1 82 /* Colorspace conversion */
nuclear@1 83 struct jpeg_color_converter {
nuclear@1 84 JMETHOD(void, start_pass, (j_compress_ptr cinfo));
nuclear@1 85 JMETHOD(void, color_convert, (j_compress_ptr cinfo,
nuclear@1 86 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
nuclear@1 87 JDIMENSION output_row, int num_rows));
nuclear@1 88 };
nuclear@1 89
nuclear@1 90 /* Downsampling */
nuclear@1 91 struct jpeg_downsampler {
nuclear@1 92 JMETHOD(void, start_pass, (j_compress_ptr cinfo));
nuclear@1 93 JMETHOD(void, downsample, (j_compress_ptr cinfo,
nuclear@1 94 JSAMPIMAGE input_buf, JDIMENSION in_row_index,
nuclear@1 95 JSAMPIMAGE output_buf,
nuclear@1 96 JDIMENSION out_row_group_index));
nuclear@1 97
nuclear@1 98 boolean need_context_rows; /* TRUE if need rows above & below */
nuclear@1 99 };
nuclear@1 100
nuclear@1 101 /* Forward DCT (also controls coefficient quantization) */
nuclear@1 102 struct jpeg_forward_dct {
nuclear@1 103 JMETHOD(void, start_pass, (j_compress_ptr cinfo));
nuclear@1 104 /* perhaps this should be an array??? */
nuclear@1 105 JMETHOD(void, forward_DCT, (j_compress_ptr cinfo,
nuclear@1 106 jpeg_component_info * compptr,
nuclear@1 107 JSAMPARRAY sample_data, JBLOCKROW coef_blocks,
nuclear@1 108 JDIMENSION start_row, JDIMENSION start_col,
nuclear@1 109 JDIMENSION num_blocks));
nuclear@1 110 };
nuclear@1 111
nuclear@1 112 /* Entropy encoding */
nuclear@1 113 struct jpeg_entropy_encoder {
nuclear@1 114 JMETHOD(void, start_pass, (j_compress_ptr cinfo, boolean gather_statistics));
nuclear@1 115 JMETHOD(boolean, encode_mcu, (j_compress_ptr cinfo, JBLOCKROW *MCU_data));
nuclear@1 116 JMETHOD(void, finish_pass, (j_compress_ptr cinfo));
nuclear@1 117 };
nuclear@1 118
nuclear@1 119 /* Marker writing */
nuclear@1 120 struct jpeg_marker_writer {
nuclear@1 121 JMETHOD(void, write_file_header, (j_compress_ptr cinfo));
nuclear@1 122 JMETHOD(void, write_frame_header, (j_compress_ptr cinfo));
nuclear@1 123 JMETHOD(void, write_scan_header, (j_compress_ptr cinfo));
nuclear@1 124 JMETHOD(void, write_file_trailer, (j_compress_ptr cinfo));
nuclear@1 125 JMETHOD(void, write_tables_only, (j_compress_ptr cinfo));
nuclear@1 126 /* These routines are exported to allow insertion of extra markers */
nuclear@1 127 /* Probably only COM and APPn markers should be written this way */
nuclear@1 128 JMETHOD(void, write_marker_header, (j_compress_ptr cinfo, int marker,
nuclear@1 129 unsigned int datalen));
nuclear@1 130 JMETHOD(void, write_marker_byte, (j_compress_ptr cinfo, int val));
nuclear@1 131 };
nuclear@1 132
nuclear@1 133
nuclear@1 134 /* Declarations for decompression modules */
nuclear@1 135
nuclear@1 136 /* Master control module */
nuclear@1 137 struct jpeg_decomp_master {
nuclear@1 138 JMETHOD(void, prepare_for_output_pass, (j_decompress_ptr cinfo));
nuclear@1 139 JMETHOD(void, finish_output_pass, (j_decompress_ptr cinfo));
nuclear@1 140
nuclear@1 141 /* State variables made visible to other modules */
nuclear@1 142 boolean is_dummy_pass; /* True during 1st pass for 2-pass quant */
nuclear@1 143 };
nuclear@1 144
nuclear@1 145 /* Input control module */
nuclear@1 146 struct jpeg_input_controller {
nuclear@1 147 JMETHOD(int, consume_input, (j_decompress_ptr cinfo));
nuclear@1 148 JMETHOD(void, reset_input_controller, (j_decompress_ptr cinfo));
nuclear@1 149 JMETHOD(void, start_input_pass, (j_decompress_ptr cinfo));
nuclear@1 150 JMETHOD(void, finish_input_pass, (j_decompress_ptr cinfo));
nuclear@1 151
nuclear@1 152 /* State variables made visible to other modules */
nuclear@1 153 boolean has_multiple_scans; /* True if file has multiple scans */
nuclear@1 154 boolean eoi_reached; /* True when EOI has been consumed */
nuclear@1 155 };
nuclear@1 156
nuclear@1 157 /* Main buffer control (downsampled-data buffer) */
nuclear@1 158 struct jpeg_d_main_controller {
nuclear@1 159 JMETHOD(void, start_pass, (j_decompress_ptr cinfo, J_BUF_MODE pass_mode));
nuclear@1 160 JMETHOD(void, process_data, (j_decompress_ptr cinfo,
nuclear@1 161 JSAMPARRAY output_buf, JDIMENSION *out_row_ctr,
nuclear@1 162 JDIMENSION out_rows_avail));
nuclear@1 163 };
nuclear@1 164
nuclear@1 165 /* Coefficient buffer control */
nuclear@1 166 struct jpeg_d_coef_controller {
nuclear@1 167 JMETHOD(void, start_input_pass, (j_decompress_ptr cinfo));
nuclear@1 168 JMETHOD(int, consume_data, (j_decompress_ptr cinfo));
nuclear@1 169 JMETHOD(void, start_output_pass, (j_decompress_ptr cinfo));
nuclear@1 170 JMETHOD(int, decompress_data, (j_decompress_ptr cinfo,
nuclear@1 171 JSAMPIMAGE output_buf));
nuclear@1 172 /* Pointer to array of coefficient virtual arrays, or NULL if none */
nuclear@1 173 jvirt_barray_ptr *coef_arrays;
nuclear@1 174 };
nuclear@1 175
nuclear@1 176 /* Decompression postprocessing (color quantization buffer control) */
nuclear@1 177 struct jpeg_d_post_controller {
nuclear@1 178 JMETHOD(void, start_pass, (j_decompress_ptr cinfo, J_BUF_MODE pass_mode));
nuclear@1 179 JMETHOD(void, post_process_data, (j_decompress_ptr cinfo,
nuclear@1 180 JSAMPIMAGE input_buf,
nuclear@1 181 JDIMENSION *in_row_group_ctr,
nuclear@1 182 JDIMENSION in_row_groups_avail,
nuclear@1 183 JSAMPARRAY output_buf,
nuclear@1 184 JDIMENSION *out_row_ctr,
nuclear@1 185 JDIMENSION out_rows_avail));
nuclear@1 186 };
nuclear@1 187
nuclear@1 188 /* Marker reading & parsing */
nuclear@1 189 struct jpeg_marker_reader {
nuclear@1 190 JMETHOD(void, reset_marker_reader, (j_decompress_ptr cinfo));
nuclear@1 191 /* Read markers until SOS or EOI.
nuclear@1 192 * Returns same codes as are defined for jpeg_consume_input:
nuclear@1 193 * JPEG_SUSPENDED, JPEG_REACHED_SOS, or JPEG_REACHED_EOI.
nuclear@1 194 */
nuclear@1 195 JMETHOD(int, read_markers, (j_decompress_ptr cinfo));
nuclear@1 196 /* Read a restart marker --- exported for use by entropy decoder only */
nuclear@1 197 jpeg_marker_parser_method read_restart_marker;
nuclear@1 198
nuclear@1 199 /* State of marker reader --- nominally internal, but applications
nuclear@1 200 * supplying COM or APPn handlers might like to know the state.
nuclear@1 201 */
nuclear@1 202 boolean saw_SOI; /* found SOI? */
nuclear@1 203 boolean saw_SOF; /* found SOF? */
nuclear@1 204 int next_restart_num; /* next restart number expected (0-7) */
nuclear@1 205 unsigned int discarded_bytes; /* # of bytes skipped looking for a marker */
nuclear@1 206 };
nuclear@1 207
nuclear@1 208 /* Entropy decoding */
nuclear@1 209 struct jpeg_entropy_decoder {
nuclear@1 210 JMETHOD(void, start_pass, (j_decompress_ptr cinfo));
nuclear@1 211 JMETHOD(boolean, decode_mcu, (j_decompress_ptr cinfo,
nuclear@1 212 JBLOCKROW *MCU_data));
nuclear@1 213
nuclear@1 214 /* This is here to share code between baseline and progressive decoders; */
nuclear@1 215 /* other modules probably should not use it */
nuclear@1 216 boolean insufficient_data; /* set TRUE after emitting warning */
nuclear@1 217 };
nuclear@1 218
nuclear@1 219 /* Inverse DCT (also performs dequantization) */
nuclear@1 220 typedef JMETHOD(void, inverse_DCT_method_ptr,
nuclear@1 221 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
nuclear@1 222 JCOEFPTR coef_block,
nuclear@1 223 JSAMPARRAY output_buf, JDIMENSION output_col));
nuclear@1 224
nuclear@1 225 struct jpeg_inverse_dct {
nuclear@1 226 JMETHOD(void, start_pass, (j_decompress_ptr cinfo));
nuclear@1 227 /* It is useful to allow each component to have a separate IDCT method. */
nuclear@1 228 inverse_DCT_method_ptr inverse_DCT[MAX_COMPONENTS];
nuclear@1 229 };
nuclear@1 230
nuclear@1 231 /* Upsampling (note that upsampler must also call color converter) */
nuclear@1 232 struct jpeg_upsampler {
nuclear@1 233 JMETHOD(void, start_pass, (j_decompress_ptr cinfo));
nuclear@1 234 JMETHOD(void, upsample, (j_decompress_ptr cinfo,
nuclear@1 235 JSAMPIMAGE input_buf,
nuclear@1 236 JDIMENSION *in_row_group_ctr,
nuclear@1 237 JDIMENSION in_row_groups_avail,
nuclear@1 238 JSAMPARRAY output_buf,
nuclear@1 239 JDIMENSION *out_row_ctr,
nuclear@1 240 JDIMENSION out_rows_avail));
nuclear@1 241
nuclear@1 242 boolean need_context_rows; /* TRUE if need rows above & below */
nuclear@1 243 };
nuclear@1 244
nuclear@1 245 /* Colorspace conversion */
nuclear@1 246 struct jpeg_color_deconverter {
nuclear@1 247 JMETHOD(void, start_pass, (j_decompress_ptr cinfo));
nuclear@1 248 JMETHOD(void, color_convert, (j_decompress_ptr cinfo,
nuclear@1 249 JSAMPIMAGE input_buf, JDIMENSION input_row,
nuclear@1 250 JSAMPARRAY output_buf, int num_rows));
nuclear@1 251 };
nuclear@1 252
nuclear@1 253 /* Color quantization or color precision reduction */
nuclear@1 254 struct jpeg_color_quantizer {
nuclear@1 255 JMETHOD(void, start_pass, (j_decompress_ptr cinfo, boolean is_pre_scan));
nuclear@1 256 JMETHOD(void, color_quantize, (j_decompress_ptr cinfo,
nuclear@1 257 JSAMPARRAY input_buf, JSAMPARRAY output_buf,
nuclear@1 258 int num_rows));
nuclear@1 259 JMETHOD(void, finish_pass, (j_decompress_ptr cinfo));
nuclear@1 260 JMETHOD(void, new_color_map, (j_decompress_ptr cinfo));
nuclear@1 261 };
nuclear@1 262
nuclear@1 263
nuclear@1 264 /* Miscellaneous useful macros */
nuclear@1 265
nuclear@1 266 #undef MAX
nuclear@1 267 #define MAX(a,b) ((a) > (b) ? (a) : (b))
nuclear@1 268 #undef MIN
nuclear@1 269 #define MIN(a,b) ((a) < (b) ? (a) : (b))
nuclear@1 270
nuclear@1 271
nuclear@1 272 /* We assume that right shift corresponds to signed division by 2 with
nuclear@1 273 * rounding towards minus infinity. This is correct for typical "arithmetic
nuclear@1 274 * shift" instructions that shift in copies of the sign bit. But some
nuclear@1 275 * C compilers implement >> with an unsigned shift. For these machines you
nuclear@1 276 * must define RIGHT_SHIFT_IS_UNSIGNED.
nuclear@1 277 * RIGHT_SHIFT provides a proper signed right shift of an INT32 quantity.
nuclear@1 278 * It is only applied with constant shift counts. SHIFT_TEMPS must be
nuclear@1 279 * included in the variables of any routine using RIGHT_SHIFT.
nuclear@1 280 */
nuclear@1 281
nuclear@1 282 #ifdef RIGHT_SHIFT_IS_UNSIGNED
nuclear@1 283 #define SHIFT_TEMPS INT32 shift_temp;
nuclear@1 284 #define RIGHT_SHIFT(x,shft) \
nuclear@1 285 ((shift_temp = (x)) < 0 ? \
nuclear@1 286 (shift_temp >> (shft)) | ((~((INT32) 0)) << (32-(shft))) : \
nuclear@1 287 (shift_temp >> (shft)))
nuclear@1 288 #else
nuclear@1 289 #define SHIFT_TEMPS
nuclear@1 290 #define RIGHT_SHIFT(x,shft) ((x) >> (shft))
nuclear@1 291 #endif
nuclear@1 292
nuclear@1 293
nuclear@1 294 /* Short forms of external names for systems with brain-damaged linkers. */
nuclear@1 295
nuclear@1 296 #ifdef NEED_SHORT_EXTERNAL_NAMES
nuclear@1 297 #define jinit_compress_master jICompress
nuclear@1 298 #define jinit_c_master_control jICMaster
nuclear@1 299 #define jinit_c_main_controller jICMainC
nuclear@1 300 #define jinit_c_prep_controller jICPrepC
nuclear@1 301 #define jinit_c_coef_controller jICCoefC
nuclear@1 302 #define jinit_color_converter jICColor
nuclear@1 303 #define jinit_downsampler jIDownsampler
nuclear@1 304 #define jinit_forward_dct jIFDCT
nuclear@1 305 #define jinit_huff_encoder jIHEncoder
nuclear@1 306 #define jinit_phuff_encoder jIPHEncoder
nuclear@1 307 #define jinit_marker_writer jIMWriter
nuclear@1 308 #define jinit_master_decompress jIDMaster
nuclear@1 309 #define jinit_d_main_controller jIDMainC
nuclear@1 310 #define jinit_d_coef_controller jIDCoefC
nuclear@1 311 #define jinit_d_post_controller jIDPostC
nuclear@1 312 #define jinit_input_controller jIInCtlr
nuclear@1 313 #define jinit_marker_reader jIMReader
nuclear@1 314 #define jinit_huff_decoder jIHDecoder
nuclear@1 315 #define jinit_phuff_decoder jIPHDecoder
nuclear@1 316 #define jinit_inverse_dct jIIDCT
nuclear@1 317 #define jinit_upsampler jIUpsampler
nuclear@1 318 #define jinit_color_deconverter jIDColor
nuclear@1 319 #define jinit_1pass_quantizer jI1Quant
nuclear@1 320 #define jinit_2pass_quantizer jI2Quant
nuclear@1 321 #define jinit_merged_upsampler jIMUpsampler
nuclear@1 322 #define jinit_memory_mgr jIMemMgr
nuclear@1 323 #define jdiv_round_up jDivRound
nuclear@1 324 #define jround_up jRound
nuclear@1 325 #define jcopy_sample_rows jCopySamples
nuclear@1 326 #define jcopy_block_row jCopyBlocks
nuclear@1 327 #define jzero_far jZeroFar
nuclear@1 328 #define jpeg_zigzag_order jZIGTable
nuclear@1 329 #define jpeg_natural_order jZAGTable
nuclear@1 330 #endif /* NEED_SHORT_EXTERNAL_NAMES */
nuclear@1 331
nuclear@1 332
nuclear@1 333 /* Compression module initialization routines */
nuclear@1 334 EXTERN(void) jinit_compress_master JPP((j_compress_ptr cinfo));
nuclear@1 335 EXTERN(void) jinit_c_master_control JPP((j_compress_ptr cinfo,
nuclear@1 336 boolean transcode_only));
nuclear@1 337 EXTERN(void) jinit_c_main_controller JPP((j_compress_ptr cinfo,
nuclear@1 338 boolean need_full_buffer));
nuclear@1 339 EXTERN(void) jinit_c_prep_controller JPP((j_compress_ptr cinfo,
nuclear@1 340 boolean need_full_buffer));
nuclear@1 341 EXTERN(void) jinit_c_coef_controller JPP((j_compress_ptr cinfo,
nuclear@1 342 boolean need_full_buffer));
nuclear@1 343 EXTERN(void) jinit_color_converter JPP((j_compress_ptr cinfo));
nuclear@1 344 EXTERN(void) jinit_downsampler JPP((j_compress_ptr cinfo));
nuclear@1 345 EXTERN(void) jinit_forward_dct JPP((j_compress_ptr cinfo));
nuclear@1 346 EXTERN(void) jinit_huff_encoder JPP((j_compress_ptr cinfo));
nuclear@1 347 EXTERN(void) jinit_phuff_encoder JPP((j_compress_ptr cinfo));
nuclear@1 348 EXTERN(void) jinit_marker_writer JPP((j_compress_ptr cinfo));
nuclear@1 349 /* Decompression module initialization routines */
nuclear@1 350 EXTERN(void) jinit_master_decompress JPP((j_decompress_ptr cinfo));
nuclear@1 351 EXTERN(void) jinit_d_main_controller JPP((j_decompress_ptr cinfo,
nuclear@1 352 boolean need_full_buffer));
nuclear@1 353 EXTERN(void) jinit_d_coef_controller JPP((j_decompress_ptr cinfo,
nuclear@1 354 boolean need_full_buffer));
nuclear@1 355 EXTERN(void) jinit_d_post_controller JPP((j_decompress_ptr cinfo,
nuclear@1 356 boolean need_full_buffer));
nuclear@1 357 EXTERN(void) jinit_input_controller JPP((j_decompress_ptr cinfo));
nuclear@1 358 EXTERN(void) jinit_marker_reader JPP((j_decompress_ptr cinfo));
nuclear@1 359 EXTERN(void) jinit_huff_decoder JPP((j_decompress_ptr cinfo));
nuclear@1 360 EXTERN(void) jinit_phuff_decoder JPP((j_decompress_ptr cinfo));
nuclear@1 361 EXTERN(void) jinit_inverse_dct JPP((j_decompress_ptr cinfo));
nuclear@1 362 EXTERN(void) jinit_upsampler JPP((j_decompress_ptr cinfo));
nuclear@1 363 EXTERN(void) jinit_color_deconverter JPP((j_decompress_ptr cinfo));
nuclear@1 364 EXTERN(void) jinit_1pass_quantizer JPP((j_decompress_ptr cinfo));
nuclear@1 365 EXTERN(void) jinit_2pass_quantizer JPP((j_decompress_ptr cinfo));
nuclear@1 366 EXTERN(void) jinit_merged_upsampler JPP((j_decompress_ptr cinfo));
nuclear@1 367 /* Memory manager initialization */
nuclear@1 368 EXTERN(void) jinit_memory_mgr JPP((j_common_ptr cinfo));
nuclear@1 369
nuclear@1 370 /* Utility routines in jutils.c */
nuclear@1 371 EXTERN(long) jdiv_round_up JPP((long a, long b));
nuclear@1 372 EXTERN(long) jround_up JPP((long a, long b));
nuclear@1 373 EXTERN(void) jcopy_sample_rows JPP((JSAMPARRAY input_array, int source_row,
nuclear@1 374 JSAMPARRAY output_array, int dest_row,
nuclear@1 375 int num_rows, JDIMENSION num_cols));
nuclear@1 376 EXTERN(void) jcopy_block_row JPP((JBLOCKROW input_row, JBLOCKROW output_row,
nuclear@1 377 JDIMENSION num_blocks));
nuclear@1 378 EXTERN(void) jzero_far JPP((void FAR * target, size_t bytestozero));
nuclear@1 379 /* Constant tables in jutils.c */
nuclear@1 380 #if 0 /* This table is not actually needed in v6a */
nuclear@1 381 extern const int jpeg_zigzag_order[]; /* natural coef order to zigzag order */
nuclear@1 382 #endif
nuclear@1 383 extern const int jpeg_natural_order[]; /* zigzag coef order to natural order */
nuclear@1 384
nuclear@1 385 /* Suppress undefined-structure complaints if necessary. */
nuclear@1 386
nuclear@1 387 #ifdef INCOMPLETE_TYPES_BROKEN
nuclear@1 388 #ifndef AM_MEMORY_MANAGER /* only jmemmgr.c defines these */
nuclear@1 389 struct jvirt_sarray_control { long dummy; };
nuclear@1 390 struct jvirt_barray_control { long dummy; };
nuclear@1 391 #endif
nuclear@1 392 #endif /* INCOMPLETE_TYPES_BROKEN */