DEVICE FOR REDUCING THE REDUNDANCY IN BLOCKS OF DIGITAL VIDEO DATA IN DCT ENCODING

Abstract: A converter (10) processes a digital video signal (SV) according to a known redundancy reducing algorithm executed on successive block for each frame or field, generating a transformed signal (SA) which is applied to a quantizer (12) adapted to generate a quantized signal (SQ) at preset transition levels on opposed sides of the zero, including the zero (...,-3,-2,-1, 0, 1, 2, 3,...). The quantized signal is processed by a processor (16), adapted to determine the block length and the consecutive zero sequences along a preset scanning order, and to output a symbolic signal (SP) constituted by symbols indicating the quantization levels of the non null data, the zero sequences and a symbol indicating the block end. The symbolic signal is applied to a variable length VLC encoder (18), adapted to encode data according to a preset designation law for generating a signal (ST) which is applied to a transmission buffer (20) . According to the invention, said quantized signal (SQ), generated by the quantizer (12), further comprises two ambiguous levels (x1 and x-1) at input values falling within respective preset intermediate ranges respectively between the zero level and the first positive level and between the zero level and the first negative level; said processor (16) transforms each of said ambiguous levels respectively in a first positive level and first negative level if the preceeding and subsequent input values are both non null and non ambiguous, and transforms the ambiguous level in zero level in all the other cases.

