+2004-01-07 Benoit Regrain
+ * Modification to compile with the distutils.
+ * Bug fix in code
+
2003-12-10 Benoit Regrain
- * gdcmHeader is now aggregating gdcmFile, and not derived into. Thus, we
+ * gdcmHeader is now aggregating gdcmFile, and not derived into. Thus, we
can use a gdcmHeaderHelper to load datas
* gdcmPython/testSuite.py : make the testSuite compliant with modifications
made in the source code
vtkSources.extend(Jpeg8Sources)
vtkSources.extend(Jpeg12Sources)
vtkSources.extend(JpgSources)
+vtkSources.remove(os.path.join(gdcmvtkSrcDir,"vtkgdcmViewer.cxx"))
vtkLibraries=["vtkCommon","vtkCommonPython",
"vtkIO","vtkIOPython",
* software
*/
/*
- * $Id: huffd.c,v 1.1 2003/10/21 12:08:53 jpr Exp $
+ * $Id: huffd.c,v 1.2 2004/01/07 10:07:28 regrain Exp $
*/
#include <stdio.h>
#include <stdlib.h>
else if (depth == 24)
PmPutRow24 (curRowBuf, numCOL, &image24tmp);
- swap(MCU *, prevRowBuf, curRowBuf);
+ gdcmSWAP(MCU *, prevRowBuf, curRowBuf);
/* optimal case : 8 bit image, one color component, no restartInRows */
if ((depth == 8) && (compsInScan == 1) && (dcPtr->restartInRows == 0))
else if (depth == 24)
PmPutRow24 (curRowBuf, numCOL, &image24tmp);
- swap(MCU *,prevRowBuf,curRowBuf);
+ gdcmSWAP(MCU *,prevRowBuf,curRowBuf);
continue;
}
dcPtr->restartRowsToGo--;
else if (depth == 24)
PmPutRow24 (curRowBuf, numCOL, &image24tmp);
- swap(MCU *, prevRowBuf, curRowBuf);
+ gdcmSWAP(MCU *, prevRowBuf, curRowBuf);
}/*endfor row*/
}/*endelse*/
* Basic jpeg data structure definitions.
*/
/*
- * $Id: jpeg.h,v 1.2 2003/10/29 18:24:40 malaterre Exp $
+ * $Id: jpeg.h,v 1.3 2004/01/07 10:07:28 regrain Exp $
*/
#ifndef _JPEG
#define _JPEG
+#include <stdio.h>
+
/* a function referenced thru EXTERNs: */
#ifdef WIN32
#define GLOBAL(type) __declspec( dllexport ) type
*
*--------------------------------------------------------------
*/
-#define swap(type,a,b) {type c; c=(a); (a)=(b); (b)=c;}
+#define gdcmSWAP(type,a,b) {type c; c=(a); (a)=(b); (b)=c;}
#define MEMSET(s,c,n) memset((void *)(s),(int)(c),(int)(n))
#define MEMCPY(s1,s2,n) memcpy((void *)(s1),(void *)(s2),(int)(n))
+#include <iostream>
+
#include <vtkRenderWindowInteractor.h>
#include <vtkImageViewer2.h>
#include <vtkStructuredPoints.h>