# US 2015/0146795 A1 · Controlling deblocking filtering

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

- Number: US 2015/0146795 A1
- Document ID: US20150146795A1
- Status: Published application
- Kind: A1
- Application number: 14/412,830
- Filed: 2013-06-30
- Published: 2015-05-28
- Earliest claimed: 2012-07-03
- Assignees: Telefonaktiebolaget L M Ericsson (publ)
- Applicants: Telefonaktiebolaget L M Ericsson (Publ)
- Inventors: Andrey Norkin
- Web page: https://patentgrep.com/patent/US20150146795A1

## CPC

- 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 19/126: Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
- 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/167: Position within a video image, e.g. region of interest [ROI]
- H04N 19/182: the unit being a pixel
- 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/61: in combination with predictive coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

Pixel values of pixels (12, 14, 16, 22, 24, 26) in a line (15) of pixels (12, 14, 16, 18, 22, 24, 26, 28) are filtered with a strong deblocking filter to obtain filtered pixel values. Each filtered pixel value is clipped off to a respective clipping parameter value defined based on a position of the pixel (12, 14, 16, 22, 24, 26) relative to a block boundary (2) between two adjacent blocks (10, 20) of pixels (12, 14, 16, 18, 22, 24, 26, 28). The clipping parameter values change at least linearly depending in the pixel position relative to the block boundary (2) so that pixels (12, 16) in the line (15) of pixels (12, 14, 16, 18, 22, 24, 26, 28) having different positions from the block boundary (2) will have different clipping parameter values.

## Claims

### Claim 1

A filtering control method comprising:
filtering pixel values of pixels in a line of pixels in a block of pixels with a strong deblocking filter to obtain filtered pixel values; and
clipping off, for each filtered pixel value of a pixel in said line of pixels, said filtered pixel value to a respective clipping parameter value defined based on a position of said pixel relative to a block boundary between said block of pixels and a neighboring block of pixels, wherein said clipping parameter values change at least approximately linearly depending on said position of said pixel relative to said block boundary and pixels in said line of pixels having different positions from said block boundary have different clipping parameter values.

### Claim 2 (depends on 1)

The filtering control method according to claim 1, further comprising defining said clipping parameter values so that a pixel in said line of pixels further away from said block boundary has a smaller clipping parameter value than another pixel in said line of pixels closer to said block boundary.

### Claim 3 (depends on 1)

The filtering control method according to claim 1, further comprising defining said clipping parameter values to form a straight line depending on a distance of said pixel from said block boundary.

### Claim 4 (depends on 1)

The filtering control method according to any of the claim 1, wherein clipping off said filtered pixel value comprises calculating, for each filtered pixel value, a clipped filtered pixel value x′=Clip3(A, B, x) defined as x′=x, or if x<A then x′=A, or if x>B then x′=B, wherein x denotes said filtered pixel value of said pixel, A=px−tcX and B=px+tcX, px denotes a pixel value of said pixel and tcX denotes said clipping parameter value for said pixel.

### Claim 5 (depends on 1)

The filtering control method according to claim 1, further comprising calculating said clipping parameter values to be (tc×3+1)>>1 for a first pixel, relative to said block boundary, in said line of pixels, tc for a second pixel, relative to said block boundary, in said line of pixels and (tc+1)>>1 for a third pixel, relative to said block boundary, in said line of pixels, wherein tc is a parameter that depends on a quantization parameter value associated with said block of pixels and >> represents a right shift operator defined as
a
>>
b
=
⌊
a
2
b
⌋
and └c┘ is a largest integer not greater than c.

### Claim 6 (depends on 1)

The filtering control method according to claim 1, further comprising calculating said clipping parameter values to be tc1=((tc<<1)+tc+1)>>2 for a second pixel, relative to said block boundary in said line of pixels, (tc1×3+1)>>1 for a first pixel, relative to said block boundary, in said line of pixels and (tc1+1)>>1 for a third pixel, relative to said block boundary, in said line of pixels, wherein tc is a parameter that depends on a quantization parameter value associated with said block of pixels and >> represents a right shift operator defined as
a
>>
b
=
⌊
a
2
b
⌋
and └c┘ is a largest integer not greater than c.

### Claim 7 (depends on 1)

The filtering control method according to claim 1, wherein filtering said pixel values comprises calculating said filtered pixel values according to:
p0′=(p2+2×p1+2×p0+2×q0++4)>>3
p1′=(p3+2×p2+2×p1+p0+2×q0+4)>>3
p2′=(3×p3+3×p2+p1+q0+4)>>3
wherein p0 represents a pixel value of a first pixel, relative to said block boundary, in said line of pixels in said block of pixels, p1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels in said block of pixels, p2 represents a pixel value of a third pixel relative to said block boundary, in said line of pixels in said block of pixels, p3 represents a pixel value of a fourth pixel, relative to said block boundary, in said line of pixels in said block of pixels, q0 represents a pixel value of a first pixel, relative to said block boundary, in said line of pixels in said neighboring block of pixels, q1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels in said neighboring block of pixels, p0′ represents a filtered pixel value for said first pixel in said line of pixels in said block of pixels, p1′ represents a filtered pixel value for said second pixel in said line of pixels in said block of pixels, p2′ represents a filtered pixel value for said third pixel in said line of pixels in said block of pixels, and >> represents a right shift operator defined as
a
>>
b
=
⌊
a
2
b
⌋
and └c┘ is a largest integer not greater than c.

### Claim 8 (depends on 1)

The filtering control method according to claim 1, wherein filtering said pixel values comprises calculating said filtered pixel values according to:
p0′=(p2+2×p1+2×p0+2×q0+q1+4)>>3
p1′=(p3+3×p2+2×p1+q0,+q1+4)>>3
p2′=(3×p3+4×p2+q0+4)>>3
wherein p0 represents a pixel value of a first pixel, relative to said block boundary, in said line of pixels in said block of pixels, p1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels in said block of pixels, p2 represents a pixel value of a third pixel, relative to said block boundary, in said line of pixels in said block of pixels, p3 represents a pixel value of a fourth pixel, relative to said block boundary, in said line of pixels in said block of pixels, q0 represents a pixel value of a first pixel, relative to said block boundary, in said line of pixels in said neighboring block of pixels, q1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels in said neighboring block of pixels, p0′ represents a filtered pixel value for said first pixel in said line of pixels in said block of pixels, p1′ represents a filtered pixel value for said second pixel in said line of pixels in said block of pixels, p2′ represents a filtered pixel value for said third pixel in said line of pixels in said block of pixels, and >> represents a right shift operator defined as
a
>>
b
=
⌊
a
2
b
⌋
and └c┘ is a largest integer not greater than c.

### Claim 9 (depends on 1)

The filtering control method according to claim 1, wherein filtering said pixel values comprises calculating said filtered pixel values according to:
p0′=(p2+2×p1+2×p0+2×q0+q1+4)>>3
p1′=(p2+p1+p0+q0+2)>>2
p2′=(2×p3+3×p2+p1+p0+q0+4)>>3
wherein p0 represents a pixel value of a first pixel, relative to said block boundary, in said line of pixels in said block of pixels, p1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels in said block of pixels, p2 represents a pixel value of a third pixel, relative to said block boundary, in said line of pixels in said block of pixels, p3 represents a pixel value of a fourth pixel, relative to said block boundary, in said line of pixels in said block of pixels, q0 represents a pixel value of a first pixel, relative to said block boundary, in said line of pixels in said neighboring block of pixels, q1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels in said neighboring block of pixels, p0′ represents a filtered pixel value for said first pixel in said line of pixels in said block of pixels, p1′ represents a filtered pixel value for said second pixel in said line of pixels in said block of pixels, p2′ represents a filtered pixel value for said third pixel in said line of pixels in said block of pixels, and >> represents a right shift operator defined as
a
>>
b
=
⌊
a
2
b
⌋
and └c┘ is a largest integer not greater than c.

### Claim 10

A filtering control device comprising:
a filtering unit configured to filter pixel values of pixels in a line of pixels in a block of pixels with a strong deblocking filter to obtain filtered pixel values; and
a clipping unit configured to clip off, for each filtered pixel value of a pixel in said line of pixels, said filtered pixel value to a respective clipping parameter value defined based on a position of said pixel relative to a block boundary between said block of pixels and a neighboring block of pixels, wherein said clipping parameter values change at least approximately linearly depending on said position of said pixel relative to said block boundary and pixels in said line of pixels having different positions from said block boundary have different clipping parameter values.

### Claim 11 (depends on 10)

The filtering control device according to claim 10, wherein a pixel in said line of pixels further away from said block boundary has a smaller clipping parameter value than another pixel in said line of pixels closer to said block boundary.

### Claim 12 (depends on 10)

The filtering control device according to claim 10, wherein said clipping parameter values form a straight line depending on a distance of said pixel from said block boundary.

### Claim 13 (depends on 10)

The filtering control device according to claim 10, wherein said clipping unit is configured to calculate, for each filtered pixel value, a clipped filtered pixel value x′=Clip3(A, B, x) defined as x′=x, or if x<A then x′=A, or if x>B then x′=B, wherein x denotes said filtered pixel value of said pixel, A=px−tcX and B=px+tcX, px denotes a pixel value of said pixel and tcX denotes said clipping parameter value for said pixel.

### Claim 14 (depends on 10)

The filtering control device according to claim 10, further comprising a value calculator configured to calculate said clipping parameter values to be (tc×3+1)>>1 for a first pixel relative to said block boundary, in said line of pixels, tc for a second pixel, relative to said block boundary, in said line of pixels and (tc+1)>>1 for a third pixel, relative to said block boundary, in said line of pixels, wherein tc is a parameter that depends on a quantization parameter value associated with said block of pixels and >> represents a right shift operator defined as
a
>>
b
=
⌊
a
2
b
⌋
and └c┘ is a largest integer not greater than c.

### Claim 15 (depends on 10)

The filtering control device according to claim 10, further comprising a value calculator configured to calculate said clipping parameter values to be tc1=((tc<<1)+tc+1)>>2 for a second pixel, relative to said block boundary, in said line of pixels, (tc1×3+1)>>1 for a first pixel, relative to said block boundary, in said line of pixels and (tc1+1)>>1 for a third pixel, relative to said block boundary, in said line of pixels, wherein tc is a parameter that depends on a quantization parameter value associated with said block of pixels and >> represents a right shift operator defined as
a
>>
b
=
⌊
a
2
b
⌋
and └c┘ is a largest integer not greater than c.

### Claim 16 (depends on 10)

The filtering control device according to claim 10, wherein said filtering unit is configured to calculate said filtered pixel values according to:
p0′=(p2+2×p1+2×p0+2×q0+q1+4)>>3
p1′=(p3+2×p2+2×p1+p0+2×q0+4)>>3
p2′=(3×p3+3×p2+p1+q0,+4)>>3
wherein p0 represents a pixel value of a first pixel relative to said block boundary, in said line of pixels in said block of pixels, p1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels in said block of pixels, p2 represents a pixel value of a third pixel, relative to said block boundary, in said line of pixels in said block of pixels, p3 represents a pixel value of a fourth pixel, relative to said block boundary, in said line of pixels in said block of pixels, q0 represents a pixel value of a first pixel, relative to said block boundary, in said line of pixels in said neighboring block of pixels, q1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels in said neighboring block of pixels, p0′ represents a filtered pixel value for said first pixel in said line of pixels in said block of pixels, p1′ represents a filtered pixel value for said second pixel in said line of pixels in said block of pixels, p2′ represents a filtered pixel value for said third pixel in said line of pixels in said block of pixels, and >> represents a right shift operator defined as
a
>>
b
=
⌊
a
2
b
⌋
and └c┘ is a largest integer not greater than c.

### Claim 17 (depends on 10)

The filtering control device according to claim 10, wherein said filtering unit is configured to calculate said filtered pixel values according to:
p0′=(p2+2×p1+2×p0+2×q0+q1+4)>>3
p1′=(p3+3×p2+2×p1+q0+q1+4)>>3
p2′=(3×p3+4×p2+q0+4)>>3
wherein p0 represents a pixel value of a first pixel, relative to said block boundary, in said line of pixels in said block of pixels, p1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels in said block of pixels, p2 represents a pixel value of a third pixel, relative to said block boundary, in said line of pixels in said block of pixels, p3 represents a pixel value of a fourth pixel, relative to said block boundary in said line of pixels in said block of pixels, q0 represents a pixel value of a first pixel, relative to said block boundary, in said line of pixels in said neighboring block of pixels, q1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels in said neighboring block of pixels, p0′ represents a filtered pixel value for said first pixel in said line of pixels in said block of pixels, p1′ represents a filtered pixel value for said second pixel in said line of pixels in said block of pixels, p2′ represents a filtered pixel value for said third pixel in said line of pixels in said block of pixels, and >> represents a right shift operator defined as
a
>>
b
=
⌊
a
2
b
⌋
and └c┘ is a largest integer not greater than c.

