Method and means for coding and decoding picture information

Abstract: A method and a means for coding and decoding picture information is described. According to prior art two modes are utilized for transmitting picture information, with prediction and without prediction, respectively. According to the present invention advantages are obtained in using a mixed mode, i.e. certain frequency components are transmitted with prediction and the remaining components without. In the invention two channels are utilized, with and without prediction, respectively, these channels being selectively connected by means of switches, which are controlled by a control means.

Description: The present invention relates to a method and a means for picture coding and decoding moving pictures intended for digitally transmitting on e.g. telephone wires. As is well known, transmitting picture information about moving pictures on telephone wires without any adaption of the information is very space-requiring. Therefore, a number of methods have been developed for compressing the information without deteriorating the image quality by too far. Predictive DPCM coding (differential pulse code mudulation) is such a method of compressing the information. In this method the knowledge is utilized that there are only small differences between two successive images. In the receiver a predictor predicts what the next image looks like by means of the preceding image. A difference is formed and only the prediction error has to be transmitted to the receiver, which contains a simular predictor for reconstructing the original image. In transform coding the image is divided into blocks of e.g. 8 × 8 or 16 × 16 picture elements or PEL. The image content is mathematically transformed into so called transform coefficients which are then quantized. The coefficients for gray areas are zero, according to this method, and do not have to be transmitted on the telephone wires. DPCM coding and transform coding can be combined to a third method, in this application called hybrid coding (strictly hybrid DPCM transform coding), thus utilizing prediction as well as transformation. Hence, a block is transformed from its PEL domain or the time plane to its transform domain or the frequency plane by means of e.g. a discrete cosine transform (DCT). Then the transform coefficients are quantized and the prediction takes place in the transform domain with a similar loop as in the DPCM coding. This order may also be reversed so that the transformation takes place within the prediction loop and the prediction in the PEL domain, which is previously known. The transform coefficients, which can now take on discrete values between e.g. -128 and +127, are then detected in the frequency plane, the information carrying coefficients being concentrated to the beginning of the block. In addition, the probability for the different values of the transform coefficients is concentrated around zero, i.e. the probability for the value zero is greater than the probability for the values ±1 which is greater than the probability for the values ±2, etc. Before the coefficients are transmitted they are coded with variable length coding, the structure of a block having been utilized such that the value zero, which is most probable, gets a code having the least number of bits, and higher values get a greater number of bits according to their probabilities. The terminating zeros of the block are not coded, but the end of the block is defined by a special character EOB (end of block). The three methods above are described more closely in Televerket's technical periodical, Tele, vol. 91, No. 4, 1985, pages 1-7, and the periodical Elteknik, No. 14, 1986, pages 48-52. A method and a means for variable length coding is described in my co-pending patent application entitled "Method and means for variable length coding", published 24 August 1988 under No EP-A-0 279 799. The methods above may be divided into two modes, with prediction for all frequencies (interframe), and without prediction (intraframe). Coding without prediction is specially advantageous in situations having scene changes and heavy motion, since a preceding image contains very little or no information at all about the next image. This mode is called "intra" in this application. Coding with prediction is especially efficient for slowly moving pictures and unchanged background areas. This mode is here called "inter". According to prior art, these two transmitting modes have been utilized, thus, prediction for all frequencies or no prediction at all. The drawback to "inter" is that the prediction error is considerable for high frequencies, especially when there is much movement or changes in the images. A method for picture coding is disclosed in the document: Conference Record, IEEE International Conference on Communications '86, vol. 1, 22.6.86, pages 381 - 384; J. Guichard & G. Eude: "Intra- and inter frame transform coding for moving pictures transmission". The document, in particular Fig. 1, discloses a method for picture coding a block containing picture information in the form of data words, the data words being transformed from the time plane to the frequency plane into transform coefficients (DCT), which are quantized. The method also includes the steps of: transmitting the transform coefficients over two paths, predicting the coefficients in the first path and not predicting in the second path, either channel being connected to a variable length coding means coding the coefficients. The connection of the paths is controlled by a control means. According to this document, the number of bits which are necessary to encode the block is computed in the mode with prediction and the mode without prediction. The coding mode for the block is then chosen. According to the invention further savings can be made by switching between the two modes even within the data blocks. Thus, for each coefficient a decision can be made as to which mode in which to perform the encoding, with or without prediction. According to the present invention, the above-mentioned advantages are achieved by a method for picture coding a block containing picture information in the form of data words, the data words being transformed from the time plane to the frequency plane into transform coefficients, which are quantized. The transform coefficients are processed in two separate processing paths in parallel, the coefficients in the first path being predicted and in the second path not being predicted, either path being connected to a variable length coding means coding the coefficients, and the connection of the paths being controlled by a control means. According to the invention there is at least one switching between the two paths, so that each coefficient to be transmitted may be selected as predicted or not predicted. Preferably, the connection is controlled such that the smallest of the predicted and not predicted coefficient is selected and passed to the variable length coding means and side information about the channel connection is formed and transmitted to the receiver. The invention also relates to a means for picture coding, and a method and means for picture decoding, as set forth in the accompanying claims. The invention will now be described with reference to the appended drawings, in which, Fig. 1 discloses a block diagram of a picture coding means including a transmitter and a receiver for transform coding, Fig. 2 discloses a block diagram of a picture coding means for hybrid coding, Fig. 3 is a block diagram of a display coding means according to the present invention, Fig. 4 discloses a spectrum for transform coding and the prediction error, respectively, and Fig. 5 gives the values of an example. As a background of the invention there are disclosed in Figs. 1 and 2 a transmitter and a receiver for transform coding and hybrid coding, respektively. The transmitter in the transform coding in Fig. 1 comprises a transforming means T, a quantizing means Q and a variable length coding means VLC, the functions of which are easily realized. The receiver in the transform coding of course comprises the corresponding inverse means. The device works in the intra mode all the time. The transmitter in the hybrid coding in Fig. 2 comprises a transforming means T, a quantizing means Q and a variable length coding means VLC, which can be similar as in the transform coding. A feed back loop having an inverse quantizing means Q⁻¹ is also part of the transmitter, and a predicting means P, essentially providing a delay corresponding to one image. Suitable additions and subtractions result in that only the prediction error enters the input to VLC. The receiver in the hybrid coding comprises corresponding inverse functions in the reversed order as well as a simple prediction loop between the inverse quantizing means and the inverse transforming means. The device works in the inter mode all the time. In Fig. 3 there is disclosed a preferred embodiment of the present invention comprising a transforming means T and a variabale length coding means VLC similar as in prior art. However, between these means are two paths or loops L1, L2, selectively connectable by means of a switching means having two switches K1, K2, interconnected and controlled by a control means A. In comparison with Figs. 1 and 2, respectively, it is realized that the lower channel L2 in the present invention essentially corresponds to the transform coding in Fig. 1 and that the upper channel L1 completely corresponds to the hybrid coding according to Fig. 2. Compared with Fig. 1, the lower channel has furthermore been provided with an inverse quantizing means Q2⁻¹, having the task to provide for the predicting means P all the time keeping correct information about the latest image even if it is not utilized when the lower channel is connected. The receiver according to the present invention comprises in the same way as previously an inverse variable length code means VLC⁻¹ and an inverse transforming means T⁻¹. Therebetween is an upper channel L1' corresponding to the receiver in the hybrid coding in Fig. 2 and e lower channel L2' corresponding to the receiver in the transform coding in Fig. 1. The receiver also comprises a switching means having two switches K1′, K2′ to selectively connect the lower or the upper channel. The switches K1′, K2′ are controlled by a control means A′ . In Fig. 4 there is disclosed a spectrum for transform coding or the intra mode and the prediction error or the inter mode, respectively, the average size of the coefficients being plotted against the frequency. As appears, the two modes have completely different spectrums. Intra has big coefficients for low frequencies, whereas inter is more flat in appearance. For a certain frequency, in the figure designed ω0, the curves intersect and the prediction error is bigger than the coefficients in the transform coding. Thus, it would be suitable here to change transmission mode from intra to inter, which is utilized according to the present invention. Since variable length coding is utilized the number of bits is less in coding small coefficients and thus, there is a saving in the bit stream to be transmitted from the transmitter to the receiver. Which components to be transmitted inter and intra are controlled by switching the switches K1 and K2. This control can be done in a number of different ways. I. A detecting means (not shown) is connected to the outputs U1 and U2 and forms the difference between the components from the respective channel, L1, L2, and controls the switching means K1, K2 such that all the time the smallest component is transmitted to VLC. Simultaneously side information is formed, which is to be transmitted to the receiver and defines which channel to be used, L1′ or L2′ . The side information thus controls the switching means K1′, K2′ in the receiver. There may be restrictions on how to mix inter and intra. The number of switches can be limited, for instance. As a general rule, the more restrictions, the less information is required to define the mixing. With no restriction at all, it would require one bit per component for the side information. II. Low frequencies are transmitted inter and high frequencies are transmitted intra. The critical frequency ω0 is determined by detecting the channel outputs U1 and U2, so that the coefficients are as small as possible and thus the number of bits as small as possible, cf. the example below. The information about the critical frequency ω0 can be transmitted on a number of different ways to the receiver. A special address word, for instance, which is not part of VLC, can be transmitted by videoplex to the receiver. The address word defines when the switching is to take place in the receiver. Another possibility is that a special "EOB word", which is part of VLC, defines where the switching is to take place. III. Low frequencies are transmitted inter and high frequencies are transmitted intra. The critical frequency ω0 is constantly fixed, the first seven frequencies, for instance, can be transmitted inter. Thus, no detection of the outputs U1 and U2 is required and neither is any side information to the receiver required for defining the switch over. In variable length coding in some of the above methods it is advantageous to use the invention described in my previously mentioned European patent applications: "Method and means for variable length coding", published 24 August 1988 under No. 0 279 799. EXAMPLE In Fig. 5 there is given a fictive example of how the invention may work according to the above method II. In the lines U1 and U2 there is disclosed the values of the coefficients formed by transforming and passing through channels L1 and L2, respectively, these values existing at channel outputs L1 and L2, respectively. In conventional hybrid coding the words ar coded at U1 by variable length coding to the bit stream inter, the last three bits (digit 3 ) representing EOB. The number of bits are 36. In conventional transform coding the bit stream intra is produced, the last three bits also now representing EOB. The number of bits are 29. According to the present invention a switching is done from inter to intra after the first three frequencies, as shown by the arrow, the bit stream as mixed being achieved by variable length coding. The underlined threes represent EOB characters, the first defining where the switching is to take place from inter to intra and the last defining the end of the block. The number of bits is according to the invention 22, implying an essential saving compared with the two previous techniques. Hereinbefore, an exemplifying embodiment of the present invention has been described and of course several variants thereof are possible without departing from the inventive idea. Using motion compensated prediction in hybrid coding is known, for instant. In doing so the prediction must take place in the PEL domain, resulting in that the transformation takes place inside the feedback loop, also containing an inverse transformation. The present invention can of course be used in connection with such a coding as well. Guided by the present description a skilled person can construct and apply the present invention by means of components known per se. The invention is limited only by the claims below.

