Log in

View Full Version : ColorKeyMask


Wilbert
22nd April 2006, 15:22
I was looking at ColorKeyMask (layer.cpp) and saw that the function IsClose() is used. Is that an existing C++ function or is it defined in AviSynth somewhere in a place which I can't find?

hanfrunz
22nd April 2006, 15:47
if you use MS-VC++: place the mouse over "IsClose", press left mouse button, choose goto definition or goto declaration.

hope that helps

IanB
23rd April 2006, 03:24
See internal.hstatic __inline bool IsClose(int a, int b, unsigned threshold)
{ return (unsigned(a-b+threshold) <= threshold*2); }