Description: The present invention relates to an improved device for DCT encoding, quantization and variable word length encoding of digital video signals with a reduction of redundancy of the same video signals. As it is known, in the DCT encoding (Discrete Cosine Transform) of digital video signals, the video data of each frame or field of the video signal are divided in blocks of, for example, 8x8 pel, and the data of each block are treated with a conversion algorithm (Discrete Cosine Transform) that reduces the correlation inside each block. In the more advanced types, the conversion algorithm, in order to reduce the global correlation even more, takes into account one or more preceeding frames or fields to draw a prediction. In any case the transformed data are subsequently quantized, scanned according a preset scanning track, and encoded with variable length words according to an ascribing table in which shorter codes are assigned to more frequently occurring data and, since uninterrupted sequences of zeroes are very frequent, specific codes are assigned for zero sequences of different lengths. For a more detailed description of these techniques see, for example, Rafael C. Gonzales and Paul Wintz, "Digital Signal Processing", 2nd edition, Addison Wesley, pagg. 288-289. As it is known, the essential aim of the above cited techniques is that of reducing the mean volume of digital video signals to be transmitted in a transmission channel, given the same definition of the transmitted image. Such signal processing techniques though, yield a time variable data flow, namely greater for complicate or rapidly moving images and lower for static and/or scarcely detailed images. In order to prevent the occasional saturation of the channel because of that, the quantization resolution is reduced as the generated data flow grows. Aim of the invention is to improve the above described encoding system for further reducing the mean amount of bits to be transmitted, given the same information content of the original video signal, in order to keep a higher image quality in transmitting digital video signals on a given transmission channel. Considering that the encoded and transmitted signals will be decoded by the receiver, the invention aims at reducing the transmitted bits without having either to modify the decoder or giving it supplementary information. The invention achieves the above mentioned aim, as well as other aims and advantages as will be apparent from the following description, with a device for DCT encoding, quantization and variable word length encoding of digital video signals with a reduction of redundancy of the video signal, comprising a converter (10) which processes a digital video signal (SV), according to a redundancy reducing algorithm operating on successive blocks of each frame or field, generating a transformed signal (SA) which is applied to a quantizer (12) adapted to generate a quantized signal (SQ) at preset transition levels on opposite sides of zero, including zero (...,-3,-2,-1,0,1,2,3, ...), which is processed by a processor (16), adapted to determine the block length and the consecutive zero sequences along a preset scanning order, and adapted to output a symbolic signal sequence (SP), constituted by symbols designating the quantization levels of non null data, zero sequences and a symbol designating the end of the block, the symbolic signal sequence (SP) being applied to a variable length encoder (18), adapted to encode data according to a preset assigning rule for generating a signal (ST) which is applied to a transmission buffer (20), characterized in that said quantized signal (SQ) generated by the quantizer further comprises two ambiguous levels (x1 and x-1) corresponding to input values comprised in respective preset intermediate ranges respectively between the zero level and the first positive level and between the zero level and the first negative level, and further characterized in that the processor (16) transforms each of said ambiguous levels respectively into a first positive level and first negative level if the preceeding and subsequent input values are both non null and non ambiguous levels, and transform the ambiguous level in to the zero level in all the other cases. The invention will be described now in more detail with reference to some of its preferred embodiments, represented in the enclosed drawings, given as non limitative examples, in which: Fig. 1 is a block diagram of a device according to a first preferred embodiment of the invention; Fig. 2 is a graph showing the quantization of a quantizer which is part of the device of Fig 1; Fig. 3 is a block diagram of a processor which is part of the device of Fig. 1; Fig. 4 is a graph similar to that of Fig. 2, for a different embodiment of the invention. With reference to Fig. 1, the device, according to a first embodiment of the invention, comprises a converter 10 which processes a digital video signal (SV) according to a known algorithm for reducing the redundancy such as the Discrete Cosine Transform (DCT), executed on successive blocks of each frame or field, generating a transformed signal SA which is applied to a quantizer 12. The quantizer 12 generates a quantized data flow SQ, processed by a processor 16, having the task of determining the block length and the consecutive zero sequences along a preset scanning order, and of giving an output signal SP, constituted by symbols designating the quantization levels of the non null data (...,-3,-2,-1, 1, 2, 3,...), the zero sequences (Z1,Z2,Z3,Z4,...) and a symbol designating the end of the block (EOB0,EOB1). Finally, signal SP is applied to a variable length VLC encoder 18, which encodes data according to an assigning rule of which a partial example is illustrated in Table I. The digital signal ST generated by the encoder 18 is eventually applied to a transmission buffer 20, from which data are drawn at a constant timing for transmission. As schematically indicated by line 22, buffer 20 varies the quantization resolution of quantizer 12, making the quantization rougher as the buffer fills up. The converter 10, the quantizer 12 and the encoder 18 and their operating modes are known (see for example the mentioned work by Gonzales and Wintz) and will not be further described but for the aspects directly involving the present invention. The graph of Fig. 2 shows the quantization law followed by the quantizer 12 for generating the quantized signal SQ. Generally, the quantizer provides a single (normalized) output level for a range of input values symmetrically lying above and under such level, for example: level 3, for the range between 2.5 and 3.5; level 4 for the range between 3.5 and 4.5; and the output level 0 is therefore generated for the input range between -0.5 and +0.5. However, according to the invention, the quantizer is also capable of generating two ambiguous levels, x1 and x-1, at input signals comprised respectively in the range between +0.5 and (0.5+k), and in the range between -(0.5+k) and -0.5, with k=*0.25, i.e. in limited ranges close to the zero interval and comprised in the intervals which would belong respectively to level +1 and level -1, according to the known art. The k value, indicated by way of example, may be chosen even smaller or larger, in general greater than 0 and lesser than 1. The DCT encoding and the successive quantization (together with the above mentioned prediction technique) tend to generate many small values (-1, 1,-2, 2), and especially many zeroes, often in uninterrupted sequences, particularly in the static or low detailed image blocks. Table I shows how the codes designation law reflects this situation. Level +2 requires more bits than level +1, level +3 requires more bits than level +2, etc. The zeroes are especially privileged: a sequence of, for example, six zeroes requires 8 bits against the 12 bit sequence required for transmitting a six consecutive ones sequence. In addition to the above mentioned known operations, the processor 16, according to the invention, has also the task of setting the transformation of each of said ambiguous levels x₁ and x₋₁, either in a zero level or respectively in a first positive level (1) and first negative level (-1), in order to minimize the number of bits in the data flow fed to the buffer 20 and to the successive transmission channel. By way of example, in case an ambiguous level x₁ falls within a sequence of three zeroes Z₃ and a sequence of two zeroes Z₂ (i.e. Z₃ x₁ Z₂), the transformation of x₁ in 1 would provide a VLC encoding of 6+2+4=12 bits (see Table I), while the transformation of x₁ into 0 would provide a single sequence of six zeroes Z₆, encoded with just 8 bits. Therefore, in this case, processor 16 will provide the transformation of x1 into 0. In other cases, in which the reduction of the ambiguous level to 0 does not provide a saving of bits, the ambiguous level will have to be naturally confirmed at 1 (or -1). By analyzing the various situations, it comes out that it is always convenient to set the ambiguous level to zero, except when the ambiguous level is preceded and at the same time followed by non null and non ambiguous levels. Such function is implemented by forming the processor as illustrated in Fig.3. A per se known scanner module 30 receives the quantized signal blocks SQ and executes the scanning (generally diagonal), converting the block in a vector VSG, which is applied to a first and a second delay circuits 32 and 34, for giving three version of that vector, Si-1, Si, Si+1, respectively delayed by zero, one and two periods. The three versions Si-1, Si, Si+1, are applied to the three inputs of a decision module 36, adapted to convert each ambiguous level in 0 or 1 depending on the case. The output vector VEZ of the decision module 36 is applied to a module generating zero sequences and block end symbol 38, the output VEZ whereof is the signal SP to be applied to the VLC encoder 18 of Fig. 1. The decision module 36 is a combinatorial circuit providing the truth table shown in Table II, where N is any value greater or equal to 1, and Q indicates that the value is indifferent (0 or N). For simplicity, Table II has been limited simply to the positive ambiguous levels x1: the table can be easily extended to negative ambiguous levels x-1, by using the same criteria. It is easy to provide a decision module for implementing Table II by means of computing techniques very well known in the logic circuit technologies, therefore it will not be described. The signal VEZ, generated by the decision module 36, is applied also to an inverted scanning module 39 which regenerates a block signal which is in turn applied to a per se known predictor 40. According to the data corresponding to the video signal preceeding frame or field, the predictor generates a prediction signal which is fed back to the converter 10 which, according to known techniques, each time chooses the most favourable block. Example By applying to the processor the following quantized block SQ: after the scanning (indicated by the arrows) the following VSC vector is obtained: 116 37 98 72 0 9 4 -2 3 5 x₋₁ -7 4 x₁ 7 0 x₁ 0 -1 0 0 -4 25 1 x₁ 1 0 8 -10 0 1 0 2 8 x₁ -10 15 x₋₁ 1 x₁ 3 -4 0 1 x₋₁ 0 1 0 0 x₁ x₋₁ 0 0 0 0 x₁ 0 0 x₁ 0 0 0 0 0. Going in the decision module 36, vector VSC becomes: 116 37 98 72 0 9 4 -2 3 5 -1 -7 4 1 7 0 0 0 -1 0 0 -4 25 1 1 1 0 8 -10 0 1 0 2 8 1 -10 15 -1 1 1 3 -4 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0, and, eventually, after the treatment in the zero forming module, the end signal VEZ is obtained to be applied to the VLC encoder: 116 37 98 72 Z₁ 9 4 -2 3 5 -1 -7 4 1 7 Z₃ -1 Z₂ -4 25 1 1 1 Z₁ 8 -10 Z₁ 1 Z₁ 2 8 1 -10 15 -1 1 1 3 -4 Z₁ 1 Z₂ 1 EOB. In the above described device, a notable saving of bits is obtained in the signal applied to the buffer, with a slight worsening of the signal to quantization noise ratio. However, since the quantization resolution is adaptive, and increases as the load on the buffer is reduced, on the average the quantizer will operate at greater resolution levels because of the bit saving, and the average quality of the transmitted image will be greater. Although choosing k=1 means incorporating in the range of the ambiguous level the whole interval corresponding to the output level 1 of the conventional quantizer, surprisingly it has been found that in most cases the resulting image is anyhow better than that obtained without applying the invention, thanks to the effect of indirect reduction of the quantization noise due to the reduced load on the buffer and to the consequent feedback on the quantization noise. According to a variant embodiment of the invention, the uncertainty range, within which the quantizer generates the ambiguous level x1, may extend even below the input level 0.5, i.e. between 0.5-h and 0.5+k, being k as defined above and h variable between 0 and 0.2, preferably 0.1. Considering that encoding an isolated zero requires four bits (see Table I), while encoding a 1 requires just two bits, it can be seen how such widening of the ambiguous level range brings about a further saving in the VLC encoding. Naturally, for the x-1 level the same parameters are valid with inverted signs. Choosing the optimal values for the parameters h and k is not critical anyhow, as far as a reasonable range is maintained, and it can be done only empirically, on the basis of a statistical evaluation of the bit rate reduction for the same quality of reconstructed image. According to another variant embodiment, it is predictable that, beside generating ambiguous levels x1 on the threshold between level 0 and level 1, the quantizer can generate ambiguous levels x2, x3, even on other thresholds, for example between level 1 and level 2, level 2 and level 3, etc., as illustrated in Fig. 4 by way of example. Such ambiguous levels are subsequently determined by the decision module in order to provide the lower number of bits in the generated variable length word. This too helps in reducing the load on the buffer, with final effects similar to those described above. The invention can be used together with other techniques for reducing the redundancy of the signal. It is also apparent that the processor adapted to execute the decision function in determining the ambiguous levels, may be constructed differently from what has been described above, for example by joining in one treatment the above mentioned decision, scanning and forming of symbols of zero sequences and of block ends. Some of the preferred embodiments of the invention have been described but, naturally, to the man of the art, many modifications and variations are obvious within the scope of the invention.