Claims: A method for picture coding a block containing picture information in the form of data words, the data words being transformed from the time plane to the frequency plane into transform coefficients, which are quantized, wherein the transform coefficients are processed in two separate processing paths (L1, L2) in parallel, predicting the coefficients in the first path (L1) and not predicting the coefficients in the second path (L2), one of the paths (L1, L2) being selected and connected to a variable length coding means (VLC) coding the coefficients, and the connection of the paths (L1, L2) is controlled by a control means (A), characterized in that there is at least one switching between the two paths (L1, L2) within each block, so that each coefficient to be transmitted may be selected as predicted or not predicted. A method according to claim 1, characterized in that the connection is controlled so that the smallest of the predicted and not predicted coefficient is selected and passed to the variable length coding means (VLC) and side information about the path connection is formed and transmitted to the receiver. A method to claim 1, characterized in that there is a switching from the first path (L1) to the second path (L2) at a fixed coefficient frequency (ω₀). Apparatus for picture coding according to the method of claim 1 for coding a block containing picture information in the form of data words comprising a transforming means (T) for transforming from the time plane to the frequency plane the data words into transform coefficients, wherein the transforming means (T) is connected to two paths (L1, L2), the first path (L1) comprising means for quantizing (Q1) and predicting (P) the coefficients, the second path comprising means for quantizing (Q2) the coefficients only, the outputs (U1, U2) of the two paths (L1, L2) being connected through a switch (K2) to a variable length coding means (VLC), and a control means (A) for controlling the switch (K2), characterized in that the control means (A) is capable of switching the switch (K2) effecting at least one switching between the two paths within each block, so that each coefficient to be transmitted may be selected as predicted or not predicted. Apparatus for picture coding according to claim 4, characterized in that the control means (A) comprises a detecting member, detecting the size of the coefficients on the outputs (U1, U2) of the paths (L1, L2) for controlling the switch (K2), side information about switching frequency/-ies being formed for transmitting to a picture decoding means. A method for picture decoding picture information coded to the frequency plane according to claim 1, which picture information through an inverse variable length coding means (VLC⁻¹) is decoded to coefficients being processed in two separate processing paths (L1', L2') in parallel, the coefficients in the first path (L1') being inverse quantized (Q1⁻¹) and added through a feedback loop with prediction (P), and the coefficients in the second path (L2') being inverse quantized (Q2⁻¹) without prediction feedback, and either path (L1', L2') being connected to an inverse transforming means (T⁻¹) which inverse transforms the coefficients to the time plane. A method according to claim 6, characterized in that connection of the paths (L1', L2') is controlled by means of side information from the picture coding means. A method according to claim 6, characterized in that in that there is a switching from the first path (L1') to the second path (L2') at a fixed frequency (ω₀). Apparatus for picture decoding according to the method of claim 6 for decoding picture information coded to the frequency plane comprising an inverse variable length coding means (VLC⁻¹) for decoding the input picture information and being connected to two paths (L1', L2'), the first path (L1') comprising an inverse quantizing means (Q1⁻¹) and a predicting means (P), the second path (L2') comprising an inverse quantizing means (Q2⁻¹) only, the outputs of the two paths (L1', L2') being connected through a switch (K2') to an inverse transforming means (T⁻¹), and a control means (A') for controlling the switch (K2'). Apparatus for picture decoding according to claim 9, characterized in that the control means (A') is arranged to receive side information from the picture coding means for controlling the switch (K2').

Inventors: BRUSEWITZ HARALD, BRUSEWITZ, HARALD
Applicants: TELEVERKET
Application year: 1988
Main classification: H04N7
IPC codes: H04N7, G06T9