JP2577705B2 - Image compression / expansion apparatus and control method thereof - Google Patents

Image compression / expansion apparatus and control method thereof

Info

Publication number
JP2577705B2
JP2577705B2 JP6196185A JP19618594A JP2577705B2 JP 2577705 B2 JP2577705 B2 JP 2577705B2 JP 6196185 A JP6196185 A JP 6196185A JP 19618594 A JP19618594 A JP 19618594A JP 2577705 B2 JP2577705 B2 JP 2577705B2
Authority
JP
Japan
Prior art keywords
image data
compression
image
temporary storage
control
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 - Lifetime
Application number
JP6196185A
Other languages
Japanese (ja)
Other versions
JPH0844534A (en
Inventor
吉一郎 柏木
美裕 森
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 Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP6196185A priority Critical patent/JP2577705B2/en
Publication of JPH0844534A publication Critical patent/JPH0844534A/en
Application granted granted Critical
Publication of JP2577705B2 publication Critical patent/JP2577705B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータ等の情報
処理機器の拡張機能として、静止画もしくは動画など画
像の圧縮及び伸長を行なう画像圧縮伸長装置を構成する
際の該装置とその制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image compression / decompression device for compressing and decompressing an image such as a still image or a moving image as an extended function of an information processing device such as a computer, and a control method thereof. .

【0002】[0002]

【従来の技術】画像の圧縮及び伸長といった機能を実現
する際に、その機能を実現するアルゴリズムを選択する
ことができるということより、専用のハードウェアで処
理することによる処理速度の向上に大きなメリットがあ
る。一方、種々の画像処理やその他様々な機能を実現す
るには、コンピュータのようにその演算アルゴリズムを
自由に設定できる装置を使用する方が便利である。その
ため、画像の圧縮や伸長機能を、情報処理機器に拡張あ
るいは内臓のハードウェア機能として持たせることが多
い。
2. Description of the Related Art When realizing functions such as image compression and decompression, it is possible to select an algorithm for realizing the functions, which is a great advantage in improving the processing speed by processing with dedicated hardware. There is. On the other hand, in order to realize various image processing and other various functions, it is more convenient to use a device such as a computer that can freely set its operation algorithm. For this reason, an information processing device is often provided with an image compression or expansion function as an extended or built-in hardware function.

【0003】このような考え方により構成された従来技
術による画像圧縮伸長装置の一例としては、図6に示す
ようなものがあった。以下、図6を参照して、その画像
圧縮伸長装置について説明する。ここで、説明をわかり
易くするため、伸長を行なう場合についてのみ記述す
る。
FIG. 6 shows an example of a conventional image compression / expansion apparatus constructed based on the above concept. Hereinafter, the image compression / decompression device will be described with reference to FIG. Here, in order to make the description easy to understand, only the case where decompression is performed will be described.

【0004】図6において、61は圧縮された画像デー
タを伸長するJPEG圧縮伸長装置、62は伸長された
画像データを記憶する画像メモリ、63はFIFOメモ
リ、64は画像メモリ62とFIFOメモリ63間にお
ける画像データの転送を制御する画像データ転送制御装
置、65は圧縮データを蓄積するメインメモリ、66は
圧縮伸長装置61とメインメモリ65間において圧縮デ
ータを転送するシステムバス、67は圧縮伸長装置61
とメインメモリ65間における圧縮データの転送を制御
するCPU、68は圧縮データを一時記憶する圧縮デー
タバッファである。
In FIG. 6, reference numeral 61 denotes a JPEG compression / expansion device for expanding compressed image data, 62 denotes an image memory for storing expanded image data, 63 denotes a FIFO memory, and 64 denotes a memory between the image memory 62 and the FIFO memory 63. , A main memory 65 for storing compressed data, a system bus 66 for transferring compressed data between the compression / expansion device 61 and the main memory 65, and a compression / expansion device 61
A CPU 68 for controlling the transfer of the compressed data between the main memory 65 and the main memory 65, and a compressed data buffer 68 for temporarily storing the compressed data.

【0005】更に、JPEG圧縮伸長装置61、画像メ
モリ62、FIFOメモリ63、画像データ転送制御装
置64、圧縮データバッファ68により圧縮伸長システ
ム60が構成され、メインメモリ65、システムバス6
6、CPU67によりホストシステム69が構成され
る。
Further, a compression / expansion system 60 is constituted by a JPEG compression / expansion device 61, an image memory 62, a FIFO memory 63, an image data transfer control device 64, and a compression data buffer 68, and a main memory 65, a system bus 6
6. A host system 69 is constituted by the CPU 67.

【0006】ここで使用する画像の圧縮伸長のアルゴリ
ズムには、可変長符号化の技術が利用されていることが
多く、圧縮データ量とそれを伸長した際の伸長データ量
は比例しない。このことはJPEGアルゴリズムに対し
てもいうことができる。その場合は、符号化復号化装置
と画像メモリとの間にFIFOメモリ63のような画像
データを一時記憶する装置が必要不可欠となる。
In the image compression / decompression algorithm used here, a variable-length coding technique is often used, and the amount of compressed data and the amount of decompressed data when the data is decompressed are not proportional. This can be said for the JPEG algorithm. In that case, a device for temporarily storing image data such as a FIFO memory 63 is indispensable between the encoding / decoding device and the image memory.

【0007】次に、このように構成された画像圧縮伸長
装置の動作について説明する。CPU67は、メインメ
モリ65に記憶されている圧縮データの1フレーム分を
まとめて、或はその一部を圧縮データバッファ68に転
送する際の制御を行なう。この転送が終了した時点にお
いて伸長処理が開始される。伸長処理では、圧縮データ
バッファ68からJPEG圧縮伸長装置61に対し圧縮
データが送られて順次伸長され、伸長されたデータは画
像データとしてFIFOメモリ63に一時記憶される。
Next, the operation of the image compression / decompression device configured as described above will be described. The CPU 67 controls the transfer of one frame of the compressed data stored in the main memory 65 or a part of the compressed data to the compressed data buffer 68. Decompression processing is started when this transfer is completed. In the decompression process, compressed data is sent from the compressed data buffer 68 to the JPEG compression / decompression device 61 and sequentially decompressed, and the decompressed data is temporarily stored in the FIFO memory 63 as image data.

【0008】FIFOメモリ63に一時記憶された画像
データは画像メモリ62に転送される。この時、画像デ
ータ転送制御装置64は、FIFOメモリ63がオーバ
ーフローを起こさないよう圧縮データバッファ68から
JPEG圧縮伸長装置61に対する圧縮データの転送速
度を制御し、同じくアンダーフローが起こらないようF
IFOメモリ63から画像メモリ62に対する画像デー
タの転送速度を制御する。
The image data temporarily stored in the FIFO memory 63 is transferred to the image memory 62. At this time, the image data transfer control device 64 controls the transfer speed of the compressed data from the compressed data buffer 68 to the JPEG compression / decompression device 61 so that the FIFO memory 63 does not overflow.
The transfer rate of image data from the IFO memory 63 to the image memory 62 is controlled.

【0009】これに加え、メインメモリ65から圧縮デ
ータバッファ68に対し、画像データを1フレーム分ま
とめて転送するのではなく部分的に転送する場合、CP
U67は圧縮データを転送する際、圧縮データバッファ
68がオーバーフローやアンダーフローを起こさないよ
うな速度で転送するようその転送を制御する。FIFO
メモリ63のオーバーフロー及びアンダーフローの防止
制御は、CPU67がFIFOメモリ63の状態を見な
がら画像データ転送制御装置64を制御して行なう方法
もある。
In addition, when the image data is partially transferred from the main memory 65 to the compressed data buffer 68 instead of being collectively transferred for one frame, the CP
When transferring the compressed data, the U67 controls the transfer so that the compressed data buffer 68 transfers the data at a speed that does not cause overflow or underflow. FIFO
The overflow and underflow prevention control of the memory 63 may be performed by controlling the image data transfer control device 64 while the CPU 67 checks the state of the FIFO memory 63.

【0010】[0010]

【発明が解決しようとする課題】しかし、上記のように
構成された従来の画像圧縮伸長装置における圧縮伸長シ
ステム側に圧縮データを一時記憶するバッファを持たせ
るという方法では、以下のような問題を有する。第1
に、この圧縮データバッファ68はそれ自体と、その制
御やインタフェースを行なうために必要な周辺回路の規
模は決して小さくはなく、装置を大型化してコストアッ
プを引き起こすことになる。
However, the method of providing a buffer for temporarily storing compressed data on the compression / expansion system side of the conventional image compression / expansion apparatus configured as described above has the following problems. Have. First
In addition, the size of the compressed data buffer 68 itself and the peripheral circuits required for controlling and interfacing the compressed data buffer 68 are not small, and the size of the apparatus is increased and the cost is increased.

【0011】第2に、ホストシステム67側あるいは圧
縮伸長システム60側において、FIFOメモリ63の
アンダーフロー及びオーバーフローを防止するその制御
が複雑となるか、もしくは、バッファリングを行なうこ
とにより処理のオーバーヘッドが大きくなって処理速度
が低下することにもなる。伸長速度を、1フレーム分全
てのデータがメインメモリ65から画像メモリ62に転
送されるまでのトータルの速度として見た場合、この伸
長速度を最も速くするには、メインメモリ65から圧縮
データバッファ68に対する圧縮データの転送と、圧縮
データバッファ68からJPEG圧縮伸長装置61に対
する圧縮データの転送と、JPEG圧縮伸長装置61に
おける伸長と、FIFOメモリ63から画像メモリ62
に対する画像データの転送の全てがバランス良く行なわ
れなければならない。
Second, on the host system 67 side or on the compression / decompression system 60 side, the control for preventing the underflow and overflow of the FIFO memory 63 becomes complicated, or the processing overhead is increased by performing buffering. It also increases and the processing speed decreases. Assuming that the decompression speed is the total speed until all the data for one frame is transferred from the main memory 65 to the image memory 62, in order to make the decompression speed the fastest, the main memory 65 needs to transmit the compressed data buffer 68 , Transfer of compressed data from the compressed data buffer 68 to the JPEG compression / decompression device 61, decompression by the JPEG compression / decompression device 61, and transmission from the FIFO memory 63 to the image memory 62.
All the transfer of the image data to the data must be performed in a well-balanced manner.

【0012】しかし、可変長符号を復号化しているの
で、JPEG圧縮伸長装置61に入力された圧縮データ
毎に、それがどれ程のサイズに伸長されてFIFOメモ
リに対して出力されるかの予測ができないため、これら
全ての転送レートがJPEG圧縮伸長装置61における
刻々と変化するその処理速度に追従することが困難とな
る。
However, since the variable-length code is decoded, for each compressed data input to the JPEG compression / expansion device 61, a prediction is made of how large the data is expanded and output to the FIFO memory. Therefore, it is difficult for all of these transfer rates to follow the ever-changing processing speed of the JPEG compression / decompression device 61.

【0013】第3に、圧縮データバッファ68を使用す
ると、ホストシステム69側と圧縮伸長システム60間
が実質的に切り放されるため、ホストシステム69から
圧縮伸長システム60側の圧縮伸長処理を制御すること
が困難である。すなわち、圧縮データバッファ68がメ
インメモリ65から画像メモリ62までの転送経路の途
中に入ることにより、データ転送の速度に変化が生じる
部分は、圧縮データバッファ68と、JPEG圧縮伸長
装置61と、FIFOメモリ63の3箇所となり、これ
らの転送速度をトータルでコントロールすることは容易
でない。
Third, when the compressed data buffer 68 is used, the space between the host system 69 and the compression / expansion system 60 is substantially cut off. Is difficult to do. That is, when the compressed data buffer 68 enters the middle of the transfer path from the main memory 65 to the image memory 62, the portion where the data transfer speed changes is caused by the compressed data buffer 68, the JPEG compression / decompression device 61, and the FIFO. There are three locations in the memory 63, and it is not easy to control these transfer rates in total.

【0014】第4に、圧縮データバッファ68を使用し
ない場合においても、FIFOメモリ63のアンダーフ
ロー及びオーバーフローを防止する制御はホストシステ
ム69のみで行なうのが一般的で、これをマルチプロセ
スのオペレーティングシステムに適用すると、FIFO
メモリ63のアンダーフローもしくはオーバーフローを
防止する制御ができない期間が発生し、FIFOメモリ
63内の画像データが重複書込みもしくは重複読み出し
され、画像データが壊れる恐れがある。
Fourth, even when the compressed data buffer 68 is not used, control for preventing underflow and overflow of the FIFO memory 63 is generally performed only by the host system 69. When applied to
There occurs a period during which the control for preventing the underflow or overflow of the memory 63 cannot be performed, and the image data in the FIFO memory 63 is redundantly written or read, and the image data may be damaged.

【0015】本発明は、上記の問題に鑑みてなされたも
ので、コンピュータ等の情報処理機器の拡張機能とし
て、静止画もしくは動画などの画像データの圧縮伸長装
置を構成する際、圧縮伸長装置の構成及び制御をより単
純化かつ小規模とし、画像データを破壊することなく圧
縮伸長装置の速度制御を任意に行なうことができる画像
圧縮伸長装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems, and has been described as an extended function of an information processing device such as a computer when configuring a compression / expansion device for image data such as a still image or a moving image. It is an object of the present invention to provide an image compression / expansion apparatus in which the configuration and control are made simpler and smaller, and the speed of the compression / expansion apparatus can be arbitrarily controlled without destroying image data.

【0016】[0016]

【課題を解決するための手段】本発明による画像圧縮伸
長装置は、上記の目的を達成するため、原画像データも
しくは伸長された画像データを記憶する画像メモリと、
可変長符号化技術に基づき前記画像データを圧縮するか
圧縮して得られた圧縮データを伸長する圧縮伸長手段
と、画像メモリから圧縮伸長手段にあるいは圧縮伸長手
段から画像メモリに転送する画像データを先読み先出し
形式で一時記憶し、第1乃至第4の所定のしきい値を基
準として内部に記憶するデータ記憶量の多少を知らせる
第1乃至第4の制御信号を発生する画像データ一時記憶
手段と、第1及び第2の制御信号に基づき画像メモリと
画像データ一時記憶手段との間の画像データの転送を制
御する画像データ転送制御手段と、圧縮データを蓄積す
るメインメモリと、圧縮伸長手段とメインメモリとの間
で圧縮データを転送するシステムバス手段と、第3及び
第4の制御信号に基づき圧縮伸長手段とメインメモリと
の間の圧縮データの転送を制御する圧縮伸長制御手段と
を備えたことを特徴とするものである。
To achieve the above object, an image compression / decompression apparatus according to the present invention comprises: an image memory for storing original image data or expanded image data;
Compression / expansion means for compressing or decompressing the image data obtained based on the variable length coding technique, and image data to be transferred from the image memory to the compression / expansion means or from the compression / expansion means to the image memory. Image data temporary storage means for temporarily storing data in a read-ahead read-out format, and for generating first to fourth control signals for notifying the amount of data to be stored therein based on first to fourth predetermined threshold values; Image data transfer control means for controlling transfer of image data between the image memory and the image data temporary storage means based on the first and second control signals; a main memory for storing compressed data; A system bus means for transferring compressed data to and from the main memory; and a system bus means for transferring compressed data between the compression and decompression means and the main memory based on third and fourth control signals. It is characterized in that a compression and expansion control means for controlling the transmission.

【0017】また、本発明による画像圧縮伸長装置は、
上記の目的を達成するため、画像データ転送制御手段
が、画像データの圧縮動作時において、第1の制御信号
により、画像データ一時記憶手段における画像データの
記憶量が第1のしきい値を下まわっていることを認めた
ときにのみ、圧縮すべき画像データを画像メモリから画
像データ一時記憶手段に転送し、圧縮データの伸長動作
時において、第2の制御信号により、画像データ一時記
憶手段における画像データの記憶量が第2のしきい値を
上まわっていることを認めたときにのみ、伸長した画像
データを画像データ一時記憶手段から画像メモリに転送
するよう制御することを特徴とするものである。
Further, the image compression / decompression device according to the present invention comprises:
In order to achieve the above object, the image data transfer control means determines that the amount of image data stored in the image data temporary storage means falls below the first threshold value by the first control signal during the image data compression operation. Only when it is recognized that the image data has been rotated, the image data to be compressed is transferred from the image memory to the image data temporary storage means. Only when it is recognized that the storage amount of the image data exceeds the second threshold value, is controlled to transfer the expanded image data from the image data temporary storage means to the image memory. It is.

【0018】また、本発明による画像圧縮伸長装置は、
上記の目的を達成するため、圧縮伸長制御手段が、画像
データの圧縮動作時において、第3の制御信号により、
画像データ一時記憶手段における画像データの記憶量が
第3のしきい値を上まわっていることを確認したときに
のみ、圧縮すべき画像データを画像データ一時記憶手段
から圧縮伸長手段に転送し、圧縮データの伸長動作時に
おいて、第4の制御信号により、画像データ一時記憶手
段における画像データの記憶量が第4のしきい値を下ま
わっていることを確認したときにのみ、メインメモリか
ら圧縮伸長手段を介して伸長した画像データを画像デー
タ一時記憶手段に転送するよう制御することを特徴とす
るものである。
Further, the image compression / decompression device according to the present invention comprises:
In order to achieve the above object, the compression / decompression control means performs a third control signal during a compression operation of image data.
Only when it is confirmed that the storage amount of the image data in the image data temporary storage means exceeds the third threshold value, the image data to be compressed is transferred from the image data temporary storage means to the compression / decompression means, Only when it is confirmed by the fourth control signal that the storage amount of the image data in the image data temporary storage means is below the fourth threshold value during the expansion operation of the compressed data, the compression from the main memory is performed. It is characterized in that control is performed such that the image data expanded through the expansion means is transferred to the image data temporary storage means.

【0019】また、本発明による画像圧縮伸長装置は、
上記の目的を達成するため、画像データ転送制御手段及
び圧縮伸長制御手段による画像データの転送制御をそれ
ぞれ独立して行なうようにしたことを特徴とするもの
で、画像データ転送制御手段及び圧縮伸長制御手段が相
互に相手を監視することなく制御することができるの
で、装置が非常に簡単となる。
Further, the image compression / decompression device according to the present invention comprises:
In order to achieve the above object, the image data transfer control means and the compression / decompression control means independently control the transfer of image data. The image data transfer control means and the compression / decompression control means The device is very simple because the means can be controlled without monitoring each other.

【0020】更に、本発明による画像圧縮伸長装置の制
御方法は、上記の目的を達成するため、画像データ圧縮
の際、画像データ転送制御手段の制御により、画像デー
タを画像メモリから読みだして画像データ一時記憶手段
に一時記憶し、圧縮伸長制御手段の制御により、一時記
憶した画像データを圧縮処理してメインメモリに記憶
し、圧縮データ伸長の際、圧縮伸長制御手段の制御によ
り、メインメモリから読みだした圧縮データを伸長処理
して画像データ一時記憶手段に一時記憶し、画像データ
転送制御手段の制御により、伸長した画像データを画像
メモリに記憶するようにした画像圧縮伸長装置の制御方
法であって、画像データ一時記憶手段が第1乃至第4の
所定のしきい値を基準として内部に記憶するデータ記憶
量の多少を知らせる第1乃至第4の制御信号を発生し、
画像データ転送制御手段による制御が第1及び第2の制
御信号に基づき画像メモリと画像データ一時記憶手段と
の間の画像データの転送を制御し、圧縮伸長制御手段に
よる制御が第3及び第4の制御信号に基づき圧縮伸長手
段とメインメモリとの間の圧縮データの転送を制御する
ようにしたことを特徴とするものである。
Furthermore, in the control method of the image compression / decompression device according to the present invention, in order to achieve the above object, at the time of image data compression, the image data is read from the image memory under the control of the image data transfer control means. The image data temporarily stored is temporarily stored in the data temporary storage means, and the temporarily stored image data is compressed and stored in the main memory under the control of the compression / decompression control means. The read compression data is decompressed and temporarily stored in the image data temporary storage means, and under the control of the image data transfer control means, the control method of the image compression / decompression device is such that the decompressed image data is stored in the image memory. Then, the image data temporary storage means informs the user of the amount of data stored internally based on the first to fourth predetermined threshold values. 1 to generate a fourth control signal,
The control by the image data transfer control means controls the transfer of image data between the image memory and the image data temporary storage means based on the first and second control signals, and the control by the compression / decompression control means controls the third and fourth control signals. The transfer of compressed data between the compression / expansion means and the main memory is controlled based on the control signal.

【0021】また、本発明による画像圧縮伸長装置の制
御方法は、上記の目的を達成するため、画像データ転送
制御手段による制御に基づき、画像データの圧縮動作時
において、第1の制御信号により、画像データ一時記憶
手段における画像データの記憶量が第1のしきい値を下
まわっていることを認めたときにのみ、圧縮すべき画像
データを画像メモリから画像データ一時記憶手段に転送
し、圧縮データの伸長動作時において、第2の制御信号
により、画像データ一時記憶手段における画像データの
記憶量が第2のしきい値を上まわっていることを認めた
ときにのみ、伸長した画像データを画像データ一時記憶
手段から画像メモリに転送するよう制御することを特徴
とするものである。
Further, in order to achieve the above object, the control method of the image compression / decompression device according to the present invention, based on the control by the image data transfer control means, uses the first control signal during the image data compression operation. The image data to be compressed is transferred from the image memory to the image data temporary storage means only when it is recognized that the storage amount of the image data in the image data temporary storage means is less than the first threshold value. During the data decompression operation, the decompressed image data is deleted only when it is recognized by the second control signal that the storage amount of the image data in the image data temporary storage means exceeds the second threshold value. The image data is temporarily transferred from the image data temporary storage means to the image memory.

【0022】また、本発明による画像圧縮伸長装置の制
御方法は、上記の目的を達成するため、圧縮伸長制御手
段による制御に基づき、画像データの圧縮動作時におい
て、画像データ一時記憶手段からメインメモリに対し圧
縮データの転送を制御する度毎に画像データ一時記憶手
段に記憶されている画像データの記憶量を第3の制御信
号により確認し、画像データ一時記憶手段における画像
データの記憶量が第3のしきい値を上まわっていること
を確認したときにのみ、圧縮すべき画像データを画像デ
ータ一時記憶手段から圧縮伸長手段に転送し、圧縮デー
タの伸長動作時において、メインメモリから画像データ
一時記憶手段に対し圧縮データの転送を制御する度毎に
画像データ一時記憶手段に記憶されている画像データの
記憶量を第4の制御信号により確認し、画像データ一時
記憶手段における画像データの記憶量が第4のしきい値
を下まわっていることを確認したときにのみ、メインメ
モリから圧縮伸長手段を介して伸長した画像データを画
像データ一時記憶手段に転送するよう制御することを特
徴とするものである。
In order to achieve the above object, the control method of the image compression / expansion apparatus according to the present invention is based on the control of the compression / expansion control means, and during the image data compression operation, the image data temporary storage means is transferred from the main memory to the main memory. Each time the transfer of the compressed data is controlled, the storage amount of the image data stored in the image data temporary storage means is confirmed by the third control signal, and the storage amount of the image data in the image data temporary storage means The image data to be compressed is transferred from the image data temporary storage means to the compression / decompression means only when it is confirmed that the threshold value exceeds the threshold value of 3. Each time the transfer of the compressed data to the temporary storage means is controlled, the storage amount of the image data stored in the image data temporary storage means is changed to a fourth control. Only when it is confirmed by the signal that the storage amount of the image data in the image data temporary storage means is below the fourth threshold value, the image data expanded from the main memory via the compression / expansion means is deleted. It is characterized in that the image data is controlled to be transferred to the image data temporary storage means.

【0023】また、本発明による画像圧縮伸長装置の制
御方法は、上記の目的を達成するため、画像データ転送
制御手段及び圧縮伸長制御手段による画像データの転送
制御をそれぞれ独立して行なうようにしたことを特徴と
するもので、画像データ転送制御手段及び圧縮伸長制御
手段が相互に相手を監視することなく制御することがで
きるので、制御が非常に簡単となる。
Further, in the control method of the image compression / decompression device according to the present invention, in order to achieve the above object, the image data transfer control means and the image data transfer control by the compression / decompression control means are independently performed. Since the image data transfer control means and the compression / decompression control means can control each other without monitoring each other, the control becomes very simple.

【0024】[0024]

【作用】本発明による画像圧縮伸長装置及びその制御方
法は、上記のように構成し機能するようにしたことによ
り、圧縮データ用のバッファおよびその周辺回路を必要
としないため、回路規模を削減することができる。ま
た、ホストシステムによる制御は、圧縮時には圧縮伸長
システムの画像データ一時記憶手段のアンダーフローの
防止と、伸長時にはオーバーフローの防止についてのみ
でよく、その上、常にアンダーフローとオーバーフロー
を監視している必要がなく、ホストシステムによる制御
が時分割で行なわれても良いため、任意の速度で効率よ
く画像の圧縮伸長を行なうことができる。
The image compression / expansion apparatus and the control method thereof according to the present invention are constructed and operated as described above, so that a buffer for compressed data and its peripheral circuits are not required, so that the circuit scale is reduced. be able to. The control by the host system only needs to prevent underflow of the image data temporary storage means of the compression / decompression system during compression and prevention of overflow during decompression. In addition, it is necessary to constantly monitor underflow and overflow. However, since the control by the host system may be performed in a time-division manner, the image can be efficiently compressed and decompressed at an arbitrary speed.

【0025】更に、ホストシステム側のメインメモリを
圧縮データバッファとして使用することにより、画像サ
イズや画像の圧縮率の変動による圧縮データサイズの変
動を考慮する必要もない。このように、画像データの転
送速度のトータルコントロールが非常に簡単となり、重
複書込み等による画像データの破壊の恐れもない。
Further, by using the main memory of the host system as a compressed data buffer, it is not necessary to consider a change in the compressed data size due to a change in the image size or the image compression ratio. In this way, the total control of the transfer speed of the image data becomes very simple, and there is no risk of destruction of the image data due to duplicate writing or the like.

【0026】[0026]

【実施例】以下、添付図面、図1、図2、図3、図4、
及び図5に基づき、本発明の一実施例による画像圧縮伸
長装置及びその制御方法について詳細に説明する。図1
は本発明の一実施例における画像圧縮伸長装置の構成を
示すブロック図、図2は本実施例における画像圧縮伸長
装置による圧縮動作時の処理の流れを示す図であって、
図2の(a)は圧縮伸長制御手段による画像データ一時
記憶手段のアンダーフローを防止する制御の流れ図、図
2の(b)は画像データ転送制御手段による画像データ
一時記憶手段のオーバーフローを防止する制御の流れ図
である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The accompanying drawings, FIGS.
An image compression / decompression apparatus according to an embodiment of the present invention and a control method thereof will be described in detail with reference to FIG. FIG.
FIG. 2 is a block diagram illustrating a configuration of an image compression / decompression device according to an embodiment of the present invention. FIG. 2 is a diagram illustrating a flow of processing during a compression operation performed by the image compression / decompression device according to the present embodiment.
FIG. 2A is a flow chart of control for preventing an underflow of the image data temporary storage means by the compression / decompression control means, and FIG. 2B is a flowchart for preventing an overflow of the image data temporary storage means by the image data transfer control means. It is a flowchart of control.

【0027】更に、図3は本実施例における画像圧縮伸
長装置による伸長動作時の処理の流れを示す図であっ
て、図3の(a)は圧縮伸長制御手段による画像データ
一時記憶手段のオーバーフローを防止する制御の流れ
図、図3の(b)は画像データ転送制御手段による画像
データ一時記憶手段のアンダーフローを防止する制御の
流れ図、図4は本実施例における画像圧縮伸長装置が圧
縮動作時に、画像データ一時記憶手段が画像データを記
憶する記憶量の範囲と、圧縮伸長制御手段と画像データ
転送制御手段の各々が管理するしきい値を示す概念図、
図5は本実施例における画像圧縮伸長装置が伸長動作時
に、画像データ一時記憶手段が画像データを記憶する記
憶量の範囲と、圧縮伸長制御手段と画像データ転送制御
手段の各々が管理するしきい値を示す概念図である。
FIG. 3 is a diagram showing the flow of processing during the decompression operation by the image compression / decompression device in this embodiment. FIG. 3 (a) shows the overflow of the image data temporary storage means by the compression / decompression control means. 3 (b) is a flowchart of control for preventing an underflow of the image data temporary storage means by the image data transfer control means, and FIG. 4 is a flow chart of the control when the image compression / expansion apparatus in the present embodiment performs a compression operation. A conceptual diagram showing a range of a storage amount in which image data temporary storage means stores image data, and a threshold value managed by each of the compression / decompression control means and the image data transfer control means,
FIG. 5 shows a range of a storage amount in which the image data temporary storage means stores the image data when the image compression / expansion apparatus in the present embodiment performs the expansion operation, and a threshold managed by each of the compression / decompression control means and the image data transfer control means. It is a conceptual diagram which shows a value.

【0028】まず、図1により、本発明の一実施例にお
ける画像圧縮伸長装置の構成について説明する。図1に
おいて、11は静止画像もしくは動画像などの画像デー
タを圧縮伸長する圧縮伸長手段、12は源画像データも
しくは伸長された画像データを記憶する画像メモリ、1
3は画像メモリ12から圧縮伸長手段11あるいは圧縮
伸長手段11から画像メモリ12に転送する画像データ
を先読み先出し形式で一時記憶する画像データ一時記憶
手段、14は画像メモリ12と画像データ一時記憶手段
13との間における画像データの転送を制御する画像デ
ータ転送制御手段、15は圧縮データを蓄積するメイン
メモリである。更に、16は圧縮伸長手段11とメイン
メモリ15間の圧縮データを転送するシステムバス手
段、17は圧縮伸長手段11とメインメモリ15間にお
ける圧縮データの転送を制御する圧縮伸長制御手段であ
る。
First, the configuration of an image compression / decompression device according to an embodiment of the present invention will be described with reference to FIG. In FIG. 1, reference numeral 11 denotes a compression / expansion means for compressing / expanding image data such as a still image or a moving image; 12, an image memory for storing source image data or expanded image data;
Reference numeral 3 denotes an image data temporary storage means for temporarily storing image data to be transferred from the image memory 12 to the compression / expansion means 11 or from the compression / expansion means 11 to the image memory 12 in a prefetching / readout format; And 15 is a main memory for storing compressed data. Further, 16 is a system bus means for transferring compressed data between the compression / expansion means 11 and the main memory 15, and 17 is a compression / expansion control means for controlling the transfer of compressed data between the compression / expansion means 11 and the main memory 15.

【0029】以下、図1を参照して、上記のように構成
された本実施例による画像圧縮伸長装置ついて、その動
作を説明する。なお、以下の説明において、圧縮伸長制
御手段17、メインメモリ15、及びシステムバス手段
16をまとめてホストシステム19と称し、圧縮伸長手
段11、画像メモリ12、画像データ一時記憶手段1
3、及び画像データ転送制御手段14をまとめて圧縮伸
長システム10と称することとする。
The operation of the image compression / decompression apparatus according to the present embodiment having the above-described configuration will be described below with reference to FIG. In the following description, the compression / decompression control means 17, the main memory 15, and the system bus means 16 are collectively referred to as a host system 19, and the compression / decompression means 11, the image memory 12, and the image data temporary storage means 1
3, and the image data transfer control means 14 are collectively referred to as a compression / decompression system 10.

【0030】圧縮の場合、画像データ一時記憶手段13
が記憶している画像データが一定の量を上回った際、画
像データ一時記憶手段13が画像データ転送制御手段1
4にこれを伝え、画像データ転送制御手段14は画像メ
モリ12から読み出した画像データの画像データ一時記
憶手段13に対する書き込みを停止し、画像データ一時
記憶手段13が記憶している画像データが一定量を下回
った際には画像データ一時記憶手段13に対する書き込
みを再開始する。
In the case of compression, the image data temporary storage means 13
When the stored image data exceeds a certain amount, the image data temporary storage unit 13 stores the image data in the image data transfer control unit 1.
4, the image data transfer control means 14 stops writing the image data read from the image memory 12 to the image data temporary storage means 13, and the image data temporary storage means 13 When the value falls below the threshold, the writing to the image data temporary storage unit 13 is restarted.

【0031】これとは独立して、圧縮伸長制御手段17
は、圧縮伸長手段11からメインメモリ15に対するシ
ステムバス手段16を介して行なわれる圧縮データの転
送を制御する度毎に画像データ一時記憶手段13に記憶
されている画像データ量を確認し、記憶されている画像
データが一定の量を下回ったときには、圧縮伸長手段1
1からメインメモリ15に対する圧縮データの転送制御
は行なわず、画像データ一時記憶手段13に記憶されて
いる画像データ記憶量の確認のみを行い、記憶されてい
る画像データが一定の量を上回ったことを確認したとき
に、始めて、再び圧縮伸長手段11からメインメモリ1
5に対し圧縮データを転送する制御が行なわれる。
Independently of this, the compression / decompression control means 17
Checks the amount of image data stored in the image data temporary storage means 13 every time the control of transfer of compressed data from the compression / expansion means 11 to the main memory 15 via the system bus means 16 is checked. When the amount of image data is smaller than a certain amount, the compression / decompression means 1
No transfer control of compressed data from 1 to the main memory 15 is performed, only the amount of image data stored in the image data temporary storage unit 13 is checked, and the amount of stored image data exceeds a certain amount. Is checked, the compression / expansion means 11 again sends the main memory 1
5 is controlled to transmit the compressed data.

【0032】ただし、圧縮の際における画像データ一時
記憶手段13から圧縮伸長手段11に対する画像データ
の転送ならびに圧縮伸長手段11における圧縮処理は、
圧縮伸長手段11から圧縮データが読み出される都度、
次に処理すべき画像データに対して順次行なわれるもの
とする。
However, the transfer of the image data from the image data temporary storage means 13 to the compression / expansion means 11 during the compression and the compression processing in the compression / expansion means 11 are as follows.
Each time compressed data is read from the compression / expansion means 11,
It is assumed that the processing is sequentially performed on the image data to be processed next.

【0033】伸長の場合は、画像データ一時記憶手段1
3が記憶している画像データが一定の量を下回った際、
画像データ一時記憶手段13が画像データ転送制御手段
14にこれを伝え、画像データ転送制御手段14は画像
データ一時記憶手段13から読み出した画像データの画
像メモリ12に対する書き込みを停止し、画像データ一
時記憶手段13が記憶している画像データが一定量を上
回ったときには画像メモリ12に対する書き込みを再開
始する。
In the case of decompression, the image data temporary storage means 1
When the image data stored in 3 falls below a certain amount,
The image data temporary storage means 13 transmits this to the image data transfer control means 14, and the image data transfer control means 14 stops writing the image data read from the image data temporary storage means 13 to the image memory 12, and temporarily stores the image data. When the image data stored in the means 13 exceeds a certain amount, the writing to the image memory 12 is restarted.

【0034】これとは独立して、圧縮伸長制御手段17
は、メインメモリ15から圧縮伸長手段11に対するシ
ステムバス16を介した行なわれる圧縮データの転送を
制御する度毎に画像データ一時記憶手段13に記憶され
ている画像データ量を確認し、記憶されているデータが
一定の量を上回ったときには、メインメモリ15から圧
縮伸長手段11に対する圧縮データの転送制御を行なわ
ず、画像データ一時記憶手段13に記憶されているデー
タ量の確認のみを行い、記憶されている画像データが一
定の量を下回ったことを確認したときに、始めて、再び
メインメモリ15から圧縮伸長手段11に対する圧縮デ
ータを転送する制御が行なわれる。
Independently of this, the compression / decompression control means 17
Each time the transfer of compressed data from the main memory 15 to the compression / expansion means 11 via the system bus 16 is controlled, the amount of image data stored in the image data temporary storage means 13 is checked and stored. When the amount of data exceeds a certain amount, the transfer control of the compressed data from the main memory 15 to the compression / expansion means 11 is not performed, and only the data amount stored in the image data temporary storage means 13 is checked. When it is confirmed that the amount of the image data is smaller than a certain amount, the control for transferring the compressed data from the main memory 15 to the compression / expansion means 11 is performed again.

【0035】ただし、伸長の際、圧縮伸長手段11にお
いて行なわれる伸長処理ならびに圧縮伸長手段11から
画像データ一時記憶手段13に対する画像データの転送
は、圧縮伸長手段11に新規の圧縮データが書き込まれ
る都度行なわれるものとする。
However, during decompression, the decompression processing performed by the compression / decompression means 11 and the transfer of image data from the compression / decompression means 11 to the image data temporary storage means 13 are performed every time new compressed data is written to the compression / decompression means 11. Shall be performed.

【0036】上記の動作を圧縮時と伸長時とに分け、ホ
ストシステム19側と圧縮伸長システム10側の各々か
ら見てフローチャートにし、具体的に示したものが、図
2に示す圧縮動作時における処理の流れと、図3に示す
伸長動作時における処理の流れとしてそれぞれ示され
る。以下、その各々について順に説明する。
The above operation is divided into a compression operation and a decompression operation, and the flowchart is viewed from each of the host system 19 side and the compression / expansion system 10 side. The processing flow and the processing flow during the decompression operation shown in FIG. 3 are shown. Hereinafter, each of them will be described in order.

【0037】図2の(a)は、圧縮動作時における圧縮
伸長制御手段17による画像データ一時記憶手段13の
アンダーフローを防止する制御の流れを示す図である。
この場合、圧縮伸長制御手段17は、画像データ一時記
憶手段13に記憶しているデータ量が、記憶できる容量
の1/4を上回っているかまたは下回っているかのみを
チェックして(後述する)、その各々に対応する処理を
行なう。
FIG. 2A is a diagram showing a flow of control for preventing the underflow of the image data temporary storage means 13 by the compression / decompression control means 17 during the compression operation.
In this case, the compression / decompression control unit 17 checks only whether the amount of data stored in the image data temporary storage unit 13 is larger or smaller than 1 / of the storable capacity (described later), The processing corresponding to each of them is performed.

【0038】記憶量が1/4を上回っている際は圧縮伸
長手段11から圧縮データを読み出し、それによって、
次に圧縮すべき画像データが画像データ一時記憶手段1
3から圧縮伸長手段11に転送されて圧縮処理が施さ
れ、画像データ一時記憶手段13内の画像データは減少
する。
When the storage amount exceeds 1/4, the compressed data is read out from the compression / expansion means 11, and
The image data to be compressed next is stored in the image data temporary storage unit 1.
3 is transferred to the compression / decompression means 11 and subjected to compression processing, and the image data in the image data temporary storage means 13 is reduced.

【0039】逆に、記憶量が1/4を下回った際には、
圧縮データの読み出しは行なわれないため、画像データ
一時記憶手段13内の画像データはそれ以下には減少せ
ず、画像データ転送制御手段14の制御によって画像メ
モリ12から転送される画像データが流入するのみとな
る。
Conversely, when the storage amount falls below 1/4,
Since the reading of the compressed data is not performed, the image data in the image data temporary storage unit 13 does not decrease below that, and the image data transferred from the image memory 12 flows under the control of the image data transfer control unit 14. Only.

【0040】図2の(b)は、圧縮動作時における画像
データ転送制御手段14による画像データ一時記憶手段
13のオーバーフローを防止する制御の流れを示す図で
ある。この場合、画像データ転送制御手段14は、画像
データ一時記憶手段13に記憶しているデータ量が、記
憶できる容量の1/2を上回っているか下回っているか
のみをチェックして(後述する)、その各々に対応する
処理が行なわれる。
FIG. 2B is a diagram showing a flow of control by the image data transfer control means 14 for preventing the image data temporary storage means 13 from overflowing during the compression operation. In this case, the image data transfer control unit 14 checks only whether the amount of data stored in the image data temporary storage unit 13 is more or less than 1 / of the storable capacity (described later), The processing corresponding to each of them is performed.

【0041】記憶量が1/2を下回っている際は画像デ
ータ一時記憶手段13から発生する状態信号がそのこと
を画像データ転送制御手段14に知らせ、画像データ転
送制御手段14は画像メモリ12から画像データ一時記
憶手段13に画像データを転送し、画像データ一時記憶
手段13内のデータ量は増加する。
When the storage amount is less than 1/2, a state signal generated from the image data temporary storage means 13 notifies the image data transfer control means 14 of the fact, and the image data transfer control means 14 The image data is transferred to the image data temporary storage unit 13, and the data amount in the image data temporary storage unit 13 increases.

【0042】逆に、記憶量が1/2を上回った際は画像
データ一時記憶手段13から発生する状態信号がそのこ
とを画像データ転送制御手段14に知らせ、画像データ
転送制御手段14は画像メモリ12から画像データ一時
記憶手段13に対する画像データの転送を停止し、画像
データ一時記憶手段13内のデータ量はそれ以上増加せ
ず、圧縮伸長制御手段17の制御に起因して圧縮伸長手
段11に転送される画像データが流出するのみとなる。
Conversely, when the storage amount exceeds 1/2, a state signal generated from the image data temporary storage means 13 notifies the image data transfer control means 14 of the fact, and the image data transfer control means 14 The transfer of the image data from the storage unit 12 to the image data temporary storage unit 13 is stopped, and the data amount in the image data temporary storage unit 13 does not increase any more. Only the transferred image data flows out.

【0043】図3の(a)は、伸長動作時における圧縮
伸長制御手段17による画像データ一時記憶手段13の
オーバーフローを防止する制御の流れを示す図である。
この場合、圧縮伸長制御手段17は、画像データ一時記
憶手段13に記憶しているデータ量が、記憶できる容量
の3/4を上回っているか下回っているかのみをチェッ
クして(後述する)、その各々に対応する処理を行な
う。
FIG. 3A is a diagram showing the flow of control by the compression / expansion control means 17 for preventing the image data temporary storage means 13 from overflowing during the expansion operation.
In this case, the compression / decompression control unit 17 checks only whether the amount of data stored in the image data temporary storage unit 13 is larger or smaller than 3 of the storable capacity (to be described later). Processing corresponding to each is performed.

【0044】記憶量が3/4を下回っている際は圧縮伸
長手段11に圧縮データを書き込み、それによって、次
に伸長すべき圧縮データが圧縮伸長手段11で伸長処理
を施され、画像データ一時記憶手段13に転送されて、
画像データ一時記憶手段13内の画像データは増加す
る。
When the storage amount is less than 3/4, the compressed data is written to the compression / decompression means 11, whereby the next compressed data to be decompressed is subjected to decompression processing by the compression / decompression means 11, and the image data is temporarily stored. Transferred to the storage means 13,
The image data in the image data temporary storage means 13 increases.

【0045】逆に、記憶量が3/4を上回った際には、
圧縮データの書き込みは行なわれないため、画像データ
一時記憶手段13内の画像データはそれ以上増加せず、
画像データ転送制御手段14の制御によって画像メモリ
12へ転送される画像データが流出するのみとなる。
Conversely, when the storage amount exceeds 3/4,
Since the writing of the compressed data is not performed, the image data in the image data temporary storage unit 13 does not increase any more.
Only the image data transferred to the image memory 12 under the control of the image data transfer control means 14 flows out.

【0046】図3の(b)は、伸長動作時における画像
データ転送制御手段14による画像データ一時記憶手段
13のアンダーフローを防止する制御の流れを示す図で
ある。この場合もやはり、画像データ転送制御手段14
は、画像データ一時記憶手段13に記憶しているデータ
量が、記憶できる容量の1/2を上回っているか下回っ
ているかのみをチェックして(後述する)、その各々に
対応する処理を行なう。
FIG. 3B is a diagram showing a flow of control by the image data transfer control means 14 for preventing an underflow of the image data temporary storage means 13 during the decompression operation. Also in this case, the image data transfer control means 14
Checks only whether the amount of data stored in the image data temporary storage unit 13 is larger or smaller than 1/2 of the storable capacity (described later), and performs processing corresponding to each.

【0047】記憶量が1/2を上回っている際は画像デ
ータ一時記憶手段13から発生する状態信号がそのこと
を画像データ転送制御手段14に知らせ、画像データ転
送制御手段14は画像データ一時記憶手段13から画像
メモリ12に画像データを転送し、画像データ一時記憶
手段13内のデータ量は減少する。
When the storage amount exceeds 1/2, a state signal generated from the image data temporary storage means 13 notifies the image data transfer control means 14 of the fact that the image data transfer control means 14 temporarily stores the image data. The image data is transferred from the means 13 to the image memory 12, and the data amount in the image data temporary storage means 13 is reduced.

【0048】逆に、記憶量が1/2を下回った際は画像
データ一時記憶手段13から発生する状態信号がそのこ
とを画像データ転送制御手段14に知らせ、画像データ
転送制御手段14は画像データ一時記憶手段13から画
像メモリ12に対する画像データの転送を停止し、画像
データ一時記憶手段13内のデータ量はそれ以下には減
少せず、圧縮伸長制御手段17の制御に起因して圧縮伸
長手段11から転送される画像データが流入するのみと
なる。
Conversely, when the storage amount falls below 1/2, a status signal generated from the image data temporary storage means 13 informs the image data transfer control means 14 of this, and the image data transfer control means 14 The transfer of the image data from the temporary storage unit 13 to the image memory 12 is stopped, and the amount of data in the image data temporary storage unit 13 does not decrease below that. Only the image data transferred from 11 flows in.

【0049】以下、図4及び図5を参照して、圧縮時及
び伸長時の各々につき、画像データ一時記憶手段13が
画像データを記憶する記憶量の範囲と、ホストシステム
19と圧縮伸長システム10における、すなわち圧縮伸
長制御手段17と画像データ転送制御手段14の各々が
管理するしきい値について説明する。
Referring now to FIGS. 4 and 5, for each of compression and decompression, the image data temporary storage means 13 has a storage capacity range for storing image data, a host system 19 and a compression / decompression system 10. , That is, the threshold value managed by each of the compression / decompression control means 17 and the image data transfer control means 14 will be described.

【0050】尚、この画像データ一時記憶手段13に記
憶されているデータ量を示すハードウェア信号は、“フ
ル”及び“カラ”(後述する)を除く1箇所のレベルが
満たされているか否かを示すことで十分であり、その他
のレベルについてはソフトウェア的にレジスタ等を読む
ことで知ることができれば良い。
The hardware signal indicating the data amount stored in the image data temporary storage means 13 determines whether or not one level other than "full" and "empty" (described later) is satisfied. Is sufficient, and it is sufficient if the other levels can be known by reading registers and the like by software.

【0051】本実施例では、画像データ一時記憶手段1
3からの外部出力信号(圧縮処理のときは第1の制御信
号、伸長処理のときは第2の制御信号に対応する)とし
て発した1/2のレベル(圧縮処理のときは第1のしき
い値、伸長処理のときは第2のしきい値とするが、ここ
では同一レベル)を基準に画像データ転送制御手段14
が制御を行ない、画像データ一時記憶手段13における
状態レジスタの読み取りから生じる状態信号(圧縮処理
のときは第3の制御信号、伸長処理のときは第4の制御
信号に対応する)により、1/4及び3/4のレベル
(それぞれ圧縮処理のときの第3のしきい値及び伸長処
理のときの第4のしきい値とする)を基準に圧縮伸長制
御手段17が制御を行なう場合について説明する。
In this embodiment, the image data temporary storage means 1
3 (corresponding to the first control signal in the case of the compression processing and the second control signal in the case of the decompression processing). Threshold value and the second threshold value for the decompression process, but here the same threshold value).
Performs control, and a state signal (corresponding to a third control signal in the case of compression processing and a fourth control signal in the case of decompression processing) resulting from reading of the state register in the image data temporary storage means 13 is represented by 1 / A case in which the compression / expansion control means 17 performs control on the basis of levels 4 and 3/4 (respectively referred to as a third threshold value during compression processing and a fourth threshold value during expansion processing). I do.

【0052】しかし、本実施例中でいう“フル”とは、
画像データ一時記憶手段13に記憶されているデータ量
が許容量一杯の状態(Full)を表わし、また、“カラ”
とは画像データ一時記憶手段13に記憶されているデー
タ量が空(Empty )の状態を表わすものとする。
However, "full" in the present embodiment means:
The data amount stored in the image data temporary storage means 13 indicates a state where the amount of data is full (Full).
Means that the amount of data stored in the image data temporary storage means 13 is empty.

【0053】以下、図4及び図5について説明する。図
4は圧縮時に画像データ一時記憶手段13が画像データ
を記憶する記憶量の範囲と、ホストシステムと圧縮伸長
システムすなわち圧縮伸長制御手段17と画像データ転
送制御手段14の各々が管理するしきい値を示す概念図
である。図4において、圧縮データが画像データ一時記
憶手段13から圧縮伸長手段11に転送されて流出し、
画像データは画像メモリ12からそこに転送され流入す
る。
Hereinafter, FIGS. 4 and 5 will be described. FIG. 4 shows the range of the amount of storage of the image data by the image data temporary storage means 13 at the time of compression and the threshold values managed by the host system and the compression / decompression system, ie, the compression / decompression control means 17 and the image data transfer control means 14. FIG. In FIG. 4, the compressed data is transferred from the image data temporary storage means 13 to the compression / decompression means 11 and flows out,
The image data is transferred from the image memory 12 and flows there.

【0054】圧縮伸長制御手段17は、画像データ一時
記憶手段13の状態レジスタからの状態信号(第3の制
御信号)によって1/4のレベル(第3のしきい値)が
満たされているか否かを確認し、画像データ転送制御手
段14は画像データ一時記憶手段13が発生する外部出
力信号または状態信号(第1の制御信号)によって1/
2のレベル(第1のしきい値)が満たされているか否か
を知る。
The compression / expansion control means 17 determines whether or not a level (third threshold value) of 1/4 is satisfied by a status signal (third control signal) from the status register of the image data temporary storage means 13. The image data transfer control means 14 checks whether or not the external output signal or the state signal (first control signal) generated by the image data temporary storage means 13 indicates
It is determined whether level 2 (first threshold) is satisfied.

【0055】圧縮処理においては、画像データ一時記憶
手段13が使用するレベルは、“カラ”から1/2まで
である。圧縮開始時には記憶データ量は“カラ”から単
純増加し、画像データ量が1/4を上回った段階でアン
ダーフロー及びオーバーフローの制御が開始され、処理
中は画像データ量が1/4弱から1/2強の部分を変動
し、画像メモリ12上の処理すべき画像データが全て転
送されると、画像データは“カラ”レベルまで単純減少
して流出される。
In the compression processing, the level used by the image data temporary storage means 13 is from “empty” to 1 /. At the start of compression, the amount of stored data simply increases from “empty”, and underflow and overflow control is started when the amount of image data exceeds 4. During the processing, the amount of image data is reduced from slightly less than 4 to 1 When all of the image data to be processed in the image memory 12 is transferred while changing the portion slightly over / 2, the image data is simply reduced to the “empty” level and is output.

【0056】図5は伸長時に画像データ一時記憶手段1
3が画像データを記憶する記憶量の範囲と、ホストシス
テムと圧縮伸長システムすなわち圧縮伸長制御手段17
と画像データ転送制御手段14の各々が管理するしきい
値を示す概念図である。図5において、圧縮データは圧
縮伸長手段11から画像データ一時記憶手段13に対し
転送流入され、画像データは画像データ一時記憶手段1
3から画像メモリ12に対し転送流出される。
FIG. 5 shows the image data temporary storage means 1 at the time of decompression.
Reference numeral 3 denotes a range of storage amount for storing image data, a host system and a compression / expansion system,
FIG. 5 is a conceptual diagram showing threshold values managed by the image data transfer control means 14 and the image data transfer control means 14. In FIG. 5, compressed data is transferred from the compression / expansion means 11 to the image data temporary storage means 13, and the image data is transferred to the image data temporary storage means 1.
3 to the image memory 12.

【0057】圧縮伸長制御手段17は、画像データ一時
記憶手段13の状態レジスタからの状態信号(第4の制
御信号)によって3/4のレベル(第4のしきい値)が
満たされているか否かを確認し、画像データ転送制御手
段14は画像データ一時記憶手段13の発生する外部出
力信号または状態信号(第2の制御信号)によって1/
2のレベル(第2のしきい値)が満たされているか否か
を知る。
The compression / decompression control means 17 determines whether or not the level signal (fourth control signal) from the status register (fourth control signal) of the image data temporary storage means 13 satisfies the 3/4 level (fourth threshold value). The image data transfer control means 14 determines whether the external output signal or the state signal (the second control signal) generated by the image data temporary storage means 13 is 1 /
It is determined whether level 2 (second threshold value) is satisfied.

【0058】伸長処理においては、画像データ一時記憶
手段13が使用するレベルは、“カラ”から3/4まで
である。伸長開始時には記憶データ量は“カラ”から単
純増加し、データ量が3/4を上回った段階でアンダー
フロー及びオーバーフローの制御が開始され、処理中は
データ量が1/2弱から3/4強の部分を変動し、所定
の圧縮データが全て圧縮伸長手段11に転送されると、
データは“カラ”レベルまで単純減少して流出される。
In the decompression processing, the level used by the image data temporary storage means 13 is from "empty" to 3/4. At the start of decompression, the amount of stored data simply increases from “empty”, and underflow and overflow control is started when the amount of data exceeds 3/4, and during processing, the amount of data is reduced from slightly less than 1/2 to 3/4. When the strong part fluctuates and all the predetermined compressed data is transferred to the compression / decompression means 11,
Data is simply reduced to the "empty" level and drained.

【0059】なお、画像データ転送制御手段14は、圧
縮時と伸長時に対応して画像データ一時記憶手段13か
ら出力される1/2を基準とした信号の解釈を反転する
ものとする。本実施例では、画像データ一時記憶手段1
3から発生される外部出力信号が変化するしきい値を圧
縮時と伸長時共に1/2としているが、他のレベルをし
きい値として用い、圧縮時と伸長時でそのレベルが異な
る方法をとっても良い。
It is assumed that the image data transfer control means 14 inverts the interpretation of the signal output from the image data temporary storage means 13 on the basis of 1/2 corresponding to the time of compression and the time of expansion. In the present embodiment, the image data temporary storage unit 1
Although the threshold value at which the external output signal generated from 3 changes during compression and decompression is 1 /, another method is used as a threshold value, and the level differs between compression and decompression. Very good.

【0060】また、画像データ一時記憶手段13が一時
記憶している画像データ量を状態レジスタからの状態信
号によって知る手段についても、本実施例では1/4レ
ベル及び3/4レベルをしきい値として用いているが、
“フル”及び“カラ”を除く他のレベルをしきい値とし
て用いても良い。ただしオーバーフロー防止に用いるし
きい値は、圧縮伸長制御手段17の制御で1度の転送サ
イクルにおいて転送される圧縮データが、圧縮伸長手段
11によって伸長されて画像データとなる際の最大デー
タサイズ分以上に“フル”レベルよりも低いレベルを設
定する必要がある。
In this embodiment, the means for knowing the amount of image data temporarily stored in the image data temporary storage means 13 by the state signal from the state register is set to the 1/4 level and the 3/4 level. Is used as
Other levels than “full” and “empty” may be used as the threshold. However, the threshold value used to prevent overflow is equal to or larger than the maximum data size when the compressed data transferred in one transfer cycle under the control of the compression / expansion control means 17 is expanded by the compression / expansion means 11 to become image data. Must be set to a level lower than the “full” level.

【0061】同様にして、アンダーフロー防止に用いる
しきい値も、圧縮伸長制御手段17の制御で1度の転送
サイクルにおいて転送される圧縮データを、圧縮伸長手
段11が生成するのに必要な最大画像データサイズ分以
上に“カラ”レベルよりも高いレベルに設定する必要が
ある。
Similarly, the threshold value used to prevent underflow is the maximum value required for the compression / expansion means 11 to generate compressed data transferred in one transfer cycle under the control of the compression / expansion control means 17. It is necessary to set the level higher than the “empty” level for the image data size or more.

【0062】以上説明したように、本実施例による画像
圧縮伸長装置の動作では、ホストシステム19側におけ
るソフトウェアによる制御と、圧縮伸長システム10側
におけるハードウェアによる制御の役割分担が完全に分
離しており、ホストシステム19と圧縮伸長システム1
0の各々が、画像データ一時記憶手段13のオーバーフ
ローあるいはアンダーフローのどちらか一方のしきい値
だけを管理すれば良くシンプルな制御となる。
As described above, in the operation of the image compression / expansion apparatus according to the present embodiment, the roles of control by software on the host system 19 side and control by hardware on the compression / expansion system 10 are completely separated. Host system 19 and compression / decompression system 1
It is sufficient that each of the 0s manages only one of the threshold values of the overflow or the underflow of the image data temporary storage means 13 and simple control is achieved.

【0063】この動作を圧縮伸長制御手段17から見れ
ば、圧縮時においては圧縮伸長手段11からメインメモ
リ15へ圧縮データを転送すると圧縮が行なわれ、転送
を一時停止すると圧縮も一時停止する。同様にして伸長
の場合も、メインメモリ15から圧縮伸長手段11へ圧
縮データを転送すると伸長が行なわれ、一時停止すると
伸長も一時停止する。
From the viewpoint of the compression / expansion control means 17, the compression is performed when the compressed data is transferred from the compression / expansion means 11 to the main memory 15, and the compression is temporarily stopped when the transfer is temporarily stopped. Similarly, in the case of decompression, decompression is performed when the compressed data is transferred from the main memory 15 to the compression / decompression means 11, and decompression is also temporarily stopped when the data is temporarily stopped.

【0064】本実施例による実際のデバイスにおける構
成は、圧縮伸長手段11はJPEG圧縮伸長LSI、画
像メモリ12はモニタ映像用のフレームメモリ、画像デ
ータ一時記憶手段13はFIFOメモリ、画像データ転
送制御手段14は所定の機能を持つデバイス、メインメ
モリ15はコンピュータのメインメモリ、システムバス
手段16はコンピュータのシステムバス、圧縮伸長制御
手段17はコンピュータのCPUとなる。
In the actual device according to the present embodiment, the compression / expansion means 11 is a JPEG compression / expansion LSI, the image memory 12 is a monitor video frame memory, the image data temporary storage means 13 is a FIFO memory, and the image data transfer control means. 14 is a device having a predetermined function, main memory 15 is a main memory of the computer, system bus means 16 is a system bus of the computer, and compression / expansion control means 17 is a CPU of the computer.

【0065】また圧縮伸長手段11と画像データ一時記
憶手段13は、これらが1チップで構成されているJP
EG圧縮伸長LSIを用いた。圧縮伸長手段11と画像
データ一時記憶手段13は別構成でも実現可能である
が、1チップのものを使用することにより簡単な構成で
実現することができる。
The compression / expansion means 11 and the image data temporary storage means 13 are JP
An EG compression / expansion LSI was used. Although the compression / expansion means 11 and the image data temporary storage means 13 can be realized with different configurations, they can be realized with a simple configuration by using one chip.

【0066】本発明による画像圧縮伸長装置の構成及び
その制御方法によってホストシステム19側が任意に圧
縮伸長の制御を行えることは、特にマルチプロセスのオ
ペレーティングシステムの場合に有効である。なぜな
ら、圧縮伸長システム10側がホストシステム19側か
らの定常的な制御を必要とはしないため、オペレーティ
ングシステムの都合によって、圧縮伸長システム10を
制御することが不可能な時間が不定期的に発生しても画
像データ一時記憶手段13がオーバーフローやアンダー
フローを起こすことがなく、画像データが破壊される等
の問題が生じないからである。
The fact that the host system 19 can arbitrarily control the compression and decompression by the configuration and control method of the image compression and decompression device according to the present invention is particularly effective in the case of a multi-process operating system. This is because the compression / expansion system 10 does not require regular control from the host system 19, and due to the operating system, the time during which the compression / expansion system 10 cannot be controlled occurs irregularly. This is because the image data temporary storage means 13 does not cause overflow or underflow, and no problem such as destruction of image data occurs.

【0067】これとは逆に、パーソナルコンピュータ等
のシングルプロセスのオペレーティングシステムで本発
明の構成及び制御方法を用いると、圧縮伸長制御手段の
意図する任意の速度で画像の圧縮及び伸長ができる。こ
の特長は、画像表示の特殊効果や、動画の圧縮伸長を行
なう際の各フレーム当りの処理時間の平均化等に応用す
ることが簡単にできる。また圧縮データのバッファリン
グを行なっていないため、画像メモリ12とメインメモ
リ15の間における処理のオーバーヘッドがほとんど無
く、転送経路の中で最も遅い転送路の転送レートが即最
高転送レートとなり、安定して高速なシステムを実現す
ることができる。
On the contrary, if the configuration and the control method of the present invention are used in a single-process operating system such as a personal computer, the image can be compressed and decompressed at an arbitrary speed intended by the compression / decompression control means. This feature can be easily applied to special effects of image display, averaging of processing time for each frame when compressing and decompressing moving images, and the like. Also, since the buffering of the compressed data is not performed, there is almost no processing overhead between the image memory 12 and the main memory 15, and the transfer rate of the slowest transfer path in the transfer path immediately becomes the highest transfer rate, and is stable. And a high-speed system can be realized.

【0068】なお、本実施例では、特別にバス制御専用
の手段を持っていないが、バス制御専用のバス制御手段
を持つ構成を本発明の範囲から除外するものではない。
また圧縮伸長制御手段としてCPUを例にとって説明し
たが、これにDMAコントローラ等バスマスターに成り
得る他のデバイスを使用する構成も、上記と同様であ
る。
Although the present embodiment does not have any means dedicated to bus control, a configuration having bus control means dedicated to bus control is not excluded from the scope of the present invention.
Although the CPU has been described as an example of the compression / expansion control means, the configuration using another device that can be a bus master such as a DMA controller is the same as the above.

【0069】[0069]

【発明の効果】本発明による画像圧縮伸長装置及びその
制御方法は、上記の目的を達成するため、以上説明した
ように構成して、圧縮データ用のバッファおよびその周
辺回路を必要としないため、回路規模の削減とコストダ
ウン、バッファリングによる処理のオーバーヘッドがな
いことによる処理の高速化を実現することができる。ま
た、ホストシステムによる制御は圧縮時にはFIFOメ
モリのアンダーフローの防止、伸長時にはオーバーフロ
ーの防止のみで良く、その制御が簡単であり、簡単なソ
フトウェアでよいため、ソフトウェアの開発をコストダ
ウンすることができる。
To achieve the above object, the image compression / decompression apparatus and the control method according to the present invention are configured as described above, and do not require a buffer for compressed data and its peripheral circuit. It is possible to realize a reduction in circuit size, a reduction in cost, and an increase in processing speed due to no processing overhead due to buffering. In addition, the control by the host system only needs to prevent the underflow of the FIFO memory during compression and the overflow during decompression, and the control is simple and simple software is required, so that the cost of software development can be reduced. .

【0070】更に、本発明による画像圧縮伸長装置及び
その制御方法は、ホストシステムの都合による任意の速
度で行なうことができ、それでも重複書込みまたは重複
読出し等により画像データを壊すことなく圧縮伸長を行
なうことができる。そのため、ワークステーションやパ
ーソナルコンピュータといった、マルチプロセスあるい
はシングルプロセスといったオペレーティングシステム
が異なる場合でも、その制御方法を変えることなく実現
することができ、画像表示の特殊効果などに対する応用
も可能である。
Further, the image compression / expansion apparatus and the control method thereof according to the present invention can be performed at any speed depending on the host system, and still perform the compression / expansion without destroying the image data by duplicate writing or redundant reading. be able to. Therefore, even when the operating system such as a multi-process or a single process such as a workstation or a personal computer is different, it can be realized without changing the control method, and application to a special effect of image display and the like is possible.

【0071】また、上記の通りホストシステムによる制
御が時分割でも良いことと、ホストシステム側のメイン
メモリを圧縮データの蓄積に使用することにより、画像
サイズや画像の圧縮率の変動による圧縮データサイズの
変動をも考慮する必要がない等の利点を有する。
As described above, the control by the host system may be time-division, and the main memory of the host system is used for storing the compressed data. There is an advantage that it is not necessary to consider the fluctuation of

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

【図1】本発明の一実施例における画像圧縮伸長装置の
構成を示すブロック図
FIG. 1 is a block diagram showing a configuration of an image compression / decompression device according to an embodiment of the present invention.

【図2】本実施例における画像圧縮伸長装置による圧縮
動作時の処理の流れを示す図であって、(a)は圧縮伸
長制御手段による画像データ一時記憶手段のアンダーフ
ローを防止する制御の流れ図 (b)は画像データ転送制御手段による画像データ一時
記憶手段のオーバーフローを防止する制御の流れ図
FIG. 2 is a diagram showing a flow of processing during a compression operation by the image compression / decompression device according to the present embodiment, and FIG. 2 (a) is a flowchart of control for preventing an underflow of the image data temporary storage means by the compression / decompression control means; (B) is a flowchart of control for preventing overflow of the image data temporary storage means by the image data transfer control means.

【図3】本実施例における画像圧縮伸長装置による伸長
動作時の処理の流れを示す図であって、(a)は圧縮伸
長制御手段による画像データ一時記憶手段のオーバーフ
ローを防止する制御の流れ図 (b)は画像データ転送制御手段による画像データ一時
記憶手段のアンダーフローを防止する制御の流れ図
FIG. 3 is a diagram showing a flow of a process at the time of a decompression operation by the image compression / decompression device according to the present embodiment, and FIG. b) is a flowchart of control for preventing underflow of the image data temporary storage means by the image data transfer control means.

【図4】本実施例における画像圧縮伸長装置が圧縮動作
時に、画像データ一時記憶手段が画像データを記憶する
記憶量の範囲と、圧縮伸長制御手段と画像データ転送制
御手段の各々が管理するしきい値を示す概念図
FIG. 4 is a diagram illustrating a range of a storage amount in which image data temporary storage means stores image data, and each of the compression / decompression control means and the image data transfer control means, when the image compression / decompression device in the present embodiment performs a compression operation. Conceptual diagram showing thresholds

【図5】本実施例における画像圧縮伸長装置が伸長動作
時に、画像データ一時記憶手段が画像データを記憶する
記憶量の範囲と、圧縮伸長制御手段と画像データ転送制
御手段の各々が管理するしきい値を示す概念図
FIG. 5 is a diagram illustrating a range of a storage amount in which image data temporary storage means stores image data, and each of the compression / decompression control means and the image data transfer control means, when the image compression / decompression device in this embodiment performs a decompression operation. Conceptual diagram showing thresholds

【図6】従来の画像圧縮伸長装置の構成を示すブロック
FIG. 6 is a block diagram showing a configuration of a conventional image compression / decompression device.

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

