34enum ColourSpaces { NONE, GREYSCALE, sRGB, CIELAB, BINARY };
37enum CompressionType { UNCOMPRESSED, JPEG, DEFLATE, PNG };
40enum SampleType { FIXEDPOINT, FLOATINGPOINT };
113 RawTile(
int tn = 0,
int res = 0,
int hs = 0,
int vs = 0,
114 int w = 0,
int h = 0,
int c = 0,
int b = 0 ) {
128 else delete[] (
unsigned int*)
data;
131 delete[] (
unsigned short*)
data;
134 delete[] (
unsigned char*)
data;
Class to represent a single image tile.
Definition: RawTile.h:45
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:113
unsigned int width
The width in pixels of this tile.
Definition: RawTile.h:85
bool padded
Padded.
Definition: RawTile.h:100
std::string filename
Name of the file from which this tile comes.
Definition: RawTile.h:68
int bpc
The number of bits per channel for this tile.
Definition: RawTile.h:94
friend int operator!=(const RawTile &A, const RawTile &B)
Overloaded non-equality operator.
Definition: RawTile.h:243
unsigned int size()
Return the size of the data.
Definition: RawTile.h:224
time_t timestamp
Tile timestamp.
Definition: RawTile.h:71
int vSequence
The vertical angle to which this tile belongs.
Definition: RawTile.h:59
RawTile & operator=(const RawTile &tile)
Copy assignment constructor.
Definition: RawTile.h:182
friend int operator==(const RawTile &A, const RawTile &B)
Overloaded equality operator.
Definition: RawTile.h:228
~RawTile()
Destructor to free the data array if is has previously be allocated locally.
Definition: RawTile.h:123
int tileNum
The tile number for this tile.
Definition: RawTile.h:50
int resolution
The resolution to which this tile belongs.
Definition: RawTile.h:53
unsigned int dataLength
The size of the data pointed to by data.
Definition: RawTile.h:82
void * data
Pointer to the image data.
Definition: RawTile.h:74
RawTile(const RawTile &tile)
Copy constructor - handles copying of data buffer.
Definition: RawTile.h:142
SampleType sampleType
Sample format type (fixed or floating point)
Definition: RawTile.h:97
CompressionType compressionType
Compression type.
Definition: RawTile.h:62
int memoryManaged
Definition: RawTile.h:79
int channels
The number of channels for this tile.
Definition: RawTile.h:91
int quality
Compression rate or quality.
Definition: RawTile.h:65
int hSequence
The horizontal angle to which this tile belongs.
Definition: RawTile.h:56
unsigned int height
The height in pixels of this tile.
Definition: RawTile.h:88