Formatted all .cc and .h code in rtengine, rtexif and rtgui using astyle

This commit is contained in:
DrSlony
2015-08-11 11:55:03 +02:00
parent effb46c3e1
commit 0e0cfb9b25
452 changed files with 133354 additions and 99460 deletions

View File

@@ -21,19 +21,20 @@
//The image is divided in blocks even on single processor machine, mainly to decrease memory consumption
//maximum number of pixel per block
#define PIXELS_PER_BLOCK 250000
#define PIXELS_PER_BLOCK 250000
/*
* Used to specify a subregion of an image and to specify a cell in this subregion
*/
class Block {
public:
unsigned int posX;
unsigned int posY;
unsigned int width; // If 0, use the full width of the image
unsigned int height; // If 0, use the full height of the image
Block();
Block(unsigned int x, unsigned int y, unsigned int w, unsigned int h);
class Block
{
public:
unsigned int posX;
unsigned int posY;
unsigned int width; // If 0, use the full width of the image
unsigned int height; // If 0, use the full height of the image
Block();
Block(unsigned int x, unsigned int y, unsigned int w, unsigned int h);
};
/*
@@ -41,21 +42,22 @@ class Block {
* processor, and tries to create blocks as square as possible. There can be a different number of block on
* each line, and the pixel per block requested may be oversized by very few percents.
*/
class Slicer {
protected:
bool portrait; // Orientation of the sub-region
unsigned int imWidth; // Image width
unsigned int imHeight; // Image height
Block region; // Sub-region to process
double hBlockNumber; // Horizontal number of block for the sub-region
unsigned int vBlockNumber; // Vertical number of block for the sub-region
double blockWidth;
class Slicer
{
protected:
bool portrait; // Orientation of the sub-region
unsigned int imWidth; // Image width
unsigned int imHeight; // Image height
Block region; // Sub-region to process
double hBlockNumber; // Horizontal number of block for the sub-region
unsigned int vBlockNumber; // Vertical number of block for the sub-region
double blockWidth;
public:
unsigned int blockNumber; // number of block for the sub-region
unsigned int maxPixelNumber; // number of pixel of the biggest block (for memory allocation purpose)
Slicer(unsigned int imageWidth, unsigned int imageHeight, Block *subRegion, unsigned int pixels);
void get_block(unsigned int blockId, Block *block);
public:
unsigned int blockNumber; // number of block for the sub-region
unsigned int maxPixelNumber; // number of pixel of the biggest block (for memory allocation purpose)
Slicer(unsigned int imageWidth, unsigned int imageHeight, Block *subRegion, unsigned int pixels);
void get_block(unsigned int blockId, Block *block);
};
#endif