3dphotoshoot

annotate libs/libjpeg/jpegint.h @ 16:c6952cc82cca

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