X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmJpeg.cxx;h=7cfee75fc209001b1a585f4611f27e012f92ca5a;hb=5aaee60665d694d3fef70c95a6b064e70cee26bf;hp=b98a9acfb888613eb781968d4516197c2f3d5ad6;hpb=9ca0e4bb2208be93bebf21d0c5d75c8018e7605a;p=gdcm.git diff --git a/src/gdcmJpeg.cxx b/src/gdcmJpeg.cxx index b98a9acf..7cfee75f 100644 --- a/src/gdcmJpeg.cxx +++ b/src/gdcmJpeg.cxx @@ -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/10/18 19:06:30 $ + Version: $Revision: 1.51 $ 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 */