# US 2013/0279583 A1 · Intra Prediction in Lossless Coding in HEVC

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

- Number: US 2013/0279583 A1
- Document ID: US20130279583A1
- Status: Published application
- Kind: A1
- Application number: 13/866,468
- Filed: 2013-04-19
- Published: 2013-10-24
- Earliest claimed: 2012-04-20
- Assignees: Futurewei Technologies, Inc.
- Applicants: Futurewei Technologies, Inc.
- Inventors: Wen Gao; Minqiang Jiang; Haoping Yu
- Web page: https://patentgrep.com/patent/US20130279583A1

## CPC

- H04N 19/593: involving spatial prediction techniques
- H04N 19/11: among a plurality of spatial predictive coding modes
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N 19/134: characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- 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/182: the unit being a pixel
- H04N 19/51: Motion estimation or motion compensation
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method comprising computing predicted values for a plurality of border pixels in a prediction unit (PU) using corresponding left, upper, and upper left adjacent neighboring pixels in the PU, and computing predicted values for a second plurality of pixels in the PU using sample based angular prediction (SAP), wherein the second plurality of pixels comprises all other pixels in the PU besides the plurality of border pixels.

## Claims

### Claim 1

A method comprising:
computing predicted values for a plurality of border pixels in a prediction unit (PU) using corresponding left, upper, and upper left adjacent neighboring pixels in the PU; and
computing predicted values for a second plurality of pixels in the PU using sample based angular prediction (SAP), wherein the second plurality of pixels comprises all other pixels in the PU besides the plurality of border pixels.

### Claim 2 (depends on 1)

The method of claim 1, wherein computing predicted values for the plurality of border pixels comprises:
for each pixel in the plurality of border pixels computing the predicted value based on corresponding left, upper, and upper left adjacent neighboring pixel values.

### Claim 3 (depends on 2)

The method of claim 2, wherein computing predicted values for the second plurality of pixels comprises:
for each pixel in the second plurality of pixels computing the predicted value as a linear combination of corresponding neighboring pixel values according to a prediction angle.

### Claim 4 (depends on 3)

The method of claim 3, wherein computing the predicted value based on the corresponding left, upper, and upper left adjacent neighboring pixel values comprises computing the predicted value as:
P

