Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b1a2cc1 authored by Dichen Zhang's avatar Dichen Zhang Committed by Android (Google) Code Review
Browse files

Merge "libjpegrecoverymapmath: simplify applyRecovery expression"

parents 771dc1c9 d3bb40ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -296,7 +296,7 @@ uint8_t encodeRecovery(float y_sdr, float y_hdr, float hdr_ratio) {

static float applyRecovery(float e, float recovery, float hdr_ratio) {
  if (e <= 0.0f) return 0.0f;
  return exp2(log2(e) + recovery * log2(hdr_ratio));
  return e * pow(hdr_ratio, recovery);
}

Color applyRecovery(Color e, float recovery, float hdr_ratio) {