Abstract: An apparatus for processing a video signal is described, comprising a means for receiving a nonreconstructed, video residue image, a means for selecting a first pixel to be processed, a means for selecting a second and third pixel, the second and third pixels being contiguous to said first pixel, and positioned right and left of the first pixel, a means for determining first, second, and third weighting factors for the first, second and third pixels respectively, a means for computing a first result by multiplying the first weighting factor with the value of said first pixel, a means for computing a second result by multiplying the second weighting factor with the value of the second pixel, a means for computing a third result by multiplying the third weighting factor with the value of the third pixel; and a means for computing a new value for said first pixel by adding the first, second and third results together.