[gdal-dev] Troubleshooting palette management. Potential bug in palette for overviews?

Ari Jolma ari.jolma at gmail.com
Fri Nov 25 02:27:04 PST 2016


24.11.2016, 18:01, Even Rouault kirjoitti:
>
> Could be worth fixing that if that cause issues (apparently in your 
> use case at least), but I'd be interested by information of what is 
> the standard/recommanded/best-practice-in-the-industry/etc... formulas 
> to use for the mapping between the [0,255] and [0,65535] ranges.
>

At least in the GTK circles it seems to be a standard practice to use 
the 257 as the scaling factor. See for example

http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/Gdk/Color.html

Ari



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20161125/1f29fe5a/attachment.html>


More information about the gdal-dev mailing list