/*
 * jconfig.hfor JView
 *
 * Customised for Acorn ANSI C rel. 4 and ARM 
 * Frank Lyonnet 1992
 */

#define NO_GETENV

#define HAVE_STDC
#define PROTO
#define HAVE_UNSIGNED_CHAR
#define HAVE_UNSIGNED_SHORT
#define CHAR_IS_UNSIGNED

/* If your compiler supports inline functions, define INLINE
 * as the inline keyword; otherwise define it as empty.
 */
#ifndef INLINE                  /* default is to define it as empty */
#define INLINE
#endif

typedef int boolean;
#undef FALSE                    /* in case these macros already exist */
#undef TRUE
#define FALSE   0               /* values of boolean */
#define TRUE    1

#define JPEG_BUF_SIZE   4*1024 /* bytes */

/* Encoder capability options: */
#undef  C_ARITH_CODING_SUPPORTED        /* Arithmetic coding back end? */
#undef  C_MULTISCAN_FILES_SUPPORTED     /* Multiple-scan JPEG files?  (NYI) */
#undef  ENTROPY_OPT_SUPPORTED           /* Optimization of entropy coding parms? */
#undef  INPUT_SMOOTHING_SUPPORTED       /* Input image smoothing option? */
/* Decoder capability options: */
#undef  D_ARITH_CODING_SUPPORTED        /* Arithmetic coding back end? */
#define  D_MULTISCAN_FILES_SUPPORTED     /* Multiple-scan JPEG files? */
#undef  BLOCK_SMOOTHING_SUPPORTED       /* Block smoothing during decoding? */
#undef  QUANT_1PASS_SUPPORTED           /* 1-pass color quantization? */
#undef  QUANT_2PASS_SUPPORTED           /* 2-pass color quantization? */
/* these defines indicate which JPEG file formats are allowed */
#define JFIF_SUPPORTED                  /* JFIF or "raw JPEG" files */
#undef  JTIFF_SUPPORTED                 /* JPEG-in-TIFF (not yet implemented) */
/* these defines indicate which image (non-JPEG) file formats are allowed */
#define  GIF_SUPPORTED                   /* GIF image file format */
#undef  RLE_SUPPORTED                   /* RLE image file format (by default, no) */
#define  PPM_SUPPORTED                   /* PPM/PGM image file format */
#define  TARGA_SUPPORTED                 /* Targa image file format */
#undef  TIFF_SUPPORTED                  /* TIFF image file format (not yet impl.) */

/*
 * Frank Lyonnet 1993 
 */    
#define ACORN8_SUPPORTED        /* Acorn Sprite 8bpp file format */


#define EIGHT_BIT_SAMPLES
#undef  TWELVE_BIT_SAMPLES
#undef  SIXTEEN_BIT_SAMPLES

#ifdef EIGHT_BIT_SAMPLES

/* JSAMPLE should be the smallest type that will hold the values 0..255.
 * You can use a signed char by having GETJSAMPLE mask it with 0xFF.
 * If you have only signed chars, and you are more worried about speed than
 * memory usage, it might be a win to make JSAMPLE be short.
 */

#define GETJSAMPLE(value)  (value)
typedef char JSAMPLE;

#define BITS_IN_JSAMPLE   8
#define MAXJSAMPLE      255
#define CENTERJSAMPLE   128

#endif /* EIGHT_BIT_SAMPLES */

/* Here we define the representation of a DCT frequency coefficient.
 * This should be a signed 16-bit value; "short" is usually right.
 * It's important that this be exactly 16 bits, no more and no less;
 * more will cost you a BIG hit of memory, less will give wrong answers.
 */
typedef signed short int JCOEF;

/* UINT8 must hold at least the values 0..255. */
typedef unsigned char UINT8;

/* UINT16 must hold at least the values 0..65535. */
typedef unsigned short int UINT16;

/* INT16 must hold at least the values -32768..32767. */
typedef signed short int INT16;

/* INT32 must hold signed 32-bit values; if your machine happens */
/* to have 64-bit longs, you might want to change this. */
typedef signed long int INT32;
