# US 2021/0084319 A1 · Spatially Varying Transform with Adaptive Transform Type

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0084319 A1
- Document ID: US20210084319A1
- Status: Published application
- Kind: A1
- Application number: 17/104,866
- Filed: 2020-11-25
- Published: 2021-03-18
- Earliest claimed: 2018-05-31
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Yin Zhao; Haitao Yang; Jianle Chen
- Web page: https://patentgrep.com/patent/US20210084319A1

## CPC

- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/122: Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/167: Position within a video image, e.g. region of interest [ROI]
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/61: in combination with predictive coding
- H04N 19/625: using discrete cosine transform [DCT]
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A video decoding method and apparatus employing spatially varying transform (SVT) with adaptive transform type include determining a usage of an SVT-vertical (V) or an SVT-horizontal (H) for a residual block, determining a transform block position of a transform block of the residual block, determining a transform type of the transform block, wherein the transform type indicates a horizontal transform and a vertical transform for the transform block, wherein at least one of the horizontal transform or the vertical transform is a discrete sine transform (DST)-7, and reconstructing the residual block based on the transform type, the transform block position and transform coefficients of the transform block.

## Claims

### Claim 1

A video decoding method comprising:
determining a usage of a spatially varying transform (SVT) for a residual block;
determining an SVT type for the residual block when the SVT is used for the residual block, wherein the SVT type is either an SVT-vertical (V) type or an SVT-horizontal (H) type, wherein the SVT-V type indicates that a first width of a transform block of the residual block is half of a second width of the residual block and a first height of the transform block is the same as a second height of the residual block, wherein the SVT-H type indicates that the first width is the same as the second width and the first height is half of the second height;
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 according to the SVT type and the transform block position, wherein the transform type indicates a horizontal transform and a vertical transform for the transform block, and wherein at least one of the horizontal transform or the vertical transform is based on a discrete sine transform (DST)-7;
parsing transform coefficients of the transform block according to the transform block size; and
reconstructing the residual block based on the transform type, the transform block size, the transform block position, and the transform coefficients.

### Claim 2 (depends on 1)

The video decoding method of claim 1, wherein the SVT type for the residual block is the SVT-V type, wherein the transform block position covers a top-left corner of the residual block, wherein the horizontal transform is based on a discrete cosine transform (DCT)-8, and wherein the vertical transform is based on the DST-7.

### Claim 3 (depends on 1)

The video decoding method of claim 1, wherein the SVT type is the SVT-V type, wherein the transform block position covers a right-bottom corner of the residual block, wherein the horizontal transform is based on the DST-7, and wherein the vertical transform is based on the DST-7.

### Claim 4 (depends on 1)

The video decoding method of claim 1, wherein the SVT type is the SVT-H type, wherein the transform block position covers a top-left corner of the residual block, wherein the horizontal transform is based on the DST-7, and wherein the vertical transform is based on a discrete cosine transform (DCT)-8.

### Claim 5 (depends on 1)

The video decoding method of claim 1, wherein the SVT type is the SVT-H type, wherein the transform block position covers a right-bottom corner of the residual block, wherein the horizontal transform is based on the DST-7, and wherein the vertical transform is based on the DST-7.

### Claim 6

A video decoding apparatus comprising:
a first system configured to determine a usage of a spatially varying transform (SVT) for a residual block;
a second system coupled to the first system and configured to determine an SVT type for the residual block when the SVT is used for the residual block, wherein the SVT type is either an SVT-vertical (V) type or an SVT-horizontal (H) type, wherein the SVT-V type indicates that a first width of a transform block of the residual block is half of a second width of the residual block and a first height of the transform block is the same as a second height of the residual block, wherein the SVT-H type indicates that the first width is the same as the second width and the first height is half of the second height;
a third system coupled to the second system and configured to derive a transform block size of the transform block according to the SVT type;
a fourth system configured to determine a transform block position of the transform block;
a fifth system coupled to the second system and the fourth system and configured to determine a transform type of the transform block according to the SVT type and the transform block position, wherein the transform type indicates a horizontal transform and a vertical transform for the transform block, and wherein at least one of the horizontal transform or the vertical transform is based on a discrete sine transform (DST)-7;
a sixth system coupled to the third system and configured to parse transform coefficients of the transform block according to the transform block size; and
a seventh system coupled to the fourth system, the fifth system, and the sixth system and configured to reconstruct the residual block based on the transform type, the transform block position, and the transform coefficients.

### Claim 7 (depends on 6)

The video decoding apparatus of claim 6, wherein the SVT type is the SVT-V type, wherein the transform block position covers a top-left corner of the residual block, wherein the horizontal transform is based on a discrete cosine transform (DCT)-8, and wherein the vertical transform is based on the DST-7.

### Claim 8 (depends on 6)

The video decoding apparatus of claim 6, wherein the SVT type is the SVT-V type, wherein the transform block position covers a right-bottom corner of the residual block, wherein the horizontal transform is based on the DST-7, and wherein the vertical transform is based on the DST-7.

### Claim 9 (depends on 6)

The video decoding apparatus of claim 6, wherein the SVT type is the SVT-H type, wherein the transform block position covers a top-left corner of the residual block, wherein the horizontal transform is based on the DST-7, and wherein the vertical transform is based on a discrete cosine transform (DCT)-8.

### Claim 10 (depends on 6)

The video decoding apparatus of claim 6, wherein the SVT type is the SVT-H type, wherein the transform block position covers a right-bottom corner of the residual block, wherein the horizontal transform is based on the DST-7, and wherein the vertical transform is based on the DST-7.

### Claim 11

A video decoding apparatus comprising:
a non-transitory computer-readable storage medium configured to store instructions; and
a processor coupled to the non-transitory computer-readable storage medium, wherein the instructions cause the processor to be configured to:
determine a usage of a spatially varying transform (SVT) for a residual block;
determine an SVT type for the residual block when the SVT is used for the residual block, wherein the SVT type is either an SVT-vertical (V) type or an SVT-horizontal (H) type, wherein the SVT-V type indicates that a first width of a transform block of the residual block is half of a second width of the residual block and 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 the first height is half of the second height;
derive a transform block size of the transform block according to the SVT type;
determine a transform block position of the transform block;
determine a transform type of the transform block according to the SVT type and the transform block position, wherein the transform type indicates a horizontal transform and a vertical transform for the transform block, and wherein at least one of the horizontal transform or the vertical transform is based on a discrete sine transform (DST)-7;
parse transform coefficients of the transform block according to the transform block size; and
reconstruct the residual block based on the transform type, the transform block position, and the transform coefficients.

### Claim 12 (depends on 11)

The video decoding apparatus of claim 11, wherein the SVT type is the SVT-V type, wherein the transform block position covers a top-left corner of the residual block, wherein the horizontal transform is based on a discrete cosine transform (DCT)-8, and wherein the vertical transform is based on the DST-7.

### Claim 13 (depends on 11)

The video decoding apparatus of claim 11, wherein the SVT type is the SVT-V type, wherein the transform block position covers a right-bottom corner of the residual block, wherein the horizontal transform is based on the DST-7, and wherein the vertical transform is based on the DST-7.

### Claim 14 (depends on 11)

The video decoding apparatus of claim 11, wherein the SVT type is the SVT-H type, wherein the transform block position covers a top-left corner of the residual block, wherein the horizontal transform is based on the DST-7, and wherein the vertical transform is based on a discrete cosine transform (DCT)-8.

### Claim 15 (depends on 11)

The video decoding apparatus of claim 11, wherein the SVT type is the SVT-H type, wherein the transform block position covers a right-bottom corner of the residual block, wherein the horizontal transform is based on the DST-7, and wherein the vertical transform is based on the DST-7.

### Claim 16

A computer program product comprising computer-executable instructions for storage on a non-volatile computer-readable storage medium that, when executed by a processor, cause an apparatus to:
determine a usage of a spatially varying transform (SVT) for a residual block;
determine an SVT type for the residual block when the SVT is used for the residual block, wherein the SVT type is either an SVT-vertical (V) type or an SVT-horizontal (H) type, wherein the SVT-V type indicates that a first width of a transform block of the residual block is half of a second width of the residual block and 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 the first height is half of the second height;
derive a transform block size of the transform block according to the SVT type;
determine a transform block position of the transform block;
determine a transform type of the transform block according to the SVT type and the transform block position, wherein the transform type indicates a horizontal transform and a vertical transform for the transform block, and wherein at least one of the horizontal transform or the vertical transform is based on a discrete sine transform (DST)-7;
parse transform coefficients of the transform block according to the transform block size; and
reconstruct the residual block based on the transform type, the transform block size, the transform block position, and the transform coefficients.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the SVT type is the SVT-V type, wherein the transform block position covers a top-left corner of the residual block, wherein the horizontal transform is based on a discrete cosine transform (DCT)-8, and wherein the vertical transform is based on the DST-7.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein the SVT type is the SVT-V type, wherein the transform block position covers a right-bottom corner of the residual block, wherein the horizontal transform is based on the DST-7, and wherein the vertical transform is based on the DST-7.

### Claim 19 (depends on 16)

The computer program product of claim 16, wherein the SVT type is the SVT-H type, wherein the transform block position covers a top-left corner of the residual block, wherein the horizontal transform is based on the DST-7, and wherein the vertical transform is based on a discrete cosine transform (DCT)-8.

### Claim 20 (depends on 16)

The computer program product of claim 16, wherein the SVT type is the SVT-H type, wherein the transform block position covers a right-bottom corner of the residual block, wherein the horizontal transform is based on the DST-7, and wherein the vertical transform is based on the DST-7.
