Encoding system for data transmission

Abstract: In a high efficiency encoding system according to the invention, a picture is divided in many three-dimensional blocks, or blocks consisting of n areas belonging to each of n frames continuous in terms of time. The movement of the picture is decided in each block to develop movement information. The picture element number of each block is sub-sampled into (1/m), and the phases are sequentially shifted with respect to m blocks. Data of picture elements thinned by sub-sampling (i.e., not transmitted) are decoded, while picture data of a still portion is decoded excellently by the combination of sub-sampling patterns.

Description: The invention relates to a high efficiency encoding system and, more particularly to, a high efficiency encoding system for compressing the amount of data to be transmitted as compared with the original in the case of transmission of picture data such as a digital video signal. In the transmission of a digital video signal, it is known to use a method for thinning out picture elements by sub-sampling to reduce the sampling frequency in order to compress the amount of data for transmission. For the sub-sampling, it is known to use a method in which picture data is thinned out to 1/2 and which sub-sampling points and flags for indicating the positions of the sub-sampling points used in the interpolation (i.e., for indicating which data at sampling points lying above and below the interpolation points and on the left-hand and right-hand sides thereof are utilized) are transmitted. The present applicant has proposed a high efficiency encoding system for performing the encoding which is adaptive to a dynamic range by obtaining the dynamic range defined by the maximum value and the minimum value of plural picture elements, which are contained in a two-dimensional block, as described in the specification of the Japanese Patent Application No. 59-266407 (Laid Open No 61-144989). In these encoding methods which are adaptive to the dynamic range, all picture element data in a block are always encoded irrespective of the movement of a picture of the block. However, in the absence of picture movement, the compression rate can be improved by encoding only picture element data of one frame in the block; this is the so-called "frame-dropping processing", as described in the specification of the European Patent Application No. EP-A-0,222,592. (Art. 54 (3) EPC). In encoding for reducing a sampling frequency using sub-sampling, the data of thinned picture elements are interpolated at the reception side. However, there is the disadvantage that the interpolated picture element data at a still portion in which visually high quality is required to exhibit noticeable deterioration. Further, there is the disadvantage that a sufficient compression rate cannot be attained with only the sub-sampling and dynamic range adaptive encoding. According to the present invention there is provided a high efficiency coding apparatus for coding digital video data in a format composed of blocks of digital video data and for allowing compression of the video data, comprising: movement discriminating means for discriminating the presence of movement in each block and for generating a movement signal; sub-sampling means for sub-sampling each of said blocks of the digital video data to reduce the number of picture elements in each said block to 1/n of the original number of the picture elements; and transmitting means for transmitting the output of said sub-sampling means and said discriminating code; characterised in that the apparatus is adapted to code data in a format representing consecutive three-dimensional blocks of picture elements, that the sub-sampling means are adapted to operate such that the phases of sub-sampling of time-sequential blocks are shifted cyclically with a period of n frames, and in that said movement signal comprises a discriminating code indicating only the presence or absence of movement in a block. The invention also provides a decoding apparatus for decoding data transmitted by a coding apparatus for coding digital video data in a format composed of consecutive blocks of digital video data representing a three-dimensional group of picture elements, said coding apparatus having movement discriminating means for discriminating the presence of a movement in each block and generating a discriminating code; sub-sampling means for sub-sampling each said block of digital video data so as to reduce the number of picture elements to 1/n of the original number of the picture elements, the phases of sub-sampling of time-sequential blocks being shifted cyclically with a period of n frames; and transmitting means for transmitting an output of said sub-sampling means and said discriminating code, said decoding apparatus being characterised in that it comprises: discriminating code separating means for separating said discriminating code from said sub-sampled data, and adaptive interpolation means for interpolating thinned-out data from actually transmitted data, the interpolation system used by said interpolation means being selected from a plurality of such systems according to whether said discriminating code indicates that the presently considered block includes movement or not. In the illustrated embodiment, the sum of the absolute values of frame differences in one block of a digital video signal is compared with a threshold value. When the sum of the absolute values is smaller than the threshold value, it is discriminated to be a still block. Also, the picture element number of each block is sub-sampled into (1/m), for instance, 1/2. The phases of the sub-sampling are sequentially shifted with respect to two blocks. In other words, the phase of the sub-sampling on the i-th block has a shift of one picture element with that of the sub-sampling on the (i+1)-th block. A discrimination code from a movement discrimination circuit and the output data of a sub-sampling circuit are converted at frame segmentation circuits into transmission data. At a still block shown by the code, the average value of picture elements of n areas in a block are transmitted in place of original data. With the combination of this frame-dropping processing and an encoding using a dynamic-range adaptive type code with sub-sampling, a high compression rate is achieved. In the case where thinned picture elements are interpolated at the reception side, the thinned picture elements in a block are interpolated by picture elements of a previous block by combining two blocks when these blocks are still blocks continuous in time. As a result, the quality of a reproduced picture at a still portion is enhanced differering from the interpolation by ambient picture elements. As will become apparent from the following description, the invention can provide a high efficiency encoding system capable of interpolating the thinned picture element data in a still block at the reception side and of improving the compression rate by the combination with an encoding method adaptive to a dynamic range of a three-dimensional block. It can provide this compression with less deterioration of picture quality. The invention will be further described in the following detailed taken in conjunction with the accompanying drawings, in which: Fig.1 is a block diagram of one embodiment of the invention; Fig.2 is a block diagram showing the structure at the reception side; Figs.3, 4, 5 and 6 are schematic diagrams for showing the entire operation at the transmission and reception sides; Fig.7 is a schematic diagram showing a block which is a processing unit for encoding; Figs.8 and 9 are an example of a structure and an operation of a segmentation circuit; Fig.10 is a block diagram of one example of a movement discrimination circuit; Fig.11 is a schematic diagram for illustrating a sub-sampling operation; Fig.12 is a block diagram showing the structure of an encoder; Fig.13 is a schematic diagram for showing the structure of transmission data; Fig.14 is a block diagram for showing the structure of a two-dimensional decoder; Fig.15 is a block diagram of a dynamic-range detection circuit; Fig.16 is a schematic diagram for illustrating variable length encoding; Fig.17 is a schematic diagram for illustrating a smoothing operation; and Fig.18 is a schematic diagram illustrating another example of quantization. In the drawings, the same references numerals depict the same structural elements throughout. Hereinafter, an embodiment of the invention will be described referring to the drawings. This description will be given in the following order: a. Structure at the transmission side b. Structure at the reception side c. Data processing operations at the transmission side and the reception side d. Block and block segmentation circuit e. Movement discrimination circuit f. Subsampling g. Encoder h. Decoder i. Dynamic-range detection circuit j. Variable length encoding k. Modification a. Structure at the transmission side Fig.1 shows the whole structure of the transmission side (recording side in the case of a video tape recorder). A digital video signal (luminance signal) of which one sample is quantized into an 8 bit value, for instance, is applied to an input terminal shown at 1. The digital video signal is supplied to a block segmentation circuit 2. In the circuit 2, the digital video signal is converted into a signal so that blocks, each of which is the unit of encoding, are contiguous in the time direction. The output signal of the block segmentation circuit 2 is applied to a movement discrimination circuit 3. This circuit 3 is a circuit for generating a two-bit discrimination code SJ for discriminating a still block, a quasi-still and a moving block from data of picture elements at the same position in corresponding areas of each frame of a three-dimensional block (in this example, 6 lines x 6 picture elements x 2 frames). For a motionless block, the discrimination code SJ is (0 0); for a quasi-still block in which there is slight movement, the discrimination code SJ is (0 1); and for a moving block, the code SJ is (1 1). The input digital video signal from the block segmentation circuit 2 is supplied to one input terminal of a switch circuit 4 and an interframe-average-value developing circuit (referred to hereunder as "IAVD" circuit) 5. The output signal of the IAVD circuit 5 is given to the other input terminal of the switch circuit 4. When the discrimination code SJ is (0 0) or (0 1), that is, in the case of a still block or a quasi-still block, the output signal of the IAVD circuit 5 is selectively obtained at an output terminal of the switch circuit 4. In the case of the code SJ (1 1), i.e., in the case of a moving block, the input digital video signal from the block segmentation circuit 2 is selectively derived from the output terminal of the switch circuit 4. The IAVD circuit 5 calculates the average value of 36 picture elements, which lie in the same position between two areas forming a block and outputs the average value of the 36 elements in place of picture element data of the block. Therefore, the output signal of the IAVD circuit 5 has a two-dimensional block structure in which the average value is arranged in the form of 6 lines x 6 picture elements. The output signal of the switch circuit 4 is supplied to a sub-sampling circuit 6. The sub-sampling circuit 6 carries out the sampling for making the picture elements of each block one half. A sampling pulse with a frequency, which is one-half of the original frequency, is supplied to an input terminal shown at 7. This sampling pulse and the sampling pulse inverted through a logic level inverter 10 are selected at a switch circuit 9. The switch circuit 9 is switched every n frames (n = 2 in this example) of a three-dimensional block by a switch control pulse from a terminal 11. As a result, in the sampling patterns of two blocks occupying the same position in the picture and contiguous in time, picture elements, which are subjected to sub-sampling, have a shift from each other of one picture element. In other words, the sampling patterns are complementary between these two blocks. The output signal of the sub-sampling circuit 6 is applied to a switch circuit 12. The circuit 12 is controlled by the discrimination code SJ in a manner similar to the switch circuit 4. Data of a still block and a quasi-still block selected by the switch circuit 12 are supplied to a two-dimensional (2-D) encoder 13, while data of a moving block selected by the switch circuit 12 are applied to a three-dimensional (3-D) encoder 14. Encoding with a variable number of bits adaptive to the dynamic range of each block is performed in the 2-D encoder 13 and the 3-D encoder 14. From these encoders 13 and 14, a dynamic range DR of each block, a minimum level MIN and a code signal DT of 0 to five bits are provided. The output signals of the 2-D encoder 13 and the 3-D encoder 14 are supplied to frame segmentation circuits 15 and 16 respectively. The discrimination code SJ is applied to the frame segmentation circuits 15 and 16 via a delay circuit 17 for phase adjustment. In this embodiment, the code SJ, the code signal DT, the dynamic range DR, and the minimum value MIN are transmitted. These data are converted into transmission data in said circuits 15 and 16. The transmission data can be be formatted by applying a separate error correction code to each of the data portions, which consists of the discrimination code SJ, the dynamic range DR, the minimum value MIN and the code signal DT with a parity code of each error correction code being added. Also, the encoding of separate error correction codes may be done for each of the discrimination code SJ, the dynamic range DR and the minimum value MIN other than the code signal DT. Further, the encoding of a common error correction code may be performed for the discrimination code SJ, the dynamic range DR, and the minimum value MIN with the addition of parity. The output signals of the frame segmentation circuits 15 and 16 are supplied to an OR gate 18, and transmission data can be taken out of an output terminal 19 of the OR gate 18. The transmission data are sent in the form of serial data (or recorded in a recording medium), although not shown. b. Structure at the reception side Fig.2 shows a structure at the reception (or reproduction) side. Reception data from an input terminal 21 is supplied to a discrimination-code separation circuit 22 so that the discrimination code SJ is separated. The added data DR + MIN and the code signal DT other than the discrimination code SJ are applied to a switch circuit 23. The code SJ is supplied to the circuit 23. The code signal and the added data of average value information of a still block and a quasi-still block are separated by the switch circuit 23. The average value information is supplied to a frame separation circuit 24. The code signal and added data of a moving block separated from the switch circuit 23 are fed to a frame separation circuit 27. The code signal DT and the added codes DR and MIN are separated by the frame separation circuits 24 and 27 and subjected to error correction processing therein. This code signal DT and the added codes are supplied to a 2-D decoder 25 and a 3-D decoder 28, respectively. These decoders 25 and 28 execute the reverse processing to that of the encoders 13 and 14 on the transmission side. Namely, data PDI after the elimination of the minimum level of 8 bits are reproduced as a representative level. The data is added to the 8-bit minimum value MIN to reproduce original picture element data. In the 2-decoder 25, decoded outputs of a still block and a quasi-still block for which the frame-dropping processing is made, are developed. The output signal of the 2-D decoder is applied to a block separation circuit 26. In the 3-D decoder 28, the decoded output of a moving block is developed. The output signal of the 3-D decoder 28 is supplied to a block separation circuit 29. The output signals of the circuits 26 and 29 are given to an OR gate 30. The output signal of the OR gate 30 is supplied to an adaptive interpolation circuit 31. The output signal of the circuit 31 is taken out of an output terminal 32. The block separation circuits 26 and 29 are circuits for converting decoded data of the order of block into the order similar to the scanning of a television signal. In the adaptive interpolation circuit 31, picture element data, which have not been transmitted (i.e. were omitted by the sub-sampling), are interpolated. In the circuit 31, one of three interpolation systems is selected depending on the relationship of a discrimination code SJ i-l of the previous block and a discrimination code of the present block in terms of time. An interpolation control signal SI for selecting an interpolation system is developed at a decoder 34. The discrimination code SJ (SJi) from the discrimination-code separation circuit 22 and the discrimination code SJ i-l of the temporally preceding block from a memory 33 are supplied to the decoder 34. The interpolation control signal SI from the decoder 34 is applied to a block separation circuit 36 through a delay circuit 35 for phase adjustment. The control signal SI is a two-bit code, which varies every six temporally contiguous picture elements. At the adaptive interpolation circuit 31, three interpolation systems, e.g. time-direction interpolation, intraframe interpolation or intrafield interpolation, are selected adaptively. The time-direction interpolation contrasts with intraframe interpolation and the intrafield interpolation, which are in the space direction, to perform the interpolation by combining the picture elements of two temporally sequential blocks. In this time-direction interpolation, the fact that the sampling pattern is shifted by one frame between successive blocks is utilized effectively. Intraframe interpolation is the interpolation using data within the same frame. For instance, the interpolation is done by the average value of sub-sampled data, which are positioned above and below interpolation points and on the left-hand and right-hand sides thereof. Intrafield interpolation is the interpolation using data within the same field. For example, the interpolation is made by the average value of sub-sampled data positioned on the left-hand and right-hand sides of interpolation points on the same line. An interpolation system is selected by an interpolation control signal SI as follows: In the case of (SI = 00): time-direction interpolation In the case of (SI = 10): intrafield interpolation As mentioned above, the discrimination code SJ is defined as follows: (Still block: SJ = 00) (Quasi-still block: SJ = 01) (Moving block: SJ = 11) In the decoder 34, the interpolation control signal SI is developed from the discrimination code SJ i-l of a previous block and the discrimination code SJ i of the present block as follows: SJ i-l 00 01 11 00 00 00 10 SJ i 01 00 10 10 11 11 11 11 For example, in the case where the present block is a still block and the previous block is a still block or a quasi-still block, (SI = 00) is established with the interpolation in the time direction. In the case where the present block is a moving block, (SI = 11) is established irrespective of the discrimination of movement in the previous block, with intrafield interpolation. c. Data processing operations at the transmission side and the reception side Fig.3 is an example of a digital video signal supplied to the input terminal 1 at the transmission side. For simplicity of explanation, one frame picture is divided into four areas A, B, C and D. In Fig.3, four frames, which are continuous with respect to time, are shown, and two areas (A1, A2), (B1, B2) ... (D3, D4) belonging to two frames, respectively, form blocks. Also, in Fig.3, an example of a two-bit movement discrimination code SJ relating to each block is shown. For example, the block consisting of (A1, A2) is (SJ = 00), i.e., a still block. The block consisting of (B1, B2) is (SJ = 01), i.e., a quasi-still block. The block consisting of (C1, C2) is (SJ = 00), i.e., a still block, and the block consisting of (D1, D2) is (SJ = 11), i.e., a moving block. At the transmission side, frame-dropping processing, sub-sampling and encoding adaptive to the dynamic range are performed. Assuming that output data obtained through the encoding process adaptive to the dynamic range for the areas A, B, C and D are represented by a, b, c and d, the encoded data at the transmission side become as shown in Fig.4. That is, the interframe average value (A1 + A2)/2 of two areas, for instance, A1 and A2, is developed in a still area and a quasi-still area. This interframe average value is encoded in the 2-D encoder 13 to provide encoded data of (a1 + a2)/2. Also, areas of a moving block, for example, D1 and D2 are encoded into d1 and d2, respectively. The encoded data are decoded at the reception side so that decoded data shown in Fig.5 are obtained from an OR gate 30. In a still block and a quasi-still block, the average value of two areas is decoded. In a moving block, picture element data of each area are decoded. The decoded data shown in Fig.5 contain data thinned to 1/2 by sub-sampling are interpolated at the adaptive interpolation circuit 31. The mode of interpolation is defined by the interpolation control signal SI developed by the discrimination code SJ i-l of the previous block and the discrimination code SJ i of the present block as mentioned before. Assuming that four blocks formed of the eight areas A3, B3 ...C4, D4 are the present blocks, the interpolation control signal SI corresponding to decoded data (refer to Fig.5) is developed as shown in Fig.6. For example, the area (A3 + A4)/2 has (SI = 00) from (SJ i-l = 00) (SJ i = 00) with the interpolation in the time direction. The areas of D3 and D4 have (SI = 11) from (SJ i-l = 11) (SJ i = 11) with intrafield interpolation. d. Block and block segmentation circuit Referring to Fig.7, a block, which is a unit for encoding, will be described. In the embodiment, a three-dimensional block is constituted by two-dimensional areas An and An+1 belonging to respective ones of two temporally contiguous frames. In Fig.3, solid lines show lines in an odd field, while broken lines show those in an even field. Six picture elements contained in six lines of each frame, respectively, construct the areas An and AN+1 (6 lines × 6 picture elements). Therefore, one block consists of (6 × 6 × 2 = 72) picture elements. Fig.8 shows an example of the structure of the above-mentioned block segmentation circuit 2. A frame memory 42 is connected to an input terminal 41. Picture element data of the present frame are supplied to a scanning conversion circuit 43, and picture element data of the previous frame are given to a scanning conversion circuit 44. The respective output signals of the circuits 43 and 44 are supplied to a combination circuit 45 composed of a delay circuit and a switch circuit. A digital video signal converted in the order of blocks appears at an output terminal 46 of said circuit 45. For simplicity, in the case where a picture of one frame is divided into four, the previous frame is divided into the areas A1, B1, C1 and D1 as shown at A of Fig.9. The present frame is divided into the areas A2, B2, C2 and D2. The scanning conversion circuit 43 converts the order of data in one frame into the order of each area of a block as indicated at B of Fig.9. The other scanning conversion circuit 44 converts the order of data in one frame into the order of each area of a block as shown at C of Fig.9 in a similar manner. At the output terminal 46 of the combination circuit 45, picture element data of four areas respectively included in two contiguous frames, are obtained as output data converted in the order of blocks. c. Movement discrimination circuit Fig.10 shows an example of the movement discrimination circuit 3. In Fig.10, 47 and 48 are input terminals to which picture data of the areas An and An+1 belonging to two temporally contiguous frames of one block, respectively. The input data are developed by arranging the output data of the block segmentation circuit 2 in parallel in each block. Threshold value data THa and THb are supplied to terminals shown at 49a and 49b, respectively, and a reset pulse PR is given to a terminal shown at 50. The threshold value THb is made larger than the threshold value THa. The absolute value of a level difference (frame difference) of picture elements of the corresponding positions between the area An and the area An+1 is developed by a subtractor 51 and an absolute-value forming circuit 52. The absolute value of the frame difference is supplied to a summing circuit 53. The output signal of the summing circuit 53 is given to comparators 54a and 54b. A summed value of the absolute values of the frame differences with respect to one block is compared with the threshold value data THa at the comparator 54a. In addition, this summed value is compared with the threshold value THb by the comparator 54b. A binary comparison output corresponding to the leve; relationship between each summed value of the absolute values of frame differences and the threshold value data THa an dTHb is supplied to an encoder 55. When the summed value of the absolute values of the frame differences is equal to or smaller than the threshold value data THa, the encoder 55 decides that there is no change between both, or that there is a still block. Also, when the summed value of the absolute values of the frame differences exceeds the threshold value data THa and equal to or less than the threshold value data THb, it is decided to be a quasistill block. Further, if the summed value is larger than the threshold value data THa and THb, it is determined to be a moving block. The reset pulse PR of every block is supplied to the encoder 55. The two-bit output of the encoder 55 is taken out at an output terminal 56 as the discrimination code SJ. In the case of (SJ = 00) or (SJ = 01), since the pictures of the areas An and AN+1 in the block are almost the same, only the average value of both, or (An + An+1)/2 is encoded by the 2-D encoder 13. Consequently, one of the two areas is frame-dropped. In the case of (SJ = 11), picture element data included in both of the two areas An and An+1 are encoded by the 3-D encoder 14. As mentioned above, by deciding whether or not it is a still portion during each block, the transmission of a code signal on the still portion occupying a large part of the picture can be reduced to enhance the data compression rate greatly. It is to be noted that another structure deciding whether the maximum value of the absolute values of frame differences between two frames is equal to or less than the threshold value can be used as the movement discrimination circuit 3. f. Sub-sampling The sub-sampling in the sub-sampling circuit 6 is done as shown in Fig.11, so that the sampling patterns of the (i-l)-th block and that of the i-th block are complementary with each other. The above-mentioned time-direction interpolation in the adaptive interpolation circuit 31 is made by combining the complementary sampling patterns. In the case where both of the (i-l)-th block and the i-th block are still blocks, an excellent reproduced picture can be obtained simply by combining both through their superimposition, since the blocks have the same picture. g. Encoder Both of the 2-D encoder 13 and the 3-D encoder 14 perform variable length encoding adaptive to the dynamic range DR. The encoders 13 and 14 have the same structure except that there are different in number of picture elements included in one block. Fig.12 shows an example of an encoder usable as the 3-D encoder 14. In Fig.12, picture element data PD of one block is supplied to a dynamic range detection circuit shown at 62, so that the dynamic rage DR and minimum value MIN is subtracted from each picture element data at a subtractor 61 to develop data PDI after the elimination of the minimum value. The data PDI and the dynamic range DR are supplied to a quantization circuit 63. A code signal DT of the compressed bit number is obtained from the circuit 63. The dynamic range DR, the minimum value MIN and the code signal DT are supplied to the frame segmentation circuit 16. In the frame segmentation circuit 16, the discrimination code SJ, the dynamic range DR, the minimum value MIN, and the code signal DT are converted into serial data as shown in Fig.13. The 3-D encoder 13 has the same structure as the above-mentioned encoder shown in Fig.12, and average value data are given as input data from the above-mentioned IAVD circuit 5. The quantization circuit 63 is made up of, for example, a ROM. Data conversion tables for converting the picture element data PDI (8 bits) after the elimination of the minimum value into the compressed bit number are stored in the ROM. In the ROM, the data conversion tables are selected depending on the magnitude of the dynamic range DR, and the five bit code signal DT is taken out as read-out output. The bit number of the code signal DT changes within the range of 0 to 5 bits. As a result, effective bit length of the code output from the ROM varies. The effective bits are selected at the frame segmentation circuits 15 and 16. h. Decoder The 2-D decoder 25 and the 3-D decoder 28 are circuits for performing the inverse processing to the encoders 13 and 14. Fig.14 shows a structure of one example of the decoder 25. The dynamic range DR and the code signal DT from the frame separation circuit 24 at the previous stage are supplied to a decoding circuit 64. This circuit 64 is composed of, for example, an ROM, and data of a decoding level corresponding to average value data after the elimination of the minimum value is obtained. This data is supplied to an addition circuit 65 and added to the minimum MIN. As a result, a signal of the decoding level corresponding to the average value data is developed. Since compression by frame dropping is done in the case of a still block, the output signal of the addition circuit 65 is written into a memory 66, so that the average value data of areas whose transmission is omitted can be taken out of the memory 66. The 3-D decoder 28 has the same structure as the 2-D decoder 25. However, in the case of a moving block, picture element data of each area are all decoded, and there is no need to provide a memory. i Dynamic-range detection circuit Fig.15 shows an example of a structure of a dynamic-range detection circuit 62 provided in the 2-D encoder 13 and the 3-D encoder 14. In Fig.15, picture element data of an area necessary for encoding of each block are sequentially supplied to an input terminal shown at 71 from the block segmentation circuit 2 mentioned before. The picture element data from the input terminal 71 are applied to a selector 72 and a selector 73. One selector 72 selects as output the larger one of the picture element data of an input digital video signal and the output data of a latch 74. the other selector 73 selects as output the smaller one of picture element data of the input digital video signal and the output data of a latch 75. The output data of the selector 72 is supplied to a subtractor 76 and latched in the latch 74. The output data of the selector 73 is applied to the subtractor 76 and a latch 78 and latched into the latch 75. A latch pulse is given to the latches 74 and 75 from a control unit 79. Timing signals such as a sampling clock, which are in synchronism with the input digital video signal, are supplied to the control unit 79 from a terminal 80. The control unit 79 supplies latch pulses to the latches 74 and 75 and the latches 77 and 78 at a predetermined timing. The contents of the latches 74 and 75 are initially set at the beginning of each block. All '0' data are initially set at the latch 74, whereas all '1' data are initially set at the latch 75. The maximum level among the picture element data of the same block, which are sequentially supplied, is stored in the latch 74. The minimum level of the picture element data of the same block, which are sequentially supplied, is stored in the latch 75. As soon as the detection of the maximum level and the minimum level is completed with respect to one block, the maximum level of the block appears at the output of the selector 72, whereas the minimum value of the block appears at the output of the selector 73. In response to the completion of the detection on one block, the initial setting of the latches 74 and 75 is executed. At the output of the subtractor 76, the dynamic range of each block, which is produced by subtracting from the maximum level MAX from the selector 72 the minimum level MIN from the selector 73, is obtained. These dynamic range DR and the minimum level MIN are latched in latches 77 and 78, respectively, by latch pulses from the control unit 79. The dynamic range DR of each block is obtained at an output terminal 81 of the latch 77, and at an output terminal 82 of the latch 78, the minimum value MIN is obtained. j. Variable length encoding Fig.16 is for illustrating the encoding of a variable bit number adaptive to the dynamic range established at the above-mentioned quantization circuit 63. This encoding is a process for converting picture element data after the elimination of the minimum value into a representative level. The tolerable maximum value (called maximum distortion) of quantization distortions occurring in this quantization is made to have a predetermined value, for instance, 4. A of Fig.16 shows the case of a dynamic range of 8 (difference between the maximum value MAX and the minimum value MIN). In the case of (DR = 8), a middle level 4 is brought to a representative level LO to (maximum distortion E = 4). Namely, in the case of (0 ≦ DR ≦ 8), the central level of the dynamic range is defined as the representative level, and there is no need to transmit quantized data. As a result, the necessary bit-length Nb is 0. On the reception side, the decoding for bringing the representative level L0 to a decoded value is done on the basis of the minimum value MIN and the dynamic range DR of a block. B of Fig.16 shows the case of (DR = 17), and representative levels are defined as (L0 = 4) (11 = 13), respectively, with the maximum distortion E equal to 4. Since there are two representative levels L0 and L1, (Nb = 1) is established. In the case of (9 ≦ DR ≦ 17), (Nb = 1) is established. The maximum distortion E becomes small as the dynamic range DR becomes narrow. C of Fig.16 shows the case where (DR = 35) where representative levels are defined as (L0 = 4) (L1 = 13) (L2 = 22) (L3 =31), respectively, and (E4 = 4) is established. Since there are four representative levels L0 to L3, (Nb = 2) is established. In the case of (18 ≦ DR ≦ 35), Nb = 2 is defined. In the case of (36 DR 71), eight representative levels (L0 to L7) are employed. D of Fig.16 shows the case of (DR = 71) where representative levels are defined as (L0 = 4) (L1 = 13) (L2 = 22) (L3 = 31) (L4 = 40) (L5 = 49) (L6 = 58) (L7 = 67), respectively. To distinguish the eight representative levels L0 to L7 from one another, (Nb = 3) is established. In the case of (72 ≦ DR ≦ 143), 16 representative levels (L0 to L15) are used. E of Fig.16 shows the case of (DR = 143) where representative levels are defined as (L8 = 76) (L9 = 85) (L10 = 94) (L11 = 103) (L12 = 112) (L13 = 121) (L14 = 130) (L15 = 139) (L0 to L7 are the same as the above-mentioned values). To make a distinction among the 16 representative levels (L0 to L15), (Nb = 4) is defined. In the case of (144 ≦ DR ≦ 287), 32 representative levels (L0 to L31) are employed. F of Fig.16 shows the case of (DR = 287) where representative levels are defined as (L16 = 148) (L17 = 157) (L18 = 166) (L19 = 175) .... (L27 = 247) (L28 - 256) (L29 = 265) (L30 = 274) (L0 to L15 are the same as the above-mentioned values). To distinguish the 32 representative levels from one another, (Nb = 5) is defined. Actually, since input picture element data are quantized with 8 bits, the maximum value of the dynamic range DR is 255 so that no quantization into the representative levels (L28 to L31) is performed. Because a television signal in one block has a three-dimensional correlation on the two-dimensional direction of the horizontal and vertical directions and the time direction, the amplitude of level change of picture element data contained in the same block is small at a stationary portion of the picture. As a result, even when the dynamic range of data DTI after the elimination of the minimum level MIN shared by picture element data in the block is quantitized with a quantization bit number less than the original quantization bit number, quantization distortions rarely occur. By the reduction of the quantization bit number, the data transmission band can be made smaller than the original one. k. Modifications In this invention, the sub-sampling rate is not limited to 1/2 and may be equal to or larger than 1/3. For example, in the sub-sampling of 1/3, sub-sampling points are shifted by one picture element over three blocks continuous in time. Also, when attention is paid to one block of a picture, smoothing processing for incorporating picture data of a previous block into picture data of the first one of two areas forming a still block may be performed at the adaptive interpolation circuit 31. Namely, when the area A2 of the previous block is moved to the area (A3 + A4)/2 of the interframe average value as shown in Fig.17, the average value (2A2 + A3 + A4)/4 of data of that area and data of the area of the previous block is employed in place of data of (A3 + A4)/2. Similarly, instead of data (A5 + A6)/2 of the next block lying in the boundary with the previous block, (A3 + A4 + A5 + A6)/4 is used. Since a picture in which picture information of the previous block and the present block is mixed, appears between different, temporally contiguous blocks through the above-mentioned smoothing processing, jerkiness in which the movement of an object in the picture becomes discontinuous, is reduced. Further, the invention is applicable not only to a variable length encoding system but also to a fixed length encoding system. In the fixed length encoding system, the dynamic range DR of every block is divided into the level range of the number defined by the quantization bit number, and a code signal of a predetermined bit number corresponding to a level range to which data after the elimination of the minimum value belong is developed. In this one embodiment, the middle values L0, L1, L2, L3 ... of each area obtained by the division of the dynamic range are employed as values at the decoding time as shown in Fig.16. This encoding method enables the quantization distortions to be small. Meanwhile, a number of picture element data having respective levels of the minimum level MIN and the maximum level MAX are necessarily present in one block. For this reason, to provide a number of code signals having no error, the dynamic range DR is divided into (2 m -1) (where m is the quantization bit number) as shown in Fig.18, defining the minimum level MIN as the representative minimum level L0 and the maximum level MAX as the representative maximum level L3. The example of Fig.18 shows the case of a quantization bit number of two. In the foregoing description, the code signal DT, the dynamic range DR, the minimum value MIN and the discrimination code SJ are transmitted. However, the maximum value MAX, the quantization step or the maximum distortion may be transmitted as the added codes instead of the dynamic range DR. Also, data of one block may be taken out simultaneously by a circuit of combination of a frame memory, a line delay circuit and a sample delay circuit. Further, a three-dimensional block may be composed of n-frame data of more than three frames, without being limited to two frames. According to the invention, the phase of sub-sampling is shifted in a period of m blocks in addition to the reduction of the sub-sampling frequency of transmitted data by 1/m sub-sampling. As a result, the interpolation of a still block whose deterioration would otherwise tend to be visually noticeable can simply be performed in an excellent manner, and decoded pictures of good quality can be obtained.

