Nova Patents
EP1237123A2

Decoding apparatus and method

Abstract

A decoding apparatus has: M tables for storing, in correspondence with M types of variable-length code tables, minimum code words or maximum code words of classes of variable-length code words constructing a variable-length code table; a table selector which selects one table from the M tables; N comparators which compare input coded data with the minimum code words or maximum code words outputted from the table selected by the table selector; a switch circuit and a priority encoder which obtain a class number corresponding to an initial code word of the input coded data based on results of comparison by the N comparators; a code length converter which converts the class number into a code length; and an address generator which generates an address to access a memory holding decoded data from the class number and the code length outputted said code length converter. The data outputted from the memory based on the address becomes decoded data of the input coded data.

EP1237123A2, drawing sheet 1
Sheet 1 of 15

Term

Term ended

Projected expiry passed 26 February 2022, 4.6 years ago.

  1. Priority
  2. Filed
  3. Published
  4. Projected expiry
  5. Today

20 claims: 7 independent, 13 dependent

  1. 1
    A decoding apparatus characterised by comprising:table storage means (101) for storing, in correspondence with M types of variable-length code tables, M tables holding minimum code words or maximum code words of N classes of variable-length code words constructing a variable-length code table;table selection means (102) for selecting a table from M tables in said table storage means;N comparison means (103) for comparing input coded data with the minimum code words or maximum code words outputted from the table selected by said table selection means;class discrimination means (104, 105) for obtaining a class number corresponding to an initial code word of the input coded data based on results of comparison by said N comparison means;code length conversion means (106) for converting the class number obtained by said class discrimination means into a code length;and address generation means (107) for generating an address to access a memory holding decoded data from said class number and said code length outputted from said code length conversion means.
  2. 4
    The decoding apparatus according to any one of claims 1-3, characterised in that said code-length conversion means (106) converts the class number into the code length based on the class number (113) obtained by said class discrimination means (105) and a number of the table selected by said table selection means (102).
  3. 5
    The decoding apparatus according to anyone of claims 1-4, characterised in that the M tables include a RAM, a ROM or a table constructed with flip-flops.
  4. 8
    A decoding method for inputting and decoding variable-length coded data, characterised by comprising:a table selection step of, in correspondence with M types of variable-length code tables, selecting one table corresponding to the variable-length coded data from M tables holding minimum code words or maximum code words of classes of variable-length code words constructing a variable-length code table;a comparison step of comparing input coded data with the minimum code words or maximum code words outputted from the table selected at said table selection step by using N comparators;a class discrimination step of obtaining a class number corresponding to an initial code word of the input coded data based on results of comparison by the N comparators;a code length conversion step of converting the class number into a code length;and a step of accessing a memory holding decoded data, from the class number and the code length obtained at said code length conversion step, and obtaining decoded data.
  5. 11
    The decoding method according to anyone of claims 8-10, characterised in that at said table selection step, the table is selected based on at least a coding method of the input coded data, a component number and data indicating a variable-length code table used upon coding.
  6. 15
    A computer-readable storage medium holding a program for executing a decoding method for inputting and decoding variable-length coded data, characterised by having:a table selection process module for, in correspondence with M types of variable-length code tables, selecting one table corresponding to the variable-length coded data from M tables holding minimum code words or maximum code words of classes of variable-length code words constructing a variable-length code table;a comparison process module for comparing input coded data with the minimum code words or maximum code words outputted from the table selected at said table selection process module;a class discrimination module for obtaining a class number corresponding to an initial code word of the input coded data based on results of comparison at said comparison module;a code length conversion module for converting the class number into a code length;and a module for accessing a memory holding decoded data, from the class number and the code length obtained at said code length conversion module, and obtaining decoded data.
  7. 20
    Program software for executing a decoding method for inputting and decoding variable-length coded data, by a computer, characterised by having:a table selection process for, in correspondence with M types of variable-length code tables, selecting one table corresponding to the variable-length coded data from M tables holding minimum code words or maximum code words of classes of variable-length code words constructing a variable-length code table;a comparison process for comparing input coded data with the minimum code words or maximum code words outputted from the table selected at said table selection process;a process for obtaining a class number corresponding to an initial code word of the input coded data based on results of comparison at said comparison process;a code length conversion process for converting the class number into a code length;and a process for accessing a memory holding decoded data, from the class number and the code length obtained at the code length conversion module, and obtaining decoded data.