# US 2025/0159257 A1 · Efficient implementation of matrix-based intra-prediction

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

- Number: US 2025/0159257 A1
- Document ID: US20250159257A1
- Status: Published application
- Kind: A1
- Application number: 19/025,043
- Filed: 2025-01-16
- Published: 2025-05-15
- Earliest claimed: 2019-09-24
- Assignees: Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
- Applicants: Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
- Inventors: Jonathan PFAFF; Björn STALLENBERGER; Michael SCHAFER; Philipp MERKLE; Tobias HINZ; Philipp HELLE; Heiko SCHWARZ; Detlev MARPE; Thomas WIEGAND; Benjamin BROSS; Martin WINKEN; Mischa SIEKMANN
- Web page: https://patentgrep.com/patent/US20250159257A1

## CPC

- H04N 19/593: involving spatial prediction techniques
- H04N 19/619: {the transform being operated outside the prediction loop}
- H04N 19/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/59: involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for decoding a predetermined block of a picture using intra-prediction by reading, for each of predetermined intra-prediction blocks, from a data stream, a mode index identifying a matrix-based intra-prediction mode is disclosed. Samples of each predetermined intra-prediction block are predicted by computing a matrix-vector product between an input vector derived from reference samples and a prediction matrix associated with the identified matrix-based intra-prediction mode (k) and associating components of an output vector obtained by the matrix-vector product onto sample positions of the predetermined block. Further predetermined intra-predicted blocks of the picture are predicted to obtain a prediction signal. A transformation flag is decoded from the data stream using context adaptive binary arithmetic coding, and a prediction residual is decoded and re-transformed using a reverse transformation based on the transformation flag to obtain a prediction residual signal. The prediction residual signal is used to correct the prediction signal.

## Claims

### Claim 1

An apparatus for decoding a picture, wherein the apparatus comprises one or more processors configured to:
for a first subset of intra-predicted blocks:
decode a mode index from a data stream, wherein the mode index specifies a prediction matrix from a list of matrix-based intra-prediction modes,
compute a matrix-vector product based on an input vector and the prediction matrix,
obtain an output vector from the matrix-vector product,
associate components of the output vector with sample positions of the first subset of intra-predicted blocks to obtain a first prediction signal;
for a second subset of intra-predicted blocks, predict the second subset of intra-predicted blocks using one of an angular prediction mode, a DC mode, and a planar prediction mode to obtain a second prediction signal;
determine whether an intra-predicted block is one of the first subset of intra-predicted blocks or one of the second subset of intra-predicted blocks;
select a probability model in accordance with the determination;
decode a transformation flag for the intra-predicted block from the data stream, wherein the transformation flag is decoded using context adaptive binary arithmetic coding;
determine, based on the transformation flag, whether a prediction residual for the intra-predicted block is coded into the data stream using a default transformation or a different transformation;
decode the prediction residual for the intra-predicted block from the data stream using the default transformation or the different transformation in accordance with the determination;
transform the prediction residual using a reverse transformation to obtain a prediction residual signal; and
correct the first prediction signal or the second prediction signal using the prediction residual signal.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the default transformation is a discrete cosine transform (DCT)-II applied horizontally and vertically.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the one or more processors are configured to decode one or more syntax elements from the data stream, wherein the one or more syntax elements indicate the different transformation when the transformation flag indicates that the prediction residual for the intra-predicted block is coded into the data stream using the different transformation.

### Claim 4 (depends on 3)

The apparatus of claim 3, wherein the one or more syntax elements indicate the different transformation out of a set of separable transforms using a first one of a discrete sine transform (DST)-VII and a discrete cosine transform (DCT)-DCT-VIII horizontally and a second one of a DST-VII and a DCT-DCT-VIII vertically.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the probability model comprises a first probability model, and wherein the one or more processors are configured to update the first probability model based on the transformation flag when the intra-predicted block is one of the first subset of intra-predicted blocks.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the probability model comprises a second probability model, and wherein the one or more processors are configured to update the second probability model when the intra-predicted block is one of the second subset of intra-predicted blocks.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein:
the input vector is derived from reference samples in a neighbor intra-predicted block neighboring the intra-predicted block,
the prediction matrix is associated with a matrix-based intra-prediction mode (k) indicated by the mode index,
the reverse transformation reverses the default transformation when the transformation flag indicates that the prediction residual for the intra-predicted block is coded into the data stream using the default transformation, and
the reverse transformation reverses the different transformation when the transformation flag indicates that the prediction residual for the intra-predicted block is coded into the data stream using the different transformation.

### Claim 8

A method for decoding a picture, comprising:
for a first subset of intra-predicted blocks:
decoding a mode index from a data stream, wherein the mode index specifies a prediction matrix from a list of matrix-based intra-prediction modes,
computing a matrix-vector product based on an input vector and the prediction matrix,
obtaining an output vector from the matrix-vector product,
associating components of the output vector with sample positions of the first subset of intra-predicted blocks to obtain a first prediction signal;
for a second subset of intra-predicted blocks, predicting the second subset of intra-predicted blocks using one of an angular prediction mode, a DC mode, and a planar prediction mode to obtain a second prediction signal;
determining whether an intra-predicted block is one of the first subset of intra-predicted blocks or one of the second subset of intra-predicted blocks;
selecting a probability model in accordance with the determination;
decoding a transformation flag for the intra-predicted block from the data stream, wherein the transformation flag is decoded using context adaptive binary arithmetic coding;
determining, based on the transformation flag, whether a prediction residual for the intra-predicted block is coded into the data stream using a default transformation or a different transformation;
decoding the prediction residual for the intra-predicted block from the data stream using the default transformation or the different transformation in accordance with the determination;
transforming the prediction residual using a reverse transformation to obtain a prediction residual signal; and
correcting the first prediction signal or the second prediction signal using the prediction residual signal.

### Claim 9 (depends on 8)

The method of claim 8, wherein the default transformation is a discrete cosine transform (DCT)-II applied horizontally and vertically.

### Claim 10 (depends on 8)

The method of claim 8, further comprising decoding one or more syntax elements from the data stream, wherein the one or more syntax elements indicate the different transformation when the transformation flag indicates that the prediction residual for the intra-predicted block is coded into the data stream using the different transformation.

### Claim 11 (depends on 10)

The method of claim 10, wherein the one or more syntax elements indicate the different transformation out of a set of separable transforms using a first one of a discrete sine transform (DST)-VII and a discrete cosine transform (DCT)-DCT-VIII horizontally and a second one of a DST-VII and a DCT-DCT-VIII vertically.

### Claim 12 (depends on 8)

The method of claim 8, wherein the probability model comprises a first probability model, and wherein the method further comprises updating the first probability model based on the transformation flag when the intra-predicted block is one of the first subset of intra-predicted blocks.

### Claim 13 (depends on 8)

The method of claim 8, wherein the probability model comprises a second probability model, and wherein the method further comprises updating the second probability model when the intra-predicted block is one of the second subset of intra-predicted blocks.

### Claim 14 (depends on 8)

The method of claim 8, wherein:
the input vector is derived from reference samples in a neighbor intra-predicted block neighboring the intra-predicted block,
the prediction matrix is associated with a matrix-based intra-prediction mode (k) indicated by the mode index,
the reverse transformation reverses the default transformation when the transformation flag indicates that the prediction residual for the intra-predicted block is coded into the data stream using the default transformation, and
the reverse transformation reverses the different transformation when the transformation flag indicates that the prediction residual for the intra-predicted block is coded into the data stream using the different transformation.

### Claim 15

A non-transitory computer-readable storage medium storing instructions that, wherein executed by one or more processors, cause a decoding apparatus to:
for a first subset of intra-predicted blocks:
decode a mode index from a data stream, wherein the mode index specifies a prediction matrix from a list of matrix-based intra-prediction modes,
compute a matrix-vector product based on an input vector and the prediction matrix,
obtain an output vector from the matrix-vector product,
associate components of the output vector with sample positions of the first subset of intra-predicted blocks to obtain a first prediction signal;
for a second subset of intra-predicted blocks, predict the second subset of intra-predicted blocks using one of an angular prediction mode, a DC mode, and a planar prediction mode to obtain a second prediction signal;
determine whether an intra-predicted block is one of the first subset of intra-predicted blocks or one of the second subset of intra-predicted blocks;
select a probability model in accordance with the determination;
decode a transformation flag for the intra-predicted block from the data stream, wherein the transformation flag is decoded using context adaptive binary arithmetic coding;
determine, based on the transformation flag, whether a prediction residual for the intra-predicted block is coded into the data stream using a default transformation or a different transformation;
decode the prediction residual for the intra-predicted block from the data stream using the default transformation or the different transformation in accordance with the determination;
transform the prediction residual using a reverse transformation to obtain a prediction residual signal; and
correct the first prediction signal or the second prediction signal using the prediction residual signal.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the default transformation is a discrete cosine transform (DCT)-II applied horizontally and vertically.

### Claim 17 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the one or more processors are configured to decode one or more syntax elements from the data stream, wherein the one or more syntax elements indicate the different transformation when the transformation flag indicates that the prediction residual for the intra-predicted block is coded into the data stream using the different transformation.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the one or more syntax elements indicate the different transformation out of a set of separable transforms using a first one of a discrete sine transform (DST)-VII and a discrete cosine transform (DCT)-DCT-VIII horizontally and a second one of a DST-VII and a DCT-DCT-VIII vertically.

### Claim 19 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the probability model comprises a first probability model, and wherein the one or more processors are configured to update the first probability model based on the transformation flag when the intra-predicted block is one of the first subset of intra-predicted blocks.

### Claim 20 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the probability model comprises a second probability model, and wherein the one or more processors are configured to update the second probability model when the intra-predicted block is one of the second subset of intra-predicted blocks.

### Claim 21 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein:
the input vector is derived from reference samples in a neighbor intra-predicted block neighboring the intra-predicted block,
the prediction matrix is associated with a matrix-based intra-prediction mode (k) indicated by the mode index,
the reverse transformation reverses the default transformation when the transformation flag indicates that the prediction residual for the intra-predicted block is coded into the data stream using the default transformation, and
the reverse transformation reverses the different transformation when the transformation flag indicates that the prediction residual for the intra-predicted block is coded into the data stream using the different transformation.
