iipsrv 1.2
iipsrv is an advanced high-performance feature-rich image server for web-based streamed viewing and zooming of ultra high-resolution images
|
Class to manage access to the tile cache. More...
#include <TileManager.h>
Public Member Functions | |
TileManager (Cache *tc, IIPImage *im, Watermark *w, Compressor *c, Logger *s, int l) | |
Constructor. | |
RawTile | getTile (int resolution, int tile, int xangle, int yangle, int layers, CompressionType c) |
Get a tile from the cache. | |
RawTile | getRegion (unsigned int res, int xangle, int yangle, int layers, unsigned int x, unsigned int y, unsigned int w, unsigned int h) |
Generate a complete region. | |
Class to manage access to the tile cache.
|
inline |
Constructor.
tc | pointer to tile cache object |
im | pointer to IIPImage object |
w | pointer to watermark object |
c | pointer to Compressor object |
s | pointer to Logger object |
l | logging level |
RawTile TileManager::getRegion | ( | unsigned int | res, |
int | xangle, | ||
int | yangle, | ||
int | layers, | ||
unsigned int | x, | ||
unsigned int | y, | ||
unsigned int | w, | ||
unsigned int | h | ||
) |
Generate a complete region.
Build up an arbitrary region by extracting tiles from the cache by using getTile function. Data returned as uncompressed data.
res | resolution number |
xangle | horizontal sequence number |
yangle | vertical sequence number |
layers | number of quality layers within image to decode |
x | left offset with respect to full image |
y | top offset with respect to full image |
w | width of region requested |
h | height of region requested |
RawTile TileManager::getTile | ( | int | resolution, |
int | tile, | ||
int | xangle, | ||
int | yangle, | ||
int | layers, | ||
CompressionType | c | ||
) |
Get a tile from the cache.
If the encoded 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.
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 |