Method for memory requirement reduction in a video decoder

Abstract: The RAM requisite for temporarily storing a stream of digital data blocks in a coding/decoding system of information transferable by blocks may be significantly reduced by compressing and coding the data by blocks through a tree search vector quantization (TSVQ), storing TSVQ compressed and coded data in the RAM and decoding and decompressing during the subsequent reading of the data stored in the RAM thus reconstituting the stream of digital data blocks.

Description: The present invention relates to an integrated video decoder based on the use of the MPEG compression algorithm having a reduced requisite of video memory. The MPEG-1 standard was developed in response to the industry need of implementing an efficient way of storing and retrieving a video information on storage supports of the digital type, as for example CD-ROMs. Of course, the MPEG-1 standard is also a powerful tool for efficiently storing data on similar supports such as DATs, Winchester disks, optical disks and ISDN and LAN networks. A more efficient version of the standard, called MPEG-2 has been developed in support of bitrate requisites in the field of digital video' transmission applications. The standard has been generally accepted for digital TV systems, for compressing TV-resolution pictures, entirely interlaced, up to a bitrate of about 15Mbps. A special version of the MPEG-2 standard is expected to be used in future generation HDVT systems. The MPEG standard incorporates and utilizes important algorithms and criteria defined by previous international standards such as for example the CCITT motion vectors determination algorithm H.261 and the ISO 10918 standard of the ISO JPEG Committee for the coding of still pictures. A definition of the MPEG standard (1 and 2), as well as an exhaustive description of the different techniques of implementation and the relative coding and decoding systems of the data pertaining to compressed video pictures according to the MPEG standards are described in a wealth of articles and publications on the subject, among which the following can be mentioned: Draft International ISO/IEC DIS 13818-2 "Information technology - Generic coding of moving pictures and associated audio information". "MPEG coding and transport system" by Leonardo Chiariglione, Digital Television Broadcasting - Proceedings. "The MPEG video compression algorithm" by Didier J. Le Gall, Signal Processing Image Communication, Elsevier Science Publishers B.V., Vol. 4, No. 2, April 1992. Digest No. 1995/012, Electronics Division, Institution of Electrical Engineers - London, Colloquium on: "MPEG-2 - what it is and what it isn'2". "An Overview of the MPEG Compression Algorithm" Technical Note released by SGS-THOMSON MICROELECTRONICS (An 529/0294). Datasheet "STi3500A" Datasheet of SGS-THOMSON MICROELECTRONICS. "STi3520A - Advanced Information for an MPEG Audio / MPEG-2 Video Integrated Decoder" (June 1995). EP-A-0 687 111 discloses an MPEG decoder with reduced memory requirements employing DPCM coding and decoding to compress digital data of I and P fields/frames to be stored in the embedded or external RAM. The article "Adaptive Entropy-coded Predictive Vector Quantization of Images" by Modestino J.W., et al., IEEE Transactions on Signal Processing, vol. 40, no. 3, 1 March 1992, pages 633-644, and the article "Intra-Frame Picture Coding using Vector Quantization" by Cassimatis E., ICC, vol. 2/3, 22 June 1986, pages 41.8.1 - 41.8.5, disclose the use of the so-called tree search vector quantization technique for vector quantization. According to a typical architecture of an MPEG-2 decoder, such as that shown in Fig. 3 of the publication No. STi3520A relative to an MPEG Audio / MPEG-2 Video integrated decoder marketed by SGS-THOMSON MICROELECTRONICS, herein reproduced as Fig. 1, there exist well defined requisites of video memory, that is of capacity of an external DRAM memory that, for a PAL and NTSC application, capable of supporting 16Mbits PAL video signals, can be estimated as follows. Considering that both the MPEG-2 video decoder and the MPEG audio decoder access a unique external DRAM memory of 16Mbits, through a common interface, the audio decoder may require access to only 65.536 bits leaving the remaining 16.711.680 bits available for satisfying the requisites of the MPEG-2 video decoder. The video memory can be configured as follows. A "Bit buffer": that is a buffer for compressed data that the MPEG-2 standard fixes at 1.75Mbits plus an extra amount, for example of 810.000 bits for PAL and 685.000 bits for NTSC, in consideration of a nonideal process of decompression being actually implemented. A first "I-frame buffer" for the decompressed Intra-picture or briefly I-picture, in a 4:2:0 format. A second "P-frame buffer" for the decompressed Predicted-picture or briefly P-picture, in a 4:2:0 format. A third "B-frame buffer" for the decompressed Bidirectionally Predicted Picture or briefly B-picture, in a 4:2:0 format, eventually optimized so to require a reduced amount of memory, that is of 0.7407 or 0.6111 of a frame respectively in the case of a PAL or NTSC system. According to the present MPEG-2 standard technique, and regardless of being dealing with an I, P or B-picture, depending on the type of video standard, each "frame buffer" in the 4:2:0 format may occupy an amount of memory given by the following table. 720x576x8 for the luma (luminance) (Y) 3.317.760 bits PAL 360x288x8 for the U chroma (chrominance U) 829.440 bits = 4.976.640 bits 360x288x8 for the V chroma (chrominance V) 829.440 bits 720x480x8 for the luma (luminance) (Y) 2.764.800 bits = 4.147.200 NTSC 360x240x8 for the U chroma (chrominance U) 691.200 bits 691.200 bits 360x240x8 for the V chroma (chrominance V) bits Therefore, in the case of a PAL system, which representing the most burdensome case, may serve as a reference example, the actual total amount of memory required will be given by: 1.835.008 + 810.000 + 4.976.640 + 4.976.640 + (4.976.640 * 0.7407) = 16.284.486 bits. This calculation takes into account a 0.7407 optimization of the B-picture frame buffer. A further optimization, made possible by using fast synchronous memories such as SDRAM, may consist in carrying out the decompression of the B-picture without resorting to a storage step in the external RAM by carrying out an equivalent function internally in the integrated decoder device by a dedicated circuit block functionally placed upstream of the Display Unit. Considering this further optimization, the video memory requirement drops to: 1.835.008 + 810.000 + 4.976.640 + 4.976.640 = 12.598.288 bits where the B-buffer is realized within the same chip containing the "core" of the decoder, being required to convert the scanning of each 8*8 block, defined in the MPEG-2 compressed data stream, in that of each row of the picture (field or frame) required by the video display process of the picture itself. Such conversion macrocell is commonly referred to as "MACROBLOCK TO RASTER SCAN CONVERTER" In view of the above-indicated present limits of optimization of the static memory requisites of an MPEG-2 decoder, a method and a relative system of implementation has now been found and represents the object of the present invention allowing for a remarkable reduction of the memory requisite. This invention is equally useful in the case of systems not based on the standard MPEG but where there is a need to store in a dedicated memory, even temporarily, full quadrants or semiquadrants of a picture. Because of the particular importance and widespread use of the of the MPEG standard, the ensuing description will continue to refer to such a preminent application by referring to MPEG coder/decoder systems, without necessarily intending to limit the invention to this field of application that may also be utilized in other applications requiring a reduction of the memory requisite, as in the case of the so-called SQTV (Smart Quality Television) processors where it is necessary to store entire pictures, or part of them, during the decoding phase in order to implement adequate algorithms to correct or filter out disturbances and/or to implement high refresh rates, not linked to the AC power line frequency. Therefore, the invention is useful for digital decoders and coders of pictures, as well as in other applications such as graphic cards, video image processors and more in particular where there is a need for a temporary storage of a digitized picture of any format that can viewed on at least part of a display screen. In the case of MPEG systems, the consideration that has triggered the present invention is the recognition that the amount of memory required by the decoding process, resulting from the above stated calculations, can be remarkably reduced by recompressing the pictures used as a reference for the prediction (I-picture and P-picture for the case of the standards MPEG-1 and MPEG-2), following to the MPEG decompression and before they are stored in the external video memory and their decompression when they are read from the external memory. Fundamentally, the method of the invention consists in recompressing at least the I-pictures and the P-pictures (assuming that the decompression of the B-pictures is made without recourse to a storage phase) by employing a "MACROBLOCK SCAN TO RASTER SCAN" conversion buffer of the B-pictures, after the MPEG-2 decompression and before sending the pictures to the Display Unit. Such an I and P pictures recompression phase must satisfy the following requisites: effectiveness : the amount of memory occupied by the compressed pictures added to that required for carrying our their decompression should be lower than the total memory used for decoders without recompression. efficiency: (1) the recompression of the pictures must be obtained in a simple manner so that the total cost of the device does not increase markedly, compared to the saving deriving from a lower memory requisite; (2) the quality of the reconstructed pictures should not show an appreciable degradation or in any case must remain acceptable in terms of cost/quality ratio; The prior European patent applications EP-0 793389-A1, EP-0 778 709-A1 and EP-0 817 498-A1, all in the name of the present applicant , describe a recompression method according to an ADPCM scheme of chrominance and luminance data blocks, output by the discrete cosine inverse transform processing circuit pipeline of the MPEG-2 decompression block (for the I-pictures and, after motion compensation, for the P-pictures), by coding the corresponding data for example according to a four-pel compression of luminance blocks and to a three-pel compression of chrominance blocks. The main drawback of ADPCM recompression consists in that at increasingly high compression ratios a certain loss of image quality starts to manifest itself. It has now been found a more efficient and advantageous recompression method which reduces considerably the loss of image quality, compared to the ADPCM method, at relatively high compression ratios and that therefore represents a decisively better alternative technique than the a recompression according a an ADPCM scheme. The approach of the present applicant is that of effecting a compression of the chrominance and luminance data blocks of a macroblock of digital data, such as for instance an MPEG decompressed block, by a compression method based on a "tree-search vector quantization" (TSVQ), using a cost function of lesser computational complexity than the sum of the squares of differences as generally used. This compression method, as explained below, responds excellently to the above stated requisites, and further adds a certain degree of flexibility of compressing that allows, in a very simple manner, the modification or configuration of the coding and decoding circuits for optimizing them for a different compression level. The compression based on a vector quantization technique (TSVQ) is strongly dependent upon the method used to select the quantizer, which is in turn utilized to quantize the differences between adjacent pels. According to this invention an optimal criterion is established for selecting the quantizer. Description of the method Let I be a digital picture represented by a matrix of M rows and N columns of pixels, and let I(x,y) the pixel defined by the row y and the column x, defined as an integer number by a number B of bits (binary figures). Let the I picture be decomposed in rectangular blocks having an RxC size (R rows and C columns). The maximum efficiency for the compression is obtained if R and C are chosen amongst the integer divisors of M and N, respectively. Let us assume by "pixels vector" the group of pixels belonging to a block and grouped in N-dimensional vectors. The maximum compression efficiency is obtained when N is a divisor of RxC. Each block will then be subdivided in Nv=(RxC)/N vectors, so that each pel of each block belong to one vector only. The vectors are used within each block according to a proper scanning and Vk is the k-th vector according to said scanning, and Vk(i) its i-th component (that is, the i-th pixel of the vector). The algorithm performs a compression of each block, that is, a reduction of the number of bits necessary for representing the block itself, by exploiting only the data extracted from the block itself, this in order of simplifying both the access to the block in the stream of compressed data and also the decompression of the block itself. The TSVQ compression mechanism is twofold: the prediction method; and the vector quantization method. The prediction method, This method exploits the correlation existing amongst adjacent pixels of a picture for reducing the number of bits necessary for a binary description of the picture itself. In fact, it is possible to approximate the value of a pixel vector by appropriately combining only the values of the pixels adjacent to it, and forming a second pixel vector, thus making what is commonly referred to as a vector "prediction". It is therefore possible to reduce the amount of binary figures necessary for a digital representation of a picture by defining the prediction mechanism and by appropriately coding, rather than each pixel, only a prediction error vector. The more precise is the vector prediction (and thus of each of its components), the lower is the entropy of the prediction error, that is, the lower is the number of bits necessary for coding the latter. Considering for example a scanning arrangement of the RxC block, such that for each JxK vector, with the exception of the first one (which is not subject to any modification the values of its components), there exists another, preceding it, that may be used as the predictor of the vector itself. Let V(i...i+J-1, j..j+K-1),i=1,..,[R-J+1] and j=1,..,[C-K+1], the vector defined by the pixels contained in the rectangular area determined by the following coordinates: top left coordinates (i,j) top right coordinates (i,j+K-1) bottom left coordinates (i+J -1, j) bottom right coordinates (i+J-1,j+K-1) By referring to the scheme of Figure 6, the arrangement is defined as follows: OV (1..J, 1..K) first scanning vector OV' (i..i+J-1,1..K) i=1+J, 2+J .., R-J+1 OV' (i..i+J-1, j..j+K-1) i=1+J, 2+J..,R-J+1 and j=1,1+K,2+K,..,C-K+1 Vector Quantization Method Let us define E=V-V' the prediction error. Each error vector is quantized, that is to say, represented by the vector most similar to it amongst H vectors stored in a table, in a way that each vector defines the centroid of the areas in which the most general statistic of the prediction error vectors of a picture has been partitioned and that such a partition minimizes the error as compared to any other possible partition of the same statistic. This quantization table originates from the "Generalized Lloyd Algorithm" well know in literature (re "Vector Quantization & Signal Compression", by Gersho & Gray, K.A.P. publishers). An advantage of a TSVQ compression technique derives from the fact that the quantization process terminates after a number of comparisons equal to the logarithm in base 2 of H; whereas if the search process used a thorough approach, the number of comparisons would be H. The TSVQ compression method may be applied to each block in which the picture is decomposed through the following operations: 1) Selection and use of a scanning path of the RxC block by N dimension vectors; 2) Coding the unmodified first vector V(1..J, 1..K) of the RxC block; 3) Generating a vector and calculating the prediction error; 4) Quantizing by a binary search of said error and coding of the quantizer; 5) Repeating steps 3) and 4), using the path defined in 2) for all the vectors of the RxC block. Let the RxC block be composed as follows: A(1,1) A(1,2) A(1,3) A(1,4) A(1,5) A(1,6) A(1,7) .................. A(1,C/K) A(2,1) A(2,2) A(2,3) A(2,4) A(2,5) A(2,6) A(2,7) .................A(2,C/K) A(3,1) A(3,2) A(3,3) A(3,4) A(3,5) A(3,6) A(3,7) ..................A(3,C/K) A(R/J, 1) A(R/J,2) A(R/J,4) A(R/J, 4) A(R/J, 5) A(R/J, 6) A(R/J,7).....A(R/J,C/K) where A is the vector composed of JxK pixels. The first vector A(1,1) is coded without any modification, according to its original resolution by B bits. The selected scanning for generating the prediction error and the relative vector quantization is: first row, A(1,1), A(1,2).....A(1,C/K) second row, A(1,1),A(2,1),A(2,2).....A(2,C/K) third row, A(1,1),A(2,1),A(3,1), A(3,2).....A(3,C/K) last row, A(1,1),A(2,1),A(3,1),A(4,1),.....,A(R/J,1),A(R/J,2).....A(R/J,C/K) 3) Generating a predictor vector for the current one to be quantized. The prediction is of the spatial type, thus intending the generation of the components of the prediction error vector as sum and/or difference, weighed by appropriate coefficients, of pixels relative to adjacent vectors. Some example are reported below. As for as the prediction in the first row is concerned, use is made of the prediction vector that precedes the predicted one. For example, to predict A(1,2) the predictor used is A(1,1). For instance, let A(1,1) and A(1,2) be two vectors with j=k=2: A(1,1)=P0 P1 A(1,2)=Q0 Q1 P2 P3 Q2 Q3 The prediction vector is equal to E( )= Q0-P1 Q1-P1 Q2-P3 Q3-P3 With regard to the prediction relative to the first column and characterized by a chaining together of the vectors A(1,1), A(2,1), A(3,1), A(4,1),.....,A(R/J,1), once again use is made of the vector of the preceding vertical position as predictor vector. For example let A(1,1), and A(2,1) two vectors with J=k=2: A(1,1) = P0 P1 A(2,1) = Q0 Q1 P2 P3 Q2 Q3 The prediction error is equal to E( ) = Q0-P2 Q1-P3 Q2-P2 Q3-P3 With regard to the prediction of the remaining vectors that do not belong to the first top row neither to the first left column, according to the current scanning path, the prediction error is calculated as follows: let A(2,2) the vector to be predicted using pixels belonging to A(1,1), A(1,2) and to A(2,1) A(1,1), A(1,2) (located as vectors) A(2,1), A(2,2) This is equivalent to the following position in pixels: P0A(1,1) P1A(1,1) F0A(1,2) F1A(1,2) P2A(1,1) P3A(1,1) F2A(1,2) F3A(1,2) G0A(2,1) G1A(2,1) Q0A(2,2) Q1A(2,2) G2A(2,1) G3A(2,1) Q2A(2,2) Q3A(2,2) For example, the predictor error vector will be calculated as follows: E0 = Q0A (2,2) - [a*F2A(1,2) + b*P3A(1,1) + c*G1A(2,1)] / (a+b+c) E1 = Q1A (2,2) - [d*F3A(1,2) + e*P3A(1,1) + f*G1A(2,1)] / (d+e+f) E2 = Q2A (2,2) - [g*F2A(1,2) + h*P3A(1,1) + i*G3A(2,1)] / (g+h+i) E3 = Q3A (2,2) - [I*F3A(1,2) + m*P3A(1,1) + n*G3A(2,1)] / (I+m+n) 4) Quantization through binary research and coding of the quantizer. Let us consider the use of a quantization table constituted of H vectors, each of which is made of 4 integer components. Let us suppose their arrangement at the nodes of a binary tree and let H be equal to 15, then Notation: H2 and H3 are sons of H1 H4 and H5 are sons of H2 H7 and H6 are sons of H3 H8 and H9 are sons of H4 H10 and H11 are sons of H5 H12 and H13 are sons of H6 H14 and H15 are sons of H7 Note : a "vector son" is the vector whose components correspond to the arithmetic mean of the homologous components of the parents vectors. Let us suppose that we want to quantize one of the error predictors, E( ), generated in 3), with one of the following vectors H8, H9, H10, H11, H12, H13, H14 o H15. An effective and simple way of calculating the distance is to use a cost function or Norm = the sum of the moduli of differences among the components of the two selected vectors, that is between the vector E() and H2 and between the vector E() and H3. For instance, if the latter is less that the first, then the calculation of the distance must be repeated between E() and H6 and between E() and H7. In fact, in the binary tree, H6 and H7 are sons of H3. Let us suppose that the first is less than the second, then the distance between E() and H12 and between E() and H 13 will be calculated: if the latter is less than the first then H13 will be the quantized vector of E(). Only the vectors H8, H9, H10, H11, H12, H13, H14 o H15 can be the quantized ones of E(), while the others are used for determining which of those is more similar to E(). For each vector V of dimensions JxK pixels of the RxC block, the predictor to be adopted will be V' of as many pixels as previously defined. It should be noticed that such a predictor, following the previously detailed scanning arrangement, has already been quantized and reconstructed, and therefore it is not taken from the original picture. This allows for a better control of image quality than with known DPCM techniques. Example of compression with N bits per pixel: With reference to the above, let us consider a 16*8 block of pixels after eventual motion compensation. Let us suppose to independently compress each vector of pixels relative to an area of 2x2 of the picture and comprised within said 16*8 block for luma (as shown in Figure 7) and 8*4 block for chroma. The total number of bits utilized for the compression of the block is: 8*J* K+(C-1) * N where: 8 = bits used for the coding of each component of the first scanning vector J = Vertical dimension of the pixels vector K = horizontal dimension of the pixels vector N = bits used for coding each vector C = number of pixel vectors within the RxC block For the case J=2, C=32, N=7, K=2 and for the luminance we obtain a total of: 8*2*2+(32-1)*7 = 249 bit/macroblock 16*8 For the case J=2, K=2, C=8, N=5 and for the chrominance we obtain a total of: 8*2*2 + (8-1)*5 = 67 nit/macroblock 8*4. Example of compression of an MPEG macroblock Each macroblock is made up of two 16*8 blocks of luminance and of two 8*8 blocks of chrominance; each macroblock is coded with a number of bits equal to: In each frame PAL there are 1620 macroblocks: 3,072 x 1620 = 4,976,640 bits It is known that the chrominance has a lower data content, presenting a band restricted to the lowest spatial frequencies. This implies a greater predictability of chrominance, that is, a greater efficiency of the TSVQ compression. By considering a 7bit/vector compression for the luminance and a 5 bit/vector for the chrominance the memory requisite becomes Therefore, each frame occupies: 766 x 1620 = 1,240,920 bits The macroblock compression factor so obtained is equal to 4. Example of application to an MPEG decoder By taking into account the above relationships it is possible to reach the target of 5 Mbytes by assuming the compression with the above computed factor for the I and P decompressed pictures. This result is attained by recompressing the I and P pictures after the MPEG decompression and before they are stored in the video memory. They will be then decompressed when they are read from the external memory, as shown in Figure 1. The compression is applicable to the 16*8 block output from the I-DCT and motion compensation pipeline. In particular, in the considered example, for the 16*8 blocks of luminance, subdivided in 2*2 vectors, a 7bits/vector compression is selected, whereas for the 8*4 blocks of chromimance, subdivided in 2*2 vectors, a 5 bits/vector compression is selected. Thus the memory requisite becomes: The present invention provides a method of processing encoded and compressed video information as defined in claim 1 and an MPEG-2 video decoder as defined in claim 2. Brief description of the drawings Figure 1 is a block diagram of an MPEG2 video decoder which includes the encoder and the decoder TSVQ according to the present invention. Figure 2 shows the encoder, the decoder and the multiplexer needed for enabling or disabling TSVQ recompression. Figure 3 is a block diagram of the TSVQ encoder that highlights the two quantizing tables for luma and chroma, respectively. Figure 4 shows the architecture of the vector quantizer which permits to quantize the prediction error vector. Figure 5 shows the architecture of the TSVQ decoder depicted in Figure 2. Figure 6 illustrates the scanning path of a RxC block by means of JxK vectors. Figure 7 illustrates a sample calculation of the prediction error for the luminance component, for the case R=8 and C=16 and for the case J=2 and K=2. Description of the annexed figures. With reference to Figure 2, the TSVQ encoder feeds the compressed data stream to a multiplexer to a second input of which there exists the same input signal of said TSVQ encoder. By a configurable control signal, by conveyed through the data bus by a microprocessor connected to the decoder, as shown in Figure 1, it is possible to condition the multiplexer for selecting one or the other of the two inputs, in order to use or exclude the TSVQ compression. The same applies to the decoder. The exclusion of the TSVQ encoding also implies that of the TSVQ decoding. In practice, a dynamic management of the external memory may be implemented to make available memory space by activating the TSVQ encoder and the TSVQ decoder. This might be convenient in case of an external memory of 16 Mbytes to free about 11 Mbytes to be used for other operations such as for example of graphic functions or teletext. Figure 3 shows a circuit which, apart from providing a general view of the encoder, also details the prediction and quantization loop of the single pixel vectors. It should be noticed the way the two tables of quantizers, optimized for luma and chroma compression have been defined. A multiplexer selects which of the two tables should be used depending on whether the chroma or the luma is being compressed. The input buffer, for example with a memory capacity of 16x8 pixels (coded by 8 bits each) serves to store the block to the decomposed in vectors, for example, of 2x2. Each vector is then sent to a differential stage which determines the difference between the source and prediction vector. The resulting prediction error vector is then quantized by the block of Figure 4. The ROM address, see Figure 4, that contains the quantized vector is then sent to the DRAM memory, whereas the quantized vector read from such an address is sent to a unit that limits the modulus of its components between 0 and 255. Therefore, the relative output supplies the block that generates the predictor for the next vector to be quantized. This block implements the function described in paragraph 3) above. Finally, the starting vector of the scanning is sent unmodified to the DRAM and thus in recorded with full precision. Figure 4 illustrates an example of the quantizing circuit of Figure 3. The top of this figure shows the ROM where there is vector stored at each address. The implemented quantizing algorithm will output the quantized vector and the address of the cell that contains it after a number of comparisons equal to the logarithm in base 2 of H. All the ROM cells corresponding to the even addresses are linked to the MUX (even address) whereas those corresponding to the odd addresses are linked to the MUX (odd address). The outputs of said two MUX respectively feed the NORM COMPUTE blocks that calculate the sum of the absolute values of the differences among the components of the two vectors present at the respective inputs. The outputs of the two blocks that calculate the norm feed a comparator that determines which of the two norms is greater. The resulting signal drives the MUX (address generation) to generate the corresponding ROM address. If, the norm between the prediction error vector (see Figure 3) and the vector read from the ROM at the odd address, is lower than the norm between the prediction error vector and the vector read from the ROM at the odd address, then, for the next iteration of the algorithm the address that drives the MUX (even addresses) multiplied by 2, will be used. Otherwise, the address that drives the MUX (odd addresses), multiplied by 2, will be used. These addresses are located at the input of the address generation MUX, plus the initial address 2 which is used for the first iteration. Said MUX is driven by the output of the comparator and by the initialization signal which allows the use of the value 2 as the initial value of the ROM address for each search cycle. The MUX output is used to drive the MUX (even address), whereas the other MUX (odd address) is driven by the same output, incremented by 1, thus accessing the odd addresses of the ROM. For instance, if H=15 then after four iterations, the architecture of the invention will provide both the quantized and the coded vectors. By referring to the example already described in paragraph 4): 1^ STEP MUX address generation output = 2 MUX even address control = 2 MUX odd address control = 3 NORM COMPUTE N1 input = H2 NORM COMPUTE N2 input = H3 Let N2 < N1 coded vector = don't care quantized vector = don't care 2^ STEP MUX address generation output = 6 MUX even address control = 6 MUX odd address control = 7 NORM COMPUTE N1 input = H6 NORM COMPUTE N2 input = H7 Let N1 < N2 coded vector = don't care quantized vector = don't care 3^ STEP MUX address generation output = 12 MUX even address control = 12 MUX odd address control = 13 NORM COMPUTE N1 input = H12 NORM COMPUTE N2 input = H13 Let N2 < N1 coded vector = don't care quantized vector = don't care 4^ STEP MUX address generation output =13 MUX even address control = don't care MUX odd address control = don't care NORM COMPUTE N1 input = don't care NORM COMPUTE N2 input = don't care coded vector = 13 quantized vector H13 Besides showing a generalized view of the decoder, figure 5 also details the prediction loop for decoding the pixel vector that follows the current one. It should be noticed the way of defining the two quantizing tables, as optimized for luma and chroma compression. A multiplexer selects which of the two must be used, depending on whether the luma or the chroma are being decompressed. The coded vector read from the DRAM is used as ROM address containing the codebook; the read vector is then sent to an adder stage which operates the sum with the vector generated by the SPATIAL PREDICTOR GENERATION block. This sum is sent to a unit that limits the modulus of its components between 0 and 255. This unit's output feeds the block for the generation the predictor for the next vector to be dequantized. Such a block implements the function previously described in paragraph 3). Finally the same INTRA vector, the starting vector of the scanning, is read from the DRAM memory to initialize the decoding. Figure 6 illustrates the scanning path of a block with RxC dimensions through the JxK vectors, in which R=8, C=16, J=2, K=2. Figure 7 illustrates a sample of calculation of the prediction error for the luminance component, for the case of R=8, C=16, J=2 and K=2.

