From 2d167d923b66655e612f50dc77100a1145b19e1b Mon Sep 17 00:00:00 2001 From: heckflosse Date: Wed, 13 Feb 2019 00:36:57 +0100 Subject: [PATCH] Reduce peak memorey usage for processing non raw files in queue by width * height * 3 * bytedepth, #5170 --- rtengine/stdimagesource.cc | 5 +++++ rtengine/stdimagesource.h | 1 + 2 files changed, 6 insertions(+) diff --git a/rtengine/stdimagesource.cc b/rtengine/stdimagesource.cc index 37d438863..298cf16ef 100644 --- a/rtengine/stdimagesource.cc +++ b/rtengine/stdimagesource.cc @@ -338,5 +338,10 @@ ColorTemp StdImageSource::getSpotWB (std::vector &red, std::vectorallocate(0, 0); +}; + + } diff --git a/rtengine/stdimagesource.h b/rtengine/stdimagesource.h index 500641f72..8f16880dc 100644 --- a/rtengine/stdimagesource.h +++ b/rtengine/stdimagesource.h @@ -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; }; }