# US 2024/0205397 A1 · Apparatus and method for performing deblocking

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

- Number: US 2024/0205397 A1
- Document ID: US20240205397A1
- Status: Published application
- Kind: A1
- Application number: 18/589,185
- Filed: 2024-02-27
- Published: 2024-06-20
- Earliest claimed: 2018-08-10
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Anand Meher KOTRA; Jianle CHEN; Semih ESENLIK; Biao WANG; Han GAO; Zhijie ZHAO
- Web page: https://patentgrep.com/patent/US20240205397A1

## CPC

- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- 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/132: Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
- H04N 19/134: characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/86: involving reduction of coding artifacts, e.g. of blockiness
- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Embodiments of the present disclosure relate to the field of picture processing. Especially, the embodiments are directed to improving the deblocking filter of an image coding device. During the deblocking, at most a number MA of sample values of the first coding block adjacent to the block edge are modified and at most a number MB of sample values of the second coding block adjacent to the block edge are modified; or at most a number MA of sample values of the second coding block adjacent to the block edge are modified and at most a number MB of sample values of the first coding block adjacent to the block edge are modified, MA≠MB.

## Claims

### Claim 1

A deblocking filter apparatus for use in an image encoder or an image decoder, for deblocking a block edge between a first image block and a second image block,
wherein the first image block has a block size of M*N or N*M, and M and N represent a width and height of the first image block respectively, or N and M represent the width and height of the first image block respectively;
wherein the second image block has a block size of L*T or T*L, and L and T represent a width and height of the second image block respectively, or T and L represent the width and height of the second image block respectively, and
wherein the deblocking filter apparatus comprises: a memory storing instructions; and
a processor in communication with the memory and upon execution of the instructions, configures the apparatus to:
determine a value MA as a positive integer equal to 3 based on T being an even integer 2n equal to or less than 16 in case that one of the first image block and the second image block includes sub-blocks and the one image block including the sub-blocks is the second image block, wherein n is a positive integer;
determine a value MB as a positive integer equal to 7 based on N being an even integer 2n larger than 16;
modify values of at most MA samples of the second image block as first output values, wherein the at most MA samples are in a line perpendicular to the block edge and the at most MA samples are adjacent to the block edge; and
modify values of at most MB samples of the first image block as second output values, wherein the at most MB samples are in a line perpendicular to the block edge and the at most MB samples are adjacent to the block edge.

### Claim 2 (depends on 1)

The deblocking filter apparatus of claim 1,
wherein upon execution of the instructions, the apparatus is further configured to:
determine one or more of whether the block edge is to be filtered or whether an asymmetric long filtering is to be performed, based upon
values of at most DA samples of the first image block that are adjacent to the block edge, as first decision values, and
values of at most DB samples of the second image block that are adjacent to the block edge, as second decision values, wherein DA and DB are integer numbers.

### Claim 3 (depends on 2)

The deblocking filter apparatus of claim 2, wherein
D
⁢
A
=
M
⁢
A
+
1
⁢
and
⁢
DB
=
M
⁢
B
+
1.

### Claim 4 (depends on 1)

The deblocking filter apparatus of claim 1, wherein
if the block edge is a horizontal block edge, a direction along the height N of the first image block is perpendicular to the block edge, and a direction along the height T of the second image block is perpendicular to the block edge, wherein the height N of the first image block is an even integer 2n larger than 16, and the height T of the second image block is an even integer 2n equal to or less than 16; or
if the block edge is a vertical block edge, a direction along the width N of the first image block is perpendicular to the block edge, and a direction along the width T of the second image block is perpendicular to the block edge, wherein the width N of the first image block is an even integer 2n larger than 16, and the width T of the second image block is an even integer 2n equal to or less than 16.

### Claim 5 (depends on 1)

The deblocking filter apparatus of claim 1, wherein the second image block is a current block and the first image block is a neighboring block of the current block.

### Claim 6 (depends on 5)

The deblocking filter apparatus of claim 5, wherein the first image block is left to the second image block.

### Claim 7 (depends on 1)

The deblocking filter apparatus of claim 1, wherein the first image block and the second image block are transform blocks; or the first image block and the second image block are coding blocks.

### Claim 8

