JPH04245778A - Decoding device - Google Patents

Decoding device

Info

Publication number
JPH04245778A
JPH04245778A JP1072891A JP1072891A JPH04245778A JP H04245778 A JPH04245778 A JP H04245778A JP 1072891 A JP1072891 A JP 1072891A JP 1072891 A JP1072891 A JP 1072891A JP H04245778 A JPH04245778 A JP H04245778A
Authority
JP
Japan
Prior art keywords
register
data
code
bits
bit
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
JP1072891A
Other languages
Japanese (ja)
Inventor
Hideyuki Shirai
白井 秀行
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.)
Panasonic System Solutions Japan Co Ltd
Original Assignee
Matsushita Graphic Communication Systems Inc
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 Matsushita Graphic Communication Systems Inc filed Critical Matsushita Graphic Communication Systems Inc
Priority to JP1072891A priority Critical patent/JPH04245778A/en
Publication of JPH04245778A publication Critical patent/JPH04245778A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To offer a decoding device capable of rapidly processing the decoding operation of code data in which the number of significant code bits and an inserting position are not determined. CONSTITUTION:A shift register 11 for storing input code data and a shift register 12 for storing data transferred from the register 11 are arranged, a code analyzing part 20 analyzes the decoding mode of data stored in the register 12, and a shift/transfer control part 30 segments and transfers the data stored in the register 11 only by filling a data blank part with data in the register 12, so that decoding operation can rapidly be processed.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、ファクシミリの画像復
元等に用いられるに復号化装置関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a decoding device used for facsimile image restoration and the like.

【0002】0002

【従来の技術】従来この種の装置は、図6に示すように
、1ワード分ずつ切り出されて並列に入力される符号デ
ータを1ビットずつ直列に出力する並列/直列変換部1
と、この並列/直列変換部1から1ビットずつ出力され
てくる符号データによって復号モード決定のための符号
解析処理を行なう符号解析部2とを有し、この符号解析
部2の解析結果と参照ライン画像データの変化点検出結
果とに基づいて復元画像データを描画させることが行な
われていた(たとえば、特開昭53−105930号公
報参照)。
2. Description of the Related Art Conventionally, as shown in FIG. 6, a device of this type has a parallel/serial converter 1 which serially outputs code data bit by bit, which is cut out word by word and inputted in parallel.
and a code analysis unit 2 that performs code analysis processing for determining a decoding mode using the code data output bit by bit from the parallel/serial conversion unit 1, and uses the analysis results of this code analysis unit 2 and reference. Restored image data has been drawn based on the detection results of change points in line image data (see, for example, Japanese Patent Laid-Open No. 105930/1983).

【0003】0003

【発明が解決しようとする課題】しかし、かかる構成に
よれば、復号の処理速度が遅くなるという問題があった
。上述の問題は以下の理由で生じる。
[Problems to be Solved by the Invention] However, this configuration has a problem in that the decoding processing speed becomes slow. The above problem arises for the following reasons.

【0004】すなわち、たとえばMH符号方式あるいは
MR符号方式において復号モードを示す有意符号は、そ
のビット数が定まっていない。たとえば、パスモードを
示す符号は「1000」の4ビットであるが、VR(3
)の復号モードを示す符号は「1100000」の7ビ
ットである。また、VL(1)の符号モードを示す符号
は「010」の3ビットである。しかも、これらの有意
符号はワード内での挿入位置も定まっていない。このよ
うに、ビット数および挿入位置が定まっていない有意符
号を判定するために、従来においては、並列/直列変換
されたビットデータ列を1ビットずつシフトさせながら
符号解析部2に与えるとともに、その1ビットのシフト
ごとに符号解析の処理を行なわせていた。この結果、1
回の解析処理動作で1ビット分の符号データしか処理す
ることができず、このことが復号化処理の高速化を妨げ
ていた。
That is, for example, in the MH coding system or the MR coding system, the number of bits of the significant code indicating the decoding mode is not determined. For example, the code indicating the pass mode is 4 bits "1000", but VR (3
) is a 7-bit code indicating the decoding mode of "1100000". Further, the code indicating the code mode of VL(1) is 3 bits of "010". Moreover, the insertion positions of these significant codes within a word are not determined. In order to determine a significant code in which the number of bits and the insertion position are not determined, conventionally, the parallel/serial converted bit data string is shifted one bit at a time while being fed to the code analysis unit 2. Code analysis processing was performed for each 1-bit shift. As a result, 1
Only one bit of encoded data can be processed in one analysis operation, and this has hindered speeding up of the decoding process.

【0005】本発明は、上述の課題に鑑みてなされたも
ので、有意符号のビット数および挿入位置が定まってい
ない符号データを高速で処理できる復号化装置を提供す
ることを目的とする。
The present invention has been made in view of the above-mentioned problems, and an object of the present invention is to provide a decoding device that can process code data at high speed in which the number of bits of a significant code and the insertion position are not determined.

【0006】[0006]

【課題を解決するための手段】本発明は上述の課題を解
決するため、1ワード分ずつ切り出されて並列に転送さ
れる入力符号データを保持する第1のレジスタと、この
第1のレジスタから転送されるビットデータを3ワード
分以上保持する第2のレジスタを使用し、この第2のレ
ジスタに転送されたビットデータの中の最初に転送され
た1ワード分のビットデータによって復号モード決定の
ための符号解析処理を行なわせるとともに、符号解析の
処理が済んだデータビットを上記第2のシフトレジスタ
から直列シフトによって押出し排除し、この押出し排除
によって生じたデータ余白部分に、上記第1のレジスタ
に保持されているデータを、上記余白部分を充足させる
ビット数分だけ切り出して転送させるという構成を備え
たものである。
[Means for Solving the Problems] In order to solve the above-mentioned problems, the present invention provides a first register for holding input code data that is extracted word by word and transferred in parallel; A second register that holds three or more words of bit data to be transferred is used, and the decoding mode is determined by the first word of bit data transferred to this second register. At the same time, data bits that have undergone code analysis are pushed out and removed from the second shift register by serial shift, and data bits created by this pushing out are transferred to the first register. The data held in the memory is cut out by the number of bits that fills the blank space and transferred.

【0007】[0007]

【作用】本発明は、上述の構成によって、1回の解析処
理動作が終るごとに複数ビットの未処理符号データを新
たに解析処理にかけることができるようになるため、有
意符号のビット数および挿入位置が定まっていない符号
データを高速で処理させることが可能となる。
[Operation] With the above-described configuration, the present invention allows unprocessed code data of a plurality of bits to be newly analyzed each time one analysis processing operation is completed. It becomes possible to process code data whose insertion position is not fixed at high speed.

【0008】[0008]

【実施例】以下、本発明の実施例を図面を参照しながら
説明する。
Embodiments Hereinafter, embodiments of the present invention will be described with reference to the drawings.

【0009】図1は本発明の一実施例による復号化装置
の概略構成を示すものであって、11はモデム等の外部
装置から1ワード分ずつ並列に入力される入力符号デー
タを保持する第1のレジスタ、12は上記第1のレジス
タ10から並列に転送されるビットデータを3ワード分
以上保持する第2のレジスタ、20は上記第2のレジス
タが保持するビットデータの中の最初に転送された1ワ
ード分のビットデータによって復号モード決定のための
符号解析処理を行なう符号解析部、30は上記符号解析
部20による解析処理が済んだデータビットを上記第2
のシフトレジスタ12から直列シフトによって押出し排
除するとともに、この押出し排除によって生じたデータ
余白部分に、上記第1のレジスタ11に保持されている
データを、上記余白部分を充足させるビット数分だけ切
り出して並列に転送させるシフトおよび転送制御部であ
る。
FIG. 1 shows a schematic configuration of a decoding device according to an embodiment of the present invention, in which reference numeral 11 denotes a block 11 for holding input code data that is input in parallel one word at a time from an external device such as a modem. Register 1, 12 is a second register that holds three words or more of bit data transferred in parallel from the first register 10, and 20 is the first register to transfer among the bit data held by the second register. A code analysis unit 30 performs a code analysis process for determining a decoding mode using the bit data for one word, and the code analysis unit 30 uses the data bits that have been analyzed by the code analysis unit 20 to
The data held in the first register 11 is removed by serial shifting from the shift register 12 by serial shifting, and the data held in the first register 11 is cut out by the number of bits to fill the blank space. This is a shift and transfer control unit that transfers data in parallel.

