split off the old loader as gifload2

This commit is contained in:
John Cupitt 2019-02-09 12:23:21 +00:00
parent 2968bee3fa
commit a454225ef7
4 changed files with 1295 additions and 0 deletions

View File

@ -7,6 +7,7 @@ libforeign_la_SOURCES = \
quantise.c \
exif.c \
gifload.c \
gifload2.c \
cairo.c \
pdfload.c \
pdfload_pdfium.c \

View File

@ -1832,6 +1832,9 @@ vips_foreign_operation_init( void )
extern GType vips_foreign_load_gif_get_type( void );
extern GType vips_foreign_load_gif_file_get_type( void );
extern GType vips_foreign_load_gif_buffer_get_type( void );
extern GType vips_foreign_load_gif2_get_type( void );
extern GType vips_foreign_load_gif2_file_get_type( void );
extern GType vips_foreign_load_gif2_buffer_get_type( void );
vips_foreign_load_csv_get_type();
vips_foreign_save_csv_get_type();
@ -1881,6 +1884,9 @@ vips_foreign_operation_init( void )
vips_foreign_load_gif_get_type();
vips_foreign_load_gif_file_get_type();
vips_foreign_load_gif_buffer_get_type();
vips_foreign_load_gif2_get_type();
vips_foreign_load_gif2_file_get_type();
vips_foreign_load_gif2_buffer_get_type();
#endif /*HAVE_GIFLIB*/
#ifdef HAVE_GSF

1283
libvips/foreign/gifload2.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -560,6 +560,11 @@ int vips_gifload( const char *filename, VipsImage **out, ... )
int vips_gifload_buffer( void *buf, size_t len, VipsImage **out, ... )
__attribute__((sentinel));
int vips_gifload2( const char *filename, VipsImage **out, ... )
__attribute__((sentinel));
int vips_gifload2_buffer( void *buf, size_t len, VipsImage **out, ... )
__attribute__((sentinel));
int vips_niftiload( const char *filename, VipsImage **out, ... )
__attribute__((sentinel));
int vips_niftisave( VipsImage *in, const char *filename, ... )