# US 2022/0279194 A1 · Multi-stage block coding

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

- Number: US 2022/0279194 A1
- Document ID: US20220279194A1
- Status: Published application
- Kind: A1
- Application number: 17/671,512
- Filed: 2022-02-14
- Published: 2022-09-01
- Earliest claimed: 2020-02-04
- Assignees: Apple Inc.
- Applicants: Apple Inc.
- Inventors: Krishnakanth Rapaka; Alexandros Tourapis; David William Singer
- Web page: https://patentgrep.com/patent/US20220279194A1

## CPC

- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/103: Selection of coding mode or of prediction mode
- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- H04N 19/124: Quantisation
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/14: Coding unit complexity, e.g. amount of activity or edge presence estimation (H04N19/146 takes precedence)
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/182: the unit being a pixel
- H04N 19/192: the adaptation method, adaptation tool or adaptation type being iterative or recursive
- H04N 19/50: using predictive coding (H04N19/61 takes precedence)
- H04N 19/59: involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
- H04N 19/593: involving spatial prediction techniques
- H04N 19/61: in combination with predictive coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A multi-stage coding method includes receiving an input block of data for encoding and one or more previously coded samples associated with the input block. The input block is segmented into at least a first sub-region and a second sub-region. A prediction for the first sub-region is generated based on the one or more previously coded samples. Residual data for the first sub-region is obtained using the prediction for the first sub-region. A reconstruction of the first sub-region is generated using the residual data for the first sub-region and the prediction for the first sub-region. A prediction for the second sub-region is generated using the reconstruction of the first sub-region. Residual data for the second sub-region is obtained using the prediction for the second sub-region. The input block is encoded based in part on the residual data for the first region and the residual data for the second region.

## Claims

### Claim 1

(canceled)

### Claim 2

A method, comprising:
generating a prediction for a first sub-region of an input block of data;
generating a reconstruction of the first sub-region using the prediction for the first sub-region;
generating a prediction for a second sub-region of the input block based at least in part on the reconstruction of the first sub-region; and
encoding the input block based at least in part on the prediction for the first sub-region and the prediction for the second sub-region.

### Claim 3 (depends on 2)

The method of claim 2, further comprising
receiving one or more previously coded samples associated with the input block; and
generating the prediction for the first sub-region based on the one or more previously coded samples.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
obtaining residual data for the first sub-region using the prediction for the first sub-region; and
generating the reconstruction of the first sub-region using the prediction for the first sub-region and the residual data for the first sub-region.

### Claim 5 (depends on 2)

The method of claim 2, further comprising:
generating the prediction for the second sub-region based at least in part on the prediction for the first sub-region and the reconstruction of the first sub-region.

### Claim 6 (depends on 5)

The method of claim 5, wherein generating the prediction for the second sub-region based at least in part on the prediction for the first sub-region and the reconstruction of the first sub-region comprises determining a weighted average of the prediction for the first sub-region and the reconstruction of the first sub-region.

### Claim 7 (depends on 2)

The method of claim 2, further comprising:
receiving one or more previously coded samples associated with the input block; and
generating the prediction for the second sub-region based on at least two of: the previously coded samples, the prediction for the first sub-region, or the reconstruction of the first sub-region.

### Claim 8 (depends on 2)

The method of claim 2, further comprising:
resampling at least one of the prediction for the first sub-region or the reconstruction of the first sub-region before generating the prediction for the second sub-region.

### Claim 9 (depends on 8)

The method of claim 8, wherein the resampling is based at least in part on a prediction mode used for the prediction for the first sub-region.

### Claim 10 (depends on 2)

The method of claim 2, further comprising:
segmenting the input block into the first sub-region and the second sub-region.

### Claim 11

A method, comprising:
receiving encoded data representative of an input block of data, the input block including at least a first sub-region and a second sub-region;
decoding the encoded data to obtain residual data for the input block, the residual data including residual data for the first sub-region and residual data for the second sub-region;
generating a prediction for the first sub-region of the input block;
generating a reconstruction of the first sub-region using the prediction for the first sub-region and the residual data for the first sub-region;
generating a prediction for the second sub-region based at least in part on the reconstruction of the first sub-region; and
generating a reconstruction of the second sub-region using the prediction for the second sub-region and the residual data for the second sub-region.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
receiving one or more previously coded samples associated with the input block; and
generating the prediction for the first sub-region based on the one or more previously coded samples.

### Claim 13 (depends on 11)

The method of claim 11, further comprising:
generating the prediction for the second sub-region based at least in part on the prediction for the first sub-region and the reconstruction of the first sub-region.

### Claim 14 (depends on 13)

The method of claim 13, wherein generating the prediction for the second sub-region based at least in part on the prediction for the first sub-region and the reconstruction of the first sub-region comprises determining a weighted average for the prediction for the first sub-region and the reconstruction of the first sub-region.

### Claim 15 (depends on 14)

The method of claim 14, further comprising decoding the encoded data to obtain one or more weights for determining the weighted average.

### Claim 16 (depends on 11)

The method of claim 11, further comprising:
receiving one or more previously coded samples associated with the input block; and
generating the prediction for the second sub-region based on at least two of: the previously coded samples, the prediction for the first sub-region, or the reconstruction of the first sub-region.

### Claim 17 (depends on 16)

The method of claim 16, wherein generating the prediction for the second sub-region comprises determining a weighted average of the prediction for the first sub-region, the reconstruction of the first sub-region, and a prediction for the second sub-region generated based on the one or more previously coded samples associated with the input block.

### Claim 18 (depends on 11)

The method of claim 11, further comprising:
resampling at least one of the prediction for the first sub-region or the reconstruction of the first sub-region before generating the prediction for the second sub-region.

### Claim 19 (depends on 18)

The method of claim 18, wherein the resampling is based at least in part on a prediction mode used for the prediction for the first sub-region.

### Claim 20 (depends on 11)

The method of claim 11, further comprising generating a reconstruction of the input block based on the reconstruction of the first sub-region and the reconstruction of the second sub-region.

### Claim 21

A system, comprising:
at least one processor; and
memory storing instructions executable by the at least one processor to perform operations comprising:
receiving encoded data representative of an input block of data, the input block including at least a first sub-region and a second sub-region;
decoding the encoded data to obtain residual data for the input block, the residual data including residual data for the first sub-region and residual data for the second sub-region;
generating a prediction for the first sub-region of the input block;
generating a reconstruction of the first sub-region using the prediction for the first sub-region and the residual data for the first sub-region;
generating a prediction for the second sub-region based at least in part on the reconstruction of the first sub-region; and
generating a reconstruction of the second sub-region using the prediction for the second sub-region and the residual data for the second sub-region.
