Merge commit 'de5f92937857cccc45080c59c6236561416e5ece' into libraw-copylib

Upgrade LibRaw to 0.21.2.
This commit is contained in:
Lawrence Lee
2023-12-31 12:52:34 -08:00
19 changed files with 150 additions and 49 deletions

View File

@@ -39,6 +39,7 @@ void LibRaw::wavelet_denoise()
static const float noise[] = {0.8002f, 0.2735f, 0.1202f, 0.0585f,
0.0291f, 0.0152f, 0.0080f, 0.0044f};
if (iwidth < 65 || iheight < 65) return;
while (maximum << scale < 0x10000)
scale++;
@@ -135,6 +136,9 @@ void LibRaw::wavelet_denoise()
static const float noise[] = {0.8002, 0.2735, 0.1202, 0.0585,
0.0291, 0.0152, 0.0080, 0.0044};
if (iwidth < 65 || iheight < 65)
return;
while (maximum << scale < 0x10000)
scale++;
maximum <<= --scale;
@@ -324,6 +328,9 @@ void LibRaw::recover_highlights()
grow = pow(2.0, 4 - highlight);
FORC(unsigned(colors)) hsat[c] = 32000 * pre_mul[c];
FORC(unsigned(colors))
if(hsat[c]<1)
return;
for (kc = 0, c = 1; c < (unsigned)colors; c++)
if (pre_mul[kc] < pre_mul[c])
kc = c;