DIFFERENTIAL CODING AND DECODING METHOD AND RELATED CIRCUITS

Abstract: A method for the differential coding and decoding and related circuits are disclosed here. The differential coding is a special type of coding which, instead of coding directly an input signal, carries out the difference between this signal and a predicted signal of it. This allows the reduction of the information to be transmitted. The invented method is capable of further reducing the signal redundancy and therefore the information to be transmitted.

Description: DIFFERENTIAL CODING AND DECODING METHOD AND RELATED CIRCUITS lll tlltlll tllttll The present invention relates to a method and circuits for differential coding and decoding. A method normally used for reducing the information to be transmitted is to carry out the difference between the signal in transit and its predicted one. At this point the problem arises in that if the input signal is confined within a certain range of values, then the signal, obtained by carrying out the difference between input signal and predicted signal, has a double range. Simple algorithms, capable of maintaining the differential signal within the range of the original signal, are known. It is an object of the present invention to provide a method of differential coding and decoding which is capable of reduc¬ ing efficiently the redundancy of the information to be trans¬ mitted. In accordance with the invention the coding method is therefore structured as set forth in claim 1 , the decoding method as set forth in claim 8, the related circuits as set forth in claims 9 and 10, and a particular application of the method to the video signal is set forth in claim 3. The invention will become more intelligible from the following description. The differential coding is a special type of coding which, instead of coding directly an input signal, carries out the difference between this signal and a predicted signal of it. For the prediction of the input signal it is possible to use any type of predictor; in the simplest case the value encoded previously can be used as prediction signal. Assuming that the input signal values are comprised in the set (-range, , range -1), range being a positive integer, it results that the difference between this signal and its predicted one has a double range. Therefore, the problems arises as to how the differential signal can be led within the original range. The algorithm herein set forth is known from the literature and is the simplest method for maintaining the differential signal within the original range signal. Let: val be the value of the sample to be predicted pred be the prediction value. The algorithm is the following: Δ = val - pred; if ( Δ < - range ) Δ = Δ + 2 range ; else if ( Δ > range - l ) Δ = Δ - 2 range ; In an embodiment thereof, the invention, besides maintaining the values of the differential signal within the original range, carries out a further compression thereof. The underlying idea is that, given the predicted signal, the difference values are allocated in such a way as to have the smaller values as close as possible to the prediction value. In this manner, more probable values are assigned smaller numbers. The algorithm is the followin .- Δ = val - pred; range Δ = range; if ( pred > 0 ) range Δ = range - pred - 1; else if ( pred < 0 ) range Δ = range + pred; if ( |Δ| > range t ) if ( ( jΔj - range Δ + 1 ) mod 2 == 0 ) sn = -1; else if (( jΔj rang Δ + 1 ) mod 2 == 1 ) sn = + 1; Δ - ( rang Δ + ( |Δj - rangre Δ + 1 ) / 2 ) sn; When the input signal is zero for a great number of times, the difference operation with the previous one tends to eliminate some of the zeroes which are present. It is convenient to maintain the sequences of zeroes, since in an eventual subsequent compression of information, they can be encoded in a very effective manner. In another embodiment of the invention, by carrying out an absolute coding of the signal when its value is zero, the number of zeroes remain unchanged even working on differential. The algorithm is the following: No control on differential signal range has been introduced here; however the techniques of the algorithms described previously can be extended thereto. An application to video signal of the above-mentioned method will now be described. The fundamental block of the system is the predictor that allows the variation range of the higher energy transformed coefficients to be reduced. The differential signal which is transmitted has a statistic feature that is very convenient for a subsequent coding. The method is applied for the coding of the video image components, luminance and chrominance, in which one resorts to DCT (Discrete Cosine Transform) . A digital image is composed of a number of lines and each line is formed by a number of dots commonly referred to as "pixels". The video coding technique to which reference is made herein, carries out a decomposition of the image into blocks of 8x8 pixels and then it applies the bidimensional DCT to each block. Such operation allows the spatial redundancy of the pixels in each block to be reduced. At this point the DCT coefficients inside each block are uncorrelated each other; it remains to be seen the residual correlation between adjacent blocks. In the method of the invention blocks along the strips of the image are considered. In particular the first block of each strip is transmitted without any processing, starting from the next one the method of the invention is applied in order to bϋtiSTITUTE SHEET (RULE 26) reduce the values of the higher weight coefficients. The algorithm considers only the coefficients of the first column of each transformed 8x8 block; such coefficients gener¬ ally are those of higher weight since they represent the vertical frequencies that, in an interlaced scanning, are the most important ones. Therefore, just as one is processing the present block, he knows all the preceding block and all the coefficients of the present block with the exception of those of the first column, that are to be estimated . The method consists in linking up the waveform (in the space domain) to the border between the present block and the preceding one. To do so the preceding block is antitransformed by columns and the last column is determined; also the present block is anti¬ transformed by columns to determine the first column, but in this circumstance the DCT coefficients of the first column are not known and therefore appear as unknowns in the antitransform. At this point the continuity between the two blocks is imposed by linking up the two columns at the common border (in the space domain) . From the system so obtained the unknown terms of the first column are obtained. All this procedure consists merely in the following calculation: ∞* - r P rt 'xl x2 "x2 index xO of the present block, pre C is the DCT coefficient with index x, y of the * preceding block; att C is the DCT coefficient with index x, y of the xy present block. The prediction thus obtained is subtracted from the true value and the difference is transmitted. It is to be noted that the value estimated through the fore¬ going formula could assume also values which are out of the allowed range; in this circumstance a saturation at the clos¬ est end is merely carried out. Next step consists in introducing suitable weight coefficients for each pair of homologous coefficients. In this manner it is considered that it is not correct to link up the columns at the borders, particularly if the image varies too much from one block to another. Such correction is indispensable especially for higher order coefficients. In this case the formula becomes: px * - κ t - *, <<£ .pr"e _ +^ -a,l"l)-. + , κ - 2 ,(cspre < _- an -k, {c > ? + < > + π 4 (c;; e - - 5 {c ? + c; s ") + κ t {cz - cS) - 7 ( Λ T + c$) X = 0, ... , 7 where: K x = weight coefficient From simulations carried out it has been found that the per¬ formances of the system are not very sensitive to variation of weight coefficients, whereby they have been chosen all equal and with values given by sums of base two powers in order to simplify the relative hardware. In this circumstance the estimated value in general occupies a number of bits greater than the allowed one, a simple uniform quantization with saturation leads the signal again in the correct range. The prediction value is subtracted from the true value by following two different algorithms, one if the DCT coefficient has a 00 index and one for the other coefficients. When DCT coefficient's index is 00, the first described algorithm is used, which allows the prediction error range to be reduced. In fact, such coefficient has a quasi-uniform probability distribution; the difference operation with the predicted one transforms such distribution into a Laplace distribution which is much more convenient for a successive codin . For the other coefficients to be predicted, since they are zeroed for a great number of times , the algorithm of the differential with keeping of zeroes is used. In case of higher order coefficients, the prediction so carried out does not allow the achievement of a significant compression of the signal; in such circumstance the coefficient is transmitted without any processing. As far as the differential signal decoding is concerned, it is sufficient to carry out the inverse operations with respect to those described in the coding algorithms. The circuits for implementing said methods in accordance with the invention comprise at least a predictor, an adder or sub¬ tracter and means capable of carrying out calculations like, e.g., a digital signal processor. In the simplest case, the predictor can be represented like a delay line and output the value transmitted previously. Obviously several variations of the methods and circuits as described above are possible all falling anyway within the scope of the present invention.

