This commit is contained in:
John Cupitt 2009-03-02 17:42:26 +00:00
parent 94217760f9
commit f248a246b5
4 changed files with 20 additions and 8 deletions

3
TODO
View File

@ -1,8 +1,5 @@
- im_rad2vips should be radiance.c? same for im_mat2vips? new naming
convention
- move im_shrink & friends to resample?
match_linear, match_linear_search?

View File

@ -9,10 +9,8 @@ libformat_la_SOURCES = \
im_exr2vips.c \
im_jpeg2vips.c \
im_magick2vips.c \
im_mat2vips.c \
im_png2vips.c \
im_ppm2vips.c \
im_rad2vips.c \
im_raw2vips.c \
im_tiff2vips.c \
im_tile_cache.c \
@ -21,6 +19,8 @@ libformat_la_SOURCES = \
im_vips2png.c \
im_vips2ppm.c \
im_vips2tiff.c \
im_vips2raw.c
im_vips2raw.c \
matlab.c \
radiance.c
INCLUDES = -I${top_srcdir}/include @VIPS_CFLAGS@ @VIPS_INCLUDES@

View File

@ -27,6 +27,22 @@
*/
/*
Remaining issues:
+ the whole image is unpacked to a 3-band float and so will (potentially)
need a fair bit of memory
we could just read RGBE/XYZE and leave it at 4 bytes per pixel, then
unpack on the fly with an operator along the lines of LabQ2Lab
+ it ignores some header fields, like VIEW and DATE
+ it will not rotate/flip as the FORMAT string asks
*/
/*
Sections of this reader from Greg Ward and Radiance with kind
@ -936,8 +952,7 @@ rad2vips_get_data( Read *read, FILE *fin, IMAGE *im )
for( y = 0; y < im->Ysize; y++ ) {
if( freadscan( read->buf, im->Xsize, fin ) ) {
im_error( "rad2vips", "%s",
_( "read error" ) );
im_error( "rad2vips", "%s", _( "read error" ) );
return( -1 );
}
if( im_writeline( y, im, (void *) read->buf ) )