X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fgdcmjpegls%2FDecoder%2Fdecoder.c;h=3da8dd8a172f2586eab4892db21fcc71d7936662;hb=77cbc8232f9308aafb17bde18ef9549be212b741;hp=3fe7407dbe6b9a2488431034c3a7a67562b1c45f;hpb=d9300e649f7b6e7c36abf062857f7f412c4c9999;p=gdcm.git diff --git a/src/gdcmjpegls/Decoder/decoder.c b/src/gdcmjpegls/Decoder/decoder.c index 3fe7407d..3da8dd8a 100644 --- a/src/gdcmjpegls/Decoder/decoder.c +++ b/src/gdcmjpegls/Decoder/decoder.c @@ -55,10 +55,19 @@ #include #include "jpegmark.h" + +void usage(); + + #define PGMNAME PGMPREFIX "d" #define EPGMNAME PGMPREFIX "e" -static char *banner="\n\ +/* define color mode strings */ +char plane_int_string[] = "plane by plane", + line_int_string[] = "line intlv", + pixel_int_string[] = "sample intlv"; + +static char banner[]="\n\ =============================================\n\ SPMG/JPEG-LS DECOMPRESSOR " JPEGLSVERSION "\n\ =============================================\n\ @@ -100,8 +109,6 @@ int bpp16; /* Indicates if 16 bits per pixel mode or not */ int lutmax; /* lutmax is either 256 or 4501 */ - - /* reset */ #ifndef FIXRESET int RESET; @@ -121,8 +128,6 @@ int highmask; - - /* Write one row of pixel values */ inline void write_one_line(pixel* line, int cols, FILE* outfile) { @@ -301,9 +306,9 @@ void closebuffers(int multi) /* command line argument parsing */ int initialize(int argc, char *argv[]) { - char *infilename = NULL, - *outfilename = OUTFILE ".out", - *c_outfilename[MAX_COMPONENTS], + char *infilename = NULL; + const char *outfilename = OUTFILE ".out"; + char *c_outfilename[MAX_COMPONENTS], *color_mode_string; int i, max_samp_columns, max_samp_rows, mk, n_s, end_of_seek=0, @@ -1444,7 +1449,7 @@ int main (int argc, char *argv[]) { } if (head_scan[0]->need_table) - fprintf(msgfile,"A mapping table was used which had %i entries of %i bytes each.\n",head_scan[0]->MAXTAB, head_scan[0]->Wt); + fprintf(msgfile,"A mapping table was used which had %d entries of %d bytes each.\n",head_scan[0]->MAXTAB, head_scan[0]->Wt); if (got_restart) fprintf(msgfile,"Restart markers were found with a restart interval of %i.\n",restart_interval);