# US 2022/0295092 A1 · Encoder, decoder, encoding method, and decoding method

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

- Number: US 2022/0295092 A1
- Document ID: US20220295092A1
- Status: Published application
- Kind: A1
- Application number: 17/828,658
- Filed: 2022-05-31
- Published: 2022-09-15
- Earliest claimed: 2017-09-20
- Assignees: Panasonic Intellectual Property Corporation of America
- Applicants: Panasonic Intellectual Property Corporation of America
- Inventors: Virginie DRUGEON; Tadamasa TOMA; Takahiro NISHI; Kiyofumi ABE; Ryuichi KANOH
- Web page: https://patentgrep.com/patent/US20220295092A1

## CPC

- 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/513: Processing of motion vectors
- 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/176: the region being a block, e.g. a macroblock
- H04N 19/182: the unit being a pixel
- H04N 19/196: being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters (processing of motion vectors H04N19/513)
- H04N 19/593: involving spatial prediction techniques
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

An encoder is an encoder that encodes a block in a picture using a prediction image of the block, and includes circuitry and memory. Using the memory, the circuitry: calculates a first average pixel value which is an average pixel value of first reference samples out of the first reference samples and second reference samples, The first reference samples are referable and located outside the block and adjacent to a first side of the block. The second reference samples are referable and located outside the block and adjacent to a second side of the block. When generating the prediction image, the circuitry applies the same prediction pixel value to inner samples among current samples to be processed that are included in the block. The inner samples constitute a quadrilateral region including at least two current samples in each of a horizontal direction and a vertical direction.

## Claims

### Claim at position 1

1-22. (canceled)

### Claim 23

