File indexing completed on 2025-01-30 10:11:44
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #ifndef MAGICKCORE_RESAMPLE_H
0019 #define MAGICKCORE_RESAMPLE_H
0020
0021 #include "MagickCore/cache-view.h"
0022
0023 #if defined(__cplusplus) || defined(c_plusplus)
0024 extern "C" {
0025 #endif
0026
0027
0028
0029
0030
0031
0032 typedef enum
0033 {
0034 UndefinedFilter,
0035 PointFilter,
0036 BoxFilter,
0037 TriangleFilter,
0038 HermiteFilter,
0039 HannFilter,
0040 HammingFilter,
0041 BlackmanFilter,
0042 GaussianFilter,
0043 QuadraticFilter,
0044 CubicFilter,
0045 CatromFilter,
0046 MitchellFilter,
0047 JincFilter,
0048 SincFilter,
0049 SincFastFilter,
0050 KaiserFilter,
0051 WelchFilter,
0052 ParzenFilter,
0053 BohmanFilter,
0054 BartlettFilter,
0055 LagrangeFilter,
0056 LanczosFilter,
0057 LanczosSharpFilter,
0058 Lanczos2Filter,
0059 Lanczos2SharpFilter,
0060 RobidouxFilter,
0061 RobidouxSharpFilter,
0062 CosineFilter,
0063 SplineFilter,
0064 LanczosRadiusFilter,
0065 CubicSplineFilter,
0066 SentinelFilter
0067 } FilterType;
0068
0069
0070
0071
0072
0073
0074
0075
0076 #define BesselFilter JincFilter
0077 #define WelshFilter WelchFilter
0078 #define HanningFilter HannFilter
0079
0080 typedef struct _ResampleFilter
0081 ResampleFilter;
0082
0083 extern MagickExport MagickBooleanType
0084 ResamplePixelColor(ResampleFilter *,const double,const double,
0085 PixelInfo *,ExceptionInfo *),
0086 SetResampleFilterInterpolateMethod(ResampleFilter *,
0087 const PixelInterpolateMethod),
0088 SetResampleFilterVirtualPixelMethod(ResampleFilter *,
0089 const VirtualPixelMethod);
0090
0091 extern MagickExport ResampleFilter
0092 *AcquireResampleFilter(const Image *,ExceptionInfo *),
0093 *DestroyResampleFilter(ResampleFilter *);
0094
0095 extern MagickExport void
0096 ScaleResampleFilter(ResampleFilter *,const double,const double,const double,
0097 const double),
0098 SetResampleFilter(ResampleFilter *,const FilterType);
0099
0100 #if defined(__cplusplus) || defined(c_plusplus)
0101 }
0102 #endif
0103
0104 #endif