if (p == (const ColorInfo *) NULL)
return(MagickFalse);
color->colorspace=sRGBColorspace;
- color->alpha_trait=p->color.alpha != OpaqueAlpha ? MagickTrue : MagickFalse;
+ color->alpha_trait=p->color.alpha != OpaqueAlpha ? BlendPixelTrait :
+ UndefinedPixelTrait;
color->red=(double) p->color.red;
color->green=(double) p->color.green;
color->blue=(double) p->color.blue;
}
for (x=0; x < (ssize_t) image->columns; x++)
{
- PixelTrait
- traits;
-
register ssize_t
i;
double
pixel;
- traits=GetPixelChannelTraits(image,i);
+ PixelTrait
+ traits;
+
+ traits=GetPixelChannelTraits(image,(PixelChannel) i);
if (traits == UndefinedPixelTrait)
continue;
pixel=(double) p[i];
/* #undef AUTOTRACE_DELEGATE */
/* Define if coders and filters are to be built as modules. */
-#ifndef MAGICKCORE_BUILD_MODULES
-#define MAGICKCORE_BUILD_MODULES 1
-#endif
+/* #undef BUILD_MODULES */
/* Define if you have the bzip2 library */
#ifndef MAGICKCORE_BZLIB_DELEGATE
#endif
/* Define if you have JBIG library */
-#ifndef MAGICKCORE_JBIG_DELEGATE
-#define MAGICKCORE_JBIG_DELEGATE 1
-#endif
+/* #undef JBIG_DELEGATE */
/* Define if you have JPEG version 2 "Jasper" library */
#ifndef MAGICKCORE_JP2_DELEGATE
#endif
/* Define if you have LQR library */
-#ifndef MAGICKCORE_LQR_DELEGATE
-#define MAGICKCORE_LQR_DELEGATE 1
-#endif
+/* #undef LQR_DELEGATE */
/* Define if using libltdl to support dynamically loadable modules */
#ifndef MAGICKCORE_LTDL_DELEGATE
/* Define to the system default library search path. */
#ifndef MAGICKCORE_LT_DLSEARCH_PATH
-#define MAGICKCORE_LT_DLSEARCH_PATH "/lib64:/usr/lib64:/lib:/usr/lib:/usr/lib64/atlas:/usr/lib64/freetype-freeworld:/usr/lib64/llvm:/usr/local/lib:/usr/lib64/mysql:/usr/lib64/nvidia:/usr/lib64/qt-3.3/lib:/usr/lib64/tracker-0.14:/usr/lib/wine/:/usr/lib64/wine/:/usr/lib64/xulrunner-2"
+#define MAGICKCORE_LT_DLSEARCH_PATH "/lib64:/usr/lib64:/lib:/usr/lib:/usr/lib64/atlas:/usr/lib64/freetype-freeworld:/usr/lib/llvm:/usr/lib64/llvm:/usr/local/lib:/usr/lib64/mysql:/usr/lib64/nvidia:/usr/lib64/qt-3.3/lib:/usr/lib64/tcl8.5/tclx8.4:/usr/lib64/tcl8.5:/usr/lib64/tracker-0.14:/usr/lib/wine/:/usr/lib64/wine/:/usr/lib64/xulrunner-2"
#endif
/* The archive extension */
#endif
/* Define if you have WEBP library */
-#ifndef MAGICKCORE_WEBP_DELEGATE
-#define MAGICKCORE_WEBP_DELEGATE 1
-#endif
+/* #undef WEBP_DELEGATE */
/* Define to use the Windows GDI32 library */
/* #undef WINGDI32_DELEGATE */
/* #undef WITH_DMALLOC */
/* Define if you have wmflite library */
-#ifndef MAGICKCORE_WMFLITE_DELEGATE
-#define MAGICKCORE_WMFLITE_DELEGATE 1
-#endif
+/* #undef WMFLITE_DELEGATE */
/* Define if you have wmf library */
/* #undef WMF_DELEGATE */
return(y);
}
-static inline void CatromWeights(const double x,double **weights)
+static inline void CatromWeights(const double x,double (*weights)[4])
{
double
alpha,
(*weights)[2]=x-(*weights)[3]-gamma;
}
-static inline void SplineWeights(const double x,double **weights)
+static inline void SplineWeights(const double x,double (*weights)[4])
{
double
alpha,
MagickBooleanType
associate_alpha;
- associate_alpha=image->alpha_trait;
+ associate_alpha=image->alpha_trait == BlendPixelTrait ? MagickTrue :
+ MagickFalse;
if (cube_info->quantize_info->colorspace == TransparentColorspace)
associate_alpha=MagickFalse;
if ((cube_info->quantize_info->number_colors == 2) &&
*/
#define MagickPackageName "ImageMagick"
#define MagickCopyright "Copyright (C) 1999-2012 ImageMagick Studio LLC"
-#define MagickSVNRevision "Unversioned"
+#define MagickSVNRevision "9117:9136M"
#define MagickLibVersion 0x700
#define MagickLibVersionText "7.0.0"
#define MagickLibVersionNumber 7,0,0
x,
y;
- MagickBooleanType
- matte;
+ PixelTrait
+ alpha_trait;
Pixmap
annotate_pixmap;
Composite text onto the image.
*/
(void) XParseGeometry(annotate_info->geometry,&x,&y,&width,&height);
- matte=image->alpha_trait;
+ alpha_trait=image->alpha_trait;
(void) CompositeImage(image,annotate_image,
- annotate_image->alpha_trait == BlendPixelTrait ? OverCompositeOp : CopyCompositeOp,
- MagickTrue,(ssize_t) x,(ssize_t) y,exception);
- image->alpha_trait=matte;
+ annotate_image->alpha_trait == BlendPixelTrait ? OverCompositeOp :
+ CopyCompositeOp,MagickTrue,(ssize_t) x,(ssize_t) y,exception);
+ image->alpha_trait=alpha_trait;
annotate_image=DestroyImage(annotate_image);
return(MagickTrue);
}
x,
y;
- MagickBooleanType
- matte;
+ PixelTrait
+ alpha_trait;
Pixmap
draw_pixmap;
(ssize_t) x,(ssize_t) y,exception);
else
{
- matte=image->alpha_trait;
+ alpha_trait=image->alpha_trait;
(void) CompositeImage(image,draw_image,OverCompositeOp,MagickTrue,
(ssize_t) x,(ssize_t) y,exception);
- image->alpha_trait=matte;
+ image->alpha_trait=alpha_trait;
}
draw_image=DestroyImage(draw_image);
return(MagickTrue);
GetPixelInfo(wand->image,&pixel);
pixel.colorspace=sRGBColorspace;
- pixel.alpha_trait=packet->alpha != OpaqueAlpha ? MagickTrue : MagickFalse;
+ pixel.alpha_trait=packet->alpha != OpaqueAlpha ? BlendPixelTrait :
+ UndefinedPixelTrait;
pixel.red=(double) packet->red;
pixel.green=(double) packet->green;
pixel.blue=(double) packet->blue;
{
if (CurrentContext->fill.alpha != OpaqueAlpha)
pixel.alpha_trait=CurrentContext->fill.alpha != OpaqueAlpha ?
- MagickTrue : MagickFalse;
+ BlendPixelTrait : UndefinedPixelTrait;
pixel=CurrentContext->fill;
GetColorTuple(&pixel,MagickTrue,value);
(void) SetXMLTreeContent(child,value);
{
if (CurrentContext->stroke.alpha != OpaqueAlpha)
pixel.alpha_trait=CurrentContext->stroke.alpha != OpaqueAlpha ?
- MagickTrue : MagickFalse;
+ BlendPixelTrait : UndefinedPixelTrait;
pixel=CurrentContext->stroke;
GetColorTuple(&pixel,MagickTrue,value);
(void) SetXMLTreeContent(child,value);
{
if (CurrentContext->undercolor.alpha != OpaqueAlpha)
pixel.alpha_trait=CurrentContext->undercolor.alpha != OpaqueAlpha ?
- MagickTrue : MagickFalse;
+ BlendPixelTrait : UndefinedPixelTrait;
pixel=CurrentContext->undercolor;
GetColorTuple(&pixel,MagickTrue,value);
(void) SetXMLTreeContent(child,value);
assert(wand->signature == WandSignature);
if( IfMagickTrue(wand->debug) )
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
-
if (wand->images == (Image *) NULL)
ThrowWandException(WandError,"ContainsNoImages",wand->name);
- if( IfMagickFalse(wand->images->alpha_trait) && IsMagickTrue(matte))
+ if ((wand->images->alpha_trait != BlendPixelTrait) && IsMagickTrue(matte))
(void) SetImageAlpha(wand->images,OpaqueAlpha,wand->exception);
- wand->images->alpha_trait=matte;
+ wand->images->alpha_trait=matte != MagickFalse ? BlendPixelTrait :
+ UndefinedPixelTrait;
return(MagickTrue);
}
\f
wand->pixel.blue=(double) GetPixelBlue(image,pixel);
wand->pixel.black=(double) GetPixelBlack(image,pixel);
wand->pixel.alpha=(double) GetPixelAlpha(image,pixel);
- wand->pixel.alpha_trait=GetPixelAlpha(image,pixel) != OpaqueAlpha ? MagickTrue :
- MagickFalse;
+ wand->pixel.alpha_trait=GetPixelAlpha(image,pixel) != OpaqueAlpha ?
+ BlendPixelTrait : UndefinedPixelTrait;
}
\f
/*
image->rows=(size_t) MagickAbsoluteValue(bmp_info.height);
image->depth=bmp_info.bits_per_pixel <= 8 ? bmp_info.bits_per_pixel : 8;
if ((bmp_info.bits_per_pixel == 16) || (bmp_info.bits_per_pixel == 32))
- image->alpha_trait=bmp_info.alpha_mask != 0 ? MagickTrue : MagickFalse;
+ image->alpha_trait=bmp_info.alpha_mask != 0 ? BlendPixelTrait :
+ UndefinedPixelTrait;
if ((bmp_info.number_colors != 0) || (bmp_info.bits_per_pixel < 16))
{
size_t
MagickBooleanType
status,
cubemap = MagickFalse,
- volume = MagickFalse,
- matte;
-
+ volume = MagickFalse;
+
CompressionType
compression;
DDSDecoder
*decoder;
+ PixelTrait
+ alpha_trait;
+
size_t
n, num_images;
compression = NoCompression;
if (dds_info.pixelformat.flags & DDPF_ALPHAPIXELS)
{
- matte = MagickTrue;
+ alpha_trait = BlendPixelTrait;
decoder = ReadUncompressedRGBA;
}
else
{
- matte = MagickTrue;
+ alpha_trait = UndefinedPixelTrait;
decoder = ReadUncompressedRGB;
}
}
{
case FOURCC_DXT1:
{
- matte = MagickFalse;
+ alpha_trait = UndefinedPixelTrait;
compression = DXT1Compression;
decoder = ReadDXT1;
break;
case FOURCC_DXT3:
{
- matte = MagickTrue;
+ alpha_trait = BlendPixelTrait;
compression = DXT3Compression;
decoder = ReadDXT3;
break;
case FOURCC_DXT5:
{
- matte = MagickTrue;
+ alpha_trait = BlendPixelTrait;
compression = DXT5Compression;
decoder = ReadDXT5;
break;
image=SyncNextImageInList(image);
}
- image->alpha_trait = matte;
+ image->alpha_trait=alpha_trait;
image->compression = compression;
image->columns = dds_info.width;
image->rows = dds_info.height;
dib_info.green_mask=ReadBlobLSBLong(image);
dib_info.blue_mask=ReadBlobLSBLong(image);
}
- image->alpha_trait=dib_info.bits_per_pixel == 32 ? MagickTrue : MagickFalse;
+ image->alpha_trait=dib_info.bits_per_pixel == 32 ? BlendPixelTrait :
+ UndefinedPixelTrait;
image->columns=(size_t) MagickAbsoluteValue(dib_info.width);
image->rows=(size_t) MagickAbsoluteValue(dib_info.height);
image->depth=8;
/* fixme: MAGICKCORE_QUANTUM_DEPTH ?*/
image->depth = 8UL; /* i only support that? */
- image->alpha_trait = MagickTrue;
+ image->alpha_trait = BlendPixelTrait;
/* is this useful? */
}
#if DEBUG
image->ticks_per_second=100;
image->dispose=(DisposeType) dispose;
image->iterations=iterations;
- image->alpha_trait=opacity >= 0 ? MagickTrue : MagickFalse;
+ image->alpha_trait=opacity >= 0 ? BlendPixelTrait : UndefinedPixelTrait;
delay=0;
dispose=0;
iterations=1;
/*
Convert JPEG 2000 pixels.
*/
- image->alpha_trait=number_components > 3 ? MagickTrue : MagickFalse;
+ image->alpha_trait=number_components > 3 ? BlendPixelTrait :
+ UndefinedPixelTrait;
maximum_component_depth=0;
for (i=0; i < (ssize_t) number_components; i++)
{
}
}
if (image->storage_class == DirectClass)
- image->alpha_trait=pcx_info.planes > 3 ? MagickTrue : MagickFalse;
+ image->alpha_trait=pcx_info.planes > 3 ? BlendPixelTrait :
+ UndefinedPixelTrait;
else
if ((pcx_info.version == 5) ||
((pcx_info.bits_per_pixel*pcx_info.planes) == 1))
ReadPixmap(pixmap);
tile_image->depth=1UL*pixmap.component_size;
tile_image->alpha_trait=pixmap.component_count == 4 ?
- MagickTrue : MagickFalse;
+ BlendPixelTrait : UndefinedPixelTrait;
tile_image->resolution.x=(double) pixmap.horizontal_resolution;
tile_image->resolution.y=(double) pixmap.vertical_resolution;
tile_image->units=PixelsPerInchResolution;
image->alpha_trait=(((int) ping_color_type == PNG_COLOR_TYPE_RGB_ALPHA) ||
((int) ping_color_type == PNG_COLOR_TYPE_GRAY_ALPHA) ||
(png_get_valid(ping,ping_info,PNG_INFO_tRNS))) ?
- MagickTrue : MagickFalse;
+ BlendPixelTrait : UndefinedPixelTrait;
for (y=0; y < (ssize_t) image->rows; y++)
{
" Converting grayscale pixels to pixel packets");
image->alpha_trait=ping_color_type == PNG_COLOR_TYPE_GRAY_ALPHA ?
- MagickTrue : MagickFalse;
+ BlendPixelTrait : UndefinedPixelTrait;
quantum_scanline=(Quantum *) AcquireQuantumMemory(image->columns,
- (image->alpha_trait ? 2 : 1)*sizeof(*quantum_scanline));
+ (image->alpha_trait == BlendPixelTrait? 2 : 1)*
+ sizeof(*quantum_scanline));
if (quantum_scanline == (Quantum *) NULL)
png_error(ping,"Memory allocation failed");
quantum_scanline=(Quantum *) RelinquishMagickMemory(quantum_scanline);
}
- image->alpha_trait=found_transparent_pixel;
+ image->alpha_trait=found_transparent_pixel ? BlendPixelTrait :
+ UndefinedPixelTrait;
if (logging != MagickFalse)
{
if (image->storage_class == PseudoClass)
{
- MagickBooleanType
- matte;
+ PixelTrait
+ alpha_trait;
- matte=image->alpha_trait;
+ alpha_trait=image->alpha_trait;
image->alpha_trait=UndefinedPixelTrait;
(void) SyncImage(image,exception);
- image->alpha_trait=matte;
+ image->alpha_trait=alpha_trait;
}
png_read_end(ping,end_info);
image->alpha_trait=(((int) ping_color_type == PNG_COLOR_TYPE_RGB_ALPHA) ||
((int) ping_color_type == PNG_COLOR_TYPE_GRAY_ALPHA) ||
(png_get_valid(ping,ping_info,PNG_INFO_tRNS))) ?
- MagickTrue : MagickFalse;
+ BlendPixelTrait : UndefinedPixelTrait;
/* Set more properties for identify to retrieve */
{
quantum_info = (QuantumInfo *) NULL;
number_colors=0;
image_colors=(int) image->colors;
- image_matte=image->alpha_trait;
+ image_matte=image->alpha_trait == BlendPixelTrait ? MagickTrue : MagickFalse;
mng_info->IsPalette=image->storage_class == PseudoClass &&
image_colors <= 256 && image->colormap != NULL;
if (image_matte != MagickFalse && image->alpha_trait != BlendPixelTrait)
{
/* Add an opaque matte channel */
- image->alpha_trait = MagickTrue;
+ image->alpha_trait = BlendPixelTrait;
(void) SetImageAlpha(image,OpaqueAlpha,exception);
if (logging != MagickFalse)
image=DestroyImageList(image);
return((Image *) NULL);
}
- image->alpha_trait=psd_info.channels >= 4 ? MagickTrue : MagickFalse;
+ image->alpha_trait=psd_info.channels >= 4 ? BlendPixelTrait :
+ UndefinedPixelTrait;
if (psd_info.mode == LabMode)
SetImageColorspace(image,LabColorspace,exception);
psd_info.color_channels=3;
{
psd_info.color_channels=4;
SetImageColorspace(image,CMYKColorspace,exception);
- image->alpha_trait=psd_info.channels >= 5 ? MagickTrue : MagickFalse;
+ image->alpha_trait=psd_info.channels >= 5 ? BlendPixelTrait :
+ UndefinedPixelTrait;
}
if ((psd_info.mode == BitmapMode) || (psd_info.mode == GrayscaleMode) ||
(psd_info.mode == DuotoneMode))
psd_info.color_channels=1;
if (AcquireImageColormap(image,256,exception) == MagickFalse)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
- image->alpha_trait=psd_info.channels >= 2 ? MagickTrue : MagickFalse;
+ image->alpha_trait=psd_info.channels >= 2 ? BlendPixelTrait :
+ UndefinedPixelTrait;
if (image->debug != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" Image colormap allocated");
MagickOffsetType
layer_offset;
- image->alpha_trait=psd_info.channels > psd_info.color_channels ? MagickTrue : MagickFalse;
-
+ image->alpha_trait=psd_info.channels > psd_info.color_channels ?
+ BlendPixelTrait : UndefinedPixelTrait;
+
if (image->debug != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
image->alpha_trait ? " image has matte" : " image has no matte");
/*
Initialize image structure.
*/
- image->alpha_trait=rla_info.number_matte_channels != 0 ? MagickTrue : MagickFalse;
+ image->alpha_trait=rla_info.number_matte_channels != 0 ? BlendPixelTrait :
+ UndefinedPixelTrait;
image->columns=1UL*rla_info.active_window.right-rla_info.active_window.left+1;
image->rows=1UL*rla_info.active_window.top-rla_info.active_window.bottom+1;
if (image_info->ping != MagickFalse)
image->columns=ReadBlobLSBShort(image);
image->rows=ReadBlobLSBShort(image);
flags=(MagickStatusType) ReadBlobByte(image);
- image->alpha_trait=flags & 0x04 ? MagickTrue : MagickFalse;
+ image->alpha_trait=flags & 0x04 ? BlendPixelTrait : UndefinedPixelTrait;
number_planes=1UL*ReadBlobByte(image);
bits_per_pixel=1UL*ReadBlobByte(image);
number_colormaps=1UL*ReadBlobByte(image);
/*
Initialize image structure.
*/
- image->alpha_trait=iris_info.depth == 4 ? MagickTrue : MagickFalse;
+ image->alpha_trait=iris_info.depth == 4 ? BlendPixelTrait :
+ UndefinedPixelTrait;
image->columns=iris_info.columns;
image->rows=iris_info.rows;
/*
default:
ThrowReaderException(CoderError,"ColormapTypeNotSupported");
}
- image->alpha_trait=sun_info.depth == 32 ? MagickTrue : MagickFalse;
+ image->alpha_trait=sun_info.depth == 32 ? BlendPixelTrait :
+ UndefinedPixelTrait;
image->columns=sun_info.width;
image->rows=sun_info.height;
if (image_info->ping != MagickFalse)
image->rows=tga_info.height;
alpha_bits=(tga_info.attributes & 0x0FU);
image->alpha_trait=(alpha_bits > 0) || (tga_info.bits_per_pixel == 32) ?
- MagickTrue : MagickFalse;
+ BlendPixelTrait : UndefinedPixelTrait;
if ((tga_info.image_type != TGAColormap) &&
(tga_info.image_type != TGARLEColormap))
image->depth=(size_t) ((tga_info.bits_per_pixel <= 8) ? 8 :
/*
Initialize image structure.
*/
- image->alpha_trait=viff_info.number_data_bands == 4 ? MagickTrue : MagickFalse;
- image->storage_class=
- (viff_info.number_data_bands < 3 ? PseudoClass : DirectClass);
+ image->alpha_trait=viff_info.number_data_bands == 4 ? BlendPixelTrait :
+ UndefinedPixelTrait;
+ image->storage_class=(viff_info.number_data_bands < 3 ? PseudoClass :
+ DirectClass);
image->columns=viff_info.rows;
image->rows=viff_info.columns;
if ((image_info->ping != MagickFalse) && (image_info->number_scenes != 0))
<name>ImageMagick</name>
<shortdesc xml:lang="en">ImageMagick: convert, edit, and compose images.</shortdesc>
<homepage rdf:resource="http://www.imagemagick.org/"/>
- <created>2012-08-27</created>
+ <created>2012-08-28</created>
<description xml:lang="en">
ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.
<release>
<Version>
<name>stable</name>
- <created>2012-08-27</created>
+ <created>2012-08-28</created>
<revision>7.0.0</revision>
<patch-level>-0</patch-level>
</Version>
<configure name="LIB_VERSION" value="0x700"/>
<configure name="LIB_VERSION_NUMBER" value="7,0,0,0"/>
<configure name="SVN_REVISION" value="9117:9136M" />
- <configure name="RELEASE_DATE" value="2012-08-27"/>
+ <configure name="RELEASE_DATE" value="2012-08-28"/>
<configure name="CONFIGURE" value="./configure "/>
<configure name="PREFIX" value="/usr/local"/>
<configure name="EXEC-PREFIX" value="/usr/local"/>