JP2000244746A - Image processor - Google Patents

Image processor

Info

Publication number
JP2000244746A
JP2000244746A JP11045125A JP4512599A JP2000244746A JP 2000244746 A JP2000244746 A JP 2000244746A JP 11045125 A JP11045125 A JP 11045125A JP 4512599 A JP4512599 A JP 4512599A JP 2000244746 A JP2000244746 A JP 2000244746A
Authority
JP
Japan
Prior art keywords
memory
image data
data
attribute information
compression
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP11045125A
Other languages
Japanese (ja)
Inventor
Junji Nishigaki
順二 西垣
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.)
Minolta Co Ltd
Original Assignee
Minolta 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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP11045125A priority Critical patent/JP2000244746A/en
Publication of JP2000244746A publication Critical patent/JP2000244746A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To judge whether or not all compression encoded image data can be stored in a memory before they are stored into the memory and to promptly deal with an image processing. SOLUTION: This image processor is provided with a decision means 212 for deciding the attribute information of respective blocks composed of the prescribed number of pixels, a compression encoding means 215 for encoding the respective blocks to a bit number decided by the kind of the attribute information, a counting means 216 for counting the attribute information for the respective kinds, a judgment means 290 for judging whether or not a total code amount can be stored in the memory based on a counted result, a resolution switching means 218 and a selective storage means 230 for storing compression codes in the memory in the case that the total code amount can be stored in the memory and for storing the image data switched to a low resolution in the memory in the case that it cannot be stored.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像データを圧縮
してメモリに記憶し、メモリに記憶した画像データを読
み出してプリント用等の出力用データを生成する画像処
理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for compressing image data, storing the compressed data in a memory, reading the image data stored in the memory, and generating output data for printing or the like.

【0002】[0002]

【従来の技術】カラープリンタ,カラー複写機、カラー
ファクシミリ等のカラー画像形成装置では、Y(イエロ
ー),M(マゼンタ),C(シアン),Bk(ブラッ
ク)の各プリント色の画像を重ねることによってフルカ
ラーの画像を形成しているため、各プリント色の画像が
ズレないように、各プリント色の画像データを最適なタ
イミングでプリントヘッドに出力する必要がある。この
ため、各プリント色の画像データを一旦フレームメモリ
に格納しておき、適宜のタイミングで読み出して出力す
るように制御している。
2. Description of the Related Art In a color image forming apparatus such as a color printer, a color copying machine, and a color facsimile, images of print colors Y (yellow), M (magenta), C (cyan), and Bk (black) are superimposed. Therefore, it is necessary to output the image data of each print color to the print head at an optimal timing so that the image of each print color does not shift. Therefore, image data of each print color is temporarily stored in a frame memory, and read out and output at an appropriate timing.

【0003】また、カラープリンタ,カラー複写機、カ
ラーファクシミリ等のカラー画像形成装置に於いて画像
形成時間を短縮するためには、Y,M,C,Bkの各プ
リント色用の画像データの処理を同時並行的に実行する
必要がある。このため、各プリント色用の画像データを
一旦フレームメモリに格納しておき、適宜のタイミング
で同時並行的に読み出して出力するようにしている。
In order to shorten the image forming time in a color image forming apparatus such as a color printer, a color copier, a color facsimile, etc., processing of image data for each of Y, M, C, and Bk print colors is performed. Must be executed concurrently. For this reason, the image data for each print color is temporarily stored in the frame memory, and read out and output simultaneously and in parallel at an appropriate timing.

【0004】[0004]

【発明が解決しようとする課題】カラー画像形成装置の
ように多量の画像データをメモリに一時的に記憶する装
置では、画像データを圧縮することで、メモリが比較的
小容量であっても必要な画像データを全て記憶してい
る。しかしながら、画像の種類と圧縮方式との関係等の
ために圧縮度を高くできない場合もあり、その結果、圧
縮後の符号総量がメモリの記憶容量を越えてしまう場合
もある。そのような場合、従来の方式では、図16や図
17に示すような不具合が発生していた。
In an apparatus for temporarily storing a large amount of image data in a memory, such as a color image forming apparatus, the image data is compressed so that the memory has a relatively small capacity. All image data. However, in some cases, the degree of compression cannot be increased due to the relationship between the type of image and the compression method, and as a result, the total amount of codes after compression may exceed the storage capacity of the memory. In such a case, in the conventional method, a problem as shown in FIGS. 16 and 17 has occurred.

【0005】図16は、格納途中でメモリが満杯になる
と、メモリオーバーの警告を出して処理をストップした
り、用紙への画像形成をストップする処理方式を示す。
図16の処理方式では、所望の画像を用紙上に形成でき
ないという不具合がある。図17は、格納途中でメモリ
が満杯になると、データ量の少ない低解像度に切り換え
て、画像の最初から処理し直す処理方式を示す。図17
の処理方式では、処理時間が無駄に長くなるという不具
合がある。
FIG. 16 shows a processing method in which when the memory becomes full during storage, a warning of memory over is issued to stop processing or stop image formation on paper.
The processing method of FIG. 16 has a disadvantage that a desired image cannot be formed on paper. FIG. 17 shows a processing method in which when the memory becomes full during storage, the resolution is switched to a low resolution with a small data amount and the image is processed again from the beginning. FIG.
The processing method of (1) has a disadvantage that the processing time is unnecessarily long.

【0006】本発明は上記の事情に鑑みたものであり、
圧縮符号化した画像データの全てをメモリに格納できる
否かをメモリへの格納以前に判定できるようにして、格
納不可能な場合には、データ量を更に削減する等、格納
可能にする処理方式に速やかに切り換え得るようにする
ことを目的とする。
The present invention has been made in view of the above circumstances,
A processing method that enables determination of whether or not all of the compression-encoded image data can be stored in the memory before storing the data in the memory. The purpose is to be able to switch quickly to

【0007】[0007]

【課題を解決するための手段】図1に本発明の構成例を
示す。請求項1の画像処理装置は、画像データをメモリ
に記憶し、メモリに記憶した画像データを読み出してプ
リント用データを生成する画像処理装置であって、画像
データから切り出した所定数の画素から成るブロックの
画像特性を示す属性情報を各ブロック毎に決定する属性
決定手段212と、各ブロックの画像データを属性情報
の種別によって決まるビット数の符号に変換する圧縮符
号化手段215と、属性情報をその種別毎に計数する属
性計数手段216と、属性情報の種別毎の計数結果に基
づいて総符号量がメモリに格納可能な量か否かを判定す
る符号量判定手段290と、画像データの解像度を切り
換える解像度切換手段218と、総符号量がメモリに格
納可能な量の場合は前記圧縮符号化手段215により変
換した符号をメモリに記憶し、総符号量がメモリに格納
不可能な量の場合は前記解像度切換手段218により低
解像度に切り換えた画像データ又はその圧縮符号をメモ
リに記憶する選択記憶手段230と、を有することを特
徴とする。写真画像(連続階調画像)を上記圧縮符号化
手段215により圧縮した場合の圧縮度は、あまり高く
ない。しかし、写真画像は、低解像度に切り換えること
により、データ量を大きく削減することができる。ま
た、低解像度に切り換えた場合でも、その画質の劣化程
度は、一般に、無視できる程度である。請求項2の画像
処理装置は、画像データをメモリに記憶し、メモリに記
憶した画像データを読み出して出力用のデータを生成す
る画像処理装置であって、画像データから切り出した所
定数の画素から成るブロックの画像特性を示す属性情報
を各ブロック毎に決定する属性決定手段212と、各ブ
ロックの画像データを属性情報の種別によって決まるビ
ット数の符号に変換する第1の圧縮符号化手段215
と、第1の圧縮符号化手段とは異なる圧縮方式により画
像データを符号化する第2の圧縮符号化手段218と、
属性情報をその種別毎に計数する属性計数手段216
と、属性情報の種別毎の計数結果に基づいて総符号量が
メモリに格納可能な量か否かを判定する符号量判定手段
290と、総符号量がメモリに格納可能な量の場合は前
記第1の圧縮符号化手段215により変換した符号をメ
モリに記憶し、総符号量がメモリに格納不可能な量の場
合は前記第1の圧縮符号化手段215により符号化した
後に更に前記第2の圧縮符号化手段218により符号化
した符号をメモリに記憶する選択記憶手段と、を有する
ことを特徴とする。メモリから読み出して生成される出
力用のデータは、プリント用のデータでもよいが、スマ
ートメディア等の記録媒体に記録するためのデータでも
よい。請求項2の構成の選択記憶手段は、図1には示さ
れていない。図1には、総符号量がメモリに格納可能な
量の場合は第1の圧縮符号化手段215により変換した
符号をメモリに記憶し、総符号量がメモリに格納不可能
な量の場合は第2の圧縮符号化手段218により符号化
した符号をメモリに記憶する選択記憶手段218が示さ
れているが、この構成は、第1の圧縮符号化手段215
による圧縮度は高くないが、第2の圧縮符号化手段21
8による圧縮度は高い画像に対して有効である。請求項
3の画像処理装置は、画像データをメモリに記憶し、メ
モリに記憶した画像データを読み出して出力用のデータ
を生成する画像処理装置であって、画像データから切り
出した所定数の画素から成るブロックの画像特性を示す
属性情報を各ブロック毎に決定する属性決定手段212
と、各ブロックの画像データを属性情報の種別によって
決まるビット数の符号に変換する圧縮符号化手段215
と、属性情報をその種別毎に計数する属性計数手段21
6と、属性情報の種別毎の計数結果に基づいて総符号量
がメモリに格納可能な量か否かを判定する符号量判定手
段290と、判定結果に応じて画像データの処理方式を
切り換える切換手段と、を有することを特徴とする。メ
モリから読み出して生成される出力用のデータは、プリ
ント用のデータでもよいが、スマートメディア等の記録
媒体に記録するためのデータでもよい。請求項3の構成
の切換手段は、図1には示されていない。この切換手段
は、例えば、符号化方式を切り換えて圧縮度を高めるこ
とでメモリ不足に対処する手段でもよく、画像走査を
Y,M,C,Bkの各色毎に実行するように切り換えて
メモリ不足に対処する手段でもよい。請求項4の画像処
理装置は、請求項1〜請求項3の何れかに於いて、属性
決定手段は属性計数手段での計数用の属性情報を決定す
る場合には低解像度の画像データに基づいて各ブロック
の属性情報を決定することを特徴とする。請求項5の画
像処理装置は、請求項1〜請求項4の何れかに於いて、
属性決定手段は、属性計数手段での計数用の属性情報を
決定する場合にはプレスキャンの画像データに基づいて
各ブロックの属性情報を決定することを特徴とする。
FIG. 1 shows a configuration example of the present invention. An image processing apparatus according to claim 1 is an image processing apparatus that stores image data in a memory, reads out the image data stored in the memory, and generates print data, and includes a predetermined number of pixels cut out from the image data. Attribute determining means 212 for determining attribute information indicating image characteristics of each block for each block; compression encoding means 215 for converting image data of each block into a code having a bit number determined by the type of attribute information; An attribute counting unit 216 for counting each type, a code amount determining unit 290 for determining whether or not the total code amount is an amount that can be stored in the memory based on a counting result for each type of attribute information; Resolution switching means 218 for switching the code, and if the total code amount is an amount that can be stored in the memory, the code converted by the compression coding means 215 is written in the memory. When the total code amount is an amount that cannot be stored in the memory, there is provided a selection storage unit 230 that stores in the memory the image data switched to the low resolution by the resolution switching unit 218 or the compression code thereof. I do. The degree of compression when a photographic image (continuous tone image) is compressed by the compression encoding means 215 is not very high. However, for a photographic image, the data amount can be greatly reduced by switching to a low resolution. Further, even when the resolution is switched to a low resolution, the degree of deterioration of the image quality is generally negligible. An image processing apparatus according to claim 2 is an image processing apparatus that stores image data in a memory, reads out the image data stored in the memory, and generates data for output, and outputs a predetermined number of pixels cut out from the image data. Attribute determining means 212 for determining, for each block, attribute information indicating the image characteristics of the block, and first compression encoding means 215 for converting the image data of each block into a code having a bit number determined by the type of attribute information.
A second compression encoding unit 218 for encoding image data by a compression method different from that of the first compression encoding unit;
Attribute counting means 216 for counting attribute information for each type
And a code amount determining means 290 for determining whether or not the total code amount is an amount that can be stored in the memory based on the counting result for each type of attribute information. The code converted by the first compression encoding means 215 is stored in a memory. If the total code amount is an amount that cannot be stored in the memory, the code is encoded by the first compression encoding means 215 and then the second And a selection storage means for storing the code coded by the compression coding means 218 in a memory. The output data read from the memory and generated may be print data, or may be data for recording on a recording medium such as a smart media. The selection storage means having the configuration of claim 2 is not shown in FIG. In FIG. 1, if the total code amount is an amount that can be stored in the memory, the code converted by the first compression encoding unit 215 is stored in the memory, and if the total code amount is an amount that cannot be stored in the memory, Although the selection storage means 218 for storing the code coded by the second compression coding means 218 in the memory is shown, this configuration is similar to the first compression coding means 215.
Is not high, but the second compression encoding means 21
The compression degree of 8 is effective for high images. An image processing apparatus according to claim 3, wherein the image data is stored in a memory, the image data stored in the memory is read out, and data for output is generated, and a predetermined number of pixels cut out from the image data are used. Determining means 212 for determining, for each block, attribute information indicating the image characteristics of the block composed of
Compression encoding means 215 for converting the image data of each block into a code having a bit number determined by the type of attribute information
Counting means 21 for counting attribute information for each type
6, a code amount determination unit 290 that determines whether the total code amount is an amount that can be stored in the memory based on a count result for each type of attribute information, and a switch that switches a processing method of image data according to the determination result. Means. The output data read from the memory and generated may be print data, or may be data for recording on a recording medium such as a smart media. The switching means of the configuration of claim 3 is not shown in FIG. This switching means may be, for example, a means for coping with memory shortage by switching the encoding method to increase the degree of compression. It may be a means to deal with. According to a fourth aspect of the present invention, in the image processing apparatus according to any one of the first to third aspects, the attribute determining means determines the attribute information for counting by the attribute counting means based on the low-resolution image data. And determining attribute information of each block. An image processing device according to claim 5 is the image processing device according to claim 1, wherein
The attribute determining means determines attribute information of each block based on prescanned image data when determining attribute information for counting by the attribute counting means.

【0008】[0008]

【発明の実施の形態】〔1〕プリントイメージ制御部
(PIC部):図1は実施の形態の画像形成装置のシス
テム構成を示す模式図、図3は図2に示す画像形成装置
のプリントイメージ制御部(PIC部;画像データから
プリント用のデータを生成する処理部)を示すブロック
図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS [1] Print Image Control Unit (PIC Unit): FIG. 1 is a schematic diagram showing a system configuration of an image forming apparatus according to an embodiment, and FIG. 3 is a print image of the image forming apparatus shown in FIG. FIG. 3 is a block diagram illustrating a control unit (PIC unit; a processing unit that generates print data from image data).

【0009】[1-1] システムの概要:図示のシステム
は、Y(イエロー),M(マゼンタ),C(シアン),
Bk(ブラック)の4色の画像を転写ベルト上に出力し
てペーパー上に同時に転写する電子写真方式の画像形成
装置であり、Y,M,C,Bkの各色の作像ユニット
(感光体ドラム(PC),現像器,LEDアレイ等から
成るユニット)が転写ベルトに沿って等間隔(図示の例
ではLmm)で設けられている。
[1-1] Outline of system: The illustrated system includes Y (yellow), M (magenta), C (cyan),
An electrophotographic image forming apparatus that outputs images of four colors Bk (black) on a transfer belt and simultaneously transfers the images onto paper, and includes an image forming unit (photosensitive drum) for each of Y, M, C, and Bk colors (A unit composed of a (PC), a developing unit, an LED array, etc.) are provided at equal intervals (L mm in the illustrated example) along the transfer belt.

【0010】図3に示すように、PIC部での処理は、
Y,M,C,Bkの各色の画像データの並列処理が基本
となる。つまり、スキャナ画像処理部12から画像デー
タが送られて来る場合は、1回のスキャン動作に基づい
て生成されたY,M,C,Bkの各色の画像データが、
画像インターフェース20を介して同時にPIC側へ入
力される。一方、プリンタコントローラ14から画像デ
ータが送られて来る場合は、RIP(Raster I
mage Processor)展開後のY,M,C,
Bkの各色の画像データが、画像インターフェース20
を介して同時にPIC側へ入力される。
[0010] As shown in FIG. 3, the processing in the PIC unit is as follows.
Basic processing is parallel processing of image data of each color of Y, M, C, and Bk. That is, when image data is sent from the scanner image processing unit 12, the image data of each color of Y, M, C, and Bk generated based on one scanning operation is
The data is simultaneously input to the PIC via the image interface 20. On the other hand, when image data is sent from the printer controller 14, a RIP (Raster I
image, Y, M, C,
The image data of each color of Bk is stored in the image interface 20.
Are simultaneously input to the PIC.

【0011】Y,M,C,Bkの各色は、各色に対応す
る作像ユニットが、Y,M,C,Bkの順で転写ベルト
の進行方向に等間隔に配置されているため、その間隔に
相当する時間だけ各色のトナーの現像タイミング遅延さ
せて、Y,M,C,Bkの各色のトナーを転写ベルト上
にて色ずれなく重ねる必要がある。このため、図示のシ
ステムでは、Y,M,C,Bkの各作像タイミングを、
上記間隔に相当する時間だけ順に遅延制御している。
The image forming units corresponding to the colors Y, M, C, and Bk are arranged at equal intervals in the traveling direction of the transfer belt in the order of Y, M, C, and Bk. It is necessary to delay the development timings of the toners of the respective colors by a time corresponding to the following so that the toners of the respective colors of Y, M, C, and Bk are superimposed on the transfer belt without color shift. For this reason, in the illustrated system, each image forming timing of Y, M, C, and Bk is
Delay control is sequentially performed for a time corresponding to the above interval.

【0012】また、図示のシステムでは、4個のLED
ヘッドの走査によりY,M,C,Bk用の各感光体ドラ
ムの帯電表面にそれぞれ静電潜像を形成するため、主走
査方向での印字開姶位置のズレや感光体ドラムとLED
ヘッドの平行度のズレによってスキユー歪みが生ずる
と、色ずれが発生する。このため、Y,M,C,Bkの
各画像データに対して位置補正や画像補正を行なうこと
で上記の現象を防止して色ずれの発生を防止している。
In the illustrated system, four LEDs are used.
In order to form an electrostatic latent image on the charged surface of each of the photoconductor drums for Y, M, C, and Bk by the scanning of the head, the printing air position shifts in the main scanning direction, and the photoconductor drum and the LED are displaced.
If a skew distortion occurs due to a deviation of the parallelism of the head, a color shift occurs. Therefore, by performing position correction and image correction on each of the Y, M, C, and Bk image data, the above-described phenomenon is prevented, and the occurrence of color shift is prevented.

【0013】[1-2] PIC部での処理の概要 次に、図3に示すプリントイメージ制御部(PIC部)
での処理の概要を、データの流れに沿って説明する。な
お、図3では、図3の処理の流れを管理したり各種の設
定値を設定するCPUは、図示を省略している。
[1-2] Outline of Processing in PIC Unit Next, a print image control unit (PIC unit) shown in FIG.
An outline of the processing in will be described along the data flow. In FIG. 3, a CPU that manages the flow of the processing in FIG. 3 and sets various setting values is omitted.

【0014】スキャナ画像処理部12又はプリンタコン
トローラ14から転送されて来るY,M,C,Bkの各
色の画像データは、符号化部21に入力される。符号化
部21では、4×4画素の各ブロックに対してGBTC
方式による固定長圧縮処理が行われる。また、A3サイ
ズ原稿の場合には、固定長圧縮処理後に更に属性別の可
変長コード化圧縮処理が行われる。また、可変長コード
化圧縮処理を行う場合には、可変長コード化圧縮後の総
符号量がフレームメモリ22に記憶可能な量であるか否
かが、属性情報をその種別毎に計数した結果に基づいて
判定され、記憶可能な量を越える場合には、GBTC圧
縮及び可変長コード化圧縮に代えて、解像度を低解像度
に切り換える解像度変換処理が行われる。
Image data of each color of Y, M, C, and Bk transferred from the scanner image processing unit 12 or the printer controller 14 is input to an encoding unit 21. In the encoding unit 21, GBTC is applied to each block of 4 × 4 pixels.
Fixed-length compression processing is performed according to the method. In the case of an A3 size original, after the fixed length compression process, a variable length coded compression process for each attribute is further performed. When performing variable-length coded compression processing, whether the total code amount after variable-length coded compression is an amount that can be stored in the frame memory 22 is determined by counting attribute information for each type. If the amount exceeds the storable amount, a resolution conversion process for switching the resolution to a low resolution is performed instead of the GBTC compression and the variable length coding compression.

【0015】固定長圧縮処理では、4×4画素の各ブロ
ックの画像データが、それぞれ48ビットのデータに圧
縮される。可変長コード化圧縮処理では、固定長圧縮処
理後の48ビットのデータが、属性に応じて、2ビット
/10ビット/50ビットの何れかに変換される。この
可変長コード化圧縮処理は、原稿画像サイズが回転等の
編集処理を必要としないサイズ(出力紙の最大サイズと
同じA3サイズ)の場合に行われる。解像度変換処理で
は、2×2画素のデータ値(各8ビット)の平均値(8
ビット)が、当該2×2各画素のデータ値とされる。固
定長圧縮処理と可変長コード化圧縮処理と解像度変換処
理については、後に詳述する。固定長圧縮処理により4
×4画素当り48ビットに変換された各色のデータ、固
定長圧縮処理により4×4画素当り48ビットに変換さ
れた後に更に可変長コード化圧縮処理された各色のデー
タ、及び解像度変換処理により4×4画素当り32ビッ
トに変換された各色のデータは、それぞれ16ビットの
データバスに出力される。
In the fixed length compression processing, the image data of each block of 4 × 4 pixels is compressed into 48-bit data. In the variable-length coding compression processing, 48-bit data after the fixed-length compression processing is converted into any of 2 bits / 10 bits / 50 bits according to the attribute. This variable length coded compression processing is performed when the original image size is a size that does not require editing processing such as rotation (A3 size which is the same as the maximum size of output paper). In the resolution conversion process, the average value (8 bits) of the data values (8 bits each) of 2 × 2 pixels is used.
Bit) is a data value of each 2 × 2 pixel. The fixed-length compression processing, the variable-length coding compression processing, and the resolution conversion processing will be described later in detail. 4 by fixed length compression processing
The data of each color converted to 48 bits per 4 × 4 pixel, the data of each color converted to 48 bits per 4 × 4 pixel by fixed length compression processing, and further subjected to variable length coding and compression processing, and 4 The data of each color converted to 32 bits per 4 pixels is output to a 16-bit data bus.

【0016】符号化部21から出力されるY,M,C,
Bkの各色のデータは、副走査遅延制御部23のフレー
ムメモリ22に格納される。ここで、原稿画像サイズが
回転等の編集処理を施され得るサイズ(例えば、A4以
下)の場合には、固定長圧縮のみを施されて4×4画素
当り48ビットとされたデータが格納される。また、原
稿画像サイズが回転等の編集処理の不要なサイズ(例え
ば、A3)の場合には、固定長圧縮処理により48ビッ
トに変換された後に更に可変長コード化圧縮処理された
データが格納される。また、原稿画像サイズが回転等の
編集処理の不要なサイズ(例えば、A3)の場合であっ
て、可変長コード化圧縮処理後の符号総量がフレームメ
モリ22に記憶可能な量を越えると判定された場合に
は、解像度を低解像度に切り換えられたデータが格納さ
れる。なお、フレームメモリ22へ格納する際に上記の
中から格納すべきデータを選択する制御に代えて、画像
インターフェイス20から入力される画像データに対し
て上記の選択を行うように制御してもよい。
The Y, M, C,
The data of each color of Bk is stored in the frame memory 22 of the sub-scanning delay controller 23. Here, when the original image size is a size (for example, A4 or less) that can be subjected to editing processing such as rotation, data that is subjected to only fixed length compression and has 48 bits per 4 × 4 pixels is stored. You. When the original image size is a size that does not require editing processing such as rotation (for example, A3), data that has been converted to 48 bits by fixed-length compression processing and then further subjected to variable-length coded compression processing is stored. You. Further, when the original image size is a size that does not require editing processing such as rotation (for example, A3), it is determined that the total code amount after the variable-length coding compression processing exceeds the amount that can be stored in the frame memory 22. In this case, data whose resolution has been switched to a lower resolution is stored. In addition, instead of the control of selecting data to be stored from the above when storing the data in the frame memory 22, the control may be performed such that the above selection is performed on the image data input from the image interface 20. .

【0017】副走査遅延制御部23では、フレームメモ
リ22からY,M,C,Bkの各色のデータを読み出す
タイミングが、各色の現像ユニットの間隔(図示のシス
テムではLmm)を考慮してY,M,C,Bkの各色毎
に独立に制御される。これにより、各色の画像の位置が
補正される。例えば、最下流のBk作像ユニットによる
描画位置をペーパー基準としてBk画像の位置が補正さ
れる。Y,M,Cの各色のデータは、画像位置補正後の
Bkデータを基準として、各々の画像の位置を補正され
る。
In the sub-scanning delay control unit 23, the timing of reading the data of each color of Y, M, C, and Bk from the frame memory 22 is determined based on the interval between the developing units of each color (L mm in the illustrated system). It is controlled independently for each of the colors M, C, and Bk. Thereby, the position of the image of each color is corrected. For example, the position of the Bk image is corrected based on the drawing position by the Bk imaging unit at the lowermost stream as the paper reference. With respect to the data of each color of Y, M, and C, the position of each image is corrected based on the Bk data after the image position correction.

【0018】副走査遅延制御部23では、また、プリン
ト動作の過程に応じて、フレームメモリ22からデータ
を読み出すタイミングが制御される。つまり、用紙の両
面にプリントする両面プリントモード/2頁の画像を同
一用紙の前半と後半にプリントする2イン1モード/画
像を用紙に順にプリントする面順次モード/複数部数を
プリントするために複数頁の画像を繰り返して出力する
メモリリテンションモード等のプリントモードの動作の
過程に応じて、フレームメモリ22からデータを読み出
すタイミングが制御される。
The sub-scanning delay controller 23 controls the timing of reading data from the frame memory 22 in accordance with the printing operation. That is, two-sided print mode for printing on both sides of paper / two-in-one mode for printing two-page images in the first half and second half of the same paper / side-sequential mode for sequentially printing images on paper / multiple copies for printing multiple copies The timing of reading data from the frame memory 22 is controlled in accordance with the operation of a print mode such as a memory retention mode for repeatedly outputting page images.

【0019】副走査遅延制御部23では、また、画像の
編集モードに応じて、フレームメモリ22からデータを
読み出す際の読み出しアドレスが制御される。例えば、
画像を回転するモードが設定されている場合には、読み
出しアドレスを後述の如く制御することにより、画像の
回転が行われる。
The sub-scanning delay control section 23 controls a read address for reading data from the frame memory 22 in accordance with an image editing mode. For example,
When the mode for rotating the image is set, the image is rotated by controlling the read address as described later.

【0020】フレームメモリ22は、標準でA3サイズ
描画用のY,M,C,Bkの各色のデータを記憶できる
容量を有する。つまり、標準ではA3サイズの画像描画
用のデータを1面分記憶する容量を有し、4面分の容量
まで拡張可能である。4面分まで拡張した場合には、両
面プリント時に用紙の第1面にプリントした後、反転ユ
ニットで反転して第2面にプリントするまでの間に、他
の原稿の画像データを最大で3面分記憶できるため、プ
リント生産性を向上させることができる。
The frame memory 22 has a capacity capable of storing data of each color of Y, M, C and Bk for drawing A3 size as standard. In other words, the standard has a capacity to store one plane of A3 size image drawing data, and can be expanded to a capacity of four sides. When the original is expanded to four sides, after printing on the first side of the sheet at the time of double-sided printing, the image data of the other original is printed up to three times before being inverted by the reversing unit and printed on the second side. Since the area can be memorized, print productivity can be improved.

【0021】フレームメモリ22から読み出されるY,
M,C,Bkの各データが、可変長コード化圧縮された
データの場合には、固定長データ変換部(可変長コード
化伸長部)25にて、可変長コード化伸長される。可変
長コード化伸長処理は、可変長コード化圧縮処理の逆変
換処理である。これにより、Y,M,C,Bkの各色の
データは、可変長コード化圧縮処理される前のデータ
(=固定長圧縮データ;4×4画素当り48ビットのデ
ータ)に逆変換される。また、フレームメモリ22から
読み出されるY,M,C,Bkの各データが、固定長圧
縮のみ施されたデータの場合には、16ビットのデータ
バスから48ビットへの変換が行われる。また、フレー
ムメモリ22から読み出されるY,M,C,Bkの各デ
ータが、低解像度に変換されたデータの場合には、16
ビットのデータバスから32ビットへの変換が行われ
る。これらの変換処理は、図9内左半分に示される。上
記の何れかの変換処理を施されたデータは、複数ライン
の記憶容量を有する内部メモリに格納される。可変長コ
ード化伸長処理、16to48ビット変換処理、16t
o32ビット変換処理については、後に詳述する。
Y, read from the frame memory 22,
If each of the data M, C, and Bk is data that has been subjected to variable-length code compression, the fixed-length data conversion unit (variable-length code expansion unit) 25 performs variable-length code expansion. The variable-length coded decompression process is a reverse conversion process of the variable-length coded compression process. As a result, the data of each color of Y, M, C, and Bk is inversely converted into data (= fixed-length compressed data; 48-bit data per 4 × 4 pixels) before being subjected to the variable-length coding compression processing. When each of the Y, M, C, and Bk data read from the frame memory 22 is data subjected to only fixed-length compression, conversion from a 16-bit data bus to 48 bits is performed. If each of the Y, M, C, and Bk data read from the frame memory 22 is data converted to low resolution, 16
The conversion from the data bus of 32 bits to 32 bits is performed. These conversion processes are shown in the left half of FIG. The data subjected to any of the above conversion processes is stored in an internal memory having a storage capacity of a plurality of lines. Variable length coding expansion processing, 16 to 48 bit conversion processing, 16t
The o32-bit conversion processing will be described later in detail.

【0022】4×4画素当り48ビットに可変長コード
化伸長されたY,M,C,Bkの各色のデータ、又はフ
レームメモリ22から読み出されて4×4画素当り48
ビットに変換されたデータ、又はフレームメモリ22か
ら読み出されて4×4画素当り32ビットに変換された
データに対して、補正部27にて、主走査方向の位置調
整と、副走査方向のスキュー補正が行われ、さらに、固
定長伸長処理(GBTC復号)又は水増し処理が行われ
る。固定長伸長処理と水増し処理については、後に詳述
する。
The data of each color of Y, M, C, and Bk, which is variable-length coded and decompressed to 48 bits per 4 × 4 pixel, or read from the frame memory 22 and read out of the frame memory 22 at 48 bits
The correction unit 27 adjusts the position of the data converted into bits or the data read from the frame memory 22 and converted into 32 bits per 4 × 4 pixel in the main scanning direction and in the sub-scanning direction. Skew correction is performed, and further, fixed-length decompression processing (GBTC decoding) or padding processing is performed. The fixed length extension processing and the padding processing will be described later in detail.

【0023】主走査方向の位置調整は、用紙サイズによ
り異なる主走査方向の基準位置(中央位置)を転写ベル
トの中央位置に合わせるように、内部メモリから読み出
すタイミングを制御することで行われる。副走査方向の
スキュー補正は、スキューの程度によって定まる所定数
の画素を単位として、ラインをずらすように、内部メモ
リから読み出すタイミングを制御することで行われる。
ここで、スキューの程度は、Y,M,C,Bkの各色の
テストパターンを転写ベルト上にて重ね、Bk成分に対
するズレ量を測定することで検出される。ズレ量の測定
は、Bk作像ユニットの下流側に設けた不図示のセンサ
を用いて行われる。固定長伸長処理は固定長圧縮処理の
逆変換処理である。また、水増し処理は低解像度の画像
データを通常の解像度に変換する処理である。この何れ
かにより、圧縮されていたY,M,C,Bkの各データ
が伸長されて、又は低解像度の画像データから通常の解
像度の画像データが再生されて、階調再現部29へ送ら
れる。
The position adjustment in the main scanning direction is performed by controlling the timing of reading from the internal memory so that a reference position (center position) in the main scanning direction that differs depending on the paper size is adjusted to the center position of the transfer belt. Skew correction in the sub-scanning direction is performed by controlling the timing of reading from the internal memory so as to shift the line in units of a predetermined number of pixels determined by the degree of skew.
Here, the degree of skew is detected by superimposing test patterns of each color of Y, M, C, and Bk on the transfer belt and measuring a shift amount with respect to the Bk component. The measurement of the shift amount is performed using a sensor (not shown) provided on the downstream side of the Bk image forming unit. The fixed length decompression process is an inverse conversion process of the fixed length compression process. The padding process is a process of converting low-resolution image data into a normal resolution. With any one of these, the compressed data of Y, M, C, and Bk is expanded, or image data of normal resolution is reproduced from low-resolution image data, and sent to the tone reproduction unit 29. .

【0024】階調再現部29では、Y,M,C,Bkの
各色の2400dpi化の解像度変換処理の後、電子写
真プロセスにおけるγ特性による階調歪みを補正するγ
補正が行われ、補正後の各色の画像データがプリントヘ
ッド制御部30の対応するLEDドライバへそれぞれ転
送される。また、γ補正に先立ち、再度、画像のエッジ
検出が行われ、文字エッジ部では解像度が優先されて1
ドット周期の強度変調が行われる。また、連続階調部で
は階調再現が優先されて2ドット周期の強度変調が行わ
れる。この時、2ドット周期の強度変調では、画像の粒
状性が向上するように、色毎に異なるスクリーン角が設
定される。
The tone reproduction section 29 corrects the tone distortion due to the γ characteristic in the electrophotographic process after the resolution conversion processing of 2400 dpi for each color of Y, M, C and Bk.
The correction is performed, and the corrected image data of each color is transferred to the corresponding LED driver of the print head control unit 30. Further, prior to the γ correction, the edge detection of the image is performed again.
The intensity modulation of the dot cycle is performed. Further, in the continuous tone portion, tone reproduction is prioritized, and intensity modulation in a two-dot cycle is performed. At this time, in the intensity modulation with a two-dot cycle, different screen angles are set for each color so that the granularity of the image is improved.

