| 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)] | 8 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, the current block being obtained by dividing a current picture using a tree-based division method;
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 inverse-transform is adaptively performed on the inverse-quantized residual coefficient based on a transform skip flag indicating whether the inverse-transform is skipped on the current block,
wherein the inverse-transform is performed based on a transform candidate set determined from among a plurality of transform candidate sets including a first transform candidate set and a second transform candidate set,
wherein each of the transform candidate sets includes at least one transform type being available for the inverse-transform of the current block, and
wherein the transform candidate set of the current block is determined, based on a size of the current block, among the plurality of transform candidate sets.
|