make a note about what Z_DEFAULT_COMPRESSION means to zlib

This commit is contained in:
Dane Springmeyer 2012-10-25 13:30:14 -07:00
parent 888e6ec941
commit f7bd53c0d3

View file

@ -270,7 +270,7 @@ void save_to_stream(T const& image,
if (t == "png" || boost::algorithm::starts_with(t, "png"))
{
int colors = 256;
int compression = Z_DEFAULT_COMPRESSION;
int compression = Z_DEFAULT_COMPRESSION; // usually mapped to z=6 in zlib
int strategy = Z_DEFAULT_STRATEGY;
int trans_mode = -1;
double gamma = -1;