Conditional motion compensated interpolation of digital motion video signals.

Abstract: Motion digital video is encoded and decoded by a motion compensated interpolation method and apparatus. In accordance with the method, selected frames of the video are interpolated in the decoder with the aid of interpolation correction codes that are generated in the encoder and sent to the decoder. In an encoder embodiment that interpolates half of the frames, every other frame is encoded and decoded within the encoder. The decoded versions of adjacent frames are appropriately combined and compared to the interleaved camera frame that is to be interpolated in the decoder. The differences, which correspond to "pels correction" information, are encoded and quantized. Those that exceed a predetermined threshold value are added to the encoder's output buffer. The inverse operation is carried out in the decoder. That is every pair of decoded frames is averaged and combined with the decoded "pels correction" information to form the interpolated frames.

Description: This invention relates to circuits for encoding and decoding video signals. Video signals typically originate from video cameras. The bandwidth of video signals is quite substantial and, consequently, practitioners in the art have tried to reduce the bandwidth of these signals without unduly degrading the images. Typically, to reduce bandwidth the video signals are encoded and redundancies in the encoded signals are extracted and deleted. Different techniques are used in the art and some are better suited for still images, while others are better suited for moving images. One of the techniques for reducing the bandwidth of moving images is generally referred to as motion compensated predictive coding. In conventional motion compensated predictive coding, each video frame is first partitioned into square blocks of picture elements (pels); such as blocks of 8 pels by 8 pels. Each block is coded, in turn, and the developed encoded sequence is transmitted over a communications channel to a decoder. The communications channel may be, or may include, a storage element. Next, a determination is made as to whether or not the pels of the block have changed significantly compared with the previous frame. If not, an indicator signal is sent which signifies to the decoder that is needs to merely repeat the pels of that block from the previous frame to obtain the pels for the current block. This is known as "Conditional Replenishment". If the pels have changed since the previous frame, an attempt is made to determine the best estimate of motion that is occurring in the block. This is frequently done by a "Block Matching Motion Estimation" technique wherein the pels of the current block are successively compared with various small shifts of the corresponding block in the previous frame. The shift that gives the best match is deemed to be the "best estimate" of the displacement in the block's image between frames, and the amount of this shift, called the "Motion Vector", is selected and sent to the decoder. The pels of the current block are then compared with those of the "best" shifted block from the previous frame to see if there is a significant difference. If not, an indicator signal is sent to the decoder, which merely causes the pels of the shifted block from the previous frame to be repeated for the pels for the current shifted block. Such blocks are said to have been successfully "Motion Compensated". However, if there is a significant difference between the two blocks, the difference is encoded and sent to the decoder so that the pels of the current block may be more accurately recovered. Coding of this difference is typically performed by means of the "Discrete Cosine Transform" (DCT). The volume of code that is generated by the above procedure is variable. It can be appreciated, for example, that image changes that do not correspond to a uniform translation, or motion, of the image may require substantial encoding to describe the deviation of a block from its best translated replica. On the other hand, when the image does not change between successive frames, then there is a minimal amount of information that needs to be encoded. To accommodate these potentially wide variations in the amount of code that needs to be transmitted, typical encoders include a FIFO memory at the output, to serve as a buffer. The FIFO is not a panacea. For a given transmission rate, when an excessive volume data is generated, there is always a danger that the FIFO would overflow. When it does, coding must stop until the transmission channel can empty the FIFO sufficiently so that new data to be accepted into it. Since it is inconvenient to stop encoding in the middle of a frame, most systems discard an entire frame whenever the FIFO buffer is full, or nearly so. To compensate for the loss of a frame, such systems cause the decoder to repeat its most recently available frame. Frame repeating results in moving objects in the scene being reproduced in a jerky fashion, rather than in the smooth way that would occur if frame repeating were not invoked. There have been some suggestions for improving the quality of the repeated frames in order to make them more faithfully resemble the original. One technique is called "Motion Compensated Interpolation". With this technique, instead of simply repeating the pels from the previous frame, the Motion Vectors are used to laterally displace the block by the appropriate amount prior to display. In other words, this method creates the missing block of pels by averaging over the immediately previous and following blocks of pels that are available to the decoder. While this might seem to be a good idea, experimental results show that when the images of successive blocks do not represent translational motion, the reproduced image may be worse than with frame repeating. Although it has been observed that this degradation is caused by a relatively few pels that do not conform to the assumption of translational motion, putting these pels in the wrong place creates highly visible artifacts. Transactions of the I.E.C.E: of Japan, E70 (1987) July, No. 7, Tokyo, Japan; M. Tanimoto et al.: "A hybrid scheme of subsampled DPCM and interpolative DPCM for the HDTV coding", pages 611 to 613, describes an arrangement where the pixels of a field in an HDTV frame are divided into two groups: basic pixels, and additional pixels. The basic pixels apparently are some preselected pixels. The additional pixels are those which differ from pixels that are derived from an interpolation of the basic pixels by more than a predetermined value. That is, the additional pixels are pixels which are created from the basic pixels (through interpolation) to stimulate non-basic pixels and which differ from the pixels that they simulate by more than a predetermined value. The basic pixels are encoded through DPCM and the additional pixels are encoded through "PCM of small bits". The additional pixels are decided after all of the interpolation errors of the field are known. That is, the threshold that is used to qualify a pixel as an "additional" pixel is modified based on the characteristics of the image in the encoded field. EP-A-0321318 describes an arrangement that includes a predictive coder that develops signals which correspond to the difference between an applied image and an image predicted from a previously applied image (prediction error signals). Those prediction error signals are sent to a decoder over a primary channel, unless the primary channel is unable to carry the volume of data in the prediction error signals. In such a case, the prediction error signals are decoded (yielding an image that substantially differs from the applied image), is subtracted from the applied image, and the difference is encoded and sent to the decoder over a secondary channel. According to one aspect of this invention there is provided an encoding circuit as claimed in claim 1. According to another aspect of this invention there is provided a decoding circuit as claimed in claim 11. By detecting pels that cause highly visible artifacts and transmitting corresponding correction information to the decoder the amount of correction information that must be sent is relatively small, and the improvement in picture quality is quite large. Since the interpolation technique yields good results, it has been found acceptable to interpolate every other frame, or two out of three frames, on a regular basis. The benefit of such regular interpolation is a reduced transmission bit rate which results from the fact that the pel correction information comprises fewer bits than the actual frame coding information. In an encoder embodiment that interpolates half of the frames, every other frame is encoded and thereafter decoded within the encoder. The decoded versions of adjacent frames are appropriately combined and compared to the interleaved camera frame that is to be interpolated in the decoder. The differences, which correspond to "pels correction" information, are encoded and quantized. Those that exceed a predetermined threshold value are added to the encoder's output buffer. The inverse operation is carried out in the decoder. That is every pair of decoded frames is averaged and combined with the decoded "pels correction" information to form the interpolated frames. The invention will now be described with reference to the accompanying drawings in which: FIG. 1 is a block diagram of an encoder embodying the invention; and FIG. 2 is a block diagram of a decoder embodying the invention. Given a specified transmission rate in the communications channel, frame interpolation needs to be resorted to only when the FIFO is at, or near, overflow. When that is the selected approach, the encoder of our invention encodes the blocks of every frame and concurrently develops the codes for interpolating the blocks from the information available to the encoder from previous and subsequent frames. At the input to the FIFO buffer, a switch is installed that is sensitive to the available memory in the buffer. When the available memory falls below a preselected threshold, the switch is set to accept the frame interpolation code. Otherwise, the switch is set to accept the frame encoding code. Other control techniques are also available, such as selecting some frames for encoding and some frames for interpolation, based on the occupancy level of the buffer. Both specific frames can thus be selected for interpolations as well as a proportion of frames to be interpolated. The aboves insures that the encoder would not exceed the transmission capacity of the communications channel. In some applications, however, it is more important to achieve a low transmission rate. Knowing that the frame interpolation code is less voluminous than the frame encoding code, it makes sense to accept the frame interpolation code wherever possible. The zeal to chose interpolation code in preference to the frame encoding code is tempered, however, by the level of degradation that is acceptable to the user in the reconstituted picture. It is further tempered by the observation that the volume of the frame interpolation code increase with increased use of the frame interpolation code, so one could quickly reach a point of "diminishing returns" in the use of interpolation code. Experimentally, it has been found that interpolating every other frame is quite beneficial. Accordingly, for the illustrative purposes of this disclosure, the following describes the structure and operation of an encoder and a decoder that interpolates every other frame. FIG. 1 shows an encoder of our invention. In FIG. 1, a video signal is applied to switch 10. The switch toggles at the video frame rate and thus feed alternate frames to outputs A and B. The control is such that switch 10 is in position A when frame F i+1 is coming out of the video camera. The index i designates the frame number from some arbitrary starting point. During the previous video frame period, frame F i came out of the camera, passed through output B of switch 10 and to the input of frame memory 16. Now, frame F i is coming out of frame memory 16. It is frame F i that will be interpolated in the decoder. The following segment describes the operation of the motion compensation coding portion of the coder, which is well known to those skilled in the art. Frame F i+1 passes to subtractor 20 and to motion estimator 11. Frame memory 12 contains the frame that was previously coded via motion compensation; and in this case it is frame F and i-1 . The output of memory 12 forms the other input to motion estimator 11. For each block of pels, motion estimator 11 compares the pels of frames F i+1 and F and i-1 to determine the best estimate of motion. The best estimate is delivered as a motion vector signal on bus 100, and thus it passes to shift circuit 15. Circuit 15 also accepts the pels information about the previous frame, F and i-1 , from frame memory 12, applies the appropriate translational shift according to the above-mentioned motion vector and outputs a block of "Prediction" pels to be used as a prediction of the incoming frame F i+1 pels. This prediction block of pels passes to the other input of subtractor 20 whereupon it is subtracted from the incoming pels of frame F i+1 to give a "Prediction Error" signal. The prediction error typically is transformed by DCT 30 and the output coefficients are quantized by quantizer 40. The quantized values are coded into bits by coder 50 and passed to buffer 60 to await transmission to the decoder. From the above, it is clear that the input to the quantizer depends on the nature of the moving image, and consequently and as indicated above, it has the possibility of emptying or overflowing. To avoid this, a feedback path is provided to quantizer 40, so that the quantizer coarseness can be increased if buffer overflow threatens, or decreased if buffer emptying is imminent. Continuing with the description of motion compensated coding, the quantized output signals of quantizer 40 are inverse transformed by inverse DCT 41, and applied to adder 42. Adder 42 also receives the prediction pels of shift circuit 15 resulting in a coded version of frame i+1, F i+1 , which is passed into frame memory 12 for use with a subsequent frame as described above. This completes the discussion of conventional motion compensation coding. With the coded versions of frames i-1 and i+1, i.e., F and i-1 and F and i+1 being available, frame F and i can be generated. The F and i generation starts with the motion vectors that are produced by motion estimator 11. These are used by shift circuit 13 to shift the incoming pels from frame F and i-1 , perhaps by half the motion vector, to produce one estimate of the pels in frame F i . Circuit 14 also uses the motion vectors of line 100 to shift the coded pels of F and i+1 , perhaps by half and in the opposite direction from the motion vector. This produces another estimate of the pels of F and i . The two estimates produced by shift circuits 13 and 14 are combined in averager 17 to produce the final prediction of frame F and i . This interpolated prediction is usually very good, but not always. To improve the interpolated prediction, subtractor 43 calculates an error signal that corresponds to the difference between the actual frame data that exits frame memory 16 (F i ) and the predicted frame as it appears at the output of averager 17 (F and i ). The error signal is transformed by DCT 18, quantized by quantizer 19 and passed to coder 44, which detects large occurrences of interpolation error and codes them for transmission. The coded interpolation error is passed to buffer 60 in the same way as from coder 50. Similarly, a feedback path is provided to quantizer 19 to combat buffer overflow and underflow. The decoder, depicted in FIG. 2, is very similar to the encoder. The components mirror corresponding components in the coder with a few deviations. In particular, the input is received in buffer 23 and is distributed therefrom based on the nature of the signals. Frame encoding code (e.g. corresponding to F i-1 and F i+1 ) is sent to decoder 22 and therefrom to DCT⁻¹ 24, adder 27, memory 28, and shift circuit 26. These elements correspond to elements 41, 42, 12, and 15, respectively, and operate in the same manner. That is completely expected, since the function of these elements in the encoder is to emulate the decoder. Thus, the contents of memory 28 correspond to the estimated frames. Similarly, elements 39, 31 and 32 in the decoder correspond to elements 13, 14 and 17, respectively in the encoder and operate in the same manner. The pels correction code also exits buffer 23, is decoded in decoder 25 and inverse transformed in element 34. This correction information is added to the estimate of F and i developed by circuit 35 and is applied to memory 33. Memory 33 delays the F and i information to permit a proper interleaving of F and i between F and i-1 and F and i+1 . As can be observed from above, one of the deviations is that the interpolation error subtractor 43 of the encoder becomes adder 35 at the decoder. Also, another output of frame memory 28 is shown since frame F and i-1 pels for the video output display may need to be read out at a different rate for the video output at switch 21 than the frame F and i-1 pels are needed for shift circuits 26 and 39. It may be noted that there is a tradeoff between the buffer size of buffer 23 and the necessity for frame memory 33. If the buffer is sufficiently large, frame memory 33 could be deleted. The frame F and i output from adder 35 would then pass directly to the video output via switch 21, which would be in position B. Following this, switch 21 would toggle to its A input, and decoding would stop for a frame period while frame F and i+1 was displayed via the output of frame memory 28 and the A input of switch 21. During this time, decoder buffer 23 would fill with data from the channel. Many alternative arrangements are possible for the basic conditional motion compensation interpolation approach. For example, more than one frame might be conditionally interpolated, in which case shifter circuits 13, 14, 30 and 31 need to be more versatile and frame memories 16 and 33 need to be larger. Also, in computing the best estimate of motion, motion estimator 11 might take frame F i pels as additional input. This would enable simultaneous minimization of both motion compensation prediction error as well as interpolation error. Still other improvements may be introduced by those skilled in the art.

