Dependence quantification

By encoding media signals with dependent scalar quantization, where the quantization index for the current sample is based on the previous sample, the encoding efficiency is improved by reducing quantization error and optimizing quantization levels, addressing the trade-offs in existing quantization methods.

JP2024133681AActive Publication Date: 2024-10-02FRAUNHOFER GESELLSCHAFT ZUR FORDERUNG DER ANGEWANDTEN FORSCHUNG EV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024111081
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2018-03-29
Filing Date
2024-07-10
Publication Date
2024-10-02
Estimated Expiration
2039-03-28

AI Technical Summary

Technical Problem

Existing media signal encoding technologies face challenges in achieving optimal coding efficiency with quantization parameters, as coarse quantization increases bit rate while fine quantization increases distortion, leading to suboptimal trade-offs.

Method used

The encoding of media signals is enhanced by representing the signal with a sequence of samples and a countable set of quantization levels, where the quantization index for the current sample is encoded relative to the previous sample, allowing for dependent scalar quantization that reduces quantization average error through a grid of points in a multidimensional space.

Benefits of technology

This approach statistically reduces quantization average error and improves encoding efficiency by optimizing the selection of quantization levels based on previous samples, thereby enhancing the overall encoding performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024133681000001_ABST
    Figure 2024133681000001_ABST
Patent Text Reader

Abstract

To provide a quantification method for achieving an increase of a coding efficiency by a predetermined setting of an available quantification level.SOLUTION: By selecting a set of quantification levels from a set of a plurality of quantification levels in accordance with an index coded into a data stream against a sample before a sequence of a sample against a newest sample, performing a quantification of the newest sample to one level of the set of quantification levels, and coding a quantification index to one level against the newest sample in the data stream, this sequence is continuously coded. A scalar quantification of an individual sample of the sequence of the sample is in dependence to the quantification index coded to the data stream for the sample before the sequence of the sample. By "understanding" a grid of a quantification point of a whole multi-dimensional space, an average quantification error is statically reduced.SELECTED DRAWING: Figure 15
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to media signal coding, such as video coding, and in particular to lossy codecs that use quantization in the encoding of media signals, e.g. for the quantization of prediction residuals, as is done, for example, in HEVC. [Background technology]

[0002] In setting the quantization parameters, the encoder must make a compromise: coarser quantization reduces the bitrate but increases the quantization distortion, finer quantization reduces the distortion but increases the bitrate. It would be advantageous to have a near-future concept that increases the coding efficiency for a given range of available quantization levels. Summary of the Invention [Problem to be solved by the invention]

[0003] It is an object of the invention to provide a concept for the coding of media signals using quantization which achieves, for a given setting of available quantization levels, an increased coding efficiency.

[0004] This object is achieved by the subject matter of the independent claims of the present application. [Means for solving the problem]

[0005] The present application is based on the discovery that the coding of a media signal is more efficiently provided by representing the media signal using a sequence of samples, and this sequence may be successively coded by a countable set of quantization levels, also called reconstruction levels, a selection for the current sample, such as a setting of multiple quantization levels by an index coded in the data stream for a previous sample of the sequence of samples, a quantization of the current sample above one level of the set of quantization levels, and coding a quantization index up to one level for the current sample in the data stream. In other words, a scalar quantization of each sample of the sequence of samples is used, but the coding of the media signal is provided by a quantization index coded in the data stream for a previous sample of the sequence of samples. This measure makes it possible to "interpret" a grid of quantization points in a multidimensional space across all possible settings of the sequence of samples, distributed with the quantization of the quantized samples relative to the sequence of quantization indexes coded in the data stream. This grid then statistically reduces the quantization average error.

[0006] According to an embodiment, the media signal is a two-dimensional signal, e.g. an image, and the sequence of samples is obtained by using some scanning pattern that transforms the two-dimensional spatial arrangement of samples into a one-dimensional sequence, along with the configuration of the aforementioned quantization point grid that then occurs.

[0007] According to an embodiment, the sequence of samples, representing a media signal, represents an image or a part thereof, in other words it is obtained by transforming an image block or a block of spatial samples, such as a transform block of the image, i.e. a predictor residual sample in a transform coefficient block, where certain transform coefficients of the transform coefficient block are scanned according to a certain coefficient scan from the sequence of samples. The transformation may be a linear transformation or any other transformation, and for reconstruction purposes, an inverse transformation or some other inverse transformation approximating the inverse transformation is used. Additionally or alternatively, the sequence of samples may represent a prediction residual.

[0008] According to the embodiment, the selection of the quantization level setting for the current sample depends on a least significant bit portion, such as a simple parity of the quantization index, encoded in the data stream for the previous sample of the sequence of samples. In particular, the number of quantization level settings of the multiple quantization level settings after which the selection according to the embodiment occurs is two. Additionally or alternatively, the selection from the multiple quantization level settings may depend on the parity of the previous quantization index. In particular, the fixed configuration rule is: A state transition process or state machine according to an embodiment is used in this division, comprising a state setting and a transition from one state for one sample to a state for the next sample, the transition from one state to the next depending on the quantization index for the one sample, as well as its parity. Each state uniquely determines the quantization level to be used for the sample to which each state is associated. A predetermined state setting may be applied at the encoder and decoder for the initial state from which the transition state is initiated. For example, this predetermined number may be 2, and the cardinality of the multiple quantization level settings may be 2. As just mentioned, the dependency may be mainly related to the parity of the quantization number. This occurs in the embodiment with improved coding effect.

[0009] Preferably, and in accordance with an embodiment of the present application, the multiple quantization level setting is parameterized with a predefined quantization step size, and information about the predefined quantization step size is signaled in the data stream. In case of a sequence of samples representing transform coefficients of a transform block, a specific quantization step size for parameterizing the multiple quantization level setting may be determined for each transform coefficient (sample). For example, the quantization step size for the transform coefficients of the transform block may be related in a predefined manner to a single signaled quantization step size signaled in the data stream. For example, a single quantization step size may be signaled in the data stream for the entire transform block and scaled individually for each transform coefficient to a default or a scaling factor set by also being coded in the data stream.

[0010] Therefore, advantageously, the dependent scalar quantization used here allows the combination of dependent scalar quantization with the concept of using a weighting matrix to weight the overall scaling factor of the transform coefficients of a transform block. [Brief description of the drawings]

[0011] The setting of the selected quantization level may take into account the entropy coding absolute value of the quantization index. Moreover, the context dependency may include a dependency on the quantization level for previous samples of the sequence of samples, such as a nearby region of the current sample. Advantageously, embodiments are the subject of the dependent claims. Preferred embodiments of the present application are described below with reference to the following figures: [Figure 1] FIG. 1 shows a block diagram of a typical video encoder as an example of an image encoder that may be implemented to operate according to the embodiments described below. [Diagram 2] FIG. 2 shows (a) a transform encoder, (b) a block diagram of a transform encoder to illustrate the basic approach of a-block based transform coding. [Diagram 3] FIG. 3 shows a histogram of the distribution describing a uniform reconstruction quantizer. [Figure 4] FIG. 4 shows (a) a transform block subdivided into sub-blocks, (b) a schematic diagram of sub-blocks to illustrate an example for scanning of transform coefficient levels, where a typical one is used in H.265 | MPEG-H HEVC; in particular, (a) shows the conversion from a 16×16 transform block to a 4×4 sub-block and the coding order of the sub-blocks, and (b) shows the coding order of transform coefficient levels within a 4×4 sub-block. [Diagram 5] FIG. 5 shows a schematic diagram of a multidimensional output space spanned by one axis per transform coefficient, and arrangements of allowable reconstruction vectors for the simple case of two transform coefficients for examples of (a) independent scalar quantization and (b) dependent scalar quantization. [Figure 6a] Figure 6a shows a block diagram of a transform decoder using dependent scalar quantization, thereby forming a media decoder according to the present application. Modifications to conventional transform coding (which uses an independent scalar quantizer) can be derived by comparison with Figure 2b. [Figure 6b] Figure 6b shows a block diagram of a transform decoder using dependent scalar quantization, thereby forming a media decoder according to the present application. The modifications to conventional transform coding (which uses an independent scalar quantizer) can be derived by comparison with Figure 2a. [Figure 7a] FIG. 7a shows a schematic diagram of a concept for quantization performed within an encoder for coding transform coefficients according to an embodiment, such as by the quantization stage of FIG. 6b. [Figure 7b] FIG. 7b shows a schematic diagram of a concept for dequantization performed within a decoder for decoded transform coefficients according to an embodiment, such as by the dequantization stage of FIG. 6a. [Figure 8a] In FIG. 8a, a schematic diagram of the collection of available quantization settings during switching according to the previous level; in particular, an example of dependent quantization with two settings of reconstruction levels completely determined by a single quantization step size Δ is shown. The two available settings of reconstruction levels are highlighted with different colors (blue for set 0 and red for set 1). Examples for quantization indexes indicating the reconstruction levels in the settings are given by numbers under the circles. The hollow black circles indicate two different subsets within the set of reconstruction levels; the subsets can be used to determine the setting of the reconstruction levels for the next transform coefficient in the reconstruction order. The diagram shows three configurations with two settings of reconstruction levels: (a) the two settings are disjoint and symmetric about zero; (b) both settings include a reconstruction level equal to zero but are otherwise disjoint; the settings are asymmetric around zero; (c) both settings include a reconstruction level equal to zero but are otherwise disjoint; both settings are symmetric around zero. [Figure 8b] In Fig. 8b, a schematic diagram of the collection of available quantization settings during switching according to the previous level; in particular, an example of dependent quantization with two settings of reconstruction levels completely determined by a single quantization step size Δ is shown. The two available settings of reconstruction levels are highlighted with different colors (blue for set 0 and red for set 1). Examples for quantization indexes indicating the reconstruction levels in the settings are given by numbers under the circles. The hollow black circles indicate two different subsets within the set of reconstruction levels; the subsets can be used to determine the setting of the reconstruction levels for the next transform coefficient in the reconstruction order. The diagram shows three configurations with two settings of reconstruction levels: (a) the two settings are disjoint and symmetric about zero; (b) both settings include a reconstruction level equal to zero but are otherwise disjoint; the settings are asymmetric around zero; (c) both settings include a reconstruction level equal to zero but are otherwise disjoint; both settings are symmetric around zero. [Figure 8c] In Fig. 8c, a schematic diagram of the collection of available quantization settings during switching according to the previous level; in particular, an example of dependent quantization with two settings of reconstruction levels completely determined by a single quantization step size Δ is shown. The two available settings of reconstruction levels are highlighted with different colors (blue for set 0 and red for set 1). Examples for quantization indexes indicating the reconstruction levels in the settings are given by numbers under the circles. The hollow black circles indicate two different subsets within the set of reconstruction levels; the subsets can be used to determine the setting of the reconstruction levels for the next transform coefficient in the reconstruction order. The diagram shows three configurations with two settings of reconstruction levels: (a) the two settings are disjoint and symmetric about zero; (b) both settings include a reconstruction level equal to zero but are otherwise disjoint; the settings are asymmetric around zero; (c) both settings include a reconstruction level equal to zero but are otherwise disjoint; both settings are symmetric around zero. [Figure 9a] FIG. 9a shows pseudocode illustrating an example of a method for reconstructing transform coefficients. k denotes an index specifying the reconstruction order of the current transform coefficient, the quantization index for the current transform coefficient is denoted by level[k], the step size Δk to apply to the current transform coefficient is denoted by quant_step_size[k], and trec[k] represents the value of the reconstructed transform coefficient t_k^. The variable setId[k] specifies the set of reconstruction levels to apply to the current transform coefficient. It is determined based on the previous transform coefficient in the reconstruction order; possible values ​​of setId[k] are 0 and 1. The variable n specifies an integer factor of the quantization step size; it is given by the reconstruction level (in other words, the value of setId[k]) and the selected set of transmitted quantization index levels[k]. [Figure 9b] FIG. 9b shows pseudocode illustrating another embodiment of the pseudocode in FIG. 9a. The main change is that the multiplication by the quantization step is expressed using an integer implementation using scale and shift parameters. Usually, the shift parameter (denoted by shift) is constant for the transform block, and only the scale parameter (given by scale[k]) may depend on the position of the transform coefficient. The variable add represents a rounding offset, add = (1<<(shift-1)), which is typically set equal. Using Δ_k is the fractional quantization step for the transform coefficient, and the parameters shift and scale[k] are chosen in such a way that we have Δk ≈ scale[k] · 2-shift. [Figure 10a] Fig. 10a shows an example schematic diagram for dividing the reconstruction level settings into two subsets. The two shown quantization settings are the example quantization settings of Fig. 8c. The two subsets of quantization set 0 are labeled with "A" and "B", and the two subsets of quantization set 1 are labeled with "C" and "D". [Figure 10b]Fig. 10b shows a table of an example of determining a quantization set (set of available reconstruction levels) to be used for a next transform coefficient based on a subset with the two last quantization indexes. The subsets are shown in the left table column; they are measured uniquely with the used quantization set (for the two last quantization indexes) and with the so-called path (which may be measured with the parity of the quantization indexes). The quantization settings and, in brackets, the path for the subset are listed to the left in the second column. The third column specifies the associated quantization setting. In the last column, values ​​of so-called state variables are shown, which can be used to simplify the method of determining the quantization setting. [Figure 10c] FIG. 10c shows a further exemplary state transition table on how to switch between available quantization settings, here in a configuration having four states. [Figure 11] 11 shows pseudocode illustrating an example of a reconstruction process of transform coefficients for a transform block. The array level represents the transmitted transform coefficient levels (quantization indexes) for the transform block, and the array trec represents the corresponding reconstructed transform coefficients. The 2d table state_trans_table specifies the state transition table, and the table setld specifies the quantization sets associated with the states. [Figure 12] Figure 12 shows an example of a state transition table, state_trans_table, and a table, setId, which specifies the quantization set associated with a state. A C-style syntax expresses the table specified in the table of Figure 10c. [Figure 13] FIG. 13 shows pseudocode illustrating another reconstruction method for transform coefficient levels, where quantization indices equal to 0 are excluded from state transitions and dependent scalar quantization. [Figure 14] FIG. 14 shows a schematic diagram illustrating state transitions in dependent scalar quantization as a lattice structure. The presence of horizontal positions represents different transform coefficients in the reconstruction order. The vertical axis represents different possible states in the dependent quantization and reconstruction process. The connections shown identify the available paths between states for different transform coefficients. [Figure 15] FIG. 15 shows an example of a basic trellis cell. [Figure 16] 16 shows a schematic diagram of an example trellis for dependent scalar quantization of eight transform coefficients. The first state (left side) represents the initial state, which is set equal to 0 in this example. [Figure 17a] FIG. 17a shows a conceptual schematic diagram for entropy decoding quantization levels performed within an encoder for coding transform coefficients according to an embodiment, such as by the entropy decoder in FIG. 6b. [Figure 17b] FIG. 17b shows a schematic diagram of a concept for entropy coding quantization levels performed within an encoder for coding transform coefficients according to an embodiment, such as by the entropy decoder in FIG. 6a. [Figure 18] Figure 18 shows a table with examples for binarization of absolute values ​​of quantization indexes. From left to right: (a) unary binarization; (b) exp-golumb binarization; (c) concatenated binarization consisting of unary prefix (first two binaries marked in blue) and suffix; (d) concatenated binarization consisting of unary prefix (first two binaries marked in blue) binaries indicating path / parity (red) and exp-golumb suffix (individual codes for both paths / parities). [Figure 19] Figure 19 shows a schematic diagram of a transform block for the illustration of the concept for entropy coding of transform coefficient levels: (a) Signaling the position of the first non-zero quantization index in the coding order (black samples). In addition to the position of the first non-zero transform coefficient, only the bins for coefficients marked in blue are transmitted, while coefficients marked in white are assumed to be equal to 0. (b) Example of a table used to select one or more binary probability models. [Figure 20]FIG. 20 shows a schematic diagram of an example of a lattice structure that can be utilized to determine a sequence (or block) of quantization indexes that minimizes a cost quantity (e.g., a Lagrangian cost measure, D+λR). The lattice structure represents a further example of dependent quantization with four states (see FIG. 16). A trellis is shown for eight transform coefficients (or quantization indexes). The first state (leftmost) represents the initial state, which is assumed to be equal to 0. [Figure 21] FIG. 21 shows a block diagram of a decoder that may be implemented to operate according to an embodiment such as that depicted in FIG. 7b and adapted to the example encoder of FIG. [Figure 22] FIG. 22 shows a schematic diagram of the image subdivision for prediction and residual coding and the relationship between them.

[0012] The following description describes concepts for media signal coding using dependent scalar quantization. However, for ease of understanding, the examples given below relate to transform coding of transform coefficients using dependent scalar quantization, as described below. However, as described below, embodiments of the present application are not limited to transform coding.

[0013] According to the embodiment described below, transform coding comprises a transformation of a set of samples, a resulting dependent scalar quantization of transform coefficients and an entropy coding of the resulting quantization indexes. At the decoder side, a set of reconstructed samples is obtained by entropy decoding the quantization indexes, a dependent reconstruction of the transform coefficients and an inverse transformation. In contrast to conventional transform coding, which consists of a transformation, an independent scalar quantization and an entropy coding, the set of allowed reconstruction levels for a transform coefficient depends on a transmitted quantization index, also called the transform coefficient level preceding the current transform coefficient in the reconstruction order. Furthermore, the entropy coding of the quantization indexes, i.e. the transform coefficients specifying the reconstruction levels used for the dependent scalar quantization, is described. Furthermore, an adaptive selection between conventional transform coding and transform coding with dependent scalar quantization and the dependent scalar quantity is described. A concept for adapting the quantization step size used for quantization is described. The following description is mainly targeted at lossy coding of blocks of predictions of blocks of prediction error samples in image and video coding, but the embodiments described below may also be applied to other areas of lossy coding, such as audio coding, or the like. That is, the embodiments described below are not limited to sets of samples forming rectangular blocks, but to prediction error samples, i.e. sets of samples representing the difference between the original and the predicted signal. Rather, the embodiments described below may be readily transferred to other scenarios, such as audio signal coding, coding without prediction, coding in the spatial domain rather than the transform domain.

[0014] All modern video codecs, e.g. the international video coding standards H.264 | MPEG-4 AVC [1] and H.265 | MPEG-H HEVC [2], follow the basic approach of hybrid video coding: a video image is divided into blocks, samples of the blocks are predicted using intra-picture or inter-prediction, and the resulting prediction error signal (the difference between the original samples and the samples of the predicted signal) is coded using transform coding.

[0015] FIG. 1 shows a simplified block diagram of a typical modern video encoder. The video images of a video sequence are coded in a particular order, called the coding order. The encoding order of the images can be different from the capture and display order. For the actual encoding, each video image is divided into blocks. A block comprises samples of a rectangular area of ​​a particular color component. The entity of all color component blocks that correspond to the same rectangular area is often called a unit. In H.265|MPEG-H HEVC, for the purpose of block distribution, it distinguishes between coding tree blocks (CTBs), coding blocks (CBs), prediction blocks (PBs), and transform blocks (TBs). The related units are called coding tree units (CTUs), coding units (CUs), prediction units (PUs), and transform units (TUs).

[0016] Typically, a video image is first split into fixed-size units (i.e. fixed-size blocks aligned with respect to all color components). In H.265|MPEG-H HEVC, these fixed-size units are called coding tree units (CTUs). Each CTU can be further split into multiple coding units (CUs). A coding unit is the entity for which a coding mode (e.g., intra- or intra-picture coding) is chosen. In H.265|MPEG-H HEVC|, the split of a CTU into one or more CUs is specified by a quad-tree (QT) syntax and transmitted as part of the bitstream. The CUs of a CTU are processed in a so-called z-scan order. That is, the four blocks resulting from the split are processed in raster scan order; and, if any of the blocks are further split, the corresponding four blocks (including any contained smaller blocks) are processed before the next block at the higher division level is processed.

[0017] If a CU is coded in an intra coding mode, an intra prediction mode for the luma signal is transmitted, and another intra prediction mode for the chroma signal if the video signal includes a chroma component. In ITU TH.265|, if the CU size is equal to the smallest CU size (indicated in the sequence parameter setting), the luma block can be divided into four equally sized blocks and a separate luma prediction mode for each of them is transmitted. The actual intra prediction and coding is performed based on the transform blocks. For each of the transform blocks of a CU coded in the image, a prediction signal is extracted using already reconstructed samples of the same chrominance components. The algorithm used to generate the prediction signal for the transform block is determined by the transmitted intra prediction mode.

[0018] CUs coded in intra-picture coding modes can be further split into multiple prediction units (PUs). A prediction unit is the entity of luma, and for color video, two related chroma blocks (covering the same image area) for signal setting of prediction parameters are used. A CU can be coded as one prediction unit, or it can be split into two non-quadratic (symmetric and asymmetric splits are supported) or four quadratic prediction units. For each PU, an individual setting of motion parameters is transmitted. Each setting of motion parameters includes the number of motion hypotheses (one or two in H.265|MPEG-H HEVC), and for each motion hypothesis, the reference picture (indicated by the reference picture index in the list of reference pictures) and the associated motion vector. In addition to this, in H.265|MPEG-H HEVC, motion parameters are not transmitted explicitly, but provide for so-called joint modes, which are derived based on the motion parameters of spatial or temporal neighboring blocks. If a CU or PU is coded in joint mode, only an index to a list of motion parameter candidates (this list is derived using motion data of spatial or temporal neighboring blocks) is transmitted. The index completely determines the setting of motion parameters used. The prediction signal for an inter-coded PU is formed by motion compensated prediction. For each hypothesis (specified by a reference picture and a motion vector), a prediction signal is formed of a block whose position in the specific reference picture is displaced, where the permutation associated with the current PU is specified by the motion vector. The permutation is typically specified with sub-sample accuracy (in H.265 | MPEG H HEVC, the motion vectors have an accuracy of one quarter luma sample). For non-integer motion vectors, the prediction signal is generated by inserting a reconstructed reference picture (typically using a separable FIR filter). The final prediction signal for a PU using multiple hypothesis prediction is formed by a weighted sum of the prediction signals for the individual motion hypotheses. Typically, the same setting of motion parameters is used for the luma and chroma blocks of the PU.Even though state-of-the-art video coding standards use translational transpose vectors to identify the motion of a current region (block of samples) compared to a reference image, higher order motion models (e.g. affine motion models) can also be used, in which case further motion parameters must be transmitted for the motion hypothesis.

[0019] For intra-picture and inter-picture coded CUs, the prediction error signal (also called residual signal) is typically transmitted by transform coding. In H.265|MPEG-H HEVC, the block of luma residual samples of a CU, as well as the block of chroma residual samples (if present), are partitioned into transform blocks (TBs). The partitioning of a CU into transform blocks is indicated by a quadtree syntax, also called residual quadtree (RQT). The resulting transform blocks are coded using transform coding: a 2d transform is applied to the block of residual samples, the resulting transform coefficients are quantized using independent scalar quantization, and the resulting transform coefficient levels (quantization indices) are entropy coded. For P and B slices, a skip_flag is transmitted at the beginning of the CU syntax. If this flag is equal to 1, it indicates that the corresponding CU consists of a single prediction unit coded in merge mode (i.e., merge_flag is inferred to be equal to 1) and all transform coefficients are equal to zero (i.e., the reconstructed signal is equal to the predicted signal). In that case, only merge_idx is transmitted in addition to skip_flag. If skip_flag is equal to 0, the prediction mode (inter or intra) is indicated following the syntax function described above.

[0020] Since an already coded image can be used for the motion compensated prediction of blocks in a subsequent image, the image has to be completely reconstructed at the encoder. For a block (obtained by reconstructing transform coefficients with a given quantization index and inverse transform), the reconstructed prediction error signal is added to the corresponding prediction signal, and the result is stored in a buffer for the current image. After all blocks of an image have been reconstructed, one or more loop filters can be applied (e.g., a deblocking filter and a sample-adaptive offset filter). Then the final reconstructed image is stored in the decoded image buffer.

[0021] In the following, a new concept for transform coding of prediction error signals is described. The concept is applicable to blocks coded within and between images. It is also applicable to transform coding of non-rectangular sample regions. In contrast to conventional transform coding, transform coefficients are not independently quantized. Instead, the set of available reconstruction levels for a particular transform coefficient depends on the quantization index selected for the other transform coefficients. Furthermore, the modification of the quantization index for coding entropy increases the coding efficiency when combined with the described independent scalar quantization.

[0022] All major video coding standards, including the latest standard H.265|MPEG-H HEVC mentioned above, utilize the concept of transform coding to code a coding block of prediction error samples. The prediction error samples of a block represent the error between the samples of the original signal and the samples of the prediction signal for the block. The prediction signal is obtained either by intra-picture prediction (in which case the samples of the prediction signal for the current block are extracted based on already reconstructed samples of neighboring blocks in the same picture) or by inter-picture prediction (in which case the samples of the prediction signal for the current block are extracted based on already reconstructed samples). The samples of the original prediction error signal are obtained by subtracting the values ​​of the samples of the prediction signal from the values ​​of the samples of the original signal for the current block.

[0023] The transform coding of a block of samples may consist of a linear transformation of the quantization indexes, a scalar quantization, and an entropy coding. At the encoder side (see FIG. 2a), an N×M block of original samples undergoes a linear analytical transform

number

[0024] The result is an N × M block of transform coefficients. k represents the original prediction error samples in a different signal space (or a different coordinate system). The N × M transform coefficients are quantized using N × M independent scalar quantizers. Each transform coefficient t k is the quantization index q, also called the transform coefficient level k The resulting quantization index q k is the entropy that is coded and written to the bitstream.

[0025] At the decoder side (see Figure 2b), the transform coefficient level q k is decoded from the received bitstream. For each transform coefficient level qk is the reconstructed transform coefficient t ‘ k The reconstructed N × M blocks of samples are then mapped to the linear synthesis transform

number

[0026] Even if a video coding standard only specifies a composite transform B, the inverse of composite transform B may be implemented by the encoder, i.e.

number

number

[0027] For a typical prediction error signal, the transform has the effect of concentrating the signal energy in very few transform coefficients, reducing the statistical dependence between the resulting transform coefficients compared to the original prediction error samples.

[0028] In most modern video coding standards, the separable discrete cosine transform (Type II) or an integer approximation thereof is used. The transform can however be easily replaced without modifying other aspects of the transform coding system. Examples for proposed improvements included in the literature or standardization documents: Use of Discrete Sine Transform (DST) for image predicted blocks within a picture (possibly dependent on intra prediction mode and block size). H.265|MPEG-H HEVC already includes DST for predicted 4x4 transform blocks within a picture. Switched transforms: The encoder selects between a set of predefined transforms which one will actually be used. The set of available transforms is known to both the encoder and the decoder, so that it can be efficiently represented by an index into the list of available transforms. The set of available transforms and their order in the list can depend on other coding parameters for the block, such as the selected intra-prediction mode. In special cases, the transforms used are determined entirely by coding parameters, such as the intra-prediction mode and / or the shape of the block, so that no syntax elements need to be transmitted to specify the transforms. Non-separable transform: The transform used in the encoder and decoder refers to a non-separable transform. Note that the concept of switched transform may include one or more non-separable transforms. For complex reasons, the use of non-separable transforms may be limited to certain block sizes. · Multi-level transform: A real transform consists of two or more transform stages. The first transform stage can consist of a separable transform with low computational complexity, and in the second stage a subset of the resulting transform coefficients is further transformed using a non-separable transform. Comparing a non-separable transform for the entire transform block, the two-stage approach has the advantage that a more complex non-separable transform is applied to a smaller number of samples. The concept of multi-level transform can be efficiently combined with the concept of switched transform.

[0029] The transform coefficients are quantized using a scalar quantizer. As a result of quantization, the set of permissible values ​​for the transform coefficients is reduced; that is, the transform coefficients are mapped to a countable set (in practice, a finite set) of so-called reconstruction levels. The set of reconstruction levels represents a proper subset of the set of possible transform coefficient values. To simplify the entropy coding below, the permissible reconstruction levels are represented by quantization indices (also called transform coefficient levels), which are transmitted as part of the bitstream. At the decoder side, the quantization indexes (transform coefficient levels) are mapped to the reconstructed transform coefficients. The possible values ​​for the reconstructed transform coefficients correspond to a set of reconstruction levels. At the encoder side, the result of the scalar quantization is a block of transform coefficient levels (quantization indexes).

[0030] In state-of-the-art video coding standards, homomorphic reconstruction quantizers (URQs) are used. Their basic design is illustrated in Fig. 3. URQs have the property that the reconstruction levels are equally spaced. The distance Δ between two neighboring reconstruction levels is called the quantization step size. One of the reconstruction levels is equal to 0. Hence, the complete set of available reconstruction levels is individually specified by the quantization step size Δ. The decoder mapping of the quantization index q of the reconstructed transform coefficients t' is in principle given by a simple formula:

number

[0031] Video decoders typically use integer arithmetic with standard precision (e.g., 32 bits), so the actual method used in the standard may differ slightly from simple multiplication. When ignoring clipping to the supported dynamic range for the transform coefficients, the reconstructed transform coefficients in H.265|MPEG-H HEVC are

number

number

[0032] Older video standards, such as H.262|MPEG-2 video, also use a U modulated quantization step size that is increased compared to the normal quantization step size (e.g., 2 / 3 of the normal quantization step size) for the distance between reconstruction level zero and the first non-zero reconstruction level. Identify the RQs.

[0033] The quantization step size (or scaling and shift parameters) for the transform coefficients is determined by two factors: Quantization parameter QP: The quantization step size can generally be changed on a block-by-block basis. To that end, video coding standards provide a predefined set of quantization step sizes. The quantization step size used (or, equivalently, the parameters "scale" and "shift" mentioned above) is indicated by an index into a predefined list of quantization step sizes. The index is called the quantization parameter (QP). In H.265|MPEG-H HEVC, the relationship between QP and quantization step size is:

number

number

number

number

number

number

number

number

number

[0034] The main purpose of a quantization weight matrix is ​​to provide the possibility to introduce quantization noise in perceptually meaningful directions. With an appropriate weight matrix, the spatial contrast sensitivity of human vision can be exploited to achieve a better compromise between bit rate and subjective reconstruction quality. Nevertheless, many encoders use so-called flat quantization matrices, which can be efficiently transmitted using high-level syntax elements. In this case, the same quantization step size Δ is used for all transform coefficients in a block. The quantization step size is then fully specified by the quantization parameter QP.

[0035] A block of transform coefficient levels (quantization indices for the transform coefficients) is entropy coded (i.e., it is transmitted in a lossless manner as part of the bitstream). Since a linear transform can only reduce linear dependencies, the entropy coding for the transform coefficient levels is typically designed in such a way that the remaining nonlinear dependencies between the transform coefficient levels in the block can be exploited for efficient coding. Well-known examples are motion level coding in MPEG-2 Video, motion level final coding in H.263 and MPEG-4 Visual, environment adaptive variable length coding (CAVLC) in H.264|MPEG-4 AVC, and environment-based adaptive binary arithmetic coding (CABAC) in H.264|MPEG-4 AVC and H.265|MPEG-HHEVC.

[0036] CABAC, specified in the state-of-the-art video coding standards H.265|MPEG-H HEVC, follows a general concept that can be applied to a wide variety of transform block sizes. A transform block larger than 4x4 samples, such as 10 in Fig. 4a, is divided into 4x4 sub-blocks 12. The division is illustrated in Fig. 4a for the example of a 16x16 transform block 10. The coding order of the 4x4 sub-blocks as well as the coding order of the transform coefficient levels inside the sub-blocks is generally specified by a reverse diagonal scan 14 shown in Fig. 4. Within a particular image predicted blocks, a horizontal or vertical scan pattern was used (depending on the actual intra prediction mode). The coding order always starts from the high frequency region.

[0037] In H.265|MPEG-H HEVC, transform coefficient levels are transmitted based on 4x4 sub-blocks. Lossless coding of transform coefficient levels includes the following steps: 1. The syntax element coded_block_flag is transmitted and indicates whether there are any non-zero transform coefficient levels in the transform block. If coded_block_flag is equal to 0, no further data is coded for the transform block. 2. The x and y coordinates of the first non-zero transform coefficient level in the coding order (e.g., the block-wise reverse diagonal scan order illustrated in FIG. 4) are transmitted. The transmission of the coordinates is split into a prefix part and a suffix part. The standard uses the syntax elements last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix, and last_sig_coeff_x_suffix. 3. Starting with the 4x4 sub-block in the coding order that contains the first non-zero transform coefficient level, the 4x4 sub-blocks are processed in the coding order, where the coding of the sub-blocks includes the following main steps: a. The syntax element coded_sub_block_flag is sent, which indicates whether the sub-block contains non-zero transform coefficient levels. For the first and last 4x4 sub-blocks (i.e., the sub-block containing the first non-zero transform coefficient level or DC level), this flag is not sent and is inferred to be equal to 1. For all transform coefficient levels inside a sub-block with coded_sub_block_flag equal to b.1, the syntax element significant_coeff_flag indicates whether the corresponding transform coefficient level is not equal to zero. The syntax element significant_coeff_flag indicates whether the corresponding transform coefficient level is not equal to zero. This flag is only transmitted if its value cannot be inferred based on already transmitted data. In particular, if the flag is not transmitted for the first significant scan position (identified by the transmitted x and y coordinates) and the DC coefficient is located in a different sub-block than the first non-zero coefficient (in the coding order), and all other significant_coeff_flags for the last sub-block are equal to zero, then it is not transmitted for the DC coefficient. The flag coeff_abs_level_greater1_flag is sent if the first 8 transform coefficient levels according to c.significant_coeff_flag (if any) are equal to 1. It indicates whether the absolute value of the transform coefficient block is greater than or equal to 1. d. If the first transform coefficient level according to coeff_abs_level_greater1_flag is equal to 1 (if any), then the flag coeff_abs_level_greater2_flag is sent, which indicates whether the absolute value of the transform coefficient level is greater than or equal to 2. For all levels with significant_coeff_flag equal to e.1 (exceptions are described below), the syntax element coeff_sign_flag is sent, which specifies the sign of the transform coefficient level. f. For all transform coefficient levels whose absolute value is not already fully specified by the values ​​of significant_coeff_flag, coeff_abs_level_greater1_flag, and coeff_abs_level_greater2_flag (the absolute value is fully specified if any of the flags sent are equal to zero), the remainder of the absolute value is transmitted using the multi-level syntax element coeff_abs_level_remaining.

[0038] In H.265|MPEG-H HEVC, all syntax elements are coded using a context based on adaptive binary arithmetic coding (CABAC). All non-binary syntax elements are first mapped to consecutive binary decisions, called binaries. The resulting sequence of bins is coded using binary arithmetic coding. For that purpose, each binary value is associated with a probability model (probability mass function of the binary value), also called context. For most binaries, context means an adaptive probability model, which means that the probability mass function of the binary value is updated based on the value of the binary value actually coded. Conditional probabilities can be exploited by changing the context for a particular binary value based on already transmitted data. CABAC also includes a so-called bypass mode, in which a constant probability mass function (0.5, 0.5) is used.

[0039] The context selected for encoding coded_sub_block_flag depends on the value of coded_sub_block_flag for neighboring sub-blocks that have already been encoded. The context for significant_coeff_flag is selected based on the scan position (x and y coordinates) within the sub-block, the dimensions of the transform block, and the value of coded_sub_block_flag of the neighboring sub-blocks.

[0040] For the flags coeff_abs_level_greater1_flag and coeff_abs_level_greater2_flagn, the context selection depends on whether the current sub-block contains a DC coefficient and whether a coeff_abs_level_greater1_flag equal to 1 has been sent for the neighboring sub-block. For coeff_abs_level_greater1_flag, it depends on the number and value of already coded coeff_abs_level_greater1_flag for the sub-block.

[0041] The sign coeff_sign_flag and the remaining absolute value coeff_abs_level_remaining are coded in the bypass mode of the binary arithmetic coder. An adaptive binarization scheme is used to map coeff_abs_level_remaining to a sequence of binary values ​​(binary decisions). The binarization is controlled by a single parameter (called the Rice parameter), which is applied based on the values ​​already coded for the subblock.

[0042] H.265|MPEG-H HEVC also includes so-called code data, hiding modes, in which (under certain circumstances) the transmission of the code for the last non-zero level inside a subblock is omitted. Instead, the code for this level is incorporated into the parity of the sum of absolute values ​​for the level of the corresponding subblock. It should be noted that the encoder must take this aspect into account when determining the appropriate transform coefficient level.

[0043] Video coding standards only specify the bitstream syntax and the reconstruction process. If we consider transform coding for the original prediction error samples and a given quantization step size, the coder has many degrees of freedom: a given quantization index for the transform block

number

number

number

number

number

[0044] The simplest method of quantization is to quantize the original transform coefficients

number

number

number

number

number

number

number

[0045] The quantization process is the Lagrangian function

number

number

[0046] Relationship between QP and quantization step size (H.264|MPEG-4 AVC or H.265|MPEG-H HEVC)

number

number

number

number

number

number

[0047] The transform coefficient index k then specifies the coding order (or scanning order) of the transform coefficient levels.

number

number

number

number

number

number

[0048] The exact calculation of rate terms for H.265|MPEG-H HEVC transform coefficient coding is very complex since most binary decisions are coded using adaptive probability models. However, if we downplay some aspects of probability model selection and ignore that probability models are applied inside transform blocks, we can design an RDOQ algorithm with reasonable complexity.

[0049] The RDOQ algorithm implemented in the reference software for H.265|MPEG-H HEVC consists of the following basic steps: 1. For each scanning position k, the conversion factor level

number

number

number

number

number

number

[0050] The following describes a modified concept for transform coding. In conventional transform coding related modulation, transform coefficients are not independently quantized and reconstructed. Instead, the allowed reconstruction level for a transform coefficient depends on the quantization index chosen for the previous transform coefficient in the reconstruction order. The concept of dependent scalar quantization is combined with modified entropy coding, where the probability model selection (or, alternatively, the coding name table selection) for a transform coefficient depends on the set of allowed reconstruction levels.

[0051] The advantage of dependent quantization of transform coefficients is that the allowable reconstruction vectors are packed into an N-dimensional signal space (where N means the number of samples or transform coefficients in the transform block) making it denser. The reconstruction vectors for a transform block refer to the ordered reconstructed transform coefficients (or alternatively the ordered reconstructed samples) of the transform block. The effect of dependent scalar quantization is illustrated in FIG. 5 for the simplest case of two transform coefficients. FIG. 5 shows the allowable reconstruction vectors (here representing points in the 2d plane) for independent scalar quantization. Thus, the second transform coefficient

number

number

number

number

number

number

number

number

number

[0052] The dependent scalar quantization of transform coefficients has the effect that the expected value of the distance between a given input vector of transform coefficients and the closest available reconstruction vector for a given average number of reconstruction vectors per N-dimensional unit capacity 20 is reduced. As a result, the average distortion between the input vector of transform coefficients and the reconstructed transform coefficients of the vector can be reduced for a given average number of bits. In vector quantization, this effect is called space-filling gain. Using dependent scalar quantization for transform blocks, most of the potential space-filling gain for high-dimensional vector quantization can be utilized. And, in contrast to vector quantization, the implementation complexity of the reconstruction process (or decoding process) is similar to that of conventional transform coding with an independent scalar quantizer. A block diagram of a transform decoder 30 with dependent scalar quantization is illustrated in FIG. 6a and comprises an entropy decoder 32, a quantization stage 34 for dependent scalar inverse quantization, and a synthesis transformer 36. The main change (highlighted in red) is the dependent quantization. The reconstruction order index, as indicated by the vertical arrow

number

number

number

number

number

[0053] A transform coder 40 suitable for the decoder of FIG. 6a is shown in FIG. 6b and implements an analysis transform 4 6, a quantization module 44, and an entropy coder 42. An inverse analytical transform 46 of the analytical transform (or an approximation of its inverse) 36 is used, and the entropy coding 42 is usually assigned individually to the given entropy decoding process 32. However, similar to conventional transform coding, there is a lot of freedom to choose the transform indices given the original transform coefficients.

[0054] The embodiments of the present invention are not limited to block-based transform coding. They are also applicable to transform coding of some finite collection of samples. Any kind of transform that maps a set of samples onto a set of transform coefficients can be used. This includes linear and non-linear transforms. The used transform may represent a fully perfect (the number of transform coefficients is greater than the number of samples) or a nearly perfect (the number of transform coefficients is less than the number of samples) transform. In an embodiment, the dependent quantization is combined with a linear transformation of an orthogonal set of basis functions. For integer implementations, the transform may deviate from a linear transformation (due to rounding of the transform steps). Furthermore, the transform can refer to an integer approximation using orthogonal basis functions (only if the basis functions are nearly orthogonal). In a special case, the transform can refer to an identity transform, in which case the samples or the remaining samples are directly quantized.

[0055] In an embodiment, the concept of dependent quantization discussed below is used for transform coding of sample blocks (e.g., blocks of original samples or blocks of prediction error samples). In this context, transform can mean a separable transform, a non-separable transform, and a combination of a separable first transform and a non-separable second transform (where the second transform can be applied either to all transforms or to a subset of coefficients obtained after the first transform). If a non-separable second transform is applied to a subset, the subset can consist of a sub-block of the obtained matrix of transform coefficients, or it can represent any other sub-block of transform coefficients obtained after the first transform (e.g., an arbitrarily shaped region inside a block of transform coefficients). Transform may also mean a multi-level transform having two or more transform levels.

[0056] Details and embodiments regarding dependent quantization of transform coefficients are described below. Furthermore, various methods for entropy coding of quantization indexes that identify reconstructed transform coefficients for dependent scalar quantization are described. Furthermore, optional methods for block-adaptive selection between dependent and independent scalar quantization, as well as methods for adapting the quantization step size, are presented. Finally, approaches for determining quantization indexes for dependent quantization at the encoder are discussed.

[0057] Dependent quantization of a transform coefficient, which refers to the concept of setting the available reconstruction levels for a transform coefficient, depends on the quantization index chosen for the previous transform coefficient in the reconstruction order (generally limited to quantization indexes within the same transform block).

[0058] In an embodiment, a plurality of sets of reconstruction levels are predefined and based on a quantization index for a previous transform coefficient in the coding order, and one of the predefined set is selected to reconstruct a current transform coefficient. Some embodiments for defining the set of reconstruction levels are described first. Identification and signaling of the selected reconstruction level are described below. Yet further embodiments for selecting one of the predefined set of reconstruction levels for a current transform coefficient (based on a selected quantization index for a previous transform coefficient in the reconstruction order) are described.

[0059] In an embodiment, and as shown in Figs. 7a and 7b, a set 48 of permissible reconstruction levels for a current transform coefficient 13' is selected 54 among a collection 50 (of two or more sets) of predefined sets 52 of reconstruction levels (based on a set 58 of quantization indices 56 for previous transform coefficients in the coding order 14). Thus, the collection 50 may be used for all coefficients 13, but reference is made following a description of possible parameterizable properties of the set 52. In a particular embodiment, and as shown in the following examples, the values ​​of the reconstruction levels of the set of reconstruction levels are parameterized 60 by a block-based quantization parameter. That is, the video codec supports modulation of the quantization parameter (QP) based on a block (which can correspond to a single transform block 10 or to multiple transform blocks), and the value of the reconstruction level in the used set of reconstruction levels is determined by the selected quantization parameter. For example, if the quantization parameter is increased, the distance between neighboring reconstruction levels is also increased, and if the quantization parameter is decreased, the distance between neighboring reconstruction levels is also decreased (or vice versa).

