JPS5991774A - Coding circuit - Google Patents

Coding circuit

Info

Publication number
JPS5991774A
JPS5991774A JP57202979A JP20297982A JPS5991774A JP S5991774 A JPS5991774 A JP S5991774A JP 57202979 A JP57202979 A JP 57202979A JP 20297982 A JP20297982 A JP 20297982A JP S5991774 A JPS5991774 A JP S5991774A
Authority
JP
Japan
Prior art keywords
signal
code
page
instruction code
memory
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.)
Granted
Application number
JP57202979A
Other languages
Japanese (ja)
Other versions
JPS6342471B2 (en
Inventor
Yasukazu Nishino
西野 寧一
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP57202979A priority Critical patent/JPS5991774A/en
Publication of JPS5991774A publication Critical patent/JPS5991774A/en
Publication of JPS6342471B2 publication Critical patent/JPS6342471B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction

Abstract

PURPOSE:To detect easily the completion of coding by forming an instruction code representing the end of a page, storing it in an intermediate buffer memory and reading this instruction code from the intermediate buffer memory. CONSTITUTION:When a control circuit 3 detects the end of a page, that is, an ''L'' level of a page signal, the information whether it is the run length number of a while signal or a black signal and a value of a counter 2 are written at first in an intermediate memory (FIFO)5, an instruction code commanding a selector 4 to form a line synchronizing signal is selected and the instruction code is written in the FIFO memory 5 about 6 times consecutively, the selector 4 selects the instruction code representing the end of the page and writes the instruction code to the FIFO memory 5. The end of coding is detected easily by reading the instruction code from the FIFO memory 5.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はファクシミリ信号等の画像信号を高速で圧縮、
符号化を行う符号化回路に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention compresses image signals such as facsimile signals at high speed.
This invention relates to an encoding circuit that performs encoding.

従来の構成とその問題点 画像信号の伝送時間を短縮するため、また画像情報を蓄
積するメモリの容量を少なくするために、画像信号の冗
長度を抑圧する符号化方式が用いられている。例えば、
ファクシミリのグループ■機器においては、1次元符号
化方式としてモデファイト・ハフマン(MH)符号化方
式が、2次元符号化方式としてモデファイト・リード(
MR)符号化方式が採用されている。
Conventional configuration and its problems In order to shorten the transmission time of an image signal and to reduce the capacity of a memory that stores image information, an encoding method is used that suppresses the redundancy of the image signal. for example,
For facsimile group ■ equipment, the one-dimensional encoding method is the Modify Huffman (MH) encoding method, and the two-dimensional encoding method is the Modify Read (MH) encoding method.
MR) encoding method is adopted.

MH符号化方式は画像信号の白ランあるいは黒ランの連
続するランレングス数を求め、これを白ランおよび黒ラ
ンそれぞれにつき64画素毎に1728画素までコード
化した「メイクアップコード」と、Oから63まで1画
素毎に刻んでコード化した「ターミネーテイングコード
」を組合せて任意のランレングス数をコード化し符号圧
縮する方法でるる。
The MH encoding method calculates the number of consecutive run lengths of white runs or black runs in the image signal, and uses a "makeup code" that codes up to 1728 pixels every 64 pixels for each white run and black run, and from O to This is a method of encoding and compressing an arbitrary number of run lengths by combining "terminating codes" which are coded by cutting each pixel up to 63.

MR符号化方式は符号化ライン上の変化画素の位置情報
を、符号化ライン上で符号化ずみの変化画素の位置情報
およびすでに符号化ずみの前ラインの変化画素の位置情
報を参照しながら3種類のモード(ハスモード、垂直モ
ー)” 、 水平モート)を求め、符号化ラインを逐次
符号化する方法である。
The MR encoding method calculates the position information of a changed pixel on a coding line by referring to the position information of a changed pixel that has already been encoded on the coding line and the position information of a changed pixel in the previous line that has already been encoded. This method determines the different modes (lotus mode, vertical mode, horizontal mode) and sequentially encodes the encoded lines.

またライン同期信号(EOL信号)は各ラインの符号化
データの後及び、1ページの最初のデータの前に付加さ
れ、1ページの最終ラインの後には、ページの終了信号
としてEOL信号を連続6回付加する。
In addition, a line synchronization signal (EOL signal) is added after each line of encoded data and before the first data of one page, and after the last line of one page, an EOL signal is added continuously six times as a page end signal. Add times.

このような符号化を高速で行う場合、符号が決定される
ごとにその符号要分を一度にシリアル符号に変換す゛る
方法ではなく、符号を決定するブロックとシリアル符号
に変換するブロックの間に中間バッファメモリでるるフ
ァーストイ/・ファーストアウトメモリ(F4FO)メ
モリを設け、FIFOメモリには決定された符号を発生
するよう指示する命令コードを書込み、この命令コード
を読出しシリアル符号に変換する符号化方式がめる。
When performing this type of encoding at high speed, instead of converting code elements into serial codes at once each time the code is determined, an intermediate method is used between the block that determines the code and the block that converts it to serial code. An encoding method in which a first in/first out memory (F4FO) memory is provided in the buffer memory, an instruction code instructing to generate a determined code is written in the FIFO memory, and this instruction code is read out and converted into a serial code. I'm worried.

前記のような中間バッファメモリを用いた符号化方式で
は、1ページの最終ラインまで符号発生命令コードを作
成し、またページの終了信号としてEOL信号を連続6
回発生するようEOL信号発生命令コードを6個作成し
、FIFOにすべての符号発生命令コード及びEOL信
号発生命令コードの書込みが終了しても符号化は完了せ
ずFIFOメモリに符号発生用の命令コードが残ってお
り、またこの量は可変量でりる。従って、F工FOメモ
リに残っている命令コードを読出しシリアル符号に変換
し、符号化を完全に完了するにはFIFOメモリに残っ
ている命令コードの数を記憶している必要がろる。この
量を外部の回路で把握しようとすると回路規模が大きく
なり、制御が複雑となる欠点がある。
In the encoding method using the intermediate buffer memory as described above, the code generation instruction code is created up to the last line of one page, and the EOL signal is continuously sent 6 times as the end signal of the page.
Create six EOL signal generation instruction codes so that the EOL signal generation instruction codes are generated twice, and even after writing all the code generation instruction codes and EOL signal generation instruction codes to the FIFO, the encoding is not completed and the code generation instruction is stored in the FIFO memory. The code remains, and this amount is variable. Therefore, in order to read out the instruction codes remaining in the FIFO memory, convert them into serial codes, and complete encoding, it is necessary to memorize the number of instruction codes remaining in the FIFO memory. Attempting to grasp this amount using an external circuit has the drawback of increasing the circuit scale and complicating control.

発明の目的 不発明の目的は中間バッファメモリを用いた符号化方式
において、符号化の完了を容易に検知出来る符号化回路
を提供することである。
OBJECTS OF THE INVENTION An object of the invention is to provide an encoding circuit that can easily detect the completion of encoding in an encoding system using an intermediate buffer memory.

発明の構成 上記目的を達成するために不発明ではページの終了を表
す命令コードを作成し、これを中間バッファメモリ(F
IFO)に記憶させ、この命令コードを中間パンツアメ
モリ(FIFO)から読出すことにより符号化の完了を
検知するよう構成する。
Structure of the Invention In order to achieve the above object, an instruction code representing the end of a page is created, and this is stored in an intermediate buffer memory (F
The instruction code is stored in an intermediate panzer memory (FIFO), and the completion of encoding is detected by reading this instruction code from an intermediate panzer memory (FIFO).

実施例の説明 第1図に不発明の符号化回路の一実施例を示す。Description of examples FIG. 1 shows an embodiment of the inventive encoding circuit.

第2図はページ信号と同期信号及び画像信号との関係を
示した図である。第2図の(2L)はページ信号、(b
)は各ラインの同期を示す同期信号、(C)は画像信号
で、ページ信号(a)の”H”レベル区間に1ペ一ジ分
のデータが送出され、同期信号(b)のHl+レベル区
間に1ライン分の画像データが送出される。
FIG. 2 is a diagram showing the relationship between a page signal, a synchronization signal, and an image signal. (2L) in Fig. 2 is a page signal, (b
) is a synchronization signal indicating synchronization of each line, (C) is an image signal, data for one page is sent in the "H" level section of page signal (a), and Hl+ level of synchronization signal (b) One line of image data is sent in each section.

従って、画像データはページ信号(a)がHI+レベル
区間でかつ同期信号(b)の”H、I+レベル区間に送
出されてくる。
Therefore, the image data is sent out during the HI+ level section of the page signal (a) and the "H, I+ level section of the synchronizing signal (b)."

第1図において、1は変化点検出回路、2はカウンタ、
3は制御回路、4はセレクタ、5はFIFOメモリで、
変化点検出回路1はクロックに同期して入力してくる2
値の画像信号の白信号から黒信号への変化或いは黒信号
から白信号への変化を検出する。カウンタ2は白信号或
いは黒信号の継続ビ“ット数をカウントする。制御回路
3は変化点検出回路1で信号の変化が検出されるとセレ
クタ4でカウンタ2の値を選択し、FIFOメモリ5に
白信号のランレングス数か黒信号のランレングス数かの
情報とカウンタ2の値を書込み、その後カウンタ2をク
リアする。また、制御回路3でラインの終端すなわち同
期信号(b)のL I+レベルを検出すると、まずF:
[FOメモリ5に白信号のランレングス数か黒信号のラ
ンレングス数かの情報とカウンタ2の値を書込み、その
後カウンタ2をクリアし、また変化点検出回路1もクリ
アし、次のラインの符号化の準備を行う。その後セレク
タ4がEOL信号を作成するよう指示する命令コードを
選択し、FIFOメモリ5にその命令コードを書込む。
In FIG. 1, 1 is a change point detection circuit, 2 is a counter,
3 is a control circuit, 4 is a selector, 5 is a FIFO memory,
The change point detection circuit 1 receives input 2 in synchronization with the clock.
A change in the value of the image signal from a white signal to a black signal or from a black signal to a white signal is detected. The counter 2 counts the number of continuous bits of the white signal or black signal. When the change point detection circuit 1 detects a change in the signal, the control circuit 3 selects the value of the counter 2 with the selector 4 and stores it in the FIFO memory. 5, the information on the number of run lengths of the white signal or the number of run lengths of the black signal and the value of the counter 2 are written, and then the counter 2 is cleared.In addition, the control circuit 3 writes the end of the line, that is, the L of the synchronization signal (b). When I+ level is detected, first F:
[Writes the information on the number of run lengths of the white signal or the number of run lengths of the black signal and the value of counter 2 to the FO memory 5, then clears the counter 2, also clears the change point detection circuit 1, and writes the information of the run length of the next line. Prepare for encoding. Thereafter, the selector 4 selects an instruction code that instructs to create an EOL signal, and writes that instruction code into the FIFO memory 5.

この一連の動作を繰返し行うと、FIFOメモリ6には
各ラインの白信号、黒信号のランレングス数及びEOL
信号を作成するよう指示する命令コードが順に記憶され
る。更に、制御回路3でページの終了すなわちページ信
号(a)の゛L″レベルを検出すると、まずF’IFO
メモリ6に白信号のランレングス数か黒信号のランレン
グス数かの情報とカウンタ2の値を曹込み、その後セレ
クタ4がEOL信号を作成させるよう指示する命令コー
ドを選択し、FIFOメモリ5にその命令コードを連1
i洸6回曹込み、その後セレクタ4がページの終了を表
す命令コードを選択し、FIFOメモリ5にその命令コ
ードを畳込む。以上の動作により、FIF、Oメモリ5
には各ラインの白信号のランレングス数、黒信号のラン
レングス数とMOL信号発生命令コード及びページ終了
命令コードが順に記憶される。
When this series of operations is repeated, the FIFO memory 6 stores the run length numbers of the white signal and black signal of each line, and the EOL.
Instruction codes instructing the generation of signals are stored in sequence. Furthermore, when the control circuit 3 detects the end of the page, that is, the "L" level of the page signal (a), first the F'IFO
The information on the number of run lengths of the white signal or the number of run lengths of the black signal and the value of the counter 2 are stored in the memory 6, and then the selector 4 selects an instruction code that instructs to create an EOL signal, and stores the information in the FIFO memory 5. Continuing the instruction code
After the i-ko process is completed six times, the selector 4 selects an instruction code indicating the end of the page, and stores the instruction code in the FIFO memory 5. By the above operation, FIF, O memory 5
The number of run lengths of the white signal, the number of run lengths of the black signal, the MOL signal generation command code, and the page end command code of each line are stored in order.

6はROM、7はP/Sシフトレジスタ、8はレジスタ
、9はクロック発生回路、10はメモリ、11はページ
終了検出回路で、)(0M6は白信号のランレングス数
と黒信号のランレングス数に対応した符号とその符号長
、及びkOL信号発生命令コードに対応した符号(MH
符号では○00000000001”)とその符号長(
MH符号では符号長12)が記憶されている。P/Sノ
フトレジスタ7にはROM6から読出された符号が、レ
ジスタ8にはIROM 6から読出された符号長が一時
記憶される。クロック発生回路9はレジスタ8に記憶さ
れた符号長分のクロックを発生し、P/Sシフトレジス
タ7に記憶されているパラレル符号をシリアル符号に変
換し、メモリ10に入力する。今、FIFOメモリ5に
白信号のランレングス数或いは黒信号のランレングス数
、FOL信号発生命令コード或いはページ終了命令コー
ドが記憶されているとすると、これの最も古いデータを
読出し、ROM6でこれに対応した符号と符号長に変換
し、符号をP/Sシフトレジスタ7に、符号長をレジス
タ8に入カレ、クロック発生回路9で符号長分のクロッ
クを発生し、メモリ10に入力する。この動作の後FI
FOメモリ5を調べ、データが記憶されていると、これ
の最も古いデータを読出し同様の動作を行う。以上の動
作によシメモリ10には各ラインの画像信号に対応した
符号及び同期(XOL )信号が記憶される。ページ終
了検出回路11で、ページ終了命令コードが検出される
と、すでに1ペ一ジ分の符号化が完了していることがわ
かるから、符号化の動作を終了すれはよい。
6 is a ROM, 7 is a P/S shift register, 8 is a register, 9 is a clock generation circuit, 10 is a memory, 11 is a page end detection circuit, ) (0M6 is the number of run lengths of the white signal and the run length of the black signal. The code corresponding to the number, its code length, and the code corresponding to the kOL signal generation instruction code (MH
The code is ○00000000001”) and its code length (
In the MH code, a code length of 12) is stored. The code read from the ROM 6 is temporarily stored in the P/S noft register 7, and the code length read from the IROM 6 is temporarily stored in the register 8. The clock generation circuit 9 generates a clock corresponding to the code length stored in the register 8, converts the parallel code stored in the P/S shift register 7 into a serial code, and inputs the serial code to the memory 10. Assuming that the FIFO memory 5 stores the number of white signal run lengths, the number of black signal run lengths, the FOL signal generation command code, or the page end command code, the oldest data is read out and stored in the ROM 6. The code is converted into a corresponding code and code length, the code is input into the P/S shift register 7, the code length is input into the register 8, the clock generation circuit 9 generates a clock corresponding to the code length, and the clock is input into the memory 10. After this operation FI
The FO memory 5 is checked, and if data is stored, the oldest data is read out and the same operation is performed. Through the above operations, the code and synchronization (XOL) signal corresponding to the image signal of each line are stored in the memory 10. When the page end detection circuit 11 detects the page end instruction code, it is known that encoding for one page has already been completed, so it is sufficient to terminate the encoding operation.

上記の実施例は1次元符号化方式の場合について述べた
が、2次元符号化方式である例えばMR符号化方式の場
合についても容易に適用出来る。
Although the above embodiment has been described in the case of a one-dimensional encoding method, it can also be easily applied to the case of a two-dimensional encoding method, such as an MR encoding method.

発明の効果 本発明によって次のような効果が持たらされる・1ペー
ジの終了時にページ終了命令コードをFIFOメモリに
曹込むたけでよく、符号化の完了の検知が簡易である。
Effects of the Invention The present invention provides the following effects: - It is sufficient to simply store the page end instruction code in the FIFO memory at the end of one page, making it easy to detect the completion of encoding.

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

第1図は本発明の一実施例における符号化回路のブロッ
ク図、第2図はページ信号と同期信号と画像信号の関係
を示したタイミング図である。 1・・・・・・貧化点検出回路、2・・・・・・カウン
タ、3・・・9.・制御回路、4・・・・・・セレクタ
、5・・・・・・FIFOメモリ、6・・・・・・RO
M、7・・・・・・P/Sシフトレジスタ、8・・・・
・・レジスタ、9・・・・・・クロック発生回路、10
・・・・・・メモリ、11・・・・・・ページ終了検出
回路。
FIG. 1 is a block diagram of an encoding circuit according to an embodiment of the present invention, and FIG. 2 is a timing diagram showing the relationship between a page signal, a synchronization signal, and an image signal. 1... Poor point detection circuit, 2... Counter, 3...9.・Control circuit, 4...Selector, 5...FIFO memory, 6...RO
M, 7...P/S shift register, 8...
...Register, 9...Clock generation circuit, 10
...Memory, 11...Page end detection circuit.

Claims (1)

【特許請求の範囲】[Claims] 読取られた画像信号のランレングス数をカラ/し、その
カウント数に対応した符号を作成するように指示する命
令コードを発生し、命令コードを発生順にファーストイ
ン・ファーストアウトメモリに記憶し、前記ファースト
イン・ファーストアウトメモリから命令コードを順次取
出しその命令コードに対応した符号を作成して符号化を
行うモデファイト・ハフマン(Ml()符号等の符号化
回路において、ページの終了を表す命令コード発生する
手段とその命令コードをファーストイン・ファーストア
ウトメモリに記憶させる手段と、前記ページの終了を表
す命令コードを検出する手段とを設け、符号化の完了を
容易に検知出来るようにしたことを特徴とする符号化回
路。
An instruction code is generated that instructs to calculate the run length number of the read image signal and create a code corresponding to the counted number, and stores the instruction codes in the first-in/first-out memory in the order of generation. An instruction code that indicates the end of a page in an encoding circuit such as a Modified Huffman (Ml() code) that sequentially extracts instruction codes from first-in/first-out memory and creates a code corresponding to the instruction code for encoding. A means for storing the instruction code in a first-in/first-out memory, and a means for detecting the instruction code indicating the end of the page are provided, so that the completion of encoding can be easily detected. Characteristic encoding circuit.
JP57202979A 1982-11-18 1982-11-18 Coding circuit Granted JPS5991774A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57202979A JPS5991774A (en) 1982-11-18 1982-11-18 Coding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57202979A JPS5991774A (en) 1982-11-18 1982-11-18 Coding circuit

Publications (2)

Publication Number Publication Date
JPS5991774A true JPS5991774A (en) 1984-05-26
JPS6342471B2 JPS6342471B2 (en) 1988-08-23

Family

ID=16466315

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57202979A Granted JPS5991774A (en) 1982-11-18 1982-11-18 Coding circuit

Country Status (1)

Country Link
JP (1) JPS5991774A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60259066A (en) * 1984-06-05 1985-12-21 Canon Inc Picture data compressor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5567271A (en) * 1978-11-14 1980-05-21 Nec Corp Coding circuit
JPS5761379A (en) * 1980-09-30 1982-04-13 Ricoh Co Ltd Encoding or decoding device
US4327379A (en) * 1980-04-11 1982-04-27 Xerox Corporation Hardware implementation of 4-pixel code encoder

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5567271A (en) * 1978-11-14 1980-05-21 Nec Corp Coding circuit
US4327379A (en) * 1980-04-11 1982-04-27 Xerox Corporation Hardware implementation of 4-pixel code encoder
JPS5761379A (en) * 1980-09-30 1982-04-13 Ricoh Co Ltd Encoding or decoding device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60259066A (en) * 1984-06-05 1985-12-21 Canon Inc Picture data compressor

Also Published As

Publication number Publication date
JPS6342471B2 (en) 1988-08-23

Similar Documents

Publication Publication Date Title
US4360840A (en) Real time data compression/decompression scheme for facsimile transmission system
JPS6338152B2 (en)
JPS6326588B2 (en)
JPS5991774A (en) Coding circuit
JPS5992674A (en) Encoding circuit
JPS62195979A (en) Facsimile code converter
JPS60253372A (en) Picture signal coding system
JPH0569342B2 (en)
JPH04270569A (en) Data compression system for picture processor
JPS6214579A (en) Decoding circuit
JPS6329472B2 (en)
JPS5883473A (en) Picture signal encoding system
JPS6339187B2 (en)
JPH01108861A (en) Picture coder
EP0552544A1 (en) An improved method for decoding compressed images
JP2684887B2 (en) Encoding / decoding device
JPH0311883A (en) Decoding system for variable length code, and facsimile equipment and still picture transmission system
KR900007566B1 (en) Picture data converting device
JPH01302917A (en) Data compression system
JPS61287381A (en) Encoder
JPH0548658B2 (en)
JPS6028374A (en) Coder and decoder
EP0652670A1 (en) Image encoding apparatus and method
JPS60169276A (en) Data compressing system
JPH037317B2 (en)