View Single Post
Old 4th December 2008, 18:12   #60  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
try replace slow dividing by approximation: multiplication with shift.

like this:

n=...
d=(1<<16)/n;

*(dstp+w)= ((lb*16+ub)*d)>>16
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote