iipsrv
0.9.9
|
Class to manage access to the tile cache and tile cropping. More...
#include <TileManager.h>
Public Member Functions | |
TileManager (Cache *tc, IIPImage *im, Watermark *w, JPEGCompressor *j, std::ofstream *s, int l) | |
Constructor. | |
RawTile | getTile (int resolution, int tile, int xangle, int yangle, int layers, CompressionType c) |
Get a tile from the cache. |
Class to manage access to the tile cache and tile cropping.
|
inline |
Constructor.
tc | pointer to tile cache object |
im | pointer to IIPImage object |
w | pointer to watermark object |
j | pointer to JPEGCompressor object |
s | pointer to output file stream |
l | logging level |
RawTile TileManager::getTile | ( | int | resolution, |
int | tile, | ||
int | xangle, | ||
int | yangle, | ||
int | layers, | ||
CompressionType | c | ||
) |
Get a tile from the cache.
If the JPEG tile already exists in the cache, use that, otherwise check for an uncompressed tile. If that does not exist either, extract a tile from the image. If this is an edge tile, crop it.
resolution | resolution number |
tile | tile number |
xangle | horizontal sequence number |
yangle | vertical sequence number |
layers | number of quality layers within image to decode |
c | CompressionType |