# US 2021/0084304 A1 · Dependent Quantization

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

- Number: US 2021/0084304 A1
- Document ID: US20210084304A1
- Status: Published application
- Kind: A1
- Application number: 17/033,197
- Filed: 2020-09-25
- Published: 2021-03-18
- Earliest claimed: 2018-03-29
- Assignees: Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
- Applicants: Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
- Inventors: Heiko SCHWARZ; Thomas WIEGAND; Phan Hoang Tung NGUYEN; Detlev MARPE
- Web page: https://patentgrep.com/patent/US20210084304A1

## CPC

- 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/105: Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
- H04N 19/126: Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
- H04N 19/13: Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
- H04N 19/159: Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
- H04N 19/176: the region being a block, e.g. a macroblock
- H04N 19/18: the unit being a set of transform coefficients
- H04N 19/60: using transform coding
- 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

The coding of a media signal is rendered more efficient by describing the media signal using a sequence of samples and sequentially encoding this sequence by selecting, for a current sample, a set of quantization levels out of a plurality of quantization level sets depending on indices encoded into the data stream for previous samples of the sequence of samples, quantizing the current sample onto one level of the set of quantization levels, and encoding a quantization index to the one level for the current sample into the data stream. In other words, scalar quantization of the individual samples of the sequence of samples is used, but it is rendered dependent on quantization indices encoded into the data stream for previous samples of the sequence of samples. By this measure, it is possible to “construe” a grid of quantization points in the multi-dimensional space across which all possible settings of the sequence of samples are spread, onto which values of the samples are quantized according to the sequence of quantization indices coded into the data stream. This grid, in turn, reduces, statistically, a mean quantization error.

## Claims

### Claim 1

Apparatus for decoding a media signal from a data stream, configured to
sequentially decode a sequence of samples which describe the media signal by
selecting, for a current sample, a set of reconstruction levels out of a plurality of reconstruction level sets depending on quantization indices decoded from the data stream for previous samples of the sequence of samples,
entropy decoding a quantization index for the current sample from the data stream, wherein the quantization index indicates one reconstruction level out of the selected set of reconstruction levels for the current sample,
dequantizing the current sample onto the one reconstruction level of the selected set of reconstruction levels that is indicated by the quantization index for the current sample.

### Claim 2 (depends on 1)

Apparatus of claim 1, wherein the media signal comprises a picture.

### Claim 3 (depends on 1)

Apparatus of claim 1, wherein the media signal comprises a picture and the sequence of samples represents transform coefficients of a transform coefficient block, scanned along a predetermined coefficient scan so that the decoding the sequence of samples yields the transform coefficient block, wherein the apparatus is configured to
subject the transform coefficient block to an inverse transformation to acquire a picture block of the picture.

### Claim 4 (depends on 1)

Apparatus of claim 1, the media signal comprises a picture and the apparatus is configured to
predict the picture content of the picture within a picture block of the picture, wherein the sequence of samples represents picture samples of a prediction residual of the prediction of the picture content of the picture within the picture block so that the decoding the sequence of samples yields the picture samples of the prediction residual, wherein the apparatus is configured to
combine the picture samples of the prediction residual with the prediction of the picture content of the picture within the picture block to acquire a block of reconstructed samples for the picture.

### Claim 5 (depends on 1)

Apparatus of claim 1, the media signal comprises a picture and the apparatus is configured to
predict the picture content of the picture within a picture block of the picture,
wherein the sequence of samples is formed by transform coefficients of a transform coefficient block, scanned along a predetermined coefficient scan, so that the decoding the sequence of samples yields the transform coefficient block, and the apparatus is configured to
subject the transform coefficient block to an inverse transformation to acquire a block of residual samples, and
combine the block of residual samples with the prediction of the picture content of the picture within the picture block to reconstruct the picture within the picture block.

### Claim 6 (depends on 5)

