US20060294173A1 - Implementation of a transform and of a subsequent quantization - Google Patents

Implementation of a transform and of a subsequent quantization Download PDF

Info

Publication number
US20060294173A1
US20060294173A1 US11/342,258 US34225806A US2006294173A1 US 20060294173 A1 US20060294173 A1 US 20060294173A1 US 34225806 A US34225806 A US 34225806A US 2006294173 A1 US2006294173 A1 US 2006294173A1
Authority
US
United States
Prior art keywords
matrix
transform
simplified
predetermined
transform matrix
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US11/342,258
Inventor
Antti Hallapuro
Kim Simelius
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=25479298&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=US20060294173(A1) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Individual filed Critical Individual
Priority to US11/342,258 priority Critical patent/US20060294173A1/en
Publication of US20060294173A1 publication Critical patent/US20060294173A1/en
Priority to US12/695,874 priority patent/US10515134B2/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/14Fourier, Walsh or analogous domain transformations, e.g. Laplace, Hilbert, Karhunen-Loeve, transforms
    • G06F17/147Discrete orthonormal transforms, e.g. discrete cosine transform, discrete sine transform, and variations therefrom, e.g. modified discrete cosine transform, integer transforms approximating the discrete cosine transform
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • H04N19/126Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/18Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a set of transform coefficients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding

Definitions

  • the invention relates to the processing of digital data. It relates more specifically to a method for implementing an approximation of a discrete cosine transform (DCT) and a quantization, which transform and which quantization are to be applied subsequently to digital data, in particular digital image data, for compression of said digital data. It equally relates to a method for implementing a dequantization and an approximation of an inverse discrete cosine transform (IDCT), wherein for decompression of digital data said quantization is to be applied in sequence with said inverse transform to compressed digital data.
  • IDCT inverse discrete cosine transform
  • the invention relates to an encoder and to a decoder suited to carry out such a compression and such a decompression respectively.
  • a sequence of DCT and quantization for compressing digital data, for instance in order to enable an efficient transmission of this digital data.
  • a compression of digital image data is commonly achieved by using a DCT followed by a quantization of the DCT coefficients obtained by the DCT.
  • a respective sequence of source values of a predetermined number is transformed into transform coefficients.
  • the source values can be for instance pixel values or prediction error values.
  • Each of the resulting transform coefficients represents a certain frequency range present in the source data.
  • DCT of values f( ) into coefficients F( ) is defined as:
  • N is the predetermined number of source values in one sequence of source values.
  • DCT For compression, image data is usually provided in blocks of two-dimensional digital data.
  • DCT is a separable operation. That means that a two-dimensional DCT can be calculated with two consecutive one-dimensional DCT operations.
  • Using the one-dimensional DCT operation is preferred because the complexity of a one-dimensional DCT is relative to N, while the complexity of a two-dimensional DCT is relative to N 2 .
  • N For image data having a size of N*N, the total complexity of all the DCT operations is relative to N 3 or N 2 log(N) for fast DCT.
  • large transforms which also involve many non-trivial multiplications, are computationally very complex.
  • the additionally required accuracy in bits may increase the word width.
  • FIG. 1 illustrates a DCT of such a 4 ⁇ 4 matrix 1 .
  • each row of the matrix 1 is transformed separately to form a once transformed matrix 2 .
  • a separate transformation of each row is indicated by 2-headed arrows embracing all values of the respective row.
  • each column of the once transformed matrix 2 is transformed separately to form the final transformed matrix 3 comprising the transform coefficients F( ).
  • a separate transformation of each column is indicated by 2-headed arrows embracing all values of the respective column.
  • F(i) is first written in a more suitable form
  • a ⁇ ( i , x ) 2 N ⁇ C ⁇ ( i ) ⁇ cos ⁇ ( ( 2 ⁇ x + 1 ) ⁇ i ⁇ ⁇ ⁇ 2 ⁇ N )
  • Matrix A is a matrix of DCT basis functions.
  • the index T of a matrix indicates that the transpose of the matrix is meant.
  • the quantized coefficients constitute compressed digital data which has for example, after the encoding and possible further processing steps, a convenient form for transmission of said data.
  • IDCT inverse discrete cosine transform
  • X will contain exactly the original pixel values.
  • the coefficients are converted to integer values at least after quantization and inverse transform. As a result, the original pixels can not be exactly reconstructed. The more compression is achieved, the more deviation there is from the original pixels.
  • each conversion requires several multiplications, additions and/or subtractions. These operations, however, require on the one hand a significant amount of processor time, and on the other hand, multiplications are quite expensive operations with respect to circuit area in some architectures. In order to be able to transmit for example high quality motion displays, it is thus desirable to dispose of a conversion process which requires fewer multiplication steps without reducing the quality of the data regained in decompression.
  • the U.S. Pat. No. 5,523,847 describes for example a digital image processor for color image compression.
  • DCT digital image processor
  • the trivial multiplications can be realized by bit-shifting, hence the name ‘trivial’.
  • the transform matrix is factored into a diagonal factor and a scaled factor such that the diagonal factor can be absorbed into a later quantization step that and the scaled factor can be multiplied by a data vector with a minimum of non-trivial multiplications.
  • remaining non-trivial multiplications are approximated by multiplications by rational numbers, since the computation can then be achieved only with additions, subtractions and shift operations. This leads to a problem in IDCT, however, since with the approximation, there may not exist an exact inverse transform any more for the transform. Therefore, repeating the DCT-IDCT process may result in severe deterioration in image quality. This may happen, e.g., when the image is transmitted several times over a communications link where DCT compression is utilized.
  • an integer transform instead of DCT, an integer transform can be used which has basically the same coding property as a 4 ⁇ 4 DCT.
  • the integer transform four transform coefficients are obtained from four source data pixels respectively by four linear equations summing the pixels with predetermined weights.
  • the transform is followed or preceded by a quantization/dequantization process, which performs a normal quantization/dequantization.
  • a normalization is required, since it is more efficient to transmit data having a normalized distribution than to transmit random data. Since the transform does not contain a normalization, the quantization/dequantization carries out in addition the normalization which is completed by a final shift after inverse transform.
  • the quantization/dequantization uses 32 different quality parameter (QP) values, which are arranged in a way that there is an increase in the step size of about 12% from one QP to the next. Disadvantage of this approach is that it requires a 32-bit arithmetic and a rather high number of operations.
  • QP quality parameter
  • TML-7 Another document proceeds from the cited TML-7 document: “A 16-bit architecture for H.26L, treating DCT transforms and quantization”, Document VCEG-M16, Video Coding Experts Group (VCEG) 13th meeting, Austin, USA, 2-4 Apr. 2001, by Jie Liang, Trac Tran, and Pankaj Topiwala.
  • This VCEG-M16 document mainly addresses a 4 ⁇ 4 transform, and proposes a fast approximation of the 4-point DCT, named the binDCT, for the H.26L standard.
  • This binDCT can be implemented with only addition and right-shift operations.
  • the proposed solution can be implemented to be fully invertible for lossless coding.
  • the proposed binDCT is based on the known Chen-Wang plane rotation-based factorization of the DCT matrix.
  • a lifting scheme is used to obtain a fast approximation of the DCT.
  • Each employed lifting step is a biorthogonal transform, and its inverse also has a simple lifting structure. This means that to invert a lifting step, it is subtracted out what was added in at the forward transform. Hence, the original signal can still be perfectly reconstructed even if the floating-point multiplication results are rounded to integers in the lifting steps, as long as the same procedure is applied to both the forward and the inverse transform.
  • the floating-point lifting coefficients are further approximated by rational numbers in the format of k/2m, where k and m are integers, which can be implemented by only shift and addition operations.
  • a scaled lifting structure is used to represent the plane rotation. The scaling factors can be absorbed in the quantization stage.
  • the solution proposed in the VCEG-M16 document only requires 16-bit operations assuming that the source values are 9-bit values and less operations than the solution of the TML-7 document. More specifically, it requires for a 1-D DCT of four data values 10 additions and 5 shifts.
  • U.S. Pat. No. 6,189,021 granted Feb. 13, 2001, proposes to employ a set of scaled weighting coefficients in the intrinsic multiplication stage of a six-stage DCT fast algorithm for one of two one-dimensional DCT operations so that a corresponding stage of the DCT fast algorithm for the other one of the one-dimensional DCT operations can be omitted.
  • U.S. Pat. No. 5,572,236, granted Nov. 5, 1996 relates to a digital image processor for color image compression which minimizes the number of non-trivial multiplications in the DCT process by rearranging the DCT process such that non-trivial multiplications are combined in a single process step.
  • a method comprising in a first step simplifying a predetermined transform matrix to require less operations when applied to digital data.
  • elements of the simplified transform matrix constituting irrational numbers are approximated by rational numbers.
  • a predetermined quantization is extended to include the operations which were removed in the simplification of the predetermined transform matrix.
  • the included operations are further adjusted to compensate for the approximation of elements of the simplified transform matrix by rational numbers.
  • the simplified transform matrix with the approximated elements and the extended quantization are employed as basis for implementing a sequence of a transform and a quantization which are to be applied to digital data that is to be compressed.
  • a predetermined inverse transform matrix is processed according to the predetermined transform matrix in the proposed method for compression.
  • a predetermined dequantization is extended according to the extension of the predetermined quantization in the proposed method for compression.
  • the resulting extended dequantization and the resulting simplified inverse transform matrix with approximated elements can then be used as basis for implementing a sequence of a dequantization and an inverse transform which are to be applied to compressed digital data for achieving a decompression.
  • an encoder comprising a corresponding transformer approximating a DCT and a corresponding quantization means
  • a decoder comprising a corresponding dequantization means and a corresponding transformer approximating an IDCT.
  • the invention proceeds from the idea that the number of operations required for a DCT can be reduced significantly, if on the one hand, operations are extracted from the transform matrix and absorbed in the quantization, and if on the other hand, the remaining entries not constituting a rational number are approximated by such a rational number. In order to ensure that decompression can be carried out correctly, however, it is proposed that in addition the approximation is compensated in the operations moved to the quantization.
  • the invention enables a fast computation of the transform, since it enables a reduction of the number of required operations, e.g. compared to TML-7 and VCEG-M16, thus saving processor time. Still, the invention achieves a quality very close to the solution of the VCEG-M16 document. Since the invention moreover enables a consideration of the inversion properties of the transform operation by compensating the carried out approximations, a degradation of the quality of the processed data, especially at low bit rates, can be avoided. It is thus a further advantage of the invention that a better inversion accuracy is achieved compared e.g. to U.S. Pat. No. 5,523,847.
  • the proposed step of simplifying the predetermined transform matrix to require less operations when applied to digital data preferably comprises factoring the predetermined transform matrix into two factors, one factor constituting a diagonal matrix and the other factor constituting a simplified transform matrix.
  • the diagonal matrix then comprises the operations removed from the simplified transform matrix.
  • the rational numbers by which the remaining entries of the simplified transform matrix are approximated are given by fractions with a denominator of 2 n , wherein n is an integer.
  • Such rational numbers are particularly suited for binary arithmetic, since a multiplication or division by 2 n can be realized by bit-shift operations. Thus all multiplications can be avoided in DCT with the proposed approximation.
  • a single set of equations including only additions, subtractions and shifts can then be determined for each one-dimensional transform that has to be performed for transforming one- or two-dimensional digital data values.
  • a quantization matrix is determined by multiplying a predetermined sequence of quantization coefficients with a matrix extracted from the transform matrix for simplifying the transform matrix.
  • the extracted matrix comprises the operations extracted from the predetermined transform matrix and is adjusted to compensate for the approximation of remaining entries in the simplified transform matrix by rational numbers.
  • the proposed method can be employed equally for one-dimensional as for a two-dimensional transforms.
  • simplification and approximation is carried out for the predetermined transform matrix and for the transpose of the simplified transform matrix.
  • These two matrices are then employed as basis for implementing the transform.
  • the extended quantization includes in this case operations removed from both of said matrices, which operations are adjusted to compensate for the approximations in both of said matrices.
  • the presented preferred embodiments can be employed not only for the method according to the invention for implementing transform and quantization, but in a corresponding manner also for the method for implementing inverse transform and dequantization, for the encoder and for the decoder according to the invention.
  • the transform matrices calculated for transform can usually be used in transposed form for inverse transform without performing any separate calculations, if the operator matrix for the transform is unitary, like a DCT transform matrix. In this case, equally the operations to be included in the extended quantization can be used at the same time for the extension of a predetermined dequantization.
  • the invention can be employed for the compression of any kind of digital data for any purpose, e.g. in a mobile communications system like GSM (Global System for Mobile communication) or UMTS (Universal Mobile Telecommunication System).
  • GSM Global System for Mobile communication
  • UMTS Universal Mobile Telecommunication System
  • the invention can be implemented for example as a part of an MPEG codec.
  • FIG. 1 illustrates a DCT applied to a matrix of 4 ⁇ 4 values
  • FIG. 2 schematically shows a block diagram of an encoder and of a decoder employed for compressing and decompressing digital data according to an embodiment of the invention.
  • FIG. 1 has already been described above.
  • FIG. 2 includes components of an exemplary system in which the invention can be realized.
  • an encoder 4 is depicted.
  • the encoder 4 is part of a first unit, e.g. a piece of user equipment of a mobile communications system, capable of providing and transmitting video data. Connected between its input and its output, the encoder 4 comprises a DCT transformer 41 , a quantization means 42 and additional means 43 .
  • a decoder 5 is depicted.
  • the decoder 5 is part of a second unit, e.g. equally a piece of user equipment of a mobile communications system, capable of receiving and displaying video data. Connected between its input and its output, the decoder 5 comprises a means 53 , a dequantization means 53 and an IDCT transformer 51 .
  • the video data is provided to the encoder 4 of the first unit as digital data.
  • the digital data is first transformed by the DCT transformer 41 , and then quantized by the quantization means 42 . After quantization, the data is further processed by the additional means 43 .
  • This processing includes encoding of the quantized data for transmission, possibly preceded by a further compression, and is not dealt with in this document, since it is not relevant to the invention.
  • the processed data is then transmitted from the first unit comprising the encoder 4 to the second unit comprising the decoder 5 .
  • the second unit receives the data and forwards it to the decoder 5 .
  • some processing is carried out in the means 53 , which processing corresponds in an inverse way to the processing in block 43 of the encoder 4 .
  • the processing which is not dealt with in this document, may include decoding, followed possibly by a first step of decompression.
  • the processed data is then dequantized by the dequantization means 52 and moreover subjected to an IDCT by the IDCT transformer 51 .
  • the regained video signals provided by the IDCT 51 are output by the decoder 5 for display by the second unit to a user.
  • the coefficient d is converted into a fixed-point format which can be represented by a rational fraction with a denominator of 2 n .
  • the value of d when considering eight decimal places is 0.41421356.
  • 7/16 which is closer to d than 3 ⁇ 8, is selected as fixed-point format for d.
  • Matrix E is thus adjusted by substituting this new value for the old value of coefficient b.
  • the actual implementation of the simplified DCT may depend on a specific transformer architecture, in which it may be most important to have few total operations or to have no multiplications at all.
  • Equation 1 Two different sets of equations that can be employed in an implementation of the simplified DCT transformer will now be proposed.
  • the equations are suited to perform a 4-point one-dimensional simplified DCT which is based on simplified DCT transform matrix C as derived above.
  • e and f are auxiliary variables.
  • This set of equation thus requires 8 additions 2 multiplications and 2 shifts for a total of 12 operations.
  • the second set of equations uses only additions and shifts, and produces identical results to the first set. Again, divisions are actually bit shifts.
  • This version requires 10 additions and 4 shifts for total of 14 operations. The number of operations is larger than in the first version, but the resulting complexity is still lower if multiplication is an expensive operation. Moreover, the results of a multiplication require a larger dynamic range.
  • Either set of equations can be used for transforming two-dimensional data by applying it to the respective set of values that is to be transformed.
  • the simplified transform is followed by an adapted quantization step.
  • the implementation of the quantization depends on the used DCT.
  • a uniform quantization is used.
  • a non-uniform quantization matrix must be used, since some of the DCT multiplications are combined with quantization multiplications.
  • the above mentioned binDCT of document VCEG-M16 moreover uses divisions for quantization and requires only 16-bit operations. A division, however, is generally a rather slow operation. Therefore, in the presented embodiment a uniform quantization using only multiplications is implemented in quantization means 42 .
  • the quantization coefficients are approximately as shown below. Other coefficients could be used as well.
  • a(qp) 2.5000, 2.8061, 3.1498, 3.5354, 3.9684, 4.4543, 4.9998, 5.6120, 6.2992, 7.0706, 7.9364, 8.9082, 9.9990, 11.2234, 12.5978, 14.1404, 15.8720, 17.8155, 19.9971, 22.4458, 25.1944, 28.2795, 31.7424, 35.6293, 39.9922, 44.8894, 50.3863, 56.5562, 63.4817, 71.2552, 79.9806, 89.7745.
  • An intra block is a macroblock which is encoded based only on values within the current image
  • an inter block is a macroblock which is encoded based in addition on values within other images.
  • Each macroblock is composed of several subblocks, e.g. the blocks of 4 ⁇ 4 values of the presented example, which are DCT transformed and quantized separately.
  • the quantization is changed to use only fixed-point values.
  • the values of R and f are converted prior to quantization to fixed point values by multiplying them by 2 n and by rounding the results to integer values.
  • n is the number of fractional bits used for the fixed-point values.
  • Y ′( i,j ) ( Y C ( i,j ) ⁇ R ( qp ) (i,j ) ⁇ f )/2 n , where R and f comprise only fixed-point values.
  • the values of Y′(i,j) are output by the quantization means 42 as the desired compressed digital image data.
  • the dequantization means 52 and the IDCT transformer 53 are implemented in a corresponding way as the quantization means 42 and the DCT transformer 41 of encoder 4 .
  • Matrix E of this equation can be absorbed in the dequatization step preceding the IDCT.
  • Dequantization coefficients are inverse values of the quantization coefficients.
  • the actual implementation of the IDCT transformer 51 can comprise a set of equations including only additions, subtractions and shifts corresponding to those presented for the DCT transformer 41 .
  • an 8 ⁇ 8 DCT and IDCT can be implemented as presented in the following.
  • Matrix E is thus adjusted by substituting these new value for the old value of coefficients b and f.
  • Matrix E will be combined with the subsequent quantization step similarly as explained above for the 4 ⁇ 4 DCT.
  • the fractional numbers are selected so that the off-diagonal elements of the matrix A T A are as close to zero as possible in the implementation sense.
  • the solution of the optimization is limited to a Dirichlet set, i.e., to certain rational numbers.

