Highlight Reconstruction/Colour propagation uses uninitialised values, Issue 2293
This commit is contained in:
@@ -652,7 +652,7 @@ void RawImageSource :: HLRecovery_inpaint (float** red, float** green, float** b
|
|||||||
//%%%%%%%%%%%%%%%%%%%%%%%
|
//%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
//estimate recovered values using modified HLRecovery_blend algorithm
|
//estimate recovered values using modified HLRecovery_blend algorithm
|
||||||
|
|
||||||
float rgb[ColorCount], rgb_blend[ColorCount], cam[2][ColorCount], lab[2][ColorCount], sum[2], chratio;
|
float rgb[ColorCount], rgb_blend[ColorCount] = {}, cam[2][ColorCount], lab[2][ColorCount], sum[2], chratio;
|
||||||
|
|
||||||
// Copy input pixel to rgb so it's easier to access in loops
|
// Copy input pixel to rgb so it's easier to access in loops
|
||||||
rgb[0] = pixel[0]; rgb[1] = pixel[1]; rgb[2] = pixel[2];
|
rgb[0] = pixel[0]; rgb[1] = pixel[1]; rgb[2] = pixel[2];
|
||||||
|
@@ -88,6 +88,7 @@ RawImageSource::RawImageSource ()
|
|||||||
camProfile = NULL;
|
camProfile = NULL;
|
||||||
embProfile = NULL;
|
embProfile = NULL;
|
||||||
rgbSourceModified = false;
|
rgbSourceModified = false;
|
||||||
|
hlmax[0] = hlmax[1] = hlmax[2] = hlmax[3] = 0.f;
|
||||||
}
|
}
|
||||||
|
|
||||||
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
@@ -973,7 +974,7 @@ int RawImageSource::load (Glib::ustring fname, bool batch) {
|
|||||||
plistener=NULL; // This must be reset, because only load() is called through progressConnector
|
plistener=NULL; // This must be reset, because only load() is called through progressConnector
|
||||||
t2.set();
|
t2.set();
|
||||||
if( settings->verbose )
|
if( settings->verbose )
|
||||||
printf("Load %s: %d µsec\n",fname.c_str(), t2.etime(t1));
|
printf("Load %s: %d <EFBFBD>sec\n",fname.c_str(), t2.etime(t1));
|
||||||
|
|
||||||
return 0; // OK!
|
return 0; // OK!
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user