34 enum ColourSpaces { GREYSCALE, sRGB, CIELAB };
37 enum CompressionType { UNCOMPRESSED, JPEG, DEFLATE };
112 RawTile(
int tn = 0,
int res = 0,
int hs = 0,
int vs = 0,
113 int w = 0,
int h = 0,
int c = 0,
int b = 0 ) {
124 if(
bpc==16)
delete[] (
unsigned short*)
data;
125 else delete[] (
unsigned char*)
data;
int vSequence
The vertical angle to which this tile belongs.
Definition: RawTile.h:57
bool padded
Padded.
Definition: RawTile.h:99
int resolution
The resolution to which this tile belongs.
Definition: RawTile.h:51
RawTile(const RawTile &tile)
Copy constructor - handles copying of data buffer.
Definition: RawTile.h:131
void * data
Pointer to the image data.
Definition: RawTile.h:76
unsigned int height
The height in pixels of this tile.
Definition: RawTile.h:90
int hSequence
The horizontal angle to which this tile belongs.
Definition: RawTile.h:54
int tileNum
The tile number for this tile.
Definition: RawTile.h:48
RawTile & operator=(const RawTile &tile)
Copy assignment constructor.
Definition: RawTile.h:159
CompressionType compressionType
Compression type.
Definition: RawTile.h:60
int bpc
The number of bits per channel for this tile.
Definition: RawTile.h:96
int memoryManaged
Definition: RawTile.h:81
std::string filename
Name of the file from which this tile comes.
Definition: RawTile.h:66
unsigned int width
The width in pixels of this tile.
Definition: RawTile.h:87
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.
Definition: RawTile.h:112
~RawTile()
Destructor to free the data array if is has previously be allocated locally.
Definition: RawTile.h:122
int channels
The number of channels for this tile.
Definition: RawTile.h:93
int quality
Compression rate or quality.
Definition: RawTile.h:63
friend int operator!=(const RawTile &A, const RawTile &B)
Overloaded non-equality operator.
Definition: RawTile.h:208
friend int operator==(const RawTile &A, const RawTile &B)
Overloaded equality operator.
Definition: RawTile.h:193
time_t timestamp
Tile timestamp.
Definition: RawTile.h:69
Class to represent a single image tile.
Definition: RawTile.h:43
int size()
Return the size of the data.
Definition: RawTile.h:189
int dataLength
The size of the data pointed to by data.
Definition: RawTile.h:84