JP3142911B2 - Processing method of encoding / decoding device - Google Patents

Processing method of encoding / decoding device

Info

Publication number
JP3142911B2
JP3142911B2 JP03232469A JP23246991A JP3142911B2 JP 3142911 B2 JP3142911 B2 JP 3142911B2 JP 03232469 A JP03232469 A JP 03232469A JP 23246991 A JP23246991 A JP 23246991A JP 3142911 B2 JP3142911 B2 JP 3142911B2
Authority
JP
Japan
Prior art keywords
line
information
data
pixel data
encoding
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 - Fee Related
Application number
JP03232469A
Other languages
Japanese (ja)
Other versions
JPH0556284A (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.)
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 JP03232469A priority Critical patent/JP3142911B2/en
Publication of JPH0556284A publication Critical patent/JPH0556284A/en
Application granted granted Critical
Publication of JP3142911B2 publication Critical patent/JP3142911B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画情報を符号化および
復号化する符号化復号化装置の処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a processing method of an encoding / decoding apparatus for encoding and decoding image information.

【0002】[0002]

【従来の技術】画情報をデータ圧縮する符号化方式とし
て、MH(Modified Huffman)方式,
MR(Modified Relative Elem
entAddress Designate)方式ある
いはMMR(Modified MR)方式がよく知ら
れている。これらの符号化方式では、いずれも画情報の
画素データを1ライン単位に符号化している。
2. Description of the Related Art As an encoding method for compressing image information, MH (Modified Huffman) method,
MR (Modified Relative Elem)
The entAddress Design (MM) method or the Modified MR (MMR) method is well known. In each of these encoding methods, pixel data of image information is encoded in units of one line.

【0003】図7は、MMR方式の符号化データから元
の画素データを再生する復号処理の手順を示したもので
ある。すなわち、復号処理を開始する場合、各ラインの
先頭では白画素のランレングスが定義されているため、
まず白ラン再生状態に初期化する(処理1)。次いで、
符号化データを1ビットずつ入力して(処理2)、1つ
の符号を抽出する(処理3)。この符号は、白/黒画素
のランレングスや符号モードを示す情報である。次に、
その符号から所定の画素データを復元する(処理4)。
FIG. 7 shows a procedure of a decoding process for reproducing original pixel data from MMR coded data. That is, when the decoding process is started, the run length of the white pixel is defined at the head of each line.
First, a white run reproduction state is initialized (process 1). Then
The encoded data is input one bit at a time (process 2), and one code is extracted (process 3). This code is information indicating the run length and code mode of the white / black pixel. next,
The predetermined pixel data is restored from the code (process 4).

【0004】この後、復元した画素データのビット数に
より1ライン分処理したかどうか判定する(処理5)。
ここで、まだ1ライン分処理していない場合には(処理
5のN)、次の符号化データを入力して同様に処理する
(処理2へ)。そして、1ライン分の処理が終了した場
合(処理5のY)、白ラン再生状態に初期化して次のラ
インに対して同様に処理する(処理1へ)。このように
して、符号化データから画素データが順次再生される。
Thereafter, it is determined whether or not one line has been processed based on the number of bits of the restored pixel data (process 5).
If one line has not been processed yet (N in process 5), the next coded data is input and processed in the same way (to process 2). Then, when the processing for one line is completed (Y in processing 5), the processing is initialized to the white run reproduction state, and the same processing is performed for the next line (to processing 1). In this way, pixel data is sequentially reproduced from the encoded data.

【0005】ところで、このような復号処理を高速化す
る1つの方法として、上記符号の抽出動作と、抽出した
符号から画素データを復元する復元動作とを並行して同
時に実行することが考えられる。
Incidentally, as one method for speeding up such a decoding process, it is conceivable that the above-described code extracting operation and a restoring operation for restoring pixel data from the extracted code are performed simultaneously in parallel.

【0006】例えば、MH方式やMR方式では、このよ
うな同時処理がよく行なわれている。MH方式やMR方
式の場合、符号化データに1ラインの終端を示すEOL
コードが挿入されている。このEOLコードを検出する
ことにより、1ラインの終了を判別し、各ラインの先頭
で、白ラン再生状態に初期化するようにしている。
For example, such simultaneous processing is often performed in the MH system and the MR system. In the case of the MH system or the MR system, EOL indicating the end of one line is added to the encoded data.
Code is inserted. By detecting this EOL code, the end of one line is determined, and the white run reproduction state is initialized at the beginning of each line.

【0007】[0007]

