X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmJpeg.cxx;h=762de9d4f70e69dc2d6dd688d469873308b52f0f;hb=1d1824283002d1fcc3b8ff98170fc879c17f108f;hp=2d79c5c8f8fdafc35dc27f96471a86ac593c487d;hpb=0e0403151bbff57175d2b974ee2d14b8195f9234;p=gdcm.git diff --git a/src/gdcmJpeg.cxx b/src/gdcmJpeg.cxx index 2d79c5c8..762de9d4 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/01/31 03:22:25 $ - Version: $Revision: 1.38 $ + Date: $Date: 2005/02/02 10:02:18 $ + Version: $Revision: 1.40 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -56,11 +56,11 @@ 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::ofstream *fp, void *im_buf, int image_width, int image_height, int quality) { - JSAMPLE* image_buffer = (JSAMPLE*) im_buf; + JSAMPLE *image_buffer = (JSAMPLE*) im_buf; /* This struct contains the JPEG compression parameters and pointers to * working space (which is allocated as needed by the JPEG library). @@ -204,10 +204,11 @@ METHODDEF(void) my_error_exit (j_common_ptr cinfo) { * @param fp pointer to an already open file descriptor * 8 significant bits per pixel * @param image_buffer to receive uncompressed pixels + * @param statesuspension Suspension State basically it should be 3 otherwise more complex to handle * @return 1 on success, 0 on error */ void *SampBuffer; -bool JPEGFragment::gdcm_read_JPEG_file (std::ifstream* fp, void* image_buffer , int& statesuspension) +bool JPEGFragment::ReadJPEGFile (std::ifstream *fp, void *image_buffer, int &statesuspension) { pImage = (uint8_t*)image_buffer; // This struct contains the JPEG decompression parameters and pointers to