[0060] In a typical version, a block-based quantization parameter (QP) determines the quantization step size Δ (or corresponding magnitude and shift parameters as mentioned above), and all reconstruction levels (all sets of reconstruction levels) represent integer multiples of the quantization step size Δ. However, it should be noted that each set of reconstruction levels includes only a subset of integer multiples of the quantization step size Δ. In such a configuration for dependent quantization, all possible reconstruction levels for all sets of reconstruction levels that represent integer multiples of the quantization step size can be considered as an extension of uniform reconstruction quantizers (URQs). Its basic advantage is that the reconstructed transform coefficients can be calculated by an algorithm with very low computational complexity (described in more detail later).

[0061] The sets 52 of reconstruction levels may be completely disjoint; however, one or more reconstruction levels may be included in multiple sets (while the sets may still differ at other reconstruction levels).

number

number

number

number

number

number

number

number

number

number

[0062] The actual calculation, i.e. the reconstructed transform coefficients

number

number

number

number

number

number

number

[0063] Due to limitations to integer implementations, the reconstructed transform coefficients

number

number

[0064] In an embodiment, the dependent scalar quantization for the transform coefficients uses two distinct sets of reconstruction levels 52.

number

number

number

number

number

[0065] Three configurations for the two sets of reconstruction levels are illustrated in Fig. 8. Note that all reconstruction levels are on a grid given by integer multiples of the quantization step size Δ. Note further that a particular reconstruction level can be included in both sets.

[0066] The two sets represented in FIG. 8a are mutually prime. Each integer multiple of the quantization step size Δ is only included in one of the sets. The first set (set 0) includes all even integer multiples of the quantization step size, while the second set (set 1) includes all odd integer multiples of the quantization step size, so that in both sets, any distance between two neighboring reconstruction levels is twice the quantization step size. These two sets are always suitable for high-rate quantization, i.e., the standard deviation of the transform coefficients is much larger than the quantization step size. However, quantizers in video coding generally operate in the low-rate range. In general, the absolute values ​​of many original transform coefficients are closer to zero than any non-zero multiple of the quantization step size. In that case, it is generally preferable if zero is included in both quantization sets (sets of reconstruction levels).

[0067] The two quantization sets illustrated in FIG. 8b both contain zero. In set 0, the distance between the reconstruction level equal to zero and the first reconstruction level greater than zero is equal to the quantization step size, and between all other distances between two neighboring reconstruction levels is equal to twice the quantization step size. Similarly, in set 1, the distance between the reconstruction level equal to zero and the first reconstruction level greater than zero is equal to the quantization step size, and between all other distances between two neighboring reconstruction levels is equal to twice the quantization step size. It should be noted that both reconstruction sets are asymmetric around zero. This may be inefficient, as it makes it difficult to accurately estimate the code probability.

[0068] Another configuration for the two sets of reconstruction levels is shown in Fig. 8c. The reconstruction levels included in the first quantization set (designated as set of numbers 0) represent even integer multiples of the quantization step size (it should be noted that this set is in fact the same as set 0 in Fig. 8a). The second quantization set (designated as set of numbers 1) includes all odd integer multiples of the quantization step size and, furthermore, the reconstruction levels are equal to zero. It should be noted that both reconstruction sets are symmetric about zero. The reconstruction levels equal to zero are included in both reconstruction sets, otherwise the reconstruction sets are mutually prime. The combination of both reconstruction sets includes all integer multiples of the quantization step size.

[0069] 1 is not limited to the configuration shown in FIG. 8. Any other two different sets of reconstruction levels can be used. Multiple reconstruction levels may be included in both sets. Or, the combination of both quantization sets may not include all possible integer multiples of the quantization step size. Furthermore, more than two sets of reconstruction levels can be used for dependent scalar quantization of transform coefficients.

[0070] Regarding the signaling of the chosen reconstruction level, the following should be noted: The encoder's choice in step 64 among the allowable reconstruction levels must be indicated in the bitstream 14. As in conventional independent scalar quantization, this can be achieved using so-called quantization indexes 56, also called transform coefficient levels. A quantization index (or transform coefficient level) is an integer number that individually identifies a reconstruction level available within a quantization set 48 (i.e., within a set of reconstruction levels). The quantization index is sent to the decoder (e.g., using any entropy coding technique) as part of the bitstream 14. At the decoder side, the reconstructed transform coefficients can be individually calculated based on the reconstruction level (which is determined 54 by the previous quantization index 58 in the coding / reconstruction order) and the current set 48 of transmitted quantization indexes 56 for the current transform coefficient.

[0071] In an embodiment, the assignment of quantization indices of reconstruction levels within the set 48 of reconstruction levels (or quantization set) follows the following rules: For illustrative purposes, the reconstruction levels in FIG. 8 are assigned with their associated quantization index (the quantization index is given by a number under the circle indicating the reconstruction level). If the set of reconstruction levels includes a reconstruction level equal to 0, then the quantization index equal to 0 is assigned to the reconstruction level equal to 0. The quantization index equal to 1 is assigned to the smallest reconstruction level equal to or greater than 0, the quantization index equal to 2 is assigned to the next reconstruction level equal to or greater than 0 (i.e., the second smallest reconstruction level equal to or greater than 0), etc. Or, in other words, the reconstruction levels equal to or greater than 0 are assigned integer numbers equal to or greater than 0 (i.e., with 1, 2, 3, etc.) in increasing order of their values. Similarly, the quantization index −1 is assigned to the largest reconstruction level less than 0, the quantization index −2 is assigned to the next (in other words, the second largest) reconstruction level less than 0, etc. Or, in other words, reconstruction levels less than 0 are assigned integer numbers less than 0 (i.e., −1, −2, −3, etc.) in decreasing order of their order. For the example in FIG. 8, the described assignment of quantization indexes is illustrated for all quantization sets, except for set 1 in FIG. 8a (which does not include a reconstruction level equal to 0).

[0072] For quantization sets that do not include a reconstruction level equal to 0, one way of assigning quantization indices to reconstruction levels is as follows: all reconstruction levels equal to or greater than 0 are assigned with quantization indices equal to or greater than 0 (by increasing their value order), and all reconstruction levels less than 0 are assigned with quantization indices less than 0 (by decreasing their value order). Therefore, the assignment of quantization indices basically follows the same concept for quantization sets that include a reconstruction level equal to 0 (see the labels for quantization set 1 in FIG. 8a), with the difference that there are no quantization indices equal to 0. That aspect should be taken into account in the entropy coding of the quantization indexes. For example, a quantization index is often transmitted by coding its absolute value (ranging from 0 to the maximum supported value), and for absolute values ​​different from 0, further coding the sign of the quantization index. If a quantization index equal to 0 is not available, the entropy coding can be changed to a method of transmitting the absolute level minus 1 (the value for the corresponding syntax element from 0 to the maximum supported value), and the sign is always transmitted. Alternatively, the assignment rule for assigning quantization indexes to reconstruction levels could be modified. For example, one of the reconstruction levels close to zero could be assigned with a quantization index equal to 0. The remaining reconstruction levels are then labeled by the following rule: quantization indexes equal to or greater than 0 are assigned to reconstruction levels equal to or greater than the reconstruction level with a quantization index equal to 0 (the quantization index increases with the value of the reconstruction level), and quantization indexes less than 0 are assigned to reconstruction levels less than the reconstruction level with a quantization index equal to 0 (the quantization index decreases with the value of the reconstruction level). One possibility of such an assignment is illustrated in FIG. 8a with the numbers in brackets (if the numbers in brackets are not given, the other numbers apply).

[0073] As mentioned above, in an embodiment, two different sets 52 of reconstruction levels (which we also call quantization sets) are used, and the reconstruction levels within both sets 52 represent integer multiples of the quantization step size Δ, including the case where different quantization step sizes are used for different transform coefficients within a transform block (e.g., by specifying a quantization weight matrix), and the case where the quantization step size is modified on a block basis (e.g., by sending a block quantization parameter within the bitstream).

[0074] The use of reconstruction levels representing integer multiples of the quantization step size allows a computationally less complex algorithm for the reconstruction of the transform coefficients at the decoder side. This is illustrated below on the basis of the example of FIG. 8c (similar simple algorithms exist for the other configurations, in particular the sets shown in FIG. 8a and FIG. 8b). In the configuration shown in FIG. 8, a first quantization set, set 0, includes all even integer multiples of the quantization step size, and a second quantization set, set 1, includes all odd integer multiples of the quantization step size plus a reconstruction level equal to 0 (and which is included in both quantization sets). The reconstruction process 62 for the transform coefficients 13' could be implemented similarly to the algorithm specified in the pseudocode of FIG. 9.

[0075] In the pseudocode of Fig. 9a, level[k] denotes the quantization index 56 sent in the data stream 14 for the transform coefficients 13', and setId[k] (equal to 0 or 1) specifies the identifier of the current set 48 of reconstruction levels (which is determined 54 based on the previous quantization index 58 in the reconstruction order 14, described in more detail below). The variable n represents that an integer multiple of the quantization step size is given by the quantization index level[k] and the set identifier setId[k]. If the transform coefficients 13' are coded using the first set of reconstruction levels (setId[k] == 0) that includes an even integer multiple of the quantization step size, then the variable n is twice the transmitted quantization index. If the transform coefficients 13′ are coded using a second set of reconstruction levels (setId[k]==1), then we have three cases: (a) if level[k] is equal to 0, then n is also equal to 0; (b) if level[k] is greater than 0, then n is equal to 2 times the quantization index level[k] minus 1; (c) if level[k] is less than 0, then n is equal to 2 times the quantization index level[k] plus 1. This can be specified using the sign function,

number

[0076] Then, if the second quantization set is used, then the variable n is equal to twice the quantization index level[k] minus the sign function sign(level[k]).

[0077] Once the variable n (which specifies the integer element of the quantization step size) is determined, the reconstructed transform coefficients

number

number

[0078] As mentioned above, the quantization step size

number

number

number

number

number

[0079] Another modulation in Figure 9b related to Figure 9a is that the switching between the two sets of reconstruction levels is implemented using a ternary if-then-else operator (a?b:c) known from programming languages ​​such as C, and the modulation could be reversed but also applied to Figure 9a.

[0080] Besides the selection of the set of reconstruction levels 52 mentioned above, another important design aspect of the dependent scalar quantization is the algorithm 54 used to switch between the defined quantization sets (sets of reconstruction levels). The algorithm 54 used determines the “packing density” that can be achieved in the N-dimensional space 20 of transform coefficients (and thus also in the n-dimensional space 20 of reconstructed samples). Ultimately, higher packing density results in increased coding efficiency. The selection process 54 may use a fixed selection rule for each transform coefficient, where the chosen set of reconstruction levels depends on the specific number of the immediately preceding reconstruction level in the coding order (this number is typically 2), as described below. This rule may be implemented using a state transition table or a lattice structure, as further outlined below.

[0081] A particularly exemplary method of determining 54 the set of reconstructions 48 for the next transform coefficients is based on splitting the quantizer sets 52, as illustrated in FIG. 10a for a particular example. It should be noted that the quantizer sets shown in FIG. 10a are the same quantizer sets as in FIG. 8c. Each of the two (or more) quantizer sets 52 is split into two subsets. For the example in FIG. 10a, the first quantizer set (denoted as set 0) is split into two subsets (denoted as A and B), and the second quantizer set (denoted as set 1) is also split into two subsets (denoted as C and D). Although it is not the only possibility (alternatives are discussed below), the division for each quantization set is typically done by associating immediately neighboring reconstruction levels (and thus neighboring quantization indexes) with different subsets. In an embodiment, each quantization set is divided into two subsets. In Figures 8 and 10a, the division of the quantization set into subsets is indicated by open and filled circles.

[0082] For the embodiment illustrated in Figures 10a and 8c, the following splitting rules apply: Subset A consists of all even quantization indices of quantization set 0; Subset B consists of all odd quantization indices of quantization set 0; · Subset C consists of all even quantization indices of quantization set 1; Subset D consists of all odd quantization indices of quantization set 1. It should be noted that the used subset is typically not specified inside the bitstream. Instead, it can be extracted based on the quantization set used (e.g., set 0 or set 1) and the quantization indexes actually transmitted. For the division shown in Fig. 10a, the subsets can be extracted by a bitwise "and" transform index level operation, and1. Subset A consists of all quantization indexes of set 0 for (level & 1) equal to 0, subset B consists of all quantization indexes of set 0 for (level & 1) equal to 1, subset C consists of all quantization indexes of set 1 for (level & 1) equal to 0, and subset D consists of all quantization indexes of set 1 for (level & 1) equal to 1.

[0083] In an embodiment, the quantization set (set of permissible reconstruction levels) used to reconstruct the current transform coefficient is determined based on the subset associated with the last two or more quantization indexes. As an example, the two last subsets used (which are given by the last two quantization indexes) are shown in the table of FIG. 10b. The table should be read as follows: the first subset given in the first table column represents the subset for the immediately preceding coefficient, and the second subset given in the first table column represents the subset for the coefficient preceding the immediately preceding coefficient. The determination 54 of the quantization set 48 specified in this table refers to a particular embodiment. In other embodiments, the quantization set 48 for the current transform coefficient 13' is determined in the subset with the last three or more quantization indexes 58. For the first transform coefficient of a transform block, we do not have any data about the subset of the preceding transform coefficients. In an embodiment, predefined values ​​are used in these cases. In a further embodiment, we estimate the subset A for all non-available transform coefficients. That is, if we reconstruct the first transform coefficient, the two previous subsets are estimated as "AA", thus, consistent with the table of FIG. 10b, quantization set 0 is used. For the second transform coefficient, the subset of the immediately previous quantization index is determined by its value (because set 0 is used for the first transform coefficient and the subset is either A or B), however, the last quantization index of the second (which does not exist) is estimated to be equal to A. Of course, any other rule can be used to estimate the default value for the non-existent quantization index. Other syntax elements for extracting the default subset for the non-existent quantization index can also be used. As yet another alternative, the last quantization index of the previous transform block for initialization can also be used.For example, the concept of dependent quantization of transform coefficients may be used by means of applying the dependence across transform block boundaries (but only to boundaries of CTUs or larger blocks such as slices, images, etc.).

[0084] It should be noted that the subset of quantization indexes (A, B, C, or D) is determined by using a quantization set (set 0 or set 1) and a quantization set (e.g., A or B for set 0 and C or D for set 1). The selected subset in the quantization set is also called a path (because it specifies a path if we represent the dependent quantization process as a lattice structure, as described below). In our convention, a path equals 0 or 1. Then, subset A corresponds to path 0 in set 0, subset B corresponds to path 1 in set 0, subset C corresponds to path 0 in set 1, and subset D corresponds to path 1 in set 1. Therefore, the quantization set 48 for the next transform coefficient following coefficient 13' is also determined individually by the quantization set (set 0 or set 1) and pass (pass 0 or pass 1) involving the two (or more) last quantization indices 58 of the current coefficient 13', and the set 48 for coefficient 13' one prior or alternatively is determined by the indices 58 for the two previous coefficients 13'. In the table of FIG. 10b, the associated quantization sets and passes are specified in the second column. For the first column, the first entry represents the set and pass for the immediately previous coefficient, and the second entry represents the set and pass for the coefficient preceding the immediately previous coefficient.