Apparatus of claim 5, configured to
perform the combination by adding the block of residual samples and the prediction of the picture content of the picture within the picture block.

### Claim 7 (depends on 4)

Apparatus of claim 4, configured to perform the prediction of the picture content of the picture within the picture block by
intra-prediction, or
inter prediction.

### Claim 8 (depends on 7)

Apparatus of claim 7, wherein the data stream comprises an indication indicating whether intra- or inter prediction is used.

### Claim 9 (depends on 1)

Apparatus of claim 1, wherein the number of reconstruction level sets of the plurality of reconstruction level sets is two.

### Claim 10 (depends on 1)

Apparatus of claim 1, configured to
parametrize the plurality of reconstruction level sets by way of a predetermined quantization step size and derive information on the predetermined quantization step size from the data stream.

### Claim 11 (depends on 1)

Apparatus of claim 1, wherein the media signal comprises a picture and the apparatus is configured to
partition the picture into picture blocks and
derive information on a predetermined quantization step size from the data stream in a manner varying among the picture blocks, and
parametrize the plurality of quantization level sets by way of the predetermined quantization step size.

### Claim 12 (depends on 1)

Apparatus of claim 1, wherein the media signal comprises a picture and the apparatus is configured to
partition the picture into picture blocks and
reconstruct each of a subset of the picture blocks of the picture by way of an inverse transformation of a transform coefficient block, wherein the transform coefficients of a predetermined transform coefficient block, scanned along a predetermined coefficient scan, form the sequence of samples, and
derive information on a predetermined quantization step size from the data stream in a manner varying among subset of transform blocks, and
parametrize the plurality of quantization level sets by way of the predetermined quantization step size.

### Claim 13 (depends on 11)

Apparatus of claim 11, wherein the predetermined quantization step size is defined by a quantization parameter that applies to a single picture block or a group of picture blocks and the quantization parameter is derived by
predicting a quantization parameter for a predetermined picture block based on quantization parameters of neighboring picture blocks;
entropy decoding a quantization parameter difference for the predetermined picture block or group of picture blocks from the data stream;
adding the quantization parameter difference to the prediction of the quantization parameter to acquire the quantization parameter for the predetermined picture block or group of picture blocks.

### Claim 14 (depends on 12)

Apparatus of claim 12, wherein the sequence of samples are transform coefficients of a transform coefficient block, scanned along a predetermined coefficient scan, and the apparatus is configured to
derive a base quantization step size for the transform coefficient block from the data stream,
derive scale information from the data stream which defines as to how the base quantization step size is scaled in order to acquire quantization step sizes for the transform coefficients of the transform coefficient block so that the quantization step sizes vary across the transform coefficient locations inside the transform coefficient block,
parametrize the plurality of quantization level sets by a predetermined quantization step size acquired by scaling the base quantization step size according to the scale information.

### Claim 15 (depends on 9)

Apparatus of claim 9, wherein each of the plurality of reconstruction level sets for the current sample comprises integer multiples of a predetermined quantization step size, wherein the quantization step size is the same for all reconstruction level sets of the plurality of reconstruction level sets for the current sample.

### Claim 16 (depends on 1)

Apparatus of claim 1, wherein the number of reconstruction level sets of the plurality of reconstruction level sets is two and the plurality of quantization level sets comprises
a first reconstruction level set that comprises zero and even multiples of a predetermined quantization step size, and
a second reconstruction level set that comprises zero and odd multiples of the predetermined quantization step size.

### Claim 17 (depends on 1)

Apparatus of claim 1, wherein all reconstruction levels of all reconstruction level sets represent integer multiples of a predetermined quantization step size, and the apparatus is configured to dequantize the samples by
deriving, for each sample, an intermediate integer value depending on the selected reconstruction level set for the respective sample and the entropy decoded quantization index for the respective sample, and
multiplying, for each sample, the intermediate value for the respective sample with the predetermined quantization step size for the respective sample.

