From bda6d1e58852b70eb4942cf452f700c28b526795 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 19 Sep 2017 20:42:13 +0300 Subject: [PATCH] rename ImagingCopyPaletteInfo to ImagingCopyPalette --- libImaging/Copy.c | 2 +- libImaging/Crop.c | 2 +- libImaging/Effects.c | 2 +- libImaging/Filter.c | 2 +- libImaging/Geometry.c | 20 ++++++++++---------- libImaging/Imaging.h | 2 +- libImaging/ModeFilter.c | 2 +- libImaging/Offset.c | 2 +- libImaging/Point.c | 2 +- libImaging/RankFilter.c | 2 +- libImaging/Storage.c | 4 ++-- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/libImaging/Copy.c b/libImaging/Copy.c index d0a45ef15..1bc9b1a70 100644 --- a/libImaging/Copy.c +++ b/libImaging/Copy.c @@ -32,7 +32,7 @@ _copy(Imaging imOut, Imaging imIn) if (!imOut) return NULL; - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); ImagingSectionEnter(&cookie); if (imIn->block != NULL && imOut->block != NULL) diff --git a/libImaging/Crop.c b/libImaging/Crop.c index 8819ef12c..4407c1b1d 100644 --- a/libImaging/Crop.c +++ b/libImaging/Crop.c @@ -41,7 +41,7 @@ ImagingCrop(Imaging imIn, int sx0, int sy0, int sx1, int sy1) if (!imOut) return NULL; - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); if (sx0 < 0 || sy0 < 0 || sx1 > imIn->xsize || sy1 > imIn->ysize) (void) ImagingFill(imOut, &zero); diff --git a/libImaging/Effects.c b/libImaging/Effects.c index 53fdda36e..5b58fddbb 100644 --- a/libImaging/Effects.c +++ b/libImaging/Effects.c @@ -144,7 +144,7 @@ ImagingEffectSpread(Imaging imIn, int distance) SPREAD(INT32, image32); } - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); return imOut; } diff --git a/libImaging/Filter.c b/libImaging/Filter.c index 47599c9dd..e6b1a4966 100644 --- a/libImaging/Filter.c +++ b/libImaging/Filter.c @@ -85,7 +85,7 @@ ImagingExpand(Imaging imIn, int xmargin, int ymargin, int mode) } ImagingSectionLeave(&cookie); - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); return imOut; } diff --git a/libImaging/Geometry.c b/libImaging/Geometry.c index 336321ed0..dee2b899c 100644 --- a/libImaging/Geometry.c +++ b/libImaging/Geometry.c @@ -24,7 +24,7 @@ ImagingFlipLeftRight(Imaging imOut, Imaging imIn) if (imIn->xsize != imOut->xsize || imIn->ysize != imOut->ysize) return (Imaging) ImagingError_Mismatch(); - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); ImagingSectionEnter(&cookie); @@ -65,7 +65,7 @@ ImagingFlipTopBottom(Imaging imOut, Imaging imIn) if (imIn->xsize != imOut->xsize || imIn->ysize != imOut->ysize) return (Imaging) ImagingError_Mismatch(); - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); ImagingSectionEnter(&cookie); @@ -90,7 +90,7 @@ ImagingRotate90(Imaging imOut, Imaging imIn) if (imIn->xsize != imOut->ysize || imIn->ysize != imOut->xsize) return (Imaging) ImagingError_Mismatch(); - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); #define ROTATE_90(image) \ for (y = 0; y < imIn->ysize; y += ROTATE_CHUNK) { \ @@ -132,7 +132,7 @@ ImagingTranspose(Imaging imOut, Imaging imIn) if (imIn->xsize != imOut->ysize || imIn->ysize != imOut->xsize) return (Imaging) ImagingError_Mismatch(); - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); #define TRANSPOSE(image) \ for (y = 0; y < imIn->ysize; y += ROTATE_CHUNK) { \ @@ -173,7 +173,7 @@ ImagingRotate180(Imaging imOut, Imaging imIn) if (imIn->xsize != imOut->xsize || imIn->ysize != imOut->ysize) return (Imaging) ImagingError_Mismatch(); - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); #define ROTATE_180(image)\ for (y = 0; y < imIn->ysize; y++, yr--) {\ @@ -209,7 +209,7 @@ ImagingRotate270(Imaging imOut, Imaging imIn) if (imIn->xsize != imOut->ysize || imIn->ysize != imOut->xsize) return (Imaging) ImagingError_Mismatch(); - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); #define ROTATE_270(image) \ for (y = 0; y < imIn->ysize; y += ROTATE_CHUNK) { \ @@ -641,7 +641,7 @@ ImagingGenericTransform( if (!imOut || !imIn || strcmp(imIn->mode, imOut->mode) != 0) return (Imaging) ImagingError_ModeError(); - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); ImagingSectionEnter(&cookie); @@ -688,7 +688,7 @@ ImagingScaleAffine(Imaging imOut, Imaging imIn, if (!imOut || !imIn || strcmp(imIn->mode, imOut->mode) != 0) return (Imaging) ImagingError_ModeError(); - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); if (x0 < 0) x0 = 0; @@ -778,7 +778,7 @@ affine_fixed(Imaging imOut, Imaging imIn, int xx, yy; int a0, a1, a2, a3, a4, a5; - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); xsize = (int) imIn->xsize; ysize = (int) imIn->ysize; @@ -880,7 +880,7 @@ ImagingTransformAffine(Imaging imOut, Imaging imIn, following code is used. maybe we should fall back on the slow generic transform engine in this case? */ - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); xsize = (int) imIn->xsize; ysize = (int) imIn->ysize; diff --git a/libImaging/Imaging.h b/libImaging/Imaging.h index 9dc899bea..145cc62fe 100644 --- a/libImaging/Imaging.h +++ b/libImaging/Imaging.h @@ -173,7 +173,7 @@ extern Imaging ImagingNewPrologueSubtype(const char *mode, int xsize, int ysize, int structure_size); -extern void ImagingCopyPaletteInfo(Imaging destination, Imaging source); +extern void ImagingCopyPalette(Imaging destination, Imaging source); extern void ImagingHistogramDelete(ImagingHistogram histogram); diff --git a/libImaging/ModeFilter.c b/libImaging/ModeFilter.c index 8e2fdc1fa..1cdb6300d 100644 --- a/libImaging/ModeFilter.c +++ b/libImaging/ModeFilter.c @@ -72,7 +72,7 @@ ImagingModeFilter(Imaging im, int size) } - ImagingCopyPaletteInfo(imOut, im); + ImagingCopyPalette(imOut, im); return imOut; } diff --git a/libImaging/Offset.c b/libImaging/Offset.c index d89db9eb9..b3d9425fb 100644 --- a/libImaging/Offset.c +++ b/libImaging/Offset.c @@ -31,7 +31,7 @@ ImagingOffset(Imaging im, int xoffset, int yoffset) if (!imOut) return NULL; - ImagingCopyPaletteInfo(imOut, im); + ImagingCopyPalette(imOut, im); /* make offsets positive to avoid negative coordinates */ xoffset %= im->xsize; diff --git a/libImaging/Point.c b/libImaging/Point.c index 1d3c10629..426c410c9 100644 --- a/libImaging/Point.c +++ b/libImaging/Point.c @@ -180,7 +180,7 @@ ImagingPoint(Imaging imIn, const char* mode, const void* table) } else point = im_point_32_8; - ImagingCopyPaletteInfo(imOut, imIn); + ImagingCopyPalette(imOut, imIn); ImagingSectionEnter(&cookie); diff --git a/libImaging/RankFilter.c b/libImaging/RankFilter.c index c60934f28..0164861bb 100644 --- a/libImaging/RankFilter.c +++ b/libImaging/RankFilter.c @@ -103,7 +103,7 @@ ImagingRankFilter(Imaging im, int size, int rank) return (Imaging) ImagingError_ModeError(); } - ImagingCopyPaletteInfo(imOut, im); + ImagingCopyPalette(imOut, im); return imOut; diff --git a/libImaging/Storage.c b/libImaging/Storage.c index fc173359f..72285970a 100644 --- a/libImaging/Storage.c +++ b/libImaging/Storage.c @@ -24,7 +24,7 @@ * 1998-10-26 fl Added "I;16" and "I;16B" storage modes (experimental) * 1998-12-29 fl Fixed allocation bug caused by previous fix * 1999-02-03 fl Added "RGBa" and "BGR" modes (experimental) - * 2001-04-22 fl Fixed potential memory leak in ImagingCopyPaletteInfo + * 2001-04-22 fl Fixed potential memory leak in ImagingCopyPalette * 2003-09-26 fl Added "LA" and "PA" modes (experimental) * 2005-10-02 fl Added image counter * @@ -458,7 +458,7 @@ ImagingNew2Dirty(const char* mode, Imaging imOut, Imaging imIn) } void -ImagingCopyPaletteInfo(Imaging destination, Imaging source) +ImagingCopyPalette(Imaging destination, Imaging source) { if (source->palette) { if (destination->palette)