fix build with non-standard libheif location

This commit is contained in:
John Cupitt 2021-05-16 20:44:50 +01:00
parent dac75219b2
commit 77ab3d2562
4 changed files with 13 additions and 15 deletions

View File

@ -177,6 +177,14 @@ typedef struct _VipsForeignLoadHeif {
} VipsForeignLoadHeif;
void
vips__heif_error( struct heif_error *error )
{
if( error->code )
vips_error( "heif", "%s (%d.%d)", error->message, error->code,
error->subcode );
}
typedef struct _VipsForeignLoadHeifClass {
VipsForeignLoadClass parent_class;

View File

@ -76,16 +76,6 @@
#include "pforeign.h"
#include <libheif/heif.h>
void
vips__heif_error( struct heif_error *error )
{
if( error->code )
vips_error( "heif", "%s (%d.%d)", error->message, error->code,
error->subcode );
}
const char *vips__heif_suffs[] = {
".heic",
".heif",

View File

@ -232,11 +232,6 @@ typedef void *(*VipsNiftiMapFn)( const char *name, GValue *value, glong offset,
void *vips__foreign_nifti_map( VipsNiftiMapFn fn, void *a, void *b );
extern const char *vips__heif_suffs[];
struct heif_error;
void vips__heif_error( struct heif_error *error );
struct heif_image;
void vips__heif_image_print( struct heif_image *img );
extern const char *vips__jp2k_suffs[];
int vips__foreign_load_jp2k_decompress( VipsImage *out,

View File

@ -120,6 +120,11 @@ typedef struct _VipsForeignSaveHeif {
typedef VipsForeignSaveClass VipsForeignSaveHeifClass;
/* Defined in heif2vips.c
*/
void vips__heif_error( struct heif_error *error );
void vips__heif_image_print( struct heif_image *img );
G_DEFINE_ABSTRACT_TYPE( VipsForeignSaveHeif, vips_foreign_save_heif,
VIPS_TYPE_FOREIGN_SAVE );