### Claim 18 (depends on 17)

Apparatus of claim 17, wherein the number of reconstruction level sets of the plurality of reconstruction level sets is two and the apparatus is configured to derive the intermediate value for each sample by,
if the selected reconstruction level set for the respective sample is a first set, multiply the quantization index for the respective sample by two to acquire the intermediate value for the respective sample; and
if the selected reconstruction level set for a respective sample is a second set and the quantization index for the respective sample is equal to zero, set the intermediate value for the respective sample equal to zero; and
if the selected reconstruction level set for a respective sample is a second set and the quantization index for the respective sample is greater than zero, multiply the quantization index for the respective sample by two and subtract one from the result of the multiplication to acquire the intermediate value for the respective sample; and
if the selected reconstruction level set for a current sample is a second set and the quantization index for the respective sample is less than zero, multiply the quantization index for the respective sample by two and add one to the result of the multiplication to acquire the intermediate value for the respective sample.

### Claim 19 (depends on 1)

Apparatus of claim 1, configured to
select, for the current sample, the set of reconstruction levels out of the plurality of reconstruction level sets depending on a LSB portion or previously decoded bins of a binarization of the quantization indices decoded from the data stream for previous samples of the sequence of samples.

### Claim 20 (depends on 1)

Apparatus of claim 1, configured to
select, for the current sample, the set of reconstruction levels out of the plurality of reconstruction level sets depending on the results of a binary function of the quantization indices decoded from the data stream for previous samples of the sequence of samples.

### Claim 21 (depends on 1)

Apparatus of claim 1, wherein the apparatus is configured to
select, for the current sample, the set of quantization levels out of the plurality of quantization level sets depending on a parity of the quantization indices decoded from the data stream for previous samples of the sequence of samples.

### Claim 22 (depends on 1)

Apparatus of claim 1, wherein the number of reconstruction level sets of the plurality of reconstruction level sets is two, and the apparatus is configured to
derive a subset index for each sample based on the selected set of reconstruction levels for the respective sample and a binary function of the quantization index for the respective sample, resulting in four possible values for the subset index; and
select, for the current sample, the set of reconstruction levels out of the plurality of reconstruction level sets depending on the subset indices for previous samples of the sequence of samples.

### Claim 23 (depends on 22)

Apparatus of claim 22, wherein the apparatus is configured to
select, for the current sample, the set of reconstruction levels out of the plurality of reconstruction level sets using a selection rule which depends on the subset indices for a number of immediately preceding samples of the sequence of samples and to use the selection rule for all, or a portion, of the sequence of samples.

### Claim 24 (depends on 23)

Apparatus of claim 23, wherein the number of immediately preceding samples of the sequence of samples on which the selection rule depends is two.

### Claim 25 (depends on 22)

Apparatus of claim 22, wherein the subset index for each sample is derived based on the selected set of reconstruction levels for the sample and a parity of the quantization index for the sample.

### Claim 26 (depends on 19)

Apparatus of claim 19, wherein the selection rule for selecting a reconstruction level set out of a plurality of reconstruction level sets is realized via a state transition process, in such a way that
a state associated with the current sample uniquely determines the set of reconstruction levels used for the current sample,
and the state for the current sample depends on the state for an immediately preceding sample of the sequence of samples and a quantization index decoded from the data stream for the immediately preceding sample of the sequence of samples.

### Claim 27 (depends on 26)

Apparatus of claim 26, wherein the state for the current sample depends on the state for an immediately preceding sample of the sequence of samples and a binary function of the quantization index decoded from the data stream for the immediately preceding sample of the sequence of samples.

### Claim 28 (depends on 27)

Apparatus of claim 27, wherein the state for the current sample depends on the state for an immediately preceding sample of the sequence of samples and a parity of the quantization index decoded from the data stream for the immediately preceding sample of the sequence of samples.

### Claim 29 (depends on 26)

Apparatus of claim 26, wherein the number of possible states is four.

