Thread: HAvsFunc
View Single Post
Old 6th March 2020, 03:10   #509  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,345
Does the overlay function work for RGBS ? It seems values are incorrect, but correct with maskedmerge

Code:
a = core.std.BlankClip(format=vs.RGBS, color=[1, 1, 1])
b = core.std.BlankClip(format=vs.RGBS, color=[2, 2, 2])
c = core.std.BlankClip(format=vs.RGBS, color=[0.5, 0.5, 0.5])

opacity = 0.5

msk = core.std.BlankClip(a, color=[opacity, opacity, opacity])

ov = haf.Overlay(a,b,opacity=0.5)

mm = core.std.MaskedMerge(a,b,mask=msk)

ov.set_output()
#mm.set_output()

For example, a,b with opacity 0.5 correctly gives RGB [1.5,1.5,1.5] with maskedmerge, but some error value for overlay
poisondeathray is offline