2015-01-07 21:44:31 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
*
|
|
|
|
* This file is part of Mapnik (c++ mapping toolkit)
|
|
|
|
*
|
2016-12-20 17:57:22 +01:00
|
|
|
* Copyright (C) 2016 Artem Pavlenko
|
2015-01-07 21:44:31 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#if defined(HAVE_PNG)
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#include <png.h>
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// mapnik
|
|
|
|
#if defined(HAVE_PNG)
|
|
|
|
#include <mapnik/png_io.hpp>
|
|
|
|
#endif
|
|
|
|
|
2015-01-09 01:31:14 +01:00
|
|
|
#include <mapnik/image_util.hpp>
|
2015-01-07 21:44:31 +01:00
|
|
|
#include <mapnik/image_util_png.hpp>
|
2015-01-22 18:39:37 +01:00
|
|
|
#include <mapnik/image.hpp>
|
2015-01-22 02:40:12 +01:00
|
|
|
#include <mapnik/image_any.hpp>
|
2015-01-09 01:31:14 +01:00
|
|
|
#include <mapnik/image_view.hpp>
|
2015-05-14 16:35:04 +02:00
|
|
|
#include <mapnik/image_options.hpp>
|
2015-01-09 01:31:14 +01:00
|
|
|
#include <mapnik/util/conversions.hpp>
|
2015-01-07 21:44:31 +01:00
|
|
|
|
|
|
|
// stl
|
|
|
|
#include <string>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
namespace mapnik
|
|
|
|
{
|
|
|
|
|
|
|
|
#if defined(HAVE_PNG)
|
|
|
|
|
|
|
|
void handle_png_options(std::string const& type,
|
|
|
|
png_options & opts)
|
|
|
|
{
|
|
|
|
if (type == "png" || type == "png24" || type == "png32")
|
|
|
|
{
|
|
|
|
opts.paletted = false;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
else if (type == "png8" || type == "png256")
|
|
|
|
{
|
|
|
|
opts.paletted = true;
|
|
|
|
return;
|
|
|
|
}
|
2015-05-14 16:35:04 +02:00
|
|
|
|
2015-01-07 21:44:31 +01:00
|
|
|
bool set_colors = false;
|
|
|
|
bool set_gamma = false;
|
2015-05-14 16:35:04 +02:00
|
|
|
|
|
|
|
for (auto const& kv : parse_image_options(type))
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
2015-05-14 16:35:04 +02:00
|
|
|
auto const& key = kv.first;
|
|
|
|
auto const& val = kv.second;
|
|
|
|
if (key == "png8" || key == "png256")
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
|
|
|
opts.paletted = true;
|
|
|
|
}
|
2015-05-14 16:35:04 +02:00
|
|
|
else if (key == "png" || key == "png24" || key == "png32")
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
|
|
|
opts.paletted = false;
|
|
|
|
}
|
2015-05-14 16:35:04 +02:00
|
|
|
else if (key == "m" && val)
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
2015-05-14 16:35:04 +02:00
|
|
|
if (*val == "o") opts.use_hextree = false;
|
|
|
|
else if (*val == "h") opts.use_hextree = true;
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
2015-05-14 16:35:04 +02:00
|
|
|
else if (key == "e" && val && *val == "miniz")
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
2016-02-02 20:37:26 +01:00
|
|
|
throw image_writer_exception("miniz support has been removed from Mapnik");
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
2015-05-14 16:35:04 +02:00
|
|
|
else if (key == "c")
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
|
|
|
set_colors = true;
|
2015-05-14 16:35:04 +02:00
|
|
|
if (!val || !mapnik::util::string2int(*val, opts.colors) || opts.colors < 1 || opts.colors > 256)
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
2015-05-14 16:35:04 +02:00
|
|
|
throw image_writer_exception("invalid color parameter: " + to_string(val));
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
}
|
2015-05-14 16:35:04 +02:00
|
|
|
else if (key == "t")
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
2015-05-14 16:35:04 +02:00
|
|
|
if (!val || !mapnik::util::string2int(*val,opts.trans_mode) || opts.trans_mode < 0 || opts.trans_mode > 2)
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
2015-05-14 16:35:04 +02:00
|
|
|
throw image_writer_exception("invalid trans_mode parameter: " + to_string(val));
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
}
|
2015-05-14 16:35:04 +02:00
|
|
|
else if (key == "g")
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
|
|
|
set_gamma = true;
|
2015-05-14 16:35:04 +02:00
|
|
|
if (!val || !mapnik::util::string2double(*val, opts.gamma) || opts.gamma < 0)
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
2015-05-14 16:35:04 +02:00
|
|
|
throw image_writer_exception("invalid gamma parameter: " + to_string(val));
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
}
|
2015-05-14 16:35:04 +02:00
|
|
|
else if (key == "z")
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
#define Z_NO_COMPRESSION 0
|
|
|
|
#define Z_BEST_SPEED 1
|
|
|
|
#define Z_BEST_COMPRESSION 9
|
|
|
|
#define Z_DEFAULT_COMPRESSION (-1)
|
|
|
|
*/
|
2015-05-14 16:35:04 +02:00
|
|
|
if (!val || !mapnik::util::string2int(*val, opts.compression)
|
2015-01-07 21:44:31 +01:00
|
|
|
|| opts.compression < Z_DEFAULT_COMPRESSION
|
|
|
|
|| opts.compression > 10) // use 10 here rather than Z_BEST_COMPRESSION (9) to allow for MZ_UBER_COMPRESSION
|
|
|
|
{
|
2015-05-14 16:35:04 +02:00
|
|
|
throw image_writer_exception("invalid compression parameter: " + to_string(val) + " (only -1 through 10 are valid)");
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
}
|
2015-05-14 16:35:04 +02:00
|
|
|
else if (key == "s")
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
2015-05-14 16:35:04 +02:00
|
|
|
if (!val) throw image_writer_exception("invalid compression parameter: <uninitialised>");
|
|
|
|
|
|
|
|
if (*val == "default")
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
|
|
|
opts.strategy = Z_DEFAULT_STRATEGY;
|
|
|
|
}
|
2015-05-14 16:35:04 +02:00
|
|
|
else if (*val == "filtered")
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
|
|
|
opts.strategy = Z_FILTERED;
|
|
|
|
}
|
2015-05-14 16:35:04 +02:00
|
|
|
else if (*val == "huff")
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
|
|
|
opts.strategy = Z_HUFFMAN_ONLY;
|
|
|
|
}
|
2015-05-14 16:35:04 +02:00
|
|
|
else if (*val == "rle")
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
|
|
|
opts.strategy = Z_RLE;
|
|
|
|
}
|
2015-05-14 16:35:04 +02:00
|
|
|
else if (*val == "fixed")
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
|
|
|
opts.strategy = Z_FIXED;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-05-14 16:35:04 +02:00
|
|
|
throw image_writer_exception("invalid compression strategy parameter: " + *val);
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-05-14 16:35:04 +02:00
|
|
|
throw image_writer_exception("unhandled png option: " + key);
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
// validation
|
|
|
|
if (!opts.paletted && set_colors)
|
|
|
|
{
|
2015-05-14 13:53:21 +02:00
|
|
|
throw image_writer_exception("invalid color parameter: unavailable for true color (non-paletted) images");
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
if (!opts.paletted && set_gamma)
|
|
|
|
{
|
2015-05-14 13:53:21 +02:00
|
|
|
throw image_writer_exception("invalid gamma parameter: unavailable for true color (non-paletted) images");
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
2016-02-02 20:37:26 +01:00
|
|
|
if (opts.compression > Z_BEST_COMPRESSION)
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
2015-05-14 13:53:21 +02:00
|
|
|
throw image_writer_exception("invalid compression value: (only -1 through 9 are valid)");
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2015-01-08 22:55:51 +01:00
|
|
|
png_saver::png_saver(std::ostream & stream, std::string const& t):
|
|
|
|
stream_(stream), t_(t) {}
|
|
|
|
|
|
|
|
png_saver_pal::png_saver_pal(std::ostream & stream, std::string const& t, rgba_palette const& pal):
|
2015-01-08 17:30:02 +01:00
|
|
|
stream_(stream), t_(t), pal_(pal) {}
|
2015-01-07 21:44:31 +01:00
|
|
|
|
2015-01-09 01:31:14 +01:00
|
|
|
template<>
|
2015-01-22 17:58:01 +01:00
|
|
|
void png_saver::operator()<image_null> (image_null const& image) const
|
2015-01-08 16:12:34 +01:00
|
|
|
{
|
2015-05-14 13:53:21 +02:00
|
|
|
throw image_writer_exception("null images not supported for png");
|
2015-01-09 01:31:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
template<>
|
2015-01-22 17:58:01 +01:00
|
|
|
void png_saver_pal::operator()<image_null> (image_null const& image) const
|
2015-01-09 01:31:14 +01:00
|
|
|
{
|
2015-05-14 13:53:21 +02:00
|
|
|
throw image_writer_exception("null images not supported for png");
|
2015-01-08 16:12:34 +01:00
|
|
|
}
|
|
|
|
|
2015-03-20 03:28:16 +01:00
|
|
|
template<>
|
|
|
|
void png_saver::operator()<image_view_null> (image_view_null const& image) const
|
|
|
|
{
|
2015-05-14 13:53:21 +02:00
|
|
|
throw image_writer_exception("null image views not supported for png");
|
2015-03-20 03:28:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
template<>
|
|
|
|
void png_saver_pal::operator()<image_view_null> (image_view_null const& image) const
|
|
|
|
{
|
2015-05-14 13:53:21 +02:00
|
|
|
throw image_writer_exception("null image views not supported for png");
|
2015-03-20 03:28:16 +01:00
|
|
|
}
|
|
|
|
|
2015-01-08 22:55:51 +01:00
|
|
|
template <typename T>
|
2015-05-14 13:53:21 +02:00
|
|
|
void process_rgba8_png_pal(T const& image,
|
2015-01-09 01:31:14 +01:00
|
|
|
std::string const& t,
|
|
|
|
std::ostream & stream,
|
|
|
|
rgba_palette const& pal)
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
|
|
|
#if defined(HAVE_PNG)
|
|
|
|
png_options opts;
|
2015-01-09 01:31:14 +01:00
|
|
|
handle_png_options(t, opts);
|
|
|
|
if (pal.valid())
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
2015-01-09 01:31:14 +01:00
|
|
|
save_as_png8_pal(stream, image, pal, opts);
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
else if (opts.paletted)
|
|
|
|
{
|
|
|
|
if (opts.use_hextree)
|
|
|
|
{
|
2015-01-09 01:31:14 +01:00
|
|
|
save_as_png8_hex(stream, image, opts);
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-01-09 01:31:14 +01:00
|
|
|
save_as_png8_oct(stream, image, opts);
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-01-09 01:31:14 +01:00
|
|
|
save_as_png(stream, image, opts);
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
#else
|
2015-05-14 13:53:21 +02:00
|
|
|
throw image_writer_exception("png output is not enabled in your build of Mapnik");
|
2015-01-07 21:44:31 +01:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2015-01-08 22:55:51 +01:00
|
|
|
template <typename T>
|
2015-05-14 13:53:21 +02:00
|
|
|
void process_rgba8_png(T const& image,
|
2015-01-09 01:31:14 +01:00
|
|
|
std::string const& t,
|
|
|
|
std::ostream & stream)
|
2015-01-08 00:16:38 +01:00
|
|
|
{
|
|
|
|
#if defined(HAVE_PNG)
|
|
|
|
png_options opts;
|
2015-01-09 01:31:14 +01:00
|
|
|
handle_png_options(t, opts);
|
2015-01-08 22:55:51 +01:00
|
|
|
if (opts.paletted)
|
2015-01-08 00:16:38 +01:00
|
|
|
{
|
|
|
|
if (opts.use_hextree)
|
|
|
|
{
|
2015-01-09 01:31:14 +01:00
|
|
|
save_as_png8_hex(stream, image, opts);
|
2015-01-08 00:16:38 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-01-09 01:31:14 +01:00
|
|
|
save_as_png8_oct(stream, image, opts);
|
2015-01-08 00:16:38 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2015-01-09 01:31:14 +01:00
|
|
|
save_as_png(stream, image, opts);
|
2015-01-08 00:16:38 +01:00
|
|
|
}
|
|
|
|
#else
|
2015-05-14 13:53:21 +02:00
|
|
|
throw image_writer_exception("png output is not enabled in your build of Mapnik");
|
2015-01-08 00:16:38 +01:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2015-01-09 01:31:14 +01:00
|
|
|
template<>
|
2015-01-22 03:31:02 +01:00
|
|
|
void png_saver_pal::operator()<image_rgba8> (image_rgba8 const& image) const
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
2015-01-09 01:31:14 +01:00
|
|
|
process_rgba8_png_pal(image, t_, stream_, pal_);
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
|
2015-01-09 01:31:14 +01:00
|
|
|
template<>
|
|
|
|
void png_saver_pal::operator()<image_view_rgba8> (image_view_rgba8 const& image) const
|
2015-01-08 00:16:38 +01:00
|
|
|
{
|
2015-01-09 01:31:14 +01:00
|
|
|
process_rgba8_png_pal(image, t_, stream_, pal_);
|
2015-01-08 00:16:38 +01:00
|
|
|
}
|
|
|
|
|
2015-01-09 01:31:14 +01:00
|
|
|
template<>
|
2015-01-22 03:31:02 +01:00
|
|
|
void png_saver::operator()<image_rgba8> (image_rgba8 const& image) const
|
2015-01-08 00:16:38 +01:00
|
|
|
{
|
2015-01-09 01:31:14 +01:00
|
|
|
process_rgba8_png(image, t_, stream_);
|
2015-01-08 00:16:38 +01:00
|
|
|
}
|
|
|
|
|
2015-01-09 01:31:14 +01:00
|
|
|
template<>
|
|
|
|
void png_saver::operator()<image_view_rgba8> (image_view_rgba8 const& image) const
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
2015-01-09 01:31:14 +01:00
|
|
|
process_rgba8_png(image, t_, stream_);
|
2015-01-07 21:44:31 +01:00
|
|
|
}
|
|
|
|
|
2015-01-08 22:55:51 +01:00
|
|
|
template <typename T>
|
|
|
|
void png_saver::operator() (T const& image) const
|
2015-01-07 21:44:31 +01:00
|
|
|
{
|
|
|
|
#if defined(HAVE_PNG)
|
2015-05-14 13:53:21 +02:00
|
|
|
throw image_writer_exception("Mapnik does not support grayscale images for png");
|
2015-01-09 01:31:14 +01:00
|
|
|
//png_options opts;
|
|
|
|
//handle_png_options(t_, opts);
|
|
|
|
//save_as_png(stream_, image, opts);
|
2015-01-07 21:44:31 +01:00
|
|
|
#else
|
2015-05-14 13:53:21 +02:00
|
|
|
throw image_writer_exception("png output is not enabled in your build of Mapnik");
|
2015-01-07 21:44:31 +01:00
|
|
|
#endif
|
|
|
|
}
|
2015-01-08 22:55:51 +01:00
|
|
|
|
|
|
|
template <typename T>
|
|
|
|
void png_saver_pal::operator() (T const& image) const
|
2015-01-08 00:16:38 +01:00
|
|
|
{
|
|
|
|
#if defined(HAVE_PNG)
|
2015-05-14 13:53:21 +02:00
|
|
|
throw image_writer_exception("Mapnik does not support grayscale images for png");
|
2015-01-09 01:31:14 +01:00
|
|
|
//png_options opts;
|
|
|
|
//handle_png_options(t_, opts);
|
|
|
|
//save_as_png(stream_, image, opts);
|
2015-01-08 00:16:38 +01:00
|
|
|
#else
|
2015-05-14 13:53:21 +02:00
|
|
|
throw image_writer_exception("png output is not enabled in your build of Mapnik");
|
2015-01-08 00:16:38 +01:00
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2015-02-04 22:41:58 +01:00
|
|
|
template void png_saver::operator()<image_gray8> (image_gray8 const& image) const;
|
|
|
|
template void png_saver::operator()<image_gray8s> (image_gray8s const& image) const;
|
|
|
|
template void png_saver::operator()<image_gray16> (image_gray16 const& image) const;
|
|
|
|
template void png_saver::operator()<image_gray16s> (image_gray16s const& image) const;
|
|
|
|
template void png_saver::operator()<image_gray32> (image_gray32 const& image) const;
|
|
|
|
template void png_saver::operator()<image_gray32s> (image_gray32s const& image) const;
|
|
|
|
template void png_saver::operator()<image_gray32f> (image_gray32f const& image) const;
|
|
|
|
template void png_saver::operator()<image_gray64> (image_gray64 const& image) const;
|
|
|
|
template void png_saver::operator()<image_gray64s> (image_gray64s const& image) const;
|
|
|
|
template void png_saver::operator()<image_gray64f> (image_gray64f const& image) const;
|
|
|
|
template void png_saver::operator()<image_view_gray8> (image_view_gray8 const& image) const;
|
|
|
|
template void png_saver::operator()<image_view_gray8s> (image_view_gray8s const& image) const;
|
|
|
|
template void png_saver::operator()<image_view_gray16> (image_view_gray16 const& image) const;
|
|
|
|
template void png_saver::operator()<image_view_gray16s> (image_view_gray16s const& image) const;
|
|
|
|
template void png_saver::operator()<image_view_gray32> (image_view_gray32 const& image) const;
|
|
|
|
template void png_saver::operator()<image_view_gray32s> (image_view_gray32s const& image) const;
|
|
|
|
template void png_saver::operator()<image_view_gray32f> (image_view_gray32f const& image) const;
|
|
|
|
template void png_saver::operator()<image_view_gray64> (image_view_gray64 const& image) const;
|
|
|
|
template void png_saver::operator()<image_view_gray64s> (image_view_gray64s const& image) const;
|
|
|
|
template void png_saver::operator()<image_view_gray64f> (image_view_gray64f const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_gray8> (image_gray8 const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_gray8s> (image_gray8s const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_gray16> (image_gray16 const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_gray16s> (image_gray16s const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_gray32> (image_gray32 const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_gray32s> (image_gray32s const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_gray32f> (image_gray32f const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_gray64> (image_gray64 const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_gray64s> (image_gray64s const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_gray64f> (image_gray64f const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_view_gray8> (image_view_gray8 const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_view_gray8s> (image_view_gray8s const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_view_gray16> (image_view_gray16 const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_view_gray16s> (image_view_gray16s const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_view_gray32> (image_view_gray32 const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_view_gray32s> (image_view_gray32s const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_view_gray32f> (image_view_gray32f const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_view_gray64> (image_view_gray64 const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_view_gray64s> (image_view_gray64s const& image) const;
|
|
|
|
template void png_saver_pal::operator()<image_view_gray64f> (image_view_gray64f const& image) const;
|
2015-01-08 22:55:51 +01:00
|
|
|
|
2015-01-08 00:16:38 +01:00
|
|
|
} // end ns
|