Claims: A high efficiency coding apparatus for coding digital video data in a format composed of blocks of digital video data and for allowing compression of the video data, comprising: movement discriminating means (3) for discriminating the presence of movement in each block and for generating a movement signal (SJ); sub-sampling means (5,6) for sub-sampling each of said blocks of the digital video data to reduce the number of picture elements in each said block to 1/n of the original number of the picture elements; and transmitting means (12-19) for transmitting the output of said sub-sampling means (5,6) and said discriminating code (SJ); characterised in that the apparatus is adapted to code data in a format representing consecutive three-dimensional blocks of picture elements, that the sub-sampling means (5,6) are adapted to operate such that the phases of sub-sampling of time-sequential blocks are shifted cyclically with a period of n frames, and in that said movement signal comprises a discriminating code (SJ) indicating only the presence or absence of movement in a block. Apparatus as claimed in claim 1, wherein said transmitting means (12-19) includes compression encoding means (13,14) for encoding output data of said sub-sampling means (5,6) into compressed data. Apparatus as claimed in claim 2, wherein said sub-sampling means (6) includes averaging means (5,6) for averaging digital data of plural video fields and means (4) for sub-sampling an output of said averaging means (4) when said discriminating code (SJ) indicates that no movement exists among said plural video fields. Apparatus as claimed in claim 3, wherein said compression encoding means (13,14) includes first (13) and second (14) encoding means for two-dimensional and three-dimensional blocks, respectively, output data of said sub-sampling means (5,6) being supplied to said first (13) and second (14) encoding means selectively and controlled by said discriminating code (SJ). Apparatus as claimed in any one of the preceding claims, wherein said movement discriminating means (3) includes: a first comparator (51) for comparing digital data of a picture element in a first video field and digital data of a corresponding picture element in a second video field; absolute value generating means (52) supplied with an output of said first comparator (51) to generate the absolute value thereof, a second comparator (54a) for comparing an output of said absolute value generating means (52) with a reference value; and discriminating means (55) for discriminating an output of said second comparator (54a), thereby generating said discrimination code. A decoding apparatus for decoding data transmitted by a coding apparatus for coding digital video data in a format composed of consecutive blocks of digital video data representing a three-dimensional group of picture elements, said coding apparatus having movement discriminating means for discriminating the presence of a movement in each block and generating a discriminating code; sub-sampling means for sub-sampling each said block of digital video data so as to reduce the number of picture elements to 1/n of the original number of the picture elements, the phases of sub-sampling of time-sequential blocks being shifted cyclically with a period of n frames; and transmitting means for transmitting an output of said sub-sampling means and said discriminating code, said decoding apparatus being characterised in that it comprises: discriminating code separating means (22) for separating said discriminating code (SJ) from said sub-sampled data, and adaptive interpolation means (31) for interpolating thinned-out data from actually transmitted data, the interpolation system used by said interpolation means (31) being selected from a plurality of such systems according to whether said discriminating code (SJ) indicates that the presently considered block includes movement or not. A decoding apparatus as claimed in claim 6, wherein the operation of said interpolation means is controlled by an output of decoding means (34) for decoding n discriminating codes of the n time-sequential blocks. A decoding apparatus as claimed in claim 7, wherein said interpolation means (31) is arranged to interpolate thinned-out data by combining data of said n blocks when all discriminating codes indicate that no movement exists in said blocks and said interpolation means interpolates thinned-out data from data in the same video field that said thinned-out data belongs to when the discriminating code of a current block indicates that the movement exists in said current block. A high efficiency coding apparatus according to any one of claims 1 to 5, further comprising: first and second detecting means (72,74; 73,75 in Fig 15) for detecting maximum and minimum values, respectively, of said sub-sampled digital data in each of said blocks; means (76-78) for generating dynamic range information (DR) for each said block representative of the difference between said maximum and minimum values of the respective block; means (61 in Fig 12) for generating modified digital video data (PDI) for each of said blocks representing the difference between each of the sub-sampled digital video data and either one of said maximum and minimum values for said respective blocks; and means (63 in Fig 12) for encoding said modified digital video data using fewer bits than in the original digital video data so as to provide coded data (DT) of a reduced bit length; wherein said transmitting means (15-19) transmit said coded data (DT) of reduced bit length and an additional code for each of said respective blocks formed of at least two of said maximum and minimum values and a signal corresponding to said dynamic range information (DR).

Inventors: KONDO TETSUJIRO, KONDO, TETSUJIRO
Applicants: SONY CORP, SONY CORPORATION
Application year: 1987
Main classification: H04N7
IPC codes: H04N7, G06T7