[go: up one dir, main page]

JP2806169B2 - Compressed data decompression device - Google Patents

Compressed data decompression device

Info

Publication number
JP2806169B2
JP2806169B2 JP4238308A JP23830892A JP2806169B2 JP 2806169 B2 JP2806169 B2 JP 2806169B2 JP 4238308 A JP4238308 A JP 4238308A JP 23830892 A JP23830892 A JP 23830892A JP 2806169 B2 JP2806169 B2 JP 2806169B2
Authority
JP
Japan
Prior art keywords
data
code
compressed
unit
output
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.)
Expired - Lifetime
Application number
JP4238308A
Other languages
Japanese (ja)
Other versions
JPH0686081A (en
Inventor
満喜 寺田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP4238308A priority Critical patent/JP2806169B2/en
Publication of JPH0686081A publication Critical patent/JPH0686081A/en
Application granted granted Critical
Publication of JP2806169B2 publication Critical patent/JP2806169B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は画像圧縮装置、例えばM
H方式の画像圧縮装置によって圧縮されたイメージデー
タを伸長する圧縮データ伸長装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image compression apparatus, for example, M
The present invention relates to a compressed data decompression device for decompressing image data compressed by an H-type image compression device.

【0002】[0002]

【従来の技術】グループ3(G3)ファクシミリにおけ
る標準符号化方式としてMH(Modified Hu
ffman)方式がある。これは1次元符号化方式と呼
ばれ、イメージデータをビット長の異なる符号の連続デ
ータに変換して圧縮したものである。一般に同一信号の
連続をランと呼ぶが、圧縮前のイメージデータは白画
素、黒画素が連続した白ラン又は黒ランが交互に存在す
るデータであり、圧縮データは白ラン又は黒ランの連続
回数であるランレングスをあらかじめ決められたように
変換した符号の連続データである。各符号の最大ビット
数は13ビットであり、1水平走査ラインのデータの後
にはEOL(End Of Line)符号を付加し、
圧縮データの終了時はEOL符号を6回付加することを
約束としている。
2. Description of the Related Art Modified Hu (MH) is a standard coding method for group 3 (G3) facsimile.
ffman) method. This is called a one-dimensional encoding method, and is a method in which image data is converted into continuous data of codes having different bit lengths and compressed. Generally, the continuation of the same signal is called a run. The image data before compression is data in which white or black runs in which white pixels and black pixels are continuous alternately exist, and the compressed data is the number of continuous white or black runs. Is continuous data of a code obtained by converting the run length as described above. The maximum number of bits of each code is 13 bits, and an EOL (End Of Line) code is added after the data of one horizontal scanning line.
It is promised that the EOL code is added six times at the end of the compressed data.

【0003】図4はMH方式によって圧縮されたイメー
ジデータを伸長するための従来の圧縮データ伸長装置に
おけるフローチャートを示す図である。なお、図に記載
されたaddは圧縮データの取り出し位置のことであ
る。次に、その動作を説明する。データ伸長処理がスタ
ートすると(ステップ50)、圧縮後のイメージデータ
は最大13ビットの長さの符号が連なる連続データであ
るので、取り出し位置addが示す圧縮後のイメージデ
ータの現在の位置からその内13ビットを仮に取り出し
(ステップ51)、ランレングスと符号とが1対1で対
応しているあらかじめ用意されたテーブルを読み出す
(ステップ52)。取り出された圧縮データが有効な符
号、すなわちランレングス又はEOL符号に対応してい
る符号を含んでいるとは限らないので、上記のテーブル
とこの圧縮データとを照合してテーブル上に対応する符
号が存在するかどうかを判別し(ステップ53)、テー
ブル上に対応する符号が存在する場合はその符号がEO
L符号かどうかを判別する(ステップ54)。EOL符
号でない場合は水平走査ラインの終わりではないので、
圧縮データの取り出し位置addを更新する(ステップ
55)。データの取り出しはステップ51において13
ビット分仮に取り出されたので、取り出された圧縮デー
タ中に存在した符号の有する本来の符号長がステップ5
3の照合においてテーブルから読み出され、その本来の
符号長の分だけ圧縮データの取り出し位置addが更新
されることにより次の正しい取り出し位置に更新され
る。
FIG. 4 is a flowchart showing a conventional compressed data decompression apparatus for decompressing image data compressed by the MH system. Note that “add” described in the figure is a position at which compressed data is extracted. Next, the operation will be described. When the data decompression process starts (step 50), the compressed image data is continuous data in which codes having a maximum length of 13 bits are continuous. Thirteen bits are temporarily extracted (step 51), and a table prepared in advance in which run lengths and codes correspond one-to-one is read (step 52). Since the extracted compressed data does not always include a valid code, that is, a code corresponding to a run-length or EOL code, the above table is compared with the compressed data to determine a code corresponding to the table. Is determined (step 53), and if the corresponding code exists on the table, the code is set to EO.
It is determined whether it is an L code (step 54). If it is not the EOL code, it is not the end of the horizontal scanning line.
The extraction position add of the compressed data is updated (step 55). Data extraction is performed in step 51 at step 13
Since the bits are temporarily extracted, the original code length of the code existing in the extracted compressed data is determined in step 5.
In the collation of No. 3, the data is read from the table, and the compressed data extraction position add is updated by the original code length, thereby updating to the next correct extraction position.

【0004】これで、圧縮後のイメージデータ中の1つ
の符号をランレングスに戻す伸長処理が終了し、読み出
した白又は黒のランレングスから圧縮前のイメージデー
タを復元してメモリに格納する(ステップ56)。この
ようにして1つの符号の伸長、復元処理が完了し、まだ
水平走査ラインの途中なので、次の符号の伸長処理のた
めに再び13ビットの取り出しに戻って(ステップ5
1)、上記の処理を繰り返す。
[0004] Thus, the decompression process for returning one code in the compressed image data to the run length is completed, and the uncompressed image data is restored from the read white or black run length and stored in the memory ( Step 56). In this manner, the decompression and restoration processing of one code is completed, and is still in the middle of the horizontal scanning line. Therefore, the process returns to the extraction of 13 bits again for the decompression processing of the next code (step 5).
1) The above processing is repeated.

【0005】ステップ54において符号がEOL符号の
場合は、現在の次の符号もEOL符号かどうかを判別す
る(ステップ57)。次の符号がEOL符号でない場合
は水平走査ラインの終わりを意味するので、EOL符号
の符号長の分だけ圧縮データの取り出し位置addをず
らして次の水平走査ラインの先頭へ更新し(ステップ5
8)、13ビットの取り出しに戻って伸長処理を再び行
う(ステップ51)。ステップ57において次の符号も
EOL符号である場合はイメージデータの終了なので、
終了処理を行う(ステップ59)。また、ステップ53
において何らかの理由で取り出された圧縮データに対応
する該当する符号がテーブル上に存在しない場合も終了
処理を行う(ステップ59)。
If the code is an EOL code in step 54, it is determined whether the current next code is also an EOL code (step 57). If the next code is not the EOL code, it means the end of the horizontal scanning line, so the compressed data extraction position add is shifted by the code length of the EOL code and updated to the beginning of the next horizontal scanning line (step 5).
8) Returning to the extraction of 13 bits, the decompression process is performed again (step 51). If the next code is also an EOL code in step 57, the end of the image data is determined.
End processing is performed (step 59). Step 53
Also, if the corresponding code corresponding to the compressed data extracted for some reason does not exist in the table, the termination processing is performed (step 59).

【0006】[0006]

【発明が解決しようとする課題】このような従来の圧縮
データ伸長装置においては、圧縮データの書き込み不
良、同じく読み取り不良等により圧縮データの1部が壊
れてしまった場合、図4のステップ53の処理において
テーブル上に対応する符号が存在しないと判定して終了
処理を行うので、不良データ以下のデータは正常なデー
タであったとしても読み取ることができないという問題
点があった。本発明は上記課題を解決するために、不良
データを含む圧縮データを取り出しても正常なデータを
読み取ることができる圧縮データ伸長装置を提供するこ
とを目的とする。
In such a conventional compressed data decompression apparatus, when a part of the compressed data is broken due to a defective writing of the compressed data or a defective reading of the compressed data, a step 53 in FIG. In the processing, since it is determined that the corresponding code does not exist on the table and the end processing is performed, there is a problem that data below the defective data cannot be read even if it is normal data. An object of the present invention is to provide a compressed data decompression device that can read normal data even if compressed data including defective data is extracted.

【0007】[0007]

【課題を解決するための手段】本発明は、MR方式によ
って符号化された圧縮後のイメージデータより圧縮デー
タを取り出すデータ取り出し部と、符号表であるテーブ
ルとデータ取り出し部から出力された圧縮データとを照
合し、圧縮データ中に含まれるMH符号又はMR符号
対応するデータをテーブルから読み出すことによりデー
タ伸長して出力し、テーブル上に対応する符号が存在し
ない場合は不良データ処理に移行して指示信号を出力す
る照合部と、次のラインがMH符号化されたことを示す
第1のタグビット、次のラインがMR符号化されたこと
を示す第2のタグビット又は圧縮後のイメージデータの
終端を示す終端符号と、照合部から出力されたデータと
が等しいかどうかを判定し、その結果に基づいて照合部
からのデータに対応する符号のビット数である符号長を
出力し、照合部が不良データ処理に移行した場合は照合
部からのデータが第1のタグビットに等しくなるまで加
算信号を繰り返し出力する終端符号判定部と、照合部か
ら出力された指示信号、終端符号判定部から出力された
符号長又は加算信号により格納している圧縮データの取
り出し位置を更新し、データ取り出し部に圧縮後のイメ
ージデータにおける圧縮データの取り出し位置を指定す
る取り出し位置演算部とを有することを特徴とする。
SUMMARY OF THE INVENTION The present invention is directed to an MR system.
A data extraction unit that extracts compressed data from the image data that has been encoded according to the above is compared with a table that is a code table and the compressed data that is output from the data extraction unit, and the MH code or MH code included in the compressed data is compared. and it outputs the data decompression by reading the data corresponding to the MR code from the table, if the code corresponding to the table does not exist and the collation unit for outputting an instruction signal shifts to bad data processing, the next line Indicates that MH encoding was performed
First tag bit, next line is MR encoded
Of the second tag bit indicating the
The terminal code indicating the terminal and the data output from the collating unit
Are equal or not, and based on the result, the matching unit
The code length, which is the number of bits of the code corresponding to the data from
Output and collate if the collation unit shifts to bad data processing
Terminal code determination unit that repeatedly outputs an addition signal until the data from the unit becomes equal to the first tag bit, and stores the instruction signal output from the collation unit, the code length output from the terminal code determination unit, or the addition signal. The data extracting unit is characterized in that the data extracting unit has an extracting position calculating unit that updates the extracting position of the compressed data and specifies the extracting position of the compressed data in the compressed image data.

【0008】[0008]

【作用】本発明によれば、圧縮データの1部に不良デー
タが含まれていた場合、終端符号に到達するまで圧縮デ
ータの取り出し位置を繰り返し更新することにより不良
データの部分をスキップすることができる。
According to the present invention, when defective data is included in one part of the compressed data, the defective data portion can be skipped by repeatedly updating the extraction position of the compressed data until the end code is reached. it can.

【0009】[0009]

【実施例】図1は本発明の1実施例を示す圧縮データ伸
長装置のブロック図、図2はそのフローチャートを示す
図である。図1において、1は圧縮後のイメージデータ
aより符号の最大の長さである13ビットを仮に取り出
すデータ取り出し部、2はランレングスと符号とが1対
1で対応して記述されたテーブルを記憶しているテーブ
ル記憶部である。3は照合部であり、テーブル記憶部2
に記憶されているテーブルbとデータ取り出し部1から
出力された圧縮データcとを照合してテーブル上に該当
する符号が存在する場合はその符号に対応するランレン
グスd1を出力し、テーブル上に該当する符号がない場
合は圧縮データの取り出し位置addを1ビット分加算
させる指示信号fを出力する。4は終端符号判定部であ
り、照合部3から出力されたランレングスd1がEOL
符号かどうかを判定し、その判定結果に基づいて圧縮デ
ータの取り出し位置addを更新させる符号長d2、E
OL符号の符号長e1、又は1ビット分加算させる加算
信号e2を出力するか、あるいはランレングスd1をそ
のまま出力する。5は取り出し位置演算部であり、照合
部3から出力された指示信号f、終端符号判定部4から
出力された符号長d2、EOL符号の符号長e1、又は
加算信号e2によって圧縮データの取り出し位置add
を演算し、データ取り出し部1に圧縮データの取り出し
及びその位置を指示する取り出し位置addを出力す
る。6は終端符号判定部4から出力されたEOL符号の
符号長e1により、現在処理している符号の次の符号を
取り出してイメージデータの終了かどうかを判定するデ
ータ終了判定部である。
FIG. 1 is a block diagram of a compressed data decompression device showing an embodiment of the present invention, and FIG. 2 is a flowchart showing the same. In FIG. 1, reference numeral 1 denotes a data extracting unit for temporarily extracting 13 bits, which is the maximum length of a code, from the compressed image data a, and 2 denotes a table in which run lengths and codes are described in a one-to-one correspondence. This is a table storage unit for storing. Reference numeral 3 denotes a collation unit, and a table storage unit 2
Is compared with the compressed data c output from the data extracting unit 1, and if a corresponding code exists on the table, a run length d1 corresponding to the code is output. If there is no corresponding code, an instruction signal f for adding one bit to the extraction position add of the compressed data is output. Reference numeral 4 denotes a terminal code determination unit, and the run length d1 output from the collation unit 3 is EOL.
A code length d2, E for updating the compressed data extraction position add based on the result of the determination.
The code length e1 of the OL code or the addition signal e2 for adding one bit is output, or the run length d1 is output as it is. Reference numeral 5 denotes an extraction position calculation unit which extracts the compressed data according to the instruction signal f output from the collation unit 3, the code length d2 output from the end code determination unit 4, the code length e1 of the EOL code, or the addition signal e2. add
And outputs to the data fetching unit 1 a fetched position add indicating the fetching of the compressed data and its position. Reference numeral 6 denotes a data end determining unit for extracting the code next to the code currently being processed based on the code length e1 of the EOL code output from the terminal code determining unit 4 and determining whether to end the image data.

