A method for filtering control applicable to a block of multiple pixels (11, 13, 15, 17) in a video frame, each pixel (11,13,15,17) having a respective pixel value, said method comprising: calculating a first filter decision value for said block, by only using pixels of said block, based on: p ⁢ 2 i - 2 ⁢ p ⁢ 1 i + p ⁢ 0 i wherein i=0...N-1 and N is the number of lines of pixels of said block, a line of pixels being a row or a column of pixels, wherein p 0 i denotes a pixel value of a pixel closest to, in a first line of pixels (11, 13, 15, 17) in said block, a block boundary to a neighboring block of multiple pixels (21, 23, 25,27) in said video frame, p 1 i denotes a pixel value of a pixel next closest to, in said first line of pixels (11, 13, 15, 17), said block boundary and p 2 i denotes a pixel value of a pixel second next closest to, in said first line of pixels (11, 13, 15, 17), said block boundary; calculating a second filter decision value for said neighboring block, by only using pixels of said neighboring block based on: q ⁢ 2 i - 2 ⁢ q ⁢ 1 i + q ⁢ 0 i wherein i=0---N-1 and N is the number of lines of pixels of said neighboring block, a line of pixels being a row or a column of pixels, wherein q 0 i denotes a pixel value of a pixel in said neighboring block closest to, in a corresponding first line of pixels (21, 23, 25, 27) in said neighboring block, said block boundary, q 1 i denotes a pixel value of a pixel of said neighboring block next closest to, in said corresponding first line of pixels (21, 23, 25, 27), said block boundary and q 2 i denotes a pixel value of a pixel in said neighboring block second next closest to, in said corresponding first line of pixels (21, 23, 25, 27), said block boundary; wherein the first line of pixels and the corresponding first line in the neighboring block are opposing lines with regard to the block boundary and perpendicular to the block boundary, determining how many pixels in said first line of pixels (11, 13, 15, 17) in said block to filter relative to said block boundary based on a comparison of said first filter decision value to a first threshold value; and determining how many pixels in said corresponding first line of pixels (21, 23, 25, 27) in said neighboring block to filter relative to said block boundary based on a comparison of said second filter decision value to a second threshold value. calculating a first filter decision value for said block, by only using pixels of said block, based on: p ⁢ 2 i - 2 ⁢ p ⁢ 1 i + p ⁢ 0 i wherein i=0...N-1 and N is the number of lines of pixels of said block, a line of pixels being a row or a column of pixels, wherein p 0 i denotes a pixel value of a pixel closest to, in a first line of pixels (11, 13, 15, 17) in said block, a block boundary to a neighboring block of multiple pixels (21, 23, 25,27) in said video frame, p 1 i denotes a pixel value of a pixel next closest to, in said first line of pixels (11, 13, 15, 17), said block boundary and p 2 i denotes a pixel value of a pixel second next closest to, in said first line of pixels (11, 13, 15, 17), said block boundary; calculating a second filter decision value for said neighboring block, by only using pixels of said neighboring block based on: q ⁢ 2 i - 2 ⁢ q ⁢ 1 i + q ⁢ 0 i wherein i=0---N-1 and N is the number of lines of pixels of said neighboring block, a line of pixels being a row or a column of pixels, wherein q 0 i denotes a pixel value of a pixel in said neighboring block closest to, in a corresponding first line of pixels (21, 23, 25, 27) in said neighboring block, said block boundary, q 1 i denotes a pixel value of a pixel of said neighboring block next closest to, in said corresponding first line of pixels (21, 23, 25, 27), said block boundary and q 2 i denotes a pixel value of a pixel in said neighboring block second next closest to, in said corresponding first line of pixels (21, 23, 25, 27), said block boundary; wherein the first line of pixels and the corresponding first line in the neighboring block are opposing lines with regard to the block boundary and perpendicular to the block boundary, determining how many pixels in said first line of pixels (11, 13, 15, 17) in said block to filter relative to said block boundary based on a comparison of said first filter decision value to a first threshold value; and determining how many pixels in said corresponding first line of pixels (21, 23, 25, 27) in said neighboring block to filter relative to said block boundary based on a comparison of said second filter decision value to a second threshold value.