| CPC H04N 19/52 (2014.11) [H04N 19/117 (2014.11); H04N 19/176 (2014.11)] | 3 Claims |

|
1. An encoding method, comprising:
generating a reconstructed image based on a prediction mode selected from candidate prediction modes, the candidate prediction modes including a block prediction mode and a sub-block prediction mode; and
performing a determination process on each boundary having a pixel position of 4n, where n is an integer, wherein,
in response to the block prediction mode being selected, the determination process includes:
determining whether to apply a deblocking filter to each block boundary between a corresponding pair of adjacent blocks in the reconstructed image; and
selecting, for each block boundary, a first deblocking filter or a second deblocking filter different from the first deblocking filter; and
in response to the sub-block prediction mode being selected, the determination process includes determining whether to apply a deblocking filter to each sub-block boundary between a corresponding pair of adjacent sub-blocks among the sub-blocks in the block, wherein,
(i) each sub-block has a size of 4 by 4 pixels,
(ii) the deblocking filter is determined to be applied only to sub-block boundaries having an 8n-th pixel position, and
(iii) the deblocking filter determined to be applied is the first deblocking filter.
|