version 1.11 | | version 1.12 |
---|
| | |
/* | | /* |
* static char *rcsid_image_c = | | * static char *rcsid_image_c = |
* "$Id: image.c,v 1.11 2005/03/19 09:14:56 mwedel Exp $"; | | * "$Id: image.c,v 1.12 2005/08/12 13:46:34 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
nrofpixmaps++; | | nrofpixmaps++; |
| | |
qsort (xbm, nrofbmaps, sizeof(struct bmappair), (int (*)())compar); | | qsort (xbm, nrofbmaps, sizeof(struct bmappair), (int (*)(const void*, const void*))compar); |
| | |
ReadFaceData(); | | ReadFaceData(); |
| | |
| | |
| | |
tmp.name = name; | | tmp.name = name; |
bp = (struct bmappair *)bsearch | | bp = (struct bmappair *)bsearch |
(&tmp, xbm, nroffiles, sizeof(struct bmappair), (int (*)())compar); | | (&tmp, xbm, nroffiles, sizeof(struct bmappair), (int (*)(const void*, const void*))compar); |
| | |
return bp ? bp->number : error; | | return bp ? bp->number : error; |
} | | } |
| | |
fclose(fp); | | fclose(fp); |
| | |
LOG(llevDebug,"done (got %d smooth entries)\n",nrofsmooth); | | LOG(llevDebug,"done (got %d smooth entries)\n",nrofsmooth); |
qsort (smooth, nrofsmooth, sizeof(struct smoothing), (int (*)())compar_smooth); | | qsort (smooth, nrofsmooth, sizeof(struct smoothing), (int (*)(const void*, const void*))compar_smooth); |
return nrofsmooth; | | return nrofsmooth; |
} | | } |
| | |
| | |
| | |
tmp.id = face; | | tmp.id = face; |
bp = (struct smoothing *)bsearch | | bp = (struct smoothing *)bsearch |
(&tmp, smooth, nrofsmooth, sizeof(struct smoothing), (int (*)())compar_smooth); | | (&tmp, smooth, nrofsmooth, sizeof(struct smoothing), (int (*)(const void*, const void*))compar_smooth); |
(*smoothed)=0; | | (*smoothed)=0; |
if (bp) | | if (bp) |
(*smoothed)=bp->smooth; | | (*smoothed)=bp->smooth; |