【発明が解決しようとする課題】ところが、MMR方式
の場合、符号化データに1ラインの終端を示すEOLコ
ードが挿入されていない。従って、1ラインの終了は、
前記処理のように、復元動作により得た画素データのビ
ット数を計数しないと判定できない。このため、上記符
号抽出動作と復元動作とを同時に実行することができ
ず、復号処理に時間がかかるという問題があった。
However, in the case of the MMR system, an EOL code indicating the end of one line is not inserted in the encoded data. Therefore, the end of one line
As in the above processing, it cannot be determined unless the number of bits of the pixel data obtained by the restoration operation is counted. Therefore, the code extraction operation and the restoration operation cannot be performed at the same time, and there is a problem that the decoding process takes time.

【0008】本発明は、上記の問題を解決し、EOLコ
ードが挿入されない符号化データにおいても、復号化処
理の所要時間を短縮することができる符号化復号化装置
の処理方法を提供することを目的とする。
An object of the present invention is to provide a processing method of an encoding / decoding apparatus capable of solving the above-mentioned problem and shortening the time required for decoding processing even for encoded data in which an EOL code is not inserted. Aim.

【0009】[0009]

【課題を解決するための手段】このために本発明は、復
号化処理の際には、入力される符号化データからランレ
ングスや符号モードの各情報を抽出してバッファメモリ
に格納する動作と、格納された各情報に基ずいて画素デ
ータを再生する動作とを同時に実行する一方、1ライン
分の再生が終了したとき、バッファメモリに格納されて
いる次のライン分の各情報を一旦元の符号化データに戻
して、ライン先頭における所定の初期化を実行した後、
その元に戻した符号化データから再度各情報を得るよう
にしたことを特徴とするものである。
For this purpose, the present invention relates to an operation of extracting run length and code mode information from input coded data and storing the information in a buffer memory during decoding processing. While the operation of reproducing pixel data based on the stored information is simultaneously executed, when the reproduction of one line is completed, the information of the next line stored in the buffer memory is temporarily restored. After performing predetermined initialization at the beginning of the line,
Each information is obtained again from the coded data restored.

【0010】[0010]

【作用】1ラインの先頭で所定の初期化を実行すること
ができると共に、符号抽出動作と復元動作とを同時に実
行できるので、EOLコードが挿入されない符号化デー
タにおいても、復号化処理の所要時間を短縮することが
できる。
The predetermined initialization can be performed at the beginning of one line, and the code extraction operation and the restoration operation can be performed at the same time. Can be shortened.

【0011】[0011]

【実施例】以下、添付図面を参照しながら、本発明の実
施例を詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.

【0012】図1は、本発明の一実施例に係る符号化復
号化装置のブロック構成図を示したものである。図にお
いて、画素データ入出力回路101は、外部装置から画
素データを1ラインずつ入力したり、その装置に1ライ
ンずつ出力したりするものである。変化点検出回路10
2は、入力される画素データの白・黒の変化点を検出
し、所定のランレングス情報や符号モード情報を出力す
るものである。セレクタ103は、入力される2つの信
号の内の一方を選択出力するものである。FIFOバッ
ファ104は、FIFO(First In Firs
t Out)機能を持ち、データを一時格納するメモリ
である。符号変換回路105は、内部に符号変換用のデ
ータテーブルを有し、上記ランレングス情報や符号モー
ド情報を所定の符号語に変換したり、その逆変換を行な
ったりするものである。P/S変換回路106は、パラ
レル信号で入力するデータをシリアル信号で出力するも
のである。
FIG. 1 is a block diagram showing an encoding / decoding apparatus according to an embodiment of the present invention. In the figure, a pixel data input / output circuit 101 inputs pixel data line by line from an external device or outputs line data line by line to the device. Change point detection circuit 10
Numeral 2 detects a white / black change point of the input pixel data and outputs predetermined run-length information and code mode information. The selector 103 selectively outputs one of the two input signals. The FIFO buffer 104 includes a FIFO (First In Firsts).
t Out) is a memory that has a function and temporarily stores data. The code conversion circuit 105 internally has a data table for code conversion, and converts the run-length information and the code mode information into a predetermined code word, and performs the reverse conversion. The P / S conversion circuit 106 outputs data input as a parallel signal as a serial signal.

【0013】符号化データ入出力回路107は、外部装
置に符号化データを1ラインずつ出力したり、その装置
から符号化データを1ラインずつ入力するものである。
セレクタ108は、3つの入力信号の内の1つを選択出
力するものである。S/P変換回路109は、シリアル
信号で入力されるデータをパラレル信号で出力するもの
である。待避レジスタ110は、S/P変換回路109
の内容を一時待避するものである。EOL検出回路11
1は、符号化データ内のEOLコードを検出するもので
ある。FIFOバッファ112は、前記と同様のデータ
を一時格納するメモリである。画素データ復元回路11
3は、ランレングス情報や符号モード情報から画素デー
タを復元するものである。画素数計数回路114は、画
素データを1ライン分計数するものである。制御回路1
15は、上記各回路の動作を監視・制御するものであ
る。
The coded data input / output circuit 107 outputs coded data to an external device line by line or inputs coded data from the device line by line.
The selector 108 selects and outputs one of the three input signals. The S / P conversion circuit 109 outputs data input as a serial signal as a parallel signal. The save register 110 includes an S / P conversion circuit 109
Is temporarily saved. EOL detection circuit 11
Numeral 1 detects an EOL code in the encoded data. The FIFO buffer 112 is a memory for temporarily storing data similar to the above. Pixel data restoration circuit 11
Reference numeral 3 is for restoring pixel data from run length information and code mode information. The pixel number counting circuit 114 counts pixel data for one line. Control circuit 1
Reference numeral 15 is for monitoring and controlling the operation of each circuit.

【0014】以上の構成で、次に、本実施例の符号化復
号化装置の動作を説明する。
Next, the operation of the encoding / decoding apparatus according to the present embodiment having the above configuration will be described.

【0015】いま、符号化処理を行なうものとする。こ
の場合、画素データ入出力回路101は、外部装置から
符号化前の生の画素データを入力し、符号化する符号化
ラインと参照ラインの画素データを変化点検出回路10
2に順次出力する。変化点検出回路102は、入力され
る画素データの白・黒の変化点を検出する。そして、M
MR方式の既知手順に従って、図2(a)に示すよう
に、「パス」,「水平」および「垂直」という3つの符
号化モードの内の1つを選定する。ここで、「水平」を
選定した場合は、さらに白と黒の2区間のランレングス
を計数する。また、「垂直」を選定した場合は、さらに
6種類のモードに区別する。なお、同図「P」,
「H」,「V(0)」,「VR(n)」あるいは「VL
(n)」は、各モードを表す慣用的な記号である。変化
点検出回路102は、このように選定した符号化モード
情報やランレングス情報を出力する。出力された情報
は、セレクタ103を介してFIFOバッファ104に
順次格納される。
Now, assume that an encoding process is performed. In this case, the pixel data input / output circuit 101 inputs raw pixel data before encoding from an external device and converts the pixel data of the encoded line to be encoded and the pixel data of the reference line into the change point detection circuit 10.
2 sequentially. The change point detection circuit 102 detects a white / black change point of input pixel data. And M
According to a known procedure of the MR system, one of three coding modes, “pass”, “horizontal” and “vertical” is selected as shown in FIG. Here, when “horizontal” is selected, the run lengths of two sections of white and black are further counted. When “vertical” is selected, the mode is further classified into six types. Note that "P",
"H", "V (0)", "VR (n)" or "VL
(N) "is a conventional symbol representing each mode. The change point detection circuit 102 outputs the encoding mode information and the run length information selected in this way. The output information is sequentially stored in the FIFO buffer 104 via the selector 103.

【0016】符号変換回路105は、FIFOバッファ
104から上記符号化モード情報やランレングス情報を
読み出し、図2(b)に示すように、対応する所定の符
号語に順次変換する。なお、同図「M1」,「M2」
は、ランレングスを示すMH符号である。また、各符号
語は、同図から明らかなように、可変長データである。
The code conversion circuit 105 reads the coding mode information and the run length information from the FIFO buffer 104, and sequentially converts them into corresponding predetermined code words as shown in FIG. It should be noted that “M1” and “M2” in FIG.
Is an MH code indicating a run length. Each code word is variable-length data, as is apparent from FIG.

【0017】P/S変換回路106は、その可変長デー
タの符号語をパラレル信号で入力し、そのデータ長分だ
けシルアル信号で順次出力する。符号化データ入出力回
路107は、この符号化データを外部装置に出力する。
The P / S conversion circuit 106 receives the codeword of the variable-length data as a parallel signal and sequentially outputs a serial signal corresponding to the data length. The encoded data input / output circuit 107 outputs the encoded data to an external device.

【0018】なお、上記処理において、変化点検出回路
102がFIFOバッファ104に情報を格納する動作
と、FIFOバッファ104からその情報を読み出して
符号化する動作とは、並行して同時に実行されることに
なる。
In the above process, the operation of storing the information in the FIFO buffer 104 by the change point detection circuit 102 and the operation of reading and encoding the information from the FIFO buffer 104 are performed simultaneously in parallel. become.