【0010】次に、本発明の圧縮データ伸長装置の動作
を図2に示すフローチャートを参照して説明する。デー
タ取り出し部1は、図示しない外部装置から入力された
圧縮後のイメージデータaにおける取り出し位置、すな
わち取り出し位置演算部5に格納された圧縮データの取
り出し位置addが示す位置から13ビットを仮に取り
出す(図2ステップ11)。データ取り出し部1から出
力された圧縮データcは、テーブル記憶部2に記憶され
ているテーブルbと照合部3で照合されて、テーブル上
に該当する符号が存在する場合はその符号に対応するラ
ンレングスd1に変換され、圧縮データ中に存在したこ
の符号の本来の符号長d2と共に照合部3から出力され
る(ステップ12、13)。終端符号判定部4は、この
ランレングスd1がEOL符号に等しいかどうかを判定
し、EOL符号でない場合はランレングスd1を図示し
ないイメージデータ復元装置へ出力し、本来の符号長d
2を取り出し位置演算部5へ出力する(ステップ1
4)。取り出し位置演算部5は、その本来の符号長d2
の分だけ圧縮データの取り出し位置addをずらして更
新し、次の圧縮データの取り出し及びその位置をデータ
取り出し部1に指示する取り出し位置addを出力する
(ステップ15)。
Next, the operation of the compressed data decompression device of the present invention will be described with reference to the flowchart shown in FIG. The data extracting unit 1 temporarily extracts 13 bits from the extracting position in the compressed image data a input from an external device (not shown), that is, the position indicated by the extracting position add of the compressed data stored in the extracting position calculating unit 5 ( FIG. 2 step 11). The compressed data c output from the data extracting unit 1 is collated by the collating unit 3 with the table b stored in the table storage unit 2, and if a corresponding code exists on the table, the run corresponding to the code is performed. The code is converted to length d1 and output from the collating unit 3 together with the original code length d2 of this code present in the compressed data (steps 12 and 13). The end code determination section 4 determines whether or not the run length d1 is equal to the EOL code. If the run length d1 is not the EOL code, the end length determination section 4 outputs the run length d1 to an image data restoring device (not shown) and outputs the original code length d.
2 is output to the extraction position calculation unit 5 (step 1).
4). The extraction position calculation unit 5 calculates the original code length d2
The compressed data extracting position add is shifted and updated by an amount corresponding to the extracted compressed data, and the extracting position add that instructs the data extracting unit 1 to extract the next compressed data and its position is output (step 15).

【0011】これで、圧縮後のイメージデータaの中の
1つの符号をランレングスd1に戻す伸長処理が終了
し、イメージデータ復元装置は入力された白又は黒のラ
ンレングスd1から圧縮前のイメージデータを復元する
(ステップ16)。このようにして1つの符号の伸長、
復元処理が完了し、まだ水平走査ラインの途中なので、
データ取り出し部1への取り出し位置演算部5からの指
示により(ステップ15)、再び13ビットの取り出し
に戻って(ステップ11)、上記の処理を繰り返す。
[0011] Thus, the decompression process for returning one code in the compressed image data a to the run length d1 is completed, and the image data restoring device outputs the uncompressed image from the input white or black run length d1. The data is restored (step 16). In this way, one code is expanded,
Since the restoration process is completed and it is still in the middle of the horizontal scanning line,
In response to an instruction from the extraction position calculation unit 5 to the data extraction unit 1 (step 15), the process returns to the extraction of 13 bits again (step 11), and the above processing is repeated.

【0012】水平走査ラインの終わり又はイメージデー
タの終わりでは取り出された圧縮データはEOL符号な
ので、終端符号判定部4はデータ終了判定部6へEOL
符号の符号長e1を出力する(ステップ14)。データ
終了判定部6は、取り出し位置演算部5から常に現在の
圧縮データの取り出し位置addを入力されて内部では
取り出し位置add2として格納しているが、EOL符
号の符号長e1を入力されると自身に格納した取り出し
位置add2を上記の符号長e1の分だけずらして更新
し、取り出し位置add2が示す圧縮後のイメージデー
タaの位置から13ビット、すなわち次の符号を含むビ
ットを取り出してEOL符号かどうかを判定する(ステ
ップ17)。
At the end of the horizontal scanning line or the end of the image data, the extracted compressed data is an EOL code, so the end code determination unit 4 sends the EOL code to the data end determination unit 6.
The code length e1 of the code is output (step 14). The data end determination unit 6 always receives the current compressed data extraction position add from the extraction position calculation unit 5 and stores it internally as the extraction position add2. However, when the code length e1 of the EOL code is input, the data end determination unit 6 Is updated by shifting the extraction position add2 stored in the image data a by the above-described code length e1, and extracting 13 bits from the position of the compressed image data a indicated by the extraction position add2, that is, extracting the bit including the next code to the EOL code. It is determined whether it is (step 17).

【0013】EOL符号でない場合は水平走査ラインの
終わりであったと判断できるので、データ終了判定部6
はEOL符号の符号長e1を取り出し位置演算部5へ出
力し、圧縮データの取り出し位置addを符号長e1の
分だけずらして次の水平走査ラインの先頭へ更新させ
る。取り出し位置演算部5は、データ取り出し部1にデ
ータ取り出しを指示する取り出し位置addを出力し
(ステップ18)、13ビットの取り出しを行わせる
(ステップ11)。ステップ17においてEOL符号で
ある場合はイメージデータの終わりと判断できるので、
データ終了判定部6は終了処理を行う(ステップ1
9)。
If it is not an EOL code, it can be determined that the end of the horizontal scanning line has been reached.
Outputs the code length e1 of the EOL code to the extraction position calculation unit 5, and shifts the extraction position add of the compressed data by the code length e1 to update to the beginning of the next horizontal scanning line. The fetch position calculation unit 5 outputs the fetch position add instructing data fetch to the data fetch unit 1 (step 18), and causes the data fetch unit 1 to fetch 13 bits (step 11). If it is the EOL code in step 17, it can be determined that the image data has ended.
The data end determination unit 6 performs end processing (step 1).
9).

【0014】ここまでの動作は図4の圧縮データ伸長装
置の動作と同様であるが、不良データがデータ取り出し
部1によって取り出された場合、照合部3はステップ1
3においてテーブル上に該当する符号が存在しないと判
定するので、不良モード動作に移行して不良モードを保
持し、終端符号判定部4へ不良モード信号d3を出力
し、取り出し位置演算部5へ圧縮データの取り出し位置
addを1ビット分加算する指示を行う指示信号fを出
力する。
The operation up to this point is the same as the operation of the compressed data decompression device shown in FIG.
3, it is determined that the corresponding code does not exist on the table, so that the operation shifts to the failure mode operation, the failure mode is maintained, the failure mode signal d3 is output to the terminal code determination unit 4, and the compression is performed to the extraction position calculation unit 5. An instruction signal f for instructing to add one bit to the data extraction position add is output.

【0015】取り出し位置演算部5は圧縮データの取り
出し位置addを1ビット分加算して更新し、データ取
り出し部1に圧縮後のイメージデータaからの取り出し
及びその位置を指示する取り出し位置addを出力して
13ビットの取り出しを行わせる。(ステップ20)。
照合部3は、不良モード動作の場合はデータ取り出し部
1から出力された圧縮データcに該当する符号がテーブ
ル上にあればその符号に対応するランレングスd1を終
端符号判定部4へ出力し、存在しないときはあらかじめ
設定された意味のない適当なデータを出力する。終端符
号判定部4は、照合部3からの不良モード信号d3を受
けて不良モードに移行し、照合部3から出力されたラン
レングスd1がEOL符号に等しいかどうかを判定し
(ステップ21)、EOL符号でない場合は取り出し位
置演算部5に1ビット加算の加算信号e2を出力する。
1ビット加算を指示された取り出し位置演算部5は再び
圧縮データの取り出し位置addを1ビット分ずらして
更新し、データ取り出し部1に圧縮後のイメージデータ
aからの13ビットの取り出しを指示する(ステップ2
0)。
The extraction position calculation unit 5 updates the extraction position add of the compressed data by adding one bit, and outputs the extraction position add indicating the extraction from the compressed image data a and the position to the data extraction unit 1. To extract 13 bits. (Step 20).
In the case of the failure mode operation, if the code corresponding to the compressed data c output from the data extracting unit 1 is on the table, the matching unit 3 outputs the run length d1 corresponding to the code to the terminal code determination unit 4, If it does not exist, it outputs appropriate data that has no meaning set in advance. The termination code determination unit 4 receives the failure mode signal d3 from the verification unit 3 and shifts to the failure mode, and determines whether or not the run length d1 output from the verification unit 3 is equal to the EOL code (step 21). If it is not the EOL code, an addition signal e2 of 1-bit addition is output to the extraction position calculation unit 5.
The extraction position calculation unit 5 instructed to add 1 bit updates the extraction position add of the compressed data again by shifting by 1 bit, and instructs the data extraction unit 1 to extract 13 bits from the compressed image data a ( Step 2
0).

