4 * Part of the Independent JPEG Group's software.
5 * See the file Copyright for more details.
9 * $Id: mcu.h,v 1.1 2003/10/21 12:08:54 jpr Exp $
15 * An MCU (minimum coding unit) is an array of samples.
17 typedef short ComponentType; /* the type of image components */
18 typedef ComponentType *MCU; /* MCU - array of samples */
20 extern MCU *mcuTable; /* the global mcu table that buffers the source image */
21 extern int numMCU; /* number of MCUs in mcuTable */
22 extern MCU *mcuROW1,*mcuROW2; /* pt to two rows of MCU in encoding & decoding */
25 *--------------------------------------------------------------
29 * MakeMCU returns an MCU for input parsing.
37 *--------------------------------------------------------------
39 #define MakeMCU(dcPtr) (mcuTable[numMCU++])