CPC H04N 19/105 (2014.11) [H04N 19/119 (2014.11); H04N 19/176 (2014.11); H04N 19/513 (2014.11); H04N 19/593 (2014.11)] | 6 Claims |
1. A method of decoding a video, the method comprising:
obtaining motion information of a current block;
obtaining prediction samples of the current block based on the motion information of the current block;
obtaining residual coefficients of a transform block included in the current block;
performing an inverse-quantization on the residual coefficients of the transform block;
determining whether an inverse-transform is skipped for the transform block or not;
when it is determined that the inverse-transform is not skipped for the transform block, determining a transform type for the transform block;
obtaining residual samples of the transform block by performing the inverse-transform on inverse-quantized residual coefficients of the transform block based on the determined transform type; and
reconstructing the current block based on the prediction samples and residual samples of the current block,
wherein whether to parse a transform skip flag, indicating whether the inverse-transform is skipped or not for obtaining the residual samples, from a bitstream is determined based on whether the current block including the transform block is partitioned into two transform blocks or not.
|