move format to a separate branch, revert trunk

This commit is contained in:
John Cupitt 2008-05-25 13:37:15 +00:00
parent 1413372442
commit e910c95e8a
3 changed files with 21 additions and 30 deletions

5
TODO
View File

@ -1,3 +1,8 @@
- when we open with a mmap window and later do im_incheck(), do we remap the
whole file?
- remove a lot of stuff
- read_vips() in im_open.c:179 needs moving to format and breaking into is_a,
header, load and save, as tiff etc.

View File

@ -139,33 +139,6 @@ Modified:
#include <dmalloc.h>
#endif /*WITH_DMALLOC*/
/* Suffix sets.
*/
static const char *im_suffix_vips[] = {
"v", "",
NULL
};
static const char *im_suffix_tiff[] = {
"tif", "tiff",
NULL
};
static const char *im_suffix_jpeg[] = {
"jpeg", "jpg", "jfif", "jpe",
NULL
};
static const char *im_suffix_ppm[] = {
"ppm", "pbm", "pgm",
NULL
};
static const char *im_suffix_png[] = {
"png",
NULL
};
static const char *im_suffix_csv[] = {
"csv",
NULL
};
/* Progress feedback. Only really useful for testing, tbh.
*/
int im__progress = 0;

View File

@ -1,7 +1,8 @@
/* Read a VIPS file into a IMAGE *
/* Read and write a VIPS file into an IMAGE *
*
* 22/5/08
* - from im_open.c, im_openin.c, im_desc_hd.c, im_readhist.c
* - from im_open.c, im_openin.c, im_desc_hd.c, im_readhist.c,
* im_openout.c
*/
/*
@ -729,7 +730,7 @@ im_openinrw( IMAGE *image )
* ":w" at the end of the filename means we open read-write.
*/
IMAGE *
im_open_vips( const char *filename )
im_vips_open( const char *filename )
{
char name[FILENAME_MAX];
char mode[FILENAME_MAX];
@ -804,3 +805,15 @@ im_open_vips( const char *filename )
return( im );
}
IMAGE *
im_vips_openout( const char *filename )
{
IMAGE *image;
if( !(image = im_init( filename )) )
return( NULL );
image->dtype = IM_OPENOUT;
return( image );
}