Skip to content

Commit c0ed106

Browse files
committed
Formatting and whitespace changes
1 parent 369b098 commit c0ed106

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

libvips/resample/reduceh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ vips_reduceh_build( VipsObject *object )
498498
VIPS_INTERPOLATE_SCALE;
499499

500500
#ifdef DEBUG
501-
printf( "vips_reduceh_build: mask %d\n ", x );
501+
printf( "vips_reduceh_build: mask %d\n ", x );
502502
for( int i = 0; i < reduceh->n_point; i++ )
503503
printf( "%d ", reduceh->matrixi[x][i] );
504504
printf( "\n" );

libvips/resample/reducev.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,8 @@ vips_reducev_gen( VipsRegion *out_region, void *vseq,
553553
for( int y = 0; y < r->height; y ++ ) {
554554
VipsPel *q =
555555
VIPS_REGION_ADDR( out_region, r->left, r->top + y );
556-
const int py = (int) Y;
557-
VipsPel *p = VIPS_REGION_ADDR( ir, r->left, py );
556+
const int py = (int) Y;
557+
VipsPel *p = VIPS_REGION_ADDR( ir, r->left, py );
558558
const int sy = Y * VIPS_TRANSFORM_SCALE * 2;
559559
const int siy = sy & (VIPS_TRANSFORM_SCALE * 2 - 1);
560560
const int ty = (siy + 1) >> 1;
@@ -678,7 +678,7 @@ vips_reducev_vector_gen( VipsRegion *out_region, void *vseq,
678678
for( int y = 0; y < r->height; y ++ ) {
679679
VipsPel *q =
680680
VIPS_REGION_ADDR( out_region, r->left, r->top + y );
681-
const int py = (int) Y;
681+
const int py = (int) Y;
682682
const int sy = Y * VIPS_TRANSFORM_SCALE * 2;
683683
const int siy = sy & (VIPS_TRANSFORM_SCALE * 2 - 1);
684684
const int ty = (siy + 1) >> 1;
@@ -872,7 +872,7 @@ vips_reducev_build( VipsObject *object )
872872
VIPS_INTERPOLATE_SCALE;
873873

874874
#ifdef DEBUG
875-
printf( "vips_reducev_build: mask %d\n ", y );
875+
printf( "vips_reducev_build: mask %d\n ", y );
876876
for( int i = 0; i < reducev->n_point; i++ )
877877
printf( "%d ", reducev->matrixi[y][i] );
878878
printf( "\n" );

libvips/resample/templates.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ calculate_coefficients_triangle( double *c,
322322
/* Needs to be in sync with vips_reduce_get_points().
323323
*/
324324
const int n_points = 2 * rint( shrink ) + 1;
325-
const double half = x + n_points / 2.0 - 1;
325+
const double half = x + n_points / 2.0 - 1;
326326

327327
int i;
328328
double sum;
@@ -360,7 +360,7 @@ calculate_coefficients_cubic( double *c,
360360
/* Needs to be in sync with vips_reduce_get_points().
361361
*/
362362
const int n_points = 2 * rint( 2 * shrink ) + 1;
363-
const double half = x + n_points / 2.0 - 1;
363+
const double half = x + n_points / 2.0 - 1;
364364

365365
int i;
366366
double sum;
@@ -409,14 +409,14 @@ calculate_coefficients_lanczos( double *c,
409409
/* Needs to be in sync with vips_reduce_get_points().
410410
*/
411411
const int n_points = 2 * rint( a * shrink ) + 1;
412-
const double half = x + n_points / 2.0 - 1;
412+
const double half = x + n_points / 2.0 - 1;
413413

414414
int i;
415415
double sum;
416416

417417
sum = 0;
418418
for( i = 0; i < n_points; i++ ) {
419-
double xp = (i - half) / shrink;
419+
const double xp = (i - half) / shrink;
420420

421421
double l;
422422

0 commit comments

Comments
 (0)