Video decoder with reduced dynamic range transform with inverse transform shifting memory
Abstract
A method for decoding video includes receiving quantized coefficients representative of a block of video representative of a plurality of pixels. The quantized coefficients are dequantized based upon a function of a remainder. The dequantized coefficients are inverse transformed to determine a decoded residue.

Term
5.3 yearsleft in the term
Expires 18 January 2032.
- Priority
- Filed
- Granted
- Today
- Expires
8 claims: 1 independent, 7 dependent
- 190035127 -8CLAIMS:1. A non-transitory computer-readable medium for storing instructions that, when executed, are configured to cause one or more processors to perform operations for decoding video, the operations comprising: receiving quantized coefficients corresponding to a block of video representing a plurality of pixels;descaling the quantized coefficients based on a quantization parameter, a coefficient index, and a transform size to generate descaled coefficients;modifying the descaled coefficients to generate modified descaled coefficients, the modifying including application of a variable based on the transform size;clipping the modified descaled coefficients to a predetermined bit depth to generate clipped coefficients;storing the clipped coefficients in a memory;and inverse transforming the clipped coefficients to output a decoded residue, wherein the inverse transforming comprises: one-dimension inverse transforming the clipped coefficients in a first direction to generate first direction inverse transformed coefficients;shifting the first direction inverse transformed coefficients right to generate first shifted inverse transformed coefficients having a bit depth less than the first direction inverse transformed coefficients;clipping the first shifted inverse transformed coefficients to the predetermined bit depth to generate second clipped coefficients;and one-dimension inverse transforming the second clipped coefficients in a second direction to determine the decoded residue.
49 paragraphs in 5 sections, as filed
90035127
-1 VIDEO DECODER WITH REDUCED DYNAMIC RANGE TRANSFORM WITH INVERSE TRANSFORM SHIFTING MEMORY
This application is a divisional of Canadian Patent Application No. 3,111,734 filed on January 18, 2012, which is a divisional application of Canadian Patent Application No. 3,039,608 filed on January 18,2012, which is a divisional application of Canadian Patent Application No. 2,824,461 filed on January 18,2012.
FIELD OF THE INVENTION
The present invention relates to image decoding with reduced dynamic range.
BACKGROUND OF THE INVENTION
Existing video coding standards, such as H.264/AVC, generally provide relatively high coding efficiency at the expense of increased computational complexity. As the computational complexity increases, the encoding and/or decoding speeds tend to decrease. Also, the desire for increased higher fidelity tends to increase over time which tends to require increasingly larger memory requirements and increasingly larger memory bandwidth requirements. The increasing memory requirements and the increasing memory bandwidth requirements tends to result in increasingly more expensive and computationally complex circuitry, especially in the case of embedded systems.
Referring to FIG. 1, many decoders (and encoders) receive (and encoders provide) encoded data for blocks of an image. Typically, the image is divided into blocks and each of the blocks is encoded in some manner, such as using a discrete cosine transform (DCT), and provided to the decoder. The decoder receives the encoded blocks and decodes each of the blocks in some manner, such as using an inverse discrete cosine transform. In many cases, the decoding of the image coefficients of the image block is accomplished by matrix multiplication. The matrix multiplication may be performed for a horizontal direction and the matrix multiplication may be performed for a vertical direction. By way of example, for 8-bit values, the first multiplication can result in 16-bit values, and the second multiplication can result in 24-bit values in some cases. In addition, the encoding of each block of the image is typically quantized, which maps the values of the
Date Reçue/Date Received 2022-08-23
90035127
-2encoding to a smaller set of quantized coefficients used for transmission. Quantization requires de-quantization by the decoder, which maps the set of quantized coefficients used for transmission to approximate encoding values. The number of desirable bits for dequantized data is a design parameter. The 30 potential for large values resulting from the matrix multiplication and the de-quantization operation is problematic for resource constrained systems, especially embedded systems.
The foregoing features and advantages of the invention will be more readily understood upon consideration of the following detailed description of the invention, taken in conjunction with the accompanying drawings.
SUMMARY OF THE INVENTION
A preferred embodiment is a method for decoding video comprises (a) receiving quantized coefficients representative of a block of video; (b) dequantizing said quantized coefficients; (c) applying a modification to said dequantized coefficients; (d) inverse transforming in a first direction said modified coefficients; (e) shifting right and clipping said first direction transformed coefficients; (f) storing said clipped coefficients; (g) reading said clipped coefficients; and (h) inverse transforming said clipped coefficients in a second direction.
According to another embodiment, there is provided a method for decoding video comprising receiving quantized coefficients representative of a block of video representative of a plurality of pixels; descaling the quantized coefficients based on a quantization parameter, a coefficient index, and a transform size to generate descaled coefficients; applying an adjustment mechanism to the descaled coefficients to modify the descaled coefficients to generate modified descaled coefficients, wherein the adjustment mechanism is a variable based on the transform size; clipping the modified descaled coefficients to a predetermined bit depth to generate clipped coefficients; storing the clipped coefficients in a memory; and inverse transforming the clipped coefficients to output a decoded residue, wherein the inverse transforming comprises one-dimension inverse transforming in a first direction the clipped coefficients to generate first direction inverse transformed coefficients; prior to one- dimension inverse transforming the first direction inverse transformed coefficients in a
Date Reçue/Date Received 2022-08-23
88102643
-2asecond direction, shifting the first direction inverse transformed coefficients right to generate first shifted inverse transformed coefficients having a bit depth less than the first direction inverse transformed coefficients; clipping the first shifted inverse transformed coefficients to the predetermined bit depth to generate second clipped coefficients; and one-dimension inverse transforming the second clipped coefficients in the second direction to determine the decoded residue.
According to another aspect of the present invention, there is provided a nontransitory computer-readable medium for storing instructions that, when executed, are configured to cause one or more processors to perform operations for decoding video, the operations comprising: receiving quantized coefficients corresponding to a block of video representing a plurality of pixels; descaling the quantized coefficients based on a quantization parameter, a coefficient index, and a transform size to generate descaled coefficients; modifying the descaled coefficients to generate modified descaled coefficients, the modifying including application of a variable based on the transform size; clipping the modified descaled coefficients to a predetermined bit depth to generate clipped coefficients; storing the clipped coefficients in a memory; and inverse transforming the clipped coefficients to output a decoded residue, wherein the inverse transforming comprises: one-dimension inverse transforming the clipped coefficients in a first direction to generate first direction inverse transformed coefficients; shifting the first direction inverse transformed coefficients right to generate first shifted inverse transformed coefficients having a bit depth less than the first direction inverse transformed coefficients; clipping the first shifted inverse transformed coefficients to the predetermined bit depth to generate second clipped coefficients; and one-dimension inverse transforming the second clipped coefficients in a second direction to determine the decoded residue.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 illustrates an encoder and a decoder.
FIG. 2 illustrates a decoder with a dequantizer and an inverse transform.
FIGS. 3 A and FIG. 3B illustrates a modified dequantizer.
FIG. 4 illustrates a modified inverse transform.
FIG. 5 illustrates another decoder.
Date Reçue/Date Received 2022-08-23
90035127
FIG. 6 illustrates yet another decoder.
DETAILED DESCRIPTION OF THE EMBODIMENTS
Referring to FIG. 2 (prior art), a decoder for the dequantization and inverse transformation of the received quantized coefficients from the encoderfor a block of the image is illustrated, in relevant part. The decoder receives the quantized coefficients 200 at a dequantizing section (dequantizer) 210. The coefficients resulting from the dequantizer 210 are stored in memory 220. Hie coefficients stored in memory 220 are then processed by a pair of inverse transforms by a inverse transforming section 230 to determine a decoded residue 310. The inverse transform maps data from a transform domain to a spatial domain using a matrix multiplication operator.
The dequantizer 210 includes the descaling process by a descaling section 240. The descaling process by the descaling section 240 descales the quantized coefficients 200. The descaling process corresponds to multiplying level values (also referred to as quantized coefficients 200) with one integer number dependent on quantization parameter (QP), coefficient index, and transform size (N). An example of the descaling process by the descaling section 240 may include Level*lntegerValue(Remainder,coefficient index)*16 for a dequantizer used prior to an 8x8 inverse transform and LeverintegerValue (Remainder, coefficient index) fora dequantizer used priorto other transform sizes. The descaling process by the descaling section 240 is preferably based upon a function of a remainder, transform size (N), and/or a coefficient index (e.g., position), to determine an intermediate set of values 250. The remainder is the sum of the quantization parameter (QP) +P*Bitlncrement modulo P ((QP+P*Bitlncrement)%P). Modulo as defined in the H.264/AVC standard is defined as: x % y, as remainder of x divided by y, defined only for integers x and y with x>=0 and y>0. In one embodiment P may take on the value 6. An adjustment mechanism A 260 may be applied to the values 250, which may be a variable dependent on transform size (N) and/or a function of a received Period. The Period is the sum of the quantization parameter (QP) + P*Bitlncrement divided by P ((QP+ P*Bitlncrement)/P), where Bitincrement is the bit depth increment. The 7 as defined in the H.264/AVC standard is defined as: integer division with truncation of the result towards zero. For example, 7/4 and -7/-4 are truncated to 1 and -7/4 and 7/-4 are truncated to -1. In one embodiment P may take on the value 6. The resulting values 250, possibly further modified by mechanism A 260, may be further modified by a factor of 2<sup><Ρβά</sup>“<sup>Ηβ)</sup> by a modifying section 270. B is a variable that is dependent on the transform size. The results of the modification by the modifying section 270 are stored in the memory 220.
Date Reçue/Date Received 2022-08-23
90035127
The inverse transforming section 230 may perform a 1-dimensional inverse horizontal transform by an inverse horizontal transforming section 280, the result of which is stored in memory 290. The inverse transforming section 230 may also perform a 1 -dimensional inverse vertical transform by an inverse vertical transforming section 300, which results in the decoded 5 residue 310. The transforming sections 280 and 300 may be swapped with each other, as desired.
The memory bandwidth of the video decoder illustrated in FIG. 2, when implemented within the Part 10: Advanced Video Coding, ISO publication: ISO/IEC 14496-10:2005 Information Technology - Coding Of Audio-Visual Objects (H.264/AVC standard), may be 10 limited by using a constraint. For example, in section 8.5.10 of the H.264/AVC standard, the width of the memory access for 4x4 luma DC transform coefficients is limited by including the following statements: The bitstream shall not contain data that result in any element f, of f with i, j = 0..3 that exceeds the range of integer values from -2<sup>ί7</sup>*<sup>ίΛ0</sup>'<sup>,ρ</sup>*’<sup>></sup> to 2<sup>(7<</sup>'<sup>b</sup>®<sup>ef</sup>*<sup>,)</sup> -1, inclusive. and The bitstream shall not contain data that result in any element dcY, of dcY with i, j = 0. .3 15 that exceeds the range of integer values from
-2^ *““*<*’> <sub>to</sub> . i<sub>nc</sub>|<sub>US</sub>j<sub>ve</sub>. The H.264/AVC standard includes similar memory limitation for other residual blocks. In addition to including a complex memory bandwidth limitation, the H.264/AVC standard includes no mechanism to ensure that this limitation is enforced. Similarly, the JCT-VC, Draft Test Model Under Consideration, JCTVC-A205, 20 JCT-VC Meeting, Dresden, April 2010 (JCT-VC), likewise does not include a memory bandwidth enforcement mechanism. For robustness, a decoder must be prepared to accept bitstreams which may violate these limits as may be caused by transmission errors damaging a compliant bitstream or a non-conforming encoder. To alleviate such potential limitations the decoder frequently includes additional memory bandwidth, at added expense and complexity, 25 to accommodate the non-compliant bit streams that are provided.
In order to provide a more computationally robust decoder with limited memory bandwidth and/or memory storage requirements, the decoder should be modified in a suitable manner. However, while modifying the decoder to reduce the memory requirements, the corresponding rate distortion performance of the video should not be substantially degraded.
Otherwise, while the memory requirements may be reduced, the resulting quality of the video will not be suitable for viewing by the audience. The modification by the modifying section 270 results in a doubling of the coefficient value for every 6 steps in the quantization parameter,
Date Reçue/Date Received 2022-08-23
90035127
-5and thus may substantially increase the size of the memory requirements. The increased value results in one or more zeros being included as the least significant bits.
Referring to FIG. 3A. with this understanding of the operation of the dequantizer 210 (see FIG. 2, prior art) an improved dequantizing section (improved dequantizer, modified dequantizer) 400 (see FIGS. 3A and 3B, not prior art) receives the quantized coefficients 405 and descales, by a descaling section 410, the quantized coefficients, preferably based upon a function of a remainder, transform size (N), and/or a coefficient index (e.g., position), to determine an intermediate set of values 420. An optional adjustment mechanism C 430 may be applied, which is preferably a variable dependent on transform size (N) or a function of a received quantization parameter (QP), to determine resulting data440. The resulting data 440 from the quantized coefficients 405 may include rogue data or otherwise is not compliant with a standard, and accordingly the modified dequantizer 400 should impose a fixed limit on the resulting data 440. The resulting data 440 is preferably clipped, by a clipping section 450, to a predetermined bit depth, and thus an NxN block of data is stored in memory within the dequantizer 400. For example the clipping by the clipping section 450 for a predetermined bit depth of 16 bits results in any values over 32,767 being set to the maximum value, namely, 32,767. Likewise for a predetermined bit depth of 16 bits results in any values less than -32,768 being set to the minimum value, namely, -32,768. Other bit depths and clipping values may likewise be used. In this manner, the maximum memory bandwidth required Is limited by the system, in a manner independent of the input quantized coefficients 405. This reduces the computational complexity of the system and reduces the memory requirements, which is especially suitable for embedded systems.
After imposing the dipping by the clipping section 450, the data with the maximum predetermined bit depth is modified by a factor of 2<sup>9</sup>^^ by a modifying section 460. The results of the modification by the modifying section 460 are provided as coefficients 470. The result of performing the by the modifying section 460 after the clipping by the dipping section 450 reduces the rate distortion loss. Preferably, the adjustment mechanism C 430 used for 8x8 transform coefficients is and the 2<sup>(PwiodÆ)</sup> by the modifying section 460 is 2<sup>{Pe</sup>*<sup>xW)</sup>. The process by the modifying section 460 may be based upon, if desired, a function of the transform size (N) or a function of a received quantization parameter (QP). Also, the adjustment mechanism C 430 used for other sized transform coeffidents (such as 4x4,16x16, and 32x32) is preferably zero, and the valued of 2<sup>(Period+B)</sup> by the modifying section 460 is 2<sup>tPenod)</sup>. Also, B may be a function of N and C may be a function of N. Referring to FIG. 3B, a particular implementation of FIG. 3A is illustrated.
Date Reçue/Date Received 2022-08-23
90035127
-6Referring to FIG. 4, the coefficients 470 from the dequantizer 400 (see FIGS. 3A and 3B) are provided to an inverse transforming section 480 designed to provide a decoded residue 490 that has an acceptable rate distortion loss. The coefficients 470 are preferably transformed by a 1-dimensional inverse horizontal (or vertical) transform by an inverse horizontal (or vertical) transforming section 500. Based upon a desirable number of output bits to maintain an acceptable rate distortion loss, the output of the transforming section 500 may be modified by a right bit shift process by a bit shifting section 510 for a desirable number of bits. In this manner, a selected number of the least significant bits are discarded in order to reduce the memory requirements of the system. For example, if 19 bits are likely to result from the inverse transforming section 500 and it is desirable to have a 16 bit outcome, then the right bit shift process by the bit shifting section 510 removes the 3 least significant bits. The resulting shifted bits are dipped by a dipping section 520 to a predetermined threshold. An example of a predetermined threshold may be 16-bits. The dipping by a clipping section 520 further enforces a memory bandwidth limitation, the results of which are stored in memory 530. The data stored in memory 530 is substantially reduced as a result of the shifting by the bit shifting section 510 removing the least significant bit(s). The data stored in the memory 530 is then shifted left by a left bit shift process by a bit shifting section 540, preferably by the same number of bits as the right bit shift process by the bit shifting sedion 510. The shifting results in zeros in the least significant bit(s). The shifted data is then preferably transformed by a 1-dimensional inverse vertical (or horizontal) transform by an inverse vertical (or horizontal) transforming section 550, resulting in the decoded residue 490.
The rate distortion loss is dependent on the number of bits used in the processing and the data block size. Preferably, the right bit shift process by the bit shifting section 510 and the left bit shift process by the bit shifting section 540 are dependent on the size N of the block (number of horizontal pixels x number of vertical pixels for a square block of pixels). For example, for a 4x4 block the shift may be 3, for an 8x8 block the shift may be 2, for a 16x16 block the shift may be 8, and for a 32x32 block the shift may be 9. Alternatively, the right Kt shift process by the bit shifting section 510 and the left bit shift process by the bit shifting section 540 may be determined based upon a parameter, such as a quantization parameter (QP), passed in the bit stream, internal bit-depth increment (IBDI), the transform precision extension (TPE) parameters, or otherwise selectable by the decoder.
Referring to FIG. 5, in another embodiment the decoder receives the quantized coefficients which are processed by any suitable dequantizing section (dequantizer) 600 and any suitable inverse transforming section 610. It is desirable to include an express memory
Date Reçue/Date Received 2022-08-23
90035127
-7bandwidth limitation which is preferably implemented by including a clipping function by a clipping section 620. After the clipping function by the clipping section 620, the data may be stored in memory 630, which is thereafter used for the inverse transform by the inverse transforming section 610.
Referring to FIG. 6, in another embodiment the decoder receives the quantized coefficients which are processed by any suitable dequantizing section (dequantizer) 700 and any suitable inverse transforming section 710. For example, the inverse transform by the inverse transforming section 710 may be the one illustrated in FIG. 4. It is desirable to include an express memory bandwidth limitation to reduce the computation complexity which is preferably implemented by including a clipping function by a dipping section 720. After the clipping function by the dipping section 720, the data may be stored in memory 730, which is thereafter used for the inverse transform by an inverse transforming section 710. It is further desirable to indude an explidt memory bandwidth limitation which is preferably implemented by including a clipping function by a dipping section 740 between a pair of 1-dimensional transforms. The 1-dimensional transforms may be performed in any order or manner. After the dipping function by a clipping section 740, the data may be stored in memory 750.
The terms and expressions which have been employed in the foregoing specification are used therein as terms of description and not of limitation, and there is no intention, in the use of such terms and expressions, of excluding equivalents of the features shown and described or portions thereof, it being recognized that the scope of the invention is defined and limited only by the daims which follow.
Date Reçue/Date Received 2022-08-23
Contents5
8 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4 Sheet 5 Sheet 6 Sheet 7 Sheet 8
53 members in 5 offices
Priority claims3
| Document | Office | Kind | Date |
|---|---|---|---|
| 13008658 | United States of America | – | |
| 201113008658 | United States of America | A | |
| 3111734 | Canada | A |
Members53
| Document | Office | Kind | |
|---|---|---|---|
| US2012183046A1 | United States of America | A1 | |
| CA2824461A1 | Canada | A1 | |
| CA3039608A1 | Canada | A1 | |
| CA3111734A1 | Canada | A1 | |
| CA3171007A1 | Canada | A1 | |
| CA3228584A1 | Canada | A1 | |
| WO2012099269A1 | World Intellectual Property Organization (WIPO) | A1 | |
| JP2014504046A | Japan | A | |
| US2016037163A1 | United States of America | A1 | |
| AU2016219700A1 | Australia | A1 | |
| AU2012207827B2 | Australia | B2 | |
| JP2016192789A | Japan | A | |
| US9807395B2 | United States of America | B2 | |
| US9955165B2 | United States of America | B2 | |
| AU2016219700B2 | Australia | B2 | |
| US2018192056A1 | United States of America | A1 | |
| JP6364445B2 | Japan | B2 | |
| JP2018142979A | Japan | A | |
| AU2018233019A1 | Australia | A1 | |
| US10284855B2 | United States of America | B2 | |
| JP2019080352A | Japan | A | |
| CA2824461C | Canada | C | |
| US2019260997A1 | United States of America | A1 | |
| AU2018233019B2 | Australia | B2 | |
| AU2020200449A1 | Australia | A1 | |
| JP6685345B2 | Japan | B2 | |
| US10652545B2 | United States of America | B2 | |
| US2020260088A1 | United States of America | A1 | |
| AU2020200449B2 | Australia | B2 | |
| JP2021040345A | Japan | A | |
| US10958910B2 | United States of America | B2 | |
| CA3039608C | Canada | C | |
| AU2021203402A1 | Australia | A1 | |
| US2021211675A1 | United States of America | A1 | |
| JP7025515B2 | Japan | B2 | |
| JP2022069449A | Japan | A | |
| US11431982B2 | United States of America | B2 | |
| CA3111734C | Canada | C | |
| AU2021203402B2 | Australia | B2 | |
| US2023052841A1 | United States of America | A1 | |
| JP7225449B2 | Japan | B2 | |
| AU2023201244A1 | Australia | A1 | |
| JP2023053034A | Japan | A | |
| CA3171007CThis record | Canada | C | |
| US12003730B2 | United States of America | B2 | |
| JP7583075B2 | Japan | B2 | |
| AU2024259729A1 | Australia | A1 | |
| AU2023201244B2 | Australia | B2 | |
| US2024406399A1 | United States of America | A1 | |
| JP2025010339A | Japan | A | |
| US12294714B2 | United States of America | B2 | |
| US2025234004A1 | United States of America | A1 | |
| JP7744492B2 | Japan | B2 |
15 legal events, as the office reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | |
|---|---|---|
| Maintenance fee for patent paidMPN | MPN | |
| Fee paidST27 STATUS EVENT CODE: A-4-4-U10-U00-U101 (AS PROVIDED BY THE NATIONAL OFFICE); EVENT TEXT: MAINTENANCE REQUEST RECEIVEDU00 | U00 | |
| Full renewal or maintenance fee paidST27 STATUS EVENT CODE: A-4-4-U10-U11-U102 (AS PROVIDED BY THE NATIONAL OFFICE); EVENT TEXT: MAINTENANCE FEE PAYMENT PAID IN FULLU11 | U11 | |
| Maintenance fee for patent paidMPN | MPN | |
| Fee paidST27 STATUS EVENT CODE: A-4-4-U10-U00-U101 (AS PROVIDED BY THE NATIONAL OFFICE); EVENT TEXT: MAINTENANCE REQUEST RECEIVEDU00 | U00 | |
| Full renewal or maintenance fee paidST27 STATUS EVENT CODE: A-4-4-U10-U11-U102 (AS PROVIDED BY THE NATIONAL OFFICE); EVENT TEXT: MAINTENANCE FEE PAYMENT DETERMINED COMPLIANTU11 | U11 | |
| Full renewal or maintenance fee paidST27 STATUS EVENT CODE: A-4-4-U10-U11-U102 (AS PROVIDED BY THE NATIONAL OFFICE); EVENT TEXT: MAINTENANCE FEE PAYMENT PAID IN FULLU11 | U11 | |
| Examination requestEEER | EEER | |
| Examination requestEEER | EEER | |
| Examination requestEEER | EEER | |
| Examination requestEEER | EEER | |
| Examination requestEEER | EEER | |
| Examination requestEEER | EEER | |
| Examination requestEEER | EEER | |
| Examination requestEEER | EEER |
Numbers
- Publication
- 3171007
- Application
- 3171007
Titles2
- English
- VIDEO DECODER WITH REDUCED DYNAMIC RANGE TRANSFORM WITH INVERSE TRANSFORM SHIFTING MEMORY
- French
- DECODEUR VIDEO A TRANSFORMEE A PLAGE DYNAMIQUE REDUITE ET A MEMOIRE DE DECALAGE DE TRANSFORMEE INVERSE
Classification
- CPC, 5
- H04N19/132
- H04N19/184
- H04N19/44
- H04N19/176
- H04N19/182
- IPC, 3
- H04N19 60
- H04N19 102
- H04N19 176