heifload passes the new descriptor tests

This commit is contained in:
John Cupitt 2019-10-06 19:29:10 +01:00
parent 3f1eb2c7dd
commit 3eca1ff3ee
2 changed files with 8 additions and 2 deletions

View File

@ -645,6 +645,8 @@ vips_foreign_load_heif_header( VipsForeignLoad *load )
if( vips_foreign_load_heif_set_header( heif, load->out ) )
return( -1 );
vips_foreign_load_heif_close( heif );
return( 0 );
}
@ -784,6 +786,8 @@ static int
vips_foreign_load_heif_load( VipsForeignLoad *load )
{
VipsForeignLoadHeif *heif = (VipsForeignLoadHeif *) load;
VipsForeignLoadHeifClass *class =
VIPS_FOREIGN_LOAD_HEIF_GET_CLASS( heif );
VipsImage **t = (VipsImage **)
vips_object_local_array( VIPS_OBJECT( load ), 3 );
@ -792,6 +796,9 @@ vips_foreign_load_heif_load( VipsForeignLoad *load )
printf( "vips_foreign_load_heif_load: loading image\n" );
#endif /*DEBUG*/
if( class->open( heif ) )
return( -1 );
t[0] = vips_image_new();
if( vips_foreign_load_heif_set_header( heif, t[0] ) )
return( -1 );

View File

@ -12,8 +12,7 @@ if test_supported jpegload; then
fi
if test_supported heifload; then
# ./test_descriptors $test_images/Example1.heic
echo
./test_descriptors $test_images/Example1.heic
fi
if test_supported gifload; then