【0019】次に、復号化処理を行なうものとする。図
3は、この復号化処理の動作を示したものである。すな
わち、この場合、符号化データ入出力回路107は、外
部装置から符号化データをシリアル信号で入力し、セレ
クタ108に順次出力する。このとき、セレクタ108
は、その入力された符号化データをS/P変換回路10
9に出力する。S/P変換回路109は、その符号化デ
ータをパラレル信号に変換して出力する。この場合、符
号変換回路105は、前記変換動作とは反対に、図2
(b)に示す各符号語を、同図(a)に示す符号化モー
ド情報と、ランレングス情報とに変換する(処理100
1)。変換された各情報は、FIFOバッファ112に
一時格納される。画素データ復元回路113は、FIF
Oバッファ112から各情報を読み出して元の画素デー
タを復元する(処理1002)。
Next, a decoding process is performed. FIG. 3 shows the operation of the decoding process. That is, in this case, the encoded data input / output circuit 107 inputs the encoded data from an external device as a serial signal, and sequentially outputs the serial data to the selector 108. At this time, the selector 108
Converts the input encoded data into an S / P conversion circuit 10
9 is output. S / P conversion circuit 109 converts the encoded data into a parallel signal and outputs the parallel signal. In this case, the code conversion circuit 105 performs the operation shown in FIG.
Each codeword shown in (b) is converted into encoding mode information and run-length information shown in FIG.
1). The converted information is temporarily stored in the FIFO buffer 112. The pixel data restoration circuit 113
Each piece of information is read from the O-buffer 112 to restore the original pixel data (process 1002).

【0020】画素数計数回路114は、復元された画素
データのビット数を計数している。制御回路115は、
その計数値により、1ラインの終了かどうかを監視する
(処理1003)。そして、計数値が1ラインのビット
数に満たず1ラインの終了でない場合には(処理100
3のN)、上記復号動作を繰り返す(処理1001
へ)。
The pixel number counting circuit 114 counts the number of bits of the restored pixel data. The control circuit 115
Based on the counted value, it is monitored whether or not one line is completed (process 1003). If the counted value is less than the number of bits of one line and the end of one line is not reached (processing 100
3N), the decoding operation is repeated (process 1001).
What).

【0021】これにより、図4の情報経路R1に示すよ
うに、符号化データが順次復号,復元され、生の画素デ
ータが再生される。なお、このとき、符号変換回路10
5が復号した情報をFIFOバッファ112に格納する
動作と、画素データ復元回路113がその情報を読み出
して画素データを再生する動作とは、並行して同時に実
行されることになる。
As a result, as shown by the information path R1 in FIG. 4, the encoded data is sequentially decoded and restored, and the raw pixel data is reproduced. At this time, the code conversion circuit 10
5, the operation of storing the decoded information in the FIFO buffer 112 and the operation of the pixel data restoring circuit 113 reading out the information and reproducing the pixel data are performed simultaneously in parallel.

【0022】このようにして、復元された画素データの
ビット数が1ライン分に達し、1ラインの復元が終了す
ると(処理1003のY)、1ページの終了かどうか判
別する(処理1004)。ここで、まだ1ページの終了
でない場合(処理1004のN)、S/P変換回路10
9内の格納データを待避レジスタ110に一時転送して
待避する(処理1005)。
In this way, when the number of bits of the restored pixel data reaches one line and the restoration of one line is completed (Y in step 1003), it is determined whether or not one page is completed (step 1004). Here, if the end of one page has not yet been reached (N in process 1004), the S / P conversion circuit 10
9 is temporarily transferred to the save register 110 and saved (process 1005).

【0023】ところで、いま、図5(a)に示すよう
に、符号化データが、符号化データ入出力回路107か
らS/P変換回路109に順次転送されているとき、時
刻tにおいて1ラインの終了に達したとする。この時点
では、S/P変換回路109内にその容量分の符号化デ
ータD1が格納されている。また、FIFOバッファ1
12には、同図(b)に示すように、幾らかの分量の情
報D2が格納されている。従って、その情報D2以前の
情報D3が、同図(c)に示すように、いま復元された
1ラインの画素データD4に相当することになる。ま
た、その情報D2は、同図(a)の上記符号化データD
1以前の符号化データD5に対応し、情報D3は、さら
にそれ以前の符号化データD6に対応する。
By the way, as shown in FIG. 5A, when encoded data is sequentially transferred from the encoded data input / output circuit 107 to the S / P conversion circuit 109, at time t, one line Suppose the end is reached. At this point, the S / P conversion circuit 109 stores the encoded data D1 corresponding to the capacity. Also, FIFO buffer 1
12 stores a certain amount of information D2, as shown in FIG. Therefore, the information D3 before the information D2 corresponds to the pixel data D4 of one line just restored as shown in FIG. The information D2 is the encoded data D shown in FIG.
The information D3 corresponds to the coded data D5 before one and the coded data D6 before that.

【0024】この場合、符号化データD5,D1および
情報D2は、次のラインの情報である。前述したよう
に、ラインの先頭では、白ランを再生するように初期化
しなくてはならない。ところが、この場合、情報D2
は、その初期化を実行しないまま符号化モード等の情報
を取り出しているので、誤った内容になっている。
In this case, the encoded data D5, D1 and information D2 are information of the next line. As described above, at the beginning of the line, initialization must be performed so as to reproduce a white run. However, in this case, the information D2
Is erroneous because the information such as the encoding mode is extracted without executing the initialization.

【0025】前記処理1005では、図4の情報経路R
2に示すように、上記符号化データD1が待避レジスタ
110に待避されることになる。
In the process 1005, the information route R shown in FIG.
As shown in FIG. 2, the encoded data D1 is saved in the save register 110.

【0026】次に、情報経路R3に示すように、FIF
Oバッファ112内の情報D2をセレクタ103とFI
FOバッファ104とを介して、符号変換回路105に
入力する。符号変換回路105は、このとき、符号化動
作により、その情報D2を上記符号化データD5に戻
す。そして、その符号化データD5を、P/S変換回路
106とセレクタ108とを介して、S/P変換回路1
09に転送する(処理1006)。
Next, as shown in the information path R3, the FIF
The information D2 in the O-buffer 112 is transmitted to the selector 103 and the FI
The signal is input to the code conversion circuit 105 via the FO buffer 104. At this time, the code conversion circuit 105 returns the information D2 to the coded data D5 by a coding operation. Then, the coded data D5 is transmitted to the S / P conversion circuit 1 via the P / S conversion circuit 106 and the selector 108.
09 (process 1006).

【0027】次に、符号変換回路105は、白ランを再
生するように初期化した後、その符号化データD5を再
度所定の符号化モード等の各情報に変換する。その各情
報は、情報経路R4に示すように、FIFOバッファ1
12を介して画素データ復元回路113に入力される。
画素データ復元回路113は、その各情報を画素データ
に復元する(処理1007)。これにより、図5(a)
の符号化データD5が正しく再生される。
Next, the code conversion circuit 105 initializes the white run so as to reproduce the white run, and then converts the coded data D5 into various information such as a predetermined coding mode again. The information is stored in the FIFO buffer 1 as shown in the information path R4.
The signal is input to the pixel data restoration circuit 113 via the line 12.
The pixel data restoring circuit 113 restores the information to pixel data (step 1007). As a result, FIG.
Is correctly reproduced.

【0028】次に、情報経路R5に示すように、待避レ
ジスタ110に待避していた符号化データD1をセレク
タ108とS/P変換回路109とを介して、符号変換
回路105に入力する。符号変換回路105は、その符
号化データD1を所定の情報に変換し、画素データ復元
回路113は、その情報により画素データを再生する
(処理1008)。これにより、符号化データD1が正
しく再生される。
Next, as shown in the information path R5, the encoded data D1 saved in the save register 110 is input to the code conversion circuit 105 via the selector 108 and the S / P conversion circuit 109. The code conversion circuit 105 converts the coded data D1 into predetermined information, and the pixel data restoration circuit 113 reproduces pixel data based on the information (process 1008). As a result, the encoded data D1 is correctly reproduced.

【0029】この後、情報経路R1に示す前記処理に戻
る(処理1001へ)。これにより、順次1ラインずつ
同様に処理される。
Thereafter, the process returns to the process shown in the information route R1 (to the process 1001). As a result, the same processing is sequentially performed line by line.

【0030】ところで、符号化データの1ページの最後
には、既知のRTCコードがセットされている。このR
TCコードは、EOLコードが2つ連続したものであ
る。EOL検出回路111は、符号化データの最後で、
そのEOLコードを検知する。制御回路115は、連続
してEOLコードが検知されたとき、1ページの終了と
判定する。
A known RTC code is set at the end of one page of the encoded data. This R
The TC code is a sequence of two consecutive EOL codes. At the end of the encoded data, the EOL detection circuit 111
The EOL code is detected. The control circuit 115 determines that one page has ended when the EOL code is continuously detected.

【0031】このようにして1ページの終了を判定する
ことにより(処理1004のY)、以上の復号化処理を
終了する。
By thus determining the end of one page (Y in step 1004), the above-described decoding processing is completed.

