green,
red;
+ red=0.0;
+ green=0.0;
+ blue=0.0;
Contrast(sign,&red,&green,&blue);
image->colormap[i].red=(MagickRealType) red;
image->colormap[i].green=(MagickRealType) green;
#define MagickReleaseDate "2014-01-18"
#define MagickChangeDate "20120427"
#define MagickAuthoritativeURL "http://www.imagemagick.org"
-#define MagickFeatures "DPC HDRI OpenMP"
+#define MagickFeatures "DPC HDRI"
#define MagickDelegates "bzlib djvu mpeg fftw fpx fontconfig freetype jng jpeg lcms lzma openexr pango png ps tiff webp x xml zlib"
#define MagickHomeURL "file:///usr/local/share/doc/ImageMagick-7/index.html"
#if (MAGICKCORE_QUANTUM_DEPTH == 8)
(void) FormatLocaleFile(stderr, "Geometry = 0x%04X : %lg x %lg %+lg %+lg\n", \
flags, info.rho, info.sigma, info.xi, info.psi )
\f
-/*
- Constant declaration.
-*/
-const char
- BackgroundColor[] = "#ffffff", /* white */
- BorderColor[] = "#dfdfdf", /* gray */
- MatteColor[] = "#bdbdbd"; /* gray */
-\f
/*
** Function to report on the progress of image operations
*/
# defaults for LIBS & INC & CCFLAGS params that we later pass to Writemakefile
my $INC_magick = '-I../ -I.. -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/freetype2 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/libxml2 -I"' . $Config{'usrinc'} . '/ImageMagick"';
my $LIBS_magick = '-L../MagickCore/.libs -lMagickCore-7.Q16HDRI -lperl -lm';
-my $CCFLAGS_magick = "$Config{'ccflags'} -pthread -I/usr/include/OpenEXR -I/usr/include/libdrm -I/usr/include/freetype2 -fopenmp -g -O2 -Wall -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16";
+my $CCFLAGS_magick = "$Config{'ccflags'} -pthread -I/usr/include/OpenEXR -I/usr/include/libdrm -I/usr/include/freetype2 -g -O2 -Wall -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16";
my $LDFLAGS_magick = "-L../MagickCore/.libs -lMagickCore-7.Q16HDRI $Config{'ldflags'} ";
my $LDDLFLAGS_magick = "-L../MagickCore/.libs -lMagickCore-7.Q16HDRI $Config{'lddlflags'} ";
'INC' => $INC_magick,
# C compiler
- #'CC' => 'gcc -std=gnu99 -std=gnu99',
+ #'CC' => '/usr/libexec/clang-analyzer/scan-build/ccc-analyzer -std=gnu99 -std=gnu99',
# C pre-processor flags (e.g. -I & -D options)
# 'CPPFLAGS' => "$Config{'cppflags'} -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/freetype2 -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/libxml2",
'CCFLAGS' => $CCFLAGS_magick,
# Linker
- #'LD' => $Config{'ld'} == $Config{'cc'} ? 'gcc -std=gnu99 -std=gnu99' : $Config{'ld'},
+ #'LD' => $Config{'ld'} == $Config{'cc'} ? '/usr/libexec/clang-analyzer/scan-build/ccc-analyzer -std=gnu99 -std=gnu99' : $Config{'ld'},
# Linker flags for building an executable
'LDFLAGS' => $LDFLAGS_magick,
# 'OPTIMIZE' => '',
# Use same compiler as ImageMagick
- 'PERLMAINCC' => 'g++ -fopenmp',
+ 'PERLMAINCC' => '/usr/libexec/clang-analyzer/scan-build/c++-analyzer ',
'AR' => 'ar',
- 'LD' => 'g++',
+ 'LD' => '/usr/libexec/clang-analyzer/scan-build/c++-analyzer',
# Set Perl installation prefix to ImageMagick installation prefix
# 'PREFIX' => '/usr/local',
if test -x PerlMagick -a -f Makefile.aperl ; then
# Static build test incantation
- ${MAKE} -f Makefile.aperl CC='gcc -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
+ ${MAKE} -f Makefile.aperl CC='/usr/libexec/clang-analyzer/scan-build/ccc-analyzer -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
elif test -f Makefile -a -f Magick.o; then
# Shared build test incantation
- ${MAKE} CC='gcc -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
+ ${MAKE} CC='/usr/libexec/clang-analyzer/scan-build/ccc-analyzer -std=gnu99 -std=gnu99' TEST_VERBOSE=1 test
else
echo 'PerlMagick has not been built!'
exit 1
const char
*property;
+ property=(const char *) NULL;
ResetImagePropertyIterator(image);
-
while (property != (const char *) NULL)
{
- GetImageProperty(image,property,exception);
+ (void) GetImageProperty(image,property,exception);
if (LocaleNCompare(property,"png:swap-bytes",14) != 0)
png_set_swap(ping);