Merge "Moving hev mask calculation into filter4() function."