JP3463643B2 - Compression device, compression method, recording medium recording compression method, printer - Google Patents

Compression device, compression method, recording medium recording compression method, printer

Info

Publication number
JP3463643B2
JP3463643B2 JP2000019275A JP2000019275A JP3463643B2 JP 3463643 B2 JP3463643 B2 JP 3463643B2 JP 2000019275 A JP2000019275 A JP 2000019275A JP 2000019275 A JP2000019275 A JP 2000019275A JP 3463643 B2 JP3463643 B2 JP 3463643B2
Authority
JP
Japan
Prior art keywords
compression
image data
dots
code data
data
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
Application number
JP2000019275A
Other languages
Japanese (ja)
Other versions
JP2001211317A (en
Inventor
到明 森田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2000019275A priority Critical patent/JP3463643B2/en
Publication of JP2001211317A publication Critical patent/JP2001211317A/en
Application granted granted Critical
Publication of JP3463643B2 publication Critical patent/JP3463643B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Image Processing (AREA)
  • Storing Facsimile Image Data (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明はバンド毎に画像デー
タを圧縮する機能をもつ電子写真プリンタに関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electrophotographic printer having a function of compressing image data for each band.

【0002】[0002]

【従来の技術】近年、電子写真プリンタは印字出力を美
しく見せるために解像度を上げており、現在では通常で
600dpi600ドット/インチ、高画質で1200
dpi、2400dpiの解像度が必要になっている。
このため、画像展開処理に大きなメモリ空間が必要であ
る。しかし、電子写真プリンタは低価格化が進み、高価
なメモリを大量に搭載できない。このため、何らかの圧
縮技術によりメモリ容量を減らさなければならない状況
にある。
2. Description of the Related Art In recent years, electrophotographic printers have been increasing in resolution in order to make printed output look beautiful. Currently, the resolution is normally 600 dpi 600 dots / inch, and high image quality is 1200.
A resolution of 2400 dpi is required for the dpi.
Therefore, a large memory space is required for the image expansion processing. However, the price of the electrophotographic printer has been reduced, and a large amount of expensive memory cannot be installed. Therefore, there is a situation where the memory capacity must be reduced by some compression technique.

【0003】プリンタで使用される圧縮技術は2値デー
タであるならば、MH、MR、JBIGなどまた多値デ
ータではJPEGなどが用いられる。また独自のアルゴ
リズムで行う場合もある。しかし、ほとんどの圧縮技術
では、圧縮率画像特性に依存するため、バンド毎に圧縮
処理を行った後、符号データのサイズを確認しまたは予
測し、メモリ空間が不足しそうな場合は、ユーザーに対
してメモリ拡張を要求するか、圧縮率が良いが復元性の
悪い圧縮アルゴリズムを用いるか、解像度を落とすなど
の処理を行わなければならない。
If the compression technique used in the printer is binary data, MH, MR, JBIG, etc., and JPEG, etc. are used for multi-valued data. It may also be performed by an original algorithm. However, since most compression techniques depend on the compression ratio image characteristics, after performing compression processing for each band, the size of code data is confirmed or predicted, and if the memory space is likely to run short, the user is informed. Must request memory expansion, use a compression algorithm with a good compression rate but poor recoverability, or reduce the resolution.

【0004】図13は、特開平09−093425号公
報「画像形成装置」での圧縮方法の動作を示すフローチ
ャートである。特開平09−093425号公報「画像
形成装置」では、元画像を圧縮処理し、符号データが所
定の大きさを越えた場合、一旦(いったん)圧縮データ
を破棄し、元画像の解像度を落とし間引き処理し、再描
画を行い、圧縮処理をおこなうことでメモリ容量の節約
を実現している。
FIG. 13 is a flowchart showing the operation of the compression method in the "image forming apparatus" of Japanese Patent Laid-Open No. 09-093425. In the "image forming apparatus", the original image is compressed, and when the code data exceeds a predetermined size, the compressed data is once (temporarily) discarded, the resolution of the original image is reduced, and the thinning is performed. The memory capacity is saved by processing, redrawing, and compressing.

【0005】[0005]

【発明が解決しようとする課題】ほとんどの圧縮技術で
は、圧縮率画像特性に依存するため、バンド毎に圧縮処
理を行い符号データ長を確認して判定すると、1ページ
のなかには符号データ長が期待していたデータサイズよ
り大きくなってしまうバンドが発生する可能性がある、
という問題がある。
Since most compression techniques depend on the image characteristics of the compression ratio, if the compression process is performed for each band and the code data length is confirmed and judged, the code data length is expected in one page. There is a possibility that a band that becomes larger than the data size that you were
There is a problem.

【0006】さらに、1ページの途中まで圧縮した時点
で、このままの圧縮率ではメモリ空間がオーバーしそう
だと判断した場合は、今まで圧縮したデータを、符号デ
ータ長が期待していたデータサイズより小さくすんだバ
ンドを含めて一旦(いったん)伸長、または再描画を行
って元の画像データに戻し、解像度変換間引きを行って
から再び圧縮処理を行わなければならない、という問題
がある。
Further, when it is judged that the memory space is likely to be over with the compression ratio as it is at the time of compressing a page halfway, the data compressed up to now is compared with the data size expected by the code data length. There is a problem that it is necessary to perform (temporary) expansion or redrawing including the small band to restore the original image data, perform resolution conversion thinning, and then perform compression processing again.

【0007】図14は、特開平09−093425号公
報「画像形成装置」での圧縮方法の処理時間をあらわす
図である。期待した圧縮率が得られなかった場合は、一
旦(いったん)伸長または再描画後、再度圧縮処理が発
生するため、装置の速度パフォーマンスが低下するとい
う問題がある。
FIG. 14 is a diagram showing the processing time of the compression method in the "image forming apparatus" of Japanese Patent Laid-Open No. 09-093425. If the expected compression ratio is not obtained, there is a problem in that the speed performance of the device is reduced because the compression process occurs once (once) after decompression or redrawing.

【0008】本発明の主な目的は圧縮後のデータサイズ
が期待していたデータサイズより大きくなった場合に行
う間引き処理に必要な時間を短縮させることにある。
A main object of the present invention is to shorten the time required for the thinning process performed when the data size after compression becomes larger than the expected data size.

【0009】[0009]

【課題を解決するための手段】本発明第一の圧縮装置
は、プリンタに用いられ画像データを圧縮し印字時に伸
長を行う圧縮装置において、圧縮を行う前記画像データ
入力用の入力FIFOと、画像データに間引き処理を行
い、奇数ドットと偶数ドットに前記画像データを分割す
る間引き処理部と、前記奇数ドットの前記画像データを
圧縮する第一の圧縮処理部と、前記奇数ドットの符号デ
ータを一時格納する第一の出力FIFO、前記偶数ドッ
トの前記画像データを圧縮する第二の圧縮処理部と、前
記偶数ドットの前記符号データを一時格納する第二の出
力FIFOと、伸長する際、前記奇数ドットの前記符号
データを一時格納する第一の入力FIFOと、前記奇数
ドット分の前記符号データの伸長を行う第一の伸長処理
部と、前記偶数ドットの符号データを一時格納する第二
の入力FIFOと、前記偶数ドット分の符号データの伸
長を行う第二の伸長処理部と、前記奇数ドットの伸長結
果と前記偶数ドットの伸長結果を合成するデータ合成部
と、伸長して合成した前記画像データを一時保管する出
力FIFOから構成する。
The first compression device of the present invention.
Is used in printers to compress image data and expand it during printing.
The image data to be compressed in a compression device that performs compression
Input FIFO for input and thinning processing for image data
Divide the image data into odd dots and even dots.
And the image data of the odd-numbered dots
The first compression processing unit for compression and the odd-numbered dot code data
First output FIFO for temporarily storing data
A second compression processing unit for compressing the image data of
The second output that temporarily stores the code data of even-numbered dots
Force FIFO and the sign of the odd dots when decompressing
A first input FIFO for temporarily storing data and the odd number
First decompression process for decompressing the code data for dots
Part and the second data for temporarily storing the code data of the even dots
Input FIFO and the extension of the code data for the even dots.
The second extension processing unit that performs the
A data synthesizing unit for synthesizing the result of the expansion of the even dot
And temporarily store the expanded and combined image data.
Power FIFO.

【0010】[0010]

【0011】[0011]

【0012】[0012]

【0013】[0013]

【0014】本発明のプリンタは、上位装置との接続を
制御するインタフェース部とプリントを実行するプリン
トエンジンと本発明第一の圧縮装置を有する。
The printer of the present invention has an interface section for controlling connection with a host device, a print engine for executing printing, and the first compression apparatus of the present invention.

【0015】本発明の圧縮方法は、プリンタに用いられ
画像データを圧縮し印字時に伸長を行う圧縮方法であっ
て、イメージデータをメモリ上に描画する第一のステッ
プと、メモリ上に描画されたイメージデータを奇数ドッ
ト成分と偶数ドット成分に分割する第二のステップと、
圧縮した符号データは奇数ドット成分と偶数ドット成分
それぞれ別の領域に格納しておく第三のステップと、1
バンド目の処理が終了すると、画像データ格納領域に展
開していた1バンド目のメモリ空間を開放する第四のス
テップと、その領域で次の描画展開が行えるようにして
おく第五のステップと、符号データ格納領域を確認し、
このまま圧縮処理を続けられるだけの空き空間があるか
確認をする第六のステップと、2バンド目以降につい
て、1バンド目と同様に圧縮を行う第七のステップと、
各バンド毎に符号データを格納するための空きメモリ空
間の確認を行った際、もし、メモリ空間がオーバーする
可能性があると判断した場合は、偶数ドット成分の符号
データを破棄する第八のステップと、元イメージを描画
し再度奇数どドットラインの圧縮処理を行う第九のステ
ップと、第一乃至第九のステップを1ページに渡って行
う第十のステップから構成される。
The compression method of the present invention is a compression method used in a printer for compressing image data and decompressing it at the time of printing, and the first step of drawing the image data on the memory and the drawing on the memory. A second step of dividing the image data into odd dot components and even dot components,
The compressed code data is stored in different areas for the odd dot component and the even dot component respectively.
When the processing of the band is completed, a fourth step of releasing the memory space of the first band, which has been expanded in the image data storage area, and a fifth step of allowing the next drawing expansion to be performed in that area , Check the code data storage area,
A sixth step of confirming whether there is a free space for continuing the compression process as it is, and a seventh step of compressing the second and subsequent bands in the same manner as the first band,
When checking the free memory space for storing the code data for each band, if it is determined that the memory space may be over, discard the code data of the even dot components It is composed of a step, a ninth step of drawing the original image and performing compression processing of the odd dot lines again, and a tenth step of performing the first to ninth steps over one page.

【0016】本発明のコンピュータ読み取り可能な記録
媒体は、本発明の圧縮方法の第一乃至第十のステップを
制御用マイクロプロセッサに実行させるプログラムを記
録した。
The computer-readable recording medium of the present invention has recorded therein a program for causing a control microprocessor to execute the first to tenth steps of the compression method of the present invention.

【0017】[0017]

【発明の実施の形態】本発明の上記および他の目的、特
徴および利点を明確にすべく、以下添付した図面を参照
しながら、本発明の実施の形態につき詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION To clarify the above and other objects, features and advantages of the present invention, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

【0018】図1は、本発明第一の実施の形態の圧縮装
置の構成を示すブロック図である。圧縮装置は、圧縮を
行う画像データ入力用の入力FIFO101、画像デー
タに間引き処理を行い、奇数ドットと偶数ドットに画像
データを分割する間引き処理部102、奇数ドット画像
データを圧縮する圧縮処理部103、奇数ドットの符号
データを一時格納する出力FIFO104、偶数ドット
画像データを圧縮する圧縮処理部105、偶数ドットの
符号データを一時格納する出力FIFO106、また、
伸長する際、奇数ドットの符号データを一時格納する入
力FIFO107、奇数ドット分の符号データの伸長を
行う伸長処理部108、偶数ドットの符号データを一時
格納する入力FIFO109、偶数ドット分の符号デー
タの伸長を行う伸長処理部110、奇数ドットの伸長結
果と偶数ドットの伸長結果を合成するデータ合成部11
1、および、伸長して合成した画像データを一時保管す
る出力FIFO112とで構成する。
FIG. 1 is a block diagram showing the structure of a compression apparatus according to the first embodiment of the present invention. The compression device includes an input FIFO 101 for inputting image data to be compressed, a thinning processing unit 102 that performs thinning processing on the image data and divides the image data into odd dots and even dots, and a compression processing unit 103 that compresses the odd dot image data. , An output FIFO 104 for temporarily storing code data of odd dots, a compression processing unit 105 for compressing image data of even dots, an output FIFO 106 for temporarily storing code data of even dots,
At the time of decompression, an input FIFO 107 for temporarily storing code data of odd dots, a decompression processing unit 108 for decompressing code data of odd dots, an input FIFO 109 for temporarily storing code data of even dots, and a code data of even dots. A decompression processing unit 110 for decompressing, a data synthesizing unit 11 for synthesizing a decompression result of odd dots and a decompression result of even dots.
1 and an output FIFO 112 for temporarily storing the expanded and combined image data.

【0019】また他に、入出力データバス制御部、割り
込み制御部、内部タイミング制御部、入出力データ転送
をDMAで行う場合はDMAコントローラ等も必要にな
るが、これらは図および説明の簡略化のためここでは省
略する。ここで採用する圧縮アルゴリズムは特に規定し
ない。ただし、圧縮対象となる画像データの特性により
圧縮率が変動する,つまり固定符号長ではない圧縮アル
ゴリズムであり、2値圧縮アルゴリズムだけでなく多値
圧縮アルゴリズムも含んでいる。
Besides, an input / output data bus control unit, an interrupt control unit, an internal timing control unit, and a DMA controller or the like are required when the input / output data transfer is performed by DMA, but these are simplified in the drawing and description. Therefore, it is omitted here. The compression algorithm adopted here is not specified. However, the compression rate varies depending on the characteristics of the image data to be compressed, that is, the compression algorithm is not a fixed code length, and includes not only the binary compression algorithm but also the multi-value compression algorithm.

【0020】次に、本実施の形態の動作につき説明す
る。
Next, the operation of this embodiment will be described.

【0021】まず、圧縮時の動作について図2と図3を
用いて説明する。図2は、本発明第一の実施の形態の圧
縮方法の動作を示すフローチャートである。図3は、本
発明第一の実施の形態の圧縮時の画像データと符号デー
タ格納部のデータの流れを示す図である。
First, the operation at the time of compression will be described with reference to FIGS. FIG. 2 is a flowchart showing the operation of the compression method according to the first embodiment of the present invention. FIG. 3 is a diagram showing a data flow of image data and a code data storage unit at the time of compression according to the first embodiment of the present invention.

【0022】イメージデータをメモリ上に描画する(ス
テップA−1)。メモリ上に描画されたイメージデータ
は間引き処理部102で奇数ドット成分と偶数ドット成
分に分割され、奇数ドット成分は圧縮処理部103、偶
数ドット成分は圧縮処理部105に送られ、それぞれ並
列に圧縮処理される(ステップA−2、A−3)。圧縮
した符号データは奇数ドット成分と偶数ドット成分それ
ぞれ別の領域に格納しておく(ステップBー1)。1バ
ンド目の処理が終了すると、画像データ格納領域に展開
していた1バンド目のメモリ空間を開放し、その領域で
次の描画展開が行えるようにしておく(ステップA−
4)。また、符号データ格納領域を確認し、このまま圧
縮処理を続けられるだけの空き空間があるか確認をする
(ステップA−5)。2バンド目以降は1バンド目と同
様に圧縮を行う(ステップBー2とB−3)。各バンド
毎に符号データを格納するための空きメモリ空間の確認
を行った際、もし、メモリ空間がオーバーする可能性が
あると判断した場合は、偶数ドット成分の符号データ破
棄する(ステップA−6)し、元イメージを描画し(ス
テップA−7)再度奇数ドットラインの圧縮処理を行う
(ステップA−8)。以上の処理を1ページに渡って行
う(ステップA−9とAー10)これにより、メモリ空
間を確保する。このとき、奇数ドット成分の符号データ
は残るので、元画像を間引いて圧縮したものと一致する
(ステップB−4)。
The image data is drawn on the memory (step A-1). The image data drawn on the memory is divided into an odd dot component and an even dot component by the thinning processing unit 102, the odd dot component is sent to the compression processing unit 103, and the even dot component is sent to the compression processing unit 105, respectively compressed in parallel. It is processed (steps A-2 and A-3). The compressed code data is stored in different areas for the odd dot components and the even dot components (step B-1). When the processing of the first band is completed, the memory space of the first band that has been expanded in the image data storage area is released so that the next drawing expansion can be performed in that area (step A-
4). Further, the code data storage area is confirmed, and it is confirmed whether or not there is a free space enough to continue the compression process (step A-5). After the second band, compression is performed in the same manner as the first band (steps B-2 and B-3). When the empty memory space for storing the code data is confirmed for each band, if it is determined that the memory space may be exceeded, the code data of the even dot component is discarded (step A- 6) Then, the original image is drawn (step A-7), and the odd dot line compression processing is performed again (step A-8). The above processing is performed over one page (steps A-9 and A-10), whereby the memory space is secured. At this time, since the code data of the odd-numbered dot component remains, it coincides with the data obtained by thinning and compressing the original image (step B-4).

【0023】図4は、本発明第一の実施の形態の圧縮方
法の処理時間をあらわす図である。メモリ空間オーバー
になった時の処理が図14に示す従来技術の処理時間よ
り高速に行える。
FIG. 4 is a diagram showing the processing time of the compression method according to the first embodiment of the present invention. The processing when the memory space is exceeded can be performed faster than the processing time of the conventional technique shown in FIG.

【0024】次に伸長時の動作について説明する。図5
は、本発明第一の実施の形態の伸長時にメモリオーバフ
ローが発生しなかった場合の画像データと符号データ格
納部のデータの流れを示す図である。符号データを伸長
処理部108で符号データ格納領域にある奇数ドット成
分の符号データを伸長し、符号データを伸長処理部11
0で偶数ドット成分の符号データを伸長する。それぞれ
の伸長処理部108、110で伸長した結果はデータ合
成部111で合成し、画像データ格納領域に結果を格納
する(ステップC−1からC−4)。
Next, the operation at the time of expansion will be described. Figure 5
FIG. 6 is a diagram showing a flow of image data and a data in a code data storage unit when a memory overflow does not occur at the time of decompression according to the first embodiment of the present invention. The decompression processing unit 108 decompresses the code data of the odd dot components in the code data storage area, and decompresses the code data.
At 0, the code data of the even dot component is expanded. The results of expansion performed by the expansion processing units 108 and 110 are combined by the data combining unit 111, and the results are stored in the image data storage area (steps C-1 to C-4).

【0025】図6は、本発明第一の実施の形態の伸長時
にメモリオーバフローが発生した場合の画像データと符
号データ格納部のデータの流れを示す図である。奇数成
分の符号データを伸長処理部108に転送し、伸長を行
う(ステップD−1からD−4)。伸長処理部で伸長し
たデータは元画像の2分の1の解像度になっており、そ
のまま画像データ格納領域に転送する。
FIG. 6 is a diagram showing the flow of image data and the data in the code data storage unit when a memory overflow occurs during decompression according to the first embodiment of the present invention. The coded data of the odd-numbered component is transferred to the expansion processing unit 108 and expanded (steps D-1 to D-4). The data decompressed by the decompression processing unit has a resolution half that of the original image and is transferred to the image data storage area as it is.

【0026】以上述べたように、上記の方法でメモリ空
間が足らなかった場合は、解像度が2分の1に、メモリ
が足りた場合は元画像の解像度で伸長が行える。また、
メインメモリ容量が充分でない装置において、1ページ
のあるバンドの圧縮処理を終えた時点で符号データを格
納するメモリ空間が期待した画像の圧縮率が得られない
ためにオーバーしそうだと判断した場合は、圧縮した符
号データの一方を破棄するだけで、間引き処理を簡素化
でき、装置処理速度パフォーマンスを落とさなくて済
む、という効果を有する。
As described above, when the memory space is insufficient by the above method, the decompression can be performed at half the resolution, and when the memory is sufficient, the decompression can be performed at the resolution of the original image. Also,
In a device that does not have enough main memory capacity, when it is determined that the memory space for storing the code data is not able to obtain the expected image compression rate at the time when the compression process for a band of one page is completed, By only discarding one of the compressed code data, the thinning process can be simplified and the device processing speed performance does not have to be reduced.

【0027】次に本発明の第二の実施の形態の圧縮装置
について説明する。図7は、本発明第二の実施の形態の
圧縮装置の構成を示すブロック図である。第2の圧縮装
置1bは、圧縮を行う画像データ入力用の画像データ入
力FIFO201、画像データに間引き処理を行い、奇
数ドットと偶数ドットに画像データを分割する間引き処
理部202、画像データを圧縮する圧縮処理部203、
符号データを一時格納する符号データ出力FIFO20
4、また、伸長する際、符号データを一時格納する符号
データ入力FIFO205、間引き画像入力FIFO2
08、符号データの伸長を行う伸長処理部206、奇数
ドットの伸長結果と偶数ドットの伸長結果を合成するデ
ータ合成部207、および、伸長して合成した画像デー
タを一時保管する画像データ出力FIFO209とで構
成する。
Next, a compression device according to a second embodiment of the present invention will be described. FIG. 7 is a block diagram showing the configuration of the compression device according to the second embodiment of the present invention. The second compression device 1b compresses image data, an image data input FIFO 201 for inputting image data, a thinning process for the image data, a thinning processing unit 202 for dividing the image data into odd dots and even dots, and image data. Compression processing unit 203,
Code data output FIFO 20 for temporarily storing code data
4, a code data input FIFO 205 for temporarily storing code data when decompressing, and a thinned image input FIFO 2
08, a decompression processing unit 206 for decompressing code data, a data synthesizing unit 207 for synthesizing a result of decompressing odd dots and a result of decompressing even dots, and an image data output FIFO 209 for temporarily storing the decompressed and combined image data. It consists of.

【0028】第二の実施の形態では、その基本的構成は
上記の通りであるが、図7に示しているように圧縮処理
部、伸長処理部をそれぞれ1セットずつ減らすことも可
能である。この場合、データ合成部207は伸長の際、
伸長処理部206の出力と、画像データ格納領域にある
データと合成する必要があるが、他は第一の実施の形態
の圧縮装置と変わらない。
In the second embodiment, the basic configuration is as described above, but it is also possible to reduce the number of compression processing units and the number of expansion processing units by one as shown in FIG. In this case, when the data synthesizing unit 207 expands,
Although it is necessary to combine the output of the decompression processing unit 206 with the data in the image data storage area, the other components are the same as those of the compression device according to the first embodiment.

【0029】第二の実施の形態の圧縮装置の圧縮時の動
作を図9に示す。まず画像データ格納領域から画像デー
タを取り出して、間引き処理部202で奇数ドット成分
だけ抽出し、圧縮処理部203で圧縮した後、符号デー
タ格納領域に奇数ドット成分の符号データを格納する
(ステップE−1)。次に、同じバンドに関して、画像
データ格納領域から画像データを取り出して、間引き処
理部202で偶数ドット成分だけ抽出し、圧縮処理部2
03で圧縮した後、符号データ格納領域に偶数ドット成
分の符号データを格納する(ステップE−2とE−
3)。もし、メモリ空間オーバが予測された場合は前に
述べたように、偶数ドット成分の符号データを破棄する
(ステップE−4)。
FIG. 9 shows the operation of the compression apparatus of the second embodiment during compression. First, the image data is taken out from the image data storage area, only the odd dot components are extracted by the thinning processing unit 202, compressed by the compression processing unit 203, and the code data of the odd dot components is stored in the code data storage area (step E). -1). Next, regarding the same band, the image data is extracted from the image data storage area, and the thinning processing unit 202 extracts only the even dot components, and the compression processing unit 2
After being compressed in 03, the code data of the even dot component is stored in the code data storage area (steps E-2 and E-
3). If it is predicted that the memory space will be over, as described above, the code data of the even dot components are discarded (step E-4).

【0030】図8は、本発明第二の実施の形態の圧縮方
法の処理時間をあらわす図である。
FIG. 8 is a diagram showing the processing time of the compression method according to the second embodiment of the present invention.

【0031】次に伸長時の動作について説明する。伸長
時でメモリ空間オーバーが発生した際は第一の実施の形
態で説明したのと同じ動作を行う。
Next, the operation at the time of expansion will be described. When memory space over occurs during decompression, the same operation as described in the first embodiment is performed.

【0032】図10は、本発明第二の実施の形態の伸長
時にメモリオーバフローが発生しなかった場合の画像デ
ータと符号データ格納部のデータの流れを示す図であ
る。この場合、まず奇数ドット成分を伸長し、1ドット
おきに奇数ドットのみに画像データ格納領域に格納す
る。次に、奇数ドット成分の伸長が終了したならば、同
じバンドの偶数ドット成分の伸長を行う(ステップF−
1)。この時、画像データ合成部207で偶数ドット成
分の伸長結果と、画像データ格納領域にある奇数ドット
画像を合成し、結果を同じ領域に格納する(ステップF
ー2、3、4)。
FIG. 10 is a diagram showing the flow of image data and the data in the code data storage unit when a memory overflow does not occur during decompression according to the second embodiment of the present invention. In this case, the odd-numbered dot component is first expanded, and every other dot is stored in the image data storage area only in the odd-numbered dot. Next, when the extension of the odd-numbered dot component is completed, the extension of the even-numbered dot component of the same band is performed (step F-
1). At this time, the image data synthesizing unit 207 synthesizes the expansion result of the even dot component and the odd dot image in the image data storage area, and stores the result in the same area (step F).
-2, 3, 4).

