remove old im_conv() code
This commit is contained in:
parent
9442c225ba
commit
85cbebbac4
|
@ -15,7 +15,6 @@ libconvolution_la_SOURCES = \
|
||||||
sharpen.c \
|
sharpen.c \
|
||||||
gaussblur.c \
|
gaussblur.c \
|
||||||
im_aconv.c \
|
im_aconv.c \
|
||||||
im_aconvsep.c \
|
im_aconvsep.c
|
||||||
im_conv.c
|
|
||||||
|
|
||||||
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
AM_CPPFLAGS = -I${top_srcdir}/libvips/include @VIPS_CFLAGS@ @VIPS_INCLUDES@
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -2404,6 +2404,36 @@ im_convsep_f( IMAGE *in, IMAGE *out, DOUBLEMASK *mask )
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
im_conv( VipsImage *in, VipsImage *out, INTMASK *mask )
|
||||||
|
{
|
||||||
|
VipsImage *t1, *t2;
|
||||||
|
|
||||||
|
if( !(t1 = vips_image_new()) ||
|
||||||
|
im_imask2vips( mask, t1 ) )
|
||||||
|
return( -1 );
|
||||||
|
if( vips_convi( in, &t2, t1,
|
||||||
|
NULL ) ) {
|
||||||
|
g_object_unref( t1 );
|
||||||
|
return( -1 );
|
||||||
|
}
|
||||||
|
g_object_unref( t1 );
|
||||||
|
if( vips_image_write( t2, out ) ) {
|
||||||
|
g_object_unref( t2 );
|
||||||
|
return( -1 );
|
||||||
|
}
|
||||||
|
g_object_unref( t2 );
|
||||||
|
|
||||||
|
return( 0 );
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
im_conv_raw( VipsImage *in, VipsImage *out, INTMASK *mask )
|
||||||
|
{
|
||||||
|
im_error( "im_conv_raw", "no compat function" );
|
||||||
|
return( -1 );
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
im_conv_f( VipsImage *in, VipsImage *out, DOUBLEMASK *mask )
|
im_conv_f( VipsImage *in, VipsImage *out, DOUBLEMASK *mask )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue