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:
obtaining frequency information of first through fourth successive pixels using a 4-point kernel, the second and third successive pixels being adjacent and located across a block boundary;
obtaining quantization information of a first block that includes the first and second successive pixels; and
compensating the second and third successive pixels based on the frequency information if the obtained quantization information is greater than the frequency information.
2. A device comprising:
a blocking filter configured to:
obtain frequency information of first through fourth successive pixels using a 4-point kernel, the second and third successive pixels being adjacent and located across a block boundary;
obtain quantization information of a first block that includes the first and second successive pixels; and
compensate the second and third successive pixels based on the frequency information if the obtained quantization information is greater than the frequency information.