mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
remove internal ImagingTransform from headers
rename to ImagingGenericTransform
This commit is contained in:
parent
1f8c2527ba
commit
6be3df2a43
|
@ -1865,9 +1865,6 @@ class Image(object):
|
||||||
|
|
||||||
def __transformer(self, box, image, method, data,
|
def __transformer(self, box, image, method, data,
|
||||||
resample=NEAREST, fill=1):
|
resample=NEAREST, fill=1):
|
||||||
|
|
||||||
# FIXME: this should be turned into a lazy operation (?)
|
|
||||||
|
|
||||||
w = box[2] - box[0]
|
w = box[2] - box[0]
|
||||||
h = box[3] - box[1]
|
h = box[3] - box[1]
|
||||||
|
|
||||||
|
|
|
@ -606,7 +606,7 @@ getfilter(Imaging im, int filterid)
|
||||||
/* transformation engines */
|
/* transformation engines */
|
||||||
|
|
||||||
Imaging
|
Imaging
|
||||||
ImagingTransform(
|
ImagingGenericTransform(
|
||||||
Imaging imOut, Imaging imIn, int x0, int y0, int x1, int y1,
|
Imaging imOut, Imaging imIn, int x0, int y0, int x1, int y1,
|
||||||
ImagingTransformMap transform, void* transform_data,
|
ImagingTransformMap transform, void* transform_data,
|
||||||
ImagingTransformFilter filter, void* filter_data,
|
ImagingTransformFilter filter, void* filter_data,
|
||||||
|
@ -828,7 +828,7 @@ ImagingTransformAffine(Imaging imOut, Imaging imIn,
|
||||||
ImagingTransformFilter filter = getfilter(imIn, filterid);
|
ImagingTransformFilter filter = getfilter(imIn, filterid);
|
||||||
if (!filter)
|
if (!filter)
|
||||||
return (Imaging) ImagingError_ValueError("unknown filter");
|
return (Imaging) ImagingError_ValueError("unknown filter");
|
||||||
return ImagingTransform(
|
return ImagingGenericTransform(
|
||||||
imOut, imIn,
|
imOut, imIn,
|
||||||
x0, y0, x1, y1,
|
x0, y0, x1, y1,
|
||||||
affine_transform, a,
|
affine_transform, a,
|
||||||
|
@ -915,7 +915,7 @@ ImagingTransformPerspective(Imaging imOut, Imaging imIn,
|
||||||
if (!filter)
|
if (!filter)
|
||||||
return (Imaging) ImagingError_ValueError("bad filter number");
|
return (Imaging) ImagingError_ValueError("bad filter number");
|
||||||
|
|
||||||
return ImagingTransform(
|
return ImagingGenericTransform(
|
||||||
imOut, imIn,
|
imOut, imIn,
|
||||||
x0, y0, x1, y1,
|
x0, y0, x1, y1,
|
||||||
perspective_transform, a,
|
perspective_transform, a,
|
||||||
|
@ -932,7 +932,7 @@ ImagingTransformQuad(Imaging imOut, Imaging imIn,
|
||||||
if (!filter)
|
if (!filter)
|
||||||
return (Imaging) ImagingError_ValueError("bad filter number");
|
return (Imaging) ImagingError_ValueError("bad filter number");
|
||||||
|
|
||||||
return ImagingTransform(
|
return ImagingGenericTransform(
|
||||||
imOut, imIn,
|
imOut, imIn,
|
||||||
x0, y0, x1, y1,
|
x0, y0, x1, y1,
|
||||||
quad_transform, a,
|
quad_transform, a,
|
||||||
|
|
|
@ -300,11 +300,6 @@ extern Imaging ImagingTransformAffine(
|
||||||
extern Imaging ImagingTransformQuad(
|
extern Imaging ImagingTransformQuad(
|
||||||
Imaging imOut, Imaging imIn, int x0, int y0, int x1, int y1,
|
Imaging imOut, Imaging imIn, int x0, int y0, int x1, int y1,
|
||||||
double a[8], int filter, int fill);
|
double a[8], int filter, int fill);
|
||||||
extern Imaging ImagingTransform(
|
|
||||||
Imaging imOut, Imaging imIn, int x0, int y0, int x1, int y1,
|
|
||||||
ImagingTransformMap transform, void* transform_data,
|
|
||||||
ImagingTransformFilter filter, void* filter_data,
|
|
||||||
int fill);
|
|
||||||
extern Imaging ImagingUnsharpMask(
|
extern Imaging ImagingUnsharpMask(
|
||||||
Imaging imOut, Imaging im, float radius, int percent, int threshold);
|
Imaging imOut, Imaging im, float radius, int percent, int threshold);
|
||||||
extern Imaging ImagingBoxBlur(Imaging imOut, Imaging imIn, float radius, int n);
|
extern Imaging ImagingBoxBlur(Imaging imOut, Imaging imIn, float radius, int n);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user