Claims: CLAIMS - Method for coding a differential signal which carries out the difference between an input value and one of its predicted values and maintains the differential signal values within the initial range, characterized in that the difference values are coded in such a way that more probable values are assigned smaller numbers. - Method according to claim 1 or 2, characterized in that it carries out the absolute coding of the signal when the latter is zero. - Method according to claim 1 or 2, characterized in that the differential signal comes from a video signal. - Method according to claim 3 , characterized in that for the calculation of the predicted values, blocks of y rows and x columns of the video signal are considered; and the discrete cosine transform of said blocks is calculated . - Method according to claim 4, characterized in that only the first column coefficients of said blocks are considered. - Method according to claim 5, characterized in that the two columns at the common border in the space domain are linked up. - Method according to claim 6, characterized in that the linking up of the two columns at the common border in the space domain is carried out by introducing suitable weight coefficients. - Method of decoding a differential signal, which method SUBSTITUTE SHEET (RULE 2b) carries out the sum of an input value and a predicted value of it, and maintains the differential signal values within the initial range, characterized in that it decodes the signal according to the inverse method of the preced¬ ing claims. - Coding circuit including a predictor, a subtracter circuit, a digital signal processor, an input signal, a predicted signal, the digital signal processor being applied to a signal which is the difference between the input signal and the predicted signal, characterized in that said processor processes the signal in accordance with the coding method of claims 1 to 7. - Decoding circuit including a predictor, an adder circuit, a digital signal processor, an input signal, a predicted signal, said digital signal processor being fed a signal which is the sum of the input signal and the predicted signal, characterized in that said processor processes the signal in accordance with the decoding method of claim 8.

Inventors: CUCCHI SILVIO, LAZZER MAURIZIO, CUCCHI, SILVIO, LAZZER, MAURIZIO
Applicants: ALCATEL NV, CUCCHI SILVIO, LAZZER MAURIZIO, ALCATEL N.V., CUCCHI, SILVIO, LAZZER, MAURIZIO
Application year: 1994
Main classification: H04N7
IPC codes: G06T9, H03M3, H03M7, H04B14, H04N1, H04N7, H04N11