Patent ID: 8638863

Claim:
A method for filtering a decoded video stream having a plurality of frames, each frame having a plurality of blocks, the method comprising: selecting a current block from a current frame of the plurality of frames and an adjacent block from the current frame of the plurality of frames, the current block being adjacent to and sharing an edge with the adjacent block; and filtering the edge between the current block and the adjacent block, using a processor, if |P 0 −Q 0 |*2+|P 1 −Q 1 |/2≦EdgeLimit & |P 3 −P 2 |≦InteriorLimit & |P 2 −P 1 |≦InteriorLimit & |P 1 −P 0 |≦InteriorLimit & |Q3−Q2|≦InteriorLimit & |Q 2 −Q 1 |≦InteriorLimit & |Q 1 −Q 0 |≦InteriorLimit; wherein: P 0 is a pixel in the current block and a line of pixels that is immediately adjacent to the edge; P 1 is a pixel in the current block and the line of pixels that is immediately adjacent to pixel P 0 ; P 2 is a pixel in the current block and the line of pixels that is immediately adjacent to pixel P 1 ; P 3 is a pixel in the current block and the line of pixels that is immediately adjacent to pixel P 2 ; Q 0 is a pixel in the adjacent block and the line of pixels that is immediately adjacent to the edge; Q 1 is a pixel in the adjacent block and the line of pixels that is immediately adjacent to pixel Q 0 ; Q 2 is a pixel in the adjacent block and the line of pixels that is immediately adjacent to pixel Q 1 ; Q 3 is a pixel in the adjacent block and the line of pixels that is immediately adjacent to pixel Q 2 ; EdgeLimit is an edge threshold; and InteriorLimit is an interior threshold.