【0016】このような不良モードの動作はEOL符号
に到達するまで繰り返されるが、EOL符号に到達する
と終端符号判定部4は、自身の不良モードを解除した後
に照合部3へ不良モード解除信号gを出力して不良モー
ドを解除させ、取り出し位置演算部5へEOL符号の符
号長e1を出力する(ステップ21)。取り出し位置演
算部5は、圧縮データの取り出し位置addをEOL符
号の符号長e1の分だけずらして次の水平走査ラインの
先頭まで更新し、データ取り出し部1に圧縮後のイメー
ジデータからの取り出しを指示する取り出し位置add
を出力することにより(ステップ18)、13ビットの
取り出しを行わせて正規のデータ伸長動作に戻す(ステ
ップ11)。つまり、水平走査ラインの途中で不良デー
タを取り出した場合は、照合部3及び終端符号判定部4
は不良モード動作に移行し、EOL符号に到達するまで
圧縮データの取り出し位置の1ビット更新を繰り返すこ
とにより不良データの部分をスキップし、正常なデータ
を有する水平走査ラインから圧縮データの伸長を再開す
ることができる。
The operation of such a failure mode is repeated until the end of the EOL code is reached. When the end of the EOL code is reached, the terminal code determination unit 4 releases its own failure mode and then sends a failure mode release signal g to the verification unit 3. To output the code length e1 of the EOL code to the extraction position calculation unit 5 (step 21). The fetch position calculation unit 5 updates the fetch position add of the compressed data by the code length e1 of the EOL code to the beginning of the next horizontal scanning line, and causes the data fetch unit 1 to fetch the compressed image data from the image data. Instructed take-out position add
Is output (step 18), 13 bits are taken out, and the operation is returned to the normal data decompression operation (step 11). That is, when the defective data is taken out in the middle of the horizontal scanning line, the collating unit 3 and the end code determining unit 4
Shifts to the failure mode operation, skips the failure data portion by repeating the one-bit update of the extraction position of the compression data until the EOL code is reached, and resumes the expansion of the compressed data from the horizontal scanning line having normal data can do.

【0017】図1の例はMH方式に適用したが、本発明
はMR(Modified Read)方式にも適用す
ることができる。MR方式は、ある一定のKラインのう
ち1ラインのみMH方式の符号化(以下MH符号化とす
る)を実施し、残りのK−1個のラインは前のラインと
の違いを符号化する(以下MR符号化とする)ことでイ
メージデータの圧縮を行う方式である。符号化された各
ラインの最後にEOL符号が付加され、EOL符号の後
には次のラインがMH符号化されたか又はMR符号化さ
れたかをそれぞれ示す「1」又は「0」のタグビットが
続く。以下、それぞれの符号をEOL+1符号、EOL
+0符号とする。イメージデータの先頭にはEOL+1
符号を付加し、終了時はEOL+1符号を6回付加する
ことを約束としている。
Although the example shown in FIG. 1 is applied to the MH system, the present invention can also be applied to an MR (Modified Read) system. In the MR system, only one line out of a certain K lines is subjected to MH encoding (hereinafter referred to as MH encoding), and the remaining K-1 lines encode differences from the previous line. (Hereinafter referred to as MR encoding) to compress image data. An EOL code is added to the end of each coded line, followed by a tag bit of "1" or "0" indicating whether the next line was MH coded or MR coded, respectively. . Hereinafter, the respective codes are EOL + 1 code, EOL
+0 sign. EOL + 1 at the beginning of the image data
It is promised to add a code, and to add the EOL + 1 code six times at the end.

【0018】図3はMR方式によって圧縮されたイメー
ジデータの伸長を行う本発明の他の実施例を示す圧縮デ
ータ伸長装置のフローチャートを示す図である。本発明
の圧縮データ伸長装置は、基本的に図1の例と同様の構
成であり、MH符号化されたラインとMR符号化された
ラインとで異なるイメージデータ復元装置へランレング
スを出力して1ライン分の復元処理をMH符号化又はM
R符号化用のイメージデータ復元装置で行うだけの違い
であり、その動作は圧縮データと照合するテーブルがM
R方式に対応していることが異なるだけで、ステップ3
0〜33まで図2と同様である。
FIG. 3 is a flow chart of a compressed data decompressing apparatus showing another embodiment of the present invention for decompressing image data compressed by the MR method. The compressed data decompression device of the present invention has basically the same configuration as the example of FIG. 1, and outputs run lengths to different image data decompression devices for MH-encoded lines and MR-encoded lines. MH encoding or M
The only difference is that it is performed by the image data decompression device for R encoding.
The only difference is that it corresponds to the R method.
2 is the same as FIG.

【0019】ステップ33においてテーブル上に該当す
る符号が存在する場合はテーブルから読み出したランレ
ングスがEOL+1符号かどうかを判定する(ステップ
34)。圧縮後のイメージデータの先頭にはEOL+1
符号が挿入されているので、いま圧縮後のイメージデー
タの先頭であったとすると、次の符号がEOL+1符号
かどうかの判別に進む(ステップ36)。イメージデー
タの終了ではないので、次の符号はEOL+1符号では
なく、したがってMH符号化ラインと判断できるので、
図示しないMH符号化用のイメージデータ復元装置へ処
理を移す。MH符号化用のイメージデータ復元装置で
は、図1の例と同様のデータ取り出し部へ指示して1ラ
イン分の圧縮データを取り出し、イメージデータに復元
して圧縮データの取り出し位置addを1ライン分の符
号長だけ更新して次のラインのEOL符号の前まで更新
する(ステップ37)。
If the corresponding code exists in the table in step 33, it is determined whether or not the run length read from the table is the EOL + 1 code (step 34). EOL + 1 is added to the head of the compressed image data.
Since the code has been inserted, if it is the head of the compressed image data, the process proceeds to the determination of whether the next code is the EOL + 1 code (step 36). Since it is not the end of the image data, the next code is not the EOL + 1 code, and thus can be determined as the MH coded line.
The process is shifted to an MH encoding image data restoration device (not shown). In the MH coding image data decompression device, a command is issued to the same data retrieving unit as in the example of FIG. 1 to retrieve one line of compressed data, decompress the image data, and set the compressed data retrieval position add for one line. , And updates the code length up to the EOL code of the next line (step 37).

