# US 2021/0084301 A1 · Determination of set of candidate transforms for video encoding

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

- Number: US 2021/0084301 A1
- Document ID: US20210084301A1
- Status: Published application
- Kind: A1
- Application number: 17/035,431
- Filed: 2020-09-28
- Published: 2021-03-18
- Earliest claimed: 2018-03-29
- Assignees: Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
- Applicants: Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
- Inventors: Mischa SIEKMANN; Bjoern STALLENBERGER; Christian BARTNIK; Sebastian BOSSE; Jonathan PFAFF; Philipp HELLE; Jackie MA; Martin WINKEN; Detlev MARPE; Heiko SCHWARZ; Thomas WIEGAND
- Web page: https://patentgrep.com/patent/US20210084301A1

## CPC

- H04N 19/12: Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
- 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/157: Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- 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/18: the unit being a set of transform coefficients
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/61: in combination with predictive coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

In transform coefficient coding, predetermined sets of transforms may be used. Embodiments of the present invention provide an encoder and a decoder for encoding a picture into/from a data stream using block-based prediction and block-based residual coding, the encoder and decoder supporting a set of transforms for the block-based residual coding. The encoder and decoder are configured to determine a transform candidate list of transforms for a current residual block out of the set of transforms based on a height and a width of the current residual block, and to encode/decode a prediction residual within the residual block using one selected transform out of the selectable list of transforms and selectively signal/derive the selected transform in/from the data stream.

## Claims

### Claim 1

An encoder for encoding a picture into a data stream using block-based prediction and block-based residual coding, the encoder supporting a set of transforms for the block-based residual coding and configured to
determine a selectable list of transforms for a current residual block out of the set of transforms;
encode transform coefficient data into the data stream which represents a prediction residual within the residual block using one selected transform out of the selectable list of transforms;
signal the selected transform in the data stream, and/or perform the determination of the selectable list, in a manner depending on the transform coefficient data or on a portion of the transform coefficient data.

### Claim 2 (depends on 1)

The encoder according to claim 1, configured to
determine the selectable list of transforms, by populating the selectable list with a number of transforms out of the set of transforms which number depends on the transform coefficient data, or a portion of the transform coefficient data,
perform the signaling of the selected transform in the data stream in a manner so that a code rate spent in the data stream for the signaling the selected transform is the lower the lower the number is.

### Claim 3 (depends on 1)

The encoder according to claim 1, configured to
determine the selectable list of transforms, by ordering the selectable list of transforms depending on the transform coefficient data, or a portion of the transform coefficient data,
perform the signaling of the selected transform in the data stream using a variable length code, codewords of which are assigned to the transforms of the selectable list of transforms depending on an order of the transforms in the selectable list of transforms.

### Claim 4 (depends on 2)

The encoder according to claim 2, configured
so that the transform coefficient data comprises an indication of a significant transform coefficient position of the selected transform and values of transform coefficients of the selected transform which are traversed from the significant transform coefficient position onwards by a predetermined scan order which sequentially traverses coefficient positions of the selected transform;
wherein the determination is dependent on the indication.

### Claim 5 (depends on 4)

The encoder according to claim 4, configured to
encode a coarse version of the indication into the data stream prior to the signaling of the selected transform in the data stream wherein the determination is dependent on the coarse version of the indication, and
encode a refinement of the coarse version of the indication into the data stream subsequent of the signaling and depending on the selected transform.

### Claim 6 (depends on 5)

The encoder according to claim 5, configured to
encode as the coarse version a hint revealing whether the significant transform coefficient position is within a sub-group of transform coefficients or not,
and encode as the refinement a relative position information discriminating the significant transform coefficient position among positions within the sub-group in case of the significant transform coefficient position being within the sub-group and discriminating the significant transform coefficient position among positions outside the sub-group in case of the significant transform coefficient position being outside the sub-group.

### Claim 7 (depends on 6)

The encoder according to claim 6, wherein the encoder is configured to
in case of the hint revealing that the significant transform coefficient position is within the sub-group, determine the selectable list to comprise at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a sub-group of primary transform coefficients of the primary transform to result into the sub group of the transform coefficients of the selected transform,
and in case of the hint revealing that the significant transform coefficient position is not within the sub-group, determine the selectable list so as to not comprise the at least one multi-stage transform.

### Claim 8 (depends on 7)

The encoder according to claim 7, wherein the encoder is configured to
encode the relative position information using a variable length coding—VLC—
with a first maximum number of codes which corresponds to a number of coefficients within the sub-group in case of the hint revealing that the significant transform coefficient position is within the sub-group, and/or
with a second maximum number of codes which corresponds to a number of coefficients outside the sub-group in case of the hint revealing that the significant transform coefficient position is not within the sub-group.

### Claim 9 (depends on 6)

The encoder according to claim 6, wherein the encoder is configured to
in case of the hint revealing that the significant transform coefficient position is within the sub-group, encode after the coarse version but prior to the refinement, a secondary transform indicator indicating whether the selected transform is among the at least one mufti-stage transform and/or which among the at least one multi-stage transform is the selected transform.

### Claim 10 (depends on 6)

The encoder according to claim 6, wherein the encoder is configured to
in case of the hint revealing that the significant transform coefficient position is within the sub-group, use contexts which depend on the secondary transform indicator in order to context adaptively entropy encode the transform coefficients within the sub-group.

### Claim 11 (depends on 9)

The encoder according to claim 9, wherein the encoder is configured to
in case of the hint revealing that the significant transform coefficient position is not within the sub-group, context adaptively entropy encode transform coefficients within and outside the sub-group.

### Claim 12 (depends on 1)

The encoder according to claim 1, configured to
count a number of significant transform coefficients of the selected transform;
wherein the determination of the selectable list is dependent on the count.

### Claim 13 (depends on 1)

The encoder according to claim 1, configured to
evaluate the transform coefficient data with respect to whether a number of significant transform coefficients of the selected transform within a sub group of the transform coefficients of the selected transform exceeds a certain threshold or not;
perform the determination dependent on the count such that
if the number is larger than the certain threshold,
the selectable list of transforms for the current residual block is populated with at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a sub-group of primary transform coefficients of the primary transform to result into the sub group of the transform coefficients of the selected transform, and
if the number is smaller than the certain threshold,
the selectable list of transforms for a current residual block is not populated with any multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto the sub-group of primary transform coefficients of the primary transform.

### Claim 14 (depends on 1)

The encoder according to claim 1, configured to
code the transform coefficients of the current residual block by traversing a predetermined scan order and determine a last significant transform coefficient in said scan order,
perform the determination based on the position of the determined last coded significant transform coefficient such that
if the position of the determined last coded significant transform coefficient indicates a first number of available significant transform coefficients,
the selectable list of transforms for the current residual block is populated with at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a sub-group of primary transform coefficients of the primary transform to result in a sub group of the transform coefficients of the selected transform, and
if the position of the determined last coded significant transform coefficient indicates a second number of available significant transform coefficients,
the selectable list of transforms for a current residual block is not populated with any mufti-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto the sub-group of primary transform coefficients of the primary transform.

### Claim 15 (depends on 1)

The encoder according to claim 1, configured to determine the transform candidate list so that the transforms of the transform candidate list coincide in codomain.

### Claim 16 (depends on 1)

The encoder according to claim 1, wherein the transforms of the transform candidate list comprise a first transform and a second transform which
coincide in codomain,
wherein the second transform corresponds to a secondary transform being applied onto a sub-group of primary transform coefficients of the first transform with further primary transform coefficients of the first transform outside the sub group of primary transform coefficients of the first transform being set to zero.

### Claim 17 (depends on 16)

The encoder according to claim 16, configured to test coding the current residual block with respect to the second transform by setting to zero further primary transform coefficients of the first transform outside the sub group of primary transform coefficients of the first transform.

### Claim 18 (depends on 1)

The encoder according to claim 1, configured to
decide
whether to populate the transform candidate list with, or to exclude from the transform candidate list, at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a sub-group of primary transform coefficients of the primary transform to result into the sub group of the transform coefficients of the selected transform, or
where in the transform candidate list the at least one multi-stage transform is to be placed, depending on where according to the transform coefficient data significant transform coefficients are positioned.

### Claim 19 (depends on 1)

The encoder according to claim 1, configured to
decide
whether to populate the transform candidate list with, or to exclude from the transform candidate list, at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a sub-group of primary transform coefficients of the primary transform to result into the sub group of the transform coefficients of the selected transform, or
where in the transform candidate list the at least one multi-stage transform is to be placed, depending on whether according to the transform coefficient data any transform coefficient outside the sub group of the transform coefficients is significant.

### Claim 20 (depends on 1)

The encoder according to claim 1, configured to
decide
whether to populate the transform candidate list with, or to exclude from the transform candidate list, at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a sub-group of primary transform coefficients of the primary transform to result into the sub group of the transform coefficients of the selected transform, or
where in the transform candidate list the at least one multi-stage transform is to be placed depending on whether according to the transform coefficient data any transform coefficient inside the sub-group but outside the sub group of the transform coefficients is significant.

### Claim 21 (depends on 1)

The encoder according to claim 1, configured to
decide
whether to populate the transform candidate list with, or to exclude from the transform candidate list, at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a subgroup of primary transform coefficients of the primary transform to result into transform coefficients of the multi-stage transform being lower in number than residual samples within the prediction residual of the current residual block, and corresponding in transform coefficient position to a subset of transform coefficients of a further transform in the transform candidate list equaling the primary transform, wherein the primary transform coefficients of the primary transform are greater in number than the transform coefficients of the multi-stage transform, or
where in the transform candidate list the at least one multi-stage transform is to be placed relative to the further transform,
depending on
where according to the transform coefficient data significant transform coefficients are positioned, or
whether according to the transform coefficient data significant transform coefficients are positioned outside the subgroup of transform coefficients, or
whether according to the transform coefficient data significant transform coefficients are positioned outside the sub-group of primary transform coefficients.

### Claim 22

A decoder for decoding a picture from a data stream using block-based prediction and block-based residual decoding, the decoder supporting a set of transforms for the block-based residual decoding and configured to
determine a selectable list of transforms for a current residual block out of the set of transforms;
decode transform coefficient data from the data stream which represents a prediction residual within the residual block using one selected transform out of the selectable list of transforms;
derive the selected transform from the data stream, and/or perform the determination of the selectable list, in a manner depending on the transform coefficient data or on a portion of the data transform coefficient data.

### Claim 23 (depends on 22)

The decoder according to claim 22, configured to
determine the selectable list of transforms, by populating the selectable list with a number of transforms out of the set of transforms which number depends on the transform coefficient data, or on a portion of the transform coefficient data,
perform the signaling of the selected transform in the data stream in a manner so that a code rate spent in the data stream for the signaling the selected transform is the lower the lower the number is.

### Claim 24 (depends on 22)

The decoder according to claim 22, configured to
determine the selectable list of transforms, by ordering the selectable list of transforms depending on the transform coefficient data, or on a portion of the transform coefficient data,
perform the signaling the selected transform in the data stream using a variable length code, codewords of which are assigned to the transforms of the selectable list of transforms depending on an order of the transforms in the selectable list of transforms.

### Claim 25 (depends on 23)

The decoder according to claim 23, configured
so that the transform coefficient data comprises an indication of a significant transform coefficient position of the selected transform and values of transform coefficients of the selected transform which are traversed from the significant transform coefficient position onwards by a predetermined scan order which sequentially traverses coefficient positions of the selected transform;
wherein the determination is dependent on the indication.

### Claim 26 (depends on 25)

The decoder according to claim 25, configured to
decode a coarse version of the indication from the data stream prior to the deriving of the selected transform from the data stream wherein the determination is dependent on the coarse version of the indication, and
decode a refinement of the coarse version of the indication from the data stream subsequent of the deriving and depending on the selected transform.

### Claim 27 (depends on 26)

The decoder according to claim 26, configured to
decode as the coarse version a hint revealing whether the significant transform coefficient position is within a sub-group of transform coefficients or not,
and decode as the refinement a relative position information discriminating the significant transform coefficient position among positions within the sub-group in case of the significant transform coefficient position being within the sub-group and discriminating the significant transform coefficient position among positions outside the sub-group in case of the significant transform coefficient position being outside the sub-group.

### Claim 28 (depends on 27)

The decoder according to claim 27, wherein the decoder is configured to
in case of the hint revealing that the significant transform coefficient position is within the sub-group, determine the selectable list to comprise at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a sub-group of primary transform coefficients of the primary transform to result into the sub group of the transform coefficients of the selected transform, and
in case of the hint revealing that the significant transform coefficient position is not within the sub-group, determine the selectable list so as to not comprise the at least one multi-stage transform.

### Claim 29 (depends on 28)

The decoder according to claim 28, wherein the decoder is configured to
decode the relative position information using a variable length coding—VLC—
with a first maximum number of codes which corresponds to a number of coefficients within the sub-group in case of the hint revealing that the significant transform coefficient position is within the sub-group, and/or
with a second maximum number of codes which corresponds to a number of coefficients outside the sub-group in case of the hint revealing that the significant transform coefficient position is not within the sub-group.

### Claim 30 (depends on 27)

The decoder according to claim 27, wherein the decoder is configured to
in case of the hint revealing that the significant transform coefficient position is within the sub-group, decode after the coarse version but prior to the refinement, a secondary transform indicator indicating whether the selected transform is among the at least one mufti-stage transform and/or which among the at least one multi-stage transform is the selected transform.

### Claim 31 (depends on 27)

The decoder according to claim 27, wherein the decoder is configured to
in case of the hint revealing that the significant transform coefficient position is within the sub-group, use contexts which depend on the secondary transform indicator in order to context adaptively entropy decode the transform coefficients within the sub-group.

### Claim 32 (depends on 30)

The decoder according to claim 30, wherein the decoder is configured to
in case of the hint revealing that the significant transform coefficient position is not within the sub-group, context adaptively entropy decode transform coefficients within and outside the sub-group.

### Claim 33 (depends on 22)

The decoder according to claim 22, configured to
count a number of significant transform coefficients of the selected transform;
wherein the determination is dependent on the count.

### Claim 34 (depends on 22)

The decoder according to claim 22, configured to
evaluate the transform coefficient data with respect to whether a number of significant transform coefficients of the selected transform within a sub group of the transform coefficients of the selected transform exceeds a certain threshold or not;
perform the determination dependent on the count such that
if the number is larger than the certain threshold,
the selectable list of transforms for the current residual block is populated with at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a sub-group of primary transform coefficients of the primary transform to result into the sub group of the transform coefficients of the selected transform, and
if the number is smaller than the certain threshold,
the selectable list of transforms for a current residual block is not populated with any multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto the sub-group of primary transform coefficients of the primary transform.

### Claim 35 (depends on 22)

The decoder according to claim 22, configured to
code the transform coefficients of the current residual block by traversing a predetermined scan order and determine a last significant transform coefficient in said scan order,
perform the determination based on the position of the determined last coded significant transform coefficient such that
if the position of the determined last coded significant transform coefficient indicates a first number of available significant transform coefficients,
the selectable list of transforms for the current residual block is populated with at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a sub-group of primary transform coefficients of the primary transform to result in a sub group of the transform coefficients of the selected transform, and
if the position of the determined last coded significant transform coefficient indicates a second number of available significant transform coefficients,
the selectable list of transforms for a current residual block is not populated with any multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto the sub-group of primary transform coefficients of the primary transform.

### Claim 36 (depends on 22)

The decoder according to claim 22, configured to determine the transform candidate list so that the transforms of the transform candidate list coincide in codomain.

### Claim 37 (depends on 22)

The decoder according to claim 22, configured to
decide
whether to populate the transform candidate list with, or to exclude from the transform candidate list, at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a sub-group of primary transform coefficients of the primary transform to result into the sub group of the transform coefficients of the selected transform, or
where in the transform candidate list the at least one multi-stage transform is to be placed depending on where according to the transform coefficient data significant transform coefficients are positioned.

### Claim 38 (depends on 22)

The decoder according to claim 22, configured to
decide
whether to populate the transform candidate list with, or to exclude from the transform candidate list, at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a sub-group of primary transform coefficients of the primary transform to result into the sub group of the transform coefficients of the selected transform, or
where in the transform candidate list the at least one multi-stage transform is to be placed depending on whether according to the transform coefficient data any transform coefficient outside the sub group of the transform coefficients is significant.

### Claim 39 (depends on 22)

The decoder according to claim 22, configured to
decide
whether to populate the transform candidate list with, or to exclude from the transform candidate list, at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a sub-group of primary transform coefficients of the primary transform to result into the sub group of the transform coefficients of the selected transform, or
where in the transform candidate list the at least one multi-stage transform is to be placed depending on whether according to the transform coefficient data any transform coefficient inside the sub-group but outside the sub group of the transform coefficients is significant.

### Claim 40 (depends on 22)

The decoder according to claim 22, configured to
decide
whether to populate the transform candidate list with, or to exclude from the transform candidate list, at least one multi-stage transform involving a primary transform applied onto the prediction residual of the current residual block and a secondary transform applied onto a subgroup of primary transform coefficients of the primary transform to result into transform coefficients of the multi-stage transform being lower in number than residual samples within the prediction residual of the current residual block, and corresponding in transform coefficient position to a subset of transform coefficients of a further transform in the transform candidate list equaling the primary transform, wherein the primary transform coefficients of the primary transform are greater in number than the transform coefficients of the multi-stage transform, or
where in the transform candidate list the at least one multi-stage transform is to be placed relative to the further transform,
depending on
where according to the transform coefficient data significant transform coefficients are positioned, or
whether according to the transform coefficient data significant transform coefficients are positioned outside the subgroup of transform coefficients, or
whether according to the transform coefficient data significant transform coefficients are positioned outside the sub-group of primary transform coefficients.

### Claim 41

A method for encoding a picture into a data stream using block-based prediction and block-based residual coding, supporting a set of transforms for the block-based residual coding, wherein the method comprises:
determining a selectable list of transforms for a current residual block out of the set of transforms;
encoding transform coefficient data into the data stream which represents a prediction residual within the residual block using one selected transform out of the selectable list of transforms;
signaling the selected transform in the data stream, and/or perform the determination of the selectable list, in a manner depending on the transform coefficient data or on a portion of the transform coefficient data.

### Claim 42

A method for decoding a picture from a data stream using block-based prediction and block-based residual decoding, supporting a set of transforms for the block-based residual decoding, wherein the method comprises:
determining a selectable list of transforms for a current residual block out of the set of transforms;
decoding transform coefficient data from the data stream which represents a prediction residual within the residual block using one selected transform out of the selectable list of transforms;
deriving the selected transform from the data stream, and/or perform the determination of the selectable list, in a manner depending on the transform coefficient data or a portion of the data transform coefficient data.

### Claim 43

A non-transitory digital storage medium having stored thereon a computer program for performing a method for encoding a picture into a data stream using block-based prediction and block-based residual coding, supporting a set of transforms for the block-based residual coding, the method comprising:
determining a selectable list of transforms for a current residual block out of the set of transforms;
encoding transform coefficient data into the data stream which represents a prediction residual within the residual block using one selected transform out of the selectable list of transforms;
signaling the selected transform in the data stream, and/or perform the determination of the selectable list, in a manner depending on the transform coefficient data or on a portion of the transform coefficient data,
when said computer program is run by a computer.

### Claim 44

A non-transitory digital storage medium having stored thereon a computer program for performing amethod for decoding a picture from adata stream using block-based prediction and block-based residual decoding, supporting a set of transforms for the block-based residual decoding, the method comprising:
determining a selectable list of transforms for a current residual block out of the set of transforms;
decoding transform coefficient data from the data stream which represents a prediction residual within the residual block using one selected transform out of the selectable list of transforms;
deriving the selected transform from the data stream, and/or perform the determination of the selectable list, in a manner depending on the transform coefficient data or a portion of the data transform coefficient data,
when said computer program is run by a computer.

### Claim 45 (depends on 41)

A data stream acquirable by the method for encoding a picture of claim 41.

### Claim 46 (depends on 42)

A data stream acquirable by the method for decoding a picture of claim 42.