【0032】なお、MH方式およびMR方式の画素デー
タを符号化する場合の処理手順は、前述したMMR方式
の場合と同様である。
The procedure for encoding pixel data of the MH system and the MR system is the same as that of the MMR system described above.

【0033】一方、MH方式およびMR方式の符号化デ
ータを復号化する場合、図3における処理1001と処
理1002とを同様に実行する。この場合、EOL検出
回路111は、符号化データの各ラインに挿入されてい
るEOLコードを検知する。EOLコードが検知された
場合、符号変換回路105は、白ランを再生するための
前記初期化を実行する。そして、次のラインの復号処理
を同様に開始する。この処理をRTCコードが検知され
るまで繰り返す。これにより、1ページの画素データが
再生されるようになる。
On the other hand, when decoding the encoded data of the MH system and the MR system, the processes 1001 and 1002 in FIG. 3 are executed in the same manner. In this case, the EOL detection circuit 111 detects the EOL code inserted in each line of the encoded data. When the EOL code is detected, the code conversion circuit 105 executes the initialization for reproducing the white run. Then, the decoding process for the next line is similarly started. This process is repeated until the RTC code is detected. Thereby, one page of pixel data is reproduced.

【0034】以上のように、本実施例では、符号化処理
の際には、変化点検出回路102により画素データから
ランレングスや符号モードである各情報を取り出してF
IFOバッファ104に格納する動作と、その格納情報
を読み出して符号変換回路105により符号化データを
生成する動作とを同時に実行するようにしているので、
符号化処理を高速に実行することができる。
As described above, in the present embodiment, at the time of the encoding process, the change point detection circuit 102 extracts run-length and code mode information from the pixel data, and
Since the operation of storing the data in the IFO buffer 104 and the operation of reading the stored information and generating the encoded data by the code conversion circuit 105 are performed simultaneously,
The encoding process can be executed at high speed.

【0035】また、復号化処理の際には、符号変換回路
105により符号化データから各情報を抽出してFIF
Oバッファ112に格納する動作と、その格納された各
情報から画素データ復元回路113により画素データを
復元する動作とを同時に実行するようにしているので、
復号処理を高速に実行することができる。
At the time of decoding, each information is extracted from the encoded data by the code conversion
Since the operation of storing the data in the O-buffer 112 and the operation of restoring the pixel data by the pixel data restoring circuit 113 from the respective stored information are performed simultaneously,
The decoding process can be executed at high speed.

【0036】また、この場合、1ライン分の復元が終了
した際に、FIFOバッファ112に格納されている次
のラインの各情報を、符号変換回路105により一旦元
の符号化データに戻し、ライン先頭の初期化を実行した
後、再度その符号化データから各情報を得るようにして
いる。これにより、各ラインの符号化データを正しく復
元することができる。
In this case, when the restoration for one line is completed, the information of the next line stored in the FIFO buffer 112 is returned to the original coded data by the code conversion circuit 105 once, and the line After the initial initialization, each information is obtained again from the encoded data. Thereby, the encoded data of each line can be correctly restored.

【0037】図6は、本発明の他の実施例を示してい
る。
FIG. 6 shows another embodiment of the present invention.

【0038】同図において、図1と同一符号は、同一回
路または同一部分を示し、異なる点は、図1で配設され
ていたFIFOバッファ112は除去し、セレクタ11
6を新たに配設した点である。
In the figure, the same reference numerals as those in FIG. 1 denote the same circuits or the same portions, and the difference is that the FIFO buffer 112 provided in FIG.
6 is newly provided.

【0039】この構成で、符号化処理を実行する場合に
は、変化点検出回路102から出力される各情報をセレ
クタ103を介してFIFOバッファ104に格納す
る。そして、その格納情報は、セレクタ116を介して
符号変換回路105に入力する。一方、復号化処理を実
行する場合には、符号変換回路105が符号化データか
ら取り出す各情報をセレクタ103を介してFIFOバ
ッファ104に格納する。そして、その格納情報は、セ
レクタ116を介して、通常画素データ復元回路113
に入力する一方、ライン終端を検知したのきのみ、符号
変換回路105に入力する。
With this configuration, when performing the encoding process, each information output from the change point detection circuit 102 is stored in the FIFO buffer 104 via the selector 103. Then, the stored information is input to the code conversion circuit 105 via the selector 116. On the other hand, when performing the decoding process, the code conversion circuit 105 stores each piece of information extracted from the encoded data in the FIFO buffer 104 via the selector 103. Then, the stored information is transmitted to the normal pixel data restoration circuit 113 via the selector 116.
Is input to the code conversion circuit 105 only when the end of the line is detected.