A deblocking method, for deblocking a block edge between a first image block and a second image block in image encoding or image decoding,
wherein the first image block has a block size of M*N or N*M, and M and N represent a width and height of the first image block respectively, or N and M represent the width and height of the first image block respectively;
wherein the second image block has a block size of L*T or T*L, and L and T represent a width and height of the second image block respectively, or T and L represent the width and height of the second image block respectively,
the deblocking method comprising:
determining a value MA as a positive integer equal to 3 based on T being an even integer 2n equal to or less than 16 in the case that one of the first image block and the second image block includes sub-blocks and the one image block including the sub-blocks is the second image block, wherein n is a positive integer;
determining a value MB as a positive integer equal to 7 based on N being an even integer 2n larger than 16;
modifying values of at most MA samples of the second image block as first output values, wherein the at most MA samples are in a line perpendicular to the block edge and the at most MA samples are adjacent to the block edge; and
modifying values of at most MB samples of the first image block as second output values, wherein the at most MB values of the samples are in a line perpendicular to the block edge and the at most MB values of the samples are adjacent to the block edge.

### Claim 9 (depends on 8)

The deblocking method of claim 8, further comprising:
determining one or more of whether the block edge is to be filtered or whether an asymmetric long filtering is to be performed, based upon:
values of at most DA samples of the first image block that are adjacent to the block edge as first decision values, and
values of at most DB samples of the second image block that are adjacent to the block edge as second decision values, wherein DA and DB are integer numbers.

### Claim 10 (depends on 9)

The deblocking method of claim 9, wherein DA=MA+1 and DB=MB+1.

### Claim 11 (depends on 8)

The deblocking method of claim 8, wherein
if the block edge is a horizontal block edge, a direction along the height N of the first image block is perpendicular to the block edge, and a direction along the height T of the second image block is perpendicular to the block edge, wherein the height N of the first image block is an even integer 2n larger than 16, and the height T of the second image block is an even integer 2n equal to or less than 16; or
if the block edge is a vertical block edge, a direction along the width N of the first image block is perpendicular to the block edge, and a direction along the width T of the second image block is perpendicular to the block edge, wherein the width N of the first image block is an even integer 2n larger than 16, and the width T of the second image block is an even integer 2n equal to or less than 16.

### Claim 12 (depends on 8)

The deblocking method of claim 8, wherein the second image block is a current block and the first image block is a neighboring block of the current block.

### Claim 13 (depends on 12)

The deblocking method of claim 12, wherein the first image block is left to the second image block.

### Claim 14 (depends on 8)

The deblocking method of claim 8, wherein the first image block and the second image block are transform blocks; or the first image block and the second image block are coding blocks.

### Claim 15

A non-transitory computer-readable medium storing computer instructions that, when executed by one or more processors, cause the one or more processors to perform operations for deblocking a block edge between a first image block and a second image block in image encoding or image decoding,
wherein the first image block has a block size of M*N or N*M, and M and N represent a width and height of the first image block respectively, or N and M represent the width and height of the first image block respectively;
wherein the second image block has a block size of L*T or T*L, and L and T represent a width and height of the second image block respectively, or T and L represent the width and height of the second image block respectively,
the operations comprising:
determining a value MA as a positive integer equal to 3 based on T being an even integer 2n equal to or less than 16 in case that one of the first image block and the second image block includes sub-blocks and the one image block including the sub-blocks is the second image block, wherein n is a positive integer;
determining a value MB as a positive integer equal to 7 based on N being an even integer 2n larger than 16;
modifying values of at most MA samples of the second image block as first output values, wherein the at most MA samples are in a line perpendicular to the block edge and the at most MA samples are adjacent to the block edge; and
modifying values of at most MB samples of the first image block as second output values, wherein the at most MB values of the samples are in a line perpendicular to the block edge and the at most MB values of the samples are adjacent to the block edge.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, further comprising:
determining one or more of whether the block edge is to be filtered or whether an asymmetric long filtering is to be performed, based upon:
values of at most DA samples of the first image block that are adjacent to the block edge as first decision values, and
values of at most DB samples of the second image block that are adjacent to the block edge as second decision values, wherein DA and DB are integer numbers.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein DA=MA+1 and DB=MB+1.

### Claim 18 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein
if the block edge is a horizontal block edge, a direction along the height N of the first image block is perpendicular to the block edge, and a direction along the height T of the second image block is perpendicular to the block edge, wherein the height N of the first image block is an even integer 2n larger than 16, and the height T of the second image block is an even integer 2n equal to or less than 16; or
if the block edge is a vertical block edge, a direction along the width N of the first image block is perpendicular to the block edge, and a direction along the width T of the second image block is perpendicular to the block edge, wherein the width N of the first image block is an even integer 2n larger than 16, and the width T of the second image block is an even integer 2n equal to or less than 16.

### Claim 19 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the second image block is a current block and the first image block is a neighboring block of the current block.

### Claim 20 (depends on 19)

The non-transitory computer-readable medium of claim 19, wherein the first image block is left to the second image block.
