istereo2

annotate libs/libjpeg/jpegint.h @ 25:a9f2d30f7e8e

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