JP2003087573A - Image compressing device and image expanding device - Google Patents

Image compressing device and image expanding device

Info

Publication number
JP2003087573A
JP2003087573A JP2001276861A JP2001276861A JP2003087573A JP 2003087573 A JP2003087573 A JP 2003087573A JP 2001276861 A JP2001276861 A JP 2001276861A JP 2001276861 A JP2001276861 A JP 2001276861A JP 2003087573 A JP2003087573 A JP 2003087573A
Authority
JP
Japan
Prior art keywords
image
data
code
code data
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001276861A
Other languages
Japanese (ja)
Inventor
Taira Nishida
平 西多
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2001276861A priority Critical patent/JP2003087573A/en
Publication of JP2003087573A publication Critical patent/JP2003087573A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image compressing device which separates the image data in a word unit and compresses the image data by a compressing method fitted to the kind of the image data of the word unit, and an image expanding device which separates the encoded data in a word unit and expands the encoded data by an expanding method fitted to the kind of the encoded data of the word unit. SOLUTION: This image compressing device 1 separates the input image data with 32 bits as one word unit in each of different kinds (1) to (3) in an image separation block 2, compresses the separated image data of the one word unit in encoding blocks 3 to 5 fitted to the kinds (1) to (3) of the image data of the one word unit among a plurality of encoding blocks 3 to 5 for performing compression respectively by specialized compressing methods, and outputs the image data as encoded data with 8 bits as one word unit. Then, the image data are compressed with a simple algorithm, making it easy to build into hardware, a processing speed can be improved and compressibility can also be improved.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、画像圧縮装置及び
画像伸張装置に関し、詳細には、画像データを32bi
tのワード単位で分離して当該ワード単位の画像データ
の種類に適応した圧縮方式で圧縮して確実にデータ容量
を削減し、また、符号データを8bitのワード単位に
分離して当該ワード単位の符号データの種類に適応した
伸張方式で伸張して劣化することなく画像データに復元
する画像圧縮装置及び画像伸張装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image compression apparatus and an image decompression apparatus, and more specifically, to 32 bit image data.
The data capacity is surely reduced by compressing by a compression method adapted to the type of the image data in the word unit of t, and the code data is separated in the word unit of 8 bit to calculate the word unit of the word unit. The present invention relates to an image compression apparatus and an image decompression apparatus that decompress by a decompression method adapted to the type of coded data and restore image data without deterioration.

【0002】[0002]

【従来の技術】近時、画像データは、ファクシミリ装置
だけでなく、デジタルカメラ、コンピュータ等で取り扱
われるようになり、画像データの転送速度を向上させた
り、蓄積メモリへの蓄積容量を削減させるために、画像
データを符号化してデータ圧縮することが行われてい
る。
2. Description of the Related Art Recently, image data has come to be handled not only by facsimile machines but also by digital cameras, computers, etc., in order to improve the transfer rate of image data and reduce the storage capacity in the storage memory. In addition, image data is encoded and data is compressed.

【0003】このデータ圧縮の方式としては、種々の方
式があり、例えば、JPEG DCT(Joint P
hotographic Expert Group、
Discrete Cosine Transfor
m)方式やJPEG Spatial方式等があり、ま
た、ファクシミリの分野では、例えば、MH(Modified
Huffman)符号化方式、MR(Modufied Relative eleme
nt address designate)符号化方式、あるいは、MMR
(Modified MR )符号化方式等がある。
There are various types of data compression methods, such as JPEG DCT (Joint P).
photographic Expert Group,
Discrete Cosine Transform
m) system and JPEG Spatial system. In the field of facsimile, for example, MH (Modified
Huffman) encoding method, MR (Modufied Relative eleme)
nt address designate) Encoding method or MMR
(Modified MR) encoding method and the like.

【0004】そして、従来、画像圧縮を行う装置には、
当該装置で取り扱う画像データに対して適切な圧縮方式
が固定的に設定されている。
[0004] Conventionally, a device for image compression has been
An appropriate compression method is fixedly set for the image data handled by the device.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の画像圧縮装置にあっては、当該装置で取り扱
う画像データに対して適切な圧縮方式が固定的に設定さ
れていたため、種々の画像データを取り扱うようになっ
てきている今日、なお改良の必要があった。
However, in such a conventional image compression apparatus, an appropriate compression method is fixedly set for the image data handled by the apparatus, so that various image data can be obtained. Nowadays we are dealing with, and still need improvement.

【0006】すなわち、今日、画像データが各分野で取
り扱われるようになり、画像データの種類も多様化して
いる。このような多様化した画像データには、画像デー
タにおいては、ある圧縮方法で圧縮してもデータ容量が
減らず、かえって増大するが、他の圧縮方法で圧縮する
と、データ容量が削減される場合もある。
That is, today, image data is handled in various fields, and the types of image data are diversified. In such diversified image data, when the image data is compressed by a certain compression method, the data capacity does not decrease but rather increases, but when compressed by another compression method, the data capacity is reduced. There is also.

【0007】また、圧縮困難な画像データもあり、この
ような圧縮が困難な画像データを符号化してもデータが
圧縮されず、むしろオリジナル画像データの数倍の容量
に増大してしまう可能性がある。実際には、データ圧縮
が困難な画像データを符号化した場合でも、基の画像デ
ータと変わらないデータ容量で行うことのできる方式は
あるが、アルゴリズムが複雑なため、ハードウェア化が
困難であったり、ソフトウエアで処理すると、処理速度
が遅いなどの問題点が存在する。
There is also image data that is difficult to compress, and even if such image data that is difficult to compress is encoded, the data is not compressed, and rather the capacity may increase to several times the capacity of the original image data. is there. In reality, even when encoding image data that is difficult to compress, there is a method that can be performed with the same data capacity as the original image data, but it is difficult to implement in hardware because the algorithm is complicated. However, there is a problem that the processing speed is slow when processed by software.

【0008】一方、画像データの圧縮方式が種々あり、
本発明の画像圧縮装置で種々の方式で圧縮された符号デ
ータには、当該符号データに適した伸長方式で伸長しな
いと、画像の劣化をきたすおそれがある。
On the other hand, there are various image data compression methods,
Code data compressed by various methods by the image compression apparatus of the present invention may be deteriorated unless it is expanded by a decompression method suitable for the code data.

【0009】そこで、請求項1記載の発明は、入力画像
データを32bitを1ワード単位として画像分離手段
で種類別に分離し、当該分離した1ワード単位の画像デ
ータをそれぞれ特化した圧縮方式で圧縮する複数の圧縮
手段のうち当該1ワード単位の画像データの種類に適応
する圧縮手段で圧縮して8bitを1ワード単位とする
符号データとして出力することにより、単純なアルゴリ
ズムで圧縮して、ハードウェア化を容易なものとして、
処理速度を向上させるとともに、圧縮率の良好な画像圧
縮装置を提供することを目的としている。
Therefore, according to the first aspect of the invention, the input image data is separated by type by the image separating means with 32 bits as one word unit, and the separated one-word unit image data is compressed by a specialized compression method. The compression means adapted to the type of the image data in 1-word units out of the plurality of compression means to output 8 bits as coded data in 1-word units, thereby compressing by a simple algorithm, and To make it easy
It is an object of the present invention to provide an image compression device that improves the processing speed and has a good compression rate.

【0010】請求項2記載の発明は、圧縮手段の出力す
る8bitを1ワード単位とするシリアルの符号データ
が、同じ値が連続しない場合には、当該符号データをそ
のまま出力符号データとし、同じ値が2回連続する場合
には、それ以降何回同じ値が連続するかをカウントし
て、当該カウント数を出力符号データとすることによ
り、出力符号データの特徴を利用して、データ量をさら
に削減する圧縮を行って圧縮率をさらに高め、画像デー
タが圧縮容易なデータである場合でも圧縮率が低いとい
う結果を防止して、より一層良好な圧縮を行うことので
きる画像圧縮装置を提供することを目的としている。
According to a second aspect of the present invention, when the serial code data having 8 bits as one word unit output from the compression means do not have the same value, the code data is directly used as the output code data and the same value is used. , The number of consecutive same values is counted and the counted number is used as the output code data, and the feature of the output code data is used to further increase the data amount. (EN) Provided is an image compression device capable of performing better compression by performing reduction compression to further increase the compression rate and preventing the result that the compression rate is low even when the image data is data that is easily compressed. Is intended.

【0011】請求項3記載の発明は、圧縮手段の出力す
る8bitを1ワード単位とするシリアルの符号データ
の値が、0xFFが連続しない場合には、当該符号デー
タをそのまま出力符号データとし、0xFFが2回連続
する場合には、それ以降何回0xFFが連続するかをカ
ウントして、当該カウント数を出力符号データとするこ
とにより、出力符号データの特徴を利用して、データ量
をさらに削減する圧縮を行って圧縮率をさらに高め、画
像データが圧縮容易なデータである場合でも圧縮率が低
いという結果を防止して、より一層良好な圧縮を行うこ
とのできる画像圧縮装置を提供することを目的としてい
る。
According to a third aspect of the present invention, when the value of serial code data in units of 8 bits output from the compression means is not 0xFF consecutively, the code data is directly used as output code data and 0xFF is used. When 2 times continue, the number of times 0xFF continues after that is counted and the count number is used as the output code data, and the feature of the output code data is used to further reduce the data amount. (EN) An image compression device capable of further improving the compression rate by performing compression to prevent the result of a low compression rate even when the image data is data that can be easily compressed, and performing better compression. It is an object.

【0012】請求項4記載の発明は、異なる圧縮方式で
圧縮され8bitを1ワード単位とする入力符号データ
を符号分離手段で種類別に分離し、当該分離した符号デ
ータを、符号データの種類毎にそれぞれ特化した伸張方
式で伸張する複数の伸張手段のうち当該符号データの種
類に適応する伸張手段に入力して、当該伸張手段で伸張
して32bitを1ワード単位とする画像データとして
出力することにより、単純なアルゴリズムで符号データ
を伸張して、ハードウェア化を容易なものとして、処理
速度を向上させるとともに、画像を劣化させることなく
符号データを画像データに復号する画像伸張装置を提供
することを目的としている。
According to a fourth aspect of the present invention, the input code data, which is compressed by different compression methods and has 8 bits as one word unit, is separated by the code separating means according to the type, and the separated code data is separated for each type of code data. Inputting to a decompressing unit adapted to the type of the coded data among a plurality of decompressing units that respectively decompress by a specialized decompression method, decompressing by the decompressing unit and outputting 32 bits as image data in 1-word units. Provide an image decompression device for decompressing coded data into image data without degrading the image while decompressing the coded data with a simple algorithm to facilitate hardware implementation, improving the processing speed. It is an object.

【0013】請求項5記載の発明は、8bitを1ワー
ド単位とするシリアルの入力符号データが、同じ値が連
続しない場合には、当該符号データをそのまま入力符号
データとして符号分離手段に入力し、同じ値が2回連続
する場合には、それ以降何回同じ値が連続するかをカウ
ントして、当該カウント数を入力符号データとして符号
分離手段に入力する前伸張手段を設けることにより、入
力符号データの特徴を利用して、単純なアルゴリズム
で、より一層画像を劣化を防止しつつ符号データを画像
データに伸張することのできる画像伸張装置を提供する
ことを目的としている。
According to a fifth aspect of the present invention, when the serial input code data having 8 bits as one word unit does not have the same value, the code data is directly input to the code separating means as the input code data, When the same value continues twice, the pre-expansion means for counting the number of times the same value continues after that and inputting the count number to the code separation means as the input code data is provided. An object of the present invention is to provide an image decompression device that can decompress code data into image data while further preventing the deterioration of the image by a simple algorithm using the characteristics of the data.

【0014】請求項6記載の発明は、8bitを1ワー
ド単位とするシリアルの入力符号データの値が、0xF
Fが連続しない場合には、当該入力符号データをそのま
ま入力符号データとして前伸張手段に入力し、0xFF
が2回連続する場合には、それ以降何回0xFFが連続
するかをカウントして、当該カウント数を入力符号デー
タとして前伸張手段に入力する第2前伸張手段を設ける
ことにより、入力符号データの特徴を利用して、単純な
アルゴリズムで、さらにより一層画像を劣化を防止しつ
つ符号データを画像データに伸張することのできる画像
伸張装置を提供することを目的としている。
According to a sixth aspect of the present invention, the value of serial input code data in units of 8 bits is 0xF.
When F is not continuous, the input code data is directly input to the pre-expansion means as the input code data, and 0xFF
When 2 consecutive times, the number of times 0xFF continues after that is counted, and the second pre-expansion means for inputting the count number to the pre-expansion means as input code data is provided. It is an object of the present invention to provide an image decompressing device capable of decompressing code data into image data while further preventing the deterioration of the image with a simple algorithm by utilizing the above feature.

【0015】[0015]

【課題を解決するための手段】請求項1記載の発明の画
像圧縮装置は、入力画像データを32bitを1ワード
単位として種類別に分離する画像分離手段と、当該画像
分離手段で分離された1ワード単位の画像データの種類
毎にそれぞれ特化した圧縮方式で圧縮する複数の圧縮手
段と、を備えた画像圧縮装置であって、前記入力画像デ
ータを前記画像分離手段で種類別に分離し、当該分離し
た1ワード単位の画像データを前記複数の圧縮手段のう
ち当該1ワード単位の画像データの種類に適応する圧縮
手段に入力して、当該圧縮手段で圧縮して8bitを1
ワード単位とする符号データとして出力することによ
り、上記目的を達成している。
According to another aspect of the present invention, there is provided an image compression device for separating input image data by type, with 32 bits as one word unit, and one word separated by the image separation device. An image compression apparatus comprising: a plurality of compression means for compressing by a compression method specialized for each type of image data of a unit, wherein the input image data is separated by the image separation means, and the separation is performed. The 1-word unit image data is input to a compression means of the plurality of compression means that is adapted to the type of the 1-word unit image data, and is compressed by the compression means to obtain 8 bits.
The above object is achieved by outputting as coded data in word units.

【0016】上記構成によれば、入力画像データを32
bitを1ワード単位として画像分離手段で種類別に分
離し、当該分離した1ワード単位の画像データをそれぞ
れ特化した圧縮方式で圧縮する複数の圧縮手段のうち当
該1ワード単位の画像データの種類に適応する圧縮手段
で圧縮して8bitを1ワード単位とする符号データと
して出力するので、単純なアルゴリズムで圧縮して、ハ
ードウェア化を容易なものとして、処理速度を向上させ
ることができるとともに、圧縮率を向上させることがで
きる。
According to the above construction, the input image data is converted into 32 bytes.
The bit is divided into 1 word unit by the image separating means, and the separated 1 word unit image data is compressed by a specialized compression method. Since the data is compressed by an adaptive compression means and is output as coded data in units of 8 bits, the compression can be performed by a simple algorithm to facilitate hardware implementation and improve the processing speed. The rate can be improved.

【0017】この場合、例えば、請求項2記載に記載す
るように、前記画像圧縮装置は、前記圧縮手段の出力す
る8bitを1ワード単位とするシリアルの符号データ
が、同じ値が連続しない場合には、当該符号データをそ
のまま出力符号データとし、同じ値が2回連続する場合
には、それ以降何回同じ値が連続するかをカウントし
て、当該カウント数を出力符号データとするものであっ
てもよい。
In this case, for example, as described in claim 2, in the image compression apparatus, when the serial code data in which the 8-bit unit output by the compression unit is one word unit does not have the same value, Is to use the code data as the output code data as it is, and when the same value continues twice, counts how many times the same value continues after that and uses the count number as the output code data. May be.

【0018】上記構成によれば、圧縮手段の出力する8
bitを1ワード単位とするシリアルの符号データが、
同じ値が連続しない場合には、当該符号データをそのま
ま出力符号データとし、同じ値が2回連続する場合に
は、それ以降何回同じ値が連続するかをカウントして、
当該カウント数を出力符号データとしているので、出力
符号データの特徴を利用して、データ量をさらに削減す
る圧縮を行って圧縮率をさらに高めることができ、画像
データが圧縮容易なデータである場合でも圧縮率が低い
という結果を防止して、より一層良好な圧縮を行うこと
ができる。
According to the above structure, the compression unit outputs 8
Serial code data with bit as 1 word unit,
When the same value does not continue, the code data is used as it is as output code data, and when the same value continues twice, the number of times the same value continues after that is counted,
Since the count number is used as the output code data, the compression rate can be further increased by performing compression to further reduce the data amount by utilizing the characteristics of the output code data, and the image data is easy to compress. However, it is possible to prevent the result that the compression ratio is low, and to perform even better compression.

【0019】また、例えば、請求項3に記載するよう
に、前記画像圧縮装置は、前記圧縮手段の出力する8b
itを1ワード単位とするシリアルの符号データの値
が、0xFFが連続しない場合には、当該符号データを
そのまま出力符号データとし、0xFFが2回連続する
場合には、それ以降何回0xFFが連続するかをカウン
トして、当該カウント数を出力符号データとするもので
あってもよい。
Further, for example, as described in claim 3, the image compression device outputs 8b output from the compression means.
When the value of serial code data with it as a word unit is not 0xFF, the code data is used as it is as output code data, and when 0xFF is continuous twice, the number of times 0xFF is continuous after that. Whether or not to do so may be counted and the counted number may be used as output code data.

【0020】上記構成によれば、圧縮手段の出力する8
bitを1ワード単位とするシリアルの符号データの値
が、0xFFが連続しない場合には、当該符号データを
そのまま出力符号データとし、0xFFが2回連続する
場合には、それ以降何回0xFFが連続するかをカウン
トして、当該カウント数を出力符号データとしているの
で、出力符号データの特徴を利用して、データ量をさら
に削減する圧縮を行って圧縮率をさらに高めることがで
き、画像データが圧縮容易なデータである場合でも圧縮
率が低いという結果を防止して、より一層良好な圧縮を
行うことができる。
According to the above configuration, the compression unit outputs 8
When the serial code data value in which the bit is one word unit is not 0xFF consecutively, the code data is directly used as the output code data, and when 0xFF is consecutive twice, 0xFF consecutively thereafter. The output code data is characterized by using the characteristics of the output code data to further reduce the data amount and further increase the compression rate. Even if the data is easy to compress, it is possible to prevent the result of a low compression ratio and perform better compression.

【0021】請求項4記載の発明の画像伸長装置は、異
なる圧縮方式で圧縮され8bitを1ワード単位とする
入力符号データを種類別に分離する符号分離手段と、当
該符号分離手段で分離された符号データを当該符号デー
タの種類毎にそれぞれ特化した伸張方式で伸張する複数
の伸張手段と、を備えた画像伸張装置であって、前記入
力符号データを前記符号分離手段で種類別に分離し、当
該分離した符号データを前記複数の伸張手段のうち当該
符号データの種類に適応する伸張手段に入力して、当該
伸張手段で伸張して32bitを1ワード単位とする画
像データとして出力することにより、上記目的を達成し
ている。
In the image decompressing device according to the fourth aspect of the present invention, the code demultiplexing means for demultiplexing the input code data which is compressed by different compression methods and has 8 bits as one word unit and the code demultiplexed by the code demultiplexing means. An image decompression device comprising a plurality of decompression means for decompressing data by a decompression method specialized for each type of the code data, wherein the input code data is separated by the code separation means according to the type. By inputting the separated code data to a decompressing unit adapted to the type of the code data among the plurality of decompressing units, decompressing by the decompressing unit and outputting 32 bit as one-word unit image data, You have achieved your purpose.

【0022】上記構成によれば、異なる圧縮方式で圧縮
され8bitを1ワード単位とする入力符号データを符
号分離手段で種類別に分離し、当該分離した符号データ
を、符号データの種類毎にそれぞれ特化した伸張方式で
伸張する複数の伸張手段のうち当該符号データの種類に
適応する伸張手段に入力して、当該伸張手段で伸張して
32bitを1ワード単位とする画像データとして出力
するので、単純なアルゴリズムで符号データを伸張し
て、ハードウェア化を容易なものとして、処理速度を向
上させることができるとともに、画像を劣化させること
なく符号データを画像データに復号することができる。
According to the above construction, the input code data which is compressed by different compression methods and has 8 bits as one word unit is separated by the code separating means by the type, and the separated code data is specified for each type of code data. Of the plurality of decompression means that decompress by the decompressed decompression method, the decompression means adapted to the type of the code data is input, decompressed by the decompression means, and 32 bits are output as image data in 1-word units. It is possible to expand the code data by using such an algorithm to facilitate hardware implementation, improve the processing speed, and decode the code data into image data without degrading the image.

【0023】この場合、例えば、請求項5に記載するよ
うに、前記画像伸張装置は、前記8bitを1ワード単
位とするシリアルの入力符号データが、同じ値が連続し
ない場合には、当該符号データをそのまま前記入力符号
データとして前記符号分離手段に入力し、同じ値が2回
連続する場合には、それ以降何回同じ値が連続するかを
カウントして、当該カウント数を前記入力符号データと
して前記符号分離手段に入力する前伸張手段を備えてい
てもよい。
In this case, for example, as described in claim 5, the image decompressing device, when the serial input code data in which the 8-bit unit is one word is not continuous in the same value, Is input to the code separating means as the input code data as it is, and when the same value continues twice, the number of times the same value continues after that is counted and the count number is used as the input code data. Pre-expansion means for inputting to the code separation means may be provided.

【0024】上記構成によれば、8bitを1ワード単
位とするシリアルの入力符号データが、同じ値が連続し
ない場合には、当該符号データをそのまま入力符号デー
タとして符号分離手段に入力し、同じ値が2回連続する
場合には、それ以降何回同じ値が連続するかをカウント
して、当該カウント数を入力符号データとして符号分離
手段に入力する前伸張手段を設けているので、入力符号
データの特徴を利用して、単純なアルゴリズムで、より
一層画像を劣化を防止しつつ符号データを画像データに
伸張することができる。
According to the above configuration, when the serial input code data having 8 bits as a unit of word do not have the same value, the code data is directly input to the code separating means as the input code data and the same value is input. In the case where the two consecutive numbers are consecutive, the pre-expansion means for counting how many times the same value continues after that and inputting the count number to the code separation means as the input code data is provided. By making use of the feature (3), the code data can be expanded into the image data with a simple algorithm while further preventing the deterioration of the image.

【0025】また、例えば、請求項6に記載するよう
に、前記画像伸張装置は、前記8bitを1ワード単位
とするシリアルの入力符号データの値が、0xFFが連
続しない場合には、当該入力符号データをそのまま前記
入力符号データとして前記前伸張手段に入力し、0xF
Fが2回連続する場合には、それ以降何回0xFFが連
続するかをカウントして、当該カウント数を前記入力符
号データとして前記前伸張手段に入力する第2前伸張手
段を備えていてもよい。
Further, for example, as described in claim 6, when the value of serial input code data in which the 8-bit unit is one word is not 0xFF consecutive, the image decompressing device sets the input code. The data is directly input to the pre-expansion means as the input code data, and 0xF
When F continues twice, it is possible to include a second pre-expansion means for counting how many times 0xFF continues after that and inputting the count number to the pre-expansion means as the input code data. Good.

【0026】上記構成によれば、8bitを1ワード単
位とするシリアルの入力符号データの値が、0xFFが
連続しない場合には、当該入力符号データをそのまま入
力符号データとして前伸張手段に入力し、0xFFが2
回連続する場合には、それ以降何回0xFFが連続する
かをカウントして、当該カウント数を入力符号データと
して前伸張手段に入力する第2前伸張手段を設けている
ので、入力符号データの特徴を利用して、単純なアルゴ
リズムで、さらにより一層画像を劣化を防止しつつ符号
データを画像データに伸張することができる。
According to the above construction, when the value of serial input code data with 8 bits as a unit of 1 word is not continuous with 0xFF, the input code data is directly input as input code data to the pre-expansion means, 0xFF is 2
In the case of consecutive times, the second pre-expansion unit that counts the number of times 0xFF continues after that and inputs the count number to the pre-expansion unit as the input code data is provided. By utilizing the feature, the code data can be expanded into the image data with a simple algorithm while further preventing the deterioration of the image.

【0027】[0027]

【発明の実施の形態】以下、本発明の好適な実施の形態
を添付図面に基づいて詳細に説明する。なお、以下に述
べる実施の形態は、本発明の好適な実施の形態であるか
ら、技術的に好ましい種々の限定が付されているが、本
発明の範囲は、以下の説明において特に本発明を限定す
る旨の記載がない限り、これらの態様に限られるもので
はない。
BEST MODE FOR CARRYING OUT THE INVENTION Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The embodiments described below are preferred embodiments of the present invention, and therefore have various technically preferable limitations. However, the scope of the present invention refers to the present invention particularly in the following description. Unless otherwise stated, the present invention is not limited to these embodiments.

【0028】図1〜図3は、本発明の画像圧縮装置及び
画像伸張装置の第1の実施の形態を示す図であり、図1
は、本発明の画像圧縮装置及び画像伸張装置の第1の実
施の形態を適用した画像圧縮装置1の要部ブロック構成
図である。
1 to 3 are views showing a first embodiment of an image compression apparatus and an image expansion apparatus of the present invention.
FIG. 1 is a block diagram of a main part of an image compression device 1 to which an image compression device and an image expansion device according to a first embodiment of the present invention are applied.

【0029】図1において、画像圧縮装置1は、画像分
離ブロック(画像分離手段)2と第1から第3の3つの
符号化ブロック(圧縮手段)3〜5を備えている。
In FIG. 1, the image compression apparatus 1 is provided with an image separation block (image separation means) 2 and three coding blocks (compression means) 3 to 3 of first to third.

【0030】画像分離ブロック2には、画像データが3
2bitを1ワード単位とする入力画像ワードとして入
力され、画像分離ブロック2は、入力画像ワードを下記
の3つの種類に分類する。しかし、入力画像データの主
走査画素数は32の倍数であるとは限らないため、ライ
ンの最終画像ワードに画像データのない部分が存在する
場合があるが、その場合には、「0x00」もしくは
「0xFF」等のダミーデータを付加して余りの部分を
埋める。
The image separation block 2 contains 3 pieces of image data.
The input image word having 2 bits as one word unit is input, and the image separation block 2 classifies the input image word into the following three types. However, since the number of main scanning pixels of the input image data is not always a multiple of 32, there may be a portion where there is no image data in the final image word of the line. In that case, "0x00" or Dummy data such as "0xFF" is added to fill the remaining portion.

【0031】32bit全て「0」もしくは「1」で
ある。また、特定の5つのパターンに当てはまる場合。
All 32 bits are "0" or "1". Also, if it applies to 5 specific patterns.

【0032】入力画像ワードが指定以下の低周波成分
である場合。
When the input image word has a low frequency component which is lower than the specified value.

【0033】上記、以外である場合。In cases other than the above.

【0034】画像分離ブロック2は、入力画像ワードを
上記3つの場合の何れかの種類に分類し、それぞれの場
合に適応した第1符号化ブロック3、第2符号化ブロッ
ク4及び第3符号化ブロック5に出力する。
The image separation block 2 classifies the input image word into any one of the above three cases, and the first coding block 3, the second coding block 4 and the third coding which are suitable for the respective cases. Output to block 5.

【0035】第1符号化ブロック3、第2符号化ブロッ
ク4及び第3符号化ブロック5は、画像分離ブロック2
で分離されて入力される画像ブロックに適応した符号化
方式(圧縮方式)で符号化(圧縮)して、8bitを1
ワード単位とする出力符号ワードとして出力する。な
お、1入力画像ワードに対しての出力符号ワードの数に
ついては、後述する。
The first coding block 3, the second coding block 4, and the third coding block 5 are the image separation block 2
Is encoded (compressed) by an encoding method (compression method) adapted to the image block separated and input by
Output as an output code word in word units. The number of output code words for one input image word will be described later.

【0036】そして、第1符号化ブロック3から第3符
号化ブロック5において、説明上、第1符号化ブロック
3に適応する入力画像ワードが、上記種類の入力画像
ワードであり、第2符号化ブロック4に適応する入力画
像ワードが、上記種類の入力画像ワードであり、第3
符号化ブロック5に適応する入力画像ワードが、上記種
類の入力画像ワードであるとする。
In the first encoding block 3 to the third encoding block 5, the input image word adapted to the first encoding block 3 is the input image word of the above type for the sake of explanation, and the second encoding The input image word adapted to block 4 is an input image word of the above type,
It is assumed that the input image word adapted to the coding block 5 is an input image word of the above type.

【0037】第1符号化ブロック3は、適応する入力画
像ワードが種類に分類されており、32bitの入力
画像ワードを、図2に示すように、4bitの出力符号
データに変換するが、実際には、出力符号データの2つ
をパッキングして8bitの符号ワードにして出力す
る。第1符号化ブロック3は、種類の入力画像ワード
が連続する場合は上記の通り処理するが、種類の入力
画像ワードの次に種類または種類の入力画像ワード
がくる場合で、種類の4bitの出力符号データが半
端となって余る場合は、「0110」のパス符号とパッ
キングして8bitの符号ワードにして出力する。
The first encoding block 3 classifies the input image words to be adapted into types, and converts the input image words of 32 bits into output code data of 4 bits as shown in FIG. Packs two pieces of output code data and outputs them as an 8-bit code word. The first encoding block 3 processes as described above when the type input image words are continuous, but outputs the type 4 bit output when the type or type input image word comes after the type input image word. When the code data is odd, the pass code of "0110" is packed and output as a code word of 8 bits.

【0038】なお、図2の入力画像ワードの種類のパ
ターン〜は、図3に示す5つのパターン〜に該
当するもので、パターンは、1つ前の入力画像ワード
と同じ場合、パターンは、パターンを8bit前の
入力画像ワード側にシフトさせたものと同じ場合であ
る。同様に、パターン〜が定義されている。
It should be noted that the patterns ~ of the types of input image words in Fig. 2 correspond to the five patterns ~ shown in Fig. 3. When the pattern is the same as the preceding input image word, the pattern is Is shifted to the input image word side 8 bits before. Similarly, a pattern ~ is defined.

【0039】そして、第1符号化ブロック3は、入力画
像ワードを符号化する場合、パス符号を除けば、32b
itの入力画像ワードが、4bitの符号になる。
The first encoding block 3 encodes the input image word by 32b except the pass code.
The input image word of it becomes a code of 4 bits.

