JPH04329764A - Compression data transfer device - Google Patents

Compression data transfer device

Info

Publication number
JPH04329764A
JPH04329764A JP3100772A JP10077291A JPH04329764A JP H04329764 A JPH04329764 A JP H04329764A JP 3100772 A JP3100772 A JP 3100772A JP 10077291 A JP10077291 A JP 10077291A JP H04329764 A JPH04329764 A JP H04329764A
Authority
JP
Japan
Prior art keywords
data
compressed data
read
compressed
host computer
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.)
Granted
Application number
JP3100772A
Other languages
Japanese (ja)
Other versions
JP3091917B2 (en
Inventor
Junichiro Akune
潤一郎 阿久根
Hisashi Yonekawa
久 米川
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta 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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP03100772A priority Critical patent/JP3091917B2/en
Publication of JPH04329764A publication Critical patent/JPH04329764A/en
Application granted granted Critical
Publication of JP3091917B2 publication Critical patent/JP3091917B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To output all data to a processing section even when a compressed data is processed in the unit of blocks. CONSTITUTION:When data transfer is finished and a data quantity of a memory 21 is a prescribed value Y(512 bytes) or below, a data is transferred by the prescribed value Y from a host computer 1 excessively or a data is outputted from a system control section 25. Thus, a difference between both counts of a write counter 22 and a read counter 24 is 512 or below and all compressed data are transferred to an expansion processing section 5. Moreover, a data is outputted by enabling a data output available signal forcibly.

Description

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

【0001】0001

【産業上の利用分野】本発明は、圧縮データ転送装置に
関し、特に医用分野において、符号化されて圧縮された
画像データを伸長する時の圧縮データ転送装置に関する
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a compressed data transfer apparatus, and more particularly to a compressed data transfer apparatus for decompressing encoded and compressed image data in the medical field.

【0002】0002

【従来の技術】近年、例えば医用分野においてX線画像
を含む医用画像をディジタル化して取り扱っていこうと
する動きが活発になってきている。このディジタル化さ
れたX線画像はデータ量が多く、このX線画像を保管し
、検索し、あるいは伝送する為にはX線画像のデータ量
を効率良く少なくし、かつX線画像の劣化を少なくする
画像圧縮技術が非常に重要となってくる。かかる圧縮技
術として、例えば可逆圧縮方式であるDPCM(dif
ferential pulsecode modul
ation)方式、非可逆圧縮方式であるDCT(di
screte cosine transform )
、等がある。このようなDPCM方式では、圧縮/伸張
時に画像が劣化することはないが、圧縮率は例えば約1
/2程度となる。またDCT方式では、画像データが非
可逆であるものの圧縮率は例えば1/5〜1/50程度
と高圧縮率となる。
2. Description of the Related Art In recent years, for example, in the medical field, there has been an active movement to digitize and handle medical images including X-ray images. This digitized X-ray image has a large amount of data, and in order to store, search, or transmit this X-ray image, it is necessary to efficiently reduce the amount of data and prevent the deterioration of the X-ray image. Image compression technology that reduces the number of images is becoming extremely important. As such a compression technique, for example, DPCM (dif
ferential pulsecode module
ation) method, and DCT (di
(screte cosine transform)
, etc. In such a DPCM method, the image does not deteriorate during compression/expansion, but the compression ratio is, for example, approximately 1.
/2. Further, in the DCT method, although the image data is irreversible, the compression rate is high, for example, about 1/5 to 1/50.

【0003】DPCM方式で画像データを圧縮する場合
、例えばジグザグスキャンの始点の画素値から終点の画
素値まで順次、隣合う2画素間の差を求め、差の値に符
号データを割当てる。この圧縮/伸張する為の符号デー
タの種類は多々あるが、可変長符号データを用いるのが
効率の面で比較的良い結果が得られる。そしてこの可変
長符号としては、例えばハフマン符号、ランレングス(
以後、RLと記す)符号等が良く知られている。この可
変長符号データを、始点の画素値と共にデータパッキン
グを行うことにより圧縮データを得る。また圧縮データ
から画像データに伸張する場合には、前記処理と逆の処
理を行えばよい。
When image data is compressed using the DPCM method, for example, the difference between two adjacent pixels is determined sequentially from the pixel value at the start point of a zigzag scan to the pixel value at the end point, and code data is assigned to the difference value. Although there are many types of code data for this compression/expansion, relatively good results can be obtained in terms of efficiency by using variable length code data. Examples of this variable length code include Huffman code, run length (
(hereinafter referred to as RL) are well known. Compressed data is obtained by data packing this variable length code data together with the pixel value at the starting point. Furthermore, when decompressing compressed data into image data, the process inverse to the above process may be performed.

【0004】またDCT方式で画像データを圧縮する場
合、画像データをディスクリートコサイン変換により周
波数領域に変換し、量子化処理を行った後に、前述のD
PCM方式と同様に可変長符号データに符号化し、この
符号化データをパッキングすることにより圧縮データを
得る。またこの圧縮されたデータを画像データに伸張す
る場合には、前記処理と逆の処理を行えばよい。
[0004] When compressing image data using the DCT method, the image data is converted into the frequency domain by discrete cosine transformation, and after quantization processing is performed, the above-mentioned DCT method is used.
Like the PCM method, compressed data is obtained by encoding into variable length code data and packing this encoded data. In addition, when expanding this compressed data into image data, the reverse process to the above process may be performed.

【0005】このような画像データの圧縮伸張処理を行
うシステムにおいて、画像データを圧縮する場合はホス
トコンピュータが画像データをインターフェイスを介し
て圧縮伸張処理部の画像データを一時的に記憶しつつ入
出力する画像転送部に出力する。圧縮伸張処理部は画像
転送部に入力された画像データを可逆圧縮方式または非
可逆圧縮方式で圧縮処理を行い、圧縮データを一時的に
記憶しつつ入出力する圧縮データ転送装置、インターフ
ェイスを介してホストコンピュータに転送する。また圧
縮データを元の画像データに伸張する場合は圧縮データ
をホストコンピュータからインターフェイスを介して圧
縮データ転送装置に出力する。圧縮伸張処理部はこの圧
縮データの伸張処理を行い、伸張した元の画像データを
画像転送部、インターフェイスを介してホストコンピュ
ータに出力する。
In such a system that performs image data compression/decompression processing, when compressing image data, the host computer inputs and outputs the image data through an interface while temporarily storing the image data in the compression/decompression processing section. output to the image transfer unit. The compression/decompression processing section compresses the image data input to the image transfer section using a reversible compression method or an irreversible compression method, and then inputs and outputs the compressed data while temporarily storing it through a compressed data transfer device and an interface. Transfer to host computer. When compressed data is expanded to original image data, the compressed data is output from the host computer to the compressed data transfer device via the interface. The compression/decompression processing unit decompresses this compressed data and outputs the decompressed original image data to the host computer via the image transfer unit and the interface.

【0006】前述したように可逆圧縮方式では完全な復
元画像が得られるが圧縮率が低いのに対し、非可逆圧縮
方式では圧縮率は高いが伸張後完全な復元画像が得られ
ないという一長一短があり、特に医用では双方の機能が
要求される場合が多い。その為には、圧縮伸張処理部で
可逆圧縮方式、非可逆圧縮方式の両方式の圧縮伸張処理
が行えるようにして両方式が選択出来るようにする必要
があり、そして圧縮伸張処理部では読み出し単位をブロ
ック単位にしてクロックに同期させて画像データのやり
取りを行うことが必要となってくる。
As mentioned above, the reversible compression method provides a completely restored image but has a low compression ratio, while the irreversible compression method has a high compression ratio but cannot obtain a completely restored image after decompression. Both functions are often required, especially in medical applications. To do this, it is necessary for the compression/expansion processing section to perform compression/expansion processing using both reversible and irreversible compression methods so that both methods can be selected. It becomes necessary to exchange image data in block units and synchronize them with a clock.

【0007】[0007]

【発明が解決しようとする課題】ところで、前述の圧縮
データ転送装置の場合、例えばFIFO構造のメモリが
備えられているが、メモリから読み出されるデータ量が
書き込まれたデータ量を越えてしまうと、ブロック単位
の読み出しの途中でデータ出力可能信号がディセーブル
になっても圧縮伸張処理部ではブロックの途中では処理
が止められず、空の状態で読み出しが行われ、圧縮デー
タではない不正データが出力されてしまう。そこで読み
出し単位以上の所定値Yを設定し、記憶されているデー
タが所定値Y以下になった時にデータ出力可能信号をデ
ィセーブルにしてデータの読み出しが出来なくなるよう
にすることが考えられる。
By the way, in the case of the above-mentioned compressed data transfer device, a memory having a FIFO structure is provided, but if the amount of data read from the memory exceeds the amount of data written, Even if the data output enable signal is disabled in the middle of reading a block, the compression/decompression processing unit does not stop processing in the middle of the block, and the read is performed in an empty state, and invalid data that is not compressed data is output. It will be done. Therefore, it is conceivable to set a predetermined value Y that is greater than the read unit, and when the stored data becomes less than the predetermined value Y, disable the data output enable signal so that the data cannot be read.

【0008】しかしこのように構成した場合、ホストコ
ンピュータからの圧縮データの転送が終了した時、最後
にメモリ内のデータ量が所定値Y以下となり、処理が止
まってしまい、メモリ内の全てのデータを読み出せなく
なるおそれがある。本発明ではこのような従来の課題に
鑑みてなされたもので、圧縮データをブロック単位で処
理する場合でも全てのデータの出力が可能となる圧縮デ
ータ転送装置を提供することを目的とする。
However, with this configuration, when the transfer of compressed data from the host computer is completed, the amount of data in the memory finally falls below the predetermined value Y, and processing stops, causing all data in the memory to be lost. There is a possibility that it will not be possible to read out the data. The present invention has been made in view of such conventional problems, and an object of the present invention is to provide a compressed data transfer device that can output all data even when compressed data is processed block by block.

【0009】[0009]

【課題を解決するための手段】このため本発明は、図1
に示すように、ホストコンピュータから出力された一連
の圧縮データを入力し、圧縮データを伸長する伸長処理
部の読み出し信号に基づいて、入力された順に前記伸長
処理部へ一連の圧縮データを単位データ量づつ出力する
圧縮データ転送装置において、前記ホストコンピュータ
から圧縮データを入力して一時的に記憶する記憶手段と
、前記ホストコンピュータから記憶手段への圧縮データ
の書き込み総数をカウントする書き込みカウント手段と
、前記記憶手段に記憶されているデータの伸張処理部へ
の読み出し総数をカウントする読み出しカウント手段と
、前記記憶手段に前記書き込みカウンタと読み出しカウ
ンタとの両カウント値に基づいて記憶手段に記憶されて
いるデータのデータ量を監視し、データ量が前記データ
読み出し単位以上の値に設定された所定値を越えている
時は記憶手段に出力するデータ出力可能信号をイネーブ
ルにして前記伸長処理部のデータの読み出しを可能にし
、所定値以下の時にデータ出力可能信号をディセーブル
にしてデータの読み出しを禁止する制御信号出力手段と
、ホストコンピュータから一連の圧縮データの転送終了
後、前記記憶手段に記憶された全てのデータを伸張処理
部へ出力させる読み出し終了制御手段と、を設けて構成
した。
[Means for Solving the Problems] Therefore, the present invention has the following features:
As shown in the figure, a series of compressed data output from a host computer is input, and based on the read signal of the decompression processing unit that decompresses the compressed data, the series of compressed data is sent to the decompression processing unit in the order in which it was input as unit data. A compressed data transfer device that outputs compressed data in units of amounts, storage means for inputting and temporarily storing compressed data from the host computer, write counting means for counting the total number of writes of compressed data from the host computer to the storage means; a read count means for counting the total number of reads of data stored in the storage means to the decompression processing unit; and a read count means for counting the total number of reads of data stored in the storage means; The amount of data is monitored, and when the amount of data exceeds a predetermined value set to a value greater than or equal to the data read unit, the data output enable signal to be output to the storage means is enabled, and the data in the decompression processing section is control signal output means for enabling readout and disabling a data output enable signal to prohibit data readout when the data output enable signal is below a predetermined value; A read end control means for outputting all data to the decompression processing section is provided.

【0010】また前記読み出し終了制御手段は、データ
転送終了時に前記一連の圧縮データに加えて前記ホスト
コンピュータから前記所定値以上の余分のデータを転送
することにより、全ての一連の圧縮データがデータ出力
可能信号のイネーブル状態で伸張処理部に読み出される
ように構成してもよい。あるいは前記読み出し終了制御
手段は、データ転送終了時に前記一連の圧縮データに加
えて圧縮データ転送装置から前記所定値以上の余分のデ
ータを転送するように構成してもよい。
[0010] Furthermore, the read end control means transfers extra data exceeding the predetermined value from the host computer in addition to the series of compressed data at the end of data transfer, so that all the series of compressed data are output as data. The data may be configured to be read out to the decompression processing unit in the enabled state of the enable signal. Alternatively, the read end control means may be configured to transfer extra data equal to or greater than the predetermined value from the compressed data transfer device in addition to the series of compressed data when the data transfer ends.

【0011】あるいは前記読み出し終了制御手段は、全
ての一連の圧縮データの転送終了後に制御信号出力手段
から出力するデータ出力可能信号をイネーブルにするよ
うに構成してもよい。
Alternatively, the read end control means may be configured to enable a data output enable signal output from the control signal output means after the transfer of all series of compressed data is completed.

【0012】0012

【作用】上記の構成によれば、ホストコンピュータから
一連の圧縮データが記憶手段に入力された時、圧縮デー
タの書き込み総数がカウントされる。また記憶されてい
るデータが伸張処理部にブロック単位で読み出された時
、読み出し数がカウントされる。制御信号出力手段は書
き込みカウンタと読み出しカウンタとの両カウント値に
基づいて記憶手段に記憶されているデータのデータ量を
監視し、データ量が所定値以下になった時、データ出力
可能信号をディセーブルにしてデータの読み出しが禁止
される。ホストコンピュータからの一連の圧縮データの
転送が終了した時、データ出力可能信号がディセーブル
になる所定値はデータ読み出し単位以上に設定されてい
る為、記憶手段のデータ量が所定値以下となってデータ
が残る可能性があるが、記憶手段に記憶された全てのデ
ータは読み出し終了制御手段により伸張処理部へ出力さ
れる。
According to the above structure, when a series of compressed data is input to the storage means from the host computer, the total number of written compressed data is counted. Further, when the stored data is read out in blocks by the decompression processing section, the number of reads is counted. The control signal output means monitors the amount of data stored in the storage means based on the count values of both the write counter and the read counter, and when the data amount becomes less than a predetermined value, outputs the data output enable signal. It is disabled and data reading is prohibited. When the transfer of a series of compressed data from the host computer is completed, the predetermined value at which the data output enable signal is disabled is set to be greater than the data read unit, so the amount of data in the storage means is less than the predetermined value. Although some data may remain, all data stored in the storage means is output to the decompression processing section by the read end control means.

【0013】またホストコンピュータから所定値以上の
余分のデータを転送するようにしたものでは、最後の読
み出しで書き込みカウント手段と読み出しカウント手段
との両カウント値の差が所定値以下になった時に、記憶
手段内の残っているデータはホストコンピュータから転
送された余分のデータであり、全ての圧縮データが伸張
処理部へ転送されたことになる。
[0013] Furthermore, in a device in which extra data exceeding a predetermined value is transferred from the host computer, when the difference between the count values of the write count means and the read count means becomes less than the predetermined value in the last read, The remaining data in the storage means is extra data transferred from the host computer, which means that all compressed data has been transferred to the decompression processing section.

【0014】また所定値以下の残っているデータは制御
信号出力手段から所定値以上のデータを転送するように
したものでは、同様にして全てのデータは伸張処理部へ
出力される。また制御信号出力手段から出力されるデー
タ出力可能信号を強制的にイネーブルとしたものでは、
同様にして全てのデータは伸張処理部へ出力される。
In addition, if the remaining data below a predetermined value is transferred from the control signal output means to the data above the predetermined value, all data is similarly output to the decompression processing section. In addition, in the case where the data output enable signal output from the control signal output means is forcibly enabled,
Similarly, all data is output to the decompression processing section.

【0015】[0015]

【実施例】以下、本発明の一実施例を図2〜8に基づい
て説明する。画像データの圧縮/伸張を行うシステムを
示す図2において、画像データを圧縮する場合はホスト
コンピュータ1はインターフェイス2を介して画像転送
部3に一連の画像データを出力し、圧縮データを元の画
像データに伸張する場合はホストコンピュータ1からイ
ンターフェイス2を介して一連の圧縮データを圧縮デー
タ転送装置4に出力する。このインターフェイス2には
例えばコマンドを自由に作ることが出来るSCSIイン
ターフェイスを採用する。画像データ圧縮伸張装置は、
画像データを一時的に記憶しつつ入出力する前述の画像
転送部3と、該画像データを圧縮して得られる符号デー
タを一時的に記憶しつつ入出力する前述の圧縮データ転
送装置4と、画像データの圧縮/伸張処理を行う圧縮処
理部及び伸張処理部5と、これらの作動を制御するシス
テム制御部6と、で構成される。ここで圧縮処理部及び
伸張処理部5は圧縮処理時に画像データを符号化する符
号化部7と、符号データの伸張処理時に符号データを元
のデータに復号化する復号化部8と、符号データのパッ
キング及びパッキングデータのデパッキングを行うパッ
キング・デパッキング回路9と、を備えている。
Embodiment An embodiment of the present invention will be described below with reference to FIGS. 2 to 8. In FIG. 2 showing a system for compressing/expanding image data, when compressing image data, the host computer 1 outputs a series of image data to the image transfer unit 3 via the interface 2, and converts the compressed data into the original image. When decompressing data, a series of compressed data is output from the host computer 1 to the compressed data transfer device 4 via the interface 2. This interface 2 employs, for example, a SCSI interface that allows commands to be created freely. The image data compression/expansion device is
The above-mentioned image transfer unit 3 that inputs and outputs image data while temporarily storing it, and the above-mentioned compressed data transfer device 4 that inputs and outputs code data obtained by compressing the image data while temporarily storing it. It is composed of a compression processing section and an expansion processing section 5 that perform compression/expansion processing of image data, and a system control section 6 that controls these operations. Here, the compression processing unit and expansion processing unit 5 include an encoding unit 7 that encodes image data during compression processing, a decoding unit 8 that decodes coded data into original data during coded data expansion processing, and and a packing/depacking circuit 9 for packing and depacking the packed data.

【0016】本実施例の圧縮データ転送装置4を示す図
3において、記憶手段であるメモリ21は例えば64k
バイトのメモリ容量を有するメモリバッファである。書
き込みカウント手段である書き込みカウンタ22はホス
トコンピュータ1から出力された圧縮データのメモリ2
1への書き込みパルスをカウントする例えば16ビット
カウンタである。また読み出しカウント手段である読み
出しカウンタ23は圧縮データの読み出し時に読み出し
パルスをカウントする例えば16ビットカウンタである
。このメモリ21と書き込みカウンタ22と読み出しカ
ウンタ23とはFIFOを構成し、ホストコンピュータ
1から送られてきた圧縮データを記憶し、送られてきた
順に該圧縮データを順次出力する。圧縮データの伸張時
、メモリ21に記憶されているデータの出力は圧縮処理
部及び伸張処理部5の読み出し信号に基づいて行われる
。圧縮処理部及び伸張処理部5は例えば画像データにし
た時に16×16×10ビットの1ブロックとなるよう
なブロック単位データ量づつ処理を行う。したがって例
えば圧縮データの伸張時、メモリ21に記憶されている
圧縮データは1ブロックの伸張が終わるまで連続して読
み出される。前述のインターフェイス2は例えばビット
サイズが1バイトのSCSIインターフェイスとする。 ホストコンピュータ1は、このインターフェイス2を介
して例えば画像データの圧縮データをメモリ21に出力
する。制御信号出力手段であるデータ出力可能信号制御
部24は前述の書き込みカウンタ22のカウント値と読
み出しカウンタ23のカウント値とを入力し、図4のよ
うに所定値Yを例えば 512バイトとしてメモリ21
内のデータ量が所定値Y以下の時はデータ出力可能信号
をディセーブルにし、 512バイトを越えた時はイネ
ーブルにして出力制御する。前述したシステム制御部6
は圧縮データ転送装置4においてはインターフェイス2
、データ出力可能信号制御部24、書き込みカウンタ2
2、読み出しカウンタ23、の作動を制御する。
In FIG. 3 showing the compressed data transfer device 4 of this embodiment, the memory 21 serving as a storage means has, for example, 64K memory.
A memory buffer with a memory capacity of bytes. A write counter 22, which is a write counting means, stores compressed data output from the host computer 1 in the memory 2.
For example, it is a 16-bit counter that counts write pulses to 1. Further, the read counter 23, which is read counting means, is, for example, a 16-bit counter that counts read pulses when reading compressed data. The memory 21, write counter 22, and read counter 23 constitute a FIFO, which stores compressed data sent from the host computer 1 and sequentially outputs the compressed data in the order in which they are sent. When compressed data is expanded, the data stored in the memory 21 is output based on read signals from the compression processing section and the expansion processing section 5. The compression processing section and the expansion processing section 5 process the amount of data in units of blocks, such that when converted to image data, it becomes one block of 16 x 16 x 10 bits. Therefore, for example, when compressed data is expanded, the compressed data stored in the memory 21 is read out continuously until one block is expanded. The above-mentioned interface 2 is, for example, a SCSI interface with a bit size of 1 byte. The host computer 1 outputs, for example, compressed image data to the memory 21 via the interface 2. The data output enable signal control unit 24, which is a control signal output means, inputs the count value of the write counter 22 and the count value of the read counter 23, and sets the predetermined value Y to, for example, 512 bytes as shown in FIG.
When the amount of data within is less than a predetermined value Y, the data output enable signal is disabled, and when it exceeds 512 bytes, it is enabled and output is controlled. The aforementioned system control unit 6
is the interface 2 in the compressed data transfer device 4.
, data output enable signal control section 24, write counter 2
2. Controls the operation of the read counter 23.

【0017】次にデータ出力可能信号制御部24の動作
を図5のフローチャートに基づいて説明する。ステップ
(図中では「S」と記してあり、以下同様とする)1で
は、圧縮データがホストコンピュータ1よりインターフ
ェイス2を通じてメモリ21への書き込みがあった時、
このルーチンがスタートし、書き込みカウンタ22によ
り書き込みパルス数がカウントされ、このカウント値は
データ出力可能信号制御部24に送られる。
Next, the operation of the data output enable signal control section 24 will be explained based on the flowchart of FIG. In step 1 (denoted as "S" in the figure, the same applies hereinafter), when compressed data is written from the host computer 1 to the memory 21 through the interface 2,
This routine starts, the number of write pulses is counted by the write counter 22, and this count value is sent to the data output enable signal control section 24.

【0018】ステップ2では、伸張処理部5からメモリ
21に記憶されている圧縮データが読み出された時、読
み出しカウンタ23が読み出しパルス数をカウントし、
このカウント値はデータ出力可能信号制御部24に送ら
れる。 尚、メモリ21への書き込み開始時は読み出しカウンタ
23のカウント値は0のままである。ステップ3では、
書き込みカウンタ22と読み出しカウンタ23との両カ
ウント値の差を算出し、その差の上限値を例えば(64
k− 512)バイトとして上限値以上になった時はス
テップ4に進んで(FULL−Y)フラグをセットして
システム制御部6に出力し、上限値未満であればステッ
プ5に進む。システム制御部6はこの(FULL−Y)
フラグがセットされたのをみてデータの転送を中断させ
るコマンドをホストコンピュータ1に出力してメモリ2
1のデータが上書きされないようにする。
In step 2, when the compressed data stored in the memory 21 is read from the decompression processing unit 5, the read counter 23 counts the number of read pulses;
This count value is sent to the data output enable signal control section 24. Note that the count value of the read counter 23 remains 0 when writing to the memory 21 is started. In step 3,
The difference between the count values of the write counter 22 and the read counter 23 is calculated, and the upper limit of the difference is set to, for example, (64
k-512) When the number of bytes exceeds the upper limit value, the process proceeds to step 4, sets the (FULL-Y) flag and outputs it to the system control unit 6; if it is less than the upper limit value, the process proceeds to step 5. The system control unit 6 is this (FULL-Y)
When the flag is set, a command to interrupt the data transfer is output to the host computer 1, and the memory 2
Prevent the data in 1 from being overwritten.

【0019】ステップ5では、メモリ21に記憶されて
いるデータ量が所定値Yを越えているかどうかを調べる
。 この所定値Yは で表される。メモリ内の圧縮データ量が所定値Y以下に
なるとデータ出力可能信号制御部24はデータ出力可能
信号をディセーブルにする。しかし、パッキング・デパ
ッキング回路9を含む伸張処理部5では1ブロックが全
て処理し終わらないと動作が停止しないため、1ブロッ
クの処理中はデータ出力信号がディセーブルになっても
圧縮データを読み出してしまう。したがって、もし所定
値Yが0であるとメモリ内にデータが残っていないので
、ブロックの途中でデータ出力可能信号がディセーブル
になると不正データが読み出されてしまうことになる。 そこでデータ量が常に所定値Yだけメモリの中に存在す
るようにデータ出力可能信号を制御すれば不正データが
読み出されなくなる。この所定量Yは、処理単位がn×
nのブロック単位に行われる場合、例えば圧縮/伸長の
対象となる画像の1画素当たりの最大ビット数をbビッ
トとして(n×n×b)以上、また処理単位がLライン
単位(Lは1以上)に行われる場合、圧縮/伸長の対象
となる画像の1画素当たりの最大ビット数をbビット、
1ライン当たりのカラム数をmとすると、所定量Yは、
(L×m×b)ビット以上になるように設定され、例え
ば512バイト程度に設定しておく。そしてデータ量が
所定値Yを越えている時、ステップ6に進んでデータ出
力可能信号制御部24がデータ出力可能信号をイネーブ
ルにしてステップ1に戻り、所定値Y以下の時はステッ
プ7に進む。
In step 5, it is checked whether the amount of data stored in the memory 21 exceeds a predetermined value Y. This predetermined value Y is expressed by . When the amount of compressed data in the memory becomes less than or equal to a predetermined value Y, the data output enable signal control section 24 disables the data output enable signal. However, since the decompression processing unit 5 including the packing/depacking circuit 9 does not stop operating until one block is completely processed, compressed data is read even if the data output signal is disabled during processing of one block. I end up. Therefore, if the predetermined value Y is 0, no data remains in the memory, so if the data output enable signal is disabled in the middle of a block, incorrect data will be read. Therefore, if the data output enable signal is controlled so that the amount of data always exists in the memory by a predetermined value Y, invalid data will not be read out. This predetermined amount Y has a processing unit of n×
When processing is performed in units of n blocks, for example, the maximum number of bits per pixel of the image to be compressed/expanded is b bits (n x n x b) or more, and the processing unit is L lines (L is 1 (above), the maximum number of bits per pixel of the image to be compressed/expanded is b bits,
If the number of columns per line is m, the predetermined amount Y is
It is set to be more than (L×m×b) bits, and is set to about 512 bytes, for example. When the amount of data exceeds the predetermined value Y, the process proceeds to step 6, where the data output enable signal control unit 24 enables the data output enable signal and returns to step 1, and when it is less than the predetermined value Y, the process proceeds to step 7. .

【0020】ステップ7では、メモリ21に記憶されて
いるデータ量が所定値Y以下となったのでデータ出力可
能信号制御部24がメモリ21からのデータの読み出し
が出来ないようにデータ出力可能信号をディセーブルに
してリターンする。次に第1実施例の読み出し終了制御
ルーチンを図6のフローチャートに基づいて説明する。 第1実施例では読み出し終了制御ルーチンはホストコン
ピュータ1によって行われ、ホストコンピュータ1から
余分にデータを出力して全ての圧縮データを出力させる
ものである。
In step 7, since the amount of data stored in the memory 21 has become less than the predetermined value Y, the data output enable signal control section 24 generates a data output enable signal so that data cannot be read from the memory 21. Disable and return. Next, the read end control routine of the first embodiment will be explained based on the flowchart of FIG. In the first embodiment, the read end control routine is executed by the host computer 1, and causes the host computer 1 to output extra data and output all the compressed data.

【0021】ステップ21では、一連の圧縮データの転
送が終了したかどうかを判定する。この所定値Yは例え
ば1ブロック分の 512バイトとする。そしてデータ
の転送が終了するまで待ち、データの転送が終了した時
はステップ22に進む。ステップ22では、一連の圧縮
データの転送が終了したので、所定値Y(例えば1ブロ
ック分 512バイト)だけ余分のデータを転送する。 これにより最後の読み出しで書き込みカウンタ22と読
み出しカウンタ23との両カウント値の差が所定値Y以
下となった時に、メモリ21内に残っているデータはホ
ストコンピュータ1から転送された余分のデータであり
、全ての圧縮データは伸張処理部5に転送されたことに
なる。そしてこのステップを実行してこのルーチンの実
行を終了する。
In step 21, it is determined whether a series of compressed data transfers have been completed. This predetermined value Y is, for example, 512 bytes for one block. Then, the process waits until the data transfer is completed, and when the data transfer is completed, the process advances to step 22. In step 22, since the transfer of a series of compressed data has been completed, extra data by a predetermined value Y (for example, 512 bytes for one block) is transferred. As a result, when the difference between the count values of the write counter 22 and the read counter 23 becomes less than the predetermined value Y in the last read, the data remaining in the memory 21 is the extra data transferred from the host computer 1. Yes, all compressed data has been transferred to the decompression processing section 5. Then, this step is executed to end the execution of this routine.

【0022】尚、この読み出し終了制御ルーチンが読み
出し終了制御手段に相当する。かかる構成によれば、ホ
ストコンピュータ1からのデータ転送が終了した時、ホ
ストコンピュータ1からメモリ21にデータを読み出し
単位である1ブロック分の所定値Yだけ余分のデータを
転送することにより、最後の読み出しで書き込みカウン
タ22と読み出しカウンタ23との両カウント値の差は
所定値以下となった時、全ての圧縮データが伸張処理部
5に転送されたことになる。またこのように簡単な回路
構成で全ての圧縮データを出力することが出来る。
Note that this read end control routine corresponds to read end control means. According to this configuration, when the data transfer from the host computer 1 is completed, the extra data is transferred from the host computer 1 to the memory 21 by a predetermined value Y for one block, which is the data read unit, so that the last data transfer is completed. When the difference between the count values of the write counter 22 and the read counter 23 during reading becomes equal to or less than a predetermined value, it means that all the compressed data has been transferred to the decompression processing section 5. Furthermore, all compressed data can be output with such a simple circuit configuration.

【0023】次に第2実施例について説明する。第2実
施例は、システム制御部6が読み出し終了ルーチンを実
行し、システム制御部6から余分のデータを出力して全
ての圧縮データの読み出しを行うものである。図7のフ
ローチャートに基づいて第2実施例の読み出し終了ルー
チンを説明する。
Next, a second embodiment will be explained. In the second embodiment, the system control unit 6 executes a read end routine, outputs extra data from the system control unit 6, and reads all compressed data. The read end routine of the second embodiment will be explained based on the flowchart of FIG.

【0024】ステップ31では、ホストコンピュータ1
からの一連の圧縮データの転送が終了したかどうかを検
知する。圧縮データの転送の終了を検知するには、ホス
トコンピュータ1が最後の圧縮データを転送する時に、
最終フラグをセットし、システム制御部6がその最終フ
ラグを受信するか、ホストコンピュータ1が全圧縮デー
タ転送終了後、転送終了コマンドを送り、システム制御
部6がこの転送終了コマンドを受信するか、または予め
ホストコンピュータ1より全圧縮データ量を知らせてお
き、システム制御部6が、全書き込みカウント量をチェ
ックすること等によって行われる。圧縮データの転送終
了ではない時はステップ1に進み、データ転送の終了が
検知された時はステップ32に進む。
In step 31, the host computer 1
Detects whether the transfer of a series of compressed data from has finished. To detect the end of compressed data transfer, when the host computer 1 transfers the last compressed data,
Either the final flag is set and the system control unit 6 receives the final flag, or the host computer 1 sends a transfer end command after completing the transfer of all compressed data, and the system control unit 6 receives this transfer end command. Alternatively, the total compressed data amount is notified from the host computer 1 in advance, and the system control unit 6 checks the total write count amount. If the transfer of the compressed data has not yet been completed, the process proceeds to step 1, and if the end of the data transfer is detected, the process proceeds to step 32.

【0025】ステップ32では、システム制御部6から
メモリ21に所定値Y(例えば1ブロック分 512バ
イト)の余分のデータを書き込む。これにより最後の読
み出しで書き込みカウンタ22と読み出しカウンタ23
との両カウント値の差が所定値Y以下となった時に、メ
モリ21内に残っているデータはホストコンピュータ1
から転送された余分のデータであり、全ての圧縮データ
は伸張処理部5に転送されたことになる。そしてこのス
テップを実行してこのルーチンの実行を終了する。尚、
システム制御部6が 512バイトのデータを書き込む
代わりに、書き込みカウンタ22のカウント値を余分に
 512だけカウントアップさせても同様に機能して全
ての圧縮データを伸張処理部5に転送することが可能と
なる。
In step 32, a predetermined value Y (for example, 512 bytes for one block) of extra data is written from the system control unit 6 to the memory 21. As a result, the write counter 22 and read counter 23 are
When the difference between the two count values becomes less than a predetermined value Y, the data remaining in the memory 21 is transferred to the host computer 1.
This means that all the compressed data has been transferred to the decompression processing section 5. Then, this step is executed to end the execution of this routine. still,
Even if the system control unit 6 increments the count value of the write counter 22 by an extra 512 instead of writing 512 bytes of data, it will function in the same way and all the compressed data can be transferred to the decompression processing unit 5. becomes.

【0026】かかる構成によれば、ホストコンピュータ
1によらなくてもシステム制御部6によりメモリ21に
残されたデータを出力させることもできる。次に第3実
施例について説明する。第3実施例は、システム制御部
6が読み出し終了ルーチンを実行し、強制的にイネーブ
ル信号を出力するものである。
According to this configuration, the data remaining in the memory 21 can be outputted by the system control section 6 without using the host computer 1. Next, a third embodiment will be described. In the third embodiment, the system control unit 6 executes a read end routine and forcibly outputs an enable signal.

【0027】図8のフローチャートに基づいて第3実施
例の読み出し終了ルーチンを説明する。ステップ41で
は、ホストコンピュータ1からの圧縮データの転送が終
了したかどうかを検知する。検知方法はステップ31と
同様である。ステップ42では、システム制御部6はデ
ータ出力可能信号制御部24にマスク信号を出力してこ
のルーチンを終了する。
The read end routine of the third embodiment will be explained based on the flowchart of FIG. In step 41, it is detected whether the transfer of compressed data from the host computer 1 has been completed. The detection method is the same as step 31. In step 42, the system control section 6 outputs a mask signal to the data output enable signal control section 24, and ends this routine.

【0028】このマスク信号がデータ出力可能信号制御
部24に入力されるとデータ出力可能信号は強制的にイ
ネーブルとなり、メモリ21内の全ての圧縮データを伸
張処理部5へ出力することが可能となる。そして書き込
みカウンタ22と読み出しカウンタ23の両カウント値
の差が0になった時、全ての圧縮データが伸張処理部5
に転送されたことになるのでデータ出力可能信号制御部
24はデータ出力可能信号をディセーブルにする。尚、
マスク信号が出力された時、伸張処理部5が画像サイズ
をカウントし、1画像の処理が終了した時点で読み出す
ことを止めることも可能である。
When this mask signal is input to the data output enable signal control section 24, the data output enable signal is forcibly enabled, and all compressed data in the memory 21 can be output to the decompression processing section 5. Become. When the difference between the count values of the write counter 22 and the read counter 23 becomes 0, all the compressed data is transferred to the decompression processing unit 5.
Therefore, the data output enable signal control unit 24 disables the data output enable signal. still,
It is also possible for the decompression processing section 5 to count the image size when the mask signal is output, and to stop reading when the processing of one image is completed.

【0029】尚、第1〜3実施例では、ホストコンピュ
ータ1との転送において(FULL−Y)フラグにより
制御していたが、この転送はブロック単位ではないため
EMPTY、FULLフラグにより制御してもよい。こ
の時は圧縮処理部及び伸張処理部5へのフラグとインタ
ーフェイス2へのフラグとで異なるフラグを持つことに
なる。
In the first to third embodiments, the transfer with the host computer 1 was controlled by the (FULL-Y) flag, but since this transfer is not in block units, even if it is controlled by the EMPTY and FULL flags. good. At this time, the flags sent to the compression processing unit and decompression processing unit 5 and the flags sent to the interface 2 will have different flags.

【0030】[0030]

【発明の効果】以上説明したように本発明によれば、伸
張処理部のデータの読み出しを読み出し単位で処理する
場合でも、ホストコンピュータからの一連の圧縮データ
の転送終了後、読み出し終了制御手段により全てのデー
タを伸張処理部へ出力させることが出来る。
As described above, according to the present invention, even when reading data from the decompression processing unit is processed in read units, the read end control means All data can be output to the decompression processing section.

【0031】またホストコンピュータからの一連の圧縮
データの転送終了後、ホストコンピュータから余分のデ
ータを転送することにより、書き込み手段と読み出しカ
ウント手段との両カウント値は所定値以下になり全ての
圧縮データが読み出し出来る。またホストコンピュータ
からの一連の圧縮データの転送終了後、制御信号出力手
段からデータを余分に出力することにより前記全ての圧
縮データが読み出し出来る。
Further, after the transfer of a series of compressed data from the host computer is completed, by transferring extra data from the host computer, both the count values of the write means and the read count means become less than a predetermined value, and all the compressed data are can be read. Further, after the transfer of a series of compressed data from the host computer is completed, all the compressed data can be read by outputting extra data from the control signal output means.

【0032】またホストコンピュータからの一連の圧縮
データの転送終了後、データ出力可能信号を強制的にイ
ネーブルとすることにより前記全ての圧縮データが読み
出し出来る。
Further, after the transfer of a series of compressed data from the host computer is completed, all the compressed data can be read by forcibly enabling the data output enable signal.

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

【図1】本発明のクレーム対応図[Figure 1] Claim correspondence diagram of the present invention

【図2】本発明のシステム構成図[Figure 2] System configuration diagram of the present invention

【図3】本発明の実施例の構成を示すブロック回路図FIG. 3 is a block circuit diagram showing the configuration of an embodiment of the present invention.


図4】図3のメモリのメモリ構造の説明図
[
Figure 4 is an explanatory diagram of the memory structure of the memory in Figure 3.

【図5】図3
の第1実施例を示すフローチャート
[Figure 5] Figure 3
Flowchart showing the first embodiment of

【図6】図5の読み
出し終了制御ルーチンを示すフローチャート
FIG. 6 is a flowchart showing the read end control routine in FIG. 5;

【図7】図3の第2実施例を示すフローチャートFIG. 7 is a flowchart showing the second embodiment of FIG. 3.

【図8
】図3の第3実施例を示すフローチャート
[Figure 8
] Flowchart showing the third embodiment of FIG. 3

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

1    ホストコンピュータ 2    インターフェイス 4    圧縮データ転送装置 5    伸張処理部 6    システム制御部 21    メモリ 22    書き込みカウンタ 23    読み出しカウンタ 1 Host computer 2 Interface 4 Compressed data transfer device 5 Decompression processing section 6 System control section 21 Memory 22 Write counter 23 Read counter

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】ホストコンピュータから出力された一連の
圧縮データを入力し、圧縮データを伸長する伸長処理部
の読み出し信号に基づいて、入力された順に前記伸長処
理部へ一連の圧縮データを単位データ量づつ出力する圧
縮データ転送装置において、前記ホストコンピュータか
ら圧縮データを入力して一時的に記憶する記憶手段と、
前記ホストコンピュータから記憶手段への圧縮データの
書き込み総数をカウントする書き込みカウント手段と、
前記記憶手段に記憶されているデータの伸張処理部への
読み出し総数をカウントする読み出しカウント手段と、
前記記憶手段に前記書き込みカウンタと読み出しカウン
タとの両カウント値に基づいて記憶手段に記憶されてい
るデータのデータ量を監視し、データ量が前記データ読
み出し単位以上の値に設定された所定値を越えている時
は記憶手段に出力するデータ出力可能信号をイネーブル
にして前記伸長処理部のデータの読み出しを可能にし、
所定値以下の時にデータ出力可能信号をディセーブルに
してデータの読み出しを禁止する制御信号出力手段と、
ホストコンピュータから一連の圧縮データの転送終了後
、前記記憶手段に記憶された全てのデータを伸張処理部
へ出力させる読み出し終了制御手段と、を設けたことを
特徴とする圧縮データ転送装置。
Claims: 1. A series of compressed data outputted from a host computer is inputted, and based on a read signal of an expansion processing unit that decompresses the compressed data, a series of compressed data is sent to the expansion processing unit in the order of input as unit data. A compressed data transfer device that outputs compressed data one by one, a storage means for inputting and temporarily storing compressed data from the host computer;
write counting means for counting the total number of writes of compressed data from the host computer to the storage means;
read counting means for counting the total number of reads of data stored in the storage means to the decompression processing unit;
The amount of data stored in the storage means is monitored based on the count values of both the write counter and the read counter, and the data amount is set to a predetermined value equal to or larger than the data read unit. When the data exceeds the limit, enable a data output enable signal to be outputted to the storage means to enable reading of data from the decompression processing section;
control signal output means for disabling the data output enable signal and prohibiting data reading when the value is below a predetermined value;
1. A compressed data transfer device comprising: readout end control means for outputting all data stored in the storage means to a decompression processing section after the transfer of a series of compressed data from a host computer is completed.
【請求項2】前記読み出し終了制御手段は、データ転送
終了時に前記一連の圧縮データに加えて前記ホストコン
ピュータから前記所定値以上の余分のデータを転送する
ことにより、全ての一連の圧縮データがデータ出力可能
信号のイネーブル状態で伸張処理部に読み出されるよう
に構成したことを特徴とする請求項1記載の圧縮データ
転送装置。
2. The read end control means transfers extra data of a predetermined value or more from the host computer in addition to the series of compressed data at the end of data transfer, so that all the series of compressed data are 2. The compressed data transfer device according to claim 1, wherein the compressed data transfer device is configured to be read out by the decompression processing unit in an enabled state of the output enable signal.
【請求項3】前記読み出し終了制御手段は、データ転送
終了時に前記一連の圧縮データに加えて圧縮データ転送
装置から前記所定値以上の余分のデータを転送するよう
に構成したことを特徴とする請求項1記載の圧縮データ
転送装置。
3. The read end control means is configured to transfer extra data exceeding the predetermined value from the compressed data transfer device in addition to the series of compressed data when the data transfer ends. The compressed data transfer device according to item 1.
【請求項4】前記読み出し終了制御手段は、全ての一連
の圧縮データの転送終了後に制御信号出力手段から出力
するデータ出力可能信号をイネーブルにするように構成
したことを特徴とする特徴とする請求項1記載の圧縮デ
ータ転送装置。
4. The read end control means is configured to enable a data output enable signal output from the control signal output means after the transfer of all series of compressed data is completed. The compressed data transfer device according to item 1.
JP03100772A 1991-05-02 1991-05-02 Compressed data transfer device Expired - Fee Related JP3091917B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03100772A JP3091917B2 (en) 1991-05-02 1991-05-02 Compressed data transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03100772A JP3091917B2 (en) 1991-05-02 1991-05-02 Compressed data transfer device

Publications (2)

Publication Number Publication Date
JPH04329764A true JPH04329764A (en) 1992-11-18
JP3091917B2 JP3091917B2 (en) 2000-09-25

Family

ID=14282781

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03100772A Expired - Fee Related JP3091917B2 (en) 1991-05-02 1991-05-02 Compressed data transfer device

Country Status (1)

Country Link
JP (1) JP3091917B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8562318B1 (en) 2009-08-20 2013-10-22 Exponential Technologies, Inc. Multiphase pump with high compression ratio
US8602758B2 (en) 2008-09-17 2013-12-10 Exponential Technologies, Inc. Indexed positive displacement rotary motion device
US10975869B2 (en) 2017-12-13 2021-04-13 Exponential Technologies, Inc. Rotary fluid flow device
US11168683B2 (en) 2019-03-14 2021-11-09 Exponential Technologies, Inc. Pressure balancing system for a fluid pump

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8602758B2 (en) 2008-09-17 2013-12-10 Exponential Technologies, Inc. Indexed positive displacement rotary motion device
US9447688B2 (en) 2008-09-17 2016-09-20 Exponential Technologies, Inc. Indexed positive displacement rotary motion device
US8562318B1 (en) 2009-08-20 2013-10-22 Exponential Technologies, Inc. Multiphase pump with high compression ratio
US10975869B2 (en) 2017-12-13 2021-04-13 Exponential Technologies, Inc. Rotary fluid flow device
US11614089B2 (en) 2017-12-13 2023-03-28 Exponential Technologies, Inc. Rotary fluid flow device
US11168683B2 (en) 2019-03-14 2021-11-09 Exponential Technologies, Inc. Pressure balancing system for a fluid pump

Also Published As

Publication number Publication date
JP3091917B2 (en) 2000-09-25

Similar Documents

Publication Publication Date Title
KR100277422B1 (en) Image information processing device and coding device
US5751860A (en) Method for compressing and decompressing digital image data
US5761345A (en) Image processing apparatus suitable for multistage compression
US20040218820A1 (en) Faster lossless rotation of JPEG iamges
US5309528A (en) Image digitizer including pixel engine
US5513301A (en) Image compression and decompression apparatus with reduced frame memory
JPH04329764A (en) Compression data transfer device
US6473527B1 (en) Module and method for interfacing analog/digital converting means and JPEG compression means
JP2918360B2 (en) Inverse quantization method and image data restoration device
JPH09154021A (en) Device and method for controlling printing
CN101754034B (en) Uncompressing system of discrete cosine transform compression diagram data with transparent attribute and method
US6816280B1 (en) ALDC with zero clear after read
JPH10341437A (en) Image processing method and device therefor
JPH04326654A (en) Picture data compression expansion device
JPH0488749A (en) Picture processor
JP3170313B2 (en) Image processing device
US6636639B1 (en) Image recording apparatus, image recording method and storage medium
JP7481167B2 (en) Compressed data decompression system, memory system, and data decompression method
JP2003092674A (en) Image processing apparatus and image processing method
JPH09219782A (en) Printing data generating device
JPH06113142A (en) Method and device for processing picture
JP2577705B2 (en) Image compression / expansion apparatus and control method thereof
JP3233480B2 (en) Image compression / expansion circuit device
JP2965084B2 (en) Image data compression method
JPS595778A (en) Compression system for half-tone picture data

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070728

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080728

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090728

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100728

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees