A video decoding method, comprising: determining the usage of spatially varying transform (SVT) for a residual block; determining a SVT type for the residual block when SVT is used for the residual block, wherein the SVT type for the residual block is either a SVT-V type or a SVT-H type, wherein the SVT-V type indicates that the width of a transform block of the residual block is the half size of the width of the residual block, and the height of the transform block is the same size of the height of the residual block, wherein the SVT-H type indicates that the width of the transform block is the same size of the width of the residual block, and the height of the transform block is the half size of the height of the residual block; deriving a transform block size of the transform block according to the SVT type; determining a transform block position of the transform block; determining a transform type of the transform block; parsing transform coefficients of the transform block according to the transform block size; and reconstructing the residual block by recovering residual samples based on the transform type, the transform block size, the transform block position and transform coefficients of the transform block, wherein residual samples are assigned to a corresponding region inside the residual block according to the transform block position, and the rest samples inside the residual block are set to be zero; characterized by determining a transform type of the transform block according to the SVT type and the transform block position of the transform block, wherein the transform type indicates a horizontal transform and a vertical transform for the transform block, wherein the vertical transform for the SVT-V type for all transform block positions and the horizontal transform for the SVT-H type for all transform block positions are set as DST-7, and the other transform is based on the transform block position. determining the usage of spatially varying transform (SVT) for a residual block; determining a SVT type for the residual block when SVT is used for the residual block, wherein the SVT type for the residual block is either a SVT-V type or a SVT-H type, wherein the SVT-V type indicates that the width of a transform block of the residual block is the half size of the width of the residual block, and the height of the transform block is the same size of the height of the residual block, wherein the SVT-H type indicates that the width of the transform block is the same size of the width of the residual block, and the height of the transform block is the half size of the height of the residual block; deriving a transform block size of the transform block according to the SVT type; determining a transform block position of the transform block; determining a transform type of the transform block; parsing transform coefficients of the transform block according to the transform block size; and reconstructing the residual block by recovering residual samples based on the transform type, the transform block size, the transform block position and transform coefficients of the transform block, wherein residual samples are assigned to a corresponding region inside the residual block according to the transform block position, and the rest samples inside the residual block are set to be zero; characterized by determining a transform type of the transform block according to the SVT type and the transform block position of the transform block, wherein the transform type indicates a horizontal transform and a vertical transform for the transform block, wherein the vertical transform for the SVT-V type for all transform block positions and the horizontal transform for the SVT-H type for all transform block positions are set as DST-7, and the other transform is based on the transform block position. <EOS>