【0025】〔2〕符号化処理(圧縮)の詳細:次に、
GBTC方式の固定長圧縮処理と、GBTC方式の固定
長圧縮後に必要に応じて実行される可変長コード化圧縮
処理と、解像度を低解像度に切り換える解像度変換処理
の詳細を、図4〜図8を参照して説明する。図4は符号
化部21を主に示すブロック図、図5は図4の固定長圧
縮部211を示すブロック図、図6は図4の解像度変換
部218を示すブロック図、図7は図4の属性判別部2
12と可変長コード化圧縮部215とを主に示すブロッ
ク図、図8は固定長圧縮と可変長コード化圧縮のデータ
構成を示す説明図である。
[2] Details of encoding process (compression):
Details of the fixed-length compression processing of the GBTC method, the variable-length coding compression processing that is executed as needed after the fixed-length compression of the GBTC method, and the resolution conversion processing of switching the resolution to low resolution are shown in FIGS. It will be described with reference to FIG. 4 is a block diagram mainly showing the encoding unit 21, FIG. 5 is a block diagram showing the fixed length compression unit 211 in FIG. 4, FIG. 6 is a block diagram showing the resolution conversion unit 218 in FIG. 4, and FIG. Attribute determination unit 2
12 and a block diagram mainly showing the variable length coded compression section 215, and FIG. 8 is an explanatory diagram showing the data structure of fixed length compression and variable length coded compression.

【0026】[2-1] ブロック生成:図4に示すブロック
生成部210では、1画素当り8ビットのY,M,C,
Bkの各色の画像のラスターデータから、4×4画素を
1ブロックとしてブロック切り出しが行われる。切り出
された各ブロックは8×4×4=128ビットから成
り、固定長圧縮部211及び解像度変換部218へ送ら
れる。
[2-1] Block generation: The block generation section 210 shown in FIG. 4 has 8 bits per pixel of Y, M, C,
From the raster data of the image of each color of Bk, block cutting is performed with 4 × 4 pixels as one block. Each cut-out block is composed of 8 × 4 × 4 = 128 bits and sent to the fixed-length compression unit 211 and the resolution conversion unit 218.

【0027】[2-2] 固定長圧縮処理:図5に示す固定長
圧縮部211では、上記128ビットのデータがGBT
C方式により圧縮されて、48ビットの圧縮データに変
換される。まず、4×4画素に対応する画像データか
ら、最大値(Lmax)と、最小値(Lmin)とが算
出される。
[2-2] Fixed length compression processing: The fixed length compression section 211 shown in FIG.
It is compressed by the C method and is converted into 48-bit compressed data. First, a maximum value (Lmax) and a minimum value (Lmin) are calculated from image data corresponding to 4 × 4 pixels.

【0028】次に、算出した最大値と最小値に基づいて
内分点P2とP1が算出される。内分点P2は、最大値
と最小値の間の階調を『3:1』に内分する内分点であ
り、下記数式(1)により算出される、最大値Lmax
寄りの内分点である。内分点P1は、最大値と最小値の
間の階調を『1:3』に内分する内分点であり、下記数
式(2)により算出される、最小値Lmin寄りの内分
点である。
Next, the internal dividing points P2 and P1 are calculated based on the calculated maximum value and minimum value. The internally dividing point P2 is an internally dividing point that internally divides the gradation between the maximum value and the minimum value into “3: 1”, and is calculated by the following equation (1).
It is a closer inner dividing point. The internal dividing point P1 is an internal dividing point that internally divides the gradation between the maximum value and the minimum value into “1: 3”, and is calculated by the following equation (2) and is closer to the minimum value Lmin. It is.

【数1】 P2=(Lmax×3+Lmin)/4・・・・(1) P1=(Lmax+Lmin×3)/4・・・・(2)P1 = (Lmax × Lmin × 3) / 4 (1) P2 = (Lmax × 3 + Lmin) / 4 (1)

【0029】次に、算出した内分点P2に基づいて上限
値Q4が下記数式(3)により算出され、内分点P1に
基づいて下限値Q1が下記数式(4)により算出され
る。
Next, the upper limit value Q4 is calculated by the following equation (3) based on the calculated inner dividing point P2, and the lower limit value Q1 is calculated by the following equation (4) based on the inner dividing point P1.

【数2】 Q4=(P2以上の画像データの平均値)・・・・(3) Q1=(P1以下の画像データの平均値)・・・・(4)Q4 = (average value of image data of P2 or more)... (3) Q1 = (average value of image data of P1 or less)... (4)

【0030】次に、算出した上限値Q4と下限値Q1に
基づいてブロックの平均値指標LAが下記数式(5)に
より算出され、同様に上限値Q4と下限値Q1に基づい
てブロックの階調幅指標LDが下記数式(6)により算
出される。
Next, the average value index LA of the block is calculated by the following equation (5) based on the calculated upper limit value Q4 and lower limit value Q1, and similarly, the gradation width of the block is calculated based on the upper limit value Q4 and the lower limit value Q1. The index LD is calculated by the following equation (6).

【数3】LA=(Q4+Q1)/2・・・・(5) LD=(Q4−Q1)・・・・・・(6)(3) LA = (Q4 + Q1) / 2 (5) LD = (Q4-Q1) (6)

【0031】次に、平均値指標LA及び階調幅指標LD
と、各画素のデータ値との大小関係に基づいて、各画素
のデータ値が、下記数式(7)〜(10)の規則に従っ
て量子化され、これにより、各画素に対して各々2ビッ
トの符号が割り当てられる。
Next, the average value index LA and the gradation width index LD
And the data value of each pixel, the data value of each pixel is quantized according to the rules of the following equations (7) to (10). A code is assigned.

【数4】 データ値>LA+LD/4 → 11 ・・・(7) LA+LD/4≧データ値>LA → 10 ・・・(8) LA≧データ値>LA−LD/4 → 01 ・・・(9) LA−LD/4≧データ値 → 00 ・・・(10)(7) LA + LD / 4 ≧ data value> LA → 10 (8) LA ≧ data value> LA−LD / 4 → 01 (7) 9) LA-LD / 4 ≧ data value → 00 (10)

【0032】以上の処理により、4×4×8ビット=1
28ビットの画像データは、8ビットのLAと、8ビッ
トのLDと、1画素当り2ビットで4×4画素で32ビ
ットの量子化符号とから成る、合計48ビットの固定長
データに圧縮される。
By the above processing, 4 × 4 × 8 bits = 1
The 28-bit image data is compressed to a total of 48-bit fixed-length data consisting of an 8-bit LA, an 8-bit LD, and a 32-bit quantization code of 2 × 4 × 4 pixels. You.

【0033】[2-3] 可変長コード化圧縮及び属性計数:
固定長圧縮されたデータは、原稿サイズがA3の場合に
は更に可変長コード化圧縮される。図7に示すように、
可変長コード化圧縮部215では、属性判別部212で
の判別結果に応じた圧縮処理が行われる。また、プレス
キャン時に入力される画像データに対しては、属性計数
部216により、属性情報が種別毎に計数される。ま
た、その結果に基づいて、本スキャン時の画像データの
圧縮符号(固定長圧縮後に更に可変長コード化圧縮され
た符号)の総量がフレームメモリ22に格納可能か否か
CPU29(図4)により判定され、格納不可能と判定
された場合にはメモリオーバーフラグが1にセットされ
る。これにより、後述のように、本スキャン時には解像
度変換処理後のデータが選択されてフレームメモリ22
に格納される。
[2-3] Variable length coding compression and attribute counting:
The fixed-length-compressed data is further subjected to variable-length coding and compression when the document size is A3. As shown in FIG.
The variable-length coding compression section 215 performs a compression process according to the determination result of the attribute determination section 212. In addition, attribute information is counted for each type by the attribute counting unit 216 for the image data input at the time of the pre-scan. Also, based on the result, the CPU 29 (FIG. 4) determines whether or not the total amount of compressed codes (codes that have been subjected to variable length coding and compression after fixed length compression) of the image data at the time of the main scan can be stored in the frame memory 22. If it is determined that the data cannot be stored, the memory over flag is set to 1. As a result, as will be described later, during the main scan, the data after the resolution conversion processing is selected and the frame memory 22 is selected.
Is stored in

【0034】[2-3-1] 属性判別:図7に示すように、属
性判別部212では、4×4画素の各ブロックの属性が
平均値指標LAと階調幅指標LDに基づいて属性判別部
212内に示す規則に従って判別され、2ビットの属性
コードが各ブロック毎に生成される。即ち、 (a)LDが所定の階調幅参照値LDref 以下で、且
つ、LAが所定の平均値第1参照値LAref1以下の場合
は、ブロック内の階調差が少なく、濃度レベルが低い
(=0付近)場合であり、属性情報ATRは『00』と
される。 (b)LDが所定の階調幅参照値LDref 以下で、且
つ、LAが所定の平均値第2参照値LAref2以上の場合
は、ブロック内の階調差が少なく、濃度レベルが高い
(=255付近)場合であり、属性情報ATRは『0
1』とされる。 (c)LDが所定の階調幅参照値LDref 以下で、且
つ、LAが所定の平均値第1参照値LAref1より大きく
且つ所定の平均値第2参照値LAref2より小さい場合
は、ブロック内の階調差が少なく、濃度レベルが中間付
近の場合であり、属性情報ATRは『10』とされる。 (d)上記以外の場合、即ち、LDが所定の階調幅参照
値LDref より大きい場合は、ブロック内の階調差が大
きい場合であり、属性情報ATRは『11』とされる。
[2-3-1] Attribute discrimination: As shown in FIG. 7, the attribute discriminating unit 212 discriminates the attribute of each block of 4 × 4 pixels based on the average index LA and the gradation width index LD. It is determined according to the rules shown in the section 212, and a 2-bit attribute code is generated for each block. (A) When LD is equal to or smaller than a predetermined gradation width reference value LDref and LA is equal to or smaller than a predetermined average first reference value LAref1, the gradation difference in the block is small and the density level is low (= 0) and the attribute information ATR is set to “00”. (B) When LD is equal to or smaller than the predetermined gradation width reference value LDref and LA is equal to or larger than the predetermined average second reference value LAref2, the gradation difference in the block is small and the density level is high (= around 255). ), The attribute information ATR is "0
1 ". (C) If LD is equal to or smaller than a predetermined gradation width reference value LDref and LA is larger than a predetermined average first reference value LAref1 and smaller than a predetermined average second reference value LAref2, the gradation in the block is used. This is the case where the difference is small and the density level is near the middle, and the attribute information ATR is “10”. (D) In cases other than the above, that is, when LD is larger than the predetermined gradation width reference value LDref, it is a case where the gradation difference in the block is large, and the attribute information ATR is set to “11”.

