Add support for missing user ability to set Z_FIXED zlib strategy

This commit is contained in:
Dane Springmeyer 2012-11-04 06:58:25 -05:00
parent 56f3874ecf
commit f9fa9c2461
2 changed files with 6 additions and 0 deletions

View file

@ -8,6 +8,8 @@ For a complete change history, see the git log.
## Future ## Future
- Added support for setting zlib `Z_FIXED` strategy with format string: `png:z=fixed`
- Fixed handling of transparency level option in Octree-based PNG encoding (#1556) - Fixed handling of transparency level option in Octree-based PNG encoding (#1556)
- Faster rendering of rasters by reducing memory allocation of temporary buffers (#1516) - Faster rendering of rasters by reducing memory allocation of temporary buffers (#1516)

View file

@ -198,6 +198,10 @@ void handle_png_options(std::string const& type,
{ {
*strategy = Z_RLE; *strategy = Z_RLE;
} }
else if (s == "fixed")
{
*strategy = Z_FIXED;
}
else else
{ {
throw ImageWriterException("invalid compression strategy parameter: " + s); throw ImageWriterException("invalid compression strategy parameter: " + s);