/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
*
* Copyright (C) 1991-1997, Thomas G. Lane.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file provides common declarations for the various JPEG modules.
* These declarations are considered internal to the JPEG library; most
* applications using the library shouldn't need to include this file.
*/
/* Declarations for both compression & decompression */
typedef enum { /* Operating modes for buffer controllers */
/* Remaining modes require a full-image buffer to have been created */
} J_BUF_MODE;
/* Values of global_state field (jdapi.c has some dependencies on ordering!) */
/* Declarations for compression modules */
/* Master control module */
struct jpeg_comp_master {
/* State variables made visible to other modules */
};
/* Main buffer control (downsampled-data buffer) */
struct jpeg_c_main_controller {
};
/* Compression preprocessing (downsampling input buffer control) */
struct jpeg_c_prep_controller {
};
/* Coefficient buffer control */
struct jpeg_c_coef_controller {
};
/* Colorspace conversion */
struct jpeg_color_converter {
};
/* Downsampling */
struct jpeg_downsampler {
};
/* Forward DCT (also controls coefficient quantization) */
struct jpeg_forward_dct {
/* perhaps this should be an array??? */
};
/* Entropy encoding */
struct jpeg_entropy_encoder {
};
/* Marker writing */
struct jpeg_marker_writer {
/* These routines are exported to allow insertion of extra markers */
/* Probably only COM and APPn markers should be written this way */
unsigned int datalen));
};
/* Declarations for decompression modules */
/* Master control module */
struct jpeg_decomp_master {
/* State variables made visible to other modules */
};
/* Input control module */
struct jpeg_input_controller {
/* State variables made visible to other modules */
};
/* Main buffer control (downsampled-data buffer) */
struct jpeg_d_main_controller {
};
/* Coefficient buffer control */
struct jpeg_d_coef_controller {
/* Pointer to array of coefficient virtual arrays, or NULL if none */
};
/* Decompression postprocessing (color quantization buffer control) */
struct jpeg_d_post_controller {
};
/* Marker reading & parsing */
struct jpeg_marker_reader {
/* Read markers until SOS or EOI.
* Returns same codes as are defined for jpeg_consume_input:
* JPEG_SUSPENDED, JPEG_REACHED_SOS, or JPEG_REACHED_EOI.
*/
/* Read a restart marker --- exported for use by entropy decoder only */
/* State of marker reader --- nominally internal, but applications
* supplying COM or APPn handlers might like to know the state.
*/
};
/* Entropy decoding */
struct jpeg_entropy_decoder {
/* This is here to share code between baseline and progressive decoders; */
/* other modules probably should not use it */
};
/* Inverse DCT (also performs dequantization) */
struct jpeg_inverse_dct {
/* It is useful to allow each component to have a separate IDCT method. */
};
/* Upsampling (note that upsampler must also call color converter) */
struct jpeg_upsampler {
};
/* Colorspace conversion */
struct jpeg_color_deconverter {
};
/* Color quantization or color precision reduction */
struct jpeg_color_quantizer {
int num_rows));
};
/* Miscellaneous useful macros */
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define MIN(a,b) ((a) < (b) ? (a) : (b))
/* We assume that right shift corresponds to signed division by 2 with
* rounding towards minus infinity. This is correct for typical "arithmetic
* shift" instructions that shift in copies of the sign bit. But some
* C compilers implement >> with an unsigned shift. For these machines you
* must define RIGHT_SHIFT_IS_UNSIGNED.
* RIGHT_SHIFT provides a proper signed right shift of an INT32 quantity.
* It is only applied with constant shift counts. SHIFT_TEMPS must be
* included in the variables of any routine using RIGHT_SHIFT.
*/
#ifdef RIGHT_SHIFT_IS_UNSIGNED
((shift_temp = (x)) < 0 ? \
(shift_temp >> (shft)))
#else
#define SHIFT_TEMPS
#endif
/* Short forms of external names for systems with brain-damaged linkers. */
#ifdef NEED_SHORT_EXTERNAL_NAMES
#endif /* NEED_SHORT_EXTERNAL_NAMES */
/* Compression module initialization routines */
/* Decompression module initialization routines */
/* Memory manager initialization */
/* Utility routines in jutils.c */
/* Constant tables in jutils.c */
#if 0 /* This table is not actually needed in v6a */
extern const int jpeg_zigzag_order[]; /* natural coef order to zigzag order */
#endif
extern const int jpeg_natural_order[]; /* zigzag coef order to natural order */
/* Suppress undefined-structure complaints if necessary. */
#ifdef INCOMPLETE_TYPES_BROKEN
#ifndef AM_MEMORY_MANAGER /* only jmemmgr.c defines these */
#endif
#endif /* INCOMPLETE_TYPES_BROKEN */