#include <string.h>
#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\
int lutmax; /* lutmax is either 256 or 4501 */
-
-
/* reset */
#ifndef FIXRESET
int RESET;
#endif
-void usage();
-
-
/* Write one row of pixel values */
/* 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,
}
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);