# US 2009/0261995 A1 · Variable-length code decoding apparatus, variable-length code decoding method, and program

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2009/0261995 A1
- Document ID: US20090261995A1
- Status: Published application
- Kind: A1
- Application number: 12/417,262
- Filed: 2009-04-02
- Published: 2009-10-22
- Earliest claimed: 2008-04-03
- Assignees: Sony Corporation
- Inventors: Hiroaki SAKAGUCHI
- Web page: https://patentgrep.com/patent/US20090261995A1

## CPC

- H03M 7/40: Conversion to or from variable length codes, e.g. Shannon-Fano code, Huffman code, Morse code
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)

## Abstract

Disclosed herein is a variable-length code decoding apparatus including: a code buffer that holds a variable-length code in which the same bit value continues for a given number of bits from the most significant bit; code word detectors each of which reads the variable-length code from the code buffer to detect whether the variable-length code matches a specified code word; a decoded code word determination block that determines a code word decoded; and a configuration information holding section that holds configuration information containing the specified code words and code lengths of the specified code words as arranged in an ascending order of code length.

## Claims

### Claim 1

A variable-length code decoding apparatus, comprising:
a code buffer configured to hold a variable-length code in which the same bit value continues for a given number of bits from the most significant bit;
a plurality of code word detectors each of which is configured to read the variable-length code from said code buffer to detect whether or not the variable-length code matches a specified code word;
a decoded code word determination block configured e word decoded, based on detection results of said plurality of code word detectors; and
a configuration information holding section configured to hold configuration information containing the specified code words to be detected in said plurality of code word detectors and code lengths of the specified code words as arranged in an ascending order of code length,
wherein, in the configuration information, only one bit is held for the bit value that continues for the given number of bits, and at least one of the code lengths is defined by a difference from another one of the code lengths.

### Claim 2 (depends on 1)

The variable-length code decoding apparatus according to claim 1, wherein said plurality of code word detectors are classified into a plurality of groups, and in the configuration information, only one bit is held, for each group, for the bit value that continues for the given number of bits.

### Claim 3 (depends on 2)

The variable-length code decoding apparatus according to claim 2, wherein in the configuration information, another given number of bits that follow the given number of bits of the same bit value are held for each group.

### Claim 4 (depends on 1)

The variable-length code decoding apparatus according to claim 1, wherein said decoded code word determination block determines the code word decoded, in accordance with priority levels assigned to said plurality of code word detectors.

### Claim 5 (depends on 1)

The variable-length code decoding apparatus according to claim 1, wherein, when the variable-length code does not match the specified code word in any of said plurality of code word detectors, said decoded code word determination block outputs information to that effect.

### Claim 6 (depends on 1)

The variable-length code decoding apparatus according to claim 1, wherein, when detection results have been obtained successively by more than one of said plurality of code word detectors with different pieces of the configuration information, said decoded code word determination block determines the code word decoded based on a subsequent one of the detection results only when no match has been detected in any previous one of the detection results.

### Claim 7 (depends on 1)

The variable-length code decoding apparatus according to claim 1, wherein said configuration information holding section is configured to further hold a condition code bitmap that stores, for each of said plurality of code word detectors, information about whether or not a branch is to be caused in a process when the specified code word has been detected, and stores information about whether or not a branch is to be caused in a process when the specified code word has not detected in any of said plurality of code word detectors.

### Claim 8

A computer, comprising:
a code buffer configured to hold a variable-length code in which the same bit value continues for a given number of bits from the most significant bit;
a plurality of code word detectors each of which is configured to read the variable-length code from said code buffer to detect whether or not the variable-length code matches a specified code word;
a decoded code word determination block configured to determine a code word decoded, based on detection results of said plurality of code word detectors; and
a configuration information holding section configured to hold configuration information containing the specified code words to be detected in said plurality of code word detectors and code lengths of the specified code words as arranged in an ascending order of code length,
wherein the computer executes an instruction to, in the configuration information, recover one or more of the code lengths that are defined by a difference from another one of the code lengths, and recover the given number of consecutive bits of the same bit value in accordance with the code length, based on one bit held for the bit value that continues for the given number of bits, and thereafter cause said plurality of code word detectors to perform the detection.

### Claim 9

A program for causing a computer that includes
a code buffer configured to hold a variable-length code in which the same bit value continues for a given number of bits from the most significant bit,
a plurality of code word detectors each of which is configured to read the variable-length code from the code buffer to detect whether or not the variable-length code matches a specified code word,
a decoded code word determination block configured to determine a code word decoded, based on detection results of the plurality of code word detectors, and
a configuration information holding section configured to hold configuration information containing the specified code words to be detected in the plurality of code word detectors and code lengths of the specified code words as arranged in an ascending order of code length,
the program, comprising the steps of:
in the configuration information, recovering one or more of the code lengths that are defined by a difference from another one of the code lengths;
in the configuration information, recovering the given number of consecutive bits of the same bit value in accordance with the code length, based on one bit held for the bit value that continues for the given number of bits; and
causing the plurality of code word detectors to perform the detection.

### Claim 10

A variable-length code decoding method employed in a variable-length code decoding apparatus that includes
a code buffer configured to hold a variable-length code in which the same bit value continues for a given number of bits from the most significant bit,
a plurality of code word detectors each of which is configured to read the variable-length code from the code buffer to detect whether or not the variable-length code matches a specified code word,
a decoded code word determination block configured to determine a code word decoded, based on detection results of the plurality of code word detectors, and
a configuration information holding section configured to hold configuration information containing the specified code words to be detected in the plurality of code word detectors and code lengths of the specified code words as arranged in an ascending order of code length,
the method comprising the steps of:
in the configuration information, recovering one or more of the code lengths that are defined by a difference from another one of the code lengths;
in the configuration information, recovering the given number of consecutive bits of the same bit value in accordance with the code length, based on one bit held for the bit value that continues for the given number of bits; and
causing the plurality of code word detectors to perform the detection.
