# US 2022/0295074 A1 · System and method to estimate blockiness in transform-based video encoding

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

- Number: US 2022/0295074 A1
- Document ID: US20220295074A1
- Status: Published application
- Kind: A1
- Application number: 17/629,481
- Filed: 2020-07-23
- Published: 2022-09-15
- Earliest claimed: 2019-07-24
- Assignees: Deutsche Telekom AG
- Applicants: Deutsche Telekom AG
- Inventors: Peter List; Rakesh Ramachandra; Werner Robitza; Alexander Raake; Steve Goering; Ulf Wuestenhagen; Bernhard Feiten
- Web page: https://patentgrep.com/patent/US20220295074A1

## CPC

- H04N 19/154: Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion (use of rate-distortion criteria H04N19/147)
- H04N 21/44008: {involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream (arrangements characterised by components specially adapted for monitoring, identification or recognition of video in broadcast systems H04H60/59)}
- H04N 19/124: Quantisation
- H04N 19/18: the unit being a set of transform coefficients
- H04N 19/48: using compressed domain processing techniques other than decoding, e.g. modification of transform coefficients, variable length coding [VLC] data or run-length data (motion estimation in a transform domain H04N19/547; processing of decoded motion vectors H04N19/513)
- H04N 19/60: using transform coding
- H04N 19/86: involving reduction of coding artifacts, e.g. of blockiness
- H04N 21/23418: {involving operations for analysing video streams, e.g. detecting features or characteristics (television picture signal circuitry for scene change detection H04N5/147; filtering for image enhancement G06T5/00; methods or arrangements for recognising scenes G06V20/00; arrangements characterised by components specially adapted for monitoring, identification or recognition of video in broadcast systems H04H60/59)}
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method for estimating blockiness in a video frame of transform-based video encoding includes: obtaining a bitstream of a transform coded video signal, the signal being partitioned into video frames and all operations being performed on a per frame basis, wherein coefficients constituting transforms encoded in the bitstream of the video frames are read; averaging the coefficients of the transforms encoded in the bitstream into one averaged transform matrix per transform block size i; generating or making available one weighting matrix per averaged transform of block size i; computing intermediate weighted average transform matrices; processing all members of each weighted and averaged transform matrix into a single value per transform of block size i, to obtain intermediate signals; and computing a single value by weighting values of the intermediate signals according to an area in the respective video frame and adding up the weighted values of the intermediate signals.

## Claims

### Claim 1

A method for estimating blockiness in a video frame of transform-based video encoding, the method comprising:
obtaining a bitstream of a transform coded video signal, the signal being partitioned into video frames and all operations being performed on a per frame basis, wherein coefficients constituting transforms encoded in the bitstream of the video frames are read;
averaging the coefficients of the transforms encoded in the bitstream into one averaged transform matrix per transform block size i;
generating or making available one weighting matrix per averaged transform of block size i, comprising weighting factors;
computing intermediate weighted average transform matrices by processing each averaged transform matrix with the corresponding weighting matrix;
processing all members of each weighted and averaged transform matrix into a single value per transform of block size i, to obtain intermediate signals Bls[i]; and
computing a single value Bl0 by weighting values of the intermediate signals Bls[i] according to an area in the respective video frame and adding up the weighted values of the intermediate signals Bls[i];
wherein the area is the area which the quantity of the transform matrices of block size i cover per video frame, and wherein this area is dependent on the number of transforms of a specific block size i, NTr[i], in the examined frame and the number of pixels each of these transforms covers, and wherein Bl0 is computed using the formula
Bl0=Bls[4×4]*NTr[4×4]+4*Bls[8×8]*NTr[8×8]+16*Bls[16×16]*NTr[16×16]+ . . . ;
wherein blockiness is further estimated as Bl1 using a factor C(QP) dependent on a frame averaged quantization parameter QP and a codec dependent maximum QP, QP_max, where C(QP) is defined as C=exp (5*((QP_max−QP)/QP_max)); and
wherein Bl1=Bl0*C(QP).

### Claim 2 (depends on 1)

The method according to claim 1, wherein the weighting step is performed using linear, quadratic or logarithmic weighting, or using predefined weighting matrices;
wherein for linear weighting, the weighting increases linearly with the frequency a coefficient of the transform matrix to be weighted represents;
wherein for quadratic weighting, the weighting increases quadratically with the frequency a coefficient of the transform matrix to be weighted represents; and
wherein for logarithmic weighting, the weighting increases logarithmically with the frequency a coefficient of the transform matrix to be weighted represents.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the processing of each averaged transform matrix with the corresponding weighting matrix is performed by multiplying both matrices value by value.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the processing of each averaged and weighted transform matrix of block size i to obtain the intermediate singals Bls[i] is performed by adding up all averaged and weighted coefficients of the matrix into one result.

### Claim 5 (depends on 1)

The method according to claim 1, wherein blockiness Bl is computed as Bl=1/(1+Bl1), so that Bl becomes 1 in case of maximal blockiness and 0 for minimal blockiness.

### Claim 6

A system for estimating blockiness in a video frame of transform-based video encoding, the system comprising:
data processing means configured to obtain a bitstream of a transform coded video signal, the signal being partitioned into video frames and all operations being performed on a per frame basis, wherein coefficients constituting transforms encoded in the video signal frames are read;
averaging means configured to average the coefficients of the transforms encoded in the bitstream into one averaged transform matrix per transform block size i;
weighting means configured to generate or make available one weighting matrix per averaged transform of block size i, comprising weighting factors, wherein the weighting means are further configured to compute intermediate weighted and averaged transform matrices by processing each averaged transform matrix with the corresponding weighting matrix;
computing means configured to compute all members of each weighted and averaged transform matrix into a single value per transform of block size i, to obtain intermediate signals Bls[i]; and
computing means configured to compute a single value Bl0 by weighting values of the intermediate signals Bls[i] according to an area in the respective video frame and adding up the weighted values of the intermediate signals Bls[i],
wherein the area is the area which the quantity of transform matrices of block size i cover per video frame, wherein this area is dependent on the number of transforms of a specific size i, NTr[i], in the examined frame and the number of pixels each of these transforms covers, and wherein Bl0 is computed using the formula
Bl0=Bls[4×4]*NTr[4×4]+4*Bls[8×8]*NTr[8×8]+16*Bls[16×16]*NTr[16×16]+ . . . ;
wherein blockiness is further estimated as Bl1 using a factor C(QP) dependent on a frame averaged quantization parameter QP and a codec dependent maximum QP, QP_max, where C(QP) is defined as C=exp (5*((QP_max−QP)/QP_max)); and
wherein Bl1=Bl0*C(QP).

### Claim 7 (depends on 6)

The system according to claim 6, wherein the weighting means is configured to compute the intermediate weighting matrices using linear, quadratic or logarithmic weighting, or using predefined weighting matrices;
wherein for linear weighting, the weighting increases linearly with the frequency a coefficient of the transform matrix to be weighted represents;
wherein for quadratic weighting, the weighting increases quadratically with the frequency a coefficient of the transform matrix to be weighted represents; and
wherein for logarithmic weighting, the weighting increases logarithmically with the frequency a coefficient of the transform matrix to be weighted represents.

### Claim 8 (depends on 6)

The system according to claim 6, wherein the weighting means is further configured to process each averaged transform matrix with the corresponding weighting matrix by multiplying both matrices value by value.

### Claim 9 (depends on 6)

The system according to claim 6, wherein the computing means is configured to process each averaged and weighted transform matrix i to obtain the intermediate signals Bls[i] by adding up all coefficients of that matrix into one result.

### Claim 10 (depends on 6)

The system according to claim 6, wherein blockiness Bl is computed as Bl=1/(1+Bl1), so that Bl becomes 1 in case of maximal blockiness and 0 for minimal blockiness.
