void tcd_dump(tcd_image_t * img, int curtileno)
{
int tileno, compno, resno, bandno, precno, cblkno;
+ (void)curtileno;
fprintf(stdout, "image {\n");
fprintf(stdout, " tw=%d, th=%d x0=%d x1=%d y0=%d y1=%d\n", img->tw,
img->th, tcd_img->x0, tcd_img->x1, tcd_img->y0, tcd_img->y1);
int compno, resno, bandno, precno, cblkno, passno, layno;
double min, max;
double cumdisto[100]; /*add fixed_quality*/
- const double K = 1; /* 1.1; /*add fixed_quality*/*/
+ const double K = 1; /* 1.1; //add fixed_quality*/
double maxSE = 0;
min = DBL_MAX;
time7 = clock() - time7;
fprintf(stdout,"total: %ld.%.3ld s\n", time7 / CLOCKS_PER_SEC,
- (time7 % CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC);
+ (time7 % (int)CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC);
/* cleaning memory */
for (compno = 0; compno < tile->numcomps; compno++) {
/*---------------CLEAN-------------------*/
time = clock() - time;
fprintf(stdout,"total: %ld.%.3ld s\n", time / CLOCKS_PER_SEC,
- (time % CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC);
+ (time % (int)CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC);
for (compno = 0; compno < tile->numcomps; compno++) {
tilec = &tile->comps[compno];
time = clock() - time;
fprintf(stdout, "%ld.%.3ld s\n", time / CLOCKS_PER_SEC,
- (time % CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC);
+ (time % (int)CLOCKS_PER_SEC) * 1000 / CLOCKS_PER_SEC);