From: Robert L K. <rl...@al...> - 2000-03-23 00:20:32
|
Date: Wed, 22 Mar 2000 14:27:26 +0000 From: Dave Hill <da...@mi...> Do any of the various colorfunc routines have any random element in them? I looked quickly and couldn't find any. If this is the case, then surely it is more efficient to code this as:- if (errline != errlast) { errlast = errline; Image_get_col(image, in, errline); (*colorfunc)(in, out, image_height, image_bpp, cmap, v); } so that the colorfunc is only called once instead of repeatedly for the same input line. Might shave a bit off the processing time if the image is being expanded a lot. True. The runtime is dominated by the dither, but this would save a bit of time. |