From 39052fff02d6a281e1837737e345ecfcfe7cf60f Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 10 Jan 2010 15:38:47 +0000 Subject: [PATCH] --- magick/distort.c | 1 + magick/distort.h | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/magick/distort.c b/magick/distort.c index b8c81db7c..9935b170d 100644 --- a/magick/distort.c +++ b/magick/distort.c @@ -86,6 +86,7 @@ static inline void AffineArgsToCoefficients(double *affine) tmp[0]=affine[1]; tmp[1]=affine[2]; tmp[2]=affine[3]; tmp[3]=affine[4]; affine[3]=tmp[0]; affine[1]=tmp[1]; affine[4]=tmp[2]; affine[2]=tmp[3]; } + static inline void CoefficientsToAffineArgs(double *coeff) { /* map internal c0,c1,c2,c3,c4,c5 to external sx,ry,rx,sy,tx,ty */ diff --git a/magick/distort.h b/magick/distort.h index edfb498a8..b94927cfa 100644 --- a/magick/distort.h +++ b/magick/distort.h @@ -22,12 +22,10 @@ extern "C" { #endif -#include - /* These two enum are linked, with common enumerated values. Both - DistortImages() and SparseColor() often share code to determine - functional coefficients for common methods. + DistortImages() and SparseColor() often share code to determine functional + coefficients for common methods. Caution should be taken to ensure that only the common methods contain the same enumerated value, while all others remain unique across both @@ -54,7 +52,6 @@ typedef enum SentinelDistortion } DistortImageMethod; - typedef enum { UndefinedColorInterpolate = UndefinedDistortion, @@ -62,7 +59,9 @@ typedef enum BilinearColorInterpolate = BilinearReverseDistortion, PolynomialColorInterpolate = PolynomialDistortion, ShepardsColorInterpolate = ShepardsDistortion, - /* Methods unique to SparseColor(): */ + /* + Methods unique to SparseColor(). + */ VoronoiColorInterpolate = SentinelDistortion } SparseColorMethod; -- 2.40.0