jonathan: thuban/libraries/thuban gdalwarp.cpp,1.7,1.8
jonathan at jpcoles.com
Fri Feb 18 22:22:45 CET 2005
Am Freitag, den 18.02.2005, 20:09 +0100 schrieb Bernhard Herzog:
> This is in the innermost loop. Wouldn't it be better to move the test
> for bInvertMask to where c is assigned to *(ptr++)? That way the test
> would only be made for every byte in the mask, not for every bit.
yes, that was stupid. while i was fixing that i rewrote that inner loop
so that it handles 8 bits at a time and then afterwards the edge cases
where there are less than 8 bits to pack. this reduces the number of
if's about 8x.
Jonathan Coles http://www.jpcoles.com
jonathan at jpcoles.com GnuPG Key: /gpg_pub_key.asc
More information about the Thuban-devel