X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmJpeg.cxx;h=d632432f97c200fb6dd428c82383e7ea76f1c8d8;hb=e62d57cbd05c8e864fd2ba197a271cdcac9a2128;hp=b64fed03d2a816b8c31e925fdc31a945490b1d6e;hpb=c409cea027a78568fc06272becf98b4f0ede0513;p=gdcm.git diff --git a/src/gdcmJpeg.cxx b/src/gdcmJpeg.cxx index b64fed03..d632432f 100644 --- a/src/gdcmJpeg.cxx +++ b/src/gdcmJpeg.cxx @@ -130,7 +130,7 @@ extern "C" { * @return 1 on success, 0 on error */ -bool gdcm_write_JPEG_file (FILE *fp, void * im_buf, +bool gdcm_write_JPEG_file (FILE* fp, void* im_buf, int image_width, int image_height, int quality) { @@ -153,7 +153,7 @@ bool gdcm_write_JPEG_file (FILE *fp, void * im_buf, */ struct jpeg_error_mgr jerr; /* More stuff */ - //FILE * outfile; /* target file */ + //FILE* outfile; /* target FILE* / JSAMPROW row_pointer[1]; /* pointer to JSAMPLE row[s] */ int row_stride; /* physical row width in image buffer */ @@ -325,7 +325,7 @@ struct my_error_mgr { }; //----------------------------------------------------------------------------- -typedef struct my_error_mgr * my_error_ptr; +typedef struct my_error_mgr* my_error_ptr; /* * Here's the routine that will replace the standard error_exit method: @@ -357,8 +357,8 @@ METHODDEF(void) my_error_exit (j_common_ptr cinfo) { * @return 1 on success, 0 on error */ -bool gdcmFile::gdcm_read_JPEG_file (FILE *fp,void * image_buffer) { - char *pimage; +bool gdcmFile::gdcm_read_JPEG_file (FILE* fp, void* image_buffer) { + char* pimage; /* This struct contains the JPEG decompression parameters and pointers to * working space (which is allocated as needed by the JPEG library).