Method of reducing a blocking artifact when coding moving picture
View Patent ↗A method of coding a moving picture is provided that reduces blocking artifacts. The method can include defining a plurality of defining pixels S 0 , S 1 , and S 2 , which are centered around a block boundary. If a default mode is selected then frequency information of the surroundings of the block boundary is obtained. A magnitude of a discontinuous component in a frequency domain belonging to the block boundary is adjusted based on a magnitude of a corresponding discontinuous component selected from a pixel contained entirely within a block adjacent the block boundary. The frequency domain adjustment is then applied to a spatial domain. Or, a DC offset mode can be selected to reduce blocking artifacts in smooth regions where there is little motion.
1. A computer-implemented method comprising:
selecting a correction mode from at least first and second correction modes; and
adjusting, for each of at least first through sixth successive pixels that include third and fourth successive pixels located across a block boundary, pixel values of the first through sixth successive pixels based on the pixel values of the third and fourth successive pixels and further based on a factor correlating to a pixel distance between the block boundary and the each of the at least first through sixth successive pixels, if the second correction mode is selected.
2. A device comprising:
a deblocking filter configured to:
select a correction mode from at least first and second correction modes; and
adjust, for each of at least first through sixth successive pixels that include third and fourth successive pixels located across a block boundary, pixel values of the first through sixth successive pixels based on the pixel values of the third and fourth successive pixels and further based on a factor correlating to a pixel distance between the block boundary and the each of the at least first through sixth successive pixels, if the second correction mode is selected.