MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/accelerate-private.h"
#include "MagickCore/artifact.h"
#include "MagickCore/blob.h"
#include "MagickCore/cache.h"
#include "MagickCore/cache-view.h"
#include "MagickCore/channel.h"
#include "MagickCore/color.h"
#include "MagickCore/color-private.h"
#include "MagickCore/distort.h"
#include "MagickCore/draw.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/gem.h"
#include "MagickCore/image.h"
#include "MagickCore/image-private.h"
#include "MagickCore/list.h"
#include "MagickCore/memory_.h"
#include "MagickCore/memory-private.h"
#include "MagickCore/magick.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/property.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
#include "MagickCore/nt-base-private.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel.h"
#include "MagickCore/quantum-private.h"
#include "MagickCore/resample.h"
#include "MagickCore/resample-private.h"
#include "MagickCore/resize.h"
#include "MagickCore/resize-private.h"
#include "MagickCore/resource_.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/thread-private.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
#include "MagickCore/version.h"
Go to the source code of this file.
Data Structures | |
struct | _ResizeFilter |
struct | _ContributionInfo |
Macros | |
#define | InterpolativeResizeImageTag "Resize/Image" |
#define | caseA(N, A, B, C, D) |
#define | caseB(N, A, B, C, D, E, F, G, H) |
#define | Rotated(p) p[2], p[4], p[7], p[1], p[6], p[0], p[3], p[5] |
#define | Corner(A, B, C, D) |
#define | Line(A, B, C, D) |
#define | WeightVar(M, N) |
#define | HelperCond(a, b, c, d, e, f, g) |
#define | MagnifyImageTag "Magnify/Image" |
#define | ResampleImageTag "Resample/Image" |
#define | ResizeImageTag "Resize/Image" |
#define | SampleImageTag "Sample/Image" |
#define | ScaleImageTag "Scale/Image" |
#define | SampleFactor 5 |
Typedefs | |
typedef struct _ContributionInfo | ContributionInfo |
Functions | |
static double | I0 (double x) |
static double | BesselOrderOne (double) |
static double | Sinc (const double, const ResizeFilter *) |
static double | SincFast (const double, const ResizeFilter *) |
static double | Blackman (const double x, const ResizeFilter *magick_unused(resize_filter)) |
static double | Bohman (const double x, const ResizeFilter *magick_unused(resize_filter)) |
static double | Box (const double magick_unused(x), const ResizeFilter *magick_unused(resize_filter)) |
static double | Cosine (const double x, const ResizeFilter *magick_unused(resize_filter)) |
static double | CubicBC (const double x, const ResizeFilter *resize_filter) |
static double | CubicSpline (const double x, const ResizeFilter *resize_filter) |
static double | Gaussian (const double x, const ResizeFilter *resize_filter) |
static double | Hann (const double x, const ResizeFilter *magick_unused(resize_filter)) |
static double | Hamming (const double x, const ResizeFilter *magick_unused(resize_filter)) |
static double | Jinc (const double x, const ResizeFilter *magick_unused(resize_filter)) |
static double | Kaiser (const double x, const ResizeFilter *resize_filter) |
static double | Lagrange (const double x, const ResizeFilter *resize_filter) |
static double | Quadratic (const double x, const ResizeFilter *magick_unused(resize_filter)) |
static double | Sinc (const double x, const ResizeFilter *magick_unused(resize_filter)) |
static double | SincFast (const double x, const ResizeFilter *magick_unused(resize_filter)) |
static double | Triangle (const double x, const ResizeFilter *magick_unused(resize_filter)) |
static double | Welch (const double x, const ResizeFilter *magick_unused(resize_filter)) |
MagickPrivate ResizeFilter * | AcquireResizeFilter (const Image *image, const FilterType filter, const MagickBooleanType cylindrical, ExceptionInfo *exception) |
MagickExport Image * | AdaptiveResizeImage (const Image *image, const size_t columns, const size_t rows, ExceptionInfo *exception) |
static double | J1 (double x) |
static double | P1 (double x) |
static double | Q1 (double x) |
MagickPrivate ResizeFilter * | DestroyResizeFilter (ResizeFilter *resize_filter) |
MagickPrivate double * | GetResizeFilterCoefficient (const ResizeFilter *resize_filter) |
MagickPrivate double | GetResizeFilterBlur (const ResizeFilter *resize_filter) |
MagickPrivate double | GetResizeFilterScale (const ResizeFilter *resize_filter) |
MagickPrivate double | GetResizeFilterWindowSupport (const ResizeFilter *resize_filter) |
MagickPrivate ResizeWeightingFunctionType | GetResizeFilterWeightingType (const ResizeFilter *resize_filter) |
MagickPrivate ResizeWeightingFunctionType | GetResizeFilterWindowWeightingType (const ResizeFilter *resize_filter) |
MagickPrivate double | GetResizeFilterSupport (const ResizeFilter *resize_filter) |
MagickPrivate double | GetResizeFilterWeight (const ResizeFilter *resize_filter, const double x) |
MagickExport Image * | InterpolativeResizeImage (const Image *image, const size_t columns, const size_t rows, const PixelInterpolateMethod method, ExceptionInfo *exception) |
MagickExport Image * | LiquidRescaleImage (const Image *image, const size_t magick_unused(columns), const size_t magick_unused(rows), const double magick_unused(delta_x), const double magick_unused(rigidity), ExceptionInfo *exception) |
static void | CopyPixels (const Quantum *source, const ssize_t source_offset, Quantum *destination, const ssize_t destination_offset, const size_t channels) |
static void | MixPixels (const Quantum *source, const ssize_t *source_offset, const size_t source_size, Quantum *destination, const ssize_t destination_offset, const size_t channels) |
static void | Mix2Pixels (const Quantum *source, const ssize_t source_offset1, const ssize_t source_offset2, Quantum *destination, const ssize_t destination_offset, const size_t channels) |
static int | PixelsEqual (const Quantum *source1, ssize_t offset1, const Quantum *source2, ssize_t offset2, const size_t channels) |
static void | Eagle2X (const Image *source, const Quantum *pixels, Quantum *result, const size_t channels) |
static void | Hq2XHelper (const unsigned int rule, const Quantum *source, Quantum *destination, const ssize_t destination_offset, const size_t channels, const ssize_t e, const ssize_t a, const ssize_t b, const ssize_t d, const ssize_t f, const ssize_t h) |
static unsigned int | Hq2XPatternToNumber (const int *pattern) |
static void | Hq2X (const Image *source, const Quantum *pixels, Quantum *result, const size_t channels) |
static void | Fish2X (const Image *source, const Quantum *pixels, Quantum *result, const size_t channels) |
static void | Xbr2X (const Image *magick_unused(source), const Quantum *pixels, Quantum *result, const size_t channels) |
static void | Scale2X (const Image *magick_unused(source), const Quantum *pixels, Quantum *result, const size_t channels) |
static void | Epbx2X (const Image *magick_unused(source), const Quantum *pixels, Quantum *result, const size_t channels) |
static void | Eagle3X (const Image *magick_unused(source), const Quantum *pixels, Quantum *result, const size_t channels) |
static void | Eagle3XB (const Image *magick_unused(source), const Quantum *pixels, Quantum *result, const size_t channels) |
static void | Scale3X (const Image *magick_unused(source), const Quantum *pixels, Quantum *result, const size_t channels) |
MagickExport Image * | MagnifyImage (const Image *image, ExceptionInfo *exception) |
MagickExport Image * | MinifyImage (const Image *image, ExceptionInfo *exception) |
MagickExport Image * | ResampleImage (const Image *image, const double x_resolution, const double y_resolution, const FilterType filter, ExceptionInfo *exception) |
static ContributionInfo ** | DestroyContributionTLS (ContributionInfo **contribution) |
static ContributionInfo ** | AcquireContributionTLS (const size_t count) |
static MagickBooleanType | HorizontalFilter (const ResizeFilter *magick_restrict resize_filter, const Image *magick_restrict image, Image *magick_restrict resize_image, const double x_factor, const MagickSizeType span, MagickOffsetType *magick_restrict progress, ExceptionInfo *exception) |
static MagickBooleanType | VerticalFilter (const ResizeFilter *magick_restrict resize_filter, const Image *magick_restrict image, Image *magick_restrict resize_image, const double y_factor, const MagickSizeType span, MagickOffsetType *magick_restrict progress, ExceptionInfo *exception) |
MagickExport Image * | ResizeImage (const Image *image, const size_t columns, const size_t rows, const FilterType filter, ExceptionInfo *exception) |
MagickExport Image * | SampleImage (const Image *image, const size_t columns, const size_t rows, ExceptionInfo *exception) |
MagickExport Image * | ScaleImage (const Image *image, const size_t columns, const size_t rows, ExceptionInfo *exception) |
MagickExport Image * | ThumbnailImage (const Image *image, const size_t columns, const size_t rows, ExceptionInfo *exception) |
#define caseA | ( | N, | |
A, | |||
B, | |||
C, | |||
D | |||
) |
#define caseB | ( | N, | |
A, | |||
B, | |||
C, | |||
D, | |||
E, | |||
F, | |||
G, | |||
H | |||
) |
#define Corner | ( | A, | |
B, | |||
C, | |||
D | |||
) |
#define HelperCond | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g | |||
) |
#define InterpolativeResizeImageTag "Resize/Image" |
#define Line | ( | A, | |
B, | |||
C, | |||
D | |||
) |
#define MagnifyImageTag "Magnify/Image" |
#define ResampleImageTag "Resample/Image" |
#define ResizeImageTag "Resize/Image" |
#define Rotated | ( | p | ) | p[2], p[4], p[7], p[1], p[6], p[0], p[3], p[5] |
#define SampleFactor 5 |
#define SampleImageTag "Sample/Image" |
#define ScaleImageTag "Scale/Image" |
#define WeightVar | ( | M, | |
N | |||
) |
typedef struct _ContributionInfo ContributionInfo |
|
static |
Definition at line 3254 of file resize.c.
References AcquireAlignedMemory(), AcquireQuantumMemory(), DestroyContributionTLS(), GetMagickResourceLimit(), MagickAssumeAligned, and ThreadResource.
Referenced by HorizontalFilter(), and VerticalFilter().
MagickPrivate ResizeFilter * AcquireResizeFilter | ( | const Image * | image, |
const FilterType | filter, | ||
const MagickBooleanType | cylindrical, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 757 of file resize.c.
References AcquireCriticalMemory(), Blackman(), BlackmanFilter, BlackmanWeightingFunction, _ResizeFilter::blur, Bohman(), BohmanFilter, BohmanWeightingFunction, Box(), BoxFilter, BoxWeightingFunction, CatromFilter, _ResizeFilter::coefficient, CommandOptionToMnemonic(), Cosine(), CosineFilter, CosineWeightingFunction, CubicBC(), CubicBCWeightingFunction, CubicFilter, CubicSpline(), CubicSplineFilter, DeleteImageArtifact(), _Image::filename, _ResizeFilter::filter, _ResizeFilter::filterWeightingType, FormatLocaleFile(), Gaussian(), GaussianFilter, GaussianWeightingFunction, GetImageArtifact(), GetMagickModule, GetMagickPrecision(), GetResizeFilterSupport(), GetResizeFilterWeight(), Hamming(), HammingFilter, HammingWeightingFunction, Hann(), HannFilter, HannWeightingFunction, HermiteFilter, I0(), IsEventLogging(), IsStringTrue(), Jinc(), JincFilter, JincWeightingFunction, Kaiser(), KaiserFilter, KaiserWeightingFunction, Lagrange(), LagrangeFilter, LagrangeWeightingFunction, Lanczos2Filter, Lanczos2SharpFilter, LanczosFilter, LanczosRadiusFilter, LanczosSharpFilter, LogMagickEvent(), Magick2PI, MagickCoreSignature, MagickEpsilon, MagickFalse, MagickFilterOptions, MagickPI, MagickSQ1_2, MitchellFilter, ParseCommandOption(), PerceptibleReciprocal(), PointFilter, Quadratic(), QuadraticFilter, QuadraticWeightingFunction, RobidouxFilter, RobidouxSharpFilter, _ResizeFilter::scale, SentinelFilter, _ExceptionInfo::signature, _Image::signature, _ResizeFilter::signature, Sinc(), SincFast(), SincFastFilter, SincFastWeightingFunction, SincFilter, SincWeightingFunction, SplineFilter, StringToDouble(), StringToLong(), _ResizeFilter::support, TraceEvent, Triangle(), TriangleFilter, TriangleWeightingFunction, UndefinedFilter, Welch(), WelchFilter, WelchWeightingFunction, _ResizeFilter::window, _ResizeFilter::window_support, and _ResizeFilter::windowWeightingType.
Referenced by ResizeImage().
MagickExport Image * AdaptiveResizeImage | ( | const Image * | image, |
const size_t | columns, | ||
const size_t | rows, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1290 of file resize.c.
References InterpolativeResizeImage(), and MeshInterpolatePixel.
static double BesselOrderOne | ( | double | x | ) |
|
static |
Definition at line 149 of file resize.c.
References magick_unreferenced, and MagickPI.
Referenced by AcquireResizeFilter().
|
static |
Definition at line 164 of file resize.c.
References magick_unreferenced, and MagickPI.
Referenced by AcquireResizeFilter().
|
static |
Definition at line 181 of file resize.c.
References magick_unreferenced.
Referenced by AcquireResizeFilter(), and GetResizeFilterWeight().
|
static |
Definition at line 195 of file resize.c.
References magick_unreferenced, and MagickPI2.
Referenced by AcquireResizeFilter().
|
static |
Definition at line 207 of file resize.c.
References _ResizeFilter::coefficient.
Referenced by AcquireResizeFilter().
|
static |
Definition at line 247 of file resize.c.
References _ResizeFilter::support.
Referenced by AcquireResizeFilter().
|
static |
Definition at line 3239 of file resize.c.
References GetMagickResourceLimit(), RelinquishAlignedMemory(), RelinquishMagickMemory(), and ThreadResource.
Referenced by AcquireContributionTLS(), HorizontalFilter(), and VerticalFilter().
MagickPrivate ResizeFilter * DestroyResizeFilter | ( | ResizeFilter * | resize_filter | ) |
Definition at line 1533 of file resize.c.
References MagickCoreSignature, RelinquishMagickMemory(), and _ResizeFilter::signature.
Referenced by DestroyResampleFilter(), ResizeImage(), and SetResampleFilter().
|
inlinestatic |
Definition at line 2119 of file resize.c.
References CopyPixels(), and PixelsEqual().
Referenced by MagnifyImage().
|
inlinestatic |
Definition at line 2676 of file resize.c.
References CopyPixels(), magick_unreferenced, Mix2Pixels(), and PixelsEqual().
Referenced by MagnifyImage().
|
inlinestatic |
Definition at line 2718 of file resize.c.
References CopyPixels(), magick_unreferenced, and PixelsEqual().
Referenced by MagnifyImage().
|
static |
Definition at line 2621 of file resize.c.
References CopyPixels(), HelperCond, magick_unreferenced, Mix2Pixels(), and PixelsEqual().
Referenced by MagnifyImage().
|
static |
Definition at line 2397 of file resize.c.
References CopyPixels(), Corner, GetPixelIntensity(), Line, Mix2Pixels(), MixPixels(), and PixelsEqual().
Referenced by MagnifyImage().
|
static |
Definition at line 287 of file resize.c.
References _ResizeFilter::coefficient.
Referenced by AcquireResizeFilter().
MagickPrivate double GetResizeFilterBlur | ( | const ResizeFilter * | resize_filter | ) |
Definition at line 1574 of file resize.c.
References _ResizeFilter::blur, MagickCoreSignature, and _ResizeFilter::signature.
MagickPrivate double * GetResizeFilterCoefficient | ( | const ResizeFilter * | resize_filter | ) |
Definition at line 1566 of file resize.c.
References _ResizeFilter::coefficient, MagickCoreSignature, and _ResizeFilter::signature.
MagickPrivate double GetResizeFilterScale | ( | const ResizeFilter * | resize_filter | ) |
Definition at line 1581 of file resize.c.
References MagickCoreSignature, _ResizeFilter::scale, and _ResizeFilter::signature.
MagickPrivate double GetResizeFilterSupport | ( | const ResizeFilter * | resize_filter | ) |
Definition at line 1612 of file resize.c.
References _ResizeFilter::blur, MagickCoreSignature, _ResizeFilter::signature, and _ResizeFilter::support.
Referenced by AcquireResizeFilter(), HorizontalFilter(), and VerticalFilter().
MagickPrivate double GetResizeFilterWeight | ( | const ResizeFilter * | resize_filter, |
const double | x | ||
) |
Definition at line 1646 of file resize.c.
References _ResizeFilter::blur, Box(), _ResizeFilter::filter, MagickCoreSignature, MagickEpsilon, PerceptibleReciprocal(), _ResizeFilter::scale, _ResizeFilter::signature, _ResizeFilter::window, and _ResizeFilter::window_support.
Referenced by AcquireResizeFilter(), HorizontalFilter(), ResamplePixelColor(), SetResampleFilter(), and VerticalFilter().
MagickPrivate ResizeWeightingFunctionType GetResizeFilterWeightingType | ( | const ResizeFilter * | resize_filter | ) |
Definition at line 1596 of file resize.c.
References _ResizeFilter::filterWeightingType, MagickCoreSignature, and _ResizeFilter::signature.
MagickPrivate double GetResizeFilterWindowSupport | ( | const ResizeFilter * | resize_filter | ) |
Definition at line 1588 of file resize.c.
References MagickCoreSignature, _ResizeFilter::signature, and _ResizeFilter::window_support.
MagickPrivate ResizeWeightingFunctionType GetResizeFilterWindowWeightingType | ( | const ResizeFilter * | resize_filter | ) |
Definition at line 1604 of file resize.c.
References MagickCoreSignature, _ResizeFilter::signature, and _ResizeFilter::windowWeightingType.
|
static |
Definition at line 334 of file resize.c.
References magick_unreferenced, and MagickPI.
Referenced by AcquireResizeFilter().
|
static |
Definition at line 322 of file resize.c.
References magick_unreferenced, and MagickPI.
Referenced by AcquireResizeFilter().
|
static |
Definition at line 3281 of file resize.c.
References AcquireAuthenticCacheView(), AcquireContributionTLS(), AcquireVirtualCacheView(), BlendPixelTrait, ClampToQuantum(), CopyPixelTrait, DestroyCacheView(), DestroyContributionTLS(), DirectClass, GetCacheViewVirtualPixels(), GetMagickModule, GetOpenMPThreadId(), GetPixelAlpha(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelWriteMask(), GetResizeFilterSupport(), GetResizeFilterWeight(), magick_restrict, MagickEpsilon, MagickFalse, MagickMax, MagickMin, MagickTrue, PerceptibleReciprocal(), QuantumRange, QuantumScale, QueueCacheViewAuthenticPixels(), ResizeImageTag, ResourceLimitError, SetImageProgress(), SetImageStorageClass(), SetPixelChannel(), SyncCacheViewAuthenticPixels(), ThrowMagickException(), and UndefinedPixelTrait.
Referenced by ResizeImage().
|
inlinestatic |
Definition at line 2344 of file resize.c.
References Hq2XHelper(), Hq2XPatternToNumber(), PixelsEqual(), and Rotated.
Referenced by MagnifyImage().
|
static |
Definition at line 2142 of file resize.c.
References caseA, caseB, CopyPixels(), MixPixels(), and PixelsEqual().
Referenced by Hq2X().
|
inlinestatic |
|
static |
Definition at line 1341 of file resize.c.
References MagickEpsilon.
Referenced by AcquireResizeFilter(), and Kaiser().
MagickExport Image * InterpolativeResizeImage | ( | const Image * | image, |
const size_t | columns, | ||
const size_t | rows, | ||
const PixelInterpolateMethod | method, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 1705 of file resize.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetMagickModule, GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), ImageError, InterpolatePixelChannels(), InterpolativeResizeImageTag, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), _Image::rows, SetImageProgress(), SetImageStorageClass(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), ThrowImageException, TraceEvent, UndefinedPixelTrait, _PointInfo::x, and _PointInfo::y.
Referenced by AdaptiveResizeImage().
|
static |
Definition at line 1366 of file resize.c.
Referenced by BesselOrderOne().
|
static |
Definition at line 346 of file resize.c.
References BesselOrderOne(), magick_unreferenced, and MagickPI.
Referenced by AcquireResizeFilter().
|
static |
Definition at line 364 of file resize.c.
References _ResizeFilter::coefficient, and I0().
Referenced by AcquireResizeFilter().
|
static |
Definition at line 382 of file resize.c.
References _ResizeFilter::support, and _ResizeFilter::window_support.
Referenced by AcquireResizeFilter().
MagickExport Image * LiquidRescaleImage | ( | const Image * | image, |
const size_t | magick_unusedcolumns, | ||
const size_t | magick_unusedrows, | ||
const double | magick_unuseddelta_x, | ||
const double | magick_unusedrigidity, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 2020 of file resize.c.
References _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MissingDelegateError, _ExceptionInfo::signature, _Image::signature, ThrowMagickException(), and TraceEvent.
MagickExport Image * MagnifyImage | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 2837 of file resize.c.
References AcquireAuthenticCacheView(), AcquireVirtualCacheView(), CloneImage(), _Image::columns, CopyImagePixels(), DestroyCacheView(), DestroyImage(), Eagle2X(), Eagle3X(), Eagle3XB(), Epbx2X(), _Image::filename, Fish2X(), GetCacheViewVirtualPixels(), GetImageOption(), GetMagickModule, GetPixelChannels(), _RectangleInfo::height, Hq2X(), _Image::image_info, IsEventLogging(), LocaleCompare(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MagnifyImageTag, _Image::progress_monitor, QueueCacheViewAuthenticPixels(), RGBColorspace, _Image::rows, Scale2X(), Scale3X(), SetImageColorspace(), SetImageProgress(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), TraceEvent, _RectangleInfo::width, _OffsetInfo::x, _RectangleInfo::x, Xbr2X(), _OffsetInfo::y, and _RectangleInfo::y.
MagickExport Image * MinifyImage | ( | const Image * | image, |
ExceptionInfo * | exception | ||
) |
Definition at line 3107 of file resize.c.
References _Image::columns, _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, ResizeImage(), _Image::rows, _ExceptionInfo::signature, _Image::signature, SplineFilter, and TraceEvent.
|
inlinestatic |
Definition at line 2073 of file resize.c.
Referenced by Fish2X(), Hq2XHelper(), and Mix2Pixels().
|
static |
Definition at line 1412 of file resize.c.
Referenced by BesselOrderOne().
|
static |
Definition at line 1452 of file resize.c.
Referenced by BesselOrderOne().
|
static |
Definition at line 415 of file resize.c.
References magick_unreferenced.
Referenced by AcquireResizeFilter().
MagickExport Image * ResampleImage | ( | const Image * | image, |
const double | x_resolution, | ||
const double | y_resolution, | ||
const FilterType | filter, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 3157 of file resize.c.
References _Image::columns, DefaultResolution, _Image::filename, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, ResizeImage(), _Image::resolution, _Image::rows, _ExceptionInfo::signature, _Image::signature, TraceEvent, _PointInfo::x, and _PointInfo::y.
MagickExport Image * ResizeImage | ( | const Image * | image, |
const size_t | columns, | ||
const size_t | rows, | ||
const FilterType | filter, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 3717 of file resize.c.
References AcquireResizeFilter(), _Image::alpha_trait, CloneImage(), _Image::columns, DestroyImage(), DestroyResizeFilter(), _Image::filename, GetMagickModule, HorizontalFilter(), ImageError, IsEventLogging(), LanczosFilter, LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickTrue, MitchellFilter, PointFilter, PseudoClass, _Image::rows, _ExceptionInfo::signature, _Image::signature, _Image::storage_class, ThrowImageException, TraceEvent, _Image::type, UndefinedFilter, UndefinedPixelTrait, and VerticalFilter().
Referenced by MinifyImage(), MorphImages(), ReadImage(), ResampleImage(), ResamplePixelColor(), ThumbnailImage(), and TransformImage().
MagickExport Image * SampleImage | ( | const Image * | image, |
const size_t | columns, | ||
const size_t | rows, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 3863 of file resize.c.
References AcquireAuthenticCacheView(), AcquireQuantumMemory(), AcquireVirtualCacheView(), CloneImage(), _Image::columns, DestroyCacheView(), DestroyImage(), _Image::filename, GetCacheViewVirtualPixels(), GetImageArtifact(), GetMagickModule, GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelWriteMask(), ImageError, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickEpsilon, MagickFalse, MagickTrue, ParseGeometry(), _Image::progress_monitor, QuantumRange, QueueCacheViewAuthenticPixels(), RelinquishMagickMemory(), ResourceLimitError, _GeometryInfo::rho, _Image::rows, SampleImageTag, SetImageProgress(), SetPixelChannel(), _GeometryInfo::sigma, SigmaValue, _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), ThrowImageException, TraceEvent, _Image::type, UndefinedPixelTrait, _PointInfo::x, and _PointInfo::y.
Referenced by ThumbnailImage().
|
static |
Definition at line 2588 of file resize.c.
References CopyPixels(), magick_unreferenced, and PixelsEqual().
Referenced by MagnifyImage().
|
inlinestatic |
Definition at line 2748 of file resize.c.
References CopyPixels(), magick_unreferenced, and PixelsEqual().
Referenced by MagnifyImage().
MagickExport Image * ScaleImage | ( | const Image * | image, |
const size_t | columns, | ||
const size_t | rows, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 4065 of file resize.c.
References AcquireAuthenticCacheView(), AcquireQuantumMemory(), AcquireVirtualCacheView(), _Image::alpha_trait, AlphaPixelChannel, BlendPixelTrait, ClampToQuantum(), CloneImage(), _Image::columns, CompositePixelChannel, DestroyCacheView(), DestroyImage(), DirectClass, _Image::filename, GetCacheViewVirtualPixels(), GetMagickModule, GetPixelAlpha(), GetPixelChannelChannel(), GetPixelChannelOffset(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelWriteMask(), ImageError, IsEventLogging(), LogMagickEvent(), magick_restrict, MagickCoreSignature, MagickFalse, MagickTrue, MaxPixelChannels, PerceptibleReciprocal(), QuantumRange, QuantumScale, QueueCacheViewAuthenticPixels(), RelinquishMagickMemory(), ResourceLimitError, _Image::rows, ScaleImageTag, SetImageProgress(), SetImageStorageClass(), SetPixelChannel(), _ExceptionInfo::signature, _Image::signature, SyncCacheViewAuthenticPixels(), ThrowImageException, TraceEvent, _Image::type, UndefinedPixelTrait, _PointInfo::x, and _PointInfo::y.
|
static |
Definition at line 430 of file resize.c.
References magick_unreferenced, and MagickPI.
static double Sinc | ( | const double | , |
const ResizeFilter * | |||
) |
Referenced by AcquireResizeFilter().
|
static |
Definition at line 447 of file resize.c.
References magick_unreferenced, and MagickPI.
static double SincFast | ( | const double | , |
const ResizeFilter * | |||
) |
Referenced by AcquireResizeFilter().
MagickExport Image * ThumbnailImage | ( | const Image * | image, |
const size_t | columns, | ||
const size_t | rows, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 4523 of file resize.c.
References BoxFilter, CloneImage(), _Image::columns, CopyMagickString(), DeleteImageProfile(), DeleteImageProperty(), _Image::depth, DestroyImage(), _Image::filename, _Image::filter, FormatImageProperty(), FormatLocaleString(), FormatMagickSize(), GetBlobSize(), GetImageListLength(), GetMagickModule, GetNextImageProfile(), GetPathAttributes(), GetPathComponent(), _Image::interlace, IsEventLogging(), LanczosSharpFilter, LocaleCompare(), LocaleLower(), LogMagickEvent(), _Image::magick, _Image::magick_columns, _Image::magick_filename, _Image::magick_rows, MagickAuthoritativeURL, MagickCoreSignature, MagickFalse, MagickPathExtent, MagickTrue, NoInterlace, _Image::page, ParseAbsoluteGeometry(), ResetImageProfileIterator(), ResizeImage(), _Image::rows, SampleImage(), SetImageProperty(), _ExceptionInfo::signature, _Image::signature, TailPath, TraceEvent, and UndefinedFilter.
Referenced by MontageImageList(), and PreviewImage().
|
static |
Definition at line 543 of file resize.c.
References magick_unreferenced.
Referenced by AcquireResizeFilter().
|
static |
Definition at line 3501 of file resize.c.
References AcquireAuthenticCacheView(), AcquireContributionTLS(), AcquireVirtualCacheView(), BlendPixelTrait, ClampToQuantum(), CopyPixelTrait, DestroyCacheView(), DestroyContributionTLS(), DirectClass, GetCacheViewVirtualPixels(), GetMagickModule, GetOpenMPThreadId(), GetPixelAlpha(), GetPixelChannelChannel(), GetPixelChannels(), GetPixelChannelTraits(), GetPixelWriteMask(), GetResizeFilterSupport(), GetResizeFilterWeight(), magick_restrict, MagickEpsilon, MagickFalse, MagickMax, MagickMin, MagickTrue, PerceptibleReciprocal(), QuantumRange, QuantumScale, QueueCacheViewAuthenticPixels(), ResizeImageTag, ResourceLimitError, SetImageProgress(), SetImageStorageClass(), SetPixelChannel(), SyncCacheViewAuthenticPixels(), ThrowMagickException(), and UndefinedPixelTrait.
Referenced by ResizeImage().
|
static |
Definition at line 558 of file resize.c.
References magick_unreferenced.
Referenced by AcquireResizeFilter().
|
static |
Definition at line 2516 of file resize.c.
References CopyPixels(), magick_unreferenced, Mix2Pixels(), and WeightVar.
Referenced by MagnifyImage().