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
* @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)
{
// 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 */
// (*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