small oopes

This commit is contained in:
John Cupitt 2013-10-02 13:38:28 +01:00
parent 1c55abca1f
commit 45ccf7f5cb
3 changed files with 7 additions and 7 deletions

View File

@ -3642,7 +3642,7 @@ im_profile( IMAGE *in, IMAGE *out, int dir )
int
im_mpercent( IMAGE *in, double percent, int *out )
{
if( vips_hist_percent( in, percent / 100.0, out, NULL ) )
if( vips_percent( in, percent * 100.0, out, NULL ) )
return( -1 );
return( 0 );

View File

@ -144,7 +144,7 @@ vips_hist_ismonotonic_init( VipsHistIsmonotonic *ismonotonic )
* Returns: 0 on success, -1 on error
*/
int
vips_hist_ismonotonic( VipsImage *in, int *monotonic, ... )
vips_hist_ismonotonic( VipsImage *in, gboolean *monotonic, ... )
{
va_list ap;
int result;

View File

@ -40,6 +40,10 @@ extern "C" {
int vips_maplut( VipsImage *in, VipsImage **out, VipsImage *lut, ... )
__attribute__((sentinel));
int vips_percent( VipsImage *in, double percent, int *threshold, ... )
__attribute__((sentinel));
int vips_stdif( VipsImage *in, VipsImage **out, int width, int height, ... )
__attribute__((sentinel));
int vips_hist_cum( VipsImage *in, VipsImage **out, ... )
__attribute__((sentinel));
int vips_hist_norm( VipsImage *in, VipsImage **out, ... )
@ -53,11 +57,7 @@ int vips_hist_match( VipsImage *in, VipsImage *ref, VipsImage **out, ... )
int vips_hist_local( VipsImage *in, VipsImage **out,
int width, int height, ... )
__attribute__((sentinel));
int vips_hist_percent( VipsImage *in, double percent, int *threshold, ... )
__attribute__((sentinel));
int vips_stdif( VipsImage *in, VipsImage **out, int width, int height, ... )
__attribute__((sentinel));
int vips_hist_ismonotonic( VipsImage *in, int *monotonic, ... )
int vips_hist_ismonotonic( VipsImage *in, gboolean *monotonic, ... )
__attribute__((sentinel));
#ifdef __cplusplus