Program: gdcm
Module: $RCSfile: gdcmJpeg.cxx,v $
Language: C++
- Date: $Date: 2007/07/13 08:17:21 $
- Version: $Revision: 1.57 $
+ Date: $Date: 2007/08/30 17:37:16 $
+ Version: $Revision: 1.59 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
int image_width, int image_height, int numZ,
int sample_pixel, int bitsallocated, int quality)
{
-
(void)bitsallocated;
struct jpeg_compress_struct cinfo;
int row_stride; /* physical row width in image buffer */
/* Step 2: specify data destination (eg, a file) */
/* Note: steps 2 and 3 can be done in either order. */
- int fragment_size = inputlength;
+ int fragment_size = static_cast< int >( inputlength );
jpeg_stdio_dest(&cinfo, fp, fragment_size, 1);
/* Step 3: set parameters for compression */
* They only affect the compression ratio, not the image appearance,
* which is lossless.
*/
- jpeg_simple_lossless (&cinfo, 1, 1);
+ jpeg_simple_lossless (&cinfo, 1, 0);
/* Now you can set any non-default parameters you wish to.
* Here we just illustrate the use of quality (quantization table) scaling:
*/