Program: gdcm
Module: $RCSfile: gdcmJpeg.cxx,v $
Language: C++
- Date: $Date: 2005/11/28 15:20:33 $
- Version: $Revision: 1.52 $
+ Date: $Date: 2006/01/27 10:01:34 $
+ Version: $Revision: 1.55 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include <setjmp.h>
#include <fstream>
+
+#if defined(__BORLANDC__)
+ #include <mem.h> // for memset
+#endif
+
#include "jdatasrc.cxx"
#include "jdatadst.cxx"
// (*cinfo->err->format_message) (cinfo, buffer);
//
// // Custom display message, we could be more fancy and throw an exception:
-// gdcmErrorMacro( buffer );
+// gdcmStaticErrorMacro( buffer );
//}
}
//-----------------------------------------------------------------------------
- /**
+/**
* \brief routine for JPEG decompression
* @param fp pointer to an already open file descriptor
* 8 significant bits per pixel
// If we get here, the JPEG code has signaled an error.
// We need to clean up the JPEG object, close the input file, and return.
- gdcmStaticErrorMacro( "Serious Problem !" );
+ gdcmErrorMacro( "Serious Problem !" );
jpeg_destroy_decompress(&cinfo);
return 0;
}