iipsrv  1.1
iipsrv is an advanced high-performance feature-rich image server for web-based streamed viewing and zooming of ultra high-resolution images
TileManager Class Reference

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, Compressor *j, Logger *s, int l)
 Constructor. More...
 
RawTile getTile (int resolution, int tile, int xangle, int yangle, int layers, CompressionType c)
 Get a tile from the cache. More...
 
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. More...
 

Detailed Description

Class to manage access to the tile cache and tile cropping.

Constructor & Destructor Documentation

◆ TileManager()

TileManager::TileManager ( Cache tc,
IIPImage im,
Watermark w,
Compressor j,
Logger s,
int  l 
)
inline

Constructor.

Parameters
tcpointer to tile cache object
impointer to IIPImage object
wpointer to watermark object
jpointer to JPEGCompressor object
spointer to output file stream
llogging level

References getRegion(), and getTile().

Member Function Documentation

◆ getRegion()

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.

Parameters
resresolution number
xanglehorizontal sequence number
yanglevertical sequence number
layersnumber of quality layers within image to decode
xleft offset with respect to full image
ytop offset with respect to full image
wwidth of region requested
hheight of region requested
Returns
RawTile

Referenced by TileManager().

◆ getTile()

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.

Parameters
resolutionresolution number
tiletile number
xanglehorizontal sequence number
yanglevertical sequence number
layersnumber of quality layers within image to decode
cCompressionType
Returns
RawTile

Referenced by TileManager().


The documentation for this class was generated from the following file: