JPH0492515A - Modified huffman decoding system - Google Patents

Modified huffman decoding system

Info

Publication number
JPH0492515A
JPH0492515A JP21068390A JP21068390A JPH0492515A JP H0492515 A JPH0492515 A JP H0492515A JP 21068390 A JP21068390 A JP 21068390A JP 21068390 A JP21068390 A JP 21068390A JP H0492515 A JPH0492515 A JP H0492515A
Authority
JP
Japan
Prior art keywords
buffer
contents
bits
detected
error
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
JP21068390A
Other languages
Japanese (ja)
Inventor
Hiroki Uchiyama
博喜 内山
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP21068390A priority Critical patent/JPH0492515A/en
Publication of JPH0492515A publication Critical patent/JPH0492515A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the quantity of omitted information by utilizing the normal information even to a line where an error is detected by performing the comparison of contents between the 1st and 2nd buffers if an error is detected in the contents of the 2nd buffer. CONSTITUTION:The subsequent bits are continuously stored until a 2nd buffer line termination code after the information on a single line is stored in a 1st buffer. Then the contents of the 1st and 2nd buffer are continuously compared with each other until an error is detected in the contents of the 2nd buffer. When the coincidence is secured between the contents of both buffers, the contents of the 1st buffer substitute for those of the 2nd buffer. If no coincidence of contents is obtained between both buffers, the line information is regenerated with the bits needed for detection of the error of the contents of the 2nd buffer. That is, the bits needed for occurrence of a bit error in a single line are effectively used. Thus the quantity of omitted information (number of omitted bits in a single line) is reduced.

Description

【発明の詳細な説明】 抜術公立 本発明は、モディファイドハフマン復号化方式に関し、
より詳細には、ファクシミリ伝送におけるランレングス
モディファイドハフマン(RunLength Mod
ified Huffman ; RL−MH)復号方
式に関する。例えば、画像の圧縮・伸長方式に適用され
るものである。
[Detailed Description of the Invention] The present invention relates to a modified Huffman decoding method,
More specifically, RunLength Mod Huffman (RunLength Mod
Huffman; RL-MH) decoding method. For example, it is applied to image compression/expansion methods.

血米技生 G3ファクシミリでは、画情報を1ライン毎に圧縮し伝
送するためにMH(モディファイドハフマン)符号化が
使用されている。実際には、1ライン毎に白、黒の順に
連続する白画素、黒画素の数をカウントし、この数をM
H符号化して伝送するR L −M H符号化が用いら
れている。一般に、符号化してないディジタル画像が伝
送中にエラーを起こしてもその部分にとどまるが、符号
化した場合には与える影響が大きく、そのためエラーの
検出やエラーが発生した場合の対処の方法が取られてい
る。
The G3 facsimile uses MH (Modified Huffman) encoding to compress and transmit image information line by line. In reality, the number of consecutive white pixels and black pixels is counted in the order of white and black for each line, and this number is M
R L -M H encoding, in which the information is H encoded and transmitted, is used. In general, if an unencoded digital image causes an error during transmission, it will remain in that part, but if it is encoded, the impact will be greater, and therefore there will be no way to detect errors or deal with errors when they occur. It is being

エラーの検出は、 1、ラインのデコードデータのビット数が規定のビット
数になっているか。(A ; 1728ビツト、B;2
048ビツト) 2、メークアップコードが連続してきていないか。
Error detection is as follows: 1. Is the number of bits of the line decoded data equal to the specified number of bits? (A; 1728 bits, B; 2
048 bits) 2. Are the makeup codes consecutive?

3、コードテーブルにないデータを受けていないか。3. Are you receiving data that is not in the code table?

4、メークアップコードの次のE OL (End o
fLine )を受けていないか。
4. Next EOL of makeup code (End o
fLine).

で判断される。will be judged.

又、エラーが発生した場合の対処は、EOLが検出され
、次のEOLが検出されるまでの間のビット列に対し、
上記1〜4が該当していれば、前ラインで置換する処理
がとられる。また、EOLが所定時間検出されなければ
、モデム自体が処理を中断する。
In addition, what to do when an error occurs is to change the bit string between the time EOL is detected and the next EOL is detected.
If 1 to 4 above apply, a process of replacing with the previous line is performed. Furthermore, if EOL is not detected for a predetermined period of time, the modem itself interrupts processing.

したがって、たとえ、1ビツトのエラーであっても、1
ラインが再生されず、そのエラービットの位置が1ライ
ンの後ろの方であっても、前ラインの置換という処理が
とられ情報の欠落が多かった。
Therefore, even if there is a 1-bit error, 1
Even if a line is not reproduced and the position of the error bit is one line later, processing is performed to replace the previous line, resulting in many missing pieces of information.

一作一一」η 本発明は、上述のごとき実情に鑑みてなされたもので、
誤りの検出されたラインに対しても、できる限り、正常
な情報を活用することで、情報の欠落を低減しようとす
るモディファイドハフマン復号化方式を提供することを
目的としてなされたものである。
The present invention was made in view of the above-mentioned circumstances.
The purpose of this is to provide a modified Huffman decoding method that attempts to reduce missing information by utilizing as much normal information as possible even for lines where errors have been detected.

五目 本発明は、上記目的を達成するために、(1)ファクシ
ミリ通信に用いるランレングスモディファイドハフマン
符号化方式の復号化方式において、2つのライン情報蓄
積手段と、ライン毎の誤り検出手段と、前記2ライン情
報の比較手段とを有し、ライン終端符号が検出されて、
1ライン情報が第1のバッファに格納された後に、後続
のビットを第2のバッファにライン終端符号が検出され
るまで格納し、該第2のバッファの内容に誤りが検出さ
れた場合に、誤りが検出されるまでの第2のバッファの
内容と第1のバッファの内容とを比較し、両バッファの
内容が同じである時には、第2のバッファを第1のバッ
ファの内容で代用し、同じでない時には、前記第2のバ
ッファの内容を誤りが検出されるまでのビットでライン
情報を再現すること、更には、(2)前記(1)におい
て、誤りの検出された第2のバッファの内容と第1のバ
ッファの内容とを比較する際に、前記第2のバッファの
誤りが検出されるまでのビット数が、所定のビット数よ
り小さい時には、前記第2のバッファの内容を第1のバ
ッファで置き換えること、更には、(3)前記(1)又
は(2)において、第2のバッファの誤りが検出される
までのビットと第1のバッファの対応するビットとの、
排他的論理和の合計を計算し、これが所定の閾値より小
さい時には、前記第2のバッファの内容を第1のバッフ
ァの内容で置き換えて用い、前記閾値より大きt)時に
は、前記第2のバッファの八りが検出されるまでのビッ
トでラインを形成すること、(4)前記(1)、(2)
又は(3)において、第2のノベソファの誤りが検出さ
れるまでのビット数が第1のバッファのビット数より大
きい時は、第1のノくソファのビット数で比較をするこ
と、更には、(5)前記(1)、(2)、(3)又は(
4)において、第2のバッファの誤りが検出されるまで
のビットを使用する際に、それ以降のビットに第1のバ
ッファの相当するビットを代用することを特徴としたも
のである。以下、本発明の実施例に基づいて説明する。
Fifth aspect: In order to achieve the above object, the present invention provides (1) a decoding system for a run-length modified Huffman encoding system used for facsimile communication, which includes two line information storage means, an error detection means for each line, and the 2 line information comparison means, the line end code is detected,
After one line information is stored in the first buffer, subsequent bits are stored in the second buffer until a line termination code is detected, and if an error is detected in the contents of the second buffer, Compare the contents of the second buffer and the contents of the first buffer until the error is detected, and if the contents of both buffers are the same, substitute the contents of the first buffer for the second buffer, If they are not the same, the line information is reproduced from the contents of the second buffer using the bits up until the error is detected; When comparing the contents of the second buffer with the contents of the first buffer, if the number of bits until an error is detected in the second buffer is smaller than the predetermined number of bits, the contents of the second buffer are compared with the contents of the first buffer. (3) In (1) or (2) above, replacing the bits of the second buffer until the error is detected with the corresponding bits of the first buffer,
Calculating the sum of exclusive ORs, when the sum is less than a predetermined threshold, the content of the second buffer is replaced with the content of the first buffer, and when it is greater than the threshold, the content of the second buffer is used. (4) forming a line with the bits until an error is detected; (4) the above (1) and (2);
Or, in (3), when the number of bits until an error is detected in the second buffer is larger than the number of bits in the first buffer, the comparison is performed using the number of bits in the first buffer; , (5) (1), (2), (3) or (
4) is characterized in that when using the bits of the second buffer until an error is detected, the corresponding bits of the first buffer are substituted for the subsequent bits. Hereinafter, the present invention will be explained based on examples.

第1図は、本発明によるモディファイドハフマン復号化
方式の一実施例を説明するための構成図で、図中、1は
符号表引き部、2は第2(B、)バッファ部、3は判定
部、4は比較部、5は補間部、6は1ライン情報部、7
は第1(B1)バッファ部である。
FIG. 1 is a block diagram for explaining an embodiment of the modified Huffman decoding method according to the present invention. In the figure, 1 is a code table extraction section, 2 is a second (B,) buffer section, and 3 is a judgment block. 4 is a comparison section, 5 is an interpolation section, 6 is a 1-line information section, 7
is the first (B1) buffer section.

まず、入力ビット系列が1項次、符号表引き部1のM 
Hの符号表によって、白、黒画素の顧に対応したコード
表に従って画素数が復号される。例えば、第2図で示す
ように” 0111 ”なら、白画素が■つ続くことを
意味しており、その次に” 011 ”なら黒画素が困
つ続くことを意味しティる。以上のようにして、EOL
(End of l、jne)が検出されるまで828
277部2には白黒画素数に対応したビット数で埋めら
れる。すなわち、ここで、白が匡つの時はII OII
を、その数だけ、黒が囚の時は′″]−″をその数だけ
B、バッファ部2に格納している。
First, if the input bit sequence is 1st order, M
The number of pixels is decoded according to a code table corresponding to white and black pixels using the H code table. For example, as shown in FIG. 2, "0111" means that there are two consecutive white pixels, and then "011" means that there are many consecutive black pixels. As above, EOL
828 until (End of l, jne) is detected
277 part 2 is filled with the number of bits corresponding to the number of black and white pixels. That is, here, when white is correct, II OII
, and when black is the prisoner, the corresponding number of ``'']-'' is stored in the buffer section 2 of B.

次に、B2バッファの内容が判定部3で、正しい内容か
否かの判定をされる。この時の判定条件は、従来技術で
述へたエラーの検出1〜4である。
Next, the determination unit 3 determines whether or not the contents of the B2 buffer are correct. The determination conditions at this time are error detections 1 to 4 described in the prior art.

正しい時には、図中の■のルートを通って1ライン情報
として828277部2の内容が出力され、かつB、バ
ッファ部7の内容が828277部2の内容で置き換え
られる。
When it is correct, the contents of the 828277 part 2 are outputted as one line information through the route (■) in the figure, and the contents of the B, buffer part 7 are replaced with the contents of the 828277 part 2.

判定の結果正しくない時は、B1バッファ部7との比較
が行なわれる。第3図に示すように、828277部2
の内容はE OLが検出されるまで蓄えられるが、この
時図中A点までのnビットは、正確にコード表から引け
たものとする。このビット数nが所定の閾値thnより
小さい時にはB1バッファ部7の内容を828277部
2の内容として出力する。nが閾値thnより大きい時
は、B 2/<ソファ部2のnビットとB1バッファ部
7のnビットとの排他的論理和(EXOR)の合計量を
求める。第3図の例では、n=16であり、m=3であ
る。このmを閾値T I−I mと比較し、m〈T H
mのときは、828277部2の内容をB1バッファ部
7の内容で置き換え、m≧THmのときは、82827
7部2の内容を用いる。なお、ここでnビット以降のデ
ータには0を用いるか、又はB1バッファ部7のnビッ
ト以降を用いる。第3図の例で閾値T Hm = 2と
すれば、nビットまでは828277部2の内容を用い
、それ以降は、例えば、B□バッファ部7の内容を用い
る。この様子を第4図に示す。またnビットが1ライン
のビット数(A4なら1728ビツト)より大きい時は
、1ラインのビット数を対象とする。
If the result of the determination is incorrect, a comparison with the B1 buffer section 7 is performed. As shown in Figure 3, 828277 part 2
The contents of are stored until EOL is detected, but at this time it is assumed that the n bits up to point A in the figure can be accurately subtracted from the code table. When the number of bits n is smaller than a predetermined threshold thn, the contents of the B1 buffer section 7 are output as the contents of the 828277 section 2. When n is larger than the threshold thn, the total amount of exclusive OR (EXOR) of B2/<n bits of the sofa section 2 and n bits of the B1 buffer section 7 is determined. In the example of FIG. 3, n=16 and m=3. This m is compared with the threshold T I-I m, and m〈TH
When m, the contents of 828277 section 2 are replaced with the contents of B1 buffer section 7, and when m≧THm, 82827 section 2 is replaced with the contents of B1 buffer section 7.
Use the contents of Part 7, Part 2. Note that here, 0 is used for the data after the n bit, or the data after the n bit of the B1 buffer unit 7 is used. In the example of FIG. 3, if the threshold value T Hm = 2, the contents of the 828277 section 2 are used up to n bits, and the contents of the B□ buffer section 7 are used thereafter, for example. This situation is shown in FIG. Furthermore, when n bits is larger than the number of bits in one line (1728 bits in case of A4), the number of bits in one line is targeted.

処−一末 以上の説明から明らなように、本発明によると、1ライ
ン中にビットエラーが生した場合に、ビットエラーが生
じるまでのピントを有効に用いることで、情報の欠落(
1ライン内のビット欠落)を軽減することができる。ま
た、1ライン中のビットエラーが生じるまでのビット数
に対応して処理を変えることで、欠落ビットの軽減が計
れる。
Processing - Conclusion As is clear from the above description, according to the present invention, when a bit error occurs in one line, by effectively using the focus until the bit error occurs, missing information (
(bit loss within one line) can be reduced. Further, by changing the processing according to the number of bits until a bit error occurs in one line, it is possible to reduce the number of missing bits.

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

第1図は、本発明によるモディファイドハフマンの復号
化方式の一実施例を説明するための構成図、第2図は、
復号化された信号を示す図、第3図は、第2 (B2)
バッファ部及び第1 (B、)バッファ部の内容を示す
図、第4図は、第1 (B1)バッファ部と第2 (B
2)バッファ部の内容を用いる場合を示す図である。 1・・・符号表引き部、2・・・第2(B2)バッファ
部、3・・・判定部、4・・・比較部、5・・・補間部
、6・・・1うイン情報部、 7・・・第1(B□)バッファ部。
FIG. 1 is a block diagram for explaining an embodiment of the modified Huffman decoding method according to the present invention, and FIG.
A diagram showing the decoded signal, FIG. 3 is the second (B2)
FIG. 4 is a diagram showing the contents of the buffer section and the first (B) buffer section.
2) It is a diagram showing a case where the contents of the buffer section are used. DESCRIPTION OF SYMBOLS 1... Code table extraction part, 2... 2nd (B2) buffer part, 3... Judgment part, 4... Comparison part, 5... Interpolation part, 6... 1 back information Part 7... First (B□) buffer part.

Claims (1)

【特許請求の範囲】 1、ファクシミリ通信に用いるランレングスモディファ
イドハフマン符号化方式の復号化方式におぃて、2つの
ライン情報蓄積手段と、ライン毎の誤り検出手段と、前
記2ライン情報の比較手段とを有し、ライン終端符号が
検出されて、1ライン情報が第1のバッファに格納され
た後に、後続のビットを第2のバッファにライン終端符
号が検出されるまで格納し、該第2のバッファの内容に
誤りが検出された場合に、誤りが検出されるまでの第2
のバッファの内容と第1のバッファの内容とを比較し、
両バッファの内容が同じである時には、前記第2のバッ
ファを第1のバッファの内容で代用し、同じでない時に
は、前記第2のバッファの内容を誤りが検出されるまで
のビットでライン情報を再現することを特徴とするモデ
ィファイドハフマン復号化方式。 2、誤りの検出された第2のバッファの内容と第1のバ
ッファの内容とを比較する際に、前記第2のバッファの
誤りが検出されるまでのビット数が、所定のビット数よ
り小さい時には、前記第2のバッファの内容を第1のバ
ッファで置き換えることを特徴とする請求項1記載のモ
ディファイドハフマン復号化方式。 3、第2のバッファの誤りが検出されるまでのビットと
第1のバッファの対応するビットとの排他的論理和の合
計を計算し、これが所定の閾値より小さい時には、前記
第2のバッファの内容を第1のバッファの内容で置き換
えて用い、前記閾値より大きい時には、前記第2のバッ
ファの誤りが検出されるまでのビットでラインを形成す
ることを特徴とする請求項1又は2記載のモディファイ
ドハフマン復号化方式。 4、第2のバッファの誤りが検出されるまでのビット数
が第1のバッファのビット数より大きい時は、第1のバ
ッファのビット数で比較をすることを特徴とする請求項
1,2又は3記載のモディファイドハフマン復号化方式
。 5、第2のバッファの誤りが検出されるまでのビットを
使用する際に、それ以降のビットに第1のバッファの相
当するビットを代用することを特徴とする請求項1,2
,3又は4記載のモディファイドハフマン復号化方式。
[Claims] 1. Comparison of two line information storage means, error detection means for each line, and the two line information in a decoding method of a run-length modified Huffman encoding method used for facsimile communication. means for storing subsequent bits in the second buffer until the end-of-line code is detected after the end-of-line code is detected and one line information is stored in the first buffer; If an error is detected in the contents of the second buffer, the second buffer until the error is detected.
Compare the contents of the buffer with the contents of the first buffer,
When the contents of both buffers are the same, the contents of the first buffer are substituted for the second buffer, and when they are not the same, the contents of the second buffer are used as line information with the bits up to when an error is detected. Modified Huffman decoding method characterized by reproduction. 2. When comparing the contents of the second buffer in which an error has been detected and the contents of the first buffer, the number of bits until an error is detected in the second buffer is smaller than a predetermined number of bits. The modified Huffman decoding system of claim 1, wherein the contents of the second buffer are sometimes replaced by the first buffer. 3. Calculate the sum of the exclusive ORs of the bits in the second buffer until an error is detected and the corresponding bits in the first buffer, and when this is smaller than a predetermined threshold, 3. A line according to claim 1 or 2, characterized in that the content is replaced with the content of the first buffer, and when the content is greater than the threshold value, a line is formed with the bits up to when an error in the second buffer is detected. Modified Huffman decoding method. 4. When the number of bits until an error is detected in the second buffer is greater than the number of bits in the first buffer, the comparison is performed using the number of bits in the first buffer. or the modified Huffman decoding method described in 3. 5. Claims 1 and 2 characterized in that when using the bits of the second buffer until an error is detected, the corresponding bits of the first buffer are substituted for subsequent bits.
, 3 or 4.
JP21068390A 1990-08-08 1990-08-08 Modified huffman decoding system Pending JPH0492515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21068390A JPH0492515A (en) 1990-08-08 1990-08-08 Modified huffman decoding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21068390A JPH0492515A (en) 1990-08-08 1990-08-08 Modified huffman decoding system

Publications (1)

Publication Number Publication Date
JPH0492515A true JPH0492515A (en) 1992-03-25

Family

ID=16593382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21068390A Pending JPH0492515A (en) 1990-08-08 1990-08-08 Modified huffman decoding system

Country Status (1)

Country Link
JP (1) JPH0492515A (en)

Similar Documents

Publication Publication Date Title
US4245257A (en) Transmission method and system for facsimile signal
US5070503A (en) Digital information transmitting and receiving system
US4258392A (en) Coding method for facsimile signal
US5381422A (en) Device for correcting code error
CN101228793B (en) Decoding device
JPH0492515A (en) Modified huffman decoding system
JP3118170B2 (en) Moving image signal encoding / decoding method and encoding / decoding device
JP3727862B2 (en) Encoded data decoding device
JPS5923514B2 (en) Two-dimensional sequential encoding method
JP2689555B2 (en) Image restoration device
JP3759413B2 (en) Receiving apparatus and receiving method for block transform encoded data
JP3135241B2 (en) Error detection and correction decoding device
JPS5859665A (en) Picture and writing transmission device
JPS6247025B2 (en)
JP3076070B2 (en) Encoded data transmission device
KR0139163B1 (en) Sync adapting apparatus applicating in a vlc process
JPH0984003A (en) Image data communication method and image data communication equipment
JP2719222B2 (en) Arithmetic coding device
JPH0440123A (en) Picture data transmitting system
JPS5863270A (en) Deciding system of picture quality
JP2718384B2 (en) Image restoration device
JPH07154796A (en) Picture communication system
JPS5927544B2 (en) Facsimile signal decoding device
JPH0492571A (en) Encoding/decoding system
JPH04129351A (en) Information transmitter using cell abort error correction system