【0035】上記の判定に供される3つの参照値LDre
f ,LAref1,LAref2は、CPU29から内部レジス
タに設定される値であり、下記の意味を有する。これら
3つの参照値を適宜の値に設定することで、可変長コー
ド化圧縮の圧縮率を画質とのバランスを考慮して調整す
ることが可能となる。 (a)階調幅参照値LDref :階調差の大小判定に使用
される。LDref を大きな値に設定すると『ATR=1
1』が減少して、階調差を持たないブロックの数が増加
し、階調差を持つブロックの数が減少する。LDref を
小さな値に設定すると『ATR=11』が増加して、階
調差を持たないブロックの数が減少し、階調差を持つブ
ロックの数が増加する。 (b)平均値第1参照値LAref1:濃度レベルの低いブ
ロックの判定に使用される。LAref1を大きな値に設定
すると『ATR=00』が増加する。例えば、LAref1
=5とすると、ブロック内の全画素の濃度レベルが5以
下の場合に、『ATR=00』とされる。 (c)平均値第2参照値LAref2:濃度レベルの高いブ
ロックの判定に使用される。LAref2を小さな値に設定
すると『ATR=01』が増加する。例えば、LAref2
=250とすると、ブロック内の全画素の濃度レベルが
250以上の場合に、『ATR=01』とされる。
The three reference values LDre used for the above determination
f, LAref1, and LAref2 are values set in the internal registers by the CPU 29, and have the following meanings. By setting these three reference values to appropriate values, it is possible to adjust the compression ratio of variable-length coded compression in consideration of the balance with image quality. (A) Tone width reference value LDref: used to determine the magnitude of the tone difference. When LDref is set to a large value, “ATR = 1
1 "decreases, the number of blocks having no gradation difference increases, and the number of blocks having a gradation difference decreases. When LDref is set to a small value, "ATR = 11" increases, the number of blocks having no gradation difference decreases, and the number of blocks having a gradation difference increases. (B) Average first reference value LAref1: Used to determine a block having a low density level. When LAref1 is set to a large value, “ATR = 00” increases. For example, LAref1
Assuming that the density level of all pixels in the block is 5 or less, “ATR = 00” is set. (C) Average second reference value LAref2: used for determining a block having a high density level. When LAref2 is set to a small value, “ATR = 01” increases. For example, LAref2
Assuming that = 250, if the density level of all the pixels in the block is 250 or more, "ATR = 01" is set.

【0036】[2-3-2] 可変長コード化:可変長コード化
圧縮部215では、属性判別部212から入力される属
性情報ATRの値に応じて、4×4画素の各ブロックの
データが、図5内右下欄に示す規則に従ってそれぞれ変
換される。即ち、 (a)『ATR=00』のブロックは、2ビットの属性
情報『00』のみに変換される。 (b)『ATR=01』のブロックは、2ビットの属性
情報『01』のみに変換される。 (c)『ATR=10』のブロックは、2ビットの属性
情報『10』と、該属性情報『10』に続く8ビットの
平均値指標LAから成る10ビットのデータに変換され
る。 (d)『ATR=11』のブロックは、2ビットの属性
情報『11』と、該属性情報『11』に続く48ビット
の固定長圧縮データから成る50ビットのデータに変換
される。
[2-3-2] Variable-length coding: The variable-length coding compression section 215 outputs data of each block of 4 × 4 pixels according to the value of the attribute information ATR input from the attribute determination section 212. Are converted according to the rules shown in the lower right column in FIG. That is, (a) the block of “ATR = 00” is converted into only 2-bit attribute information “00”. (B) The block of “ATR = 01” is converted into only 2-bit attribute information “01”. (C) The block of “ATR = 10” is converted into 10-bit data including 2-bit attribute information “10” and 8-bit average index LA following the attribute information “10”. (D) The block of “ATR = 11” is converted into 50-bit data consisting of 2-bit attribute information “11” and 48-bit fixed-length compressed data following the attribute information “11”.

【0037】属性情報ATRの値に応じて、48ビット
の固定長圧縮データから、2ビットの属性情報/2ビッ
トの属性情報/2ビットの属性情報と8ビットの平均値
指標LAから成る10ビットデータ/2ビットの属性情
報と48ビットの固定長圧縮データから成る50ビット
データ、の何れかに変換された可変長圧縮データは、図
5内右上欄に示すように内部レジスタに記憶された後、
16ビットのデータバスに適合するようにシリアル変換
されて出力される。
According to the value of the attribute information ATR, 10 bits consisting of 2-bit attribute information / 2-bit attribute information / 2-bit attribute information and 8-bit average value index LA from 48-bit fixed-length compressed data The variable-length compressed data converted into either 50-bit data consisting of data / 2-bit attribute information and 48-bit fixed-length compressed data is stored in an internal register as shown in the upper right column in FIG. ,
The data is serially converted and output so as to be compatible with a 16-bit data bus.

【0038】[2-3-3] 可変長コード化されない場合:可
変長コード化圧縮後は、圧縮データが可変長になってお
り、圧縮度を高めることが可能である。しかしながら、
メモリ格納時における任意の画像位置(圧縮画像内での
ランダムなアドレス制御)を指定し、読みだすことがで
きず、フレームメモリ22から読み出す際のアドレス制
御により、画像回転等の編集処理をおこなうことができ
ない。よって、画像編集処理が要求される場合は、可変
長コード化を行なわず、圧縮データでのランダムなアド
レス制御が可能である固定長圧縮を選択する必要があ
る。例えば、回転処理を必要としない(例えばA3サイ
ズ出力)場合には、可変長コード化を行ない、圧縮度を
高め、回転処理を必要とする(例えばA4サイズ出力)
場合には、可変長コード化を行なわず、固定長圧縮を行
ない、圧縮データでのランダムなアドレス制御が可能に
する。また、出力サイズにより選択するのではなく、編
集処理が必要か否かにより、任意のサイズにおいても、
可変長コード化を行なわないように設定可能にしてもよ
い。なお、固定長圧縮処理のみの圧縮率は、可変長コー
ド化圧縮処理よりも小さくなるが、A4サイズの画像デ
ータ量はA3サイズの画像データ量よりも小さいため、
フレームメモリに十分に格納され得るデータ量である。
固定長圧縮処理による圧縮符号のデータ構成と、可変長
コード化圧縮処理による圧縮符号のデータ構成を、図8
に示す。
[2-3-3] When not Variable-Length Coded: After variable-length coded compression, the compressed data has a variable length, and the degree of compression can be increased. However,
Specifying an arbitrary image position (random address control in a compressed image) at the time of storage in the memory, cannot perform reading, and performs editing processing such as image rotation by address control when reading from the frame memory 22. Can not. Therefore, when an image editing process is required, it is necessary to select fixed-length compression that enables random address control with compressed data without performing variable-length coding. For example, when rotation processing is not required (for example, A3 size output), variable length coding is performed to increase the degree of compression, and rotation processing is required (for example, A4 size output).
In this case, fixed-length compression is performed without performing variable-length coding, thereby enabling random address control with compressed data. In addition, instead of selecting according to the output size, depending on whether or not the editing process is necessary, at an arbitrary size,
A setting may be made so that variable-length coding is not performed. Note that the compression ratio of only the fixed-length compression processing is smaller than that of the variable-length coding compression processing. However, since the A4 size image data amount is smaller than the A3 size image data amount,
This is the amount of data that can be sufficiently stored in the frame memory.
FIG. 8 shows the data structure of the compression code by the fixed-length compression processing and the data structure of the compression code by the variable-length coding compression processing.
Shown in

【0039】[2-3-4] 属性計数(プレスキャン時):画
像インターフェイス20から入力される画像データがプ
レスキャン時の画像データ(プレスキャンは一般に本ス
キャンよりも低解像度で実行される)の場合には、属性
計数部216により上記各属性情報の数がその種別毎に
計数される。これは、可変長圧縮後の符号量が属性情報
の種別に応じて一義的に決まる(ATR=00→2ビッ
ト,ATR=01→2ビット,ATR=10→10ビッ
ト,ATR=11→50ビット)という上記の事実を利
用して、可変長コード化圧縮後の符号総量を求めるため
である。計数結果はCPU29へ送られ、これに基づい
て、CPU29は、プレスキャンと本スキャンの解像度
の差を考慮して、本スキャン時の画像データの圧縮符号
(固定長圧縮後に更に可変長コード化圧縮した符号)の
符号総量を求める。また、求めた符号総量がフレームメ
モリ22に記憶可能な量か否か判定し、記憶不可能な量
の場合には、メモリオーバーフラグを1にセットする。
[2-3-4] Attribute counting (at the time of pre-scan): Image data input from the image interface 20 is image data at the time of pre-scan (pre-scan is generally executed at a lower resolution than main scan) In the case of (1), the attribute counter 216 counts the number of each piece of the attribute information for each type. This is because the code amount after variable length compression is uniquely determined according to the type of attribute information (ATR = 00 → 2 bits, ATR = 01 → 2 bits, ATR = 10 → 10 bits, ATR = 11 → 50 bits) ) Is used to determine the total code amount after variable-length coded compression. The counting result is sent to the CPU 29, and based on this, the CPU 29 takes into account the difference in resolution between the pre-scan and the main scan, and compresses the image data at the time of the main scan (variable-length compression after fixed-length compression. Code) is obtained. Further, it is determined whether or not the obtained total code amount is an amount that can be stored in the frame memory 22. If the total amount cannot be stored, the memory over flag is set to 1.

【0040】[2-4] 解像度変換処理:図6は解像度変換
部218の処理を示す。図示のように、4×4画素のブ
ロックが2×2画素づつの4個の小領域に分割され、各
小領域について、それぞれデータ値(1小領域当り8ビ
ットデータが4個)の平均値が算出される。また、算出
された平均値(8ビットデータ)が当該小領域のデータ
値とされ、16ビットのデータバスへ出力される。この
解像度変換の結果、4×4画素(1ブロック)当りのデ
ータ量は、128ビットから32ビットに削減される。
[2-4] Resolution Conversion Processing: FIG. 6 shows the processing of the resolution conversion unit 218. As shown in the figure, a block of 4 × 4 pixels is divided into four small areas each having 2 × 2 pixels, and for each small area, an average value of data values (four 8-bit data per small area) Is calculated. Further, the calculated average value (8-bit data) is used as the data value of the small area, and is output to the 16-bit data bus. As a result of this resolution conversion, the data amount per 4 × 4 pixels (one block) is reduced from 128 bits to 32 bits.

【0041】〔3〕メモリ制御:固定長圧縮のみを行っ
たデータと、固定長圧縮後に更に可変長コード化圧縮を
行ったデータと、解像度変換を行ったデータの中で、何
れをフレームメモリ22に書き込むかを選択する書き込
み制御と、フレームメモリ22から読み出す際にアドレ
スを制御することで画像を回転させる制御を説明する。
[3] Memory control: Which one of data subjected to fixed-length compression only, data subjected to variable-length coding compression after fixed-length compression, and data subjected to resolution conversion, A description will be given of write control for selecting whether or not to write to the image memory, and control for rotating an image by controlling an address when reading from the frame memory 22.

【0042】[3-1] メモリ書き込み制御(切換制御):
4×4画素当り48ビットの固定長圧縮データを更に可
変長コード化圧縮してフレームメモリ22に書き込む
か、又は可変長コード化圧縮することなくフレームメモ
リ22に書き込むか、又は解像度変換処理後のデータを
フレームメモリ22に書き込むかの選択は、図4に示す
ように、CPU29により内部レジスタに設定される固
定長/可変長切換信号CODESELと、CPU29に
より制御されるメモリオーバーフラグに従って行われ
る。即ち、 (a)メモリオーバーフラグが1にセットされている場
合は、解像度変換処理後のデータをフレームメモリ22
に書き込む。 (b)メモリオーバーフラグが1にセットされていない
場合であって、『CODESEL=0』の場合は、固定
長圧縮データを更に可変長コード化圧縮してフレームメ
モリ22に書き込む。 (c)メモリオーバーフラグが1にセットされていない
場合であって、『CODESEL=1』の場合は、可変
長コード化圧縮することなく、固定長圧縮後のデータを
フレームメモリ22に書き込む。ように制御が行われ
る。
[3-1] Memory write control (switch control):
The fixed-length compressed data of 48 bits per 4 × 4 pixel is further subjected to variable-length coding compression and written to the frame memory 22, or written to the frame memory 22 without variable-length coding compression, or after resolution conversion processing. The selection of whether to write data to the frame memory 22 is made according to a fixed length / variable length switching signal CODESEL set in an internal register by the CPU 29 and a memory over flag controlled by the CPU 29, as shown in FIG. (A) When the memory over flag is set to 1, the data after the resolution conversion processing is stored in the frame memory 22
Write to. (B) When the memory over flag is not set to 1 and “CODESEL = 0”, the fixed-length compressed data is further subjected to variable-length code compression and written into the frame memory 22. (C) When the memory over flag is not set to 1 and “CODESEL = 1”, the data after the fixed length compression is written to the frame memory 22 without performing the variable length coding compression. The control is performed as follows.

【0043】上記のCODESELは、原稿サイズに応
じて決められる。即ち、原稿サイズがA3サイズの場合
は、『CODESEL=0』に設定される。また、A4
サイズ以下の場合は、『CODESEL=1』に設定さ
れる。
The above CODESEL is determined according to the document size. That is, when the document size is A3 size, “CODESEL = 0” is set. Also, A4
If the size is smaller than the size, "CODESEL = 1" is set.

【0044】上記の切換制御により、原稿がA4サイズ
以下の場合には、4×4画素当り48ビットの固定長圧
縮データがフレームメモリ22に記憶される。このた
め、フレームメモリ22からの読み出し時に行アドレス
と列アドレスを入れ換えるアドレス制御を行うことで、
画像を90度回転させることができる。つまり、圧縮し
た状態で編集処理が可能である。また、原稿がA3サイ
ズの場合には、フレームメモリ22への記憶が可能な符
号量であることを条件として、4×4画素当り48ビッ
トの固定長圧縮データが更に可変長コード化圧縮されて
フレームメモリ22に記憶される。このため、データ量
を更に削減することができ、比較的小容量で安価なメモ
リをフレームメモリ22として用いることができ、コス
トを低減できる。例えば、実施の形態のシステムでは、
1色当り64MBのDRAMを2個用いてフレームメモ
リ22を構成することにより、A4サイズ・600dp
iの画像データ量が記憶可能となる。また、原稿がA3
サイズの場合であって、可変長コード化圧縮後の符号総
量がフレームメモリ22に記憶可能な量を越えると判定
された場合には、低解像度に変換されてデータ量を削減
されたデータがフレームメモリ22に記憶される。この
ため、フレームメモリ22への格納途中で記憶できなく
なり、その結果、画像形成が不可能になったり、画像走
査をし直す等の不具合が防止される。また、符号総量が
フレームメモリ22の記憶容量を越えると判定される画
像は写真画像(連続階調画像)であるため、低解像度に
変換した場合でも画質の劣化は無視できる程度である。
According to the above switching control, when the original is smaller than A4 size, fixed-length compressed data of 48 bits per 4 × 4 pixels is stored in the frame memory 22. Therefore, by performing address control for exchanging the row address and the column address when reading from the frame memory 22,
The image can be rotated 90 degrees. That is, the editing process can be performed in a compressed state. If the original is A3 size, the fixed length compressed data of 48 bits per 4 × 4 pixel is further compressed into variable length code on condition that the code amount can be stored in the frame memory 22. It is stored in the frame memory 22. Therefore, the data amount can be further reduced, a relatively small-capacity and inexpensive memory can be used as the frame memory 22, and the cost can be reduced. For example, in the system of the embodiment,
By configuring the frame memory 22 using two 64 MB DRAMs per color, an A4 size 600 dp
The image data amount of i can be stored. If the original is A3
In the case of the size, if it is determined that the total code amount after the variable length coded compression exceeds the amount that can be stored in the frame memory 22, the data converted to low resolution and the data amount is reduced Stored in the memory 22. For this reason, the data cannot be stored during the storage in the frame memory 22. As a result, problems such as the inability to form an image and the rescanning of an image are prevented. Further, since the image for which the total code amount is determined to exceed the storage capacity of the frame memory 22 is a photographic image (continuous tone image), even when converted to a low resolution, the deterioration of the image quality is negligible.

【0045】[3-2] メモリ読み出し制御(画像の回
転):図12は、フレームメモリ22内の各アドレスに
格納されるデータを示す説明図である。図示のように、
フレームメモリ22内の各アドレスは、行アドレス(ロ
ーアドレス)と、列アドレス(コラムアドレス)により
特定される。また、1ブロックの48ビットの固定長圧
縮データは、前述のように、8ビットの平均値指標LA
と、8ビットの階調幅指標LDと、各々2ビットで合計
32ビットの符号情報P0〜Pfとから成る。
[3-2] Memory Read Control (Rotation of Image): FIG. 12 is an explanatory diagram showing data stored at each address in the frame memory 22. As shown,
Each address in the frame memory 22 is specified by a row address (row address) and a column address (column address). As described above, the 48-bit fixed-length compressed data of one block is an 8-bit average value index LA.
, An 8-bit gradation width index LD, and 2-bit code information P0 to Pf each having a total of 32 bits.

【0046】図13は、フレームメモリ22から読み出
す際に、ローアドレス(行アドレス)とコラムアドレス
(列アドレス)を入れ換え、コラムアドレスの逆順に読
み出すことで、画像を回転させる原理を示す。図13上
段に示すように、画像を回転しないノーマル時には、行
の左端からローアドレスの正順に、且つ先頭行から行の
正順に、読み出しが行われる。一方、画像を90度回転
させる90度回転時には、図13下段に示すように、列
の下端からコラムアドレスの逆順に、且つ先頭列から列
の正順に、読み出しが行われる。さらに、その際に、各
48ビットの符号データの内、合計32ビットの符号情
報P0〜Pfについても行と列の入れ換えが行われる。
つまり、Pc,P8,P4,P0,Pd,P9,P5,
P1,Pe,Pa,P6,P2,Pf,Pb,P7,P
3の順で、各アドレス内の下位32ビットのデータが読
み出される。
FIG. 13 shows the principle of rotating an image by exchanging a row address (row address) and a column address (column address) when reading from the frame memory 22 and reading the column address in reverse order. As shown in the upper part of FIG. 13, in the normal state where the image is not rotated, reading is performed in the order of the row address from the left end of the row and in the order of the row from the top row. On the other hand, at the time of 90-degree rotation in which the image is rotated by 90 degrees, as shown in the lower part of FIG. 13, reading is performed in the reverse order of the column address from the lower end of the column and in the normal order of the column from the first column. Further, at this time, the rows and columns are exchanged for the 32-bit code information P0 to Pf of the 48-bit code data.
That is, Pc, P8, P4, P0, Pd, P9, P5
P1, Pe, Pa, P6, P2, Pf, Pb, P7, P
In the order of 3, lower 32 bits of data in each address are read.

【0047】〔4〕復号:図9は、フレームメモリ22
から読み出されるデータを、その符号化方式(固定長圧
縮,固定長圧縮&可変長コード化圧縮,解像度変換)に
応じて復号する処理過程を示すブロック図、図10は、
固定長圧縮又は固定長圧縮&可変長コード化圧縮されて
いる符号を4×4画素当り48ビットの符号データに復
号する原理を示す説明図、図11上段は4×4画素当り
48ビットの符号データをGBTC復号(固定長圧縮か
らの伸長)する処理を示すブロック図、図11下段は4
×4画素当り32ビットの低解像度データを128ビッ
トに水増しする処理を示すブロック図である。
[4] Decoding: FIG. 9 shows the frame memory 22
FIG. 10 is a block diagram showing a process of decoding data read out from a memory according to its encoding method (fixed length compression, fixed length compression & variable length coding compression, resolution conversion).
FIG. 11 is an explanatory view showing the principle of decoding a code which has been subjected to fixed-length compression or fixed-length compression and variable-length code compression into code data of 48 bits per 4 × 4 pixels. The upper part of FIG. 11 shows a code of 48 bits per 4 × 4 pixels. FIG. 11 is a block diagram showing a process of performing GBTC decoding (expansion from fixed-length compression) of data, and FIG.
It is a block diagram showing processing which inflates low-resolution data of 32 bits per × 4 pixels to 128 bits.

【0048】フレームメモリ22からは、Y,M,C,
Bkの各色のデータが、各色の作像ユニットの間隔(本
例ではLmm)で決定されるタイミングで順に読み出さ
れて、まず、入力バッファに書き込まれる。
From the frame memory 22, Y, M, C,
Data of each color of Bk is sequentially read out at the timing determined by the interval (Lmm in this example) between the image forming units of each color, and is first written into the input buffer.

【0049】[4-1] 可変長コード化伸長(固定長データ
変換):CPU29から与えられる固定長/可変長切換
信号(CODESEL)が0であり、低解像度データ選
択信号が0の場合は、固定長圧縮後に更に可変長コード
化圧縮されたデータがフレームメモリ22に格納されて
いる場合であり、本例ではA3サイズ原稿の場合であ
る。この場合は、図10内の上欄に示すCODESEL
=0の場合の処理が、復号処理として選択される。つま
り、図9の可変長コード変換部255の出力が、選択部
により選択される。
[4-1] Variable-length code expansion (fixed-length data conversion): When the fixed-length / variable-length switching signal (CODESEL) given by the CPU 29 is 0 and the low-resolution data selection signal is 0, This is the case where the data which has been subjected to the variable length code compression after the fixed length compression is stored in the frame memory 22. In this example, this is the case of an A3 size document. In this case, CODESEL shown in the upper section of FIG.
The process when = 0 is selected as the decoding process. That is, the output of the variable length code conversion unit 255 in FIG. 9 is selected by the selection unit.

【0050】詳細には、入力バッファから読み出した2
ビットの属性情報ATRの値に対応するアルゴリズムに
従って48ビットのデータ(新固定長圧縮データ)を生
成して出力バッファに書き込む下記の処理が実行され
る。 (a)属性情報ATRが『00』の場合は、平均値指標
LA=00h、階調幅指標LD=0h、符号情報=00
00hの48ビットデータが生成される。 (b)属性情報ATRが『01』の場合は、平均値指標
LA=ffh、階調幅指標LD=0h、符号情報=00
00hの48ビットデータが生成される。 (c)属性情報ATRが『10』の場合は、該2ビット
の属性情報に続く8ビットデータF1hが平均値指標L
Aとされ、この『LA=F1h』と、階調幅指標LD=
0h、符号情報=0000hの48ビットデータが生成
される。 (d)属性情報ATRが『11』の場合は、該2ビット
の属性情報に続く48ビットのデータがそのまま新固定
長圧縮データとして生成される。
More specifically, 2 read from the input buffer
The following process is performed in which 48-bit data (new fixed-length compressed data) is generated and written to the output buffer according to an algorithm corresponding to the value of the bit attribute information ATR. (A) When the attribute information ATR is “00”, the average value index LA = 00h, the gradation width index LD = 0h, and the code information = 00
48h data of 00h is generated. (B) When the attribute information ATR is “01”, the average value index LA = ffh, the gradation width index LD = 0h, and the code information = 00.
48h data of 00h is generated. (C) When the attribute information ATR is "10", the 8-bit data F1h following the 2-bit attribute information is the average value index L
A, this “LA = F1h” and the gradation width index LD =
48-bit data of 0h and code information = 0000h is generated. (D) When the attribute information ATR is “11”, the 48-bit data following the 2-bit attribute information is generated as new fixed-length compressed data.