Claims: A circuit for encoding applied video signals that comprise successive frames where each frame is divided into blocks, the circuit including first means (20, 30, 40, 41, 42, 12, 15, 50) for encoding the blocks of said frames by developing for each block a) an approximated version of said block derived from an approximated version of said block developed for a previous frame, and b) a code which represents the deviation of said block from said approximated version of said block, and CHARACTERISED BY second means (43,13,14,17) for interpolating some of the frames, instead of encoding them in said first means, where the second means interpolates a frame by interpolating the blocks of the frame to be interpolated, by obtaining approximated versions of corresponding blocks in encoded frames encoded in said first means and combining the obtained approximated versions of corresponding blocks to obtain interpolated blocks representing approximated versions of the blocks of the frames to be interpolated; and third means (10, 16, 43, 18, 19, 44) responsive to said second means and to said frame to be interpolated for developing a code that corresponds to those pels in interpolated blocks generated by said second means that differ from corresponding pels in said frames to be interpolated by greater than a preselected threshold. A circuit as claimed in claim 1 wherein said code developed for a pel by said third means represents the difference between the value of said pel and the value of said pel interpolated by said second means. A circuit as claimed in claim 1 wherein the frames selected for combining in said second means include a frame encoded in said first means that precedes the frame interpolated in said second means and a frame encoded in said first means that succeeds the frame interpolated in said second means (13, 14, 17). A circuit as claimed in claim 3 wherein said second means includes means (16, 18) for developing anticipated versions of said blocks. A circuit as claimed in claim 1 wherein a set proportion of frames of said applied video signals are interpolated. A circuit as claimed in claim 5 wherein said proportion is approximately one half. A circuit as claimed in claim 1 including buffer means (60) interposed between the code developed by said first means for encoding and said third means, and an output port of said circuit. A circuit as claimed in claim 7 wherein the buffer means is used for controlling the proportion of frames selected for interpolation by said second means and code generation by said third means based on the occupancy level of said buffer. A circuit as claimed in claim 7 wherein the buffer means is used for selecting frames for interpolation by said second means and code generation by said third means when said buffer is occupied beyond a chosen proportion of its capacity. A circuit as claimed in claim 6 including means (line from 60 to 40 and 19) for controlling granularity of the codes generated by said first means and said third means by the occupancy level of said buffer. A decoding circuit for decoding signals encoded by a circuit as claimed in claim 1, which circuit develops codes for encoded frames and codes for interpolated frames, wherein the decoding circuit includes first means (23, 22, 24, 27, 28, 26) responsive to said codes for encoded frames, for developing block approximations of frames, and CHARACTERISED BY second means (23, 25, 34, 31, 32, 39, 35, 33) responsive to said block approximations of frames and to said codes for interpolated frames, for developing block approximations of other frames; and third means (21) for combining the block approximations of frames developed by the first means and the block approximations of other frames developed by the second means to form a combined output signal.

Inventors: HASKELL BARIN GEOFFRY, PURI ATUL, HASKELL, BARIN GEOFFRY, PURI, ATUL
Applicants: AT & T CORP, AT&T CORP.
Application year: 1990
Main classification: H04N7
IPC codes: H04N7, H04N9, H04N1, H04N11