JPS6252984B2 - - Google Patents
Info
- Publication number
- JPS6252984B2 JPS6252984B2 JP53056202A JP5620278A JPS6252984B2 JP S6252984 B2 JPS6252984 B2 JP S6252984B2 JP 53056202 A JP53056202 A JP 53056202A JP 5620278 A JP5620278 A JP 5620278A JP S6252984 B2 JPS6252984 B2 JP S6252984B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- transition
- code
- input signal
- predicted
- 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
Description
【発明の詳細な説明】
この発明はビデオ信号,音声信号などの時間的
に近い信号間の相関が強いと思われる多値デイジ
タル信号を効率のよい符号系列に変換する符号化
装置に関するものである。[Detailed Description of the Invention] The present invention relates to an encoding device that converts multilevel digital signals, such as video signals and audio signals, in which temporally close signals are likely to have a strong correlation, into an efficient code sequence. .
中間調を含む書画を走査して得られるビデオ信
号をデイジタル記録するシステムでは多値デイジ
タル信号を効率よく送信する必要がある。そこ
で、このような多値デイジタル信号を二符号化す
る場合を例にして説明する。 In a system that digitally records a video signal obtained by scanning a picture containing halftones, it is necessary to efficiently transmit a multi-value digital signal. Therefore, a case where such a multilevel digital signal is double encoded will be explained as an example.
従来、多値デイジタル信号を2値符号化する場
合、最もよく用いられる方式はレベル別ランレン
グス符号化であり、その符号化の例を第1図a〜
第1図eに示す。第1図aはレベル数を6(レベ
ル1〜レベル6)としたときの入力信号を示し、
第1図bはこの入力信号に対し、その左隣信号を
予測信号として予測変換した予測変換信号で、
“0”は予測一致を示し、“1”は予測の不一致を
示す。第1図cは第1図bの予測変換信号では予
測一致の“0”が多いので、更に第2図に示す予
測変換信号用符号例を用いて、より短かい長さの
符号系列に変換したものである。そして、受信側
では第1図cに示す符号系列の信号(符号化後の
予測変換信号)から、第1図bに示す予測変換信
号に復号することができるが、予測変換信号が
“1”の場合には予測が不一致であることがわか
るだけであるから、予測変換信号から遷移を示す
遷移符号語を送る必要がある。このため、第1図
bに示す予測変換信号の“1”が出る毎に第1図
dに示す遷移符号語を送る必要がある。そして、
第1図bに示す予測変換信号と第1図dに示す遷
移符号語とを合成し、第1図eに示す遷移符号を
送信する。したがつて、受信側ではこの第1図e
に示す遷移符号を受けて、第1図aに示す信号を
復号する。 Conventionally, when binary-encoding a multilevel digital signal, the most commonly used method is level-based run-length encoding, and examples of this encoding are shown in Figures 1a to 1.
It is shown in Figure 1e. Figure 1a shows the input signal when the number of levels is 6 (level 1 to level 6),
Fig. 1b shows a predictive conversion signal obtained by predictively converting this input signal using its left neighbor signal as a predictive signal.
“0” indicates a prediction match, and “1” indicates a prediction mismatch. In Figure 1c, the predicted conversion signal in Figure 1B has many "0s" that are prediction matches, so it is further converted to a code sequence with a shorter length using the code example for the predictive conversion signal shown in Figure 2. This is what I did. Then, on the receiving side, it is possible to decode the signal of the code sequence shown in FIG. 1c (predictive conversion signal after encoding) into the predictive conversion signal shown in FIG. In this case, it is only known that the predictions do not match, so it is necessary to send a transition code word indicating a transition from the prediction conversion signal. Therefore, it is necessary to send the transition code word shown in FIG. 1d every time the predicted conversion signal shown in FIG. 1b is "1". and,
The predictive conversion signal shown in FIG. 1b and the transition code word shown in FIG. 1d are combined, and the transition code shown in FIG. 1e is transmitted. Therefore, on the receiving side, this
The signal shown in FIG. 1a is decoded by receiving the transition code shown in FIG.
なお、第3図は各レベルの予測信号に対する発
生遷移先の測定例であり、第4図は従来の遷移符
号例である。 Note that FIG. 3 shows an example of measuring the generation transition destination for each level of predicted signals, and FIG. 4 shows an example of a conventional transition code.
しかしながら、従来の符号化においては、符号
系列化後の予測変換信号を送ると共に予測変換信
号が“1”のときには遷移符号語を送らなければ
ならず、十分に遷移符号の符号長を短かくするこ
とができない。そこで、従来の符号化を詳細に検
討した結果、従来の遷移符号がそれに先だつ変化
点の変化方向の情報を十分利用していないためで
あることがわかつた。すなわち、第5図は最も近
い過去に於ける変化方向に注目し、正負方向の区
分を行なつた場合、予測不一致の際に生ずる遷移
先の測定例である。この第5図から、レベル変化
は最も近い過去における変化の方向と同一方向に
生じやすいことがわかる。 However, in conventional encoding, it is necessary to send a predictive transform signal after code sequencing and also to send a transition code word when the predictive transform signal is "1", so the code length of the transition code must be sufficiently shortened. I can't. As a result of a detailed study of conventional coding, it was found that this is because conventional transition codes do not sufficiently utilize information on the direction of change of the preceding change point. That is, FIG. 5 is an example of measuring the transition destination that occurs when predictions do not match when the direction of change in the most recent past is focused and classification is performed in positive and negative directions. From FIG. 5, it can be seen that level changes tend to occur in the same direction as the change in the most recent past.
したがつて、この発明の目的は前述の原理に基
づき、遷移符号の符号長をより短かくする符号化
装置を提供するものである。 Accordingly, an object of the present invention is to provide an encoding device that reduces the code length of a transition code based on the above-mentioned principle.
このような目的を達成するため、この発明は、
多値デイジタル信号の入力信号をレベル別ランレ
ングス符号化する装置において、現在の入力信号
に対し最も近い過去の入力信号を予測信号として
記憶する予測器と、この予測器からの予測信号に
より示される値に対し現在の入力信号により示さ
れる値が変化した方向を記憶する記憶器と、現在
の入力信号ならびに予測器からの予測信号および
記憶器からの出力信号に基づき現在の入力信号と
予測信号との差の値および変化方向を示す遷移符
号を発生する遷移符号発生器とを備えたものであ
り、以下、実施例を用いて詳細に説明する。 In order to achieve this purpose, this invention
A device for level-based run-length encoding of an input multilevel digital signal includes a predictor that stores the closest past input signal to the current input signal as a predicted signal, and a predicted signal from this predictor. a memory that stores the direction in which the value indicated by the current input signal changes with respect to the value; and a memory that stores the direction in which the value indicated by the current input signal changes; and a transition code generator that generates a transition code indicating the value of the difference and the direction of change, and will be described in detail below using examples.
第6図はこの発明に係る符号化装置の一実施例
を示すブロツク図である。同図において、(1)は左
隣り信号すなわち、現在の入力信号に対し最も近
い過去の入力信号を予測信号として記憶する予測
器、(2)は現在の入力信号により示される値と予測
信号により示される値とを比較する比較器、(3)は
予測信号により示される値に対し現在の入力信号
により示される値が変化した方向を記憶する記憶
器、(4)は予測信号符号器、(5)は読出し専用メモリ
(ROM)によつて構成した遷移信号符号器、(6)は
予測信号符号器4の出力符号と遷移信号符号器5
の出力符号を切換えて出力する符号制御器であ
る。 FIG. 6 is a block diagram showing an embodiment of the encoding device according to the present invention. In the figure, (1) is a predictor that stores the left adjacent signal, that is, the past input signal closest to the current input signal, as a predicted signal, and (2) is a predictor that stores the value indicated by the current input signal and the predicted signal. (3) is a memory that stores the direction in which the value indicated by the current input signal changes with respect to the value indicated by the predicted signal; (4) is a predicted signal encoder; (4) is a predicted signal encoder; 5) is a transition signal encoder configured with a read-only memory (ROM), and (6) is the output code of the predictive signal encoder 4 and the transition signal encoder 5.
This is a code controller that switches and outputs the output code.
次に、上記構成に係る符号化方式の動作につい
て第2図を参照して説明する。 Next, the operation of the encoding method according to the above configuration will be explained with reference to FIG. 2.
入力信号はそれぞれ予測器1,比較器2および
遷移信号符号器5に入力する。このため、予測器
1は予測信号を比較器2に出力する。したがつ
て、比較器2は現在の入力信号と予測信号との各
値を比較し、等しければ“0”シンボルを予測信
号符号器4に出力する。この予測信号符号器4は
例えば第2図に基づき“0”シンボルが一定数に
達したとき、(第2図の例では2個)“0”符号を
作成し送出する。一方、入力信号と予測信号とが
等しくなければ“1”シンボルを予測信号符号器
4に出力する。したがつて、予測信号符号器4は
第2図に示す符号を用いる場合には必ず“10”ま
たは“11”の符号を作成する。このとき、遷移信
号符号器5は、現在の入力信号,予測器1からの
予測信号および記憶器3からの出力信号に基づ
き、現在の入力信号と予測信号との差の値および
変化方向を示す遷移符号を発生し、符号制御器6
に出力する。 The input signals are input to a predictor 1, a comparator 2 and a transition signal encoder 5, respectively. For this reason, the predictor 1 outputs a predicted signal to the comparator 2. Therefore, the comparator 2 compares each value of the current input signal and the predicted signal, and if they are equal, outputs a "0" symbol to the predicted signal encoder 4. For example, when the number of "0" symbols reaches a certain number based on FIG. 2, the predictive signal encoder 4 creates (two in the example of FIG. 2) "0" codes and sends them out. On the other hand, if the input signal and the predicted signal are not equal, a "1" symbol is output to the predicted signal encoder 4. Therefore, when using the code shown in FIG. 2, the predictive signal encoder 4 always creates a code of "10" or "11". At this time, the transition signal encoder 5 indicates the value and change direction of the difference between the current input signal and the predicted signal based on the current input signal, the predicted signal from the predictor 1, and the output signal from the memory 3. Generates a transition code, code controller 6
Output to.
したがつて、符号制御器6は予測信号符号器4
からの出力信号を出力したのち、この遷移符号を
図示せぬ回線に出力符号として出力する。その
後、記憶器3の内容は新たな変化方向信号に書き
換えられる。 Therefore, the code controller 6 is the predictive signal encoder 4
After outputting the output signal from , this transition code is output as an output code to a line (not shown). Thereafter, the contents of the memory 3 are rewritten to a new change direction signal.
一方、受信側では同様に予測器,変化方向記憶
器,予測信号復号器,遷移信号復号器を備え、送
信側と逆の動作を行なうことにより受信信号を容
易に復調することができることはもちろんであ
る。 On the other hand, the receiving side is similarly equipped with a predictor, change direction memory, predicted signal decoder, and transition signal decoder, and it goes without saying that the received signal can be easily demodulated by performing the opposite operation to the transmitting side. be.
なお、第7図は第6図の遷移信号符号器5によ
る遷移符号化の例を示し、遷移確率から遷移符号
を作成する方法は既知の高効率な手法によつてい
る。そして、この発明による符号化の例を第8図
a〜第8図hに示す。この場合、第8図a〜第8
図eは第1図a〜第1図eにそれぞれ対応するも
のであり、第8図eに示す遷移符号を第6図に示
す符号化により、更にその符号長を短かくするも
のである。第8図fは第8図aに示す入力信号に
対し、最も近い過去における変化の方向を示す図
であり、第8図gは第7図の符号を採用した場
合、第8図bに示す予測変換信号において、
“1”のシンボルが出現する毎に送る必要がある
遷移符号語を示す図であり、第8図hのとおり第
8図cに示す符号系列化後の予測変換信号と第8
図gに示す遷移符号信号とを合成し送信する。し
たがつて、受信側ではこの第8図hに示す二値符
号を受信し、第8図aに示す信号を再現する。 Note that FIG. 7 shows an example of transition encoding by the transition signal encoder 5 of FIG. 6, and the method of creating transition codes from transition probabilities is based on a known highly efficient method. Examples of encoding according to the present invention are shown in FIGS. 8a to 8h. In this case, Figures 8a to 8
FIG. 1e corresponds to FIGS. 1a to 1e, respectively, and the transition code shown in FIG. 8e is encoded as shown in FIG. 6 to further shorten the code length. FIG. 8f is a diagram showing the direction of change in the most recent past for the input signal shown in FIG. 8a, and FIG. 8g is a diagram showing the direction of change in the input signal shown in FIG. In the predicted transformed signal,
8 is a diagram showing a transition code word that needs to be sent every time a symbol of “1” appears, and as shown in FIG.
The transition code signal shown in Fig. g is combined and transmitted. Therefore, the receiving side receives the binary code shown in FIG. 8h and reproduces the signal shown in FIG. 8a.
なお、第8図hに示す二値符号系列は第1図e
に示す遷移符号系列より短かくなつていることが
明らかである。 The binary code sequence shown in Fig. 8h is shown in Fig. 1e.
It is clear that the transition code sequence is shorter than the transition code sequence shown in .
以上、詳細に説明したように、この発明に係る
符号化装置によれば最も近い過去における変化方
向を記憶することにより、遷移符号の符号長を短
かくすることができ、中間調を含む書画信号,オ
ーデイオ信号のデイジタル伝送における伝送時間
の短縮に大きな効果がある。 As described above in detail, according to the encoding device according to the present invention, by storing the direction of change in the most recent past, the code length of the transition code can be shortened, and the writing/picture signal including halftones can be shortened. , which has a great effect on reducing the transmission time in digital transmission of audio signals.
第1図a〜第1図eは従来の符号化を説明する
ための図、第2図は予測変換信号用符号例を示す
図、第3図は遷移先の測定例を示す図、第4図は
従来の遷移符号例を示す図、第5図は直前の変化
方向も考慮した測定例を示す図、第6図はこの発
明に係る符号化装置の一実施例を示すブロツク
図、第7図は第6図に用いられる遷移符号例を示
す図、第8図a〜第8図hは第6図による符号化
を示す図である。
1……予測器、2……比較器、3……記憶器、
4……予測信号符号器、5……遷移信号符号器、
6……符号制御器。なお、図中同一符号は同一ま
たは相当部分を示す。
Figures 1a to 1e are diagrams for explaining conventional encoding, Figure 2 is a diagram showing an example of a predictive conversion signal code, Figure 3 is a diagram showing an example of measurement of a transition destination, and Figure 4 5 is a diagram showing an example of a conventional transition code, FIG. 5 is a diagram showing an example of measurement that also takes into account the direction of the immediately preceding change, FIG. 6 is a block diagram showing an embodiment of the encoding device according to the present invention, and FIG. This figure is a diagram showing an example of the transition code used in FIG. 6, and FIGS. 8a to 8h are diagrams showing encoding according to FIG. 6. 1...Predictor, 2...Comparator, 3...Memory device,
4... Prediction signal encoder, 5... Transition signal encoder,
6...Sign controller. Note that the same reference numerals in the figures indicate the same or corresponding parts.
Claims (1)
ンレングス符号化する装置において、現在の入力
信号に対し最も近い過去の入力信号を予測信号と
して記憶する予測器と、該予測器からの予測信号
により示される値に対し前記現在の入力信号によ
り示される値が変化した方向を記憶する記憶器
と、前記現在の入力信号ならびに予測器からの予
測信号および前記記憶器からの出力信号に基づき
前記現在の入力信号と予測信号との差の値および
変化方向を示す遷移符号を発生する遷移符号発生
器とを備えたことを特徴とする符号化装置。 2 前記遷移信号符号器を読出し専用メモリによ
り構成したことを特徴とする特許請求の範囲第1
項記載の符号化装置。[Claims] 1. A device for level-based run-length encoding of an input signal of a multilevel digital signal, comprising: a predictor that stores a past input signal closest to a current input signal as a prediction signal; a memory for storing the direction in which the value indicated by the current input signal has changed with respect to the value indicated by the predicted signal from the predictor; and the current input signal, a predicted signal from the predictor, and an output signal from the memory. and a transition code generator that generates a transition code indicating the value and direction of change of the difference between the current input signal and the predicted signal based on the current input signal and the predicted signal. 2. Claim 1, characterized in that the transition signal encoder is constituted by a read-only memory.
Encoding device described in Section 2.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5620278A JPS54147719A (en) | 1978-05-11 | 1978-05-11 | Coder |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5620278A JPS54147719A (en) | 1978-05-11 | 1978-05-11 | Coder |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS54147719A JPS54147719A (en) | 1979-11-19 |
| JPS6252984B2 true JPS6252984B2 (en) | 1987-11-09 |
Family
ID=13020522
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5620278A Granted JPS54147719A (en) | 1978-05-11 | 1978-05-11 | Coder |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS54147719A (en) |
-
1978
- 1978-05-11 JP JP5620278A patent/JPS54147719A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS54147719A (en) | 1979-11-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0279799B1 (en) | Method and means for variable length coding | |
| KR890013903A (en) | Decoding device | |
| JPH02125597A (en) | Method of coding color-video signal and coding circuit | |
| WO1998020680A1 (en) | Image encoder and image decoder | |
| JPS6043703B2 (en) | Binary signal facsimile data compression method | |
| EP0105604B1 (en) | A dual mode encoding/decoding technique for use in a digital transmission system | |
| JPH0424907B2 (en) | ||
| JP4179638B2 (en) | Arithmetic encoding / decoding of digital information signals | |
| JPS6252984B2 (en) | ||
| US5453789A (en) | Moving-image signal encoding apparatus | |
| JPS6247010B2 (en) | ||
| JPS62108663A (en) | Entropy recording system | |
| JPS6214134B2 (en) | ||
| US20060015795A1 (en) | Audio data processor | |
| KR970025160A (en) | Compatible video encoder | |
| JPH0214830B2 (en) | ||
| KR960006601A (en) | Method and apparatus for encoding / decoding of image signal by bit division | |
| JPH0134420B2 (en) | ||
| JPS63209236A (en) | Adaptive quantizer | |
| JPH03140064A (en) | Dithered image encoding method | |
| KR900007216A (en) | How to reduce redundancy of facsimile halftone image coding | |
| JPH04213988A (en) | Transmission coder | |
| JPH09130595A (en) | Facsimile transmission control method and resolution conversion method for mh coding data | |
| JPH0123972B2 (en) | ||
| JPH0311716B2 (en) |