VIDEO DECODER WITH REDUCED DYNAMIC RANGE TRANSFORM WITH INVERSE TRANSFORM CLIPPING
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.
None.
BACKGROUND OF THE INVENTIONThe present invention relates to image decoding with reduced dynamic range.
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
The foregoing and other objectives, 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.
Referring to
The dequantizer 210 includes the descaling process 240. The descaling process 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, coefficient index, and transform size. An example of the descaling process 240 may include Level*IntegerValue(Remainder,coefficient index)*16 for a dequantizer used prior to an 8×8 inverse transform and Level*IntegerValue (Remainder, coefficient index) for a dequantizer used prior to other transform sizes. The descaling process 240 is preferably based upon a function of a remainder, transform size, 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*BitIncrement 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 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*BitIncrement)/P), where “Bitlncrement” is the bit depth increment. The “/” 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(Period+B) 270. B is a variable that is dependent on the transform size. The results of the modification 270 are stored in the memory 220. The inverse transformation 230 may perform a 1-dimensional inverse horizontal transform 280, which is stored in memory 290. The inverse transform 230 may also perform a 1-dimensional inverse vertical transform 300, which results in the decoded residue 310. The transforms 280 and 300 may be swapped with each other, as desired.
The memory bandwidth of the video decoder illustrated in
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 270 results in a doubling of the coefficient value for every 6 steps in the quantization parameter, and 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
After imposing the clipping 450, the data with the maximum predetermined bit depth is modified by a factor of 2(Period+B) 460. The results of the modification 460 are provided as coefficients 470. The result of performing the 2(Period+B) 460 after the clipping 450 reduces the rate distortion loss. Preferably, the adjustment mechanism C 430 used for 8×8 transform coefficients is 2(5−Period) and the 2(Period+B) 460 is 2(Period−6). The process 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 coefficients (such as 4×4, 16×16, and 32×32) is preferably zero, and the valued of 2(Period+B) 460 is 2(Period). Also, B may be a function of N and C may be a function of N. Referring to
Referring to
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 510 and the left bit shift process 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 4×4 block the shift may be 3, for an 8×8 block the shift may be 2, for a 16×16 block the shift may be 8, and for a 32×32 block the shift may be 9. Alternatively, the right bit shift process 510 and the left bit shift process 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
Referring to
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 claims which follow.
Claims
1. A method for decoding video comprising:
- (a) receiving quantized coefficients representative of a block of video representative of a plurality of pixels;
- (b) dequantizing said quantized coefficients;
- (c) applying a modification to said dequantized coefficients based upon a first quantization parameter;
- (d) inverse transforming in a first direction said dequanized coefficients;
- (e) shifting said first direction transformed coefficients and clipping said shifted transformed coefficients;
- (f) shifting said shifted coefficients and inverse transforming in a second direction to determine a decoded residue.
2. The method of claim 1 wherein said dequantized coefficients are further modified as a result of an adjustment mechanism.
3. The method of claim 2 wherein said adjustment mechanism is avariable dependent on transform size.
4. The method of claim 2 wherein said adjustment mechanism is a function of at least one of a received quantization parameter and a transform size.
5. The method of claim 1 wherein said shifting said first direction transformed coefficients is based upon the size of said block of video.
6. The method of claim 1 wherein said shifting said shifted coefficients is based upon the size of said block of video.
7. The method of claim 1 wherein said shifting said first direction transformed coefficients removes at least one least significant bit.
8. The method of claim 7 wherein said shifting said shifted coefficients adds at least one least significant bit.
9. The method of claim 1 wherein said first direction is a horizontal direction.
10. The method of claim 1 wherein said second direction is a vertical direction.
11. The method of claim 1 wherein said first direction is a vertical direction.
Type: Application
Filed: Jan 18, 2011
Publication Date: Jul 19, 2012
Inventors: Louis Joseph Kerofsky (Camas, WA), Kiran Misra (Vancouver, WA), Christopher A. Segall (Camas, WA)
Application Number: 13/008,676
International Classification: H04N 7/12 (20060101);