# US 10,958,916 B2 · Fractional quantization step sizes for high bit rates

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

- Number: US 10,958,916 B2
- Document ID: US10958916B2
- Status: Granted
- Kind: B2
- Application number: 16/780,845
- Filed: 2020-02-03
- Published: 2020-06-04
- Granted: 2021-03-23
- Earliest claimed: 2003-07-18
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Thomas W. Holcomb; Sridhar Srinivasan; Pohsiang Hsu; Chih-Lung Lin
- Web page: https://patentgrep.com/patent/US10958916B2

## CPC

- H04N 19/18: the unit being a set of transform coefficients
- H04N 19/124: Quantisation
- H04N 19/126: Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
- H04N 19/136: Incoming video signal characteristics or properties
- H04N 19/137: Motion inside a coding unit, e.g. average field, frame or block difference
- H04N 19/17: the unit being an image region, e.g. an object
- H04N 19/172: the region being a picture, frame or field
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/184: the unit being bits, e.g. of the compressed video stream
- H04N 19/186: the unit being a colour or a chrominance component
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/46: Embedding additional information in the video signal during the compression process (H04N19/517, H04N19/68, H04N19/70 take precedence)
- H04N 19/463: by compressing encoding parameters before transmission
- H04N 19/61: in combination with predictive coding
- H04N 19/625: using discrete cosine transform [DCT]
- H04N 19/70: characterised by syntax aspects related to video coding, e.g. related to compression standards
- H04N 19/91: Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A video codec uses fractional increments of quantization step size at high bit rates to permit a more continuous variation of quality and/or bit rate as the quantization scale changes. For high bit rate scenarios, the bit stream syntax includes an additional syntax element to specify fractional step increments (e.g., half step) of the normal quantizer scale step sizes.

## Claims

### Claim 1

In a computer system that implements a video decoder, a method comprising:
receiving encoded data in a bitstream for at least part of a video sequence; and
decoding the encoded data, including, for each of multiple frames of the video sequence:
decoding a quantizer index for the frame, wherein the quantizer index indicates a picture quantizer scale for the frame;
comparing the quantizer index to a comparison value;
responsive to the quantizer index being less than or equal to the comparison value, decoding a half-step quantization parameter field, the half-step quantization parameter field indicating a half-step increment for the picture quantizer scale for the frame, and selectively adjusting the picture quantizer scale for the frame according to the half-step increment, wherein syntax of the bitstream allows half-step picture quantization step sizes as specified by the quantizer index and the half-step quantization parameter field when the quantizer index is less than or equal to the comparison value but allows only integer-step picture quantization step sizes as specified by the quantizer index when the quantizer index is greater than the comparison value; and
inverse quantizing at least some quantized transform coefficients for the frame.

### Claim 2 (depends on 1)

The method of claim 1, wherein the quantizer index is a 5-bit field.

### Claim 3 (depends on 1)

The method of claim 1, wherein the quantizer index is signaled in a frame header.

### Claim 4 (depends on 1)

The method of claim 1, wherein the half-step quantization parameter field is a 1-bit field.

### Claim 5 (depends on 1)

The method of claim 1, wherein the half-step quantization parameter field is signaled in a frame header.

### Claim 6 (depends on 1)

The method of claim 1, wherein the selectively adjusting the picture quantizer scale for the frame includes:
if the half-step quantization parameter field is 1, adding ½ to the picture quantizer scale for the frame; and
otherwise, the half-step quantization parameter field being 0, not adjusting the picture quantizer scale for the frame.

### Claim 7 (depends on 1)

The method of claim 1, wherein the inverse quantizing includes performing operations according to dequant_coeff=quant_coeff*(2*quant_scale+halfstep), where dequant_coeff is a dequantized transform coefficient, quant_coeff is a quantized transform coefficient, quant_scale is the picture quantizer scale for the frame, and halfstep is the half-step quantization parameter field.

### Claim 8 (depends on 1)

The method of claim 1, wherein the inverse quantizing includes performing operations according to dequant_coeff=quant_coeff*(2* quant_scale+halfstep)+sign(quant_coeff)*quant_scale, where dequant_coeff is a dequantized transform coefficient, quant_coeff is a quantized transform coefficient, quant_scale is the picture quantizer scale for the frame, halfstep is the half-step quantization parameter field, and sign(x) is a function defined as +1 for x≥0, or −1 for x<0.

### Claim 9

