Abstract:
A novel group of optimized variable word-length codes for intra coded pictures is disclosed. Hardware complexity and implementation cost is minimized by only optimizing the variable word-length codes for intra coded pictures for a small, but frequently occurring number of discrete cosine transform events. A table of variable word-length codes conforming to the Motion Pictures Expert Group Phase 1 (&#34;MPEG-1&#34;) standard may be used for the remaining number of less frequently occurring events. In an illustrative example of the invention, the MPEG-1 variable word-length code table is also used to code non-intra pictures which advantageously allows for totally compatible operation with the MPEG-1 standard.

Description:
TECHNICAL FIELD 
     This invention relates to coding of video signals. More particularly, this invention relates to improved variable length coding to improve overall coding efficiency. 
     BACKGROUND 
     Transform coding is an efficient image compression scheme that typically involves segmenting a picture, or image, into blocks of pixels, taking discrete cosine transforms (&#34;DCTs&#34;) of the blocks of pixels to obtain blocks of DCT coefficients, quantizing these coefficients, and coding the quantized coefficients by an entropy coder. Interframe coding schemes utilizing motion compensation and transform coding of motion compensated interframe differences, by taking DCTs of blocks of difference pixels, quantizing the DCT coefficients and entropy coding the quantized DCT coefficients, may also be employed. 
     Interframe coding employing motion compensation and DCT coding has become widely recognized as a particularly efficient coding scheme for video compression and forms the core of the Comite Consulatif International Telegraphique et Telephonique Recommendation H.261-Video Codec for Audiovisual Services at 64 Kbit/s, Geneva, August, 1990 (&#34;CCITT H.261&#34;) and the Motion Pictures Expert Group Phase 1 (&#34;MPEG-1&#34;) video compression standards. The MPEG-1 standard is set forth in International Standards Organization (&#34;ISO&#34;) Committee Draft 11172-2, &#34;Coding of Moving Pictures and Associated Audio for Digital Storage Media at up to 1.5 Mbits/s,&#34; November, 1991. The CCITT H.261 standard primarily addresses coding of video conferencing scenes of Common Intermediate Format resolution at bitrates of 64 kbit/s to 2 Mbit/s; the MPEG-1 standard can be efficiently used for coding all types of video scenes in the 1 to 2 Mbit/s range. The MPEG-1 standard incorporates additional features, for example, group-of-pictures concepts, motion compensated bidirectional prediction, and variable word-length coding. Variable word-length coding, which is also known as Huffman coding, is typically employed after the DCT portion of the encoding process. Each DCT event, comprised of run-length and level, is represented by a codeword whose length depends upon the relative value of the coefficient. Longer word lengths may be used to represent higher valued coefficients while shorter word lengths may be used to represent coefficients having a value of zero or close to zero. MPEG-1 supports the coding intra-coded (&#34;I-&#34;), predictive-coded (&#34;P-&#34;), and bidirectional predictive (&#34;B-&#34;) pictures. Unfortunately, because the MPEG-1 standard was initially applied in the coding of low resolution video, it is not fully optimized for coding of higher resolution video sources such as interlaced video conforming to the Comite Consultatif International des Radiocommunications Recommendation 601 and the high definition television format. 
     Consequently, many improvements to video coding have been developed since the adoption of the MPEG-1 standard. One such improvement is discussed in U.S. Pat. No. 5,227,878 by A. Puri et al. which includes reference to adaptive word-length coding. The use of such a variable word-length coding scheme produces a substantial improvement in coding efficiency. 
     SUMMARY 
     The efficiency of variable word-length coding is significantly increased, in accordance with the invention, by employing a novel group of optimized variable word-length codes for intra coded pictures. Hardware complexity and cost is minimized by only optimizing the variable word-length codes for intra coded pictures for a small, but frequently occurring, number of DCT events. An MPEG-1 variable word-length coding table may be used for the remaining larger number of less frequently occurring events. 
     In an illustrative example of the invention, the MPEG-1 variable word-length code table is also used to code non-intra pictures which advantageously allows for totally compatible operation with the MPEG-1 standard. 
     The discussion in this Summary and the following Brief Description of the Drawings, Detailed Description, and drawings only deal with examples of this invention and is not to be considered in any way a limitation on the scope of the exclusionary fights conferred by a patent which may issue from this application. The scope of such exclusionary rights is set forth in the claims at the end of this application. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a simplified block diagram of an illustrative interframe motion compensated transform encoder. 
     FIG. 2 is a block diagram of details of an illustrative variable length encoder which is part of the interframe motion compensated transform encoder shown in FIG. 1. 
     FIG. 3 shows the code length assignments of a variable length code table for DCT events conforming to the MPEG-1 standard employed by the illustrative variable length encoder shown in FIG. 2 and the illustrative decoder shown in FIG. 5. 
     FIG. 4 is a simplified block diagram of an illustrative interframe motion compensated transform decoder which corresponds to illustrative encoder shown in FIG. 1. 
     FIG. 5 shows details of the illustrative variable length decoder which is part of interframe motion compensated transform decoder shown in FIG. 4. 
     FIG. 6 shows the optimized code lengths in the variable length code table for intra DCT events employed by the illustrative encoder shown in FIG. 2 and the illustrative decoder shown in FIG. 5, in accordance with the invention. 
     FIG. 7 is a simplified block diagram of an illustrative variable length encoder table selector for DCT events, arranged in accordance with the invention. 
     FIG. 8 is a simplified block diagram of an illustrative variable length decoder table selector for DCT events, arranged in accordance with the invention. 
     FIG. 9 is a simplified block diagram of an illustrative encoder employing selectable variable length coding from an MPEG-1 variable length code table and the variable length table for intra DCT events shown in FIG. 6, in accordance with the invention. 
     FIG. 10 is a simplified block diagram of an illustrative decoder employing selectable variable length code from an MPEG-1 variable length code table and the variable length table for intra DCT events shown in FIG. 6, in accordance with the invention. 
    
    
     DETAILED DESCRIPTION 
     FIG. 1 is a simplified block diagram of an illustrative interframe motion compensated transform encoder. Video frames enter one-by-one at bus 100. Subtracter 105 differences an input frame of video on bus 100 with a prediction frame available on bus 180. The resulting prediction error signal appears on bus 110 and is transform encoded by the transform encoder 120 which outputs quantized and scanned transform coefficients on bus 125, and also simultaneously on buses 130 and 185. Variable length encoder 190 entropy encodes these coefficients and the overhead on bus 187 and outputs a multiplexed stream of bits on bus 195 for transport over a transmission channel or to a storage disk for delivery to a decoder. The coefficients also are fed back on bus 130 to transform decoder 140 which outputs on bus 145, an approximation of the prediction error signal sent on bus 110. To this approximated prediction error signal on bus 145, the prediction signal available on bus 175 is summed in the adder 150, resulting in locally reconstructed output on bus 155 which is fed to motion estimator and motion compensated predictor 165 whose output is the prediction signal on bus 170. As will be appreciated by those skilled in the art, the operation of motion estimator and motion compensated predictor 165 need not be disclosed in great detail here in order to practice the invention. However, it is necessary to explicitly state that motion compensated estimator and predictor 165 not only computes motion estimates required for forward prediction, as in the CCITT H.261 standard, but also computes motion estimates required for forward and backward predictions as in the MPEG-1 standard. The prediction signal on bus 170 is simultaneously made available on bus 180 as an input to subtracter 105, as well as on bus 175 as an input to adder 150. 
     FIG. 2 is a block diagram of details of an illustrative variable word-length encoder 190 which is part of the interframe motion compensated transform encoder shown in FIG. 1. It is necessary to point out that the following description of the concept of variable word-length encoding is substantially simplified for the purpose of illustrating the invention. Of course, those skilled in the art will appreciate that an actual implementation of the invention could be facilitated by performing equivalent operations without explicitly following the structure shown here. The DCT events, comprising run-length and level, from transform encoder 120 (FIG. 1) are fed on bus 201 to variable word-length encoder for DCT events 205, which in turn, sends events one-by-one on line 206 to variable word-length code table for DCT events 210. The coded representation of these events is output on line 211 to variable word-length encoder for DCT events 205. Variable word-length encoder for DCT events 205 concatenates the coded representation with some fixed length codes, if necessary, before outputting the coded bits representing DCT events on bus 215 to variable word-length encoder of overhead and bitstream formatter 220, which has at its other input 219, various overhead data such as headers, motion vectors, quantization and coding parameters. This overhead data is sent to variable word-length code tables for overhead 225 on line 221 and coded representation of the overhead is returned on line 226. The codes representing overhead are multiplexed with coded DCT events in variable word-length encoder of overhead and bitstream formatter 220 to form a bitstream which is output on bus 230. 
     FIG. 3 illustrates the code length assignments of a variable word-length code table for DCT events conforming to the MPEG-1 standard employed by the illustrative encoder shown in FIG. 2 and the illustrative decoder shown in FIG. 5. Included in FIG. 3 are variable word-lengths code table 300, subtable 301, and remainder table 302. Shorter code lengths are assigned to the very frequently occurring events in the subtable 301, where as longer codewords are assigned to events occurring in the remainder table 302. As will be appreciated by those skilled in the art, none of these tables show the actual variable word-length codes, but rather, only the lengths of these codes. This variable word-length code table is included in the MPEG-1 standard. However, the MPEG-1 variable word-length code table is relevant to the invention in that I have superimposed a subtable and remainder table approach to the table which forms the basis for low complexity, but optimized, variable word-length code tables as described in greater detail below. 
     FIG. 4 is a simplified block diagram of an illustrative interframe motion compensated transform decoder which corresponds to the illustrative encoder shown in FIG. 1. An incoming stream of bits from a transport medium, such as a transmission channel or a storage disk, is input over bus 400 to variable word-length decoder 410. Variable word-length decoder 410 demultiplexes and decodes the bit pattern codes representing different overheads 415, and the encoded events representing quantized DCT events. The latter are output on bus 420 and fed to transform decoder 430. Transform decoder 430 is an exact replica of transform decoder 140 in the local decoding loop of the generalized interframe encoder shown in FIG. 1. In fact, in absence of errors on the transport medium, the input on bus 420 of the transform decoder 430 and the output of transform decoder on bus 440, carry the exact corresponding signals as the input on bus 130 of the transform decoder 140 and its output on bus 145. Next, the decoded blocks of pixels representing approximated prediction error signal on bus 440 are summed in adder 485 with prediction signal 480 at the output of motion compensated predictor 470. The output of the adder 485 appears on bus 490 and represents the decoded video at bus 495. The same output is also fed back to the motion compensated predictor 470 via bus 460 and the prediction generated by 470 is output on bus 480 forming one input to adder 485. Those skilled in the art will appreciate that the principles of operation of motion compensated predictors is known in the art and need not be presented in detail here. As above, motion compensated predictor 470 can produce not only the forward prediction, as in the CCITT H.261 standard, but also the forward and the backward predictions as in the MPEG-1 standard. Thus, the operation of motion compensation loop of the local encoder and decoder are practically identical, except that the decoder does not compute motion vectors, as they are extracted from the decoded bitstream. 
     FIG. 5 illustrates details of the illustrative variable word-length decoder which is part of interframe motion compensated transform decoder shown in FIG. 4. An incoming bitters on bus 501 is input to variable word-length decoder for overhead and bitstream unformatter 505 which, depending on the context, tries to match the codes in the bitstream sent over line 507 with the codes in variable word-length code tables for overhead 510. Decoded overhead data is output on line 511. The decoded overhead stream is identified as individual overhead data such as headers, motion vectors, quantization and coding parameters. This data is output on line 506 while the remaining undecoded bitstream comprising DCT events is sent on bus 515 to variable word-length decoder for DCT events 520 which tries to match the bitstream on line 521 to the variable word-length code table for DCT events 525. The matched events are sent on line 526 to variable word-length decoder for DCT events 520 which outputs them on bus 530. This process continues until the sequence end code in the bitstream is reached. 
     FIG. 6 shows the optimized code length assignments to the various DCT events in the intra variable word-lengths code table 600, in accordance with the invention. Also shown is subtable 601 which has the same shape as subtable 301 shown in FIG. 3. Shorter code lengths are assigned to the very frequently occurring events in subtable 601, whereas longer codewords are assigned to the less frequently occurring events in remainder table 602. The specific code lengths in subtable 601 are different from that in subtable 301, in accordance with the invention, since the code length assignments in subtable 601 are based on optimizations on DCT events produced by the intra signal, whereas codes in 301 were based on optimization on DCT events produced by nonintra (i.e., inter and/or predicted) signals. As above when discussing FIG. 3, table 600 does not show the actual variable word-length codes, but only the lengths of these codes. The actual variable word-length codes for intra DCT events subtable are listed in Table 1 below. The remainder table codes are same as that in MPEG-1 and are not shown here. Thus, to keep the complexity low, only a new subtable is introduced which contains optimized codes for frequently occurring events while retaining the MPEG-1 codes for remaining intra DCT events. This variable word-length code length subtable and remainder table approach used by my invention significantly reduces implementation complexity without compromising performance. Advantageously, higher compression than that afforded by the MPEG-1 based variable word-length coding for intra signals is thus achieved. 
     FIG. 7 is a simplified block diagram of a variable word-length encoder table selector for DCT events, arranged in accordance with the invention. Variable word-length encode table selector for DCT events 700 allows selection between the MPEG-1 variable word-length code table for DCT events shown in FIG. 3 and the variable word-length code table for intra DCT events shown in FIG. 6. Quantized DCT events appear on bus 701 and pass through a switch 705 which is controlled by signal &#34;ivl&#34; on bus 704 after the events are scanned into a one-dimensional sequence (not shown). The output of switch 705 appears on bus 706 if the &#34;ivl&#34; signal is disabled and on to the MPEG-1 variable word-length code table for DCT events 710. MPEG-1 variable word-length code table for DCT events 710 outputs a coded representation of the DCT events on bus 711 and through switch 720, which is controlled by the &#34;ivl&#34; signal on bus 712, to bus 725. If the &#34;ivl&#34; signal is enabled, DCT events are fed to bus 707 through switch 705, coded using intra variable word-length code table for DCT events 715, and output on bus 716 through switch 720 to bus 725 as shown. The &#34;ivl&#34; signal is enabled if intra variable word-length table for DCT events 715 is to be used and applied to code intra macroblocks only. The nonintra macroblocks are coded with the MPEG-1 variable word-length code table. 
     FIG. 8 is a simplified block diagram of an illustrative variable word-length decoder table selector for DCT events, arranged in accordance with the invention. Variable wordlength decode table selector for DCT events 800 allows selection between the MPEG-1 variable word-length code table for DCT events shown in FIG. 3 and the variable word-length code table for intra DCT events shown in FIG. 6. Variable word-length coded DCT events appear on bus 801 and pass through switch 805 which is controlled by signal &#34;ivl&#34; on bus 805. The output of switch 805 appears on bus 806 if &#34;ivl&#34; is disabled and to the MPEG-1 variable word-length code table 810, which outputs decoded DCT events on bus 811 and then through switch 820, which is controlled by &#34;ivl&#34; on bus 812, to bus 825. If &#34;ivl&#34; is enabled, variable word-length coded DCT events are fed to bus 807 through switch 805 and decoded using intra variable word-length code table 815 and output on bus 816 through switch 820 to bus 825. The &#34;ivl&#34; signal is enabled if intra variable word-length table 815 is to be used and applied for decoding of intra macroblocks only. The nonintra macroblocks are decoded with the MPEG-1 variable word-length code table. 
     Those skilled in the art will appreciate that the adaptive selection between two variable word-length code tables can be applied on a block, a macroblock or on a picture basis. However, as a practical constraint, the overhead necessary to indicate variable word-length code table selection information to the decoder becomes significant compared to the savings if selection on a macroblock or block basis is adopted. Furthermore, the encoder complexity also increases substantially when posterior selection of the variable word-length code table, based on bit counting using both tables and selecting the one producing smaller bit counts, is adopted. In addition, for the most optimum results, a full variable word-length code table is necessary in addition to the MPEG-1 variable length code table for DCT events. I have determined that a good tradeoff in complexity versus improvement in performance is achieved by providing an extra variable word-length code table in addition to the MPEG-1 table, but keeping it small in size using a subtable/remainder table approach in accordance with the invention. Additionally, the table is selectable on a global basis, such as at a sequence layer or picture layer, to apply to all intra coded macroblocks. Local adaptation between the two tables on a block or macroblock layer is not allowed. 
     Various control and data signals helpful in understanding the operation of some of elements in FIGS. 9 and 10 are listed below: 
     pt: picture types allowed are I-, P-, B- as in MPEG- 1. 
     ps: picture structure (Frame or field). 
     ivl: vlc selection for a picture. 
     qt: quantizer type table selected for a picture. 
     asc: alternate scan selected for a picture mv: motion vector/s of a macroblock. 
     mot: motion type (Frame or field or dualprime or submacroblock) for a macroblock. 
     cdt: coding type (Frame or field) for a macroblock. 
     fm: forward motion direction of a macroblock. 
     bm: backward motion direction of a macroblock. 
     qs: quantizer scale chosen for a macroblock. 
     cbp: coded block pattern of a macroblock int: intra/inter coding mode for a macroblock. 
     shi: sequence header information phi: picture header information mbhi: macroblock header information. 
     iqm: intra quantizer matrix for a sequence or part of a sequence. 
     niqm: nonintra quantizer matrix for a sequence or pan of a sequence. 
     FIG. 9 is a simplified block diagram of an illustrative encoder employing selectable variable word-length code from an MPEG-1 variable word-length code table and the variable word-length table for intra DCT events shown in FIG. 6, in accordance with the invention. The structure of this encoder is quite similar to the generalized interframe encoder shown in FIG. 1. Although it shows several extra operations and low level data and control signals, the portions of the circuit not directly related to our invention is not covered in great detail as it will be readily apparent to those skilled in the art. 
     Video enters at bus 900 and is input via bus 901 to subtracter 902 where it is differenced with its prediction signal on bus 958. The difference appears on bus 903 and enters frame/field formatter 905 where it is retained as frame blocks or converted to field blocks on a macroblock basis. The output of frame/field formatter 905 appears on bus 906 and undergoes various DCT transform, quantization and scanning of quantized DCT coefficients operations in DCT, quantizer, and scan selector 910. For quantization, on a picture basis, a selection from two quantization tables is allowed by the &#34;qt&#34; signal. The intra or inter quantization characteristics are selected by the &#34;int&#34; signal on a macroblock basis and corresponding quantization weighting matrix &#34;iqm&#34; and &#34;niqm&#34; are applied. The outcome of operations in DCT, quantizer, and scan selector 910 include quantized DCT coefficients scanned to generate DCT events on bus 914. Signals representing coded blocks in a macroblock &#34;cbp&#34; on line 911, quantizer step size &#34;qs&#34; on line 912, and scan selection information &#34;asc&#34; on line 913 are also utilized as shown. The scanned quantized coefficients appear on bus 914 and are sent to variable word-length encoder for DCT events 915 which uses a variable word-length table selector 920 under the control of intra variable word-length selection information &#34;ivl&#34; on line 919. Variable word-length encoder for DCT events 915 is similar in form and operation as selector 700 shown in FIG. 7. Generated codes from variable word-length encoder for DCT events 915 are sent on bus 917 to variable word-length encoder for overhead and bitstream formatter 990 where various type of overhead headers, such as sequence layer headers &#34;shi&#34; on bus 960, picture layer headers &#34;phi&#34; on bus 970, macroblock header information &#34;mbhi&#34;, which consists of motion vectors, quantization and coding information on bus 985, are coded using variable word-length code table for overhead 987. The resulting multiplexed bitstream is output on bus 995 and may be packetized (not shown) before storage on a disk or transmission. The sequence header information on bus 960 consists of intra and inter quantization weighting matrices on line 961. The picture header information on bus 970 carries picture type &#34;pt&#34; on line 962, picture structure &#34;ps&#34; on line 963, intra VLC selection &#34;ivl&#34; on line 964, alternate scan selection &#34;asc&#34; on line 965 and quantizer type &#34;qt&#34; on line 966. The macroblock header information on bus 985 carries quantizer step &#34;qs&#34; on line 984, motion type &#34;mot&#34; on line 983, motion vector &#34;mv&#34; on line 982, coding type &#34;cdt&#34; on line 981, and macroblock type &#34;mbt&#34; on line 980. The macroblock type is obtained from macroblock classifier 975 as a result of input control signals including forward motion &#34;fm&#34; on line 971, backward motion &#34;bm&#34; on line 972, coded block pattern &#34;cbp&#34; on line 973 and intra/inter decision &#34;int&#34; on line 974. The bitstream representing coded data and overhead appears on bus 995 for transport or storage. 
     A local decoding loop at the encoder receives scanned quantized DCT coefficients on bus 921. These DCT coefficients are inverse scanned in inverse scan selector, inverse quantizer, and inverse DCT 930 which requires alternate scan control &#34;asc&#34; to determine which scan to use, as several alternate scans may be available. The DCT coefficients are then inverse quantized and inverse DCT in inverse scan selector, inverse quantizer, and inverse DCT 930. All but one of the control signals input or output from DCT, quantizer, and scan selector 910 are input control signals to inverse scan selector, inverse quantizer and inverse DCT 930. Line 926 carries quantizer matrices, line 927 carries &#34;int&#34;, line 928 carries &#34;qt&#34;, and line 929 carries &#34;qs&#34;. The output of inverse scan selector, inverse quantizer, and inverse DCT 930 includes reconstructed prediction error blocks on bus 931 which undergo frame/field unformatting in field/frame unformatter 935 to invert the formatting operation of 905. The reorganized prediction error blocks on bus 936 are summed with the motion compensated prediction on bus 957 in adder 940 resulting in local reconstructed output on bus 941, which in turn is used for calculation of motion compensated prediction in frame/field/dualprime motion estimator and compensator 950. There are several choices regarding motion compensation methods in frame/field/dualprime motion estimator and compensator 950. The best choice is indicated by motion type &#34;mot&#34; on line 948 and the corresponding motion vectors &#34;mv&#34; are output on 947. Several control signals such as picture structure &#34;ps&#34; on line 942, forward motion &#34;fm&#34; on line 943, backward motion &#34;bm&#34; on line 944 and picture type &#34;pt&#34; on line 945, control the operation of frame/field/dualprime motion estimator and compensator 950, whose output is a motion compensated prediction signal on bus 951. This signal is compared with original on bus 953 to determine which signal would be more efficient to code in intra/inter selector 955, yielding a control signal &#34;int&#34; on line 956 and prediction signal on bus 954 which appears simultaneously on buses 957 and 958. 
     FIG. 10 is a simplified block diagram of an illustrative decoder employing selectable variable word-length codes from an MPEG-1 variable word-length code table and the variable word-length table for intra DCT events shown in FIG. 6, in accordance with the invention. The decoder performs a subset of operations performed by local decoder in the encoder shown in FIG. 9, Thus it only needs to be described briefly. A bitstream at bus 1000 feeds a variable word-length decoder for overhead and bitstream unformatter 1005, where depending on the context, codewords representing control and data forming sequence header information and macroblock header information, are identified and their values decoded using variable word-length code tables for overhead 1008. The sequence header information &#34;shi&#34; is available on bus 1010 and comprises quantizer matrices &#34;iqm&#34; and &#34;niqm&#34; on line 1011. The picture header information &#34;phi&#34; is available on bus 1030 and comprises picture type &#34;pt&#34; on line 1031, picture structure &#34;ps&#34; on line 1032, intra vlc select &#34;ivl&#34; on 1033, alternate scan select &#34;asc&#34; on line 1034, and quantizer type &#34;qt&#34;, on line 1035. The macroblock header information on bus 1015 comprises quantizer step size &#34;qs&#34; on line 1016, motion type &#34;mot&#34; on line 1017, motion vectors &#34;mv&#34; on line 1018, coding type &#34;cdt&#34; on line 1019, and macroblock type &#34;mbt&#34; on line 1020. The macroblock type &#34;mbt&#34; on line 1020 is analyzed in macroblock unclassifier 1025 to yield intra/inter decision &#34;int&#34; on line 1026, coded block pattern &#34;cbp&#34; on bus 1029, forward motion &#34;fro&#34; on line 1028, and backward motion &#34;bm&#34; signal on line 1027. The remaining bitstream containing DCT events are decoded in variable word-length decoder for DCT events 1040 using variable word-length decode tables selector for DCT events 1023 under control of intra variable word-length selection signal &#34;ivl&#34; on line 1024. Decoded coefficient data is output on bus 1041 and forms the input to inverse scan selector, inverse quantizer and inverse DCT 1045. 
     In inverse scan selector, inverse quantizer and inverse DCT 1045, an inverse scan operation reorders the DCT coefficients to produce normally ordered DCT coefficients. Inverse scan selector, inverse quantizer and inverse DCT 1045 uses quantization matrices &#34;iqm&#34; and &#34;niqm&#34; on line 1038, intra/inter decision &#34;int&#34; on bus 1042, quantizer type &#34;qt&#34; on bus 1043, and quantizer step size &#34;qs&#34; on bus 1044 to perform inverse quantization. The output of inverse scan selector, inverse quantizer and inverse DCT 1045 on bus 1046 is frame/field unformatted in frame/field unformatter 1050 into blocks of pixels on bus 1051. The blocks are summed to a motion compensated prediction signal on bus 1075 in adder 1052. The resulting signal on bus 1053 includes reconstructed video on bus 1053, 1054 and 1080. The reconstructed video on bus 1054 is used to generate motion compensated prediction in frame/field/dualprime motion compensator 1065 which is controlled by signals &#34;fm&#34; on line 1055, &#34;bm&#34; on line 1056, &#34;ps&#34; on line 1057, &#34;pt&#34; on line o 1058, &#34;my&#34; on line 1059, and &#34;mot&#34; on line 1060. The major difference with respect to frame/field/dualprime motion estimator and compensator 950 in encoder (FIG. 9) is that these signals do not need to be generated, but are instead extracted from various header information layers in the bitstream. The output of frame/field/dualprime motion estimator and compensator 1056 is available on bus 1066, and is either applied unaltered to bus 1075 via intra/inter adapter 1070 or is zeroed out when &#34;int&#34; on line 1067 controlling intra/inter adapter is &#34;1&#34; and output on bus 1075. 
     
                       TABLE 1______________________________________Variable word-length Code               Run-length                         Level______________________________________0110                EOB10s                 0         1010s                1         1110s                0         200101S              2         10111s               0         300111s              3         1000110s             4         100110s              1         2000111s             5         10000110s            6         10000100s            7         111100s              0         40000111s            2         20000101s            8         11111000s            9         111101s              0         5000101s             0         61111001s            1         300100110s           3         21111010s            10        100100001s           11        100100101s           12        100100100s           13        1000100s             0         700100111s           1         411111100s           2         311111101s           4         2000000100s          5         2000000101s          14        1000000111s          15        10000001101s         16        11111011s            0         81111100s            0         900100011s           0         1000100010s           0         1100100000s           1         50000001100s         2         411111010s           0         1211111011s           0         1311111110s           0         1411111111s           0         15______________________________________ In Table 1, &#34;s&#34; stands for the sign of the level and takes a value of 0 when positive and 1 when negative. &#34;EOB&#34; represents a 4 bit endof-block. The remaining entries of the variable wordlength code table are the same as that of the known MPEG1 variable wordlength code table (not shown).