Commit 6713b18a authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Temporarily disable static tests on Magick::Quantum type size.

	* mln/io/magick/load.hh,
	* mln/io/magick/save.hh: Here.
parent 4515a1dc
2010-09-15 Guillaume Lazzara <z@lrde.epita.fr>
Temporarily disable static tests on Magick::Quantum type size.
* mln/io/magick/load.hh,
* mln/io/magick/save.hh: Here.
2010-08-24 Guillaume Lazzara <z@lrde.epita.fr>
 
* mln/value/int_s.hh: Fix warnings.
......@@ -35,6 +35,8 @@
/// <em>before</em> using any of these functions, as advised by the
/// GraphicsMagick documentation
/// (http://www.graphicsmagick.org/Magick++/Image.html).
///
/// \fixme: re-enable quantum size check
# include <cstdlib>
......@@ -141,7 +143,7 @@ namespace mln
trace::entering("mln::io::magick::load");
// Ensure a Magick++'s Quantum is an 8-bit value.
mln::metal::equal<Magick::Quantum, unsigned char>::check();
//mln::metal::equal<Magick::Quantum, unsigned char>::check();
I& ima = exact(ima_);
......
......@@ -35,6 +35,8 @@
/// <em>before</em> using any of these functions, as advised by the
/// GraphicsMagick documentation
/// (http://www.graphicsmagick.org/Magick++/Image.html).
///
/// \fixme: re-enable quantum size check
# include <cstdlib>
......@@ -94,7 +96,7 @@ namespace mln
Magick::Color get_color(const value::int_u8& value)
{
// Ensure a Magick++'s Quantum is an 8-bit value.
mln::metal::equal<Magick::Quantum, unsigned char>::check();
//mln::metal::equal<Magick::Quantum, unsigned char>::check();
return Magick::Color(value, value, value);
}
......@@ -102,7 +104,7 @@ namespace mln
Magick::Color get_color(const value::rgb8& value)
{
// Ensure a Magick++'s Quantum is an 8-bit value.
mln::metal::equal<Magick::Quantum, unsigned char>::check();
//mln::metal::equal<Magick::Quantum, unsigned char>::check();
return Magick::Color(value.red(), value.green(), value.blue());
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment