Solving issue 1103: I can't process my 16MPix images (RT crash because it lacks memory)

This commit is contained in:
natureh
2011-11-08 17:40:09 +01:00
parent 47df7710b0
commit a3c123cd58
5 changed files with 269 additions and 241 deletions

View File

@@ -245,9 +245,16 @@ namespace rtengine {
scale = scales[0];
pitch = pitches[0];
// freeing as much memory as possible since the next call to idirpyr will need lots
for(int i = 1; i < maxlevel; i++) {
delete dirpyrLablo[i];
}
idirpyr(dirpyrLablo[0], dst, 0, rangefn_L, nrwt_l, nrwt_ab, pitch, scale, dnparams.luma, dnparams.chroma/*, Lcurve, abcurve*/ );
// freeing the last bunch of memory
delete dirpyrLablo[0];
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -271,16 +278,6 @@ namespace rtengine {
}
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
for(int i = 0; i < maxlevel; i++)
{
delete dirpyrLablo[i];
}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
};
void ImProcFunctions::dirpyr(LabImage* data_fine, LabImage* data_coarse, int level, \