Skip to content

Commit

Permalink
Overlay: Unlock softlight
Browse files Browse the repository at this point in the history
Fixed in R51-test1
  • Loading branch information
HolyWu committed Jun 28, 2020
1 parent c062b57 commit 54b8a25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions havsfunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -5416,6 +5416,7 @@ def KNLMeansCL(clip, d=None, a=None, s=None, h=None, wmode=None, wref=None, devi
# pinlight
# reflect
# screen
# softlight
# subtract
# vividlight
def Overlay(base, overlay, x=0, y=0, mask=None, opacity=1.0, mode='normal', planes=None, mask_first_plane=True):
Expand Down Expand Up @@ -5530,8 +5531,8 @@ def Overlay(base, overlay, x=0, y=0, mask=None, opacity=1.0, mode='normal', plan
expr = f'y {peak} >= y x x * {peak} y - / ?'
elif mode =='screen':
expr = f'{peak} {peak} x - {peak} y - * {peak} / -'
# elif mode == 'softlight': # Expr hangs for unknown reason. Disabled until Expr gets fixed.
# expr = f'x {neutral} > y {peak} y - x {neutral} - * {neutral} / 0.5 y {neutral} - abs {peak} / - * + y y {neutral} x - {neutral} / * 0.5 y {neutral} - abs {peak} / - * - ?'
elif mode == 'softlight':
expr = f'x {neutral} > y {peak} y - x {neutral} - * {neutral} / 0.5 y {neutral} - abs {peak} / - * + y y {neutral} x - {neutral} / * 0.5 y {neutral} - abs {peak} / - * - ?'
elif mode == 'subtract':
expr = f'x y -'
elif mode == 'vividlight':
Expand Down

0 comments on commit 54b8a25

Please sign in to comment.