CPC H04N 19/129 (2014.11) [H04N 19/12 (2014.11); H04N 19/124 (2014.11); H04N 19/13 (2014.11); H04N 19/176 (2014.11); H04N 19/44 (2014.11); H04N 19/60 (2014.11)] | 14 Claims |
1. A method for decoding an image, comprising:
decoding, based on a predetermined scan order, a residual coefficient of a current block in the image from a bitstream;
performing inverse-quantization on the residual coefficient by using a quantization parameter; and
reconstructing a residual sample of the current block by performing inverse-transform on the inverse-quantized residual coefficient,
wherein the scan order is determined differently, based on encoding information related to the current block, as one of a plurality of scan order candidates pre-defined in a decoding apparatus,
wherein the encoding information includes a transform skip flag indicating whether the inverse-transform is skipped on the current block,
wherein the inverse-transform is adaptively performed on the inverse-quantized residual coefficient based on the transform skip flag,
wherein the plurality of the scan order candidates includes an up-right diagonal scan order and a bottom-left diagonal scan order.
|