| CPC H04N 19/129 (2014.11) [H04N 19/119 (2014.11); H04N 19/122 (2014.11); H04N 19/124 (2014.11); H04N 19/136 (2014.11); H04N 19/157 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/44 (2014.11); H04N 19/593 (2014.11); H04N 19/61 (2014.11); H04N 19/625 (2014.11); H04N 19/70 (2014.11)] | 10 Claims |

|
1. A video decoding method, comprising:
obtaining first information indicating whether a residual signal is present in a current block;
determining a transform type of the current block, based on second information indicating whether or not an inverse-transform based on discrete cosine transform (DCT) or discrete sine transform (DST) is allowed;
acquiring transform coefficients from the residual signal of the current block based on a scanning direction for the residual signal of the current block, if the first information indicates that the residual signal is present in the current block;
performing the inverse-transform on the transform coefficients based on the determined transform type to obtain residual samples;
deriving an intra prediction mode of the current block;
obtaining prediction samples of the current block based on the intra prediction mode of the current block; and
reconstructing the current block based on the residual samples and the prediction samples,
wherein the scanning direction is determined based on the second information.
|