### Claim 30 (depends on 29)

Apparatus of claim 29, wherein the number of reconstruction level sets of the plurality of reconstruction level sets is two and the apparatus is configured to, with the possible states being numbered from 0 to 3, both inclusively,
select a first reconstruction level set for a current sample if the state for the current sample is 0 or 1; and
select a second reconstruction level set for a current sample if the state for the current sample is 2 or 3.

### Claim 31 (depends on 30)

Apparatus of claim 30, wherein the apparatus is configured to perform a state transition of the state transition process by
setting the state for the current sample equal to 0, if the state for the preceding sample is equal to 0 and the parity of the preceding quantization index is equal to 0, or if the state for the preceding sample is equal to 1 and the parity of the preceding quantization index is equal to 1; and
setting the state for the current sample equal to 1, if the state for the preceding sample is equal to 2 and the parity of the preceding quantization index is equal to 0, or if the state for the preceding sample is equal to 3 and the parity of the preceding quantization index is equal to 1; and
setting the state for the current sample equal to 2, if the state for the preceding sample is equal to 1 and the parity of the preceding quantization index is equal to 0, or if the state for the preceding sample is equal to 0 and the parity of the preceding quantization index is equal to 1; and
setting the state for the current sample equal to 3, if the state for the preceding sample is equal to 3 and the parity of the preceding quantization index is equal to 0, or if the state for the preceding sample is equal to 2 and the parity of the preceding quantization index is equal to 1.

### Claim 32 (depends on 26)

Apparatus of claim 26, wherein a state for the first—in an order of the sequence of samples—sample of the sequence of samples is set equal to a predefined value.

### Claim 33 (depends on 32)

Apparatus of claim 32, wherein the state for the first sample of the sequence of samples is set equal to zero.

### Claim 34 (depends on 1)

Apparatus of claim 1, configured to
decode the quantization index for the current sample in form of
an absolute value which is indicative of the absolute of
a rank distance between a rank of zero and a rank of the one reconstruction level when ordering the selected set of quantization levels according to their values and, if zero is not comprised in the selected set of quantization levels, a rank distance between the rank of the one level and a rank of a smallest level of equal sign, when ordering the set of quantization levels according to their values, plus one, or
a rank distance between a rank of a predetermined level in the set of quantization levels which is of minimum absolute value, and a rank of the one reconstruction level when ordering the set of quantization levels according to their values, and
if the absolute value is greater than zero, a sign value which is indicative of the sign of the one reconstruction level.

### Claim 35 (depends on 1)

Apparatus of claim 1, wherein
the number of reconstruction level sets of the plurality of reconstruction level sets is two, and a first reconstruction level set of the plurality of reconstruction level sets comprises zero and even multiples of a predetermined quantization step size, and a second reconstruction level set of the plurality of reconstruction level sets comprises zero and odd multiples of the predetermined quantization step size, and
the apparatus configured to decode the quantization index for the current sample in form of an absolute value and, if the absolute value is greater than zero, a sign value which is indicative of the sign of the one reconstruction level, and determine the reconstruction level from the absolute value and the sign value to be a first function applied to the absolute value and the sign if the selected reconstruction level set is the first reconstruction level set and a second function applied to the absolute value and the sign, if the selected reconstruction level set is the second reconstruction level set, with the first and second functions being symmetric with respect to the absolute value and reconstruction level.

### Claim 36 (depends on 1)

Apparatus of claim 1, configured to
decode an absolute value of the quantization index for the current sample from the data stream using a binarization of the absolute value which comprises
a first bin which specifies whether the absolute value is greater than zero or not.

### Claim 37 (depends on 36)

Apparatus of claim 36, wherein the binarization of the absolute value further comprises a second bin which specifies whether the absolute value is greater than one or not, where the second bin is only comprised in the data stream if the first bin indicates that the absolute value is greater than zero.