(
X
)
=
{
min

(
A
,
B
)
if


C
≥
max

(
A
,
B
)
max

(
A
,
B
)
if


C
≤
min

(
A
,
B
)
A
+
B
-
C
else
,
where P(X) represents the predicted value of pixel X, A represents the corresponding left pixel value, B represents the corresponding upper pixel value, and C represents the corresponding upper left pixel value.

### Claim 5 (depends on 3)

The method of claim 3, wherein the predicted values for the plurality of border pixels and the predicted values for the second plurality of pixels form a prediction block of the PU, wherein the method further comprises:
subtracting the prediction block from an original block to generate a residual block; and
perform lossless encoding of the residual block by entropy encoding the residual block to generate a portion of a bitstream.

### Claim 6 (depends on 3)

The method of claim 3, further comprising:
selecting a scanning processing order as a horizontal scanning processing order or a vertical scanning processing order;
selecting the prediction angle,
wherein the corresponding neighboring pixel values comprise corresponding two pixel values, and wherein the linear combination comprises weights of the two pixel values that depend on the prediction angle.

### Claim 7 (depends on 5)

The method of claim 5, further comprising:
formatting the portion of the bitstream for transmission; and
transmitting the formatted portion.

### Claim 8 (depends on 6)

The method of claim 6, further comprising selecting the plurality of border pixels based on the scanning processing order.

### Claim 9 (depends on 8)

The method of claim 8, wherein the plurality of border pixels is located along a right border of the PU if the scanning processing order is the horizontal scanning processing order, wherein the plurality of border pixels is located along a bottom border of the PU if the scanning processing order is the vertical scanning processing order.

### Claim 10

An apparatus comprising:
a processor configured to:
compute predicted values for a plurality of border pixels in a prediction unit (PU) using corresponding left, upper, and upper left adjacent neighboring pixels in the PU; and
compute predicted values for a second plurality of pixels in the PU using sample based angular prediction (SAP), wherein the second plurality of pixels comprises all other pixels in the PU besides the plurality of border pixels.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein computing predicted values for the plurality of border pixels comprises:
for each pixel in the plurality of border pixels computing the predicted value based on corresponding left, upper, and upper left adjacent neighboring pixel values.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein computing predicted values for the second plurality of pixels comprises:
for each pixel in the second plurality of pixels computing the predicted value as a linear combination of corresponding neighboring pixel values according to a prediction angle.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein computing the predicted value based on the corresponding left, upper, and upper left adjacent neighboring pixel values comprises computing the predicted value as:
P

(
X
)
=
{
min

(
A
,
B
)
if


C
≥
max

(
A
,
B
)
max

(
A
,
B
)
if


C
≤
min

(
A
,
B
)
A
+
B
-
C
else
,
where P(X) represents the predicted value of pixel X, A represents the corresponding left pixel value, B represents the corresponding upper pixel value, and C represents the corresponding upper left pixel value.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein the predicted values for the plurality of border pixels and the predicted values for the second plurality of pixels form a prediction block of the PU, wherein the processor is further configured to:
subtract the prediction block from an original block to generate a residual block; and
entropy encode the residual block to generate a portion of a bitstream.

### Claim 15 (depends on 12)

The apparatus of claim 12, wherein the processor is further configured to:
select a scanning processing order as a horizontal scanning processing order or a vertical scanning processing order;
select the prediction angle,
wherein the corresponding neighboring pixel values comprise corresponding two pixel values, and wherein the linear combination comprises weights of the two pixel values that depend on the prediction angle.

### Claim 16 (depends on 14)

The apparatus of claim 14, wherein the processor is further configured to format the portion of the bitstream for transmission, and wherein the apparatus further comprises a transmitter configured to transmit the formatted portion.

### Claim 17

A method comprising:
entropy decoding a portion of a bitstream to generate a residual block;
reconstructing a prediction block corresponding to the residual block by:
reconstructing a plurality of border pixels using corresponding left, upper, and upper left adjacent neighboring reconstructed pixel values; and
reconstructing a second plurality of pixels using sample based angular prediction (SAP), wherein the second plurality of pixels comprises all other pixels in the prediction block besides the plurality of border pixels, and wherein the second plurality of pixels and the plurality of border pixels form the prediction block; and
adding the prediction block to the residual block to generate an estimate of an original block in a video frame.

### Claim 18 (depends on 17)

The method of claim 17, wherein reconstructing the plurality of border pixels comprises:
for each pixel in the plurality of border pixels computing the predicated value based on the corresponding left, upper, and upper left adjacent neighboring reconstructed pixel values.

### Claim 19 (depends on 18)

The method of claim 18, wherein reconstructing the second plurality of pixels comprises:
for each pixel position in the second plurality of pixels computing a predicted value as a linear combination of a corresponding pair of neighboring reconstructed pixel values according to a prediction angle.

### Claim 20 (depends on 17)

The method of claim 17, further comprising:
determining the scanning processing order; and
determining the plurality of border pixels depending on the scanning processing order.

### Claim 21

An apparatus comprising:
a processor configured to:
entropy decode a portion of a bitstream to generate a residual block;
reconstruct a prediction block corresponding to the residual block by:
reconstructing a plurality of border pixels using corresponding left, upper, and upper left adjacent neighboring reconstructed pixel values; and
reconstructing a second plurality of pixels using sample based angular prediction (SAP), wherein the second plurality of pixels comprises all other pixels in the prediction block besides the plurality of border pixels, and wherein the second plurality of pixels and the plurality of border pixels form the prediction block; and
add the prediction block to the residual block to generate an estimate of an original block in a video frame.
