Data compression apparatus
7 claims: 2 independent, 5 dependent
- 1An image data compression apparatus comprising:predicted amount generating means (11,12,13) for calculating the predicted code amount of one frame of the input image data;and means (17) for setting a target code amount;and quantization step-size generating means (15) for outputting a quantization step according to said predicted code amount and said target code amount;and transform means (3) for subjecting said input image data to a predetermined orthogonal transform;and quantizing means (4) for quantizing the output data from the transform means with a quantization step size outputted from the quantization step-size generating means;characterised in that said predicted amount generating means comprises processing means (11,12) for subjecting one frame of said input image data to a predetermined pixel filtering process and for outputting the resulting filtered data;and calculating means (13) for executing a predetermined calculation on said filtered data and outputting an activity value, said predetermined calculation including at least an addition carried out over all of the filtered data corresponding to one frame;and means for converting (14) said activity value into a corresponding predicted code amount;and wherein said quantization step-size generating means (15) is for deriving a difference between the predicted code amount and the target code amount, and for outputting a quantization step-size corresponding to the difference.
- 4An image data compression apparatus comprising:predicted amount generating means (11,12,13) for calculating the predicted code amount of one frame of the input image data;and means (17) for setting a target code amount;and transform means (3) for performing a predetermined orthogonal transform;and characterised in that said apparatus comprises limit-value generating means (16) for deriving a difference between the predicted code amount and the target code amount, and outputting a band limiting value corresponding to the difference;and prefiltering means (2) for limiting the frequency band of the input image data according to said band limiting value, and for outputting band limited image data to said transform means (3);and said predicted amount generating means comprises processing means (11,12) for subjecting one frame of said input image data to a predetermined pixel filtering process, and for outputting the resulting filtered data;and calculating means (13) for executing a predetermined calculation on said filtered data and outputting an activity value, said predetermined calculation including at least an addition carried out over all of the filtered data corresponding to one frame;and means for converting (14) said activity value into a corresponding predicted code amount.
Independent claims2
110 paragraphs in 8 sections, as filed
0001This invention relates to a data compression apparatus usable in various systems such as a system for recording a color still-picture signal into a recording medium.
Description of the Prior Art
0002In some systems for recording image data into a magnetic disk, the image data are compressed to enable efficient recording.
0003In a known image data compression apparatus, a frame represented by the image data is divided into a plurality of blocks each having N × N or N × M pixels, and the image data are subjected to orthogonal transform for each of the blocks. Then, the resultant image data (transform coefficients) are quantized with a predetermined quantization step size, and the quantized data are encoded into zero run length code or Huffman code. In this way, the image data are compressed. In such data compression, the amount of the image data, that is, the number of bits of the image data or the transmission bit rate of the image data, depends on the contents of the image represented by the image data.
0004There are two method of controlling the amount of image data at a constant amount or below a predetermined limit. According to a first method, original image data are quantized with an initial quantization step size and the amount of the resultant quantized image data is calculated, and the quantization step size is changed to a new quantization step size in response to the calculated image data and the original image data are again quantized with the new quantization step size to obtain final quantized image data. The first method requires quantization to be executed twice for same image data.
0005A second method uses the fact that coefficients of data outputted from an orthogonal transform device have a given relation with the amount of codes. In the second method, the sum of the squares of coefficients is calculated for each of blocks, and the blocks are sorted into classes according to the calculated sums. A larger number of bits are assigned to a block of the class corresponding to a large amount of codes, while a smaller number of bits are assigned to a block of the class corresponding to a small amount of codes. The second method requires the addition of information representing classes.
0006EP-A-0267579, on which the precharacterising portion of appended claims 1 and 4 are based, discloses an image coding system having a plurality of quantization characteristics which may be selected by a control circuit according to an histogram formed in response to a sequence of coefficients resulting from a sequence of digital image signals, to monitor an amount of information in every one of predetermined intervals. The amount of information is calculated by summing up the coefficients.
0007It is an object of this invention to provide an improved data compression apparatus.
0008A first aspect of this invention provides an image data compression apparatus comprising: <ul id="ul0001" list-style="none" compact="compact"><li>predicted amount generating means for calculating the predicted code amount of one frame of the input image data; and</li><li>means for setting a target code amount; and</li><li>quantization step-size generating means for outputting a quantization step according to said predicted code amount and said target code amount; and</li><li>transform means for subjecting said input image data to a predetermined orthogonal transform; and</li><li>quantizing means for quantizing the output data from the transform means with a quantization step size outputted from the quantization step-size generating means;</li></ul> characterised in that <ul id="ul0002" list-style="none" compact="compact"><li>said predicted amount generating means comprises</li><li>processing means for subjecting one frame of said input image data to a predetermined pixel filtering process and for outputting the resulting filtered data; and</li><li>calculating means for executing a predetermined calculation on said filtered data and outputting an activity value, said predetermined calculation including at least an addition carried out over all of the filtered data corresponding to one frame; and</li><li>means for converting said activity value into a corresponding predicted code amount;</li><li>and wherein said quantization step-size generating means is for deriving a difference between the predicted code amount and the target code amount, and for outputting a quantization step-size corresponding to the difference.</li></ul>
0009A second aspect of this invention provides an image data compression apparatus comprising: <ul id="ul0003" list-style="none" compact="compact"><li>predicted amount generating means for calculating the predicted code amount of one frame of the input image data; and</li><li>means for setting a target code amount; and</li><li>transform means for performing a predetermined orthogonal transform; and characterised in that said apparatus comprises</li><li>limit-value generating means for deriving a difference between the predicted code amount and the target code amount, and outputting a band limiting value corresponding to the difference; and</li><li>prefiltering means for limiting the frequency band of the input image data according to said band limiting value, and for outputting band limited image data to said transform means; and said predicted amount generating means comprises</li><li>processing means for subjecting one frame of said input image data to a predetermined pixel filtering process, and for outputting the resulting filtered data; and</li><li>calculating means for executing a predetermined calculation on said filtered data and outputting an activity value, said predetermined calculation including at least an addition carried out over all of the filtered data corresponding to one frame; and</li><li>means for converting said activity value into a corresponding predicted code amount.</li></ul>
BRIEF DESCRIPTION OF THE DRAWINGS
0010Fig. 1 is a block diagram of a data compression apparatus according to a first embodiment of this invention.
0011Fig. 2 is a block diagram of the code-amount predictive device of Fig. 1.
0012Fig. 3 is a diagram showing matrixes of filtering coefficients used in the code-amount predictive device of Fig. 2.
0013Fig. 4 is a diagram showing the relation between an addition result and a code amount in the code-amount predictive device of Fig. 2.
0014Fig. 5 is a diagram showing varying characteristics of the prefilter of Fig. 1.
0015Fig. 6 is a block diagram of a prefilter in a data compression apparatus according to a second embodiment of this invention.
0016Fig. 7 is a diagram showing a characteristic of the filter element in the prefilter of Fig. 6.
0017Fig. 8 is a block diagram of a data compression apparatus according to a third embodiment of this invention. Fig. 9 is a block diagram of the code-amount predictive device of Fig. 8.
0018Fig. 10 is a diagram showing successive frames in the data compression apparatus of Fig. 8.
0019Fig. 11 is a diagram showing target code amounts and actual code amounts in the data compression apparatus of Fig. 8.
0020Fig. 12 is a diagram showing target code amounts and actual code amounts in the data compression apparatus of Fig. 8.
0021Fig. 13 is a block diagram of a data compression apparatus according to a fifth embodiment of this invention.
0022Fig. 14 is a block diagram of the code-amount predictive device of Fig. 13.
0023Fig. 15 is a diagram showing matrixes of filtering coefficients used in the code-amount predictive device of Fig. 14.
0024Fig. 16 is a diagram showing matrixes of filtering coefficients used in the code-amount predictive device of Fig. 14.
0025Fig. 17 is a diagram showing the relation among a horizontal-direction band limiting value, a vertical-direction band limiting value, and a code-amount reduction rate in the data compression apparatus of Fig. 13.
0026Fig. 18 is a block diagram of a code-amount predictive device in a data compression apparatus according to a seventh embodiment of this invention.
0027Fig. 19 is a diagram showing characteristics of filtering processes executed in the code-amount predictive device of Fig. 18.
DESCRIPTION OF THE FIRST PREFERRED EMBODIMENT
0028With reference to Fig. 1, input image data are fed to a code-amount predictive device 1 and a prefilter 2 via a device 6 composed of a motion compensator and a difference-data generator (an error-data generator). The input image data may be directly fed to the code-amount predictive device 1 and the prefilter 2. The code-amount predictive device 1 predicts the amount of codes on the basis of the input image data, and determines a band limiting value and a quantization step size in response to the predicted code amount and outputs data of the determined band limiting value and the determined quantization step size to the prefilter 2 and a quantizer 4 respectively.
0029The device 6 subjects the input image data to a motion compensating process, and generates data representative of a difference (an error) between inter-frame predicted image data and reference image data. The difference data are outputted from the device 6 to the code-amount predictive device 1 and the prefilter 2 as image data.
0030The prefilter 2 limits the band of the image data in response to the band limiting value fed from the code-amount predictive device 1. Output image data from the prefilter 2 are fed to an orthogonal transform device 3 including a discrete cosine transform (DCT) circuit. The image data are subjected to DCT by the DCT circuit 3. Output image data (transform coefficients) from the DCT circuit 3 are fed to the quantizer 4. The quantizer 4 quantizes the image data with the quantization step size fed from the code-amount predictive device 1. Output image data from the quantizer 4 are fed to an encoder 5 and are converted by the encoder 5 into given-format code such as zero run length code, Huffman code, or both zero run length code and Huffman code. The output coded data from the encoder 5 are transmitted, or recorded into a recording medium (not shown) via a suitable device (not shown).
0031As shown in Fig. 2, the code-amount predictive device 1 includes a frame memory 11 into which the input image data are supplied directly or through the device 6 and temporarily stored. The image data are read out from the frame memory 11 and are then fed to an operator processor 12. The image data are subjected to a predetermined filtering process by the operator processor 12. Output image data from the operator processor 12 are fed to a calculator 13. The calculator 13 calculates the absolute values of the image data and sums the absolute values. Output image data from the calculator 13 are fed to a code-amount converter 14. The code-amount converter 14 converts the output image data of the calculator 13 into a predicted code amount which will be obtained at a standard quantization step size and a standard band limiting value. Data representing the predicted code amount are outputted from the code-amount converter 14 to a quantization step converter 15 and a band limiting value converter 16.
0032A data generator 17 outputs data representing a target code amount. The output data from the data generator 17 are fed to the quantization step converter 15 and the band liming value converter 16. The quantization step converter 15 compares the predicted code amount and the target code amount, and determines a quantization step size in response to the error between the predicted code amount and the target code amount. Data representing the determined quantization step size are outputted from the quantization step converter 15 to the quantizer 4. The band liming value converter 16 compares the predicted code amount and the target code amount, and determines a band liming value in response to the error between the predicted code amount and the target code amount. Data representing the determined band limiting value are outputted from the band limiting value converter 16 to the prefilter 2.
0033The code-amount predictive device 1 will be further described. The input image data corresponding to one frame are temporarily stored into the frame memory 11. The image data are read out from the frame memory 11 and are then fed to the operator processor 12. The image data are subjected to the predetermined filtering process by the operator processor 12.
0034Specifically, the predetermined filtering process executed by the operator processor 12 is selected from a high-pass filtering process, a low-pass filtering process, and a Laplacian filtering process. The high-pass filtering process, the low-pass filtering process, and the Laplacian filtering process are performed by using matrixes of 3 × 3 coefficients (coefficients arranged in 3 × 3) shown in the parts (a), (b), and (c) of Fig. 3 respectively. During the filtering process executed by the operator processor 12, 3 × 3 pixel data composing a 3 × 3 pixel region of one frame are read out from the frame memory 11 and are then multiplied by the 3 × 3 coefficients respectively, and the 3 × 3 data which result from the multiplication are summed. As a result, the filtering process is completed for the data composing the 3 × 3 pixel region. Then, the data reading region is shifted rightward by one pixel for example, and 3 × 3 pixel data composing the shifted region are read out from the frame memory 11 and are subjected to similar multiplication and summing calculation. As a result, the filtering process is completed for the data composing the subsequent 3 × 3 pixel region. Such processes are reiterated to complete the filtering processing of all the data corresponding to one frame. It should be noted that the data reading region may be shifted by two pixels, three pixels, or a number of more than three pixels. The operator processor 12 outputs one data representative of the result of summing calculation each time a filtering process for 3 × 3 pixel data is completed.
0035The calculator 13 receives the output data from the operator processor 12 which represent the results of summing calculation. The calculator 13 calculates the absolute values of the summing-calculation results, and adds the calculated absolute values corresponding to one frame. As shown in Fig. 4, the result of the addition of the absolute values is approximately proportional to the code amount. Specifically, with respect to a given result of the addition, the amount of codes of the image data lies in the hatched range of Fig. 4.
0036It should be noted that the calculator 13 may be modified as follows. A first modified calculator 13 calculates the squares of the summing-calculation results, and adds the calculated squares. A second modified calculator 13 calculates the squares of the summing-calculation results, and adds the calculated squares and calculates an average of the result of the addition.
0037The code-amount converter 14 receives the output data from the calculator 13 which represent the result of the addition executed by the calculator 13. The code-amount converter 14 includes a ROM storing data representative of a predicted code amount which varies as a function of an addition result. Specifically, the predicted code amount is equal to an average value of a code amount. The average value of the code amount is predetermined so as to correspond to the solid line in Fig. 4 which agrees with the center of the hatched range of Fig. 4. The code-amount converter 14 determines a predicted code amount in response to the addition result by referring to the data stored in the ROM. The output data from the code-amount converter 14 which represents the predicted code amount are fed to the quantization step converter 15 and the band limiting value converter 16.
0038The data generator 17 includes a ROM storing data representing a target code amount. The output data from the data generator 17 which represent the target code amount are fed to the the quantization step converter 15 and the band limiting value converter 16.
0039The quantization step converter 15 includes a comparator or a subtracter which compares the predicted code amount and the target code amount to calculate the error between the predicted code amount and the target code amount. The quantization step converter 15 also includes a ROM storing data representative of a desired quantization step size which varies as a function of an error between a predicted code amount and a target code amount. The desired quantization step size is chosen so that an actual code amount can be equal to the target code amount. The quantization step converter 15 determines the desired quantization step size in response to the error between the predicted code amount and the target code amount by referring to the data stored in the ROM. The output data from the quantization step converter 15 which represent the desired quantization step size are fed to the quantizer 4.
0040The band liming value converter 16 includes a comparator or a subtracter which compares the predicted code amount and the target code amount to calculate the error between the predicted code amount and the target code amount. The band liming converter 16 also includes a ROM storing data representative of a desired band limiting value which varies as a function of an error between a predicted code amount and a target code amount. The desired band limiting value is chosen so that an actual code amount can be equal to the target code amount. The band limiting value converter 16 determines the desired band limiting value in response to the error between the predicted code amount and the target code amount by referring to the data stored in the ROM. The output data from the band limiting value converter 16 which represent the desired band limiting value are fed to the prefilter 2.
0041The prefilter 2, the DCT circuit 3, the quantizer 4, and the encoder 5 will be further described. The prefilter 2 has a band limiting characteristic variable among 16 different types, some of which are shown in the parts (a)-(g) of Fig. 5. The 16 types are defined by band limiting factors (cut-off frequencies) of 15/16 ∼ 1/16 with respect to a reference value respectively. The band limiting characteristic of the prefilter 2 is selected from the 16 different types in response to the desired band limiting value fed from the band limiting value converter 16. The input image data are processed by the prefilter 2 with the selected band limiting characteristic. The band-limited output data from the prefilter 2 are fed to the DCT circuit 3.
0042The DCT circuit 3 separates one-frame output image data from the prefilter 2 into blocks. The image data are subjected by the DCT circuit 3 to DCT for each of the blocks. Output data from the DCT circuit 3 are fed to the quantizer 4. The quantizer 4 quantizes the image data with the quantization step size fed from the code-amount predictive device 1. Output image data from the quantizer 4 are fed to the encoder 5 and are converted by the encoder 5 into given-format code such as zero run length code, Huffman code, or both zero run length code and Huffman code. The output coded data from the encoder 5 are transmitted, or recorded into a recording medium (not shown) via a suitable device (not shown).
DESCRIPTION OF THE SECOND PREFERRED EMBODIMENT
0043Figs. 6 and 7 relate to a second embodiment of this invention which is similar to the embodiment of Figs. 1-5 except for design changes indicated hereinafter. In the second embodiment, as shown in Fig. 6, a prefilter 2 includes a filter element 21, multipliers 22 and 23, and an adder 24.
0044As shown in Fig. 7, the filter element 21 has a predetermined band limiting characteristic which is defined by a band limiting factor (a cut-off frequency) of 1/2 with respect to a reference value. Image data inputted into the prefilter 2 are subjected to a band limiting process by the filter element 21. Output image data from the filter element 21 are fed to the multipliers 22 and 23.
0045The multiplier 22 multiplies the image data and a coefficient. The coefficient in the multiplier 22 is varied in accordance with the level represented by the image data. Specifically, the coefficient in the multiplier 22 is equal to 0/16, 1/16, 2/16, <sup>...</sup>, 16/16 for levels of 0, 1, 2, <sup>...</sup>, 16 respectively.
0046The multiplier 23 multiplies the image data and a coefficient. The coefficient in the multiplier 23 is varied in accordance with the level represented by the image data. Specifically, the coefficient in the multiplier 23 is equal to 16/16, 15/16, 14/16, <sup>...</sup>, 0/16 for levels of 0, 1, 2, <sup>...</sup>, 16 respectively.
0047Output data from the multipliers 22 and 23 are fed to the adder 24 and are added by the adder 24. Specifically, the adder 24 includes a weighting section which weights the output data from the multipliers 22 and 23 with weighting factors prior to the execution of the addition. The weighting factors are controlled by a band limiting value fed from a code-amount predictive device 1. Then, the weighted output data from the multipliers 22 and 23 are added. In this way, the ratio between the output data from the multipliers 22 and 23 is varied in accordance with the band limiting value before the execution of the addition, so that the filtering characteristic of the prefilter 2 is changed in response to the band limiting value. Output data from the adder 24 are fed to a DCT circuit 3 as output data from the prefilter 2.
DESCRIPTION OF THE THIRD PREFERRED EMBODIMENT
0048In general, input image data are of two types to be exposed to intra-frame data processing and inter-frame data processing respectively.
0049With reference to Fig. 8, input image data of the inter-frame type are fed to a code-amount predictive device 101 and a prefilter 102 via a device 106 composed of a motion compensator and a difference-data generator (an error-data generator). Input image data of the intra-frame type are directly fed to the code-amount predictive device 101 and the prefilter 102. The code-amount predictive device 101 predicts the amount of codes on the basis of the input image data, determines a band limiting value and a quantization step size in response to the predicted code amount, and outputs data of the determined band limiting value and the determined quantization step size to the prefilter 102 and a quantizer 104 respectively.
0050The device 106 subjects the input image data to a motion compensating process, and generates data representative of a difference (an error) between inter-frame predicted image data and reference image data. The difference data are outputted from the device 106 to the code-amount predictive device 101 and the prefilter 102 as image data.
0051The prefilter 102 limits the band of the image data in response to the band limiting value fed from the code-amount predictive device 101. Output image data from the prefilter 102 are fed to an orthogonal transform device 103 including a discrete cosine transform (DCT) circuit. The image data are subjected to DCT by the DCT circuit 103. Output image data from the DCT circuit 103 are fed to the quantizer 104. The quantizer 104 quantizes the image data with the quantization step size fed from the code-amount predictive device 101. Output image data from the quantizer 104 are fed to an encoder 105 and are converted by the encoder 105 into given-format code such as zero run length code, Huffman code, or both zero run length code and Huffman code. The output coded data from the encoder 105 are transmitted, or recorded into a recording medium (not shown) via a suitable device (not shown).
0052A buffer memory 107 is connected to the code-amount predictive device 101 and the encoder 105. The buffer memory 107 stores output data from the code-amount predictive device 101 and the encoder 105. The buffer memory 107 feeds necessary data to the code-amount predictive device 101. The code-amount predictive device 101 and the buffer memory 107 are connected to a CPU 108. The code-amount predictive device 101 and the buffer memory 107 are controlled by the CPU 108.
0053As shown in Fig. 9, the code-amount predictive device 101 includes a frame memory 111 into which the input image data are temporarily stored. The image data are read out from the frame memory 111 and are then fed to an operator processor 112. The image data are subjected to a predetermined filtering process by the operator processor 112. Output image data from the operator processor 112 are fed to a calculator 113. The calculator 113 calculates the absolute values of the image data and sums the absolute values to obtain an activity value. Output image data from the calculator 113 which represent the activity value are fed to a code-amount converter 114. The code-amount converter 114 converts the activity value into a predicted code amount which will be obtained at a standard quantization step size and a standard band limiting value. Data representing the predicted code amount are outputted from the code-amount converter 114 to a quantization step converter 115 and a band limiting value converter 116.
0054A data generator 117 is controlled by the CPU 108 to output data representing a target code amount. The output data from the data generator 117 are fed to the quantization step converter 115 and the band liming value converter 116. The quantization step converter 115 compares the predicted code amount and the target code amount, and determines a quantization step size in response to the error between the predicted code amount and the target code amount. Data representing the determined quantization step size are outputted from the quantization step converter 115 to the quantizer 104. The band liming value converter 116 compares the predicted code amount and the target code amount, and determines a band liming value in response to the error between the predicted code amount and the target code amount. Data representing the determined band limiting value are outputted from the band limiting value converter 116 to the prefilter 102.
0055The code-amount predictive device 101 will be further described. The input image data corresponding to one frame are temporarily stored into the frame memory 111. The image data are read out from the frame memory 111 and are then fed to the operator processor 112. The image data are subjected to the predetermined filtering process by the operator processor 112.
0056Specifically, the predetermined filtering process executed by the operator processor 112 is selected from a high-pass filtering process, a low-pass filtering process, and a Laplacian filtering process. The high-pass filtering process, the low-pass filtering process, and the Laplacian filtering process are performed by using matrixes of 3 × 3 coefficients shown in the parts (a), (b), and (c) of Fig. 3 respectively. During the filtering process executed by the operator processor 112, 3 × 3 pixel data composing a 3 × 3 pixel region of one frame are read out from the frame memory 111 and are then multiplied by the 3 × 3 coefficients respectively, and the 3 × 3 data which result from the multiplication are summed. As a result, the filtering process is completed for the data composing the 3 × 3 pixel region. Then, the data reading region is shifted rightward by one pixel for example, and 3 × 3 pixel data composing the shifted region are read out from the frame memory 111 and are subjected to similar multiplication and summing calculation. As a result, the filtering process is completed for the data composing the subsequent 3 × 3 pixel region. Such processes are reiterated to complete the filtering processing of all the data corresponding to one frame. It should be noted that the data reading region may be shifted by two pixels, three pixels, or a number of more than three pixels. The operator processor 112 outputs one data representative of the result of summing calculation each time a filtering process for 3 × 3 pixel data is completed.
0057The calculator 113 receives the output data from the operator processor 112 which represent the results of summing calculation. The calculator 113 calculates the absolute values of the summing-calculation results, and adds the calculated absolute values corresponding to one frame. The result of the addition of the absolute values agrees with an activity value. As shown in Fig. 4, the result of the addition of the absolute values, that is, the activity value, is approximately proportional to the code amount. Specifically, with respect to a given result of the addition (a given activity value), the amount of codes of the image data lies in the hatched range of Fig. 4.
0058It should be noted that the calculator 113 may be modified as follows. A first modified calculator 113 calculates the squares of the summing-calculation results, and adds the calculated squares. A second modified calculator 113 calculates the squares of the summing-calculation results, and adds the calculated squares and calculates an average of the result of the addition.
0059The code-amount converter 114 receives the output data from the calculator 113 which represent the activity value or the result of the addition executed by the calculator 113. The code-amount converter 114 includes a ROM storing data representative of a predicted code amount which varies as a function of an addition result. Specifically, the predicted code amount is equal to an average value of a code amount. The average value of the code amount is predetermined so as to correspond to the solid line in Fig. 4 which agrees with the center of the hatched range of Fig. 4. The code-amount converter 114 determines a predicted code amount in response to the addition result (the activity value) by referring to the data stored in the ROM. The output data from the code-amount converter 114 which represents the predicted code amount are fed to the quantization step converter 115 and the band limiting value converter 116.
0060The code-amount converter 114 will be further described. The amounts of codes are previously calculated which are generated when image data representing various picture patterns are limited in band with a standard band limiting value (A=0) and are quantized with a standard quantization step size (F=50). The code-amount converter 114 stores such previously-calculated code amounts as data designed such that an activity value and a code amount correspond to each other in a one-to-one manner.
0061During the encoding of image data of the first frame or the first field for which any previous data are absent, the code-amount converter 114 executes the following calculation.<maths id="math0001" num=""><math display="block"><mrow><mtext>BID(50,0) = ACT × k</mtext></mrow></math><img file="EP0444918B1_D0001.tif" /></maths> where BID(50,0) denotes a predicted code amount with respect to the standard quantization step size (F=50) and the standard band limiting value (A=0), and ACT denotes an 5 activity value and "k" denotes a predetermined constant. In other words, the code-amount converter 114 calculates the predicted code amount BID(50,0) by multiplying the constant "k" and the activity value ACT outputted from the calculator 113.
0062During the encoding of image data of the second and later frames and fields, the code-amount converter 114 executes the following calculation.<maths id="math0002" num=""><math display="block"><mrow><msup><mrow><mtext>BID(50,0) = ACT ×(BID</mtext></mrow><mrow><mtext>-1</mtext></mrow></msup><msup><mrow><mtext>(F,A)/TGT) × (BID</mtext></mrow><mrow><mtext>-1</mtext></mrow></msup><msup><mrow><mtext>(50,0)/ACT</mtext></mrow><mrow><mtext>-1</mtext></mrow></msup><mtext>)</mtext></mrow></math><img file="EP0444918B1_D0002.tif" /></maths> where BID<sup>-1</sup>(50,0) denotes a preceding predicted code amount with respect to the standard quantization step size (F=50) and the standard band limiting value (A=0); BID<sup>-1</sup>(F,A) denotes a preceding actual code amount with respect to a preceding quantization step size (F) and a preceding band limiting value (A); ACT<sup>-1</sup> denotes a preceding activity value; and TGT denotes a target code amount. Data representing the preceding predicted code amount BID<sup>-1</sup>(50,0), data representing the preceding activity value ACT<sup>-1</sup>, and data representing the preceding actual code amount BID<sup>-1</sup>(F,A) are fed to the code-amount converter 114 from the buffer memory 107. For this purpose, when the predicted code amount BID(50,0) is calculated, the code-amount converter 114 stores data of the predicted code amount BID(50,0) and the current activity value ACT into the buffer memory 107 for later use in a next operation cycle as a preceding predicted code amount BID<sup>-1</sup>(50,0) and a preceding activity value ACT<sup>-1</sup>, respectively. Furthermore, the encoder 105 stores data of a current actual code amount BID(F,A) into the buffer memory 107 for later use in a next operation cycle as a preceding actual code amount BID<sup>-1</sup>(F,A). Data representing the target code amount TGT are fed to the code-amount converter 114 from the data generator 117.
0063In the previously-mentioned equation, the term "BID<sup>-1</sup>(F,A)/TGT" is a feedback part for decreasing an error between an actual code amount and the target code amount while the term "BID<sup>-1</sup>(50,0)/ACT<sup>-1</sup>" is a feedback part which is introduced on the basis of a close correlation between a preceding operation cycle and a current operation cycle and which includes the preceding inclination within the hatched range of Fig. 4.
0064The data generator 117 includes a ROM storing data representing a target code amount. The output data from the data generator 117 which represent the target code amount are fed to the the quantization step converter 115 and the band limiting value converter 116.
0065The quantization step converter 115 includes a comparator or a subtracter which compares the predicted code amount and the target code amount to calculate the error between the predicted code amount and the target code amount. The quantization step converter 115 also includes a ROM storing data representative of a desired quantization step size which varies as a function of an error between a predicted code amount and a target code amount. The desired quantization step size is chosen so that an actual code amount can be equal to the target code amount. The quantization step converter 115 determines the desired quantization step size in response to the error between the predicted code amount and the target code amount by referring to the data stored in the ROM. The output data from the quantization step converter 115 which represent the desired quantization step size are fed to the quantizer 104.
0066The band liming value converter 116 includes a comparator or a subtracter which compares the predicted code amount and the target code amount to calculate the error between the predicted code amount and the target code amount. The band liming converter 116 also includes a ROM storing data representative of a desired band limiting value which varies as a function of an error between a predicted code amount and a target code amount. The desired band limiting value is chosen so that an actual code amount can be equal to the target code amount. The band limiting value converter 116 determines the desired band limiting value in response to the error between the predicted code amount and the target code amount by referring to the data stored in the ROM. The output data from the band limiting value converter 116 which represent the desired band limiting value are fed to the prefilter 102.
0067The prefilter 102, the DCT circuit 103, the quantizer 104, and the encoder 105 will be further described. The prefilter 102 has a band limiting characteristic variable among 16 different types, some of which are shown in the parts (a)-(g) of Fig. 5. The 16 types are defined by band limiting factors (cut-off frequencies) of 15/16 ∼ 1/16 with respect to a reference value respectively. The band limiting characteristic of the prefilter 102 is selected from the 16 different types in response to the desired band limiting value fed from the band limiting value converter 116. The input image data are processed by the prefilter 102 with the selected band limiting characteristic. The band-limited output data from the prefilter 102 are fed to the DCT circuit 103.
0068The DCT circuit 103 separates one-frame output image data from the prefilter 102 into blocks. The image data are subjected by the DCT circuit 103 to DCT for each of the blocks. Output data from the DCT circuit 103 are fed to the quantizer 104. The quantizer 104 quantizes the image data with the quantization step size fed from the code-amount predictive device 101. Output image data from the quantizer 104 are fed to the encoder 105 and are converted by the encoder 105 into given-format code such as zero run length code, Huffman code, or both zero run length code and Huffman code. The output coded data from the encoder 105 are transmitted, or recorded into a recording medium (not shown) via a suitable device (not shown).
0069Frames represented by image data are of two types subjected to intra-frame data processing and inter-frame data processing respectively, and the frames of the two types will be referred to as intra-frames and inter-frames respectively. A switch or switches (not shown) are provided for selecting one of intra-frame processing and inter-frame processing with respect to the input image data. The CPU 108 controls the selection switches to selectively subjecting successive frames to intra-frame data processing and inter-frame data processing in a predetermined sequence. In other words, the CPU 108 makes successive frames into intra-frames and inter-frames in a predetermined sequence.
0070Fig. 10 shows an example of the frame arrangement realized by the operation of the CPU 108. As shown in Fig. 10, four successive frames are grouped into a segment. The first, second, and third frames of a segment are inter-frames while the fourth frame of a segment is an intra-frame.
0071As shown in Fig. 11, a segment has normal image information in the first frame to the fourth frame and also added information such as motion-vector information. A description will be given of an example where, as shown in the upper part of Fig. 11, a target total amount of codes in a current segment (a target total number of bits in a current segment) is 150 Kbits. It is now assumed that the amount of codes of added information such as motion-vector information in a preceding frame is 30 Kbits. The CPU 108 estimates the amount of codes of added information in the current frame as being equal to the amount of codes of added information in the preceding frame. Thus, the CPU 108 subtracts 30 Kbits from 150 Kbits and allot the remaining 120 Kbits to normal image data in the first frame to the fourth frame of the current segment.
0072The CPU 108 calculates the ratio among the activity values of the first frame to the fourth frame which are outputted from the calculator 113. When the ratio is "1:1:1:3" for example, the CPU 108 allots 20 Kbits, 20 Kbits, 20 Kbits, and 60 Kbits to the first frame, the second frame, the third frame, and the fourth frame as target code amounts respectively. Data representing these target code amounts are outputted from the CPU 108 to the data generator 117. As a result, the image data in each of the first frame to the third frame are encoded with a target code amount of 20 Kbits.
0073In general, the target code amount in the fourth frame is modified as follows. The CPU 108 monitors the actual code amount by referring to the output signal from the encoder 105 via the buffer memory 107. The CPU 108 accumulates the errors between the target code amounts and the actual code amounts in the first frame to the third frame, and corrects the target code amount in the fourth frame in response to the result of the accumulation of the errors. For example, when the actual code amounts in the first frame, the second frame, and the third frame are 25 Kbits, 20 Kbits, and 25 Kbits respectively as shown in the lower part of Fig. 11, that is, when the error between the target code amounts and the actual code amounts in the first frame, the second frame, and the third frame are 5 Kbits, 0 Kbits, and 5 Kbits respectively, the CPU 108 corrects the target code amount in the fourth frame into 50 Kbits.
0074As shown in Fig. 12, the target code amounts in the first frame to the fourth frame may be modified by a process of weighting the ratio among the activity values of the first frame to the fourth frame. When the ratio is "1:1:1:3" for example, the CPU 108 multiplies the target code amounts in the first frame, the second frame, the third frame, and the fourth frame by factors of 0.5, 0.5, 0.5, and 1.5 to modify the target code amounts respectively. The resulting modified target code amounts in the first frame, the second frame, the third frame, and the fourth frame are 10 Kbits, 10 Kbits, 10 Kbits, and 90 Kbits respectively.
DESCRIPTION OF THE FOURTH PREFERRED EMBODIMENT
0075A fourth embodiment of this invention is similar to the embodiment of Figs. 8-11 except that a prefilter 102 is designed in agreement with the prefilter 2 of the embodiment of Figs. 6 and 7.
DESCRIPTION OF THE FIFTH PREFERRED EMBODIMENT
0076In general, input image data are of two types to be exposed to intra-frame data processing and inter-frame data processing respectively.
0077With reference to Fig. 13, input image data of the inter-frame type are fed to a code-amount predictive device 201 and a horizontal-direction prefilter 202a via a device 206 composed of a motion compensator and a difference-data generator (an error-data generator). Input image data of the intra-frame type are directly fed to the code-amount predictive device 201 and the horizontal-direction prefilter 202a. The code-amount predictive device 201 predicts the amount of codes on the basis of the input image data, and determines a horizontal-direction band limiting value, a vertical-direction band limiting value, and a quantization step size in response to the predicted code amount and outputs data of the determined horizontal-direction band limiting value, the determined vertical-direction band limiting value, and the determined quantization step size to the horizontal-direction prefilter 202a, a vertical-direction prefilter 202b, and a quantizer 204 respectively.
0078The device 206 subjects the input image data to a motion compensating process, and generates data representative of a difference (an error) between inter-frame predicted image data and reference image data. The difference data are outputted from the device 106 to the code-amount predictive device 201 and the horizontal-direction prefilter 202a as image data.
0079The horizontal-direction prefilter 202a limits the horizontal-direction band of the image data in response to the horizontal-direction band limiting value fed from the code-amount predictive device 201. Output image data from the horizontal-direction prefilter 202a are fed to the vertical-direction prefilter 202b. The vertical-direction prefilter 202b limits the vertical-direction band of theimage data in response to the vertical-direction band limiting value fed from the code-amount predictive device 201. Output image data from the vertical-direction prefilter 202b are fed to an orthogonal transform device 203 including a discrete cosine transform (DCT) circuit. The image data are subjected to DCT by the DCT circuit 203. Output image data from the DCT circuit 203 are fed to the quantizer 204. The quantizer 204 quantizes the image data with the quantization step size fed from the code-amount predictive device 201. Output image data from the quantizer 204 are fed to an encoder 205 and are converted by the encoder 205 into given-format code such as zero run length code, Huffman code, or both zero run length code and Huffman code. The output coded data from the encoder 205 are transmitted, or recorded into a recording medium (not shown) via a suitable device (not shown).
0080A buffer memory 207 is connected to the code-amount predictive device 201 and the encoder 205. The buffer memory 207 stores output data from the code-amount predictive device 201 and the encoder 205. The buffer memory 207 feeds necessary data to the code-amount predictive device 201 to execute a feedback process. The code-amount predictive device 201 and the buffer memory 207 are connected to a CPU 208. The code-amount predictive device 201 and the buffer memory 207 are controlled by the CPU 208.
0081As shown in Fig. 14, the code-amount predictive device 201 includes a frame memory 211 into which the input image data are temporarily stored. The image data are read out from the frame memory 211 and are then fed to a horizontal-direction operator processor 212a and a vertical-direction operator processor 212b. The image data are subjected to a predetermined filtering process by the horizontal-direction operator processor 212a. At the same time, the image data are subjected to a predetermined filtering process by the vertical-direction operator processor 212b. Output image data from the horizontal-direction operator processor 212a are fed to a calculator 213a. The calculator 213a calculates the absolute values of the image data and sums the absolute values. Output image data from the calculator 213a are fed to an adder 214 and a calculator 218. Output image data from the vertical-direction operator processor 212b are fed to a calculator 213b. The calculator 213b calculates the absolute values of the image data and sums the absolute values. Output image data from the calculator 213b are fed to the adder 214 and the calculator 218.
0082The adder 214 adds the output image data from the calculators 213a and 213b. Output image data from the adder 214 are fed to a code-amount converter 215. The code-amount converter 215 converts the output image data of the adder 214 into a predicted code amount which will be obtained at a standard quantization step size and a standard band limiting value. Data representing the predicted code amount are outputted from the code-amount converter 215 to a quantization step converter 216 and a band limiting value converter 217.
0083The calculator 218 calculates the ratio between the output image data from the calculators 213a and 213b. Output image data from the calculator 218 which represent the calculated ratio are fed to the band limiting value converter 217.
0084A data generator 219 is controlled by the CPU 208 to output data representing a target code amount. The output data from the data generator 219 are fed to the quantization step converter 216 and the band limiting value converter 217. The quantization step converter 216 compares the predicted code amount and the target code amount, and determines a quantization step size in response to the error between the predicted code amount and the target code amount. Data representing the determined quantization step size are outputted from the quantization step converter 216 to the quantizer 204. The band liming value converter 217 compares the predicted code amount and the target code amount, and determines a horizontal-direction band liming value and a vertical-direction band limiting value in response to the error between the predicted code amount and the target code amount and the ratio data fed from the calculator 218, which will be described later in detail. Data representing the determined horizontal-direction band limiting value are outputted from the band limiting value converter 217 to the horizontal-direction prefilter 202a. Data representing the determined vertical-direction band limiting value are outputted from the band limiting value converter 217 to the vertical-direction prefilter 202b.
0085The code-amount predictive device 201 will be further described. The input image data corresponding to one frame are temporarily stored into the frame memory 211. The image data are read out from the frame memory 211 and are then fed to the horizontal-direction operator processor 212a and the vertical-direction operator processor 212b. The image data are subjected to the predetermined filtering process by the horizontal-direction operator processor 212a. At the same time, the image data are subjected to the predetermined filtering process by the vertical-direction operator processor 212b.
0086Specifically, the predetermined filtering process executed by the horizontal-direction operator processor 212a is selected from a low-pass filtering process and a high-pass filtering process. The low-pass filtering process and the high-pass filtering process are performed by using matrixes (vectors) of 1 × 3 coefficients shown in the parts (a) and (b) of Fig. 15 respectively. During the filtering process executed by the horizontal-direction operator processor 212a, 1 × 3 pixel data composing a 1 × 3 pixel region of one frame are read out from the frame memory 211 and are then multiplied by the 1 × 3 coefficients respectively, and the 1 × 3 data which result from the multiplication are summed. As a result, the filtering process is completed for the data composing the 1 × 3 pixel region. Then, the data reading region is shifted rightward by one pixel for example, and 1 × 3 pixel data composing the shifted region are read out from the frame memory 211 and are subjected to similar multiplication and summing calculation. As a result, the filtering process is completed for the data composing the subsequent 1 × 3 pixel region. Such processes are reiterated to complete the filtering processing of all the data corresponding to one frame. It should be noted that the data reading region may be shifted by two pixels, three pixels, or a number of more than three pixels. The horizontal-direction operator processor 212a outputs one data representative of the result of summing calculation each time a filtering process for 1 × 3 pixel data is completed.
0087The predetermined filtering process executed by the vertical-direction operator processor 212b is selected from a low-pass filtering process and a high-pass filtering process. The low-pass filtering process and the high-pass filtering process are performed by using matrixes (vectors) of 3 × 1 coefficients shown in the parts (a) and (b) of Fig. 16 respectively. During the filtering process executed by the vertical-direction operator processor 212b, 3 × 1 pixel data composing a 3 × 1 pixel region of one frame are read out from the frame memory 211 and are then multiplied by the 3 × 1 coefficients respectively, and the 3 × 1 data which result from the multiplication are summed. As a result, the filtering process is completed for the data composing the 3 × 1 pixel region. Then, the data reading region is shifted rightward by one pixel for example, and 3 × 1 pixel data composing the shifted region are read out from the frame memory 211 and are subjected to similar multiplication and summing calculation. As a result, the filtering process is completed for the data composing the subsequent 3 × 1 pixel region. Such processes are reiterated to complete the filtering processing of all the data corresponding to one frame. It should be noted that the data reading region may be shifted by two pixels, three pixels, or a number of more than three pixels. The vertical-direction operator processor 212b outputs one data representative of the result of summing calculation each time a filtering process for 3 × 1 pixel data is completed.
0088The calculator 213a receives the output data from the horizontal-direction operator processor 212a which represent the results of summing calculation. The calculator 213a calculates the absolute values of the summing-calculation results, and adds the calculated absolute values corresponding to one frame. The output data from the calculator 213a which represent the addition result are fed to the adder 214.
0089The calculator 213b receives the output data from the vertical-direction operator processor 212b which represent the results of summing calculation. The calculator 213b calculates the absolute values of the summing-calculation results, and adds the calculated absolute values corresponding to one frame. The output data from the calculator 213b which represent the addition result are fed to the adder 214.
0090It should be noted that the calculator 213a and 213b may be modified as follows. A first modified calculator 213a or 213b calculates the squares of the summing-calculation results, and adds the calculated squares. A second modified calculator 213a or 213b calculates the squares of the summing-calculation results, and adds the calculated squares and calculates an average of the result of the addition.
0091The output data from the calculators 213a and 213b are added by the adder 214. As shown in Fig. 4; the result of the addition executed by the adder 214 is approximately proportional to the code amount. Specifically, with respect to a given result of the addition, the amount of codes of the image data lies in the hatched range of Fig. 4.
0092The code-amount converter 215 receives the output data from the adder 214. The code-amount converter 215 includes a ROM storing data representative of a predicted code amount which varies as a function of an addition result. Specifically, the predicted code amount is equal to an average value of a code amount. The average value of the code amount is predetermined so as to correspond to the solid line in Fig. 4 which agrees with the center of the hatched range of Fig. 4. The code-amount converter 215 determines a predicted code amount in response to the addition result by referring to the data stored in the ROM. The output data from the code-amount converter 215 which represents the predicted code amount are fed to the quantization step converter 216 and the band limiting value converter 217.
0093The code-amount converter 215 will be further described. The amounts of codes are previously calculated which are generated when image data representing various picture patterns are limited in band with a standard horizontal-direction band limiting value and a standard vertical-direction band limiting value and are quantized with a standard quantization step size. The code-amount converter 215 stores such previously-calculated code amounts as data designed such that an addition result and a code amount correspond to each other in a one-to-one manner.
0094The data generator 219 includes a ROM storing data representing a target code amount. The output data from the data generator 219 which represent the target code amount are fed to the the quantization step converter 216 and the band limiting value converter 217.
0095The quantization step converter 216 includes a comparator or a subtracter which compares the predicted code amount and the target code amount to calculate the error between the predicted code amount and the target code amount. The quantization step converter 216 also includes a ROM storing data representative of a desired quantization step size which varies as a function of an error between a predicted code amount and a target code amount. The desired quantization step size is chosen so that an actual code amount can be equal to the target code amount. The quantization step converter 216 determines the desired quantization step size in response to the error between the predicted code amount and the target code amount by referring to the data stored in the ROM. The output data from the quantization step converter 216 which represent the desired quantization step size are fed to the quantizer 204.
0096The band liming value converter 217 includes a comparator or a subtracter which compares the predicted code amount and the target code amount to calculate the error between the predicted code amount and the target code amount. The band liming converter 217 also includes a ROM storing data representative of a desired horizontal-direction band limiting value and a desired vertical-direction band limiting value which vary as functions of an error between a predicted code amount and a target code amount. The desired horizontal-direction band limiting value and the desired vertical-direction band limiting value are chosen so that an actual code amount can be equal to the target code amount. The band limiting value converter 217 determines the desired horizontal-direction band limiting value and the desired vertical-direction band limiting value in response to the error between the predicted code amount and the target code amount by referring to the data stored in the ROM. The output data from the band limiting value converter 217 which represent the desired horizontal-direction band limiting value are fed to the horizontal-direction prefilter 202a. The output data from the band limiting value converter 217 which represent the desired vertical-direction band limiting value are fed to the vertical-direction prefilter 202b.
0097The horizontal-direction prefilter 202a, the vertical-direction prefilter 202b, the DCT circuit 203, the quantizer 204, and the encoder 205 will be further described. Each of the horizontal-direction prefilter 202a and the vertical-direction prefilter 202b has a band limiting characteristic variable among 16 different types, some of which are shown in the parts (a)-(g) of Fig. 5. The 16 types are defined by band limiting factors (cut-off frequencies) of 15/16 ∼ 1/16 with respect to a reference value respectively. The band limiting characteristic of the horizontal-direction prefilter 202a is selected from the 16 different types in response to the desired horizontal-direction band limiting value fed from the band limiting value converter 217. The band limiting characteristic of the vertical-direction prefilter 202b is selected from the 16 different types in response to the desired vertical-direction band limiting value fed from the band limiting value converter 217. The input image data are processed by the horizontal-direction prefilter 202a with the selected band limiting characteristic. The band-limited output data from the horizontal-direction prefilter 202a are fed to the vertical-direction prefilter 202b. The output data from the horizontal-direction prefilter 202a are processed by the vertical-direction prefilter 202b with the selected band limiting characteristic. The band-limited output data from the vertical-direction prefilter 202b are fed to the DCT circuit 203.
0098The relation between the horizontal-direction band limiting value and the vertical-direction band limiting value will be described. By use of a statistical method, the rate of a reduction in the code amount is previously calculated with every combination of varying horizontal-direction and vertical-direction band limiting values. Fig. 17 shows in part the previously-calculated rate of a reduction in the code amount with every combination of horizontal-direction and vertical-direction band limiting values. In Fig. 17, the previously-calculated rate is expressed in unit of percent For example, the 25% code-amount reduction can be realized by 17 different combinations of horizontal-direction and vertical-direction band limiting values. At first, the code-amount reduction rate is determined on the basis of the target code amount. Secondly, one of combinations of horizontal-direction and vertical-direction band limiting values which can realize the determined code-amount reduction rate is selected in response to the ratio data outputted from the calculator 218.
0099In preparation for the selection of one of combinations of horizontal-direction and vertical-direction band limiting values, the ratio in information amount between the horizontal direction and the vertical direction is estimated by using the ratio data fed from the calculator 218. By use of the result of this estimation, one of combinations of horizontal-direction and vertical-direction band limiting values is selected so that the band limiting value of the direction with a greater information amount will be set lower while the band limiting value of the direction with a smaller information amount will be set higher.
0100The characters HL and VL are now introduced to represent the horizontal-direction band limiting value and the vertical-direction band limiting value respectively. For example, the ratio between the horizontal-direction band limiting value HL and the vertical-direction band limiting value VL is determined according to the following relation.<maths id="math0003" num=""><math display="block"><mrow><mtext>HL:VL = V/(H+V):H/(H+V)</mtext></mrow></math><img file="EP0444918B1_D0003.tif" /></maths> where H denotes the horizontal-direction absolute-value addition result represented by the output data from the calculator 213a, and V denotes the vertical-direction absolute-value addition result represented by the output data from the calculator 213b. In the case where weighting is executed between the horizontal direction and the vertical direction, the ratio between the horizontal-direction band limiting value HL and the vertical-direction band limiting value VL is determined according to the following relation.<maths id="math0004" num=""><math display="block"><mrow><mtext>HL:VL = αV/(H+V):(1-α)H/(H+V)</mtext></mrow></math><img file="EP0444918B1_D0004.tif" /></maths> where "α" denotes a predetermined constant between 0 and 1.
0101The DCT circuit 203 separates one-frame output image data from the vertical-direction prefilter 202b into blocks. The image data are subjected by the DCT circuit 203 to DCT for each of the blocks. Output data from the DCT circuit 203 are fed to the quantizer 204. The quantizer 204 quantizes the image data with the quantization step size fed from the code-amount predictive device 201. Output image data from the quantizer 204 are fed to the encoder 205 and are converted by the encoder 205 into given-format code such as zero run length code, Huffman code, or both zero run length code and Huffman code. The output coded data from the encoder 205 are transmitted, or recorded into a recording medium (not shown) via a suitable device (not shown).
DESCRIPTION OF THE SIXTH PREFERRED EMBODIMENT
0102A sixth embodiment of this invention is similar to the embodiment of Figs. 13-17 except that both a horizontal-direction prefilter 202a and a vertical-direction prefilter 202b are designed in agreement with the prefilter 2 of the embodiment of Figs. 6 and 7.
DESCRIPTION OF THE SEVENTH PREFERRED EMBODIMENT
0103Fig. 18 shows a seventh embodiment of this invention which is similar to the embodiment of Figs. 13-17 except for an internal design of a code-amount predictive device.
0104In the embodiment of Fig. 18, a code-amount predictive device 201 includes a frame memory 211 into which the input image data are temporarily stored. The image data are read out from the frame memory 211 and are then fed to horizontal-direction operator processors 212a<sub>1</sub> and 212a<sub>2</sub> and vertical-direction operator processors 212b<sub>1</sub> and 212b<sub>2</sub>. The image data are subjected to predetermined filtering processes by these operator processors 212a<sub>1</sub>, 212a<sub>2</sub>, 212b<sub>1</sub>, and 212b<sub>2</sub>. The horizontal-direction operator processor 212a<sub>1</sub> serves as a horizontal-direction band pass filter whose characteristic is shown in Fig. 19. The horizontal-direction operator processor 212a<sub>2</sub> serves as a horizontal-direction high pass filter whose characteristic is shown in Fig. 19. The vertical-direction operator processor 212b<sub>1</sub> serves as a vertical-direction band pass filter whose characteristic is shown in Fig. 19. The vertical-direction operator processor 212b<sub>2</sub> serves as a vertical-direction high pass filter whose characteristic is shown in Fig. 19.
0105Output image data from the horizontal-direction operator processor 212a<sub>1</sub> are fed to a calculator 213a<sub>1</sub>. The calculator 213a<sub>1</sub> calculates the absolute values of the image data and sums the absolute values. Output image data from the calculator 213a<sub>1</sub> are fed to a calculator 231. Output image data from the horizontal-direction operator processor 212a<sub>2</sub> are fed to a calculator 213a<sub>2</sub>. The calculator 213a<sub>2</sub> calculates the absolute values of the image data and sums the absolute values. Output image data from the calculator 213a<sub>2</sub> are fed to the calculator 231. Output image data from the vertical-direction operator processor 212b<sub>1</sub> are fed to a calculator 213b<sub>1</sub>. The calculator 213b<sub>1</sub> calculates the absolute values of the image data and sums the absolute values. Output image data from the calculator 213b<sub>1</sub> are fed to a calculator 233. Output image data from the vertical-direction operator processor 212b<sub>2</sub> are fed to a calculator 213b<sub>2</sub>. The calculator 213b<sub>2</sub> calculates the absolute values of the image data and sums the absolute values. Output image data from the calculator 213b<sub>2</sub> are fed to the calculator 233.
0106The calculator 231 calculates a horizontal-direction activity value on the basis of the absolute-value addition results fed from the calculators 213a<sub>1</sub> and 213a<sub>2</sub>. The calculator 233 calculates a vertical-direction activity value on the basis of the absolute-value addition results fed from the calculators 213b<sub>1</sub> and 213b<sub>2</sub>. The horizontal-direction activity value or the vertical-direction activity value is determined in agreement with the absolute-value addition result M fed from the operator processor 212a<sub>1</sub> or 212b<sub>1</sub> which is corrected on the basis of the absolute-value addition result H fed from the operator processor 212a<sub>2</sub> or 212b<sub>2</sub> as follows. <maths id="math0005" num=""><math display="block"><mrow><mtext>M → M × 1.2 when H>Hr</mtext></mrow></math><img file="EP0444918B1_D0005.tif" /></maths><maths id="math0006" num=""><math display="block"><mrow><mtext>M → M when H ≦ Hr</mtext></mrow></math><img file="EP0444918B1_D0006.tif" /></maths>where Hr denotes a predetermined reference value. The horizontal-direction activity value is fed from the calculator 231 to an adder 214 and a calculator 232. The vertical-direction activity value is fed from the calculator 233 to the adder 214 and the calculator 232.
0107The horizontal-direction activity value and the vertical-direction activity value are added by the adder 214. Output data from the adder 214 are fed to a code-amount converter 215. The code-amount converter 215 converts the output data of the adder 214 into a predicted code amount which will be obtained at a standard quantization step size and a standard band limiting value. Data representing the predicted code amount are outputted from the code-amount converter 215 to a quantization step converter 216 and a band limiting value converter 217.
0108The calculator 232 calculates the ratio between the horizontal-direction activity value and the vertical-direction activity value. Output data from the calculator 232 which represent the calculated ratio are fed to the band limiting value converter 217.
0109A data generator 219 is controlled by a CPU 208 to output data representing a target code amount. The output data from the data generator 219 are fed to the quantization step converter 216 and the band limiting value converter 217. The quantization step converter 216 compares the predicted code amount and the target code amount, and determines a quantization step size in response to the error between the predicted code amount and the target code amount. Data representing the determined quantization step size are outputted from the quantization step converter 216 to a quantizer 204. The band liming value converter 217 compares the predicted code amount and the target code amount, and determines a horizontal-direction band liming value and a vertical-direction band limiting value in response to the error between the predicted code amount and the target code amount and the calculated ratio data fed from the calculator 232. Data representing the determined horizontal-direction band limiting value are outputted from the band limiting value converter 217 to a horizontal-direction prefilter 202a. Data representing the determined vertical-direction band limiting value are outputted from the band limiting value converter 217 to a vertical-direction prefilter 202b.
Contents8
19 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4 Sheet 5 Sheet 6 Sheet 7 Sheet 8 Sheet 9 Sheet 10 Sheet 11 Sheet 12 Sheet 13 Sheet 14 Sheet 15 Sheet 16 Sheet 17 Sheet 18 Sheet 19
Every citation, both ways
| Document | Relation | Office | Cited during |
|---|---|---|---|
| US4706260A | Cites | United States of America | Examiner |
| EP0267579A2 | Cites | European Patent Office (EPO) | Examiner |
| EP0396360A2 | Cites | European Patent Office (EPO) | Examiner |
| EP0060694A | Cites | European Patent Office (EPO) | – |
| EP0066697A | Cites | European Patent Office (EPO) | – |
| EP0138529A | Cites | European Patent Office (EPO) | – |
| EP0267579A | Cites | European Patent Office (EPO) | – |
| EP0396360A | Cites | European Patent Office (EPO) | – |
| US4359736A | Cites | United States of America | – |
| US4510578A | Cites | United States of America | – |
| US4706260A | Cites | United States of America | – |
| US4807042A | Cites | United States of America | – |
| Patent Abstracts of Japan, unexamined applications, E section, vol.10, no.244, 22.08.86, page 125 E 430 & JP-A-6174455 | Non-patent | – | Examiner |
| Patent Abstracts of Japan, unexamined applications, E section, vol.10, no.244, 22.08.86, page 125 E 430 & JP-A-6174455 | Non-patent | – | – |
13 members in 4 offices
Priority claims12
| Document | Office | Kind | Date |
|---|---|---|---|
| 5026990 | Japan | A | |
| 5026990 | Japan | – | |
| 7109690 | Japan | A | |
| 7109790 | Japan | A | |
| 7109690 | Japan | – | |
| 7109790 | Japan | – | |
| JP19900050269 | – | – | – |
| JP19900071096 | – | – | – |
| JP19900071097 | – | – | – |
| 5026990 | – | – | – |
| 7109690 | – | – | – |
| 7109790 | – | – | – |
Members13
| Document | Office | Kind | |
|---|---|---|---|
| EP0444918A2 | European Patent Office (EPO) | A2 | |
| JPH03252284A | Japan | A | |
| JPH03270378A | Japan | A | |
| JPH03270388A | Japan | A | |
| EP0444918A3 | European Patent Office (EPO) | A3 | |
| JPH07121120B2 | Japan | B2 | |
| EP0444918B1This record | European Patent Office (EPO) | B1 | |
| JP2516082B2 | Japan | B2 | |
| DE69119936D1 | Germany | D1 | |
| US5542008A | United States of America | A | |
| DE69119936T2 | Germany | T2 | |
| US5644658A | United States of America | A | |
| US5719962A | United States of America | A |
21 legal events, as 3 offices reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | Office | |
|---|---|---|---|
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Lapsed in a contracting state [announced via postgrant information from national office to epo]LapsedPG25 | PG25 | EP | |
| Patent expired after termination of 20 yearsExpiredPE20 | PE20 | GB | |
| Expiry of rightR071 | R071 | DE | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| Annual fee paid to national office [announced via postgrant information from national office to epo]GrantedPGFP | PGFP | EP | |
| European patent in force as of 2002-01-01IF02 | IF02 | GB | |
| No opposition filedOpposition26N | 26N | EP | |
| No opposition filed within time limitOppositionORIGINAL CODE: 0009261PLBE | PLBE | EP | |
| Information on the status of an ep patent application or granted ep patentGrantedSTATUS: NO OPPOSITION FILED WITHIN TIME LIMITSTAA | STAA | EP | |
| Corresponds to:REF | REF | EP | |
| Fr: translation filedET | ET | EP | |
| Designated contracting statesAK | AK | EP | |
| (expected) grantORIGINAL CODE: 0009210GRAA | GRAA | EP | |
| First examination report despatched17Q | 17Q | EP | |
| Request for examination filed17P | 17P | EP | |
| Designated contracting statesAK | AK | EP | |
| Search report despatchedORIGINAL CODE: 0009013PUAL | PUAL | EP | |
| Designated contracting statesAK | AK | EP | |
| Public reference made under article 153(3) epc to a published international application that has entered the european phaseORIGINAL CODE: 0009012PUAI | PUAI | EP |
Numbers
- Publication
- 0444918
- Publication, DOCDB
- 0444918
- Publication, EPODOC
- EP0444918
- Application
- 91301625
- Application, DOCDB
- 91301625
- Application, EPODOC
- EP19910301625
Titles3
- German
- Einrichtung zur Datenkompression
- English
- Data compression apparatus
- French
- Dispositif de compression de données
Classification
- CPC, 18
- H04N7/54
- H04N19/117
- H04N19/124
- H04N19/126
- H04N19/137
- H04N19/14
- H04N19/146
- H04N19/149
- H04N19/152
- H04N19/172
- H04N19/423
- H04N19/50
- H04N19/527
- H04N19/60
- H04N19/61
- H04N19/80
- H04N19/82
- H04N19/90
- IPC, 6
- H04N1 41
- H04N7 26
- H04N7 30
- H04N7 32
- H04N7 50
- H04N7 54
Designated states3
- Contracting states, 3
- Germany
- France
- United Kingdom
