MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/artifact.h"
#include "MagickCore/attribute.h"
#include "MagickCore/cache.h"
#include "MagickCore/channel.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/composite.h"
#include "MagickCore/effect.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/geometry.h"
#include "MagickCore/image.h"
#include "MagickCore/layer.h"
#include "MagickCore/list.h"
#include "MagickCore/memory_.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/property.h"
#include "MagickCore/profile.h"
#include "MagickCore/resource_.h"
#include "MagickCore/resize.h"
#include "MagickCore/statistic.h"
#include "MagickCore/string_.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/transform.h"
Go to the source code of this file.
Macros | |
#define | DupDispose ((DisposeType)9) |
#define | DelDispose ((DisposeType)8) |
#define | DEBUG_OPT_FRAME 0 |
#define | MergeLayersTag "Merge/Layers" |
#define DelDispose ((DisposeType)8) |
#define DupDispose ((DisposeType)9) |
#define MergeLayersTag "Merge/Layers" |
|
static |
Definition at line 102 of file layer.c.
References _Image::alpha_trait, GetAuthenticPixels(), GetPixelChannels(), _RectangleInfo::height, magick_restrict, MagickFalse, OpaqueAlphaChannel, SetImageAlphaChannel(), SetPixelAlpha(), SyncAuthenticPixels(), TransparentAlpha, UndefinedPixelTrait, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by CoalesceImages(), DisposeImages(), OptimizeImageTransparency(), and OptimizeLayerFrames().
MagickExport Image * CoalesceImages | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 231 of file layer.c.
References _PixelInfo::alpha, _Image::alpha_trait, _PixelInfo::alpha_trait, _Image::background_color, BackgroundDispose, BlendPixelTrait, ClearBounds(), CloneImage(), CloneImageArtifacts(), CloneImageProfiles(), CloneImageProperties(), _Image::columns, CompositeImage(), CopyCompositeOp, DestroyImage(), DestroyImageList(), _Image::dispose, _Image::filename, GetFirstImageInList(), GetImageProperty(), GetMagickModule, GetNextImageInList(), GetPreviousImageInList(), _RectangleInfo::height, IsBoundsCleared(), IsEventLogging(), LocaleCompare(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _Image::next, NoneDispose, OverCompositeOp, _Image::page, _Image::previous, PreviousDispose, _Image::rows, SetImageBackgroundColor(), _ExceptionInfo::signature, _Image::signature, TraceEvent, TransparentAlpha, UndefinedPixelTrait, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
|
static |
Definition at line 615 of file layer.c.
References _Image::columns, ComparePixels(), _Image::filename, GetMagickModule, GetPixelChannels(), GetPixelInfo(), GetPixelInfoPixel(), GetVirtualPixels(), _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), MagickFalse, _Image::rows, TraceEvent, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by CompareImagesLayers(), OptimizeLayerFrames(), and RemoveDuplicateLayers().
MagickExport Image * CompareImagesLayers | ( | const Image * | image, |
const LayerMethod | method, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 769 of file layer.c.
References AcquireQuantumMemory(), _PixelInfo::alpha, _PixelInfo::alpha_trait, AppendImageToList(), _Image::background_color, BlendPixelTrait, CloneImage(), CompareAnyLayer, CompareClearLayer, CompareImagesBounds(), CompareOverlayLayer, CompositeImage(), CopyCompositeOp, CropImage(), DestroyImage(), DestroyImageList(), _Image::filename, GetFirstImageInList(), GetImageListLength(), GetMagickModule, GetNextImageInList(), _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _Image::page, RelinquishMagickMemory(), ResourceLimitError, SetImageBackgroundColor(), _ExceptionInfo::signature, _Image::signature, ThrowImageException, TraceEvent, TransparentAlpha, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
|
static |
Definition at line 546 of file layer.c.
References _PixelInfo::alpha, _PixelInfo::alpha_trait, CompareAnyLayer, CompareClearLayer, CompareOverlayLayer, IsFuzzyEquivalencePixelInfo(), MagickFalse, MagickTrue, OpaqueAlpha, QuantumRange, and UndefinedPixelTrait.
Referenced by CompareImagesBounds().
|
inlinestatic |
Definition at line 1795 of file layer.c.
References CompositeImage(), GetImageArtifact(), IsStringTrue(), MagickFalse, MagickTrue, _Image::page, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by CompositeLayers().
MagickExport void CompositeLayers | ( | Image * | destination, |
const CompositeOperator | compose, | ||
Image * | source, | ||
const ssize_t | x_offset, | ||
const ssize_t | y_offset, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1810 of file layer.c.
References _PixelInfo::alpha_trait, AppendImageToList(), _Image::background_color, BlendPixelTrait, CloneImage(), CompositeCanvas(), _Image::delay, DestroyImage(), _Image::filename, GetLastImageInList(), GetMagickModule, GetNextImageInList(), IsEventLogging(), _Image::iterations, LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, _Image::next, _ExceptionInfo::signature, _Image::signature, and TraceEvent.
MagickExport Image * DisposeImages | ( | const Image * | images, |
ExceptionInfo * | exception | ||
) |
Definition at line 398 of file layer.c.
References _PixelInfo::alpha, _Image::alpha_trait, _PixelInfo::alpha_trait, AppendImageToList(), _Image::background_color, BackgroundDispose, BlendPixelTrait, ClearBounds(), CloneImage(), CloneImageArtifacts(), CloneImageProfiles(), CloneImageProperties(), _Image::columns, CompositeImage(), CopyCompositeOp, DestroyImage(), DestroyImageList(), _Image::dispose, _Image::filename, GetFirstImageInList(), GetMagickModule, GetNextImageInList(), _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, NewImageList(), NoneDispose, OverCompositeOp, _Image::page, PreviousDispose, _Image::rows, SetImageBackgroundColor(), _ExceptionInfo::signature, _Image::signature, TraceEvent, TransparentAlpha, UndefinedPixelTrait, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
|
static |
Definition at line 167 of file layer.c.
References GetPixelAlpha(), GetPixelChannels(), GetVirtualPixels(), _RectangleInfo::height, MagickFalse, MagickTrue, QuantumRange, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by CoalesceImages(), and OptimizeLayerFrames().
MagickExport Image * MergeImageLayers | ( | Image * | image, |
const LayerMethod | method, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1940 of file layer.c.
References _PixelInfo::alpha_trait, _Image::background_color, BlendPixelTrait, CloneImage(), _Image::columns, _Image::compose, CompositeImage(), _Image::dispose, _Image::filename, FlattenLayer, GetImageListLength(), GetMagickModule, GetNextImageInList(), _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, MergeLayer, MergeLayersTag, MosaicLayer, _Image::page, _Image::rows, SetImageBackgroundColor(), SetImageProgress(), _ExceptionInfo::signature, _Image::signature, TraceEvent, TrimBoundsLayer, UndefinedDispose, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by VignetteImage().
MagickExport Image * OptimizeImageLayers | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 1422 of file layer.c.
References OptimizeImageLayer, and OptimizeLayerFrames().
MagickExport void OptimizeImageTransparency | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 1492 of file layer.c.
References _PixelInfo::alpha, _Image::alpha_trait, _PixelInfo::alpha_trait, _Image::background_color, BackgroundDispose, BlendPixelTrait, ChangeMaskCompositeOp, ClearBounds(), CloneImage(), _Image::columns, CompositeImage(), CopyCompositeOp, DestroyImage(), _Image::dispose, _Image::filename, GetFirstImageInList(), GetMagickModule, GetNextImageInList(), _RectangleInfo::height, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, NoneDispose, OverCompositeOp, _Image::page, PreviousDispose, _Image::rows, SetImageBackgroundColor(), _ExceptionInfo::signature, _Image::signature, TraceEvent, TransparentAlpha, UndefinedPixelTrait, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
|
static |
Definition at line 942 of file layer.c.
References AcquireExceptionInfo(), AcquireQuantumMemory(), _PixelInfo::alpha, _PixelInfo::alpha_trait, AppendImageToList(), _Image::background_color, BackgroundDispose, BlendPixelTrait, ClearBounds(), CloneImage(), _Image::columns, CommandOptionToMnemonic(), CompareAnyLayer, CompareClearLayer, CompareImagesBounds(), CompareOverlayLayer, CropImage(), _Image::delay, DelDispose, DestroyExceptionInfo(), DestroyImage(), DestroyImageList(), _Image::dispose, DupDispose, _Image::filename, FormatLocaleFile(), GetFirstImageInList(), GetImageListLength(), GetMagickModule, GetNextImageInList(), _RectangleInfo::height, IsBoundsCleared(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickDisposeOptions, MagickFalse, MagickTrue, NewImageList(), NoneDispose, OptimizeImageLayer, OptimizeLayer, OptimizePlusLayer, OptionError, _Image::page, PerceptibleReciprocal(), _Image::previous, PreviousDispose, ReferenceImage(), RelinquishMagickMemory(), ResourceLimitError, _Image::rows, SetImageBackgroundColor(), _ExceptionInfo::signature, _Image::signature, ThrowImageException, _Image::ticks_per_second, TraceEvent, TransparentAlpha, _RectangleInfo::width, _RectangleInfo::x, and _RectangleInfo::y.
Referenced by OptimizeImageLayers(), and OptimizePlusImageLayers().
MagickExport Image * OptimizePlusImageLayers | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 1455 of file layer.c.
References OptimizeLayerFrames(), and OptimizePlusLayer.
MagickExport void RemoveDuplicateLayers | ( | Image ** | images, |
ExceptionInfo * | exception | ||
) |
Definition at line 1620 of file layer.c.
References _Image::columns, CompareAnyLayer, CompareImagesBounds(), _Image::delay, DeleteImageFromList(), GetFirstImageInList(), GetMagickModule, GetNextImageInList(), IsEventLogging(), _Image::iterations, LogMagickEvent(), MagickCoreSignature, MagickFalse, _Image::page, PerceptibleReciprocal(), _Image::rows, _ExceptionInfo::signature, _Image::ticks_per_second, TraceEvent, _RectangleInfo::x, and _RectangleInfo::y.
MagickExport void RemoveZeroDelayLayers | ( | Image ** | images, |
ExceptionInfo * | exception | ||
) |
Definition at line 1705 of file layer.c.
References _Image::delay, DeleteImageFromList(), _Image::filename, GetFirstImageInList(), GetMagickModule, GetNextImageInList(), IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, OptionWarning, _ExceptionInfo::signature, ThrowMagickException(), and TraceEvent.