[0085] It should be noted that the path is often determined by simple arithmetic operations. For example, for the configuration shown in FIG. 10a, the path is

number

[0086] A variable pass can be defined as any binary function of the previous quantization index (transform coefficient level) level[k]: path=binFunction(level[k]). For example, as an alternative function, we can define a variable pass as equal to zero if the last transform coefficient level is equal to 0, and a variable pass as equal to 1 if the last transform coefficient level is not equal to 0.

number

[0087] The transformation between the quantization sets (set 0 and set 1) can be fully represented by state functions. An example of such a state variable is shown in the last column of the table of FIG. 10b. In this example, the state variable has four possible values ​​(0, 1, 2, 3). On the one hand, the state variable specifies the quantization set to be used for the current transform coefficient. In the example table of FIG. 10b, quantization set 0 is used only if the state variable is equal to 0 or 1, and quantization set 1 is used only if the state variable is equal to 2 or 3. On the other hand, the state variable also specifies the possible transformation between the quantization sets. By using the state variables, the rules of the table of FIG. 10b can be described by a small state transformation table. As an example, the table of FIG. 10c specifies a state transformation table for the rule given in the table of FIG. 10b. Given the current state, it specifies the quantization set for the current transform coefficient (second column). It further specifies the state transformation based on the path with the chosen quantization index (for a given quantization set, the path specifies the subset A, B, C, D used). Note that by using the concept of state variables, it is not necessary to actually retain the chosen subset. When reconstructing the transform coefficients for a block, it is sufficient to upgrade the state variables and determine the path of the used quantization index.

[0088] In an embodiment, the paths are given by the parity of the quantization indexes. Becomes the current quantization index

number

number

[0089] In an embodiment, a state variable with four possible values ​​is used. In other embodiments, a state variable with a different number of possible values ​​is used. Of particular interest are state variables for which the possible values ​​for the state variables represent integer powers of two, i.e., 4, 8, 16, 32, 64, etc. It should be noted that in a particular configuration (as given in the tables of Figs. 10b and 10c), a state variable with four possible values ​​is equivalent to an approach in which the current quantization set is determined by a subset of the last two quantization indexes. A state variable with eight possible values ​​corresponds to a similar approach in which the current quantization set is determined by a subset of the last three quantization indexes. A state variable with sixteen possible values ​​corresponds to an approach in which the current quantization set is determined by a subset of the last four quantization indexes, etc. Even though it is generally preferred to use state variables with possible values ​​equal to integer powers of two, there is no restriction on this configuration.

[0090] Using the concept of state variables, current state, such a current quantization set 54 is determined by the previous state (in reconstruction order) and the previous quantization index individually. However, for the first transform coefficient of a transform block, there is no previous state and no previous quantization index. It is therefore necessary that the state for the first transform coefficient of the block be defined individually. Different possibilities exist. It should be noted that the state permutation settings are from 0 to 3, where in this example, the two previous coefficients before the first coefficient do not actually exist. Possible choices are: The first state for the transformation block 10 is always set equal to a constant predefined value. In an embodiment, the first state is set equal to 0. The initial state value is explicitly sent as part of the bitstream. This implies an approach where only a subset of the possible state values ​​can be indicated by the corresponding syntax element. The values ​​of the first states are derived based on other syntax elements for the transform block 10, i.e. they are further used to derive the first states for the dependent scalar quantization, even if the corresponding syntax element (or syntax elements) are used to convey other features to the decoder. For example, the following approach can be used: in entropy coding of quantization (cp above), the position of the first non-zero quantization index in the coding order 140 can be transmitted (e.g., using x and y coordinates) before the actual value of the quantization index is transmitted (all quantization indexes preceding this first non-zero quantization index in the coding order 14 are not transmitted and are presumed to be equal to 0). The position of the first non-zero quantization index can also be used to extract initial values ​​of state variables. As a simple example, let M represent the number of quantization indexes that are not specified as equal to 0 by the position of the first non-zero quantization index in the coding order, then the initial state can be set equal to s=M%4, where the operator % means modulo operation. · The concept of state migration can be applied across transformation block boundaries. It means that the first state for a transform block is set equal to the last state of the previous transform block in the coding order (after the final state upgrade). That is, for the first quantization index, the previous state is set equal to the last state of the last transform block, and the previous quantization index is set equal to the last quantization index of the last transform block). In other words, the variable coefficients of the multiple variable blocks (or the subset of the variable coefficients that are not estimated to be equal to 0, depending on the position of the first non-zero quantization index transmitted in the block 10 as the coding order proceeds) are treated as a combination for the dependent scalar quantization. Only if certain conditions are met, multiple transform blocks are not treated as a combination. For example, multiple transform blocks may be considered as a combination only if they represent blocks obtained by the latest block dividing operation (i.e., they represent blocks obtained by the last division level) and / or they represent coded blocks in the image.

[0091] The concept of state transitions for dependent scalar quantization allows a low-complexity implementation for the reconstruction of the transform coefficients at the decoder. An example of the reconstruction process of the transform coefficients of a single transform block is shown in Figure 11 using C-style pseudocode.

[0092] In the pseudocode of FIG. 11, the index k identifies the reconstruction order 14 of the transform coefficients 13. It should be noted that in the example code, the index k decreases in the reconstruction order 14. The last transform coefficient in the reconstruction order has an index equal to k=0. The first index kstart identifies the reconstruction index (or, more precisely, the inverse reconstruction index) of the first reconstructed transform coefficient. The variable kstart may be set equal to the number of transform coefficients in the transform block minus 1, or it may be set equal to the index of the first non-zero quantization index in the coding / reconstruction order (for example, if the position of the first non-zero quantization index is transmitted in the applied entropy coding method). In the latter case, all previous transform coefficients (with index k>kstart) are assumed to be equal to 0. The reconstruction process for each single transform coefficient is the same as in the example of FIG. 9b. For the example in FIG. 9b, the quantization index is represented by level[k] and the associated reconstructed transform coefficient is represented by trec[k].

[0093] The state variable is represented by "state". Note that in the example of Fig. 11, the state is set equal to 0 at the beginning of the transformation block. However, as mentioned above, other initializations (e.g., based on the values ​​of some syntax elements) are possible. The 1d table setId[] specifies the quantization sets with different values ​​of the state variables, and the 2d table state_trans_table[][] specifies the state transitions given by the current state (first independent variable) and (second independent variable). In the example, the paths are given by the parity of the quantization index (bitwise and with the operator &), but as mentioned above, other concepts are possible (in particular other binary functions of level[k]). An example in the C-style syntax for the tables setId[] and state_trans_table[][] is given in Fig. 12 (these tables are identical to the tables of Fig. 10c).

[0094] Instead of using the table state_trans_table[][] to determine the next state, arithmetic operations can be used giving the same result. Similarly, the table setId[] can also be implemented using arithmetic operations (for the given example, the value of the table can be represented by shifting one bit to the right, i.e. "state>>1"). Or, a combination of a 1d table setId[] and a table lookup with a sign function could be implemented using arithmetic operations.

[0095] In another embodiment, all quantization indexes equal to 0 are excluded from state transitions and the dependent reconstruction process. The information whether a quantization index is equal to or not equal to 0 is primarily used to split the transform coefficients into zero and non-zero transform coefficients (possibly in conjunction with the position of the first non-zero quantization index). The reconstruction process for dependent scalar quantization is only applied to the ordered set of non-zero quantization indexes. Transform coefficients with quantization indexes equal to 0 are simply set equal to 0. The corresponding pseudocode is shown in FIG. 13.

[0096] In another embodiment, a block of transform coefficients is decomposed into sub-blocks 12 (see FIG. 4) and the syntax includes a flag indicating whether the sub-block contains any non-zero transform coefficient levels. Then, in one embodiment, quantization coefficients of sub-blocks that only contain quantization indices equal to 0 (as indicated by the corresponding flag) are included in the dependent reconstruction and state transition process. In another embodiment, the quantization indices of these sub-blocks are excluded from the dependent reconstruction / dependent quantization and state transition process of FIGS. 7a and 7b.

[0097] The state transitions of the dependent quantization performed at 54 can also be represented using a lattice structure, as illustrated in FIG. 14. The lattice shown in FIG. 14 corresponds to the state transitions specified in the table of FIG. 10c. For each state, there are two paths connecting the state for the current transform coefficient with the two possible states for the next transform coefficient in the reconstruction order. The paths are labeled with Path 0 and Path 1, and this number corresponds to the path variable introduced above (path variable equal to the parity of the quantization index for the embodiment). It should be noted that each path individually specifies a subset (A, B, C, or D) for the quantization index. In FIG. 14, the subsets are specified in brackets. Given an initial state (e.g., state 0), the paths through the lattice are individually specified by the transmitted quantization index.

[0098] In the example of Figure 14, the states (0, 1, 2 and 3) for scan index k have the following properties (cp. also Figure 15): State 0: The previous quantization index level [k-1] specifies the reconstruction level of set 0, and the current quantization index level [k] specifies the reconstruction level of set 0. State 1: The previous quantization index level [k-1] specifies the reconstruction levels of set 1, and the current quantization index level [k] specifies the reconstruction levels of set 0. State 2: The previous quantization index level [k-1] specifies the reconstruction levels of set 0, and the current quantization index level [k] specifies the reconstruction levels of set 1. · State 3: The previous quantization index level [k-1] specifies the reconstruction level of set 1, and the current quantization index level [k] specifies the reconstruction level of set 1.

[0099] A lattice consists of a concatenation of so-called elementary trellis cells. An example for such an elementary lattice cell is shown in FIG. 15. It should be noted that one is not limited to a lattice with four states. In other embodiments, the lattice can have more states. In particular, a number of states that means an integer power of two is suitable. Even if the lattice has more than two states, each node for a current transform coefficient is generally associated with two states for a previous transform coefficient and two states for a next variable coefficient. However, it is also possible that a node is associated with more than two states for a previous transform coefficient or more than two states for a next transform coefficient. It should be noted that a fully associated lattice (each state is associated with all previous states and all states of a next variable coefficient) is consistent with independent scalar quantization.

[0100] In an embodiment, the initial state cannot be freely chosen (since it would require some side information rate to transmit this information to the decoder). Instead, the initial state is either set to a predefined value or its value is derived based on other syntax elements. In this case, not all paths and states are available for the first transform coefficient (or the first transform coefficient starting with the first non-zero transform coefficient). As an example for a four state trellis, FIG. 16 shows the trellis structure for the case where the initial state is set equal to 0.

[0101] In one embodiment of dependent scalar quantization, there are different sets 52 of permissible reconstruction levels (also called quantization sets) for the transform coefficients 13. The quantization set 48 for the current transform coefficient is determined 54 based on the value 58 of the preceding quantization index. If we consider the example in FIG. 10a and compare the two quantization sets, it is clear that the distance between a reconstruction level equal to zero and a neighboring reconstruction level is greater in set 0 than in set 1. Hence, if set 0 is used, the probability that a quantization index is equal to 0 is greater, and if set 1 is used, it is smaller. In an embodiment, this effect is exploited in the entropy coding of the quantization index 56 inside the bitstream 14 by switching a code table or probability model based on the quantization set (also state) used for the current quantization index. This concept is represented in FIGS. 17a and 17b by typically using binary arithmetic coding.

[0102] According to the code table or probability model, the appropriate switching of all preceding quantization index paths (with a subset of the used quantization set) must be known upon entropy decoding of the current quantization index (or binarization decision corresponding to the current quantization index). Therefore, the transform coefficients 13 need to be coded in a reconstruction order 14. Therefore, in the embodiment, the coding order 14 of the transform coefficients 13 is equal to their reconstruction order 14. In contrast to the embodiment, any coding / reconstruction order of the quantization indexes allows any other individually defined order, such as the zigzag scan order specified in the video coding standards H.262|MPEG-2 Video or H.264|MPEG-4 AVC, the orthogonal scan specified in H.265|MPEG-H HEVC, the horizontal or vertical scan additionally specified in H.265|MPEG-H HEVC.

[0103] In an embodiment, the quantization index 56 is coded using a binary arithmetic coding. For that purpose, the non-binary quantization index 56 is first mapped 80 onto a sequence 82 of binarization decisions 84 (commonly called binary). The quantization index 56 is often transmitted as an absolute value 88 and, for absolute values ​​greater than 0, a code 86. While the code 86 is transmitted as a single binary value, there are many possibilities to map the absolute value 88 onto the sequence 82 of the binarization decisions 84. In the table of FIG. 18, four examples of binarization methods are shown. The first is the so-called unary binarization. Here, a first binary value 84a indicates whether the absolute value is greater than 0. A second binary value 84b (if present) indicates whether the absolute value is greater than or equal to 1, a third binary value 84c (if present) indicates whether the absolute value is greater than or equal to 2, etc. A second example is the exponential-Golomb binarization, which consists of a unary part 90 and a fixed-length part 92. As a third example, a binarization scheme is shown, which consists of two unary coded binary values ​​94 and a suffix part 96, represented using an exponential-Golomb code. Such a binarization scheme is often used in practice. The unary binary values ​​94 are generally coded using an adaptive probability model, while the suffix part is coded using a constant probability model with pmf(0.5, 0.5). The number of unary binary values ​​is not limited to be equal to 2. It can also be more than 2, and it can actually be different for the transform coefficients within the transform block. Instead of the exponential-Golomb code, any other uniquely decodable code can be used to represent the suffix part 96. For example, an adaptive Rice code (or a similar parameterized code) may be used, where the actual binarization depends on the value of the quantization index already coded for the current transform block. The final binarization scheme example in FIG. 18 also begins with a unary portion 98, where a first binary value specifies whether the absolute value is greater than 0, and a second binary value specifies whether the absolute value is greater than or equal to 1.However, the next binary value 100 specifies the parity of the absolute value, and finally, the remainder is represented using an Exponential-Golomb code 102 (note that a separate Exponential-Golomb code is used for each of the two values ​​of the parity binary). As should be noted for the previous binarization scheme, the Exponential-Golomb code 102 can be replaced with any other uniquely decodable code (e.g., a parameterized Rice code, a unary code, or any combination of different codes), and the number of 98 unary encoded binaries can be increased or decreased, or even to accommodate different transform coefficients in the transform block.

[0104] At least the binary part for the absolute value is typically coded using an applied probability model (also called context). In an embodiment, one or more binary probability models are selected 103 based on the quantization set 48 (or, more generally, the corresponding state variable) for the corresponding transform coefficient to which the quantization index 56 belongs. The selected probability model or context may depend on multiple parameters or characteristics of the already transmitted quantization index, but one of the parameters is the quantization set 48 or state to be applied to the coded quantization index.

