]> Creatis software - gdcm.git/blob - src/jpeg/ljpg/mcu.h
Some improvements for Write problems
[gdcm.git] / src / jpeg / ljpg / mcu.h
1 /*
2  * mcu.h --
3  *
4  * Part of the Independent JPEG Group's software.
5  * See the file Copyright for more details.
6  *
7  */
8 /*
9  * $Id: mcu.h,v 1.1 2003/10/21 12:08:54 jpr Exp $
10  */
11 #ifndef _MCU
12 #define _MCU
13
14 /*
15  * An MCU (minimum coding unit) is an array of samples.
16  */
17 typedef short ComponentType; /* the type of image components */
18 typedef ComponentType *MCU;  /* MCU - array of samples */
19
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 */
23
24 /*
25  *--------------------------------------------------------------
26  *
27  * MakeMCU --
28  *
29  *      MakeMCU returns an MCU for input parsing.
30  *
31  * Results:
32  *      A new MCU
33  *
34  * Side effects:
35  *      None.
36  *
37  *--------------------------------------------------------------
38  */
39 #define MakeMCU(dcPtr)  (mcuTable[numMCU++])
40
41 #endif /* _MCU */