Moving hev mask calculation into filter4() function. Change-Id: Ieccf2070b2b01b4135f4c5f9857667eb7825c761