# US 2023/0276076 A1 · Apparatus and method for deblocking filter in video coding

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

- Number: US 2023/0276076 A1
- Document ID: US20230276076A1
- Status: Published application
- Kind: A1
- Application number: 18/313,984
- Filed: 2023-05-08
- Published: 2023-08-31
- Earliest claimed: 2018-10-12
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jianle Chen; Anand Meher Kotra; Semih Esenlik; Biao Wang; Han Gao; Zhijie Zhao
- Web page: https://patentgrep.com/patent/US20230276076A1

## CPC

- H04N 19/86: involving reduction of coding artifacts, e.g. of blockiness
- H04N 19/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/156: Availability of hardware or computational resources, e.g. encoding based on power-saving criteria
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/182: the unit being a pixel
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/423: characterised by memory arrangements (H04N19/433 takes precedence)
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/82: involving filtering within a prediction loop
- H04N 19/96: Tree coding, e.g. quad-tree coding
- H04N 19/119: Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
- 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/426: using memory downsizing methods
- H04N 19/61: in combination with predictive coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method and image processing device are provided, including a deblocking filter. The deblocking filter modifies values of at most MA samples of the first image block as first filter output values, the at most MA samples being located at a column of the first image block that is perpendicular to and adjacent to the horizontal block edge; and modifies values of at most MB samples of the second image block as second filter output values, the at most MB samples being located at a column of the second image block that is perpendicular to and adjacent to the horizontal block edge. At most a number MA of sample values of the first image block adjacent to the block edge are modified and at most a number MB of sample values of the second image block adjacent to the block edge are modified, wherein MA<MB.

## Claims

### Claim 1

A device for deblocking a chroma horizontal block edge between a first chroma block and a second chroma block of an image, the first chroma block having a block size of SA samples perpendicular to the chroma horizontal block edge and the second chroma block having a block size of SB samples perpendicular to the chroma horizontal block edge, the image including a plurality of coding tree units (CTUs) arranged in a matrix of CTUs, the device comprising:
a deblocking filter configured to:
determine whether the chroma horizontal block edge is overlapped with a horizontal chroma coding tree unit (CTU) boundary between a first CTU and a second CTU among the plurality of CTUs;
in response to determining that the chroma horizontal block edge is overlapped with the horizontal chroma CTU boundary;
use values of at most DA samples of the first chroma block as first filter decision values, the at most DA samples being located at a column of the first chroma block that is perpendicular to the chroma horizontal block edge and the at most DA samples being adjacent to the chroma horizontal block edge;
use values of at most DB samples of the second chroma block as second filter decision values, the at most DB samples being located at a column of the second chroma block that is perpendicular to the chroma horizontal block edge and the at most DB samples are adjacent to the chroma horizontal block edge;
modify values of at most MA samples of the first chroma block as first filter output values, the at most MA samples being located at the column of the first chroma block that is perpendicular to the chroma horizontal block edge and the at most MA samples being adjacent to the chroma horizontal block edge; and
modify values of at most MB samples of the second chroma block as second filter output values, the at most MB samples being located at the column of the second chroma block that is perpendicular to the chroma horizontal block edge and the at most MB samples being adjacent to the chroma horizontal block edge;
wherein the first chroma block is above the horizontal chroma CTU boundary and the second chroma block is below the horizontal chroma CTU boundary;
wherein SA=SB, MA<MB, DA<DB, SA>DA>MA, and SB>DB>MB; and
wherein SA and SB are equal to or greater than 8, MB=3 and MA=1.

### Claim 2 (depends on 1)

The device of claim 1, wherein SA and SB are equal to or greater than 8, DB=4 and DA=2.

### Claim 3 (depends on 1)

The device of claim 1, wherein the matrix of CTUs comprising multiple rows of CTUs and multiple columns of CTUs, the plurality of CTUs are processed by the device starting from a top-left CTU and ending at a bottom-right CTU of the matrix of CTUs, wherein each row of CTUs is processed sequentially one after another and within each row of CTUs, the CTUs are processed sequentially from the leftmost CTU of that row to the rightmost CTU of that row.

### Claim 4 (depends on 1)

The device of claim 1, wherein the first chroma block is a lowermost chroma block of the first CTU, the first chroma block having the block size of the SA samples perpendicular to the chroma horizontal block edge by N samples parallel to the chroma horizontal block edge.

### Claim 5 (depends on 1)

The device of claim 1, wherein the second chroma block is an uppermost chroma block of the second CTU, the second chroma block having the block size of the SB samples perpendicular to the chroma horizontal block edge by N samples parallel to the chroma horizontal block edge.

### Claim 6 (depends on 1)

The device of claim 1, wherein a row of CTUs of the matrix of CTUs in which the second CTU is located follows consecutively a row in which the first CTU is located.

### Claim 7 (depends on 1)

The device of claim 1, wherein the matrix comprising multiple rows of CTUs and multiple columns of CTUs, wherein the plurality of CTUs are processed by the device starting from a top-left CTU and ending at a bottom-right CTU of the matrix, wherein each row of CTUs is processed sequentially one after another and within each row of CTUs the CTUs are processed sequentially from the leftmost CTU of that row to the rightmost CTU of that row,
wherein the first chroma block is a lowermost chroma block of the first CTU among the plurality of CTUs, the first chroma block having a block size of SA samples perpendicular to the chroma horizontal block edge by N samples parallel to the chroma horizontal block edge,
wherein the second chroma block is an uppermost chroma block of the second CTU among the plurality of CTUs, the second chroma block having a block size of SB samples perpendicular to the chroma horizontal block edge by N samples parallel to the chroma horizontal block edge,
wherein a row of CTUs of the matrix in which the second CTU is located is a row following consecutively a row in which the first CTU is located.

### Claim 8

A deblocking method for deblocking a chroma horizontal block edge between a first chroma block and a second chroma block of an image, the first chroma block having a block size of SA samples perpendicular to the chroma horizontal block edge and the second chroma block having a block size of SB samples perpendicular to the chroma horizontal block edge, the image including a plurality of coding tree units (CTUs) arranged in a matrix of CTUs, the method comprising:
determine whether the chroma horizontal block edge is overlapped with a horizontal chroma coding tree unit (CTU) boundary between a first CTU and a second CTU among the plurality of CTUs;
in response to determining that the chroma horizontal block edge is overlapped with the horizontal chroma CTU boundary;
using values of at most DA samples of the first chroma block as first filter decision values, the at most DA samples being located at a column of the first chroma block that is perpendicular to the chroma horizontal block edge and the at most DA samples being adjacent to the chroma horizontal block edge;
using values of at most DB samples of the second chroma block as second filter decision values, the at most DB samples being located at a column of the second chroma block that is perpendicular to the chroma horizontal block edge and the at most DB samples being adjacent to the chroma horizontal block edge;
modifying values of at most MA samples of the first chroma block as first filter output values, the at most MA samples being located at the column of the first chroma block that is perpendicular to the chroma horizontal block edge and the at most MA samples being adjacent to the chroma horizontal block edge; and
modifying values of at most MB samples of the second chroma block as second filter output values, the at most MB samples being located at the column of the second chroma block that is perpendicular to the chroma horizontal block edge and the at most MB samples being adjacent to the chroma horizontal block edge;
wherein the first chroma block is above the horizontal chroma CTB boundary and the second chroma block is below the horizontal chroma CTB boundary;
wherein SA=SB, MA<MB, DA<DB, SA>DA>MA, and SB>DB>MB; and
wherein SA and SB are equal to or greater than 8, MB=3 and MA=1.

### Claim 9 (depends on 8)

The method of claim 8, wherein SA and SB are equal to or greater than 8, DB=4 and DA=2.

### Claim 10 (depends on 8)

The method of claim 8, wherein the matrix of CTUs comprising multiple rows of CTUs and multiple columns of CTUs, the plurality of CTUs are processed starting from a top-left CTU and ending at a bottom-right CTU of the matrix of CTUs, wherein each row of CTUs is processed sequentially one after another and within each row of CTUs, the CTUs are processed sequentially from the leftmost CTU of that row to the rightmost CTU of that row.

