| OLD | NEW |
| 1 /* | 1 /* |
| 2 * jpegint.h | 2 * jpegint.h |
| 3 * | 3 * |
| 4 * Copyright (C) 1991-1997, Thomas G. Lane. | 4 * Copyright (C) 1991-1997, Thomas G. Lane. |
| 5 * Modified 1997-2009 by Guido Vollbeding. |
| 5 * This file is part of the Independent JPEG Group's software. | 6 * This file is part of the Independent JPEG Group's software. |
| 6 * For conditions of distribution and use, see the accompanying README file. | 7 * For conditions of distribution and use, see the accompanying README file. |
| 7 * | 8 * |
| 8 * This file provides common declarations for the various JPEG modules. | 9 * This file provides common declarations for the various JPEG modules. |
| 9 * These declarations are considered internal to the JPEG library; most | 10 * These declarations are considered internal to the JPEG library; most |
| 10 * applications using the library shouldn't need to include this file. | 11 * applications using the library shouldn't need to include this file. |
| 11 */ | 12 */ |
| 12 | 13 |
| 13 | 14 |
| 14 /* Declarations for both compression & decompression */ | 15 /* Declarations for both compression & decompression */ |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 #define jinit_compress_master jICompress | 298 #define jinit_compress_master jICompress |
| 298 #define jinit_c_master_control jICMaster | 299 #define jinit_c_master_control jICMaster |
| 299 #define jinit_c_main_controller jICMainC | 300 #define jinit_c_main_controller jICMainC |
| 300 #define jinit_c_prep_controller jICPrepC | 301 #define jinit_c_prep_controller jICPrepC |
| 301 #define jinit_c_coef_controller jICCoefC | 302 #define jinit_c_coef_controller jICCoefC |
| 302 #define jinit_color_converter jICColor | 303 #define jinit_color_converter jICColor |
| 303 #define jinit_downsampler jIDownsampler | 304 #define jinit_downsampler jIDownsampler |
| 304 #define jinit_forward_dct jIFDCT | 305 #define jinit_forward_dct jIFDCT |
| 305 #define jinit_huff_encoder jIHEncoder | 306 #define jinit_huff_encoder jIHEncoder |
| 306 #define jinit_phuff_encoder jIPHEncoder | 307 #define jinit_phuff_encoder jIPHEncoder |
| 308 #define jinit_arith_encoder jIAEncoder |
| 307 #define jinit_marker_writer jIMWriter | 309 #define jinit_marker_writer jIMWriter |
| 308 #define jinit_master_decompress jIDMaster | 310 #define jinit_master_decompress jIDMaster |
| 309 #define jinit_d_main_controller jIDMainC | 311 #define jinit_d_main_controller jIDMainC |
| 310 #define jinit_d_coef_controller jIDCoefC | 312 #define jinit_d_coef_controller jIDCoefC |
| 311 #define jinit_d_post_controller jIDPostC | 313 #define jinit_d_post_controller jIDPostC |
| 312 #define jinit_input_controller jIInCtlr | 314 #define jinit_input_controller jIInCtlr |
| 313 #define jinit_marker_reader jIMReader | 315 #define jinit_marker_reader jIMReader |
| 314 #define jinit_huff_decoder jIHDecoder | 316 #define jinit_huff_decoder jIHDecoder |
| 315 #define jinit_phuff_decoder jIPHDecoder | 317 #define jinit_phuff_decoder jIPHDecoder |
| 318 #define jinit_arith_decoder jIADecoder |
| 316 #define jinit_inverse_dct jIIDCT | 319 #define jinit_inverse_dct jIIDCT |
| 317 #define jinit_upsampler jIUpsampler | 320 #define jinit_upsampler jIUpsampler |
| 318 #define jinit_color_deconverter jIDColor | 321 #define jinit_color_deconverter jIDColor |
| 319 #define jinit_1pass_quantizer jI1Quant | 322 #define jinit_1pass_quantizer jI1Quant |
| 320 #define jinit_2pass_quantizer jI2Quant | 323 #define jinit_2pass_quantizer jI2Quant |
| 321 #define jinit_merged_upsampler jIMUpsampler | 324 #define jinit_merged_upsampler jIMUpsampler |
| 322 #define jinit_memory_mgr jIMemMgr | 325 #define jinit_memory_mgr jIMemMgr |
| 323 #define jdiv_round_up jDivRound | 326 #define jdiv_round_up jDivRound |
| 324 #define jround_up jRound | 327 #define jround_up jRound |
| 325 #define jcopy_sample_rows jCopySamples | 328 #define jcopy_sample_rows jCopySamples |
| 326 #define jcopy_block_row jCopyBlocks | 329 #define jcopy_block_row jCopyBlocks |
| 327 #define jzero_far jZeroFar | 330 #define jzero_far jZeroFar |
| 328 #define jpeg_zigzag_order jZIGTable | 331 #define jpeg_zigzag_order jZIGTable |
| 329 #define jpeg_natural_order jZAGTable | 332 #define jpeg_natural_order jZAGTable |
| 333 #define jpeg_aritab jAriTab |
| 330 #endif /* NEED_SHORT_EXTERNAL_NAMES */ | 334 #endif /* NEED_SHORT_EXTERNAL_NAMES */ |
| 331 | 335 |
| 332 | 336 |
| 333 /* Compression module initialization routines */ | 337 /* Compression module initialization routines */ |
| 334 EXTERN(void) jinit_compress_master JPP((j_compress_ptr cinfo)); | 338 EXTERN(void) jinit_compress_master JPP((j_compress_ptr cinfo)); |
| 335 EXTERN(void) jinit_c_master_control JPP((j_compress_ptr cinfo, | 339 EXTERN(void) jinit_c_master_control JPP((j_compress_ptr cinfo, |
| 336 boolean transcode_only)); | 340 boolean transcode_only)); |
| 337 EXTERN(void) jinit_c_main_controller JPP((j_compress_ptr cinfo, | 341 EXTERN(void) jinit_c_main_controller JPP((j_compress_ptr cinfo, |
| 338 boolean need_full_buffer)); | 342 boolean need_full_buffer)); |
| 339 EXTERN(void) jinit_c_prep_controller JPP((j_compress_ptr cinfo, | 343 EXTERN(void) jinit_c_prep_controller JPP((j_compress_ptr cinfo, |
| 340 boolean need_full_buffer)); | 344 boolean need_full_buffer)); |
| 341 EXTERN(void) jinit_c_coef_controller JPP((j_compress_ptr cinfo, | 345 EXTERN(void) jinit_c_coef_controller JPP((j_compress_ptr cinfo, |
| 342 boolean need_full_buffer)); | 346 boolean need_full_buffer)); |
| 343 EXTERN(void) jinit_color_converter JPP((j_compress_ptr cinfo)); | 347 EXTERN(void) jinit_color_converter JPP((j_compress_ptr cinfo)); |
| 344 EXTERN(void) jinit_downsampler JPP((j_compress_ptr cinfo)); | 348 EXTERN(void) jinit_downsampler JPP((j_compress_ptr cinfo)); |
| 345 EXTERN(void) jinit_forward_dct JPP((j_compress_ptr cinfo)); | 349 EXTERN(void) jinit_forward_dct JPP((j_compress_ptr cinfo)); |
| 346 EXTERN(void) jinit_huff_encoder JPP((j_compress_ptr cinfo)); | 350 EXTERN(void) jinit_huff_encoder JPP((j_compress_ptr cinfo)); |
| 347 EXTERN(void) jinit_phuff_encoder JPP((j_compress_ptr cinfo)); | 351 EXTERN(void) jinit_phuff_encoder JPP((j_compress_ptr cinfo)); |
| 352 EXTERN(void) jinit_arith_encoder JPP((j_compress_ptr cinfo)); |
| 348 EXTERN(void) jinit_marker_writer JPP((j_compress_ptr cinfo)); | 353 EXTERN(void) jinit_marker_writer JPP((j_compress_ptr cinfo)); |
| 349 /* Decompression module initialization routines */ | 354 /* Decompression module initialization routines */ |
| 350 EXTERN(void) jinit_master_decompress JPP((j_decompress_ptr cinfo)); | 355 EXTERN(void) jinit_master_decompress JPP((j_decompress_ptr cinfo)); |
| 351 EXTERN(void) jinit_d_main_controller JPP((j_decompress_ptr cinfo, | 356 EXTERN(void) jinit_d_main_controller JPP((j_decompress_ptr cinfo, |
| 352 boolean need_full_buffer)); | 357 boolean need_full_buffer)); |
| 353 EXTERN(void) jinit_d_coef_controller JPP((j_decompress_ptr cinfo, | 358 EXTERN(void) jinit_d_coef_controller JPP((j_decompress_ptr cinfo, |
| 354 boolean need_full_buffer)); | 359 boolean need_full_buffer)); |
| 355 EXTERN(void) jinit_d_post_controller JPP((j_decompress_ptr cinfo, | 360 EXTERN(void) jinit_d_post_controller JPP((j_decompress_ptr cinfo, |
| 356 boolean need_full_buffer)); | 361 boolean need_full_buffer)); |
| 357 EXTERN(void) jinit_input_controller JPP((j_decompress_ptr cinfo)); | 362 EXTERN(void) jinit_input_controller JPP((j_decompress_ptr cinfo)); |
| 358 EXTERN(void) jinit_marker_reader JPP((j_decompress_ptr cinfo)); | 363 EXTERN(void) jinit_marker_reader JPP((j_decompress_ptr cinfo)); |
| 359 EXTERN(void) jinit_huff_decoder JPP((j_decompress_ptr cinfo)); | 364 EXTERN(void) jinit_huff_decoder JPP((j_decompress_ptr cinfo)); |
| 360 EXTERN(void) jinit_phuff_decoder JPP((j_decompress_ptr cinfo)); | 365 EXTERN(void) jinit_phuff_decoder JPP((j_decompress_ptr cinfo)); |
| 366 EXTERN(void) jinit_arith_decoder JPP((j_decompress_ptr cinfo)); |
| 361 EXTERN(void) jinit_inverse_dct JPP((j_decompress_ptr cinfo)); | 367 EXTERN(void) jinit_inverse_dct JPP((j_decompress_ptr cinfo)); |
| 362 EXTERN(void) jinit_upsampler JPP((j_decompress_ptr cinfo)); | 368 EXTERN(void) jinit_upsampler JPP((j_decompress_ptr cinfo)); |
| 363 EXTERN(void) jinit_color_deconverter JPP((j_decompress_ptr cinfo)); | 369 EXTERN(void) jinit_color_deconverter JPP((j_decompress_ptr cinfo)); |
| 364 EXTERN(void) jinit_1pass_quantizer JPP((j_decompress_ptr cinfo)); | 370 EXTERN(void) jinit_1pass_quantizer JPP((j_decompress_ptr cinfo)); |
| 365 EXTERN(void) jinit_2pass_quantizer JPP((j_decompress_ptr cinfo)); | 371 EXTERN(void) jinit_2pass_quantizer JPP((j_decompress_ptr cinfo)); |
| 366 EXTERN(void) jinit_merged_upsampler JPP((j_decompress_ptr cinfo)); | 372 EXTERN(void) jinit_merged_upsampler JPP((j_decompress_ptr cinfo)); |
| 367 /* Memory manager initialization */ | 373 /* Memory manager initialization */ |
| 368 EXTERN(void) jinit_memory_mgr JPP((j_common_ptr cinfo)); | 374 EXTERN(void) jinit_memory_mgr JPP((j_common_ptr cinfo)); |
| 369 | 375 |
| 370 /* Utility routines in jutils.c */ | 376 /* Utility routines in jutils.c */ |
| 371 EXTERN(long) jdiv_round_up JPP((long a, long b)); | 377 EXTERN(long) jdiv_round_up JPP((long a, long b)); |
| 372 EXTERN(size_t) jround_up JPP((size_t a, size_t b)); | 378 EXTERN(long) jround_up JPP((long a, long b)); |
| 373 EXTERN(void) jcopy_sample_rows JPP((JSAMPARRAY input_array, int source_row, | 379 EXTERN(void) jcopy_sample_rows JPP((JSAMPARRAY input_array, int source_row, |
| 374 JSAMPARRAY output_array, int dest_row, | 380 JSAMPARRAY output_array, int dest_row, |
| 375 int num_rows, JDIMENSION num_cols)); | 381 int num_rows, JDIMENSION num_cols)); |
| 376 EXTERN(void) jcopy_block_row JPP((JBLOCKROW input_row, JBLOCKROW output_row, | 382 EXTERN(void) jcopy_block_row JPP((JBLOCKROW input_row, JBLOCKROW output_row, |
| 377 JDIMENSION num_blocks)); | 383 JDIMENSION num_blocks)); |
| 378 EXTERN(void) jzero_far JPP((void FAR * target, size_t bytestozero)); | 384 EXTERN(void) jzero_far JPP((void FAR * target, size_t bytestozero)); |
| 379 /* Constant tables in jutils.c */ | 385 /* Constant tables in jutils.c */ |
| 380 #if 0 /* This table is not actually needed in v6a */ | 386 #if 0 /* This table is not actually needed in v6a */ |
| 381 extern const int jpeg_zigzag_order[]; /* natural coef order to zigzag order */ | 387 extern const int jpeg_zigzag_order[]; /* natural coef order to zigzag order */ |
| 382 #endif | 388 #endif |
| 383 extern const int jpeg_natural_order[]; /* zigzag coef order to natural order */ | 389 extern const int jpeg_natural_order[]; /* zigzag coef order to natural order */ |
| 384 | 390 |
| 391 /* Arithmetic coding probability estimation tables in jaricom.c */ |
| 392 extern const INT32 jpeg_aritab[]; |
| 393 |
| 385 /* Suppress undefined-structure complaints if necessary. */ | 394 /* Suppress undefined-structure complaints if necessary. */ |
| 386 | 395 |
| 387 #ifdef INCOMPLETE_TYPES_BROKEN | 396 #ifdef INCOMPLETE_TYPES_BROKEN |
| 388 #ifndef AM_MEMORY_MANAGER /* only jmemmgr.c defines these */ | 397 #ifndef AM_MEMORY_MANAGER /* only jmemmgr.c defines these */ |
| 389 struct jvirt_sarray_control { long dummy; }; | 398 struct jvirt_sarray_control { long dummy; }; |
| 390 struct jvirt_barray_control { long dummy; }; | 399 struct jvirt_barray_control { long dummy; }; |
| 391 #endif | 400 #endif |
| 392 #endif /* INCOMPLETE_TYPES_BROKEN */ | 401 #endif /* INCOMPLETE_TYPES_BROKEN */ |
| OLD | NEW |