【0040】次に、第2符号化ブロック4は、適応する
入力画像データが種類に分類されており、種類の場
合に当てはまらなかった入力画像ワードを、MSB側か
らLSB方向に同じ値が何bitづつ連続して続いてい
るかをカウントし、入力画像ワードを複数のランレング
スの組に分ける。そして、第2符号化ブロック4は、最
初の組の値を0と定義するので、先頭のbitが「1」
の場合は、最初の組はカウント数「0」という組とす
る。また、第2符号化ブロック4は、組の中のカウント
数を最大15(4bit)までとし、それ以上同じ値が
続く場合は、次の組も同じ値の組として、続きのカウン
ト数を入れる。さらに、第2符号化ブロック4は、カウ
ント数がちょうど「15」で終わる場合でも、次の組も
同じ値の組となるので、次の組にカウント数「0」を入
れ、最後の組についての情報は、無くても復号可能であ
るので省略する。そして、第2符号化ブロック4は、最
後から1つ前の組のカウント数が「15」の場合は、最
後から1つ前の組についての情報も省略し、最後から1
つ前の組のカウント数と2つ前の組のカウント数が共に
「15」の場合は、最後から1つ前と2つ前の組も省略
する。
Next, the second coding block 4 classifies the input image data to be adapted into types, and the input image words that did not apply in the case of the type have the same value from the MSB side in the LSB direction. The input image word is divided into a plurality of run-length groups by counting whether or not they are successively continued. Then, since the second coding block 4 defines the value of the first set as 0, the leading bit is "1".
In the case of, the first group is the group with the count number “0”. In addition, the second coding block 4 sets the maximum number of counts in the set to 15 (4 bits), and if the same value continues for more than that, the next set is also set as the same value and the subsequent count number is inserted. . Further, in the second coding block 4, even if the count number ends with just “15”, the next group also has the same value group, so the count number “0” is put in the next group and the last group is added. Since the information of (1) can be decrypted without it, it is omitted. Then, when the count number of the immediately preceding group is “15”, the second coding block 4 also omits the information about the immediately preceding group, and outputs the last 1
When the count number of the immediately preceding set and the count number of the immediately preceding set are both “15”, the last and last two sets are also omitted.

【0041】このようにして作られた組の数が7つ以下
の場合に、入力画像ワードは種類の場合に当てはまる
ため、第2符号化ブロック4は、出力符号ワードとし
て、図2示すように、「1yyyzzzz」の「yy
y」のbit(3bit)に組の数を入れ、「zzz
z」のbit(4bit)に1組目のカウント数を入れ
る。そして、第2符号化ブロック4は、2組目以降の組
のカウント数を、2組ごとにパッキングして8bitの
符号ワードにして出力する。
When the number of sets thus created is 7 or less, since the input image word is applicable to the type, the second coding block 4 outputs the output code word as shown in FIG. , "1yyyzzzz", "yy
Put the number of pairs in the bit (3 bits) of "y", and
Put the count number of the first set into the bit (4 bits) of "z". Then, the second coding block 4 packs the count numbers of the second and subsequent groups for every two groups and outputs them as 8-bit code words.

【0042】したがって、組数が1つの場合は1ワー
ド、組数が2つか3つの場合は2ワード、組数が4つか
5つの場合は3ワード、組数が6つか7つの場合は4ワ
ードの出力符号となる。その結果、入力画像ワードの種
類がの場合は、最悪でも入力画像と出力符号は、デー
タ量が同じになる。
Therefore, when the number of sets is 1, it is 1 word, when the number of sets is 2 or 3, it is 2 words, when it is 4 or 5, it is 3 words, and when it is 6 or 7, it is 4 words. Is the output code of. As a result, when the type of the input image word is, at worst, the input image and the output code have the same data amount.

【0043】次に、第3符号化ブロック5に適応する入
力画像データは、種類に分類されており、種類は、
種類と種類の何れにも当てはまらない場合である。
第3符号化ブロック5は、図2に示すように、「100
0xxxx」をヘッダの出力符号ワードとして、入力画
像ワード32bitを8bit毎に4分割したものを順
に出力する。この場合、入力画像32bitに対し、出
力符号8bitが5ワードで全40bitになるので、
データ量が1.25倍に増加してしまう。
Next, the input image data applicable to the third coding block 5 is classified into types, and the types are
This is the case when neither the type nor the type is applicable.
As shown in FIG. 2, the third coding block 5 is "100".
"0xxxx" is used as the output code word of the header, and 32 bits of the input image word are divided into 8 bits and are sequentially output. In this case, with respect to the input image of 32 bits, the output code of 8 bits is 5 words and the total is 40 bits.
The amount of data increases 1.25 times.

【0044】なお、図2の「1000xxxx」の「x
xxx」のbitは、don’tcareである。
It should be noted that "x" of "1000xxxx" in FIG.
The bit of “xxx” is don't care.

【0045】このように、本実施の形態の画像圧縮装置
1は、入力画像データを32bitを1ワード単位とし
て画像分離ブロック2で種類〜別に分離し、当該分
離した1ワード単位の画像データをそれぞれ特化した圧
縮方式で圧縮する複数の符号化ブロック3〜5のうち1
ワード単位の画像データの種類〜に適応する符号化
ブロック3〜5で圧縮して8bitを1ワード単位とす
る符号データとして出力する。
As described above, the image compression apparatus 1 according to the present embodiment separates the input image data by the image separation block 2 in units of 32 bits per word, and separates the separated image data in units of 1 word. 1 out of a plurality of coding blocks 3 to 5 which are compressed by a specialized compression method
The data is compressed by the coding blocks 3 to 5 corresponding to the type of image data in word units, and 8 bits are output as code data in 1 word units.

【0046】したがって、単純なアルゴリズムで圧縮し
て、ハードウェア化を容易なものとして、処理速度を向
上させることができるとともに、圧縮率を向上させるこ
とができる。
Therefore, it is possible to improve the processing speed and the compression rate by using a simple algorithm for easy hardware implementation.

【0047】なお、上記処理において、画像圧縮装置1
は、その出力符号ワード(8bit)が、同じ値が連続
しない場合、そのまま出力符号ワードとし、同じ値が2
回連続した場合、それ以降何回同じ値が連続するかをカ
ウントし、そのカウント数を符号ワードとしてもよい。
In the above processing, the image compression device 1
Is the same as the output code word (8 bits), if the same value does not continue,
In the case of consecutive times, the number of times the same value continues after that may be counted and the counted number may be used as the code word.

【0048】ただし、出力符号ワードは8bitである
ため、最大カウント数を「255」とし、それ以上同じ
値が続く場合には、次の出力符号ワードに続きのカウン
ト数を入れる。また、カウント数がちょうど「255」
で終わる場合、次の出力符号ワードに「0」を入れる。
However, since the output code word is 8 bits, the maximum count number is set to "255", and if the same value continues for more than that, the next count number is put in the next output code word. Also, the count number is exactly "255"
If it ends with, put "0" in the next output code word.

【0049】このようにすると、出力符号データの特徴
を利用して、データ量をさらに削減する圧縮を行って圧
縮率をさらに高めることができ、画像データが圧縮容易
なデータである場合でも圧縮率が低いという結果を防止
して、より一層良好な圧縮を行うことができる。
In this way, the feature of the output code data can be used to perform the compression for further reducing the data amount to further increase the compression rate, and the compression rate can be achieved even when the image data is data that can be easily compressed. Can be prevented and a better compression can be achieved.

【0050】さらに、この場合、画像圧縮装置1は、出
力符号ワード値(8bit)が、「0xFF」が連続し
ない場合には、そのまま出力符号ワードとし、2回連続
した場合に、それ以降何回連続するかをカウントして、
そのカウント数を符号ワードとしてもよい。
Further, in this case, when the output code word value (8 bits) is not continuous with "0xFF", the image compression apparatus 1 regards it as the output code word as it is, and when it continues twice, how many times thereafter. Count whether it continues,
The count number may be used as the code word.

【0051】ただし、出力符号ワードは8bitである
ため、最大カウント数「255」とし、それ以上続く場
合、次の出力符号ワードに続きのカウント数を入れる。
また、カウント数がちょうど「255」で終わる場合、
次の出力符号ワードに「0」を入れる。
However, since the output code word is 8 bits, the maximum count number is set to "255", and if it continues beyond this, the subsequent count number is put in the next output code word.
Also, if the count number ends with just "255",
Place a "0" in the next output codeword.

【0052】このようにすると、出力符号データの特徴
を利用して、データ量をさらに削減する圧縮を行って圧
縮率をさらに高めることができ、画像データが圧縮容易
なデータである場合でも圧縮率が低いという結果を防止
して、より一層良好な圧縮を行うことができる。
By doing so, the feature of the output code data can be used to perform the compression for further reducing the data amount to further increase the compression rate, and even if the image data is the data which can be easily compressed, the compression rate is increased. Can be prevented and a better compression can be achieved.

【0053】図4〜図6は、本発明の画像圧縮装置及び
画像伸張装置の第2の実施の形態を示す図であり、図4
は、本発明の画像圧縮装置及び画像伸張装置の第2の実
施の形態を適用した画像伸張装置10の要部ブロック構
成図である。
FIGS. 4 to 6 are views showing the second embodiment of the image compression apparatus and the image expansion apparatus of the present invention.
FIG. 9 is a block diagram of the main parts of an image decompression device 10 to which the second embodiment of the image compression device and the image decompression device of the present invention has been applied.

【0054】図4において、画像伸張装置10は、上記
第1の実施の形態の画像圧縮装置1で符号化されたデー
タを伸張するものであり、符号分離ブロック(符号分離
手段)11及び第1から第3の3つの伸張ブロック(伸
長手段)12〜14を備えている。
In FIG. 4, an image decompression device 10 decompresses the data encoded by the image compression device 1 of the first embodiment, and includes a code separation block (code separation means) 11 and a first code separation block. To 3rd expansion block (expansion means) 12-14.

【0055】画像伸張装置10は、上述のように、画像
圧縮装置1で符号化された符号データが8bitを1ワ
ード単位として構成されているので、ラスタ形式で順々
に入力される符号データを、8bit単位で参照する。
As described above, the image decompressing device 10 is configured such that the code data encoded by the image compressing device 1 is composed of 8 bits in units of 1 word, and therefore the code data sequentially input in the raster format is used. , 8 bit units.

【0056】すなわち、符号分離ブロック11には、符
号データが8bitを1ワード単位で入力され、符号分
離ブロック11は、入力符号ワードが、図2に示す入力
符号ワードの種類のうちで、種類、種類及び種類
のいずれの符号ワードであるかを識別して、分離する。
符号分離ブロック11は、分離した符号データを、種類
の場合は、第1伸張ブロック12に、種類の場合
は、第2伸張ブロック13に、種類の場合は、第3伸
張ブロック14にそれぞれ入力し、各伸張ブロック12
〜14で画像データに伸張する。但し、符号分離ブロッ
ク11は、種類の符号データに関しては、8bitの
符号データを4bitづつに分割し、上位の符号データ
を先として2つに分けて入力する。
That is, 8 bits of code data are input to the code separation block 11 on a word-by-word basis. In the code separation block 11, the input code word is one of the types of the input code words shown in FIG. The type and the code word of the type are identified and separated.
The code separation block 11 inputs the separated code data to the first decompression block 12 for the type, to the second decompression block 13 for the type, and to the third decompression block 14 for the type, respectively. , Each extension block 12
Decompress to image data at ~ 14. However, the code separation block 11 divides 8-bit code data into 4-bit units for the type of code data, and inputs the higher-order code data in two.