Abstract

The invention relates to an approximation of a DCT and a quantization which are to be applied subsequently to digital data for compression of this digital data. In order to improve the transform, it is proposed to simplify a predetermined transform matrix to require less operations when applied to digital data. In addition, elements of the simplified transform matrix constituting irrational numbers are approximated by rational numbers. These measures are compensated by extending a predetermined quantization to include the operations which were removed in the simplification of the predetermined transform matrix. The included operations are further adjusted to compensate for the approximation of elements of the simplified transform matrix by rational numbers. If the simplified transform matrix and the extended quantization are used as basis for implementation, a fast transform with a good resulting quality can be achieved. An approximation of an IDCT employed in decompression of compressed digital data can be simplified correspondingly.

Description

    FIELD OF THE INVENTION
  • The invention relates to the processing of digital data. It relates more specifically to a method for implementing an approximation of a discrete cosine transform (DCT) and a quantization, which transform and which quantization are to be applied subsequently to digital data, in particular digital image data, for compression of said digital data. It equally relates to a method for implementing a dequantization and an approximation of an inverse discrete cosine transform (IDCT), wherein for decompression of digital data said quantization is to be applied in sequence with said inverse transform to compressed digital data. Finally, the invention relates to an encoder and to a decoder suited to carry out such a compression and such a decompression respectively.
  • BACKGROUND OF THE INVENTION
  • It is known from the state of the art to use a sequence of DCT and quantization for compressing digital data, for instance in order to enable an efficient transmission of this digital data. In particular a compression of digital image data is commonly achieved by using a DCT followed by a quantization of the DCT coefficients obtained by the DCT. In a DCT of one-dimensional digital data, a respective sequence of source values of a predetermined number is transformed into transform coefficients. In video coding, the source values can be for instance pixel values or prediction error values. Each of the resulting transform coefficients represents a certain frequency range present in the source data. DCT of values f( ) into coefficients F( ) is defined as: F ( i ) = 2 N C ( i ) x = 0 N - 1 f ( x ) cos ( ( 2 x + 1 ) i π 2 N ) , i = 0 , 1 , , N - 1 C ( k ) = { 1 2 , k = 0 1 , k 0
  • In this equation, N is the predetermined number of source values in one sequence of source values.
  • For compression, image data is usually provided in blocks of two-dimensional digital data. For such data DCT is defined as: F ( i , j ) = 2 N C ( i ) C ( j ) x = 0 N - 1 y = 0 N - 1 f ( x , y ) cos ( ( 2 x + 1 ) i π 2 N ) cos ( ( 2 y + 1 ) j π 2 N ) , i = j = 0 , 1 , , N - 1 C ( k ) = { 1 2 , k = 0 1 , k 0
  • DCT is a separable operation. That means that a two-dimensional DCT can be calculated with two consecutive one-dimensional DCT operations. Using the one-dimensional DCT operation is preferred because the complexity of a one-dimensional DCT is relative to N, while the complexity of a two-dimensional DCT is relative to N2. For image data having a size of N*N, the total complexity of all the DCT operations is relative to N3 or N2log(N) for fast DCT. Thus large transforms, which also involve many non-trivial multiplications, are computationally very complex. Furthermore, the additionally required accuracy in bits may increase the word width. For complexity reasons DCT is commonly performed only for small block of values at a time, for example 4×4 or 8×8 values, which can be represented in form of a matrix with values f( ). FIG. 1 illustrates a DCT of such a 4×4 matrix 1.
  • First, each row of the matrix 1 is transformed separately to form a once transformed matrix 2. In the depicted matrix 1, a separate transformation of each row is indicated by 2-headed arrows embracing all values of the respective row. Then, each column of the once transformed matrix 2 is transformed separately to form the final transformed matrix 3 comprising the transform coefficients F( ). In the depicted matrix 2, a separate transformation of each column is indicated by 2-headed arrows embracing all values of the respective column.
  • The DCT defined by the above equation can also be written in matrix form. To this end, F(i) is first written in a more suitable form F ( i ) = x = 0 N - 1 f ( x ) A ( i , x ) , i = 0 , 1 , , N - 1 A ( i , x ) = 2 N C ( i ) cos ( ( 2 x + 1 ) i π 2 N )
  • Matrix A is a matrix of DCT basis functions. A two dimensional DCT can then be calculated with:
    Y=AXAT,
    where matrix X denotes a source value matrix, and where matrix Y denotes the transform coefficients resulting in the DCT. The index T of a matrix indicates that the transpose of the matrix is meant.
  • After DCT, the actual compression is achieved by quantization of DCT coefficients. Quantization is achieved by dividing the transform coefficients with quantization values that depend on a quantization parameter qp:
    Y′(i,j)=Y(i,j)/Q(qp)(i,j),
    where Q(qp) is a quantization matrix, and where Y′(i,j) constitute quantized coefficients. The simplest form of quantization is uniform quantization where the quantization matrix is populated with one constant, for example:
    Q(qp)(i,j)=qp.
  • The quantized coefficients constitute compressed digital data which has for example, after the encoding and possible further processing steps, a convenient form for transmission of said data.
  • When the compressed data is to be presented again after storing and/or transmission, it has first to be decompressed again.
  • Decompression is performed by reversing the operations done during compression. Thus, the quantized coefficients Y′(i,j) are inverse quantized in a first step by multiplying the quantized coefficients with values of quantization matrix:
    Y(i,j)=Y′(i,j)Q(qp)(i,j)
  • Next, the dequantized but still transformed coefficients Y(i,j) are inverse transformed in a second step by an inverse discrete cosine transform (IDCT):
    X=ATYA,
    where matrix Y denotes as in the DCT the transformed coefficients, and where matrix X denotes the regained source value matrix.
  • If infinite precision is used for all calculations, X will contain exactly the original pixel values. In practice, however, the coefficients are converted to integer values at least after quantization and inverse transform. As a result, the original pixels can not be exactly reconstructed. The more compression is achieved, the more deviation there is from the original pixels.
  • If the above described DCT and IDCT are implemented straight-forward, each conversion requires several multiplications, additions and/or subtractions. These operations, however, require on the one hand a significant amount of processor time, and on the other hand, multiplications are quite expensive operations with respect to circuit area in some architectures. In order to be able to transmit for example high quality motion displays, it is thus desirable to dispose of a conversion process which requires fewer multiplication steps without reducing the quality of the data regained in decompression.
  • Since the DCT is also a central operation in many image coding standards, it has been widely used, and a variety of solutions for the stated problem has been described in literature. These solutions generally feature the “butterfly operation” and/or combine some calculations from the operator matrix to the quantization step at the end of the DCT process.
  • The U.S. Pat. No. 5,523,847 describes for example a digital image processor for color image compression. In order to reduce the number of non-trivial multiplications in DCT, it is proposed in this document to factor the transform matrix in a way that decreases the number of non-trivial multiplications, non-trivial multiplications being multiplications or divisions by a factor other than a power of two. The trivial multiplications can be realized by bit-shifting, hence the name ‘trivial’. More specifically, the transform matrix is factored into a diagonal factor and a scaled factor such that the diagonal factor can be absorbed into a later quantization step that and the scaled factor can be multiplied by a data vector with a minimum of non-trivial multiplications. In addition, it is proposed that remaining non-trivial multiplications are approximated by multiplications by rational numbers, since the computation can then be achieved only with additions, subtractions and shift operations. This leads to a problem in IDCT, however, since with the approximation, there may not exist an exact inverse transform any more for the transform. Therefore, repeating the DCT-IDCT process may result in severe deterioration in image quality. This may happen, e.g., when the image is transmitted several times over a communications link where DCT compression is utilized.
  • Another approach is described in a document by Gisle Bjontegaard: “H.26L Test Model Long Term Number 7 (TML-7) draft0”, ITU Video Coding Experts Group, 13th Meeting, Austin, Tex., USA 2-4 Apr. 2001. This document describes a DCT solution constituting the current test model for a compression method for ITU-T recommendation H.26L.
  • According to this document, instead of DCT, an integer transform can be used which has basically the same coding property as a 4×4 DCT. In the integer transform, four transform coefficients are obtained from four source data pixels respectively by four linear equations summing the pixels with predetermined weights. The transform is followed or preceded by a quantization/dequantization process, which performs a normal quantization/dequantization. Moreover, a normalization is required, since it is more efficient to transmit data having a normalized distribution than to transmit random data. Since the transform does not contain a normalization, the quantization/dequantization carries out in addition the normalization which is completed by a final shift after inverse transform. The quantization/dequantization uses 32 different quality parameter (QP) values, which are arranged in a way that there is an increase in the step size of about 12% from one QP to the next. Disadvantage of this approach is that it requires a 32-bit arithmetic and a rather high number of operations.
  • Another document proceeds from the cited TML-7 document: “A 16-bit architecture for H.26L, treating DCT transforms and quantization”, Document VCEG-M16, Video Coding Experts Group (VCEG) 13th meeting, Austin, USA, 2-4 Apr. 2001, by Jie Liang, Trac Tran, and Pankaj Topiwala. This VCEG-M16 document mainly addresses a 4×4 transform, and proposes a fast approximation of the 4-point DCT, named the binDCT, for the H.26L standard. This binDCT can be implemented with only addition and right-shift operations. The proposed solution can be implemented to be fully invertible for lossless coding.
  • The proposed binDCT is based on the known Chen-Wang plane rotation-based factorization of the DCT matrix. For a 16-bit implementation of the binDCT, a lifting scheme is used to obtain a fast approximation of the DCT. Each employed lifting step is a biorthogonal transform, and its inverse also has a simple lifting structure. This means that to invert a lifting step, it is subtracted out what was added in at the forward transform. Hence, the original signal can still be perfectly reconstructed even if the floating-point multiplication results are rounded to integers in the lifting steps, as long as the same procedure is applied to both the forward and the inverse transform.
  • To obtain a fast implementation, the floating-point lifting coefficients are further approximated by rational numbers in the format of k/2m, where k and m are integers, which can be implemented by only shift and addition operations. To further reduce the complexity of the lifting-based fast DCT, a scaled lifting structure is used to represent the plane rotation. The scaling factors can be absorbed in the quantization stage.
  • The solution proposed in the VCEG-M16 document only requires 16-bit operations assuming that the source values are 9-bit values and less operations than the solution of the TML-7 document. More specifically, it requires for a 1-D DCT of four data values 10 additions and 5 shifts.
  • Further documents relating to image data compression are for instance the following, the contents of which are only addressed briefly:
  • U.S. Pat. No. 6,189,021, granted Feb. 13, 2001, proposes to employ a set of scaled weighting coefficients in the intrinsic multiplication stage of a six-stage DCT fast algorithm for one of two one-dimensional DCT operations so that a corresponding stage of the DCT fast algorithm for the other one of the one-dimensional DCT operations can be omitted.
  • U.S. Pat. No. 5,129,015, granted Jul. 7, 1992, makes use of a method similar to DCT but employing a simpler arithmetic for compressing still images without multiplication.
  • U.S. Pat. No. 5,572,236, granted Nov. 5, 1996, relates to a digital image processor for color image compression which minimizes the number of non-trivial multiplications in the DCT process by rearranging the DCT process such that non-trivial multiplications are combined in a single process step.
  • PCT application WO 01/31906, published May 3, 2001, relates to a transform-based image compression framework called local zerotree coding.
  • SUMMARY OF THE INVENTION
  • It is an object of the invention to reduce the operations required for conventional DCT and IDCT while avoiding the necessity of non-trivial multiplications. It is also an object of the invention to provide an alternative to known methods which requires less operations than the regular DCT or IDCT. It is further an object of the invention to guarantee a high quality of the digital data after decompression.
  • For compression of digital data, the objects of the invention are reached by a method comprising in a first step simplifying a predetermined transform matrix to require less operations when applied to digital data. In a second step, elements of the simplified transform matrix constituting irrational numbers are approximated by rational numbers. In order to compensate for these measures, a predetermined quantization is extended to include the operations which were removed in the simplification of the predetermined transform matrix. The included operations are further adjusted to compensate for the approximation of elements of the simplified transform matrix by rational numbers. Finally, the simplified transform matrix with the approximated elements and the extended quantization are employed as basis for implementing a sequence of a transform and a quantization which are to be applied to digital data that is to be compressed.
  • For decompression of compressed digital data, the objects are reached with a method in which a predetermined inverse transform matrix is processed according to the predetermined transform matrix in the proposed method for compression. In addition, a predetermined dequantization is extended according to the extension of the predetermined quantization in the proposed method for compression. The resulting extended dequantization and the resulting simplified inverse transform matrix with approximated elements can then be used as basis for implementing a sequence of a dequantization and an inverse transform which are to be applied to compressed digital data for achieving a decompression.
  • The objects of the invention are finally reached with an encoder comprising a corresponding transformer approximating a DCT and a corresponding quantization means, and with a decoder comprising a corresponding dequantization means and a corresponding transformer approximating an IDCT.
  • The invention proceeds from the idea that the number of operations required for a DCT can be reduced significantly, if on the one hand, operations are extracted from the transform matrix and absorbed in the quantization, and if on the other hand, the remaining entries not constituting a rational number are approximated by such a rational number. In order to ensure that decompression can be carried out correctly, however, it is proposed that in addition the approximation is compensated in the operations moved to the quantization.
  • It is an advantage of the invention that it enables a fast computation of the transform, since it enables a reduction of the number of required operations, e.g. compared to TML-7 and VCEG-M16, thus saving processor time. Still, the invention achieves a quality very close to the solution of the VCEG-M16 document. Since the invention moreover enables a consideration of the inversion properties of the transform operation by compensating the carried out approximations, a degradation of the quality of the processed data, especially at low bit rates, can be avoided. It is thus a further advantage of the invention that a better inversion accuracy is achieved compared e.g. to U.S. Pat. No. 5,523,847.
  • Preferred embodiments of the invention become apparent from the subclaims.
  • The proposed step of simplifying the predetermined transform matrix to require less operations when applied to digital data preferably comprises factoring the predetermined transform matrix into two factors, one factor constituting a diagonal matrix and the other factor constituting a simplified transform matrix. The diagonal matrix then comprises the operations removed from the simplified transform matrix.
  • Advantageously, the rational numbers by which the remaining entries of the simplified transform matrix are approximated are given by fractions with a denominator of 2n, wherein n is an integer. Such rational numbers are particularly suited for binary arithmetic, since a multiplication or division by 2n can be realized by bit-shift operations. Thus all multiplications can be avoided in DCT with the proposed approximation.
  • For a given transform matrix, e.g. a 4×4 DCT matrix, and for a selected rational number for approximating remaining entries in the simplified matrix, a single set of equations including only additions, subtractions and shifts can then be determined for each one-dimensional transform that has to be performed for transforming one- or two-dimensional digital data values.
  • The adjustment to the approximation in the quantization step preferably ensures that the applied transform has an inverse transform. This can be achieved by ensuring that ATA=I, where matrix A is in this case a matrix for which all extracted operations were re-included in the simplified transform matrix after approximation of the remaining entries and after compensation of the approximation in the extracted operations. This guarantees that an approximation of an IDCT can be performed with good quality.
  • For a given transform matrix, e.g. a 4×4 DCT matrix, and for a selected rational number for approximating remaining entries in the simplified matrix, also the required adjustment of specific values in the extracted operations can be calculated in a general way.
  • However, in larger transforms like the 8×8 transform, it may additionally be necessary to adjust the approximations of the simplified matrix, since approximating the DCT transform coefficients in an optimized implementation leads to a forward-inverse transform pair that is incomplete, leading to a “spill” of pixel values to non-adjacent, i.e. 2 pixels away, pixels. This results in blurring of the image. By a correct choice of the approximations, the off-diagonal elements of the matrix resulting from forward and inverse transform of a unity matrix are nullified. In very large matrices, it may not be possible to adjust the approximations sufficiently. In such cases, the approximations may be adjusted to produce an optimal result in the least-squares sense. Furthermore, optimization is needed to limit the solutions to a Dirichlet set, i.e., to certain rational numbers.
  • For the proposed quantization step, preferably a quantization matrix is determined by multiplying a predetermined sequence of quantization coefficients with a matrix extracted from the transform matrix for simplifying the transform matrix. The extracted matrix comprises the operations extracted from the predetermined transform matrix and is adjusted to compensate for the approximation of remaining entries in the simplified transform matrix by rational numbers.
  • The proposed method can be employed equally for one-dimensional as for a two-dimensional transforms. For a two-dimensional transform to be applied to two-dimensional digital data, simplification and approximation is carried out for the predetermined transform matrix and for the transpose of the simplified transform matrix. These two matrices are then employed as basis for implementing the transform. The extended quantization includes in this case operations removed from both of said matrices, which operations are adjusted to compensate for the approximations in both of said matrices.
  • The presented preferred embodiments can be employed not only for the method according to the invention for implementing transform and quantization, but in a corresponding manner also for the method for implementing inverse transform and dequantization, for the encoder and for the decoder according to the invention.
  • In practice, the transform matrices calculated for transform can usually be used in transposed form for inverse transform without performing any separate calculations, if the operator matrix for the transform is unitary, like a DCT transform matrix. In this case, equally the operations to be included in the extended quantization can be used at the same time for the extension of a predetermined dequantization.
  • The invention can be employed for the compression of any kind of digital data for any purpose, e.g. in a mobile communications system like GSM (Global System for Mobile communication) or UMTS (Universal Mobile Telecommunication System).
  • The invention can be implemented for example as a part of an MPEG codec.
  • Other objects and features of the present invention will become apparent from the following detailed description considered in conjunction with the accompanying drawings. It is to be understood, however, that the drawings are designed solely for purposes of illustration and not as a definition of the limits of the invention, for which reference should be made to the appended claims instead.
  • BRIEF DESCRIPTION OF THE FIGURES
  • In the following, the invention is explained in more detail with reference to drawings, of which
  • FIG. 1 illustrates a DCT applied to a matrix of 4×4 values; and
  • FIG. 2 schematically shows a block diagram of an encoder and of a decoder employed for compressing and decompressing digital data according to an embodiment of the invention.
  • DETAILED DESCRIPTION OF THE INVENTION
  • FIG. 1 has already been described above.
  • The block diagram of FIG. 2 includes components of an exemplary system in which the invention can be realized. On the left-hand side of FIG. 2, an encoder 4 is depicted. The encoder 4 is part of a first unit, e.g. a piece of user equipment of a mobile communications system, capable of providing and transmitting video data. Connected between its input and its output, the encoder 4 comprises a DCT transformer 41, a quantization means 42 and additional means 43. On the right-hand side of FIG. 2, a decoder 5 is depicted. The decoder 5 is part of a second unit, e.g. equally a piece of user equipment of a mobile communications system, capable of receiving and displaying video data. Connected between its input and its output, the decoder 5 comprises a means 53, a dequantization means 53 and an IDCT transformer 51.
  • In case video data is to be transmitted from the first unit to the second unit, e.g. via a communications network, the video data is provided to the encoder 4 of the first unit as digital data. In the encoder 4, the digital data is first transformed by the DCT transformer 41, and then quantized by the quantization means 42. After quantization, the data is further processed by the additional means 43. This processing includes encoding of the quantized data for transmission, possibly preceded by a further compression, and is not dealt with in this document, since it is not relevant to the invention.
  • The processed data is then transmitted from the first unit comprising the encoder 4 to the second unit comprising the decoder 5. The second unit receives the data and forwards it to the decoder 5. In the decoder 5, in a first step some processing is carried out in the means 53, which processing corresponds in an inverse way to the processing in block 43 of the encoder 4. Thus, the processing, which is not dealt with in this document, may include decoding, followed possibly by a first step of decompression. The processed data is then dequantized by the dequantization means 52 and moreover subjected to an IDCT by the IDCT transformer 51. The regained video signals provided by the IDCT 51 are output by the decoder 5 for display by the second unit to a user.
  • An embodiment of an implementation according to the invention of the DCT transformer 41 and of the quantization means 42 of the encoder 4 of FIG. 2 will now be derived. For this implementation, which proceeds from the DCT and the quantization as described in the background of the invention, it is assumed that compression of input digital image data is to be carried out for blocks of digital data comprising 4×4 values. An embodiment of an implementation according to the invention of a corresponding decompression by the dequantization means 52 and the IDCT transformer 51 of the decoder 5 of FIG. 2 will be indicated as well.
  • It is to be noted that in the presented equations, the same denomination may be employed in different equations for different matrices. The kind of the respective matrices will be indicated for each equation at least if a corresponding denomination was used before for another kind of matrix.
  • In accordance with the above mentioned equation for DCT, Y=AXAT, the 4×4 forward DCT transform can be calculated as follows: Y = AXA T = [ a a a a b c - c - b a - a - a a c - b b - c ] · [ x 11 x 12 x 13 x 14 x 21 x 22 x 23 x 24 x 31 x 32 x 33 x 34 x 41 x 42 x 43 x 44 ] · [ a b a c a c - a - b a - c - a b a - b a - c ] ,
    where Y is the desired transformed matrix, where X is a matrix containing the 4×4 source values xij (i,j=1-4), and where A is the 4×4 DCT transform matrix. The values a, b and c of matrix A can be obtained easily from the above definition for A(i,x):
    a=½
    b=√{square root over (½)}·cos (π/8)
    c=√{square root over (½)}·cos (3π/8)
  • In the equation for the forward DCT, matrix A can be factorized, resulting in a diagonal matrix B and a simplified transform matrix C. A corresponding factorization can be carried out for the transposed form of A, AT. If d is denoted in addition as d=c/b, the forward DCT can be written as Y = BCXC T B = [ a 0 0 0 0 b 0 0 0 0 a 0 0 0 0 b ] · [ 1 1 1 1 1 d - d - 1 1 - 1 - 1 1 d 1 1 - d ] · [ x 11 x 12 x 13 x 14 x 21 x 22 x 23 x 24 x 31 x 32 x 33 x 34 x 41 x 42 x 43 x 44 ] · [ 1 1 1 d 1 d - 1 - 1 1 - d - 1 1 1 - 1 1 - d ] · [ a 0 0 0 0 b 0 0 0 0 a 0 0 0 0 b ]
  • Since B is a diagonal matrix, the above equation can be written as Y = D ( CXC T ) D T = [ a a a a b b b b a a a a b b b b ] ( [ 1 1 1 1 1 d - d - 1 1 - 1 - 1 1 d 1 1 - d ] · [ x 11 x 12 x 13 x 14 x 21 x 22 x 23 x 24 x 31 x 32 x 33 x 34 x 41 x 42 x 43 x 44 ] · [ 1 1 1 d 1 d - 1 - 1 1 - d - 1 1 1 - 1 1 - d ] ) [ a b a b a b a b a b a b a b a b ]
    where {circle around (x)} is used to indicate that the respective two matrices are multiplied entry-wise instead of a full matrix multiplication.
  • After combining D and its transposed form DT into E, the final DCT is: Y = ( CXC T ) E = ( [ 1 1 1 1 1 d - d - 1 1 - 1 - 1 1 d 1 1 - d ] · [ x 11 x 12 x 13 x 14 x 21 x 22 x 23 x 24 x 31 x 32 x 33 x 34 x 41 x 42 x 43 x 44 ] · [ 1 1 1 d 1 d - 1 - 1 1 - d - 1 1 1 - 1 1 - d ] ) [ a 2 ab a 2 ab ab b 2 ab b 2 a 2 ab a 2 ab ab b 2 ab b 2 ] = Y C E
  • In a next step, the coefficient d is converted into a fixed-point format which can be represented by a rational fraction with a denominator of 2n. The value of d when considering eight decimal places is 0.41421356. Two of the possible fixed-point approximations for d are ⅜=0.375 and 7/16=0.4375, both of which can be implemented with the same number of add and shift operations. More accurate approximations such as 13/32, 27/64 and 53/128 require more additions and shifts but do not improve the achieved compression significantly in practice. Thus, 7/16, which is closer to d than ⅜, is selected as fixed-point format for d.
  • After converting coefficient d to a fixed-point representation, b has to be adjusted in a way that the transform has an inverse transform. The condition for an inverse transform to exist is given by:
    ATA=I.
  • When solving the above equation for a matrix A which was reassembled from factors B and C after the approximation of d, the condition for an adjusted b is found to be: b = 0.5 1 + d 2 .
  • Matrix E is thus adjusted by substituting this new value for the old value of coefficient b.
  • Now, a simplified DCT can be implemented in the DCT transformer 41 of encoder 4 from which matrix E was extracted. That is, the implementation is based on the equation YC=CXCT, wherein matrix C comprises approximated coefficients d, resulting in modified DCT coefficients YC. Matrix E will combined with the subsequent quantization step, as will be explained below.
  • The actual implementation of the simplified DCT may depend on a specific transformer architecture, in which it may be most important to have few total operations or to have no multiplications at all.
  • Two different sets of equations that can be employed in an implementation of the simplified DCT transformer will now be proposed. The equations are suited to perform a 4-point one-dimensional simplified DCT which is based on simplified DCT transform matrix C as derived above. In matrix C, coefficient d is chosen to be d= 7/16. In both sets of equations, X[i], i=0-3 constitutes a sequence of 4 values that are to be transformed and Y[i], i=0-3 a sequence of 4 transformed values, while e and f are auxiliary variables.
  • The first proposed set of equations is:
    e=X[0]+X[3]
    f=X[1]+X[2]
    Y[0]=e+f
    Y[2]=e−f
    e=X[0]−X[3]
    f=X[1]−X[2]
    Y[1]=e+7*f/16
    Y[3]=7*e/16−f
  • The two divisions in this set of equations are actually bit shifts. This set of equation thus requires 8 additions 2 multiplications and 2 shifts for a total of 12 operations.
  • The second proposed set of equations is:
    e=X[0]+X[3]
    f=X[1]+X[2]
    Y[0]=e+f
    Y[2]=e−f
    e=X[0]−X[3]
    f=X[1]−X[2]
    Y[1]=e+(f−f/8)/2
    Y[3]=(e−e/8)/2−f
  • The second set of equations uses only additions and shifts, and produces identical results to the first set. Again, divisions are actually bit shifts. This version requires 10 additions and 4 shifts for total of 14 operations. The number of operations is larger than in the first version, but the resulting complexity is still lower if multiplication is an expensive operation. Moreover, the results of a multiplication require a larger dynamic range.
  • Either set of equations can be used for transforming two-dimensional data by applying it to the respective set of values that is to be transformed.
  • The simplified transform is followed by an adapted quantization step. The implementation of the quantization depends on the used DCT. In the above mentioned TML-7 document, a uniform quantization is used. In fast DCT, a non-uniform quantization matrix must be used, since some of the DCT multiplications are combined with quantization multiplications. The above mentioned binDCT of document VCEG-M16 moreover uses divisions for quantization and requires only 16-bit operations. A division, however, is generally a rather slow operation. Therefore, in the presented embodiment a uniform quantization using only multiplications is implemented in quantization means 42.
  • As already mentioned above, quantization can be performed using division so that
    Y′(i,j)=Y(i,j)/Q(qp)(i,j).
  • Since division is a costly operation, multiplication can be used instead. For this purpose quantization matrix R is calculated as
    R(qp)(i,j)=1.0/Q(qp)(i,j),
    after which quantization can be performed with multiplication:
    Y′(i,j)=Y(i,j)R(qp)(i,j).
  • In the quantization proposed in document TML-7, the quantization coefficients are approximately as shown below. Other coefficients could be used as well.
  • a(qp)=2.5000, 2.8061, 3.1498, 3.5354, 3.9684, 4.4543, 4.9998, 5.6120, 6.2992, 7.0706, 7.9364, 8.9082, 9.9990, 11.2234, 12.5978, 14.1404, 15.8720, 17.8155, 19.9971, 22.4458, 25.1944, 28.2795, 31.7424, 35.6293, 39.9922, 44.8894, 50.3863, 56.5562, 63.4817, 71.2552, 79.9806, 89.7745. In order to be able to absorb the matrix E extracted from the DCT in the quantization, a quantization matrix R for quantization parameter qp is calculated as
    R(qp)(i,j)=·E(i,j)/a(qp).
  • The final quantized coefficients Y′(i,j) could now be determined from the transform coefficients YC(i,j) resulting in the simplified DCT by
    Y′(i,j)=Y C(i,j)·R(qp)(i,j)±f,
    where f is ⅓ for intra blocks and ⅙ for inter blocks and has the same sign as YC(i,j) in accordance with the TML-7 documentation. An intra block is a macroblock which is encoded based only on values within the current image, while an inter block is a macroblock which is encoded based in addition on values within other images. Each macroblock is composed of several subblocks, e.g. the blocks of 4×4 values of the presented example, which are DCT transformed and quantized separately.
  • First, however, the quantization is changed to use only fixed-point values. To this end, the values of R and f are converted prior to quantization to fixed point values by multiplying them by 2n and by rounding the results to integer values. n is the number of fractional bits used for the fixed-point values. By choosing n=17, the coefficients of R will fit in 16-bit, and thus only 16-bit multiplications are required in quantization. More specifically, 16-bit multiplications are required that produce 32-bit results.
  • The fixed-point quantization is then implemented in quantization means 42 of encoder 4 based on the equation:
    Y′(i,j)=(Y C(i,jR(qp)(i,j)±f)/2n,
    where R and f comprise only fixed-point values. The values of Y′(i,j) are output by the quantization means 42 as the desired compressed digital image data.
  • For decompression of the compressed digital image data in the decoder 5 of FIG. 2, the dequantization means 52 and the IDCT transformer 53 are implemented in a corresponding way as the quantization means 42 and the DCT transformer 41 of encoder 4. The basic IDCT is calculated from the basic DCT as:
    X=ATYA,
    where matrix X contains the desired, regained source values, where matrix A is the original DCT transform matrix, and where matrix Y contains dequantized values obtained by a decompression as described in the background of the invention.
  • Proceeding from this equation, the inverse transform can be formulated correspondingly to the forward transform using an extracted matrix E:
    X=C T(Y{circle around (x)}E)C.
    where matrices C and CT correspond to the matrices C and CT used for the reduced DCT in block 41 of the encoder 4.
  • Matrix E of this equation can be absorbed in the dequatization step preceding the IDCT.
  • This can be realized similarly to absorbing matrix E in quantization. Dequantization coefficients are inverse values of the quantization coefficients.
  • A dequantization matrix Q for a quantization parameter qp including matrix E can be calculated as:
    Q(qp)(i,j)=E(i,j)·a(qp).
  • The compressed coefficients Y′(i,j) can therefore be dequantized to dequantized coefficients X′(i,j) according to the equation:
    X′(i,j)=Y′(i,j)·Q(qp)(i,j).
  • In this equation, X′(i,j) corresponds to the term Y{circle around (x)}E in the above equation for inverse transform X=CT(Y{circle around (x)}E)C.
  • When fixed-point numbers are used, values of Q are converted to fixed-point values prior to dequantization by multiplying them by 2n and rounding results to integer values. By choosing n=5 for dequantization, all calculations in dequantization can be done using only 16-bit operations. Fixed-point dequantization is then implemented in dequantization means 52 of decoder 5 based on the equation:
    X′(i,j)=Y(i,j)·Q(qp)(i,j),
    in which Q contains only fixed-point numbers. After dequantization the values of X′(i,j) should be normalized by 2n, but normalization is postponed to be done after final IDCT in order to achieve a better accuracy.
  • The simplified inverse transform can then be implemented in the IDCT transformer 51 of decoder 5 according to the equation:
    X=CTX′C
    after which fixed-point values of X are converted to integer values based on the equation:
    X(i,j)=(X(i,j)+2n−1)/2n,
    where the division by 2n is realized with a simple arithmetic bit-shift.
  • The actual implementation of the IDCT transformer 51 can comprise a set of equations including only additions, subtractions and shifts corresponding to those presented for the DCT transformer 41.
  • According to another embodiment of the invention, an 8×8 DCT and IDCT can be implemented as presented in the following. In accordance with the equation for DCT, Y=AXAT, the 8×8 forward DCT transform can be calculated as follows: Y = AXA T = [ a a a a a a a a b c d e - e - d - c - b f g - g - f - f - g g f c - e - b - d d b e - c a - a - a a a - a - a a d - b e c - c - e b - d g - f f - g - g f - f g e - d c - b b - c d - e ] · X · A T ,
    where Y is the desired transformed matrix, where X is a matrix containing the 8×8 source values xij (i,j=1-8), as above in the 4×4 embodiment, where A is the 8×8 DCT transform matrix, written open on the right-hand side of the equation, and where AT is the transpose of A. The values a, b, c, d, e, f and g of matrix A can be obtained easily from the above definition for A(i,x):
    a=1/(2√{square root over (2)})
    b=½·cos (π/16)
    c=½·cos (3π/16)
    d=½·cos (5π/16)
    e=½·cos (7π/16)
    f=½·cos (π/8)
    g=½·cos (3π/8)
  • In the equation for the forward DCT, matrix A can be factorized, resulting in a diagonal matrix B and a simplified transform matrix C. A corresponding factorization can be carried out for the transposed form of A, AT. If we use the notation xy=x/y, the forward DCT can be written as Y = BCXC T B = [ a 0 0 0 0 0 0 0 0 b 0 0 0 0 0 0 0 0 f 0 0 0 0 0 0 0 0 b 0 0 0 0 0 0 0 0 a 0 0 0 0 0 0 0 0 b 0 0 0 0 0 0 0 0 f 0 0 0 0 0 0 0 0 b ] · [ 1 1 1 1 1 1 1 1 1 c b d b e b - e b - d b - c b - 1 1 g f - g f - 1 - 1 - g f g f 1 c b - e b - 1 - d b d b 1 e b - c b 1 - 1 - 1 1 1 - 1 - 1 1 d b - 1 e b c b - c b - e b 1 - d b g f - 1 1 - g f - g f 1 - 1 g f e b - d b c b - 1 1 - c b d b - e b ] · X · C T · B
  • Since B is a diagonal matrix, the above equation can, as in the 4×4 case, be written as Y = D ( CXC T ) D T = [ a a a a a a a a b b b b b b b b f f f f f f f f b b b b b b b b a a a a a a a a b b b b b b b b f f f f f f f f b b b b b b b b ] ( CXC T ) [ a b f b a b f b a b f b a b f b a b f b a b f b a b f b a b f b a b f b a b f b a b f b a b f b a b f b a b f b a b f b a b f b ]
    where {circle around (x)} is used to indicate that the respective two matrices are multiplied entry-wise instead of a full matrix multiplication.
  • After combining D and its transposed form DT into E, the final DCT is: Y = ( CXC T ) E = ( [ 1 1 1 1 1 1 1 1 1 c b d b e b - e b - d b - c b - 1 1 g f - g f - 1 - 1 - g f g f 1 c b - e b - 1 - d b d b 1 e b - c b 1 - 1 - 1 1 1 - 1 - 1 1 d b - 1 e b c b - c b - e b 1 - d b g f - 1 1 - g f - g f 1 - 1 g f e b - d b c b - 1 1 - c b d b - e b ] · X · C T ) [ a 2 ab af ab a 2 ab af ab ab b 2 bf b 2 ab b 2 bf b 2 af bf f 2 bf af bf f 2 bf ab b 2 bf b 2 ab b 2 bf b 2 a 2 ab af ab a 2 ab af ab ab b 2 bf b 2 ab b 2 bf b 2 af bf f 2 bf af bf f 2 bf ab b 2 bf b 2 ab b 2 bf b 2 ] = Y C E
  • In a next step, the coefficients cb, db, eb and gf are converted into a fixed-point format which can be represented by a rational fraction with a denominator of 2. Close approximations are cb=⅞, db= 9/16, eb= 3/16 and gf= 7/16.
  • After converting coefficients cb, db, eb and gf to a fixed-point representation, b and f have to be adjusted in a way that the transform has an inverse transform. The condition for an inverse transform to exist is again given by:
    ATA=I.
    when solving the above equation for a matrix A which was reassembled from factors B and C after the approximation of cb, db, eb and gf, the condition for adjusted b and f are found to be: b = 1 2 1 1 + c b 2 + d b 2 + e b 2 , f = 1 2 1 1 + g f 2 .
  • Matrix E is thus adjusted by substituting these new value for the old value of coefficients b and f.
  • However, to fulfill the condition ATA=I, the values for cb, db and eb have to be chosen differently, since otherwise the product ATA features non-zero off-diagonal elements. The necessary condition for the 8×8 case is
    d b −c b +e b(d b +c b)=0,
    which can be fulfilled by choosing cb= 15/16, db= 9/16 and eb=¼.
  • Now, a simplified DCT can again be implemented in the DCT transformer 41 of encoder 4 from which matrix E was extracted. That is, the implementation is based on the equation YC=CXCT, wherein matrix C comprises approximated coefficients cb, db, eb and gf, resulting in modified DCT coefficients YC. Matrix E will be combined with the subsequent quantization step similarly as explained above for the 4×4 DCT.
  • According to a third embodiment of the invention, the approximations are adjusted for the condition ATA=I by optimizing the selection of fractional numbers in the transform. The fractional numbers are selected so that the off-diagonal elements of the matrix ATA are as close to zero as possible in the implementation sense. The solution of the optimization is limited to a Dirichlet set, i.e., to certain rational numbers.
  • According to a fourth embodiment of the invention approximations of a fast-DCT algorithm are adjusted for the condition ATA=I by optimizing the selection of fractional numbers in the transform.
  • In the whole, it becomes apparent from the described embodiments of the invention that efficient alternative implementations for compressing digital data are presented. The implementation can be realized to be either more accurate than known implementations or faster or both.
  • Thus, while there have been described and pointed out fundamental novel features of the invention as applied to a preferred embodiment thereof, it will be understood that various omissions and substitutions and changes in the form and details of the devices and methods described may be made by those skilled in the art without departing from the spirit of the invention. For example, it is expressly intended that all combinations of those elements and/or method steps which perform substantially the same function in substantially the same way to achieve the same results are within the scope of the invention. Moreover, it should be recognized that structures and/or elements and/or method steps shown and/or described in connection with any disclosed form or embodiment of the invention may be incorporated in any other disclosed or described or suggested form or embodiment as a general matter of design choice. It is the intention, therefore, to be limited only as indicated by the scope of the claims appended hereto.

Claims (32)

1. A method for implementing an approximation of a discrete cosine transform (DCT) and a quantization, which transform and which quantization are to be applied subsequently to digital data for compression of said digital data, said method comprising:
simplifying a predetermined transform matrix to require less operations when applied to digital data;
approximating elements of said simplified transform matrix constituting irrational numbers by rational numbers;
extending a predetermined quantization to include said operations which were removed in said simplification of said predetermined transform matrix, which included operations are adjusted to compensate for said approximation of elements of said simplified transform matrix by rational numbers; and
employing said simplified transform matrix with said approximated elements and said extended quantization as basis for implementing said sequence of a transform and a quantization which are to be applied to digital data.
2. A method according to claim 1, wherein said step of simplifying said predetermined transform matrix to require less operations when applied to digital data comprises factoring said predetermined transform matrix into a diagonal matrix to be used for extending said predetermined quantization and a simplified transform matrix.
3. A method according to claim 1, wherein said rational numbers can be represented by fractions having a denominator equal to 22, wherein n is an integer.
4. A method according to claim 3, wherein in said transform implementation divisions are realized by bit-shifting.
5. A method according to claim 1, wherein said approximation is adjusted in a way ensuring that a resulting transform has an inverse transform, i.e. that a transpose of said predetermined transform matrix, including said approximations, multiplied by said predetermined transform matrix, including said approximations, is equal to an identity matrix.
6. A method according to claim 1, wherein said predetermined transform matrix is a 4×4 matrix of a form:
[ a a a a b c - c - b a - a - a a c - b b - c ] ,
wherein a=½, b=√{square root over (1/2)}·cos(π/8), c=√{square root over (1/2)}·cos(3π/8), wherein ‘c’ is substituted in said matrix according to an equation d=c/b, and wherein said predetermined transform matrix is simplified by factoring said predetermined transform matrix into a diagonal matrix comprising diagonal values {a, b, a, b} and a simplified transform matrix comprising only elements having absolute values of ‘1’ and ‘d’, which diagonal matrix is to be used for extending said predetermined quantization.
7. A method according to claim 6, wherein in said simplified transform matrix said value ‘d’ is approximated by a rational number 7/16.
8. A method according to claim 6, wherein in said simplified transform matrix said value ‘d’ is approximated by a rational number, and wherein in said diagonal matrix said value ‘b’ is adjusted to
b = 0.5 1 + d 2 ,
‘d’ being in said equation said rational number.
9. A method according to claim 6, wherein in said simplified transform matrix said value ‘d’ is approximated by a rational number 7/16, and wherein said transform is implemented for a transform of a one-dimensional sequence of four values X[0], X[1], X[2], X[3] respectively with the following equations:

e=X[0]+X[3],
f=X[1]+X[2],
Y[0]=e+f,
Y[2]=e−f,
e=X[0]−X[3],
f=X[1]−X[2],
Y[1]=e+(f−f/8)/2,
and
Y[3]=(e−e/8)/2−f,
wherein Y[0], Y[1], Y[2], Y[3] is a one-dimensional sequence of four transformed values, and wherein e and f are auxiliary variables.
10. A method according to claim 1, wherein said predetermined transform matrix is a 8×8 matrix of a form:
[ a a a a a a a a b c d e - e - d - c - b f g - g - f - f - g g f c - e - b - d d b e - c a - a - a a a - a - a a d - b e c - c - e b - d g - f f - g - g f - f g e - d c - b b - c d - e ]
wherein a=1/(2√{square root over (2)}), b=½·cos(π/16), c−½·cos(3π/16),
d=½·cos(5π/16), e=½·cos(7π/16), f=½·cos(π/8),
g=½·cos(3π/8), wherein ‘c’ is substituted in said matrix according to an equation cb=c/b, wherein ‘d’ is substituted in said matrix according to an equation db=d/b, wherein ‘e’ is substituted in said matrix according to an equation eb=e/b, wherein ‘g’ is substituted in said matrix according to an equation gf=g/f, and wherein said predetermined transform matrix is simplified by factoring said predetermined transform matrix into a diagonal matrix comprising diagonal values {a, b, f, b, a, b, f, b} and a simplified transform matrix comprising only elements having absolute values of ‘1’, ‘cb’, ‘db’, ‘eb’ and ‘gf’, which diagonal matrix is to be used for extending said predetermined quantization.
11. A method according to claim 10, wherein in said simplified transform matrix said value ‘cb’ is approximated by a rational number 15/16, said value ‘db’ is approximated by a rational number 9/16, said value ‘eb’ is approximated by a rational number ¼, and said value ‘gf’ is approximated by a rational number 7/16.
12. A method according to claim 10, wherein in said simplified transform matrix said values ‘cb’, ‘db’, ‘eb’ and ‘gf’ are approximated by rational numbers, and wherein in said diagonal matrix said values ‘b’ and ‘f’ are adjusted to
b = 1 2 1 1 + c b 2 + d b 2 + e b 2 and f = 1 2 1 1 + g f 2 ,
values ‘cb’, ‘db’, ‘eb’ and ‘gf’ being in said equation said rational numbers.
13. A method according to claim 1, wherein for a two-dimensional transform to be applied to two-dimensional digital data, said simplified predetermined transform matrix with said approximated elements and a transpose of said simplified transform matrix with said approximated elements are employed as basis for implementing said transform, said extended quantization including operations removed from both of said matrices, which operations are adjusted to compensate for said approximations in both of said matrices.
14. A method according to claim 1, wherein for quantization, a quantization matrix is determined by multiplying a predetermined sequence of quantization coefficients with a matrix extracted from said predetermined transform matrix for simplifying said predetermined transform matrix, which extracted matrix comprises said operations removed from said predetermined transform matrix, and which extracted matrix is adjusted to compensate for said approximation of elements of said simplified transform matrix by rational numbers.
15. A method for implementing a dequantization and an approximation of an inverse discrete cosine transform (IDCT), wherein for decompression of digital data said quantization is to be applied in sequence with said inverse transform to compressed digital data, said method comprising:
simplifying a predetermined inverse transform matrix to require less operations when applied to digital data;
approximating elements of said simplified inverse transform matrix constituting irrational numbers by rational numbers;
extending a predetermined dequantization to include said operations which were removed in said simplification of said predetermined inverse transform matrix, which included operations are adjusted to compensate for said approximation of elements of said simplified inverse transform matrix by rational numbers; and
employing said extended dequantization and said simplified inverse transform matrix with said approximated elements as basis for implementing said sequence of a dequantization and an inverse transform which are to be applied to compressed digital data.
16. A method according to claim 15, wherein for dequantization, a dequantization matrix is determined by multiplying a predetermined sequence of dequantization coefficients with a matrix extracted from said predetermined inverse transform matrix for simplifying said predetermined inverse transform matrix, which extracted matrix comprises said operations removed from said predetermined inverse transform matrix, and which extracted matrix is adjusted to compensate for said approximation of elements of said simplified inverse transform matrix by rational numbers.
17. A method according to claim 15, wherein said step of simplifying said predetermined inverse transform matrix to require less operations when applied to digital data comprises factoring said predetermined inverse transform matrix into a diagonal matrix to be used for extending said predetermined dequantization and a simplified inverse transform matrix.
18. A method according to claim 15, wherein said rational numbers can be represented by fractions having a denominator equal to 2n, wherein n is an integer.
19. A method according to claim 18, wherein in said inverse transform implementation divisions are realized by bit-shifting.
20. A method according to claim 15, wherein said approximation is adjusted in a way ensuring that a resulting inverse transform corresponds to a transform, i.e. that said predetermined inverse transform matrix, including said approximations, multiplied by a transpose of said predetermined inverse transform matrix, including said approximations, is equal to an identity matrix.
21. A method according to claim 15, wherein said predetermined inverse transform matrix is a 4×4 matrix of a form
[ a b a c a c - a - b a - c - a b a - b a - c ] ,
wherein a=½, b=√{square root over (1/2)}·cos(π/8), c=√{square root over (1/2)}·cos(3π/8), wherein ‘c’ is substituted in said matrix according to an equation d=c/b, and wherein said predetermined inverse transform matrix is simplified by factoring said predetermined inverse transform matrix into a diagonal matrix comprising diagonal values {a, b, a, b} and a simplified inverse transform matrix comprising only elements having absolute values of ‘1’ and ‘d’, which diagonal matrix is to be used for extending said predetermined quantization.
22. A method according to claim 21, wherein in said simplified inverse transform matrix said value ‘d’ is approximated by a rational number 7/16.
23. A method according to claim 21, wherein in said simplified inverse transform matrix said value ‘d’ is approximated by a rational number, and wherein in said diagonal matrix said value ‘b’ is adjusted to
b = 0.5 1 + d 2 ,
‘d’ being in said equation said rational number.
24. A method according to claim 21, wherein in said simplified inverse transform matrix said value ‘d’ is approximated by a rational number 7/16, and wherein said inverse is implemented for a transform of a one-dimensional sequence of four values X[0], X[1], X[2], X[3] respectively with the following equations:

e=X[0]+X[3],
f=X[1]+X[2],
Y[0]=e+f,
Y[2]=e−f,
e=X[0]−X[3],
f=X[1]−X[2],
Y[1]=e+(f−f/8)/2,
and
Y[3]=(e−e/8)/2−f,
wherein Y[0], Y[1], Y[2], Y[3] is a one-dimensional sequence of four transformed values, and wherein e and f are auxiliary variables.
25. A method according to claim 15, wherein said predetermined transform matrix is a 8×8 matrix of a form:
[ a a a a a a a a b c d e - e - d - c - b f g - g - f - f - g g f c - e - b - d d b e - c a - a - a a a - a - a a d - b e c - c - e b - d g - f f - g - g f - f g e - d c - b b - c d - e ]
wherein a=1/(2√{square root over (2)}), b=½·cos(π/16), c−½·cos(3π/16),
d=½·cos(5π/16), e=½·cos(7π/16), f=½·cos(π/8),
g=½·cos(3π/8), wherein ‘c’ is substituted in said matrix according to an equation cb=c/b, wherein ‘d’ is substituted in said matrix according to an equation db=d/b, wherein ‘e’ is substituted in said matrix according to an equation eb=e/b, wherein ‘g’ is substituted in said matrix according to an equation gf=g/f, and wherein said predetermined transform matrix is simplified by factoring said predetermined transform matrix into a diagonal matrix comprising diagonal values {a, b, f, b, a, b, f, b} and a simplified transform matrix comprising only elements having absolute values of ‘1’, ‘cb’, ‘db’, ‘eb’ and ‘gf’, which diagonal matrix is to be used for extending said predetermined quantization.
26. A method according to claim 25, wherein in said simplified transform matrix said value ‘cb’ is approximated by a rational number 15/16, said value ‘db’ is approximated by a rational number 9/16, said value ‘eb’ is approximated by a rational number ¼, and said value ‘gf’ is approximated by a rational number 7/16.
27. A method according to claim 25, wherein in said simplified transform matrix said values ‘cb’, ‘db’, ‘eb’ and ‘gf’ are approximated by rational numbers, and wherein in said diagonal matrix said values ‘b’ and ‘f’ are adjusted to
b = 1 2 1 1 + c b 2 + d b 2 + e b 2 and f = 1 2 1 1 + g f 2 ,
values ‘cb’, ‘eb’ and ‘gf’ being in said equation said rational numbers.
28. A method according to claim 15, wherein for a two-dimensional inverse transform to be applied to two-dimensional dequantized digital data, said simplified predetermined inverse transform matrix with said approximated elements and a transpose of said simplified inverse transform matrix with said approximated elements are employed as basis for implementing said inverse transform, said extended dequantization including operations removed from both of said matrices, which operations are adjusted to compensate for said approximations in both of said matrices.
29. An encoder for compressing digital data comprising:
a transformer approximating a discrete cosine transform (DCT) for transforming digital data by applying a simplified transform matrix to said digital data, which simplified transform matrix is obtained by simplifying a predetermined transform matrix to require less operations when applied to digital data, and in which simplified transform matrix elements constituting irrational numbers are approximated by rational numbers; and
a quantization means coupled to an output of said transformer for quantizing said transformed digital data with an extended quantization, which extended quantization is obtained from a predetermined quantization by including said operations which are removed in said simplification of said predetermined transform matrix, said operations being adjusted to compensate for said approximation of elements of said simplified transform matrix.
30. A decoder for decompressing digital data compressed by a discrete cosine transform (DCT) or an approximation of a discrete cosine transform (DCT) and a subsequent quantization, said decoder comprising:
a dequantization means for dequantizing compressed digital data with an extended dequantization; and
a transformer approximating an inverse discrete cosine transform (IDCT) coupled to an output of said dequantization means for transforming dequantized digital data by applying a simplified inverse transform matrix, which simplified inverse transform matrix is obtained by simplifying a predetermined inverse transform matrix to require less operations when applied to digital data, and in which simplified transform matrix elements constituting irrational numbers are approximated by rational numbers;
wherein said extended dequantization applied by said dequantization means is obtained from a predetermined dequantization by including said operations which are removed in said simplification of said predetermined inverse transform matrix, said operations being adjusted to compensate for said approximation of elements of said simplified inverse transform matrix.
31. A method of implementing an approximation of a discrete cosine transform and implementing a quantization operation, the method comprising:
factorizing a discrete cosine transform matrix to extract a diagonal matrix, thereby obtaining a simplified transform matrix;
approximating elements of the simplified transform matrix constituting irrational numbers by rational numbers;
adjusting a predetermined set of quantization coefficients to absorb the effect of extracting said diagonal matrix and to compensate for approximating elements of the simplified transform matrix constituting irrational numbers by rational numbers; and
employing the simplified transform matrix with said approximated elements and the adjusted set of quantization coefficients as a basis for implementing a sequence of a discrete cosine transform and a quantization operation.
32. A method of encoding digital data, the method comprising:
applying a set of equations representing an approximated discrete cosine transform to a set of source values to obtain a corresponding set of approximated transform coefficients, the approximated discrete cosine transform having a matrix representation CXCT, where X is a matrix comprising the set of source values, C is a matrix of approximate discrete cosine transform basis functions and CT is the transpose of C, the approximated discrete cosine transform approximating a discrete cosine transform having a matrix representation AXAT, where A is a matrix of discrete cosine transform basis functions and AT is the transpose of matrix A, matrix C being related to matrix A by factorization of matrix A to extract a diagonal matrix B and a simplified transform matrix, and approximating elements of the simplified transform matrix constituting irrational numbers by rational numbers, matrix CT being similarly related to matrix AT; and
quantising the set of approximated transform coefficients by applying a set of quantization coefficients to the set of approximated transform coefficients to obtain a set of quantized transform coefficients, the set of quantization coefficients having values that absorb the effect of extracting said diagonal matrix B from both of matrices A and AT and further compensate for the effect of approximating irrational numbers by rational numbers in both of matrices C and CT.
US11/342,258 2001-08-30 2006-01-27 Implementation of a transform and of a subsequent quantization Abandoned US20060294173A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US11/342,258 US20060294173A1 (en) 2001-08-30 2006-01-27 Implementation of a transform and of a subsequent quantization
US12/695,874 US10515134B2 (en) 2001-08-30 2010-01-28 Implementation of a transform and of a subsequent quantization

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US09/943,241 US7082450B2 (en) 2001-08-30 2001-08-30 Implementation of a transform and of a subsequent quantization
US11/342,258 US20060294173A1 (en) 2001-08-30 2006-01-27 Implementation of a transform and of a subsequent quantization

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US09/943,241 Continuation US7082450B2 (en) 2001-08-30 2001-08-30 Implementation of a transform and of a subsequent quantization

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US12/695,874 Division US10515134B2 (en) 2001-08-30 2010-01-28 Implementation of a transform and of a subsequent quantization

Publications (1)

Publication Number Publication Date
US20060294173A1 true US20060294173A1 (en) 2006-12-28

Family

ID=25479298

Family Applications (3)

Application Number Title Priority Date Filing Date
US09/943,241 Expired - Lifetime US7082450B2 (en) 2001-08-30 2001-08-30 Implementation of a transform and of a subsequent quantization
US11/342,258 Abandoned US20060294173A1 (en) 2001-08-30 2006-01-27 Implementation of a transform and of a subsequent quantization
US12/695,874 Expired - Lifetime US10515134B2 (en) 2001-08-30 2010-01-28 Implementation of a transform and of a subsequent quantization

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US09/943,241 Expired - Lifetime US7082450B2 (en) 2001-08-30 2001-08-30 Implementation of a transform and of a subsequent quantization

Family Applications After (1)

Application Number Title Priority Date Filing Date
US12/695,874 Expired - Lifetime US10515134B2 (en) 2001-08-30 2010-01-28 Implementation of a transform and of a subsequent quantization

Country Status (13)

Country Link
US (3) US7082450B2 (en)
EP (2) EP1440515B1 (en)
JP (2) JP4153425B2 (en)
KR (1) KR100912415B1 (en)
CN (2) CN101261619B (en)
AT (1) ATE401703T1 (en)
AU (1) AU2002328100A1 (en)
DE (1) DE60227688C5 (en)
HK (1) HK1122622A1 (en)
HU (1) HU228603B1 (en)
MX (1) MXPA04001724A (en)
WO (1) WO2003019787A2 (en)
ZA (1) ZA200401224B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8417045B2 (en) 2010-07-29 2013-04-09 Infoprint Solutions Company Llc Mechanism for processing order-16 discrete cosine transforms
US20130188730A1 (en) * 2010-09-28 2013-07-25 Samsung Electronics Co., Ltd. Video encoding method and device and decoding method and device
US20130262408A1 (en) * 2012-04-03 2013-10-03 David Simmen Transformation functions for compression and decompression of data in computing environments and systems
US11436759B2 (en) * 2019-10-22 2022-09-06 Tcl China Star Optoelectronics Technology Co., Ltd. Image decompression method, device and display terminal

Families Citing this family (44)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7218789B2 (en) * 2000-12-01 2007-05-15 Lizardtech, Inc. Method for lossless encoding of image data by approximating linear transforms and preserving selected properties for image processing
US7082450B2 (en) 2001-08-30 2006-07-25 Nokia Corporation Implementation of a transform and of a subsequent quantization
US7130876B2 (en) * 2001-11-30 2006-10-31 General Instrument Corporation Systems and methods for efficient quantization
US7760950B2 (en) * 2002-09-26 2010-07-20 Ntt Docomo, Inc. Low complexity and unified transforms for video coding
CN100411442C (en) * 2003-03-24 2008-08-13 华为技术有限公司 Dispatching licence transmitting method in radio communication system
US7627187B2 (en) * 2003-09-24 2009-12-01 Ntt Docomo, Inc. Low complexity and unified transforms for video coding
KR100885438B1 (en) * 2003-09-29 2009-02-24 에이전시 포 사이언스, 테크놀로지 앤드 리서치 Method for performing a domain transformation of a digital signal from the time domain into the frequency domain and vice versa
US7388999B2 (en) * 2003-10-29 2008-06-17 Hewlett-Packard Development Company, L.P. Transformations for denoising images
US8069201B2 (en) * 2003-11-25 2011-11-29 Texas Instruments Incorporated 8×8 transform and quantization
US7756351B2 (en) 2003-12-19 2010-07-13 Stmicroelectronics, Inc. Low power, high performance transform coprocessor for video compression
US8335811B2 (en) * 2004-03-04 2012-12-18 Broadcom Corporation Method and system for high fidelity IDCT and DCT algorithms
US8595281B2 (en) 2006-01-11 2013-11-26 Qualcomm Incorporated Transforms with common factors
JP4891389B2 (en) * 2006-03-17 2012-03-07 エルジー エレクトロニクス インコーポレイティド Data conversion method and data transmission / reception method using the same
US8849884B2 (en) * 2006-03-29 2014-09-30 Qualcom Incorporate Transform design with scaled and non-scaled interfaces
US8571340B2 (en) * 2006-06-26 2013-10-29 Qualcomm Incorporated Efficient fixed-point approximations of forward and inverse discrete cosine transforms
RU2496139C2 (en) * 2006-06-26 2013-10-20 Квэлкомм Инкорпорейтед Efficient fixed-point approximation for direct and inverse discrete cosine transforms
US8385424B2 (en) * 2006-06-26 2013-02-26 Qualcomm Incorporated Reduction of errors during computation of inverse discrete cosine transform
US8849183B2 (en) 2007-10-05 2014-09-30 Qualcomm Incorporated Location and time based filtering of broadcast information
US8331454B2 (en) 2007-11-12 2012-12-11 Cisco Technology, Inc. Integer transform function for video compression systems
US7876257B2 (en) * 2008-04-28 2011-01-25 Mitsubishi Electric Research Laboratories, Inc. Method and apparatus for compressing SAR signals
US9280778B2 (en) 2008-12-15 2016-03-08 Qualcomm Incorporated Location logging and location and time based filtering
JP4594420B2 (en) * 2008-12-25 2010-12-08 キヤノン株式会社 Data conversion apparatus and control method thereof
US9110849B2 (en) * 2009-04-15 2015-08-18 Qualcomm Incorporated Computing even-sized discrete cosine transforms
US9069713B2 (en) * 2009-06-05 2015-06-30 Qualcomm Incorporated 4X4 transform for media coding
US8762441B2 (en) 2009-06-05 2014-06-24 Qualcomm Incorporated 4X4 transform for media coding
US9075757B2 (en) * 2009-06-24 2015-07-07 Qualcomm Incorporated 16-point transform for media data coding
US8451904B2 (en) * 2009-06-24 2013-05-28 Qualcomm Incorporated 8-point transform for media data coding
US9118898B2 (en) * 2009-06-24 2015-08-25 Qualcomm Incorporated 8-point transform for media data coding
US9081733B2 (en) * 2009-06-24 2015-07-14 Qualcomm Incorporated 16-point transform for media data coding
US9185422B2 (en) 2010-07-15 2015-11-10 Qualcomm Incorporated Variable localized bit-depth increase for fixed-point transforms in video coding
CN101938654B (en) * 2010-08-17 2013-04-10 浙江大学 Method and device for optimizing and quantifying conversion coefficients
CN101968528B (en) * 2010-08-19 2012-11-07 詹文法 Test data compression method of integrated circuit test
US8620166B2 (en) * 2011-01-07 2013-12-31 Raytheon Bbn Technologies Corp. Holevo capacity achieving joint detection receiver
US9824066B2 (en) 2011-01-10 2017-11-21 Qualcomm Incorporated 32-point transform for media data coding
KR20120098499A (en) * 2011-02-25 2012-09-05 삼성전자주식회사 Method and apparatus for transforming image, and method and apparatus for inverse-transforming image
WO2012115487A2 (en) * 2011-02-25 2012-08-30 삼성전자 주식회사 Image transform and inverse transform method, and image encoding and decoding device using same
US9485108B2 (en) 2011-03-14 2016-11-01 Qualcomm Incorporated System and apparatus for using multichannel file delivery over unidirectional transport (“FLUTE”) protocol for delivering different classes of files in a broadcast network
US9451401B2 (en) 2011-05-27 2016-09-20 Qualcomm Incorporated Application transport level location filtering of internet protocol multicast content delivery
JP6120490B2 (en) * 2011-11-07 2017-04-26 キヤノン株式会社 Image encoding device, image encoding method and program, image decoding device, image decoding method and program
CN103491375B (en) * 2013-05-29 2018-11-02 东南大学 JPEG compression system based on bin DCT algorithm
US10638146B2 (en) 2018-10-01 2020-04-28 Tencent America LLC Techniques for QP coding for 360 image and video coding
US11076152B2 (en) * 2019-03-18 2021-07-27 Sony Group Corporation Quantization step parameter for point cloud compression
CN111556313B (en) * 2020-04-26 2021-05-04 武汉理工大学 Low-complexity DTT (dynamic time warping) and self-adaptive quantization image compression method based on integer approximation
CN116366867A (en) * 2021-12-28 2023-06-30 中国电信股份有限公司 Data transformation and recovery method, device and system, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5129015A (en) * 1990-04-19 1992-07-07 Ricoh Company Ltd. Apparatus and method for compressing still images without multiplication
US5519503A (en) * 1992-04-13 1996-05-21 Sony Corporation Picture reproducing apparatus
US5523847A (en) * 1992-10-09 1996-06-04 International Business Machines Corporation Digital image processor for color image compression
US5572236A (en) * 1992-07-30 1996-11-05 International Business Machines Corporation Digital image processor for color image compression
US5625713A (en) * 1991-08-09 1997-04-29 Ricoh Corporation Apparatus and method for increasing the throughput of an acoustic or image compression system
US5642438A (en) * 1991-12-20 1997-06-24 Alaris, Inc. Method for image compression implementing fast two-dimensional discrete cosine transform
US5957998A (en) * 1993-05-19 1999-09-28 Sony Corporation Discrete cosine transform method
US6189021B1 (en) * 1998-09-15 2001-02-13 Winbond Electronics Corp. Method for forming two-dimensional discrete cosine transform and its inverse involving a reduced number of multiplication operations
US20010031096A1 (en) * 1997-04-30 2001-10-18 Schwartz Edward L. Reversible DCT for lossless - lossy compression

Family Cites Families (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2094523C (en) * 1992-07-30 1999-05-25 Ephraim Feig Digital image processor for color image transmission
JPH0746136A (en) 1993-01-21 1995-02-14 Ricoh Co Ltd Acoustic or picture conversion processor, acoustic or picture data processor, acoustic or picture data processing method, arithmetic processor, and data processor
JP3289478B2 (en) 1993-03-05 2002-06-04 カシオ計算機株式会社 Bit serial digital signal processor
JP3076201B2 (en) * 1994-07-28 2000-08-14 日本電気株式会社 Image data expansion method
CN1076838C (en) * 1994-08-19 2001-12-26 财团法人工业技术研究院 Transposed memory for discrete cosine transform/converse discrete cosine transform circuit
US5748786A (en) * 1994-09-21 1998-05-05 Ricoh Company, Ltd. Apparatus for compression using reversible embedded wavelets
US5867602A (en) * 1994-09-21 1999-02-02 Ricoh Corporation Reversible wavelet transform and embedded codestream manipulation
US6222944B1 (en) * 1998-05-07 2001-04-24 Sarnoff Corporation Down-sampling MPEG image decoder
AU2299101A (en) 1999-10-23 2001-05-08 Fastvideo Llc Method for local zerotree image coding
US7082450B2 (en) 2001-08-30 2006-07-25 Nokia Corporation Implementation of a transform and of a subsequent quantization
US6856701B2 (en) 2001-09-14 2005-02-15 Nokia Corporation Method and system for context-based adaptive binary arithmetic coding
CN100454339C (en) 2001-09-14 2009-01-21 诺基亚有限公司 Method and system for context-based adaptive binary arithmetic coding
US6950469B2 (en) 2001-09-17 2005-09-27 Nokia Corporation Method for sub-pixel value interpolation
US6690307B2 (en) 2002-01-22 2004-02-10 Nokia Corporation Adaptive variable length coding of digital video
US7263125B2 (en) 2002-04-23 2007-08-28 Nokia Corporation Method and device for indicating quantizer parameters in a video coding system
FI114679B (en) 2002-04-29 2004-11-30 Nokia Corp Random start points in video encoding
US6795584B2 (en) 2002-10-03 2004-09-21 Nokia Corporation Context-based adaptive variable length coding for adaptive block transforms
JP4949037B2 (en) 2003-11-18 2012-06-06 スカラド、アクチボラグ Method and image representation format for processing digital images
US8116374B2 (en) * 2004-05-07 2012-02-14 Broadcom Corporation Method and system for generating a transform size syntax element for video decoding
SE531398C2 (en) 2007-02-16 2009-03-24 Scalado Ab Generating a data stream and identifying positions within a data stream
SE533185C2 (en) 2007-02-16 2010-07-13 Scalado Ab Method for processing a digital image and image representation format
CA2679995C (en) 2007-03-13 2014-06-03 Nokia Corporation System and method for video encoding and decoding using sub-vectors
US8275041B2 (en) 2007-04-09 2012-09-25 Nokia Corporation High accuracy motion vectors for video coding with low encoder and decoder complexity
EP2193825B1 (en) 2008-12-03 2017-03-22 Alcatel Lucent Mobile device for augmented reality applications
EP2502184A4 (en) 2009-11-19 2017-03-22 Nokia Corporation Method and apparatus for tracking and recognition with rotation invariant feature descriptors

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5129015A (en) * 1990-04-19 1992-07-07 Ricoh Company Ltd. Apparatus and method for compressing still images without multiplication
US5625713A (en) * 1991-08-09 1997-04-29 Ricoh Corporation Apparatus and method for increasing the throughput of an acoustic or image compression system
US5642438A (en) * 1991-12-20 1997-06-24 Alaris, Inc. Method for image compression implementing fast two-dimensional discrete cosine transform
US5519503A (en) * 1992-04-13 1996-05-21 Sony Corporation Picture reproducing apparatus
US5572236A (en) * 1992-07-30 1996-11-05 International Business Machines Corporation Digital image processor for color image compression
US5523847A (en) * 1992-10-09 1996-06-04 International Business Machines Corporation Digital image processor for color image compression
US5957998A (en) * 1993-05-19 1999-09-28 Sony Corporation Discrete cosine transform method
US20010031096A1 (en) * 1997-04-30 2001-10-18 Schwartz Edward L. Reversible DCT for lossless - lossy compression
US6466699B2 (en) * 1997-04-30 2002-10-15 Ricoh Company, Ltd Reversible DCT for lossless—lossy compression
US6189021B1 (en) * 1998-09-15 2001-02-13 Winbond Electronics Corp. Method for forming two-dimensional discrete cosine transform and its inverse involving a reduced number of multiplication operations

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8417045B2 (en) 2010-07-29 2013-04-09 Infoprint Solutions Company Llc Mechanism for processing order-16 discrete cosine transforms
US20130188730A1 (en) * 2010-09-28 2013-07-25 Samsung Electronics Co., Ltd. Video encoding method and device and decoding method and device
US9350997B2 (en) * 2010-09-28 2016-05-24 Samsung Electronics Co., Ltd. Video encoding method and device and decoding method and device
US9788013B2 (en) 2010-09-28 2017-10-10 Samsung Electronics Co., Ltd. Video encoding method and device and decoding method and device
US10038918B2 (en) 2010-09-28 2018-07-31 Samsung Electronics Co., Ltd. Video encoding method and device and decoding method and device
US10455252B2 (en) 2010-09-28 2019-10-22 Samsung Electronics Co., Ltd. Video encoding method and device and decoding method and device
US10743026B2 (en) 2010-09-28 2020-08-11 Samsung Electronics Co., Ltd. Video encoding method and device and decoding method and device
US20130262408A1 (en) * 2012-04-03 2013-10-03 David Simmen Transformation functions for compression and decompression of data in computing environments and systems
US9558251B2 (en) * 2012-04-03 2017-01-31 Teradata Us, Inc. Transformation functions for compression and decompression of data in computing environments and systems
US11436759B2 (en) * 2019-10-22 2022-09-06 Tcl China Star Optoelectronics Technology Co., Ltd. Image decompression method, device and display terminal

Also Published As

Publication number Publication date
JP4444940B2 (en) 2010-03-31
US10515134B2 (en) 2019-12-24
MXPA04001724A (en) 2004-05-31
CN101261619A (en) 2008-09-10
DE60227688C5 (en) 2020-03-12
JP2005501462A (en) 2005-01-13
KR100912415B1 (en) 2009-08-14
JP2007129731A (en) 2007-05-24
HUP0401627A2 (en) 2004-11-29
CN101261619B (en) 2013-06-05
JP4153425B2 (en) 2008-09-24
HK1122622A1 (en) 2009-05-22
WO2003019787A2 (en) 2003-03-06
KR20040036923A (en) 2004-05-03
EP1440515B1 (en) 2008-07-16
US7082450B2 (en) 2006-07-25
CN1575546A (en) 2005-02-02
EP1440515A2 (en) 2004-07-28
AU2002328100A1 (en) 2003-03-10
EP1914894A3 (en) 2009-05-06
ATE401703T1 (en) 2008-08-15
HU228603B1 (en) 2013-04-29
DE60227688D1 (en) 2008-08-28
CN100392982C (en) 2008-06-04
US20100195923A1 (en) 2010-08-05
EP1914894A2 (en) 2008-04-23
WO2003019787A3 (en) 2004-05-06
ZA200401224B (en) 2005-06-29
EP1914894B1 (en) 2021-05-05
US20030078953A1 (en) 2003-04-24

Similar Documents

Publication Publication Date Title
US7082450B2 (en) Implementation of a transform and of a subsequent quantization
EP1359546B1 (en) 2-D transforms for image and video coding
EP1768418B1 (en) Improved block transform and quantization for image and video coding
EP1672517B1 (en) Reversible transform for lossy and lossless 2-D data compression
RU2460129C2 (en) Structure for transformation with scaled and unscaled interfaces
US6067384A (en) Fast scaling of JPEG images
Brahimi et al. A novel and efficient 8-point DCT approximation for image compression
US7421139B2 (en) Reducing errors in performance sensitive transformations
Richter Lossless coding extensions for JPEG
US7489826B2 (en) Compensating for errors in performance sensitive transformations
KR100262645B1 (en) Idct device
Brahimi Contribution to Data Compression

Legal Events

Date Code Title Description
STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO PAY ISSUE FEE