Interaction of quantization constrained correction with dependent quantization

WO2026162454A1PCT designated stage Publication Date: 2026-08-06INTERDIGITAL CE PATENT HOLDINGS SAS
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
INTERDIGITAL CE PATENT HOLDINGS SAS
Filing Date
2026-01-26
Publication Date
2026-08-06

Smart Images

  • Figure EP2026051929_06082026_PF_FP_ABST
    Figure EP2026051929_06082026_PF_FP_ABST
Patent Text Reader

Abstract

A method and apparatus for Quantization constrained correction with dependent quantization are provided. In some embodiments, a reconstructed image block is determined from a prediction block and a reconstructed prediction residual, and a filtered version of the reconstructed image block is obtained. A quantization index of the dependent quantization is obtained for at least one transform coefficient of a transform block determined for a residual obtained from the filtered reconstructed image block. At least one correction bound is determined based on the quantization index, a bound offset and a quantization step size of the dependent quantization, and the at least one transform coefficient is corrected as a function of the at least one correction bound providing at least one corrected transform coefficient.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] INTERACTION OF QUANTIZATION CONSTRAINED CORRECTION WITH DEPENDENT QUANTIZATION CROSS REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the priority to European Application No. 25305151.0, filed on 3 February 2025, which is incorporated herein by reference in its entirety.

[0003] BACKGROUND

[0004] The present application is related to video compression. The present embodiments relate to a method and an apparatus for encoding or decoding an image or a video. More particularly, the present embodiments relate to quantization constrained correction with dependent quantization. To achieve high compression efficiency, image and video coding schemes usually employ prediction and transform to leverage spatial and temporal redundancy in the video content. Generally, intra or inter prediction is used to exploit the intra or inter picture correlation, then the differences between the original block and the predicted block, often denoted as prediction errors or prediction residuals, are transformed, quantized, and entropy coded. In inter prediction, motion vectors used in motion compensation are often predicted from motion vector predictor. To reconstruct the video, the compressed data are decoded by inverse processes corresponding to the entropy coding, quantization, transform, and prediction.

[0005] BRIEF SUMMARY

[0006] Briefly stated, in one embodiment, a method for Quantization Constrained correction is provided, the method comprises obtaining a filtered version of a reconstructed image block determined from a prediction block and a reconstructed prediction residual; obtaining a quantization index of a dependent quantization for at least one transform coefficient of a transform block determined for a residual obtained from the filtered reconstructed image block, determining at least one correction bound based on the quantization index, a bound offset and a quantization step size of the dependent quantization, and correcting the at least one transform coefficient as a function of the at least one correction bound providing at least one corrected transform coefficient.

[0007] In a variant, the residual is obtained between the filtered reconstructed image block and the prediction block. In another variant, the residual is obtained between the filtered reconstructed image block and the reconstructed image block.

[0008] In a variant, at least one of the bound offset or the quantization step size is obtained using integer parameters.

[0009] In a variant, the quantization index is a symmetrized quantization index associated with an absolute value of the decoded quantization level, and correcting the at least one transformcoefficient as a function of the at least one correction bound comprising obtaining a symmetrized coefficient from the at least one transform coefficient and correcting the symmetrized coefficient as a function of the at least one correction bound.

[0010] In one embodiment, an apparatus for Quantization Constrained correction is provided, the apparatus comprises one or more processors configured to obtain a filtered version of a reconstructed image block determined from a prediction block and a reconstructed prediction residual; obtain a quantization index of a dependent quantization for at least one transform coefficient of a transform block determined for a residual obtained from the filtered reconstructed image block, determine at least one correction bound based on the quantization index, a bound offset and a quantization step size of the dependent quantization, and correct the at least one transform coefficient as a function of the at least one correction bound providing at least one corrected transform coefficient.

[0011] One or more embodiments also provide a method for encoding or decoding an image or a video that comprises the method steps of the method for Quantization Constrained correction mentioned above according to any one of the embodiments described herein.

[0012] One or more embodiments also provide an apparatus comprising one or more processors configured to implement the method for encoding or decoding an image or a video according to any one of the embodiments described herein.

[0013] One or more embodiments also provide a computer program comprising instructions which when executed by one or more processors cause the one or more processors to perform any one of the methods for encoding or decoding a video according to any of the embodiments described herein. One or more of the present embodiments also provide a non-transitory computer readable medium and / or a computer readable storage medium having stored thereon instructions for encoding or decoding a video according to the methods described herein.

[0014] One or more embodiments also provide a computer readable storage medium having stored thereon a bitstream generated according to the methods described herein. One or more embodiments also provide a method and apparatus for transmitting or receiving the bitstream generated according to the methods described above.

[0015] BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The following detailed description will be better understood when read in conjunction with the appended drawings, in which there are shown examples of one or more of the multiple embodiments of the present disclosure. It should be understood, however, that the embodimentsdescribed herein are not limited to the precise arrangements and instrumentalities shown in the drawings. In the drawings:

[0017] FIG. 1 is a block diagram illustrating an example system according to one or more embodiments of the present disclosure;

[0018] FIG. 2 is a block diagram illustrating an example video encoder according to one or more embodiments of the present disclosure;

[0019] FIG. 3 is a block diagram illustrating an example video decoder according to one or more embodiments of the present disclosure;

[0020] FIG. 4 illustrates an example of quantization and dequantization of a transform coefficient c;

[0021] FIG. 5 illustrates an example of quantization bounds and reconstruction values;

[0022] FIG. 6 illustrates an example of reconstruction of an image block with filtering;

[0023] FIG. 7 illustrates an example of quantization-constrained correction;

[0024] FIG.8 illustrates an example of a projection function onto the quantization constraint; FIG. 9 illustrates an example of a smooth correction function;

[0025] FIG. 10 illustrates an example an alternative quantization-constrained correction computation using a non-filtered reconstructed image block Xr;

[0026] FIG. 11 illustrates an example of correction of a transform coefficient Cf associated with a quantification level cq;

[0027] FIG. 12 illustrates an example of correction of a transform coefficient Cf associated with a quantification level cqusing a symmetrized coefficients Cfsymassociated with abs(cq);

[0028] FIG. 13 illustrates an example of dependent quantization with two quantizers Q0 and Q1; FIG. 14 illustrates an example of state transition and quantizer selection for the dependent quantization;

[0029] FIG. 15 illustrates an example of a method for quantization-constrained correction of a block quantized with dependent quantization DepQuant, according to an embodiment;

[0030] FIG. 16 illustrates an example of a method for quantization-constrained correction of a block quantized with dependent quantization DepQuant, according to another embodiment;

[0031] FIG. 17 illustrates an example of quantization steps of different quantizers;

[0032] FIG. 18 illustrates an example of a method for determining adapted correction bound for DepQuant quantizers for a bound offset o in the range [-1; 1], according to an embodiment;

[0033] FIG. 19 illustrates an example of a method for determining adapted correction bound for DepQuant quantizers when absolute value of bound offset o is higher than 1, according to an embodiment;

[0034] FIG. 20 shows two remote devices communicating over a communication network in accordance with an example of the present principles.FIG. 21 shows the syntax of a signal in accordance with an example of the present principles.

[0035] DETAILED DESCRIPTION

[0036] In describing the various embodiments of the present disclosure, certain terminology is used herein for convenience only and should not be considered as limiting such embodiments. In the drawings, the same reference numerals are employed for designating the same elements throughout the several figures and the present description.

[0037] Referring to the drawings, there is shown in FIG. 1 a block diagram illustrating an example system 100 in which embodiments of the present disclosure can be implemented. The system 100 may be an electronic device including, for example, a personal computer, laptop computer, mobile phone, tablet computer, multimedia set-top box, digital television receiver, personal video recording system, connected home appliance, vehicle control and / or entertainment system, and server. One or more elements of the system 100, singly or in combination, may be implemented as an integrated circuit (IC), multiple ICs, and / or discrete components. For example, in one embodiment, the processing, encoding and / or decoding elements of system 100 are distributed across multiple ICs and / or discrete components. In some embodiments, the system 100 is communicatively coupled to and / or in communication with other systems or devices, via, for example, a communications bus or dedicated input / output ports.

[0038] One or more of the elements of system 100 may be provided within an integrated housing, with such elements being interconnected and able to transmit data therebetween using any suitable connection arrangement 115 generally known in the art, including, for example, an internal bus (e.g., I2C bus), wiring, and printed circuit boards.

[0039] The system 100 includes at least one processor 110 configured to execute instructions for implementing the embodiments described herein, including signal / data coding and processing. The processor 110 may be a general-purpose processor or microprocessor, digital signal processor (DSP), one or more microprocessors in association with a DSP core, a controller, a microcontroller, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), a state machine, and the like. The processor 110 may include at least one central processing unit (CPU), embedded memory, input and output interfaces, and other circuitries.

[0040] The system 100 includes at least one memory 120, for example, a volatile memory device and / or a non-volatile memory device. The system 100 includes a storage device 140, that may be or include non-volatile memory and / or dynamic volatile memory, including EEPROM, ROM, PROM, RAM, DRAM, SRAM, DDR, flash, magnetic disk drives, solid state drives (SSD) and / or optical disk drives. The storage device 140 may be or include, for example, an internal storage device, an attached storage device, and / or a network accessible storage device. Although shownseparately, the memory 120 and the storage device 140 may be collocated, integrated together, or otherwise combined.

[0041] The system 100 includes an encoder / decoder module 130 configured to process video data and to provide encoded video data or decoded video data. The encoder / decoder module 130 may include one or more processors and / or memory (not shown). Although FIG. 1 depicts the encoder / decoder module 130 as a separate element of system 100, it will be understood that the processor 110 and the encoder / decoder module 130 may be collocated and / or integrated together as a combination of hardware and / or software, e.g., in an electronic package or chip. The encoder / decoder module 130 may be or include one or more modules that may be included in one or more separate devices that perform encoding and / or decoding functions.

[0042] Instructions for execution by the processor 110 and / or the encoder / decoder module 130 may be stored in the storage device 140 and subsequently loaded into memory 120 for execution by the processor 110. In some embodiments, one or more of processor 110, memory 120, storage device 140, and encoder / decoder module 130 may store one or more items when performing the processes disclosed herein. Such items may include input video, decoded video or portions thereof, bitstreams, matrices, variables, operational logic, and intermediate and / or final results from processing of equations, formulas, or operations.

[0043] In some embodiments, the memory of the processor 110 and / or the encoder / decoder module 130 is used to store instructions and / or provide working memory for video encoding and decoding functions. In some embodiments, memory external to the processor 110 and / or the encoder / decoder module 130 (e.g., the memory 120 and / or the storage device 140) is used for one or more of these functions and / or, for example, to store the operating system of a television.

[0044] The system 100 may obtain or receive information via one or more input devices, interfaces, and / or ports as indicated in input block 105. Examples of the input devices include a radio frequency (RF) device for transmitting and / or receiving RF signals over various media, for example, RF signals received over the air from a broadcaster; component video (COMP) inputs; a Universal Serial Bus (USB) input; and / or a High-Definition Multimedia Interface (HDMI) input. Other examples include composite video input (not shown). In some embodiments, the input devices are associated with respective input processing elements, e.g., those generally known in the art. For example, the RF device may be associated with elements suitable for selecting a desired frequency (e.g., selecting or band-limiting a signal) or performing error correction on the signal. The USB and / or HDMI inputs may include respective interface processors and transceivers (or transmitters and receivers) for coupling the system 100 to other devices via USB and / or HDMI ports or connections. Various forms of input processing may be implemented, for example, by and / or within a separate input processing device or the processor 110.

[0045] The system 100 includes a communication interface 150 that enables wired and / or wireless communication with other devices, e.g., via a communication channel 190. Thecommunication interface 150 may include one or more transceivers, modems, network cards and the like. The communication channel 190 may be or include wired and / or wireless mediums.

[0046] In some embodiments, data may be streamed to the system 100 via wired and / or wireless networks. Examples of such wireless networks include cellular, Bluetooth or Wi-Fi (e.g., IEEE 802.11) networks. The wired and / or wireless networks may include one or more base stations (e.g., cellular base stations, access points, etc.), and / or user equipment (e.g. cellular user equipment, stations, etc.), and / or other network elements that communicate with the system 100 via the communication interface 150 and communication channel 190, whereby the system 100 may obtain data streamed from streaming applications (e.g., OTT services) via various networks, including the Internet. In some embodiments, data is streamed to the system 100 via the input block 105 (e.g., using a set-top box that delivers data via the HDMI connection or the RF connection). In some embodiments, data is received by the system 100 in a non-streaming manner.

[0047] The system 100 may provide one or more output signals to one or more output devices. The output devices may include a display device 165 (e.g., touchscreen display, monitor, etc.), an audio device 175 (e.g., speakers), and other peripheral devices 185, including, for example, a stand-alone DVR, a disk player, a stereo system, a lighting system, and other devices that provide a function based on the output of the system 100. The display device 165 can be for a television, tablet, laptop, mobile phone, head-mounted display, or other device. In some embodiments, control signals are communicated between the system 100 and the display device 165, the audio device 175, and / or the peripheral devices 185, enabling device-to-device control with or without user intervention. The output devices may couple to and / or communicate with the system 100 via dedicated connections via respective display, audio, and peripheral interfaces 160, 170, 180. Alternatively, the output devices may couple to and / or communicate with the system 100 via the communication channel 190 and the communication interface 150.

[0048] The display device 165 and the audio device 175 may be collocated, integrated, or otherwise combined with the other components of system 100 in a single unit (e.g., a television). Alternatively, the display device 165 and the audio device 175 may be separate from one or more of the other components of the system 100. In embodiments in which the display device 165 and the audio device 175 are external components, the output signals may be provided via dedicated outputs and / or connections, including, for example, HDMI ports, USB ports, or COMP outputs.

[0049] FIG. 2 is a block diagram illustrating an example video encoder 200 that may be employed by the system 100 (e.g., via the encoder / decoder module 130) described with respect to FIG. 1. The video encoder 200 may be an encoder that employs video compression technologies, standards, specification, or protocols, including Advanced Video Coding (AVC, H.264 / MPEG-4), High Efficiency Video Coding (HEVC, H.265), Versatile Video Coding (VVC, H.266), Essential Video Coding (EVC, MPEG-5), AOMedia Video 1 (AV1), VP9, or the Enhanced CompressionModel (ECM), and variations or improvements thereof. Those skilled in the art will understand that the various embodiments described herein are not limited to a specific standard and can be applied to other standards and recommendations, as well as extensions thereof.

[0050] Some embodiments disclosed herein are described with reference to a coding unit (CU) or block of a video frame (or a video image or picture) to which coding tools may be applied by the video encoder 200 and / or by the video decoder 300 (described below with reference to FIG.

[0051] 3). Generally, embodiments described herein may be applied to a video region formed by a video partition of any shape or size. The video region may be a video slice, a coding tree unit (CTU), or a CU (to which inter prediction or intra prediction can be applied), or a partition thereof, each of which can include samples of a luma component, Y, and chroma components, U and V (also denoted herein by C).

[0052] Referring generally to FIG. 2 and the video encoder 200, video data (e.g., one or more video frames) is encoded generally as described below. Prior to encoding, video data may be pre-processed by a precoding processor (not shown). The pre-processing may include, for example, applying a color model transform to the input color components of the input video data (e.g., conversion from RGB 4:4:4 to YUV 4:2:0) or mapping the color components of the input video data to obtain a signal distribution that is more resilient to compression (for instance, applying a histogram equalizer and / or a denoising filter to one or more of the video data’s color components). The pre-processing may include associating metadata (for example, a supplemental enhancement information (SEI) message) with the video data that can be attached to a coded video bitstream. After pre-processing, if any, an image (frame) to be encoded is partitioned into CUs (blocks) by an image partitioner 202.

[0053] In general, a CU includes a luma block and associated chroma blocks. As such, functions of the video encoder 200 described herein as applied to a CU refer generally to the luma block and the respective chroma blocks. The CUs may be encoded using an intra prediction mode performed by an intra predictor 260. In intra prediction mode, the content of a CU in a frame is predicted based on content from one or more other CUs of the same frame (or region), using reconstructed blocks of other CUs output from an adder 255. The CUs may also or alternatively be encoded using an inter prediction mode, in which motion estimation and motion compensation are performed by a motion estimator 275 and a motion compensator 270, respectively. In inter prediction mode, the content of a CU in a frame is predicted based on content from one or more reconstructed areas of reference frames, available from a reference picture buffer 280.

[0054] The video encoder 200 selects or otherwise determines at 205 which prediction mode (intra prediction mode and / or inter prediction mode) to use for encoding a CU. The selected prediction mode may be enhanced (e.g., filtered) by a prediction enhancer 285. Based on the selected mode, a prediction for the CU is generated. A residual block is determined based on theprediction (i.e., prediction block, predicted CU) and the input CU. In some embodiments, such determination is made by a subtractor 210.

[0055] The residual block or a partition thereof (e.g., a transform block) is transformed into transform coefficients by a transformer 220. The transform coefficients are quantized by a quantizer 230. An entropy encoder 245 performs entropy encoding of the quantized transform coefficients and coding parameters (e.g., syntax elements including motion vectors and other control data) to form a bitstream of coded video data.

[0056] In addition to coding the original video blocks as described herein, the video encoder 200 reconstructs the coded blocks to provide references for future predictions. Thus, quantized transform coefficients (from the quantizer 230) are de-quantized by an inverse quantizer 240, and inverse transformed by an inverse transformer 250, to reconstruct (decode) the residual blocks. The reconstructed residual blocks and prediction blocks are combined (e.g., by the adder 255) to form reconstructed blocks. Thus, the video encoder 200 performs decoding operations through which the encoded images (frames) are reconstructed.

[0057] In-loop filters 265 may be applied to the reconstructed image (formed by the reconstructed blocks). The filtered reconstructed image(s) are stored in the reference picture buffer 280 and used by the motion estimator 275 and motion compensator 270, as explained above. The in-loop filters 265 can be applied to the reconstructed samples of an image to reduce distortions introduced by the encoding process. For example, a deblocking filter (DBF), bilateral filter (BIF), sample adaptive offset (SAO), and / or adaptive loop filter (ALF) can be applied to reduce encoding artifacts.

[0058] FIG. 3 is a block diagram illustrating an example of video decoder 300 that may be employed by the system 100 (e.g., via the encoder / decoder module 130) described with respect to FIG. 1. Generally, operational features of the video decoder 300 are reciprocal to operational features of the video encoder 200. In the video decoder 300, a coded video bitstream (e.g., generated by the video encoder 200 or another video encoding device or process) is entropy-decoded by an entropy decoder 330 to obtain transform coefficients, motion vectors, and other coding parameters. Based on the coding parameters, an image partitioner 335 divides the picture accordingly. The quantized transform coefficients are de-quantized by an inverse quantizer 340, and inverse transformed by an inverse transformer 350 to decode (reconstruct) respective residual blocks. Depending on the selected prediction mode, a predicted block can be obtained at 370 from an intra predictor 360 (i.e., intra prediction) or from a motion compensator 375 (i.e., inter prediction) and may be enhanced (e.g., filtered) by a prediction enhancer 390, generating a prediction block. The reconstructed residual blocks are combined with prediction blocks (e.g. by an adder 355), resulting in reconstructed blocks.

[0059] In-loop filters 365 (e.g., DBF, BIF, SAO, and / or ALF) can be applied to the reconstructed image (formed by the reconstructed blocks), to output reconstructed (decoded) video. The filteredreconstructed image is also stored in a reference picture buffer 380 for reference by the motion compensator 375.

[0060] A post-decoding processor (not shown) can process the reconstructed video data. For example, post-decoding processing can include an inverse color model transform (e.g., conversion from YUV 4:2:0 to RGB 4:4:4) or an inverse mapping to reverse the mapping process performed by the pre-encoding processor described with respect to FIG. 2. The post-decoding processor can use metadata derived by the pre-encoding processor and / or signaled in the video bitstream.

[0061] Embodiments described herein relate to Quantization constrained correction filter.

[0062] In video compression systems, in-loop filters are used to enhance reconstructed images before storing them in the reference buffer. In-loop filters form a whole family. Among them, deblocking filters (DBF) aim at reducing blocking artifacts occurring along block boundaries. Deblocking filters are usually designed to improve subjective quality, that is, the noticeability by the human visual system of such coding errors. In usual video coding standards such as HEVC and VVC, deblocking filters are predetermined based on coding information (such as prediction modes, motion vectors, transform coefficients) and on local variations across block boundaries. On the other hand, adaptive loop filters (ALF) are learnt at encoder side in order to minimize the mean squared error with respect to source images, then the learned filter weights are written to the bitstream. Adaptive loop filters are applied at CTU-level, while deblocking filters are run along block borders.

[0063] In the International application W02024200011, a quantization-constrained (QC) correction filter adds a complementary step to existing filters with the goal to prevent these filters from losing information carried by the quantized transform coefficients signaled in the bitstream, while still preserving the filtering effect.

[0064] Embodiments described herein provide for adapting the QC correction for blocks encoded with the Dependent Quantization tool (DepQuant) instead of uniform quantization.

[0065] Scalar quantization in High Efficiency Video Coding (HEVC)

[0066] HEVC and VVC standards specify conventional independent scalar quantization with Uniform Reconstruction Quantizers (URQs). The reconstructed transform coefficients crof URQs are completely denoted by integer multiples of a quantization step size A (a.k.a. quantization step) which depends on a quantization parameter (QP). This integer specifies the associated transform coefficient level, which is transmitted in the bitstream as quantization levels cq. On the decoder side, given a quantization level cqand a quantization step size A, a reconstructed transform coefficient crmay be generated as follows:2025P00019WG

[0067] c

[0068]

[0069] r Q (cq)—X A (1) On the encoder side, given a coefficient c (a.k.a a transform coefficient or more precisely a prediction residual transform coefficient) and a quantization step size A, a quantization level cqmay be generated as follows:

[0070] cq= Q(c) = [abs(c) / A + a] x sgn(c), (2) where [. J is the floor operation (i.e. rounding to the lower integer), abs is the absolute value, sgn is the sign function (i.e. returns 1 if c>0, -1 if c<0 and 0 if c=0), and a is a parameter such that 0<a<1. With this quantization method, every quantization level cqis associated to quantization bounds infQ(cq) and supQ(cq) such that an original coefficient c between infQ(cq) and supQ(cq') is quantized to cq. Hence assuming this quantization method was used by the encoder, and given a quantization level cq, the original coefficient c associated with cqis known to be between infQ(cq) and supQ(cq), as illustrated in FIG. 4. In the case of uniform quantization with quantization step size A and parameter a, the inferior and superior quantization bounds are defined as follows:

[0071] . r ( x f (f-q ^max)' A if cq< 0lnfo{ca) = \ r ( > (3a) l(cQ+ omin) x A if cq> 0 r x f (f-q Om[n) A if cq< 0 sup0(ca} = >; ', (3b)

[0072]

[0073] V((cq + Omax) X A if cq> 0 with minimum bound offset ominand maximum bound offset omaxdefined as omin= -a and °max = 1 - a. This parameterization of the quantization bounds, and reconstruction values is further illustrated in FIG. 5.

[0074] Both quantization bounds can thus be expressed as (cq+ o) x A, with a bound offset o selected among -omax, -omin, omaxand omin, depending on cqand on the type of quantization bound (inferior or superior). According to Equations 3a, the value of o for an inferior quantization bound is:

[0075] Omax if Oq— 0

[0076] (4a)

[0077]

[0078] TOjnin if Oq > 0 and according to Equations 3b, the value of o for a superior quantization bound is:

[0079] Omin if Cq< 0

[0080] (4b)

[0081]

[0082] +Omaxif Cq> 0

[0083] The encoder may use alternative strategies to select the quantization levels cq. For example, rate distortion optimized quantization (RDOQ) optimizes the quantization levels accounting not only for the distortion (i.e., MSE), but also for the rate. In this case, it is no longer guaranteed that the original coefficients c are between the bounds infQ(cq) and supQ(cq)In the quantization constrained correction, c is assumed to be bounded by infQ(cq) and supQ(cq), where infQ(cq') and supQ(cq) can be determined on the decoder side knowing the quantization level cq, the scalar quantizer Q (a.k.a. scalar quantization operation) and its quantization parameter (QP). If the encoder uses quantization strategies that may break this assumption, such as RDOQ, the method remains applicable.

[0084] Quantization constrained correction filter

[0085] In the quantization-constrained correction filter, a quantization constraint is defined as the following equation:

[0086] QG-x) q> (5)

[0087] where Q is a scalar quantization operation (a.k.a. scalar quantizer), cqis the quantization level of a prediction residual transform coefficient c, and cxis a reconstructed value of the corresponding transform coefficient c. When no in-loop or out-of-loop filter is applied to a reconstructed picture, each coefficient c„ is obtained as c„ = cr. Since cr= Q~1(cnits value is between the quantization bounds

[0088]

[0089] inf(cq') and sup(cq) (see FIG. 4). Therefore, in this case, the quantization constraint Q(cr) = cqis satisfied. Assuming that each quantization level was determined by the encoder as cq= Q(c), where c is the original (unquantized) coefficient, then Q(cr) = <2(c), which is a necessary condition to reconstruct the original coefficient c without error. More generally, the absolute error |cr- c| between a reconstructed coefficient and the corresponding original coefficient is such that 0

[0090]

[0091] < |cr— c| < supQ(cq} — infQ{cq^.

[0092] However, in the case of filtering the reconstructed picture (e.g., with DBF, SAO, ALF, etc.), each coefficient cxis defined as cx= cf, where

[0093]

[0094] is the corresponding prediction residual transform coefficient of said reconstructed and filtered picture (cfmay not be computed explicitly in video coding). In this case, cxmight not satisfy the above quantization constraint anymore, resulting in a loss of information. For example, the DBF filter improves the subjective quality by removing block discontinuities, but it may also remove some details in the filtered area at the borders of the blocks. As a result, for some coefficients, we may have cf>

[0095]

[0096] supQ(cq) or < mfQcq), and thus <2(cy) #= cq. Said otherwise, the quantization constraint is not necessarily satisfied. This results in a sub-optimal MSE of the filtered picture since the corresponding original coefficient c is expected to be in the range [

[0097]

[0098] sup(?(c<?), jnf(3(c(?)]. Thus, is necessarily different from the original coefficient c (i.e. \cf- c| > 0), and the error \cf- c| is not bounded by supQ(

[0099]

[0100] cq') - infQ(cqy Although the ALF filter is designed to reduce the MSE between the original and the reconstructed and filteredpicture, it does not guarantee that the quantization constraint Q(c / ) = cqis satisfied for every coefficient cf, hence potentially leading to sub-optimal MSE given that the quantization levels cqare known to both the encoder and the decoder.

[0101] The QC correction filter solves this problem by enforcing the quantization constraint on the prediction residual transform coefficients of the filtered picture.

[0102] The QC correction is applied to an image block Xfobtained by filtering a block Xrpreviously obtained using conventional reconstruction steps in video coding, as shown in FIG. 6. These reconstruction steps in video coding are for example implemented in the video encoder of FIG. 2 or video decoder of FIG. 3 described above. These steps include:

[0103] Scalar dequantization of quantization levels cqto produce reconstructed coefficients c

[0104]

[0105] r= Q-1(Cg), where the dequantization function Q~ is parameterized by a quantization parameter QP and where each quantization level cqis assigned to a position within the block.

[0106] Inverse transform T-1applied to the coefficients cr, in order to obtain a prediction residual block.

[0107] Reconstruction of the block Xras the sum between the prediction residual block and a prediction block pred.

[0108] After filtering Xrto produce Xf, the QC correction described in FIG. 7 first converts Xfback to prediction residuals and compute its transform coefficients cfin order to correct the values of these coefficients using a correction step that ensures that the quantization constraint Q(

[0109]

[0110] c^) = cqis satisfied for the corrected transform coefficient cf. The corrected transform coefficients are then converted back to obtain the corrected image block XQCFusing the inverse transform T-1and the summation with the prediction pred. The steps of the QC correction are further detailed hereafter: Prediction subtraction: Xfis converted back to prediction residuals. To this aim, the prediction block pred is subtracted from the filtered image block Xfin order to obtain a filtered prediction residual block. The prediction pred is equal to the prediction used in the reconstruction stage. Therefore, the prediction block pred does not have to be computed again using the codec’s prediction mechanisms. Instead, the prediction block pred may be stored in a buffer during the reconstruction and reused for the QC correction.

[0111] Forward Transform: The filtered prediction residual block is then converted back to the transform domain using the forward transform T. In the case where several types of transforms or inverse transforms may be applied (e.g., DCT-II, DST-7, DCT-8), the QC correction uses the forwardtransform T of the same type as the inverse transform T-1used during the reconstruction stage. For example, if a block X is reconstructed using the inverse of the DCT-II by a module 250 of video encoder 200 of FIG. 2 or a module 350 of video decoder 300 of FIG. 3, its corresponding block (i.e. the block of coefficients cfobtained from X) in the QC correction is transformed with forward DCT-II. The forward transform thus produces a new block of prediction residual transform coefficients cf, named more simply transform coefficients cf, each located at a given position within the block. Each transform coefficient cfcan thus be associated with the quantization level cqused during the reconstruction stage, and which is located at the same position within the block.

[0112] Projection to the quantization constraint: Each transform coefficient cfof the block of prediction residual transform coefficients is corrected to obtain a block of corrected prediction residual transform coefficients cj>, named more simply corrected transform coefficient cf. The corrected version is computed as Q- = pro / [(?Q ](cy), where proj[Q<^=Cqiis a correction function (also

[0113]

[0114] called projection function onto the quantization constraint). This correction function ensures that the constraint Q(

[0115]

[0116] c^) = cqis satisfied, where cqis the quantization level associated with cf, and where Q is the scalar quantizer associated to the scalar dequantizer Q~ used in the reconstruction stage. The correction function can be defined as follows:

[0117] proj[Q )=Cq](cf) = min(max (cf, infQcq)), supQ(cq))

[0118]

[0119] It is illustrated in FIG. 8. With this definition, each corrected transform coefficient cfis always between the quantization bounds infQ(cq') and supQ^Cq) of the quantization level cqfor the quantizer Q. Hence cfsatisfies Q(

[0120]

[0121] c^) = cq. However, if cfis already within the quantization bounds, no correction is applied (i.e. cf= cf), which preserves the filtering effect.

[0122] The correction function in Equation (6) is defined to enforce the quantization constraint while also minimizing the squared error (

[0123]

[0124] Q- - cy) between the corrected and the uncorrected transform coefficient. However, other functions may be used. For example, a more general clipping function can be defined as cf= min(max (cf, binf) bsup) where the correction bounds binf, bsupmay be computed similarly

[0125]

[0126] to jn / 7(3(c(?) and supQ(cq) using Equations (3a) and (3b) respectively, but where the values of the parameters ominand omaxare set independently of the parameter a. For example, ominand omaxmay be pre-determined parameters known to both the encoder and decoder. Note that using ominand omaxsuch that -a < omin< omax< 1 - a ensures that i

[0127]

[0128] nfQ^Cq) < bin? < bsup< supQ^Cq). Hence, assuming that cqwas computed with the quantization function in Equation (2) by the encoder, using such values of ominand omaxstill ensures that the quantization constraint Q

[0129]

[0130] (Q-) = cqis satisfied (since infQ(

[0131]

[0132] cq} < binf< c? < bsup< supQ{cq}}.However, if other quantization methods are used by the encoder (e.g., RDOQ), the original coefficient may not be between the bounds jn / 7(3(c(?) and supQ(cq) defined in Equations (3a) and (3b). Hence, in such cases, it may be advantageous to compute the correction bounds binfand bsupusing other values of ominand omaxthat do not necessarily satisfy the constraint -a < omin< Omax — 1 ri.

[0133] In another example, a smooth version of the correction function projQ =Cqimay be used such as:

[0134] cy = s • tanh + t> (7)

[0135]

[0136] with a scale s

[0137]

[0138] =supri(Cq)anc|atranslation t =sup^c^+inf^Cii This smooth function is 2 2

[0139] illustrated by FIG. 9. Similarly to the previous example, the inferior and superior correction bounds binf and bsupmay be used instead of the inferior and superior quantization bounds infQ(

[0140]

[0141] cq) and supQ(Cq) respectively for the computation of the scale and translation parameters s and t.

[0142] In a variant of the QC correction, the minimum and maximum bound offsets ominand omaxmay be enabled or disabled individually. In this variant, there may be either zero, one or two available correction bounds. For example, if cq> 0, ominis enabled and omaxis disabled, then the inferior correction bound binfcan be computed according to Equation (3a) but the superior correction bound bsupcannot be computed according to Equation (3b). In such cases where only the inferior correction bound is available, the correction function may be performed as

[0143]

[0144] cf= max(cp binf). In other cases where only the superior correction bound is available, the correction function may be performed as cf= min(c bsup). Note also that if omaxis disabled and cq= 0, then none of the correction bounds are available (even if ominis enabled). In this case, the QC correction is skipped for the transform coefficient, i.e. cf= cf.

[0145] Inverse Transform and addition with prediction:_After enforcing the quantization-constraint in the residual transform domain, the corrected transform coefficients cfare converted back to the image domain to obtain a final corrected image block XQCF. This is performed by first applying the inverse transform again to obtain a block of corrected prediction residuals. The same inverse transform T-1is used as in the reconstruction stage. Finally, the prediction block pred is added back to the block of corrected prediction residuals to obtain a corrected image block XQCFwhich satisfies the quantization constraint.

[0146] In a variant, QC can be implemented in an alternative manner using the non-filtered reconstructedimage block. In this variant, the QC correction is computed using the non-filtered reconstructed image blockrinstead of the prediction block pred as illustrated in FIG. 10. In this case, a filtering difference block Xf - Xris computed (instead of the prediction residual of the filtered block Xf -pred), and the transform is applied to this block to obtain filtering difference transform coefficients cf. Assuming that the transform is a linear operation, each filtering difference transform coefficient cf is related to the transform coefficient cfas follows:

[0147] cf = cf' + Q"1^)(8)

[0148] As a result, the QC correction may be performed by directly correcting each filtering difference transform coefficient cf using a modified projection function prof to obtain the corrected version cf as follows:

[0149] C

[0150]

[0151] f' = prof(cf) = proj[QQ=Cq]+ Q-1(CQ)) - C’1^) (9)

[0152] The corrected image block XQCFmay be computed using the inverse transform of the block of corrected filtering difference coefficients cf, and by summing the result with the non-filtered reconstructed image block Xr.

[0153] In some cases, the expression of the modified projection function prof may be simplified so that the dequantized quantization level

[0154]

[0155] is not explicitly required to compute cf. For example, considering the quantization bounds defined in Equations (3a) and (3b), and the correction function defined in Equation (6), the modified correction function in Equation (9) then simplifies into:

[0156] proj'(cf’) = min ( maxfcp A^(cQ)Y (10) w

[0157]

[0158] here A^c^) = jn / 7(3(c(?) - Q1(c(?) and AQUp(cq) = supQ(cq') - Q1(c(?) are respectively the inferior and superior bound of the filtering difference transform coefficient associated with a quantization level cq. These bounds are computed as:

[0159] if Cq5= 0 = { TAomjnif cq> 0 (11a)

[0160] ^^min if Cq< 0 TO (11b

[0161]

[0162] if Cq — )

[0163] Similar simplifications of the modified correction function prof may be obtained for different equations of the correction function using the new bounds A

[0164]

[0165] l^(c(?) and AQUp(cq) which can becomputed without using the dequantized quantization level Q~1cqFor example, considering the transform coefficient correction defined in Equation (7), the corresponding modified correction function proj' becomes:

[0166] j + tr(13)

[0167]

[0168] .Asup / \ * inf ( \

[0169] With the same scale s as in Equation (7), s

[0170]

[0171] =SUPQ Cg2m Q Cq= — —Cq2Q— and using a AsuP(c 1

[0172] modified translation t' = — — - — - —

[0173]

[0174] 2

[0175] Analogously to the original correction function in FIG. 7, the modified correction function proj’ in FIG. 10 may be performed as proj'(cf) = min(max (,c, bi'nfj bs’upj where the correction bounds b-nfand bs’upare computed similarly to

[0176]

[0177] and AS P(cq') using Equations (11a) and (11b) respectively, but where the parameters ominand omaxmay have pre-determined values known to the encoder and the decoder (e.g. determined and signaled in a bitstream by the encoder), instead of using om in= —a and omnY= 1 - a.

[0178] Integer bound offset parameterization for integer bound computation

[0179] For practical computation of the bounds using the bound offsets ominand omax, an integer approximation of Equations (3a) and (3b) may be applied, based on an integer parameterization of the bound offsets of the form om,„ = and omn= ■, where Ooand Soare respectively the

[0180]

[0181] integer bound offset parameter and the integer shift parameter of the minimum bound offset, and and Si are respectively the integer bound offset parameter and the integer shift parameter of the maximum bound offset. Each integer bound offset parameter Ot(with i = 0 or i = 1) is represented by bits and a starting value starts i.e., Otcan take 2Niinteger values in the range [starti, starti + 2Ni- 1], For example, the values of SLand starts may be fixed as SL=

[0182]

[0183] - 1 and starts = ~^Slso that the corresponding bound offset has 2Nlpossible values uniformly spaced in the range [-1,1 [. Alternatively, Stand starts may be fixed as St=

[0184]

[0185] - 1 and starts = 1 - 2Slso that the corresponding bound offset has 2Nlpossible values uniformly spaced in the range ]— 1,1],

[0186] In existing video coding standards such as HEVC and VVC, the quantization step 1 is also represented with integer parameters scale^ and shifty as A = scale& / 2shiftii‘ in order to perform dequantization with integer-based computations.

[0187] Based on these integer parameterizations, a correction bound b(cqassociated to a quantization level cqmay be computed using only operations on integers: additions, multiplications and bitshifts (i.e. leftshift «, or rightshift »). For example, using an integer bound offset parameter 0,its corresponding shift S, and the quantization step parameters scale&and shifty a correction bound b(cq) may be computed as:

[0188] > ( (num + add) » shift if shift > 0

[0189]

[0190] [num « —shift if shift < 0

[0191] where num = ([cq« S') + 0^ * scaleA, shift = shifty + S, and add is a value determined

[0192]

[0193] depending on the rounding strategy. For example, using add = 1 « (shift - 1), Equation (14) num

[0194] approximates the result of the division

[0195]

[0196] with the closest integer when shift > 0.

[0197] For each transform coefficient cfassociated to a quantization level cq, its inferior and superior correction bounds binfand bsupmay thus be computed with this method using values of 0 and S selected depending on the sign of cqas illustrated in FIG. 11. For example, considering the integer parameterization of omin(with O0and So) and omax(with Cf and Sf), the inferior bound in Equation (3a) may be approximated by an inferior correction bound binfcomputed with Equation (14) where S and 0 are obtained as S = St and 0 = -01if cq< 0, or S = Soand 0 = O0if cq> 0. Similarly, the superior bound in Equation (3b) may be approximated by a superior correction bound bsupcomputed with Equation (14) where S and 0 are obtained as S = Soand 0 = -O0if cq< 0 or S = S and 0 = Cf if cq> 0.

[0198] Using both correction bounds binfand bsup, a correction function is finally applied to the transform coefficient cfto obtain the corrected transform coefficient cf.

[0199] Note that for computing correction bounds binf' and bsup' of a filtering difference coefficient cf', Equation (14) may be used similarly with the same selection of the bound offset parameters 0 and S (based on cq, O0, OltSoand Sf), but where the numerator is computed as num = 0 * scale&(instead of num = ((cq« S') + 0 j * scale^.

[0200]

[0201] Correction of a symmetrized coefficient

[0202] In a variant of the QC correction detailed in FIG. 12, the correction of a coefficient cfassociated with a quantization level cqis performed indirectly by exploiting the symmetry property of the quantization bounds and by applying the correction to a symmetrized coefficient csymassociated with the absolute value abs(c(?) of the quantization level. The symmetrized coefficient csymis equal to cfif cq> 0, or equal to -cfotherwise. The correction bounds of the symmetrized coefficient are then computed, and the correction function is applied to csymto obtain a correctedsymmetrized coefficient csym. Finally, the corrected coefficient cfis equal to csym\f cq>0 or equal to -csymotherwise. In this variant, the inferior bound binfof csymmay be computed with Equation (14) using S =

[0203]

[0204] and 0 = -O if cq= 0 or S = Soand 0 = O0otherwise, and by replacing the quantization level cqby its absolute value abs(cq) in the numerator (i.e., num = {(absCcq) « S) + o) * scaleA). The superior bound may be computed similarly using S = and

[0205]

[0206]

[0207] 0 = O1.

[0208] Dependent Quantization

[0209] In VVC, the Dependent Quantization (DepQuant) tool may be used for quantizing the transform coefficients of a block ( / - / . Schwarz, T. Nguyen, D. Marpe, T. Wiegand, “CE7: Transform coefficient coding and dependent quantization (Tests 7.1.2, 7.2.1)”, JVET-K0071, July 2018). DepQuant is based on two uniform quantizers and for a given transform coefficient, the choice of the quantizer is determined by a state where the transition between the states is realized by a state machine.

[0210] The two scalar quantizers used, denoted by Q0 and Q1, are illustrated in FIG. 13. The location of the available reconstruction levels is uniquely specified by a quantization step size A. If we neglect the fact that the actual reconstruction of transform coefficients uses integer arithmetic, the two scalar quantizers Q0 and Q1 are characterized as follows:

[0211] The reconstruction levels of the first quantizer Q0 are given by the even integer multiples of the quantization step size A. When this quantizer is used, a reconstructed transform coefficient cris calculated according to cr= 2 x cqx A, where cqdenotes the quantization level associated to the transform coefficient.

[0212] The reconstruction levels of the second quantizer Q1 are given by the odd integer multiples of the quantization step size A and, in addition, the reconstruction level equal to zero. The mapping of transform coefficient levels k to reconstructed transform coefficients cris specified by cr= (2cq- sgn(cQ)) x A, where sgn(-) denotes the sign function (i.e., sgn(x) = -1 if x<0, or 1 if x>0 or 0 if x=0).

[0213] For both quantizers, the reconstructed transform coefficients cris thus obtained as cr= qldx x A where qldx is a quantization index obtained as qldx = 2cqif Q0 is used or as qldx = 2cq-sgn(c(?) if Q1 is used. Hence, the reconstruction values in DepQuant are computed the same way as in a Uniform Reconstruction Quantizer, but the computation uses the intermediate quantization index qldx, instead of directly using the quantization level cqobtained from the bitstream.

[0214] The scalar quantizer used (Q0 or Q1) is not explicitly signalled in the bitstream. Instead, the switching between the two scalar quantizers (Q0 and Q1) is realized via a state machine with fourstates as illustrated in FIG. 14. The state can take four different values: 0, 1, 2, 3. It is uniquely determined by the parities of the quantization levels of the transform coefficients preceding the current transform coefficient in coding / reconstruction order.

[0215] At the start of the inverse quantization for a transform block, the state is set equal to 0. The transform coefficients are reconstructed in scanning order (i.e., in the same order they are entropy decoded). After a current transform coefficient is reconstructed, the state is updated as shown in FIG. 14, where cqdenotes the value of the quantization level. Note that the next state only depends on the current state and the parity (cq& 1) of the current quantization level cq.

[0216] The state update can be written as state = stateTransTable[ state ][ cq& 1 ], where stateTransTable represents the table shown in FIG. 14 and the operator & specifies the bitwise “and” operator in two’s-complement arithmetic. Alternatively, the state transition can also be specified without a table look-up:

[0217] state = ( 32040 » ( ( state « 2 ) + ( ( cq& 1 ) « 1 ) ) ) & 3

[0218] At this, the 16-bit value 32040 specifies the state transition table.

[0219] The state uniquely specifies the scalar quantizer used. If the state for a current transform coefficient is equal to 0 or 1, the scalar quantizer Q0 is used. Otherwise (the state is equal to 2 or 3), the scalar quantizer Q1 is used.

[0220] Extensions of Dependent Quantization in ECM

[0221] The DepQuant tools may also be applied with other state transition tables, number of states, or choice of quantizer for each state. For example, DepQuant is also implemented in the ECM software with either 4 or 8 states as described in H. Schwarz, S. Schmidt, P. Haase, T. Nguyen, D. Marpe, T. Wiegand, “Additional support of dependent quantization with 8 states", JVET-Q0243, Jan 2020. In the DepQuant implementation of ECM with either 4 or 8 states, the quantizer is chosen based on the parity of the state: if the state for a current transform coefficient is even (i.e., (state&1)==0), the scalar quantizer Q0 is used. Otherwise (i.e., (state&1)==1), the scalar quantizer Q1 is used. The state transition table is also adapted.

[0222] For 4-states, the transition table is:

[0223] stateT ransT able [ ][] = {{ 0, 1 }, { 2, 3 }, { 1, 0 }, { 3, 2 } } for 4 states, or as

[0224] For 8 states, the transition table is:

[0225] stateTransTable [ ][ ] = {{ 0, 2 }, { 5, 7 }, { 1, 3 }, { 6, 4 }, { 2, 0 }, { 4, 6 }, { 3, 1 }, { 7, 5 }} Alternatively, the state transition can also be specified without a look-up table:

[0226] state = ( stateTransTab » ((state«3)+((cf?&1)«2)) ) & 15where stateTransTab is a value representing the state transition table that depends on whether 4 or 8 states are used (stateTransTab=587280912 for 4 states or stateTransTab =6274468666787591456 for 8-states).

[0227] In the quantization constrained correction method described above, the computation of the correction bounds is performed assuming that the transform coefficients are reconstructed from the quantization levels using a Uniform Reconstruction Quantizer.

[0228] However, when a DepQuanttool is used for a block, the quantization levels may result in different reconstruction values of the transform coefficient. Hence, the correction bounds computed in the QC correction as described above may not be suitable for correcting these transform coefficients. The DepQuant tools thus requires adjustments of the correction bounds computation in the QC correction method.

[0229] Embodiments are described herein that provide an adapted QC correction method which computes suitable correction bounds for the transform coefficients of blocks encoded using the DepQuant tool.

[0230] In an embodiment, the correction bounds associated to a quantization level cqare determined using the intermediate quantization index qldx of DepQuant, instead of directly using the quantization level cq.

[0231] Another embodiment is provided for resizing a bound offset o in order to preserve the relationship between the bound offset o and the position of the corresponding correction bound relatively to the reconstruction values of the selected quantizer.

[0232] Another embodiment is provided for further adjusting the quantization level cqand the bound offset o for the case where the absolute value of the bound offset is higher than 1.

[0233] A further embodiment is provided for adaptations of the correction bound computation for the case of correcting a filtering difference transform coefficient (i.e., for QC correction using a nonfiltered reconstructed block Xrinstead of a prediction block pred).

[0234] The embodiments described herein can be implemented in a video encoder and a video decoder to encode image block of a video, for example the encoder 200 of FIG.2 and the decoder 300 of FIG. 3.

[0235] FIG. 15 illustrates, in an embodiment, an example of a method 1500 for quantization-constrained correction of a block quantized with dependent quantization DepQuant. At 1510, a reconstructed image block is determined from a prediction block and a reconstructed prediction residual, and a filtered version of the reconstructed image block is obtained. This corresponds to the reconstruction of the image block after decoding at the decoder or encoding decoding at theencoder. For example, the filtered version of the reconstructed image block is the reconstructed block Xf from FIG. 6.

[0236] At 1520, a transform block is determined for a residual obtained between the filtered reconstructed image block and the prediction block as in FIG. 7 or obtained between the filtered reconstructed image block and the non-filtered reconstructed image block as in FIG. 10. For example, as explained above, the transform block is obtained by applying the same transform on the residual as the one used for encoding the image block. A quantization index of the dependent quantization used for quantizing and dequantizing the image block is obtained for at least one transform coefficient of the transform block. As described further below, in a variant, the quantization index can be determined by applying the same state transition process as when dequantizing the decoded transformed coefficients of the image block. The quantization index is thus obtained based on a decoded quantization level obtained for a position of the at least one transform coefficient in the transform block and a current state of the dependent quantization when dequantizing the decoded quantization level. In another variant, the quantization index can be retrieved from memory if the quantization indexes have been stored during dequantizing.

[0237] At 1530, at least one correction bound is determined based on the quantization index, a bound offset and a quantization step size of the dependent quantization. The correction bound can be determined for an inferior correction bound or a superior correction bound. In a variant, a first correction bound can be determined for the inferior correction bound and a second correction bound can be determined for a superior correction bound. In a variant, the inferior correction bound and superior correction bound can correspond to the inferior quantization bound infQ(^cq^ and superior quantization bound supQ(cq^ mentioned above. In another variant, as the true quantization bounds might not be known, the correction process then uses inferior and superior correction bounds instead of the inferior and superior quantization bounds. These inferior and superior correction bounds can be derived from the quantization bounds equations described above, but computed from arbitrary bound offset value. In this variant, the inferior correction bound and superior correction bound can correspond to the inferior correction bound binfand superior correction bound bsupmentioned above.

[0238] In a variant, the bound offset is determined from one of a minimum bound offset or a maximum bound offset depending on a decoded quantization level obtained for a position of the at least one transform coefficient in the transform block and depending on whether the bound offset is determined for an inferior correction bound or a superior correction bound. For example, the bound offset can be determined using Equations (4a) and (4b) described above.

[0239] In some variant, the minimum bound offset and / or maximum bound offset can be determined based on the parameter a of the quantizer. In other variants, the minimum bound offset and / or maximum bound offset can be transmitted in a bitstream and signaled to the decoder.At 1540, the at least one transform coefficient is corrected as a function of the at least one correction bound providing at least one corrected transform coefficient. For example, when the bound offset is determined for an inferior correction bound, the transform coefficient is corrected by setting the transform coefficient to a new value when the transform coefficient is below the inferior correction bound. The new value can be the inferior correction bound or another value above the inferior correction bound. In another example, when the bound offset is determined for a superior correction bound, the transform coefficient is corrected by setting the transform coefficient to another new value when the transform coefficient is above the superior correction bound. The other new value can be the superior correction bound or a value below the superior correction bound. For example, the functions from FIG. 8 or 9 can be used to provide the new values.

[0240] When the transform coefficient satisfies the QC constraint (its value is between the inferior correction bound and the superior correction bound), its value is not changed / corrected.

[0241] When all transform coefficients of the transform block have been processed and eventually corrected, a corrected version of the transform block is provided that comprises the corrected transform coefficients and used to obtain a corrected version of the reconstructed image block.

[0242] Further details of the embodiment of FIG. 15 are provided below along with variants.

[0243] QC correction based on a state-dependent quantization index

[0244] In the QC correction, if we neglect the fact that actual computations are performed with integer arithmetic, a correction bound b (i.e., either inferior correction bound binfor superior correction bound bsup) is obtained by summing the current reconstruction value with the product of a bound offset o and the quantization step A as follows:

[0245] b

[0246]

[0247] = (T1^) + o x A (15)

[0248] where o is defined according to Equation (4a) for an inferior correction bound or Equation (4b) for a superior correction bound. When a URQ is used, we have

[0249]

[0250] = cqx A (see Equation (1)), which leads to the correction bound b = (cq+ o) x A. However, in the dequantization of DepQuant, an intermediate quantization index qldx is used instead of cq,

[0251]

[0252] i.e., = qldx x A. The quantization index qldx depends on the quantization level cqand the selected quantizer Q0 or Q1, where the selection depends on the current DepQuant state. For example, in VVC, qldx = 2cqif state>1 (i.e., Q0 selected), or qldx = (2cq- sgn(cQ)) otherwise (i.e., Q1 selected). In ECM, qldx = 2cqif state&1==0 (i.e., Q0 selected), or qldx = (2cq- sgn(cq)) otherwise (i.e., Q1 selected). As a result, the correction bound equation becomes b = qldx + o) x A.Hence, in an embodiment depicted in FIG. 16, the QC correction is adapted for a block coded with DepQuant by using the quantization index qldx instead of directly using the quantization level cqfor the computation of correction bounds. For that purpose, at 1610, a state is first initialized with the same initialization value as in the dequantization (e.g., state=0). Then, the transform coefficient positions in the block are scanned (1620) in the same scanning order as in the dequantization.

[0253] For each transform coefficient in the scanning order, the quantization step A is obtained (1630) as well as the bound offsets (e.g., minimum bound offset omin, and maximum bound offset omax). The quantization index qldx is then obtained (1640) based on the state and the quantization level cq. The value of qldx should be obtained the same way as in the dequantization process (e.g., for ECM: qldx = 2cqif state&1==0, or qldx = 2cq- sgn(cq) otherwise).

[0254] Then, at least one correction bound is computed (1650) based on the quantization index qldx, the quantization step A, and the bound offsets. For example, an inferior correction bound binfmay be computed (e.g., with Equations 3a using qldx instead of cQ), or a superior correction bound bsupmay be computed (e.g., with Equations 3b using qldx instead of cq). Note that the correction bound may also be computed only with integer-based operations as in FIG. 11 by obtaining the integer parameters of the quantization step A (e.g., scale&, shifty) and the bound offsets ominand omax(e.g., O0, So, OltS. In this case, the computation of binfor bsupusing bound offset parameters O and S in FIG. 11 is performed as in Equation (14), where cqis replaced with qldx. The QC correction is then applied (1660) to the transform coefficient cfbased on the correction bound(s) by applying a correction function to cfto obtain the corrected transform coefficient cf(e.g., cj^ = min(max (c, binf) bsup)). Alternatively, the correction may be applied to the symmetrized coefficient csymas in FIG. 12. In this case, the computation of the at least one correction bound is performed based on a symmetrized quantization index qldx_sym associated with the absolute value abs(

[0255]

[0256] cq~) of the quantization level. The symmetrized quantization index qldx_sym may be directly obtained from abs(

[0257]

[0258] cq~) (e.g., qldx_sym = 2abs(cq~) if Q0 is selected or qldx_sym = (2abs(c(?) - 1) otherwise), or may be obtained from the quantization index qldx as qldx_sym = abs^qldx).

[0259] Finally, the state is updated (1670) using the same state update process as in the dequantization (e.g., state transition based on the current state and the parity of cqas illustrated in FIG. 14). In a variant, the computation of at least one correction bound may be skipped. For example, if the maximum bound offset omaxis disabled (i.e., only the minimum bound offsets ominis enabled) and the quantization level cqis equal to 0, then none of the inferior or superior correction bounds can be computed. In this case, the QC correction of cfis also skipped, but the state update is stillperformed in order to obtain the correct state for the next transform coefficients in the block. In another variant, the state update may be skipped for some transform coefficients. For example, for the last transform coefficient position in the scanning order, the state update is not necessary since there is no further transform coefficient to be processed. Furthermore, considering the state transition process in FIG. 14, if the quantization level cqis equal to 0 (or is an even number) and the state is at its initial value of 0, then the next state remains equal to 0. As a result, the state update may be skipped for the first transform coefficients in the scanning order, until a quantization level with non-zero value (or odd value) is found.

[0260] In another variant, when a block is coded with DepQuant, for each transform coefficient in the block, the corresponding quantization index qldx is computed and stored during the dequantization process. Then, when the QC correction step is performed for the block, each transform coefficient may be corrected by reusing the stored quantization index qldx at the corresponding position in the block. Therefore, in this variant, the state initialization, the computation of qldx, and the state update, may be skipped during the QC correction of the block.

[0261] Adjustments of correction bound computation based on quantizer, quantization level and bound offset

[0262] According to Equation (15), correction bounds are obtained by summing the current reconstruction value

[0263]

[0264] with the product of a bound offset o and the quantization step A. As a result, for a URQ quantizer with a constant quantization step A between consecutive reconstruction values, o determines the position of the correction bound relatively to the reconstruction values such that integer values of o correspond to a correction bound equal to the reconstruction value <2-1(c(?+ o). More generally, any decimal value of o corresponds to a correction bound equal to Q~1cq+ o), where the function Q-1is the linear interpolation of the discrete dequantization function Q~ For example, considering a bound offset o in the range [0,1] the corresponding correction bound is linearly interpolated between the current reconstruction value Q-1(c (corresponding to o = 0) and the next one Q~1cq+ 1) (corresponding to o = 1). However, in DepQuant, although the distance between consecutive reconstruction values is also equal to the quantization step A when considering the reconstruction values of all the quantizers (e.g., Q0 and Q1), this is not the case for each quantizer taken individually, as illustrated in FIG.

[0265] 17. For example, the quantizer Q0 is uniform but has a quantization step 221. The quantizer Q1 is non-uniform with a quantization step A between the reconstruction values

[0266]

[0267] 1), <2-1(0) and (1), and a quantization step 221 otherwise. Hence, the correction bounds computation may be further adapted in order to preserve the relationship between the bound offset o and the position of the corresponding correction bound relatively to the reconstruction values of the selectedquantizer.

[0268] Bound offset resizing

[0269] First, we consider the case where the bound offset o is in the range [-1,1]. In this case, the correction bound is expected to be between the current reconstruction value Q~1(

[0270]

[0271] cq') and either the previous one Q~1cq- 1) if o < 0, or the next one Q~1cq+ 1) if o > 0. Hence, the computation of a correction bound b may be adapted as b =

[0272]

[0273] + o x n x A, where n x A is the distance between

[0274]

[0275] and Q~1cq+ sgn(o)). The size factor n thus depends on the quantizer selection, the quantization level cqand the sign of o. For example, for the DepQuant quantizers in FIG.17, n may be determined as n = 2 if at least one of the following conditions is satisfied: “Q0 is selected”, or “abs(cq) > 1”, or “cq== 1 && o > 0”, or “cq== -1 && o < 0”. Otherwise n is equal to 1. More generally, for any scalar quantizer, the size factor n may be explicitly computed as the distance between the two reconstruction values

[0276]

[0277] and Q~1cq+ sgn(o)) divided by the quantization step (i.e., n = abs Q1(

[0278]

[0279] cq) - Q1cq+ sgn(o)) / A).

[0280] The adapted bound offset equation can now be expressed as b = <2-1(c(?) + oresizex A, using a resized bound offset oresize= o x n. This is equivalent to the original correction bound computation in Equation (15) where a resized bound offset oresizeis used instead of the original bound offset o.

[0281] Hence in an embodiment, the computation of the correction bound is adapted by using a resized bound offset oresize= o x n instead of directly using the original bound offset o, where the size factor n is determined based on the quantizer selection, the quantization level cqand the sign function of o.

[0282] FIG. 18 depicts a method 1800 for the computation of a correction bound according to this embodiment, given a quantization level cq(e.g., decoded from a bitstream), a bound offset o (e.g., obtained with Equation (4a) or (4b)), a quantization step A, and information indicating which quantizer is selected (e.g., state variable of DepQuant indicating if Q0 or Q1 is selected).

[0283] Similarly to FIG. 16, a quantization index qldx is obtained (1810) the same way as in the dequantization process, based on the quantizer selection and the quantization level cq.

[0284] The size factor is selected (1820) based on the quantizer selection, the quantization level cq, and the sign of the bound offset o. For example, n may be determined as n = 2 if at least one of the following conditions is satisfied: “Q0 is selected”, or “abs(Cq) > 1”, or “cq== 1 && o > 0”, or “cq== -1 && o < 0”. Otherwise n is equal to 1. The resized bound offset is then obtained (1830) as Oresize O X l.

[0285] Finally, the correction bound b is computed (1840) based on the quantization index qldx, the quantization step A and the resized bound offset oresize. For example, the correction bound may be computed directly as b = qldx + oresize) x A.

[0286] The computation may also be performed with integer arithmetic using the integer parameters scale&and shifty of the quantization step A (i.e., A = scale& / 2shiftii‘ ) and the integer bound offset O and integer shift S of the bound offset o (i.e., o = ), where O and S may be obtained as in FIG. 11 or FIG. 12. Assuming that the size factor n is an integer, the integer parameters of the resized bound offset may be represented as Oresize= 0 x n and Sresize= S. More specifically, in the case of the quantizers Q0 and Q1 in FIG. 17, the value of the size factor n is either 1 or 2. Hence, the resized bound offset may be alternatively represented with Oresize= 0 and Sresize= ( S if n = 1

[0287] ] > Finally, the integer-based correction bound computation may be performed as in Equation (14), using qldx instead of cqand using the integer parameters Oresizeand Sresizeof the resized bound offset oresizeinstead of the integer parameters 0 and S of the original bound offset o.

[0288] Further adjustment of the quantization index qldx and bound offset o

[0289] For the general case where the absolute value of the bound offset abs(o) may be higher than 1, further adaptions may be performed in order to compute the correction bound as b = Q~1cq+ o). For that purpose, the bound offset o may be decomposed into its integer part int(o) = ( [oj if o > 0 (o - [oj if o > 0

[0290] „ and its fractional part frac(o) =,

[0291] (Jo | if o < 0 (o — |o| r o < 0

[0292] Using this decomposition, it can be noted that Q~1cq+o) is linearly interpolated between the reconstruction value Q~1cq+ int(o)) (corresponding to frac(o)=0) and either the previous one if frac(o) < 0, or the next one if frac(o) > 0.

[0293] Using an adjusted quantization level cqdJ= cq+ int(o) and an adjusted bound offset oadj= frac(o), the correction bound b can be expressed as b = <2-1(

[0294]

[0295] c“dJ) + oadjx n x A, where n xA is the distance between <2-1(c“dJ) and <2-1(c“dJ+ sgn(o“dJ)).

[0296] Hence, in an embodiment, the computation of the correction bound is adapted by using an adjusted quantization level cqdJ= cq+ int(o) instead of directly using the original quantization level cq, and an adjusted bound offset oadj= frac(o) instead of directly using the original boundoffset o.

[0297] For example, FIG. 19 depicts a method 1900 for the computation of a correction bound according to this embodiment, given a quantization level cq(e.g., decoded from a bitstream), a bound offset o (e.g., obtained with Equation (4a) or (4b)), a quantization step A, and information indicating which quantizer is selected (e.g., state variable of DepQuant indicating if Q0 or Q1 is selected). The adjusted quantization level c“dJ= cq+ int(o) and adjusted bound offsets oadj= frac(o) are computed first (1910). Then, the same steps as in FIG. 18 are performed (1920, 1930, 1940, 1950) using cqdjinstead of the original quantization level cq, and oadjinstead of the original bound offset o. Note that in this case, since the quantization index qldx is obtained based on cqdJinstead of cq, its value may be different from the quantization index used during the dequantization process.

[0298] Case filtering difference transform coefficients

[0299] In another embodiment, the QC correction is based on the non-filtered reconstructed block Xrinstead of the prediction block pred as in FIG. 10. In this case, each filtering difference transform coefficient cf is corrected using a correction bound b’. The general relationship between a correction bound b’ of a filtering difference transform coefficient and the corresponding correction bound b of the transform coefficient cfis

[0300]

[0301] b’ = b - (see definition of the quantization bounds in Equation (10)).

[0302] Furthermore, in this embodiment, the adaptations of the correction bounds computation in FIG.

[0303] 18 and FIG. 19 are derived from a generalized equation of the correction bound b = Q~1cq+ o), where the function Q-1is the linear interpolation of the discrete dequantization function Q~. In the case of DepQuant, we thus have br= Q-1cq+ o)

[0304]

[0305] - = Q-1cq+ int(o)) + frac(

[0306]

[0307] o) x n x A -1(c^), where n is the size factor.

[0308] If o is in the range [-1,1], this simplifies into br= o x n x A. Therefore, in this case, the adaptation of the correction bound computation in FIG. 18 applies similarly for correcting a filtering difference transform coefficient c. However, in the last step, the computation of the correction bound b’ is only based on the quantization step A and the resized bound offset oresize= o x n. For example, b' may be directly computed as the product oresizex A or may be computed with integer arithmetic using Equation (14) where num = Oresize* scale&and shift = shifty + Sresize, and where Oresizeand Sresizeare the integer parameters of the resized bound offset. Therefore, obtaining the quantization index qldx in the first step is not necessary and may be skipped.More generally, for any value of o, we have b' = Q1(

[0309]

[0310] cqdJ) + oadjxn x A - Q1(c(?), where c“dJ= cq+ int(o) is the adjusted quantization level and oadJ= frac(o) is the adjusted bound offset. Let us note qldx_org the quantization index obtained based on the original quantization level cqand the quantizer selection, and qldx_adj the quantization index obtained based on the adjusted quantization level cqdJand the quantizer selection. Thus, we have b' = qldx + oadjx n) x A, where the quantization index is qldx=qldx_adj - qldx_org. Hence for any bound offset value, the adaption of the correction bound computation illustrated in FIG. 19 applies similarly for correcting a filtering difference transform coefficient cf’. However, instead of directly obtaining the quantization qldx from the adjusted quantization level cqdj(i.e., using qldx=qldx_adj), it is computed using both the adjusted quantization level cqdjand the original quantization level cq(i.e., qldx=qldx_adj - qldx_org).

[0311] The methods described herein in relation with FIG. 15-19 can be implemented in a method for encoding the image block or decoding the block. More generally, these methods can be implemented in a video encoder, for example the video encoder 200 of FIG. 2, for encoding an image or a video or in a video decoder, for example the video decoder 300 of FIG. 3, for decoding an image or a video. The QC correction process is thus implemented in a similar manner at the encoder and the decoder.

[0312] In an embodiment, illustrated in FIG. 20, in a transmission context between two remote devices A and B over a communication network NET, the device A comprises a processor in relation with memory RAM and ROM which are configured to implement a method for encoding an image or a video according to any one of the embodiments described herein and the device B comprises a processor in relation with memory RAM and ROM which are configured to implement a method for decoding an image or a video according to any one of the embodiments described herein. In accordance with an example, the network is a broadcast network, adapted to broadcast / transmit a coded video from device A to decoding devices including the device B.

[0313] FIG. 21 shows an example of the syntax of a signal transmitted over a packet-based transmission protocol. Each transmitted packet P comprises a header H and a payload PAYLOAD. In some embodiments, the payload PAYLOAD may comprise data representative of the image or video encoded according to any one of the embodiments described above. The payload can also comprise any signaling as described above.

[0314] One or more embodiments provide a computer program comprising instructions which when executed by one or more processors cause such processors to perform the encoding and / ordecoding methods according to any of the embodiments described above. One or more embodiments also provide a computer readable storage medium having stored thereon instructions for encoding or decoding video data according to the methods described above. One or more embodiments provide a computer readable storage medium having stored thereon video data generated according to the methods described above. One or more embodiments also provide a method and apparatus for transmitting or receiving video data generated according to the methods described above.

[0315] The embodiments described herein may be implemented in, for example, a method or a process, an apparatus, a software program, a data stream, or a signal. Even if only discussed in the context of a single form of implementation (e.g., as a method), the implementation of such features may also be implemented in other forms. An apparatus may be implemented in, for example, appropriate hardware, software, and firmware. Corresponding methods may be implemented in, for example, a processor.

[0316] Various methods and aspects described herein can be used to modify one or more modules. For example, the intra predictors and inter predictors described with respect to FIGs. 2 and 3 may be implemented as one or more modules and modified according to the various embodiments of the present disclosure.

[0317] The various embodiments described herein provide at least the following features, devices or aspects, alone or on any combination, across various claim categories and types:

[0318] i. Encoding, into coded video data, syntax elements that can enable the decoder to decode the coded video data, according to any of the embodiments described herein. ii. A bitstream that includes one or more of the described syntax elements, or variations thereof, whether transmitted, stored, or otherwise made available.

[0319] iii. Creating, transmitting, receiving, and / or decoding of the bitstream.

[0320] iv. An electronic device (e.g., TV, set-top box, mobile phone, tablet, etc.) that tunes a channel to receive a bitstream or that receives such bitstream over the air. The electronic device decodes the syntax elements from the bitstream, and, optionally, displays (e.g., via a monitor or other type of display) a resulting image. Various numeric values are used in the present application. Such specific values are for example purposes and the embodiments described are not limited to these specific values.

[0321] Various methods are described herein, and such methods comprise one or more steps or actions for achieving the described method. Unless a specific order of steps or actions is required for the proper operation of the method, the order and / or use of specific steps and / or actions may be modified or combined. Additionally, terms such as “first”, “second”, etc. may be used in various embodiments to modify an element, component, step, operation, etc., for example, a “firstdecoding” and a “second decoding”. Use of such terms does not imply an order to the operations unless specifically required.

[0322] The present disclosure may refer to “determining” various pieces of information. Determining information may include one or more of, for example, estimating, calculating, predicting, or retrieving (e.g., from memory) the information.

[0323] The present disclosure may refer to “accessing” various pieces of information. Accessing information may include one or more of, for example, receiving, retrieving (e.g., from memory), storing, moving, copying, calculating, determining, predicting, or estimating the information. Similarly, the present disclosure may refer to “receiving” various pieces of information. Receiving information may include one or more of, for example, accessing or retrieving (e.g., from memory) the information.

[0324] “Decoding,” as used herein, encompasses all or part of the processes performed, for example, on an encoded sequence to produce an output suitable for display. In some embodiments, such processes include one or more of the processes typically performed by a decoder, for example, entropy decoding, inverse quantization, etc. Whether the phrase “decoding process” is intended to refer to a subset of operations or generally to the broader decoding process will be clear based on the context of the specific description and will be well understood by those skilled in the art. “Encoding,” as used herein, encompasses all or part of the processes performed, for example, on input video data an order to produce an encoded bitstream. Additionally, the terms “reconstructed” and “decoded” may be used interchangeably, the terms “encoded” or “coded” may be used interchangeably, the terms “image,” “picture,” “sub-picture,” “slice,” and “frame” may be used interchangeably, and the terms “pixel” and “sample” may be used interchangeably. The present disclosure refers to information, for example, syntax elements, that can be transmitted or stored. Such information can be packaged or arranged in a variety of manners, including for example manners common in video standards such as putting the information into a sequence parameter set (SPS), a picture parameter set (PPS), a network abstraction layer (NAL) unit, a header (for example, a NAL unit header, or a slice header), or an SEI message. Other manners are also available, including, for example, manners that are common for system level or application-level standards such as signaling the information into one or more of the following:

[0325] i. session description protocol (SDP), for example as described in RFCs and / or used in conjunction with real-time transport protocol (RTP) transmission.

[0326] ii. hypertext transfer protocol (HTTP) live Streaming (HLS) manifest transmitted over HTTP.

[0327] iii. dynamic adaptive streaming over HTTP (DASH) media presentation description (MPD) descriptors, for example as used in DASH and transmitted over HTTP. iv. RTP header extensions, for example as used during RTP streaming.v. International Organization for Standardization (ISO) base media file format, for example, as used in Omnidirectional MediA Format (OMAF).

[0328] As used herein, “signal” and “signaling” refer to, among other things, indicating information to a decoder. For example, in some embodiments the encoder signals a quantization matrix for dequantization, whereby the same parameter is used for both encoding and decoding. In some embodiments, the signaling may be explicit, such that information (e.g., a particular parameter) is transmitted to the decoder enabling the decoder to use the same particular parameter. In some embodiments, the signaling may be implicit, in that the information (e.g., a particular parameter) is indicated based on other information at or transmitted to the decoder or derived or selected by the decoder based on information available at the decoder. By not transmitting the information (e.g., the particular parameter), a bit savings is thus realized in some embodiments. In some embodiments, one or more syntax elements or flags are used to signal information to a decoder. While the preceding relates to the verb form of the word “signal”, the word “signal” can also be used herein as a noun.

[0329] In some embodiments, signals may be produced that are formatted to carry information that may be stored or transmitted. Such information may include, for example, instructions for performing a method, or data produced by one of the described implementations (e.g., a bitstream of a described embodiment). Such a signal may be formatted, for example, as an electromagnetic wave or as a baseband signal. The formatting may include, for example, encoding a data stream and modulating a carrier with the encoded data stream. The information that the signal carries may be, for example, analog or digital information. The signal may be transmitted over a variety of different wired or wireless links and may be stored on a processor-readable medium.

[0330] It is to be understood that use of any of the following 7”, “and / or”, and “at least one of” is intended to encompass all possible selections of listed items, taken either individually or in any combination thereof.

[0331] While specific embodiments have been described in the foregoing description in connection with the accompanying drawings, it should be understood that embodiments described herein are examples only and should not be taken as limiting the scope of the present disclosure or the following claims. Although features and elements are described herein in particular combinations, those of ordinary skill in the art will appreciate that such features or elements may be used alone or in any combination with the other features and elements. It is understood, therefore, that the overall teachings of the present disclosure are not limited to the particular embodiments, implementations, and examples disclosed herein, but are intended to cover variations, modifications, and alternatives as defined by the appended claims and any and all equivalents thereof.

Claims

CLAIMS1. A method comprising:encoding an image block;obtaining a filtered version of a reconstructed version of the image block determined from a prediction of the image block and a reconstructed prediction residual obtained for the image block; obtaining a quantization index of a dependent quantization for at least one transform coefficient of a transform block determined for a residual obtained between the filtered reconstructed version of the image block and the prediction of the image block, wherein the quantization index is obtained based on a decoded quantization level for a position of the at least one transform coefficient in the transform block and a current state of the dependent quantization when dequantizing the decoded quantization level,determining at least one correction bound based on the quantization index, a bound offset and a quantization step size of the dependent quantization,correcting the at least one transform coefficient as a function of the at least one correction bound providing at least one corrected transform coefficient.

2. A method comprising:decoding an image block;obtaining a filtered version of a reconstructed version of the image block determined from a prediction of the image block and a reconstructed prediction residual obtained for the image block; obtaining a quantization index of a dependent quantization for at least one transform coefficient of a transform block determined for a residual obtained between the filtered reconstructed version of the image block and the prediction of the image block, wherein the quantization index is obtained based on a decoded quantization level for a position of the at least one transform coefficient in the transform block and a current state of the dependent quantization when dequantizing the decoded quantization level,determining at least one correction bound based on the quantization index, a bound offset and a quantization step size of the dependent quantization,correcting the at least one transform coefficient as a function of the at least one correction bound providing at least one corrected transform coefficient.

3. An apparatus comprising one or more processors configured to.encode an image block;obtain a filtered version of a reconstructed version of the image block determined from a prediction of the image block and a reconstructed prediction residual obtained for the image block; obtain a quantization index of a dependent quantization for at least one transform coefficient of a transform block determined for a residual obtained between the filtered reconstructed version of the image block and the prediction of the image block, wherein the quantization index is obtained based on a decoded quantization level for a position of the at least one transform coefficient in the transform block and a current state of the dependent quantization when dequantizing the decoded quantization level,determine at least one correction bound based on the quantization index, a bound offset and a quantization step size of the dependent quantization,correct the at least one transform coefficient as a function of the at least one correction bound providing at least one corrected transform coefficient.

4. An apparatus comprising one or more processors configured to.decode an image block;obtain a filtered version of a reconstructed version of the image block determined from a prediction of the image block and a reconstructed prediction residual obtained for the image block; obtain a quantization index of a dependent quantization for at least one transform coefficient of a transform block determined for a residual obtained between the filtered reconstructed version of the image block and the prediction of the image block, wherein the quantization index is obtained based on a decoded quantization level for a position of the at least one transform coefficient in the transform block and a current state of the dependent quantization when dequantizing the decoded quantization level,determine at least one correction bound based on the quantization index, a bound offset and a quantization step size of the dependent quantization,correct the at least one transform coefficient as a function of the at least one correction bound providing at least one corrected transform coefficient.

5. The method of claim 1 or 2 or the apparatus of claim 3 or 4, wherein the bound offset is determined from one of a minimum bound offset or a maximum bound offset depending on a decoded quantization level obtained for a position of the at least one transform coefficient in the transform block and depending on whether the bound offset is determined for an inferior correction bound or a superior correction bound.

6. The method of claim 1 or 2 or the apparatus of claim 3 or 4, wherein at least one of the bound offset or the quantization step size is obtained using integer parameters.

7. The method of any of claims 1, 2 or 5-6 or the apparatus of any of claims 3-6, wherein the quantization index is a symmetrized quantization index associated with an absolute value of the decoded quantization level, and correcting the at least one transform coefficient as a function of the at least one correction bound comprising obtaining a symmetrized coefficient from the at least one transform coefficient and correcting the symmetrized coefficient as a function of the at least one correction bound.

8. The method of any of claims 1, 2 or 5-7 or the apparatus of any of claims 3-7, wherein correcting the at least one transform coefficient as a function of the at least one correction bound comprises at least one of:when the bound offset is determined for an inferior correction bound, setting the at least one transform coefficient to a first new value when the at least one transform coefficient is below the inferior correction bound, the first new value being above or equaling the inferior correction bound, orwhen the bound offset is determined for a superior correction bound, setting the at least one transform coefficient to a second new value when the at least one transform coefficient is above the superior correction bound, the second new value being below or equaling the superior correction bound.

9. The method of any of claims 1, 2 or 5-8, further comprising obtaining a corrected version of the reconstructed image block from the at least one corrected transform coefficient.

10. The method of any one of claims 1, 2 or 5-7, wherein the method further comprises initializing a state of the dependent quantization before obtaining a quantization index for a transform coefficient of the transform block at a first scanning position, and updating the state of the dependent quantization based on a quantization level decoded for a position of the at least one transform coefficient after correcting the at least one transform coefficient.

11. The method of any of claims 1, 2 or 5-7, wherein the bound offset is a resized bound offset obtained from a scaling of a first value of the bound offset by a size factor, wherein the size factor is determined as a distance between two reconstruction values of a quantizer of the dependent quantization selected when dequantizing the decoded quantization level divided by the quantization step size, wherein one of the two reconstruction values is a reconstruction value obtained for the decoded quantization level and another of the two reconstruction values is areconstruction value obtained for the decoded quantization level plus a result of a sign function of the first value of the bound offset.

12. The method of any of claims 1, 2 or 5-7, further comprising:determining an adjusted quantization level as a sum of the decoded quantization level and an integer part of a first value of the bound offset,determining an adjusted bound offset as fractional part of the first value of the bound offset, determining a size factor as a distance between two reconstruction values of a quantizer of the dependent quantization selected when dequantizing the decoded quantization level divided by the quantization step size, wherein one of the two reconstruction values is a reconstruction value obtained for the adjusted quantization level and another of the two reconstruction values is a reconstruction value obtained for the adjusted quantization level plus a result of a sign function of the adjusted bound offset,wherein the quantization index is obtained based on the adjusted quantization level, and wherein the at least one correction bound is determined using the quantization index, a resized bound offset obtained from a scaling of the adjusted bound offset by the size factor and the quantization step size.

13. The method of claim 1 or 2 or the apparatus of claim 3 or 4, wherein the residual is obtained between the filtered reconstructed image block and the reconstructed image block, and wherein the at least one correction bound is determined as a product of a first value of the bound offset by a size factor and the quantization step size, the size factor being determined as a distance between two reconstruction values of a quantizer of the dependent quantization selected when dequantizing a decoded quantization level obtained for a position of the at least one transform coefficient in the transform block, divided by the quantization step size, wherein one of the two reconstruction values is a reconstruction value obtained for the decoded quantization level and another of the two reconstruction values is a reconstruction value obtained for the decoded quantization level plus a result of a sign function of the first value of the bound offset.

14. The method of claim 1 or 2 or the apparatus of claim 3 or 4, further comprising: determining an adjusted quantization level as a sum of a decoded quantization level obtained for a position of the at least one transform coefficient in the transform block and an integer part of a first value of the bound offset,determining an adjusted bound offset as fractional part of the first value of the bound offset,determining a size factor as a distance between two reconstruction values of a quantizer of the dependent quantization selected when dequantizing the decoded quantization level divided by the quantization step size, wherein one of the two reconstruction values is a reconstruction value obtained for the adjusted quantization level and another of the two reconstruction values is a reconstruction value obtained for the adjusted quantization level plus a result of a sign function of the adjusted bound offset,wherein the quantization index is obtained as a difference between a first quantization index and a second quantization index, the first quantization index being obtained from the adjusted quantization level and a current state of the dependent quantization when dequantizing the decoded quantization level and the second quantization index being obtained from the decoded quantization level and the current state of the dependent quantization when dequantizing the decoded quantization level, andwherein the at least one correction bound is determined using the quantization index, a resized bound offset obtained from a scaling of the adjusted bound offset by the size factor and the quantization step size.

15. The apparatus of any of claims 3-8, wherein the one or more processors are further configured to obtain a corrected version of the reconstructed image block from the at least one corrected transform coefficient.

16. The apparatus of any one of claims 3-8, wherein the one or more processors are further configured to initialize a state of the dependent quantization before obtaining a quantization index for a transform coefficient of the transform block at a first scanning position, and update the state of the dependent quantization based on a quantization level decoded for a position of the at least one transform coefficient after correcting the at least one transform coefficient.

17. The apparatus of any of claims 3-8, wherein the bound offset is a resized bound offset obtained from a scaling of a first value of the bound offset by a size factor, wherein the size factor is determined as a distance between two reconstruction values of a quantizer of the dependent quantization selected when dequantizing the decoded quantization level divided by the quantization step size, wherein one of the two reconstruction values is a reconstruction value obtained for the decoded quantization level and another of the two reconstruction values is a reconstruction value obtained for the decoded quantization level plus a result of a sign function of the first value of the bound offset.

18. The apparatus of any of claims 3-8, wherein the one or more processors are configured to:determine an adjusted quantization level as a sum of the decoded quantization level and an integer part of a first value of the bound offset,determine an adjusted bound offset as fractional part of the first value of the bound offset, determine a size factor as a distance between two reconstruction values of a quantizer of the dependent quantization selected when dequantizing the decoded quantization level divided by the quantization step size, wherein one of the two reconstruction values is a reconstruction value obtained for the adjusted quantization level and another of the two reconstruction values is a reconstruction value obtained for the adjusted quantization level plus a result of a sign function of the adjusted bound offset,wherein the quantization index is obtained based on the adjusted quantization level, and wherein the at least one correction bound is determined using the quantization index, a resized bound offset obtained from a scaling of the adjusted bound offset by the size factor and the quantization step size.

19. A non-transitory computer readable medium comprising instructions storing executable program instructions to cause a computer executing the program instructions to perform a method according to any of claims 1, 2 or 5-14.