s/nohalo cosmetic

This commit is contained in:
John Cupitt 2009-04-13 09:04:35 +00:00
parent 312204687e
commit b9ef300896
4 changed files with 26 additions and 25 deletions

View File

@ -4,6 +4,7 @@
- catch lcms error messages - catch lcms error messages
- fix includes for gtk+-3.0 - fix includes for gtk+-3.0
- report virtual memory too in im__print_all() - report virtual memory too in im__print_all()
- cosmetic changes to nohalo
25/3/09 started 7.18.0 25/3/09 started 7.18.0
- revised version numbers - revised version numbers

View File

@ -546,9 +546,9 @@ nohalo1( const double uno_two,
} while (--band); \ } while (--band); \
} }
NOHALO1_INTER( float ) NOHALO1_INTER( fptypes )
NOHALO1_INTER( signed ) NOHALO1_INTER( hassign )
NOHALO1_INTER( unsigned ) NOHALO1_INTER( nosign )
/* We need C linkage for this. /* We need C linkage for this.
*/ */
@ -613,39 +613,39 @@ vips_interpolate_nohalo1_interpolate( VipsInterpolate* restrict interpolate,
switch( in->im->BandFmt ) { switch( in->im->BandFmt ) {
case IM_BANDFMT_UCHAR: case IM_BANDFMT_UCHAR:
CALL( unsigned char, unsigned ); CALL( unsigned char, nosign );
break; break;
case IM_BANDFMT_CHAR: case IM_BANDFMT_CHAR:
CALL( signed char, signed ); CALL( signed char, hassign );
break; break;
case IM_BANDFMT_USHORT: case IM_BANDFMT_USHORT:
CALL( unsigned short, unsigned ); CALL( unsigned short, nosign );
break; break;
case IM_BANDFMT_SHORT: case IM_BANDFMT_SHORT:
CALL( signed short, signed ); CALL( signed short, hassign );
break; break;
case IM_BANDFMT_UINT: case IM_BANDFMT_UINT:
CALL( unsigned int, unsigned ); CALL( unsigned int, nosign );
break; break;
case IM_BANDFMT_INT: case IM_BANDFMT_INT:
CALL( signed int, signed ); CALL( signed int, hassign );
break; break;
/* Complex images handled by doubling of bands, see above. /* Complex images handled by doubling of bands, see above.
*/ */
case IM_BANDFMT_FLOAT: case IM_BANDFMT_FLOAT:
case IM_BANDFMT_COMPLEX: case IM_BANDFMT_COMPLEX:
CALL( float, float ); CALL( float, fptypes );
break; break;
case IM_BANDFMT_DOUBLE: case IM_BANDFMT_DOUBLE:
case IM_BANDFMT_DPCOMPLEX: case IM_BANDFMT_DPCOMPLEX:
CALL( double, float ); CALL( double, fptypes );
break; break;
default: default:

View File

@ -480,9 +480,9 @@ snohalo1( const double blur,
} while (--band); \ } while (--band); \
} }
SNOHALO1_INTER( float ) SNOHALO1_INTER( fptypes )
SNOHALO1_INTER( signed ) SNOHALO1_INTER( hassign )
SNOHALO1_INTER( unsigned ) SNOHALO1_INTER( nosign )
/* We need C linkage for this. /* We need C linkage for this.
*/ */
@ -550,39 +550,39 @@ vips_interpolate_snohalo1_interpolate( VipsInterpolate* restrict interpolate,
switch( in->im->BandFmt ) { switch( in->im->BandFmt ) {
case IM_BANDFMT_UCHAR: case IM_BANDFMT_UCHAR:
CALL( unsigned char, unsigned ); CALL( unsigned char, nosign );
break; break;
case IM_BANDFMT_CHAR: case IM_BANDFMT_CHAR:
CALL( signed char, signed ); CALL( signed char, hassign );
break; break;
case IM_BANDFMT_USHORT: case IM_BANDFMT_USHORT:
CALL( unsigned short, unsigned ); CALL( unsigned short, nosign );
break; break;
case IM_BANDFMT_SHORT: case IM_BANDFMT_SHORT:
CALL( signed short, signed ); CALL( signed short, hassign );
break; break;
case IM_BANDFMT_UINT: case IM_BANDFMT_UINT:
CALL( unsigned int, unsigned ); CALL( unsigned int, nosign );
break; break;
case IM_BANDFMT_INT: case IM_BANDFMT_INT:
CALL( signed int, signed ); CALL( signed int, hassign );
break; break;
/* Complex images handled by doubling of bands, see above. /* Complex images handled by doubling of bands, see above.
*/ */
case IM_BANDFMT_FLOAT: case IM_BANDFMT_FLOAT:
case IM_BANDFMT_COMPLEX: case IM_BANDFMT_COMPLEX:
CALL( float, float ); CALL( float, fptypes );
break; break;
case IM_BANDFMT_DOUBLE: case IM_BANDFMT_DOUBLE:
case IM_BANDFMT_DPCOMPLEX: case IM_BANDFMT_DPCOMPLEX:
CALL( double, float ); CALL( double, fptypes );
break; break;
default: default:

View File

@ -46,7 +46,7 @@
/* Bilinear for float and double types. /* Bilinear for float and double types.
*/ */
template <typename T> static T inline template <typename T> static T inline
bilinear_float( bilinear_fptypes(
const double w_times_z, const double w_times_z,
const double x_times_z, const double x_times_z,
const double w_times_y, const double w_times_y,
@ -68,7 +68,7 @@ bilinear_float(
/* Interpolate for signed integer types. /* Interpolate for signed integer types.
*/ */
template <typename T> static T inline template <typename T> static T inline
bilinear_signed( bilinear_hassign(
const double w_times_z, const double w_times_z,
const double x_times_z, const double x_times_z,
const double w_times_y, const double w_times_y,
@ -96,7 +96,7 @@ bilinear_signed(
/* Interpolate for unsigned integer types. /* Interpolate for unsigned integer types.
*/ */
template <typename T> static T inline template <typename T> static T inline
bilinear_unsigned( bilinear_nosign(
const double w_times_z, const double w_times_z,
const double x_times_z, const double x_times_z,
const double w_times_y, const double w_times_y,