【0010】ここで、第1のレジスタ11は、1ワード
分の入力符号データを保持するとともに、保持した符号
データをLSB方向(シフト列の先端側方向)とMSB
方向(シフト列の後端側方向)にそれぞれ最大1ワード
分のビット数だけシフト移動させることができるシフト
レジスタを用いて構成されている。第2のレジスタ12
は、3ワード分以上のシフト列を有するシフトレジスタ
を用いて構成され、そのシフト列の後端側に上記第1の
レジスタ11から転送される任意ビット数(ただし、1
ワード分以下)のデータがロードされるとともに、その
シフト列の先端側の1ワード分のビットデータが符号解
析部20に並列に入力されるようになっている。シフト
/転送制御部30は、上記符号解析部30の解析結果に
基づいて、第1および第2のレジスタ11,12でのシ
フト動作および第1および第2のレジスタ11,12間
でのデータ転送の制御を行なう。上述した各部11,1
2,20,30の一部もしくは全体は、たとえばマイク
ロ回路化されたコンピュータいわゆるマイコンを用いて
ソフトウェア的に構成することもできる。
[0010] Here, the first register 11 holds input code data for one word, and also divides the held code data in the LSB direction (direction toward the leading edge of the shift string) and MSB direction.
It is configured using shift registers that can shift the number of bits corresponding to a maximum of one word in each direction (toward the rear end of the shift column). second register 12
is configured using a shift register having a shift string of 3 words or more, and the arbitrary number of bits (however, 1
At the same time, one word's worth of bit data at the leading end of the shift string is input to the code analysis section 20 in parallel. The shift/transfer control unit 30 performs shift operations in the first and second registers 11 and 12 and data transfer between the first and second registers 11 and 12 based on the analysis results of the code analysis unit 30. control. Each part 11, 1 mentioned above
A part or all of 2, 20, and 30 can also be configured in software using, for example, a microcircuit computer, a so-called microcomputer.

【0011】以上のように構成された復号化装置につい
て、以下その動作を説明する。なお、以下の説明では、
理解を容易にするため、第1のレジスタ11での入力符
号データのワード長(ビット数)および符号解析部20
での入力符号データのワード長は、いずれも8ビットで
あるとして説明する。
The operation of the decoding device configured as described above will be explained below. In addition, in the following explanation,
For ease of understanding, the word length (number of bits) of the input code data in the first register 11 and the code analysis unit 20
The following description assumes that the word length of the input code data in both cases is 8 bits.

【0012】図2〜図5は上述した装置の動作を状態別
に示したものである。まず、図2は、第2のレジスタ1
2の先端側シフト列にシフト送りされてきた8ビットの
データ「XXXXXXXX」が、符号解析部20による
解析の結果、複合モードを指定する有意符号が含まれて
いなかった場合の状態を示す。この場合、その先端側シ
フト列に送られてきた8ビットのデータ「XXXXXX
XX」はシフト列先端側方向へのシフト送りによって第
2のレジスタ12から押出し排除される。これにより、
第2のレジスタ12の先端側シフト列には、押出し排除
されたデータ「XXXXXXXX」の背後に位置してい
た8ビットの未処理符号データ「00001000」が
新たにセットされて、符号解析部20での解析処理にか
けられる。このとき、図示の例では、新たに解析処理に
かけられたデータ「00001000」からパスモード
を示す4ビットの符号「1000」が判定される。一方
、上記押出し排除によって、第2のレジスタ12の後端
側には8ビット分のデータ余白部分が生じる。この余白
部分には、第1のレジスタ11に保持されている8ビッ
トのデータ「00011100」が並列転送(ロード)
されて補充される。
FIGS. 2 to 5 show the operation of the above-mentioned apparatus according to its state. First, in FIG. 2, the second register 1
The state is shown in which the 8-bit data "XXXXXXXX" shifted to the leading shift column of No. 2 does not contain a significant code specifying the composite mode as a result of analysis by the code analysis unit 20. In this case, the 8-bit data sent to the leading shift column “XXXXXX
XX'' is pushed out and removed from the second register 12 by shifting toward the front end of the shift column. This results in
The 8-bit unprocessed code data “00001000” located behind the pushed out data “XXXXXXXX” is newly set in the leading end shift column of the second register 12, and the code analysis unit 20 is subjected to analysis processing. At this time, in the illustrated example, the 4-bit code "1000" indicating the pass mode is determined from the data "00001000" that has been newly subjected to the analysis process. On the other hand, due to the above-mentioned extrusion and elimination, a data margin portion corresponding to 8 bits is generated on the rear end side of the second register 12. The 8-bit data "00011100" held in the first register 11 is transferred (loaded) in parallel to this blank space.
and replenishment.

【0013】図3は、同図2にてパスモード符号「10
00」が判定された後に引き続いて行われる動作の状態
を示す。
FIG. 3 shows the path mode code "10" in FIG.
00" is determined, and shows the state of the operation that is performed subsequently.

【0014】ここでは、解析処理の済んだ4ビットのパ
スモード符号「1000」が第2のレジスタ12からシ
フト送りによって押出し排除され、この押出し排除によ
って第2のレジスタ12の後端側に生じた4ビット分の
データ余白部分に、第1のレジスタ11からアドレス順
に4ビット分のデータ「0101」が切り出されて並列
転送される。一方、4ビットのパスモード符号「100
0」が押出された後には、背後にあった同数ビット(4
ビット)のデータ「0110」がシフト送りされて符号
解析部20の解析入力データに参加する。これにより、
図示の例では、パスモード符号「1000」が押出し排
除された後に、VR(3)の複合モードを示す7ビット
の符号「1100000」が判定される。
Here, the 4-bit pass mode code "1000" that has been analyzed is pushed out and removed from the second register 12 by shift feeding, and as a result of this pushing out, a 4-bit pass mode code "1000" is generated at the rear end side of the second register 12. Four bits of data "0101" are cut out in address order from the first register 11 in the 4-bit data margin and transferred in parallel. On the other hand, the 4-bit pass mode code “100
0” is pushed out, the same number of bits behind it (4
The data “0110” (bit) is shifted and sent to participate in the analysis input data of the code analysis unit 20. This results in
In the illustrated example, after the pass mode code "1000" is pushed out, a 7-bit code "1100000" indicating the composite mode of VR(3) is determined.

【0015】図4と図5は、図3にてVR(3)モード
符号「1100000」が判定された後に引続いて行わ
れる動作の状態を示す。
FIGS. 4 and 5 show the state of the operation that continues after the VR(3) mode code "1100000" is determined in FIG. 3.

【0016】上述の場合と同様、解析処理の済んだ7ビ
ットのVR(3)モード符号「1100000」が第2
のレジスタ12からソフト送りによって押出し排除され
、この押出し排除によって第2のレジスタ12の後端側
に生じた7ビット分のデータ余白部分に、第1のレジス
タ11から7ビット分のデータが切り出されて並列転送
される。この場合、第1のレジスタ11では、前回の動
作にて、1ワード(8ビット)分あったデータのうち、
すでに4ビット分が切り出されている。したがって、こ
の場合は、図4と図5に分けて示すように、残っていた
4ビット分のデータ「1001」と、次に入力されてく
る1ワード分のに符号データ「00111010」から
切り出される3ビット分のデータ「010」とが、上記
7ビットの余白部分にアドレス順に転送される。一方、
7ビットのパスモード符号「1100000」が位置し
ていたシフト列先端側には、背後にあった同数ビット(
7ビット)のデータ「10000010」がシフト送り
されて符号解析部20の解析入力データに参加する。図
示の例では、VR(3モード符号「1100000」が
押出し排除された後にて、VL(1)の復号モードを示
す3ビットの符号「010」が判定される。
Similar to the above case, the 7-bit VR(3) mode code "1100000" that has been analyzed is the second one.
The 7-bit data is cut out from the first register 11 in the 7-bit data margin created at the rear end of the second register 12 by this extrusion and removal. are transferred in parallel. In this case, the first register 11 stores 1 word (8 bits) of data in the previous operation.
4 bits have already been cut out. Therefore, in this case, as shown in FIGS. 4 and 5, the remaining 4 bits of data "1001" and the next input word of code data "00111010" are extracted. The 3-bit data "010" is transferred to the 7-bit blank area in address order. on the other hand,
At the leading end of the shift column where the 7-bit pass mode code "1100000" was located, the same number of bits (
7 bits) data “10000010” is shifted and sent to participate in the analysis input data of the code analysis unit 20. In the illustrated example, after the VR (3-mode code ``1100000'' is pushed out), the 3-bit code ``010'' indicating the decoding mode of VL(1) is determined.

【0017】以上のようにして、1回の解析処理動作が
終るごとに複数ビットの未処理符号データを新たに解析
処理にかけることができる。これによって、有意符号の
ビット数および挿入位置が定まっていない符号データを
高速で処理させることができる。
As described above, each time one analysis processing operation is completed, a plurality of bits of unprocessed encoded data can be newly subjected to analysis processing. As a result, code data in which the number of bits of the significant code and the insertion position are not determined can be processed at high speed.

【0018】[0018]

【発明の効果】以上の説明から明らかなように、本発明
は、1ワード分ずつ切り出されて並列に転送される入力
符号データを保持する第1のレジスタと、この第1のレ
ジスタから転送されるビットデータを3ワード分以上保
持する第2レジスタを使用し、この第2のレジスタに転
送されたビットデータの中の最初に転送された1ワード
分のビットデータによって復号モード決定のための符号
解析処理を行なわせるとともに、符号解析の処理が済ん
だデータビットを上記第2のシフトレジスタから直列シ
フトによって押出し排除し、この押出し排除によって生
じたデータ余白部分に、上記第1のレジスタに保持され
ているデータを、上記余白部分を充足させるビット数分
だけ切り出して転送させることによって、1回の解析処
理動作が終わるごとに複数ビット未処理符号データを新
たに解析処理にかけることができるようになるため、有
意符号のビット数および挿入位置が定まっていない符号
データを高速で処理できる、という効果を有するもので
ある。
As is clear from the above description, the present invention includes a first register that holds input code data that is extracted word by word and transferred in parallel; A second register that holds three or more words of bit data is used, and a code for determining the decoding mode is determined based on the first word of bit data transferred to this second register. At the same time as performing the analysis process, the data bits that have been subjected to the code analysis process are pushed out and removed from the second shift register, and the data bits generated by this pushing out and removal are held in the first register. By cutting out and transmitting the data by the number of bits that fills the blank space, multiple bits of unprocessed encoded data can be newly analyzed each time one analysis processing operation is completed. This has the effect that code data in which the number of significant code bits and the insertion position are not determined can be processed at high speed.

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

【図1】本発明の一実施例による復号化装置の要部を示
す概略構成図
FIG. 1 is a schematic configuration diagram showing the main parts of a decoding device according to an embodiment of the present invention.

【図2】同要部の動作例を状態別に示す図[Figure 2] Diagram showing an example of the operation of the same main part by state

【図3】同要
部の動作例を状態別に示す図
[Figure 3] Diagram showing an example of the operation of the same main part by state

【図4】同要部の動作例を
状態別に示す図
[Figure 4] Diagram showing an example of the operation of the same main part by state

【図5】同要部の動作例を状態別に示す
[Figure 5] Diagram showing an example of the operation of the same main part by state

【図6】従来の復号化装置の概略構成図。FIG. 6 is a schematic configuration diagram of a conventional decoding device.

【符号の説明】[Explanation of symbols]

11  第1のレジスタ 12  第2のレジスタ 20  符号解析部 30  シフト/転送制御部 11 First register 12 Second register 20 Code analysis section 30 Shift/transfer control section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】1ワード分ずつ切り出されて並列に転送さ
れる入力符号データを保持する第1のレジスタと、この
第1のレジスタから転送されるビットデータを3ワード
分以上保持する第2のレジスタと、この第2のレジスタ
が保持するビットデータの中の最初に転送された1ワー
ド分のビットデータによって復号モード決定のための符
号解析処理を行なう符号解析手段と、この符号解析手段
による解析処理が済んだデータビットを上記第2のシフ
トレジスタから直列シフトによって押出し排除するとと
もに、この押出し排除によって生じたデータ余白部分に
、上記第1のレジスタが保持するデータを、上記余白部
分を充足させるビット数分だけ切り出して転送させる制
御手段とを備えた復号化装置。
Claims 1: A first register that holds input code data that is extracted word by word and transferred in parallel, and a second register that holds at least three words of bit data that is transferred from the first register. a register, a code analysis means that performs code analysis processing for determining a decoding mode using bit data of one word transferred first among the bit data held by the second register, and an analysis performed by the code analysis means. The processed data bits are pushed out and removed from the second shift register by serial shifting, and the data held by the first register is filled in the data margin created by this pushing out. A decoding device comprising a control means for extracting and transmitting bits corresponding to the number of bits.
JP1072891A 1991-01-31 1991-01-31 Decoding device Pending JPH04245778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1072891A JPH04245778A (en) 1991-01-31 1991-01-31 Decoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1072891A JPH04245778A (en) 1991-01-31 1991-01-31 Decoding device

Publications (1)

Publication Number Publication Date
JPH04245778A true JPH04245778A (en) 1992-09-02

Family

ID=11758356

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1072891A Pending JPH04245778A (en) 1991-01-31 1991-01-31 Decoding device

Country Status (1)

Country Link
JP (1) JPH04245778A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62146073A (en) * 1985-12-20 1987-06-30 Mitsubishi Electric Corp Expansion device for compression data
JPS63314974A (en) * 1987-06-18 1988-12-22 Matsushita Graphic Commun Syst Inc Decoding device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62146073A (en) * 1985-12-20 1987-06-30 Mitsubishi Electric Corp Expansion device for compression data
JPS63314974A (en) * 1987-06-18 1988-12-22 Matsushita Graphic Commun Syst Inc Decoding device

Similar Documents

Publication Publication Date Title
JP3137270B2 (en) Compressed image data decoding device
US6292168B1 (en) Period-based bit conversion method and apparatus for digital image processing
US4467317A (en) High-speed arithmetic compression coding using concurrent value updating
US6445314B1 (en) System and method for the decoding of variable length codes
EP0047440A1 (en) Shift circuit
US5343195A (en) Variable length codeword decoding apparatus
JPS60140981A (en) Method and device for decoding digital coded word of coded word system
JP3033353B2 (en) SONET transmission signal processing method and SONET transmission signal processing device
US4152697A (en) Parallel run-length decoder
JPH0669813A (en) Decoding device of variable-length code
JPH04245778A (en) Decoding device
JP2003526986A (en) Arithmetic decoding of arithmetically encoded information signals
US5652582A (en) Method of high speed Huffman coding and decoding of lab color images
US6301264B1 (en) Asynchronous data conversion circuit
US6734813B2 (en) Data receiving device for receiving serial data according to over-sampling
US6496602B2 (en) Sorting device of variable-length code
JP3317079B2 (en) Variable length code decoding device
JPH07101460B2 (en) Code detector
JPH021469B2 (en)
JP2590840B2 (en) Run-length encoding device
US6178496B1 (en) System for converting instructions, and method therefore
JPS59139443A (en) Code conversion system
SU935972A1 (en) Apparatus for calculating extremal values of functions
JP3032239B2 (en) Variable-length code decoding circuit
US5914678A (en) Triplet decoding circuit and triplet decoding method