10 圧縮伸長システム 11 圧縮伸長手段 12 画像メモリ 13 画像データ一時記憶手段 14 画像データ転送制御手段 15 メインメモリ 16 システムバス手段 17 圧縮伸長制御手段 19 ホストシステム 60 圧縮伸長システム 61 JPEG圧縮伸長装置 62 画像メモリ 63 FIFOメモリ 64 画像データ転送制御装置 65 メインメモリ 66 システムバス 67 CPU 68 圧縮データバッファ 69 ホストシステム Reference Signs List 10 compression / decompression system 11 compression / decompression means 12 image memory 13 image data temporary storage means 14 image data transfer control means 15 main memory 16 system bus means 17 compression / decompression control means 19 host system 60 compression / decompression system 61 JPEG compression / decompression device 62 image memory 63 FIFO memory 64 Image data transfer control device 65 Main memory 66 System bus 67 CPU 68 Compressed data buffer 69 Host system

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】原画像データもしくは伸長された画像デー
タを記憶する画像メモリと、可変長符号化技術に基づき
前記画像データを圧縮するか圧縮して得られた圧縮デー
タを伸長する圧縮伸長手段と、前記画像メモリから前記
圧縮伸長手段にあるいは前記圧縮伸長手段から前記画像
メモリに転送する画像データを先読み先出し形式で一時
記憶し、第1乃至第4の所定のしきい値を基準として内
部に記憶するデータ記憶量の多少を知らせる第1乃至第
4の制御信号を発生する画像データ一時記憶手段と、前
記第1及び第2の制御信号に基づき前記画像メモリと前
記画像データ一時記憶手段との間の画像データの転送を
制御する画像データ転送制御手段と、圧縮データを蓄積
するメインメモリと、前記圧縮伸長手段と前記メインメ
モリとの間で圧縮データを転送するシステムバス手段
と、前記第3及び第4の制御信号に基づき前記圧縮伸長
手段と前記メインメモリとの間の圧縮データの転送を制
御する圧縮伸長制御手段とを備えたことを特徴とする画
像圧縮伸長装置。
An image memory for storing original image data or decompressed image data, and compression / decompression means for decompressing the compressed data obtained by compressing or compressing the image data based on a variable length coding technique. Temporarily storing image data to be transferred from the image memory to the compression / expansion means or from the compression / expansion means to the image memory in a prefetching / readout format, and internally storing the data based on first to fourth predetermined threshold values Image data temporary storage means for generating first to fourth control signals for notifying the amount of data storage to be performed, and between the image memory and the image data temporary storage means based on the first and second control signals. Image data transfer control means for controlling transfer of image data, a main memory for storing compressed data, and compression between the compression / decompression means and the main memory. System bus means for transferring data, and compression / expansion control means for controlling the transfer of compressed data between the compression / expansion means and the main memory based on the third and fourth control signals. Characteristic image compression / decompression device.
【請求項2】前記画像データ転送制御手段は、画像デー
タの圧縮動作時において、前記第1の制御信号により、
前記画像データ一時記憶手段における画像データの記憶
量が前記第1のしきい値を下まわっていることを認めた
ときにのみ、圧縮すべき画像データを前記画像メモリか
ら前記画像データ一時記憶手段に転送し、圧縮データの
伸長動作時において、前記第2の制御信号により、前記
画像データ一時記憶手段における画像データの記憶量が
前記第2のしきい値を上まわっていることを認めたとき
にのみ、伸長した画像データを前記画像データ一時記憶
手段から前記画像メモリに転送するよう制御することを
特徴とする請求項1記載の画像圧縮伸長装置。
2. The image data transfer control means according to the first control signal during a compression operation of image data.
Only when it is recognized that the storage amount of the image data in the image data temporary storage means is below the first threshold value, the image data to be compressed is transferred from the image memory to the image data temporary storage means. In the transfer and expansion of compressed data, when the second control signal recognizes that the storage amount of the image data in the image data temporary storage means exceeds the second threshold value, 2. The image compression / decompression device according to claim 1, wherein only the decompressed image data is controlled to be transferred from the image data temporary storage means to the image memory.
【請求項3】前記圧縮伸長制御手段は、画像データの圧
縮動作時において、前記第3の制御信号により、前記画
像データ一時記憶手段における画像データの記憶量が前
記第3のしきい値を上まわっていることを確認したとき
にのみ、圧縮すべき画像データを前記画像データ一時記
憶手段から前記圧縮伸長手段に転送し、圧縮データの伸
長動作時において、前記第4の制御信号により、前記画
像データ一時記憶手段における画像データの記憶量が前
記第4のしきい値を下まわっていることを確認したとき
にのみ、前記メインメモリから前記圧縮伸長手段を介し
て伸長した画像データを前記画像データ一時記憶手段に
転送するよう制御することを特徴とする請求項1または
2記載の画像圧縮伸長装置。
3. The image processing apparatus according to claim 2, wherein said compression control means controls the amount of image data stored in said image data temporary storage means to exceed the third threshold value by said third control signal during a compression operation of the image data. Only when it is confirmed that the image data has been rotated, the image data to be compressed is transferred from the image data temporary storage means to the compression / expansion means. Only when it is confirmed that the storage amount of the image data in the data temporary storage means is lower than the fourth threshold value, the image data expanded from the main memory via the compression / expansion means is converted into the image data. 3. The image compression / decompression device according to claim 1, wherein the image compression / decompression is controlled so as to be transferred to a temporary storage unit.
【請求項4】前記画像データ転送制御手段及び前記圧縮
伸長制御手段による画像データの転送制御はそれぞれ独
立して行なわれることを特徴とする請求項1、2、また
は3記載の画像圧縮伸長装置。
4. The image compression / decompression device according to claim 1, wherein the image data transfer control means and the compression / decompression control means perform image data transfer control independently of each other.
【請求項5】画像データ圧縮の際、画像データ転送制御
手段の制御により、画像データを画像メモリから読みだ
して画像データ一時記憶手段に一時記憶し、圧縮伸長制
御手段の制御により、前記一時記憶した画像データを圧
縮処理してメインメモリに記憶し、圧縮データ伸長の
際、前記圧縮伸長制御手段の制御により、メインメモリ
から読みだした圧縮データを伸長処理して前記画像デー
タ一時記憶手段に一時記憶し、前記画像データ転送制御
手段の制御により、前記伸長した画像データを前記画像
メモリに記憶するようにした画像圧縮伸長装置の制御方
法であって、前記画像データ一時記憶手段は第1乃至第
4の所定のしきい値を基準として内部に記憶するデータ
記憶量の多少を知らせる第1乃至第4の制御信号を発生
し、前記画像データ転送制御手段による制御は前記第1
及び第2の制御信号に基づき前記画像メモリと前記画像
データ一時記憶手段との間の画像データの転送を制御
し、前記圧縮伸長制御手段による制御は前記第3及び第
4の制御信号に基づき前記圧縮伸長手段と前記メインメ
モリとの間の圧縮データの転送を制御するようにしたこ
とを特徴とする画像圧縮伸長装置の制御方法。
5. At the time of image data compression, image data is read from an image memory under the control of image data transfer control means and temporarily stored in image data temporary storage means. The compressed image data is compressed and stored in the main memory, and when the compressed data is expanded, under the control of the compression and expansion control means, the compressed data read from the main memory is expanded and temporarily stored in the image data temporary storage means. A method for controlling an image compression / expansion apparatus, wherein the image data is stored in the image memory under the control of the image data transfer control means. And generating first to fourth control signals indicating the amount of data to be stored internally with reference to a predetermined threshold value of Wherein the control by the feed control means first
And controlling the transfer of image data between the image memory and the image data temporary storage means based on a second control signal, and controlling the compression / decompression control means based on the third and fourth control signals. A method for controlling an image compression / expansion apparatus, wherein a transfer of compressed data between compression / expansion means and said main memory is controlled.
【請求項6】前記画像データ転送制御手段による制御
は、画像データの圧縮動作時において、前記第1の制御
信号により、前記画像データ一時記憶手段における画像
データの記憶量が前記第1のしきい値を下まわっている
ことを認めたときにのみ、圧縮すべき画像データを前記
画像メモリから前記画像データ一時記憶手段に転送し、
圧縮データの伸長動作時において、前記第2の制御信号
により、前記画像データ一時記憶手段における画像デー
タの記憶量が前記第2のしきい値を上まわっていること
を認めたときにのみ、伸長した画像データを前記画像デ
ータ一時記憶手段から前記画像メモリに転送するよう制
御することを特徴とする請求項5記載の画像圧縮伸長装
置の制御方法。
6. The control by the image data transfer control means, wherein the amount of image data stored in the image data temporary storage means is controlled by the first threshold in accordance with the first control signal during a compression operation of the image data. Only when it is recognized that the value is below the value, transfer the image data to be compressed from the image memory to the image data temporary storage means,
During the expansion operation of the compressed data, the expansion is performed only when it is recognized by the second control signal that the storage amount of the image data in the image data temporary storage means exceeds the second threshold value. 6. A control method for an image compression / decompression apparatus according to claim 5, wherein the control is performed to transfer the image data obtained from the image data temporary storage means to the image memory.
【請求項7】前記圧縮伸長制御手段による制御は、画像
データの圧縮動作時において、前記画像データ一時記憶
手段から前記メインメモリに対し圧縮データの転送を制
御する度毎に前記画像データ一時記憶手段に記憶されて
いる画像データの記憶量を前記第3の制御信号により確
認し、前記画像データ一時記憶手段における画像データ
の記憶量が前記第3のしきい値を上まわっていることを
確認したときにのみ、圧縮すべき画像データを前記画像
データ一時記憶手段から前記圧縮伸長手段に転送し、圧
縮データの伸長動作時において、前記メインメモリから
前記画像データ一時記憶手段に対し圧縮データの転送を
制御する度毎に前記画像データ一時記憶手段に記憶され
ている画像データの記憶量を前記第4の制御信号により
確認し、前記画像データ一時記憶手段における画像デー
タの記憶量が前記第4のしきい値を下まわっていること
を確認したときにのみ、前記メインメモリから前記圧縮
伸長手段を介して伸長した画像データを前記画像データ
一時記憶手段に転送するよう制御することを特徴とする
請求項5または6記載の画像圧縮伸長装置の制御方法。
7. The control by the compression / decompression control means includes the step of controlling the image data temporary storage means every time the transfer of the compressed data from the image data temporary storage means to the main memory is controlled during the compression operation of the image data. The third control signal is used to confirm the storage amount of the image data stored in the storage device, and it is confirmed that the storage amount of the image data in the image data temporary storage means exceeds the third threshold value. Only when the image data to be compressed is transferred from the image data temporary storage means to the compression / expansion means, and during the operation of expanding the compressed data, the transfer of the compressed data from the main memory to the image data temporary storage means is performed. Each time the control is performed, the storage amount of the image data stored in the image data temporary storage unit is confirmed by the fourth control signal, Only when it is confirmed that the storage amount of the image data in the data temporary storage means is less than the fourth threshold value, the image data expanded from the main memory via the compression / expansion means is converted into the image data. 7. The control method for an image compression / decompression device according to claim 5, wherein control is performed to transfer the data to a temporary data storage unit.
【請求項8】前記画像データ転送制御手段及び圧縮伸長
制御手段による画像データの転送制御はそれぞれ独立し
て行なわれることを特徴とする請求項5、6、または7
記載の画像圧縮伸長装置の制御方法。
8. The image data transfer control means and the compression / decompression control means perform image data transfer control independently of each other.
A control method of the image compression / decompression device according to the above.
JP6196185A 1994-07-29 1994-07-29 Image compression / expansion apparatus and control method thereof Expired - Lifetime JP2577705B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6196185A JP2577705B2 (en) 1994-07-29 1994-07-29 Image compression / expansion apparatus and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6196185A JP2577705B2 (en) 1994-07-29 1994-07-29 Image compression / expansion apparatus and control method thereof

Publications (2)

Publication Number Publication Date
JPH0844534A JPH0844534A (en) 1996-02-16
JP2577705B2 true JP2577705B2 (en) 1997-02-05

Family

ID=16353613

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6196185A Expired - Lifetime JP2577705B2 (en) 1994-07-29 1994-07-29 Image compression / expansion apparatus and control method thereof

Country Status (1)

Country Link
JP (1) JP2577705B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4375392A (en) * 1981-06-02 1983-03-01 Occidental Chemical Corporation Bath and process for the electrodeposition of ruthenium

Also Published As

Publication number Publication date
JPH0844534A (en) 1996-02-16

Similar Documents

Publication Publication Date Title
US6883079B1 (en) Method and apparatus for using data compression as a means of increasing buffer bandwidth
US20110091124A1 (en) System for multi-byte reading
JP2611637B2 (en) Image compression / decompression device
US6820087B1 (en) Method and apparatus for initializing data structures to accelerate variable length decode
US6490669B1 (en) Memory LSI with compressed data inputting and outputting function
KR100524076B1 (en) Apparatus for compressing and decompressing of data
JP2577705B2 (en) Image compression / expansion apparatus and control method thereof
JP3097739B2 (en) MPEG system priority processing circuit
US20020097916A1 (en) Image processing method, image processing apparatus, image processing program and storage medium holding image processing program code
JP2000123472A (en) Method and device for processing data of tape drive
JPH04205634A (en) Storage device control method
JP6605323B2 (en) Semiconductor device, data processing system, and control method of semiconductor device
JP4180468B2 (en) Image compression system and image compression method
JPH0573413A (en) Cache memory data controller
JPH11328008A (en) Memory lsi with data processing function
JPH05204747A (en) Semiconductor memory controller
US6636639B1 (en) Image recording apparatus, image recording method and storage medium
JP3056929B2 (en) Image output device, host computer, image output system, and image output method
TWI813876B (en) Decompression system, memory system and method of decompressing
JPH1074140A (en) Data transferring method decoding device, data transfer device, and data processor
JP3146197B2 (en) Data transfer device and storage device
JPH08147251A (en) Parallel computer
JPH04329764A (en) Compression data transfer device
JP2942738B2 (en) Data decryption IC
CN112083875A (en) Method for reducing read ports and speeding up decompression in a storage system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term