A method of decoding video data, the method comprising: determining sample values for samples of a post-deblock-filtered, reconstructed block of video data; performing a filtering operation on a sample value of a selected sample of the post-deblock-filtered, reconstructed block of the video data to generate a filtered block of video data comprising a modified sample value; and outputting the filtered block of video data, wherein performing the filtering operation comprises: determining first, second, third and fourth difference values that correspond to respective differences between the sample value of the selected sample and sample values of first, second, third and fourth neighboring samples, wherein the first neighboring sample is to the left of the selected sample, the second neighboring sample is to the right of the selected sample, the third neighboring sample is above the selected sample, and the fourth neighboring sample is below the selected sample; multiplying the first, second, third and fourth difference values by respective first, second third and fourth weighting parameters to determine first, second, third and fourth weighted difference values; and adding the first, second, third and fourth weighted difference values to the sample value of the selected sample to determine the modified sample value. determining sample values for samples of a post-deblock-filtered, reconstructed block of video data; performing a filtering operation on a sample value of a selected sample of the post-deblock-filtered, reconstructed block of the video data to generate a filtered block of video data comprising a modified sample value; and outputting the filtered block of video data, wherein performing the filtering operation comprises: determining first, second, third and fourth difference values that correspond to respective differences between the sample value of the selected sample and sample values of first, second, third and fourth neighboring samples, wherein the first neighboring sample is to the left of the selected sample, the second neighboring sample is to the right of the selected sample, the third neighboring sample is above the selected sample, and the fourth neighboring sample is below the selected sample; multiplying the first, second, third and fourth difference values by respective first, second third and fourth weighting parameters to determine first, second, third and fourth weighted difference values; and adding the first, second, third and fourth weighted difference values to the sample value of the selected sample to determine the modified sample value. determining first, second, third and fourth difference values that correspond to respective differences between the sample value of the selected sample and sample values of first, second, third and fourth neighboring samples, wherein the first neighboring sample is to the left of the selected sample, the second neighboring sample is to the right of the selected sample, the third neighboring sample is above the selected sample, and the fourth neighboring sample is below the selected sample; multiplying the first, second, third and fourth difference values by respective first, second third and fourth weighting parameters to determine first, second, third and fourth weighted difference values; and adding the first, second, third and fourth weighted difference values to the sample value of the selected sample to determine the modified sample value. <EOS>