]> Creatis software - gdcm.git/blobdiff - src/gdcmJpeg.cxx
* Fix compilation warnings
[gdcm.git] / src / gdcmJpeg.cxx
index b98a9acfb888613eb781968d4516197c2f3d5ad6..10f175811f28d956f782e6e21408d682b67706f1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmJpeg.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/06/24 10:55:59 $
-  Version:   $Revision: 1.49 $
+  Date:      $Date: 2005/11/29 08:32:44 $
+  Version:   $Revision: 1.54 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -56,7 +56,7 @@ namespace gdcm
  * @return 1 on success, 0 on error
  */
  
-bool gdcm_write_JPEG_file (std::ofstream *fp, void *im_buf, 
+bool gdcm_write_JPEG_file (std::ostream *fp, void *im_buf, 
                            int image_width, int image_height, int quality)
 {
 
@@ -107,7 +107,9 @@ bool gdcm_write_JPEG_file (std::ofstream *fp, void *im_buf,
  //   exit(1);
  //
  // }
-  jpeg_stdio_dest(&cinfo, fp);
+  assert( 0 );
+  (void)fp;
+  //jpeg_stdio_dest(&cinfo, fp, 0, 0, image_width, image_height, quality);
 
   /* Step 3: set parameters for compression */
 
@@ -205,13 +207,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