[GRASS5] Bitmap API
Brad Douglas
rez at touchofmadness.com
Thu Nov 3 06:07:24 EST 2005
Hello,
Is there any reason for lib/bitmap/smain.c to exist? It appears to be a
relic program to test the API.
Also, can I add a function to the API to the likeness of
BM_set_all(struct BM *bmap, int value)?
It would be much more efficient to have a function that does a memset()
on the entire allocated struct rather than:
for (i=0; i < rows; i++)
for (j=0; j < cols; j++)
BM_set(bmap, i, j, 0);
Depending on the size of the bitmap, that could be a lot of extra cycles
wasted.
--
Brad Douglas <rez at touchofmadness.com> Address: 37.49,-121.92 / WGS84
GRASS GIS Developer National Map Corps #TNMC-3785
ASPRS #45794 BAAMA Journal Editor
GSA #9089754 KB8UYR Northern CA Geologic Society
More information about the grass-dev
mailing list