Claims: A method of processing encoded and compressed video information received as a stream of blocks of digital data representing the decomposition of video pictures into rectangular blocks of a predetermined integral number of rows and a predetermined integral number of columns of the pixel arrays of the pictures, wherein the video information has been coded and compressed using motion compensation to create I, P and B pictures, the method comprising decoding and decompressing the I, P and B pictures, whereby the decoded and decompressed I and P pictures are used to recreate P and B pictures, the method comprising recompressing the decoded and decompressed I and P pictures using a tree search vector quantization technique (TSVQ) and temporarily storing the recompressed I and P pictures in RAM, the tree search vector quantization technique including the steps of: a) adopting a predetermined scanning path which divides each block of an I or P picture into a number N of vectors each comprising a predetermined number of pixels, and storing the first vector in the scanning path in unmodified form in said RAM; b) generating a vector comprising a succeeding group of said predetermined number of pixels and calculating the corresponding prediction error vector; c) quantizing said prediction error vector by a search through quantizing vectors stored as a binary tree in ROM, each quantizing vector having as many components as there are pixels in each of said N vectors, using as cost function the sum of the absolute values of the differences between the components of said prediction error vector and said quantizing vectors, and storing in said RAM the address of the quantizing vector identified in the search as the one most similar to said prediction error vector; d) repeating steps (b) and (c) for successive vectors along said scanning path until all vectors of the block have been quantized and the corresponding ROM addresses have been stored, e) repeating steps (a) to (d) for other blocks in said I or P picture until said I or P picture is stored in encoded and compressed form, whereby the data of said I and P pictures stored in said RAM is subsequently re-decoded and re-decompressed to recreate the I and P pictures to be used in the decoding and decompression of P and B pictures in the received stream of blocks of digital data. An MPEG-2 video decoder, interfacing with a control bus and a data bus through which digital data of rectangular blocks of a certain integer number of rows and a certain integer number of columns in which the pixel array of the picture is divided and relative to an I-picture and to a P-picture are temporarily stored in respective buffers defined in a random access memory external to the "core" of the video decoder to be successively read therefrom, the decoder comprising a first FIFO buffer of data acquisition and writing of input compressed data in a dedicated video bit buffer defined in said random access memory, a picture start code detector circuit synchronized by a controller interfaced with said control bus, a bi-directional buffer for on-screen data display, a variable length decoder of the compressed input data stream, an MPEG-2 pipeline of the data decoded by said variable length decoder, comprising a "run length" decoder, an inverse quantizer circuit, an inverse discrete cosine transform processor, and a predictor generating circuit for motion , compensation of MPEG decompressed B-pictures, and a macroblock scan to raster scan conversion circuit for receiving blocks of decompressed digital data of said I and P pictures and of said motion compensated B-picture, upstream of a display unit, characterized in that it further comprises a tree search vector quantization encoder circuit for re-compressing by blocks digital data of MPEG decompressed I and P pictures and coding them before storing them in said respective buffers of said random access memory ; and a tree search vector quantization decoder circuit for decompressing by blocks the stored compressed data of said I-picture and P-picture read from the respective buffers of said random access memory for generating a stream of decoded and decompressed blocks of data relative to said I and P pictures to be fed to said conversion circuit ; for implementing the method of claim 1. The decoder according to claim 2, characterized in that said tree search vector quantization encoder circuit comprises a block buffer for the acquisition of blocks of input data capable of decomposing the block of input data in vectors of predefined dimensions; a difference circuit receiving through a first input the decomposition vectors of said block of input data and through a second input prediction vectors and outputting prediction error vectors; a vector quantizing and coding circuit receiving through an input said prediction error vectors output by said difference circuit and using two distinct tables of quantized vectors respectively optimized for luma and chroma compression, selected automatically by a multiplexer, and producing at a first output the address of the table containing the quantized vector to store in a respective memory buffer and at a second output the quantized vector read from the respective table; a limiting circuit receiving through an input said quantized vector and limiting its components within 0 and 255; a prediction vector generating circuit receiving through a first input said quantized vector, having its modulus limited by said limiting circuit, and through a second input the vector present at the output of said input buffer and outputting said prediction vector that is fed to the second input of said difference circuit.

Inventors: BRUNI ROBERTA, PAU DANILO, SANNINO ROBERTO, BRUNI, ROBERTA, PAU, DANILO, SANNINO, ROBERTO
Applicants: ST MICROELECTRONICS SRL, STMICROELECTRONICS S.R.L.
Application year: 1997
Main classification: H04N1
IPC codes: H04N5, H04N7, G06F17, G06T9, H03M7