![]() |
iipsrv 1.3
iipsrv is an advanced high-performance feature-rich image server for web-based streamed viewing and zooming of ultra high-resolution images
|
Class to represent a single image tile. More...
#include <RawTile.h>
Public Member Functions | |
| RawTile (int tn=0, int res=0, int hs=0, int vs=0, int w=0, int h=0, int c=0, int b=0) | |
| Main constructor. | |
| ~RawTile () | |
| Destructor to free the data array if is has previously be allocated locally. | |
| RawTile (const RawTile &tile) | |
| Copy constructor - handles copying of data buffer. | |
| RawTile & | operator= (const RawTile &tile) |
| Copy assignment constructor. | |
| void | allocate (uint32_t size=0) |
| Allocate memory for the tile. | |
| void | deallocate (void *buffer) |
| Free our data buffer. | |
| void | crop (const unsigned int w, const unsigned int h) |
| Crop tile to the defined dimensions. | |
| void | triplicate () |
| Expand monochrome 1 band image to 3 by duplicating channels. | |
Public Attributes | |
| std::string | filename |
| Name of the file from which this tile comes. | |
| unsigned int | width |
| The width in pixels of this tile. | |
| unsigned int | height |
| The height in pixels of this tile. | |
| int | channels |
| The number of channels for this tile. | |
| int | bpc |
| The number of bits per channel for this tile. | |
| SampleType | sampleType |
| Sample format type (fixed or floating point) | |
| ImageEncoding | compressionType |
| Compression type. | |
| int | quality |
| Compression rate or quality. | |
| time_t | timestamp |
| Tile timestamp. | |
| int | tileNum |
| The tile number for this tile. | |
| int | resolution |
| The resolution number to which this tile belongs. | |
| int | hSequence |
| The horizontal angle to which this tile belongs. | |
| int | vSequence |
| The vertical angle to which this tile belongs. | |
| uint32_t | capacity |
| Amount of memory actually allocated in bytes. | |
| uint32_t | dataLength |
| The size of the data pointed to by the data pointer in bytes. | |
| int | memoryManaged |
| void * | data |
| Pointer to the image data. | |
Friends | |
| int | operator== (const RawTile &A, const RawTile &B) |
| Overloaded equality operator. | |
| int | operator!= (const RawTile &A, const RawTile &B) |
| Overloaded non-equality operator. | |
Class to represent a single image tile.
|
inline |
Main constructor.
| tn | tile number |
| res | resolution |
| hs | horizontal sequence angle |
| vs | vertical sequence angle |
| w | tile width |
| h | tile height |
| c | number of channels |
| b | bits per channel per sample |
|
inline |
Allocate memory for the tile.
| size | size in bytes to allocate |
References bpc, capacity, channels, data, height, memoryManaged, sampleType, and width.
Referenced by TIFFCompressor::Compress(), crop(), KakaduImage::getRegion(), JPEGImage::getRegion(), OpenJPEGImage::getRegion(), TileManager::getRegion(), JPEGImage::getTile(), KakaduImage::getTile(), OpenJPEGImage::getTile(), TPTImage::getTile(), operator=(), RawTile(), and triplicate().
|
inline |
Crop tile to the defined dimensions.
| w | width of cropped tile |
| h | height of cropped tile |
References allocate(), bpc, capacity, channels, data, dataLength, deallocate(), height, memoryManaged, and width.
Referenced by TPTImage::getTile().
| int RawTile::memoryManaged |
This tracks whether we have allocated memory locally for data or whether it is simply a pointer This is used in the destructor to make sure we deallocate correctly
Referenced by allocate(), AVIFCompressor::Compress(), JPEGCompressor::Compress(), PNGCompressor::Compress(), TIFFCompressor::Compress(), WebPCompressor::Compress(), crop(), AVIFCompressor::InitCompression(), WebPCompressor::InitCompression(), JPEGCompressor::injectMetadata(), WebPCompressor::injectMetadata(), Transform::LAB2sRGB(), operator=(), RawTile(), triplicate(), and ~RawTile().