]> Creatis software - gdcm.git/blobdiff - src/gdcmJpeg.cxx
Add huge comment on the meaning of RETired fields around Orientation and Position
[gdcm.git] / src / gdcmJpeg.cxx
index 3edb58af2b46d2b733750d58ea80927a45232af5..76dfaa0724eb506f16304bd654cd162e0c9fd4d1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJpeg.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/18 18:39:49 $
-  Version:   $Revision: 1.50 $
+  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"
 
@@ -108,6 +113,7 @@ bool gdcm_write_JPEG_file (std::ostream *fp, void *im_buf,
  //
  // }
   assert( 0 );
+  (void)fp;
   //jpeg_stdio_dest(&cinfo, fp, 0, 0, image_width, image_height, quality);
 
   /* Step 3: set parameters for compression */
@@ -206,13 +212,13 @@ METHODDEF(void) my_error_exit (j_common_ptr cinfo) {
 //   (*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