JPS625732A - Coding system - Google Patents

Coding system

Info

Publication number
JPS625732A
JPS625732A JP14378785A JP14378785A JPS625732A JP S625732 A JPS625732 A JP S625732A JP 14378785 A JP14378785 A JP 14378785A JP 14378785 A JP14378785 A JP 14378785A JP S625732 A JPS625732 A JP S625732A
Authority
JP
Japan
Prior art keywords
code
counter
circuit
signal
run
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
Application number
JP14378785A
Other languages
Japanese (ja)
Inventor
Osamu Tateyama
立山 修
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP14378785A priority Critical patent/JPS625732A/en
Publication of JPS625732A publication Critical patent/JPS625732A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Transmission Systems Not Characterized By The Medium Used For Transmission (AREA)

Abstract

PURPOSE:To simplify the constitution of a coding and decoding circuit by using a run-length value of n bits obtained at a run-length counter as a coded code and sending it as it is. CONSTITUTION:A change point detection circuit 2 detects a change point of a signal level of a binary-coded picture signal DS and the information of change point is given to counters 41, 42 of a run-length counter 4 as a clear signal. The count of a clock is started from the point of time of detection of a change point by the counter 41, the count is stopped at the incoming point of time of the next change point detection signal and the count is outputted to an output circuit as a terminating code. When the run lengths are 128 or over, the 'H' level signal is generated from a MSB bit output terminal of the 1st counter 41 at each count of 128 and the signal is counted by the 2nd count circuit 42. When the next change point is generated, the count is stopped and the count is outputted as it is to the output circuit 5 as the terminating code and the makeup code.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、例えばファクシミリ信号を符号化する際に使
用する符号化方式の改良に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to improvements in encoding methods used, for example, when encoding facsimile signals.

〔発明の技術的背景〕[Technical background of the invention]

例えばファクシミリスキャナで得られる光電変換出力は
標本化および量子化により通常白黒2値のデジタル信号
に変換されるが、この種の信号は冗長度が大きいために
冗長度の圧縮符号化がなされるようになっている。この
冗長度圧縮符号化方式には種々あるが、その一つとして
1ライン毎に白および黒画素の継続する長さ、つまりラ
ンレングスを検出し、このランレングスを符号化するも
のがある。第1表および第2表はそれぞれそのうンレン
グス符号化方式の一例であるWyle符号化方式とMo
dified  Huffman符号化方式(MH符号
化方式)のランレングスと符号との関係の一部を示すも
のである。
For example, the photoelectric conversion output obtained from a facsimile scanner is usually converted into a black and white binary digital signal by sampling and quantization, but since this type of signal has a large degree of redundancy, it is necessary to compress and encode the redundancy. It has become. There are various redundancy compression encoding methods, and one of them is one that detects the continuous length of white and black pixels for each line, that is, the run length, and encodes this run length. Tables 1 and 2 show the Wyle encoding method and Mo
It shows a part of the relationship between the run length and code of the divided Huffman encoding method (MH encoding method).

第1表 第2表 〔背景技術の問題点〕 ところがこれらの符号化方式は、いずれもランレングス
を符号に変換するための変換手段が必要であり、また前
記各表から明らかなようにランレングス符号はいずれも
不等長符号により表わされるため、このランレングス符
号を伝送する場合に伝送路で規定される1バイト毎の伝
送ビット数(例えば8ビット)に変換する必要がある。
Table 1 Table 2 [Problems in the Background Art] However, all of these encoding systems require a conversion means to convert the run length into a code, and as is clear from the above tables, the run length Since all the codes are represented by unequal length codes, when transmitting these run-length codes, it is necessary to convert them into the number of transmission bits per byte (for example, 8 bits) defined by the transmission path.

このため、上記従来のランレングス符号化方式を使用し
た伝送装置は、符号化回路および復号化回路の構成が複
雑で大形化する欠点があった。
For this reason, the transmission apparatus using the conventional run-length encoding method has the disadvantage that the configurations of the encoding circuit and decoding circuit are complicated and large.

〔発明の目的〕 本発明は、ランレングスを特殊な符号に変換する必要を
無くすとともに、伝送ビットのビット合わせを不要にし
て、符号化および復号化回路の構成を簡単化し、これに
より伝送装置の小形化および低価格化を図り得る符号化
方式を提供することを目的とする。
[Object of the Invention] The present invention eliminates the need to convert run lengths into special codes and eliminates the need to match transmission bits, thereby simplifying the configuration of encoding and decoding circuits, thereby improving the efficiency of transmission equipment. The purpose of this invention is to provide an encoding method that can be made smaller and lower in price.

〔発明の概要〕[Summary of the invention]

本発明は、上記目的を達成するために、カウント出力の
ビット数が伝送路で規定される1バイト毎のビット数(
nビット)と等しく設定したランレングスカウンタを設
け、このランレングスカウンタで得られるnビットのラ
ンレングス値を符号化コードとしてそのまま伝送するよ
うにしたものである。
In order to achieve the above object, the present invention sets the number of bits of the count output to the number of bits per byte specified in the transmission path (
A run length counter is provided which is set equal to n bits), and the n bit run length value obtained by this run length counter is transmitted as it is as an encoded code.

〔発明の実施例〕[Embodiments of the invention]

第1図は、本発明の一実施例における符号化方式を適用
した符号化回路の構成を示すものである。
FIG. 1 shows the configuration of an encoding circuit to which an encoding method according to an embodiment of the present invention is applied.

この回路は、二値化画信号DSの入力回路1と、この入
力回路1を介して導入された二値化画信号DSの白から
黒および黒から白への信号変化点を検出する変化点検出
回路2と、上記二値化画信号DSの画素に周期が対応し
たクロック信号を発生するクロック発生回路3と、ラン
レングスカウンタ4と、ランレングス符号を出力する出
力回路5とから構成される。
This circuit includes an input circuit 1 for a binary image signal DS, and a change check for detecting signal change points from white to black and from black to white in the binary image signal DS introduced through the input circuit 1. It is composed of an output circuit 2, a clock generation circuit 3 that generates a clock signal whose cycle corresponds to the pixels of the binary image signal DS, a run length counter 4, and an output circuit 5 that outputs a run length code. .

入力回路1および出力回路5は、それぞれファクシミリ
装置全体の動作を統轄する主制御回路(図示せず)から
符号化開始信号C3Tが発生されたときに動作を開始す
るもので、主制御回路との間で要求信号RQおよび応答
信号ACKの授受を行なったのちそれぞれ二値化画信号
DSの導入およびランレングス符号CDSの出力を行な
う。
The input circuit 1 and the output circuit 5 each start operating when an encoding start signal C3T is generated from a main control circuit (not shown) that controls the operation of the entire facsimile machine, and there is no communication between the main control circuit and the main control circuit. After a request signal RQ and a response signal ACK are exchanged between them, a binary image signal DS is introduced and a run length code CDS is output.

またクロック発生回路3は、主制御回路から符号化開始
信号C3Tが発生された時および上記変化点検出回路2
から変化点検出回路が発生された時にそれぞれクロック
信号の発生を開始する。
Further, the clock generation circuit 3 operates when the encoding start signal C3T is generated from the main control circuit and when the above-mentioned change point detection circuit 2
The change point detection circuit starts generating a clock signal when the change point detection circuit is generated.

上記ランレングスカウンタ4は、ターミネーティング符
号を出力する第1のカウンタ41と、メイクアップ符号
を出力する第2のカウンタ42とを有している。第1の
カウンタ41は、オアゲート43を経て供給される主制
御回路からの符号化開始信号C8T、変化点検出回路2
の変化点検出信号および自己のカウント出力のMSBビ
ットの“H″出力供給される毎にカウント値をクリアし
て、前記クロック発生回路3からのクロックを計数し始
めるもので、上記クリア時のカウント値をターミネーテ
ィング符号として出力回路5へ出力する。また第2のカ
ウンタ42は、オアゲート44を経て供給される前記主
制御回路の符号化開始信号C3Tおよび変化点検出回路
2の変化点検出信号の発生時にカウント値をクリアし、
この時点から上記第1のカウンタ41のカウント出力の
MSBビットの“H”レベル出力を計数し始めるもので
、上記クリア時点でのカウント値をメイクアップ符号と
して出力回路5へ出力する。
The run length counter 4 has a first counter 41 that outputs a terminating code and a second counter 42 that outputs a make-up code. The first counter 41 receives the encoding start signal C8T from the main control circuit supplied via the OR gate 43 and the change point detection circuit 2.
It clears the count value every time the change point detection signal and the "H" output of the MSB bit of its own count output are supplied, and starts counting the clocks from the clock generation circuit 3. The value is output to the output circuit 5 as a terminating code. Further, the second counter 42 clears the count value when the encoding start signal C3T of the main control circuit and the change point detection signal of the change point detection circuit 2 are generated, which are supplied via the OR gate 44,
From this point on, counting of the "H" level output of the MSB bit of the count output of the first counter 41 is started, and the count value at the time of clearing is outputted to the output circuit 5 as a make-up code.

−力筒2図は、本実施例の符号化方式を適用した復号化
回路の構成を示すものである。この回路は、送信側から
伝送されたランレングス符号CDSを主制御回路(図示
せず)の指示に従って人力する入力回路6と、画信号の
画素周期に対応するクロックを発生するクロック発生回
路7と、ランレングスダウンカウンタ8と、画信号再生
回路9と、再生された画信号DSを主制御回路の指示に
従って出力する出力回路10とから構成される。
Figure 2 shows the configuration of a decoding circuit to which the encoding method of this embodiment is applied. This circuit includes an input circuit 6 that manually inputs the run-length code CDS transmitted from the transmitting side according to instructions from a main control circuit (not shown), and a clock generation circuit 7 that generates a clock corresponding to the pixel period of the image signal. , a run-length down counter 8, an image signal reproduction circuit 9, and an output circuit 10 that outputs the reproduced image signal DS according to instructions from the main control circuit.

ランレングスダウンカウンタ8は、ランレングス符号C
DSを各バイト毎にターミネーティング符号であるかメ
イクアップ符号であるかを判定するM/T判定部81と
、メイクアップ符号が到来した場合にこの符号と続いて
到来するターミネーティング符号とを加算する加算器8
2と、ダウンカウンタ83とからなる。このダウンカウ
ンタ83は、加算器82の出力値をカウント初期値とし
て前記クロック発生回路7からクロックが発生される毎
にダウンカウントを行なうもので、これにより上記加算
器82の出力値、つまりランレングスの長さに相当する
パルス信号を出力する。また画信号再生回路9は、上記
ダウンカウンタ83からパルス信号が発生される毎にこ
のパルス信号が画信号の白を表わすものか又黒を表わす
ものかを指定する白/黒指定部91と、画信号発生部9
2とを有し、この画信号発生部92により前記ダウンカ
ウンタ83から供給されるパルス信号のパルス幅分だけ
クロック発生回路7からのクロックを出力し、これを再
生画信号DSとして出力部10に供給する。尚、このと
き上記画信号発生部92から出力される再生画信号DS
の信号レベルは、上記白/黒指定部91で指定されるレ
ベルに設定される。
The run length down counter 8 has a run length code C.
An M/T determination unit 81 determines whether the DS is a terminating code or a make-up code for each byte, and when a make-up code arrives, this code is added to the subsequently arriving terminating code. adder 8
2 and a down counter 83. This down counter 83 uses the output value of the adder 82 as an initial count value and performs a down count every time a clock is generated from the clock generation circuit 7, and thereby the output value of the adder 82, that is, the run length. A pulse signal corresponding to the length of is output. The image signal reproducing circuit 9 also includes a white/black specifying section 91 that specifies whether the pulse signal represents white or black of the image signal every time a pulse signal is generated from the down counter 83; Image signal generator 9
The image signal generating section 92 outputs the clock from the clock generating circuit 7 by the pulse width of the pulse signal supplied from the down counter 83, and outputs the clock from the clock generating circuit 7 as a reproduced image signal DS to the output section 10. supply Incidentally, at this time, the reproduced image signal DS output from the image signal generating section 92
The signal level of is set to the level designated by the white/black designation section 91.

