CPC H04N 19/61 (2014.11) [H04N 19/119 (2014.11); H04N 19/122 (2014.11); H04N 19/129 (2014.11); H04N 19/149 (2014.11); H04N 19/176 (2014.11); H04N 19/18 (2014.11); H04N 19/625 (2014.11)] | 3 Claims |
1. A method for encoding a video signal by an encoding apparatus, the method comprising:
obtaining a prediction value of a current block by using inter prediction or intra prediction;
obtaining residual information of the current block based on the prediction value; and
encoding the current block by performing a first transform or a second transform based on the residual information,
wherein the encoding the current block comprises:
obtaining flag information indicating whether the current block includes a transform coefficient level not equal to 0;
obtaining transform type information indicating a transform type, the transform type specifying one among a first transform kernel for the first transform and a second transform kernel for the second transform, the first transform kernel being different from the second transform kernel; and
encoding the current block by using the first transform or the second transform based on the flag information and the transform type information,
wherein the current block is encoded by using the first transform based on that the transform type information has a value of 0 or the current block is not an intra block,
wherein the current block is encoded by using the second transform based on that the transform type information has a value of 1 and the current block is an intra block,
wherein a transform size equal to a size of a block for intra prediction is used based on intra prediction being used for the current block, and
wherein whether to use the first transform or the second transform is determined differently based on whether the intra prediction is used for the current block.
|