Reduce peak memorey usage for processing non raw files in queue by width * height * 3 * bytedepth, #5170

This commit is contained in:
heckflosse 2019-02-13 00:36:57 +01:00
parent ff00226d97
commit 2d167d923b
2 changed files with 6 additions and 0 deletions

View File

@ -338,5 +338,10 @@ ColorTemp StdImageSource::getSpotWB (std::vector<Coord2D> &red, std::vector<Coor
return ColorTemp (reds / rn * img_r, greens / gn * img_g, blues / bn * img_b, equal);
}
void StdImageSource::flushRGB() {
img->allocate(0, 0);
};
}

View File

@ -101,6 +101,7 @@ public:
void getRawValues(int x, int y, int rotate, int &R, int &G, int &B) override { R = G = B = 0;}
void flushRGB () override;
};
}