Reduce peak memorey usage for processing non raw files in queue by width * height * 3 * bytedepth, #5170
This commit is contained in:
parent
ff00226d97
commit
2d167d923b
@ -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);
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user