【0033】以上述べた圧縮、伸長の各ステップはコン
ピュータの命令との組み合わせとして、プログラムとし
て実行可能である。図11は、本発明実施の形態の圧縮
方法を制御用マイクロプロセッサ601に実行させるプ
ログラムを記録した記録媒体61とプリンタ60を示す
図である。プリンタ60は内部に制御用マイクロプロセ
ッサ601を内蔵している。
The compression and decompression steps described above can be executed as a program in combination with computer instructions. FIG. 11 is a diagram showing a recording medium 61 and a printer 60 in which a program for causing the control microprocessor 601 to execute the compression method according to the embodiment of the present invention is recorded. The printer 60 has a control microprocessor 601 built therein.

【0034】図12は、本発明実施の形態のプリンタを
示す図である。本発明のプリンタは、上述した圧縮装置
1、プリントを実行するプリンタエンジン2と上位装置
のインタフェースを行うインタフェース部3から構成さ
れる。
FIG. 12 is a diagram showing a printer according to the embodiment of the present invention. The printer of the present invention comprises the above-described compression device 1, a printer engine 2 for executing printing, and an interface unit 3 for interfacing with a higher-level device.

【0035】[0035]

【発明の効果】以上説明したように、本願発明によれ
ば、メインメモリ容量が充分でない装置において使用す
るメモリ容量を削減するために画像データの圧縮を行
い、1ページのあるバンドの圧縮処理を終えた時点で符
号データを格納するメモリ空間が期待した画像の圧縮率
が得られないためにオーバーしそうだと判断した場合
は、偶数ドットまたは偶数ライン毎に圧縮した符号デー
タを破棄することで、メモリ空間オーバー時の間引き処
理を簡素化できる。このため、メモリ空間オーバーが発
生した場合でも装置処理速度パフォーマンスを落とさず
に済むという効果が得られる。
As described above, according to the present invention, the image data is compressed in order to reduce the memory capacity used in the device having the insufficient main memory capacity, and the compression processing of the band having one page is performed. When it is determined that the memory space for storing code data at the time of completion is likely to be over because the expected image compression rate cannot be obtained, by discarding the code data compressed for every even dot or even line, The thinning process when the memory space is exceeded can be simplified. Therefore, it is possible to obtain the effect that the device processing speed performance is not degraded even when the memory space is overrun.

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

