This commit is contained in:
John Cupitt 2010-08-02 16:42:59 +00:00
parent a3f8ddadfc
commit f76578fa4f
3 changed files with 5 additions and 3 deletions

View File

@ -9,6 +9,7 @@
- remove liboil dependency, we will use Orc instead
- various small cleanups (thanks Tim)
- add lcms2 support
- VImage(filename) defaults to "rd" mode
12/5/10 started 7.22.2
- the conditional image of ifthenelse can be any format, a (!=0) is added if

View File

@ -143,7 +143,7 @@ void VImage::refblock::removeref() throw( VError )
delete this;
}
// Init with name ... mode defaults to "r"
// Init with name ... mode defaults to "rd"
VImage::VImage( const char *name, const char *mode ) throw( VError )
{
_ref = new refblock;

View File

@ -191,7 +191,7 @@ public:
*/
// Plain constructors
VImage( const char *name, const char *mode = "r" ) throw( VError );
VImage( const char *name, const char *mode = "rd" ) throw( VError );
VImage( void *data, int width, int height,
int bands, TBandFmt format ) throw( VError );
VImage( _VipsImage *image );
@ -202,8 +202,9 @@ public:
// "file.jpg", "temp.v" );
// Runs im_jpeg2vips to the temp file, then opens that and returns
// it. Useful for opening very large files without using a lot of RAM.
// Now superceeded by the format API, though that's not yet wrapped in
// Now superseded by the format API, though that's not yet wrapped in
// C++
// Also replaced by the new default "rd" mode
static VImage convert2disc( const char* convert,
const char* in, const char* disc ) throw( VError );