Patent ID: 9615094
Date: 2017-04-04
CPC Classifications: H04N

Claim:
1. An apparatus for decoding an image, the apparatus comprising: an entropy decoder configured to restore quantized residual coefficients and intra prediction information; a prediction mode decoder configured to restore an intra prediction mode based on the intra prediction information; a residual signal decoder configured to convert the quantized residual coefficients into a residual block; a reference pixel generator configured to generate reference pixels when one or more unavailable reference pixels exist, and to adaptively filter the reference pixels according to the intra prediction mode and a size of a prediction block; a prediction block generator configured to generate the prediction block using reference pixels determined by the intra prediction mode; a prediction block filter configured to adaptively filter a part of the prediction block using the intra prediction mode; and an image constructor configured to generate a reconstructed image using the prediction block and the residual block, wherein the reference pixel generator adaptively filters the reference pixels according to the size of the prediction block for intra prediction modes existing between a horizontal mode and an intra prediction mode having a direction of 45° with reference to the horizontal mode, wherein, when the reference pixel generator filters the reference pixels for a second directional intra prediction mode, the reference pixel generator also filters the reference pixels for a first directional intra prediction mode that is closer to the intra prediction mode having the direction of 45° with reference to the horizontal mode than the second directional intra prediction mode is, wherein the second and the first directional intra prediction modes exist between the horizontal mode and the intra prediction mode having the direction of 45° with reference to the horizontal mode, wherein the number of intra prediction modes in which the filter is applied increases as the size of the prediction block increases, and wherein, when the intra prediction mode is a vertical mode, the reference pixel generator does not filter the reference pixels.