【図1】本発明第一の実施の形態の圧縮装置の構成を示
すブロック図である。
FIG. 1 is a block diagram showing a configuration of a compression device according to a first embodiment of the present invention.

【図2】本発明第一の実施の形態の圧縮方法の動作を示
すフローチャートである。
FIG. 2 is a flowchart showing the operation of the compression method according to the first embodiment of the present invention.

【図3】本発明第一の実施の形態の圧縮時の画像データ
と符号データ格納部のデータの流れを示す図である。
FIG. 3 is a diagram showing a data flow of image data and a code data storage unit at the time of compression according to the first embodiment of the present invention.

【図4】本発明第一の実施の形態の圧縮方法の処理時間
をあらわす図である。
FIG. 4 is a diagram showing a processing time of the compression method according to the first embodiment of the present invention.

【図5】本発明第一の実施の形態の伸長時にメモリオー
バフローが発生しなかった場合の画像データと符号デー
タ格納部のデータの流れを示す図である。
FIG. 5 is a diagram showing a flow of image data and a data in a code data storage unit when a memory overflow does not occur during decompression according to the first embodiment of this invention.

【図6】本発明第一の実施の形態の伸長時にメモリオー
バフローが発生した場合の画像データと符号データ格納
部のデータの流れを示す図である。
FIG. 6 is a diagram showing a flow of image data and data in a code data storage unit when a memory overflow occurs during decompression according to the first embodiment of this invention.

