JPS58170280A - Decoding system of mh code - Google Patents

Decoding system of mh code

Info

Publication number
JPS58170280A
JPS58170280A JP5279182A JP5279182A JPS58170280A JP S58170280 A JPS58170280 A JP S58170280A JP 5279182 A JP5279182 A JP 5279182A JP 5279182 A JP5279182 A JP 5279182A JP S58170280 A JPS58170280 A JP S58170280A
Authority
JP
Japan
Prior art keywords
code
rom
bit
bits
shift
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
JP5279182A
Other languages
Japanese (ja)
Other versions
JPH0255987B2 (en
Inventor
Yukio Sasaki
幸雄 佐々木
Masatoshi Kimura
正利 木村
Junzo Nakajima
淳三 中島
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP5279182A priority Critical patent/JPS58170280A/en
Publication of JPS58170280A publication Critical patent/JPS58170280A/en
Publication of JPH0255987B2 publication Critical patent/JPH0255987B2/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)

Abstract

PURPOSE:To perform speed-up of the system with one access time of an ROM, by storing not only a run length (RL) code but also the number of code bits in the ROM, in a decoding circuit of modified Haffmann (MH) code having the ROM. CONSTITUTION:The code length of the RL and MH codes are stored in the respective addresses of the two ROMs 12, 13 as data. When a clock is given from a shift circuit 18 to a shift register 11 at first and the 1st EOL code of the MH code train is set to the register, a gate 16 detects it and outputs (0) then stops the clock of a circuit 18, and since the head 4-bit is (0), a gate 15 is (0), the ROM 12 is accessed, the RL=(0) and the EOL code length 12 are outputted as outputs, the shift circuit 18 generates 12 pieces of clock for shift control. When the white run 25 is set, since (1) is included in the head 4-bit, (1) is outputted from the gate 15, the ROM 13 is selected and RL=(25) and the bit length are outputted.

Description

【発明の詳細な説明】 (1)発明の棟斬分野 本発明はMH(4デイフアイドハフマン)符号化方式に
よって帯域圧縮された圧縮データを再び画像データに変
換する装置において、MH符号を解読してそのランレン
グスを求める方式に係るものであって、特に符号解読を
高速に行い、かつ回路構成及び回路動作を簡単にするM
HH号解読方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (1) Field of the Invention The present invention relates to a device for converting compressed data band-compressed by the MH (four-difference Huffman) encoding method back to image data, in which an MH code is decoded. The method relates to a method for determining the run length of the code, and in particular, it is an M method that enables high-speed code decoding and simplifies the circuit configuration and circuit operation.
Regarding the HH code decoding method.

(2)従来技術と問題点 画像信号を圧縮伝送するためにMH符号が広く使用され
ている。このMH符号は符号長や符号の切れ目を示す情
報を持たないために、符号解読に必豪な情報とRL(ラ
ンレングス)を格納したR OM (Read 0nl
y Memory )を用い、このI’tOMからRL
を求める方法が一般的である。このROMを使用する方
法には、ハツシュ法、リニアサーチ法、トリーナーチ流
等があるが、ここではハツシユ法により説明する。
(2) Prior Art and Problems MH codes are widely used to compress and transmit image signals. Since this MH code does not have information indicating the code length or code breaks, a ROM (Read 0nl) that stores the information and RL (run length) essential for code deciphering is used.
y Memory ) from this I'tOM to RL
A common method is to calculate Methods for using this ROM include a hash method, a linear search method, a tree search method, etc., but the hash method will be explained here.

第1図に、ハツシュ法の回路例を示す。ここで1は符号
ビットが入力される12ビツト・シフトレジスタ、2は
ROMであって符号のビット・パターンと等しいアドレ
スに、RL及びRLが記憶されていることを示す確認ビ
ット(ここでは説明上「1」とする)を格納している。
FIG. 1 shows an example of a circuit for the HATSH method. Here, 1 is a 12-bit shift register into which the code bit is input, 2 is a ROM, and a confirmation bit indicating that RL and RL are stored at an address equal to the bit pattern of the code (here, for the sake of explanation) ``1'') is stored.

3はROM2の出力を一時記憶するラッチ、4はシフト
回路であって確認ビット「1」が出力されていないとき
クロックを1ヶ発生し、シフトレジスタlの符号ビット
をシフトするシフト回路、5は解読中の符号が白ランか
黒ランかを示すフリップフロップ(以下FFという)で
ある。
3 is a latch that temporarily stores the output of ROM 2; 4 is a shift circuit that generates one clock when the confirmation bit "1" is not output; and shifts the sign bit of shift register l; 5 is a shift circuit; This is a flip-flop (hereinafter referred to as FF) that indicates whether the code being decoded is a white run or a black run.

第1図の動作は次のようになる。まずシフトレジスタ1
に、第2図に示す如く、伝送された入力符号の最初にあ
るEOL (End of  Line :画像信号の
最初と、各走査線毎の最、後に付与されるもの1   
で11ビツト「0」が連結したあとに「1」の12ビツ
ト構成の符号)符号の先頭1ビツト(この場合は「0」
)を入力してROM2tアク令スする。このときROM
2から確認ビット「1」が出力されていなければ、シフ
)I回路4でクロックを1ヶ発生し、シフトレジスター
に次の伝送符号を読込み「0.0」が入力される。これ
によりROM2をアクセスしても確認ビット「1」が出
力されないとき1、/7)aゆ4.、び、。ッ、ヶ、ヶ
え生5、ッ、   (/ トレジスターに次の符号ビットを入力する。EOL  
  ’符号の場合には、先頭の11ビツトがオールrO
Jなので、ROM2は確認ビット「1」は出力されず、
このようなことが繰返されて12ビツト目の「1」が入
力されたと會、つまりシフトレジスターにEOL符号が
入力されたとぎ、ROM2は確認ビット「1」を出力す
る。このEOL符号のときはラッチ3よりRLは出力さ
れない。そしてこの確認ビット「1」によりFF5が一
定の状態にセットされ、また、シフト回路4はこれによ
りシフトレジスタ1をクリアする。
The operation of FIG. 1 is as follows. First shift register 1
As shown in FIG.
The first 1 bit of the code (in this case, it is "0")
) to access the ROM2t. At this time, the ROM
If the confirmation bit "1" is not output from the shift register 2, one clock is generated by the shift I circuit 4, the next transmission code is read into the shift register, and "0.0" is input. As a result, when the confirmation bit "1" is not output even if ROM2 is accessed, 1, /7) ayu4. ,Beauty,. 5, 5, 5, (/ Input the next sign bit into the register. EOL
' code, the first 11 bits are all rO
J, so the confirmation bit "1" is not output in ROM2,
When such a process is repeated and the 12th bit "1" is input, that is, when the EOL code is input to the shift register, the ROM 2 outputs a confirmation bit "1". In the case of this EOL code, the latch 3 does not output RL. The confirmation bit "1" sets the FF 5 to a constant state, and the shift circuit 4 clears the shift register 1 accordingly.

それだからシフト回路4は再びシフトレジスタ1に、次
の符号を1ビツト記入させてROM2を7クセスするが
、第2図に示す如(EOL符号の次に白ビツト25ラン
レングスを示す符号(白ラン25という)がシフトレジ
スタ1、にセットされるまで確認ビット「1」が出力さ
れず、この白ラン25符号がセットされたときこのシフ
トレジスタ1にセットされた7ビツトr 010101
1 JとFFsの出力に応じてROM2はRL r21
sJ を出力し、これによりラッチ3はRLr25Jを
出力するととも、に確認ビット「1」を出力する。この
RL 2 B11EOLの次は白であるので、これによ
り白ラン25であることがわかる。そしてシフト回路4
&1これにより、再びシフトレジスタ1をクリアすると
ともにラッチFF5は反転される。このようなことカー
繰返されてRLが出力されるが、このとき受信側では、
RLは白の次は黒であるということ6xわ力するので、
とのRLのみで画像再生することができる。
Therefore, the shift circuit 4 writes one bit of the next code into the shift register 1 again and accesses the ROM 2 seven times, but as shown in FIG. The confirmation bit "1" is not output until the white run 25 code (referred to as run 25) is set in shift register 1, and when this white run 25 code is set, the 7 bit r 010101 set in shift register 1
1 ROM2 is RL r21 according to the output of J and FFs
sJ, thereby causing the latch 3 to output RLr25J and also output a confirmation bit "1". Since the next color after this RL 2 B11EOL is white, it can be seen that this is white run 25. and shift circuit 4
&1 As a result, shift register 1 is cleared again and latch FF5 is inverted. This process is repeated and the RL is output, but at this time, on the receiving side,
RL is 6x more powerful than white, so
Images can be reproduced using only the RL.

このように71ツシユ法は、ROM2をアクセスする回
数が符号ビット数と等い・ため、(例え1fEOLでは
12回アクセスして初め【出力カー得られる)高速の解
読処理が困難である。またROM2をアクセスする毎に
ROMの出力の有無を確認ビットで確認する必要がある
ために、回路構成及び回路動作が複雑になるという欠点
がある。
In this way, in the 71-tshu method, the number of times the ROM 2 is accessed is equal to the number of code bits, so it is difficult to perform high-speed decoding processing (for example, in 1fEOL, the output card can only be obtained after 12 accesses). Furthermore, each time the ROM 2 is accessed, it is necessary to confirm the presence or absence of an output from the ROM using a confirmation bit, which has the disadvantage that the circuit configuration and circuit operation become complicated.

なお、リニアサーチ法、トリーサーチ法にも同様な欠点
がある。
Note that the linear search method and the tree search method also have similar drawbacks.

(3)発明の目的 本発明の目的は、このような欠点を改善するために、M
H符号の解読処理を高速で行うとともに、かつ回路構成
及び回路動作が簡単なMH符号Nm方式を提供すること
である。
(3) Purpose of the invention The purpose of the present invention is to improve the above drawbacks by
It is an object of the present invention to provide an MH code Nm method that performs H code decoding processing at high speed and has a simple circuit configuration and circuit operation.

(4)  発明の構成 この目的を達成するため本発明のMH符号解読方式では
、ROM4−備えたモディファイトノ・フマン符号を解
読するMH符号解読回路において、符号化ビットを入力
するシフトレジスタと、符号ノ(ターンをアドレスとし
符号の示すランレングスと符号ビット数を格納したRO
Mと、前記ROM内の符号ビット数と同じシフトクロッ
クを発生してシフトレジスタの符号ビットをシフトする
シフト回路を備え、前記ROMよりランレングスを得た
ときに前記シフト回路によりシフトレジスタをその符号
ビットに応じたビットだけシフトさせるよ5にしたこと
を特徴とする。
(4) Structure of the Invention In order to achieve this object, the MH code decoding method of the present invention includes a shift register for inputting coded bits and a code RO (RO that uses the turn as the address and stores the run length indicated by the code and the number of code bits)
M, and a shift circuit that generates a shift clock equal to the number of code bits in the ROM to shift the code bits of the shift register, and when a run length is obtained from the ROM, the shift circuit shifts the shift register to the code bit of the shift register. The feature is that the number of bits is shifted by 5 depending on the bit.

(5)発明の実施例 本発明な一実施例にもとづき詳述するに先立ち本発明の
概略について説明する。
(5) Embodiment of the Invention Before going into detail based on an embodiment of the present invention, an outline of the present invention will be explained.

MH符号には符号長や符号間の切れ目を示す情報が含ま
れ【いないためにROMから解読しようとする符号のR
Lを探索するのに多くの特開がかかる。そこで本発明で
は符号ビットパターンをROMのアドレスとして使用し
、そのアドレスに対応するメモリにRLのみならず符号
ビット数を記憶し【おく。そして解読が終了した符号の
ビット数だけシフトレジスタのROMのアドレスビット
、すなわち符号ビットをシフトして符号を次のROMの
アドレスにセットしてRLを求める。この動作を繰返す
ことにより符号別(圧縮データ)j  の解読を早く行
うことができ!る1、またMH符号の最長は12ビツト
であり、この符号と白黒を示すFFの1ビツトの合計1
31tツトをROMのアドレスとして使用するため21
3ワードのメ峰すが必要である。しかしMH符号におい
て10ビット以上の符号は全て先頭4ビツトがrOJで
あるため、これを識別して1ビツトに変換することで、
ROMのメモリ容量を216ワードX2に減少できる。
Since the MH code does not include information indicating the code length and breaks between codes, the R of the code to be decoded from the ROM is
It takes many Japanese patent publications to search for L. Therefore, in the present invention, the code bit pattern is used as a ROM address, and not only the RL but also the number of code bits is stored in the memory corresponding to the address. Then, the address bits of the ROM of the shift register, that is, the code bits, are shifted by the number of bits of the code that has been decoded, and the code is set at the next ROM address to obtain RL. By repeating this operation, you can quickly decode the code (compressed data) j! The longest MH code is 12 bits, and the total of this code and 1 bit of FF indicating black and white is 1.
21 to use 31t as the ROM address.
Three words of Meminesu are required. However, in the MH code, the first 4 bits of all codes of 10 bits or more are rOJ, so by identifying this and converting it to 1 bit,
The memory capacity of the ROM can be reduced to 216 words x2.

以下本発明の一実施例を第3図及び第4図にもとづき説
明する。
An embodiment of the present invention will be described below with reference to FIGS. 3 and 4.

第3図は本発明の一実施例構成図を示し、第4図はRO
Mのアドレスの説明図である。
FIG. 3 shows a configuration diagram of an embodiment of the present invention, and FIG. 4 shows an RO
It is an explanatory diagram of the address of M.

図中、11はシフトレジスタ、12は第lROM。In the figure, 11 is a shift register, and 12 is a first ROM.

13は第2ROM、14はFF、15,16はオア・ゲ
ート、17はラッチ、18はシフト回路、19.20は
インバータである。
13 is a second ROM, 14 is an FF, 15 and 16 are OR gates, 17 is a latch, 18 is a shift circuit, and 19.20 is an inverter.

シフトレジスタ11は可変長符号であるMH符号が入力
される12ビツトのシフトレジスタであって、第1図の
シフトレジスタ1に対応するものである。
Shift register 11 is a 12-bit shift register into which an MH code, which is a variable length code, is input, and corresponds to shift register 1 in FIG.

第lROM12は、MH符号で10ビット以上の符号の
場合にアクセスされるROMであり、RLO外にそのア
クセスした符号のビット長も記憶されている。また第2
ROM13はMH符号で9ビツト以下の符号の場合にア
クセスされるROMであり、第lROM12と同様にR
Lの外にそのアクセスした符号のビット長も記憶されて
いる。
The first ROM 12 is a ROM that is accessed when the MH code is 10 bits or more, and the bit length of the accessed code is also stored outside the RLO. Also the second
The ROM 13 is a ROM that is accessed when the MH code is a code of 9 bits or less, and like the first ROM 12, the R
In addition to L, the bit length of the accessed code is also stored.

これらの第lROM12と第2ROM13は本発明の特
徴とするところであるので、更に詳述する。これらの各
ROMには、前記の如く、データとしてRLとMH符号
の符号長が記憶されている。
Since these first ROM 12 and second ROM 13 are the characteristics of the present invention, they will be described in more detail. As described above, each of these ROMs stores the code lengths of the RL and MH codes as data.

例えば、第2図の先頭に示すEOL(12ビツト)符号
がこのシフトレジスタ11にセットされたとき、その先
頭4ビツトがオール「0」のためにオアeゲートISは
rOJを出力し、これがインバータ20で「1」となり
@IROMI 2のチップセレクト端子CS 、Iln
 rlJが印加されて、この第1 ROM12が選択さ
れる。そして次の8ビツトが第1ROMI!のアドレス
端子Ao−AyK伝達される。
For example, when the EOL (12-bit) code shown at the beginning of FIG. 20 becomes “1” @IROMI 2 chip select terminal CS, Iln
When rlJ is applied, this first ROM 12 is selected. And the next 8 bits are the 1st ROMI! The address terminals Ao-AyK are transmitted.

このと$、FF14が「1」を出力してアドレス端子A
8に印加している。したがつ【、第4図に示すように、
このEOL符号により第lROM12がアクセスされた
とき、FLOMデータとしCRL=「0」、ビット長=
412Jが出力され、これがラッチ17にセットされる
。また、次に、第2図の第2群のように、白ラン25を
示す7ビツト符号「0101011 Jでアクセスされ
たとき、オア・ゲート15は「1」を出力し【第2RO
M13のチップセレクト端子C8に印加されるので、こ
の第2ROM13が選択されることになる。このとき先
のEOL符号のビット長信号によりFF14は反転して
A8に「0」が入力している。そしてその7ビツトのア
ドレスr 0101011 Jが第2ROM13のAO
〜A6に印加されると、A1にrob、  rlJのい
ずれが印加されていても第2ROM13は、データとし
てRL=r25J、ビット長=「7」を出力し、このビ
ット長「7」ぼシフ)Q第18に印加される。
At this time, $, FF14 outputs "1" and address terminal A
8. However, as shown in Figure 4,
When the first ROM 12 is accessed with this EOL code, it is treated as FLOM data, CRL = "0", bit length =
412J is output and set in latch 17. Next, as in the second group in FIG.
Since the voltage is applied to the chip select terminal C8 of M13, this second ROM 13 is selected. At this time, the FF14 is inverted by the bit length signal of the previous EOL code, and "0" is input to A8. The 7-bit address r0101011J is the AO of the second ROM13.
~ When applied to A6, the second ROM 13 outputs RL=r25J, bit length=“7” as data, regardless of whether rob or rlJ is applied to A1, and this bit length is “7”. Q18 is applied.

シフトレジスタ11に、第3群として黒ラン28を示す
12ビット符号r 000011001100 J  
がセットされると、このときFF14は第2群のアクセ
スにより反転されて黒を示す「1」を出力しているので
、この12ビツトにより第1 ROM 12がアクセス
されることになる。即ち、その先頭4ビツトのr 00
00 Jによりオア・ゲート15はrOJを出力し、イ
ンバータ20は「1」を出力するので、第1 ROM 
12がセレクトされる。そして残りの8ビツトr 11
001100JがAo−Ayニ印加され、コノときFF
14よりA8に「1」印加されるので、第lROM12
から出力データとしてRL=r28J、ビット長−「1
2」を出力する。
In the shift register 11, a 12-bit code indicating black run 28 as the third group r 000011001100 J
When is set, the FF 14 is inverted by the second group's access and outputs "1" indicating black, so the first ROM 12 is accessed by these 12 bits. That is, the first 4 bits r 00
00 J, the OR gate 15 outputs rOJ and the inverter 20 outputs "1", so the first ROM
12 is selected. and the remaining 8 bits r 11
001100J is applied to Ao-Ay, and when the FF
14 is applied to A8, so the first ROM12
As the output data, RL=r28J, bit length - "1
2" is output.

それから第4群として白ランフを示す4ビット符号r 
1111 Jがシフトレジスタ11の先頭にセットされ
ると、このとき第2ROM13のA4〜A7に何が伝達
されていても第2ROM13は出力としてRL = r
7J 、ビット長=「4」を出力する。このようにして
第lROM12及びji2ROM13はそれぞれMH符
号に応じてアクセスされ、RLとアクセスしたM)I符
号のビット長を出力する。
Then, as the fourth group, a 4-bit code r indicating a white run.
When 1111 J is set at the beginning of the shift register 11, no matter what is being transmitted to A4 to A7 of the second ROM 13 at this time, the second ROM 13 outputs RL = r.
7J, bit length = "4" is output. In this way, the first ROM 12 and the second ROM 13 are each accessed according to the MH code, and output the RL and the bit length of the accessed M)I code.