【0057】そして、種類の符号データは、8bit
の符号ワード単位に区切れているが、種類及び種類
に分類された符号データは、複数の符号ワードにまたが
って1つの符号データとなっているため、符号分離ブロ
ック11は、先に種類及び種類の符号ワードがあっ
た場合は、その符号データが通過するまでは符号の分離
を行わず、同じ伸張ブロック12〜14に符号ワードを
入力する。
The code data of the type is 8 bits.
However, since the code data classified into types and types is one code data that spans a plurality of code words, the code separation block 11 has the type and type previously. If there is a code word of, the code is not separated until the code data passes, and the code word is input to the same decompression blocks 12-14.

【0058】そして、各伸張ブロック12〜14は、入
力される符号データを伸張し、1つの符号データに対し
て32bitの画像データを復元する。
Each of the decompression blocks 12 to 14 decompresses the input code data and restores 32-bit image data for one code data.

【0059】次に、符号データの種類毎に、符号分離ブ
ロック11と各伸張ブロック12〜14での処理を説明
する。
Next, the processing in the code separation block 11 and the decompression blocks 12 to 14 will be described for each type of code data.

【0060】まず、符号分離ブロック11は、8bit
の入力符号ワードの最上位ビットが「0」であった場
合、その入力符号ワードは、図5に示す種類に属する
符号データであるとして、第1伸張ブロック12に入力
する。第1伸張ブロック12は、この種類の符号デー
タを伸張して出力画像ワードを出力する。
First, the code separation block 11 has 8 bits.
If the most significant bit of the input code word is 0, the input code word is input to the first decompression block 12 as the code data belonging to the type shown in FIG. The first decompression block 12 decompresses this type of code data and outputs an output image word.

【0061】種類の符号データは、8bitの1符号
ワード中に、4bitの符号が上位・下位に分かれて2
つパッキングされて入っており、順序としては、上位が
先で下位が後のデータである。これらの符号データは、
1つを復号して画像データに伸張すると、32bit分
の画像データになる。符号ワードによっては、上位の符
号は、32bitの画像に伸張可能であるが、下位の符
号が「0110」のパス符号であり、伸張する画像がな
い場合がある。これは、上位符号データの次の符号デー
タが、後述する8bitの符号である種類または種類
であった場合であり、種類の符号とパッキングでき
ないからである。
In the code data of the type, a 4-bit code is divided into an upper bit and a lower bit in one 8-bit code word.
The data is packed in one, and in the order, the upper data is first and the lower data is later. These code data are
When one is decoded and expanded into image data, 32 bits of image data are obtained. Depending on the code word, the high-order code can be expanded into a 32-bit image, but the low-order code is a pass code of "0110", and there is a case where there is no image to be expanded. This is because the code data next to the higher-order code data is a type or a type that is an 8-bit code described later, and cannot be packed with the type code.

【0062】この種類の符号データは、図5に示すよ
うに、4bitの符号データが、「0000」である場
合は、伸張される32bitの画像データは全て「0」
である。同様に、4bitの符号データが、「111
1」である場合は、32bit全て「1」であり、4b
itの符号データが、「0110」である場合は、パス
符号であるので、第1伸張ブロック12は、伸張処理を
行わない。また、符号データが、「0001」〜「01
01」である場合は、図5にパターン〜と示してい
るが、図6に示すようになっている。すなわち、図6に
示すように、パターンは、1つ前に伸張した32bi
tの画像データと同じ画像データを伸張するパターンで
あり、パターンは、パターンの画像ワードを8bi
t過去にシフトさせた画像データと同じ画像を伸張する
パターンであり、同様に、パターン〜は、順次8b
it過去にシフトさせた画像データと同じ画像を伸張す
るパターンである。
In this type of code data, as shown in FIG. 5, when the 4-bit code data is "0000", the decompressed 32-bit image data are all "0".
Is. Similarly, the 4-bit code data is “111
If it is "1", all 32 bits are "1" and 4b
If the code data of it is “0110”, it is a pass code, and thus the first decompression block 12 does not perform decompression processing. In addition, the code data is "0001" to "01".
In the case of "01", the pattern is shown in FIG. 5 but is as shown in FIG. That is, as shown in FIG. 6, the pattern has a length of 32 bi that has been expanded one before.
This is a pattern for expanding the same image data as the image data of t.
t This is a pattern for expanding the same image as the image data that has been shifted in the past.
It is a pattern for expanding the same image as the image data shifted in the past.

【0063】次に、符号分離ブロック11は、8bit
の入力符号ワードの最上位ビットが1であり、その次の
3bitが「000」でなかった場合、その入力符号ワ
ードは、図5の種類に属する符号データであるとし
て、第2伸張ブロック13に入力する。第2伸張ブロッ
ク13は、この種類の符号データを伸張して出力画像
ワードを出力する。ただし、種類の符号データは、1
つの符号ワードだけとは限らず、最大4つの符号ワード
にまたがる場合があり、その先頭の符号ワードを、種類
のヘッダ符号ワードとする。
Next, the code separation block 11 has 8 bits.
If the most significant bit of the input code word of 1 is 1 and the next 3 bits are not “000”, the input code word is regarded as code data belonging to the type of FIG. input. The second expansion block 13 expands this type of code data and outputs an output image word. However, the type code data is 1
The number of code words is not limited to one code word and may extend to a maximum of four code words, and the leading code word is set as the header code word of the type.

【0064】入力符号ワードは、ヘッダ符号ワード最上
位ビットの次の3bitにより符号データの長さが決ま
り、この値は、符号データの中にある組の数を表してい
て、1〜7までの値を取る。組とは、4bitの符号で
あり、先頭の組は、ヘッダ符号ワードの下位4bitに
入っている。次の組は、次の符号ワードの上位4bit
に入っており、その次の組は、下位4bitに入ってい
る。このように、先頭の組以外は、2組づつパッキング
されて8bitの符号ワードになっている。
In the input code word, the length of the code data is determined by the next 3 bits of the most significant bit of the header code word, and this value represents the number of sets in the code data. Take a value. The set is a 4-bit code, and the first set is in the lower 4 bits of the header code word. The next set is the upper 4 bits of the next code word
And the next set is in the lower 4 bits. In this way, every set other than the first set is packed into two sets to form an 8-bit code word.

【0065】符号データの最大は、組数が7の場合で、
4つの符号ワードにまたがった符号データとなってい
る。ただし、組の数が偶数の場合は、最後の符号ワード
の下位4bitが余るが、この4bitに関しては、D
on’t careとする。
The maximum of code data is when the number of sets is 7,
The code data is spread over four code words. However, when the number of pairs is an even number, the lower 4 bits of the last code word are left over.
on't care.

【0066】組の意味は、最大15(4bit)までを
表わす32bitの画像データのMSB側からLSB方
向に「1」と「0」のランレングスを順に表したもので
ある。最初の組の値を「0」と定義しており、先頭のb
itが「1」の場合は、最初の組のカウント数は「0」
という組になっている。また、組の中のカウント数は、
最大15(4bit)までであるので、それ以上同じ値
が続く場合は、次の組も同じ値の組として、続きのカウ
ント数が入っている。カウント数がちょうど「15」で
終わる場合でも、次の組も同じ値の組となるので、次の
組は、カウント数「0」が入っている。最後の組につい
ての情報は、無くても復号可能(伸長可能)であるので
省略されている。最後から1つ前の組のカウント数が、
「15」の場合は、最後から1つ前の組についての情報
も省略されている。また、最後から1つ前の組のカウン
ト数と2つ前の組のカウント数が、共に「15」の場合
は、最後から1つ前と2つ前の組も省略されている。種
類の符号データは、上述のように構成されており、第
2伸張ブロック13は、符号データ1つで、32bit
の画像データを伸張する。
The meaning of the set is to represent run lengths of "1" and "0" in order from the MSB side of the image data of 32 bits representing up to 15 (4 bits) in the LSB direction. The value of the first set is defined as "0", and the first b
When it is "1", the count number of the first set is "0"
It is a group. In addition, the number of counts in the set is
Since the maximum number is 15 (4 bits), if the same value continues for more than that, the next set is also a set of the same value, and the subsequent count number is included. Even if the count number ends with just “15”, the next set also has the same value, so the count number “0” is entered in the next set. The information about the last set is omitted because it can be decoded (decompressed) without it. The count number of the last group from the last,
In the case of "15", the information about the group immediately before the last is also omitted. Further, when the count number of the last set and the count number of the last set are both “15”, the last set and the last set are also omitted. The code data of the type is configured as described above, and the second decompression block 13 has one code data and 32 bits.
Expand the image data of.

【0067】さらに、符号分離ブロック11は、8bi
tの入力符号ワードの上位4bitが、「1000」で
ある場合、その入力符号ワードは、図5の種類に属す
る符号データであるとして、第3伸張ブロック14に入
力する。第3伸張ブロック14は、この種類の符号デ
ータを伸張して、出力画像ワードを出力する。ただし、
種類の符号データは、5つの符号ワードにまたがった
符号データであり、その先頭の符号ワードを、種類の
ヘッダ符号ワードとする。
Further, the code separation block 11 has 8 bi
When the upper 4 bits of the input code word of t is “1000”, the input code word is input to the third expansion block 14 as the code data belonging to the type of FIG. The third expansion block 14 expands this type of code data and outputs an output image word. However,
The type code data is code data that spans five code words, and the leading code word is the type header code word.

【0068】種類の符号データは、そのヘッダ符号ワ
ード以外の4つの符号ワードには、8bitづつ符号化
前の画像データが入っており、第3伸張ブロック14
は、符号ワードを上位から順に並べることにより、32
bitの画像データに復元して、出力画像ワードを出力
する。
In the code data of the type, the image data before encoding is contained in every 4 bits in the four code words other than the header code word.
32 is obtained by arranging the code words in order from the higher order.
The output image word is output by restoring the bit image data.

【0069】このように、本実施の形態の画像伸張装置
10は、異なる圧縮方式で圧縮され8bitを1ワード
単位とする入力符号データを符号分離ブロック11で種
類〜別に分離し、当該分離した符号データを、符号
データの種類〜毎にそれぞれ特化した伸張方式で伸
張する複数の伸張ブロック12〜14のうち当該符号デ
ータの種類〜に適応する伸張ブロック12〜14に
入力して、当該伸張ブロック12から4で伸張して32
bitを1ワード単位とする画像データとして出力して
いる。
As described above, the image expansion apparatus 10 of the present embodiment separates the input code data, which is compressed by different compression methods and has 8 bits as one word unit, by the code separation block 11 according to the type and the separated code. The data is input to the decompression blocks 12 to 14 that are adapted to the type of the code data among the plurality of decompression blocks 12 to 14 that are decompressed by the decompression method specialized for each type of the code data. Extend from 12 to 4 to 32
Bits are output as image data in units of 1 word.

【0070】したがって、単純なアルゴリズムで符号デ
ータを伸張して、ハードウェア化を容易なものとして、
処理速度を向上させることができるとともに、画像を劣
化させることなく符号データを画像データに復号するこ
とができる。
Therefore, the code data is decompressed by a simple algorithm to facilitate hardware implementation,
The processing speed can be improved, and the coded data can be decoded into image data without degrading the image.

【0071】図7は、本発明の画像圧縮装置及び画像伸
張装置の第3の実施の形態を示す図であり、図7は、本
発明の画像圧縮装置及び画像伸張装置の第3の実施の形
態を適用した画像伸張装置20の要部ブロック構成図で
ある。
FIG. 7 is a diagram showing a third embodiment of the image compression apparatus and the image expansion apparatus of the present invention, and FIG. 7 is a third embodiment of the image compression apparatus and the image expansion apparatus of the present invention. 3 is a block diagram of a main part of an image expansion device 20 to which a form is applied. FIG.

【0072】図7において、画像伸張装置20は、上記
第2の実施の形態の画像伸張装置10の前段に画像伸張
器21が配設されており、画像伸張装置10での処理
は、上記第2の実施の形態と同様である。
In FIG. 7, the image decompression device 20 is provided with an image decompressor 21 in the preceding stage of the image decompression device 10 according to the second embodiment. This is similar to the second embodiment.

【0073】画像伸張器(前伸長手段)21には、第1
の実施の形態の画像圧縮装置1で、画像データを符号化
して生成された符号ワードを、さらに、その符号ワード
(8bit)が同じ値が連続しない場合には、そのまま
出力符号ワードとし、同じ値が2回連続した場合には、
それ以降何回同じ値が連続するかをカウントして、その
カウント数を符号ワードとした符号ワードが入力され
る。
The image decompressor (predecompression means) 21 has a first
In the image compression device 1 according to the embodiment of the present invention, the code word generated by encoding the image data is used as the output code word as it is when the code words (8 bits) are not consecutive in the same value, and the same value is used. If is repeated twice,
After that, the number of times the same value continues is counted, and the code word having the count number as the code word is input.

【0074】画像伸張器21は、この第1の実施の形態
の画像圧縮装置1で、画像データを符号化して生成され
た符号ワードを、さらに、その符号ワード(8bit)
が同じ値が連続しない場合には、そのまま出力符号ワー
ドとし、同じ値が2回連続した場合には、それ以降何回
同じ値が連続するかをカウントして、そのカウント数を
符号ワードとした符号ワードが、8bitを1ワード単
位として構成されているため、このラスタ形式で順々に
入力される符号ワードを、8bit単位で参照して、画
像データを劣化させることなく伸張する。
The image decompressor 21 further encodes the code word generated by encoding the image data by the image compression apparatus 1 of the first embodiment, and further the code word (8 bits).
If the same value does not continue, it is used as the output code word as it is, and if the same value continues twice, the number of times the same value continues after that is counted and the count number is taken as the code word. Since the code word is configured in units of 8 bits, the code words sequentially input in this raster format are referred to in units of 8 bits and expanded without degrading the image data.

【0075】そして、画像伸張器21は、8bitを1
ワード単位としてシリアルに入力される符号ワードを、
同じ値が続かない限り、そのまま画像伸張装置10の符
号分離ブロック11に出力データとして、すなわち、符
号ワードとして出力する。また、画像伸張器21は、2
回同じ値の符号ワードが連続した場合は、その次の符号
ワードを、前の符号ワードの値が今後何回繰り返される
かというカウント数に設定されているとして、符号ワー
ドを伸張して画像伸長装置10の符号分離ブロック11
に出力する。
Then, the image decompressor 21 sets 1 to 8 bits.
The code word input serially as a word unit,
Unless the same value continues, it is output as it is to the code separation block 11 of the image expansion device 10 as output data, that is, as a code word. In addition, the image decompressor 21
If code words with the same value are consecutive, the next code word is set to the count number of the number of times the value of the previous code word is repeated in the future, and the code word is expanded to expand the image. Code separation block 11 of device 10
Output to.

【0076】例えば、「…、44、44、05、…」と
いう符号ワードか入力されると、画像伸張器21は、
「…、44、44、44、44、44、44、44、
…」というように、「05」の符号データを、前の「4
4」という値を後に5回繰り返したデータ(カウント
数)であるとして、符号ワードを伸張する。
For example, when a code word "..., 44, 44, 05, ..." Is input, the image decompressor 21
"..., 44,44,44,44,44,44,44,
"...", the code data of "05" is changed to the preceding "4".
The code word is expanded assuming that the value "4" is data (count number) repeated 5 times later.

【0077】ただし、入力符号ワードは8bitである
ため、最大カウント数は「255」である。したがっ
て、それ以上のカウント数の場合は、続きのカウント数
は、次の符号ワードに入れられており、カウント数がち
ょうど「255」で終わる場合は、次の符号ワードには
「0」が入っていて、カウント数の終了を意味している
ため、画像伸張器21は、これらを考慮して伸張する。
However, since the input code word is 8 bits, the maximum count number is "255". Therefore, for higher counts, the following counts are put in the next codeword, and if the count ends exactly with "255", the next codeword will contain "0". However, since this means the end of the count number, the image decompressor 21 decompresses in consideration of these.

【0078】そして、画像伸張装置10は、画像伸張器
21が伸張した符号データを上記第2の実施の形態のよ
うに伸張する。
Then, the image expansion device 10 expands the code data expanded by the image expansion device 21 as in the second embodiment.

【0079】このように、本実施の形態の画像伸張装置
20は、8bitを1ワード単位とするシリアルの入力
符号データが、同じ値が連続しない場合には、当該符号
データをそのまま入力符号データとして符号分離ブロッ
ク11に入力し、同じ値が2回連続する場合には、それ
以降何回同じ値が連続するかをカウントして、当該カウ
ント数を入力符号データとして符号分離分離ブロック1
1に入力する前伸張手段としての画像伸長器21を設け
ている。
As described above, the image decompressing device 20 of the present embodiment uses the code data as it is as the input code data when the serial input code data having 8 bits as one word unit does not have the same value. When the same value is input twice to the code separation block 11, the number of times the same value continues after that is counted, and the count number is used as input code data.
An image decompressor 21 is provided as a pre-decompression means for inputting the data into the 1.

【0080】したがって、入力符号データの特徴を利用
して、単純なアルゴリズムで、より一層画像を劣化を防
止しつつ符号データを画像データに伸張することができ
る。
Therefore, by utilizing the characteristics of the input code data, the code data can be expanded into the image data with a simple algorithm while further preventing the deterioration of the image.

【0081】図8は、本発明の画像圧縮装置及び画像伸
張装置の第4の実施の形態を示す図であり、図8は、本
発明の画像圧縮装置及び画像伸張装置の第4の実施の形
態を適用した画像伸張装置30の要部ブロック構成図で
ある。
FIG. 8 is a diagram showing the fourth embodiment of the image compression apparatus and the image expansion apparatus of the present invention, and FIG. 8 is the fourth embodiment of the image compression apparatus and the image expansion apparatus of the present invention. FIG. 3 is a block diagram of a main part of an image expansion device 30 to which a mode is applied.

【0082】図8において、画像伸張装置30は、上記
第3の実施の形態の画像伸張器21の前段に画像伸張器
31が配設、すなわち、上記第2の実施の形態の画像伸
張装置10の前段に画像伸張器21が配設され、さら
に、この画像伸張器21の前段に画像伸張器31が配設
されており、画像伸張装置10での処理は、上記第2の
実施の形態と同様であり、また、画像伸張器21での処
理は、上記第3の実施の形態と同様である。
In FIG. 8, the image decompression device 30 is provided with an image decompression device 31 before the image decompression device 21 of the third embodiment, that is, the image decompression device 10 of the second embodiment. The image decompressor 21 is arranged in the preceding stage, and the image decompressor 31 is further arranged in the preceding stage of the image decompressor 21, and the processing in the image decompressing device 10 is the same as that of the second embodiment. The same processing is performed by the image decompressor 21 as in the third embodiment.

【0083】画像伸張器(第2前伸長手段)31には、
第1の実施の形態の画像圧縮装置1で、画像データを符
号化して生成された符号ワードを、さらに、当該符号ワ
ード値(8bit)の「0xFF」が連続しない場合
に、そのまま出力符号ワードとし、2回連続した場合
に、それ以降何回連続するかをカウントして、そのカウ
ント数を符号ワードとした符号ワードが入力される。
The image decompressor (second front decompression means) 31 includes
In the image compression device 1 of the first embodiment, the code word generated by encoding the image data is used as the output code word as it is when the code word value (8 bit) “0xFF” is not continuous. When the number of consecutive times is two, the number of consecutive times is counted, and the code word having the count number as the code word is input.

【0084】そして、画像伸張器31は、この第1の実
施の形態の画像圧縮装置1で圧縮された符号ワードが、
8bitを1ワード単位として構成されているため、こ
のラスタ形式で順々に入力される符号ワードを、8bi
t単位で参照して、画像データを劣化させることなく伸
張する。
Then, the image decompressor 31 outputs the code word compressed by the image compression device 1 of the first embodiment,
Since 8 bits are configured in units of 1 word, code words sequentially input in this raster format are converted into 8 bits.
The image data is expanded without being deteriorated by referring to the t unit.

