MagickCore  7.0.3
resample.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2019 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  MagickCore graphic resample methods.
17 */
18 #ifndef MAGICKCORE_RESAMPLE_H
19 #define MAGICKCORE_RESAMPLE_H
20 
21 #include "MagickCore/cache-view.h"
22 
23 #if defined(__cplusplus) || defined(c_plusplus)
24 extern "C" {
25 #endif
26 
27 /*
28  WARNING: The order of this table must also match the order of a table
29  located in AcquireResizeFilter() in "resize.c" otherwise the users filter
30  will not match the actual filter that is setup.
31 */
32 typedef enum
33 {
66  SentinelFilter /* a count of all the filters, not a real filter */
67 } FilterType;
68 
69 /*
70  Backward compatibility for the more correctly named Jinc Filter. Original
71  source of this filter is from "zoom" but it refers to a reference by Pratt,
72  who does not actualy name the filter.
73 
74  also miss-spellings of common filters
75 */
76 #define BesselFilter JincFilter
77 #define WelshFilter WelchFilter
78 #define HanningFilter HannFilter
79 
80 typedef struct _ResampleFilter
82 
84  ResamplePixelColor(ResampleFilter *,const double,const double,
89  const VirtualPixelMethod);
90 
94 
95 extern MagickExport void
96  ScaleResampleFilter(ResampleFilter *,const double,const double,const double,
97  const double),
99 
100 #if defined(__cplusplus) || defined(c_plusplus)
101 }
102 #endif
103 
104 #endif
MagickExport MagickBooleanType SetResampleFilterInterpolateMethod(ResampleFilter *resample_filter, const PixelInterpolateMethod method)
Definition: resample.c:1404
FilterType
Definition: resample.h:32
MagickExport MagickBooleanType ResamplePixelColor(ResampleFilter *resample_filter, const double u0, const double v0, PixelInfo *pixel, ExceptionInfo *exception)
Definition: resample.c:315
PixelInterpolateMethod
Definition: pixel.h:110
VirtualPixelMethod
Definition: cache-view.h:27
MagickExport ResampleFilter * AcquireResampleFilter(const Image *image, ExceptionInfo *exception)
Definition: resample.c:208
Definition: image.h:151
MagickBooleanType
Definition: magick-type.h:158
MagickExport MagickBooleanType SetResampleFilterVirtualPixelMethod(ResampleFilter *resample_filter, const VirtualPixelMethod method)
Definition: resample.c:1443
MagickExport ResampleFilter * DestroyResampleFilter(ResampleFilter *resample_filter)
Definition: resample.c:262
MagickExport void SetResampleFilter(ResampleFilter *resample_filter, const FilterType filter)
Definition: resample.c:1241
MagickExport void ScaleResampleFilter(ResampleFilter *resample_filter, const double dux, const double duy, const double dvx, const double dvy)
Definition: resample.c:1038
#define MagickExport