Coding system for reducing redundancy

Abstract: A signal processor and method for efficiently processing signals using ordered redundancy (or) coding in different modes. Signals to e coded are multivalued digital numbers, in which the probable frequency of occurrence of some values is different than for other values. The system codes the highest most frequently occurring values (0's in the usual example) using runlength coding. The runlength encoding is of two types. The first type is utilized when a runlength of consecutive zeros (0's) is followed by the next most frequently occurring value and the other type is uti­ lized when the runlength of consecutive zeros (0's) is followed by some other value.

Description: The present invention relates to methods and apparatus for processing signals to remove redundant information thereby making the signals more suitable for transfer through a limited-bandwidth medium. The present invention specifically relates to methods and apparatus useful in video compression systems. Many signal processing techniques useful in video compression systems are known. For example, digital encoding is often employed in processing television signals which are to be transferred over transmission channels since digital data streams are more immune to noise degradation. In order to digitally encode a television signal, a significant number of bits, 4 or more, may be required to provide for an acceptable range of gray scale for each of the hundreds of thousands of separate picture elements (pixels) which form an image. Consequently, data rates for unprocessed digitalized television signals typically require a bandwidth greater than 40 megabits per second. If the communications link is an earth satellite, an unprocessed video signal typically occupies nearly the entire bandwidth of the satellite, with very few channels, if any left over for other uses. A T1 communication channel is typical and has only a 1.5 megabit per second bandwidth. A practical yet effective way to reduce the bandwidth of digitalized television signals is needed so that fewer channels are required for transmission over a communications path and so that the quality of transmitted signals is maintained even when reduced bandwidth transmission is employed. United States patent 4,302,775, assigned to the same assignee as the present invention, describes a scene adaptive coding technique which eliminates redundant information and thereby reduces the bandwidth. The patent describes a single-pass digital video compression system which implements a two-dimensinal cosine transform with intraframe block-to-block comparisons of transform coefficients without need for preliminary statistical matching or preprocessing. Each frame of the video image is divided into a predetermined matrix of spatial subframes or blocks. The system performs a spatial domain to transform domain transformation of the picture elements of each block to provide transform coefficients for each block. The system adaptively normalizes the transform coefficients so that the system generates data at a rate determined adaptively as a function of the fullness of a transmitter buffer. The transform coefficient data thus produced is encoded in accordance with amplitude Huffman codes and zero-coefficient runlength Huffman codes which are stored asynchronously in the transmitter buffer. The encoded data is output from the buffer at a synchronous rate for transmission through a limited-bandwidth medium. The system determines the buffer fullness and adaptively controls the rate at which data is generated so that the buffer is never completely emptied and never completely filled. In the system receiver, the transmitted data is stored in a receiver buffer at the synchronous data rate of the limited-bandwidth medium. The data is then output from the receiver buffer asynchronously and is decoded in accordance with an inverse of the encoding in the transmitter. The decoded data is inversely normalized and inversely transformed to provide a representation of the original video image. The 4,302,775 patents reduces redundancy by employing intraframe coding techniques utilizing intraframe comparisons of cosine transform coefficients. While the patent provides significant improvement over other techniques, there is a need for even greater compression. In addition to intraframe coding techniques, interframe coding techniques have been used to reduce the rate required for video transmission as described, for example, in the above-identified application. Typically, each video frame is held in memory at both the transmitter and the rereiver and only frame-to-frame changes are transmitted over the communication link. In contrast to intraframe coding schemes in which the quality of coded images is dependent upon the amount of detail in each single image frame, the quality of the coded image in interframe coding is dependent upon the differences from frame to frame. Frame-to-frame differences are often referred to as "motion". Interframe coding techniques are broadly classified into two categories, namely, spatial domain coding and transform domain coding. In real-time interframe spatial-domain coding systems, spatial domain data can be threshold processed to obtain and store frame difference signals in a transmitter buffer. The threshold value can be adaptively determined as a function of the transmitter buffer fullness. In order to eliminate the image breakdown, both spatial and temporal subsampling has been proposed. The above-identified U.S. patent application entitled "A Combined Intraframe and Interframe Transform Coding System" employs intraframe and interframe variable prediction transform coding. Images are represented by sequential frames of two-dimensional arrays of digital signals. The digital signals are transformed to form transform coefficients for each frame. Predicted transform coefficients are formed using sets of variable prediction factors. The predicted transform coefficients for each frame are compared with corresponding actual transform coefficients for the frame to form transform coefficient difference signals. The difference signals are processed to control their range of values. The processed difference signals are statistically coded such that the more frequently occurring values are represented by shorter code lengths and the less frequently occurring values are represented by longer code lengths. The coded signals are stored in a buffer memory for transmission. The coded signals in the buffer memory are transmitted, over a limited-bandwidth medium, to the receiver along with processing information. The processing information includes codes identifying the set of variable prediction factors utilized in the transmitter. The same set of variable prediction factors is utilized in the receiver to reconstruct predicted transform coefficients which in turn are used to reconstruct representations of the original images in the transmitter. The extension of the Scene Adaptive Coding of U.S. Patent 4,302,775 from intraframe coding to interframe coding has proven vey significant in terms of improving image quality and reducing bandwidth. These improvements, however, have created a need for improved coding systems for reducing redundancy and there continues to be a need for improved signal processing methods and apparatus for data compression systems. US patent 4363036 describes a data compression system in which binary digital signals are runlength coded. Since the signal following a run will always have the value different from the value of the data during the run there is no need to indicate what is the value of that following data. US patent 3984833 describes a system for encoding data corresponding to "ordinary" or "special" events. The coding applied to the data depends on whether the data corresponds to an "ordinary" event or to a "special" event. This system is described as being applicable to the run length coding of binary digital data. SUMMARY OF THE INVENTION The present invention is a signal processor and method for efficiently processing signals using ordered redundancy (OR) coding and any one of a number of different modes. The signals to be coded are typically multiple values where the multivalued digital numbers, X(k) are typically the integers 0, 1, 2, 3, 4, ..., and so on arranged in any order. Frequently, some values are repeated in forming digital numbers and hence the probable frequency of occurrence of some values is different than for other values. In one example of digital numbers, the highest frequency of occurrence is the value 0, the next highest frequency of occurrence is the value 1 and the other values greater than 1 (namely 2, 3, 4, 5, and so on) occur least frequently. With such order to the frequency of occurrence of values to be coded, the ordered redundancy coding of the present invention is most efficient. The present invention provides an ordered redundancy method for coding digital signals, the digital signals taking a plurality of different values, using two types of runlength code (R, R'), the method comprising the steps of: utilising the first type of runlength code (R) for coding a runlength of the most frequently occurring value followed by the next most frequently occurring value; utilising the second type of runlength code (R') for coding a runlength of the most frequently occurring value followed by any value other than the next most frequently occurring value; and when the second type of runlength code is used, following the runlength code value by a code value indicative of the amplitude of said other value. The present invention further provides apparatus for ordered redundancy coding of digital signals taking a plurality of different values, the coding using two types of runlength codes (R,R'), the apparatus comprising: means for using the first type of runlength code to form first code values representing runlengths of the most frequently occurring value followed by the next most frequently occurring value, and means for using the second type of runlength code (R') to form second code values representing runlengths of the most frequently occurring value followed by any one of said values other than the next most frequently occurring value and for following each second code value by a code value indicative of the amplitude of said other value. Using ordered redundancy coding, the system codes the highest most frequently occurring values (O's in the usual example) using runlength coding. In the most preferable example, the runlength encoding is of two types, R and R'. The first type, R, is utilized when a runlength of consecutive zeros (O's) is followed by the next most frequently occurring value (1 in the usual case) and the other type, R', is utilized when the runlength of consecutive zeros (0's) is followed by some other value, one of the least frequently occurring values (usually greater than 1 such as 2, 3, and so on). Whenever the second type, R', of runlength coding is employed, the runlength code is typically followed by an amplitude code which explicitly encodes the actual amplitude (2, 3, ...) of the following other value. Whenever the first type, R, of runlength coding is employed, no coding of the second value (usually 1) is required because an amplitude of 1 is implied simply by the use of the first type, R, of runlength coding. The ordered redundancy coding of the present invention is typically utilized in a system that processes input signals, such as spatial domain image signals occurring in successive frames, to form processed signals for each frame. Any number of different processing modes are possible. The processed signals are in the form of a plurality of multivalued digital numbers, X(k), typically one number, X(k), for each frame. In one particular embodiment, the processing modes include two replenishment modes(one with motion compensation and one without), two DPCM modes(one with motion compensation and one without) and one intraframe mode. The decision as to which mode to select is made based upon analysis of the frame-to-frame differences (motion) between the current input signals and the previous input signals. Typically, the system determines differences between the current input signals and the previous input signals using mean-square difference signals. These mean-square signals are processed and compared with one or more thresholds for determining one of several modes of operation. After processing in some mode, the processed signals are in the form of digital numbers and these digital numbers are coded, using ordered redundancy coding, and transmitted to a receiver. After transmission of the coded signals, the received signals are decoded and processed in reverse of the particular one of the modes by which the signals were processed in the transmitter. In accordance with the above summary, the present invention achieves the objective of providing an improved signal processor for reducing redundancy using ordered redundancy coding. The foregoing and other objects, features and advantages of the invention will be apparent from the following detailed description in conjunction with the drawings. Brief Description of the Drawings FIG. 1 depicts a block diagram of a transmitter and receiver system. FIG. 2 depicts further details of the transmitter of the FIG. 1 system. FIG. 3 depicts further details of the coder used in the FIG. 2 transmitter. FIG. 4 depicts further details of the decoder used in the receiver. Detailed Description Overall System- FIG.1. In FIG. 1, a block diagram of a transmitter and a receiver in accordance with the present invention is shown. Digital signals to be processed are input on lines 5 to the transmitter 2. The input signals on lines 5 are processed in one of a number of different modes so as to efficiently compress the data input signals to form processed signals for transmission to a receiver. The processed signals are coded and output on lines 45 from the transmitter 2 and are transmitted to the receiver 3. The transmitter 2 includes a forward processor 52 and a feedback(reverse) psrocessor 51. Typically, the input signals on lines 5 represent images and are presented in the space domain as frames in accordance with well known techniques. The forward processor 52 typically processes the spatial domain input signals to form processed signals which typically are transform domain signals arranged in blocks of transform domain coefficients. The forward processor 52 processes the current input signals from the most current frame. The reverse processor 51 typically inverse processes signals from transform domain to spatial domain. Processor 51 stores signals representing the previous frame of data and also receives the current input signals so as to enable a comparison to be made betwen the previous inverse processed input signals and the current input signals. When the current input signals have been transformed from the spatial domain to the transform domain, the reverse processor performs an inverse transform to convert the transform domain signals back to spatial domain signals and stores those spatial domain signals for comparison with the current input spatial domain signals. The reverse processor 51 determines changes between the current signals and the previous signals. Typically, these differences are determined using mean-square signals, d₀ and d b , hereinafter defined. These mean-square signals are processed and compared with one or more thresholds for determining one of several modes of operation for the system of FIG. 1. Any number of different modes are possible. In one particular embodiment, two replenishment modes(one with motion compensation and one without), two DPCM modes(one with motion compensation and one without) and one intraframe mode are employed. The decision as to which mode to select is made based upon an analysis of the frame-to-frame differences (motion) of the input data. After the processing by the processor 52 and the processor 51, the processed signals are input to the coder 14. The coder 14 encodes the processed signals using statistical frequency coding. With statistical frequency coding, signals with a statistically higher frequency of occurrence are encoded with a shorter code length than signals with a statistically lower frequency of occurrence. Additionally, the coder 14 utilizes a novel ordered redundancy (OR) coding technique. In the ordered redundancy coding, the processed signals to be coded have multiple values. For example, values are typically 0, 1, 2, 3, 4, ..., and so on. Typically, the statistical frequencies of the values to be coded have an order. Particularly, that order is based upon the probable frequency of occurrence of the different values. The highest frequency of occurrence is typically the value 0, the next most frequently occurring value is 1 and the other values greater than 1 (2, 3, 4, 5, and so on) occur least frequently. With such order to the signals to be coded, the ordered redundancy coding of the present invention is most efficient. Using OR coding, the coder 14 of FIG. 1 codes the highest most frequently occurring values (0's in the usual example) using runlength coding. In the most preferable example, the runlength encoding is of two types, R and R′. The first type, R, is utilized when the runlength of 0's is followed by the next most frequently occurrding value (1 in the usual case) and the other type, R′, is employed when the runlength of 0's is followed by some other value of the least frequently occurring type (usually greater than 1 such as 2, 3, and so on). Whenever the R′ type of runlength coding is employed, the runlength code is typically followed by an amplitude code which explicitly encodes the actual amplitude of the other value. Whenever the first type, R, of runlength coding is employed, no coding of the second value (usually 1) is required because an amplitude of 1 is implied simply by the use of the first type, R, of runlength coding. After the ordered redundancy coding in coder 14, data is transferred to the transmitter buffer 15. The buffer 15 provides a feedback signal on line 25 to control the forward processor 52 data rate. In FIG. 1, the data from line 45 is input on line 68 after transmission over some conventional transmission medium to the receiver 3. In the receiver 3, a receiver buffer 53 stores the received data. A decoder 54 decodes the received data. Thereafter, the decoded data is processed in reverse of the particular one of the modes by which the data was processed in the transmitter 2. The reconstituted data appears on output line 69. Transmitter - FIG. 2 . FIG. 2 is a block diagram of a transmitter for motion compensated combined interframe and intraframe coding system of FIG. 1. Motion compensation is incorporated into a combined interframe and intraframe coding system using the spatial pixels in the inverse loop 9. In operation, the original spatial image on input lines 5 is compared to the reconstructed spatial image on lines 6 of the previous frame on a block-by-block basis through a motion detector 7. The reconstructed spatial image is obtained from the memory 18 of the feedback DPCM loop 9. The feedback loop 9 includes the inverse normalizer 16, inverse transformer 17, the sum unit 20, the delay (memory) 18, the prediction unit 19, and the motion detector and compensator 7. If the motion detector 7 determines that there is little difference between the blocks, a "replenishment mode" is slected. On the other hand, if enough difference is detected, the block in the current frame is compared to the neighborhood of the corresponding reconstructed block in the previous frame to find the best match of the block. For the purpose of increasing the system performance a sub-pixel match is employed. If the difference between the current block and its best matched block does not result in a reasonable improvement over the difference between the current block and its original counterpart, a motion compensation is not justified. In this case, a "DPCM mode" with variable predictions is selected to handle the block difference. On the other hand, if the difference between the current block and its best matched block is reasonably smaller than the difference between the current block and its original counterpart, a motion compensation is initiated. In this case, the difference between the current block and its best matched block is screened to determine if the block belongs to a "motion compensated replenishment" block or a "motion compensated DPCM" block. The forward loop of the DPCM system encodes the "DPCM" or "motion compensated DPCM" data in the transform domain. Statistical frequency coding is employed to improve the efficiency. The feedback loop of the DPCM system is operated in the spatial domain with variable predictions. Motion Detection and Compensation . The motion detection serves two purposes. It compares the block pixels in the present frame to the neighborhood pixels of the corresponding block in the previous frame to find the sub-pixel displacement of the block that gives the best match. It also tracks the displacement vectors and the degree of differences during the matching process for a subsequent modification of the DPCM frame memory and controlling of the predictor parameters in the feedback DPCM loop. Three basic types of modes (replenishment modes, intraframe mode, and DPCM modes) are determined from the motion detection. A decision process among the modes is employed. The decision process relies in part on a determination as to whether motion-compensation or non-motion-compensation is to be employed. Motion compensation is determined using the mean-square difference, d₀, and the mean square error, d b . The mean-square difference, d₀, is formed as follows: where f(j,k) are spatial pixels (on lines 5 of FIG. 2) of the current frame and f (j,k) are the corresponding pixels (on lines 6 of FIG. 2) of the reconstructed previous frame. N is the transform block size. The mean-square error, d b , is formed as follows: where f(j,k) are the block pixels in the present frame and f(j+ Δ j,k+ Δ k) are the best matched pixels in the previously reconstructed frame where Δ j, Δ k are the displacement (vector) for the best match. Replenishment Modes . The replenishment modes are either motion-compensated or non-motion-compensated. The decision process selects compensation or non-compensation based upon motion detection. The motion detection unit 7 of FIG. 2 determines the difference between the incoming spatial pixels of a block and the reconstructed spatial pixels of the corresponding block in the previous frame. If the motion detection process determines that there is little frame-to-frame difference between corresponding blocks, a non-motion-compensated replenishment mode is selected and a code word is sent on line 21 from unit 7 of FIG. 2 to the encoder 14 to identify the mode. If the motion detection process determines that the frame-to-frame block difference is great enough then, under some circumstances, a motion-compensated replenishment mode is selected. The detection process typically uses the mean-square difference, d₀, and compares it to a predetermined non-motion-compensated replenishment threshold T R . This process is written as follows: if (d₀-d b ) < T M and d₀ < T R , select non-motion-compensated replenishment mode. The detection process compares the mean square error, d b , with a predetermined motion-compensated replenishment threshold, T D/R , as follows: if (d₀-d b ) > T M and d b < T D/R , select motion-compensated replenishment mode. The identification code words for the replenishment modes are typically Huffman coded. Typically, a one-bit code (0), on line 21 of FIG. 2 is used if the non-motion-compensated replenishment mode appears most frequently statistically. Once this code word is identified at the receiver, the reconstructed block pixels in the previous frame are repeated to form the present block in the receiver. For the motion compensated replenishment block, typically a four-bit code (1111) is used, along with the displacement vector representing the best match, and appears on line 67 in FIG 2. At the receiver, the vector uses the compensated block pixels from the reconstructed previous frame to form the presently reconstructed block. DPCM Modes . The DPCM modes are either non-motion-compensated or motion-compensated. Selection of the compensation or non-compensation DPCM modes is dependant in part on motion detection. The motion detection searches for the best matched block pixels from the reconstructed previous frame. The difference, d b , between the present block pixels and the best matched block pixels is then computed. If this difference is smaller than the motion threshold, T M , no motion compensation is justified due to the necessity of sending the displacement vector as coding overhead. In this case, the difference, d₀, is compared to a DPCM threshold, T D/I , to determine if the block belongs to a DPCM mode. The decision process is given as follows: if (d₀-d b ) < T M and d₀ < T D/I , select non-motion-compensated DPCM mode. If a non-motion-compensated DPCM mode is selected, the predictor in the feedback loop is enabled and the difference is sent to the discrete cosine transformer for subsequent encoding. Again, the mode identification is Huffman coded. Typically, a two-bit code (10) used for the nonmotion-compensated DPCM mode and appears on line 66 in FIG. 2. At the receiver, the DPCM date are inversely transformed and added onto the block pixels from the reconstructed previous frame to form the present block pixels. For the motion-compensated DPCM mode, the difference, d b , between the current block pixels and the best matched block pixels is compared to a predetermined motioncompensated replenishment threshold, T D/R . If d b is larger than the threshold, a motion-compensated DPCM mode is selected to handle the pixel differences. The decision process is given as follows: If (d₀-d b ) > T M and d b > T D/R , select motion compensated DPCM mode. For the motion compensated DPCM blocks, typically a three-bit code (110) is used together with the displacement vector representing the best match of the block along with the motion compensated DPCM data (transform coefficient differences between the present block and the best matched block from the reconstructed previous frame). The mode ID and vector appear on line 65 in FIG. 2. At the receiver, these DPCM data are inverse transformed and added onto the compensated block pixels from the reconstructed previous frame to form the present block pixels. Intraframe Mode . The intraframe mode is selected when neither the motion- compensated mode nor the DPCM mode is justified. The difference, d₀, between the current block pixels and the reconstructed previous block pixels is compared with the predetermined DPCM threshold, T D/I . The decision process is as follows: If (d₀-d b ) < T M and d₀ > T D/I , select intraframe mode. If the intraframe mode is selected, the predictor is disabled and the current block pixels are sent to the transformer with unit 11 of FIG. 2. Typically, a four-bit code (1110) appearing on line 66 in FIG. 2 is used to identify the "intraframe mode". The intraframe data in the receiver are inversely transformed to form the present block pixels. Compensation Range and Resolution . The performance of the motion compensated system is dependent upon the range and resolution of the matching process. The larger the range and the finer the resolution, the better the system performs. However, due to the necessity of encoding the vector information as system overhead, the range and resolution of the searching process is somewhat limited. Searching Algorithm . The search for the best matched position is a very time consuming process. As one example, a simple binary search algorithm for a maximum range of 1.75 can be employed. Using such an algorithm, the nine whole-pixel positions centered around the position of the present block are first examined to find the best match. Next, the eight half-pixel neighbourhood positions centered around the best matched whole-pixel position are examined. The process continues until the best matched quarter-pixel position is located. The horizontal and vertical addresses of this location are then recorded as a vector and encoded accordingly. The number of steps required for a binary search is many times lower than that of a brute force search. Subpixel translation is done by performing bilinear interpolation taking weighted averages of the four nearest values at integral pixel positions surrounding the subpixel location. The weighting factors that are used are linear functions of the horizontal and vertical distance of the fractional displacement from the integral pixel positions. As an example, a displacement of 1.25 horizontally, and 0.7 vertically is performed as follows: Eq.(3) f(j+1.25,k-0.75) = w₁f(j+1,k) + w₂f(j+1,k-1) + w₃f(j+2,k) + w₄f(j+2,k-1) where w₁ = (0.75) (0.25), w₂ = (0.75) (0.75), w₃ = (0.25) (0.25), and w₄ = (0.25) (0.75) DPCM Loop . Referring to FIG. 2, the Differential Pulse Code Modulated (DPCM) loop consists of a cosine transform unit 11, a normalization unit 12, a quantization unit 13, an inverse normalization unit 16, an inverse transform unit 17, a delay memory 18, and a prediction unit 19. In operation, an input pixel block on lines 5 from the present frame is first subtracted in subtractor 10 by its estimation from the previous frame on line 23 on a pixel-by-pixel basis to generate block differences. These differences are then cosine transformed in transform unit 11 to form the coefficient differences on lines 24. The coefficient differences are next scaled in normalizer unit 12 according to a feedback parameter on lines 25 from the output rate buffer 15. The scaled coefficient difference on lines 26 are then quantized in unit 13 and fed into both the coder unit 14 and the inverse DPCM loop 9. In the inverse DPCM loop 9, the quantized and scaled data are inversely normalized in unit 16 and inversely transformed in unit 17, to form the quantized coefficient differences on lines 27. These differences are then added in adder 20 to the motion compensated estimation on lines 3 to form the reconstructed pixel block in the frame memory 18. After a single-frame delay, in memory 18, the motion detector 7 uses the motion compensated block from the memory 18, multiplies it by a prediction weighting factor, and is ready for the next frame of operation. At the receiver, the received data follows the inverse DPCM loop to reconstruct the spatial pixels in the output block. Cosine Transform. The coefficient differences between the input pixels from the present frame on lines 5 and the estimations from the previously reconstructed frame on lines 3 are formed by the difference circuit 10 on lines 23 and are expressed as follows: Eq.(4) e n (j,k) = f n (j,k) - ρ(j,k) f N-1 (j+Δj,k+Δk) where Δj and Δk represent the vector values for the best match determined by the motion detector and where ρ(j,k) represents the estimation. These differences within a NxN block are cosine transformed in transformer 11 to form the coefficient differences on lines 24. The cosine transform is defined as follows: for u,v = 0,1,...,N-1 where w = u or v where (j,k) and (u,v) represent indices in the horizontal and vertical directions for the pixel difference and coefficient difference blocks, respectively, and where C(w) represents C(u) or C(v). The cosine transform restructures the spatial domain data into the coefficient domain such that it will be beneficial to the subsequent coding and redundancy removal processes. Normalization . The coefficient differences, E n (u,v), are scaled according to a feedback normalization factor, D, on lines 25, from the output rate buffer 15 according to the relation, Eq.(6) I n (u,v) = E n (u,v)/D. The scaling process adjusts the range of the coefficient differences such that a desired number of code bits can be used during the coding process. Quantization . The quantization process in unit 13 is any conventional linear or non-linear quantization. The quantization process will set some of the differences to zeros and leave a limited number of significant other differences to be coded. The quantized coefficient differences on lines 28 are represented as follows: Eq.(7) I n (u,v) = Q [I n (u,v)] where Q[ ] is a quantization function. It should be noted that a lower bound is determined for the normalization factor in order to introduce meaningful coefficient differences to the coder. Generally speaking, setting the minimum value of D to one is sufficient for a low rate compression applications involving transform blocks of 16 by 16 pixels. In this case the worst mean square quantization error is less than 0.083. This mean square error corresponds to a peak signal-to-quantization-noise ratio of 40.86 db which is relatively insignificant for low rate applications. Inverse Normalization . The process of inverse normalization in unit 16 produces the quantized coefficient differences on lines 29 in the inverse DPCM loop 9. This process is represented as follows: Eq.(8) E n (u,v)= I n (u,v)D Inverse Cosine Transform . The inverse cosine transform process in unit 17 in the inverse DPCM loop 9 converts the quantized coefficient differences on lines 29 back to the spatial domain pixel differences on lines 27. This process is defined as follows: for j,k=0,1,...,N-1. Frame Memory . The frame memory 18 contains the reconstructed input pixels in the inverse DPCM loop. The quantized pixel differences from the inverse cosine transformer on lines 27 and the motion compensated estimations from the previously reconstructed frame on lines 3 are added together in adder 20 to form the reconstructed pixels, f n (j,k), which replace the block pixels in the memory 18. This process is represented as follows: Eq.(10) f n (j,k) = e n (j,k) + ρ(j,k) f n-1 (j+Δj,k+Δk) Prediction . The prediction proces in unit 19 finds an estimation of a datum from its surrounding data. By way of example for a simple predictor that uses the previous frame as a base for the estimation, the estimated value is termed as the correlation coefficient, ρ(j,k), given as follows: Eq.(11) ρ(j,k) = E[e n (j,k)e n-1 (j+Δj,k+Δk)]/σ²(j,k) where E represents expected value and σ²(j,k) represents the variance of e n (j,k). The correlation coefficient, termed as leak factor, ranges from 0 to 1 depending on the frame-to-frame pixel differences. The value is very close to 1 for a limited motion sequence. However, during a scene cut or a rapid zooming sequence, the value is way below the value of 1. Because different leak factors have to be identified in the encoding of the DPCM process, it represents a significant overhead for the low rate system if too many values are to be identified. In one embodiment, only two leak factor values are used for the five-mode motion detection system: 1 for the non-motion-compensated DPCM and motion compensated DPCM modes and 0 for the intraframe mode. Coding . In order to minimize overhead code bits, in one typical example the encoding process in unit 14 for the FIG. 2 system is performed on a frame by frame basis. The coded bit stream includes sync, header, scaling factor (NF), and variable-length data as follows: In the header, at least one bit is reserved for the identification of full motion and graphic operations. The data portion includes the block-to-block mode identifiers the vector values, DPCM and intraframe data. The bit allocations are dependent upon each individual block which is illustrated in TABLE 2. DPCM Encoding . The Scene Adaptive Coding (SAC) is very efficient in terms of coding the intraframe transform coefficients. When this scheme is applied to a coding system involving intraframe, interframe and motion compensation, the coding efficiency is somewhat reduced due to the structure of coefficient differences or motion compensated coefficient differences caused by the additional removal of redundancies. One observation that can be made in the motion compensated coefficient differences (non-zero after normalization and quantization) and, to a certain degree, the interframe coefficient differences (non-zero differences) is that most of these differences are sparsely distributed with an overwhelming majority of them having an absolute value of one. Also, within these differences of ones, a significant portion of them are isolated (surrounded by zero-valued coefficients) along the path of a scanning. It is wasteful to use one amplitude code word to code each of these isolated ones in addition to using one runlength code word to identify their address (Runlength alone should be enough). Ordered Redundancy Coding . A new Ordered Redundancy (OR) coding algorithm is specifically designed to code multi-valued digital numbers where the statistical frequency of occurence of some values in the series of values forming the digital number is greater than the statistical frequency of occurrence for other values in the series of values forming the digital number. The values forming the digital numbers are generally the integers 0, 1, 2, 3, ... and so on. In general, a K-valued digital number X(k), is formed by a series of K values, x(k), as follows: X(k) = x(1), x(2), x(3), ... x(k), ..., x(K) where 1≦k≦K. Each value, x(k), has some value, V j , from the set of J values, V₁, V₂, V₃, ..., V j , ..., V J where 1≦j≦J. The occurrence of i consecutive values, V j , within the series X(k) is the runlength of such values denoted by V i / j. In a first example with k=1, ..., 14, if the digital number X₁ (k)=01000000100021, V 0 =0, V₁=1 and V₂=2 then X₁(k)=V 1 / 0, V 1 / 1, V 6 / 0, V 1 / 1, V 3 / 0, V 1 / 2, V 1 / 1. In the series of values forming X₁(k), the first value V₀=0 occurs most frequently, the second value V₁=1 occurs next most frequently, and the other value V₂=2 occurs least frequently. In a second example with k=1, ..., 14, if the digital number X₂(k)=02111110001130, and V₀=1, V₁=0, V₂=2, and V₃=3; then X₂(k)=V 1 / 1, V 1 / 2, V 5 / 0, V 3 / 1, V 2 / 0, V 1 / 3, V 1 / 1. In the series of values forming X₂(k), the first value, V₀=1, occurs most frequently, the second value V₁=0 occurs next most frequently, and the other values, V₂=2 and V₃=3, occur next most frequently. Digital numbers formed with such frequencies of occurrence of values such as for X₁(k) and X₂(k) above, are defined as having ordered redundancy. In the typical example described for X₁(k), 0's are most redundant, 1's are next most redundant, and so on. The frequency of occurrence order of values 0, 1, 2, ... and so on described is merely one typical example. Any frequency of occurrence order is possible, for example, the 2's may occur more frequently than 1's and 0's may occur more frequently than 2's. Digital numbers, X(k), will often have ordered redundancy of the values, V j , forming the number. Ordered redundancy means that the frequency of occurrence of some of the values, V j , forming the number (or groups of such values) is greater than that for other values (or other groups of such values) forming the number and that such frequencies of occurrence are predictable for a number of digital numbers, X(k). When such ordered redundancy occurs, the ordered redundancy coding of the present invention is useful in making the coding more efficient. In the present invention, the presence of a first value (or a first set of values) is used to imply the existence of a second value (or a second set of values) thereby eliminating the need to code the second value (or second set of values). By way of example, the coding of the digital number X₁(k) above is achieved as follows. Assume that when the first value, V₀, is followed by the second value, V₁, that the second value is implied and such code is denoted C i / 01 where i represents the number of consecutive first values V₀ preceding the implied second value, V₁. Assume that when the first value V₀, is not followed by the second value, V₁, such code is denoted Assume that any other value is amplitude coded with A₂=2 and A₃=3. With such a notation, X₁(k)=C 1 / 01, C 6 / 01, A₃, C 0 / 01. By way of the second example, X₂(k) above, the first value, V₀=1 implies the second value, V₁=0 such that X₂(k)=C 0 / 01, A₂, C 5 / 01, C 0 / 01, C 0 / 01, C 0 / 01, A₃, C 0 / 10. In order to code X₁(k)=C 1 / 01, C 6 / 01, A₃, C 0 / 01, each of the values C 1 / 01, C 6 / 01 and so forth are represented by a unique statistical code (typically a binary code) from a runlength table such that the statistically more frequently occurring values have shorter code lengths and the statistically less frequently occurring values have longer code lengths. A series of values in digital numbers having a large percentage of zeros (0's) followed by ones (1's) is termed "One's Redundancy". One's Redundancy Coding is one example of Ordered Redundancy (OR) coding. The OR coding procedures for One's Redundancy appear in TABLE 3 and are based upon 16x16 transform blocks of values where each such block gives rise to a digital number, X(k), having 256 values. Of course, any size blocks (NxM) of digital values can be selected. Also, the digital values can be in block form representing transform coefficients or can be multi-valued digital signals, X(k), of any form. In order to identify the beginning or end of the values forming a number, X(k), a special "End of Block" signal, EOB, is utilized. When a plurality of numbers X₁(k), X₂(k), X₃(k), ... and so on are to be coded and transmitted, the EOB code is inserted between the numbers, usually once after each number. The TABLE 3 example is premised upon digital signals having first values V₁=0, second values V₂=1, and a set of other values, V 2 , greater than 1 (2, 3, 4, ...). Also, TABLE 3 has a runlength table partitioned into first and second parts, a first part, R (or C₀₁), and a second part, R' (or C 0 1 ). The first part, R, implies that a runlength of 0's is followed by a 1. The second part, R', implies that a runlength of 0's is followed by another value greater than 1 (2, 3, 4, ...). The TABLE 3 formulation is for one preferred embodiment of the ordered redundancy coding. Many variations, some hereinafter described, are possible. As can be seen from TABLE 3, two Huffman tables or equivalent statistical coding tables are specified in the "One's Redundancy" (OR) coding. The runlength table (including EOB) consists of two parts, R and R', with a total of 513 entries (256 each for the first part R and the second part R' and 1 for EOB). The amplitude table consists of 509 entries (amplitude values of 2 to 510). In a practical implementation, these two tables can be shortened with little performance degradation. Specific examples of the two tables specified in accordance with TABLE 3 appear as the following TABLES 6 and 7. TABLE 6 is a runlength table of the two part example (R and R' or R₁ and R₂) where R implies a runlength of 0's followed by a 1 and R' implies a runlength of 0's followed by a value greater than 1. TABLES 6 and 7 are derived based upon the hardware constraints (which are intended to be representative of a practical system, but are not intended to be limiting) of the following TABLE 4: TABLE 5 gives four comparative examples for coding digital numbers using Scene Adaptive Coding (SAC) and One's Redundancy (OR) coding. The One's Redundancy coding examples utilize TABLES 6 and 7 and the Scene Adaptive Coding examples utilize TABLES 8 and 9. As can be seen from TABLE 5, the OR coding is considerably shorter than the SAC coding and hence OR coding is more efficient. Ordered Redundancy Variations . Additional variations are possible, for example, three or more parts of their equivalent may be used in the runlength table. A typical example with three parts (R, R′ and R'') is as follows. Runlengths of consecutive first values (V₁=0) are runlength encoded with three different parts (R₁, R₂, or R₃) depending upon the value following the runlength of 0's. If the following value is a second value (such as V₂=1), then R₁ is selected for encoding the runlength of the first value (0's in this case). If the following value is a third value (such as V₃=2), then R₂ is selected for encoding the runlength of the first value (0's in this case). If the following value is another value (greater than 2 such as 3, 4, 5, ...), then R₃ is selected for encoding the runlength of the first value (0's in this case). If R₃ is selected, then R₃ is followed by an amplitude code to specify the exact value (3, 4, 5, ...) following the runlength of first values (0's). The runlength table utilized with ordered redundancy coding can be of two parts (R and R′), three parts (R₁, R₂, and R₃), or more generally of "n" parts (R₁, R₂, ..., R n ), where n is equal to or greater than 2. The TABLES 6 and 7 were formed based upon the assumption that a separate sign bit, S or S , not in the tables is to be used to indicate the sign of each value coded in the manner indicated in TABLE 5. Alternatively, the sign information can be encoded into TABLE 6 or TABLE 7. For example, a table like TABLE 6 can be used to represent runlengths of 0's that are followed both by positive and by negative non-zero numbers. Such a table would be greater in length than TABLE 6 (expanded essentially to double the length) to provide entries for runlengths of 0's followed by both negative and positive non-zero numbers. Of course, such a table would be ordered in accordance with the statistical frequency of both positive and negative numbers. The two tables, TABLES 6 and 7, were formed based upon the assumption that the values to be coded were categorized into three basic groups or values, namely a first value, V₁, a second value, V₂, and all other values. In the particular example of coding, the first value V₁ is 0, the second value V₂ is 1, and the third value is one within the set of all values greater than 1. It often occurs that in a block of values to be coded, the value 0(the first value) occurs statistically most fequently, the value 1(the second value) occurs statistically second most frequently and the other values (the third values) the least frequently. With such a distribution having ordered redundancy, the coding of the second value (1's in this case) is avoided because the first value (0's in this case) is runlength coded in two parts, one part that implies that the number following the runlength of 0's is the second value(1 in this case) and the other part that indicates that the number following the runlength of 0's is within the set of third values (values greater than 1 in this case). Alternative formulations are possible. For example, rather than categorizing the values to be coded into three groups as done in connection with TABLE 6, four or more groups are possible. For four groups, the first value (for example V₁=0) is coded in three parts, namely, a first part for implying a second value (for example V₂=1), a second part for implying a third value (for example V₃=2) and a third part for indicating a set of fourth values (values greater than 2). In general, a multivalued digital number, X(k), to be coded with n-1 implied values has a first value, V₁, a second value, V₂, ..., a j-value, V j , a (j+1)-value, v j+1 , ..., a n-value, v n , for j ranging from 1 to n, and has other values. The digital signals are coded with n-1 implied values to form statistically coded signals such that the more frequently occurring values of the digital signals are represented by shorter code lengths and the less frequently occurring values of coded signals are represented by longer code lengths. The coding includes, for each value, V j , for j from 1 to n, forming j th runlength code values representing the number of consecutive first values followed by the j+1 value, forming additional runlength code values representing the number of consecutive first values followed by any of said other values. While the embodiments described have used one code(such as R) based upon the existence of a runlength of a first value to imply a second value, the implied code is not limited to a single value but can be itself multivalued. For example, a runlength of 0's followed by two 1's can be implied by a code R''. While the implied coding of the second value was typically as a result of runlength coding the first value, other types of coding of the first value are included within the present invention. As another alternative, the statistically most frequent value is not necessarily the value that is runlength encoded. Where three groups of values are employed(such as 0's, 1's and greater than 1's), the second value(1's in this case) can be runlength encoded to imply the first value(0's in this case) or to specify the third values(numbers greater than 1 in this case). In an example where the number of values, V j , are limited, the need for amplitude coding can be eliminated. For example, if only the values V₁=0 and V₂=1 are present in the number X(k), then no amplitude coding is required since the V₁=0 values can be runlength coded and the values of V₁=1 can be implied. Similarly, for an example with only the values V₁=0, V₂=1, and V₃=2, the values of V₁=0 can be runlength coded while both V₂=1, and V₃=2 are implied using a two-part runlength table as previously described. In an example where all of the values have the same sign, the sign coding can be eliminated. Coder Details - FIG. 3 . In FIG. 3, further details of the coder 14 of FIG. 2 are shown. In FIG. 3, each digital value, V j , of a digital number, X(k), to be coded is input to the CO register 76. Typically, the register 76 is a 16-bit register for storing 16-bit values where the digital number, X(k), is formed of K 16-bit values, each value clocked into register 76 in sequence and one at a time. The comparator 77 compares the absolute value of each value in register 76 to determine if that absolute value is less than 1, equal to 1, or greater than 1. Comparator 78 provides a less-than-1 output signal on line 78, an equal-to-1 signal on line 79, and a greater-than-1 signal on line 80 as a function of the value in register 76. The less-than-1 signal on line 78 indicates an equal-to-0 condition. The control 81 receives the three control values on line 78, 79 and 80 from comparator 77 and controls, in a conventional manner, the coder operations. The "zero" counter 82 counts the runlength of consecutive zeros detected by the comparator 77. Line 86 from control 81 causes counter 82 to be set to a counting mode for counting consecutive 0 values in register 76. Line 86 causes counter 82 to be reset after each runlength of zeros is counted. After being reset and with line 86 setting counter 82 to the counting mode, counter 82 will count zeros until a non- zero value is detected in register 76. If a non-zero value is detected, either a equal-to-1 signal on line 79 or a greater-than-1 signal on line 80 is enabled and detected by control 81. If an equal-to-1 signal is detected, control 81 asserts the line 87 to specify the R type of operation. The enable line 87 together with the runlength count from counter 82 addresses the runlength table 84. Runlength table 84 is typically a random access memory or a read only memory storing coded runlength values like those of TABLE 6. The 0 runlength output on line 95 from counter 82 together with the 1-bit on line 87 address the table 84 to provide a runlength coded value output on lines 93. The output from table 84 is under control of the signal on line 89 from control 81 and loads the code register 85 with the runlength coded value from the CODE column of TABLE 6. The runlengh coded value implies that a runlength of zeros is followed by a 1 in the manner previously described. After a coded value is loaded into register 85, the sign bit from register 76 is enabled to be stored in register 85 by the enable gate 91 under control of the signal 94 from the control 81. Thereafter, the next value, V j , of the number, X(k), is loaded into register 76. Counter 82 is cleared and a new runlength of zeros is counted until comparator 77 detects a non-zero value by asserting either an equal-to-1 signal on line 79 or a signal on line 80 signifying a greater-than-1 value in register 76. If the runlength of zeros is followed by a value greater than 1, then line 80 is asserted and control 81 causes line 87 to be not asserted, thereby signifying an R′-type of operation. The runlength value from counter 82 on line 95 together with the non-asserted signal on line 87 causes the runlength table 84 to be addressed to obtain a R′ value from table 84. Line 89 causes the output from table 84 to be gated to the code register 85. Because of a greater than 1 value in register 76, con-trol 81 causes the line 88 to be next enabled to provide an output from the amplitude table 83. The amplitude table 83 is a random access memory or read only memory loaded with amplitude values like those of TABLE 7. The value in register 76 addresses the amplitude table 83 to provide the appropriate amplitude value output on line 93 for storage in the code register 85. Thereafter, the control 81 causes line 94 to be enabled to cause the sign value from register 76 to be stored in the code register 85. The FIG. 3 coder continues to process code values in register 76 until an entire block of code values (all values for a digital number, X(k)) has been processed. Control 81 includes counters and other appropriate means for counting or otherwise determining all values comprising a digital number. When a full series of values for a digital number X(k) has been processed, control 81 enables the output line 93 to provide an end of block, EOB, signal on line 93 for storage in the control register 85. Control 81 provides the CLK₁ signal for clocking each new value into register 76, provides the CLK₂ signal for incrementing the zero counter 82 and CLK₃ signal for clocking values into register 44. In a conventional manner, control 81 is controlled by a master clock signal CLK, from the transmitter of FIG. 2. In FIG. 3, whenthe amplitude table 83 is addressed and produces the ESC code, the ESC detector 126 senses that no amplitude value is available in the table and signals control 81. The ESC value from table 83 is gated into the code register 85. Thereafter, control 81 enables gate 127 via line 181 to gate the value fom register 76 into the code register 85. Alternatively, an additional table (not shown) can be provided for storing Huffman coded values of amplitudes not in the table 83. Such an additional Huffman table would provide compression of additional amplitude values. In FIG. 3, when the runlength table 84 provides the R ESC or the R′ ESC code value, the ESC detector 126 senses the ESC value and signals the control 81 on line 130. The ESC code value is clocked into register 85, and on the next cycle, control 81 causes alternate processing to occur. In the example described, gate 129 is enabled to enter directly the value from counter 82 into the code register 85 so that runlengths not in the runlength table 84 are directly entered after the ESC code. Alternatively, an additional runlength table with Huffman coded runlength values can be employed to provide additional compressed runlengths not in the table 84. While FIG. 3 depicts one embodiment for implementing the coder 14 of FIG. 2, many other software and hardware implementations of the coder are, of course, possible. Decoder Detail - FIG. 4 . In FIG. 4, further details of the decoder 54 of FIG. 1 are shown. The serial-by-bit data is input on line 117 to the code register 101. The input data, as it is clocked into the register 101 by the CLK₄ signal, is continuously detected by the detector 102. Detector 102 senses the synchronization, header and other control information and signals the control 107 when coded data is to follow. The coded data is clocked into register 101 one bit at a time. A code value clocked into register 101 is presented in left-to-right order when viewing the CODE column of TABLE 6. With each new code value bit, the code data from register 101 is input to the inverse runlength table 103 and to the inverse amplitude table 104. The runlength table 103 includes the data of TABLE 6 organized in an inverse order. The inverse order means that table 103 of FIG. 4 is addressed by the CODE column code values and provies as an output the type (R or R′) from column T and the length from column L. The type information appears on output line 113. Line 113 is one binary value (for example 1) when the addressed value is of type R and is another binary value (for example 0) when the type is R′. The R/R′ information on line 113 is connected to the control 107. The L information from table 103 is input on line 119 to the runlength counter 105. Typically, the L information is a binary count and runlength counter 105 is parallel loaded with the binary count under control of line 114 from control 107. If an R ESC or an R′ ESC value is detected by detector 102, control 107 is signaled that no valid runlength will be derived from table 103. When control 107 senses that the ESC code has appeared in register 101, control 107 causes the contents of the register 101 through gate 125 to be gated into the runlength counter 105. Thereafter, runlength counter 105 is decremented in the manner previously described. Line 116 output from the table 103 is a validity bit indicating that a valid entry has been found in table 103. As each new code value bit is clocked into register 101, table 103 is addressed to determine if a valid entry is found. Not all input codes from register 101 will find a valid entry in table 103. All valid entries in table 103 provide a validity bit output on line 116 for signalling the control 107. When control 107 receives a valid bit from line 116, the length value for the addressed entry is stored into the runlength counter 105. Thereafter, the runlength counter 105 is decremented by the CLK₅ signal thereby counting out the runlength of zeros. Control line 118 inhibits any output from the amplitude table 104 whenever counter 105 is being decremented thereby loading zeros into the CO register 109. When the counter 105 has been counted down and the entire runlength of zeros has been loaded into register 109, control 107 has sensed the R or R′ signal from line 113 and thereafter provides the following sequencing. If line 113 indicated an R-type operation, then line 121 loads a 1 into the register 109 since R-type operations imply a 1 after a runlength of zeros. When line 121 writes a 1 into register 109, gate 108 is enabled by line 119 to load the sign bit, which will be the next bit in order clocked into register 101 into the register 109. Thereafter register 101 will be cleared and clocked to receive the next code bits. If line 113 indicates an R′-type operation, then line 121 is not enabled and line 118 is enabled to read out an amplitude from amplitude table 104. Amplitude table 104 contains the information of TABLE 7 in inverse order. The inverse order indicates that table 104 is addressed by the information in the CODE column and provides an output on line 120 from the A column. Typically, the output value from the A column is a binary number representing the amplitude. If an ESC value is called for, detector 102 signals control 107 to indicate that no valid amplitude will be obtained from table 104. When the A ESC code appears in the code register 101, the control 107 causes the next amplitude value in code register 101 to be gated directly via gate 108 to the CO register 109. After an amplitude value is loaded into register 109 from table 104 or register 101, control 107 then signals via line 119 the loading of the sign bit from register 101 into register 109. Register 101 is then cleared to receive the next code value on line 117 from the buffer 53 of FIG. 1. While FIG. 4 depicts one embodiment of a decoder in accordance with the present invention, many other software and hardware embodiments of the FIG. 5 decoder are possible. Rate Buffer . The rate buffer 15 in FIG. 2 performs channel rate equalization. The buffer has a variable rate data input on lines 44 and a constant rate data output on lines 44. The differentials are monitored from frame to frame, and the status is converted into a scaling factor that is fed to the normalizer on lines 25. The buffer always forces the coder to adjust to the local coding variations, while ensuring global performance at a desired level. Let B(n) represent the number of bits into the rate buffer for the nth frame and let S(n) represent the buffer status (difference between the read and write pointers of the FIFO) at the end of the nth frame. Then, B(n) and S(n) can be written as follows: Eq.(13) S(n) = S(n-1) + [B(n)-N²R] where N₁ = number of blocks in replenishment mode N₂ = number of blocks in motion compensated replenishment mode N₃ = number of blocks in DPCM mode N₄ = number of blocks in motion compensated DPCM mode N₅ = number of blocks in intraframe mode [ I (u,v)] i = normalized and quantized coefficient differences in ith block H(.)} = "One's Redundancy" coding function R = average coding rate N = transform block size K = sync. header, and NF iεN₃ = i belongs to N₃ DPCM block iεN₄ = i belongs to N₄ DPCM block iεN₅ = i belongs to N₅ DPCM block The buffer status S(n) is used to select an instantaneous scaling factor D*(n) according to an empirically determined "scaling factor versus status" curve. This relationship is described by Eq.(14) D*(n) = Φ{S(n)} In order to smooth out this instantaneous scaling factor such that the desired scaling factor does not fluctuate too much, a recursive filtering process is applied as follows: Eq.(15) D(n) = (1-c) D(n-1) + cD* (n) where c is a constant with value less than unity. The rate buffer can be guaranteed not to overflow by introducing a frame repetition mechanism. It can also be prevented from underflow by introducing fill bits. Frame Repetition . The requirement of a frame repetition in the Motion Compensated Combined Interframe and Intraframe Coding System of FIG. 2 is well justified. Due to the usage of only one normalization facter per frame, an excessive amount of data can flow into the buffer during a scene cut or fast zooming operatins. Only instantaneous shutting off of the input data like the frame repetition will prevent the rate buffer from overflowing. Also, in order to prevent the scaling factor from getting too large to introduce blocking artifacts, a frame repetition is desired. To establish frame repetition in the rate buffer, a threshold in the rate buffer is first established. During the encoding process, if the data within the buffer exceeds this threshold at the end of the frame, frame repetition is initiated to stop the input data. The repetition process is stopped when the data within the buffer is reduced to a level lower than the threshold.

Claims: An ordered redundancy method for coding digital signals, the digital signals taking a plurality of different values, using two types of runlength code (R, R'), the method comprising the steps of: utilising the first type of runlength code (R) for coding a runlength of the most frequently occurring value followed by the next most frequently occurring value; utilising the second type of runlength code (R') for coding a runlength of the most frequently occurring value followed by any value other than the next most frequently occurring value; and when the second type of runlength code is used, following the runlength code value by a code value indicative of the amplitude of said other value. The coding method of claim 1, wherein the digital signals to be coded are formed by processing input signals to form processed signals being digital numbers taking said plurality of different values. The coding method of claim 2, and comprising the step of: providing a table storing a plurality of code values, according to the first and second types of runlength code, corresponding to different runlengths of the most frequently occurring value, said code values being statistically organised in said table such that the statistically more frequently occurring runlength code values are represented by shorter code lengths and the less frequently occurring runlength code values are represented by longer code lengths, wherein signals are coded by table lookup from said table. The coding method of claim 2, wherein the processing step further includes the step of providing an end code to designate the end of a digital number. The coding method of claim 1 or 2, using at least one further type of runlength code and comprising the step of utilising each further type of runlength code for coding a runlength of the most frequently occurring value followed by a respective particular further value other than the next most frequently occurring value. The coding method according to any previous claim, and comprising the step of encoding runlength code values with a sign value. The coding method of claim 1, 2 or 5, wherein the most frequently occurring value of digital signal has amplitude zero and the next most frequently occurring value of digital signal has absolute amplitude one. The coding method of claim 2, wherein said processing step includes multiple modes of processing said input signals to form said processed signals, and includes the step of selecting one of said modes based upon differences in said input signals. The coding method of claim 2 or 5, wherein said input signals represent images and are presented in sequential frames, said processing step including multiple processing modes for processing said input signals to form said processed signals, and including the step of forming the mean-square difference, d o , between input signals from the current frame and representations of input signals from the previous frame and includes the step of forming the mean-square error, d b , between input signals from the present frame and the best matched representation of input signals from the previous frame, said processing step including the step of comparing the difference, d o -d b , with a motion threshold T M , and selecting one of said modes based on said comparison. The coding method of claim 9, including the step of determining when d o -d b is less than T M and further including the step of selecting a non-motion-compensated replenishment mode when d o is less than a predetermined threshold T R and d o -d b is less than T M . The coding method of claim 9, including the step of determining when d o -d b is less than T M and further including the step of selecting a non-motion-compensated DPCM mode when d b is less than a predetermined threshold T D/I and d o -d b is less than T M . The coding method of claim 9, including the step of selecting an intraframe mode when d o is greater than a predetermined threshold T D/I . The coding method of claim 9, including the step of determining when d o -d b is greater than T M and further including the step of selecting a motion compensated replenishment mode when d b is less than predetermined threshold T D/R and d o -d b is greater than T M . The coding method of claim 9, including the step of determining when d o -d b is greater than T M and further including the step of selecting a motion compensated DPCM mode whenever d b is greater than a predetermined threshold T D/R and d o -d b is greater than T M . The coding method of claim 1, 2, 3, or 7, and further comprising the steps of: decoding runlength code values of the first type of runlength code to form runs of the most frequently occurring value followed by the next most frequently occurring value, and decoding runlength code values of the second type of runlength code to form a run of the most frequently occurring value followed by one or more of said other values. The coding method of claim 5, and further comprising the steps of: transmitting runlength code values of the first, second and at least one further runlength code type to a receiver to form received signals, decoding said received signals to form decoded signals, said decoding including, decoding received runlength code values of the first or at least one further type of runlength code to form a run of said most frequently occurring value followed by a respective next most frequently occurring value or at least one particular value other than the next most frequently occurring value, and decoding received runlength code values of the second type of runlength code to form a run of said most frequently occurring value followed by any of said other values. Apparatus for ordered redundancy coding of digital signals taking a plurality of different values, the coding using two types of runlength codes (R,R'), the apparatus comprising: means (81, 82, 84, 87 and 95) for using the first type of runlength code (R) to form first code values representing runlengths of the most frequently occurring value followed by the next most frequently occurring value, and means (81, 82, 83, 84, 87 and 95) for using the second type of runlength code (R') to form second code values representing runlengths of the most frequently occurring value followed by any one of said values other than the next most frequently occurring value and for following each second code value by a code value indicative of the amplitude of said other value. The coding apparatus of claim 17, and further comprising means (10, 51, 52) for processing input signals to form processed signals where the processed signals are the digital signals taking said plurality of different values. The coding apparatus of claim 18, including an addressable table (84) storing a plurality of runlength code values, according to the first and second types of runlength code (R,R'), corresponding to a plurality of different runlengths of the most frequently occurring value, said runlength code values being statistically organized in said table such that the statistically more frequently occurring runlength code values are represented by shorter code lengths and the less frequently occurring values are represented by longer code lengths, and wherein the means for forming first runlength code values includes means (87,95) for addressing said addressable table with a runlength number representing the runlength of said most frequently occurring value followed by said next most frequently occurring value in order to obtain said first runlength code value from said table, and the means for forming second runlength code values includes means (87,95) for addressing said addressable table with a runlength number representing the runlength of said most frequently occurring value followed by any of said other values in order to obtain said second runlength code value. The apparatus of claim 18, and further including means for providing an end code to designate an end of a digital number. The apparatus of claim 17 or 18 using at least one further type of runlength code, and further comprising means using a respective further type of runlength code to form a further runlength code value, each further runlength code value representing a run of said most frequently occurring value followed by a respective particular one of said values other than the next most frequently occurring value. The coding apparatus of claim 17, 18 or 21, further comprising means (91) for encoding said runlength code values with a sign value. The coding apparatus of claim 17, 18 or 21, wherein the most frequently occurring value has amplitude zero and the next most frequently occurring value has absolute amplitude one. The coding apparatus of claim 18, wherein said means for processing includes multiple mode processing means (10, 14, 51, 52) for processing said digital signals to form said processed signals, and includes means (7) for selecting one of said modes based upon differences in said input signals. The coding apparatus of claim 18 or 21, wherein said input signals represent images and are presented in sequential frames, said means for processing (10, 51, 52) including multiple mode processing means (10, 14, 51, 52) for processing said input signals to form said processed signals, and including means (7) for forming the mean-square difference, d o , between input signals from the current frame and representations of input signals from the previous frame and means for forming the mean-square error, d b , between input signals from the present frame and the best matched representation of input signals from the previous frame, said processing means including means (7) for comparing the difference, d o -d b , with a motion threshold T M , and selecting one of said modes based on said comparison. The coding apparatus of claim 25, including means (7) for determining when d o -d b is less than T M and means for selecting a non-motion-compensated replenishment mode when d o is less than a predetermined threshold T R and d o -d b is less than T M . The coding apparatus of claim 25, including means (7) for determining when d o -d b is less than T M and means (7) for selecting a non-motion-compensated DPCM mode when d b is less than a predetermined threshold T D/I and d o -d b is less than T M . The coding apparatus of claim 25, including means (7) for selecting an intraframe mode when d o is greater than a predetermined threshold T D/I . The coding apparatus of claim 25, including means (7) for determining when d o -d b is greater than T M and means (7) for selecting a motion compensated replenishment mode when d b is less than predetermined threshold T D/R and d o -d b is greater than T M . The coding apparatus of claim 25, including means (7) for determining when d o -d b is greater than T M and means (7) for selecting a motion compensated DPCM mode whenever d b is greater than a predetermined threshold T D/R and d o -d b is greater than T M . The coding apparatus of claim 17, 18, 22 or 23, and further comprising: means (105,107,109) for decoding said first code values to form runs of said most frequently occurring value followed by said next most frequently occurring value, and means (104,105,107,109) for decoding said second code values to form runs of said most frequently occurring value followed by any of said other values. The coding apparatus of claim 21, and further comprising: means for transmitting said first, second, and at least one further runlength code value to a receiver to form a received signal including received first, second and at least one further runlength code value, means for decoding said received signals to form decoded signals, said decoding means including, means (105,107,109) for decoding said received first or at least one further runlength code value to form a run of the most frequently occurring value followed by a respective next most frequently occurring value or at least one particular other value, and means (104,105,107,109) for decoding said received second runlength code values to form a run of said most frequently occurring value followed by any of said other values.

Inventors: CHEN WEN-HSIUNG, KLENKE DANIEL J, CHEN, WEN-HSIUNG, KLENKE, DANIEL J.
Applicants: COMPRESSION LABS INC, COMPRESSION LABS, INC.
Application year: 1987
Main classification: H03M7
IPC codes: H04N7, H03M7, G06T9, G06F5