| CPC H04N 19/44 (2014.11) [H04N 19/136 (2014.11); H04N 19/176 (2014.11); H04N 19/625 (2014.11)] | 20 Claims |

|
1. A video decoding method comprising:
receiving a bitstream, wherein the bitstream includes a first flag, a second flag, a syntax element, and prediction information;
determining, according to the first flag, that a spatially varying transform (SVT) is used for a residual block of an image block;
determining, according to the second flag, an SVT type for the residual block, wherein the SVT type is an SVT-vertical (SVT-V) type or an SVT-horizontal (SVT-H) type, wherein the SVT-V type indicates that a first width of a transform block of the residual block is less than a second width of the residual block and that a first height of the transform block is the same as a second height of the residual block, and wherein the SVT-H type indicates that the first width is the same as the second width and that the first height is less than the second height;
determining, according to the syntax element, a transform block position of the transform block;
determining, from a lookup table, a transform type of the transform block according to the SVT type and the transform block position;
parsing the bitstream to obtain transform coefficients of the transform block;
reconstructing the residual block based on the transform type and the transform coefficients;
obtaining, based on the prediction information, a prediction block corresponding to the residual block; and
obtaining the image block based on the residual block and the prediction block.
|