istereo

annotate libs/libjpeg/jpegint.h @ 40:9e8fb79fd959

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