【0051】次に、上記のように4×4画素当り48ビ
ットの符号データ(GBTC圧縮データ)に復号された
データは、図11の上段に示すように、平均値指標L
A、階調幅指標LD、及び1画素当り2ビット(4×4
画素当り32ビット)の量子化符号に基づいて逆変換さ
れる。即ち、各画素毎に、該画素の2ビットの量子化符
号の値に応じて下記(11)〜(14)の何れかが選択
され、選択された数式に当該画素のLAとLDを代入し
た値が、当該画素のデータ値として選択されて出力され
る。
Next, the data decoded to the code data (GBTC compressed data) of 48 bits per 4 × 4 pixel as described above is the average value index L as shown in the upper part of FIG.
A, gradation width index LD, and 2 bits per pixel (4 × 4
The inverse transform is performed based on the quantization code of (32 bits per pixel). That is, for each pixel, one of the following (11) to (14) is selected according to the value of the 2-bit quantization code of the pixel, and the LA and LD of the pixel are substituted into the selected formula. The value is selected and output as the data value of the pixel.

【数5】 (a)LA+LD/2 ・・・・(11) (b)LA+LD/6 ・・・・(12) (c)LA−LD/6 ・・・・(13) (d)LA−LD/2 ・・・・(14) なお、上記の処理は、前述の固定長圧縮処理([2-2] の
項目)の逆変換である。
(A) LA + LD / 2 (11) (b) LA + LD / 6 (12) (c) LA-LD / 6 (13) (d) LA- LD / 2 (14) The above processing is an inverse transformation of the fixed-length compression processing (item [2-2]).

【0052】[4-2] 固定長復号(GBTC逆変換):C
PU29から与えられる固定長/可変長切換信号(CO
DESEL)が1の場合は、固定長圧縮のみにより圧縮
された符号がフレームメモリ22に格納されている場合
であり、本例ではA4サイズ以下の原稿の場合である。
この場合は、まず、図10内の下欄に示すCODESE
L=1の場合の処理が選択される。換言すれば、16ビ
ットのデータバスから入力するストリームから、48ビ
ットの符号データ(4×4画素の1ブロック分のデー
タ)を切り出す『16to48変換部』の出力が、選択
部によって選択される。
[4-2] Fixed-length decoding (GBTC inverse conversion): C
Fixed length / variable length switching signal (CO
When DESEL) is 1, the code compressed only by the fixed length compression is stored in the frame memory 22, and in this example, it is the case of an original of A4 size or less.
In this case, first, the CODESE shown in the lower column of FIG.
The process when L = 1 is selected. In other words, the output of the “16 to 48 conversion unit” that cuts out 48-bit code data (data of one block of 4 × 4 pixels) from the stream input from the 16-bit data bus is selected by the selection unit.

【0053】次に、上記の処理により得られた4×4画
素当り48ビットの符号データ(GBTC圧縮データ)
が、上述の可変長コード化伸長後の48ビットデータの
場合と同様に、固定長復号される。つまり、平均値指標
LA、階調幅指標LD、及び1画素当り2ビット(4×
4画素当り32ビット)の量子化符号に基づいて、図1
1の上段に示す処理に従って、画像データが再生され
る。換言すれば、各画素毎に、該画素の2ビットの量子
化符号の値に応じて前記(11)〜(14)の何れかを
選択し、選択した数式に当該画素のLAとLDを代入し
た値を、当該画素のデータ値として選択して出力する処
理が実行される。
Next, 48 bits of coded data (GBTC compressed data) per 4.times.4 pixel obtained by the above processing.
Are fixed-length decoded as in the case of the above-described 48-bit data after variable-length code expansion. That is, the average value index LA, the gradation width index LD, and 2 bits (4 ×
1 based on a quantization code of 32 bits per 4 pixels).
1, the image data is reproduced. In other words, for each pixel, one of the above (11) to (14) is selected according to the value of the 2-bit quantization code of the pixel, and the LA and LD of the pixel are substituted into the selected mathematical expression. A process of selecting and outputting the value obtained as the data value of the pixel is executed.

【0054】[4-3] 水増し(解像度逆変換):CPU2
9から与えられる低解像度データ選択信号が1の場合、
つまり、メモリオーバーフラグが1にセットされている
場合には、低解像度に変換された画像データがフレーム
メモリ22に格納されている場合であり、例えば、A3
サイズの写真原稿の場合である。この場合は、まず、1
6ビットのデータバスから入力するストリームから32
ビットの低解像度画像データ(4×4画素の1ブロック
分の低解像度画像データ)を切り出す『16to32変
換部』の出力が、選択部によって選択される。
[4-3] Inflated (Reverse resolution conversion): CPU2
When the low-resolution data selection signal given from 9 is 1,
In other words, when the memory over flag is set to 1, it means that the image data converted to a low resolution is stored in the frame memory 22.
This is the case of a photo manuscript of a size. In this case, first
32 from the stream input from the 6-bit data bus
The output of the “16 to 32 conversion unit” that cuts out low-resolution image data of bits (low-resolution image data of one block of 4 × 4 pixels) is selected by the selection unit.

【0055】次に、上記の処理により得られた4×4画
素当り32ビットの低解像度画像データを128ビット
の画像データに水増しする処理が、水増し部273によ
り、図11の下段に示すように実行される。即ち、低解
像度データは、4×4画素を2×2画素づつの4個の小
領域に区分して各小領域毎に平均値を求めて各小領域の
画像データとしたものであるが、この平均値を、当該2
×2画素小領域を構成する各画素の画像データとして採
用するように処理される。図11の例では、左上隅の2
×2画素の平均値は『A0(8ビット)』であるが、こ
の『A0(8ビット)』が、当該2×2画素を構成する
4個の画素のデータ値とされる。
Next, the process of inflating the low-resolution image data of 32 bits per 4 × 4 pixel obtained by the above process to the image data of 128 bits is performed by the inflating section 273 as shown in the lower part of FIG. Be executed. That is, the low-resolution data is obtained by dividing 4 × 4 pixels into four small areas of 2 × 2 pixels and calculating an average value for each small area to obtain image data of each small area. This average value is calculated as
The processing is performed so as to be adopted as image data of each pixel constituting the × 2 pixel small area. In the example of FIG.
The average value of the × 2 pixels is “A0 (8 bits)”, and the “A0 (8 bits)” is the data value of the four pixels that constitute the 2 × 2 pixels.

【0056】こうして得られたデータ値、又は、前述の
ようにGBTC復号されて得られたデータ値の何れか
が、選択部により選択されて出力される。この選択は、
低解像度データ選択信号の値に応じて行われる。
Either the data value thus obtained or the data value obtained by GBTC decoding as described above is selected and output by the selection unit. This choice is
This is performed according to the value of the low resolution data selection signal.

【0057】〔5〕処理手順:図14と図15は、以上
に述べた各処理の手順を、まとめて示すフローチャート
である。例えば、原稿サイズがA4以下であれば(S0
1:NO)、GBTC圧縮のみで圧縮した符号がフレー
ムメモリ22に書き込まれる(S43)。原稿サイズが
A4より大きい場合には、低解像度で属性計数が種別毎
に計数され(S03〜S09)、計数結果に基づいて通
常の解像度での総符号量がフレームメモリ22の記憶容
量で記憶可能か否か判定され、記憶不可能な場合にはメ
モリオーバーフラグが1にセットされる(S11)。
[5] Processing Procedure: FIGS. 14 and 15 are flowcharts collectively showing the procedure of each processing described above. For example, if the document size is A4 or smaller (S0
1: NO), the code compressed only by the GBTC compression is written to the frame memory 22 (S43). When the document size is larger than A4, the attribute count is counted for each type at a low resolution (S03 to S09), and the total code amount at a normal resolution can be stored in the storage capacity of the frame memory 22 based on the count result. It is determined whether or not the memory is over, and if the storage is not possible, the memory over flag is set to 1 (S11).

【0058】また、メモリオーバーフラグが1にセット
されると(S21:YES)、低解像度で読み込まれた
画像データがフレームメモリ22に記憶される(S3
5)。一方、メモリオーバーフラグが0の場合は(S2
1:NO)、固定長圧縮(GBTC圧縮)後に更に可変
長コード化圧縮されたデータがフレームメモリ22に記
憶される(S25)。
When the memory over flag is set to 1 (S21: YES), the image data read at a low resolution is stored in the frame memory 22 (S3).
5). On the other hand, when the memory over flag is 0 (S2
1: NO), and after the fixed length compression (GBTC compression), the data further subjected to variable length coding and compression is stored in the frame memory 22 (S25).

【0059】[0059]

【発明の効果】本発明では、圧縮符号化した画像データ
の全てをメモリに格納できる否かをメモリへの格納以前
に判定できるため、格納不可能と判定された場合には、
データ量を更に削減する圧縮方式等に切り換える等する
ことができ、必要な画像データの全てをメモリに格納し
て処理を進めることができる。また、メモリオーバーに
より画像印字が途中でとまり、画像全体を印字すること
ができないということが無いため、ユーザに不快感を与
えることがない。さらに、メモリオーバーになるような
可変長コード化による圧縮効果の少ない画像は、大きな
階調差を持つブロックが多い写真画像のような場合であ
り、本発明においては、その場合にのみ解像度を低下さ
せる。そのため、大きな階調差を持つブロックが少ない
文字画像は、解像度を落とさない。よって、文字画像は
解像度を、写真画像は階調性を保持することができ、画
像品質を維持することができる。一方、可変長コード化
時における属性判別結果を計数することにより、メモリ
オーバーするか否かを容易に知ることができ、メモリオ
ーバーを判定する回路の簡素化が容易になる。
According to the present invention, it is possible to determine whether or not all of the compression-encoded image data can be stored in the memory before storing the data in the memory.
It is possible to switch to a compression method or the like that further reduces the data amount, and it is possible to store all necessary image data in a memory and proceed with the processing. Further, since the image printing does not stop halfway due to the memory over and it is not possible to print the entire image, the user does not feel uncomfortable. Further, an image having a small compression effect due to variable length coding that causes memory over is a photographic image having many blocks having a large gradation difference, and in the present invention, the resolution is reduced only in that case. Let it. Therefore, the resolution of a character image having few blocks having a large gradation difference does not decrease. Therefore, the character image can maintain the resolution, and the photographic image can maintain the gradation, and the image quality can be maintained. On the other hand, by counting the attribute determination result at the time of variable length coding, it is possible to easily know whether or not the memory is over, and it is easy to simplify the circuit for determining the memory over.

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

【図1】本発明の構成例を示すブロック図。FIG. 1 is a block diagram showing a configuration example of the present invention.

【図2】実施の形態の画像処理装置が搭載される画像形
成装置のシステム構成図。
FIG. 2 is a system configuration diagram of an image forming apparatus in which the image processing apparatus according to the embodiment is mounted.

【図3】実施の形態の画像処理装置を示すブロック図。FIG. 3 is a block diagram illustrating the image processing apparatus according to the embodiment;

