MADMask is a hack of MotionMask found in Mpeg2Dec.

This filter is very much in progress so expect things to change.

This fitler is for YUY2 format only!

Usage:

    MADMask(clip,method,threshold,denoise,fast)


method: method of movement detection
	1: original MotionMask method
	2: MAD motion detection (16 pixel detection window)
	3: MSE motion detection
	4: MAD motion detection (6 pixel detection window)
	5: MAD motion detection with noise reduction and edge detection
	6: MAD with solid areas - doesn't work yet

threshold: I usually use values between 20-40

denoise: same as old MotionMask but with finer detail

fast: not working, set to false