### Claim 38 (depends on 36)

Apparatus of claim 36, wherein the binarization of the absolute value further comprises a further bin which specifies a parity of the absolute value, where the further bin is only comprised in the data stream if the first bin indicates that the absolute value is greater than zero

### Claim 39 (depends on 37)

Apparatus of claim 37, wherein the binarization of the absolute value further comprises a further bin which specifies a parity of the absolute value, where the further bin is only comprised in the data stream if the second bin is comprised in the data stream and the second bin indicates that the absolute value is greater than one.

### Claim 40 (depends on 1)

Apparatus of claim 1, configured to
decode an absolute value of the quantization index for the current sample from the data stream using binary arithmetic decoding by
entropy decoding a first bin of a bin string onto which the absolute value is binarized, which first bin specifies whether the absolute value is greater than zero or not, using a first adaptive probability model, wherein the probability model is selected among a set of adaptive probability models and the selection depends on the set of reconstruction levels selected for the current sample.

### Claim 41 (depends on 26)

Apparatus of claim 26, configured to
decode an absolute value of the quantization index for the current sample from the data stream using binary arithmetic decoding by
entropy decoding a first bin of a bin string onto which the absolute value is binarized, which first bin specifies whether the absolute value is greater than zero or not, using a first adaptive probability model, wherein the probability model is selected among a set of adaptive probability models and the selection depends on the state for the current sample.

### Claim 42 (depends on 40)

Apparatus of claim 40, configured so that
the selection of the first adaptive probability model further depends on a parity of the quantization index for an immediately preceding sample of the sequence of samples.

### Claim 43 (depends on 40)

Apparatus of claim 40, configured so that
the selection of the first adaptive probability model further depends on one or more preceding samples of the sequence of samples comprising a predetermined locational relationship to the current sample.

### Claim 44 (depends on 43)

Apparatus of claim 43, wherein
the sequence of samples are transform coefficients of a transform coefficient block, and
the locational relationship to the current sample is determined by a template positioned at the current sample.

### Claim 45 (depends on 44)

Apparatus of claim 44, wherein
the selection of the first adaptive probability model depends on
the sum of absolute quantization indices inside the template; and/or
the number of non-zero absolute quantization indices inside the template.

### Claim 46 (depends on 1)

Apparatus of claim 1, configured to
decode an absolute value of the quantization index for the current sample from the data stream using binary arithmetic decoding by
entropy decode a second bin of the a string onto which the absolute value is binarized, which second bin specifies whether the absolute value is greater than one or not, using a second adaptive probability model, wherein the probability model is selected among a set of adaptive probability models and the selection depends on the set of quantization levels selected for the current sample or the state for the current sample.

### Claim 47 (depends on 46)

Apparatus of claim 46, configured so that
the selection of the second adaptive probability model further depends on a parity of an immediately preceding sample of the sequence of samples.

### Claim 48 (depends on 37)

Apparatus of claim 37, configured so that
the selection of the second adaptive probability model depends on one or more immediately preceding samples of the sequence of samples comprising a predetermined locational relationship to the current sample.

### Claim 49 (depends on 48)

Apparatus of claim 48, wherein
the sequence of samples are transform coefficients of a transform coefficient block, and
the locational relationship to the current sample is determined by a template positioned at the current sample.

### Claim 50 (depends on 36)

Apparatus of claim 36, wherein the apparatus is configured to
entropy decode the bins of the binarization of the absolute values of the quantization indexes in multiple passes over the scanning positions of the block or subblocks of the block.

### Claim 51 (depends on 50)

Apparatus of claim 50, configured to perform a probability model selection for a currently decoded bin of the absolute value of the quantization index among a set of adaptive probability models depending on already decoded bins of the binarization of quantization indices of other samples of the sequence of samples.

### Claim 52 (depends on 1)

Apparatus of claim 1, configured to
sequentially decode a further sequence of samples which describe the media signal by use of mutually sample independent scalar dequantization.

