Skip to content

Commit

Permalink
avfilter/tonemap_videotoolbox: use rec2020 color primaries for relaiv…
Browse files Browse the repository at this point in the history
…e luminance
  • Loading branch information
gnattu committed Jul 23, 2024
1 parent 3edaea9 commit 38e7850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion debian/patches/0069-add-tonemap-videotoolbox.patch
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ Index: FFmpeg/libavfilter/metal/vf_tonemap_videotoolbox.metal
+ if (is_tone_mode_max) {
+ sig = fmax(fmax3(*r4, *g4, *b4), FLOAT_EPS);
+ } else {
+ sig = fmax((*r4 * .2126f + *g4 * .7152f + *b4 * .0722f), FLOAT_EPS);
+ sig = fmax((*r4 * 0.2627f + *g4 * 0.678f + *b4 * 0.0593f), FLOAT_EPS);
+ }
+ if (is_tone_func_bt2390) {
+ sig = fmin(sig, peak);
Expand Down

0 comments on commit 38e7850

Please sign in to comment.