vrshoot

annotate libs/libjpeg/jpegint.h @ 2:334d17aed7de

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