Patent ID: 8761538

Claim:
A computer-readable device having computer-executable instructions for performing a method of deblocking image data, the method comprising: making a comparison of pixel values within a first block of pixels and also making a comparison of pixel values in the first block to pixel values in a second block of pixels that is adjacent to the first block; based on results of the comparisons, selecting a digital deblock filter from a plurality of filters and also selecting a region of interest to which the deblock filter is to be applied, the region of interest comprising a first number of pixels in the first block and a second number of pixels in the second block, wherein the deblock filter is selected by: calculating a first value for the first block of pixels and a second value for the second block of pixels, wherein the first value is based on a measure of differences between selected pixel values for the first block and selected pixel values for a first plurality of blocks adjacent to the first block and including the second block, the first value also based on a measure of deviations in a first plurality of pixel values for the first block, wherein further the second value is based on a measure of differences between selected pixel values for the second block and selected pixel values for a second plurality of blocks adjacent to the second block and including the first block, the second value also based on a measure of deviations in a second plurality of pixel values for the second block; and using one of the first and second values as an index to select the deblock filter from the plurality of filters; and applying the deblock filter to the region of interest to generate new pixel values for the first and second blocks.