<!-- manual page source format generated by PolyglotMan v3.2, --> <!-- available at http://polyglotman.sourceforge.net/ --> <html> <head> <title>IM_TILE_CACHE(3) manual page</title> </head> <body bgcolor='white'> <a href='#toc'>Table of Contents</a><p> <h2><a name='sect0' href='#toc0'>Name</a></h2> im_tile_cache - cache an image, tilewise <h2><a name='sect1' href='#toc1'>Synopsis</a></h2> #include <vips/vips.h> <p> int <br> im_tile_cache( IMAGE *in, IMAGE *out, <br> <tt> </tt> <tt> </tt> int tile_width, int tile_height, int max_tiles );<br> <p> <h2><a name='sect2' href='#toc2'>Description</a></h2> <a href='tile_cache.3.html'><b>tile_cache(3)</a> </b> behaves rather like <a href='im_copy.3.html'><b>im_copy(3)</a> </b> between images <b>in</b> and <b>out,</b> except that it keeps a cache of computed pixels. This cache is made of up to <b>max_tiles</b> tiles (a value of -1 for <b>max</b> means any number of tiles), and each tile is of size <b>tile_width</b> by <b>tile_height</b> pixels. Each cache tile is made with a single call to <a href='im_prepare.3.html'><b>im_prepare(3)</a> .</b> <p> This is a lower-level operation than <a href='im_cache.3.html'><b>im_cache(3)</b></a> since it does no subdivision. It is suitable for caching the output of operations like <a href='im_exr2vips.3.html'><b>im_exr2vips(3)</b></a> on tiled images. <p> <h2><a name='sect3' href='#toc3'>Return Value</a></h2> The function returns 0 on success, and non-zero on error, setting im_error(). <h2><a name='sect4' href='#toc4'>See Also</a></h2> <a href='im_prepare.3.html'>im_prepare(3)</a> <h2><a name='sect5' href='#toc5'>Author</a></h2> J Cupitt, 2006 <p> <hr><p> <a name='toc'><b>Table of Contents</b></a><p> <ul> <li><a name='toc0' href='#sect0'>Name</a></li> <li><a name='toc1' href='#sect1'>Synopsis</a></li> <li><a name='toc2' href='#sect2'>Description</a></li> <li><a name='toc3' href='#sect3'>Return Value</a></li> <li><a name='toc4' href='#sect4'>See Also</a></li> <li><a name='toc5' href='#sect5'>Author</a></li> </ul> </body> </html>