Mercurial > hg > wm
diff Meerwald/wavelet.c @ 20:bd669312f068
suppress warnings, fix link errors
author | Peter Meerwald-Stadler <pmeerw@pmeerw.net> |
---|---|
date | Sat, 28 Jan 2023 23:54:58 +0100 |
parents | f83ef905a63d |
children |
line wrap: on
line diff
--- a/Meerwald/wavelet.c Tue Sep 21 13:40:51 2010 +0200 +++ b/Meerwald/wavelet.c Sat Jan 28 23:54:58 2023 +0100 @@ -90,7 +90,7 @@ IntImage img; FILE *fp; IntPixel *data; - int width, height, i, max, ch1, ch2; + int width, height, i, ch1, ch2; fp=fopen(file,"rb"); if (fp==NULL) goto error; @@ -102,7 +102,7 @@ width=read_int(fp); height=read_int(fp); if ((width==0) || (height==0) ) goto error1; - max=read_int(fp); + read_int(fp); img=new_intimage(width,height); @@ -1555,7 +1555,7 @@ { Image_tree tree; Image img; - int min,max_level,e; + int min,max_level; tree=new_image_tree(); if(!tree) goto error; @@ -1572,7 +1572,7 @@ max_level=log10((float) min/best_basis_min)/log10(2); if (max_level>level) max_level=level; - e=compute_best(tree,0,max_level,flt,method,cost,epsilon); + compute_best(tree,0,max_level,flt,method,cost,epsilon); if (!tree->image) free(img);