Claims: Device for DCT encoding, quantization and variable word length encoding of digital video signals with a reduction of redundancy of the video signal, comprising a converter (10) which processes a digital video signal (SV) , according to a redundancy reducing algorithm operating on successive blocks of each frame or field, generating a transformed signal (SA) which is applied to a quantizer (12) adapted to generate a quantized signal (SQ) at preset transition levels on opposite sides of zero, including zero (...,-3,-2,-1,0,1,2,3,...), which is processed by a processor (16), adapted to determine the block length and the consecutive zero sequences along a preset scanning order, and adapted to output a symbolic signal sequence (SP), constituted by symbols designating the quantization levels of non null data, zero sequences and a symbol designating the end of the block, the symbolic signal sequence (SP) being applied to a variable length encoder (18), adapted to encode data according to a preset assigning rule for generating a signal (ST) which is applied to a transmission buffer (20), characterized in that said quantized signal (SQ) generated by the quantizer further comprises two ambiguous levels (x1 and x-1) corresponding to input values comprised in respective preset intermediate ranges respectively between the zero level and the first positive level and between the zero level and the first negative level, and further characterized in that the processor (16) transforms each of said ambiguous levels respectively into a first positive level and first negative level if the preceeding and subsequent input values are both non null and non ambiguous levels, and transforms the ambiguous level into the zero level in all the other cases. Device, according to claim 1, characterized in that said ambiguous levels x₁ and x₋₁ are generated by the quantizer for input values falling respectively within the range between +0.5 and (0.5+k) and within the range between - (0.5+k) and -0.5, being k comprised between 0 and 1 times the interval between the first and second quantization level. Device, according to claim 2, characterized in that said ambiguous levels x₁ and x₋₁ are generated by the quantizer also for input values falling respectively within the range between (0.5-h) and +0.5 and within the range between -0.5 and -(0.5-h), being h comprised between 0 and 0.4 times the interval between the zero quantization level and the first quantization level.

Inventors: RONCHETTI, LUIGI, STROPPIANA, MARIO
Applicants: RAI RADIOTELEVISIONE ITALIANA
Application year: 1989
Main classification: H04N7
IPC codes: G06T9, H04N7, H04N11, H03M1, H04N1, H03M7