摘要:
A variable length code (VLC) decoding apparatus for decoding sequential variable length codewords includes a second barrel shifter cascaded to a first barrel shifter for providing a second table memory device with a decoding window output sequence which is directly shifted in response to a codeword length output from a first table memory device so that the first bit in the decoding window output sequence is the first bit of the next variable length codeword in a decoding window output sequence from the first barrel shifter; and the second table memory device for producing a fixed length codeword in response to each variable length codeword in the second decoding window output sequence, to thereby decode, at each clock cycle, consecutively two variable length codewords without an operational delay in an accumulator for shifting the decoding window of the first barrel shifter.
摘要:
An encoding apparatus having a 16-bit read-only-memory(ROM) and a general 16-bit microprocessor comprises: means for storing variable length code table data which is originally of 18 bit length in said ROM, means for processing a source code inputted from an input line in said microprocessor to convert said source code into an appropriate form for accessing said variable length code table data stored in said ROM so as to determine the length of the variable length code, and means for transmitting said variable length code of said determined length through a transmission line.
摘要:
A variable length decoder for decoding a variable length code. The variable length decoder includes a code length look-up table which receives n-j bits of an n-bit fixed-length word. A segment of the variable length code value is held in the n-j bits where n and j are integers and j is less than or equal to n. The code length look-up table produces a decoded code length value. The variable length decoder includes a code value look-up table which receives the n-bit fixed-length word and produces a decoded code value of the variable length code.
摘要:
A variable-length code table, which is used for producing a variable-length code from data formed of one set of first and second equal-length components, stores at an address uniquely assigned by the one set of the equal-length components a corresponding variable-length code and a code length of the variable-length code. Combination of the first and second equal-length components is preselected such that the maximum value of the absolute value of the first equal-length component increases as the absolute value of the second equal-length component combined therewith decreases. The second equal-length components are classified into a plurality of classes in accordance with the magnitude of the absolute value. Each address includes a first region having a value and a length uniquely specified based on the class including the second equal-length component, a second region storing the first equal-length component, and a third region storing the second equal-length component, and is constructed to have a fixed length as a whole. Region lengths of the second and third regions are determined correspondingly to the class including the second equal-length component, and each are specifically determined to have the minimum value required for storing the maximum values of the absolute values of the first and second equal-length components of the combinations of the equal-length components included in the corresponding class.
摘要:
A method for compressing and subsequently decompressing digital data communicated in an interactive computer network, the network designed to provide informational and transactional services to a very large population of users. The method features steps for compressing bytes of network data before transmission by substituting variable-length code words obtained from a fixed, look-up table, and, reconstituting the bytes using a fixed, decompression look-up table when the code words are received at the data reception site. In accordance with the invention, the compression and decompression look-up tables are statistically compiled by sampling the occurrence frequency of byte pairs in the network data stream, and where byte pairs are found to occur above a predetermined frequency, code words having lengths inversely related to the occurrence frequency are created for inclusion in the table so that a code word may be substituted for one byte of a pair when the other byte of the pair is found to precede it during compression, and the byte reconstituted from the code word using the decompression table when the code word is received at the reception site. Additionally, where a byte and its preceding byte constitute a pair not found within the pairs compression table, the method features steps for transmitting the byte compressed in accordance with a context-free encoding scheme, together with a suitable escape code word. Yet further, the method features steps for combining other compression and decompression procedures with the byte-pair compression and decompression to produce a compound compression scheme for the network data stream.
摘要:
A variable-length data alignment apparatus receives header data and blocks from different sources, forms a header based on the received header data and outputs the header followed by blocks. The variable-length data alignment apparatus has a RAM for storing the header data, and a buffer for storing the blocks. A processor produces a plurality of commands and processes the header data from the RAM. The commands are prosecuted in a multiplexer and a bit stream coder to form a header and to append the blocks, stored in the buffer, after the header.
摘要:
The present invention comprises an apparatus for decoding an ordered sequence of incoming binary bit-stream in serial containing a plurality of variable length codewords with a maximum codeword length of M. The decoding apparatus comprises a serial to parallel converting and shifting means for receiving the incoming bit stream, and for receiving a shift-count for shifting and converting the shift-count number of bits for adding to a parallel data record. The decoding apparatus further comprises a dictionary means including at least two dictionary tables for listing a plurality of standard codewords wherein each of the dictionary tables having a bit-length less than M. The decoding apparatus further comprises a decoding means for decoding the parallel data record by utilizing the dictionary means and to generate the shift-count as an input to the serial to parallel converting and shifting means.
摘要:
A variable length coder is disclosed having a ping-pong zigzag RAM, a zig-zag FIFO and a variable length integer (VLI), variable length code word (VLC) mixer. The ping-pong zig-zag RAM has a first RAM for processing each odd ordinalled block of the inputted sequence of blocks and a second RAM for processing each even ordinalled block of the inputted sequence of blocks. The zigzag FIFO has a comparator circuit, a counter and a FIFO. The comparator circuit is for determining whether or not an inputted coefficient is equal to zero. If the coefficient is non-zero, it is stored in the FIFO. If the coefficient equals zero, the counter increments a count maintained therein. The counter counts the number of zeros in each continuous sequence of zero coefficients in each block and outputs the count for each sequence of zeros for storage in the FIFO. The VLI,VLC mixer has a decoder for receiving the length of a VLC for each VLI,VLC pair and for outputting a mask word depending on the inputted VLC length. The VLI,VLC mixer also has a barrel shifter for receiving the VLI,VLC and VLC length. Using the mask word, the barrel shifter shifts the VLI to particular bit positions of a shifter register therein and inserts the VLC immediately adjacent to the shifted VLI.
摘要:
The present invention is a method (100) and apparatus (300) for adaptive entropy encoding/decoding of a plurality of quantised transform coefficients in a video/image compression system. For encoding, first, a predetermined number of quantized transform coefficients are received in a predetermined order, giving a generally decreasing average power. Then the quantized transform coefficients are parsed into a plurality of coefficient groups. When the last coefficient group comprises all zero quantized coefficients, it is discarded. The coefficient groups are then converted into a plurality of parameter sets in the predetermined order. A current parameter set is obtained from the parameter sets in the reverse order of the predetermined order. A current entropy encoder is selected adaptively based on the previously selected entropy encoder and the previous parameter set. The current parameter set is encoded by the current entropy encoder to provide entropy encoded information bits.
摘要:
A huffman code decoding circuit has a memory storing a decoded word and a code length or a pointer to be accessed in the next time determined on the basis of a state transition upon decoding of a bit variable length code per every one or n bits and a flag representative of the decoding condition of the code and outputting the decoded word and the code length or the pointer for next access and the flag corresponding to an access address of m bits. A latching circuit latches the pointer of m-1 bit output from the memory when the flag is indicative of continuation of decoding, and is reset when the flag output from the memory is indicative of completion of decoding. A selector selectively outputs n-1 bit from one of the latching circuit and the bit variable length code to the memory, according to selection for decoding of the bit variable length code per every 1 bit or every n bit.