JPS6231265A - Modified huffman decoding system - Google Patents
Modified huffman decoding systemInfo
- Publication number
- JPS6231265A JPS6231265A JP17072685A JP17072685A JPS6231265A JP S6231265 A JPS6231265 A JP S6231265A JP 17072685 A JP17072685 A JP 17072685A JP 17072685 A JP17072685 A JP 17072685A JP S6231265 A JPS6231265 A JP S6231265A
- Authority
- JP
- Japan
- Prior art keywords
- bit
- decoding
- signal
- state
- shift register
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、ファクシミリ信号のモディファイドハフマン
符号化された信号からファクシミリ信号を復号する復号
方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a decoding method for decoding a facsimile signal from a modified Huffman encoded facsimile signal.
7アクシミ’)信号の冗長性を抑圧する符号化方式とし
てモディファイトノ・フマン符号(MH符号)がCCI
’l”Tよシ勧告されておシ、一般に広く利用されてい
る。そのMH符号化された信号をファクシミリ信号に復
号する従来のモディファイトノ・フマン復号方式を第3
図に示す。これはノ・フマン符号に関する復号回路(昭
和52年特許願525158)を応用したものである。7 axis) Modified human code (MH code) is used as a coding method for suppressing redundancy in CCI signals.
'l' T has been recommended and is widely used in general.
As shown in the figure. This is an application of the decoding circuit for the No-Fuman code (Patent Application No. 525158 of 1972).
制御器23は処理開始時にラッチ回路21をすセットし
、リードオンメモリ(ROM)22にこれから復号する
のはMH符号の白のランレングスの復号か黒のランレン
グスの復号かを白黒指示信号B/Wによって指示する。The controller 23 sets the latch circuit 21 at the start of processing, and sends a black-and-white instruction signal B to the read-on memory (ROM) 22 to indicate whether decoding of the white run length or black run length of the MH code is to be decoded from now on. /W indicates.
ROM22は白のランレングスの復号と黒のランレング
スの信号それぞれに対して異なった状態変移をする。こ
の第4図は、黒のランレングスの復号の復号時の状態変
移図を示し、1ラインの画素数が2560画素の時のR
OM22の状態変移の一部を示す。第4図の中で線上の
値はROM22に入力される符号化されたデータを示し
、丸印上側の数字はROM22のアドレスの入力である
と同時に1つ過去のROMの出力を示す。The ROM 22 undergoes different state transitions for the white run-length decoding and black run-length signals, respectively. This figure 4 shows a state transition diagram during decoding of black run length, and shows the state transition diagram when the number of pixels in one line is 2560 pixels.
A part of the state transition of OM22 is shown. In FIG. 4, the values on the line indicate encoded data input to the ROM 22, and the numbers above the circle indicate the address input of the ROM 22 and the output of the previous ROM.
第4図において処理開始時にはR,0M22のアドレス
入力の状態番号には″00”が入力され、白のランレン
グスの復号かあるいは黒のランレングスの復号にかによ
シ、白黒指示信号B/Wがアドレス入力に入力されてい
る。この状態で制御器23はシフトクロックをシフトレ
ジスタ24に供給し、その結果R,OM 22のアドレ
スに、復号すべき符号の1ビット目が入力される。RO
M22はその信号が0#か11”かKよってR,0M2
2は”01”あるいは102#が出力する。この様に制
御器23はシフトレジスタ24にシフトクロックを入力
し復号すべき符号信号が1ビット人カされるごとに、第
4図の@00#状態から右へROM22の状態を遷移さ
せていき、復号が終了した時、ROM22は復号された
データと制御器23への終了判定信号を出力し、復号す
べき1つの符号信号の復号が終了する。In FIG. 4, at the start of processing, "00" is input to the state number of the address input of R, 0M22, and whether the white run length is decoded or the black run length is decoded, the black and white instruction signal B/ W is input to the address input. In this state, the controller 23 supplies a shift clock to the shift register 24, and as a result, the first bit of the code to be decoded is input to the address of R, OM 22. R.O.
M22 is R, 0M2 depending on whether the signal is 0#, 11" or K.
2 is output as "01" or 102#. In this way, the controller 23 inputs the shift clock to the shift register 24, and each time the code signal to be decoded is input by one bit, the state of the ROM 22 changes from the @00# state to the right in FIG. When the decoding is completed, the ROM 22 outputs the decoded data and an end determination signal to the controller 23, and the decoding of one code signal to be decoded is completed.
上述した従来の復号回路は、入力される画信号の1ビッ
トごとにROM22の状態を変化させるため、ROM2
2の状態を多く設定しなけれはならなかった。The conventional decoding circuit described above changes the state of the ROM 22 for each bit of the input image signal.
It was necessary to set many states of 2.
本発明のそディ7アイドハ7マン復号方式は、%fイ7
アイドハフマン符号化されたファクシミリ画信号のパラ
レルシリアル変換を行うシフトレジスタと、前記シフト
レジスタの2ビットの先頭シリアル出力%前記ファクシ
ミリ画信号の白のランレングスによる復号か黒のランレ
ングスにょる復号かを指示する1ビットの白黒指示信号
、およびnビット(n>0)の第一の状態数指示信号を
入力アドレスとして、予め記憶されたnビットの第二の
状態数指示信号を出力するリードオンリメモリと、前記
リードオンリ、メモリの出力をラッチし前記第一の状態
数指示信号として出力するラッチ回路と、前記リードオ
ンリメモリからの復号残ビット判定信号が残2ピットで
あることを示すとき前記シフトレジスタを2ビットだけ
シフトさせ、前記復号残ビット判定信号が残1ビットで
あることを示すとき前記シフトレジスタを1ビットだけ
シフトさせる制御器とを具備することを特徴とする。The sodi7aidha7man decoding method of the present invention is
A shift register that performs parallel-to-serial conversion of a facsimile image signal encoded by Id-Huffman, and a 2-bit leading serial output of the shift register % Is the facsimile image signal decoding based on the white run length or black run length? A read-only device that outputs a pre-stored n-bit second state number-indicating signal using a 1-bit black-and-white instruction signal and an n-bit (n>0) first state number-indicating signal as input addresses. a latch circuit that latches the output of the read-only memory and outputs it as the first state number instruction signal; and a latch circuit that latches the output of the read-only memory and outputs it as the first state number instruction signal; The present invention is characterized by comprising a controller that shifts the register by 2 bits, and shifts the shift register by 1 bit when the decoding remaining bit determination signal indicates that there is 1 bit remaining.
次に本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例を示す。11はラッチ回路、
12はROM、13は制御器、14はシフトレジスタで
ある。制御器13は処理開始時に2ツテ回路11をリセ
ットしROM12にこれから復号するのはMH符号の白
のランレングスの復号かあるいは黒のランレングスの復
号がを白黒指示信号B/Wによって指示する。ROM1
2は白のランレングスの復号と黒のランレングスの復号
それぞれに対して異なりた状態変移をする。第2図は黒
のランレングス復号時の状態変移を示し、1ラインの画
素数が2560画素の時の状態変移の一部を示す。第2
図の中で線上の値はROM12に入力される符号化され
たデータを示し、丸印上側の数字は、ROM12のアド
レスの入力であると同時に状態遷移において1つ過去の
ROM12の出力を示し、丸印下側の1ケタの数字は復
号の終了までに復号されるデータを1ビットだけ必要と
するかあるいは2ビット必要とするかの復号残ビット判
定である。FIG. 1 shows an embodiment of the invention. 11 is a latch circuit;
12 is a ROM, 13 is a controller, and 14 is a shift register. At the start of processing, the controller 13 resets the two-way circuit 11 and instructs the ROM 12 whether the white run length or the black run length of the MH code is to be decoded from now on using a monochrome instruction signal B/W. ROM1
2 has different state transitions for the decoding of the white run length and the decoding of the black run length. FIG. 2 shows the state transition during black run-length decoding, and shows a part of the state transition when the number of pixels in one line is 2560 pixels. Second
In the figure, the values on the line indicate encoded data input to the ROM 12, and the numbers above the circle mark indicate the input of the address of the ROM 12 as well as the output of the ROM 12 one previous time in the state transition. The 1-digit number below the circle is used to determine whether only 1 bit or 2 bits of data are required to be decoded by the end of decoding.
第2図において処理開始時にはROM12のアドレス入
力の状態番号には@oo”が入力され、白のシンレング
スの復号かあるいは黒のランレングスの復号かによシ白
黒指示信号B/Wがアドレス入力に入力されている。こ
の状態で制御器13はシフトクロックをシフトレジスタ
14に2回供給し、その結果ROM12のアドレスに復
号すべき符号の1ビット目と2ビット目が入力される。In Fig. 2, at the start of processing, @oo'' is input to the state number of the address input of the ROM 12, and the black and white instruction signal B/W is input to the address, depending on whether it is decoding of white thin length or black run length. In this state, the controller 13 supplies the shift clock to the shift register 14 twice, and as a result, the first and second bits of the code to be decoded are input to the address of the ROM 12.
その2ビットの値が(0,0)(0,1)(1,0)(
1,1)のいずれかによシ状態変移図に応じた出力を出
力する。この様に、制御器13はシフトレジスタにシフ
トクロックを入力し符号化信号が2ビット入力されるご
とに′00#状態から右へROM12の状態を遷移させ
ていき、復号すべき符号化信号が奇数ビットで、最後の
1ビットで復号処理を終了する状態の時、ROM12は
復号残ビットが1ビットであることを示すメ復号残ビッ
ト判定信号(11”)がROM12よシ出力され、その
信号を受けた制御器13は次のシフトクロックを1回の
み出力し、次の状態で復号を終了させ終了信号を出力す
る。The value of those two bits is (0,0)(0,1)(1,0)(
1, 1) outputs an output according to the state transition diagram. In this way, the controller 13 inputs the shift clock to the shift register, and each time 2 bits of the encoded signal are input, the state of the ROM 12 changes from the '00# state to the right, and the encoded signal to be decoded changes from the '00# state to the right. When it is an odd number of bits and the decoding process ends at the last bit, the ROM 12 outputs a decoding remaining bit determination signal (11") indicating that there is 1 bit remaining for decoding, and the signal The controller 13 that has received the signal outputs the next shift clock only once, completes the decoding in the next state, and outputs an end signal.
以上説明したように本発明は、復号すべき画信号を2ビ
ットずつ、判定することによシ、判定の状態を少なくす
ることができる。As explained above, the present invention can reduce the number of determination states by determining the image signal to be decoded 2 bits at a time.
第1図は本発明の一実施例のブロック図、第2図は第1
図中のROMの状態変移図、第3図は従来例のブロック
図、第4図は第3図中のROMの状態変移図である。
11・・・−・・ラッチ回路、12・・・・・・リード
オンリメモリ、13・・・・・・制御回路、14・・・
・・・シフトレジスタ、21・・・・・・ラッチ回路、
22・・・・・・リードオンリメモ1ハ 23・・・・
・・制御回路、24・・・・・・シフトレジスタ。
第 f 凶FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
FIG. 3 is a block diagram of the conventional example, and FIG. 4 is a state transition diagram of the ROM in FIG. 3. 11...--Latch circuit, 12... Read-only memory, 13... Control circuit, 14...
...Shift register, 21...Latch circuit,
22... Read only memo 1c 23...
...Control circuit, 24...Shift register. No. F
Claims (1)
号のパラレルシリアル変換を行うシフトレジスタと、前
記シフトレジスタの2ビットの先頭シリアル出力、前記
ファクシミリ画信号の白のランレングスによる復号か黒
のランレングスによる復号かを指示する1ビットの白黒
指示信号、およびnビット(n>0)の第一の状態数指
示信号を入力アドレスとして、予め記憶されたnビット
の第二の状態数指示信号を出力するリードオンリメモリ
と、前記リードオンリメモリの出力をラッチし前記第一
の状態数指示信号として出力するラッチ回路と、前記リ
ードオンリメモリからの復号残ビット判定信号が残2ビ
ットであることを示すとき前記シフトレジスタを2ビッ
トだけシフトさせ、前記復号残ビット判定信号が残1ビ
ットであることを示すとき前記シフトレジスタを1ビッ
トだけシフトさせる制御器とを具備することを特徴とす
るモディファイドハフマン復号方式。A shift register that performs parallel-to-serial conversion of a modified Huffman encoded facsimile image signal, a 2-bit leading serial output of the shift register, and a determination as to whether the facsimile image signal is decoded using a white run length or a black run length. A read-only memory that outputs a pre-stored n-bit second state number instruction signal using a 1-bit black and white instruction signal and an n-bit (n>0) first state number instruction signal as input addresses. a latch circuit that latches the output of the read-only memory and outputs it as the first state number instruction signal; and a shift register when the decoding remaining bit determination signal from the read-only memory indicates that there are 2 bits remaining. a controller for shifting the shift register by 2 bits, and shifting the shift register by 1 bit when the decoding remaining bit determination signal indicates that there is 1 bit remaining.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17072685A JPS6231265A (en) | 1985-08-02 | 1985-08-02 | Modified huffman decoding system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP17072685A JPS6231265A (en) | 1985-08-02 | 1985-08-02 | Modified huffman decoding system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS6231265A true JPS6231265A (en) | 1987-02-10 |
Family
ID=15910252
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP17072685A Pending JPS6231265A (en) | 1985-08-02 | 1985-08-02 | Modified huffman decoding system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6231265A (en) |
-
1985
- 1985-08-02 JP JP17072685A patent/JPS6231265A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0969951A (en) | Encoding method and decoding method | |
| JPS60140980A (en) | Method and device for encoding signal representing flow of digital data group | |
| JPH04270564A (en) | Serial picture data compression system having color information | |
| JP3197408B2 (en) | Additional bit processing device for marker identification | |
| JP2002091407A (en) | Image display device | |
| JPH0569342B2 (en) | ||
| JP2833743B2 (en) | MH code decoder | |
| JP2687926B2 (en) | Code decoder | |
| JP2000115549A (en) | Encoding device and encoding method, and decoding device and decoding method | |
| JP2601822B2 (en) | Decompression processing device that processes compressed signals | |
| JPS62199173A (en) | Modified huffman code decoding circuit | |
| JPS6341271B2 (en) | ||
| JP2556160B2 (en) | Compression code decompression device | |
| JPS6343473A (en) | Modified huffman code decoding circuit | |
| JPH04270569A (en) | Data compression system for picture processor | |
| JPH09135357A (en) | Decoder for color image signal | |
| JPS6097777A (en) | Facsimile equipment | |
| JP2795023B2 (en) | Encoding device | |
| JPS60162382A (en) | Modified huffman encoding-decoding device | |
| JP3115117B2 (en) | Binary image compression processor | |
| JPH01151373A (en) | Compressed and coded data expanding device | |
| JPS62147862A (en) | Picture decoder | |
| JPS62219770A (en) | Facsimile equipment | |
| JP2005348049A (en) | Image processing apparatus | |
| JPS5941632B2 (en) | 2-dimensional sequential encoding method |