JP3170312B2 - Image processing device - Google Patents
Image processing deviceInfo
- Publication number
- JP3170312B2 JP3170312B2 JP18878491A JP18878491A JP3170312B2 JP 3170312 B2 JP3170312 B2 JP 3170312B2 JP 18878491 A JP18878491 A JP 18878491A JP 18878491 A JP18878491 A JP 18878491A JP 3170312 B2 JP3170312 B2 JP 3170312B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- image
- block
- signal
- address
- 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 - Fee Related
Links
- 238000012545 processing Methods 0.000 title claims description 18
- 230000006835 compression Effects 0.000 claims description 49
- 238000007906 compression Methods 0.000 claims description 49
- 230000006837 decompression Effects 0.000 claims description 3
- 230000002194 synthesizing effect Effects 0.000 claims description 3
- 230000015654 memory Effects 0.000 description 66
- 239000000872 buffer Substances 0.000 description 58
- 238000010586 diagram Methods 0.000 description 33
- 238000000034 method Methods 0.000 description 15
- 238000012546 transfer Methods 0.000 description 14
- 230000006866 deterioration Effects 0.000 description 7
- 239000011159 matrix material Substances 0.000 description 7
- 238000013139 quantization Methods 0.000 description 6
- 239000003550 marker Substances 0.000 description 3
- 238000012937 correction Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003702 image correction Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Landscapes
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Dot-Matrix Printers And Others (AREA)
- Record Information Processing For Printing (AREA)
- Image Processing (AREA)
- Memory System (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、画像圧縮符号化された
データを基に画像編集処理を可能とする画像処理装置に
関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus capable of performing image editing processing based on image compression-encoded data.
【0002】[0002]
【従来の技術】画像記録装置、例えば、サーマルプリン
タやインクジェットプリンタ,レーザビームプリンタに
おいて、従来記録端末として、ビットマップメモリを有
す白/黒プリンタが主に使用されていた。しかしながら
近年の半導体メモリの大容量化,高機能LSIの開発,
コンピュータ技術の進歩によりフルカラー画像の高精細
記録としての使用が高まってきている。2. Description of the Related Art In image recording apparatuses such as thermal printers, ink jet printers, and laser beam printers, a white / black printer having a bitmap memory has been mainly used as a conventional recording terminal. However, in recent years, the capacity of semiconductor memories has increased, the development of high-performance LSIs,
Advances in computer technology have increased the use of full color images for high definition recording.
【0003】一方、カラー自然画像データをコンピュー
タに取り込み、各種処理や画像通信を行おうとする要求
が高まってきており、国際標準化機構(ISO)の中の
JPEGと呼ばれるカラー自然画像に対する圧縮符号化
の標準化検討委員会にて画像データの圧縮方式が審議さ
れている。この符号化方式はADCT方式と呼ばれる可
変長符号化方式で、例えば画像電子学会誌Vol.1
8,No.6,pp398〜407(参照文献(1))
に詳しく記載されている。このADCT方式を上述の画
像記録装置の画像メモリーに適用した場合、フルカラー
の自然画像を、通常原始データ(非圧縮データ)の形態
で持つことにより従来の1/10〜1/20のメモリ容
量で済み、記録装置の総合コストを大幅に下げることが
可能となり極めて有益である。On the other hand, there is an increasing demand for taking color natural image data into a computer and performing various processing and image communication, and a compression coding method for a color natural image called JPEG in the International Standards Organization (ISO) has been increasing. The standardization study committee is discussing the compression method of image data. This coding method is a variable-length coding method called ADCT method. 1
8, No. 6, pp 398-407 (Reference (1))
Is described in detail. When this ADCT method is applied to the image memory of the above-described image recording apparatus, a full-color natural image is usually provided in the form of original data (uncompressed data), so that the memory capacity is 1/10 to 1/20 of the conventional memory capacity. Thus, the total cost of the recording apparatus can be significantly reduced, which is extremely useful.
【0004】一方、通常のコンピュータに接続した記録
装置として画像記録装置を使用する場合、標準化された
ページ記述言語(PDL)を用い、異なった記録装置間
でデータの互換性を持たせることが普通である。これは
各社の異なった仕様のプリンタまたはコンピュータを共
通の言語により互換性を持たせ、特定のコンピュータと
特定のプリンタが接続できないという欠点を無くそうと
するものである。このような記述言語として例えばPo
st Script(登録商標)等があり、内容の詳細
は、例えば、ページ記述言語Post Script
リファレンス・マニュアル(Adobe Systme
s著:石田晴久監修,松村邦仁訳,アスキー出版局,1
988))、ページ記述言語Post Scriptチ
ュートリアル & クックブック(Adobe Sys
tems著:野中浩一訳,アスキー出版技術部監修,ア
スキー出版局,1989))に記載されている。On the other hand, when an image recording apparatus is used as a recording apparatus connected to an ordinary computer, it is common to use a standardized page description language (PDL) to provide data compatibility between different recording apparatuses. It is. This aims to make printers or computers of different specifications of different companies compatible with a common language, and to eliminate the drawback that a specific computer cannot be connected to a specific printer. As such a description language, for example, Po
st Script (registered trademark) and the like. For details of the contents, for example, a page description language Post Script
Reference Manual (Adobe System)
s Author: Haruhisa Ishida, Translated by Kunihito Matsumura, ASCII Publishing Bureau, 1
988)), Page Description Language PostScript Tutorial & Cookbook (Adobe Sys)
tems: Translated by Koichi Nonaka, supervised by the ASCII Publishing Technology Department, ASCII Publishing Bureau, 1989)).
【0005】[0005]
【発明が解決しようとする課題】このような、PDL
は、オーバライトの概念で作られたものであり(すなわ
ち、既にメモリ上にドットデータとして展開された下地
データの上に新しいドットデータを上書きするという概
念)、PDLを上述の圧縮されたメモリ上で使用して、
画像データの修正をする場合には、以下の点で問題があ
る。SUMMARY OF THE INVENTION Such a PDL
Is created with the concept of overwriting (that is, the concept of overwriting new dot data on the underlying data that has already been developed as dot data in the memory), and the PDL is stored in the above-described compressed memory. Used in
When correcting image data, there are problems in the following points.
【0006】1)ADCTの8×8画素のブロック内で
画像が合成されたブロックは、新しい符号データに更新
する必要がある。[0006] 1) A block in which an image is combined in an ADCT 8 × 8 pixel block needs to be updated with new code data.
【0007】2)圧縮方式が可変長符号化の故、下地の
画像のある部分に別の画像データを重ねようとした場
合、その重ねるアドレスが一定しない。2) Since the compression method is variable-length encoding, when another image data is to be overlaid on a certain portion of the background image, the overlapping address is not constant.
【0008】3)合成した新しい画像データの総符号長
が画質によって変化する。3) The total code length of the synthesized new image data changes depending on the image quality.
【0009】これらから、画素形態の画像データの変更
に応じて、圧縮メモリ上の可変長符号化された画像デー
タを修正することは困難であるとされていた。From these, it has been considered difficult to correct the variable-length coded image data on the compression memory in accordance with the change of the pixel-form image data.
【0010】本発明は、上記問題点に鑑みてなされたも
のであり、PDLコマンドの展開画像と、圧縮画像とを
合成する装置において、可変長符号化された圧縮画像に
対する内容の変更をできるだけ画質の劣化が少なく抑え
て実行することを目的とする。また、本発明では、圧縮
画像の画質劣化が該圧縮画像の復号・再符号化の回数を
重ねる程、大きくなることを考慮し、できるだけ上記復
号・再符号化の回数を抑制することを更なる特徴とす
る。SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and in an apparatus for synthesizing a decompressed image of a PDL command and a compressed image, it is possible to change the content of a variable-length encoded compressed image as much as possible. It is an object of the present invention to execute the process while minimizing deterioration. Further, in the present invention, considering that the deterioration of the image quality of the compressed image increases as the number of times of decoding and re-encoding of the compressed image increases, the number of times of the decoding and re-encoding is further reduced as much as possible. Features.
【0011】[0011]
【課題を解決するための手段】このような目的を達成す
るために、請求項1の発明は、複数のコマンドを含むP
DLコマンドの展開画像と、圧縮画像とを合成する画像
処理装置において、画像を複数の小領域に分割し、当該
分割した小領域毎に可変長符号化して得られた圧縮画像
データを、前記分割した小領域に対応させて記憶する記
憶手段と、前記PDLコマンドを展開処理する展開手段
と、複数個分の前記PDLコマンドにより変更が加えら
れるべき、前記記憶手段に記憶された圧縮画像データに
おける部位を判定し、該判定部位を復号化する復号化手
段と、前記復号化手段により得られた復号画像を、前記
複数個分のPDLコマンドの展開処理結果に基づいて書
き替える書き替え手段と、前記書き替え手段により書き
替えられた画像を可変長符号化し、得られた圧縮画像を
前記記憶手段における前記判定部位のデータに基づいて
記憶させる圧縮手段とを具え、前記判定、前記判定部位
の復号化、前記復号画像の書き替えの夫々は、前記複数
個分のPDLコマンドを単位としてまとめて一度に行う
様にしたことを特徴とする。In order to achieve such an object, the invention according to claim 1 comprises a P command including a plurality of commands.
In an image processing apparatus that synthesizes a decompressed image of a DL command and a compressed image, the image is divided into a plurality of small areas, and the compressed image data obtained by performing variable-length encoding for each of the divided small areas is divided into the divided images. Storage means for storing the PDL command in correspondence with the small area, a development means for developing the PDL command, and a part in the compressed image data stored in the storage means to be changed by a plurality of PDL commands. Decoding means for judging the judgment part, and rewriting means for rewriting a decoded image obtained by the decoding means based on a result of expansion processing of the plurality of PDL commands, A compression method for performing variable length encoding on an image rewritten by rewriting means and storing the obtained compressed image based on the data of the determination part in the storage means. Comprising the door, the determining, decoding of the decision parts, each of rewriting of the decoded image, and characterized in that together PDL command of the plurality component units in such performed at a time.
【0012】[0012]
【0013】[0013]
【0014】[0014]
【作用】本発明では、画像を複数の小領域に分割し、当
該分割した小領域毎に可変長符号化して得られた圧縮画
像データを、上記分割した小領域に対応させて記憶手段
に記憶しておき、複数個分のPDLコマンドにより変更
が加えられるべき、上記記憶手段に記憶された圧縮画像
データにおける部位を判定し、該判定部位のデータを復
号化し、この復号画像を、上記複数個分のPDLコマン
ドの展開処理結果に基づいて書き替えてから、可変長符
号化し、得られた圧縮画像を上記記憶手段における上記
判定部位のデータに書き替えて記憶させる。これにより
可変長符号化された圧縮画像に対する内容の変更を、で
きるだけ画質の劣化が少なくなるように抑えて実行する
ことが可能となる。さらに本発明によれば、上記判定、
上記判定部位の復号化、上記復号画像の書き替えの夫々
は、上記複数個分のPDLコマンドを単位としてまとめ
て一度に行うので、圧縮画像の符号・再符号化の回数を
少なくすることができ、結果的に上記記憶手段に最終的
に記憶される圧縮画像の画質劣化を抑制することが可能
となる。According to the present invention, an image is divided into a plurality of small areas, and compressed image data obtained by performing variable length coding for each of the divided small areas is stored in the storage means in correspondence with the divided small areas. In addition, a part in the compressed image data stored in the storage means to be changed by a plurality of PDL commands is determined, and the data of the determined part is decoded. After rewriting based on the PDL command expansion processing result, variable-length encoding is performed, and the obtained compressed image is rewritten and stored in the storage unit as the data of the determination part. As a result, it is possible to change the content of the compressed image that has been subjected to the variable-length encoding while suppressing the deterioration of the image quality as much as possible. Furthermore, according to the present invention, the above determination,
Since the decoding of the determination portion and the rewriting of the decoded image are collectively performed at once by using the plurality of PDL commands as a unit, the number of times of encoding / re-encoding the compressed image can be reduced. As a result, it is possible to suppress the deterioration of the image quality of the compressed image finally stored in the storage unit.
【0015】また、画素位置に対応してその画素位置を
含む小領域の記憶手段上のアドレスを自動設定すること
により直列(シリアル)的に並べられた画素形態の画像
データを圧縮した後、自動的に一定順序で記憶手段に記
憶させることができる。また、修正目的のために特定位
置の小領域の圧縮領域データを読出すことも可能とな
る。さらに、本発明では修正目的のために読出した圧縮
画像データを復号手段により画素形態の画像データに復
号し、修正すべき画像データに変換した後、変換後の復
号データを圧縮手段に入力すると、画像修正後の圧縮画
像データが記憶手段に書込まれる。Further, by automatically setting the address of the small area including the pixel position on the storage means corresponding to the pixel position, the image data in the form of pixels arranged in series is compressed, It can be stored in the storage means in a specific order. It is also possible to read compressed area data of a small area at a specific position for the purpose of correction. Further, in the present invention, the compressed image data read for the purpose of correction is decoded into image data in pixel form by the decoding means, converted into image data to be corrected, and the converted decoded data is input to the compression means. The compressed image data after the image correction is written into the storage means.
【0016】[0016]
【実施例】以下、図面を参照して、本発明実施例を詳細
に説明する。Embodiments of the present invention will be described below in detail with reference to the drawings.
【0017】(第1実施例の基本構成) 図1に本発明の第1実施例の基本となる回路構成を示
す。(Basic Configuration of First Embodiment) FIG. 1 shows a basic circuit configuration of a first embodiment of the present invention.
【0018】図1において、1はPDL言語のコマンド
列を出力するホストコンピュータ、2はホストコンピュ
ータ1より出力されたコマンド列を受取り、解決・実行
するインタープリタ(以下、PDLインタープリタ)で
ある。In FIG. 1, reference numeral 1 denotes a host computer that outputs a PDL language command sequence, and 2 denotes an interpreter (hereinafter, a PDL interpreter) that receives, resolves, and executes the command sequence output from the host computer 1.
【0019】3は下地のデータと、PDLインタープリ
タ2により新たに生成された画像データとを合成する合
成器(本発明の変換手段)、4は圧縮器(本発明の圧縮
手段,符号器とも称す)である。5は十分な量のメモリ
量毎にブロック化して用いられる圧縮データメモリ(本
発明の記憶手段を構成する)である。Reference numeral 3 denotes a synthesizer for synthesizing background data and image data newly generated by the PDL interpreter 2 (conversion means of the present invention), and reference numeral 4 denotes a compressor (also referred to as compression means and encoder of the present invention). ). Reference numeral 5 denotes a compressed data memory (which constitutes the storage means of the present invention) which is used by being divided into blocks each having a sufficient memory amount.
【0020】6は復号器(本発明の復号手段)、7は復
号器6の出力を合成器3へ出力するのか、それとも、他
の機器へ出力するかを切換えるマルチプレクサである。Reference numeral 6 denotes a decoder (decoding means of the present invention), and reference numeral 7 denotes a multiplexer for switching whether to output the output of the decoder 6 to the synthesizer 3 or to another device.
【0021】8は圧縮データのリードライトを制御し、
リードライトのために圧縮メモリ5に対するアドレスを
設定するアドレスコントローラ(本発明のアドレス設定
手段)である。9はアドレスコントローラ8が圧縮メモ
リ5内の空き領域を管理するために用いられる空バッフ
ァ領域管理回路である。8 controls read / write of compressed data,
An address controller (address setting means of the present invention) for setting an address for the compression memory 5 for reading and writing. Reference numeral 9 denotes an empty buffer area management circuit used by the address controller 8 to manage an empty area in the compression memory 5.
【0022】このような回路において、ホストコンピュ
ータ1からPDLコマンドを受けると、PDLインター
プリタ2は、このコマンドにより変更になる画像部位を
判定し、該当部位を含むブロックラスターのデータを逐
次圧縮メモリ5から読出し、復号出力するように、アド
レスコントローラ8および6の復号器を制御する。In such a circuit, upon receiving a PDL command from the host computer 1, the PDL interpreter 2 determines an image part to be changed by the command, and sequentially reads block raster data including the relevant part from the compression memory 5. The decoders of the address controllers 8 and 6 are controlled so as to read, decode and output.
【0023】同時にPDLインタープリタ2はマルチプ
レクサ7を制御し、復号器6で復号されたデータを合成
器3へ出力させる。PDLインタープリタ2は、加えて
合成器3をもコントロールし、復号器6から出力される
復号データを入力し、バッファに蓄えるように設定す
る。At the same time, the PDL interpreter 2 controls the multiplexer 7 to output the data decoded by the decoder 6 to the synthesizer 3. The PDL interpreter 2 also controls the synthesizer 3 and inputs the decoded data output from the decoder 6 so as to store it in a buffer.
【0024】PDLインタープリタ2は、復号データの
取り込みが完了したブロックラスター(本発明の小領
域)に対して、このブロックラスターの画素位置に該当
する領域に、上述のコマンドにより生成される新データ
を上書きすることにより新データの変換処理を行う。こ
のブロックラスター領域に該当するデータをPDLイン
タープリタ2により書き終えると、再度、該ブロックラ
スター領域を圧縮器4にて圧縮し、圧縮メモリ5の該当
位置に格納し直すように合成器3,圧縮器4およびアド
レスコントローラ8をコントロールする。以上の手順を
必要となるブロックラスター全てに渡り繰り返し実行す
る。The PDL interpreter 2 adds new data generated by the above command to an area corresponding to the pixel position of the block raster (small area of the present invention) for which the capture of decoded data has been completed. The new data is converted by overwriting. When the data corresponding to the block raster area has been written by the PDL interpreter 2, the block raster area is compressed again by the compressor 4 and stored again in the corresponding location of the compression memory 5 so that the block raster area is stored again. 4 and the address controller 8. The above procedure is repeatedly executed over all necessary block rasters.
【0025】なお、1画面をn(主走査方向)×m(副
走査方向)のブロックに分割した場合主走査方向に沿っ
たn個のブロックを1ブロックラスターと称する。本実
施例では1ブロックラスターを本発明の1小領域として
取扱う。When one screen is divided into n (main scanning direction) × m (sub scanning direction) blocks, n blocks along the main scanning direction are called one block raster. In this embodiment, one block raster is treated as one small area of the present invention.
【0026】図2は、図1に示される合成器3の回路構
成例を示す。FIG. 2 shows an example of a circuit configuration of the synthesizer 3 shown in FIG.
【0027】図中21,22,23は、各々8ライン
(本)の(ラスター)バッファより成り、各々がブロッ
クラスター一本分の復号済データを保持できる容量を有
している。In the figure, reference numerals 21, 22, and 23 each consist of (raster) buffers of eight lines (lines), each of which has a capacity to hold decoded data of one block raster.
【0028】24はセレクタであり、PDLインタープ
リタ2からの出力データ27と復号器6により復号さ
れ、セレクタ7を経由して入力されている信号データ2
8とを、セレクタコントローラ26により出力される信
号に基づき、上述8ラインバッファ21,22,23の
中のいずれかの相異なる8ラインバッファにそれぞれ独
立に接続させるものである。なお、PDLインタープリ
タ2から出力される信号29によりセレクタコントロー
ラ26は制御される。また、同じく25もセレクタであ
り、上述8ラインバッファ21,22,23のうちの一
つを選択出力するものである。Numeral 24 denotes a selector, which is the output data 27 from the PDL interpreter 2 and the signal data 2 which has been decoded by the decoder 6 and input via the selector 7.
8 are independently connected to any of the different eight line buffers among the eight line buffers 21, 22, and 23 based on the signal output from the selector controller 26. The selector controller 26 is controlled by a signal 29 output from the PDL interpreter 2. A selector 25 also selects and outputs one of the eight line buffers 21, 22, and 23.
【0029】セレクタコントローラ26は、PDLイン
タープリタ2とバッファの切り替えタイミングを交信す
る。すなわち、PDLインタープリタ2が新しいバッフ
ァに対してデータを書き込みたい旨の要求信号を出す
と、この要求信号が来るたびにセレクタコントローラ2
6は、8ラインバッファの21,22,23を21→2
2→23→21→…の順に8ラインバッファを切り替え
て、信号線群27と接続する。The selector controller 26 communicates with the PDL interpreter 2 when to switch the buffer. That is, when the PDL interpreter 2 issues a request signal to write data to a new buffer, the selector controller 2
6 is 21 → 22 of the 8-line buffer 21 → 2
The 8 line buffers are switched in the order of 2 → 23 → 21 →... And connected to the signal line group 27.
【0030】同時に、22→23→21→22→…の順
に8ラインバッファを切り替えて信号線群28と接続
し、次にPDLインタープリタ2により上書きされるブ
ロックラスターの下地となるデータを復号して蓄える。
また、同時にセレクタ25を制御して、23→21→2
2→23→…の順に8ラインバッファを切り替えて下地
データ上にPDLインタープリタ2からの上書きが完了
したデータを符号器(圧縮器)4へ出力する。At the same time, the eight line buffers are switched in the order of 22 → 23 → 21 → 22 →... To connect to the signal line group 28, and then the base data of the block raster overwritten by the PDL interpreter 2 is decoded. store.
At the same time, the selector 25 is controlled so that 23 → 21 → 2
The 8-line buffer is switched in the order of 2 → 23 →..., And the overwritten data from the PDL interpreter 2 is output to the encoder (compressor) 4 on the base data.
【0031】30は、アドレスコントローラであり、復
号器6からの走査線同期信号(HSYNC)と、画素同
期(PXCLK),PDLインタープリタ2からのデー
タ出力アドレスおよび符号器4からの走査線同期信号,
画素同期信号を入力し、それぞれ、復号器6より復号さ
れてきた画素データの当該8ラインバッファ上の出力ア
ドレス,PDLインタープリタからのデータの上書きす
る画素データの該当8ラインバッファ上の出力アドレス
および符号器4へ符号化されるべく出力される画素デー
タの当該8ラインバッファ上の出力アドレスを生成す
る。生成の出力アドレスはセレクタコントローラ26か
らのセレクタ信号に従って、それぞれ3組の8ラインバ
ッファの相異なるいずれか1つづつに出力される。Reference numeral 30 denotes an address controller, which is a scanning line synchronization signal (HSYNC) from the decoder 6, a pixel synchronization (PXCLK), a data output address from the PDL interpreter 2, a scanning line synchronization signal from the encoder 4,
The pixel synchronizing signal is input, and the output address of the pixel data decoded by the decoder 6 on the 8-line buffer, the output address of the pixel data to be overwritten with the data from the PDL interpreter on the 8-line buffer, and the code, respectively. An output address on the 8-line buffer of the pixel data output to be encoded to the unit 4 is generated. The generated output addresses are output to different ones of the three sets of 8-line buffers in accordance with the selector signal from the selector controller 26.
【0032】図3は、図1のアドレスコントローラ30
の回路構成例を示す。図中31は、復号器6からの走査
同期信号(HSYNC)をカウントするカウンタであ
り、32は復号器6からの画素同期信号(PXCLK)
をカウントするカウンタである。FIG. 3 shows the address controller 30 of FIG.
2 shows a circuit configuration example. In the figure, 31 is a counter for counting the scanning synchronization signal (HSYNC) from the decoder 6, and 32 is a pixel synchronization signal (PXCLK) from the decoder 6.
Is a counter that counts
【0033】カウンタ32は、そのカウント結果を、一
走査線内の主走査方向の位置に対応するアドレスとして
出力し、カウンタ31はそのカウンタ結果を一ラスター
ブロック内の各走査線の先頭の画素のアドレスの上位ビ
ットして出力し、カウンタ31の出力を上位ビットしカ
ウンタ32の出力をそれに続く下位ビットのアドレス信
号線として用いたことで、復号器6からの出力データの
8ラインバッファ上での格納アドレスを生成している。
また、カウンタ32は、走査同期信号(HSYNC)に
よりリセットされる。The counter 32 outputs the count result as an address corresponding to a position in one scanning line in the main scanning direction. The counter 31 outputs the counting result to the first pixel of each scanning line in one raster block. By outputting the upper bits of the address and outputting the output of the counter 31 as the upper bits and using the output of the counter 32 as the address signal line of the subsequent lower bits, the output data from the decoder 6 is stored in the 8-line buffer. The storage address is being generated.
Further, the counter 32 is reset by the scanning synchronization signal (HSYNC).
【0034】同様に、カウンタ33,34は符号器4か
らの同期信号をうける。カウンタ33は、符号器4から
の走査同期信号(HSYNC)をカウントし、カウンタ
34は符号器からの画素同期信号(PXCLK)をカウ
ントし、カウンタ31,32と同様に、符号器4へ出力
するデータの該当8ラインバッファ上での格納アドレス
を生成している。Similarly, counters 33 and 34 receive a synchronization signal from encoder 4. The counter 33 counts the scan synchronization signal (HSYNC) from the encoder 4, and the counter 34 counts the pixel synchronization signal (PXCLK) from the encoder and outputs the same to the encoder 4 as the counters 31 and 32. The storage address of the data on the corresponding 8-line buffer is generated.
【0035】セレクタ35,36,37は、それぞれ、
カウンタ31,32により生成されたアドレスをセレク
タ24によって選択された8ラインバッファに対して選
択出力するセレクタ、カウンタ33,34により生成さ
れたアドレスをセレクタ25によって25によって選択
された8ラインバッファに選択出力するセレクタ、およ
びPDLインタープリタ2より出力されてきたアドレス
信号をセレクタ24によって選択された上書きされるべ
き下地データを保持する8ラインバッファに選択出力す
るセレクタである。The selectors 35, 36 and 37 are respectively
A selector for selectively outputting the address generated by the counters 31 and 32 to the eight line buffer selected by the selector 24, and selecting the address generated by the counters 33 and 34 to the eight line buffer selected by the selector 25. The selector outputs the address signal output from the PDL interpreter 2 and outputs the address signal to an 8-line buffer that holds the base data to be overwritten and selected by the selector 24.
【0036】かくして、下地データ上に上書きされたデ
ータは、再度符号器4へ転送され圧縮される。圧縮され
たデータは、符号器4より圧縮メモリ5へ出力され格納
される。Thus, the data overwritten on the base data is transferred again to the encoder 4 and compressed. The compressed data is output from the encoder 4 to the compression memory 5 and stored.
【0037】図4は圧縮メモリ5上の各ブロックラスタ
ーに対応する圧縮データの格納位置を表わしている。例
として、最大4096×4096画素,1画素3バイト
(1バイト/色)からなる画像を扱うものとする。FIG. 4 shows storage locations of compressed data corresponding to each block raster on the compression memory 5. As an example, it is assumed that an image composed of a maximum of 4096 × 4096 pixels and 3 bytes per pixel (1 byte / color) is handled.
【0038】この最大画像は48メガバイト(MByt
e)の容量をもつ。符号器4による圧縮化を1/12に
設定してあるとする。ブロックラスターは前記参照文献
(1)にあるように各ブロックが8×8画素単位で構成
されて圧縮されている。よって、最大サイズの画像は5
12×512のブロックで構成される。最大サイズの画
像は約4メガバイトの容量に圧縮され、各ブロックラス
ター当りの平均符号長は、8キロバイト(KByte)
となる。本実施例では、各ブロックラスター当りのメモ
リ容量として、平均符号長のデータ量を想定し、図4で
示す如く圧縮メモリ5は8キロバイト毎に各ブロックラ
スターに対する圧縮メモリ領域を設定してある。This maximum image is 48 megabytes (MByt
e) capacity. It is assumed that the compression by the encoder 4 is set to 1/12. In the block raster, each block is compressed in units of 8 × 8 pixels as described in the above-mentioned reference (1). Therefore, the maximum size image is 5
It is composed of 12 × 512 blocks. The largest image is compressed to a capacity of about 4 megabytes and the average code length per block raster is 8 kilobytes (KB).
Becomes In this embodiment, assuming a data amount of an average code length as a memory capacity per block raster, the compression memory 5 sets a compression memory area for each block raster every 8 kilobytes as shown in FIG.
【0039】図5は図4で示す圧縮メモリに実際に保持
されているデータの様子を表現している。図5の各ブロ
ックは、図4の各ブロックラスターのデータ領域と同一
のもので、平均符号長毎に各ブロックラスターに対する
圧縮メモリ領域を設定していることを明示して表現して
ある。FIG. 5 shows the state of data actually held in the compression memory shown in FIG. Each block in FIG. 5 is the same as the data area of each block raster in FIG. 4, and expressly expresses that a compression memory area for each block raster is set for each average code length.
【0040】斜線で表現されている部分が実際に各ブロ
ックラスターに対する符号を格納してある領域を示して
いる。The shaded portions indicate the areas where the codes for each block raster are actually stored.
【0041】図5において、現画像の第2ブロックラス
ター,第4ブロックラスター,第7ブロックラスター,
第10ブロックラスター,…,第506ブロックラスタ
ー,第510ブロックラスターに関しては、平均符号長
よりも長い符号量となっており、平均符号長のデータ量
毎に設定されているブロックラスター圧縮メモリ領域の
1本に収まりきらず、複数の領域を用いて格納されてい
る。特に第7ブロックラスターに関しては2本目の領域
を用いて収まりきらず、3本の領域を用いて格納してい
る例となっている。In FIG. 5, the second block raster, the fourth block raster, the seventh block raster,
The 10th block raster,..., The 506th block raster, and the 510th block raster have a code amount longer than the average code length, and the block raster compression memory area set for each data amount of the average code length. The data is not stored in a single file, and is stored using a plurality of areas. In particular, in the case of the seventh block raster, the data is not stored using the second area, but is stored using three areas.
【0042】図6は、図1に示すアドレスコントローラ
8および空バッファ領域管理回路9の回路構成を示す。FIG. 6 shows a circuit configuration of the address controller 8 and the empty buffer area management circuit 9 shown in FIG.
【0043】図6において、61はブロックラスターの
同期信号をカウントするカウンタであり、圧縮メモリ5
内の第何ブロックラスターの領域をアクセスするかをカ
ウント値で示す。PDLインタープリタ2により書き替
えられるブロックアドレスに対応する値を信号線62を
経てカウンタ61の初期値としてセットし、カウンタ6
1は符号器4からのブロックラスター同期信号63をカ
ウントする。In FIG. 6, reference numeral 61 denotes a counter for counting the synchronization signal of the block raster.
The count value indicates the number of the block raster area to be accessed. A value corresponding to the block address rewritten by the PDL interpreter 2 is set via a signal line 62 as an initial value of a counter 61, and the counter 6
1 counts the block raster synchronization signal 63 from the encoder 4.
【0044】64は、ブロックデータの転送クロックを
カウントするカウンタであり、符号器4からのバイト毎
の転送クロック65をカウントし、カウント値で当該ブ
ロックラスターデータ内のどの位置に格納するかを示し
ている。カウンタ64は符号器のブロックラスター同期
信号でリセットされる。また、カウンタ64は圧縮メモ
リ5内の該当ブロックラスター用のメモリ領域にデータ
を格納しきれない場合には、カウントアップ(キャリ
ー)信号76を発生し、自分自身をリセットする。この
場合は、カウントアップ信号76により、図1の空バッ
ファ領域管理回路9を起動して、残りのデータを引き続
き格納すべき圧縮メモリ上のブロックラスター用メモリ
領域の位置を得る。Reference numeral 64 denotes a counter for counting the transfer clock of the block data. The counter 64 counts the transfer clock 65 for each byte from the encoder 4, and indicates at which position in the block raster data the count value is stored. ing. The counter 64 is reset by the encoder's block raster synchronization signal. When data cannot be stored in the corresponding block raster memory area in the compression memory 5, the counter 64 generates a count-up (carry) signal 76 and resets itself. In this case, the count-up signal 76 activates the empty buffer area management circuit 9 in FIG. 1 to obtain the position of the block raster memory area on the compression memory where the remaining data is to be stored continuously.
【0045】66はカウンタであり、カウンタ61と同
様ブロックラスターの同期信号をカウントする。カウン
タ66はPDLインタープリタ2により上書きされる画
素位置を含むブロックラスターの中の最初のブロックラ
スター番号を初期カウントとしてセットされる。以降、
カウンタ66は復号器6よりのブロックラスター同期信
号67をカウントし、カウント値により圧縮メモリ5内
の第何ブロックラスターの領域をアクセスするかを示
す。Numeral 66 denotes a counter which, like the counter 61, counts the synchronizing signal of the block raster. The counter 66 is set with the first block raster number in the block raster including the pixel position overwritten by the PDL interpreter 2 as an initial count. Or later,
The counter 66 counts the block raster synchronization signal 67 from the decoder 6 and indicates which block raster area in the compression memory 5 is to be accessed based on the count value.
【0046】68はカウンタ64と同じく、データの転
送クロックをカウントするカウンタであり、カウンタ6
8は復号器6からのバイト毎の転送クロックをカウント
し、カウント値で当該ブロックラスターデータ内のどの
位置を読み出すかを示している。カウンタ68は、復号
器6のラスター同期信号でリセットされる。また、カウ
ンタ68は、圧縮メモリ5内の該当ブロックラスター用
のメモリ領域いっぱいにデータを読み出しても該ブロッ
クラスターのデータを全ては読み出せていない場合に
は、カウントアップ(キャリー)信号73を発生し、自
分自身をリセットする。この場合は、カウントアップ信
号73により、図1の空きバッファ管理回路9を起動し
て、残りのデータを引き続き読み出すべき圧縮メモリ上
のブロックラスター用メモリ領域の位置を得る。Reference numeral 68 denotes a counter for counting the data transfer clock, similar to the counter 64.
Numeral 8 indicates the transfer clock for each byte from the decoder 6 and indicates which position in the block raster data is to be read by the count value. The counter 68 is reset by the raster synchronization signal of the decoder 6. The counter 68 also generates a count-up (carry) signal 73 if all data of the block raster has not been read even if the data has been read to fill the memory area for the corresponding block raster in the compression memory 5. And reset itself. In this case, the empty buffer management circuit 9 shown in FIG. 1 is activated by the count-up signal 73, and the position of the block raster memory area on the compression memory from which the remaining data is to be continuously read is obtained.
【0047】空きバッファ領域管理回路9は、ブロック
データの転送クロックをカウントするカウンタ64より
のカウントアップ(キャリー)信号76により起動を受
けると、書き込み中のブロックラスターの画像メモリ内
の拡張用ブロックラスターメモリ領域のアドレスを信号
線80に出力する。また、同時にセレクタ78の選択切
替信号74およびラッチ79のラッチタイミング信号7
5を出力する。信号線80に出力した拡張領域用ブロッ
クラスターメモリ位置は、信号74によるタイミングで
セレクタ78で選択出力され、信号線75のタイミング
によりラッチ79に保持され、以降の画像データの格納
アドレスの上位アドレスとして用いられる。When the free buffer area management circuit 9 is activated by a count-up (carry) signal 76 from the counter 64 that counts the transfer clock of the block data, the block raster for writing in the image memory of the block raster being written is expanded. The address of the memory area is output to a signal line 80. At the same time, the selection switching signal 74 of the selector 78 and the latch timing signal 7 of the
5 is output. The block raster memory position for the extended area output to the signal line 80 is selected and output by the selector 78 at the timing of the signal 74, is held in the latch 79 at the timing of the signal line 75, and is used as the upper address of the storage address of the subsequent image data. Used.
【0048】同様に、空きバッファ管理回路9は、ブロ
ックデータの転送クロックをカウントするカウンタ68
よりのカウントアップ(キャリー)信号73により起動
を受けると、読み出し中のブロックラスターの画像メモ
リ内の拡張用ブロックラスターメモリ領域のアドレスを
信号線81に出力すると同時に、セレクタ83の選択切
替信号87およびラッチ84のラッチタイミング信号8
8を出力する。信号線81に出力した拡張領域用ブロッ
クラスターメモリ位置は、信号87によるタイミングで
セレクタ83で選択出力され、信号線88のタイミング
でラッチ84に保持され、以降の画像データの読み出し
アドレスの上位アドレスとして用いられる。Similarly, the empty buffer management circuit 9 includes a counter 68 for counting the transfer clock of the block data.
When the start is carried out by the count-up (carry) signal 73, the address of the block raster memory area for expansion in the image memory of the block raster being read is output to the signal line 81, and at the same time, the selection switching signal 87 of the selector 83 and Latch timing signal 8 of latch 84
8 is output. The block raster memory position for the extended area output to the signal line 81 is selected and output by the selector 83 at the timing of the signal 87, is held in the latch 84 at the timing of the signal line 88, and is used as the upper address of the read address of the subsequent image data. Used.
【0049】図7に、図1の空バッファ領域管理回路9
の詳細な回路構成を示す。FIG. 7 shows the empty buffer area management circuit 9 of FIG.
3 shows a detailed circuit configuration.
【0050】図7においてバッファ読み書き制御回路9
0は、信号76を入力すると、信号102をフラグバッ
ファ91へ出力する。フラグバッファ91は図8に示す
ような、拡張空き領域ブロックラスターの数個分のバッ
ファとなっており、図8では各1ビットよりなる512
個のセルからフラグバッファ91は構成されている。各
セルは、それぞれ図4に示される画像メモリの第0拡張
(ブロックラスター)領域〜第511拡張(ブロックラ
スター)領域に対応しており、ビット“1”で対応する
拡張領域が空き領域であることを示し、ビット“0”で
既使用中領域であることを示している。In FIG. 7, the buffer read / write control circuit 9
When the signal 0 is input, the signal 102 outputs the signal 102 to the flag buffer 91. The flag buffer 91 is a buffer for several extended free area block rasters as shown in FIG. 8, and in FIG.
The flag buffer 91 is composed of the cells. Each cell corresponds to the 0th extension (block raster) area to the 511st extension (block raster) area of the image memory shown in FIG. 4, and the corresponding extension area with bit "1" is a free area. The bit "0" indicates that the area is already in use.
【0051】バッファ91は信号102を受けると、保
持する512ビットの情報を各々98−0〜98−51
1より成る信号98へ出力する。ソータ92は信号98
を入力し、信号98−0〜98−511の中でビット
“1”である信号のうち最も順番の若いものを選び出力
し、その順番の信号のみをビット“1”として、その他
をビット“0”として出力する512−入力・512−
出力の回路である。When buffer 91 receives signal 102, it stores the 512-bit information held therein from 98-0 to 98-51, respectively.
1 to a signal 98. Sorter 92 is signal 98
From the signals 98-0 to 98-511, and selects and outputs the signal with the lowest order among the signals of bit "1". Only the signal in that order is set to bit "1", and the others are set to bit "1". 512-input and 512-output as 0 "
Output circuit.
【0052】ソータ92の構成例を図9に示した。ソー
タ92の出力99は、エンコーダ93において、ビット
“1”である信号線の順番を9ビットの2進数にエンコ
ードされて9ビットより成る信号80に変換出力され
る。エンコーダ93により出力された信号80は、2進
表現で拡張領域の位置を示しており、94の拡張ブロッ
クアドレスバッファの中に取り込まれる。FIG. 9 shows a configuration example of the sorter 92. The output 99 of the sorter 92 is converted into a 9-bit signal 80 by the encoder 93 by encoding the order of the signal line of bit “1” into a 9-bit binary number. The signal 80 output by the encoder 93 indicates the position of the extension area in binary notation, and is taken into the extension block address buffer 94.
【0053】図7のバッファテーブル94は、図11に
示されるようなテーブルとして構成される。信号86で
入力された拡張前のブロックアドレスはバッファ読み書
き制御回路90においてバッファテーブル94のアクセ
ス位置を示す信号101に変換されるので、この信号1
01を拡張ブロックアドレスバッファ94で受け、該当
位置に信号80の内容を取り込む。The buffer table 94 shown in FIG. 7 is configured as a table as shown in FIG. The block address before expansion input by the signal 86 is converted by the buffer read / write control circuit 90 into a signal 101 indicating the access position of the buffer table 94.
01 is received by the extension block address buffer 94, and the content of the signal 80 is fetched at the corresponding position.
【0054】バッファ読み書き制御回路90は信号73
を入力すると、その時点で読み出し中のブロック番号を
信号82により入力し、拡張ブロックアドレスバッファ
94に対しては信号101により該ブロック番号を出力
する。拡張ブロックアドレスバッファ94は、信号10
1で指定される位置の内容を信号線81に出力する。The buffer read / write control circuit 90 outputs the signal 73
, The block number being read at that time is input by a signal 82, and the block number is output to the extended block address buffer 94 by a signal 101. The extension block address buffer 94 outputs the signal 10
The content at the position designated by 1 is output to the signal line 81.
【0055】信号線81は、信号82で入力された読み
出し中のブロックラスターの続きのデータが格納されて
いるブロックラスターバッファの番号を出力している。
この信号81は同時にデーコーダ96へも出力される。
デコーダ96は、9ビットの2進数で表現されている信
号81に基づき、512本の信号線100上の信号10
0−0〜100−511の中の9ビットの2進数を示す
番号の順番の信号のみをビット“1”として他、信号を
ビット“0”として出力する。フラグバッファ更新回路
95は信号98,99,100を出力し、書き込みに使
われる拡張ブロックの位置のフラグは“0”とし、読み
出される拡張ブロックの位置のフラグは“1”とするも
ので、画像メモリの空バッファ領域の使用状態を更新す
るものであり、図10にその詳細を示す。The signal line 81 outputs the number of the block raster buffer in which the data subsequent to the block raster being read input by the signal 82 is stored.
This signal 81 is also output to the decoder 96 at the same time.
The decoder 96 generates a signal 10 on 512 signal lines 100 based on the signal 81 represented by a 9-bit binary number.
Only signals in the order of numbers indicating a 9-bit binary number among 0-0 to 100-511 are set as bit "1", and other signals are output as bit "0". The flag buffer updating circuit 95 outputs signals 98, 99 and 100, and sets the flag of the position of the extended block used for writing to "0" and the flag of the position of the extended block to be read to "1". It updates the use state of the empty buffer area of the memory, and FIG. 10 shows the details.
【0056】図6に戻り、ラッチ79およびカウンタ6
4は、ラッチ79の出力が上位アドレス信号、64のカ
ウント値が下位アドレス信号として組み合わされて圧縮
メモリの書き込みデータアドレスとして用いられ、同様
にラッチ84およびカウンタ68はラッチ84の出力が
上位アドレス信号、68のカウント値が下位アドレス信
号として組み合わされて圧縮メモリからの読み出しデー
タアドレスとして用いられる。読み書き制御回路70
は、上記書き込みデータアドレス,読み出しデータアド
レス,符号器4からのデータ転送クロック65,復号器
6からのデータ転送クロック69を入力して、圧縮メモ
リ5からのデータの読み出しおよび書き込みのアドレ
ス,タイミングを制御する。Referring back to FIG. 6, the latch 79 and the counter 6
4 is used as the write data address of the compression memory by combining the output of the latch 79 with the upper address signal and the count value of 64 as the lower address signal. Similarly, the latch 84 and the counter 68 output the upper address signal of the latch 84. , 68 are combined as a lower address signal and used as a read data address from the compression memory. Read / write control circuit 70
Inputs the write data address, the read data address, the data transfer clock 65 from the encoder 4, and the data transfer clock 69 from the decoder 6, and sets the address and timing for reading and writing data from the compression memory 5. Control.
【0057】図1の符号器4,復号器6は、例えば米国
C−Cube社製のCL550等のLSIを使用すれ
ば、同期信号等を調整する回路を必要に応じて付加する
ことにより容易に構成が可能である。The encoder 4 and the decoder 6 shown in FIG. 1 can be easily provided by adding a circuit for adjusting a synchronization signal and the like as necessary by using an LSI such as CL550 manufactured by C-Cube, USA. Configuration is possible.
【0058】前記ブロックラスターの区切りは、マーカ
ーコードを用いて制御され、また、このマーカーコード
を用いることにより、各ブロックラスター毎に独立して
符号化および復号化が実行される。このマーカーコード
に関しては、例えば前述の文献(1)に詳しく説明され
ている。The delimitation of the block raster is controlled using a marker code, and by using this marker code, encoding and decoding are executed independently for each block raster. This marker code is described in detail in, for example, the aforementioned reference (1).
【0059】以下に、本実施例において用いられている
符号化方式に関して説明する。The encoding system used in this embodiment will be described below.
【0060】図18は、本実施例において用いられる符
号化方式を処理の流れに沿って、その全体を説明する図
である。FIG. 18 is a diagram for explaining the entire encoding system used in this embodiment along the processing flow.
【0061】まず、原画像を8×8画素よりなる正方領
域毎にブロックとして処理を進める。180に示す如く
に、原原稿はR,G,Bの3色の成分毎に分けてデータ
が用意され、ある原画像の8×8画素の正方ブロックに
対して、Rのみの64画素データブロック、Gのみの6
4画素データブロック、Bのみの64画素データブロッ
クが処理され、次に、原画像の上記8×8画素の正方ブ
ロックの右隣の8×8画素ブロックのRデータ,Gデー
タ,Bデータの順に処理を進め、そのブロックラスター
の処理をおえると、次のブロックラスターの処理も順次
8×8画素のブロック単位に左から右へと処理が進めら
れるものである。181では、前記の如き順で、8×8
画素の各色成分をそれぞれ8×8のサイズで公知のDC
T(Discrete Cosine Transfo
rm)演算を行い、得られた結果(やはり、8×8のサ
イズをもったマトリックスで表現できる)の各値を、あ
らかじめ設定されている量子化ステップ値183(やは
り、8×8のマトリクスの各項に対応した64個の定数
群)で、182において、それぞれ8×8の各項毎に線
形量子化を実行する。量子化行列は、用いる色成分に対
して、符号化効率が最高となるように最適化された値を
用いるのがよいが、基本的には任意に設定することがで
きる。図21に、本実施例で用いる一例を示した。First, the process proceeds with the original image as a block for each square area of 8 × 8 pixels. As shown in FIG. 180, the original manuscript has data prepared for each of the three color components of R, G, and B. For a square block of 8 × 8 pixels of a certain original image, a 64-pixel data block of only R is provided. , G only 6
A 4-pixel data block and a 64-pixel data block of only B are processed, and then the R data, G data, and B data of the 8 × 8 pixel block on the right of the square block of 8 × 8 pixels of the original image are processed in that order. When the processing is advanced and the processing of the block raster is completed, the processing of the next block raster is also performed sequentially from left to right in units of 8 × 8 pixel blocks. In the order of 181, 8 × 8
Each color component of the pixel is a known DC with a size of 8 × 8.
T (Discrete Cosine Transfo
rm) operation, and each value of the obtained result (also represented by a matrix having an 8 × 8 size) is converted into a predetermined quantization step value 183 (also a 8 × 8 matrix). In 182, linear quantization is performed for each of the 8 × 8 terms with 64 constant groups corresponding to each term. As the quantization matrix, it is preferable to use a value optimized so as to maximize the coding efficiency for the color component to be used, but it can basically be arbitrarily set. FIG. 21 shows an example used in this embodiment.
【0062】かくして得られた線形量子化後の8×8の
DCT係数184は、図20に示したように水平方向の
位置iを左から右に0〜7、垂直方向の位置jも、上か
ら下へ0〜7で、各項の位置を(i,j)なる座標表示
すると、(0,0)の位置は直流(DC)成分を表わ
し、iが大きくなるにつれて水平方向の空間周波数が高
い成分を表わすようになり、jが大きくなるにつれて垂
直方向の空間周波数が高い成分を表わすようになってい
る。As shown in FIG. 20, the 8 × 8 DCT coefficients 184 after linear quantization obtained from the horizontal position i are from 0 to 7 from left to right, and the vertical position j is also When the position of each item is represented by coordinates (i, j) from 0 to 7 below, the position of (0, 0) represents a direct current (DC) component, and the spatial frequency in the horizontal direction increases as i increases. It represents a high component, and as j increases, the spatial frequency in the vertical direction represents a high component.
【0063】8×8量子化済DCT係数の各項は、
(0,0)位置にある直流(DC)成分と、それ以外の
項でなる交流(AC)成分を別々に分けて符号化する。Each term of the 8 × 8 quantized DCT coefficient is
A direct current (DC) component at the (0,0) position and an alternating current (AC) component consisting of other terms are separately coded.
【0064】185では、直流(DC)成分のみに対し
て、近傍ブロック間での一次元予測を行い、予測誤差を
生成する。すなわち、一つ前のブロックの直流(DC)
成分DC(0,0)k-1 を、当該ブロックの直流(D
C)成分DC(0,0)K から引いた値Deltak を
もって、当該ブロックの予測誤差とする(Deltak
=DC(0,0)k −DC(0,0)k-1 )。このブロ
ック間の予測は、図19に示したように各色成分毎に当
該ブロックと前ブロックとの間で行われるものである。At 185, one-dimensional prediction is performed between neighboring blocks only for the direct current (DC) component to generate a prediction error. That is, the direct current (DC) of the previous block
The component DC (0,0) k-1 is converted to the direct current (D
C) The value Delta k subtracted from the component DC (0,0) K is used as the prediction error of the block (Delta k
= DC (0,0) k- DC (0,0) k-1 ). The prediction between the blocks is performed between the block and the previous block for each color component as shown in FIG.
【0065】186では、上記予測誤差を図22に示さ
れる対応に従ってコード化し、このコードSSSSの値
をハフマン符号化する。SSSSの値は、予測誤差のグ
ループを表すのみならず、そのグループ内のどの値かを
特定するに必要なビット数をも表わしている。例えば、
SSSS=2のグループのメンバーは、−3,−2,
2,3の4個であり、そのうちのいずれであるかの識別
に2ビットを要するということでもある。SSSSの値
がハフマン符号化された後、SSSSビットの付加ビッ
トが続いて付加される。ハフマン符号は発生頻度の高い
コードに対しては、より短い符号長になるように188
にあらかじめ設定しておく。At 186, the prediction error is coded according to the correspondence shown in FIG. 22, and the value of the code SSSS is Huffman coded. The value of SSSS not only indicates the group of the prediction error, but also indicates the number of bits required to specify which value in the group. For example,
SSSS = 2 group members are -3, -2,
That is, there are four, two and three, and two bits are required to identify which one of them. After the value of SSSS is Huffman-coded, additional bits of SSSS bits are subsequently added. The Huffman code is used to reduce the code length to 188 for frequently occurring codes.
Set in advance.
【0066】交流(AC)成分は、図20に示すよう
に、8×8の係数行列内で低周波成分から高周波成分へ
とジグザグ走査させる。図23に示したように、0でな
い係数は、その値にYROい15のグループのいずれか
に分類される。その識別コードをSSSS(1から15
までの整数)とする。一方、直前の0でない係数との間
に挟まれた0の個数をNNNNとする。係数行列は8×
8であり、63個のAC係数を含むが、NNNNが16
以上になる場合には、残りが15以下になるまで図29
〜図31のR16という符号を繰り返して生成すること
によって、結局のところNNNNを15以下におさえる
ようにする。これらSSSSとNNNNの値は別々では
なく、一組として、図23に示したようにハフマン符号
化される。このハフマン符号は、発生頻度の高いSSS
SとNNNNの組合わせに対して、より短い符号長にな
るように、188にあらかじめ設定しておく。各色成分
毎のブロックに対する符号の終わりには、EOB(En
d of Block)符号が付加される。図24〜図
31に本実施例に用いられるハフマン符号表の一例を示
した。これらは、本実施例では、R,G,Bの各信号は
8bit長であるため、DCT係数は10bitを越え
ることはない。このため、SSSSは0〜10に対して
の考慮をしておけば十分であるので、図22および図2
3で示したSSSの12以上(DC成分用)および11
以上(AC成分用)は符号表には表記されていない。As shown in FIG. 20, the alternating current (AC) component is zigzag scanned from a low frequency component to a high frequency component in an 8 × 8 coefficient matrix. As shown in FIG. 23, a coefficient that is not 0 is classified into one of the 15 groups whose value is YRO. The identification code is SSSS (1 to 15
Integers up to). On the other hand, the number of zeros sandwiched between the immediately preceding non-zero coefficient is NNNN. The coefficient matrix is 8 ×
8, including 63 AC coefficients, but NNNN is 16
If it becomes more than the above, FIG.
31. By repeatedly generating the code of R16 in FIG. 31, the NNNN is reduced to 15 or less after all. These SSSS and NNNN values are not separate, but are Huffman-encoded as a set as shown in FIG. This Huffman code is an SSS that occurs frequently.
The combination of S and NNNN is preset to 188 so as to have a shorter code length. At the end of the code for the block for each color component, EOB (En
d of Block) code is added. 24 to 31 show examples of the Huffman code table used in the present embodiment. In the present embodiment, since the R, G, and B signals are 8 bits long, the DCT coefficient does not exceed 10 bits. For this reason, it is sufficient to consider SSSS from 0 to 10, so that FIG.
12 or more (for DC component) and 11 of SSS shown in 3
The above (for the AC component) is not described in the code table.
【0067】以上、説明は全て1ブロックラスター単位
での動作として行ったが、2ブロックラスターあるいは
4ブロックラスター単位あるいは1/2ブロックラスタ
ー単位での動作等にして動作させることも全く同様に実
現できる。The above description has been given of the operation in units of one block raster. However, the operation in units of two blocks, four blocks, or half block raster can be realized in the same manner. .
【0068】[0068]
【0069】(第1実施例) 以上に説明した基本構成においては、PDLインタープ
リタ2は、ホストコンピュータ1からPDLコマンドを
受けると、逐次、このコマンドにより変更になる画像部
位を判定して、該当部位の復号化、書き替え、再符号化
をするものであるが、本発明は以下の様に制御を行う。
すなわち、図12に示す如く、PDLインタープリタ2
にイメージバッファ71およびコマンドバッファ72を
付加接続し、ホストコンピュータ1より受けたPDLコ
マンドおよびデータを何命令分かバッファ71,72に
一旦、保持する。次に、あるまとまった数のコマンド毎
にそれぞれのコマンドにより変更になる部位をPDLイ
ンタープリタ2により判定して、同一ブロックラスター
に関する書き替えを一度に行うようにする。すなわち、
復号化→当該ブロックラスターに関する書き替えを複数
のコマンド分まとめて一度に行うようにする。すなわ
ち、復号化→当該ブロックラスターに関する書き換えを
全て実行→再符号化の順序の如く行うことができる。(First Embodiment) In the basic configuration described above, when the PDL interpreter 2 receives a PDL command from the host computer 1, the PDL interpreter 2 sequentially determines an image part to be changed by this command, and In the present invention, decoding, rewriting, and re-encoding are performed as follows.
That is, as shown in FIG.
, An image buffer 71 and a command buffer 72 are additionally connected, and several buffers of the PDL command and data received from the host computer 1 are temporarily stored in the buffers 71 and 72. Next, a part to be changed by each command is determined by the PDL interpreter 2 for each of a certain number of commands, and rewriting of the same block raster is performed at once. That is,
Decoding → Rewriting of the block raster is performed for a plurality of commands at once. In other words, decoding can be performed in the order of decoding → all rewriting relating to the block raster → recoding.
【0070】(第2実施例の基本構成) 図1の圧縮メモリ5は以下の如く構成してもよい。すな
わち、各ブロックラスターの平均符号長に比して十分な
容量毎に圧縮メモリをブロック分けして使用する構成を
とってもよい。(Basic Configuration of Second Embodiment) The compression memory 5 of FIG. 1 may be configured as follows. In other words, a configuration may be adopted in which the compression memory is divided into blocks for each sufficient capacity compared to the average code length of each block raster and used.
【0071】図13に、この場合の全体の回路構成図を
示した。図1と同様の機能を有する部分には図1と同一
番号を各ブロックに付してある。以下、図面に従って説
明する。同図において、1はPDL言語のコマンド列を
出力するホストコンピュータ、2はホストコンピュータ
1より出力されたコマンド列を受け取り、解釈・実行す
るPDLインタープリタである。3は下地のデータと、
2のPDLインタプリターにより新たに生成された画像
データとの合成器、4は圧縮器、5′は十分な量のメモ
リ量毎にブロッック化して用いられる圧縮データメモリ
である。6は復号器、7は復号器6の出力を合成器3へ
出力するのか、それとも図示しない記録装置の像形成部
へ出力するかを切り換えるマルチプレクサである。8′
は圧縮データのリードライトを制御する、圧縮メモリの
アドレスコントローラである。ホストコンピュータ1よ
りPDLコマンドを受けると、PDLインタープリタ2
は該コマンドにより変更になる画像部位を判定し、該当
部位を含むブロックラスターのデータを逐次圧縮メモリ
5′より読み出し、復号出力するようにアドレスコント
ローラ8′および6の復号器を制御する。同時にマルチ
プレクサ7を制御し、復号器6で復号されたデータを合
成器3へ出力される。FIG. 13 shows an overall circuit configuration diagram in this case. Parts having the same functions as in FIG. 1 are given the same numbers as in FIG. Hereinafter, description will be made with reference to the drawings. In FIG. 1, reference numeral 1 denotes a host computer that outputs a command sequence in the PDL language, and 2 denotes a PDL interpreter that receives, interprets, and executes the command sequence output from the host computer 1. 3 is the background data,
A synthesizer with image data newly generated by the PDL interpreter 2, a compressor 4, a compressed data memory 5 ', and a compressed data memory 5' which is used after being blocked every sufficient amount of memory. Reference numeral 6 denotes a decoder, and reference numeral 7 denotes a multiplexer for switching between outputting the output of the decoder 6 to the synthesizer 3 and outputting the output to the image forming unit of the recording device (not shown). 8 '
Is an address controller of a compression memory for controlling reading and writing of compressed data. When a PDL command is received from the host computer 1, the PDL interpreter 2
Determines the image part to be changed by the command, controls the decoders of the address controllers 8 'and 6 so as to sequentially read the block raster data including the relevant part from the compression memory 5' and decode and output the decoded data. At the same time, the multiplexer 7 is controlled, and the data decoded by the decoder 6 is output to the synthesizer 3.
【0072】PDLインタープリタ2は加えて合成器3
をもコントロールし、復号器6よりの復号データを入力
し、バッファに蓄えるように設定する。PDLインター
プリタ2は復号データの取り込みが完了したブロックラ
スターに対して、このブロックラスターの画素位置に該
当する領域に前述のコマンドにより生成される新データ
を上書きする。The PDL interpreter 2 is additionally provided with a synthesizer 3
Is set, so that the decoded data from the decoder 6 is input and stored in the buffer. The PDL interpreter 2 overwrites the area corresponding to the pixel position of this block raster with the new data generated by the above-mentioned command on the block raster in which the capture of the decoded data has been completed.
【0073】該ブロックラスター領域に該当するデータ
を書き終えると、再度該ブロックラスター領域を圧縮器
4にて圧縮し、圧縮メモリ5の該当位置に格納し直すよ
うに合成器3,圧縮器4およびアドレスコントローラ
8′をコントロールする。以上の手順を必要となるブロ
ックラスター全てに渡り繰り返し実行する。After the data corresponding to the block raster area has been written, the block raster area is compressed again by the compressor 4 and stored again in the corresponding position of the compression memory 5 by the synthesizer 3, compressor 4 and It controls the address controller 8 '. The above procedure is repeatedly executed over all necessary block rasters.
【0074】合成器3およびアドレスコントローラ30
の動作は、第1実施例に適用される基本構成と全く同様
であり、各々の回路構成は図2,図3で示される通りで
あるので説明を省略する。Synthesizer 3 and Address Controller 30
Is exactly the same as the basic configuration applied to the first embodiment, and the respective circuit configurations are as shown in FIGS.
【0075】図14は、圧縮メモリ5′上の各ブロック
ラスターに対応する圧縮データの格納位置を表わしてい
る。例として、最大4096×4096画素,1画素3
バイト(1バイト/色)でなる画像を扱うものとする。
この最大画像は48MByteの容量をもつ。符号器4
による圧縮化を1/12に設定してあるとする。ブロッ
クラスターは、前記参照文献(1)にあるように各ブロ
ックが8×8画素単位で構成されて圧縮されている。よ
って、最大サイズの画像は512×512のブロックで
構成される。最大サイズの画像は約4メガバイトの容量
に圧縮され、各ブロックラスター当りの平均符号長は、
8キロバイトとなる。本実施例では各ブロックラスター
当りの十分なメモリ容量として平均符号長の4倍を想定
し、図14で示す如く圧縮メモリ5′は32キロバイト
毎に各ブロックラスターに対する圧縮メモリ領域を設定
してある。FIG. 14 shows the storage position of the compressed data corresponding to each block raster on the compression memory 5 '. As an example, a maximum of 4096 × 4096 pixels, one pixel 3
It is assumed that an image consisting of bytes (1 byte / color) is handled.
This maximum image has a capacity of 48 MBytes. Encoder 4
Is set to 1/12. In the block raster, each block is compressed in units of 8 × 8 pixels as described in the above-mentioned reference (1). Therefore, the image of the maximum size is composed of 512 × 512 blocks. The largest image is compressed to approximately 4 megabytes, and the average code length per block raster is
8 kilobytes. In the present embodiment, four times the average code length is assumed as a sufficient memory capacity for each block raster. As shown in FIG. 14, the compression memory 5 'sets a compression memory area for each block raster every 32 kilobytes. .
【0076】図15は図14で示す圧縮メモリに実際に
保持されているデータの様子を表現している。図15の
各ブロックは、図14の各ブロックラスターのデータ領
域と同一のもので、平均符号長の4倍毎に各ブロックラ
スターに対する圧縮メモリ領域を設定していることを明
示して表現してある。斜線で表現されている部分が実際
に各ブロックラスターに対する符号を格納してある領域
を示している。FIG. 15 shows the state of data actually held in the compression memory shown in FIG. Each block in FIG. 15 is the same as the data area of each block raster in FIG. 14, and expresses explicitly that a compression memory area for each block raster is set every four times the average code length. is there. The shaded portions indicate the areas where the codes for the respective block rasters are actually stored.
【0077】図16は、図13に示すアドレスコントロ
ーラ8の構成を示す。FIG. 16 shows the structure of the address controller 8 shown in FIG.
【0078】図16において61はブロックラスターの
同期信号をカウントするカウンタであり、圧縮メモリ内
の第何ブロックラスターの領域をアクセスするかをカウ
ント値で示す。PDLインタープリタ2により書き替え
られるブロックアドレスに対応する値を信号線62を経
て61のカウンタの初期値としてセットされ、符号器か
らのブロックラスター同期信号をカウントする。In FIG. 16, reference numeral 61 denotes a counter for counting the synchronization signal of the block raster. The counter 61 indicates which block raster area in the compression memory is to be accessed. The value corresponding to the block address rewritten by the PDL interpreter 2 is set as the initial value of the counter 61 via the signal line 62, and the block raster synchronization signal from the encoder is counted.
【0079】64はデータの転送クロックをカウントす
るカウンタであり、符号器4からのバイト毎の転送クロ
ックをカウントし、カウント値で当該ブロックラスター
データ内のどの位置に格納するかを示している。また、
カウンタ64は符号器のラスター同期信号でリセットさ
れる。66は、カウンタ61と同様ブロックラスターの
同期信号をカウントするカウンタであり、PDLインタ
ープリタ62により上書きされる画素位置を含むブロッ
クラスターの中の最初のブロックラスター番号を初期カ
ウントとしてセットされ、以降復号器よりのブロックラ
スター同期信号67をカウントし、カウント値により圧
縮メモリ内の第何ブロックラスターの領域をアクセスす
るかを示す。Reference numeral 64 denotes a counter for counting a data transfer clock. The counter 64 counts the transfer clock for each byte from the encoder 4 and indicates at which position in the block raster data the count value is stored. Also,
The counter 64 is reset by the encoder's raster synchronization signal. A counter 66 counts the synchronization signal of the block raster, similarly to the counter 61. The counter 66 is set as an initial count of the first block raster number in the block raster including the pixel position overwritten by the PDL interpreter 62. The block raster synchronization signal 67 is counted, and the count value indicates which block raster area in the compression memory is to be accessed.
【0080】68はカウンタ64と同じく、データの転
送クロックをカウントするカウンタであり、復号器から
のバイト毎の転送クロックをカウントし、カウント値で
当該ブロックラスターデータ内のどの位置を読み出すか
を示している。また、68は、復号器6のラスター同期
信号でリセットされる。カウンタ61のカウント値が上
位アドレス信号,カウンタ64のカウント値が下位アド
レス信号として組み合わされて圧縮メモリの書き込みデ
ータアドレスとして用いられ、同様にカウンタ66のカ
ウント値が上位アドレス信号,カウンタ68のカウント
値が下位アドレス信号として組み合わされて圧縮メモリ
からの読み出しデータアドレスとして用いられる。Reference numeral 68 denotes a counter for counting the transfer clock of data, similarly to the counter 64. The counter 68 counts the transfer clock of each byte from the decoder, and indicates which position in the block raster data is read by the count value. ing. 68 is reset by the raster synchronization signal of the decoder 6. The count value of the counter 61 is combined with the upper address signal and the count value of the counter 64 as the lower address signal to be used as the write data address of the compression memory. Similarly, the count value of the counter 66 is used as the upper address signal and the count value of the counter 68. Are combined as a lower address signal and used as a data address read from the compression memory.
【0081】読み書き制御回路70は、前記書き込みデ
ータアドレス,読み出しデータアドレス,符号器4から
のデータ転送クロック65,復号器6からのデータ転送
クロック69を入力して、上記圧縮メモリからのデータ
の読み出しおよび書き込みのアドレス,タイミングを制
御する。The read / write control circuit 70 receives the write data address, the read data address, the data transfer clock 65 from the encoder 4, and the data transfer clock 69 from the decoder 6, and reads data from the compression memory. And the write address and timing.
【0082】符号器4,復号器6は、第1実施例の場合
と全く同様である。また、前記ブロックラスターの区切
りは第1実施例の場合と全く同様である。The encoder 4 and the decoder 6 are exactly the same as in the first embodiment. In addition, the division of the block raster is exactly the same as in the first embodiment.
【0083】(第2実施例) 前記基本構成の説明においても、PDLインタープリタ
2はホストコンピュータ1よりPDLコマンドを受ける
と、逐次、このコマンドにより変更になる画像部位を判
定して、該当部位を復号化,書き替え,再符号化するよ
うに説明したが、第2の実施例においても、図17に示
す如く、イメージバッファ71およびコマンドバッファ
72を用いて、ホストコンピュータ1より受けたPDL
コマンドおよびデータを何命令かバッファに一旦保持し
てあるまとまった数のコマンド毎にそれぞれのコマンド
により変更になる部位を判定して、同一ブロックラスタ
ーに関する書き替えを一度に行うようにする。すなわ
ち、復号化→当該ブロックラスターに関する書き替えを
全く実行→再符号化の順序の如くに行うことができ
る。」(Second Embodiment) Also in the description of the basic configuration, when the PDL interpreter 2 receives a PDL command from the host computer 1, it sequentially determines an image part to be changed by this command and decodes the relevant part. In the second embodiment, the PDL received from the host computer 1 by using the image buffer 71 and the command buffer 72 as shown in FIG.
A command and data are temporarily stored in a buffer, and a part to be changed by each command is determined for each of a set number of commands, and rewriting for the same block raster is performed at once. That is, the decoding can be performed in the order of decoding → rewriting of the block raster at all → re-encoding. "
【0084】このように何命令かバッファに一旦保持し
てあるまとまった数のコマンド毎に処理を行えば、復号
および再符号化の回数を低減でき、それに伴う画質の劣
化の程度を減らし得るという効果を生む。また、ホスト
コンピュータ1に対してのコマンド実行に起因する待ち
時間を減らし得るという効果をも生む。By performing processing for each of a number of commands once stored in the buffer as described above, the number of times of decoding and re-encoding can be reduced, and the degree of deterioration of image quality accompanying the processing can be reduced. Create an effect. In addition, there is an effect that a waiting time caused by executing a command to the host computer 1 can be reduced.
【0085】[0085]
【発明の効果】以上、説明したように、本発明によれ
ば、画像を複数の小領域に分割し、当該分割した小領域
毎に可変長符号化して得られた圧縮画像データを、上記
分割した小領域に対応させて記憶手段に記憶しておき、
複数個分のPDLコマンドにより変更が加えられるべ
き、上記記憶手段に記憶された圧縮画像データにおける
部位を判定し、該判定部位のデータを復号化し、この復
号画像を、上記複数個分のPDLコマンドの展開処理結
果に基づいて書き替えてから、可変長符号化し、得られ
た圧縮画像を上記記憶手段における上記判定部位のデー
タに書き替えて記憶させる。これにより可変長符号化さ
れた圧縮画像に対する内容の変更を、できるだけ画質の
劣化が少なくなるように抑えて実行することが可能とな
る。さらに本発明によれば、上記判定、上記判定部位の
復号化、上記復号画像の書き替えの夫々は、上記複数個
分のPDLコマンドを単位としてまとめて一度に行うの
で、圧縮画像の符号・再符号化の回数を少なくすること
ができ、結果的に上記記憶手段に最終的に記憶される圧
縮画像の画質劣化を抑制することが可能となる。 As described above, according to the present invention, an image is divided into a plurality of small regions, and the compressed image data obtained by performing variable length coding for each of the divided small regions is divided into the divided image data. Stored in the storage means in correspondence with the small area
A portion in the compressed image data stored in the storage means to be changed by a plurality of PDL commands is determined, and the data of the determined portion is decoded. Is rewritten based on the result of the decompression processing, and then variable-length coded, and the obtained compressed image is rewritten and stored in the storage means as the data of the determination part. As a result, it is possible to change the content of the compressed image that has been subjected to the variable-length encoding while suppressing the deterioration of the image quality as much as possible. Further, according to the present invention, each of the determination, the decoding of the determination portion, and the rewriting of the decoded image are collectively performed in units of the plurality of PDL commands, so that the coding / reproduction of the compressed image is performed. The number of times of encoding can be reduced, and as a result, it is possible to suppress the deterioration of the image quality of the compressed image finally stored in the storage unit .
【図面の簡単な説明】[Brief description of the drawings]
【図1】本発明実施例の回路構成を示すブロック図であ
る。FIG. 1 is a block diagram showing a circuit configuration of an embodiment of the present invention.
【図2】図1の合成器の回路構成を示すブロック図であ
る。FIG. 2 is a block diagram showing a circuit configuration of the synthesizer shown in FIG.
【図3】図2のアドレスコントローラの回路構成を示す
ブロック図である。FIG. 3 is a block diagram illustrating a circuit configuration of the address controller of FIG. 2;
【図4】図1の圧縮メモリ上の各ブロックラスターに対
応するデータ領域を示す説明図である。FIG. 4 is an explanatory diagram showing a data area corresponding to each block raster on the compression memory of FIG. 1;
【図5】図1の圧縮メモリ上に保持されているデータの
様子を示す説明図である。FIG. 5 is an explanatory diagram showing a state of data held on a compression memory of FIG. 1;
【図6】図1のアドレスコントローラの回路構成を示す
ブロック図である。FIG. 6 is a block diagram illustrating a circuit configuration of the address controller of FIG. 1;
【図7】図1の空バッファ領域管理回路の回路構成を示
すブロック図である。FIG. 7 is a block diagram showing a circuit configuration of an empty buffer area management circuit of FIG. 1;
【図8】図7のフラグバッファの内容を示す説明図であ
る。FIG. 8 is an explanatory diagram showing the contents of a flag buffer in FIG. 7;
【図9】図7のソータの内容を示す説明図である。FIG. 9 is an explanatory diagram showing the contents of the sorter of FIG. 7;
【図10】図7のフラグバッファ更新回路の回路図であ
る。FIG. 10 is a circuit diagram of a flag buffer updating circuit of FIG. 7;
【図11】図7の拡張ブロックアドレスバッファの内容
を示す説明図である。FIG. 11 is an explanatory diagram showing contents of an extended block address buffer of FIG. 7;
【図12】本発明第2実施例の回路構成を示すブロック
図である。FIG. 12 is a block diagram showing a circuit configuration of a second embodiment of the present invention.
【図13】本発明第3実施例の回路構成を示すブロック
図である。FIG. 13 is a block diagram showing a circuit configuration of a third embodiment of the present invention.
【図14】本発明第3実施例における圧縮メモリ上の各
ブトックラスターに対応するデータ領域を示す説明図で
ある。FIG. 14 is an explanatory diagram showing a data area corresponding to each butto cluster on a compression memory according to a third embodiment of the present invention.
【図15】本発明第3実施例における圧縮メモリに保持
されているデータの様子を示す説明図である。FIG. 15 is an explanatory diagram showing a state of data held in a compression memory according to a third embodiment of the present invention.
【図16】本発明第3実施例におけるアドレスコントロ
ーラの回路構成を示すブロック図である。FIG. 16 is a block diagram illustrating a circuit configuration of an address controller according to a third embodiment of the present invention.
【図17】本発明第4実施例の回路構成を示すブロック
図である。FIG. 17 is a block diagram showing a circuit configuration of a fourth embodiment of the present invention.
【図18】本発明実施例の符号化方式の処理手順を示す
説明図である。FIG. 18 is an explanatory diagram showing a processing procedure of an encoding method according to the embodiment of the present invention.
【図19】本発明実施例のブロック間予測処理を説明す
るための説明図である。FIG. 19 is an explanatory diagram for describing an inter-block prediction process according to the embodiment of the present invention.
【図20】本発明実施例の量子化行列およびDCT係数
を説明するための説明図である。FIG. 20 is an explanatory diagram for explaining a quantization matrix and DCT coefficients according to the embodiment of the present invention.
【図21】本発明実施例の量子化行列の一例を示す説明
図である。FIG. 21 is an explanatory diagram illustrating an example of a quantization matrix according to an embodiment of the present invention.
【図22】DCT係数の符号化を説明するための説明図
である。FIG. 22 is an explanatory diagram for describing encoding of DCT coefficients.
【図23】AC係数の符号化を説明するための説明図で
ある。FIG. 23 is an explanatory diagram for describing encoding of AC coefficients.
【図24】ハフマン符号表の一例を示す説明図である。FIG. 24 is an explanatory diagram showing an example of a Huffman code table.
【図25】ハフマン符号表の一例を示す説明図である。FIG. 25 is an explanatory diagram showing an example of a Huffman code table.
【図26】ハフマン符号表の一例を示す説明図である。FIG. 26 is an explanatory diagram showing an example of a Huffman code table.
【図27】ハフマン符号表の一例を示す説明図である。FIG. 27 is an explanatory diagram showing an example of a Huffman code table.
【図28】ハフマン符号表の一例を示す説明図である。FIG. 28 is an explanatory diagram showing an example of a Huffman code table.
【図29】ハフマン符号表の一例を示す説明図である。FIG. 29 is an explanatory diagram showing an example of a Huffman code table.
【図30】ハフマン符号表の一例を示す説明図である。FIG. 30 is an explanatory diagram showing an example of a Huffman code table.
【図31】ハフマン符号表の一例を示す説明図である。FIG. 31 is an explanatory diagram showing an example of a Huffman code table.
1 ホストコンピュータ 2 PDLインタープリタ 3 合成器 4 圧縮(符号)器 5,5′ 圧縮メモリ 6 復号器 7 マルチプレクサ 8 アドレスコントローラ 9 空バッファ領域管理回路 DESCRIPTION OF SYMBOLS 1 Host computer 2 PDL interpreter 3 Synthesizer 4 Compression (coding) unit 5, 5 'compression memory 6 Decoder 7 Multiplexer 8 Address controller 9 Empty buffer area management circuit
フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/41 - 1/419 B41J 2/485 G06F 12/04 G06T 9/00 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04N 1/41-1/419 B41J 2/485 G06F 12/04 G06T 9/00
Claims (1)
展開画像と、圧縮画像とを合成する画像処理装置におい
て、 画像を複数の小領域に分割し、当該分割した小領域毎に
可変長符号化して得られた圧縮画像データを、前記分割
した小領域に対応させて記憶する記憶手段と、 前記PDLコマンドを展開処理する展開手段と、 複数個分の前記PDLコマンドにより変更が加えられる
べき、前記記憶手段に記憶された圧縮画像データにおけ
る部位を判定し、該判定部位を復号化する復号化手段
と、 前記復号化手段により得られた復号画像を、前記複数個
分のPDLコマンドの展開処理結果に基づいて書き替え
る書き替え手段と、 前記書き替え手段により書き替えられた画像を可変長符
号化し、得られた圧縮画像を前記記憶手段における前記
判定部位のデータに基づいて記憶させる圧縮手段とを具
え、 前記判定、前記判定部位の復号化、前記復号画像の書き
替えの夫々は、前記複数個分のPDLコマンドを単位と
してまとめて一度に行う様にしたことを特徴とする画像
処理装置。An image processing apparatus for synthesizing a decompressed image of a PDL command including a plurality of commands and a compressed image, divides the image into a plurality of small areas, and performs variable-length coding for each of the divided small areas. Storage means for storing the obtained compressed image data in association with the divided small areas; decompression means for decompressing the PDL command; and storage means to be changed by a plurality of the PDL commands. Decoding means for judging a part in the compressed image data stored in the means, and decoding the judged part; converting the decoded image obtained by the decoding means into a plurality of PDL command decompression processing results; Rewriting means for rewriting based on a variable-length code of the image rewritten by the rewriting means, and determining the obtained compressed image in the storage means Compression means for storing the data based on the position data, wherein each of the determination, the decoding of the determination part, and the rewriting of the decoded image are collectively performed at once by using the plurality of PDL commands as a unit. An image processing apparatus characterized in that:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18878491A JP3170312B2 (en) | 1991-07-29 | 1991-07-29 | Image processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP18878491A JP3170312B2 (en) | 1991-07-29 | 1991-07-29 | Image processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH0537789A JPH0537789A (en) | 1993-02-12 |
JP3170312B2 true JP3170312B2 (en) | 2001-05-28 |
Family
ID=16229735
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP18878491A Expired - Fee Related JP3170312B2 (en) | 1991-07-29 | 1991-07-29 | Image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3170312B2 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3832089B2 (en) | 1997-05-26 | 2006-10-11 | セイコーエプソン株式会社 | Digital camera and printing system |
JP3777803B2 (en) | 1998-06-30 | 2006-05-24 | 富士ゼロックス株式会社 | Image processing apparatus and method |
JP2000261647A (en) | 1999-03-04 | 2000-09-22 | Fuji Xerox Co Ltd | Image processing unit |
JP5504885B2 (en) * | 2009-12-25 | 2014-05-28 | 富士通株式会社 | Image processing apparatus and image processing method |
WO2012169124A1 (en) * | 2011-06-10 | 2012-12-13 | パナソニック株式会社 | Position determination device, position determination method, data structure, memory, access device, and memory access method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3082930B2 (en) | 1990-07-31 | 2000-09-04 | キヤノン株式会社 | Image processing device |
JP3109817B2 (en) | 1990-07-31 | 2000-11-20 | キヤノン株式会社 | Image processing device |
-
1991
- 1991-07-29 JP JP18878491A patent/JP3170312B2/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3082930B2 (en) | 1990-07-31 | 2000-09-04 | キヤノン株式会社 | Image processing device |
JP3109817B2 (en) | 1990-07-31 | 2000-11-20 | キヤノン株式会社 | Image processing device |
Also Published As
Publication number | Publication date |
---|---|
JPH0537789A (en) | 1993-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0469851B1 (en) | Image processing apparatus | |
JP2922680B2 (en) | Compressed image storage method for high-resolution computer graphics | |
EP0506482B1 (en) | Image processing | |
JP3170312B2 (en) | Image processing device | |
JP3109817B2 (en) | Image processing device | |
JP3170313B2 (en) | Image processing device | |
JP2002229759A (en) | Code converting method for supporting image conversion | |
JP2003189109A (en) | Image processor and image processing method, and computer program | |
JP3023215B2 (en) | Image processing device | |
JP3302862B2 (en) | Color image signal compression method, image encoding / decoding device, and image processing system | |
US20060233444A1 (en) | JBIG coding apparatus and method with low cost, high-performance ping-pong buffer arrangement | |
JP2776284B2 (en) | Image coding device | |
US6069980A (en) | Adaptive character image generation and synthesis | |
JP2918360B2 (en) | Inverse quantization method and image data restoration device | |
JP3082930B2 (en) | Image processing device | |
JP2003348355A (en) | Image processing apparatus and control method therefor | |
JP3278149B2 (en) | Image processing device | |
JP2791410B2 (en) | Compressed image data extraction device | |
JP2002051221A (en) | Device, system and method for encoding and decoding image and storage medium | |
JP2001217722A (en) | Device and method for encoding information, and computer readable storage medium | |
JP3736107B2 (en) | Image processing device | |
JP3264519B2 (en) | Image data compression device | |
JP3368186B2 (en) | Image processing apparatus and method | |
JP3236079B2 (en) | Image data compression method | |
JP2806169B2 (en) | Compressed data decompression device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080316 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090316 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100316 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100316 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110316 Year of fee payment: 10 |
|
LAPS | Cancellation because of no payment of annual fees |