ところでMH符号は2〜12ビツトの可変長符号であり
、実際のデータでは、これらの符号がランダムに連続し
ている。そヤ、ため解読しようとし、1   ている符
号の後にどんな符号がきてもROMより°正しいデータ
が出力されなければならない。そのために、第4図に示
すように、符号のビットハターンに冗長ビットを付加し
てROMのアドレスを構成している0例えばEOLの場
合A8は冗長ビットであり、また白ランフについてはA
4−Atは冗長ビットである。冗長ビットは全ての組合
せ、すなわち冗長ビット数をmとしたとき27″rnの
組合せが考えられ、そのすべてのアドレスに対し、同じ
肚とビット長(符号ビット数)を記憶する。
Incidentally, the MH code is a variable length code of 2 to 12 bits, and in actual data, these codes are randomly consecutive. Then, no matter what code comes after the code that is 1 when trying to decode it, the correct data must be output from the ROM. For this purpose, as shown in FIG. 4, a redundant bit is added to the bit pattern of the code to configure the ROM address. For example, in the case of EOL, A8 is a redundant bit, and for white ramp,
4-At is a redundant bit. All combinations of redundant bits, that is, when the number of redundant bits is m, 27''rn combinations are possible, and the same length and bit length (number of code bits) are stored for all addresses.

FF14は、解読中の符号の白黒を決定するものであっ
て第1図のFFsに対応するものであり、第lROM1
2あるいは第2 ROM 13のいずれかより出力が発
生したことにより反転されるものである。モしてEOL
が検出されたとき「0」を出力するようにセットされる
FF14 determines whether the code being decoded is black or white and corresponds to the FFs in FIG.
The signal is inverted when an output is generated from either the second ROM 13 or the second ROM 13. Mo and EOL
is set to output "0" when detected.

オア・ゲート15は、MH符号が10ビット以上のとき
その先1j4ビットがオール「0」であるこ□□L、?
rO□カカオ8、。やあ。。オヶゎ  V、、。41−
、オー8.。1ケ、イ21゜1oヨよ、  【換するも
のである。
The OR gate 15 determines that when the MH code is 10 bits or more, the next 1j4 bits are all "0" □□L,?
rO□Cacao8. Hi. . Ogawa V... 41-
, O8. . 1 ke, A21゜1oyo, [It is something to be replaced.

オア・ゲート16は、EOL符号を検出するものであり
EOL符号がシフトレジスタ11にセットされたときの
み「0」を出力し、1ライン毎に現われるEOLを検出
し、回路動作が符号に同期しているかを確認している。
The OR gate 16 detects the EOL code, outputs "0" only when the EOL code is set in the shift register 11, detects the EOL that appears every line, and synchronizes the circuit operation with the code. I'm checking to see if it's working.

ラッチ17は第1 ROMI 2あるいは第2 I’L
OM13の出力であるRLとビット長(符号ビット数)
を1時的に保持するラッチである。
The latch 17 is the first ROMI 2 or the second I'L
RL and bit length (number of code bits) output from OM13
This is a latch that temporarily holds the .

シフト回路18はラッチ17のピッ)&を入力し、これ
と同数のクロックを発生し、シフトレジスタ1を動作さ
せるものである。
The shift circuit 18 inputs the pin) & of the latch 17, generates the same number of clocks, and operates the shift register 1.

次に第3図の回路動作を、第2図に示す符号列を解読す
る場合を例にとり、第4図を参照しつつ説明する。
Next, the operation of the circuit shown in FIG. 3 will be explained with reference to FIG. 4, taking as an example the case where the code string shown in FIG. 2 is decoded.

■ 最初にシフト回路18よりクロックをシフトレジス
タ11に送出し、M)I符号列の最初のEOL符号がシ
フトレジスタ11にセットされたとき、オア・ゲート1
6はこれを検出して「0」を出力してシフトn路18の
クロックを停止させる。そしてこのEOLと第lROM
12のアドレスの対応をとる。このときEOLの先頭4
ビツトはオール「0」のため、オア・ゲート15は「0
」を出力し、インバータ20は「1」を出力するので、
第lROM+2がアクセスされることになる。モしてE
OLの第5ビツト〜第12ビツトのr 0000000
1 Jが第lROM12のA(1〜A丁に伝達され、第
4図に示すように第lROM12からはデータとしてR
L=零とEOL符号長を示すビット長「12」が出力さ
れてラッチ17にセットされる。そしてこのビット長「
12」がシフト回路18に伝達され、これによりシフト
回路18はクロックを12ケ発生し【シフトレジスタ1
1をシフト制御する。
■ First, the shift circuit 18 sends a clock to the shift register 11, and when the first EOL code of the M)I code string is set in the shift register 11, the OR gate 1
6 detects this and outputs "0" to stop the clock of shift n path 18. And this EOL and the first ROM
12 addresses. At this time, the first 4 of EOL
Since the bits are all "0", the OR gate 15 is "0".
” and the inverter 20 outputs “1”, so
The first ROM+2 will be accessed. Mote E
5th bit to 12th bit of OL r 0000000
1 J is transmitted to A (1 to A) of the first ROM 12, and as shown in FIG.
L=zero and a bit length "12" indicating the EOL code length are output and set in the latch 17. And this bit length '
12'' is transmitted to the shift circuit 18, whereby the shift circuit 18 generates 12 clocks [shift register 1
1 to shift control.

■ このシフト制御によりシフトレジスタ11内のEO
Lがシフトされて、今度はシフトレジスタ11の先頭に
第2群の白ラン25(0101011)がセットされる
。この符合は先頭の4ビツトに「1」が含まれているの
で、オア・ゲート15から「1」が出力されて第2f′
LOM13がセレクトされる。そしてこの第2 ROM
13のAO〜A6に前記(0101011)が伝達され
、第4図に示すように、Ayに何が印加されても第2R
OM13からRL=r25Jとビット長=「7」が出力
され、ラッチ17にセットされる拳このRL=r25J
は図示省略した次段の処理回路に送出される。またビッ
ト長「7」はシシト回路18に送出され、シフト回路1
8ではEOLの場合と同様に、符号(0101011)
のビット長と同じ7ケのクロックを発生し、シフトレジ
スタ11内のこの符号(0101011)をシフトし、
次の第3群の黒ラン28(000011001100)
をシフトレジスタ11の先頭にセットする。このように
して上記の場合と同様に、第lROM12からRL=r
28J、ビット長=r12Jが出力され、これが2ツチ
17にセットされる。以下同様な制御が行なわれ、白ラ
ンフ、黒ラン9、白ラン10・・・と順次符号解読が行
なわれることになる。
■ This shift control allows the EO in the shift register 11 to
L is shifted, and the white run 25 (0101011) of the second group is set at the beginning of the shift register 11 this time. Since this code includes "1" in the first 4 bits, "1" is output from the OR gate 15 and the second f'
LOM13 is selected. And this second ROM
The above (0101011) is transmitted to AO to A6 of 13, and as shown in FIG. 4, no matter what is applied to Ay, the 2R
RL=r25J and bit length=“7” are output from OM13, and the fist RL=r25J is set in latch 17.
is sent to the next stage processing circuit (not shown). Further, the bit length "7" is sent to the shift circuit 18, and the bit length "7" is sent to the shift circuit 18.
8, the code (0101011) is the same as in the case of EOL.
Generate 7 clocks equal to the bit length of , shift this code (0101011) in the shift register 11,
Next 3rd group black run 28 (000011001100)
is set at the beginning of the shift register 11. In this way, similarly to the above case, from the first ROM 12, RL=r
28J, bit length=r12J is output, and this is set to 2×17. Thereafter, similar control is performed, and code decoding is performed sequentially in the order of white run, black run 9, white run 10, and so on.

、1     このときFF14はラレチ17からデー
タが出力される度に反転され、解読中の符号が白ランか
、点ランかの判断を行っている。
, 1 At this time, the FF 14 is inverted every time data is output from the rear chip 17, and judges whether the code being decoded is a white run or a dot run.

の−次元符号(MH符号)の解読にも使用できることは
いうまでもない。
Needless to say, it can also be used to decode a -dimensional code (MH code).

(6)発明の効果 本方式でMH符号を解読すると、従来の方式のように、
1ビツトシフトする毎にROMの出力を確認することが
ない。したがって回路を高速に動作でき、回路構成が簡
単にできる。またMH符号の符号ビット数(ビット長)
をROMデータに持っているので、1つの符号に対して
ROMのアクセスが1回で済むため符号解読回路の構成
を簡単にでき、しかも高速処理ができる。
(6) Effect of the invention When the MH code is decoded using this method, like the conventional method,
There is no need to check the ROM output every time one bit is shifted. Therefore, the circuit can operate at high speed and the circuit configuration can be simplified. Also, the number of code bits (bit length) of the MH code
Since the ROM data contains ROM data, the ROM only needs to be accessed once for one code, which simplifies the configuration of the code decoding circuit and enables high-speed processing.

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

第1図は従来の構成図、第2図はMH符号列、第3図は
本発明の一実施例構成、第4図は本発明のROMの構成
図である。 図中、11はシフトレジスタ、12は第1rtOM、1
3は第2ROM、14はFF、15,16はオア・ゲー
ト、17はラッチ、18はシフト回路、19.20はイ
ンバータである。 特許出願人  富士通株式会社 代理人弁理士   山 谷 晧 榮 1m Tz!1 fOL      69>21    、@5>U  
      白9>7    、@1>9.    f
atン10ooooooooooot  ototot
t  oooottoottoo  tt ツl   
000100  00111′2−4図 特許庁長盲 若 # 和 夫  験 1、事件tal&$  188B1年41tWIIIA
第52191号i発vsoa称 MH符号解読方式 tm正をする者 事件と〇−係 特許出願人 住 所  神奈川系川崎市中原区上小田中1015番地
氏4  (s22)富士通株式金社 代表考 山 本 卓 眞 4代理人 補正O内容 し 1・ 明細書第7頁第14行に記載され九「狩号刷」 
  Xを「符号列」と補正する。 2 岡j1114頁第墨行及び第4行間に下記の文を挿
入する。 「−11らに萬I ROM12. III 2 ROM
1 lに代えて。 マルチプレタナを用いるζ七により ROMを1つにす
る仁とができる。 シフトレジスター1かも出力1れ第110M12、第2
ROMINへ導かれるぺ龜2系統OfF号をこれら2つ
のROM12.11へ導く代わりにj示しないマルチブ
レ/lへ入力し、オア・ゲト15の出力信号でとOマル
チプレタナを切=え制御することによシ上le2系統O
信号Oう−の一方Oみをマルチプレタナから出力する。 ”YkチグレItの出力信号を図示しない単−ROM0
(1号入力端子に導くとともに前記オ・ゲート15の出
力信号をもeOROMolの信号入力端子に導くことに
よシ、前記2系統の信号の各系統に対応したRLとビッ
ト長をこのROMの出力として得ることができるので。 とのRLとビット長を2ツチで一時的に保持すればよい
。 このようKしてROMは1つで済ませることができる。 」 以上。
FIG. 1 is a conventional configuration diagram, FIG. 2 is a MH code string, FIG. 3 is an embodiment configuration of the present invention, and FIG. 4 is a configuration diagram of a ROM of the present invention. In the figure, 11 is a shift register, 12 is the first rtOM, 1
3 is a second ROM, 14 is an FF, 15 and 16 are OR gates, 17 is a latch, 18 is a shift circuit, and 19.20 is an inverter. Patent Applicant: Fujitsu Ltd. Representative Patent Attorney Akira Yamatani 1m Tz! 1 fOL 69>21, @5>U
White 9>7, @1>9. f
atton 10ooooooooooot ototot
toooottoottoo tt tsul
000100 00111'2-4 Figure Director of the Patent Office Blind Waka # Kazuo Trial 1, Incident tal&$ 188B1 year 41tWIIIA
No. 52191 vsoa name MH code decoding method TM correction case and ○- Patent applicant address Mr. 4, 1015 Kamiodanaka, Nakahara-ku, Kawasaki-shi, Kanagawa (s22) Representative of Fujitsu Kinsha Takashi Yamamoto 4. Agent amendment O Contents 1. Described on page 7, line 14 of the specification 9 "Kari issue printing"
Correct X to be a "code string". 2 Insert the following sentence between the black line and the 4th line on page 1114 of Okaj. "-11 Raniman I ROM12. III 2 ROM
Instead of 1 l. By using ζ7 using multipletana, it is possible to combine ROM into one. Shift register 1 may be output 1, 110th M12, 2nd
Instead of leading the 2-channel OFF signal led to ROMIN to these two ROMs 12 and 11, it is input to the multi-brake/l not shown, and the output signal of the OR get 15 is used to switch and control the O multiplex. Yoshi upper le2 system O
One of the signals O and O is outputted from the multiplex converter. ”The output signal of Yk Tigre It is stored in a single ROM0 (not shown).
(By leading the output signal of the O-gate 15 to the signal input terminal of eOROMol as well as the No. 1 input terminal, the RL and bit length corresponding to each of the two signal systems are outputted from this ROM. You can obtain it as . All you have to do is temporarily hold the RL and bit length in two pieces. In this way, you can use only one ROM.''That's all.

Claims (2)

【特許請求の範囲】[Claims] (1)  ROMを備えたモディファイドハフマン符号
を解読するMHH号解読回路において、符号化ビットを
入力するシフトレジスタと、符号パターンをアドレスと
し符号の示すランレングスと符合ビット数を格納したR
OMと、前記ROM内の符号ビット数と同じシフトクロ
ックを発生してシフトレジスタの符合ビットをシフトす
るシフト回路を備え、前記ROMよりランレングスを得
たときに前記シフト回路によりシフトレジスタをその符
号ビット(応じたビットだけシフトさせるようにしたこ
とを特徴とするMHH号解読方式。
(1) In the MHH code decoding circuit that decodes the modified Huffman code, which is equipped with a ROM, there is a shift register that inputs encoded bits, and an R register that uses the code pattern as an address and stores the run length and number of code bits indicated by the code.
OM, and a shift circuit that generates a shift clock equal to the number of code bits in the ROM to shift the code bits of the shift register, and when a run length is obtained from the ROM, the shift circuit shifts the shift register to the code bit of the shift register. An MHH code decoding method characterized by shifting only the corresponding bits.
(2)前記ROMのアドレス作成において、MH符号の
先頭4ビツトを1ビツトに変換する変換手段を設けたこ
とを特徴とする特許請求の範囲第(1)項記載のMHH
号解読方式。
(2) The MHH according to claim (1), characterized in that, in creating the address of the ROM, a converting means for converting the first 4 bits of the MH code into 1 bit is provided.
Code deciphering method.
JP5279182A 1982-03-31 1982-03-31 Decoding system of mh code Granted JPS58170280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5279182A JPS58170280A (en) 1982-03-31 1982-03-31 Decoding system of mh code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5279182A JPS58170280A (en) 1982-03-31 1982-03-31 Decoding system of mh code

Publications (2)

Publication Number Publication Date
JPS58170280A true JPS58170280A (en) 1983-10-06
JPH0255987B2 JPH0255987B2 (en) 1990-11-28

Family

ID=12924652

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5279182A Granted JPS58170280A (en) 1982-03-31 1982-03-31 Decoding system of mh code

Country Status (1)

Country Link
JP (1) JPS58170280A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60117878A (en) * 1983-11-29 1985-06-25 Nec Corp Facsimile signal processing circuit
JPS60257667A (en) * 1984-06-05 1985-12-19 Canon Inc Decoder for compression code
US4618846A (en) * 1983-12-08 1986-10-21 Crosfield Electronics Limited Data coding
US4864414A (en) * 1985-07-03 1989-09-05 Minolta Camera Kabushiki Kaishi Image signal processing device
JPH04180469A (en) * 1990-11-15 1992-06-26 Hitachi Telecom Technol Ltd Code extending method and plotting device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58121866A (en) * 1982-01-14 1983-07-20 Nec Corp Run length decoder

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58121866A (en) * 1982-01-14 1983-07-20 Nec Corp Run length decoder

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60117878A (en) * 1983-11-29 1985-06-25 Nec Corp Facsimile signal processing circuit
US4618846A (en) * 1983-12-08 1986-10-21 Crosfield Electronics Limited Data coding
JPS60257667A (en) * 1984-06-05 1985-12-19 Canon Inc Decoder for compression code
US4864414A (en) * 1985-07-03 1989-09-05 Minolta Camera Kabushiki Kaishi Image signal processing device
JPH04180469A (en) * 1990-11-15 1992-06-26 Hitachi Telecom Technol Ltd Code extending method and plotting device

Also Published As

Publication number Publication date
JPH0255987B2 (en) 1990-11-28

Similar Documents

Publication Publication Date Title
US4855742A (en) Method of transmitting n-bit information words, information transmission system for carrying out the method, and encoding device and decoding device for use in the information-transmission system
US5801650A (en) Decoding apparatus and method
EP0453113B1 (en) Coding and decoding apparatus of variable length date
US4574382A (en) Variable length character code system
JPH0366227A (en) Method and system for compression coding and decoding method
JPH01195770A (en) Picture data compression transmission method
US5974411A (en) N-way processing of bit strings in a dataflow architecture
US5751233A (en) Decoding apparatus and method therefor
JPS58170280A (en) Decoding system of mh code
US4789852A (en) Method and apparatus for converting data in a binary format
EP0349677B1 (en) Image coding system
JPS60140980A (en) Method and device for encoding signal representing flow of digital data group
CA2334561C (en) Replacement of special characters in a data stream
US20040246264A1 (en) Image display apparatus
JPS60140979A (en) Parallel processor for encoding and decoding of picture signal
JPH11215008A (en) Decoding circuit
JP2556160B2 (en) Compression code decompression device
JP3260862B2 (en) Parallel data transmission device
JPH0432586B2 (en)
JPH07111461A (en) Variable length coding/decoding device
EP0294614B1 (en) m bit to n bit code converting circuit
JP2614927B2 (en) Image decoding processing method
JPS5964969A (en) Coded signal decoding device
JPH01314023A (en) Digital signal processing circuit
JPS59169254A (en) Code converting system