7 #include "ProcessByTile.h"
8 #include "TileManager.h"
20 void ProcessByTile::SetTileSize(
const int ns,
const int nl) {
40 void ProcessByTile::StartProcess(
void
44 VerifyCubes(InputOutput);
45 SetBricks(InputOutput);
46 ProcessByBrick::StartProcess(funct);
63 void ProcessByTile::StartProcess(
void funct(
Buffer &in)) {
68 ProcessByBrick::StartProcess(funct);
86 void ProcessByTile::StartProcess(
void funct(std::vector<Buffer *> &in,
87 std::vector<Buffer *> &out)) {
89 VerifyCubes(InputOutputList);
90 SetBricks(InputOutputList);
91 ProcessByBrick::StartProcess(funct);
101 void ProcessByTile::EndProcess() {
102 p_tileSizeSet =
false;
103 ProcessByBrick::EndProcess();
110 void ProcessByTile::Finalize() {
111 p_tileSizeSet =
false;
112 ProcessByBrick::Finalize();
116 void ProcessByTile::SetBricks(IOCubes cn){
124 string m =
"Use the SetTileSize method to set the tile size";
125 throw IException(IException::Programmer, m, _FILEINFO_);
128 ProcessByBrick::SetBrickSize(p_tileSamples, p_tileLines, 1);
135 string m =
"Use the SetTileSize method to set the tile size";
136 throw IException(IException::Programmer, m, _FILEINFO_);
139 ProcessByBrick::SetBrickSize(p_tileSamples, p_tileLines, 1);
143 case InputOutputList:
146 string m =
"Use the SetTileSize method to set the tile size";
147 throw IException(IException::Programmer, m, _FILEINFO_);
150 ProcessByBrick::SetBrickSize(p_tileSamples, p_tileLines, 1);