[0105] In an embodiment, the syntax for transmitting a quantization index of a transform block includes a binary value such as 84a, or a first binary value among 90, 94, 98 that specifies whether the quantization index 56 is equal to zero or whether it is not equal to zero. The probability model used to code this binary value is selected from a set of two or more probability models, or context, or context models. The selection of the probability model used depends on the quantization set 48 (i.e., the set of reconstruction levels) that is applied to the corresponding quantization index. In another embodiment, the probability model depends on the current state variables (state variables that include the quantization index used), or in other words the quantization set 48, or the parity 104 of the two (or more) previous coefficients.

[0106] In a further embodiment, the syntax for transmitting the quantization index includes a binary value specifying whether the absolute value of the quantization index (transform coefficient level) is greater than or equal to 1, such as 84b, or a second binary value 90, 94, and 98. The probability model used to code this binary value is selected 103 between a set of two or more probability models. The selection of the probability model used depends on the quantization set 48 (i.e., the set of reconstruction levels) applied to the corresponding quantization index. In another embodiment, the probability model used depends on the current state variables (state variables include the quantization set used) or, in other words, the quantization set 84, and the parity 104 of the previous coefficient.

[0107] In another embodiment, the syntax for transmitting a quantization index of a transform block includes a binary value specifying whether the quantization index is equal to or not equal to zero, and a binary value specifying whether the absolute value of the quantization index (variable coefficient level) is greater than or equal to 1. The selection of the probability model 103 for both binary values ​​depends on the quantization set or state variables for the current quantization index. Instead, only the selection of the probability model 103 for the first binary value (i.e., the binary value indicating whether the quantization index is equal to or not equal to zero) depends on the quantization set or state variables for the current quantization index.

[0108] The state variables determining the quantization set 48, or 48 and 104, can only be used to select a probability model if (at least) the pass variables (given by the parity) for the preceding quantization index in the coding order are known; this is similar to HEVC, for example, unless the quantization index is coded based on a 4x4 subblock for each subblock, in which case transmitting the quantization index with corresponding multiple passes on a 4x4 arrangement of transform coefficients is similar. In HEVC, in the first pass on the 4x4 subblock, a flag sig_coeff_flag is transmitted, which indicates whether the corresponding quantization index is different from zero. In the second pass, for coefficients with sig_coeff_flag equal to 1, a flag coeff_abs_level_greater1_flag is transmitted, which indicates whether the absolute value of the corresponding quantization index is greater than or equal to 1. At most eight of these flags are transmitted for a subblock. Next, the flag coeff_abs_level_greater2_flag is transmitted for the first quantization index (if any) with coeff_abs_level_greater1_flag equal to 1. Then, a sign flag is transmitted for the entire subblock. And finally, the non-binary syntax element coeff_abs_level_remaining is transmitted to specify the residual for the absolute value of the quantization index (variable coefficient level). An adaptive Rice code may be used to transmit the non-binary syntax element coeff_abs_level_remaining. In this case, there is not enough information to determine 48 and 104 in the first pass.

[0109] The binary coding order must be changed in order to use a selection of probability models that depends on the current set of reconstruction levels (or state variables).

[0110] It has two basic properties: In an embodiment, all binary values ​​82 specifying the absolute value 88 of a quantization index are coded consecutively, that is, the binary values ​​82 (relative to the absolute value 88) of all preceding quantization indexes 56 in the coding / reconstruction order 14 are coded before the first binary value of the current quantization index is coded. The sign binary value 86 may or may not be coded (indeed, may be determined using the quantization set) in a second pass over the transform coefficients 13 along the pass 14. The sign binary value for a subblock may be coded after the binary value for the absolute value of the subblock, but before any binary value for the next subblock. In this case, the least significant bit part of the binary representation of the previous absolute quantization index, such as the LSB, may be used to control the selection 54. In another embodiment, only a subset of the binary values ​​that specify the absolute values ​​of the quantization indexes is coded consecutively in a first pass on the transform coefficients. However, these binary values ​​individually specify the quantization sets (or state variables). The remaining binary values ​​are coded in one or more further passes on the transform coefficients. Such an approach is possible based on a binarization scheme, for example similar to the one shown in the right column of the table of FIG. 18. This includes in particular an approach in which the binarization includes an explicit parity flag (as one example illustrated in the right column of FIG. 18). If we assume that the pass is specified by the parity of the quantization indexes, it is sufficient to send the unary part 98, the parity binary value 100, in the first pass on the transform coefficients. However, it is possible that the first pass includes one or more further binary values. The remaining binary values ​​included in 102 can be transmitted in one or more further passes. In other embodiments, a similar concept is used. For example, the unary binary number can be modified or even constructed based on already transmitted symbols, i.e., along pass 14, and a different adaptive or non-adaptive code (e.g., adaptive Rice code as in H.265|MPEG-H HEVC) can be used instead of the Exponential-Golomb code. Different passes can be used based on the sub-block, where the binary values ​​for a sub-block are coded in multiple passes, but all binary values ​​of a sub-block are transmitted before any binary values ​​of the next sub-block are transmitted.

[0111] Figure 17b shows a method of the decoding process of the quantization indexes 56, thus showing the inverse of Figure 17a. The entropy decoding 85' of the binary values ​​82 and the mapping 80 of the binary values ​​82 to the levels 56 (the inverse of the binarization) perform the inverse, and the context extraction 103 in the same way.

[0112] One aspect to note is that the dependent quantization of transform coefficients may be advantageously combined with entropy coding when the selection of the probability model for one or more binary values ​​of the binary representation of the quantization index (also called quantization level) depends on the quantizer set 48, i.e., along path 14 (the set of applicable reconstruction levels) or on the corresponding state variables for the current quantization index, i.e., 48 and 104. The quantizer set 48 (or state variables) is given by the quantization index (or a subset of binary values ​​representing the quantization index) for the previous transform coefficient in the coding and reconstruction order.

[0113] According to some embodiments, the described selection of a probability model is combined with one or more of the following entropy coding embodiments: · The sending of a flag for a transform block specifies whether any quantization index for a variable block is not equal to zero or whether all quantization indexes for a variable block are equal to zero. Dividing the coefficients of the transform block in multiple sub-blocks (at least for transform blocks 10 that exceed a certain defined size given by the size of the block or the number of included samples). If the transform block is divided into multiple sub-blocks, then for one or more of the sub-blocks 12, a flag is transmitted (unless it is inferred based on already transmitted syntax elements) specifying whether the sub-block contains a non-zero quantization index. The sub-blocks may also be used to specify the binary coding order. For example, the binary coding may be divided into sub-blocks 12 so that all binary values ​​of a sub-block are coded before any binary values ​​of the next sub-block are transmitted. However, the binary values ​​for a particular sub-block may be coded in multiple passes on the transform coefficients within this sub-block. For example, all binary values ​​specifying the absolute value of the quantization index for the sub-block may be coded before any sign binary value is coded. As mentioned above, the binary values ​​for the absolute value may be divided into multiple passes. ·Transmission of the position of the first non-zero quantization index in the coding order. The position can be transmitted as x and y coordinates specifying the position in the 2d array of transform coefficients 13, it can be transmitted as an index in the scan order, or it can be transmitted by any other means. As illustrated in Fig. 19a, the transmitted position of the first non-zero quantization index 120 (or transform coefficient 120) in the coding order 14 is presumed to be equal to zero, which identifies all variable coefficients preceding the identified coefficient 120 in the coding order 14 (not hatched in Fig. 19). Further data 15 is only transmitted for the coefficient at the identified location 120 and the coefficients following this coefficient 120 in the coding order 14 (marked hatched in Fig. 19). The example in Fig. 19a shows a 16x16 variable block 10 with 4x4 sub-blocks 12; the coding order 14 used is the sub-block-wise orthogonal scan specified in H.265 | MPEG-H HEVC. It should be noted that the coding for the quantization index 56 at the specified location (the first non-zero coefficient in the coding order 120) may be special. For example, if the binarization for the absolute value of the quantization index comprises a binary value specifying whether the quantization index is not equal to 0, this binary value is not transmitted for the quantization index at the specified location (the coefficient is already known not to be equal to 0), instead the binary value is presumed to be equal to 1. · The absolute value of the quantization index is transmitted using a binarization scheme consisting of several binaries coded with an adaptive probability model, and if the adaptively coded binaries do not already fully specify the absolute value, then suffixes like 92, 96 and 102 are coded in bypass mode of the arithmetic coding engine (non-adaptive probability model with pmf(0.5, 0.5) for all binaries). The binarization used for the suffixes may further depend on the values ​​of the quantization indexes already transmitted. · The binarization for the absolute value of the quantization index includes an adaptively coded binary value specifying whether the quantization index is not equal to 0, such as 84a or the first one among 90, 94 and 98. The probability model (also called context) used to code this binary value is selected from a set of candidate probability (context) models. The selected candidate probability model is not only determined by the quantization set 48 (set of applicable reconstruction levels) or state variables (48 and 104) for the current quantization index, but also by the quantization index (or a binary value specifying a part of the quantization index, as mentioned above) already transmitted for the transform block 10 or index 56 (or part thereof) of the coefficient 13 preceding the current quantization index in the coding order 16. In an embodiment, the quantization set 48 (or state variables) determines a subset (also called context set) of the available probability models, and the already coded binary value for the quantization index determines the probability model used within this subset (context set). In a first embodiment, the internal probability model of a context set is determined by the value of coded_subblock_flag (which specifies whether a subblock contains a non-zero quantization index) of neighboring subblocks (similar to H.265|MPEG-H HEVC). In another embodiment, the used probability model in the context set is determined based on the values ​​of already coded quantization indexes (or already coded binary values ​​for quantization indexes) in a neighbouring region 122 of the current variable coefficient. An example for such a neighbouring region, which may be called table 122, is shown in Fig. 19b. In the figure, the current transform coefficient 13' is marked in black and the neighbouring region 122 is shown hatched. Below, listed are some corresponding examples that can be extracted based on the values ​​of quantization indexes (or partially reconstructed quantization indexes given by binary values ​​transmitted before the current binary value) in the neighbouring region and then used to select a probability model of a predetermined context set: The number of quantization indices is not equal to 0 within the neighborhood region 122. This number can possibly be clamped to a maximum value; and / or the sum of the absolute values ​​of the quantization indexes of the neighboring regions 122. This number can be clamped to a maximum value; and / or The difference between the sum of the absolute values ​​of the quantization indexes in the neighboring region and the number of quantization indexes inside the neighboring region that are not equal to 0. This number can be clamped to a maximum value. For a binary coding order for the absolute values ​​of the quantization indexes transmitted in multiple passes (as described above), the above mentioned measurements are calculated using the transmitted binary values. This means that instead of the complete absolute values ​​(which are not known), the partially reconstructed absolute values ​​are used. In this context, integer factors of the quantization step size can be used instead of the quantization index (the integer number transmitted inside the bitstream). These factors are the variables n in the pseudocode examples in Figures 9a, 9b, 11, and 13. They represent the integer part of the quotient of the reconstructed transform coefficient and the quantization step size (rounded to the nearest integer). In addition, other data available for decoding may be stored within a given context set. can be used to extract probabilistic models (either explicitly or Such data include: · The position of the current transform coefficient 13' (x coordinate, y coordinate, diagonal number, or any combination thereof) of block 10. The size of the current block 10 (vertical size, horizontal size, number of samples, or any combination thereof). Aspect ratio of current conversion block 16. The binarization for the absolute value of the quantization index includes an adaptively coded binary value specifying whether the absolute value of the quantization index is equal to or greater than 1. The probability model (also called context) used to code this binary value is selected from a set of candidate probability models. The measured probability model is not only measured on the quantization set 48 (acceptable reconstruction levels) or on the state variables for the current quantization index, i.e., 48 and 104, but it is also or exclusively determined on the quantization indexes already transmitted for the transform block. In an embodiment, the quantization set (or state variables) determines a subset of the available probability models (also called context set), and the data of the already coded quantization indexes determines the probability model used within this subset (context set). In another embodiment, the same context set is used for all quantization sets / state variables, and the data of the already coded quantization indexes determines the probability model used. Any of the above-mentioned methods can be used to select the probability model (for the binary value specifying whether the quantization index is not equal to 0).

[0114] An adaptive selection between dependent and independent scalar quantization may be applied. In one embodiment, transform coding with dependent quantization (and potentially entropy coding of the quantization indexes) is applied to all transform blocks. Exceptions are lossless coding modes that do not include a transform (i.e., there is no quantization) or coded modes that do not include a transform.

[0115] The codec may also provide two methods of transform coding: (a) conventional transform coding with independent scalar quantization, and (b) transform coding with dependent quantization. Which transform coding method (independent or transform coding with dependent scalar quantization) is used for a transform block may be explicitly signaled to the decoder using an appropriate syntax element, or may be derived based on the syntax element. Whether transform coding with dependent quantization is possible may also be explicitly signaled first, and then whether transform coding with dependent quantization is actually used for the transform block (if possible) is derived based on other syntax elements.

[0116] The explicit signaling may comprise one or more of the following methods: A high-level syntax element (typically a flag) is transmitted in a high-level syntax structure, e.g. a sequence parameter set, a picture parameter set, or a slice header, indicating whether transform coding with dependent quantization or conventional transform coding with independent scalar quantization is used. In this context, it is possible to enable / disable the use of dependent quantization only for luma or chroma blocks (or more generally for blocks of a particular color channel). In another embodiment, the high-level syntax element indicates whether transform coding with dependent quantization is possible for the coded video sequence, picture, or slice (it is also possible that transform coding with dependent quantization is only possible for luma or chroma blocks). If transform coding with dependent quantization is possible for the coded video sequence, the actual decision of which block, picture, or slice transform coding may be used for may be derived based on the specific block parameters (see below). Also, dedicated syntax elements may be used to signal different settings for luma and chroma blocks. The syntax may include low-level syntax elements (i.e., block-based syntax elements) that specify whether transform coding with dependent quantization or conventional transform coding is used for the corresponding block. Such syntax elements may be sent on a CTU-based, CU-based, transform block-based, etc. If such a syntax element is coded for an entity that contains multiple transform blocks, it applies to all contained transform blocks. It may, however, only apply to transform blocks of a particular color channel (e.g., only luma blocks or only chroma blocks).

[0117] In addition to explicit signaling, the decision whether a transform block is coded using dependent or independent quantization of the transform coefficients could be derived based on parameters for the corresponding block. These parameters have to be coded (or derived based on other already transmitted syntax elements) before the actual quantization indexes for the transform coefficients of the block are transmitted. Among other possibilities, the block adaptive decision could be based on one or more of the following parameters: Block quantization parameter: for example, for blocks with a quantization parameter (QP) below a certain threshold (which may also be indicated in a high-level syntax construct), transform coding with dependent quantization is used, and for blocks with a QP above the threshold, conventional transform coding with independent scalar quantization is used. Position of the first non-zero quantization index in the coding order: Given the position of the first non-zero coefficient, the number of quantization indexes actually transmitted (excluding quantization indexes that are estimated to be equal to 0 based on the transmitted position of the first non-zero quantization index) can be extracted. For example, dependent quantization is used for blocks for which the number of actually transmitted quantization indexes is greater than a threshold (the threshold may or may not depend on the size of the block or the number of samples inside the block), and for all other blocks, independent scalar quantization is used. In addition to the position of the first non-zero coefficient, a flag indicating whether the subblock contains a non-zero quantization index can be used to determine the number of actually transmitted quantization indexes. In this case, the so-called coded subblock flag (indicating whether the subblock contains a non-zero coefficient) must be coded before the first quantization index is coded. Size of the transform block (horizontal size, vertical size or number of samples in a transform block). The transform (or type of transform) used to reconstruct the transform block. Such criteria could be applied to video codecs that support multiple transforms. Any combination of the criteria specified above.

[0118] For the embodiments, transform coding with independent scalar quantization and conventional transform coding (with independent scalar quantization) can be used together on an image or slice, and it is preferable to use different relationships between quantization step sizes and quantization parameters for the two approaches. For example, the decoder may have one table to map block quantization parameters to quantization step sizes used for independent quantization and another table to map block quantization parameters to quantization step sizes used for dependent quantization. Alternatively, the decoder may have one table to map quantization parameters to quantization step sizes (as in H.265|MPEG-H AVC), but for transform blocks using dependent scalar quantization, the quantization step size is multiplied by a predefined factor before it is used in the reconstruction process of the transform coefficients. It should be noted that the multiplication by the quantization step size to reconstruct the transform coefficients may actually be implemented as a combination of multiplication and bit shifting. Then, the multiplication of the nominal quantization step size with the predefined factor may be implemented as a bit-shift modulation and a modulation of the scaling factor. As yet another alternative, for transforms, the offset for transform blocks coded using dependent quantization can be added to (or subtracted from) the quantization parameter before it is mapped to the quantization step size used.

[0119] Furthermore, for transform coding with dependent quantization, the quantization step size used can be adapted based on the number of transform coefficients. To that end, any of the techniques mentioned above for modulating the quantization size can be used (look-up tables, multiplication factors, scale correction, and bit shift parameters). The number of quantization indexes actually transmitted can be determined in one or more of the following ways (or by any other means): The number of transmitted quantization indexes can be derived based on the position of the first non-zero quantization index in the coding order (see above). The number of transmitted quantization indexes can be derived based on the position of the first non-zero quantization index in the coding order and the value of the transmitted coded sub-block flag (which indicates whether the sub-block has a non-zero quantization index or, alternatively, any non-zero transform coefficients). The number of transmitted quantization indexes (to determine the quantization step size) can be derived based on the number of non-zero quantization indexes in the transform block.

[0120] The quantization step size must be known for entropy coding of the quantization index. It should be noted that it is not necessary to use the Therefore, any syntax elements and extracted parameters are It can be used to calculate the quantization step size used in the reconstruction of the coefficients.

[0121] As an example method for encoding, the following description is provided.

[0122] To obtain a bitstream that offers a very good tradeoff between distortion (reconstruction quality) and bitrate, the quantization index is determined by a Lagrangian cost measure.

number

number

number

number

[0123] However, as we have discussed above, the dependencies between transform coefficients can be represented using a lattice structure. For further embodiments, we use the embodiment in Fig. 10a as an example. A lattice structure for an example block of eight transform coefficients is shown in Fig. 20. A path through the lattice (from left to right) indicates the possible state transitions for the quantization indexes. It should be noted that each connection between two nodes represents the quantization indexes of a particular subset (A, B, C, D). If we

number

number

number

[0124] An example encoding algorithm for choosing appropriate quantization indexes for a transform block could consist of the following main steps: 1. Set the rate-distortion cost for the initial state equal to 0. 2. For every transform coefficient in coding order, do the following: a. For each subset A, B, C, D, determine the quantization index that minimizes distortion for the given original transform coefficients. b. For all lattice nodes (0,1,2,3) for the current transform coefficients do the following: i. Calculate the rate-distortion cost for two paths connecting the state for the previous transform coefficient with the current state. The cost is calculated based on the previous state and the cost

number

number

[0125] It should be noted that the determination of quantization indexes based on the Viterbi algorithm is significantly less complicated than rate-distortion optimized quantization (RDOQ) for independent scalar quantization. Nevertheless, there are also simpler coding algorithms for dependent quantization. For example, starting from a predefined initial state (or quantization set), the quantization indexes could be determined in the coding / reconstruction order by minimizing any cost measure, only considering the influence of the current quantization index. Given a given quantization index for the current coefficient (and all previous quantization indexes), the quantization set for the next transform coefficient is known. And thus, the algorithm can be applied to all transform coefficients in the coding order.

[0126] In summary, the encoders shown in Figures 1, 6b, 7a, and 17a in any combination thereof represent examples for the present media signal encoder. At the same time, the encoders shown in Figures 6a, 7b, and 17b in any combination thereof represent examples for the present media signal decoder. Nevertheless, just as a precautionary measure, and Figure 1 is introduced mainly to show the structure used by the HEVC encoder, it should be noted again that Figure 1 forms a possible embodiment, namely an apparatus for predictively coding a video 211, consisting of a sequence of images 212 in a data stream 14. Block-wise predictive coding is used for this. Furthermore, transform-based residual coding is typically used. The apparatus, or encoder, is indicated with the reference sign 210. 21 depicts a corresponding decoder 220 (i.e., device 220) configured to predictively decode a video 211' consisting of an image 212' in an image block from data stream 14, and here typically employs transform-based residual decoding, where an apostrophe has been used to indicate that image 212' and video 211', respectively, reconstructed by decoder 220 deviate from image 212 originally encoded by device 210 in terms of coding losses introduced by quantization of the predictive residual signal. While FIGS. 1 and 21 typically employ transform-based predictive residual coding, embodiments of the present application are not limited to this type of predictive residual coding, or even to predictive coding that includes coding and quantization of the predictive residual.

[0127] The encoder 210 is configured to subject the prediction residual signal to a spectral transformation in space and to encode the prediction residual signal, thus obtained in the data stream 14. Similarly, the decoder 220 is configured to decode the prediction residual signal from the data stream 14 and to subject the prediction residual signal, thus obtained in the spectral transformation in space.

[0128] Internally, the encoder 210 may comprise a prediction residual signal former 222 which generates a prediction residual 224 so as to measure the deviation of a prediction signal 226 from the original signal, i.e. the video 211 or the current picture 212. The former prediction residual signal 222 may for example be a subtractor which subtracts the prediction signal from the original signal, i.e. the current picture 212. The encoder 210 then further comprises a transformation and quantization stage 2 which obtains a transformed prediction residual signal and subjects the prediction residual signal 224 to any of the transformations mentioned above for subjecting the same to quantization. The quantization concept was described above with respect to Fig. 7a. The prediction residual signal 224' thus quantized is coded in the bitstream 14 and comprises the quantization indexes 56 mentioned above. For encoding into the data stream 14, the encoder 210 may optionally comprise an entropy coder 234 which entropy codes the transformed and quantized prediction residual signal in the data stream 14. At the decoder side, a reconstructable quantized prediction residual signal 224' is generated on the basis of the internally coded prediction residual signal 224' and is decodable from the data stream 14 by using an inverse quantization and inverse transformation stage 238 which dequantizes the prediction residual signal 224' according to Fig. 7b, so as to obtain reconstructed transformation coefficients 13, such as the one described above, and to subject the transformation of the coefficients 13 to an inverse transformation, in order to obtain a prediction residual signal 224 which corresponds to the original prediction residual signal 224 except for quantization losses. A combiner 242 then recombines the prediction signal 226 and the reconstructed prediction residual signal 224', for example by addition, so as to obtain a reconstructed signal 246, i.e. a reconstruction of the original signal 212. The reconstructed signal 246 may be identical to the signal 212' or may represent a pre-reconstructed signal subjected to in-loop filtering 247 to obtain the reconstructed signal 212' and / or post-filtering (not shown in FIG. 1).A prediction module 244 then generates a predicted signal 226 on the basis of the signal 246 , for example by using spatial prediction 248 , i.e. intra-prediction, and / or temporal prediction 249 .

[0129] The entropy coder 234 entropy codes not only the prediction residual 224'' in the data stream 14, but also other coded data representative of the image, such as the residual data 224'', prediction modes, prediction parameters, quantization parameters, and / or filter parameters. The entropy coder 234 encodes all this data in a lossless manner into the data stream 14.

[0130] Similarly, the decoder 220 may be composed of internally consistent components and interconnected in a consistent manner with a prediction loop formed by the prediction module 244, the combiner 242, and the inverse of stages 234 and 238. In particular, the entropy decoder 250 of the decoder 220 may decode a spectral-domain prediction residual signal 224'', in which the entropy has been quantized from the data stream. Contrast extraction may be performed in a synchronous manner with the encoder. The result is, for example, coded data including the prediction residual data 224''. The dequantization and inverse transform module 252 then dequantizes this signal according to FIG. 7b and inverse transforms the same to obtain a residual signal in the spectral domain, i.e. a signal 224''', from a prediction loop, supplied by signal 224''' and corresponding to the loop in the encoder, a prediction module 258 and a combiner 256 and an optional in-loop filter 247', the output of which yields a reconstructed signal based on the predicted residual signal 224''', thereby yielding the reconstructed signal, i.e. the video 211' or current picture 212' therefrom, as shown in FIG. 21.

[0131] The encoder 210 may set the same coding parameters, including, for example, prediction mode, motion parameters, etc., according to some rate-optimizing methods and distortion-related criteria, i.e., coding cost, and / or some rate control, optimization schemes, generally shown as encoder control 213 in FIG. 1. As described, the encoder 210 and the decoder 220, and corresponding modules 244, 258, respectively, support different prediction modes, such as intra-coding mode and inter-coding mode. The precision at the encoder and decoder to switch between these prediction modes, determined by some decision module 243, may correspond to a subdivision of each of the images 212 and 212′ into blocks. It should be noted that some of these blocks may be blocks that are only intra-coded, and some blocks may be blocks that are only inter-coded, and optionally even further blocks may be blocks obtained using both intra- and inter-coding. According to the intra-coding mode, a prediction signal for a block is obtained based on the spatial, already coded / decoded neighborhood of the respective block. Several intra-coding sub-modes may exist during the selection, which represent the type of similar intra-prediction parameters. There may be directional or angular intra-coding sub-modes according to the prediction signal for each block, which depend on estimating neighboring sample values ​​along a particular direction, specified for the directional intra-coding sub-modes inside each block.The intra-coding submode may comprise one or more further submodes, such as a DC coding mode according to a prediction signal for each block, which assigns a DC value to all samples within the respective block, and / or a planar intra-coding mode according to a prediction signal for each block, which is approximated or determined as a spatial distribution of sample values ​​described by a system of equations on the sample positions of each block, using a slope and a calculation of a planar offset defined by the system of equations based on neighboring samples. In comparison, according to an inter-prediction mode, a prediction signal for a block may be obtained, for example, by temporally predicting the block inner. For parameterization of the inter-prediction mode, a motion vector may be conveyed in the data stream, and the motion vector may be sampled to obtain a prediction signal for each block, including a spatial displacement of a position of a previously coded image of the video 211 with a previously coded / decoded image. In addition to the residual signal coding provided by the data stream 14, such as the entropy coded transform coefficient levels representing the quantized spectral domain prediction residual signal 224'', the data stream 14 may also code in it prediction related parameters for assigning a block prediction mode, prediction parameters for the assigned prediction mode, such as motion parameters for inter prediction modes, and any further parameters controlling the construction of the final prediction signal for the block with the assigned prediction mode and prediction parameters. Moreover, the data stream may also comprise transmission parameters controlling the subdivision of the respective images 212 and 212' inside the block, such as the transform blocks from the transform coefficient block 10 obtained by transforming the individual transform blocks.The decoder 220 subdivides the image in the same way as the encoder did to assign the same prediction modes and parameters to the blocks, and then performs the same prediction using these parameters and to result in the same prediction signal, e.g., to perform an inverse transform on each transform coefficient block 10 to produce one of the transform blocks. That is, the prediction signal may be obtained by intra-image prediction using already reconstructed samples of the spatial neighborhood of the current image block, or using motion compensated prediction using samples of an already completely reconstructed image.

[0132] FIG. 22 illustrates the relationship of the reconstructed signals, i.e. the reconstructed image 212′, on the one hand, and the combination of the prediction residual signal 224′″ conveyed by the data stream 14 and the prediction signal 226, on the other hand. As already indicated above, additional combinations may be made. The prediction signal 226 is illustrated in FIG. 22 as a subdivision of the image region inside blocks 280 of various sizes, but this is merely an example. The subdivision may be any subdivision, such as a regular subdivision of the image region inside rows and columns of blocks, or a multi-tree subdivision of the image 212 inside leaf blocks of various sizes, such as a quadtree subdivision or any other, a mixture of which is illustrated in FIG. 22, where the image region is firstly subdivided into rows and columns of tree root blocks which are then further subdivided according to a recursive multi-tree subdivision to result in the blocks 280.

