Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
olena
Commits
6713b18a
Commit
6713b18a
authored
Sep 15, 2010
by
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
milena/ChangeLog
View file @
6713b18a
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.
milena/mln/io/magick/load.hh
View file @
6713b18a
...
...
@@ -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_
);
...
...
milena/mln/io/magick/save.hh
View file @
6713b18a
...
...
@@ -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
());
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment