Patent ID: 9451264
Filing Date: 2016-09-20
CPC Classification: H04N

Claim Text:
1. An apparatus for encoding an image, the apparatus comprising: an intra predictor configured to generate reference pixels when one or more unavailable reference pixels exist and generate a prediction block according to an intra prediction mode; a transformer configured to transform a residual block obtained by calculating difference between an original block and the prediction block to generate a transform block; a quantizer configured to quantize the transform block to generate a quantized transform block; and an entropy coder configured to entropy-code coefficients of the quantized transform block, wherein the intra predictor adaptively filters the reference pixels according to the size of a 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 intra predictor filters the reference pixels for a second directional intra prediction mode, the intra predictor 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 coefficients of the quantized transform block are divided into a plurality of sub-blocks if it is determined that a size of the transform block is equal to 8×8, wherein the plurality of sub-blocks and non-zero coefficients of each sub-block are scanned according to a scan pattern, wherein said scan pattern for scanning the plurality of sub-blocks and for scanning the non-zero coefficients of each sub-block is determined by the intra prediction mode of the prediction block, wherein the entropy coder transmits information indicating a position of a last non-zero coefficient in each sub-block to a decoder, and wherein the intra prediction mode is coded using intra prediction modes of prediction blocks neighboring a current prediction block.