[0133] The prediction residual signal 224''' in FIG. 22 is also illustrated as a subdivision of the image region inside the blocks 284. These blocks may be called transform blocks to distinguish the same from the coding blocks 280. In essence, FIG. 22 illustrates an encoder 210 and a decoder 220 that may use two different subdivisions inside the blocks, respectively of the image 212 and the image 212', one subdividing the interior of the coding blocks 280 and another subdividing the interior of the transform blocks 284. Both subdivisions may be the same, i.e., each block 280 together forms a transform block 284 and vice versa, however, Fig. 22 illustrates the case where, for example, a subdivision in a transform block 284 forms an extension of a subdivision in the coding block 280, whereby any boundary between two blocks 280 covers the boundary between the two blocks 284, or alternatively, referring to each block 280, coincides with one of the transform blocks 284 or with a group of transform blocks 284. However, the subdivisions may also be determined or selected independently of each other, whereby a transform block 284 could selectively cross a block boundary between blocks 280. Similar considerations are thus made as to the facts as those brought forward for the subdivision in the block 280, insofar as the subdivision into the transformation block 284 is considered, i.e. the block 284 may be the result of a regular subdivision of the image area in the block, arranged in rows and columns, or the result of a recursive multi-tree of the image area, or a combination thereof, or any other kind of subdivision. Just as an aside, the blocks 280 and 284 are not limited to being square, rectangular or of any other shape. Moreover, the subdivision of the current image 212 in the block 280 in which the prediction signal is formed and the subdivision of the current image 212 in the block 280 in which the prediction residual is coded may be the only subdivisions used for coding / decoding.These subdivisions form a determination of the precision with which the prediction signal is and residual coding is performed, but firstly, the residual coding may alternatively be performed without subdivision, and secondly, at other precisions than these subdivisions, the encoder and decoder may set certain coding parameters, including some of the parameters mentioned above, such as prediction parameters, etc.

[0134] 22 illustrates the combination of the prediction signal 226 and the prediction residual signal 224''' directly resulting in the reconstructed signal 212. However, it should be noted that one or more prediction signals 226 may also be combined with the prediction residual signal 224''' to result in the image 212' according to other embodiments, in which prediction signals obtained from other perspectives or from other coding layers are encoded / decoded in a separate prediction loop, for example with a separate DPB.

[0135] In Fig. 22, the transform blocks 284 have the following importance: the modules 228 and 252 perform their transforms in units of these transform blocks 284. For example, many codecs use some kind of DST or DCT for all transform blocks 284. Some codecs allow to skip the transform, whereby for some transform blocks 284, the prediction residual signal is directly coded in the spatial domain. However, according to the embodiments described below, the encoder 210 and the decoder 220 are configured with several transform methods that they support. For example, the encoder 210 and the decoder 220 may DCT-II (or DCT-III), where DCT stands for discrete cosine transform · DSTIV, where DCT stands for discrete sine transform DCT-IV ·DSTVII Identity Transformation (IT) It can be provided with:

[0136] Naturally, while the module 228 supports all these forward versions of the transform, the decoder 220, or inverse transform 252, supports the corresponding forward or inverse versions thereof: Inverse DCT-II (or inverse DCT-III) ·Inverse DCT-IV ·Inverse DCT-IV Inverse DCT-VII Identity Transformation (IT)

[0137] This allows different transforms to be applied in the horizontal and vertical directions, for example, a DCT-II can be used in the horizontal direction and a DCT-VII can be used in the vertical direction, or vice versa.

[0138] In any case, it should be noted that the set of supported transformations may comprise just one transformation, such as spatial to spectral or spectral to spatial, and beyond this reference is made to the above description where further clarification and examples are provided.

[0139] Thus, in the above description related to the video decoder, one or more blocks of samples, which may alternatively be referred to as image blocks, and which may alternatively be referred to as spatial or reconstructed or decoded samples, are reconstructed by predicting the samples using an intra or inter image to obtain a reconstructed block of video samples, analyzing quantization indexes from the bitstream, reconstructing the transform coefficients using dependent quantization (wherein the values ​​of the reconstructed transform coefficients are calculated using the current and one or more previous quantization indexes), inverse transforming the reconstructed quantization coefficients to obtain a block of reconstructed prediction error samples, and adding the reconstructed prediction error samples to the prediction signal. Here, the dependent reconstruction of the transform coefficients may be achieved using two distinct (but not necessarily mutually prime) sets of allowable reconstruction levels. The transform coefficients may be reconstructed in a predefined reconstruction order by choosing one of a set of reconstruction levels based on the value of a previous quantization index in the reconstruction order; choosing one reconstruction level of the selected set using a quantization index for the current transform coefficient (wherein the quantization index specifies an integer index in an ordered set of allowable reconstruction values). The selection of the set of allowable reconstruction values ​​may be specified by the parity preceding the quantization index in the reconstruction order. The selection of the set of allowable reconstruction values ​​may be realized using a state transition table (or equivalently, an arithmetic operation) having the following properties: at the beginning of the reconstruction method for a transform block, a state variable is set equal to a predetermined value: the states individually determine a set of allowable reconstruction values ​​for the next transform coefficient; the state for the next transform coefficient is extracted using a lookup table in a 2d table, where the first index is given by the current state and the second index is given by the parity of the current quantization index.Alternatively, or in addition, the first set of allowable reconstruction levels may comprise all even integer multiples of the quantization step size; the second set of allowable reconstruction levels may comprise all odd integer multiples of the quantization step size; and in addition, the reconstruction levels are equal to 0, where the quantization step size depends on the position of the transform coefficient within the transform block (e.g., as specified by a quantization weight matrix). Additionally, or alternatively, the quantization step size may depend on a quantization parameter that may be modified on a block by block basis. The entropy coding may include binarization or absolute values ​​of the quantization index values, and one or more binary values ​​may be coded using an adaptive binarization probability model, and for one or more binary values ​​coded using the adaptive probability model, the probability model used may be selected from among a set of adaptive probability models, and the probability model may be selected based on the set of allowable reconstruction levels (or states). The binarization for the quantization index may comprise a binary value specifying whether the quantization index is equal to or not equal to zero, said binary value being coded using an adaptive probability model chosen from a set of adaptive probability models, and a subset of the set of available probability models may be selected as a set of predefined allowable reconstruction levels for the current quantization index (or state), and the probability model used from the selected subset may be determined using characteristics of the quantization indexes in a neighborhood (in the array of transform coefficients) of the current quantization index. The binary value resulting from the binarization of the quantization index may be entropy decoded in multiple passes over a transform block or sub-blocks of the transform block (representing a subset of the positions of the transform coefficients within the transform block).The binary values ​​coded in the first pass may include any combination of the following binary values: a binary value specifying whether the quantization index is equal to or not equal to zero; a binary value specifying whether the absolute value of the quantization index is greater than or equal to one or not greater than or equal to one; a binary value specifying the parity of the quantization index (or the parity of the absolute value of the quantization index).

[0140] Even if some embodiments are described within an apparatus environment, it is clear that the embodiments also refer to the corresponding method description, so that the blocks or structural elements of the apparatus correspond to the corresponding method steps or features of the method steps. Similarly, embodiments described within the context of or as a method step also refer to the corresponding blocks or detailed descriptions or features of the corresponding apparatus. All or some of the method steps may be performed by (or using) a hardware apparatus, such as a microprocessor, a programmable computer, or an electronic circuit. In some embodiments, one or more of the most important method steps may be performed by such an apparatus.

[0141] The encoded data stream of the invention can be stored on a digital storage medium or can be transmitted over a transmission medium, such as a wireless transmission medium, or a wired transmission medium, such as the Internet.

[0142] Depending on the specific implementation conditions, the embodiments of the invention may be implemented in hardware or in software. The implementation may be carried out using a digital storage medium, for example a floppy disk, DVD, Blu-ray disk, CD, ROM, PROM, EPROM, EEPROM or FLASH memory, having electronically readable control signals cooperating with a programmable computer system on which the respective method is executed. The digital storage medium may therefore be computer readable.

[0143] Some embodiments according to the invention comprise a data carrier comprising electronically readable control signals capable of cooperating with a programmable computer system to cause one of the methods described herein to be performed.

[0144] Generally, embodiments of the invention can be implemented as a computer program having program code which operates to perform one of the methods when the computer program runs on a computer. The program code may for example be stored on a machine readable carrier.

[0145] Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.

[0146] In other words, an embodiment of the inventive method is thus a computer program having a program code for performing one of the methods described herein, when the computer program runs on a computer.

[0147] A further embodiment of the inventive methods is thus a data storage medium (or digital storage medium or computer readable medium) having recorded thereon the computer program for performing one of the methods described herein. Data storage media, digital storage media or recorded media are generally non-transitory or non-volatile.

[0148] A further embodiment of the inventive method is thus a data stream or a sequence of signals representing the computer program for performing one of the methods described herein. The data stream or the sequence of signals may for example be arranged to be transmitted over a data communication link, such as the Internet, for example.

[0149] A further embodiment comprises a processing unit, eg a computer or a programmable logic device, configured or adapted to perform one of the methods described herein.

[0150] A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.

[0151] Further embodiments comprise an apparatus or a system configured to transmit a computer program for performing one of the methods described herein to a receiver. The receiver may for example be a computer, a mobile device, a memory device or otherwise. The apparatus or system may for example comprise a file server for transmitting the computer program to the receiver.

[0152] In some embodiments, a programmable logic device (e.g., a field programmable gate array, FPGA) may be used to perform some or all of the functions of the methods described herein. In some embodiments, a field programmable gate array may cooperate with a microprocessor to perform one of the methods described herein. In general, the methods are preferably performed by any hardware apparatus.

[0153] For example, the apparatus described herein may be implemented using a hardware apparatus, or using a computer, or using a combination of a hardware apparatus and a computer.

[0154] The apparatus described herein, or any components of the apparatus described herein, may be implemented at least in part in hardware and / or software (computer programs).

[0155] For example, the methods described herein may be implemented using a hardware apparatus, or using a computer, or using a combination of a hardware apparatus and / or a computer.

[0156] The methods described herein, or any components of the methods described herein, may be implemented at least in part by hardware and / or software.

[0157] The above-described embodiments merely represent illustrative of the principles of the present invention. It is understood that those skilled in the art will recognize modifications and variations of the arrangements and details described herein. As such, it is intended that the invention be limited only by the following claims, rather than by the specific details presented herein, and by the description and discussion of the embodiments.

[0158] References [1] ITU-T and ISO|IEC, “Advanced videocoding for audiovisual services,” ITU-T Rec. H.264 and ISO|IEC14406-10 (AVC), 2003. [2]ITU-T and ISO|IEC, “High efficiency video coding,” ITU-T Rec. H.265 and ISO|IEC 23008-10 (HEVC), 2013.

Claims

1. 1. A method for sequentially decoding a sequence of samples corresponding to an image from a data stream, comprising the steps of: The method comprises: entropy decoding quantization indices corresponding to the samples; indicating a set of one of the two sets of reconstruction levels based on the quantization index; Including, The two sets of reconstruction levels are a first set of reconstruction levels including reconstruction levels that are even multiples of a quantization step size, the first set of reconstruction levels excluding reconstruction levels that are odd multiples of the quantization step size; a second set of reconstruction levels including the quantization step size and reconstruction levels that are odd multiples of zero, the second set of reconstruction levels excluding non-zero reconstruction levels that are even multiples of the quantization step size, and dequantizing the samples using the indicated set of reconstruction levels; A method comprising:

2. the reconstruction levels of the first set of reconstruction levels and the second set of reconstruction levels correspond to integer multiples of the quantization step size; The method of claim 1 , wherein the inverse quantizing further comprises multiplying the quantization step size by an integer value corresponding to the indicated set of reconstruction levels.

3. The method of claim 1 , wherein the indication of the set of reconstruction levels is based on a result of a binary function of decoded quantization indexes for one or more previous samples.

4. The method of claim 1 , wherein the indication of the set of reconstruction levels is based on a parity of decoded quantization indexes for one or more previous samples.

5. deriving a subset index for a previous sample based on the indicated set of reconstruction levels and a parity of quantization indexes; The method of claim 1 further comprising:

6. The method of claim 1 , wherein the indication of the set of reconstruction levels is based on a subset index derived for one or more immediately preceding samples.

7. The method of claim 1 , wherein the indication of the set of reconstruction levels is based on a subset index derived for two immediately preceding samples.

8. 1. An apparatus for sequentially decoding a sequence of samples corresponding to an image from a data stream, comprising: The apparatus comprises: A processor; a memory storing instructions that, when executed by the processor, cause the processor to perform operations; Including, The process comprises: entropy decoding quantization indices corresponding to the samples; indicating a set of one of the two sets of reconstruction levels based on the quantization index; Including, The two sets of reconstruction levels are a first set of reconstruction levels including reconstruction levels that are even multiples of a quantization step size, the first set of reconstruction levels excluding reconstruction levels that are odd multiples of the quantization step size; a second set of reconstruction levels including the quantization step size and reconstruction levels that are odd multiples of zero, the second set of reconstruction levels excluding non-zero reconstruction levels that are even multiples of the quantization step size, and dequantizing the samples using the indicated set of reconstruction levels; 13. An apparatus comprising:

9. the reconstruction levels of the first set of reconstruction levels and the second set of reconstruction levels correspond to integer multiples of the quantization step size; The apparatus of claim 8 , wherein the inverse quantizing further comprises multiplying the quantization step size by an integer value corresponding to the indicated set of reconstruction levels.

10. The apparatus of claim 8 , wherein the indication of the set of reconstruction levels is based on a result of a binary function of decoded quantization indexes for one or more previous samples.

11. The apparatus of claim 8 , wherein the indication of the set of reconstruction levels is based on a parity of decoded quantization indexes for one or more previous samples.

12. The process comprises: deriving a subset index for a previous sample based on the indicated set of reconstruction levels and a parity of quantization indexes; The apparatus of claim 8 further comprising:

13. The apparatus of claim 8 , wherein the indication of the set of reconstruction levels is based on a subset index derived for one or more immediately preceding samples.

14. The apparatus of claim 8 , wherein the indication of the set of reconstruction levels is based on a subset index derived for two immediately preceding samples.

15. A non-transitory storage medium storing instructions that, when executed by a processor, cause the processor to perform a process, comprising: The process comprises: entropy decoding quantization indices corresponding to the samples; indicating a set of one of the two sets of reconstruction levels based on the quantization index; Including, The two sets of reconstruction levels are a first set of reconstruction levels including reconstruction levels that are even multiples of a quantization step size, the first set of reconstruction levels excluding reconstruction levels that are odd multiples of the quantization step size; a second set of reconstruction levels including the quantization step size and reconstruction levels that are odd multiples of zero, the second set of reconstruction levels excluding non-zero reconstruction levels that are even multiples of the quantization step size, and dequantizing the samples using the indicated set of reconstruction levels; Non-transitory storage media, including

16. the reconstruction levels of the first set of reconstruction levels and the second set of reconstruction levels correspond to integer multiples of the quantization step size; The non-transitory storage medium of claim 15 , wherein the inverse quantizing further comprises multiplying the quantization step size by an integer value corresponding to the indicated set of reconstruction levels.

17. The non-transitory storage medium of claim 15 , wherein the indication of the set of reconstruction levels is based on a result of a binary function of decoded quantization indexes for one or more previous samples.

18. The non-transitory storage medium of claim 15 , wherein the indication of the set of reconstruction levels is based on a parity of decoded quantization indexes for one or more previous samples.

19. deriving a subset index for a previous sample based on the indicated set of reconstruction levels and a parity of quantization indexes; The non-transitory storage medium of claim 15 further comprising:

20. The non-transitory storage medium of claim 15 , wherein the indication of the set of reconstruction levels is based on a subset index derived for one or more immediately preceding samples.

Citation Information

Patent Citations

  • Data compression method and device, and recording medium

    JP2000232366A

  • Methods and devices for data compression using adaptive reconstruction levels

    US20120008680A1