Coding signal processor

Abstract: An efficient coding signal processor for encoding information signals input in a sequence of block units in a manner of unifying an amount of information at a unit of N frames (N ≧ 1), which includes a block activity calculator (7, 7c) for calculating a block activity for every block of the information signals in a present frame, a frame activity calculator (20) for calculating a frame activity from the block activity of the block in the preceding frames, a code amount allocator (11, 11c) for allocating an amount of codes for every block in the encoding process using the predicted frame activity, and a code amount allocation controller (24, 24c) for controlling the amount of codes to be allocated for every block up to a preselected bit rate by monitoring the amount of codes allocated by the code amount allocator for the period of one frame.

Description: The present invention relates to an efficient coding signal processor for encoding information signals such as digital image data at an efficient coding. A digital processing of images has greatly progressed in recent years. In particular, various systems of efficient coding for compressing image data have been proposed for standardizing. Such an efficient coding technology is used to encode image data with a reduced bit rate for improving an efficiency of digital transmission, recording, etc. In such an efficient coding system, the CCITT (Comite Consulatif International Telegraphique et Telephoonique, or International Committee for Telephone and Telegraph) has issued Recommendation H. 261 for Video coding Standard for Video-Conference and Video-Phone, JPEG (Joint Photographic Experts Group) system for encoding color still pictures and an MPEG (Moving Picture Experts Group) system for encoding moving pictures (see "Unification of Efficient Encoding Systems for Images" in "Nikkei Electronics," October 15, 1990, No. 511, pp. 124 - 129). All of these three proposals are systems principally based on a DCT (Discrete Cosine Transform) operation. Shown in FIGURE 1 is a block diagram of a conventional efficient coding signal processor using such a DCT operation. A luminance signal Y and two color difference signals Cr and Cb of digital image data are processed separately each other. The luminance signal Y transmitted in a field sequence to an input terminal 1 is stored into a field memory 2. On the other hand, the color difference signals Cr and Cb input acrosss two input terminals 1r and 1b are stored into a field memory 2c after multiplexed by a multiplexer 13. As the color difference signals Cr and Cb after the multiplexer 13 are processed in the same manner as the luminance signal Y, only the processing of the luminance signal Y will be representatively described hereinafter. After converted into a frame construction at the field memory 2, the luminance signal Y is applied to a DCT circuit 3 in every block of 8 x 8 pixels, i.e, a square block of 8 pixels in the horizontal direction by 8 pixels in the vertical direction. The DCT circuit 3 generates DCT coefficients by an orthogonal transform its input signals according to an 8 x 8 two-dimensional DCT. These DCT coefficients are arranged in a sequence beginning from horizontal and vertical low frequency components to their high frequency components to yield a DC coefficient representing an average of all data and 63 pieces of AC coefficients. The DCT coefficients are read sequentially from the horizontal and vertical low frequency components by a zigzag scan and then supplied to a quantizer 5 through a frame memory 4. The quantizer 5 reduces an amount of data (amount of data or the number of bits) by dividing the DCT coefficients read through the zigzag scan by quantization coefficients read from a quantizing table 10. Thus, the redundancy of each block signal is reduced. Further, the quantized data are applied to a variable length encoder 6 to be encoded into, for instance, Huffman codes, based on a result calculated from a statistic amount of a quantized output. As a result, data having a high possibility of occurrence are allocated with a short length of bits, while data having a low possibility of occurrence are allocated with a long length of bits. Thus the amount of the transmission data is further reduced. By the way, when encoded to the Huffman codes, image data compressed into an amount for one sheet are made variable due to changes of image patterns. Therefore, a data management in a recording operation on a prescribed recording medium is extremely inconvenient as it is unable to determine an amount of original recordable data prior to their recording operation. For this reason, a code amount allocator 11 is provided for limiting the amount of the compressed data of every frame equal to or less than a prescribed desired amount of image data. In this case, to compress data without deteriorating the image quality, the quantization coefficient for each block is varied in response to the input digital image data. In other words, a coefficient "a" responsive to a definition of image (i.e., a fineness of image or a ratio of high frequency component to whole frequency components) is achieved, and then the quantization coefficient is varied by multiplying a coefficient read from the quantizing table 10 with the coefficient "a". By the way, the circuit blocks 12 and 12c which are depicted by the broken line construct each adaptive quantization and variable length encoding circuits. Now an allocation operation of bits for fixing bit rate will be described. In a block activity calculator 7, a block activity representing an image definition at a block unit is calculated from a sum of the absolute values of the 63 AC coefficients contained in each block and applied to a frame activity calculator 8 and also, to the code amount allocator 11 via a frame delay circuit 9. Similar to such a block activity of the luminance signal Y, a block activity of the color difference signals Cr and Cb are also input to the frame activity calculator 8. The frame activity calculator 8 accumulates block activities YBact and CBact of every block for one frame period, calculates frame activities YFact and CFact and obtains a ratio of the amounts of codes of the luminance signal Y and the chrominance signal C to be allocated based on these two frame activities YFact and CFact. That is, such a frame activity represents an image definition at a frame unit. Then, respective amounts of codes (i.e., an amount of data and an amount of bits) YFbit and CFbit which are able to be used for the luminance signal Y and the chrominance signal C in one frame (hereinafter refered to as allocation amount of codes) are determined. Furthermore, an average activity Aact for every block is calculated by adding the allocation amounts of codes YFbit and CFbit together and the average activity Aact is converted into the coefficient "a". This coefficient "a" is applied to the quantizing table 10 so that the quantization coefficient is changed. The block activity YBact from the block activity calculator 7 is delayed for a timing adjustment in the frame delay circuit 9 for a time corresponding to the frame activity YFact calculation and the bit allocation calculation and input to the code amount allocator 11. The allocation amounts of codes YFbit and the frame activity YFact are also input to the code amount allocator 11 so that the code amount allocator 11 calculates an allocation amount of codes YBbit which is able to be used for every block in accordance with the following equation (1) based on the block activity YBact, the allocation amount of codes YFbit and the frame activity YFact. YBbit = YFbit x YBact/YFact As accumulation sums of the code allocation amount YBbit and the frame activity YBact in every frame are equal to the code allocation amount YFbit and the frame activity YFact, respectively, it becomes possible to be suppressed to a predetermined amount of codes for every frame unit in this system. When the quantized output from the quantizer 5 is applied to the variable length encoder 6 and then encoded into a variable length code, the allocation amount of codes is assumed to be n2 bits. If an actual amount of codes is equal to n1 bit, in case of n1 < n2, i.e., the amount of quantized output bits n1 being smaller than the n2 bits, only a data amount less than the n2 bits are output as a variable length encoding data. Further, when n1 > n2, quantized outputs are all output as variable length encoding data. In this way, the variable length encoder 6 includes a bit limitation processing circuit (not shown) in order to perform the bit allocation operation. As described above, in the conventional efficient coding signal processor, as shown in FIGURE 1, the block activity YBact and the frame activity YFact are calculated by using the present frame and its block. Also, the amount of codes which is able to be used in every block is determined by multiplying the amount of codes which is able to be used in every frame by the ratio of the block activity and the frame activity from the present frame and its block (Bact/Fact). However, as a period of one frame is required for calculating the frame activity Fact, the frame memory 4 is required to give an output from the DCT circuit 3 to the quantizer 5 after delaying the output for the period of one frame. In addition, there was also such a problem in that the frame delay circuit 9 for delaying the block activity for the one frame period was required in order to perform the allocation operation in the code amount allocator 11. As described above, as the frame activity Fact was required for calculating the amount of codes to be allocated for fixing the bit rate, the conventional efficient coding signal processor had a problem in that two delay circuits are required, that is, a frame memory for delaying DCT coefficient by one frame for a period to determine this frame activity Fact and another frame memory for delaying the block activity by one frame period until the allocation operation starts. The IEE Transactions on Consumer Electronics article "An Experimental Digital VCR with new DCT-based Bit-rate Reduction System" by Yoneda et al., vol. 37, No. 3, Aug. 91, pp. 275-282, discloses a video image signal coding device, in which the amounts of data to be allocated to individual blocks of picture data are determined on the basis of the ratios of the activities of the individual blocks to a sum of the block-by-block activities. EP-A-0444918 discloses an image data processor, in which a quantization step size is controlled on a frame-by-frame basis with reference to the difference between a predicted amount of codes (calculated on the basis of a standard quantization step size) and a target amount of codes. According to the present invention, there is provided an image coding signal processor for encoding image data input in a sequence of blocks and frames, comprising: block activity calculation means for calculating a block activity level associated with a block; frame activity calculation means for determining a frame activity level to be assigned to the frame of which said block forms a part; and code amount allocation means for allocating to said block an amount of code data determined by the total amount of code data available for the frame, and by the ratio of the block activity level and the frame activity level; characterised in that the determined frame activity level, to be assigned to a frame when determining the amount of code data to be allocated to a block, is derived from the block activity levels associated with the blocks over the preceding frame. For a better understanding of the present invention and many of the attendant advantages thereof, reference will now be made by way of example to the accompanying drawings, wherein: FIGURE 1 is a block diagram showing a conventional efficient coding signal processor; FIGURE 2 is a block diagram showing a first embodiment of the efficient coding signal processor according to the present invention; FIGURE 3 is a flowchart for explaining the adaptive special method; FIGURE 4 is an explanatory diagram for explaining the control of fixing bit rate by the code amount allocation controller 24 of FIGURE 2; FIGURE 5 is a flowchart for explaining the control of fixing bit rate by the code amount allocation controller 24 of FIGURE 2; FIGURE 6 is a flowchart for explaining an alternative code amount allocation control circuit of the efficient coding signal processor according to the present invention; FIGURE 7 is an explanatory diagram for explaining the operation of the alternative code amount allocation control circuit as shown in FIGURE 6; and FIGURE 8 is a block diagram showing a second embodiment of the efficient coding signal processor according to the present invention. The present invention will be described in detail with reference to the FIGURES 2 through 8. Throughout the drawings, reference numerals or letters used in FIGURE 1 will be used to designate like or equivalent elements for simplicity of explanation. Referring now to FIGURES 2 through 7, a first embodiment of the efficient coding signal processor according to the present invention will be described in detail. The first embodiment of the efficient coding signal processor is constructed to use such a frame activity calculated from a present frame and a block activity calculated from a block in a preceding frame, instead a block of the present frame, as described in detail below. In FIGURE 2, a luminance signal at a block unit of 8 x 8 pixels is input to a DCT circuit 3, while a multiplex signal of two color difference signals Cr and Cb is input to another DCT circuit 3c. The DCT circuit 3 outputs the DCT coefficient of the luminance signal Y to a delay circuit 21 and a block activity calculator 7 through an orthogonal transform. The delay circuit 21 delays the DCT coefficient of the luminance signal Y for the period of several blocks required for calculating an amount of codes to be allocated as described later, and by the zigzag scan so that higher frequency components are sent out in order from DC components in the horizontal and vertical directions to a quantizer 5. The quantizer 5 outputs the DCT coefficient with a reduced bit rate by quantizing them based on the quantization coefficient from a quantizing table 10. On the other hand, the block activity calculator 7 calculates a block activity YBact representing an amount of information (i.e., an information of definition) of each block of the present frame for every block into which the block activity YBact is to be input. The block activity YBact is output to a frame activity calculator 20 and a code amount allocator 11. The frame activity calculator 20 is also supplied with a block activity CBact from the color difference signals system. Thus the frame activity calculator 20 calculates present frame activities YFact and CFact of the luminance signal Y and the chrominance signal C by accumulating the block activities YBact and CBact for a period of one frame, and outputs them to a prediction circuit 22 at the time of the frame ends. The prediction circuit 22 may comprise a circuit operable of logical and numerical operations, process such as a microcomputer or a DSP (Digital Signal Processor). The prediction circuit 22 predicts a frame activity of the next frame. In this case, the prediction circuit 22 performs the prediction separately for the luminance signal Y and the chrominance signal C. Following items are selectively available for the prediction in the prediction circuit 22. a. Maximum activity in the present recording mode; b. Maximum activity in the last m frames; c. Activity in the last one frame; d. Activity predicted by an approximation for the last n frames; and e. Other available Activities. In these five items, the item (c) causes the prediction to be most simple. The item (a) is used in the operation after entering in the present recording mode. This item (a) is effective to the prediction when images excluded scene changes (i.e., images with small activity change) is taken by a camera. The item (d) can be exemplified by the first order approximation as shown in the following equation (2). Fact0 = Fact-1 + (Fact-1 - Fact-2) Further, as a method of selectively using the above items, various systems as follows can be considered: (1) A way of fixing any item one of the items in advance (Fixing System); (2) A way of adaptively selecting a most optimum one of the items as well as frame activities determined from every frame (Adaptive System); and (3) A way of using a special routine for selecting the maximum one of the items, if a predicted frame activity is smaller than an actual activity (a case in which the code amount allocation control circuit described later is operable) (Adaptive Special System). In the system (2), the prediction method may change for every frame. Shown in FIGURE 3 is a flowchart for explaining the adaptive special system (3). At present, the prediction operation for the (K+1)th frame, i.e., the next frame, is initiated at the Kth frame. First, at Step S1 in FIGURE 3, the frame activity of the preceding frame ((K-1)th frame) is taken and output as the predicted activity A0. At Step S2, the maximum frame activity in the present recording mode is updated. That is, if the frame activity in Step S1 is the maximum activity in the present recording mode, the predicted activity A1 is stored by updating the predicted activity A0. In Step S3, the maximum one of the past m frame activities is updated and stored as the predicted activity A2. Then, in Step S4, the predicted activity A3 is predicted by performing an approximate calculation based on the activities of past n frames. On the other hand, the block activity Bact of the present Kth frame is determined based on this block activity Bact in Step S6. In Step S7, the maximum predicted activity among the predicted activities A0 through A3 (frame activities for the Kth frame predicted based on the (K-1) frame activity) and the present frame (the Kth frame) activity Fact is calculated. In Step S8, it is judged whether the code amount allocation controllers 24 and 24c were operated during the Kth frame. That is, if the maximum predicted activity predicted in Step S7 is larger than the actual frame activity Fact, the process moves from Step S8 to Step S10. If the maximum predicted activity is smaller than the actual frame activity Fact, the process moves from Step S8 to Step S9 and the maximum value among the predicted activities A0 through A3 and actual frame activity Fact. In Step S10, the frame activity of the next frame is predicted based on the instructions of the prediction method. Thus, the next frame activities VFact' and CFact' are determined. The frame activity YFact' of the predicted next frame, i.e., (K+1)th frame is applied to a quantization coefficient calculator 23, the code amount allocator 11 and another code amount allocator 11c. The quantization coefficient calculator 23 is to calculate the coefficient a that was performed by a frame activity calculator 8 shown in FIGURE 1, and calculating Coefficient a from the next frame activity YFact', outputs it to the quantizing table 10. Further, the calculations of the amounts of codes to be allocated as to the luminance signal Y and the chrominance signal C that were performed by the frame activity calculator 8 shown in FIGURE 1 is now performed by the prediction circuit 22. That is, the prediction circuit 22 predicts YBbit' and CFbit' that are the allocation bit amounts of the luminance signal Y and the color difference signal C which are able to be used in the next one frame. These next frame activity YFact' and next frame allocation bit amount YBbit' are given to the code amount allocator 11. Upon receipt of Coefficient a given from the quantization coefficient calculator 23, the quantizing table 10 changes stored data based on the coefficient a and outputs as a quantization coefficient to the quantizer 5 and another quantizer 5c. The present frame block activity YBact, predicted next frame activity YFact' and next frame allocation bit amount YFbit' are input to the code amount allocator 11, which predicts the allocation amount of codes YBbit's for every block through the calculation according to the following equation (3). YBbit' = YFbit' x YBact/YFact' Further, the same calculation is also carried out for the chrominance signal C. Here, if the following equation (4) is established, YFbit + CFbit = YFbit' + CFbit' = constant is established, and thus the amount of codes is suppressed below a predetermined amount of codes. EBbit' = YFact ≤ YFact However, if the following equation (5) is established, the numerator becomes larger than the denominator in the equation (3) and the amount of codes in a variable length encoder 6 may exceed a predetermined amount of codes. EBact = YFact > YFact So, in this embodiment the code amount allocator 11 is controlled by the code amount allocation controller 24. If the predicted frame activity is smaller than the present frame activity and used amount of codes may exceed a predetermined value, the code amount allocation controller 24 corrects the calculation of the amount of codes to be allocated according to the equation (3) to enable the encoding up to the final block without allowing the amount of codes to reach a predetermined value. The explanatory diagram of FIGURE 4 and the flowchart of FIGURE 5 are for explaining the control of fixing the bit rate according to the code amount allocation controller 24. For instance, one frame consists of 525 x 910 pixels as shown in FIGURE 4(a). Of these pixels, 480 x 768 effective pixels are divided into 8 x 8 blocks. In other words, 96 blocks in the horizontal direction and 60 blocks in the vertical direction. The position of each block in the horizontal direction is called to a block line. The code amount allocation controller 24 gives allocation amount of codes for every block by the code amount allocator 11 up to the kth block line directly to the variable length encoder 6. That is, in Step S11 in FIGURE 5, it is judged whether the kth block line has reached. For instance, if k is set at 58, the variable length encoding is carried out up to the 58th block line based on the amount of codes to be allocated by the code amount allocator 11. When the 58th block line has reached, in Step S12, cumulative used amount of codes Ybit1 (activity YFact1) up to the 58th block line is calculated. In Step S13, the effectively remaining amount of codes is calculated. That is, the operation Ybit - Ybit1 (or YFact - YFact1) is carried out. In Step S14, the difference between the preceding frame activity and the actual amount of codes is added to the remaining amount of codes. This addition is carried out only when the code amount allocation controller 24 failed to operate in the preceding frame. In Step S15, the result of this addition is uniformly allocated to each block. Then, in Step S16 the code amount allocator 11 is stopped to output and the variable length encoder 6 is controlled based on the result in Step S15. In other words, the amount of codes for each block of the 59th and 60th block lines is controlled by the code amount allocation controller 24 as shown in FIGURE 4(b). Thus, the remaining amount of codes is uniformly allocated to each of the remaining two blocks and the final amount of codes will become Ybit (YFact'). As the amount of codes is limited by the code amount allocator 11 and the code amount allocation controller 24, the variable length encoder 6 encodes the quantized output of the quantizer 5 into the Huffman codes and outputs to a packing circuit 25. In other words, the quantizer 5 outputs a sequence of data from the low band components to the high band components. This data sequence is converted to a data sequence consisting of a set of consecutive zeros (hereinafter referred to as a zero-run) of quantized output data, a code length of non-zero values (hereinafter referred to as non-zero coefficient) appearing after zeros and data command of non-zero coefficient. The variable length encoder 6 has a two-dimensional Huffman table and its address is designated by a combination of zero-run and non-zero coefficient code length of the quantized output. The Huffman table stores codes in a smaller amount of bits for addresses designated by data having statistically high probability of generation. The encoding into the Huffman code is carried out in this way, allocating shorter bits to data having high possibility of occurrence and longer bits to data having low possibility of occurrence, and the amount of data to be transmitted is thus further reduced. After the Huffman coding of the quantized output, the variable length encoder 6 outputs non-zero coefficient data code by adding to the Huffman code. On the other hand, the constructions of the DCT circuit 3c, a delay circuit 21c, the quantizer 5c, the code amount allocator 11c, the code amount allocation controller 24c and a variable length encoder 6c of the chrominance signal C system are the same as those of the DCT circuit 3, the delay circuit 21, the quantizer 5, the code amount allocator 11, the code amount allocation controller 24 and the variable length encoder 6 of the luminance signal Y system, respectively. The packing circuit 25 outputs a variable length encoded data of the luminance signal Y and the color difference signals by multiplexing. Now, the operation of the embodiment in the construction described above will be explained. Further, as the operation of the color difference signal system is the same as that of the luminance signal system, the operation of the luminance signal system only is explained. The DCT coefficient from the DCT circuit 3 is applied to the quantizer 5 after delayed by the delay circuit 21 for several blocks and the quantization based on the quantization coefficient from the quantizing table, it is applied to the variable length encoder 6. The DCT coefficient is also applied to the block activity calculator 7. This block activity calculator 7 calculates the present frame block activity that was already input and outputs it to the frame activity calculator 20. The frame activity calculator 20 is given with the block activities YBact and CBact from the block activity calculator 7 and another block activity calculator 7c, respectively, and calculating the frame activity YFact of the present frame, outputs it to the prediction circuit 22 when the frame ends. The prediction circuit 22 predicts the next frame activity YFact' according to any one of the various methods as described above. The predicted frame activity YFact' is applied to the quantization coefficient calculator 23 and the code amount allocator 11. The quantization coefficient calculator 23 calculates coefficient a from the predicted frame activity YFact' and gives it to the quantizing table 10. The quantizing table 10 prepares a quantization coefficient based on this coefficient a and gives it to the quantizer 5. On the other hand, the code amount allocator 11 is also given with the block activity YBact from the block activity calculator 7, and calculating the allocation amount of codes of luminance signal Y YFbit' through the operation according to the equation (3), outputs it to the variable length encoder 6. The variable length encoder 6 encodes quantized output based on the predicted allocation amount of codes YFbit' of the next frame and variable length encoding is enabled without delaying a DCT coefficient by one frame period. If the equation (4) is established, that is, if the predicted frame activity is larger than the actual frame activity, the variable length encoder 6 limits the amount of codes only by the allocation amount of codes YFbit' based on the operation of the above-mentioned equation (3) by the code amount allocator 11. In this case, a total amount of codes after encoding is kept within a predetermined amount of codes. Here, it is assumed that the predicted frame activity YFbit' is smaller than the actual frame activity. In this case, if the allocation amount of codes based on the operation by the code amount allocator 11 is used, a total amount of codes may exceed the effective amount of codes. So, the code amount allocation controller 24 limits the amount of codes to be allocated by the operation of the code amount allocator 11 up to the kth block line as shown in Step S11 in FIGURE 5. If the kth block line has reached, the effectively remaining amount of codes is calculated from a total cumulative used amount of codes up to the kth block line in Steps S12 and S13. Then, the code amount allocation controller 24 uniformly allocates this remaining amount of codes or an added value of the remaining amount of codes and excess bits amount of the preceding frame to the remaining blocks in Steps S14 and S15. Then, in Step S16 the code amount allocator 11 is stopped to operate and the allocation amount of codes determined in Step S15 is applied to the variable length encoder 6. Thus, it is possible to prevent a total amount of codes of the variable length encoder 6 from exceeding the effective amount of codes. As described above, in this embodiment the bit allocation is carried out using the present frame block activity and the predicted frame activity and the encoding without using a delay memory is possible. Further, the fixing operation of the bit rate is possible by the code amount allocation controllers 24 and 24c and the image quality of reproduced image will not be deteriorated. FIGURE 6 shows a flowchart for explaining another embodiment of the coded allocation amount control circuit of the efficient coding signal processor according to the present invention. The code amount allocation control circuit according to this embodiment performs the control of the fixing operation of the bit rate shown in the flowchart in FIGURE 6. First, in Step S21 shown in FIGURE 6 it is judged if the sth block line has reached. FIGURE 7 shows that the s is set at 55. The block activity after the 55th block line of the preceding frame is assumed to be Fact2 and the amount of codes to be Fbit2 as shown in FIGURE 7(a), and the block activity up to the 55th block amount to be Fbit as shown in FIGURE 7(b). When the sth (i.e., 55th) block line has reached, the frame activity of the present frame Fact and the frame activity of the preceding Fact2 are added up in Step S22 and this added value is compared with the predicted frame activity Fact'. If the added value is smaller than the predicted frame activity Fact', the process moves to the next block via Step S24. On the other hand, if the added value is larger than the predicted frame activity Fact', the process moves to Step S24 and the allocation amount of codes of each block determined by the code amount allocator 11 is reduced by a prescribed amount of bits. Then, in Step S25 the activity for the reduced amount of codes is calculated for use in calculation of the next block. The process then moves to the next block via Step S26. Using the preceding frame activity Fact after the sth block line and the frame activity up to the sth block line of the present frame, it is judged if the amount of codes is limited to below the amount of codes of the preceding frame for each block line after the 56th block line and if the allocation amount of codes YFbit (YFact') is exceeded, a total amount of codes is limited not to exceed the effective amount of codes by controlling the code amount allocation circuit to reduce allocation amount of codes of each block by a predetermined amount. Further, for the comparison in Step S22, an amount of excess bits of the preceding frame or the activity corresponding to the amount of excess bits may be used after corrected. FIGURE 8 is a block diagram showing another embodiment of the present invention. In FIGURE 8, the same components as those in FIGURE 2 are allocated with the same reference numerals and symbols and the their explanations will be omitted. This embodiment differs from first embodiment shown in FIGURE 2 by that it is constructed to use such a frame activity and a block activity both calculated from a preceding frame. Thus, the circuit construction has a difference from FIGURE 2 by that the frame activity calculator 8 is used in place of the frame activity calculator 20 for removing the prediction circuit 22, the quantization coefficient calculating circuit 23 and the code amount allocation controllers 24 and 24c, while new frame delay circuits 9 and 9c, as shown in FIGURE 1, are provided. In the embodiments constructed as described above, the code amount allocators 11 and 11c determine the amounts of codes to be allocated by using the block activities and the frame activities of the preceding frames. Thus, at least one frame memory necessitated in the conventional processors can be eliminated. Even in this case, as EBact (total sum of the preceding frame block activities) = Fact (frame activity of the preceding frame) is established, a total amount of codes can be reduced to a predetermined bit rate. Further, if the image has a relatively slow moving pattern, the image quality of the reproduced image is also assured sufficiently. In the present invention, the frame activity prediction means predicts a frame activity using prior frame activities determined by calculations for preceding frames. The code amount allocation means calculates an amount of codes to be allocated for every block from both the frame activity and the block activity. If the predicted frame activity is smaller than the actual activity, the amount of codes to be allocated by the code amount allocation means becomes larger than a predetermined value. In this case, therefore, the code amount allocation control circuit controls the amount of codes to be allocated so that the total amount of codes does not exceed a predetermined value while monitoring the amount of codes for the period of one frame. As described above, the present invention can provide an extremely preferable efficient coding signal processor.

Claims: A video image coding signal processor for encoding image data input in a sequence of blocks and frames, comprising: block activity calculation means (7, 7c) for calculating a block activity level associated with a block; frame activity calculation means (8; 20, 22) for determining a frame activity level to be assigned to the frame of which said block forms a part; and code amount allocation means (11, 11c) for allocating to said block an amount of code data determined by the total amount of code data available for the frame, and by the ratio of the block activity level and the frame activity level; characterised in that the determined frame activity level, to be assigned to a frame when determining the amount of code data to be allocated to a block, is derived from the block activity levels associated with the blocks over the preceding frame. A processor as claimed in claim 1, wherein said image data include a luminance signal and color difference signals. A processor as claimed in claim 1 or 2, wherein said block activity calculation means calculates the amount of information contained within each block. A processor as claimed in any preceding claim, wherein said frame activity calculation means includes a prediction circuit (22) for predicting the activity of a next frame and an information signal bit amount for use by the next frame. A processor as claimed in any preceding claim, further comprising a quantizer (5, 5c) for reducing the bit rate of the blocks of information before encoding. A processor as claimed in claims 5, wherein said quantizer reduces said bit rate on the basis of the calculated frame activity level said frame activity calculation means. A processor as claimed in any preceding claim, further comprising encoding means which convert said image data into Huffman codes. A processor as claimed in any preceding claim, wherein the determined frame activity level, assigned to a frame, is the sum of the block activity levels associated with the blocks before a predetermined point in the said frame and the block activity levels associated with the blocks after the predetermined point in the immediately preceding frame.

Inventors: SHIMODA KENJI, SHIMODA, KENJI, SHIMODA, KENJI, C/O INTELLECTUAL PROPERTY DIV.
Applicants: TOSHIBA KK, KABUSHIKI KAISHA TOSHIBA
Application year: 1992
Main classification: H04N7
IPC codes: G06T9, H03M7, H04N7, H04N11