Bandwidth compression device

Abstract: A band compression device for digital signals in which input digital data are subjected to fixed to floating point conversion to realize bit reduction and in which a high speed compressing operation is made possible, by first shifting the input digital data by a number of bits equal to about one half the maximum shift quantity. Then, depending whether or not there is an overflow, the unshifted or the shifted data is sequentially shifted one bit at a time until the correct format is obtained.

Description: This invention relates to a band compression circuit for reducing the number of bits of signals digitized from analog signals prior to transmitting the digitized signals. Recently, with digital signals obtained upon sampling, quantizing and encoding analog audio or video signal, or so-called pulse code modulated signals (PCM signals), it has become possible to reduce the data quantity by taking advantage of the fact that the statistical properties of these digital signals exhibit certain variations and that certain portions of the signals are less critical in view of their effects on the visual and auditory senses. Thus it has been known that the signals undergo only little degradation in quality by differential, summation or compounding operations for bit reduction. One of such techniques of data compression or band compression is the floating operation as described in JP-A-100-8558 (EP-A-0,297,461). The floating operation resides in shifting n-bit input data by an amount corresponding to the data value and taking out m bits (where m<n) by way of performing a local quantization. Such a floating operation,consisting in compressing 16-bit-per-word input data in a 2's complement representation to 8-bit data and taking out the compressed data is shown in Figs. 1a to 1f, inclusive. Figs. 1a to 1f show the amount of bit shifts consistent with the range of values of the above mentioned 16-bit-per-word input data wherein only the positive value or the absolute value are taken into consideration. Fig. 1a shows the case in which the range of the input data values is 0 to 127 and the number of significant bits in the 16-bit input data is 7 or less, while Figs. 1b to 1i show the cases in which the numbers of significant bits in the 16-bit input data are 8 to 15, respectively. In Figs. 1a to 1i, the areas shown by hatched lines represent the significant bits, with the exception of Fig. 1a wherein the areas shown by hatched lines indicate the upper limit or the maximum value of the significant bit. Referring first to Fig. 1a, since the number of the significant bits within the 16-bit input data is 7 or less, bit compression can be made by shifting the data by eight bits and taking out the upper eight bits without a rounding error (quantization error) at the time of the local quantization. Turning to Fig. 1b, since the range of input data values is 128 to 258, and the number of significant bits within the 16 bits, indicated by the area shown by hatched lines, is 8, the upper 8 bits can be taken out by shifting the input data by seven bits, with the rounding error being 1 bit. Turning to Figs. 1c to 1i, since the numbers of significant bits are 9 to 15, respectively, the amounts of bit shift are 6 to 0 bits, respectively, with the rounding errors, indicated by the area shown by cross-hatched lines, being 2 to 8 bits, respectively. These rounding errors are fed back to the input side of the local quantizer (error feedback) for performing a so-called noise shaping, as disclosed in an article entitled "Adaptive Noise Spectral Shaping and Entropy coding in Predictive Coding of Speech" appearing at pages 63 to 73 of IEEE Transactions on Acoustics, Speech and Processing, vol, ASSP-27, No. 1, February 1979. On many occasions, such a floating operation is implemented by a software program using a so-called digital signal processor (DSP). An example of an essential portion of the software program is shown in the following Table 1. FLOAT LAC xn,1 Load input data to accumulator with 1 bit shift to left SACL xn Restore accumulator data in memory SUBS MAX Compare with MAX (7FFF) BLEZ FLOAT to FLOAT when accumulator data is MAX or less On many occasions, such a floating operation is executed by so-called block floating by arranging input data consisting of a predetermined number of words into one block. In such case, the shifting quantity is determined on the basis of the peak value of the words in each block, and the totality of words in the block are bit-shifted by the same quantity. Fig. 2 is a flow chart showing a practical example of a bit shifting program applied to a floating operation in which, as an example of the block floating, 16-bit-per-word input data in 2's complement representation are arranged into blocks, each consisting of a predetermined number of, for example, 28 words, the totality of words in each block are compressed to 8 bits by bit-shifting by the same quantity and the thus compressed data are taken out in the form of 8-bit compressed data. With the example shown in Fig. 2, when the number of the significant bits of input data is 8 bits, with the data value being 0 to 255, shifting by 8 or 7 bits is performed at one time. However, when the number of significant bits of the input data is 9 or more, the bit shifting operation by the above mentioned loop program is realized by a series of decision steps to speed up the operation. In Fig. 2, P indicates the peak value which is the maximum value of the words in each block. The range of the peak value P is analyzed to determine the shift quantity. In a first step 80 of Fig. 2, it is determined if the peak value P is 127 or less (P<127?), that is if the number of the significant bits is 7 or less. If the result is YES, the program proceeds to step 91 where the input data are shifted by 8 bits towards the left as shown in Fig. 1a to output the upper 8 bits. If the result is NO, the program proceeds to step 81 where the peak value P is divided by 256 and the resulting quotient is set as a new peak value P t (P t =P/256). The program then proceeds to step 82. In step 82, it is determined if the peak value P t is equal to zero. This operation is equivalent to determining if the original peak value P is 255 or less. If the result of the decision at step 82 is YES, the original peak value P is in the range from 128 to 255 (taking the result of the decision at step 80 into consideration). The program then proceeds to step 92 where the input data are shifted by 7 bits towards the left as shown in Fig. 1b to output the upper 8 bits. If the result of the decision at step 82 is NO, the program proceeds to the next step 83. In step 83, a value equal to twice the peak value P t , or 2P t , is compared with 127, to determine if 2P t is larger than 127 (2P t >127?). The operation in step 83 is equivalent to determining if the original peak value P is 16384 or more, that is if the number of significant bits is 15 or more. If the result of the decision at step 83 is YES, the program shifts to step 93 where the input data are shifted by zero bits towards the left, that is, not shifted towards the left, as shown in Fig. 2, and only the upper 8 bits are output. If the result of the decision at step 83 is NO, the program proceeds to step 84. At step 84, it is determined if a value equal to twice the peak value P t , or 2P t , is larger than 63 (2P t >63?). The operation at step 84 is equivalent to determining if, in conjunction with the decision at step 83, the number of significant bits of the original peak value P is equal to 14 bits, that is, if the original peak value P is within the range from 8192 to 16383 as shown in Fig. 1h. If the result of the decision at step 84 is YES, the program proceeds to step 94 where the input data are shifted by one bit towards the left as shown in Fig. 1h and only the upper 8 bits are output. If the result is NO, the program proceeds to next step 85. At the following decision blocks 85 to 88, it is determined if the number of the significant bits of the original peak value P is equal to 13 to 10, respectively. If the results of the decisions at the decision blocks 85 to 88 are YES, the program proceeds to steps 95 to 98, respectively, where the input data are shifted by 2 to 5 bits, respectively, as shown in Figs. 1g to 1d, respectively, with the upper 8 bits being output. If the results of the decisions at decision blocks 85 to 87 are NO, the program proceeds to the next decision blocks 86 to 88, respectively. If the result of the decision at step 88 is NO, the program proceeds to step 99 where the input data are shifted by 6 bits towards the left as shown in Fig. 1c, with the upper 8 bits being output. When the floating operation is performed in accordance with the loop program shown in Table 2 the execute time per loop of the program amounts to 500 ns, with the machine cycle of the DSP of, for example, 100 ns, so that the total execute time for the maximum shift quantity of 8 bits amounts to 500 ns x 8 = 4 µs. In a practical system, when the number of significant bits of the input data is less than the lower 8 bits (0 to 255), and the shift quantity is 8 or 7 bits, shifting is executed within one machine cycle by using a so-called barrel shifter. However, even with such a practical system, if the input data are 256 to 511 and the shift quantity is a maximum of 6 bits, an execute time as long as 500 ns x 6 = 3 µs is necessitated to carry out only the looping step. In practice, however, the execute time amounts to 2 - 2.5 times this figure because the operation of storing shift or ranging data in other memories or the above mentioned noise shaping operation need to be performed within the same loop in addition to the operation shown in Table 1. This problem is felt most acutely when the processing of several channels needs to be performed in a time sharing fashion within one sample period. For example, when a compression of two channels is to be performed at a sampling frequency of 32 kHz, about half of the execute time is consumed in carrying out solely the floating operation, so that a limitation is imposed on the time to be allocated for the above mentioned other signal processing operations. If the above mentioned looping operation is realized by a series of a number of the decision steps for increasing the processing speed, as shown in Fig. 2, the steps 80 to 88 and the shift steps 98 or 99, totalling 10 steps, are required just for a bit shift operation when the number of the significant bits of the peak value P is equal to 9 (265 to 511) or 10 (512 to 1023), resulting in more stringent limitations imposed on the remaining operations. It is therefore an object of the present invention to provide a band compression circuit for digital signals wherein a shorter time can suffice for realizing bit shifting involved in a floating operation. According to the present invention there is provided bandwidth compression apparatus for compressing an input digital data value of n-bits into an m-bit data value, n and m being real integers with m < n, the apparatus comprising: bit-shift means for shifting the input data value by a number of bits substantially equal to half the maximum shift quantity m/2; comparison means for comparing the shifted input data with a predetermined maximum value; and local quantization means for outputting an m-bit data value by secondary bit-shifting either the input data or the shifted input data according to the result of the comparison, one bit at a time, and comparing the secondary shifted data with said predetermined maximum value. The invention further provides a method of compressing the band width of a digital signal by compressing input digital data with values of n-bits into m-bit data values, n and m being real integers with m < n, as defined in independent claim 5. Further embodiments are defined in the appended dependent claims. In more detail, prior to the floating operation, the input digital data are shifted towards the left by a number of bits approximately equal to one half the maximum shift value for comparison with the maximum value. If the shifted data exceed the maximum value, the original, unshifted data are then subjected to the usual shifting, whereas, if the shifted data are less than the maximum value, the shifted data are subjected to the usual shifting operation, whereby the steps of shifting until the input data reaches approximately one half the maximum shift value can be eliminated to realize a high speed processing. The invention will further be understood from the following description when taken with the accompanying drawings, which are given by way of example only and in which: Figs. 1a to 1f are diagrammatic views for illustrating the floating operation of a conventional band compression circuit. Fig. 2 is a flow chart for illustrating the floating operation of the conventional band compression circuit. Fig. 3 is a flow chart for illustrating the floating operation of a basic embodiment of the band compression circuit according to the present invention. Figs. 4a to 4i are diagrammatic views for illustrating specific operations in the course of the floating operation of the embodiment shown in Fig. 3. Fig. 5 is a flow chart for illustrating the detailed operations in the course of the floating operation of the embodiment shown in Fig. 3. Fig. 6 is a block diagram in which the band compression circuit of the embodiment of Fig. 3 is applied to a customary signal transmission system. Fig. 3 is a flow chart for illustrating a basic embodiment of the present invention. In this figure, it is assumed that the maximum shift quantity for the floating operation is m. The input data are shifted at step 1 towards the left by m/2 bits, or by a number of bits approximately equal to m/2 bits. At step 2, the shifted data is compared with the maximum data value. If the shifted data is larger than the maximum value, that is, if an overflow occurs, the program proceeds to step 3. If the shifted data is less than the maximum value, the program proceeds to step 4. At step 3, the usual floating operation is carried out in which the original input data, that is the input data before shifting, is shifted towards the left by, for example, 1 bit each, and the thus shifted data are compared with the maximum value. At step 4, the usual floating operation is performed in which the input data shifted at step 1 are shifted towards the left by, for example, 1 bit each time, and the thus shifted data are compared with the maximum value. By performing the sequence of the floating operation in the manner described above, the number of times data is shifted for floating can be reduced from m in the conventional practice to about (1 + m/2) to realize a higher speed in the processing operation. A practical example of the above mentioned basic operation is hereinafter explained by referring to Figs. 4a to 4i. In the example, the input digital data, which are 16-bit data in 2's complement representation, are shifted towards the left by a predetermined number of bits, up to a maximum of eight bits, so that the upper 8 bits are taken out, by way of performing a floating operation. The maximum value of the input data are 7FFF in hexadecimal notation (or 32767 in decimal notation). Since m/2, which is one half the maximum shift value, or approximately so, is 4, the input data are shifted by four bits towards the left. When digital data composed of nine significant bits as shown in Fig. 4a and having data values in the range of 256 to 511 are input, the value obtained by shifting the data by four bits towards the left, or multiplied by 16, is expressed as a value within the range from 4096 to 8176, as shown in Fig. 4b, on the condition that the value is a multiple of 16. Since this value is less than the above mentioned maximum value of 32767, the data shifted by four bits towards the left are subjected to the usual floating operation of shifting the data by, for example, one bit each time and the shifted data are compared with the maximum to find the shift value. That is, the data already shifted four bits towards the left, as shown in Fig. 4b, are shifted one bit towards the left to give data having a data value in the range from 8192 to 16352, as shown in Fig. 4c, on the condition that the data is a multiple of 32. Since the data shown in Fig. 4c is not more than the above mentioned maximum value of 32767, it is shifted again by one bit towards the left to give data having a data value in the range from 16384 to 32704, as shown in Fig. 4d, on the condition that it is a multiple of 64. Since the data of Fig. 4d, shifted by one bit towards the left, exceeds the above mentioned maximum value of 32767, that is, overflow occurs, the shifting operation is terminated, and the upper 8 bits are taken out and output, by way of performing a local quantization or requantization. The rounding or quantization error of the lower eight bits shown by the double hatched lines, are fed back to the input side of the local quantizer by way of so-called noise shaping. Conventionally, six shifting operations were necessitated for the six bits, as shown in Fig. 1c, whereas, in the present example, only three shifting operations, inclusive of the initial four-bit shifting, suffices as shown in Figs. 4a to 4d, for realizing a high speed operation. When the input data are of data values in the range from 2048 to 4095, with 12 significant bits, as shown in Fig. 4e, the value obtained upon shifting the data by four bits towards the left, or multiplying the data by 16, exceeds the above maximum value of 32767, that is, overflow occurs. Thus the original data before shifting by four bits towards the left are subjected to the usual floating operation. The data with a data value which is a multiple of 2 and which is in the range from 4096 to 8190, as shown in Fig. 4g obtained upon shifting the original input data shown in Fig. 4e by one bit towards the left, is compared with the above maximum value of 32767. When the data is found to be not more than the maximum value, it is further shifted one bit towards the left to give data which is a multiple of 4 and which is in the range from 8192 to 16380, as shown in Fig. 4h. This data is compared with the above maximum value of 32767. The above described sequence of operations is repeated to give data which is in the range of 16384 to 32760 and which is a multiple of eight, as shown in Fig. 4i. Since the data shown in Fig. 4(i), if shifted by one bit towards the left, exceeds the above maximum value of 32767, that is, overflow occurs, the shifting is terminated and the upper 8 bits are taken out and output, by way of performing local quantization. By the above processing, the maximum number of times of the shifting operations can be reduced from eight bits, as shown in Fig. 1a, in the conventional practice to four at most, inclusive of the initial shifting by four bits, as shown in Fig. 4, for realizing a higher processing operation speed. Even supposing that the 8-bit shifting shown in Fig. 1a or the 7-bit shifting shown in Fig. 1b is performed with the use of a barrel shifter, shifting is required six times for six bits at a maximum, in comparison with only four shifting operations that are required in the case of the present invention. An example of the essential portions of the program approximately equal to the bit shift looping when the above described operation is performed by a software technique using a so-called digital signal processor (DSP) is shown in the following Table 2: LAC nx, 4 Load input data into accumulator with 4-bit shifting towards the left SUB MAX Compare with MAX(7FFF) BLEZ CHANGE To "change" if accumulator ≤MAX B FLOAT To "float" if accumulator > MAX CHANGE LAC xn,4 Load input data into accumulator with 4-bit shifting towards the left SACL xn Re-store data in accumulation in memory FLOAT LAC xn Load input data into accumulator with 1-bit shifting towards the left SACL xn Restore data in accumulator in memory SUBS MAX Compare with MAX (7FFF) BLEZ FLOAT To "float" if accumulator ≤ MAX Referring now to the flow chart of Fig. 5, an example is shown of a practical program to be followed by the DSP in which the looping shown in Table 2 is realized by a series of decision blocks and bit shifting by 8 or 7 bits at a time is performed with input data having eight significant bits (with the data value being 0 to 255) to speed up the operation. In this figure, the bit shifting program is applied to a so-called block floating operation in which 16-bit-per-word input data in the 2's complement representation are arranged into a plurality of blocks, each consisting of a predetermined number of, for example, 28 words. The totality of the words in the block are bit-shifted with a common shifting quantity to give compressed 8-bit data, which are then taken out, by way of performing a local quantization. In Fig. 5, P denotes a peak value which is the maximum value of the words in a block. The amount of floating or data shifting on a block-by-block basis is determined as a function of the peak value P. Four bits are adopted as the shifting quantity approximately equal to one half the maximum shifting quantity (2/m). Referring to Fig. 5, it is first determined at step 10 if the above peak value P is not more than 127 (P≤127?), that is, if the number of the significant bits is not more than 7. If the result of the decision is YES, the program proceeds to step 22 where the input data are shifted towards the left by eight bits to output the upper 8 bits. If the result of the decision is NO, the program proceeds to step 11 where the above peak value P is divided by 256 to take out the upper 8 bits and this becomes the new peak value P t (P t =P/256). The program then proceeds to step 12. At this step, the peak value P t is shifted towards the left by four bits equivalent to a shifting quantity about one half the maximum shifting quantity, that is, the peak value P t is multiplied by 16. It is then determined if the value 16P t is larger than 127 (16p t >127?). This operation is equivalent to determining if the value 16P t has undergone an overflow. If the result of the decision at step 12 is YES, that is if overflow occurs, the program proceeds to step 18. If the result is NO, the program proceeds to step 13. At this step 13, the peak value 16P t is adopted as the new peak value P f (P f =16P t ). The program then proceeds to step 14. At this step 14, it is determined if the peak value P f is equal to zero. This operation is equivalent to determining if the original peak value P is 255 or less. If the result of the decision at step 14 is YES, the original peak value P is found to be in the range from 128 to 255, in conjunction with the decision at step 10. Thus the program proceeds to step 23 where the input data are shifted towards the left by 7 bits to output the upper 8 bits. If the result of the decision at step 14 is NO, the program proceeds to step 15. At this step 15, the input data is multiplied by 16, that is, bit-shifted towards the left by four bits, before the program proceeds to step 16. At this step 16, it is determined if the value 2 P f , which is twice the peak value P f , is larger than 127 (2P f >127?). The operation at step 16 is equivalent to determining if, in conjunction with the preceding operation of the decisions at steps 10, 12 and 14, the original peak value P is in the range from 1024 to 2047, that is if the number of significant bits is equal to 11. If the result of the decision is YES, the program proceeds to step 26, where the input data are shifted towards the left by zero bits, that is, the input data is not further shifted. It remains as it is, namely shifted towards the left by four bits at the preceding step 15, and only the upper 8 bits are output. If the result is NO, the program proceeds to step 17, where it is determined if the value 2P f is larger than 63 (2P f >63?). The operation at this step 17 is equivalent to determining if in conjunction with the decision at step 16, the number of significant bits of the original peak value P is equal to 10, that is, if the original peak value is within the range of from 512 to 1023. If the result of the decision at step 17 is YES, the program proceeds to step 25 where the input data are shifted towards the left by one bit to output the above mentioned eight bits, since the data have been shifted towards the left by four bits at step 15 so that the total shift quantity towards the left is 5. If the result is NO, the program proceeds to step 24 where the data are shifted towards the left by two bits to output only the upper 8 bits. If the result of the decision at step 12 is YES, that is, if the value 16P t obtained upon 4-bit shifting towards the left, the program proceeds to step 18, where the peak value P t is adopted as the new peak value P f . The program then proceeds to step 19. In a similar manner, in the following decision steps 19 to 21, it is determined if the number of the significant bits of the original peak value P is equal to 15 to 21, respectively. If the results of any of the decisions at the steps 19 to 21 are YES, the program proceeds to steps 27 to 30, respectively, where input data are shifted towards the left by 0 to 3 bits, respectively, to output the upper 8 bits. If the results of any of the decisions at the decision steps 19 and 20 are NO, the program proceeds to the next decision steps 20 and 21, respectively. If the result of the decision at step 21 is NO, the program proceeds to step 27 where the input data are shifted towards the left by three bits to output only the upper 8 bits. The purpose of replacing the peak value P t by the new peak value P f at step 18 is to cause the steps 19 et seq to perform the steps 16 et seq simultaneously to reduce the program volume. More specifically, the steps 16, 17, 24, 25 and 26 can be omitted if the program skips to step 19 via steps 13 to 15 when the result of the decision at step 12 is NO. The bit reduction system to which the band compression circuit pertaining to the present invention is applied, is hereinafter explained by referring to Fig. 6. In this figure, the bit reduction system is composed of an encoder 50 on the transmitting or recording side and a decoder 70 on the receiving or reproducing side. An audio PCM signal x(n), obtained upon sampling an analog audio signal with a sampling frequency fs, followed by quantization and encoding, is supplied to an input terminal 51 of an encoder 50. From the input terminal 51 the signal x(n) is supplied to a predictor 52 and a summing point 53. The output of the predictor 52 is a prediction signal (n). At the summing point 53, the prediction signal (n) is subtracted from the input signal x(n) to produce an output prediction error signal or a differential output (in the broad sense), that is, a signal In general, the predicter 52 operates to produce the prediction signal (n) from the first order combination of the past p number of inputs x(n-p), x(n-p+1), ... , x(n-1), such that where α k (k being 1, 2, ... p) denotes a coefficient. Thus the prediction error output signal or the differential output d(n) in the broad sense of the term can be expressed as With the present signal transmission device, input digital data are arranged into blocks each composed of data within a predetermined time period of input digital signals, that is, a predetermined number ℓ of input data words, and the sets of the coefficients α k are selected so that optimum prediction filter characteristics will be obtained for each block. This is equivalent to providing a plurality of filters each consisting of predictors of different characteristics, and occasionally summing points, for producing a differential output, that is, a predicted error output. An optimum one of these differential filters is selected for each of the blocks. Such selection of the optimum filter is performed by comparing the peak values in the blocks of the outputs from the differential filters, multiplied or not multiplied by coefficients, with one another in a predictive - range adaptive circuit 61. More specifically, one of the differential filters which will give the least of the maximum values, multiplied or not multiplied by coefficients is selected as the optimum filter for the block. The optimum filter selection data is output as mode selection data from the prediction range adaptive circuit 61 and is supplied to control the predicter 52. The differential output d′(n) is supplied as the prediction error to a bit compression means (ranging or floating processing circuit) which includes a ranging amplifier 55 or bit shifter with a gain G connected in series with a quantizer 56, where compression or ranging is performed in such a manner that the exponent and mantissa in the floating decimal point representation correspond to the gain G and the output from the quantizer 56, respectively. The ranging amplifier or bit shifter 55 performs a shifting, that is, an arithmetic shifting, of the digital binary data by a number of bits corresponding to the gain G to thereby switch the so-called range, while the quantizer 56 performs a requantization for taking out a predetermined number of bits from the bit-shifted data. A noise shaping circuit 57 performs a so-called error feedback operation in which an error (e(n)) between the output (d and(n)) and the input (d″(n)) of the quantizer 56, i.e. the so-called quantization error, is obtained at a summing point 58 and input to a predicter 60 via an amplifier or shifter 59 with a gain G -1 to produce a prediction signal (n) of the quantization error which prediction signal then fed back as the subtraction signal to a summing point 54 at the input to the ranging amplifier 55. In addition to mode selection data, the predictive-range adaptive circuit 61 also outputs range data on the basis of the maximum value within the block of the differential output from the filter of the selected mode and transmits the range data to the ranging amplifier or bit shifter 55 and to the amplifier 59 to determine the gains G and G -1 , respectively, on a block-by-block basis. The predictive-range adaptive circuit 61 also transmits the mode selection data to the predicter 60 to select the optimum filter characteristics. The above range data from the predictive-range adaptive circuit 61 is taken out at an output terminal 63 and the mode selection data is taken out at an output terminal 64. The basic operation of the noise prediction downstream of the summing point 54 is hereinafter explained. The output d′(n) from the summing point 54 is expressed by which is the above differential output d(n) less the prediction signal (n) of the quantization error from the shaper 57. The output d″(n) d″(n) = G · d′(n) is obtained from the gain G shifter. On the other hand, with the quantization error e(n) that is produced in the course of the quantization, the output d and(n) from the quantizer 56 is given by d (n) = d′(n) + e(n) The quantization error e(n) is taken out at the summing point 58 of the noise shaper 57. The prediction signal (n) of the quantization error obtained via gain G -1 shifter 59 and the predicter 60 taking a first order combination of the past r number of inputs is given by This equation (7) is of similar form to the equation (2). The predicters 52 and 60 are finite impulse response (FIR) filters having the system functions respectively. From these equations (4) to (7), the output d and(n) from the quantizer 56 is given by Substituting the equation (3) into equation (9), we obtain this output being taken out via output terminal 62. With the z-transform of x(n), e(n) and d and(n) being X(Z), E(Z) and D and(Z), respectively, we obtain On the other hand, the output d and(n) from the output terminal 62 of the encoder 50 or the output d and′(n) obtained upon reproduction is transmitted to an input terminal 71 of a receiving or reproducing recorder 70. This input signal d and′(n) is transmitted to a summing point 73 via a gain G -1 amplifier or shifter 72. The output x and′(n) from the summing point 73 is transmitted to a predicter 74 which produces a prediction signal ′(n) which is transmitted to the summing point 73 so as to be summed with the output d and″(n) from the amplifier or shifter 72. This summation output is provided at an output terminal 75 as a decoder output x and′(n). The range data and mode selection data output from the output terminals 63 and 64, respectively, of the encoder 50 or transmitted and reproduced are input to the input terminals 76 and 77, respectively, of the decoder 70. The range data from the input terminal 76 is transmitted to the amplifier or shifter 72 to determine the gain G -1 , while the mode selection data from input terminal 77 is transmitted to the predicter 74 to determine its prediction characteristics. The prediction characteristics of the unit 74 are selected to be equivalent to those of the predicter 52 of the encoder 50. With the above described decoder 70, the output d and"(n) from the amplifier or shifter 72 is given by d "(n) = d '(n) · G -1 while the output x and'(n) from summing point 73 is given by Since the characteristics of the predicter 74 are selected to be equivalent to those of the predicter 52 of the encoder 50, so that, from equations (12) and (13), we obtain With the z-transforms of x and′(n) and d and′(n) being x and′(z) and D and′(z), we obtain so that X ′(z) = G -1 · D ' z 1-P z The present invention can be applied with favorable results for implementing the floating at the ranging amplifier 55 and the quantizer 56 in the bit reduction system on the encoder side with the aid of the DSP. With the above described band compression circuit of the present invention, the 16-bit input data are shifted by four bits, which is one half the maximum amount of shift, before starting the floating operation. Alternatively, in case an overflow occurs by such four-bit shifting, the floating operation reverts to a position one bit towards the left of the position of the original data signal, and the floating operation is started at such position. In this way, especially with input data of 256 to 511, the floating operation of the above described flow chart can be reduced to two loops in contrast to six loops required in the conventional practice for realization of a high speed floating operation. Thus, with a preprocessing time of 0.8 µsec and a 1-loop floating time of 500 nsec, the maximum computing time amounts to 0.8 µsec for preprocessing plus 500 nsec multiplied by two loops, which accounts for 60% of the computing time with the conventional practice, for realization of a significant reduction in the time involved in the floating operation. Such reduction in the time involved in the floating operation becomes more marked with a greater variation in the input and output word length and the larger is the required shift quantity. Since the time involved in floating can be reduced significantly, a compression operation of plural channels can be made by one DSP with the result that increased time can be allocated to other signal processing operations, such as the operation of predictive filters or the operation of storing shift data in other memories, to enable the application of a high quality signal compression algorithm. On the other hand, the present invention also allows the use of a low speed DSP in lieu of the expensive high-speed DSP to perform high speed arithmetic operations at a low system cost. Although the above description has been made of the case in which the input data are 16-bit data which are divided into the upper 8 bit and the lower 8 bit and only the upper 8 bits are output, the number of the quantization bits can be selected arbitrarily. On the other hand it is sufficient if the number of bits to be shifted previously is approximately equal to one half the maximum shift quantity and thus the number of bits can be 3 or 5 instead of 4 in the above embodiment.

Claims: Bandwidth compression apparatus for compressing an input digital data value of n-bits into an m-bit data value, n and m being real integers with m < n, the apparatus comprising: bit-shift means (1) for shifting the input data value by a number of bits substantially equal to half the maximum shift quantity m/2 ; comparison means (2) for comparing the shifted input data with a predetermined maximum value; and local quantization means (3, 4) for outputting an m-bit data value by secondary bit-shifting either the input data or the shifted input data according to the result of the comparison, one bit at a time, and comparing the secondary shifted data with said predetermined maximum value. Apparatus according to claim 1, wherein the local quantization means uses the shifted input data if the shifted input data is less than or equal to said predetermined maximum value and uses the input data if the shifted input data is greater than said predetermined maximum value. Apparatus according to claim 1 or 2, further comprising a noise shaping circuit for feeding back a rounding error produced by the local quantization means to the local quantization means. Apparatus according to claim 1, 2 or 3, further comprising a predictor for computing a predicated value from a first order combination of a predetermined number of past input data, the difference between the input data and the output of the predictor being supplied to the local quantization means. A method of compressing the bandwidth of a digital signal by compressing input digital data with values of n-bits into m-bit data values, n and m being real integers with m < n, the method comprising the steps of: shifting the input data value by a number of bits substantially equal to half the maximum shift quantity m/2; comparing the shifted input data with a predetermined maximum value; and performing local quantization by secondary shifting either the input data or the shifted input data according to the result of the comparison one bit at a time and comparing the secondary shifted data with said predetermined maximum value to output an m-bit data value. A method according to claim 5, wherein the local quantization is performed on the shifted input data if the shifted input data is less than or equal to said predetermined maximum value and on the unshifted input data if the shifted input data is greater than said predetermined maximum value. A method according to claim 5 or 6, comprising the further step of feeding back a rounding error produced by local quantization steps to be used therein. A method according to claim 5, 6 or 7, further comprising the step of computing a predicted value from a first order combination of a predetermined number of past input data, the difference between the input data and the output of the predictor being used in the local quantization steps.

Inventors: ABE MIKI, ABE, MIKI
Applicants: SONY CORP, SONY CORPORATION
Application year: 1990
Main classification: G06F5
IPC codes: H03M1, H03M7, G06F5