### Claim 11 (depends on 8)

The method of claim 8, wherein the first chroma block is a lowermost chroma block of the first CTU, the first chroma block having the block size of the SA samples perpendicular to the chroma horizontal block edge by N samples parallel to the chroma horizontal block edge.

### Claim 12 (depends on 8)

The method of claim 8, wherein the second chroma block is an uppermost chroma block of the second CTU, the second chroma block having the block size of the SB samples perpendicular to the chroma horizontal block edge by N samples parallel to the chroma horizontal block edge.

### Claim 13 (depends on 8)

The method of claim 8, wherein a row of CTUs of the matrix of CTUs in which the second CTU is located follows consecutively a row in which the first CTU is located.

### Claim 14 (depends on 8)

The method of claim 8, wherein the matrix comprising multiple rows of CTUs and multiple columns of CTUs, wherein the plurality of CTUs are processed by the device starting from a top-left CTU and ending at a bottom-right CTU of the matrix, wherein each row of CTUs is processed sequentially one after another and within each row of CTUs the CTUs are processed sequentially from the leftmost CTU of that row to the rightmost CTU of that row,
wherein the first chroma block is a lowermost chroma block of the first CTU among the plurality of CTUs, the first chroma block having a block size of SA samples perpendicular to the chroma horizontal block edge by N samples parallel to the chroma horizontal block edge,
wherein the second chroma block is an uppermost chroma block of the second CTU among the plurality of CTUs, the second chroma block having a block size of SB samples perpendicular to the chroma horizontal block edge by N samples parallel to the chroma horizontal block edge,
wherein a row of CTUs of the matrix in which the second CTU is located is a row following consecutively a row in which the first CTU is located.

### Claim 15

A non-transitory computer-readable media storing computer instructions for deblocking a chroma horizontal block edge between a first chroma block and a second chroma block of an image, the first chroma block having a block size of SA samples perpendicular to the chroma horizontal block edge and the second chroma block having a block size of SB samples perpendicular to the chroma horizontal block edge, the image including a plurality of coding tree units (CTUs) arranged in a matrix of CTUs, the instructions configure at least one processor, upon execution of the instructions, to perform the following steps:
determine whether the chroma horizontal block edge is overlapped with a horizontal chroma coding tree unit (CTU) boundary between a first CTU and a second CTU among the plurality of CTUs;
in response to determining that the chroma horizontal block edge is overlapped with the horizontal chroma CTU boundary;
using values of at most DA samples of the first chroma block as first filter decision values, the at most DA samples being located at a column of the first chroma block that is perpendicular to the chroma horizontal block edge and the at most DA samples being adjacent to the chroma horizontal block edge;
using values of at most DB samples of the second chroma block as second filter decision values, the at most DB samples being located at a column of the second chroma block that is perpendicular to the chroma horizontal block edge and the at most DB samples being adjacent to the chroma horizontal block edge;
modifying values of at most MA samples of the first chroma block as first filter output values, the at most MA samples being located at the column of the first chroma block that is perpendicular to the chroma horizontal block edge and the at most MA samples being adjacent to the chroma horizontal block edge; and
modifying values of at most MB samples of the second chroma block as second filter output values, the at most MB samples being located at the column of the second chroma block that is perpendicular to the chroma horizontal block edge and the at most MB samples being adjacent to the chroma horizontal block edge;
wherein the first chroma block is above the horizontal chroma CTB boundary and the second chroma block is below the horizontal chroma CTB boundary;
wherein SA=SB, MA<MB, DA<DB, SA>DA>MA, and SB>DB>MB; and
wherein SA and SB are equal to or greater than 8, MB=3 and MA=1.

### Claim 16 (depends on 15)

The non-transitory computer-readable media of claim 15, wherein SA and SB are equal to or greater than 8, DB=4 and DA=2.

### Claim 17 (depends on 15)

