[mapguide-internals] RFC60 - PNG8 color palette improvements please
uvwild at gmail.com
Sun Mar 1 20:59:06 EST 2009
there is RFC60 place in the list and needs some commenting.
Currently, we are looking into a serverconfig.ini parameter
UseColorPalette in the TileServiceSection.
upon init of the tile cache this parses the map definition and produces
a palette with the map colors.
Those are then used in some 100 extra line of C code in AGGImageIo.cpp
to force those colors in
the map used for the PNG8 created from the truecolor tile passed in by
the rendering service.
1- which memory strategy is recommended for the color quantization? (3
options in the RFC (stack, fast heap, efficient heap))
2 - is the ServerTileService the right place to put the code to collect
the map colors?
3 - any suggestions regarding the naming and location of the color
palette within the map definition?
Comments are welcome!
Also a few guiding remarks concerning the integration of the
configuration code would make extremely helpful
as just knowing where to start looking saves day of wasted code studies.
These things are missing in the architecture
docs so far.
This is work in progress as there is a sponsor for it.
Thanks for your support.
More information about the mapguide-internals