【0020】これで、MH符号化されたラインの伸長処
理が終了し、次の水平走査ラインの取り出しを行う(ス
テップ31)。次の水平走査ラインはMR符号化された
ラインなので、ステップ34においてEOL+1符号で
はないと判断でき、図示しないMR符号化用のイメージ
データ復元装置へ処理を移して上記同様に1ライン分の
処理を行う(ステップ35)。
Thus, the extension processing of the MH-encoded line is completed, and the next horizontal scanning line is taken out (step 31). Since the next horizontal scanning line is a line that has been MR-encoded, it can be determined in step 34 that it is not an EOL + 1 code, and processing is transferred to an MR encoding image data restoration device (not shown) to perform processing for one line in the same manner as described above. (Step 35).

【0021】EOL符号の部分にて不良データが発生し
た場合は、ステップ33において該当する符号がテーブ
ル上に存在しないと判定し、図1の例と同様の動作で取
り出した圧縮データがEOL+1符号になるまで圧縮デ
ータの取り出し位置を更新して繰り返す(ステップ4
0、41)。つまり、MR方式では前のラインとの違い
を符号化しているため、圧縮データが壊れた場合、MR
符号化ラインは意味のないデータになってしまう。そこ
で、不良データを取り出した場合はMH符号化ラインの
先頭にあるEOL+1符号を確認するまで圧縮データの
取り出し位置addをずらしていき、EOL+1符号を
確認した時点で通常の処理に戻ることにより、不良部分
をスキップして正常なデータ部分の伸張、復元処理を行
うことができる。なお、図3のフローチャート中に図示
していないが、ステップ35及びステップ37中にもス
テップ40及びステップ41と同様のループを設けれ
ば、ライン途中での不良データの発生もスキップするこ
とができる。
If defective data occurs in the EOL code portion, it is determined in step 33 that the corresponding code does not exist on the table, and the compressed data extracted by the same operation as in the example of FIG. Until the compressed data extraction position is updated and repeated (step 4
0, 41). That is, in the MR method, the difference from the previous line is encoded.
The encoding line becomes meaningless data. Therefore, when the defective data is extracted, the extraction position add of the compressed data is shifted until the EOL + 1 code at the head of the MH encoding line is confirmed, and the process returns to the normal processing when the EOL + 1 code is confirmed. The normal data portion can be expanded and restored by skipping the portion. Although not shown in the flowchart of FIG. 3, if a loop similar to steps 40 and 41 is provided in steps 35 and 37, the occurrence of defective data in the middle of the line can be skipped. .

【0022】[0022]

【発明の効果】本発明によれば、圧縮データの1部に不
良データが含まれていても、終端符号に到達するまで圧
縮データの取り出し位置を繰り返し更新することにより
不良データの部分をスキップすることができるので、不
良データ以降に正常なデータがあればこの正常データを
取り出して伸長することができる。
According to the present invention, even if defective data is included in one part of the compressed data, the defective data part is skipped by repeatedly updating the extraction position of the compressed data until the end code is reached. Therefore, if there is normal data after the defective data, the normal data can be extracted and expanded.

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

【図1】本発明の1実施例を示す圧縮データ伸長装置の
ブロック図である。
FIG. 1 is a block diagram of a compressed data decompression device showing one embodiment of the present invention.

【図2】図1の圧縮データ伸長装置のフローチャートを
示す図である。
FIG. 2 is a view showing a flowchart of the compressed data decompression apparatus of FIG. 1;

【図3】本発明の他の実施例を示す圧縮データ伸長装置
のフローチャートを示す図である。
FIG. 3 is a diagram showing a flowchart of a compressed data decompression device showing another embodiment of the present invention.

【図4】従来の圧縮データ伸長装置におけるフローチャ
ートを示す図である。
FIG. 4 is a diagram showing a flowchart in a conventional compressed data decompression device.

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

