| CPC H04N 19/82 (2014.11) [H04N 19/107 (2014.11); H04N 19/117 (2014.11); H04N 19/124 (2014.11); H04N 19/137 (2014.11); H04N 19/172 (2014.11); H04N 19/176 (2014.11); H04N 19/184 (2014.11); H04N 19/50 (2014.11); H04N 19/51 (2014.11); H04N 19/577 (2014.11); H04N 19/58 (2014.11); H04N 19/593 (2014.11); H04N 19/60 (2014.11); H04N 19/70 (2014.11); H04N 19/91 (2014.11)] | 7 Claims |

|
1. An image decoding method performing adaptive filtering, the method comprising:
obtaining a flag indicating whether a reference block for prediction exists within a current picture where a current block is positioned;
generating a prediction block for the current block by using the reference block;
reconstructing the current block by using the prediction block; and
adaptively applying a deblocking filter on a first pixel of the reconstructed current block and a second pixel of a neighboring block adjacent to the reconstructed current block based on a filter strength,
wherein the adaptively applying the deblocking filter comprises:
identifying a block boundary between the first pixel and the second pixel; and
determining the filter strength of the deblocking filter,
wherein, the filter strength of the deblocking filter is determined depending on whether the current block or the neighboring block is predicted with intra prediction,
wherein, when the current block and the neighboring block is not predicted with intra prediction, the filter strength of the deblocking filter is determined depending on whether the block boundary between the first pixel and the second pixel is a block boundary of a transform block and whether a block containing the first pixel or a block containing the second pixel has a non-zero coefficient,
wherein, when the block containing the first pixel and the block containing the second pixel do not have the non-zero coefficient, the filter strength of the deblocking filter is determined depending on a color component of the current block, whether the block containing the first pixel is predicted with a first reference block within the current picture, and whether the block containing the second pixel is predicted with a second reference block within the current picture,
wherein the filter strength of the deblocking filter is determined to be 1 when the block containing the first pixel is predicted with the first reference block within the current picture and the block containing the second pixel is predicted with the second reference block within the current picture, and
wherein, among a luma component and a chroma component of the current block, the filter strength for any one component of the current block is determined separately without considering a filter strength for the other one component of the current block.
|