摘要 |
A distortion representation is estimated for a macroblock (10) of a frame (1) by determining for each subgroup (30) of at least one pixel (20) out of multiple subgroups (30) in the macroblock (10), an activity value representative of a distribution of pixel values in a neighborhood (40) comprising multiple pixels (20) and encompassing the subgroup (30). Respective distortion weights are determined for the subgroups based on the activity values. These distortion weights are employed in order to estimate the distortion representation as a weighted combination of the pixel values of the macroblock (10) and reference pixel values for the macroblock (10). The distortion weights imply that different portions of a macroblock (10) will contribute more or less to the distortion representation as compared to other portions of the macroblock (10). The distortion representation will reduce ringing artifacts between high and low activity areas in a frame (1) during encoding. |