One or more computer-readable memory or storage devices having stored thereon computer-executable instructions for causing one or more processing units, when programmed thereby, to perform operations comprising:
receiving encoded data in a bitstream for at least part of a video sequence; and
decoding the encoded data, including, for each of multiple frames of the video sequence:
decoding a quantizer index for the frame, wherein the quantizer index indicates a picture quantizer scale for the frame;
comparing the quantizer index to a comparison value;
responsive to the quantizer index being less than or equal to the comparison value, decoding a half-step quantization parameter field, the half-step quantization parameter field indicating a half-step increment for the picture quantizer scale for the frame, and selectively adjusting the picture quantizer scale for the frame according to the half-step increment, wherein syntax of the bitstream allows half-step picture quantization step sizes as specified by the quantizer index and the half-step quantization parameter field when the quantizer index is less than or equal to the comparison value but allows only integer-step picture quantization step sizes as specified by the quantizer index when the quantizer index is greater than the comparison value; and
inverse quantizing at least some quantized transform coefficients for the frame.

### Claim 10 (depends on 9)

The one or more computer-readable memory or storage devices of claim 9, wherein the quantizer index is a 5-bit field, and wherein the quantizer index is signaled in a frame header.

### Claim 11 (depends on 9)

The one or more computer-readable memory or storage devices of claim 9, wherein the half-step quantization parameter field is a 1-bit field, and wherein the half-step quantization parameter field is signaled in a frame header.

### Claim 12 (depends on 9)

The one or more computer-readable memory or storage devices of claim 9, wherein the selectively adjusting the picture quantizer scale for the frame includes:
if the half-step quantization parameter field is 1, adding ½ to the picture quantizer scale for the frame; and
otherwise, the half-step quantization parameter field being 0, not adjusting the picture quantizer scale for the frame.

### Claim 13 (depends on 9)

The one or more computer-readable memory or storage devices of claim 9, wherein the inverse quantizing includes performing operations according to dequant_coeff=quant_coeff*(2*quant_scale+halfstep), where dequant_coeff is a dequantized transform coefficient, quant_coeff is a quantized transform coefficient, quant_scale is the picture quantizer scale for the frame, and halfstep is the half-step quantization parameter field.

### Claim 14 (depends on 9)

The one or more computer-readable memory or storage devices of claim 9, wherein the inverse quantizing includes performing operations according to dequant_coeff=quant_coeff*(2*quant_scale+halfstep)+sign(quant_coeff)*quant_scale, where dequant_coeff is a dequantized transform coefficient, quant_coeff is a quantized transform coefficient, quant_scale is the picture quantizer scale for the frame, halfstep is the half-step quantization parameter field, and sign(x) is a function defined as +1 for x≥0, or −1 for x<0.

### Claim 15

A computer system comprising memory and one or more processing units, wherein the computer system implements a video decoder configured to perform operations comprising:
receiving encoded data in a bitstream for at least part of a video sequence; and
decoding the encoded data, including, for each of multiple frames of the video sequence:
decoding a quantizer index for the frame, wherein the quantizer index indicates a picture quantizer scale for the frame;
comparing the quantizer index to a comparison value;
responsive to the quantizer index being less than or equal to the comparison value, decoding a half-step quantization parameter field, the half-step quantization parameter field indicating a half-step increment for the picture quantizer scale for the frame, and selectively adjusting the picture quantizer scale for the frame according to the half-step increment, wherein syntax of the bitstream allows half-step picture quantization step sizes as specified by the quantizer index and the half-step quantization parameter field when the quantizer index is less than or equal to the comparison value but allows only integer-step picture quantization step sizes as specified by the quantizer index when the quantizer index is greater than the comparison value; and
inverse quantizing at least some quantized transform coefficients for the frame.

### Claim 16 (depends on 15)

The computer system of claim 15, wherein the quantizer index is a 5-bit field, and wherein the quantizer index is signaled in a frame header.

### Claim 17 (depends on 15)

The computer system of claim 15, wherein the half-step quantization parameter field is a 1-bit field, and wherein the half-step quantization parameter field is signaled in a frame header.

### Claim 18 (depends on 15)

The computer system of claim 15, wherein the selectively adjusting the picture quantizer scale for the frame includes:
if the half-step quantization parameter field is 1, adding ½ to the picture quantizer scale for the frame; and
otherwise, the half-step quantization parameter field being 0, not adjusting the picture quantizer scale for the frame.

### Claim 19 (depends on 15)

The computer system of claim 15, wherein the inverse quantizing includes performing operations according to dequant_coeff=quant_coeff*(2*quant_scale+halfstep), where dequant_coeff is a dequantized transform coefficient, quant_coeff is a quantized transform coefficient, quant_scale is the picture quantizer scale for the frame, and halfstep is the half-step quantization parameter field.

### Claim 20 (depends on 15)

The computer system of claim 15, wherein the inverse quantizing includes performing operations according to dequant_coeff=quant_coeff*(2*quant_scale+halfstep)+sign(quant_coeff)*quant_scale, where dequant_coeff is a dequantized transform coefficient, quant_coeff is a quantized transform coefficient, quant_scale is the picture quantizer scale for the frame, halfstep is the half-step quantization parameter field, and sign(x) is a function defined as +1 for x≥0, or −1 for x<0.
