JPS6342471B2 - - Google Patents
Info
- Publication number
- JPS6342471B2 JPS6342471B2 JP57202979A JP20297982A JPS6342471B2 JP S6342471 B2 JPS6342471 B2 JP S6342471B2 JP 57202979 A JP57202979 A JP 57202979A JP 20297982 A JP20297982 A JP 20297982A JP S6342471 B2 JPS6342471 B2 JP S6342471B2
- Authority
- JP
- Japan
- Prior art keywords
- code
- signal
- encoding
- page
- instruction
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/41—Bandwidth or redundancy reduction
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
Description
【発明の詳細な説明】
産業上の利用分野
本発明はフアクシミリ信号等の画像信号を高速
で圧縮、符号化を行う符号化回路に関する。DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to an encoding circuit that compresses and encodes an image signal such as a facsimile signal at high speed.
従来の構成とその問題点
画像信号の伝送時間を短縮するため、また画像
情報を蓄積するメモリの容量を少なくするため
に、画像信号の冗長度を抑圧する符号化方式が用
いられている。例えば、フアクシミリのグループ
機器においては、1次元符号化方式としてモデ
フアイド・ハフマン(MH)符号化方式が、2次
元符号化方式としてモデフアイド・リード
(MR)符号化方式が採用されている。Conventional configuration and its problems In order to shorten the transmission time of image signals and to reduce the capacity of memory for storing image information, encoding methods are used that suppress the redundancy of image signals. For example, in a facsimile group device, a modified Huffman (MH) encoding method is employed as a one-dimensional encoding method, and a modified read (MR) encoding method is employed as a two-dimensional encoding method.
MH符号化方式は画像信号の白ランあるいは黒
ランの連続するランレングス数を求め、これを白
ランおよび黒ランそれぞれにつき64画素毎に1728
画素までコード化した「メイクアツプコード」
と、0から63まで1画素毎に刻んでコード化した
「ターミネーテイングコード」を組合せて任意の
ランレングス数をコード化し符号圧縮する方法で
ある。 The MH encoding method calculates the number of consecutive run lengths of white runs or black runs in the image signal, and calculates the number of consecutive run lengths of white runs or black runs, and divides this into 1728 pixels for every 64 pixels for each white run and black run.
"Make-up code" that encodes every pixel
This is a method of encoding and compressing an arbitrary number of run lengths by combining this and a "terminating code" which is coded by dividing each pixel from 0 to 63.
MR符号化方式は符号化ライン上の変化画素の
位置情報を、符号化ライン上で符号化ずみの変化
画素の位置情報およびすでに符号化ずみの前ライ
ンの変化画素の位置情報を参照しながら3種類の
モード(パスモード,垂直モード,水平モード)
を求め、符号化ラインを逐次符号化する方法であ
る。 The MR encoding method calculates the positional information of the changed pixel on the coding line by referring to the positional information of the changed pixel that has already been encoded on the coding line and the positional information of the changed pixel of the previous line that has already been encoded. Types of modes (pass mode, vertical mode, horizontal mode)
In this method, the encoded lines are sequentially encoded.
またライン同期信号(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 continuously added as a page end signal.
Add times.
このような符号化を高速で行う場合、符号が決
定されるごとにその符号長分を一度にシリアル符
号に変換する方法ではなく、符号を決定するブロ
ツクとシリアル符号に変換するブロツの間に中間
バツフアメモリであるフアーストイン・フアース
トアウトメモリ(FIFO)メモリを設け、FIFOメ
モリには決定された符号を発生するよう指示する
命令コードを書込み、この命令コードを読出しシ
リアル符号に変換する符号化方式がある。 When performing this type of encoding at high speed, instead of converting the code length 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. There is an encoding method in which a first-in, first-out memory (FIFO) memory, which is a buffer memory, is provided, 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. .
前記のような中間バツフアメモリを用いた符号
化方式では、1ページの最終ラインまで符号発生
命令コードを作成し、またページの終了信号とし
てEOL信号を連続6回発生するようEOL信号発
生命令コードを6個作成し、FIFOにすべての符
号発生命令コード及びEOL信号発生命令コード
の書込みが終了しても符号化は完了せずFIFOメ
モリに符号発生用の命令コードが残つており、ま
たこの量は可変量である。従つて、FIFOメモリ
に残つている命令コードを読出しシリアル符号に
変換し、符号化を完全に完了するにはFIFOメモ
リに残つている命令コードの数を記憶している必
要がある。この量を外部の回路で把握しようとす
ると回路規模が大きくなり、制御が複雑となる欠
点がある。 In the encoding method using intermediate buffer memory as described above, a code generation instruction code is created up to the last line of one page, and an EOL signal generation instruction code is created to generate an EOL signal six times in a row as the end signal of a page. Even after all code generation instruction codes and EOL signal generation instruction codes have been written to the FIFO, encoding is not completed and the code generation instruction code remains in the FIFO memory, and this amount is variable. It is quantity. Therefore, in order to read out the instruction codes remaining in the FIFO memory, convert them into serial codes, and completely complete the 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 present invention is to provide an encoding circuit that can easily detect the completion of encoding in an encoding system using an intermediate buffer memory.
発明の構成
上記の目的を達成するために本発明ではページ
の終了を表す命令コードを作成し、これを中間バ
ツフアメモリ(FIFO)に記憶させ、この命令コ
ードを中間バツフアメモリ(FIFO)から読出す
ことにより符号化の完了を検知するよう構成す
る。Structure of the Invention In order to achieve the above object, the present invention creates an instruction code indicating the end of a page, stores this in an intermediate buffer memory (FIFO), and reads this instruction code from the intermediate buffer memory (FIFO). The configuration is configured to detect the completion of encoding.
実施例の説明
第1図に本発明の符号化回路の一実施例を示
す。第2図はページ信号と同期信号及び画像信号
との関係を示した図である。第2図のaはページ
信号、bは各ラインの同期を示す同期信号、cは
画像信号で、ページ信号aの“H”レベル区間に
1ページ分のデータが送出され、同期信号bの
“H”レベル区間に1ライン分の画像データが送
出される。従つて、画像データはページ信号aが
“H”レベル区間でかつ同期信号bの“H”レベ
ル区間に送出されてくる。DESCRIPTION OF THE EMBODIMENTS FIG. 1 shows an embodiment of the encoding circuit of the present invention. FIG. 2 is a diagram showing the relationship between a page signal, a synchronization signal, and an image signal. In Fig. 2, a is a page signal, b is a synchronization signal indicating synchronization of each line, and c is an image signal.One page's worth of data is sent during the "H" level section of page signal a, and " One line of image data is sent during the H'' level section. Therefore, the image data is sent during the "H" level section of the page signal a and the "H" level section of the synchronization signal b.
第1図において、1は変化点検出回路、2はカ
ウンタ、3は制御回路、4はセレクタ、5は
FIFOメモリで、変化点検出回路1はクロツクに
同期して入力してくる2値の画像信号の白信号か
ら黒信号への変化或いは黒信号から白信号への変
化を検出する。カウンタ2は白信号或いは黒信号
の継続ビツト数をカウントする。制御回路3は変
化点検出回路1で信号の変化が検出されるとセレ
クタ4でカウンタ2の値を選択し、FIFOメモリ
5に白信号のランレングス数か黒信号のランレン
グス数かの情報とカウンタ2の値を書込み、その
後カウンタ2をクリアする。また、制御回路3で
ラインの終端すなわち同期信号bの“L”レベル
を検出すると、まずFIFOメモリ5に白信号のラ
ンレングス数か黒信号のランレングス数かの情報
とカウンタ2の値を書込み、その後カウンタ2を
クリアし、また変化点検出回路1もクリアし、次
のラインの符号化の準備を行う。その後セレクタ
4がEOL信号を作成するよう指示する命令コー
ドを選択し、FIFOメモリ5にその命令コードを
書込む。この一連の動作を繰返し行うと、FIFO
メモリ5には各ラインの白信号、黒信号のランレ
ングス数及びEOL信号を作成するよう指示する
命令コードが順に記憶される。更に、制御回路3
でページの終了すなわちページ信号aの“L”レ
ベルを検出すると、まずFIFOメモリ5に白信号
のランレングス数か黒信号のランレングス数かの
情報とカウンタ2の値を書込み、その後セレクタ
4がEOL信号を作成させるよう指示する命令コ
ードを選択し、FIFOメモリ5にその命令コード
を連続6回書込み、その後セレクタ4がページの
終了を表す命令コードを選択し、FIFOメモリ5
にその命令コードを書込む。以上の動作により、
FIFOメモリ5には各ラインの白信号のランレン
グス数、黒信号のランレングス数とEOL信号発
生命令コード及びページ終了命令コードが順に記
憶される。 In Figure 1, 1 is a change point detection circuit, 2 is a counter, 3 is a control circuit, 4 is a selector, and 5 is a
In the FIFO memory, a change point detection circuit 1 detects a change from a white signal to a black signal or a change from a black signal to a white signal in a binary image signal input in synchronization with a clock. A counter 2 counts the number of continuous bits of the white signal or black signal. When a change in the signal is detected by the change point detection circuit 1, the control circuit 3 selects the value of the counter 2 with the selector 4, and stores information on the number of run lengths of the white signal or the number of run lengths of the black signal in the FIFO memory 5. Write the value of counter 2 and then clear counter 2. When the control circuit 3 detects the end of the line, that is, the "L" level of the synchronizing signal b, it first writes information on whether the run length of the white signal or the number of run lengths of the black signal and the value of the counter 2 to the FIFO memory 5. , then clears the counter 2, also clears the change point detection circuit 1, and prepares for encoding the next line. 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. By repeating this series of operations, the FIFO
The memory 5 sequentially stores the white signal of each line, the run length number of the black signal, and an instruction code for instructing to create an EOL signal. Furthermore, the control circuit 3
When the end of the page, that is, the "L" level of the page signal a is detected, first, 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 to the FIFO memory 5, and then the selector 4 Select an instruction code that instructs to create an EOL signal, write that instruction code to the FIFO memory 5 six times in succession, then selector 4 selects an instruction code that indicates the end of the page, and write the instruction code to the FIFO memory 5.
Write the instruction code to. With the above operation,
The FIFO memory 5 sequentially stores the number of run lengths of the white signal, the number of run lengths of the black signal, the EOL signal generation command code, and the page end command code for each line.
6はROM、7はP/Sシフトレジスタ、8は
レジスタ、9はクロツク発生回路、10はメモ
リ、11はページ終了検出回路で、ROM6は白
信号のランレングス数と黒信号のランレングス数
に対応した符号とその符号長、及びEOL信号発
生命令コードに対応した符号(MH符号では
“000000000001”)とその符号長(MH符号では符
号長12)が記憶されている。P/Sシフトレジ
スタ7にはROM6から読出された符号が、レジ
スタ8にはROM6から読出された符号長が一時
記憶される。クロツク発生回路9はレジスタ8に
記憶された符号長分のクロツクを発生し、P/S
シフトレジスタ7に記憶されているパラレル符号
をシリアル符号に変換し、メモリ10に入力す
る。今、FIFOメモリ5に白信号のランレングス
数或いは黒信号のランレングス数、EOL信号発
生命令コード或いはページ終了命令コードが記憶
されているとすると、これの最も古いデータを読
出し、ROM6でこれに対応した符号と符号長に
変換し、符号をP/Sシフトレジスタ7に、符号
長をレジスタ8に入力し、クロツク発生回路9で
符号長分のクロツクを発生し、メモリ10に入力
する。この動作の後FIFOメモリ5を調べ、デー
タが記憶されていると、これの最も古いデータを
読出し同様の動作を行う。以上の動作によりメモ
リ10には各ラインの画像信号に対応した符号及
び同期(EOL)信号が記憶される。ページ終了
検出回路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, and ROM 6 is used for the number of run lengths of the white signal and the number of run lengths of the black signal. The corresponding code and its code length, and the code corresponding to the EOL signal generation instruction code (“000000000001” for the MH code) and its code length (code length 12 for the MH code) are stored. The code read from the ROM 6 is temporarily stored in the P/S shift register 7, and the code length read from the ROM 6 is temporarily stored in the register 8. The clock generation circuit 9 generates a clock for the code length stored in the register 8, and
The parallel code stored in the shift register 7 is converted into a serial code and input 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 EOL 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 to the P/S shift register 7, the code length is input to the register 8, the clock generation circuit 9 generates a clock corresponding to the code length, and the clock is input to the memory 10. After this operation, the FIFO 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 (EOL) 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 command code, it is known that encoding for one page has already been completed, so the encoding operation can be ended.
上記の実施例は1次元符号化方式の場合につい
て述べたが、2次元符号化方式である例えばMR
符号化方式の場合についても容易に適用出来る。 Although the above embodiment describes the case of a one-dimensional encoding method, the case of a two-dimensional encoding method, such as MR
It can also be easily applied to the case of encoding methods.
発明の効果
本発明によつて次のような効果が持たらされ
る。Effects of the Invention The present invention provides the following effects.
1ページの終了時にページ終了命令コードを
FIFOメモリに書込むだけでよく、符号化の完了
の検知が簡易である。 Enter the page end command code at the end of one page.
It is only necessary to write to the FIFO memory, and it is easy to detect the completion of encoding.
第1図は本発明の一実施例における符号化回路
のブロツク図、第2図はページ信号と同期信号と
画像信号の関係を示したタイミング図である。
1……変化点検出回路、2……カウンタ、3…
…制御回路、4……セレクタ、5……FIFOメモ
リ、6……ROM、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... Change point detection circuit, 2... Counter, 3...
...Control circuit, 4...Selector, 5...FIFO memory, 6...ROM, 7...P/S shift register, 8...Register, 9...Clock generation circuit,
10...Memory, 11...Page end detection circuit.
Claims (1)
ンし、そのカウント数に対応した符号を作成する
ように指示する命令コードを発生し、命令コード
を発生順にフアーストイン・フアーストアウトメ
モリに記憶し、前記フアーストイン・フアースト
アウトメモリから命令コードを順次取出しその命
令コードに対応した符号を作成して符号化を行う
モデフアイド・ハフマン(MH)符号等の符号化
回路において、ページの終了を表す命令コード発
生する手段とその命令コードをフアーストイン・
フアーストアウトメモリに記憶させる手段と、前
記ページの終了を表す命令コードを検出する手段
とを設け、符号化の完了を容易に検知出来るよう
にしたことを特徴とする符号化回路。1 Count the run length number of the read image signal, generate an instruction code to create a code corresponding to the counted number, store the instruction codes in the first-in/first-out memory in the order of generation, and An instruction code indicating the end of a page is generated in an encoding circuit such as a modified Huffman (MH) code that sequentially extracts instruction codes from first-in/first-out memory and creates a code corresponding to the instruction code for encoding. First-in the means and its instruction code.
An encoding circuit comprising means for storing in a first-out memory and means for detecting an instruction code indicating the end of the page, so that completion of encoding can be easily detected.
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 JPS5991774A (en) | 1984-05-26 |
JPS6342471B2 true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60259066A (en) * | 1984-06-05 | 1985-12-21 | Canon Inc | Picture data compressor |
Citations (3)
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 |
-
1982
- 1982-11-18 JP JP57202979A patent/JPS5991774A/en active Granted
Patent Citations (3)
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 |
Also Published As
Publication number | Publication date |
---|---|
JPS5991774A (en) | 1984-05-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5812701A (en) | Variable length coding system having a zig-zag memory | |
US4955061A (en) | Method and apparatus for processing an image signal | |
JPS6338152B2 (en) | ||
JPS6326588B2 (en) | ||
JPH088647B2 (en) | Run-length coding method and apparatus | |
JPS6342471B2 (en) | ||
JPS6342472B2 (en) | ||
JPS60253372A (en) | Picture signal coding system | |
JPS6333350B2 (en) | ||
GB1570914A (en) | Method and apparatus for bandwidth compression | |
JPS5883473A (en) | Picture signal encoding system | |
JPH04270569A (en) | Data compression system for picture processor | |
JPS58225779A (en) | Image signal decoding method | |
JP3142911B2 (en) | Processing method of encoding / decoding device | |
RU2162247C2 (en) | Image reader using basic integrated method | |
JPS61287381A (en) | Encoder | |
JP2965084B2 (en) | Image data compression method | |
KR900007566B1 (en) | Image data conversion device and method | |
JPH0687578B2 (en) | Image coding device | |
JPS6028374A (en) | Coder and decoder | |
JPH07106980A (en) | Coding device and serializing device | |
JPH0351354B2 (en) | ||
JPS61256868A (en) | Data processing system | |
JPS60194671A (en) | Run length encoding device | |
JPS6132867B2 (en) |