# US 2021/0281842 A1 · Method and apparatus for processing video

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

- Number: US 2021/0281842 A1
- Document ID: US20210281842A1
- Status: Published application
- Kind: A1
- Application number: 17/258,367
- Filed: 2019-07-03
- Published: 2021-09-09
- Earliest claimed: 2018-07-08
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: Moonmo KOO; Mehdi SALEHIFAR; Seunghwan KIM; Jaehyun LIM
- Web page: https://patentgrep.com/patent/US20210281842A1

## CPC

- 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/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/18: the unit being a set of transform coefficients
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/625: using discrete cosine transform [DCT]
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Embodiments of the present invention provide a video signal processing method and apparatus. The video signal processing method according to an embodiment of the present invention comprises checking a length of a signal to which a transform is to be applied in the video signal, wherein the length of the signal corresponds to a width or height of a current block to which the transform is applied, determining a transform type based on the length of the signal, and applying, to the signal, the transform matrix determined based on the transform type, wherein DST-4 or DCT-4 is determined as the transform type if the length of the signal corresponds to a first length, and wherein DST-7 or DCT-8 is determined as the transform type if the length of the signal corresponds to a second length different from the first length.

## Claims

### Claim 1

A method of processing a video signal, comprising:
checking a length of a signal to which a transform is to be applied in the video signal, wherein the length of the signal corresponds to a width or height of a current block to which the transform is applied;
determining a transform type based on the length of the signal; and
applying, to the signal, the transform matrix determined based on the transform type,
wherein DST-4 or DCT-4 is determined as the transform type if the length of the signal corresponds to a first length, and
wherein DST-7 or DCT-8 is determined as the transform type if the length of the signal corresponds to a second length different from the first length.

### Claim 2 (depends on 1)

The method of claim 1,
wherein the first length corresponds to 8, and
wherein the second length corresponds to 4, 16, or 32.

### Claim 3 (depends on 1)

The method of claim 1,
wherein applying, to the signal, the transform matrix determined based on the transform type includes:
checking an index indicative of the transform type, and
determining a first transform type for horizontal components of the signal and a second transform type for vertical components of the signal to correspond to the index.

### Claim 4 (depends on 3)

The method of claim 3,
wherein if the length of the signal corresponds to the first length, the first transform type for the horizontal components of the signal and the second transform type for the vertical components of the signal are determined based on a combination of the DST-4 or the DCT-4 corresponding to the index, and
wherein if the length of the signal corresponds to the second length, the first transform type for the horizontal components of the signal and the second transform type for the vertical components of the signal are determined based on a combination of the DST-7 or the DCT-8 corresponding to the index.

### Claim 5 (depends on 1)

The method of claim 1,
wherein the DST-4 and the DCT-4 are determined based on DST-2 and DCT-2.

### Claim 6 (depends on 1)

The method of claim 1,
wherein the DST-7 is determined based on a discrete Fourier transform (DFT).

### Claim 7 (depends on 6)

The method of claim 6,
wherein the first length corresponds to a length having a small complexity reduction when the DST-7 determined based on the DFT is applied.

### Claim 8

An apparatus for processing a video signal, comprising:
a memory configured to store the video signal, and
a decoder functionally coupled to the memory and configured to process the video signal,
wherein the decoder is configured to:
check a length of a signal to which a transform is to be applied in the video signal, wherein the length of the signal corresponds to a width or height of a current block to which the transform is applied;
determine a transform type based on the length of the signal; and
apply, to the signal, the transform matrix determined based on the transform type,
wherein DST-4 or DCT-4 is determined as the transform type if the length of the signal corresponds to a first length, and
wherein DST-7 or DCT-8 is determined as the transform type if the length of the signal corresponds to a second length different from the first length.

### Claim 9 (depends on 8)

The apparatus of claim 8,
wherein the first length corresponds to 8, and
wherein the second length corresponds to 4, 16, or 32.

### Claim 10 (depends on 8)

The apparatus of claim 8,
wherein the decoder is configured to:
check an index indicative of the transform type, and
determine a first transform type for horizontal components of the signal and a second transform type for vertical components of the signal to correspond to the index.

### Claim 11 (depends on 10)

The apparatus of claim 10,
wherein if the length of the signal corresponds to the first length, the first transform type for the horizontal components of the signal and the second transform type for the vertical components of the signal are determined based on a combination of the DST-4 or the DCT-4 corresponding to the index, and
wherein if the length of the signal corresponds to the second length, the first transform type for the horizontal components of the signal and the second transform type for the vertical components of the signal are determined based on a combination of the DST-7 or the DCT-8 corresponding to the index.

### Claim 12 (depends on 8)

The apparatus of claim 8,
wherein the DST-4 and the DCT-4 are determined based on DST-2 and DCT-2.

### Claim 13 (depends on 8)

The apparatus of claim 8,
wherein the DST-7 is determined based on a discrete Fourier transform (DFT).

### Claim 14 (depends on 13)

The apparatus of claim 13,
wherein the first length corresponds to a length having a small complexity reduction when the DST-7 determined based on the DFT is applied.