【図4】図3の符号化部21を主に示すブロック図。FIG. 4 is a block diagram mainly showing an encoding unit 21 of FIG. 3;

【図5】図4の固定長圧縮部211を示すブロック図。FIG. 5 is a block diagram showing a fixed length compression unit 211 of FIG. 4;

【図6】図4の解像度変換部218を示すブロック図。FIG. 6 is a block diagram showing a resolution converter 218 in FIG. 4;

【図7】図4の属性判別部212と可変長コード化圧縮
部215を主に説明するブロック図。
FIG. 7 is a block diagram mainly illustrating an attribute determining unit 212 and a variable-length coding / compressing unit 215 of FIG. 4;

【図8】固定長圧縮と可変長コード化圧縮の説明図。FIG. 8 is an explanatory diagram of fixed-length compression and variable-length coded compression.

【図9】図3の固定長データ変換部25と600dpi
スキュー補正部27を説明するブロック図。
FIG. 9 shows a fixed-length data converter 25 and 600 dpi of FIG.
FIG. 3 is a block diagram illustrating a skew correction unit 27.

【図10】図9の可変長コード化伸長部255での処理
の原理を示す説明図。
FIG. 10 is an explanatory diagram showing the principle of processing in the variable-length encoding / decompression unit 255 of FIG. 9;

【図11】図9の固定長圧縮からの伸長部271と水増
し部273を示すブロック図。
FIG. 11 is a block diagram showing an extension part 271 and a padding part 273 from the fixed length compression in FIG. 9;

【図12】フレームメモリ22内の各アドレスに格納さ
れるデータ構成を示す説明図。
FIG. 12 is an explanatory diagram showing a data configuration stored at each address in a frame memory 22.

【図13】0度回転(ノーマル)時と90度回転時のフ
レームメモリ22からの読み出し順序を示す説明図。
FIG. 13 is an explanatory diagram showing a reading order from the frame memory 22 at the time of 0-degree rotation (normal) and at the time of 90-degree rotation.

【図14】実施の形態の装置の制御手順を示すフローチ
ャートの一部。
FIG. 14 is a part of a flowchart showing a control procedure of the apparatus according to the embodiment;

【図15】実施の形態の装置の制御手順を示すフローチ
ャートの残部。
FIG. 15 is the remaining part of the flowchart showing the control procedure of the apparatus according to the embodiment.

【図16】従来の画像処理装置でのメモリオーバの場合
を示す第1の例。
FIG. 16 is a first example showing a case of memory over in a conventional image processing apparatus.

【図17】従来の画像処理装置でのメモリオーバの場合
を示す第2の例。
FIG. 17 is a second example showing a case of memory over in a conventional image processing apparatus.

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

211 固定長圧縮部 212 属性判別部 215 可変長コード化圧縮部 216 属性計数部 218 解像度変換部 25 固定長データ変換部(可変長コード化伸長部) 211 Fixed length compression unit 212 Attribute discrimination unit 215 Variable length coding compression unit 216 Attribute counting unit 218 Resolution conversion unit 25 Fixed length data conversion unit (Variable length coding expansion unit)

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 画像データをメモリに記憶し、メモリに
記憶した画像データを読み出してプリント用データを生
成する画像処理装置であって、 画像データから切り出した所定数の画素から成るブロッ
クの画像特性を示す属性情報を各ブロック毎に決定する
属性決定手段と、 各ブロックの画像データを属性情報の種別によって決ま
るビット数の符号に変換する圧縮符号化手段と、 属性情報をその種別毎に計数する属性計数手段と、 属性情報の種別毎の計数結果に基づいて総符号量がメモ
リに格納可能な量か否かを判定する符号量判定手段と、 画像データの解像度を切り換える解像度切換手段と、 総符号量がメモリに格納可能な量の場合は前記圧縮符号
化手段により変換した符号をメモリに記憶し、総符号量
がメモリに格納不可能な量の場合は前記解像度切換手段
により低解像度に切り換えた画像データ又はその圧縮符
号をメモリに記憶する選択記憶手段と、 を有することを特徴とする画像処理装置。
1. An image processing apparatus which stores image data in a memory, reads out the image data stored in the memory, and generates print data, comprising: Attribute determining means for determining, for each block, attribute information indicating the image data; compression encoding means for converting image data of each block into a code having a bit number determined by the type of attribute information; and counting attribute information for each type. Attribute counting means; code amount determining means for determining whether or not the total code amount is an amount that can be stored in the memory based on the counting result for each type of attribute information; resolution switching means for switching the resolution of image data; If the code amount is an amount that can be stored in the memory, the code converted by the compression encoding unit is stored in the memory, and if the total code amount is an amount that cannot be stored in the memory, An image processing apparatus comprising: a selection storage unit that stores, in a memory, image data or a compression code thereof switched to a low resolution by the resolution switching unit.
【請求項2】 画像データをメモリに記憶し、メモリに
記憶した画像データを読み出して出力用のデータを生成
する画像処理装置であって、 画像データから切り出した所定数の画素から成るブロッ
クの画像特性を示す属性情報を各ブロック毎に決定する
属性決定手段と、 各ブロックの画像データを属性情報の種別によって決ま
るビット数の符号に変換する第1の圧縮符号化手段と、 第1の圧縮符号化手段とは異なる圧縮方式により画像デ
ータを符号化する第2の圧縮符号化手段と、 属性情報をその種別毎に計数する属性計数手段と、 属性情報の種別毎の計数結果に基づいて総符号量がメモ
リに格納可能な量か否かを判定する符号量判定手段と、 総符号量がメモリに格納可能な量の場合は前記第1の圧
縮符号化手段により変換した符号をメモリに記憶し、総
符号量がメモリに格納不可能な量の場合は前記第1の圧
縮符号化手段により符号化した後に更に前記第2の圧縮
符号化手段により符号化した符号をメモリに記憶する選
択記憶手段と、 を有することを特徴とする画像処理装置。
2. An image processing apparatus for storing image data in a memory, reading out the image data stored in the memory and generating data for output, comprising: an image of a block including a predetermined number of pixels cut out from the image data Attribute determining means for determining attribute information indicating characteristics for each block; first compression encoding means for converting image data of each block into a code having a bit number determined by the type of attribute information; first compression code Second encoding means for encoding image data by a compression method different from the encoding means, attribute counting means for counting attribute information for each type, and total code based on a counting result for each type of attribute information. Code amount determining means for determining whether the amount is an amount storable in the memory; and, if the total code amount is an amount storable in the memory, the code converted by the first compression encoding means is recorded. If the total code amount is an amount that cannot be stored in the memory, the code encoded by the first compression encoding unit is further stored in the memory after encoding by the first compression encoding unit. An image processing apparatus comprising:
【請求項3】 画像データをメモリに記憶し、メモリに
記憶した画像データを読み出して出力用のデータを生成
する画像処理装置であって、 画像データから切り出した所定数の画素から成るブロッ
クの画像特性を示す属性情報を各ブロック毎に決定する
属性決定手段と、 各ブロックの画像データを属性情報の種別によって決ま
るビット数の符号に変換する圧縮符号化手段と、 属性情報をその種別毎に計数する属性計数手段と、 属性情報の種別毎の計数結果に基づいて総符号量がメモ
リに格納可能な量か否かを判定する符号量判定手段と、 判定結果に応じて画像データの処理方式を切り換える切
換手段と、 を有することを特徴とする画像処理装置。
3. An image processing apparatus for storing image data in a memory, reading out the image data stored in the memory and generating data for output, comprising: an image of a block including a predetermined number of pixels cut out from the image data Attribute determining means for determining attribute information indicating characteristics for each block; compression encoding means for converting image data of each block into a code of a bit number determined by the type of attribute information; counting attribute information for each type Attribute counting means, code amount determining means for determining whether or not the total code amount is an amount that can be stored in the memory based on the counting result for each type of attribute information, and a method for processing image data according to the determination result. An image processing apparatus, comprising: switching means for switching.
【請求項4】 請求項1〜請求項3の何れかに於いて、 属性決定手段は、属性計数手段での計数用の属性情報を
決定する場合には低解像度の画像データに基づいて各ブ
ロックの属性情報を決定する、 ことを特徴とする画像処理装置。
4. An attribute determining means according to claim 1, wherein said attribute determining means determines each attribute based on low-resolution image data when determining attribute information for counting by said attribute counting means. Determining the attribute information of the image processing apparatus.
【請求項5】 請求項1〜請求項4の何れかに於いて、 属性決定手段は、属性計数手段での計数用の属性情報を
決定する場合にはプレスキャンの画像データに基づいて
各ブロックの属性情報を決定する、 ことを特徴とする画像処理装置。
5. The attribute determining means according to claim 1, wherein the attribute determining means determines the attribute information for counting by the attribute counting means based on the image data of the prescan. Determining the attribute information of the image processing apparatus.
JP11045125A 1999-02-23 1999-02-23 Image processor Pending JP2000244746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11045125A JP2000244746A (en) 1999-02-23 1999-02-23 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11045125A JP2000244746A (en) 1999-02-23 1999-02-23 Image processor

Publications (1)

Publication Number Publication Date
JP2000244746A true JP2000244746A (en) 2000-09-08

Family

ID=12710558

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11045125A Pending JP2000244746A (en) 1999-02-23 1999-02-23 Image processor

Country Status (1)

Country Link
JP (1) JP2000244746A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007300165A (en) * 2006-04-27 2007-11-15 Ricoh Co Ltd Image processing apparatus and image processing method
JP2017200041A (en) * 2016-04-27 2017-11-02 京セラドキュメントソリューションズ株式会社 Image formation apparatus and image formation method
JP2019121882A (en) * 2017-12-28 2019-07-22 株式会社リコー Asic and image formation apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007300165A (en) * 2006-04-27 2007-11-15 Ricoh Co Ltd Image processing apparatus and image processing method
JP2017200041A (en) * 2016-04-27 2017-11-02 京セラドキュメントソリューションズ株式会社 Image formation apparatus and image formation method
JP2019121882A (en) * 2017-12-28 2019-07-22 株式会社リコー Asic and image formation apparatus

Similar Documents

Publication Publication Date Title
US20100103435A1 (en) Image processing apparatus and image processing method for processing screen-processed image
JP4280404B2 (en) Image processing apparatus and method
JP3736185B2 (en) Image processing device
JP3332398B2 (en) Image processing apparatus and image processing method
US6798534B1 (en) Image processing device
JP3896776B2 (en) Image data encoding apparatus, image data encoding method, image forming apparatus, and recording medium
JP2007158798A (en) Image processing apparatus and image forming apparatus
JP2011040970A (en) Data processing apparatus and data processing method
JP2000244746A (en) Image processor
JP3375992B2 (en) Image processing apparatus and method
JP2008023959A (en) Image processor, image processing method and program
JP2000287087A (en) Image processing unit
JPH04314183A (en) Image processing device
JP3147250B2 (en) Image processing device
JP2000287088A (en) Image processor and image processing method
JP3880248B2 (en) Image processing apparatus, image processing method, and storage medium
JP2000059625A (en) Image processor
JP2005101775A (en) Image processing apparatus and image data compression method
JP3769998B2 (en) Image processing device
JPH10243237A (en) Image output device
JP2003169221A (en) Color image forming apparatus and color image processing method
JP2001045246A (en) Image forming device
JP3175169B2 (en) Buffer memory switching method of recording device
JP2006231854A (en) Image formation device and its controlling method
JPH10173914A (en) Image forming device

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20050614