| CPC H04N 19/132 (2014.11) [H04N 19/122 (2014.11); H04N 19/176 (2014.11); H04N 19/61 (2014.11)] | 4 Claims |

|
1. A method of an image decoding performed by a decoding apparatus, the method comprising:
obtaining prediction information for a current block from a bitstream;
obtaining a flag for whether transform coefficients for the current block are present;
deriving prediction samples by performing an intra prediction or an inter prediction for the current block based on the prediction information;
determining whether a value of the flag is 1 which indicates the transform coefficients for the current block are present;
after determining the value of the flag being 1, determining whether the current block is partitioned based on a width and a height of the current block and a maximum transform size;
deriving transform blocks by partitioning the current block after determining that the current block is partitioned based on the width and the height of the current block and the maximum transform size;
deriving the transform coefficients for the derived transform blocks;
deriving residual samples by performing an inverse transform process for the transform coefficients; and
generating a reconstructed picture based on the residual samples and the prediction samples,
wherein after determining the value of the flag being 1 and determining at least one of the width of the current block being greater than a width of the maximum transform size and the height of the current block being greater than a height of the maximum transform size, it is determined that the current block is partitioned into the transform blocks,
wherein the width of the current block is W and the height of the current block is H,
wherein after determining the width of the current block being greater than the width of the maximum transform size, a width of the transform blocks is derived as W/2, and
wherein after determining the height of the current block being greater than the height of the maximum transform size, a height of the transform blocks is derived as H/2.
|