Skip to content

Commit

Permalink
Use float variant of pow function
Browse files Browse the repository at this point in the history
  • Loading branch information
detomon committed May 11, 2024
1 parent 1e00c35 commit 427a34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BKData.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ static void BKDataReduceBits(BKFrame* outFrames, BKFrame* frames, BKSize length,
dither = (dither & 1) ? -deltaDither : deltaDither;

// smooth dither
float ditherFactor = pow(BKAbs((sum / ditherSmoothLength)) / maxValue, ditherCurve);
float ditherFactor = powf(BKAbs((sum / ditherSmoothLength)) / maxValue, ditherCurve);
ditherFactor = (1.0 - ditherSlope) + (ditherFactor * ditherSlope);
dither *= ditherFactor;

Expand Down

0 comments on commit 427a34d

Please sign in to comment.