Skip to content

Commit

Permalink
renderer: disable peak detection with per-scene metadata
Browse files Browse the repository at this point in the history
Redundant in this case, since the per-scene values are both
authoritative and significantly more accurate.
  • Loading branch information
haasn committed Feb 13, 2023
1 parent edad2c4 commit 462ec51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,9 @@ static void hdr_update_peak(struct pass_state *pass)
if (pass->img.color.nominal_max <= pass->target.color.nominal_max + 1e-6)
goto cleanup; // no adaptation needed

if (pass->img.color.hdr.scene_avg)
goto cleanup; // per-scene values already known

if (params->lut && params->lut_type == PL_LUT_CONVERSION)
goto cleanup; // LUT handles tone mapping

Expand Down

0 comments on commit 462ec51

Please sign in to comment.