Fixed a memory corruption bug in HPHD
This commit is contained in:
@@ -543,13 +543,13 @@ void RawImageSource::hphd_demosaic () {
|
|||||||
#else
|
#else
|
||||||
hphd_horizontal (hpmap, 0, H);
|
hphd_horizontal (hpmap, 0, H);
|
||||||
#endif
|
#endif
|
||||||
freeArray<float>(hpmap, H);
|
|
||||||
|
|
||||||
|
hphd_green (hpmap);
|
||||||
|
freeArray<float>(hpmap, H);
|
||||||
|
|
||||||
if (plistener)
|
if (plistener)
|
||||||
plistener->setProgress (0.66);
|
plistener->setProgress (0.66);
|
||||||
|
|
||||||
|
|
||||||
hphd_green (hpmap);
|
|
||||||
for (int i=0; i<H; i++) {
|
for (int i=0; i<H; i++) {
|
||||||
if (i==0)
|
if (i==0)
|
||||||
// rm, gm, bm must be recovered
|
// rm, gm, bm must be recovered
|
||||||
|
|||||||
Reference in New Issue
Block a user