| CPC H04N 19/167 (2014.11) [H04N 19/126 (2014.11); H04N 19/18 (2014.11); H04N 19/46 (2014.11)] | 4 Claims |

|
1. A video decoding method comprising:
determining a scale factor for a current block depending on whether or not the current block is a transform skip block;
obtaining dequantized transform coefficients of the current block by performing dequantization on transform coefficients of the current block based on the scale factor;
determining a transform type of the current block, wherein the transform type of the current block is determined as one of an intra prediction mode-independent DCT (Discrete Cosine Transform) and an intra prediction mode-independent DST (Discrete Sine Transform); and
obtaining residual samples of the current block by performing the transform on the dequantized transform coefficients based on the determined transform type,
wherein the transform type of the current block is determined for a vertical direction and a horizontal direction, respectively,
wherein when the current block is not intra-predicted, both the transform type of the horizontal direction and the transform type of the vertical direction of the current block are determined as DCT,
wherein when the current block is intra-predicted, the transform type of the current block is determined based on a block size of the current block,
wherein when the current block is intra-predicted and the size of the current block is 4×4, both the transform type of the horizontal direction and the transform type of the vertical direction of the current block are determined as DST independently from the intra prediction mode of the current block,
wherein when the current block is intra-predicted and the size of the current block is not 4×4, both the transform type of the horizontal direction and the transform type of the vertical direction of the current block are determined as DCT,
wherein determining the transform type of the current block is skipped when the current block is a transform skip block,
wherein, when the current block is not the transform skip block, the scale factor for the current block is determined based on a quantization matrix defined at the decoding apparatus and a location of a transform coefficient within the current block, and when the current block is the transform skip block, the scale factor for the current block is derived equal to a fixed constant value, regardless of the location of the transform coefficient within the current block, and
wherein the scale factor comprises an integer greater than or equal to 16.
|