【図7】本発明第二の実施の形態の圧縮装置の構成を示
すブロック図である。
FIG. 7 is a block diagram showing a configuration of a compression device according to a second embodiment of the present invention.

【図8】本発明第二の実施の形態の圧縮方法の処理時間
をあらわす図である。
FIG. 8 is a diagram showing a processing time of the compression method according to the second embodiment of the present invention.

【図9】本発明第二の実施の形態の圧縮時の画像データ
と符号データ格納部のデータの流れを示す図である。
FIG. 9 is a diagram showing a data flow of image data and a code data storage unit at the time of compression according to the second embodiment of the present invention.

【図10】本発明第二の実施の形態の伸長時にメモリオ
ーバフローが発生しなかった場合の画像データと符号デ
ータ格納部のデータの流れを示す図である。
FIG. 10 is a diagram showing a flow of image data and data in a code data storage unit when a memory overflow does not occur during decompression according to the second embodiment of the present invention.

【図11】本発明実施の形態の圧縮方法を制御用マイク
ロプロセッサに実行させるプログラムを記録した記録媒
体と制御用マイクロプロセッサ601を示す図である。
FIG. 11 is a diagram showing a control medium 601 and a recording medium recording a program for causing the control microprocessor to execute the compression method according to the embodiment of the present invention.

【図12】本発明実施の形態のプリンタを示す図であ
る。
FIG. 12 is a diagram showing a printer according to an embodiment of the present invention.

【図13】特開平09−093425号公報「画像形成
装置」での圧縮方法の動作を示すフローチャートであ
る。
FIG. 13 is a flowchart showing an operation of a compression method in Japanese Patent Application Laid-Open No. 09-093425 “image forming apparatus”.

【図14】特開平09−093425号公報「画像形成
装置」での圧縮方法の処理時間をあらわす図である。
FIG. 14 is a diagram showing a processing time of a compression method in Japanese Patent Laid-Open No. 09-093425, “Image forming apparatus”.

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

1 圧縮装置 1b 第2の圧縮装置 2 プリンタエンジン 3 インタフェース部 60 プリンタ 61 記録媒体 101 入力FIFO 102 間引き処理部 103 圧縮処理部 104 出力FIFO 105 圧縮処理部 106 出力FIFO 107 入力FIFO 108 伸長処理部 109 入力FIFO 110 伸長処理部 111 データ合成部 112 出力FIFO 201 画像データ入力FIFO 202 間引き処理部 203 圧縮処理部 204 符号データ出力FIFO 205 符号データ入力FIFO 206 伸長処理部 208 間引き画像入力FIFO 207 データ合成部 209 画像データ出力FIFO 601 制御用マイクロプロセッサ 1 Compressor 1b Second compression device 2 Printer engine 3 Interface section 60 printer 61 recording medium 101 Input FIFO 102 thinning processing unit 103 compression processing unit 104 output FIFO 105 compression processing unit 106 output FIFO 107 input FIFO 108 Decompression processing unit 109 input FIFO 110 Decompression processing unit 111 Data synthesizer 112 output FIFO 201 Image data input FIFO 202 Thinning processing unit 203 compression processing unit 204 code data output FIFO 205 code data input FIFO 206 Decompression processing unit 208 Thinned-out image input FIFO 207 Data synthesizer 209 Image data output FIFO 601 Control microprocessor

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI H04N 1/411 H04N 1/411 (58)調査した分野(Int.Cl.7,DB名) H04N 1/38 - 1/393 H04N 1/41 - 1/419 ─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 7 identification code FI H04N 1/411 H04N 1/411 (58) Fields investigated (Int.Cl. 7 , DB name) H04N 1/38-1/393 H04N 1/41-1/419

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 プリンタに用いられ画像データを圧縮し
印字時に伸長を行う圧縮装置において、 圧縮を行う前記画像データ入力用の入力FIFOと、画
像データに間引き処理を行い、奇数ドットと偶数ドット
に前記画像データを分割する間引き処理部と、前記奇数
ドットの前記画像データを圧縮する第一の圧縮処理部
と、前記奇数ドットの符号データを一時格納する第一の
出力FIFO、前記偶数ドットの前記画像データを圧縮
する第二の圧縮処理部と、前記偶数ドットの前記符号デ
ータを一時格納する第二の出力FIFOと、伸長する
際、前記奇数ドットの前記符号データを一時格納する第
一の入力FIFOと、前記奇数ドット分の前記符号デー
タの伸長を行う第一の伸長処理部と、前記偶数ドットの
符号データを一時格納する第二の入力FIFOと、前記
偶数ドット分の符号データの伸長を行う第二の伸長処理
部と、前記奇数ドットの伸長結果と前記偶数ドットの伸
長結果を合成するデータ合成部と、伸長して合成した前
記画像データを一時保管する出力FIFOから構成する
ことを特徴とする圧縮装置。
1. A compression device used in a printer for compressing image data and decompressing at the time of printing, wherein an input FIFO for inputting the image data to be compressed and a thinning process are performed on the image data to obtain odd dots and even dots. A thinning-out processing unit that divides the image data, a first compression processing unit that compresses the image data of the odd-numbered dots, a first output FIFO that temporarily stores code data of the odd-numbered dots, the even-numbered dots A second compression processing unit that compresses image data, a second output FIFO that temporarily stores the code data of the even dots, and a first input that temporarily stores the code data of the odd dots when decompressing. A FIFO, a first decompression processing unit that decompresses the code data for the odd dots, and a second input that temporarily stores the code data for the even dots. IFO, a second decompression processing unit for decompressing the code data for the even dots, a data synthesizing unit for synthesizing the expansion result for the odd dots and the expansion result for the even dots, and the image synthesized by decompression A compression device comprising an output FIFO for temporarily storing data.
【請求項2】 上位装置との接続を制御するインタフェ
ース部とプリントを実行するプリントエンジンと請求項
1の圧縮装置を有することを特徴とするプリンタ。
2. A printer comprising an interface unit for controlling connection with a higher-level device, a print engine for executing printing, and the compression device according to claim 1.
【請求項3】 プリンタに用いられ画像データを圧縮し
印字時に伸長を行う圧縮方法であって、 イメージデータをメモリ上に描画する第一のステップ
と、メモリ上に描画されたイメージデータを奇数ドット
成分と偶数ドット成分に分割する第二のステップと、圧
縮した符号データは奇数ドット成分と偶数ドット成分そ
れぞれ別の領域に格納しておく第三のステップと、1バ
ンド目の処理が終了すると、画像データ格納領域に展開
していた1バンド目のメモリ空間を開放する第四のステ
ップと、その領域で次の描画展開が行えるようにしてお
く第五のステップと、符号データ格納領域を確認し、こ
のまま圧縮処理を続けられるだけの空き空間があるか確
認をする第六のステップと、2バンド目以降について、
1バンド目と同様に圧縮を行う第七のステップと、各バ
ンド毎に符号データを格納するための空きメモリ空間の
確認を行った際、もし、メモリ空間がオーバーする可能
性があると判断した場合は、偶数ドット成分の符号デー
タを破棄する第八のステップと、元イメージを描画し再
度奇数どドットラインの圧縮処理を行う第九のステップ
と、第一乃至第九のステップを1ページに渡って行う第
十のステップから構成されることを特徴とする圧縮方
法。
3. A compression method used in a printer for compressing image data and decompressing at the time of printing, the first step of drawing the image data on a memory, and the image data drawn on the memory with an odd number of dots. The second step of dividing into the component and the even dot component, the third step of storing the compressed code data in different areas of the odd dot component and the even dot component respectively, and when the processing of the first band ends, Check the fourth step of releasing the memory space of the first band that was expanded in the image data storage area, the fifth step that allows the next drawing expansion in that area, and the code data storage area. , The 6th step to check if there is enough free space to continue the compression process and the second and subsequent bands,
In the seventh step of compression similar to the first band, and when checking the free memory space for storing the code data for each band, it was judged that there is a possibility that the memory space may be exceeded. In this case, the eighth step of discarding the code data of the even dot components, the ninth step of drawing the original image and performing the compression processing of the odd number of dot lines again, and the first to ninth steps on one page A compression method comprising a tenth step carried out across.
【請求項4】 前記第一乃至第十のステップを制御用マ
イクロプロセッサに実行させるプログラムを記録した
ンピュータ読み取り可能な記録媒体。
4. A co which records a program for executing the first to tenth steps in control microprocessor
Computer-readable recording medium.
JP2000019275A 2000-01-27 2000-01-27 Compression device, compression method, recording medium recording compression method, printer Expired - Fee Related JP3463643B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000019275A JP3463643B2 (en) 2000-01-27 2000-01-27 Compression device, compression method, recording medium recording compression method, printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000019275A JP3463643B2 (en) 2000-01-27 2000-01-27 Compression device, compression method, recording medium recording compression method, printer

Publications (2)

Publication Number Publication Date
JP2001211317A JP2001211317A (en) 2001-08-03
JP3463643B2 true JP3463643B2 (en) 2003-11-05

Family

ID=18546006

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000019275A Expired - Fee Related JP3463643B2 (en) 2000-01-27 2000-01-27 Compression device, compression method, recording medium recording compression method, printer

Country Status (1)

Country Link
JP (1) JP3463643B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4650236B2 (en) * 2005-11-25 2011-03-16 富士ゼロックス株式会社 Data compression apparatus, data compression method, and data compression program

Also Published As

Publication number Publication date
JP2001211317A (en) 2001-08-03

Similar Documents

Publication Publication Date Title
US5602976A (en) Method and apparatus for saving printer memory
JPH0863606A (en) System and method for compression of graphic image
EP0506482A2 (en) Image processing
JP2001113759A (en) Image data output device
JP3463643B2 (en) Compression device, compression method, recording medium recording compression method, printer
JP3384553B2 (en) Printing system
JP4446389B2 (en) Interface device for compression / decompression module
JP2007013266A (en) Image processing apparatus and image processing method
JP2009044547A (en) Image processor and image processing method
JP4771095B2 (en) Image compression device
JP3603510B2 (en) Image processing device
JP4320497B2 (en) Image processing device
JP3520166B2 (en) Image processing device
JP3604708B2 (en) Image output device
JP2003092674A (en) Image processing apparatus and image processing method
JPH11188936A (en) Image data managing system
JP3271539B2 (en) Image data processing device
JP2814970B2 (en) Printer system
JP2000101808A (en) Image processing unit
JP3997851B2 (en) Image coding apparatus and image coding program
JP3700429B2 (en) Image processing apparatus, image processing method, and image output apparatus
JP3663853B2 (en) Image processing device
JPH06113145A (en) Image processor
JP3690102B2 (en) Image processing apparatus and image processing method
JP3214617B2 (en) Multi-value image printer

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030722

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

Free format text: PAYMENT UNTIL: 20070822

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080822

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080822

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090822

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090822

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100822

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110822

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110822

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120822

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130822

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees