# US 2009/0261996 A1 · Data conversion apparatus and control method thereof

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

- Number: US 2009/0261996 A1
- Document ID: US20090261996A1
- Status: Published application
- Kind: A1
- Application number: 12/420,925
- Filed: 2009-04-09
- Published: 2009-10-22
- Earliest claimed: 2008-04-22
- Assignees: Canon Kabushiki Kaisha
- Inventors: Naotsugu Itoh
- Web page: https://patentgrep.com/patent/US20090261996A1

## CPC

- H03M 7/46: Conversion to or from run-length codes, i.e. by representing the number of consecutive digits, or groups of digits, of the same kind by a code word and a digit indicative of that kind
- 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

This invention converts Packbit-encoded data into new Packbit-encoded data which allows to have a throughput=M. a extraction unit separates inputted encoded data into length information and data information, and outputs them to a conversion unit. The conversion unit has a count unit which cumulatively counts the number of output data after decoding indicated by the separated length information. The conversion unit divides length information of interest into first length information and second length information as needed, outputs the first length information, and sets the second length information as an initial count target to be counted by the count unit, so that the counted number N of output data reaches the throughput=M. The conversion unit combines the generated length information and the separated data information, and outputs new Packbit-encoded data.

## Claims

### Claim 1

A data conversion apparatus, which converts encoded data that is Packbit-encoded to have a set of length information and data information as a unit code, into new Packbit-encoded data, which is expressed by length information indicating the number of output data not more than M output data smaller than the maximum number of output data after decoding that can be expressed by one length information of Packbit-encoded data, and data information, the apparatus comprising:
an input unit which inputs encoded data to be converted;
a separation unit which separates the input encoded data into length information and data information;
a count unit which receives the length information obtained by the separation unit, and cumulatively counts the number of output data after decoding indicated by the received length information;
a length information division unit which receives the length information separated by the separation unit, and divides the received length information, and which (a) outputs the received length information while a value counted by the count unit is smaller than M, (b) outputs length information of interest when the value counted by the count unit reaches M, outputs delimiter information indicating that the value reaches M, and resetting the count unit, and (c) divides the length information of interest into first length information indicating a difference between M and a counted value until length information immediately before the length information of interest, and second length information indicating the remaining number of output data when the value counted by the count unit is larger than M, outputs the first length information, outputs delimiter information indicating that the value reaches M, and sets the second length information as an initial count target to be counted by the count unit;
a length information generating unit which receives the length information from the length information division unit, and generates, when a plurality of pieces of length information each indicating that data information is output once successively appear in the pieces of already received length information every time the delimiter information is input, new one length information from these pieces of successive length information; and
a data combining unit which refers to the length information obtained via the length information generating unit, combines the length information and the data information separated by the separation unit, and outputs the combined information as new Packbit-encoded data.

### Claim 2 (depends on 1)

The apparatus according to claim 1, further comprising a Packbit-encoding unit which receives image data and executes standard Packbit-encoding for the received image data,
wherein the input unit inputs the Packbit-encoded data encoded by the Packbit-encoding unit.

### Claim 3 (depends on 1)

The apparatus according to claim 1, further comprising a decoding unit which decodes the Packbit-encoded data generated by the data combining unit to have M data as a unit.

### Claim 4

A method of controlling a data conversion apparatus, which converts encoded data that is Packbit-encoded to have a set of length information and data information as a unit code, into new Packbit-encoded data, which is expressed by length information indicating the number of output data not more than M output data smaller than the maximum number of output data after decoding that can be expressed by one length information of Packbit-encoded data, and data information, the method comprising:
an input step of inputting encoded data to be converted;
a separation step of separating the input encoded data into length information and data information;
a count step of receiving the length information obtained in the separation step, and cumulatively counting the number of output data after decoding indicated by the received length information;
a length information division step of receiving the length information separated in the separation step, and dividing the received length information, and of (a) outputting the received length information while a value counted in the count step is smaller than M, (b) outputting length information of interest when the value counted in the count step reaches M, outputting delimiter information indicating that the value reaches M, and resetting the count step, and (c) dividing the length information of interest into first length information indicating a difference between M and a counted value until length information immediately before the length information of interest, and second length information indicating the remaining number of output data when the value counted in the count step is larger than M, outputting the first length information, outputting delimiter information indicating that the value reaches M, and setting the second length information as an initial count target to be counted in the count step;
a length information generating step of receiving the length information from the length information division step, and generating, when a plurality of pieces of length information each indicating that data information is output once successively appear in the pieces of already received length information every time the delimiter information is input, new one length information from these pieces of successive length information; and
a data combining step of referring to the length information obtained via the length information generating step, combining the length information and the data information separated in the separation step, and outputting the combined information as new Packbit-encoded data.

### Claim 5 (depends on 1)

A computer-readable storage medium storing a computer program for making a computer function as a data conversion apparatus according to claim 1 when the computer program is read and executed by the computer.

### Claim 6

A code conversion apparatus, which converts first encoded data which is configured by at least one or more unit codes, where the unit code includes a set of length information and data information, and can acquire not less than N values as decoded values into second encoded data, the apparatus comprising:
an input unit which inputs the first encoded data; and
a conversion unit which converts the first encoded data into second encoded data which can acquire the same decoded values as the first encoded data,
wherein the second encoded data is configured by at least one or more unit codes, and
the number of patterns that can be assumed by the second encoded data is smaller than the number of patterns that can be assumed by the first encoded data.
