Formatting and whitespace changes

This commit is contained in:
Kleis Auke Wolthuizen 2020-06-06 14:25:03 +02:00
parent 369b098096
commit c0ed106079
3 changed files with 9 additions and 9 deletions

View File

@ -498,7 +498,7 @@ vips_reduceh_build( VipsObject *object )
VIPS_INTERPOLATE_SCALE;
#ifdef DEBUG
printf( "vips_reduceh_build: mask %d\n ", x );
printf( "vips_reduceh_build: mask %d\n ", x );
for( int i = 0; i < reduceh->n_point; i++ )
printf( "%d ", reduceh->matrixi[x][i] );
printf( "\n" );

View File

@ -553,8 +553,8 @@ vips_reducev_gen( VipsRegion *out_region, void *vseq,
for( int y = 0; y < r->height; y ++ ) {
VipsPel *q =
VIPS_REGION_ADDR( out_region, r->left, r->top + y );
const int py = (int) Y;
VipsPel *p = VIPS_REGION_ADDR( ir, r->left, py );
const int py = (int) Y;
VipsPel *p = VIPS_REGION_ADDR( ir, r->left, py );
const int sy = Y * VIPS_TRANSFORM_SCALE * 2;
const int siy = sy & (VIPS_TRANSFORM_SCALE * 2 - 1);
const int ty = (siy + 1) >> 1;
@ -678,7 +678,7 @@ vips_reducev_vector_gen( VipsRegion *out_region, void *vseq,
for( int y = 0; y < r->height; y ++ ) {
VipsPel *q =
VIPS_REGION_ADDR( out_region, r->left, r->top + y );
const int py = (int) Y;
const int py = (int) Y;
const int sy = Y * VIPS_TRANSFORM_SCALE * 2;
const int siy = sy & (VIPS_TRANSFORM_SCALE * 2 - 1);
const int ty = (siy + 1) >> 1;
@ -872,7 +872,7 @@ vips_reducev_build( VipsObject *object )
VIPS_INTERPOLATE_SCALE;
#ifdef DEBUG
printf( "vips_reducev_build: mask %d\n ", y );
printf( "vips_reducev_build: mask %d\n ", y );
for( int i = 0; i < reducev->n_point; i++ )
printf( "%d ", reducev->matrixi[y][i] );
printf( "\n" );

View File

@ -322,7 +322,7 @@ calculate_coefficients_triangle( double *c,
/* Needs to be in sync with vips_reduce_get_points().
*/
const int n_points = 2 * rint( shrink ) + 1;
const double half = x + n_points / 2.0 - 1;
const double half = x + n_points / 2.0 - 1;
int i;
double sum;
@ -360,7 +360,7 @@ calculate_coefficients_cubic( double *c,
/* Needs to be in sync with vips_reduce_get_points().
*/
const int n_points = 2 * rint( 2 * shrink ) + 1;
const double half = x + n_points / 2.0 - 1;
const double half = x + n_points / 2.0 - 1;
int i;
double sum;
@ -409,14 +409,14 @@ calculate_coefficients_lanczos( double *c,
/* Needs to be in sync with vips_reduce_get_points().
*/
const int n_points = 2 * rint( a * shrink ) + 1;
const double half = x + n_points / 2.0 - 1;
const double half = x + n_points / 2.0 - 1;
int i;
double sum;
sum = 0;
for( i = 0; i < n_points; i++ ) {
double xp = (i - half) / shrink;
const double xp = (i - half) / shrink;
double l;