mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-10-31 16:07:30 +03:00 
			
		
		
		
	ImagingPrecompute → precompute_coeffs
This commit is contained in:
		
							parent
							
								
									7d3db1f02a
								
							
						
					
					
						commit
						788810f313
					
				|  | @ -125,7 +125,7 @@ static inline UINT8 clip8(int in) | |||
| 
 | ||||
| 
 | ||||
| int | ||||
| ImagingPrecompute(int inSize, int outSize, struct filter *filterp, | ||||
| precompute_coeffs(int inSize, int outSize, struct filter *filterp, | ||||
|                   int **xboundsp, double **kkp) { | ||||
|     double support, scale, filterscale; | ||||
|     double center, ww, ss; | ||||
|  | @ -217,8 +217,7 @@ ImagingResampleHorizontal_8bpc(Imaging imIn, int xsize, struct filter *filterp) | |||
|     int *k, *kk; | ||||
|     double *prekk; | ||||
| 
 | ||||
| 
 | ||||
|     kmax = ImagingPrecompute(imIn->xsize, xsize, filterp, &xbounds, &prekk); | ||||
|     kmax = precompute_coeffs(imIn->xsize, xsize, filterp, &xbounds, &prekk); | ||||
|     if ( ! kmax) { | ||||
|         return (Imaging) ImagingError_MemoryError(); | ||||
|     } | ||||
|  | @ -329,8 +328,7 @@ ImagingResampleVertical_8bpc(Imaging imIn, int ysize, struct filter *filterp) | |||
|     int *k, *kk; | ||||
|     double *prekk; | ||||
| 
 | ||||
| 
 | ||||
|     kmax = ImagingPrecompute(imIn->ysize, ysize, filterp, &xbounds, &prekk); | ||||
|     kmax = precompute_coeffs(imIn->ysize, ysize, filterp, &xbounds, &prekk); | ||||
|     if ( ! kmax) { | ||||
|         return (Imaging) ImagingError_MemoryError(); | ||||
|     } | ||||
|  | @ -440,7 +438,7 @@ ImagingResampleHorizontal_32bpc(Imaging imIn, int xsize, struct filter *filterp) | |||
|     int *xbounds; | ||||
|     double *k, *kk; | ||||
| 
 | ||||
|     kmax = ImagingPrecompute(imIn->xsize, xsize, filterp, &xbounds, &kk); | ||||
|     kmax = precompute_coeffs(imIn->xsize, xsize, filterp, &xbounds, &kk); | ||||
|     if ( ! kmax) { | ||||
|         return (Imaging) ImagingError_MemoryError(); | ||||
|     } | ||||
|  | @ -500,7 +498,7 @@ ImagingResampleVertical_32bpc(Imaging imIn, int ysize, struct filter *filterp) | |||
|     int *xbounds; | ||||
|     double *k, *kk; | ||||
| 
 | ||||
|     kmax = ImagingPrecompute(imIn->ysize, ysize, filterp, &xbounds, &kk); | ||||
|     kmax = precompute_coeffs(imIn->ysize, ysize, filterp, &xbounds, &kk); | ||||
|     if ( ! kmax) { | ||||
|         return (Imaging) ImagingError_MemoryError(); | ||||
|     } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user