Thread: Avisynth+
View Single Post
Old 28th January 2017, 21:49   #2921  |  Link
ajp_anton
Registered User
 
ajp_anton's Avatar
 
Join Date: Aug 2006
Location: Stockholm/Helsinki
Posts: 805
Bug in overlay?

Code:
background = blankclip(width=400,height=400,length=1,pixel_type="y8").mt_lut("255")

box = blankclip(width=100,height=100,length=1,pixel_type="y8").mt_lut("0")

mask = box.mt_lut("255")

#overlay(background, box, x=150, y=150, mask=mask)  # black box value is 0
overlay(background, box, x=150, y=150)             # black box value is 1

scriptclip("""
subtitle(string(yplanemax)+"\n"+string(yplanemin),lsp=0)
""")
Also when reversing the black and white, using a "maximum" mask (instead of no mask) results in a white box balue of 254 instead of 255.

Last edited by ajp_anton; 28th January 2017 at 21:51.
ajp_anton is offline