Digital-to-digital sample rate converter

Abstract: Digital-to-digital sample rater converter for converting digital input signals x(n) having a first sample rate F into digital output signals y(m) having a second sample rate F · L/M , wherein L/M is an arbitrary rational fraction. The digital lowpass filter needed for sample rate convertion has a piecewise continuous linear hull curve. This allows an efficient and low-cost hardware solution, since only one multiplier is needed for the digital-to-digital sample rate converter.

Description: The present invention relates to a digital-to-digital sample rate converter for converting digital input signals having a first sample rate into digital output signals having a second sample rate. In TV receivers analog signal processing has been increasingly replaced by digital signal processing. Digital signal processing offers a wide range of possibilities for the improvement of picture quality, such as noise reduction, flicker reduction, interlacing and skew elimination. Furthermore digital signal processing advantageously allows to introduce special features like for instance picture format conversion, panning of pictures, zooming or various cinema effect. When digital picture signals are processed, for instance when a picture format conversion is to be performed, it may be necessary to convert an original sample rate of the digital signals into a sample rate different from the original sample rate. In prior art TV receivers, the sample rate conversion is accomplished by converting the original digital signal, having the original sample rate F, into an analog signal and then converting this analog signal back into a new digital signal, having a sample rate F' different from the sample rate of the original digital signal. Publication "Digital Methods for Conversion Between Arbitrary Sampling Frequencies" by Ramstad in IEEE Transactions on Acoustics, Speech and Signal Processing, June 1984, refers to filtering methods for interfacing time-discrete systems with different sampling frequencies. It is suggested to perform analog reconstruction filtering. The digital coefficients are approximated by straight line or parts of the higher order polynomial between two known values. A disadvantage of this prior art sample rate conversion is, that the hardware to implement the sample rate conversion is complex, since the digital signal needs to be converted from digital to analog and back to digital. Also, since this prior art sample rate conversion includes analog circuitry, the prior art sample rate conversion is subject to the well known disadvantages of analog components such as tolerances, drift and ageing. In order to avoid the above mentioned problems related to analog circuitry, it seems advantageous to perform a digital-to-digital sample rate conversion instead of the prior art digital-to-analog-to-digital conversion method. From the theory of digital signal processing, the basic principles of digital-to-digital sample rate conversion are well known. The book "Multirate Digital Signal Processing", by Ronald E. Crochiere, Lawrence R. Rabiner, Prentice Hall, gives an overview of the theoretical background. However, a direct hardware implementation of the structures for sample rate conversion suggested in the literature is rather inefficient. Such a hardware for sample rate conversion requires a large number of multipliers as well as a large filter bank for the filter coefficient for the digital-to-digital sample rate conversion. This consequently means that a chip for digital-to-digital sample rate conversion, using the basic principles suggested in the literature, would have a large amount of gates. This causes not only technical problems, such as timing problems, but also increases the costs for the chip. It is therefore an object of the present invention to provide a digital-to-digital sample rate converter having a low complexity. This object is achieved by the features of independent claims 1 and 15. By using a digital lowpass filter having a piecewise continuous linear hull curve, the digital-to-digital sample rate converter requires only a single multiplier. This extremely reduces hardware complexity and allows a cost efficient production of a digital-to-digital sample rate converter. Since the sample rate converter may be used in consumer electronic products, such as digital TV receivers, low cost production is a major advantage. Since the impulse response of an ideal lowpass is a (sin x)/x curve, preferably the piecewise continuous linear hull curve of the digital lowpass filter is an approximation of a (sin x)/x curve, with x=Π·F*·t, wherein F* is a sample rate and t is time, such that the piecewise continuous linear hull curve consists of two intersecting straight lines for each segment of the hull curve with x between Π · i<x<Π · (i+1) and index i being integer. Furthermore, it is preferable to have a piecewise continuous linear hull curve, which is an approximation of the (sin x)/x curve, wherein the filter length Q equals four. This has the advantage that a good performance for the sample rate converter is achieved with a low hardware complexity. A preferred embodiment of the sample rate converter uses a piecewise continuous linear hull curve that is symmetrical in the range of -Π<x<Π and in the ranges of Π·i<x<Π·(i+1) for integer values i≤-2 and i≥ 1, wherein a symmetry exists with respect to x=0 and x=±Π(3/2+i) for i = 0, 1, 2, 3.... Symmetry of the piecewise continuous linear hull curve advantageously simplifies the calculation of the sample rate converted output values. In a preferred embodiment of the present invention the sum of the filter coefficients of the partial filters equals 1. This has the advantage, that the dynamic range of a signal and consequently the energy of the signal is not changed. Calculation of sample rate converted output values can be even more simplified by selecting the intersection of the two straight lines in the segment 0<x<Π to have a value of a=5/8 at x=Π/2 and by selecting the intersection of the two straight lines in the segment Π<x<2Π to have a value of minus 1/8 at x=3Π/2, since a division by 8 is easily accomplished in a digital filter. Preferably the piecewise continuous linear hull curve has a value of 1 at x=0 and has values of zero at x=±Π·i for i= 1, 2, 3.... This yields a good approximation of the (sin x)/x curve. A preferred embodiment of the present invention comprises a control unit including an LSB extractor for providing a filter coefficient number (k-number) and an address generator for generating an address signal, which selects the digital input signals for processing by the digital filter. The control unit further comprises rightshift means for providing MSBs. By using an LSB extractor and rightshift means, the hardware for providing the filter coefficient number (k-number) and the address signal is simple and inexpensive. The abbreviation LSB is used for the expression least significant bit, the abbreviation MSB is used for the expression most significant bit. By providing a lowpass filter for lowpass-filtering the digital input signal prior to sample rate conversion, adverse aliasing effects can be eliminated. An advantageous embodiment of the present invention provides a preload value to the control unit, such that the filter coefficient number (k-number) is shifted and thus, the digital output value is phase shifted. Non-orthogonal digital pictures having picture lines with differing start phases can be transformed into orthogonal pictures. As a consequence undesired artefacts like for instance skewed vertical lines can be avoided. A preferred embodiment of the present invention comprises means for supplying a constant decimation factor M. By choosing a fixed decimation factor, the sample rate converter can be used as a picture format converter. Other preferred embodiments of the present invention comprise means for supplying a time varying decimation factor M. In a simple case the time variation varies the decimation factor M in a line by line mode. Thus digital pictures with various spatial effects (cinema effects) can be generated. Further preferred embodiments are obvious from the sub-claims. Preferred embodiments of the present invention are described in detail with reference to the drawings. Fig. 1 is an illustrative block diagram of a system for converting the sample rate by a factor of L/M. Fig. 2A is a table of the time relationship between the output y(m) and the input x(n) for the case M=3 and L=4. Fig. 2B is an explanatory table for clarifying the operation of the control unit and the address generator of Figure 3 with L=64 and M=80. Fig. 3 is a structure for realizing a sample rate converter for conversion by a rational fraction. Fig. 4 represents a general filter curve of a digital lowpass filter. Fig. 5 shows general filter curves drawn in one coordinate system. Fig. 6 is a filter curve of a digital lowpass filter according to the present invention. Fig. 7 are separated filter curves of a linear digital lowpass filter according to the present invention. Fig. 8 is a hardware solution for a digital lowpass filter according to the present invention. Fig. 9 is a block diagram of an improved sample rate converter concept. Fig. 10 is a diagram of examples for a time varying decimation factor M. Fig. 1 shows an illustrative block diagram for explaining the principle of sample rate conversion. It should be noted however, that the block diagram of Figure 1 is not suited for an efficient hardware solution. An incoming digital signal x having a sample rate F, is input into the interpolator 1. The interpolator 1 increases the sample rate by a factor L. This may be done by adding L-1 zeros between adjacent samples. The operation of adding zeros is called interpolation and L is called the interpolation factor. The interpolated digital signal, having a sample rate of F·L, is input into a lowpass filter 2. The lowpass filter 2 must fulfill the nyquist criterion in order to eliminate aliasing distortions. The interpolated and lowpass filtered signal is then input into the decimator 3. The sample rate is reduced from F·L to F·L/M by leaving out M-1 sample values and saving only every M-th sample value. The operation of using only every M-th sample value is called decimation and M is called the decimation factor. The output signal y has a sample rate of F·L/M. Equation 1.0 is a mathematical description of Fig. 1. ⊕ : = modulo operator └...┘ : = floor function The output sample y(m) can be expressed in terms of the input samples x(n) and the filter coefficients h(m). Equation 1.0 represents a linear, periodically time-varying system and connects the output of the sample rate converter directly to the input. For computing the output sample values y(m) it is therefore sufficient to have periodically repeating filters (polyphase filters). From the above follows, that a hardware may be developed, which loads the necessary filter coefficients from a filter bank and processes input values in order to compute an output value. For further discussion of equation 1.0 it is convenient to assume that the length N of the lowpass filter is a multiple of L, that is N=Q·L, wherein Q is an integer value. Then all coefficent sets h mM⊕L (n)=h(nL+mM⊕L),m=0..L-1, contain exactly Q coefficents. Furthermore h(nL+mM⊕L) is periodic in m with period L, that is h ( nL + mM ⊕ L )= h ( nL +( m + r•L ) M ⊕ L ), r =0,±1,±2,... Then, equation 1.0 can be expressed as Without loss of generality let Q be a constant (for example Q=4) and let L be a constant power of two for all further explanations. Then equation 2.0 is reduced to equation 2.1. Equation 2.1 shows that the computation of an output sample y(m) is obtained as a weighted sum of four sequential samples of x(n) starting at the x( └mM/L┘ ) sample and going backwards in n sequentially. The weighting coefficients are periodically time-varying so that mM⊕L coefficient set is used for the m-th output sample. Fig. 2A illustrates this timing relationship for the n=0 term in equation 2.1 for the case M=3 and L=4. The table shows the index value of y(m), └mM/L┘ and mM⊕L for m=0...10. The values in column 2 of Figure 2A are the values of x(3m/4) rounded off to the next integer value. Column 3 of Fig. 2A indicates the periodical variation in time of the filter coefficient number k. The above equation 2.1 for sample rate conversion may advantageously be realized in a structure as shown in Fig. 3. The embodiment of Fig. 3 comprises a Dual Port RAM 4, a FIR filter structure 5, a control unit 6 and an address generator 7. The Dual Port RAM receives the input sample values x(n) as well as address data. The address data adr = └mM/L┘, provided by the address generator 7 determine the order in which the input sample values x(n) are supplied to the FIR filter structure 5. The control unit 6 comprises extractor means 8 for extracting the 6 LSBs, rightshift means 9 for performing a 6 BIT rightshift, a register 10 for storing and time delaying the output of the extractor means 8 and adding means 11 for adding an input value of m to the time delayed output of the extractor means. The address generator 7 comprises adding means 12 for adding the rightshifted signal to the time-delayed address signal adr and a register 13 for storing and time-delaying the address signal adr. The FIR filter 5 comprises means 14, 15, 16, 17 for supplying filter coefficients h o (k), h 1 (k), h 2 (k), h 3 (k), means 18, 19, 20, 21 for multiplying the input sample values x(n) with the filter coefficients h o (k), h 1 (k), h 2 (k), h 3 (k) and adding means 22 for adding the multiplied input sample values. The structure of Fig. 3 works as follows. The adding means 11 of the control unit 6 is supplied with a preload value S. For S=0 the timing relationship between the output signal y(m) and the input signal x(n) is illustrated in Figure 2. With a preload value of S≠0 it is possible to start computation with a different filter coefficient number k. Since in the present example of Fig. 3, an interpolation value of L=64=2 6 is used, the extractor 8 extracts the six LSBs from the eight BIT output of the adding means 11. It is to be noted, that L=64=2 6 is only exemplary. The hardware of the present invention can be realized for any L=2 l with l =0, 1, 2, 3....By feeding back the output of the extractor 8 to the register 10, the k-number (k=mM⊕L) may be produced at the output of the extractor 8. The output of the adding means 11 is also rightshifted by six BIT. This corresponds to a division L=64=2 6 . The six BIT rightshifted signal is input into the adding means 12 of the address generator 7 and is added to the time-delayed output of the adding means 12. The output of the adding means 12 thus delivers the address signal adr = └mM/L┘. Figure 2B clarifies the above described correlation for the values of L=64 and M=80. The first column of Figure 2B denotes the index number m of the output signal y(m). The second column shows the output of the adding means 11 for increasing values of m. The third column lists the output values k=mM⊕Lof the six LSB extractor 8. The fourth column of Figure 2B indicates the six BIT rightshifted signal output by the rightshift means 9. The output adr of the adding means 12 is listed in the fifth column of Fig. 2B. The filter coefficient number k=mM⊕L is input into the FIR filter. By means of the address signal adr, the proper input samples x(n) are read out of the Dual Port RAM. Thus the input samples x(n) can be multiplied by the filter coefficients h(k) in accordance with equation 2.1. The output sample y(m) is obtained by adding the multiplication results. In order to reduce hardware complexity, it is desirable to have as few as possible multipliers in the FIR filter of Fig. 3. The order of the filter curve of the FIR filter corresponds directly to the number of multipliers needed for the FIR filter. Thus, preferably the filter hull curve of the FIR filter is a linear curve, which means that only one multiplier is needed. Since the FIR filter must have a lowpass characteristic, it is suggested to approximate a curve, preferably a (sin x)/x curve, by a piecewise continuous linear curve. Of course any other piecewise continuous linear curve, that exhibits lowpass characteristics may be used. Fig. 6 shows such a piecewise continuous linear curve that serves as a hull curve for the lowpass filter. T denotes the sampling period with T=1/F, F being the sampling frequency. In this example, each of the sample periods T comprises L=64 arrows indicating 64 discrete functions. According to theoretical principles, optimum results would be obtained by using a filter curve according to a function (sin x)/x, however, this function is infinite in time and non-linear. Therefore an approximation is made by a piecewise continuous linear function and a reduction in length x. Both approximations cause unavoidable errors. Therefore it is necessary to consider a) which parameters are variable, and b) how can these variable parameters be adapted in order to obtain a compromise between low hardware costs and a good filter performance. The above mentioned considerations are explained with reference to Fig. 4. The filter coefficients h(k) in Fig. 4 have a piecewise continuous linear hull curve, which approximates the (sin x)/x function in the range from -3<k<+3 (-3T<t<3T). The intersections of the linear hull curves within the segments ±I, ±II and ±III and the values of the linear hull curves at the borders of the segments ±I, ±II and ±III are variable. In other words the parameters, that define the linear hull curves for h 2- , h 1- , h 0- , h 0+ , h 1+ , and h 2+ need to be chosen appropriately in order to approximate the (sin x)/x curve. Furthermore additional corresponding segments ±IV, ±V... may be added to increase filter length. By dropping segments ±III in Fig. 4 and keeping only segments ±I and ±II, the filter length may be reduced. A reduction of the filter length to contain only segments ±I results in rather crude approximations and a low performance of the digital filter. The following formulas represent the respective linear hull curves of the function in Fig. 4. (The equations are made with the assumption, that the coordinate system is shifted such that the origin is located in the leftmost point of each segment). Using the above equations it is possible to determine the parameters B, c o , a, b o as well as the parameters c l , b l for l≥1, such that the desired filter performance is achieved. Since the present filter is a digital filter, the following is to be considered: N = Q·L with Q := integer value N := length of filter L := interpolation factor From this follows the above equation 2.0, wherein the h are the filter coefficients of the digital filter, being approximated by linear curve pieces. Each linear curve piece contains L sample values (correspondingly L coefficients) and there are Q linear curve pieces (e.g. Q=6 in Fig. 4, namely the linear hull curves for segments ±I, ±II, and ±III). For computation of the output value y(m) one coefficient is necessary from each linear curve piece. Therefore the filter can be imagined as a filter that is composed of L partial filters, wherein each partial filter comprises Q coefficients, which result from Q different segments. From theoretical considerations it is known, that a filter does only then not change the dynamic range of a signal and consequently does not change the energy of a signal, when the filter coefficients meet the requirement that the sum of the filter coefficients equals 1. The above requirements results in specific adaptions of the partial filters. This will be explained with reference to Fig. 5. All linear curve pieces are drawn in one coordinate system. Fig. 5 shows the linear curve pieces h o- , h o+ , h 1- and h 1+ . The linear curve pieces h 2+ and h 2- are not shown, but of course the linear curve pieces h 2+ and h 2- of the segments ±III could be included in Fig. 5. The vertical line marked by an "X" collects the four coefficients of a partial filter. From the above equations follow the constraints for optimization of the parameters: c o + b o + b 1 = 1 a + c 1 + a-b o 1-B ·B + b o + c 1 -b 1 1-B · B + b 1 = 1 For filter lengths including also segments ±III, the constraints need to be extended correspondingly. Theoretical considerations which were confirmed by tests suggest to select a value of a>0.5. Taking into account the above mentioned constraints and criteria for optimization, the values of the parameters have been selected as follows: a = 5/8 , B = 1/2 , c o = 1, b o = b 1 = 0 c 1 = 0,5 - a = -1/8 , Q = 4 In principle the hardware may be realized with only one multiplier for all linear curve pieces. It is to be noted, that the above parameters represent a preferred embodiment that requires only a low complexity hardware and even better filter performance may be obtained with a higher filter length (Q>4). In the present application, i.e. sample rate conversion in TV receivers, it turned out that a filter length of Q=4 yields a good benefit for the expenditure needed to implement the hardware. The equations of the four filter curves as shown in Fig. 7, can be stored and the filter coefficients can be calculated during the computation of the output value y(m). Since, as stated above, the hull curve of the filter is piecewise continuous and linear, the hardware may be realized with only one multiplier. Combining the information of Fig. 3 and Fig. 7, it is possible to derive the equations 3.0 to 3.2. y i = h 0 ( k ) • x i+1 + h 1 ( k ) • x 1 + h 2 ( k ) • x i -1 + h 3 (k)• x i -2 0≤ k ≤ L 2 y i = [(1-2 a )• x i +1 +2 a • x i +2( a -1)• x i -1 +(1-2 a )• x i -2 ]• k L + x i-1 L 2 ≤ k ≤ L y i = [(2 a -1)• x i +1 +2(1- a )• x i +(-2a)• x i -1 +(2 a -1)• x i -2 ]• k L + [(1-2 a )• x i +1 +(2 a -1)• x i +2 a • x i -1 +(1-2 a )• x i -2 ] Equation 3.0 describes a simple FIR filter structure with varying filter coefficients as is for instance shown in Fig. 3. The input values x(n) are first multiplied by the corresponding filter coefficients h(k) and then added to each other. Equation 3.0 is separated into equations 3.1 and 3.2 for values of k between 0 and L/2 and values of k between L/2 and L, respectively. Both equations, 3.1 and 3.2 have a first part, that is dependent of the filter coefficient number k of the required coefficient set and a second part that is independent of the filter coefficient number k. This allows using only one multiplier. In a preferred embodiment of the present invention, the interpolation factor L and the break point a are chosen to be L=64 and a=5/8. Equations 3.1 and 3.2 can then be transformed into equations 3.3 and 3.4. 0 ≤k ≤32 32 ≤ k ≤ 64 Fig. 8 exemplifies a low cost hardware solution for equations 3.3 and 3.4 with an interpolation factor of L=64 and the breakpoint in the filter curve of Fig. 6 at ± T/2 being at a=5/8. The digital lowpass filter comprises four registers 23, 24, 25 and 26 to which the input values x(i+1), x(i-2), x(i-1) and x(i) are supplied. Register 27 is supplied with the filter coefficient number k. The output of register 23 and the output of register 24 are connected to the inputs of adder 28. The output of register 25 is connected to the input of adder 29, to the input of subtracter 30 and to the input of the multiply-by-4 means 31. The output of register 26 is connected to the input of adder 29 and to the input of substracter 30. The output of adder 28 and the output of adder 29 are connected to the inputs of subtracter 32. The output of subtracter 30 is connected to the input of the multiply-by-4 means 33. Register 27 is connected to the input of register 34, to an input of the bitwise XOR means 35 and to adder 36. The output of subtracter 32 is connected to an input of the bitwise XOR means 35 and to the input of register 37. The output of register 37 is supplied to register 38. The output of the bitwise XOR means 35 and the output of the multiply-by-4 means 33 are connected to inputs of adder 36. The output of adder 36 is input into register 39, whose output is connected to an input of multiplier 40. The second input of multiplier 40 is connected to the output of register 34. The divide-by-64 means 41 receives the output of multiplier 40 and delivers its output to adder 42. The output of the multiply-by-4 means 31 is supplied to register 43, whose output is connected to an input of adder 42. The output of adder 42 is input into register 44, whose output is connected to an input of adder 45 and to the input of the divide-by-4 means 46. The output of adder 45 is supplied to the input of the divide-by-4 means 47. Both divide-by-4 means 47 and 46 are connected with their respective outputs to the inputs of the multiplexer 48. The MSB of register 34 are supplied to register 49, whose output is connected to an input of multiplexer 48. The output of multiplexer 48 is input into register 50, whose output then supplies the output signal y. The digital lowpass filter of Fig. 8 works as follows. The input values x(i+1), x(i-2), x(i-1), and x(i) as well as the filter coefficient number k are input into the lowpass filter. The input values x are added or subtracted to give the values of x(i+1)+x(i-2), x(i)+x(i-1) and x(i)-x(i-1). By subtracting the above sums in subtracter 32, the value of (x(i)+x(i-1)-(x(i+1)+x(i-2))) is calculated. The multiply-by-4 means 33 provides the calculation result of 4(x(i)-x(i-1)). The mathematical expression (x(i)+x(i-1)-(x(i+1)+x(i-2))) is needed with a positive sign for equation 3.3 and with a negative sign for equation 3.4. The bitwise XOR means 35 and adder 36 change the sign of the above expression in accordance with the MSB from register 27. In other words, the MSB determines which part of the filter curve is to be selected. The output of adder 36 then produces the result of 4(x(i)-x(i-1)) + (x(i)+x(i-1)-(x(i+1)+x(i-2))). Multiplier 40 multiplies the output value of register 39 and the filter coefficient number k which is output by register 34. The output of multiplier 40 is divided by 64 in the divide-by-64 means 41, the value of 4x(i-1), output by register 43, is added and the result is input into register 44. In order to get the result of equation 3.3, the output of register 44 is divided by 4 in the divide-by-4 means 46. In order to get the result of equation 3.4, the output of register 44 is added to the output of sustracter 32 via the registers 37 and 38, and is then divided by 4 in the divide-by-4 means 47. The multiplexer 48 receives the MSB of the filter coefficient number k from register 49. The MSB decides which part of the filter curve is to be selected. Consequently, the MSB decides which output, either the output of the divide-by-4 means 46 for the result of equation 3.3 or the output of the divide-by-4 means 47 for the result of equation 3.4 is to be selected. Fig. 8 shows that the selected parameters yield multiplications and divisions by 2 n , n being integer, which can advantageously be implemented by bit-shifting. The characteristics of the digital low-pass filter of the present invention is determined by the piecewise linear coefficients. As as result, lowpass characteristics of the digital filter having filter coefficients as shown in Fig. 6 may not be sufficient to fulfill the nyquist criterion. In order to fulfill the nyquist criterion, the incoming signal may simply be filtered by a lowpass filter. Fig. 9 shows an improved sample rate converter concept using a lowpass filter 51 for the input signals. The definite cut-off frequency of the lowpass filter must relate to the decimation value M in order to meet the nyquist criterion. In other words, the incoming signal has to be band limited according to the chosen rational fraction L/M. The above described digital-to-digital sample rate converter may be advantageously used to eliminate skew problems in TV pictures having picture lines with differing start phases. A digital picture having skewed lines is also called a non-orthogonal picture. When a non-orthogonal picture is displayed on the TV screen, undesirable artefacts like for instance skewed vertical lines will appear. The above described digital-to-digital sample rate converter may be modified in order to generate an orthogonal picture, which has matching start phases for all picture lines. A preferred embodiment of the present invention is able to generate an orthogonal picture, if the information of the differing start phases is available. Adder 11 of Figure 3 is supplied with a preload value S. Figure 2A illustrates the time relationship between y(m) and x(n) for a preload value of S=0. With a preload value S≠0, it is possible to start computation of an output value using a filter coefficient number k that is different from the filter coefficent number k used with a preload values S=0. A preload value S≠0 consequently means a phase shift for the digital output value y(m). In order to describe this behaviour in mathematical terms, equation 2.0 can be amended to yield equation 4.0. By selecting preload values S≠0, the start phases of lines are shifted to have start phases that produce an orthogonal picture where skew problems are eliminated. The adder 11 of the control unit 6 has the decimation value M as a second input. In case the output sample rate (L o /M o )·F is fixed and a decimation value M≠M 0 is chosen via the second input of adder 11 the digital-to-digital sample rate converter works as a picture format converter. The embodiments of the digital-to-digital sample rate converter described so far have an arbitrary fixed decimation value M, however, in a preferred embodiment, the decimation value M may be changeable. The decimation value M can be made time-varying. In that case, a digital picture with spatial effects, so called cinema effects, is generated. A simple method to vary the decimation value M for each line of a digital picture is shown in Fig. 10. Along the video line, the decimation value M of curve "a" in Fig. 10 increases from a minimum decimation value of Mmin to a maximum decimation value Mmax. The decimation value M remains constant for a part of the line length and then decreases to the value of Mmin. Curve "b" shows a decimation value M that decreases, remains constant and then increases along the video line. Of course any other method for a variation of M can be utilized to generate various spatial effects. Similar to varying the decimation value M, the interpolation value L may be varied. Further embodiments of the digital-to-digital sample rate converter may use a combination of any of the above features, such as for instance a sample rate converter that can shift the phase for the digital output value y(m) and, at the same time, varies the decimation value M.

Claims: A digital-to-digital sample rate converter for converting digital input signals (x(n)) having a first sample rate (F) into digital output signals (y(m)) having a second sample rate, the digital-to-digital sample rate converter comprising: a digital lowpass filter for interpolating sample values of said digital input signals (x(n)), said digita lowpass filter using a set of filter coefficients (h(k)) in order to approximate an impulse response of a (sin x) / x curve with x = Π · F · t wherein: F represents said first sample rate and t represents the time characterized in that said digital lowpass filter comprises just one multiplier (40) wherein said digital lowpass filter approximates the sin(x) / x curve by employing two straight lines attached in a continuous manner within each segment, each segment having x values in the range of Π · i < x < Π · ( i + 1) and index i having integer values, said just one multiplier (40) being employed to select a particular set of filter coefficients (h(k)) from the approximated sin(x) / x curve wherein those curve points which are common start/end points of both straight lines in each segment are selected in such a manner that no further multiplication is required for each output sample computation. Digital-to-digital sample rate converter according to claim 1, wherein the integer index i runs from i = -2 to i = 1, resulting in a filter length of four segments. Digital-to-digital sample rate converter according to claim 1 or 2, wherein the approximation curve is symmetrical in the range of -Π < x < Π and in the ranges of Π · i < x < Π · (i + 1) wth resped to the values of x = 0 and x = + Π (3/2 + i) for i = 0, 1, 2, 3.... Digital-to-digital sample rate converter according to at least one of claims 1 - 3, wherein the digital filter may be represented by a plurality of partial filters each being arranged so that at a corresponding sample value of each segment the sum of all filter coefficients (h(k)) of all partial filters equals 1. Digital-to-digital sample rate converter according to at least one of claims 1 to 4, wherein a common start/end point of the two straight lines in the segment 0 < x < Π has a value of a = 5/8 at x = Π/2 and the common point of the two straight lines in the segment Π < x < 2Π has a value of 0.5 minus 5/8 at x = 3Π/2. Digital-to-digital sample rate converter according to at least one of claims 1 to 5, wherein the approximation curve has a value of 1 at x = 0 and has values of zero at x = + Π · i for i = 1, 2, 3.... Digital-to-digital sample rate converter according to at least one of claims 1 to 6, further comprising: a control unit (6) for providing a filter coefficient number (k), and an address generator (7) for generating an address signal (adr), the address signal selecting digital input signals (x (n)) for processing by the digital lowpass filter. Digital-to-digital sample rate converter according to claim 7, further comprising a storage means (4) for storing the digital input signals (x (n)), the input signals being read out in accordance with the address signal (adr). Digital-to-digital sample rate converter according to claims 7 and 8, wherein said control unit (6) comprises: a register (10) for storing the filter coefficient number (k); a first adder (11) for supplying a preload value (S); an extractor means (8) for generating the filter coefficient number (k) by extracting LSBs from the output of said first adder (11) in accordance with an interpolation value (L); a rightshift means (9) for generating MSBs of the output of said first adder (11); said address generator (7) comprises: a second adder (12) for generating the address signal (adr) by adding the MSBs, generated by the rightshift means (9) and the address signal (adr) of a previous computation step; a register (13) for supplying the address signal (adr) of the previous computation step to the second adder (12); wherein said storage means (4) comprises a Dual Port RAM. Digital-to-digital sample rate converter according to at least one of claims 1 to 9, further comprising a lowpass filter (51) for lowpass filtering the digital input signal (x (n)) and supplying the lowpass filtered signal subsequently to sample rate conversion. Digital-to-digital sample rate converter according to at least one of claims 9 or 10, further comprising means for supplying a preload value (S) to the first adder (11) of the control unit (6) such that the filter coefficient number (k) is shifted to produce a phase shift for the digital output signal (y (m)). Digital-to-digital sample rate converter according to at least one of claims 1 to 11, further comprising means for supplying a constant decimation value (M). Digital-to-digital sample rate converter according to at least one of claims 1 to 12, further comprising means for supplying a time-varying decimation value (M). Digital-to-digital sample rate converter according to at least one of claims 1 to 13, further comprising means for supplying a decimation value (M) varying along a line of a digital picture. A method of digital-to-digital sample rate conversion for converting digital input signals (x (n)) having a first sample rate (F) into digital output signals (y (m)) having a second sample rate, the method comprising the steps of: interpolating sample values of said digital input signals (x(n)), using a set of filter coefficients (h(k)) in order to approximate an impulse response of a (sin x) /x curve with x= Π · F · t wherein: F represents said first sample rate and t represents the time characterized in that the sin(x) / x curve is being approximated by employing two straight lines attached in a continuous manner within each segment, each segment having x values in the range of Π ·i < x < Π· ( i + 1) and index i having integer values and said interpolation step performing just one multiplication for selecting a particular set of filter coefficients (h(k)) from the approximated sin(x) / x curve wherein those curve points which are common start/end points of both straight lines in each segment are selected in such a manner that no further multiplication is required for each output sample computation. A method of digital-to-digital sample rate conversion according to claim 15, wherein the integer index i runs from i = -2 to i = 1. A method of digital-to-digital sample rate conversion according to claim 15 or 16 wherein the approximation curve is symmetrical with respect to x = 0, wherein a common start/end point of the two straight lines in the segment 0 < x < Π has a value of a = 5/8 at x = Π/2 and the common point of the two straight lines in the segment Π < x < 2Π has a value of 0.5 minus 5/8 at x = 3Π/2. A method of digital-to-digital sample rate conversion according to at least one of claims 15 to 17 further comprising the steps of selecting sample values of the digital input signals (x (n)) having sampling positions not differing more than 2/F from the temporal position of the digital output signal (y (m)) to be calculated, and providing a filter coefficient number (k) selecting a filter coefficient set corresponding to the approximation curve. A method of digital-to-digital sample rate conversion according to at least one of claims 15 to 18 further comprising the step of lowpass filtering (51) the digital input signals (x (n)) in accordance with the nyquist criterion and supplying the lowpass filtered signal to sample rate conversion. A method of digital-to-digital sample rate conversion according to at least one of claims 15 to 19 further comprising the step of shifting (S) the filter coefficient number (k) such that the phase of the digital output signal (y (m)) is shifted. A method of digital-to-digital sample rate conversion according to at least one of claims 15 to 21 further comprising the step of varying a decimation factor (M) in time to produce digital pictures with spatial effects.

Inventors: HEISS DR RAINER, SCHU MARKUS, HEISS, DR. RAINER, SCHU, MARKUS
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1994
Main classification: H03H17
IPC codes: H03H17