oop bandjoin bug
This commit is contained in:
parent
64e43c6a5c
commit
d75f2af5ea
@ -102,7 +102,7 @@ vips_bandary_gen( VipsRegion *or, void *seq, void *a, void *b, gboolean *stop )
|
||||
for( y = 0; y < r->height; y++ ) {
|
||||
class->process_line( bandary, q, p, r->width );
|
||||
|
||||
for( i = 0; ir[i]; i++ )
|
||||
for( i = 0; i < bandary->n; i++ )
|
||||
p[i] += VIPS_REGION_LSKIP( ir[i] );
|
||||
q += VIPS_REGION_LSKIP( or );
|
||||
}
|
||||
|
@ -107,7 +107,7 @@ vips_bandjoin_buffer( VipsBandary *bandary, PEL *q, PEL **p, int width )
|
||||
PEL *p1, *q1;
|
||||
int x, z;
|
||||
|
||||
q1 = q + i * ips;
|
||||
q1 = q;
|
||||
p1 = p[i];
|
||||
|
||||
for( x = 0; x < width; x++ ) {
|
||||
@ -117,6 +117,8 @@ vips_bandjoin_buffer( VipsBandary *bandary, PEL *q, PEL **p, int width )
|
||||
p1 += ips;
|
||||
q1 += ops;
|
||||
}
|
||||
|
||||
q += ips;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -211,18 +211,6 @@ sharpen_mask_new( int radius )
|
||||
return( line );
|
||||
}
|
||||
|
||||
int
|
||||
im_sharpen( IMAGE *in, IMAGE *out,
|
||||
int mask_size,
|
||||
double x1, double y2, double y3,
|
||||
double m1, double m2 )
|
||||
{
|
||||
if( im_extract_band( in, out, 0 ) )
|
||||
return( -1 );
|
||||
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
/**
|
||||
* im_sharpen:
|
||||
* @in: input image
|
||||
@ -291,11 +279,11 @@ im_sharpen( IMAGE *in, IMAGE *out,
|
||||
* Returns: 0 on success, -1 on error.
|
||||
*/
|
||||
int
|
||||
im_sharpen_real( IMAGE *in, IMAGE *out,
|
||||
im_sharpen( IMAGE *in, IMAGE *out,
|
||||
int mask_size,
|
||||
double x1, double y2, double y3,
|
||||
double m1, double m2 )
|
||||
{
|
||||
{
|
||||
IMAGE *arry[3];
|
||||
IMAGE *t[4];
|
||||
INTMASK *mask;
|
||||
|
Loading…
Reference in New Issue
Block a user