【0085】すなわち、画像伸張器31は、8bitを
1ワード単位としてシリアルに入力されるデータを、
「FF」という値が続かない限り、そのまま画像伸張器
21に出力データとして、すなわち、符号ワードとして
出力する。また、画像伸張器31は、2回「FF」とい
う値の符号ワードが連続した場合は、その次の符号ワー
ドは「FF」という符号ワードの値が今後何回繰り返さ
れるかというカウント数に設定されているとして、当該
カウント数を符号ワードとして、画像伸長器21に出力
する。
That is, the image decompressor 31 converts the data serially input in units of 8 bits into one word,
Unless the value "FF" continues, it is output as it is to the image decompressor 21 as output data, that is, as a code word. Further, when the code word having the value “FF” is consecutive twice, the image decompressor 31 sets the next code word to the count number indicating how many times the value of the code word “FF” is repeated. Assuming that the count has been performed, the count number is output to the image decompressor 21 as a code word.

【0086】例えば、「…、FF、FF、05、…」と
いう符号ワードか入力されたとすると、画像伸張器31
は、「…、FF、FF、FF、FF、FF、FF、F
F、…」というように、「05」の符号データは、前の
「FF」という値を後に5回繰り返したデータ(カウン
ト数)であるとして、符号ワードを伸張する。
For example, if a code word "..., FF, FF, 05, ..." Is input, the image decompressor 31 is input.
Is "..., FF, FF, FF, FF, FF, FF, F
The code data of "05" such as "F, ..." is assumed to be data (count number) obtained by repeating the previous value of "FF" five times later, and the code word is expanded.

【0087】ただし、入力符号ワードは8bitである
ため、最大カウント数は「255」である。したがっ
て、それ以上のカウント数の場合は、続きのカウント数
は、次の符号ワードに入れられており、カウント数がち
ょうど「255」で終わる場合は、次の符号ワードには
「0」が入っていて、カウント数の終了を意味している
ため、画像伸張器31は、これらを考慮して伸張する。
However, since the input code word is 8 bits, the maximum count number is "255". Therefore, for higher counts, the following counts are put in the next codeword, and if the count ends exactly with "255", the next codeword will contain "0". However, since this means the end of the count number, the image decompressor 31 decompresses in consideration of these.

【0088】そして、画像伸張器21は、画像伸張器3
1が伸張した符号データを上記第3の実施の形態のよう
に伸張して画像伸張器21に出力し、画像伸張装置10
は、画像伸張器21が伸張した符号データを上記第2の
実施の形態のように伸張する。
Then, the image decompressor 21 uses the image decompressor 3
The code data decompressed by 1 is decompressed as in the third embodiment and output to the image decompressor 21.
Is to expand the code data expanded by the image expander 21 as in the second embodiment.

【0089】このように、本実施の形態の画像伸張装置
30は、8bitを1ワード単位とするシリアルの入力
符号データの値が、「0xFF」が連続しない場合に
は、当該入力符号データをそのまま入力符号データとし
て上記前伸長手段としての画像伸長器21に入力し、
「0xFF」が2回連続する場合には、それ以降何回
「0xFF」が連続するかをカウントして、当該カウン
ト数を入力符号データとして画像伸長器21に入力する
第2前伸張手段としての画像伸長器31を設けている。
As described above, the image decompressing device 30 of the present embodiment, if the value of the serial input code data whose 8-bit unit is 8 bits is not "0xFF" consecutively, the input code data is left as it is. It is input as input code data to the image decompressor 21 as the predecompression means,
When “0xFF” continues twice, the number of times “0xFF” continues after that is counted, and the count number is input to the image decompressor 21 as input code data. An image decompressor 31 is provided.

【0090】したがって、入力符号データの特徴を利用
して、単純なアルゴリズムで、さらにより一層画像を劣
化を防止しつつ符号データを画像データに伸張すること
ができる。
Therefore, by utilizing the characteristics of the input code data, the code data can be expanded into the image data with a simple algorithm while further preventing the deterioration of the image.

【0091】以上、本発明者によってなされた発明を好
適な実施の形態に基づき具体的に説明したが、本発明は
上記のものに限定されるものではなく、その要旨を逸脱
しない範囲で種々変更可能であることはいうまでもな
い。
Although the invention made by the present inventor has been specifically described based on the preferred embodiments, the present invention is not limited to the above, and various modifications can be made without departing from the scope of the invention. It goes without saying that it is possible.

【0092】[0092]

【発明の効果】請求項1記載の発明の画像圧縮装置によ
れば、入力画像データを32bitを1ワード単位とし
て画像分離手段で種類別に分離し、当該分離した1ワー
ド単位の画像データをそれぞれ特化した圧縮方式で圧縮
する複数の圧縮手段のうち当該1ワード単位の画像デー
タの種類に適応する圧縮手段で圧縮して8bitを1ワ
ード単位とする符号データとして出力するので、単純な
アルゴリズムで圧縮して、ハードウェア化を容易なもの
として、処理速度を向上させることができるとともに、
圧縮率を向上させることができる。
According to the image compressing apparatus of the present invention, the input image data is separated by the image separating means in units of 32 bits per word, and the separated image data in units of 1 word is specified. Of the plurality of compression means for compressing by the compressed compression method, the compression means adapted to the type of the image data of the 1-word unit is used to output 8 bit as the code data of 1-word unit, so the compression is performed by a simple algorithm. Then, it is possible to improve the processing speed by making it easy to implement hardware,
The compression rate can be improved.

【0093】請求項2記載の発明の画像圧縮装置によれ
ば、圧縮手段の出力する8bitを1ワード単位とする
シリアルの符号データが、同じ値が連続しない場合に
は、当該符号データをそのまま出力符号データとし、同
じ値が2回連続する場合には、それ以降何回同じ値が連
続するかをカウントして、当該カウント数を出力符号デ
ータとしているので、出力符号データの特徴を利用し
て、データ量をさらに削減する圧縮を行って圧縮率をさ
らに高めることができ、画像データが圧縮容易なデータ
である場合でも圧縮率が低いという結果を防止して、よ
り一層良好な圧縮を行うことができる。
According to the image compression apparatus of the second aspect of the present invention, when the serial code data having the 8-bit unit output by the compression means does not have the same value, the code data is output as it is. In the case of code data, if the same value continues twice, the number of times the same value continues after that is counted and the count number is used as output code data. , It is possible to further reduce the amount of data by performing compression to further improve the compression rate, and prevent the result of low compression rate even when the image data is data that is easily compressed, and perform better compression. You can

【0094】請求項3記載の発明の画像圧縮装置によれ
ば、圧縮手段の出力する8bitを1ワード単位とする
シリアルの符号データの値が、0xFFが連続しない場
合には、当該符号データをそのまま出力符号データと
し、0xFFが2回連続する場合には、それ以降何回0
xFFが連続するかをカウントして、当該カウント数を
出力符号データとしているので、出力符号データの特徴
を利用して、データ量をさらに削減する圧縮を行って圧
縮率をさらに高めることができ、画像データが圧縮容易
なデータである場合でも圧縮率が低いという結果を防止
して、より一層良好な圧縮を行うことができる。
According to the image compression apparatus of the third aspect of the invention, when the value of the serial code data in which one bit unit is 8 bits output from the compression means is 0xFF, the code data is left as it is. If the output code data is 0xFF twice consecutively, then 0
Since it is counted whether xFF is continuous and the counted number is used as the output code data, it is possible to perform the compression for further reducing the data amount by using the feature of the output code data and further increase the compression rate. Even if the image data is data that can be easily compressed, it is possible to prevent the result that the compression rate is low and perform more favorable compression.

【0095】請求項4記載の発明の画像伸長装置によれ
ば、異なる圧縮方式で圧縮され8bitを1ワード単位
とする入力符号データを符号分離手段で種類別に分離
し、当該分離した符号データを、符号データの種類毎に
それぞれ特化した伸張方式で伸張する複数の伸張手段の
うち当該符号データの種類に適応する伸張手段に入力し
て、当該伸張手段で伸張して32bitを1ワード単位
とする画像データとして出力するので、単純なアルゴリ
ズムで符号データを伸張して、ハードウェア化を容易な
ものとして、処理速度を向上させることができるととも
に、画像を劣化させることなく符号データを画像データ
に復号することができる。
According to the image decompressing device of the invention described in claim 4, the input code data, which is compressed by different compression methods and has 8 bits as one word unit, is separated by the code separating means by the type, and the separated code data is Of a plurality of decompression means that decompress by a decompression method specialized for each type of code data, it is input to a decompression means adapted to the type of the code data and decompressed by the decompression means to make 32 bits in 1-word units. Since it is output as image data, the code data can be decompressed with a simple algorithm to facilitate hardware implementation, improving the processing speed and decoding the code data into image data without degrading the image. can do.

【0096】請求項5記載の発明の画像伸長装置によれ
ば、8bitを1ワード単位とするシリアルの入力符号
データが、同じ値が連続しない場合には、当該符号デー
タをそのまま入力符号データとして符号分離手段に入力
し、同じ値が2回連続する場合には、それ以降何回同じ
値が連続するかをカウントして、当該カウント数を入力
符号データとして符号分離手段に入力する前伸張手段を
設けているので、入力符号データの特徴を利用して、単
純なアルゴリズムで、より一層画像を劣化を防止しつつ
符号データを画像データに伸張することができる。
According to the image decompressing device of the fifth aspect of the invention, when serial input code data having 8 bits as one word unit does not have the same value, the code data is directly coded as the input code data. When the same value is input twice to the separating means, the pre-expansion means that counts how many times the same value continues after that and inputs the count number to the code separating means as the input code data. Since it is provided, the characteristic of the input code data can be used to expand the code data into the image data with a simple algorithm while further preventing the deterioration of the image.

【0097】請求項6記載の発明の画像伸長装置によれ
ば、8bitを1ワード単位とするシリアルの入力符号
データの値が、0xFFが連続しない場合には、当該入
力符号データをそのまま入力符号データとして前伸張手
段に入力し、0xFFが2回連続する場合には、それ以
降何回0xFFが連続するかをカウントして、当該カウ
ント数を入力符号データとして前伸張手段に入力する第
2前伸張手段を設けているので、入力符号データの特徴
を利用して、単純なアルゴリズムで、さらにより一層画
像を劣化を防止しつつ符号データを画像データに伸張す
ることができる。
According to the image decompressing device of the sixth aspect of the invention, when the value of serial input code data having 8 bits as one word unit is not 0xFF consecutively, the input code data is directly input code data. When the 0xFF continues twice, the number of times 0xFF continues after that is counted, and the count number is input to the pre-expansion means as input code data. Since the means is provided, the characteristic of the input code data can be used to expand the code data into the image data with a simple algorithm while further preventing the deterioration of the image.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の画像圧縮装置及び画像伸張装置の第1
の実施の形態を適用した画像圧縮装置の要部ブロック構
成図。
FIG. 1 is a first image compression device and image expansion device of the present invention.
FIG. 3 is a block diagram of a main part of an image compression apparatus to which the embodiment of FIG.