1 データ取り出し部 2 テーブル記憶部 3 照合部 4 終端符号判定部 5 取り出し位置演算部 6 データ終了判定部 a 圧縮後のイメージデータ add 圧縮データの取り出し位置 b テーブル c 圧縮データ d1 ランレングス d2 符号長 d3 不良モード信号 e1 EOL符号の符号長 e2 加算信号 f 指示信号 g 不良モード解除信号 DESCRIPTION OF SYMBOLS 1 Data extraction part 2 Table storage part 3 Collation part 4 Termination code judgment part 5 Extraction position calculation part 6 Data end judgment part a Image data after compression add Extraction position of compressed data b Table c Compressed data d1 Run length d2 Code length d3 Failure mode signal e1 Code length of EOL code e2 Addition signal f Instruction signal g Failure mode release signal

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 MR方式によって符号化された圧縮後の
イメージデータより圧縮データを取り出すデータ取り出
し部と、 符号表であるテーブルと前記データ取り出し部から出力
された圧縮データとを照合し、前記圧縮データ中に含ま
れるMH符号又はMR符号に対応するデータを前記テー
ブルから読み出すことによりデータ伸長して出力し、前
記テーブル上に対応する符号が存在しない場合は不良デ
ータ処理に移行して指示信号を出力する照合部と、次のラインがMH符号化されたことを示す第1のタグビ
ット、次のラインがMR符号化されたことを示す第2の
タグビット又は圧縮後のイメージデータの終端を示す終
端符号と、照合部から出力されたデータとが等しいかど
うかを判定し、その結果に基づいて照合部からのデータ
に対応する符号のビット数である符号長を出力し、照合
部が不良データ処理に移行した場合は照合部からのデー
タが第1のタグビット に等しくなるまで加算信号を繰り
返し出力する終端符号判定部と、 前記照合部から出力された指示信号、前記終端符号判定
部から出力された符号長又は加算信号により格納してい
る圧縮データの取り出し位置を更新し、前記データ取り
出し部に前記圧縮後のイメージデータにおける前記圧縮
データの取り出し位置を指定する取り出し位置演算部と
を有することを特徴とする圧縮データ伸長装置。
A data extraction unit for extracting compressed data from compressed image data encoded by an MR method , a table as a code table, and compressed data output from the data extraction unit, and The data corresponding to the MH code or the MR code included in the data is read out from the table and the data is decompressed and output. If the corresponding code does not exist on the table, the process proceeds to the defective data processing and the instruction signal is output. A collating unit to be output, and a first tag video indicating that the next line has been MH encoded.
, A second indicating that the next line is MR encoded
Tag bit or end indicating end of compressed image data
Whether the end code is equal to the data output from the collating unit
Data from the collation unit based on the result.
Outputs the code length, which is the number of bits of the code corresponding to
If the part shifts to bad data processing, the data
A termination code determination unit that repeatedly outputs an addition signal until the data becomes equal to the first tag bit , an instruction signal output from the collation unit, and a code length or an addition signal output from the termination code determination unit. A compressed data decompression device, wherein the data retrieval unit updates a retrieval position of the compressed data and specifies a retrieval position of the compressed data in the compressed image data.
JP4238308A 1992-09-07 1992-09-07 Compressed data decompression device Expired - Lifetime JP2806169B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4238308A JP2806169B2 (en) 1992-09-07 1992-09-07 Compressed data decompression device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4238308A JP2806169B2 (en) 1992-09-07 1992-09-07 Compressed data decompression device

Publications (2)

Publication Number Publication Date
JPH0686081A JPH0686081A (en) 1994-03-25
JP2806169B2 true JP2806169B2 (en) 1998-09-30

Family

ID=17028279

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4238308A Expired - Lifetime JP2806169B2 (en) 1992-09-07 1992-09-07 Compressed data decompression device

Country Status (1)

Country Link
JP (1) JP2806169B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63301676A (en) * 1987-05-30 1988-12-08 Toshiba Corp Image extending system
JP2689020B2 (en) * 1990-11-15 1997-12-10 株式会社日立テレコムテクノロジー Code decompression method and drawing device

Also Published As

Publication number Publication date
JPH0686081A (en) 1994-03-25

Similar Documents

Publication Publication Date Title
US5751860A (en) Method for compressing and decompressing digital image data
JPH07264417A (en) Image coding method
JP2806169B2 (en) Compressed data decompression device
JPH09121170A (en) Method and device for performing compression and restorationof digital picture signal
JP2002229759A (en) Code converting method for supporting image conversion
JP3170312B2 (en) Image processing device
JPS6118387B2 (en)
JP3023215B2 (en) Image processing device
JPH08204967A (en) Data coding device
JP3859325B2 (en) Image iterative transform decoding apparatus and method, and recording medium
JPH10341345A (en) Image data processing system
JP3170313B2 (en) Image processing device
JP2001238087A (en) Picture data compressing method, jbig system encoding processing method and its device
JPH0488749A (en) Picture processor
JPH06121174A (en) Encoding / decoding device
JP3065393B2 (en) Image data restoration method and image data restoration device
KR100530745B1 (en) Method of displaying a high-resolution digital image on a low-resolution display
JPH0884260A (en) Two-dimensional image data compression method and decompression method
JP3152772B2 (en) Image data restoration device
JPH10262249A (en) Expansion method and device for image compression data
JP3796235B2 (en) Image compression and decompression method
JP2965084B2 (en) Image data compression method
JP3082930B2 (en) Image processing device
JP3212393B2 (en) Encoding device
JPH05127866A (en) Image data compression method