Low complex deblocking filter decisions
The present disclosure relates to deblocking filtering, which may be advantageously applied for block-wise encoding and decoding of images or video signals. In particular, the present disclosure relates to an improved memory management in an automated decision on whether to apply or skip deblocking filtering for a block and to selection of the deblocking filter. The decision is performed on the basis of a segmentation of blocks in such a manner that memory usage is optimized. Preferably, the selection of appropriate deblocking filters is improved so as to reduce computational expense.
1. A method for deblocking filtering of image blocks of pixels, comprising the steps of:
dividing each of a first block and a second block that are separated by a first boundary into at least two segments along a line that is perpendicular to said first boundary, and
judging whether or not to apply a deblocking filter to pixels adjacent to the first boundary of the first block and the second block, wherein
the judgment is individually performed for a pair of adjacent segments on both sides of the first boundary using sample pixels in the pair of adjacent segments, such that no pixels belonging to other segments are used in the judgment,
the division of the first block and the second block into segments is performed such that a segment of one of the first block and the second block includes all pixels of said one of the first block and the second block required for:
(i) judging whether or not to apply a deblocking filter; and
(ii) selecting a deblocking filter for deblocking pixels adjacent to a second boundary, the second boundary being between a third block and said one of the first block and the second block,
the third block is adjacent to said one of the first block and the second block,
the third block is different from the first block and the second block, and
the second boundary is perpendicular to the first boundary.
2. An apparatus for deblocking filtering of image blocks of pixels comprising:
a segmentation unit for dividing each of a first block and a second block that are separated by a first boundary into at least two segments along a line that is perpendicular to said first boundary, and
a judging unit for judging whether or not to apply a deblocking filter to pixels adjacent to the first boundary of the first block and the second block, wherein
the judging unit performs the judgment individually for a pair of adjacent segments on both sides of the first boundary using sample pixels in the pair of adjacent segments, such that no pixels belonging to other segments are used in the judgment,
the segmentation unit performs the division of the first block and the second block into segments such that a segment of one of the first block and the second block includes all pixels of said one of the first block and the second block required for:
(i) judging whether or not to apply a deblocking filter; and
(ii) selecting a deblocking filter for deblocking pixels adjacent to a second boundary, the second boundary being between a third block and said one of the first block and the second block,
the third block is adjacent to said one of the first block and the second block,
the third block is different from the first block and the second block, and
the second boundary is perpendicular to the first boundary.
3. An integrated circuit for embodying the apparatus of claim 2 , further comprising a memory for storing pixels to be filtered.