【図2】図1の画像圧縮装置の入力画像ワードの種類、
出力符号データ及びその説明を示す図。
FIG. 2 is a diagram showing the types of input image words of the image compression apparatus shown in FIG.
The figure which shows output code data and its description.

【図3】図2のパターンの説明図。FIG. 3 is an explanatory diagram of the pattern of FIG.

【図4】本発明の画像圧縮装置及び画像伸張装置の第2
の実施の形態を適用した画像伸張装置の要部ブロック構
成図。
FIG. 4 is a second image compression device and image expansion device of the present invention.
FIG. 3 is a block diagram of a main part of an image expansion device to which the embodiment of FIG.

【図5】図4の画像圧縮装置の入力符号ワードの種類、
符号データ及びその説明を示す図。
FIG. 5 is a kind of input codeword of the image compression apparatus of FIG.
The figure which shows code data and its description.

【図6】図5のパターンの説明図。FIG. 6 is an explanatory view of the pattern of FIG.

【図7】本発明の画像圧縮装置及び画像伸張装置の第3
の実施の形態を適用した画像伸張装置の要部ブロック構
成図。
FIG. 7 is a third image compression device and image expansion device according to the present invention.
FIG. 3 is a block diagram of a main part of an image expansion device to which the embodiment of FIG.

【図8】本発明の画像圧縮装置及び画像伸張装置の第4
の実施の形態を適用した画像伸張装置の要部ブロック構
成図。
FIG. 8 is a fourth image compression apparatus and image expansion apparatus of the present invention.
FIG. 3 is a block diagram of a main part of an image expansion device to which the embodiment of FIG.

【符号の説明】[Explanation of symbols]

1 画像圧縮装置 2 画像分離ブロック 3 第1符号化ブロック 4 第2符号化ブロック 5 第3符号化ブロック 10 画像伸張装置 11 符号分離ブロック 12 第1伸張ブロック 13 第2伸張ブロック 14 第3伸張ブロック 20 画像伸張装置 21 画像伸張器 30 画像伸張装置 31 画像伸張器 1 Image compression device 2 image separation block 3 First coded block 4 Second coded block 5 Third coded block 10 Image decompression device 11 code separation block 12 First extension block 13 Second expansion block 14 Third extension block 20 Image decompression device 21 Image Decompressor 30 image decompressor 31 Image decompressor

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】入力画像データを32bitを1ワード単
位として種類別に分離する画像分離手段と、当該画像分
離手段で分離された1ワード単位の画像データの種類毎
にそれぞれ特化した圧縮方式で圧縮する複数の圧縮手段
と、を備えた画像圧縮装置であって、前記入力画像デー
タを前記画像分離手段で種類別に分離し、当該分離した
1ワード単位の画像データを前記複数の圧縮手段のうち
当該1ワード単位の画像データの種類に適応する圧縮手
段に入力して、当該圧縮手段で圧縮して8bitを1ワ
ード単位とする符号データとして出力することを特徴と
する画像圧縮装置。
1. An image separation means for separating input image data by type in units of 32 bits, and a compression method specialized for each type of image data in 1 word units separated by the image separation means. And a plurality of compression means for compressing the input image data according to the type by the image separation means, and the separated one-word-unit image data among the plurality of compression means. An image compression apparatus characterized by inputting to a compression unit adapted to the type of image data in units of 1 word, compressing by the compression unit and outputting as coded data in units of 8 bits.
【請求項2】前記画像圧縮装置は、前記圧縮手段の出力
する8bitを1ワード単位とするシリアルの符号デー
タが、同じ値が連続しない場合には、当該符号データを
そのまま出力符号データとし、同じ値が2回連続する場
合には、それ以降何回同じ値が連続するかをカウントし
て、当該カウント数を出力符号データとすることを特徴
とする請求項1記載の画像圧縮装置。
2. The image compressing device, when serial code data having 8 bits as one word unit output from the compressing means does not continuously have the same value, the code data is directly used as output code data, and the same. 2. The image compression apparatus according to claim 1, wherein when the value continues twice, the number of times the same value continues after that is counted and the counted number is used as output code data.
【請求項3】前記画像圧縮装置は、前記圧縮手段の出力
する8bitを1ワード単位とするシリアルの符号デー
タの値が、0xFFが連続しない場合には、当該符号デ
ータをそのまま出力符号データとし、0xFFが2回連
続する場合には、それ以降何回0xFFが連続するかを
カウントして、当該カウント数を出力符号データとする
ことを特徴とする請求項1記載の画像圧縮装置。
3. The image compression apparatus, when the value of serial code data in which 1 bit unit is 8 bits output from the compression means is not 0xFF consecutively, the code data is directly used as output code data, The image compression apparatus according to claim 1, wherein, when 0xFF continues twice, the number of times 0xFF continues after that is counted and the counted number is used as output code data.
【請求項4】異なる圧縮方式で圧縮され8bitを1ワ
ード単位とする入力符号データを種類別に分離する符号
分離手段と、当該符号分離手段で分離された符号データ
を当該符号データの種類毎にそれぞれ特化した伸張方式
で伸張する複数の伸張手段と、を備えた画像伸張装置で
あって、前記入力符号データを前記符号分離手段で種類
別に分離し、当該分離した符号データを前記複数の伸張
手段のうち当該符号データの種類に適応する伸張手段に
入力して、当該伸張手段で伸張して32bitを1ワー
ド単位とする画像データとして出力することを特徴とす
る画像伸張装置。
4. Code separating means for separating input code data compressed by different compression methods and having 8 bits as one word unit, and code data separated by the code separating means for each type of the code data. An image decompression device comprising a plurality of decompression means for decompressing with a specialized decompression method, wherein the input code data is separated by the code separation means by type, and the separated code data is divided into the plurality of expansion means. An image decompression device, wherein the image decompression device inputs the decompression means adapted to the type of the code data, decompresses the decompression means, and outputs 32 bits as image data in 1-word units.
【請求項5】前記画像伸張装置は、前記8bitを1ワ
ード単位とするシリアルの入力符号データが、同じ値が
連続しない場合には、当該符号データをそのまま前記入
力符号データとして前記符号分離手段に入力し、同じ値
が2回連続する場合には、それ以降何回同じ値が連続す
るかをカウントして、当該カウント数を前記入力符号デ
ータとして前記符号分離手段に入力する前伸張手段を備
えていることを特徴とする請求項4記載の画像伸張装
置。
5. The image decompressing device, when serial input code data having the 8-bit unit as a word unit does not have the same value, the code data is directly input to the code separating means as the input code data. When the same value is input twice and the same value continues twice, a pre-expansion means is provided to count how many times the same value continues after that and input the count number to the code separation means as the input code data. The image expansion device according to claim 4, wherein
【請求項6】前記画像伸張装置は、前記8bitを1ワ
ード単位とするシリアルの入力符号データの値が、0x
FFが連続しない場合には、当該入力符号データをその
まま前記入力符号データとして前記前伸張手段に入力
し、0xFFが2回連続する場合には、それ以降何回0
xFFが連続するかをカウントして、当該カウント数を
前記入力符号データとして前記前伸張手段に入力する第
2前伸張手段を備えていることを特徴とする請求項5記
載の画像伸張装置。
6. The value of serial input code data in which the image decompressing device has 8 bits as one word unit is 0x.
When the FFs are not continuous, the input code data is directly input to the pre-expansion means as the input code data, and when 0xFF is continuous twice, it is 0 times thereafter.
The image decompression device according to claim 5, further comprising a second pre-expansion unit that counts whether xFFs are continuous and inputs the count number to the pre-expansion unit as the input code data.
JP2001276861A 2001-09-12 2001-09-12 Image compressing device and image expanding device Pending JP2003087573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001276861A JP2003087573A (en) 2001-09-12 2001-09-12 Image compressing device and image expanding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001276861A JP2003087573A (en) 2001-09-12 2001-09-12 Image compressing device and image expanding device

Publications (1)

Publication Number Publication Date
JP2003087573A true JP2003087573A (en) 2003-03-20

Family

ID=19101501

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001276861A Pending JP2003087573A (en) 2001-09-12 2001-09-12 Image compressing device and image expanding device

Country Status (1)

Country Link
JP (1) JP2003087573A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007300165A (en) * 2006-04-27 2007-11-15 Ricoh Co Ltd Image processing apparatus and image processing method
US7664330B2 (en) 2005-01-18 2010-02-16 Samsung Electronics Co., Ltd. Graphic image data compressor and method of compressing graphic image data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7664330B2 (en) 2005-01-18 2010-02-16 Samsung Electronics Co., Ltd. Graphic image data compressor and method of compressing graphic image data
JP2007300165A (en) * 2006-04-27 2007-11-15 Ricoh Co Ltd Image processing apparatus and image processing method

Similar Documents

Publication Publication Date Title
KR101737294B1 (en) Methods and devices for source-coding and decoding of data involving symbol compression
RU2417518C2 (en) Efficient coding and decoding conversion units
KR100975062B1 (en) A Variable Length Coding apparatus and a Variable Length Coding method
JP4033836B2 (en) Compression of paletted color images using variable-length color codes
JP5162708B2 (en) System and method for compressing a stream of integer data
JPH0746142A (en) Data compression system
US20060067582A1 (en) Progressive JPEG decoding system
JPH0918346A (en) Method of data compression and expansion
US6748520B1 (en) System and method for compressing and decompressing a binary code image
EP2962396A1 (en) Entropy modifier and method
EP0635807B1 (en) Coding apparatus for image compression
Mathpal et al. A research paper on lossless data compression techniques
KR100636370B1 (en) Apparatus and method for coding using bit-precision, and apparatus and method for decoding according to the same
JP3952116B2 (en) Image compression apparatus and method
JP2003087573A (en) Image compressing device and image expanding device
US20030113029A1 (en) Skim encoding method for compression of a two dimensional array of data
JPH08186723A (en) Encoder for picture processor
KR100389702B1 (en) The method for compressing and expanding data-stream without loss by bit-substitution
US8754791B1 (en) Entropy modifier and method
CN1656688B (en) Processing digital data prior to compression
JP3709381B2 (en) Color image compression method
JP3781012B2 (en) Image data compression method, image data expansion method, and image data expansion circuit
JPH08275153A (en) Image compressor and image decoder
EP0494038A2 (en) Run-length encoding in extensible character sets
JP3796354B2 (en) Image coding method