Skip to content

Commit

Permalink
comment Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
pinterf committed Mar 11, 2022
1 parent ec22279 commit 0d9c160
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions avs_core/filters/levels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1500,6 +1500,8 @@ static bool ProcessPixel(double X, double Y, double startHue, double endHue,
if (p == 0.0) return false;

// Interpolation range is +/-p for p>0
// 180 is not in degrees!
// its sqrt(127^2 + 127^2): max overshoot for 8 bits; U and V is 0 +/- 127
const double max = min(maxSat + p, 180.0);
const double min = ::max(minSat - p, 0.0);

Expand Down

0 comments on commit 0d9c160

Please sign in to comment.