# US 2021/0092402 A1 · In-loop filtering method and apparatus for same

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

- Number: US 2021/0092402 A1
- Document ID: US20210092402A1
- Status: Published application
- Kind: A1
- Application number: 17/110,110
- Filed: 2020-12-02
- Published: 2021-03-25
- Earliest claimed: 2011-03-30
- Assignees: LG Electronics Inc.
- Applicants: LG Electronics Inc.
- Inventors: Seung Wook PARK; Jae Hyun LIM; Jung Sun KIM; Joon Young PARK; Young Hee CHOI; Byeong Moon JEON; Yong Joon JEON
- Web page: https://patentgrep.com/patent/US20210092402A1

## CPC

- 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/117: Filters, e.g. for pre-processing or post-processing (sub-band filter banks H04N19/635)
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/182: the unit being a pixel
- H04N 19/61: in combination with predictive coding
- H04N 19/80: Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation (H04N19/635, H04N19/86 take precedence)
- H04N 19/82: involving filtering within a prediction loop
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

According to the present invention, an image-encoding method comprises the following steps: receiving image information; generating a restored block for the current block based on the image information; and generating a finally restored block for the current block by applying an in-loop filter to the restored block on the basis of the image information. According to the present invention, image-encoding/decoding efficiency may be improved.

## Claims

### Claim 1

A video decoding method, by a decoding apparatus, comprising:
receiving video information through a bitstream;
identifying whether an intra pulse code modulation (I_PCM) mode is applied to a current block in a current picture based on the video information;
generating a reconstructed picture including a reconstructed block of the current block based on the video information;
determining that a deblocking filter is to be applied to the reconstructed block based on the result of the identification;
determining that a sample adaptive offset (SAO) is to be applied to the reconstructed block based on the result of the identification; and
generating a modified reconstructed picture based on the reconstructed picture and the result of the determination,
wherein based on a case that the I_PCM mode is applied to the current block, the deblocking filter and the SAO are not applied to the reconstructed block,
wherein the SAO is applied after the deblocking filter on the reconstructed picture,
wherein a first clipping is applied to a first output of the deblocking filter,
wherein a second clipping is applied to a second output of the SAO, and
wherein the clipped first output is used as an input of the SAO.

### Claim 2 (depends on 1)

The video decoding method of claim 1, wherein the deblocking filter comprises determining a boundary strength (bS) of a block edge located within or on a boundary of the reconstructed block and determining whether to apply a deblocking filter to the block edge based on the bS, and
wherein a pixel value which is not subjected to the deblocking filter within the reconstructed block is determined as the final pixel value based on a case that it is determined that the deblocking filter is not applied to the reconstructed block.

### Claim 3 (depends on 1)

The video decoding method of claim 1, wherein the deblocking filter is not applied to the block edge based on a case that it is determined that deblocking filter is not applied to the reconstructed block.

### Claim 4 (depends on 1)

The video decoding method of claim 1, wherein the SAO comprise determining whether a band offset type is to be applied, deriving a band group including multiple bands among 32 band, applying an offset corresponding a band in the band group to a value of a pixel in the reconstructed block,
wherein the value of the pixel in the reconstructed block is determined as final pixel value based on a case that it is determined that the SAO is not applied to the reconstructed block.

### Claim 5 (depends on 1)

The video decoding method of claim 1, wherein the video information comprises PCM flag information to instruct whether the current block is coded in the I_PCM mode.

### Claim 6 (depends on 5)

The video decoding method of claim 5, wherein the video information further comprises PCM loop filter flag information to instruct whether an in-loop filter is disabled to a block coded in the I_PCM mode, and
wherein both the deblocking filter and the SAO are not applied to the reconstructed block based on a case that the PCM loop filter flag information has value 1 and the PCM flag information has value 1.

### Claim 7

A video encoding method, by an encoding apparatus, comprising:
identifying whether an intra pulse code modulation (I_PCM) mode is applied to a current block in a current picture;
generating a reconstructed picture including a reconstructed block of the current block based on the result of the identification;
determining that a deblocking filter is to be applied to the reconstructed block based on the result of the identification;
determining that a sample adaptive offset (SAO) is to be applied to the reconstructed block based on the result of the identification;
generating a modified reconstructed picture based on the reconstructed picture and the result of the determination; and
outputting video information including information related to whether the I_PCM mode is applied to the current block,
wherein based on a case that the I_PCM mode is applied to the current block, the deblocking filter and the SAO are not applied to the reconstructed block,
wherein the SAO is applied after the deblocking filter on the reconstructed picture,
wherein a first clipping is applied to a first output of the deblocking filter,
wherein a second clipping is applied to a second output of the SAO, and
wherein the clipped first output is used as an input of the SAO.

### Claim 8

A non-transitory decoder-readable storage medium storing encoded data comprising information on instructions causing a decoding apparatus to perform a video decoding method comprising:
obtaining video information;
identifying whether an intra pulse code modulation (I_PCM) mode is applied to a current block in a current picture based on the video information;
generating a reconstructed picture including a reconstructed block of the current block based on the video information;
determining that a deblocking filter is to be applied to the reconstructed block based on the result of the identification;
determining that a sample adaptive offset (SAO) is to be applied to the reconstructed block based on the result of the identification;
generating a modified reconstructed picture based on the reconstructed picture and the result of the determination,
wherein based on a case that the I_PCM mode is applied to the current block, the deblocking filter and the SAO are not applied to the reconstructed block,
wherein the SAO is applied after the deblocking filter on the reconstructed picture,
wherein a first clipping is applied to a first output of the deblocking filter,
wherein a second clipping is applied to a second output of the SAO, and
wherein the clipped first output is used as an input of the SAO.
