fix build without openjpeg

we had some dangling references
This commit is contained in:
John Cupitt 2021-04-30 11:40:04 +01:00
parent 7603c4b6ab
commit a5e99b15df
2 changed files with 18 additions and 4 deletions

View File

@ -1258,11 +1258,12 @@ vips__foreign_load_jp2k_decompress( VipsImage *out,
#else /*!HAVE_LIBOPENJP2*/
int
vips__foreign_load_jp2k_decompress_buffer( void *data, size_t length,
int width, int height,
void *dest, size_t dest_length )
vips__foreign_load_jp2k_decompress( VipsImage *out,
int width, int height, gboolean ycc_to_rgb,
void *from, size_t from_length,
void *to, size_t to_length )
{
vips_error( "tiff2vips",
vips_error( "jp2k",
"%s", _( "libvips built without JPEG2000 support" ) );
return( -1 );
}

View File

@ -1390,6 +1390,19 @@ vips__foreign_load_jp2k_compress( VipsRegion *region,
return( 0 );
}
#else /*!HAVE_LIBOPENJP2*/
int
vips__foreign_load_jp2k_compress( VipsRegion *region,
VipsRect *tile, VipsTarget *target,
int tile_width, int tile_height,
gboolean save_as_ycc, gboolean subsample, gboolean lossless, int Q )
{
vips_error( "jp2k",
"%s", _( "libvips built without JPEG2000 support" ) );
return( -1 );
}
#endif /*HAVE_LIBOPENJP2*/
/**