### Claim 18 (depends on 10)

The filtering control device according to claim 10, wherein said filtering unit is configured to calculate said filtered pixel values according to:
p0′=(p2+2×p1+2×p0+2×q0+q1+4)>>3
p1=(p2+p1+p0+q0+2)>>2
p2′=(2×p3+3×p2+p1+p0+q0+4)>>3
wherein p0 represents a pixel value of a first pixel, relative to said block boundary, in said line of pixels in said block of pixels, p1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels in said block of pixels, p2 represents a pixel value of a third pixel, relative to said block boundary, in said line of pixels in said block of pixels, p3 represents a pixel value of a fourth pixel, relative to said block boundary, in said line of pixels in said block of pixels, q0 represents a pixel value of a first pixel, relative to said block boundary, in said line of pixels in said neighboring block of pixels, q1 represents a pixel value of a second pixel, relative to said block boundary, in said line of pixels in said neighboring block of pixels, p0′ represents a filtered pixel value for said first pixel in said line of pixels in said block of pixels, p1′ represents a filtered pixel value for said second pixel in said line of pixels in said block of pixels, p2′ represents a filtered pixel value for said third pixel in said line of pixels in said block of pixels, and >> represents a right shift operator defined as
a
>>
b
=
⌊
a
2
b
⌋
and └c┘ is a largest integer not greater than c.

### Claim 19

A filtering control device comprising a processing unit configured to:
filter pixel values of pixels in a line of pixels in a block of pixels with a strong deblocking filter to obtain filtered pixel values; and
clip off, for each filtered pixel value of a pixel in said line of pixels, said filtered pixel value to a respective clipping parameter value defined based on a position of said pixel relative to a block boundary between said block of pixels and a neighboring block of pixels, wherein said clipping parameter values change at least approximately linearly depending on said position of said pixel relative to said block boundary and pixels in said line of pixels having different positions from said block boundary have different clipping parameter values.

### Claim 20 (depends on 10)

An encoder comprising a filtering control device according to claim 10.

### Claim 21 (depends on 10)

A decoder comprising a filtering control device according to claim 10.

### Claim 22 (depends on 21)

A user equipment comprising an encoder according to claim 21.

### Claim 23 (depends on 20)

A network device being or belonging to a network node in a communication network, said network device comprising an encoder according to claim 20.

### Claim 24

A computer program for filtering control, said computer program comprises code means which when executed by a processing unit causes said processing unit to:
filter pixel values of pixels in a line of pixels in a block of pixels with a strong deblocking filter to obtain filtered pixel values; and
clip off, for each filtered pixel value of a pixel in said line of pixels, said filtered pixel value to a respective clipping parameter value defined based on a position of said pixel relative to a block boundary between said block of pixels and a neighboring block of pixels, wherein said clipping parameter values change at least approximately linearly depending on said position of said pixel relative to said block boundary and pixels in said line of pixels having different positions from said block boundary have different clipping parameter values.

### Claim 25 (depends on 24)

A computer program product comprising computer readable code means and a computer program according to claim 24 stored on said computer readable code means.

### Claim 26

A media terminal comprising:
a processing unit; and
a memory comprising code means executable by said processing unit, whereby said media terminal is operative to:
filter pixel values of pixels in a line of pixels in a block of pixels with a strong deblocking filter to obtain filtered pixel values; and
clip off, for each filtered pixel value of a pixel in said line of pixels, said filtered pixel value to a respective clipping parameter value defined based on a position of said pixel relative to a block boundary between said block of pixels and a neighboring block of pixels, wherein said clipping parameter values change at least approximately linearly depending on said position of said pixel relative to said block boundary and pixels in said line of pixels having different positions from said block boundary have different clipping parameter values.