An encoder that encodes a block in a picture using a prediction image of the block, the encoder comprising:
a circuitry; and
a memory, wherein
using the memory, the circuitry:
calculates an average pixel value of reference samples; and
generates the prediction image by applying the average pixel value to inner samples among current samples to be processed that are included in the block,
the inner samples constitute a quadrilateral region including at least two current samples in each of a horizontal direction and a vertical direction, and
the average pixel value is calculated using the following formulae:
DCval
=
{
(
(
∑
x
=
0
w
-
1
⁢
p
⁡
(
x
,
-
1
)
)
+
(
∑
y
=
0
h
-
1
⁢
p
⁡
(
-
1
,
y
)
)
+
w
)
⪢
(
log
2
⁡
(
w
)
+
1
)
,
w
=
h
(
(
∑
x
=
0
w
-
1
⁢
p
⁡
(
x
,
-
1
)
)
+
(
w
⪢
1
)
)
⪢
log
2
⁡
(
w
)
,
w
>
h
(
(
∑
y
=
0
h
-
1
⁢
p
⁡
(
-
1
,
y
)
)
+
(
h
⪢
1
)
)
⪢
log
2
⁡
(
w
)
,
w
<
h
where (i) w denotes the number of samples in the horizontal direction of the block and corresponds to a horizontal size of the block, (ii) h denotes the number of samples in the vertical direction of the block and corresponds to a vertical size of the block, (iii) x denotes a coordinate position in the horizontal direction, indicates 0 for a sample located at a left edge of the block, and increases by 1 rightward from sample to sample, (iv) y denotes a coordinate position in the vertical direction, indicates 0 for a sample located at an upper edge of the block, and increases by 1 downward from sample to sample, and (v) p(x,y) denotes a pixel value of a sample whose coordinate position is (x,y).

### Claim 24

A decoder that decodes a block in a picture using a prediction image of the block, the decoder comprising:
a circuitry; and
a memory, wherein
using the memory, the circuitry:
calculates an average pixel value of reference samples; and
generates the prediction image by applying the average pixel value to inner samples among current samples to be processed that are included in the block,
the inner samples constitute a quadrilateral region including at least two current samples in each of a horizontal direction and a vertical direction, and
the average pixel value is calculated using the following formulae:
DCval
=
{
(
(
∑
x
=
0
w
-
1
⁢
p
⁡
(
x
,
-
1
)
)
+
(
∑
y
=
0
h
-
1
⁢
p
⁡
(
-
1
,
y
)
)
+
w
)
⪢
(
log
2
⁡
(
w
)
+
1
)
,
w
=
h
(
(
∑
x
=
0
w
-
1
⁢
p
⁡
(
x
,
-
1
)
)
+
(
w
⪢
1
)
)
⪢
log
2
⁡
(
w
)
,
w
>
h
(
(
∑
y
=
0
h
-
1
⁢
p
⁡
(
-
1
,
y
)
)
+
(
h
⪢
1
)
)
⪢
log
2
⁡
(
w
)
,
w
<
h
where (i) w denotes the number of samples in the horizontal direction of the block and corresponds to a horizontal size of the block, (ii) h denotes the number of samples in the vertical direction of the block and corresponds to a vertical size of the block, (iii) x denotes a coordinate position in the horizontal direction, indicates 0 for a sample located at a left edge of the block, and increases by 1 rightward from sample to sample, (iv) y denotes a coordinate position in the vertical direction, indicates 0 for a sample located at an upper edge of the block, and increases by 1 downward from sample to sample, and (v) p(x,y) denotes a pixel value of a sample whose coordinate position is (x,y).

### Claim 25

An encoding method for encoding a block in a picture using a prediction image of the block, the encoding method comprising:
calculating an average pixel value of reference samples; and
generating the prediction image by applying the average pixel value to inner samples among current samples to be processed that are included in the block,
wherein the inner samples constitute a quadrilateral region including at least two current samples in each of a horizontal direction and a vertical direction, and
the average pixel value is calculated using the following formulae:
DCval
=
{
(
(
∑
x
=
0
w
-
1
⁢
p
⁡
(
x
,
-
1
)
)
+
(
∑
y
=
0
h
-
1
⁢
p
⁡
(
-
1
,
y
)
)
+
w
)
⪢
(
log
2
⁡
(
w
)
+
1
)
,
w
=
h
(
(
∑
x
=
0
w
-
1
⁢
p
⁡
(
x
,
-
1
)
)
+
(
w
⪢
1
)
)
⪢
log
2
⁡
(
w
)
,
w
>
h
(
(
∑
y
=
0
h
-
1
⁢
p
⁡
(
-
1
,
y
)
)
+
(
h
⪢
1
)
)
⪢
log
2
⁡
(
w
)
,
w
<
h
where (i) w denotes the number of samples in the horizontal direction of the block and corresponds to a horizontal size of the block, (ii) h denotes the number of samples in the vertical direction of the block and corresponds to a vertical size of the block, (iii) x denotes a coordinate position in the horizontal direction, indicates 0 for a sample located at a left edge of the block, and increases by 1 rightward from sample to sample, (iv) y denotes a coordinate position in the vertical direction, indicates 0 for a sample located at an upper edge of the block, and increases by 1 downward from sample to sample, and (v) p(x,y) denotes a pixel value of a sample whose coordinate position is (x,y).

### Claim 26

A decoding method for decoding a block in a picture using a prediction image of the block, the decoding method comprising:
calculating an average pixel value of reference samples; and
generating the prediction image by applying the average pixel value to inner samples among current samples to be processed that are included in the block,
wherein the inner samples constitute a quadrilateral region including at least two current samples in each of a horizontal direction and a vertical direction, and
the average pixel value is calculated using the following formulae:
DCval
=
{
(
(
∑
x
=
0
w
-
1
⁢
p
⁡
(
x
,
-
1
)
)
+
(
∑
y
=
0
h
-
1
⁢
p
⁡
(
-
1
,
y
)
)
+
w
)
⪢
(
log
2
⁡
(
w
)
+
1
)
,
w
=
h
(
(
∑
x
=
0
w
-
1
⁢
p
⁡
(
x
,
-
1
)
)
+
(
w
⪢
1
)
)
⪢
log
2
⁡
(
w
)
,
w
>
h
(
(
∑
y
=
0
h
-
1
⁢
p
⁡
(
-
1
,
y
)
)
+
(
h
⪢
1
)
)
⪢
log
2
⁡
(
w
)
,
w
<
h
where (i) w denotes the number of samples in the horizontal direction of the block and corresponds to a horizontal size of the block, (ii) h denotes the number of samples in the vertical direction of the block and corresponds to a vertical size of the block, (iii) x denotes a coordinate position in the horizontal direction, indicates 0 for a sample located at a left edge of the block, and increases by 1 rightward from sample to sample, (iv) y denotes a coordinate position in the vertical direction, indicates 0 for a sample located at an upper edge of the block, and increases by 1 downward from sample to sample, and (v) p(x,y) denotes a pixel value of a sample whose coordinate position is (x,y).