The non-transitory computer-readable media of claim 15, wherein the matrix comprising multiple rows of CTUs and multiple columns of CTUs, wherein the plurality of CTUs are processed by the device starting from a top-left CTU and ending at a bottom-right CTU of the matrix, wherein each row of CTUs is processed sequentially one after another and within each row of CTUs the CTUs are processed sequentially from the leftmost CTU of that row to the rightmost CTU of that row,
wherein the first chroma block is a lowermost chroma block of the first CTU among the plurality of CTUs, the first chroma block having a block size of SA samples perpendicular to the chroma horizontal block edge by N samples parallel to the chroma horizontal block edge,
wherein the second chroma block is an uppermost chroma block of the second CTU among the plurality of CTUs, the second chroma block having a block size of SB samples perpendicular to the chroma horizontal block edge by N samples parallel to the chroma horizontal block edge,
wherein a row of CTUs of the matrix in which the second CTU is located is a row following consecutively a row in which the first CTU is located.

### Claim 18

A non-transitory computer readable medium comprising a bitstream generated by an image encoding including a deblocking for deblocking a chroma horizontal block edge between a first chroma block and a second chroma block of an image, the first chroma block having a block size of SA samples perpendicular to the chroma horizontal block edge and the second chroma block having a block size of SB samples perpendicular to the chroma horizontal block edge, the image including a plurality of coding tree units (CTUs) arranged in a matrix of CTUs, the deblocking comprising the steps of:
determine whether the chroma horizontal block edge is overlapped with a horizontal chroma coding tree unit (CTU) boundary between the first CTU and the second CTU among the plurality of CTUs;
in response to determining that the chroma horizontal block edge is overlapped with the horizontal chroma CTU boundary;
using values of at most DA samples of the first chroma block as first filter decision values, the at most DA samples being located at a column of the first chroma block that is perpendicular to the chroma horizontal block edge and the at most DA samples being adjacent to the chroma horizontal block edge;
using values of at most DB samples of the second chroma block as second filter decision values, the at most DB samples being located at a column of the second chroma block that is perpendicular to the chroma horizontal block edge and the at most DB samples being adjacent to the chroma horizontal block edge;
modifying values of at most MA samples of the first chroma block as first filter output values, the at most MA samples being located at the column of the first chroma block that is perpendicular to the chroma horizontal block edge and the at most MA samples being adjacent to the chroma horizontal block edge; and
modifying values of at most MB samples of the second chroma block as second filter output values, the at most MB samples being located at the column of the second chroma block that is perpendicular to the chroma horizontal block edge and the at most MB samples being adjacent to the chroma horizontal block edge;
wherein the first chroma block is above the horizontal chroma CTB boundary and the second chroma block is below the horizontal chroma CTB boundary;
wherein SA=SB, MA<MB, DA<DB, SA>DA>MA, and SB>DB>MB; and
wherein SA and SB are equal to or greater than 8, MB=3 and MA=1, and DB=4 and DA=2.

### Claim 19 (depends on 18)

The non-transitory computer-readable media of claim 18, wherein SA and SB are equal to or greater than 8, DB=4 and DA=2.

### Claim 20 (depends on 18)

The non-transitory computer-readable media of claim 18, wherein the matrix comprising multiple rows of CTUs and multiple columns of CTUs, wherein the plurality of CTUs are processed by the device starting from a top-left CTU and ending at a bottom-right CTU of the matrix, wherein each row of CTUs is processed sequentially one after another and within each row of CTUs the CTUs are processed sequentially from the leftmost CTU of that row to the rightmost CTU of that row,
wherein the first chroma block is a lowermost chroma block of the first CTU among the plurality of CTUs, the first chroma block having a block size of SA samples perpendicular to the chroma horizontal block edge by N samples parallel to the chroma horizontal block edge,
wherein the second chroma block is an uppermost chroma block of the second CTU among the plurality of CTUs, the second chroma block having a block size of SB samples perpendicular to the chroma horizontal block edge by N samples parallel to the chroma horizontal block edge,
wherein a row of CTUs of the matrix in which the second CTU is located is a row following consecutively a row in which the first CTU is located.
