# US 2002/0159521 A1 · Distortion quantizer model for video encoding

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

- Number: US 2002/0159521 A1
- Document ID: US20020159521A1
- Status: Published application
- Kind: A1
- Application number: 09/844,457
- Filed: 2001-04-27
- Published: 2002-10-31
- Earliest claimed: 2001-04-27
- Assignees: Koninklijke Philips Electronics N.V.
- Inventors: Yong Yan; Kiran Challapali
- Web page: https://patentgrep.com/patent/US20020159521A1

## CPC

- H04N 19/126: Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
- H04N 19/147: according to rate distortion criteria (rate-distortion as a criterion for motion estimation H04N19/567)
- H04N 19/154: Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion (use of rate-distortion criteria H04N19/147)
- H04N 19/60: using transform coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A video encoder that allows for the selection of a distortion level, comprising: a selection system for selecting a target distortion level; and a system for determining a quantization parameter q that will ensure compliance with the selected target distortion level, wherein the system includes an algorithm for calculating distortion that utilizes a Gaussian distribution having a variance that is a function of the quantization parameter q. The algorithm is based on a distortion model D(q)=N(a1q2+a2q+a3, b1q2+b2q+b3), wherein N is a Gaussian distribution and a1, a2, a3, b1, b2 and b3 are distortion model parameters.

## Claims

### Claim 1

A method for determining a quantization parameter q that meets a predetermined quality level, comprising the steps of:
providing a distortion model D(q)=N(a1q2+a2q+a3, b1q2+b2q+b3), wherein N is a Gaussian distribution and a1, a2, a3, b1, b2 and b3 are distortion model parameters;
selecting a target distortion level; and
calculating the quantization parameter q such that an upper bound of the distortion model D(q) is less than or equal to the target distortion level.

### Claim 2 (depends on 1)

The method of claim 1, comprising the further step of determining a bit rate based on the calculated quantization parameter q.

### Claim 3 (depends on 1)

The method of claim 1, wherein the quantization parameter q is selected from a set of sequential values 1, 2, 3 . . . Q, and wherein Q is a whole number.

### Claim 4 (depends on 3)

The method of claim 3, wherein the step of calculating the quantization parameter q includes the steps of iteratively testing each of the set of sequential values from Q to 1 until the upper bound of D(q) is less than or equal to the selected target distortion level.

### Claim 5 (depends on 1)

The method of claim 1, wherein the distortion model D(q) is represented as a root mean square RMS(q).

### Claim 6 (depends on 1)

The method of claim 1, wherein the distortion model parameters are estimated using a maximum likelihood estimator statistical method.

### Claim 7 (depends on 1)

The method of claim 1, wherein the upper bound of the distortion model D(q) is calculated as: D(q)=a1q2+a2q+a3+λ* sqrt(b1q2+b2q+b3), and wherein λ is a confidence level constant.

### Claim 8

An encoding system having quality level selection capabilities, comprising:
a system for selecting a target distortion level;
a distortion model, wherein the distortion model determines a distortion level as a function of a quantization parameter, and wherein the distortion model includes a Gaussian distribution having a variance that is a function of the quantization parameter; and
a system for calculating the quantization parameter such that the distortion level does not exceed the target distortion level.

### Claim 9 (depends on 8)

The encoding system of claim 8, further comprising a system for calculating a bit rate as a function of the calculated quantization parameter.

### Claim 10 (depends on 8)

The encoding system of claim 8, wherein the distortion model is defined as:
D(q)=N(a1q2+a2q+a3, b1q2+b2q+b3),
wherein q is the quantization parameter, N is a Gaussian distribution, and a1, a2, a3, b1, b2 and b3 are distortion model parameters.

### Claim 11 (depends on 10)

The encoding system of claim 10, wherein an upper bound of the distortion level is defined by the distortion model as:
Dupper(q)=a1q2+a2q+a3+λsqrt(b1q2+b2q+b3),
wherein λ is a confidence level constant.

### Claim 12 (depends on 10)

The encoding system of claim 10, further comprising a system for estimating the distortion model parameters.

### Claim 13 (depends on 8)

The encoding system of claim 8, wherein the system for calculating the quantization parameter utilizes an algorithm that iteratively tests whole number quantization parameter values.

### Claim 14 (depends on 8)

The encoding system of claim 8, wherein the encoding system comprises an MPEG-4 video encoder.

### Claim 15

A video encoder that allows for the selection of a distortion level, comprising:
a selection system for selecting a target distortion level; and
a system for determining a quantization parameter that will ensure compliance with the selected target distortion level, wherein the system includes an algorithm for calculating distortion that utilizes a Gaussian distribution having a variance that is a function of the quantization parameter.

### Claim 16 (depends on 15)

The video encoder of claim 15, further comprising a system for selecting a bit rate as a function of the quatization parameter.

### Claim 17 (depends on 15)

The video encoder of claim 15, wherein an upper bound of distortion Dupper for a given quantization level q is calculated as follows:
Dupper(q)=a1q2+a2q+a3+λ*sqrt(b1q2+b2q+b3),
wherein a1, a2, a3, b1, b2 and b3 are distortion model parameters, and λ is a confidence level constant.

### Claim 18 (depends on 15)

The video encoder of claim 15, wherein the distortion D for a given quantization level q is calculated as follows:
D(q)=N(a1q2+a2q+a3, b1q2+b2q+b3),
wherein N is a Gaussian distribution, and a1, a2, a3, bI, b2 and b3 are distortion model parameters.

### Claim 19 (depends on 15)

The video encoder of claim 15, wherein the video encoder is an MPEG-4 encoder.

### Claim 20

A program product, stored on a recordable medium, which when executed allows for the selection of a distortion level in an encoding operation, comprising:
a selection system for selecting a target distortion level; and
a system for determining a quantization parameter that will ensure compliance with the selected target distortion level, wherein the system includes an algorithm for calculating distortion that utilizes a Gaussian distribution having a variance that is a function of the quantization parameter.
