Video signal coding system and method

Abstract: A video signal coding method in which individual frames of signals are selectively intra and inter coded and are then quantized for transforming to picture data, wherein the power of picture data in an inter coded format is calculated, and, when said power is smaller than a predetermined threshold value, said picture data in an inter coded format is quantized with a quantization step size which is reduced by a predetermined ratio from the quantization step size of a previous frame of picture data and wherein the power of picture data in an inter coded format is calculated and when said power is smaller than a predetermined threshold value, said picture date in an inter coded format is adaptively quantized with one of a plurality of quantization step sizes varying from fine to rough quantization levels and, when said power is larger than the predetermined threshold value, said picture data in an inter coded format is quantized with one of said quantization step size having a predetermined rough quantization level.

Description: This invention relates to a video signal coding system and method, and more particularly is suitably applied to a case in which video signals are transformed to high efficiency coded data and are then transmitted, for example. In the picture phone system and the video conference system, heretofore there has been proposed a video signal transmission system in which video signals which constitute moving pictures are high efficiency coded to provide intra coded frame data and inter coded frame data, and thereby the moving picture video signals are transmitted through transmission lines with relatively strict limits in transmission capacity (JP-A-631183). IEEE J. SAC vol. 5 No. 7 Aug. 1987, pp. 1090-1099 discloses motion predictive image coding including adaptively controlling a quantization step. More specifically, in a case where pictures PC1, PC2, PC3, ... which constitutes moving pictures at respective times t = t1, t2, t3, ... are transmitted as shown in FIG. 1, the transmission efficiency is enhanced by compressing the picture data to be transmitted, using a fact that video signals are large in autocorrelation according to the lapse of time. In the intra coding, pictures PC1, PC2, PC3, ... are compressed in such a manner that differences are determined by comparing pixel data with a predetermined reference value. Thus, picture data of each picture PC1, PC2, PC3, ... is transmitted at an amount of data compressed using the autocorrelation between pixel data in the same frame. In the inter coding, picture data PC12, PC23, ... which are differences between two successive pictures PC1 and PC2, PC2 and PC3, ..., respectively, are determined as shown in FIG. 1, and are transmitted together with the intra coded picture data of the original picture PC1 at the time t = t1. Thus, it is possible to send the pictures PC1, PC2, PC3, ... in the format of high efficiency coded digital data which is markedly small in amount as compared to data in a case where all the picture data is sent. The coding of such picture signals is achieved by a picture data generating system 1 having a configuration shown in FIG. 2. The picture data generating system 1 performs processing operations, such as every other field dropping and every other field line dropping, on input video signals VD in a preprocessing circuit 2. Subsequently, the luminance signals and chrominance signals thereof are transformed to transmission unit block (referred to as macro block) data S11 which is 16 pixels (horizontal) x 16 pixels (vertical) data, and are then fed to a picture data coding circuit 3. The picture data coding circuit 3 accepts predicted current frame data S12 constructed in a prediction coding circuit 4, and determines the difference between the predicted current frame data S12 and the macro block data S11 to produce inter coded data (this is referred to as inter coding mode) or the difference between the macro block data S11 and the reference data to generate intra coded data. This data is fed to a transform coding circuit 5 as differential data S13. The transform coding circuit 5 consists of a discrete cosine transform circuit and provides transform coded data S14, high efficiency coded by orthogonal transforming the differential data S13, to a quantizer 6, which sends quantized picture data S15. The quantized picture data S15 thus obtained from the quantizer 6 is high efficiency coded again in a retranstorm coding circuit 7 which includes a variable length coding circuit and is then fed as transmission picture data S16 to a transmission buffer memory 8. Moreover, the quantized picture data S15 undergoes inverse quantization and inverse transform coding operations in the prediction coding circuit 4, so that the quantized picture data S15 is decoded to differential data. Then, the predicted previous frame data is modified by the differential data, and thereby new predicted previous frame data is stored. Furthermore. the predicted previous frame data which is stored in the prediction coding circuit 4 is motion compensated by motion detection data, which has been constructed on the basis of the macro block data S11, to produce predicted current frame data for feeding to the picture data coding circuit 3. Thus, the difference between the macro block data S11 of a frame (current frame) which is to be transmitted and the predicted current frame data S12 is obtained as the differential data S13. When the motion pictures mentioned referring to FIG. 1 are sent with the construction of FIG. 2, the picture data of the picture PC1 is firstly provided as macro block data S11 at the time t1 in FIG. 1. In this event, the picture data coding circuit 3 is placed in the intra coding mode, and provides this data as intra coded differential data S13 to the transform coding circuit 5. In this manner, transmission picture data S16 is fed to the transmission buffer memory 8 through the quantizer 6 and the retransform coding circuit 7. On the other hand, the quantized picture data S15 obtained at the output of the quantizer 6 is prediction coded in the prediction coding circuit 4, and thereby predicted previous frame data which represents the transmission picture data S16 sent to the transmission buffer memory 8 is held in the previous frame memory. When macro block data S11 which represents the picture PC2 at the time t2 is fed to the picture data coding circuit 3, the predicted previous frame data is motion compensated to produce the predicted current frame data S12, which is provided to the picture data coding circuit 3. Thus, the picture data coding circuit 3 provides differential data S13 inter coded to the transform coding circuit 5 at the time t = t2. In this manner, the differential data which represents changes in picture between the frames is sent as transmission picture data S16 to the transmission buffer memory 8 while the quantized picture data S15 thereof is provided to the prediction coding circuit 4 to thereby construct and store predicted previous frame data in the prediction coding circuit 4. Only the differential data representing changes in picture between the frames is sequentially transmitted to the transmission buffer memory 8 by repeating similar operations during the inter coding operation of the picture data coding circuit 3. The transmission buffer memory 8 accumulates transmission picture data S16 which has been reached in this manner, and successively sends the accumulated transmission picture data S16 as transmission data D TRANS to a transmission line 9 at a data transmission rate which is determined according to the transmission capacity of the transmission line 9. Concurrently, the transmission buffer memory 8 detects the amount of residual data to feed back residual amount data S17, which changes according to the amount of the residual data, to the quantizer 6, and thereby the quantization step size is controlled according to the residual amount data S17 to regulate the amount of data generated as the transmission picture data S16, so that an appropriate amount of the residual data (not to produce overflow or underflow) is kept in the transmission buffer memory 8. When the amount of residual data in the transmission buffer memory 8 increases to a permissible upper limit, rough quantization is carried out in the quantizer 6 by enlarging the step size of the quantization step STPS (FIG. 3) of the quantizer 6 on the residual amount data S17, so that the amount of the transmission picture data S16 is reduced. On the contrary, when the amount of the residual data in the transmission buffer memory 8 decreases to a permissible lower limit, the residual amount data S17 controls the step size of the quantization step STPS of the quantizer 6 to a smaller value, and thus the amount of generation of data of the transmission picture data S16 is increased by executing fine quantization in the quantizer 6. More specifically, in the transmission system, an evaluation function is detected stepwise by a motion vector detection circuit with reference to a picture of a predetermined frame (hereinafter referred to as reference frame). Moreover, in the transmission system the picture of the reference frame is shifted by the motion vector to produce a comparison reference picture, and then detects differential data between that comparison reference picture and the picture to be transmitted. The differential data is transmitted together with the motion vector. In the receiving system, the reference frame picture previously transmitted is moved by the motion vector sent, and then the differential data sent is added to reconstruct the original picture. In the conventional picture data generating system 1, the transmission buffer memory 8 is, as described, provided as means for transmitting significant picture information while matched to a transmission condition in which the data transmission rate of the transmission data D TRANS is limited according to the transmission capacity of the transmission line 9, and thereby picture data is accumulated in the transmission buffer memory so that the picture data of the transmission capacity of the transmission line 9 may be sent without excess or deficiency. However, it is possible in practice that the transmission buffer memory 8 overflows when the amount of picture data generated in the picture data generating system 1 becomes extremely large. Moreover, in the picture data generating system 1 of such a construction, there is a problem in that the transmission buffer memory overflows due to an increase of the amount of generation of coded transmission data when moving pictures to be transmitted are rapidly moving picture or contents of thereof changes greatly, for example, as in a change of a scene. As one technique to solve the problem, there is studied a frame dropping technique in which subsequent frames are not coded when the amount of generation of transmission data is excessively increased. In a case where rapidly moving pictures are sent for a relatively long time, frame dropping operations are however repeated often since the amount of the generation of the transmission data continues to increase. Thus, there is a problem in that visual smoothness of movement of the reproduced moving pictures is lost, and hence this technique is not still sufficient for sending moving pictures. Furthermore, incidentally, in such a type of video signal transmission system in inter coding processing, one frame of a picture is divided to a plurality of regions (hereinafter referred to as macro blocks) and a motion vector is detected for each macro block. More specifically, within a predetermined motion vector detection range the picture of a reference frame is sequentially moved relatively to each macro block, and thereby a shift position (which provides the motion vector) where the differential data is the smallest in amount is detected. The picture of the reference frame is further moved to the detected shift position to detect picture data of a region which corresponds to the macro block, and thereby picture data of a comparison reference for detection of differential data is produced. By repeating this processing, the differential data is detected for each macro block, and is then sent after discrete cosine transformation, quantization, variable length coding. Thus, in such a type of video signal transmission system, there is a case where picture data is coded in such a way that boundaries between macro blocks become obtrusive when a motion vector is detected for each macro block. To make these boundaries unobtrusive, there has been considered a technique in which in detecting differential data a high frequency zone of picture data for comparison reference is suppressed by means of a filter circuit as disclosed in JP-A-60206318 for example. For making the boundaries unobtrusive by suppressing a high frequency zone of picture data for comparison reference, it is necessary to change the characteristic of the filter according to the position of picture data, and there is hence a problem in that kinds of filter circuits are practically needed for real time processing. Furthermore, a picture of the reference frame is necessary for an inter coding processing to decode the original picture data. For this reason, in this type of the video signal transmission system an immediately previous frame, for example, is selected as the reference frame, and picture data intra coded is sent in place of differential data inter coded for each predetermined frame. The intra coding is a processing to code picture data at a high efficiency using a correlation in the frame and is inferior in transmission efficiency of picture data to the inter coding processing but the original picture can be reconstructed by only the picture data sent. Accordingly, the original picture data can be reconstructed on the basis of the differential data transmitted if the immediately previous frame is intra coded, and if with that frame selected as the reference frame, picture data of the subsequent frame is inter coded. Moreover, on the basis of the picture data reconstructed in this manner picture data of the subsequent frame can be also reconstructed. In such a type of the video signal transmission system, the line is connected after the coding of picture data is commenced. Thus, inter coding may be repeated just after the line is connected. In this case, any correct picture cannot be reconstructed at the receiving end until picture data intra coded is sent. More specifically, in a case where picture data intra coded is sent every 128 frames, for example, the speaker at the receiving end must talk, monitoring an unnatural picture displayed for about 13 seconds at maximum when the frame frequency of the picture data is 10 Hz. Thus, there is a problem in facility. EP-A-0444839, from which the present application is divided relates to a video signal coding method in which individual frames of video signals are selectively intra-and inter-frame coded and are then quantized for transforming to picture data; wherein picture data in an inter-frame coded format is adaptively quantized with one of a plurality of quantization step quantization levels; and picture data in an intra-frame coded format is quantized with one of said quantization step sizes having a predetermined rough quantization level. In view of the foregoing, an object of this invention is to provide a video signal transmission system which prevents an excessively large amount of quantized data from being produced by determining the quantization step size according to the format of picture data to be quantized. Another object of this invention is to provide a video signal transmission system which is capable of enhancing facility as compared to the prior art by effectively avoiding unnatural display pictures. According to the present invention, there is provided a video signal coding method in which individual frames of signals are selectively intra- and inter-frame coded and are then quantized for transforming to picture data; wherein the power of picture data in an inter-frame coded format is calculated, and, when said power is smaller than a predetermined threshold value, said picture data in an inter-frame coded format is quantized with a quantization step size which is reduced by being set to a predetermined ratio of the quantization step size of the previous frame of picture data. According to the present invention, there is also provided a video signal coding system in which individual frames of signals are selectively intra- and inter-frame coded and are then quantized for transforming to picture data; comprising: means for calculating the power of picture data in an inter-frame coded format wherein, when said power is smaller than a predetermined threshold value, said picture data in an inter-frame coded format is quantized with a quantization step size which is reduced by being set to a predetermined ratio of the quantization step size of the previous frame of picture data. The invention will be further described by way of nonlimitative example with reference to the accompanying drawings in which like parts are designated by like reference numeralsor characters: FIG. 1 is a schematic diagram for illustrating the inter/intra frame coding; FIG. 2 is a block diagram illustrating the conventional picture data generating system; FIG. 3 is a graph showing the quantization step thereof; FIGS. 4A, 4B and 6 are block diagrams illustrating the encoder and decoder which constitutes the picture information transmission system using the video signal coding method according to the present invention; FIG. 6 is a schematic diagram showing the construction of the frame picture data; FIGS 7A and 7B are block diagrams illustrating the header data processing system of FIGS. 4A and 4B; FIG. 8 is a schematic diagram showing the construction of the flag data of FIGS. 7A and 7B; FIG. 9A and 9B are flow charts showing the quantization step size determining routine of the quantization control unit 36 of FIG. 4B; FIG. 10 is a graph illustrating changes of residual data in the transmission buffer memory 32 of FIG. 4B ; FIG. 11 is a table showing types of macro blocks; FIG. 12 is an illustration of the transform coefficient matrix; Preferred embodiments of this invention will be described with reference to the accompanying drawings: (1) The whole construction of the picture information transmission system of the first embodiment In FIGS. 4A, 4B and 5, a picture information transmission system 21 consists of an encoder 21A and a decoder 21B. The encoder 21A preprocesses an input video signal VD IN in an input circuit unit 22 and then sends an Input picture data S21, which is a pixel data of 16 by 16 pixels, that is, a pixel data of a macro block MB, from an analog/digital conversion circuit 23 to a pixel data processing system SYM1. At the timing of processing the pixel data in the unit of the macro block MB in each processing step of the pixel data processing system SYM1 a processing Information data corresponding to the data to be processed is sequentially transmitted through a header data processing system SYM2. Thus, pixel data and header data are processed by the pipe line technique in the pixel data processing system SYM1 and the header data processing system SYM2, respectively. In this embodiment, macro block data which is sequentially sent as the input picture data S21 is extracted from frame picture data FRM according to a technique shown in FIG. 6. Firstly, frame picture data FRM of a picture is separated into 2 (horizontal direction) x 6 (vertical direction) of block groups GOB. Each block group GOB contains 11 (horizontal direction) x 3 (vertical direction) of macro blocks MB. Each macro block MB contains 16 by 16 pixels of luminance signal data Y 00 - Y 11 (each consisting of 8 by 8 luminance signal data) and chrominance signal data C b and C r which is chrominance signal data corresponding to all the pixel data of the luminance signal data Y 00 -Y 11 . Thus, the input picture data S21 which is sent for each macro block MB is fed to a motion compensation circuit 25. The motion compensation circuit 25 compares the input picture data S21 and predicted previous frame data S23 from a predicted previous frame memory 27 in response to a motion detection control signal S22 fed from a motion compensation control unit 26, which is provided in the header data processing system SYM2, and the motion compensation circuit 25 thereby detects motion vector data "MVD(x)" and "MVD(y)", which are supplied as first header data HD1 (FIGS. 7A and 7B) to the motion compensation control unit 26. Furthermore, the motion compensation circuit 25 constructs predicted current frame data S24 by motion compensating the predicted previous frame data S23 by the motion vector data "MVD(x)" and "MVD(y)" in a motion compensation circuit body 25A. The predicted current frame data S24 is fed to a picture data coding circuit 28 together with the input picture data S21 to be processed. As shown in FIGS. 7A and 7B, the motion compensation control unit 26 identities each macro block MB, which is sequentially transmitted to each processing step of the pixel data processing system SYM1, by adding the following data as the first header data HD1 for the macro block MB: transmission frame number data "TR Counter" representing a transmission sequence of the frame picture data FRM; block group number data "GOB address" representing the block group GOB (FIG. 6); macro block number data "MB address" representing the macro block MB among the block group GOB. Moreover, the motion compensation control unit 26 constructs flag data FLAGS representing a processing or a processing type of the macro block MB to be processed, the motion vector data "MVD(x)" and "MVD(y)" of the macro block MB, and differential data "Σ|A-B|" which represents the evaluation. As shown in FIG. 8, the flag data "FLAGS" can have one word (16 bits) of flags at maximum. A motion compensation control flag "MC on/off" which represents whether or not the macro block MB to be processed should be processed in motion compensation mode is set at bit 0. At bit 1 of the flag data "FLAGS", inter-frame/intra-frame flag "Inter/Intra" which represents whether the micro block MB to be processed should be in inter coding mode or in intra coding mode is set. At bit 2 of the flag data "FLAGS", a filter flag "Filter on/off" which represents whether or not a loop filter 25B of the motion compensation circuit 25 is used is set. At bit 3 of the flag data "FLAGS", a transmission flag "Coded/Not-coded" which represents whether or not block data Y 00 - C r (FIG. 6) contained in the macro block to be processed should be sent can be set. At bit 4 of the flag data "FLAGS", a drop frame flag "Drop frame flag" which represents whether or not the macro block MB to be processed is frame dropped can be set. At bit 5 of the flag data "FLAGS", an forced refreshing flag "Refresh on/off" which represents whether or not the macro block MB to be processed is forcedly refreshed can be set. At bit 6 of the flag data "FLAGS", a macro block power appreciation flag "MBP appreciate" may be set. The differential data Σ|A-B| represents a minimum value among differences between the macro block data "A" to be processed of current flame data S25 and macro block data "B" compensated by detection motion vectors of the predicted previous frame data S23, and enables appreciation of detected motion vectors. In the inter coding mode, the picture data coding circuit 28 feeds the current frame data S25, which is provided from the motion compensation circuit 25, as difference data S26 to a transform coding circuit 29 without any change (FIGS. 4A and 4B). On the other hand, in the intra coding mode difference data S26 which is the difference between the pixel data of the current frame data S25 and the pixel data of the predicted current frame data S24 is fed to the transform coding circuit 29. In the header data processing system SYM2, an inter/intra coding control unit 30 is provided to correspond to the picture data coding circuit 28. According to the first header data HD1, fed from the motion compensation control unit 26, and the operation data S31, supplied from the picture data coding circuit 28, the inter/intra coding control unit 30 operates data necessary for obtaining the inter-frame/intra-frame flag "Inter/Intra" and the filter flag "Filter on/off" (FIG. 8) and sends the resulting data as a second header data HD2 to a filter control unit 31; the inter-frame/intra-frame flag "Inter/Intra" is to indicate the coding mode of the picture data coding circuit 28 whereas the filter flag "Filter" is to control the operation of the loop filter 25B of the motion compensation circuit 25. As shown in FIGS. 7A and 7B, the second header data HD2 takes over the data which constitutes the first header data HD1; the transmission frame number data "TR Counter" to the differential data "Σ|A-B|". Furthermore, in the inter/intra coding control unit 30, power data which is necessary to construct inter/intra coding mode switching signal S33 and filter on/off signal S34 in the filter control unit 31 is added to the second header data HD2, the power data including "Σ(A) 2 (L)" and "Σ(A) 2 (H)", "Σ(A-B) 2 (L)" and "Σ(A-B) 2 (H)", "Σ(A-FB) 2 (L)" and "Σ(A-FB) 2 (H)", and "Σ(A)". The power data "Σ(A) 2 (L)" and "Σ(A) 2 (H)" represent the lower bit and the upper bit of the sum of the squares of macro block pixel data "A" of the current frame data S25, respectively. The power data "Σ(A-B) 2 (L)" and "Σ(A-B) 2 (H)" represent the lower bit and the upper bit of the sum of the squares of the difference "A-B" of the macro block pixel data "A" of the current frame data S25 and macro block pixel data "B" of the predicted current frame data S24, which is constructed without passing through the loop filter 25B, respectively. The "Σ(A-FB) 2 (L)" and "Σ(A-FB) 2 (H)" represents the lower bit and the upper bit of the sum of the squares of the difference "A-FB" of the macro block pixel data "A" of the current frame data S25 and macro block pixel data "FB" of the predicted current frame data S24, which is constructed through the loop filter 25B, respectively. The "Σ(A)" represents the sum of the macro block pixel data "A" of the current frame data S25. To evaluate the magnitude of each data to be processed, the amount of the data is expressed in power value (each sum of the squares is obtained as a value irrespective of sign). According to the second header data HD2 fed from the inter/intra coding control unit 30 and residual amount data S32 fed from a transmission buffer memory 32, the filter control unit 31 sends an inter/intra coding mode switching signal S33 to the picture data coding circuit 28 and a filter on/off signal S34 to the loop filter 25B, and furthermore the filter control unit 31 adds the filter flag "Filter on/off". representing the contents of the filter on/off signal S34, to the second header data HD2 and hands over the resulting data as third header data HD3 to a threshold control unit 35. Here, the filter control unit 31 firstly controls the picture data coding circuit 28 to the intra coding mode when transmission data inter frame coded becomes larger in amount than the transmission data infra frame coded. Secondly, according to the filter on/off signal S34 the filter control unit 31 controls the loop filter 25B not to perform the filtering operation when during the processing in the inter coding mode, the predicted current frame data S24 which has not been processed in the loop filter 25B is smaller in the differential value than the predicted current frame data S24 which has been processed there. Thirdly, the filter control unit 31 switches the picture data coding circuit 28 to the intra coding mode according to the inter/intra coding mode switching signal S33 in the forced refreshing mode. Fourthly, the filter control unit 31 detects a state in which the transmission buffer memory 32 is liable to overflow data according to the residual amount data S32 provided from the transmission buffer memory 32 and thereby sends to the threshold control unit 35 the third header data HD3 which contains a flag to command to execute a frame dropping procedure. Thus, the picture data coding circuit 28 supplies to the transform coding circuit 29 difference data S26 which has been encoded in such a mode that the difference between the current frame data S25 and the predicted current frame data S24 becomes minimum. As shown in FIGS. 7A and 7B, the third header data HD3 takes over transmission frame number data "TR Counter" to motion vector data "MVD(x)" and "MVD(y)" from the second header data HD2, and the filter control unit 31 adds 6 bits of filter flag "Filter on/off" which correspond to the block data Y 00 to C r to the third header data HD3. The transform coding circuit 29 is a discrete cosine transform circuit and sends to a transmission block setting circuit 34 transformation code data S35 which is obtained by zigzag scanning discrete cosine transformed coefficients S per six blocks Y 00 , Y 01 , Y 10 , Y 11 , C b and C r . The e transmission block setting circuit 34 computes the sum of squares of coefficient data in the number of n from the leading data about each of the six block data Y 00 to C r (FIG. 6) and hands over the result of the operation as power detection data S36 to the threshold control unit 35. In this event, the threshold control unit 35 compares the power detection data S36 of each block data Y 00 to C r with predetermined threshold and thereby constructs 6 bits of transmission permitted/not-permitted data "CBPN" which represents that the block data is not permitted to be transmitted when the power detection data S36 is smaller than the threshold whereas the block data is permitted to do so when the power detection data S36 is larger than the threshold. This data is added to the third header data HD3 which has been received from the filter control unit 31. The threshold control unit 35 hands over the resulting data to a quantization control unit 36 as fourth header data HD4 and controls the transmission block setting circuit 34 to send corresponding block data Y 00 to C r as transmission block patterning data S37 to a quantizer 37. Here, as shown in FIGS. 7A and 7B the fourth header data HD4 takes over the transmission frame number data "TR Counter" to filter flag "Filter on/off" of the third header data HD3, and 6 bits of the transmission permitted/not-permitted flag "CBPN", which has been generated at the threshold control unit 35 to correspond to the blocks Y 00 to C r , is added to the fourth header data HD4. On the basis of the fourth header data HD4 handed over from the threshold control unit 35 and the residual amount data S32 sent from the transmission buffer memory 32, the quantization control unit 36 performs a quantization step size determination routine RT0 shown in FIGS. 9A and 9B, and thereby provides a quantization step size control signal S38 to the quantizer 37, thus causing the quantizer 37 to perform the quantization procedure at the quantization step size which matches to the data contained in the macro block MB. Consequently, quantized picture data S39 which has been obtained at the output terminal of the quantizer 37 is fed to a variable length coding circuit 38. In addition to this, according the fourth header data HD4 the quantization control unit 36, as shown in FIGS. 7A and 7B, constructs as header data HD5 data in which the flag data "FLAGS" and the motion vector data "MVD(x)" and "MVD(y)" are separated and arranged in series to correspond to each of the block data Y 00 to C r (FIG. 6), and the quantization control unit 36 hands the header data HD5 to the variable length coding circuit 38 and an inverse quantizer 40. As shown in FIGS. 7A and 7B, the header data HD5 takes over the transmission frame number data "TR Counter" to the macro block MB address in the fourth header data HD4 without any change, and the quantization control unit 36 adds quantization size data "QNT" and flag data "FLAGS" for the block data Y 00 to C r and motion vector data MVD(x) and MVD(y) to the header data HD5. The variable length coding circuit 38 performs variable length coding on the header data HD5 and the quantized picture data S39 to construct transmission picture data S40, which is supplied to the transmission buffer memory 32. In variable length coding the block data Y 00 to C r , the variable length coding circuit 38 performs processing to throw away the block data without sending as transmission picture data S40 when "frame dropping" or "transmission not permitted" is instructed according to the corresponding flag data "FLAGS". The transmission buffer memory 32 stores the transmission picture data S40, which is read at a predetermined transmission rate and is composed with transmission voice data S41, sent from a voice data generator 42, in the multiplexer 41 to be sent to the transmission line 43. The inverse quantizer 40 inverse quantizes the quantized picture data S39, sent from the quantizer 37, according to the header data HD5, and then feeds the inverse quantization data S42 to inverse transform coding circuit 43 for converting to inverse transform coded data S43, which is then fed to a decoder circuit 44. Thus, coded differential data S44 which represents picture information sent as the transmission picture data S40 is supplied to the predicted previous frame memory 27. In this event, the predicted previous frame memory 27 performs correction of the predicted previous frame data stored using the coded differential data S44 to store as new predicted previous frame data. Thus, in the encoder 21A of the configuration in FIG. 4, the pixel data processing system SYM1 pipelines pixel data in the unit of a macro block MB according to the header information fed from the header data processing system SYM2. Simultaneously with this, header data is transferred in the header data processing system SYM2, and thereby the pixel data is appropriately processed according to needs by performing of addition or deletion of the header data In each process of the header data processing system SYM2. As shown in FIG. 5, in the decoder 21B the transmission data transmitted from the encoder 21A through transmission line 43 is accepted in a transmission buffer memory 52 through a demultiplexer 51 while transmission voice data S51 is received in a voice data receiving unit 53. The pixel data received in the transmission buffer memory 52 is separated into received picture data S52 and header data HD11 in a variable length inverse transform circuit 54. The received picture data S52 is inverse quantized to form inverse quantized data S53 in an inverse quantizer 55, and is then inverse transformed to inverse transform coded data S54 by discrete inverse transformation in an inverse transform coding circuit 56. The inverse transform coded data S54 is fed to a decoder circuit 57 together with header data HD12 constructed in the inverse quantizer 55, and is then stored as coded differential data S55 in a frame memory 58. Thus, the pixel data transmitted is decoded in the frame memory 58 on the basis of the coded differential data S55. In a digital/analog conversion circuit 59, the decoded picture data S56 is converted to an analog signal, which is then outputted as a output video signal VD OUT through an output circuit unit 60. (2) Procedure to determine the Quantization Step Size The quantization control unit 36 executes the quantization step size determining routine RT0, shown in FIGS. 9A and 9B, on each macro block MB, and thereby a quantization step size QNT is selected to adapt to a format of picture data of the macro block MB to be currently processed (referred to as macro block type) to feed as the quantization step size control signal S38 to the quantizer 37. In this manner, the quantizer 37 is controlled not to produce disturbance of the picture according to the type of macro blocks. In this embodiment, the quantizer 37 is, as shown in FIG. 10, designed so that the quantization step size QNT is stepwisely variable from an upper limit QNT = 31 to a lower limit QNT = 1. The quantization control unit 36 performs an adaptive control in response to the macro block type "Macro Block Type" so that the data residual amount "Buffer" of the transmission buffer memory 32 falls within the variable control range of the quantization step size QNT, that is, the range of the quantization size controllable range QCR. (2-1) Processing in a case where the amount of the residual data is excessive When entering the quantization step size determining routine RT0 of FIGS. 9A and 9B, in the step SP1 the quantization control unit 36 makes a judgement as to whether or not the data residual amount "Buffer" of the transmission buffer memory 32 is larger than the sum of the margin "Margin" and the quantization size controllable range QCR. When an affirmative result is obtained, this means that the data residual amount "Buffer" of the transmission buffer memory 32 is above the upper limit. In this case, the quantization control unit 36 proceeds to the step SP2, where it supplies the quantization step size control signal S38 to set the quantization step size QNT to the maximum, i.e, QNT =31, to the quantization control unit 36, and then goes to the step SP3, where the quantization step size QNT currently set is stored as a previous frame quantization step size PQNT. Thus, the quantization control unit 36 completes the quantization step size determining routine RT0 at the step SP4, and thereby the transform code data S35 is quantized at the roughest quantization step size in the quantizer 37. As a result, the amount of data of the quantized picture data S39 generated in the quantizer 37 is controlled to the smallest level, so that the data residual amount "Buffer" of the transmission buffer memory 32 decreases. This operation is repeated until the affirmative result is obtained at the step SP1, with the result that the residual data in the transmission buffer memory 32 becomes smaller in amount than the sum of the margin "Margin" and the quantization size controllable range QCR, QCR + Margin. (2-2) Processing in the intra coding mode In such a state, the quantization control unit 36 goes to the step SP5 since a negative result is obtained in the step SP1, and in that step it is judged whether or not the macro block type "Macro Block Type" is an intra coded block and not forced refresh block "not refresh block". Here, the macro block type "Macro Block Type" is, as shown in FIG. 8, represented by the bit 2, the bit and the bit 0 of the flag data "FLAGS" contained in the header data HD4 given from the threshold control unit 35 to the quantization control unit 36. When these bits are "010", the macro block type is an intra coding type. When "000", the macro block type is an inter coding type. When "001", the macro block type is a motion compensated not filtered type "MC-not filtered". When "101", the macro block type is a a motion compensated filtered type "MC filtered". When in the step SP5, an affirmative result is obtained, the flag data "FLAGS" is "000" at the bit 2, the bit 1 and the bit 0 thereof and the forced refreshing flag "refresh" at the bit 4 is in the state of logic "0". Such a state means that the current frame has been greatly changed from the previous frame to such a degree that the macro block type "Macro Block Type" needs to be intra coded. Moreover, the current state is under the condition such that the forced refreshing mode is not specified. If under such conditions, quantization is carried out at a fine quantization step size in the quantizer 37, the amount of data of the quantized picture data S39 generated from the quantizer 37 becomes extremely large, and hence it is liable that the transmission buffer memory 32 overflows eventually. In this event, the quantization control unit 36 goes to the step SP6, where the quantization step size QNT is set to the upper limit QNT = 31. Thus, a processing to restrain the amount of data of the quantized picture data S39 generated from the quantizer 37 is executed, so that overflowing of the transmission buffer memory 32 is previously avoided. On the contrary, a negative result is obtained in the step SP5, this means that the object to be projected is not an intra coding type or is an intra coding type and generated as the result of forced refreshing. In this case, the quantization control unit 36 does not perform the procedure of the step SP6 but jump this step. (2-3) Processing in the forced refreshing mode Subsequently, in the step SP7 the quantization control unit 36 makes a judgement as to whether or not the macro block to be processed is a forced refreshing type block. When an affirmative result is obtained in this step, this tells that it is indicated that forced refreshing should be achieved. In this case, the quantization control unit 36 proceeds to the step SP8, where the previous frame quantization step size PQNT which has been used as quantization step size QNT in the previous quantization is set. Thus, quantization is carried out at the same quantization step size as in the previous frame when it is indicated that the forced refreshing should be executed. This enables the quality of the picture not to change to such as degree that it provides an eye-sore in effect when the forced refreshing is performed. The forced refreshing is executed in a predetermined cycle irrespective of the contents of the picture, and hence the quantization step size changes as compared to that of the previous frame even though the contents of the picture does not change. This can provides an eye-sore in many cases. If the quantization step size is not changed when the forced refreshing is indicated, it is possible not to produce any change of the picture which provides an eye-sore in the refreshing. It is to be noted that the same effect as described above can be achieved by selecting a smaller value in place of using the same value as the previous quantization step size. A reproduced picture is degraded in quality by enlarging the quantization step size when the forced refreshing is indicated without any change in the picture. On the contrary, slight reduction of the quantization step size somewhat improves the reproduced picture in quality, and thereby it is possible that any change of picture does not come to one's notice in effect. When in the step SP7 a negative result is obtained, this means that the forced refreshing is not currently indicated. In this case, the quantizer 37 does not performs any procedure in the step SP8 but jumps the step. (2-4) Processing in a case where the differential data is large in power Subsequently, in the step SP9 the quantization control unit 36 judges whether or not the macro block type is the inter coding type and the macro block power MBP is larger than a predetermined threshold "Threshold". Here, the macro block power MBP is defined as: When an affirmative result in obtained in the step SP9, this means that it is in a state that there is produced any change such that a reproduced picture does not extremely degraded in quality even if the picture data of the macro block MB is quantized at a somewhat rough quantization step size and then transmitted, since the picture data, that is, the macro block power MBP of the differential data is large. When a macro block which meets such conditions is discrete cosine transformed in the transform coding circuit 29, the quantization control unit 36 confirms this in the step SP9 and proceeds to the step SP10, where it sets the quantization step size QNT to the most rough value, that is, the upper limit QNT = 31. When transform code data S35 of a macro block with a macro block power MBP not so large as this is sent, the quantization control unit 36 jumps the step SP10 not to perform the process of the latter. The macro block power MBP defined by the equation (1) aims to operate weight of each macro block on the basis of the discrete cosine transform coefficient Coeff(i) which is obtained as a result of the discrete cosine transformation in the transform coding circuit 29. The weight of the discrete cosine transform coefficient represents intensity of a transmission signal which has been obtained by the discrete cosine transformation. A large macro block power MBP thus means that the intensity of the transmission signal as signal transmission means is large, and hence even if the transmission signal is sent with some compression, the transmitted information can be reconstructed in a receiving end without being influenced with external noises. In such a case, the quantization control unit 36 compressed the amount of the quantized picture data S39, which is generated in the quantizer 37, by changing the quantization step size QNT to a larger value, and thereby reducing a load to the transmission line 43. Incidentally, the discrete cosine transform circuit which constitutes the transform coding circuit 29 performs discrete cosine transformation according to the following equation; The inverse discrete cosine transform circuit which constitutes the inverse transform coding circuit 56 performs inverse discrete cosine transformation according to the following equation: where x and y represent coordinates of pixels in the macro block (the upper left corner has a coordinate (0, 0); and u and v represent coordinates of coefficients in the discrete cosine transformation. When u and v equal zero, C(u)C(v) = 1 2 and in the other cases, C(u)C(v) = 1 Suppose that X is a picture data matrix in a macro block and C is a transform matrix when discrete cosine transformation is carried out, in the transformation of each of the equation (2) and (3) in the transform coding circuit 29 a picture data matrix X is horizontal transformed to produce a transformed picture data matrix XC -1 , and then undergoes vertical transformation to obtain a transformed picture data matrix C(X)C -1 The transformed picture data matrix C(X)C -1 thus obtained is, as illustrated in FIG. 12, expressed as an 8 x 8 transformation coefficient matrix Including coefficients Coeff(1), Coeff(2), Coeff(3), ... and Coeff(64), and each coefficient Coeff(i) (i = 1 to 64) of the transform coefficient matrix is read from the transform matrix by scanning in the order of i = 1, 2, 3, ... 64 as the lapse of time. Thus, the picture data of a one macro block is transformed to transform coefficients Coeff(i) (i = 1 to 64) which constitutes the transform matrix, and these transform coefficients are fed as transmission data arranged in series in time to the quantizer 37. Thus, the transform coefficient data series Coeff(1), Coeff(2), ... and Coeff(64) fed to the quantizer 37 represent not only information to be sent but intensity of signals to be transmitted. As defined by the equation (1), the sum of squares of transform coefficient data (i = 1 to n) contained in the transform coefficient data series Coett(i) (i = 1, 2, ... 64) is a value obtained by accumulating so that signals to be sent becomes horizontally and vertically equal in Intensity. Thus, the equation (1) defines this as the macro block power MBP. When the transform coefficient matrix as shown in FIG. 12 is obtained in practice by discrete cosine transformation of pixel data, there is a tendency that power is concentrated at the transform coefficient Coeff(i) at the upper left corner, that is, lower degree transform coefficients whereas significant information is not produced in the transform coefficient at the lower right corner, that is, the higher degree transform coefficient. In this manner, compression of transmission data can be achieved by discrete cosine transformation. If it is confirmed that a macro block power MBP obtained according to the equation (1) is larger than the predetermined threshold "Threshold" when it has been judged in the step SP9 of FIG. 9B that the macro block type "Macro Block Type" is the inter coding type, this means that the differential data in the macro block MB is sufficiently large. It is thus confirmed that rough quantization is sufficient. If the quantization step size QNT is selected to the upper limit in the step SP10 according to such judgement, the differential data is transmitted at a relatively small amount. (2-5) Processing in the inter coding mode When in the step SP11 of FIG. 9B, it is confirmed that the macro block type "Macro Block Type" is the inter coding type, and that the macro block power MBP is smaller than the predetermined threshold "Threshold", the quantization control unit 36 proceeds to the step SP12, where the quantization step size QNT is set to a 1/2 of the previous quantization step size PQNT used in the previous frame. Then, in the step SP13 it is judged whether or not the quantization step size QNT is smaller than the lower limit QNT = 1. When the quantization step size QNT is smaller, it is reset to the lower limit In the step SP14. When not smaller, the value is set as the quantization step size QNT without resetting. Here, as described in connection with the equation (1) the macro block power MBP represents the intensity of the differential data signal of the macro block, and hence when an affirmative result is obtained in the step SP11, the macro block power MBP represents that the difference is small, and that the picture has a small change in contents from the previous frame. When such picture data is obtained, it shows that the picture to be transmitted is in a state that there is only a change to such a degree that the picture of the previous frame is partially modified without any great change. Thus, in the step SP12 the quantization control unit 36 reduces the previous quantization step size PQNT of the previous frame to 1/2, which is set as the quantization step size QNT of the current frame. In this manner, the quantization step size is made finer according to the reduced change for the current frame which is small in movement as compared to the previous frame, and the optimum quantization step size can be thus set. The quantization control unit 36 repeats such reduction of the quantization step size in the steps SP11 and SP12 while pictures with small motions follow, and hence in a case where transmission of pictures with small motions are continued, the quantization step size is converged toward a value to meet this. Then, in the steps SP13 and SP14 the quantization step size QNT is controlled not to be smaller than 1, and in a case where pictures with small motions are sent the quantization control unit 36 can thereby stably perform quantization in a state in which the quantization step size QNT is converged to the lower limit. In a case where a negative result is obtained in the step SP11, the quantization control unit 36 judges that the picture to be sent currently is large in change, and does not performs and jumps the procedures in the steps SP12, SP13 and SP14. (2-6) The operation of the quantization control unit 36 In the first case where the data residual amount "Buffer" of the transmission buffer memory 32 exceeds the upper limit (QCF + Margin), the quantization control unit 36 detects this in the step SP1 and sets the quantization step size QNT of the quantizer 37 to the upper limit QNT = 31 in the step SP2, so that the data residual amount "Buffer" of the transmission buffer memory 32 is reduced to thereby keep in a state below the upper limit thereof. In the second case where in this state, block data of which macro block type "Macro Block Type" is the intra coding type and which is not a forced refreshing type is provided to the quantizer 37, the quantization control unit 36 confirms this in the step SP5 and sets the quantization step size QNT of the quantizer 37 to the upper limit QNT = 31 in the step SP6 so that the transmission buffer memory 32 does not overflow. When negative results are obtained in respective steps SP7, SP9 and SP11 in such an operation mode, the quantization control unit 36 sets the quantization step size which has been set in the step SP6 as previous frame quantization step size PQNT in the step SP3 and then completes the routine. In the third case where macro block data having the forced refreshing block type is provided to the quantizer 37, in the quantization step size determining routine RT0 the quantization control unit 36 confirms this by the loop of the steps SP1-SP5-SP7. The quantization control unit 36 sets the previous frame quantization step size PQNT as the quantization step size QNT of the quantizer 37 in the step SP8 and thereby controls the picture to be sent not to change in quality from the picture of the previous frame in the forced refreshing mode so that any change in quality which provides an eye-sore is not produced in the forced refreshing. In this case, the quantization control unit 36 obtains negative results in respective steps SP9 and SP11, and thus the quantization step size QNT which has been set in the step SP8 is set as the previous frame quantization step size PQNT in the step SP3 and then completes the routine. In the fourth case where picture data of a macro block with a large macro block power MBP is provided to the quantizer 37, in the quantization step size determining routine RT0 the quantization control unit 36 confirms this by the loop of the steps SP1-SP5-SP7-SP9. Then, the quantization control unit 36 sets the quantization step size QNT of the quantizer 37 to the upper limit QNT = 31, and thereby holds the amount of data generated in the quantizer 37 at a small value. This enables the picture data to be transmitted with much improved efficiency. After such procedures, the quantization control unit 36 obtains a negative result in the step SP11 and thus resets the quantization step size QNT, which has been set in the step SF10, as the previous frame quantization step size PQNT in the step SP3. Then, the routine is completed. In the fifth case where macro block data which is of the inter coding type with a small macro block power MBP is fed to the quantizer 37, in the quantization step size determining routine RT0 the quantization control unit 36 confirms this by the loop of the steps SP1-SP5-SP7-SP9-SP11. Then, In the step SP12 the value of 1/2 of the previous frame quantization step size PQNT is set as the quantization step size QNT and thereby the quantization step size is converged toward the lower limit QNT = 1. Thus, the quantization step size which is most suitably applied to the macro block power MBP can be set. (3) Modifications of the first embodiment (3-1) Although it is stated that the quantization step size QNT is set to the upper limit QNT = 31 in the steps SP6 and SP10 in FIGS. 9A and 9B, the quantization step size QNT is not limited to that upper limit and may be set to other values. It is essential that a rough quantization value which enables rough quantization is selected. (3-2) It is described that the same threshold "Threshold" is selected for judging the magnitude of the macro block power MBP in the steps SP9 and SP11 of FIG. 9B. By selecting a different value in place of this, an effect similar to the case above described can be achieved. (3-3) It is further described that in determining the quantization step size QNT from the prevlous frame quantlzatlon step size PQNT in the step SP12 in FIG. 9B, a value of 1/2 thereof is set. The ratio is not restricted to 1/2 but may be changed to different values according to needs. It is essential that the quantization step size is set to a size which is obtained by reducing the previous frame quantization step size at a predetermined ratio. (3-4) It is stated that the quantization step size QNT converged toward the lower limit QNT = 1 in the steps SP13 and SP14 of FIG. 9B. However, the convergence value is not limited to that lower limit but may be set to different values according to needs. While there has been described In connection with the preferred embodiments of the invention, it will be obvious to those skilled in the art that various changes and modifications may be made therein without departing from the invention, and it Is aimed, therefore, to cover in the appended claims all such changes and modifications as fall within the true scope of the invention.

Claims: A video signal coding method in which individual frames of signals are selectively intra- and inter-frame coded (28,29,30) and are then quantized (37) for transforming to picture data; wherein the power of picture data in an inter-frame coded format is calculated (34), and, when said power is smaller than a predetermined threshold value (SP11), said picture data in an inter-frame coded format is quantized with a quantization step size which is reduced by being set to a predetermined ratio of the quantization step size of the previous frame of picture data. A video signal coding system in which individual frames of signals are selectively intra-and inter-frame coded (28,29,30) and are then quantized (37) for transforming to picture data; comprising: means (34) for calculating the power of picture data in an inter-frame coded format wherein, when said power is smaller than a predetermined threshold value, said picture data in an inter-frame coded format is quantized with a quantization step size which is reduced by being set to a predetermined ratio of the quantization step size of the previous frame of picture data.

Inventors: EMOTO SEIICHI, TAHARA KATSUMI, EMOTO, SEIICHI, TAHARA, KATSUMI, Emoto, Seiichi, c/o Sony Corp., Tahara, Katsumi, c/o Sony Corp.
Applicants: SONY CORP, SONY CORPORATION
Application year: 1991
Main classification: H04N7
IPC codes: H04N7