### Claim 53 (depends on 1)

Apparatus of claim 1, wherein the media signal is a video sequence of pictures and the samples of the sequence of samples are transform coefficients of a transform coefficient block representing a transform of a predetermined transform block of transform bocks the video pictures are partitioned into, wherein the apparatus switches between decoding the transform blocks by use of mutually sample independent scalar dequantization and mutually sample dependent scalar dequantization as applied for the predetermined transform block.

### Claim 54 (depends on 53)

Apparatus of claim 53, configured to perform the switching between the decoding the transform blocks by use of mutually sample independent scalar dequantization and mutually sample dependent scalar dequantization depending on one or more coding parameters signaled in the data stream and varying across the picture or between pictures of the video sequence.

### Claim 55 (depends on 53)

Apparatus of claim 53, configured to derive the switching between the decoding the transform blocks by use of mutually sample independent scalar dequantization and mutually sample dependent scalar dequantization from explicit signaling in the data stream.

### Claim 56

Method for decoding a media signal from a data stream, comprising
sequentially decoding a sequence of samples which describe the media signal by
selecting, for a current sample, a set of reconstruction levels out of a plurality of reconstruction level sets depending on quantization indices decoded from the data stream for previous samples of the sequence of samples,
entropy decoding a quantization index for the current sample from the data stream, wherein the quantization index indicates one reconstruction level out of the selected set of reconstruction levels for the current sample,
dequantizing the current sample onto the one reconstruction level of the selected set of reconstruction levels that is indicated by the quantization index for the current sample.

### Claim 57

Apparatus for encoding a media signal into a data stream, configured to
sequentially encode a sequence of samples which describe the media signal by
selecting, for a current sample, a set of reconstruction levels out of a plurality of reconstruction level sets depending on quantization indices encoded into the data stream for previous samples of the sequence of samples,
quantizing the current sample onto one reconstruction level of the set of reconstruction levels, and
encoding a quantization index which indicates the one reconstruction level out of the selected set of reconstruction levels for the current sample into the data stream.

### Claim 58

Method for encoding a media signal into a data stream, comprising
sequentially encoding a sequence of samples which describe the media signal by
selecting, for a current sample, a set of reconstruction levels out of a plurality of reconstruction level sets depending on quantization indices encoded into the data stream for previous samples of the sequence of samples,
quantizing the current sample onto one reconstruction level of the set of reconstruction levels, and
encoding a quantization index which indicates the one reconstruction level out of the selected set of reconstruction levels for the current sample into the data stream.

### Claim 59

Non-transitory digital storage medium having stored thereon a computer program for performing a method for decoding a media signal from a data stream, comprising
sequentially decoding a sequence of samples which describe the media signal by
selecting, for a current sample, a set of reconstruction levels out of a plurality of reconstruction level sets depending on quantization indices decoded from the data stream for previous samples of the sequence of samples,
entropy decoding a quantization index for the current sample from the data stream, wherein the quantization index indicates one reconstruction level out of the selected set of reconstruction levels for the current sample,
dequantizing the current sample onto the one reconstruction level of the selected set of reconstruction levels that is indicated by the quantization index for the current sample,
when said computer program is run by a computer.

### Claim 60

Non-transitory digital storage medium having stored thereon a computer program for performing a method for encoding a media signal into a data stream, comprising
sequentially encoding a sequence of samples which describe the media signal by
selecting, for a current sample, a set of reconstruction levels out of a plurality of reconstruction level sets depending on quantization indices encoded into the data stream for previous samples of the sequence of samples,
quantizing the current sample onto one reconstruction level of the set of reconstruction levels, and
encoding a quantization index which indicates the one reconstruction level out of the selected set of reconstruction levels for the current sample into the data stream,
when said computer program is run by a computer.

### Claim 61 (depends on 58)

Data stream generated using a method for encoding according to claim 58.