【0040】このように、本実施例では、符号化処理時
と復号化処理時とで1つのFIFOバッファ104を共
用している。これにより、FIFOバッファの配設個数
を削減して、装置コストを低下させることができる。
As described above, in this embodiment, one FIFO buffer 104 is shared between the encoding process and the decoding process. As a result, the number of FIFO buffers provided can be reduced, and the apparatus cost can be reduced.

【0041】なお、上述の実施例では、EOLコードが
挿入されない符号化方式として、MMR方式を例にとっ
て説明したが、本発明は、EOLコードが挿入されない
他の符号化方式にも同様に適用することができる。
In the above-described embodiment, the MMR method has been described as an example of a coding method in which an EOL code is not inserted. However, the present invention is similarly applied to other coding methods in which an EOL code is not inserted. be able to.

【0042】また、画素データを符号化復号化する一般
的な例を説明したが、画情報に限らず各種データを同様
に処理できることはいうまでもない。
Although a general example of encoding and decoding pixel data has been described, it goes without saying that not only image information but also various types of data can be similarly processed.

【0043】[0043]

【発明の効果】以上のように、本発明によれば、入力さ
れる符号化データから符号情報を抽出してバッファメモ
リに格納する動作と、その格納された符号情報に基ずい
て画素データを再生する動作とを同時に実行する一方、
1ライン分の再生が終了した際に、バッファメモリに格
納されている次のラインの各情報を一旦元の符号化デー
タに戻して、ライン先頭の所定の初期化を実行した後、
その元に戻した符号化データから再度各情報を得るよう
にしたので、EOLコードが挿入されない符号化データ
においても、復号化処理の所要時間を短縮することがで
きるようになる。
As described above, according to the present invention, the operation of extracting code information from input coded data and storing it in the buffer memory, and the operation of extracting pixel data based on the stored code information While performing the operation to play at the same time,
When the reproduction of one line is completed, the information of the next line stored in the buffer memory is once returned to the original coded data, and the predetermined initialization of the head of the line is performed.
Since each piece of information is obtained again from the coded data that has been restored, the time required for decoding processing can be reduced even for coded data in which an EOL code is not inserted.

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

【図1】本発明の一実施例に係る符号化復号化装置のブ
ロック構成図である。
FIG. 1 is a block diagram of an encoding / decoding device according to an embodiment of the present invention.

【図2】MMR方式の符号説明図である。FIG. 2 is an explanatory diagram of codes in the MMR system.

【図3】復号化処理の動作フローチャートである。FIG. 3 is an operation flowchart of a decoding process.

【図4】各時点における情報経路の説明図である。FIG. 4 is an explanatory diagram of an information path at each time point.

【図5】復元処理が1ライン分終了した時点における各
データの説明図である。
FIG. 5 is an explanatory diagram of each data when the restoration processing is completed for one line.

【図6】本発明の他の実施例に係る符号化復号化装置の
ブロック構成図である。
FIG. 6 is a block diagram of an encoding / decoding device according to another embodiment of the present invention.

【図7】MMR方式の符号化データを復号化する従来の
処理手順のフローチャートである。
FIG. 7 is a flowchart of a conventional processing procedure for decoding MMR coded data.

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

101 画素データ入出力回路 102 変化点検出回路 103,108,116 セレクタ 104,112 FIFOバッファ 105 符号変換回路 106 P/S変換回路 107 符号化データ入出力回路 109 S/P変換回路 110 待避レジスタ 111 EOL検出回路 113 画素データ復元回路 114 画素数計数回路 115 制御回路 Reference Signs List 101 pixel data input / output circuit 102 change point detection circuit 103, 108, 116 selector 104, 112 FIFO buffer 105 code conversion circuit 106 P / S conversion circuit 107 coded data input / output circuit 109 S / P conversion circuit 110 shunt register 111 EOL Detection circuit 113 Pixel data restoration circuit 114 Pixel count circuit 115 Control circuit

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 1ラインずつ入力される画素データの変
化点を検出してその変化パターンを示す各情報を出力す
る変化点検出手段と、それらの各情報を各符号語に変換
して各ラインの符号化データを生成する符号化手段と、
1ラインずつ入力される符号化データから各符号語を抽
出して対応する各情報に変換する復号手段と、変換され
た上記各情報に基づいて各ラインの画素データを再生す
る画素データ復元手段とを備え、符号化処理と復号化処
理とを選択的に実行する一方、復号化処理の際には各ラ
インの先頭において一定の初期化を実行する符号化復号
化装置の処理方式において、 情報一時格納用のバッファメモリと、再生された画素デ
ータの画素数を計数することにより1ライン分の再生の
終了を検知するライン終了判定手段とを備え、復号化処
理の際には、入力される符号化データから上記復号手段
により得た上記各情報を上記バッファメモリに格納する
動作とその格納された上記各情報に基づいて上記復元手
段により画素データを再生する動作とを同時に実行する
一方、1ライン分の再生が終了した際に上記バッファメ
モリに格納されている次のライン分の上記各情報を上記
符号化手段により一旦元の符号化データに戻して、上記
初期化を実行した後その元に戻した符号化データから上
記復号手段により再度上記各情報を得ることを特徴とす
る符号化複号化装置の処理方法。
1. A change point detecting means for detecting a change point of pixel data inputted one line at a time and outputting each information indicating the change pattern, and converting each piece of information into each code word to each line. Encoding means for generating encoded data of
Decoding means for extracting each codeword from the encoded data input line by line and converting it into corresponding information; and pixel data restoring means for reproducing pixel data of each line based on the converted information. In the processing method of the encoding / decoding device that selectively executes the encoding process and the decoding process while performing a certain initialization at the beginning of each line during the decoding process, A buffer memory for storage; and line end determination means for detecting the end of reproduction of one line by counting the number of pixels of reproduced pixel data. The operation of storing the information obtained from the decoded data by the decoding means in the buffer memory and the operation of reproducing the pixel data by the restoration means based on the stored information are simultaneously performed. On the other hand, when the reproduction of one line is completed, the above information of the next line stored in the buffer memory is once returned to the original coded data by the coding means, and And the decoding unit obtains the information again from the coded data that has been restored.
【請求項2】 上記符号化データはMMR方式により生
成されライン終端符号がないものであることを特徴とす
る請求項1記載の符号化復号化装置の処理方法。
2. The processing method according to claim 1, wherein the encoded data is generated by an MMR method and has no line end code.
【請求項3】 上記符号化データ内のライン終端符号を
検出する検出手段を備え、上記符号化データがMH方式
またはMR方式により生成されている場合には上記検出
手段により1ラインの再生終了を検知することを特徴と
する請求項1記載の符号化復号化装置の処理方法。
3. A detecting means for detecting a line end code in the encoded data, wherein when the encoded data is generated by the MH method or the MR method, the detection means terminates reproduction of one line. The processing method of the encoding / decoding device according to claim 1, wherein the detection is performed.
JP03232469A 1991-08-21 1991-08-21 Processing method of encoding / decoding device Expired - Fee Related JP3142911B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03232469A JP3142911B2 (en) 1991-08-21 1991-08-21 Processing method of encoding / decoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03232469A JP3142911B2 (en) 1991-08-21 1991-08-21 Processing method of encoding / decoding device

Publications (2)

Publication Number Publication Date
JPH0556284A JPH0556284A (en) 1993-03-05
JP3142911B2 true JP3142911B2 (en) 2001-03-07

Family

ID=16939788

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03232469A Expired - Fee Related JP3142911B2 (en) 1991-08-21 1991-08-21 Processing method of encoding / decoding device

Country Status (1)

Country Link
JP (1) JP3142911B2 (en)

Also Published As

Publication number Publication date
JPH0556284A (en) 1993-03-05

Similar Documents

Publication Publication Date Title
US4216460A (en) Transmission and/or recording of digital signals
EP0453113B1 (en) Coding and decoding apparatus of variable length date
US4677649A (en) Data receiving apparatus
US4131915A (en) Facsimile signal transmission system
US5625355A (en) Apparatus and method for decoding variable-length code
US4955061A (en) Method and apparatus for processing an image signal
US5321397A (en) Data encoder for producing and storing info runlength value, bit length values and encoded words from input data values
JP3142911B2 (en) Processing method of encoding / decoding device
JPS6338152B2 (en)
JP3417684B2 (en) Image processing device
EP0703675B1 (en) Variable length decoding method and apparatus
JPH04270569A (en) Data compression system for picture processor
JP2833362B2 (en) Image signal expansion device
JP2002091407A (en) Picture display device
JP2556160B2 (en) Compression code decompression device
JPH0149072B2 (en)
GB1570914A (en) Method and apparatus for bandwidth compression
JP3108243B2 (en) Encoding and decoding device
JPH0360225B2 (en)
JP2641442B2 (en) Decryption device
JP3309601B2 (en) Image encoding device and image decoding device
JP2795023B2 (en) Encoding device
JPH0212417B2 (en)
JPS6097777A (en) Facsimile equipment
JPH07255053A (en) Zigzag scanning circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees