Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6132867B2 - - Google Patents
[go: Go Back, main page]

JPS6132867B2 - - Google Patents

Info

Publication number
JPS6132867B2
JPS6132867B2 JP8226980A JP8226980A JPS6132867B2 JP S6132867 B2 JPS6132867 B2 JP S6132867B2 JP 8226980 A JP8226980 A JP 8226980A JP 8226980 A JP8226980 A JP 8226980A JP S6132867 B2 JPS6132867 B2 JP S6132867B2
Authority
JP
Japan
Prior art keywords
shift register
shift
bits
circuit
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.)
Expired
Application number
JP8226980A
Other languages
Japanese (ja)
Other versions
JPS579171A (en
Inventor
Shigeru Yoshida
Isao Kondo
Masakatsu Horie
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 JP8226980A priority Critical patent/JPS579171A/en
Publication of JPS579171A publication Critical patent/JPS579171A/en
Publication of JPS6132867B2 publication Critical patent/JPS6132867B2/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
    • H04N1/411Bandwidth or redundancy reduction for the transmission or storage or reproduction of two-tone pictures, e.g. black and white pictures
    • H04N1/413Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information
    • H04N1/419Systems or arrangements allowing the picture to be reproduced without loss or modification of picture-information in which encoding of the length of a succession of picture-elements of the same value along a scanning line is the only encoding step

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

【発明の詳細な説明】 本発明は圧縮データの等長化されたランレング
スから画像データを復元するためのシフトレジス
タに2nビツトのシフト機能をもたせることによ
り、復元処理時間を短縮した圧縮データ復元回路
に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides compressed data that reduces the restoration processing time by providing a shift register with a 2n- bit shift function for restoring image data from equal length run lengths of compressed data. This relates to a restoration circuit.

従来、1次元符号化または2次元符号化方式は
圧縮データから求めた等長化されたランレングス
(以下単に等長ランレングスという)を実際の画
像データに直すために、復元回路として該当する
白黒モードに従つて1ビツトずつシフトするので
シフト動作に時間がかかつた。
Conventionally, in one-dimensional or two-dimensional encoding methods, in order to convert equal-length run lengths obtained from compressed data (hereinafter simply referred to as equal-length run lengths) into actual image data, a corresponding black-and-white encoder is used as a restoration circuit. Since the bits were shifted one by one according to the mode, the shifting operation took time.

第1図は従来の復元回路の1例を示す。まず、
等長ランレングスをRLラツチ回路14にストア
するとともに、RLカウンタ16をクリアする。
次にランレングスの白黒モードに対応してフリツ
プフロツプ10により指定し、白か黒に対応する
“0”,“1”をシフトレジスタ11に等長ランレ
ングスのビツト数分つめてゆき、画像データを復
元する。次の復号走査線メモリ12は復元された
シフトレジスタ11の内容を1ライン分以上格納
しておくバツフアである。シフトレジスタ11の
ビツト数は復号走査線メモリ12の1ワードのビ
ツト数と同じに設定される。
FIG. 1 shows an example of a conventional restoration circuit. first,
The equal length run length is stored in the RL latch circuit 14, and the RL counter 16 is cleared.
Next, specify the black and white mode of the run length using the flip-flop 10, fill the shift register 11 with “0” and “1” corresponding to black or white, and then input the image data. Restore. The next decoding scanning line memory 12 is a buffer that stores the restored contents of the shift register 11 for one line or more. The number of bits in the shift register 11 is set to be the same as the number of bits in one word of the decoding scanning line memory 12.

そして、シフト数カウンタ13はシフトレジス
タ11のシフト回数をカウントし、シフトレジス
タ11が一杯になると、制御パルス発生回路17
に制御信号を送り、制御パルス発生回路17がシ
フトレジスタ11の内容を復号走査線メモリ12
に書込む。復号走査線メモリ12への書込みが終
ると、シフト数カウンタ13はクリアされる。そ
してシフトレジスタ11が再びシフトを開始する
とともに、シフト数カウンタ13はシフト数をカ
ウントする手順を繰返す。また、RLカウンタ1
6はシフトレジスタ11で復元したランレングス
のビツト数をカウントしており、このカウント数
がRLラツチ回路14の内容と一致すると、一つ
の等長ランレングスの復元が終了する。
The shift number counter 13 counts the number of shifts in the shift register 11, and when the shift register 11 is full, the control pulse generation circuit 17
The control pulse generating circuit 17 decodes the contents of the shift register 11 and sends a control signal to the scanning line memory 12.
write to. When writing to the decoding scanning line memory 12 is completed, the shift number counter 13 is cleared. Then, the shift register 11 starts shifting again, and the shift number counter 13 repeats the procedure of counting the number of shifts. Also, RL counter 1
6 counts the number of bits of the run length restored by the shift register 11, and when this count matches the contents of the RL latch circuit 14, the restoration of one equal length run length is completed.

以上説明したように、従来の復元回路では1ビ
ツトずつのシフトであるから画像データの復元時
間がかかり過ぎるという欠点があつた。
As explained above, the conventional restoration circuit has the disadvantage that it takes too much time to restore image data because it shifts one bit at a time.

本発明の目的は圧縮データの等長ランレングス
から画像データを復元するための処理時間を短縮
した圧縮データ復元回路を提供することである。
An object of the present invention is to provide a compressed data restoration circuit that reduces the processing time for restoring image data from equal length run lengths of compressed data.

前記目的を達成するため、本発明の圧縮データ
復元回路は帯域圧縮された画像データを復元して
シフトするシフトレジスタと該シフトレジスタの
内容の1ライン以上を格納する復号走査線メモリ
を具えた圧縮データ復元回路において、あらかじ
め定めた2nビツト毎のシフトと1ビツト毎のシ
フトが可能なシフトレジスタと、画像データの復
元すべきランレングスのビツト長が2nビツト以
上のときは前記シフトレジスタを2nずつシフト
させ、ランレングスのビツト長が2nビツト以下
のときは1ビツトずつのシフトを行ない、画像デ
ータがシフトレジスタに一杯になるとこれを前記
復号走査線メモリに書込むように制御する手段と
を備えたことを特徴とするものである。
To achieve the above object, the compressed data restoration circuit of the present invention comprises a shift register for restoring and shifting band-compressed image data, and a decoding scan line memory for storing one or more lines of the contents of the shift register. In the data restoration circuit, a shift register capable of shifting every 2 n bits and a shift every 1 bit determined in advance is used, and when the bit length of the run length to be restored of image data is 2 n bits or more, the shift register is used. When the bit length of the run length is less than 2 n bits, the image data is shifted by 1 bit, and when the shift register is full of image data, it is controlled to be written to the decoding scanning line memory. It is characterized by comprising means.

以下本発明を実施例につき詳述する。 The present invention will be described in detail below with reference to examples.

第2図は本発明の実施例の構成を示す説明図で
ある。
FIG. 2 is an explanatory diagram showing the configuration of an embodiment of the present invention.

同図において、フリツプフロツプ(FF)10
は復元すべきランレングスが白か黒かを記憶し対
応する“0”か“1”をシフトレジスタ21に指
定する。
In the same figure, flip-flop (FF) 10
stores whether the run length to be restored is white or black, and specifies the corresponding "0" or "1" to the shift register 21.

シフトレジスタ21は第3図に詳細な回路例を
示すように、FF10の出力を初段のシフトレジ
スタ(SR)21―1にシリアル入力で1ビツト
ずつ逐次各段SR21―2〜21―4へシフトす
る機能と、パラレル入力で2ビツトずつSR21
―2〜21―4へシフトする機能を有する。この
機能は後述の制御パルス発生回路24からの1ビ
ツトシフト信号31か、2ビツトシフト信号32
によつて選択される。さらにこれらの信号31,
32を所定クロツクと共にAND回路を通して同
期させてシフトクロツクを作りシフト動作が行な
われ、1ビツト出力または2ビツト出力として復
号走査線メモリ12に送られる。
The shift register 21, as shown in a detailed circuit example in Fig. 3, serially inputs the output of the FF10 to the first stage shift register (SR) 21-1, and shifts it one bit at a time to each stage SR21-2 to SR21-4. function, and SR21 with 2 bits each with parallel input.
-2 to 21-4. This function uses a 1-bit shift signal 31 or a 2-bit shift signal 32 from the control pulse generation circuit 24, which will be described later.
selected by. Furthermore, these signals 31,
32 is synchronized with a predetermined clock through an AND circuit to create a shift clock, a shift operation is performed, and the output is sent to the decoding scanning line memory 12 as a 1-bit or 2-bit output.

第2図に戻り、シフト数計数回路22はシフト
レジスタ21のシフト数をカウントし、RL計数
回路23は復元したランレングスのビツト数をカ
ウントする。これらの計数回路22,23は最小
桁(LSB)であるフリツプフロツプ(FF)22
―1,23―1とその上位桁のカウンタ22―
2,23―2から構成されている。この構成で、
一定クロツクをFF22―1,23―1とカウン
タ22―2,23―2に同時に入れると1つずつ
カウントし、またカウンタ22―2,23―2だ
けにクロツクを入れると2つずつカウントする。
また、FF22―1,23―1の内容によつて値
が奇数か偶数かがわかる。RLラツチ回路14は
等長ランレングスをストアしておき、比較回路1
5によりRL計数回路23の内容とを比較し一致
信号を出力する。制御パルス発生回路24は、前
述のシフト計数回路22のFF22―1とカウン
タ22―2の出力すなわち1ビツトカウントか2
ビツトカウントかの計数値と、比較回路15の一
致信号すなわちランレングスの終了信号を入力
し、シフトレジスタ21に対し1ビツトシフト信
号31と2ビツトシフト信号32を送り、復号走
査線メモリ12に対し書き込み信号33を送り、
画像データを復元するために必要な制御を行な
う。
Returning to FIG. 2, the shift number counting circuit 22 counts the number of shifts in the shift register 21, and the RL counting circuit 23 counts the number of bits of the restored run length. These counting circuits 22 and 23 have a flip-flop (FF) 22 which is the least significant digit (LSB).
-1, 23-1 and its upper digit counter 22-
It consists of 2, 23-2. With this configuration,
If a constant clock is input to the FFs 22-1, 23-1 and the counters 22-2, 23-2 at the same time, it will count one by one, and if the clock is input only to the counters 22-2, 23-2, it will count two each.
Further, it can be determined whether the value is an odd number or an even number depending on the contents of FF22-1 and FF23-1. The RL latch circuit 14 stores the equal length run length, and the comparison circuit 1
5 compares the contents with the RL counting circuit 23 and outputs a matching signal. The control pulse generation circuit 24 receives the outputs of the FF 22-1 and the counter 22-2 of the shift counting circuit 22, that is, 1 bit count or 2 bits.
The count value of the bit count and the match signal of the comparator circuit 15, that is, the end signal of the run length, are input, the 1-bit shift signal 31 and the 2-bit shift signal 32 are sent to the shift register 21, and the write signal is sent to the decoding scanning line memory 12. Send 33,
Performs necessary controls to restore image data.

以下上述の構成につき動作を説明する。 The operation of the above-mentioned configuration will be explained below.

まず、ランレングスをRLラツチ回路14にス
トアし、カウンタ23―2とFF23―1をクリ
アする。次に、比較回路15により、RLラツチ
回路14の内容のLSBを除く値とカウンタ23―
2の値を比較する。
First, the run length is stored in the RL latch circuit 14, and the counter 23-2 and FF 23-1 are cleared. Next, the comparison circuit 15 compares the value of the contents of the RL latch circuit 14 excluding the LSB and the counter 23 -
Compare the values of 2.

もし、RLラツチ回路14のLSBを除く値とカ
ウンタ23―2の値が一致しない場合には、これ
らの値が一致するまで2ビツトシフト信号32が
出力する。この2ビツト信号によつてFF10の
白黒モードに従いシフトレジスタ21に2ビツト
ずつシフトしながらつめると同時に、この2ビツ
トのシフト回数をカウンタ22―2,23―2に
よつてカウントする。この際、シフトレジスタ2
1は第3図に示す配線によりパラレル入力を用い
て画像データを2ビツトずつシフトしながら復元
し、計数回路22,23は2つずつカウントする
ことになる。
If the value excluding the LSB of the RL latch circuit 14 and the value of the counter 23-2 do not match, the 2-bit shift signal 32 is output until these values match. This 2-bit signal is used to shift and fill the shift register 21 by 2 bits in accordance with the monochrome mode of the FF 10, and at the same time, the number of shifts of these 2 bits is counted by counters 22-2 and 23-2. At this time, shift register 2
1 restores the image data by shifting it two bits at a time using parallel input through the wiring shown in FIG. 3, and the counting circuits 22 and 23 count two bits at a time.

もし、シフト数計数回路22の値がシフトレジ
スタ21のビツト数より1つ少ない値になると、
次に制御パルス発生回路24は1ビツトシフト信
号31を出す。この1ビツトシフト信号31によ
つてシフトレジスタ21はシリアル入力を用い
て、画像データを1ビツトシフトして復元し、同
時に、各計数回路22,23はFF22―1,2
3―1を含めて1つカウントする。これによつ
て、シフト数計数回路22の値はシフトレジスタ
21の値と一致する。
If the value of the shift number counting circuit 22 becomes one less than the number of bits of the shift register 21,
Next, the control pulse generating circuit 24 outputs a 1-bit shift signal 31. Using this 1-bit shift signal 31, the shift register 21 uses the serial input to shift and restore the image data by 1 bit.
Count 1 including 3-1. As a result, the value of the shift number counting circuit 22 matches the value of the shift register 21.

もし、シフト数計数回路22の値が、シフトレ
ジスタ21のビツト数になれば、次に制御パルス
発生回路24は復元走査線メモリ12に書込み信
号33を出して、シフトレジスタ21の内容を書
込む。次に書込み終了後、カウンタ22―2と
FF22―1をクリアし、最初からの動作を繰返
す。
If the value of the shift number counting circuit 22 reaches the number of bits of the shift register 21, then the control pulse generation circuit 24 outputs a write signal 33 to the restored scanning line memory 12 to write the contents of the shift register 21. . Next, after writing is completed, counter 22-2 and
Clear FF22-1 and repeat the action from the beginning.

そして、RLラツチ回路14のLSBを除く値
と、カウンタ23―2の値が一致すると、RLラ
ツチ回路14のLSBとFF23―1の値を比較
し、この両方が一致すればランレングスの復元が
終了する。もし一致していなければ、制御パルス
発生回路24は1ビツトシフト信号31を出し、
シフトレジスタ21を1ビツトシフトするととも
に、計数回路22,23がこのシフト数を1つカ
ウントする。この1ビツトシフトにより前述の値
が一致し、ランレングスの復元が終了する。
Then, when the value excluding the LSB of the RL latch circuit 14 and the value of the counter 23-2 match, the LSB of the RL latch circuit 14 and the value of FF23-1 are compared, and if both match, the run length is restored. finish. If they do not match, the control pulse generation circuit 24 outputs a 1-bit shift signal 31,
The shift register 21 is shifted by one bit, and the counting circuits 22 and 23 count the number of shifts by one. By this 1-bit shift, the above-mentioned values match, and the restoration of the run length is completed.

従来の復元回路に比べると、本発明の実施例で
は計数回路がフリツプフロツプとカウンタとに分
離するだけである。
Compared to conventional restoration circuits, the embodiment of the present invention only separates the counting circuit into a flip-flop and a counter.

通常、画像のランレングスは2以上のものが殆
どなので、従来回路の約2倍の速さでデータ復元
処理が行なえる。実施例では2ビツト毎にシフト
したが一般的には2nビツトとすることができ
る。
Usually, most images have a run length of 2 or more, so data restoration processing can be performed about twice as fast as conventional circuits. In the embodiment, the shift is made every 2 bits, but generally it can be set to 2 n bits.

なお、本実施例では、1次元符号化または2次
元符号化より求めた等長化されたランレングスを
復元しているが、この等長ランレングスの代り
に、走査線の画素に付けた変化点のアドレスを用
いて復元してもよい。
Note that in this example, the equal length run length obtained by one-dimensional encoding or two-dimensional encoding is restored, but instead of this equal length run length, changes made to the pixels of the scanning line are used. It may also be restored using the address of the point.

以上説明したように、本発明によれば、圧縮デ
ータの等長化されたランレングスから画像データ
を復元するためのシフトレジスタに2nビツトと
1ビツトのシフト機能をもたせることにより、復
元処理を前述のように約2倍程度まで高速化する
ことができるものである。
As explained above, according to the present invention, the shift register for restoring image data from equal-length run lengths of compressed data is provided with a 2n- bit and 1-bit shift function, thereby performing restoration processing. As mentioned above, the speed can be increased to about twice.

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

第1図は従来例の説明図、第2図は本発明の実
施例の構成を示す説明図、第3図は第2図の実施
例の要部の詳細回路例であり、図中、10はフリ
ツプフロツプ、12は復号走査線メモリ、14は
RLラツチ回路、15は比較回路、21はシフト
レジスタ、22はシフト数計数回路、23はRL
計数回路、22―1,23―1はフリツプフロツ
プ、22―2,23―2はカウンタ、24は制御
パルス発生回路を示す。
FIG. 1 is an explanatory diagram of a conventional example, FIG. 2 is an explanatory diagram showing the configuration of an embodiment of the present invention, and FIG. 3 is a detailed circuit example of the main part of the embodiment of FIG. is a flip-flop, 12 is a decoding scanning line memory, and 14 is a flip-flop.
RL latch circuit, 15 is a comparison circuit, 21 is a shift register, 22 is a shift number counting circuit, 23 is RL
22-1 and 23-1 are flip-flops, 22-2 and 23-2 are counters, and 24 is a control pulse generation circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 帯域圧縮された画像データを復元してシフト
するシフトレジスタと該シフトレジスタの内容の
1ライン以上を格納する復号走査線メモリを具え
た圧縮データ復元回路において、あらかじめ定め
た2nビツト毎のシフトと1ビツト毎のシフトが
可能なシフトレジスタと、画像データの復元すべ
きランレングスのビツト長が2nビツト以上のと
きは前記シフトレジスタを2nビツトずつシフト
させ、ランレングスのビツト長が2nビツト以下
のときは1ビツトずつのシフトを行ない、画像デ
ータがシフトレジスタに一杯になるとこれを前記
復号走査線メモリに書込むように制御する手段と
を具えたことを特徴とする圧縮データ復元回路。
1. In a compressed data restoration circuit that includes a shift register that restores and shifts band-compressed image data and a decoding scanning line memory that stores one or more lines of the contents of the shift register, a predetermined shift every 2 n bits is performed. When the bit length of the run length to be restored of the image data is 2 n bits or more, the shift register is shifted by 2 n bits, and the bit length of the run length is 2 n bits or more. Compressed data restoration characterized by comprising means for controlling to shift one bit at a time when the image data is n bits or less, and to write the image data to the decoding scanning line memory when the shift register is full. circuit.
JP8226980A 1980-06-18 1980-06-18 Restoration circit for compressed data Granted JPS579171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8226980A JPS579171A (en) 1980-06-18 1980-06-18 Restoration circit for compressed data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8226980A JPS579171A (en) 1980-06-18 1980-06-18 Restoration circit for compressed data

Publications (2)

Publication Number Publication Date
JPS579171A JPS579171A (en) 1982-01-18
JPS6132867B2 true JPS6132867B2 (en) 1986-07-30

Family

ID=13769757

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8226980A Granted JPS579171A (en) 1980-06-18 1980-06-18 Restoration circit for compressed data

Country Status (1)

Country Link
JP (1) JPS579171A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62109563U (en) * 1985-12-26 1987-07-13
JPS62127642U (en) * 1986-02-04 1987-08-13

Also Published As

Publication number Publication date
JPS579171A (en) 1982-01-18

Similar Documents

Publication Publication Date Title
US4800440A (en) Digital image signal coding/decoding circuit with buffer memory storing reference line as compression codes
US5345316A (en) Image data encoding/decoding apparatus for concurrent processing of multiple image data streams
JPS5854695B2 (en) Signal control method
JPH088647B2 (en) Run-length coding method and apparatus
JPS6326588B2 (en)
JPS6132867B2 (en)
JPS60502082A (en) Pixel generator for facsimile receiver
JP3116989B2 (en) Decompression device for compressed binary image data
JPS5888971A (en) Encoding system for picture signal
JP3195427B2 (en) Data conversion / inversion converter
US20020024525A1 (en) Image encoding apparatus and method
JPS6333350B2 (en)
JPS58225779A (en) Decoding system for picture signal
JP2933029B2 (en) Digital signal encoding / decoding circuit
JPS6341276B2 (en)
JPH0149072B2 (en)
JPS6362083A (en) Projection data generation method
JP3293382B2 (en) Data compression device and data decompression device
JPS6366113B2 (en)
JPH10341351A (en) Method and device for processing data
JPS60256274A (en) 2D compression encoding device
JPS5926691Y2 (en) Facsimile signal transmission equipment
JPS6342472B2 (en)
JPS63275276A (en) Digital image signal encoding method and encoding device
JPS6235775A (en) Decoding device for image code
</