]> Creatis software - gdcm.git/commitdiff
FIX: Compilation on Mac OSX is fine now + remove tabs
authormalaterre <malaterre>
Wed, 18 Aug 2004 02:26:08 +0000 (02:26 +0000)
committermalaterre <malaterre>
Wed, 18 Aug 2004 02:26:08 +0000 (02:26 +0000)
src/jpeg/ljpg/decomp.c
src/jpeg/ljpg/huffd.c
src/jpeg/ljpg/jpegutil.c
src/jpeg/ljpg/mcu.c
src/jpeg/ljpg/read.c

index e06b4cf0cdf6b2d37a592ed3fb295201d000d096..73fd196e625a62654e3f937d0857c5a31bbade77 100644 (file)
@@ -7,7 +7,7 @@
  * from the Cornell lossless JPEG code
  */
 /*
- * $Id: decomp.c,v 1.2 2003/10/29 18:24:40 malaterre Exp $
+ * $Id: decomp.c,v 1.3 2004/08/18 02:26:08 malaterre Exp $
  */
 #include <stdio.h>
 #include <stdlib.h>
@@ -17,8 +17,8 @@
 #include "mcu.h"
 #include "proto.h"
 
-DecompressInfo  dcInfo;
-StreamIN        JpegInFile;     
+static DecompressInfo  dcInfo;
+static StreamIN        JpegInFile;     
 
 /*
  *--------------------------------------------------------------
index 6b4bc0b0e88781883619bfea16f598f2938f8631..92e34562626dc8a21dcbf5e3641d9aa14647648d 100644 (file)
@@ -5,7 +5,7 @@
  * software
  */
 /*
- * $Id: huffd.c,v 1.2 2004/01/07 10:07:28 regrain Exp $
+ * $Id: huffd.c,v 1.3 2004/08/18 02:26:08 malaterre Exp $
  */
 #include <stdio.h>
 #include <stdlib.h>
@@ -26,7 +26,7 @@ static int  bitsLeft;               /* # of unused bits in it */
  * The following variables keep track of the input buffer
  * for the JPEG data, which is read by ReadJpegData.
  */
-Uchar *inputBuffer;               /* Input buffer for JPEG data */
+Uchar *inputBuffer = 0;           /* Input buffer for JPEG data */
 int inputBufferOffset = 0;        /* Offset of current byte */
 
 /*
@@ -646,7 +646,7 @@ void DecodeImage (DecompressInfo *dcPtr, unsigned short **image, int depth)
 
         /* The upper neighbors are predictors for the first column. */
         for (curComp = 0; curComp < compsInScan; curComp++) 
-                {              
+                {
             ci = dcPtr->MCUmembership[curComp];
             compptr = dcPtr->curCompInfo[ci];
             dctbl = dcPtr->dcHuffTblPtrs[compptr->dcTblNo];
@@ -661,7 +661,7 @@ void DecodeImage (DecompressInfo *dcPtr, unsigned short **image, int depth)
         for (col=1; col < numCOL; col++) 
                 {
             for (curComp = 0; curComp < compsInScan; curComp++) 
-                        {                      
+                        {
                 ci = dcPtr->MCUmembership[curComp];
                 compptr = dcPtr->curCompInfo[ci];
                 dctbl = dcPtr->dcHuffTblPtrs[compptr->dcTblNo];
index 022332b9d933f3d54237354d6d20e900868740e3..06352ae5de271ca6d89d0de0ba29fbe8c691fb98 100644 (file)
@@ -5,7 +5,7 @@
  * are stolen from the IJG code
  */
 /*
- * $Id: jpegutil.c,v 1.1 2003/10/21 12:08:54 jpr Exp $
+ * $Id: jpegutil.c,v 1.2 2004/08/18 02:26:08 malaterre Exp $
  */
 #include <stdio.h>
 #include <stdlib.h>
  * Enough memory is reserved to accomodate up to 1024-wide images
  * with up to 4 components.
  */
-char mcuROW1Memory[1024 * sizeof(MCU)];
-char mcuROW2Memory[1024 * sizeof(MCU)];
-char buf1Memory[1024 * 4 * sizeof(ComponentType)];
-char buf2Memory[1024 * 4 * sizeof(ComponentType)];
+static char mcuROW1Memory[1024 * sizeof(MCU)];
+static char mcuROW2Memory[1024 * sizeof(MCU)];
+static char buf1Memory[1024 * 4 * sizeof(ComponentType)];
+static char buf2Memory[1024 * 4 * sizeof(ComponentType)];
 
 
 unsigned int bitMask[] = {  0xffffffff, 0x7fffffff, 0x3fffffff, 0x1fffffff,
index 85c4b5e96ecf7fb3c7e5c5f59ed32f4dbde5fb8e..067e5abbf14381cad53293a5fcdf523b2e35c2a4 100644 (file)
@@ -5,7 +5,7 @@
  *
  */
 /*
- * $Id: mcu.c,v 1.1 2003/10/21 12:08:54 jpr Exp $
+ * $Id: mcu.c,v 1.2 2004/08/18 02:26:08 malaterre Exp $
  */
 #include <stdio.h>
 #include <stdlib.h>
 #include "mcu.h"
 #include "proto.h"
 
-MCU *mcuTable;          /* the global mcu table that buffers the source image */
+MCU *mcuTable=NULL;     /* the global mcu table that buffers the source image */
 
 MCU *mcuROW1=NULL;      /* point to two rows of MCU in encoding & decoding */
 MCU *mcuROW2=NULL;
 
-int numMCU;             /* number of MCUs in mcuTable */
+int numMCU=0;           /* number of MCUs in mcuTable */
 
 /*
  *--------------------------------------------------------------
index 3753d63aaba14eef408c528e6c9f24b278de8dda..40344ac241f68d5d6401807dd21f75e5d140c47b 100644 (file)
@@ -5,7 +5,7 @@
  * from the IJG software
  */
 /*
- * $Id: read.c,v 1.1 2003/10/21 12:08:54 jpr Exp $
+ * $Id: read.c,v 1.2 2004/08/18 02:26:08 malaterre Exp $
  */
 #include <stdio.h>
 #include <stdlib.h>
@@ -21,7 +21,7 @@
  * Huffman tables once here, then pointers set later as needed
  */
 
-HuffmanTable HuffmanTableMemory[4];
+static HuffmanTable HuffmanTableMemory[4];
 
 /* 
  * Enumerate all the JPEG marker codes