ところで、以上の符号化回路および復号化回路で取扱わ
れるターミネーティング符号およびメイクアップ符号は
それぞれ次のように構成されている。すなわち、上記各
符号は伝送路で規定される1バイト毎のビット数に応じ
て例えば8ビットに設定され、この8ビットのうちの最
上位ビットMSBを第3図イに示す如くメイクアップ符
号とターミネーティング符号との判別ビットとして使用
し、残りの7ビットを符号ビットとして使用し°Cいる
。したがって、ターミネーティング符号のみにより表わ
されるランレングスの長さは、7ビット分に相当する1
〜127までとなり、128以上はメイクアップ符号に
より表わされる。例えば、ランレングスが300の場合
は、第4図(a)に示す10000010” (llI
2H)なるメイクアップ符号と、第4図(b)に示す0
0101100’  (2CH)なるターミネーテイン
グ7丁号との対により表わされる。そしてこれらのメイ
クアップ符号およびターミネーティング符号は、伝送時
には先ずメイクアップ符号が送出されて、これに続いて
ターミネーティング符号が送出される。尚、ランレング
スが127以下の場合は、ターミネーティング符号だけ
で表わされてこのターミネーティング符号のみが送出さ
れる。
By the way, the terminating code and make-up code handled by the above encoding circuit and decoding circuit are respectively configured as follows. That is, each of the above codes is set to, for example, 8 bits according to the number of bits per byte specified in the transmission path, and the most significant bit MSB of these 8 bits is set as a make-up code as shown in Figure 3A. It is used as a discrimination bit from the terminating code, and the remaining 7 bits are used as sign bits. Therefore, the length of the run length represented only by the terminating code is 1, which corresponds to 7 bits.
to 127, and 128 and above are represented by make-up codes. For example, if the run length is 300, the run length is 10000010" (llI
2H) and the make-up code 0 shown in Figure 4(b).
0101100' (2CH) is represented by a pair with terminating number 7. When these make-up codes and terminating codes are transmitted, the make-up code is first sent out, followed by the terminating code. Note that if the run length is 127 or less, it is represented by only a terminating code, and only this terminating code is sent.

この様な構成であるから、符号化回路(第1図)におい
て、主制御回路から符号化開始信号C3Tが到来し、こ
れに対し入力回路1から要求信号RQを送出すると、主
制御回路から二値化画信号DSが到来し、この二値化画
信号DSは同時に到来゛する応答信号ACKに同期して
入力回路に導入され、この入力回路1から変化点検出回
路2へ供給される。そうすると、この変化点検出回路2
では上記二値化画信号DSの信号レベルの変化点が検出
され、この変化点の情報はランレングスカウンタ4の各
カウンタ41,42にクリア信号として与えられる。一
方、このときクロック発生回路3からは上記符号化開始
信号CSTに同期してクロックの発生が開始され、この
クロックはカウンタ41のカウントパルス入力端子に導
入される。
With such a configuration, in the encoding circuit (Fig. 1), when the encoding start signal C3T arrives from the main control circuit and the request signal RQ is sent from the input circuit 1 in response, the input circuit 1 sends a second signal. The digitized image signal DS arrives, and this binary image signal DS is introduced into the input circuit in synchronization with the simultaneously arriving response signal ACK, and is supplied from the input circuit 1 to the change point detection circuit 2. Then, this change point detection circuit 2
Then, a change point in the signal level of the binary image signal DS is detected, and information on this change point is given to each counter 41, 42 of the run length counter 4 as a clear signal. On the other hand, at this time, the clock generation circuit 3 starts generating a clock in synchronization with the encoding start signal CST, and this clock is introduced into the count pulse input terminal of the counter 41.

この結果、第1のカウンタ41は上記変化点の検出時点
からクロックの計数を開始する。そして、次の変化点検
出信号の到来時点で計数を停止し、このときのカウント
値をターミネーティング符号として出力回路5へ出力す
る。但し、ランレングスが128以上の場合には、12
8を計数する毎に第1のカウンタ41のMSBビット出
力端子から“H″レベル信号が発生され、この信号が第
2のカウント回路42で計数される。そして、次の変化
点が発生した時点で上記第1のカウンタ41および第2
のカウンタ42はそれぞれ計数を停止し、この時点での
カウント値をそれぞれターミネーティング符号およびメ
イクアップ符号としてそのまま出力回路5へ出力する。
As a result, the first counter 41 starts counting clocks from the point of time when the above-mentioned change point is detected. Then, counting is stopped when the next change point detection signal arrives, and the count value at this time is outputted to the output circuit 5 as a terminating code. However, if the run length is 128 or more, 12
Every time 8 is counted, an "H" level signal is generated from the MSB bit output terminal of the first counter 41, and this signal is counted by the second counting circuit 42. Then, when the next change point occurs, the first counter 41 and the second counter
The counters 42 each stop counting and output the count values at this point as they are to the output circuit 5 as a terminating code and a make-up code, respectively.

したがって本実施例の場合、従来のW y l’ e符
号化やMH符号化の場合のような符号変換が全く不要と
なる。また上記ターミネーティング符号およびメイクア
ップ符号が供給される出力回路5は、先ず第2のカウン
ト回路42からメイクアップ符号が出力されたか否かを
判断し、出力されればこのメイクアップ符号を先ず送出
して、その送出後に続いて第1のカウンタ41からのタ
ーミネーティング符号を送出する。このとき、これらの
各符号は各カウンタ41.42から出力された時点でそ
れぞれ既に8ビットに固定されたものとなっているので
、出力回路5は上記各符号をそのままの信号構成で後段
の伝送回路部へ供給する。したがって、出力回路5では
従来のようなビット合わせ等の信号処理は全く不要とな
る。
Therefore, in the case of this embodiment, there is no need for code conversion as in conventional W y l' e encoding or MH encoding. Further, the output circuit 5 to which the above-mentioned terminating code and make-up code are supplied first judges whether or not the make-up code has been output from the second counting circuit 42, and if it has been output, first sends out this make-up code. After that, the terminating code from the first counter 41 is sent out. At this time, since each of these codes is already fixed at 8 bits when output from each counter 41 and 42, the output circuit 5 transmits each of the above codes to the subsequent stage with the same signal configuration. Supplies to the circuit section. Therefore, in the output circuit 5, there is no need for signal processing such as bit alignment as in the prior art.

一方復号化回路(第2図)においては、主制御回路(図
示せず)から復号化開始信号DSTが到来すると、要求
信号RQおよび応答信号ACKの授受を行なってランレ
ングス符号CDSを入力し、このランレングス符号CD
Sをランレングスダウンカウンタ8に供給する。そうす
るとこのランレングスダウンカウンタ8は、M/T判定
部81で先ずメイクアップ符号が到来したか否かの判定
を行ない、この判定の結果ターミネーティング符号のみ
であればこの符号をそのまま加算器82を通過させてダ
ウンカウンタ83にセットし、一方メイクアップ符号が
存在すればこのメイクアップ符号とそれに続(ターミネ
ーティング符号とを加算器82で加算してダウンカウン
タ83にセットする。この結果、ダウンカウンタ83は
上記セット値を初期値として、クロック発生回路7から
クロックが発生される毎に上記セット値からダウンカウ
ントを行ない、このダウンカウントを行なっている期間
中に例えば“H“レベルの信号を出力する。これにより
画信号再生回路9は、上記ダウンカウンタ92の出力が
“H″レベル期間中に白/黒指定部91の指定に従って
レベル設定した画素信号を前記クロック発生回路のクロ
ックに同期して発生し、この再生画信号DSを直並列変
換して出力部10へ出力する。出力部10は、図示しな
い主制御部との間で要求信号RQおよび応答信号の授受
を行なって、主制御部へ上記画信号再生回路9で再生さ
れた再生画信号DSを出力する。
On the other hand, in the decoding circuit (FIG. 2), when a decoding start signal DST arrives from the main control circuit (not shown), it sends and receives a request signal RQ and a response signal ACK, and inputs a run-length code CDS. This run length code CD
S is supplied to the run length down counter 8. Then, in the run-length down counter 8, the M/T determining section 81 first determines whether or not a make-up code has arrived. If there is a make-up code, this make-up code and its successor (terminating code) are added by the adder 82 and set in the down counter 83.As a result, the down counter 83 is set. 83 uses the set value as an initial value and counts down from the set value every time the clock generation circuit 7 generates a clock, and outputs, for example, an "H" level signal during the down-counting period. As a result, the image signal reproducing circuit 9 synchronizes the pixel signal whose level has been set according to the specification of the white/black specifying section 91 while the output of the down counter 92 is at the "H" level, in synchronization with the clock of the clock generating circuit. This reproduced image signal DS is serial-parallel converted and outputted to the output section 10.The output section 10 sends and receives the request signal RQ and response signal to and from the main control section (not shown). The reproduced image signal DS reproduced by the image signal reproduction circuit 9 is output to.

したがってこの復号化回路においては、ランレングスの
長さそのものを表わすメイクアップ符号およびターミネ
ーティング符号が到来するので、これらの符号を直接ダ
ウンカウンタ83に供することができ、この結果到来し
たランレングス符号を長さを表わす符号に変換する必要
がなくその回路が不要となる。また、到来するランレン
グス符号は8ビットの固定長となっているので、受信時
に入力回路6で符号の抽出を行なう必要がなくその回路
が不要となる。
Therefore, in this decoding circuit, since the make-up code and the terminating code that represent the length of the run length arrive, these codes can be directly provided to the down counter 83, and as a result, the arrived run-length code is There is no need to convert it into a code representing the length, and that circuit becomes unnecessary. Further, since the incoming run-length code has a fixed length of 8 bits, there is no need for the input circuit 6 to extract the code at the time of reception, thereby eliminating the need for that circuit.

以上ように本実施例であれば、ランレングスの長さをそ
のままランレングス符号として伝送するようにしたので
、Wyle−符号化やMH符号化等の従来の符号化方式
で必要とした符号変換回路が不要となり、その分回路構
成やこれを制御する制御回路のプログラムを簡単化する
ことが可能となる。またビット数を8ビットに固定した
ランレングス符号を伝送に供するようにしたことにより
、送信および受信に際しビット合わせおよびビット抽出
を行なう必要がなくなり、この結果このビット合わせや
ビット抽出のための回路を省略し得て、上記符号変換回
路を不要にできることと相まって符号化回路および復号
化回路の構成を大幅に簡単化し、かつ小形化することが
できる。
As described above, in this embodiment, since the length of the run length is transmitted as it is as a run length code, the code conversion circuit required in conventional encoding methods such as Wyle-encoding and MH encoding is required. This eliminates the need for the circuit configuration and the program for the control circuit that controls it. In addition, by using a run-length code with a fixed number of bits at 8 bits for transmission, there is no need to perform bit alignment and bit extraction during transmission and reception. Coupled with the fact that the code conversion circuit can be omitted, the configurations of the encoding circuit and decoding circuit can be greatly simplified and downsized.

尚、本発明は上記実施例に限定されるものではない。例
えば、上記実施例では符号化回路の出一方路で規定され
る1バイト毎の伝送ビット数が8ビットの場合について
説明したが、16ビット等のさらにビット数が大きい場
合でもこれにランレングス符号のビット数を合わせるこ
とにより同様に実施できる。このようにビット数が大き
い場合と、1バイトで表わすことができるランレングス
長も大きく設定できるので、ターミネーティング符号の
みで伝送することも可能である。その他、ランレングス
カウンタの構成やランレングスダウンカウンタの構成、
用途等についても、本発明の要旨を逸脱しない範囲で種
々変形して実施できることはいうまでもない。
Note that the present invention is not limited to the above embodiments. For example, in the above embodiment, the case where the number of transmission bits per byte specified in the output path of the encoding circuit is 8 bits is explained, but even if the number of bits is larger, such as 16 bits, the run-length code can also be used. It can be implemented similarly by matching the bit numbers of . In this case, when the number of bits is large, and the run length that can be expressed by one byte can also be set large, it is also possible to transmit only the terminating code. In addition, the configuration of the run length counter and the configuration of the run length down counter,
It goes without saying that the present invention can be modified in various ways without departing from the spirit of the present invention.

〔発明の効果〕〔Effect of the invention〕

以上詳述したように本発明によれば、1バイト毎のビッ
ト数(nビット)と等しく設定したランレングスカウン
タを設け、このランレングスカウンタで得られるnビッ
トのランレングス値を符号化コードとしてそのまま伝送
するようにしたことによって、ランレングスを特殊な符
号に変換する必要を無くすことができるとともに、伝送
ビットのビット合わせを不要にし得て、符号化および復
号化回路の構成を簡単化することができ、これにより伝
送装置の小形化および低価格化を図り得る符号化方式を
提供することができる。
As detailed above, according to the present invention, a run length counter is provided which is set equal to the number of bits (n bits) for each byte, and the n bit run length value obtained by this run length counter is used as an encoded code. By transmitting the run length as it is, it is not necessary to convert the run length into a special code, and it is also unnecessary to match the transmission bits, which simplifies the configuration of the encoding and decoding circuits. As a result, it is possible to provide an encoding method that can reduce the size and cost of a transmission device.

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

図は本発明の一実施例における符号化方式を説明するた
めのもので、第1図および第2図はそれぞれ同方式を適
用した符号回路および復号化回路の構成を示す回路ブロ
ック図、第3図および第4図(a)、(b)はそれぞれ
ランレングス符号の構成を説明するだめの模式図である
。 1.6・・・入力回路、2・・・変化点検出回路、3゜
7・・・クロック発生回路、4・・・ランレングスカウ
ンタ、41・・・第1のカウンタ、42・・・第2のカ
ウンタ、43.44・・・オアゲート、5,10・・・
出力回路、8・・・ランレングスダウンカウンタ、81
・・・M/T判定部、82・・・加算器、83・・・ダ
ウンカウンタ、9・・・画信号再生回路、91・・・白
/黒指定部、92・・・画信号発生部、C3T・・・符
号化開始信号、DS・・・二値化画信号(再生画信号)
、RQ・・・要求信号、ACK・・・応答信号、CDS
・・・ランレングス符号、DST・・・復号化開始信号
。 出願人代理人 弁理士 鈴江武彦 第1 図 、9 第2図 第3図 第4図(a) 第4 図 (b)
The figures are for explaining the encoding method according to an embodiment of the present invention. FIG. 4 and FIGS. 4(a) and 4(b) are schematic diagrams for explaining the structure of a run-length code, respectively. 1.6... Input circuit, 2... Change point detection circuit, 3゜7... Clock generation circuit, 4... Run length counter, 41... First counter, 42... No. 2 counter, 43.44...or gate, 5, 10...
Output circuit, 8... Run length down counter, 81
. . . M/T determination section, 82 . . . Adder, 83 . . . Down counter, 9 . , C3T...encoding start signal, DS...binarized image signal (regenerated image signal)
, RQ...request signal, ACK...response signal, CDS
...Run length code, DST...Decoding start signal. Applicant's representative Patent attorney Takehiko Suzue Figure 1, 9 Figure 2 Figure 3 Figure 4 (a) Figure 4 (b)

Claims (2)

【特許請求の範囲】[Claims] (1)デジタル信号のランレングスを検出し、このラン
レングスを符号化して伝送する符号化方式において、カ
ウント出力のビット数を伝送路により規定される1バイ
ト毎の伝送ビット数(nビット)と等しく設定したラン
レングスカウンタを設け、このランレングスで得られる
nビットのランレングス値を符号化コードとしてそのま
ま伝送するようにしたことを特徴とする符号化方式。
(1) In a coding method that detects the run length of a digital signal and encodes and transmits the run length, the number of bits of the count output is defined as the number of transmission bits per byte (n bits) specified by the transmission path. An encoding method characterized in that a run length counter is provided which is set equally, and an n-bit run length value obtained from the run length is transmitted as it is as an encoded code.
(2)ランレングスカウンタを、メイクアップ符号を計
数する第1のカウンタとターミネーティング符号を計数
する第2のカウンタとから構成し、これらのカウンタの
カウント出力の所定の1ビットをメイクアップ符号とタ
ーミネーティング符号との識別符号として残りの全ビッ
トでそれぞれメイクアップ符号およびターミネーティン
グ符号を表わすようにし、長さがn−1ビット分以内の
ランレングスは上記第1のカウンタのカウント出力のみ
で伝送するとともにnビット分以上のランレングスは上
記第2のカウンタのカウント出力の後に上記第1のカウ
ンタのカウント出力を付して伝送することを特徴とする
特許請求の範囲第(1)項記載の符号化方式。
(2) The run-length counter consists of a first counter that counts make-up codes and a second counter that counts terminating codes, and a predetermined 1 bit of the count output of these counters is used as the make-up code. All remaining bits are used to represent the make-up code and the terminating code, respectively, as identification codes from the terminating code, and run lengths whose length is within n-1 bits are transmitted only by the count output of the first counter. At the same time, a run length of n bits or more is transmitted by adding the count output of the first counter after the count output of the second counter. Encoding method.
JP14378785A 1985-06-29 1985-06-29 Coding system Pending JPS625732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14378785A JPS625732A (en) 1985-06-29 1985-06-29 Coding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14378785A JPS625732A (en) 1985-06-29 1985-06-29 Coding system

Publications (1)

Publication Number Publication Date
JPS625732A true JPS625732A (en) 1987-01-12

Family

ID=15346985

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14378785A Pending JPS625732A (en) 1985-06-29 1985-06-29 Coding system

Country Status (1)

Country Link
JP (1) JPS625732A (en)

Similar Documents

Publication Publication Date Title
JP2771369B2 (en) Audio encoding / decoding device
US4679094A (en) Method for compression and transmission of video information
EP0138080A2 (en) Communication system using variable length character code and coding method
JPH07170196A (en) Coding decoding circuit for binary symbol
JPS625732A (en) Coding system
JPH033440B2 (en)
JPH027229B2 (en)
JPH06339131A (en) Coding transmission equipment
JP3010631B2 (en) Run-length coding
JP3076070B2 (en) Encoded data transmission device
JP2907428B2 (en) Data converter
JPH02134980A (en) Device for thinning stored facsimile code
KR900004960B1 (en) Telephone system of still picture receiver and trasmition
JPS6028374A (en) Coder and decoder
JPH0260373A (en) Encoding circuit for facsimile equipment
JPS62198973A (en) Image data converting device
JPS5926691Y2 (en) Facsimile signal transmission equipment
JP2718095B2 (en) Parity check method
JP2611961B2 (en) Image data compression transmission method
JPS592485A (en) Picture reader
JPH04233375A (en) Decoding device
JPH01202069A (en) Compression system for binary document image data
JPH09307512A (en) Data transmission method and device
JPH0270128A (en) Transmitter for variable length encoding signal
JPS63184481A (en) Facsimile equipment