JP2010200174A - Image processor and image processing method - Google Patents
Image processor and image processing method Download PDFInfo
- Publication number
- JP2010200174A JP2010200174A JP2009044839A JP2009044839A JP2010200174A JP 2010200174 A JP2010200174 A JP 2010200174A JP 2009044839 A JP2009044839 A JP 2009044839A JP 2009044839 A JP2009044839 A JP 2009044839A JP 2010200174 A JP2010200174 A JP 2010200174A
- Authority
- JP
- Japan
- Prior art keywords
- data
- compressed data
- compressed
- time
- image 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.)
- Granted
Links
Images
Abstract
Description
本発明は、画像処理装置および画像処理方法に関する。本発明は、特に、印刷用の画像データを圧縮処理する画像処理装置および画像処理方法に関する。 The present invention relates to an image processing apparatus and an image processing method. The present invention particularly relates to an image processing apparatus and an image processing method for compressing image data for printing.
プリンタ等のコスト競争が厳しい製品は、メモリにかかるコストを下げる必要がある。そのためには、画像データをより小さなサイズに圧縮することが効果的である。 Products with severe cost competition such as printers need to reduce the cost of memory. For this purpose, it is effective to compress the image data to a smaller size.
画像データの圧縮に関する技術としては、下記の特許文献1に示すような画像形成装置が知られている。特許文献1に開示されている画像形成装置は、画像データを1ライン単位で予備圧縮し、圧縮後の画像データのデータサイズから画像データの伸長時間を推定して、伸長時間が許容値以上になると判断される場合には、圧縮方式を変更して画像データを圧縮するものである。このような構成によれば、圧縮された画像データの伸長時間が許容範囲内に確実に収まるため、圧縮された画像データをリアルタイムに伸長しながら印刷処理を実行する印刷方式において、1ライン分の画像データの伸長処理が印刷処理に間に合わないために印刷エラー(オーバーラン)が発生してしまうことが防止される。 As a technique related to compression of image data, an image forming apparatus as shown in Patent Document 1 below is known. The image forming apparatus disclosed in Patent Document 1 preliminarily compresses image data in units of one line, estimates the decompression time of the image data from the data size of the compressed image data, and the decompression time exceeds the allowable value. If it is determined, the image data is compressed by changing the compression method. According to such a configuration, the decompression time of the compressed image data is surely kept within an allowable range. Therefore, in a printing method in which the print processing is executed while decompressing the compressed image data in real time, one line's worth is achieved. It is possible to prevent a printing error (overrun) from occurring because the image data decompression process is not in time for the printing process.
しかしながら、上記画像形成装置では、圧縮された画像データの伸長時間が許容範囲内に収まることは保証されるものの、圧縮された画像データのデータサイズまでは考慮されていない。上記印刷方式では、画像データの伸長時間が許容範囲に収まる範囲内で、できるだけ小さなサイズに画像データを圧縮することが望まれている。 However, in the image forming apparatus, the decompression time of the compressed image data is guaranteed to be within an allowable range, but the data size of the compressed image data is not taken into consideration. In the above printing method, it is desired to compress the image data to the smallest possible size within a range where the expansion time of the image data is within an allowable range.
本発明は、上述した課題に鑑みてなされたものである。したがって、本発明の目的は、画像データの伸長時間が許容範囲に収まる範囲内で、画像データをより小さなサイズに圧縮することができる画像処理装置および画像処理方法を提供することである。 The present invention has been made in view of the above-described problems. Accordingly, an object of the present invention is to provide an image processing apparatus and an image processing method capable of compressing image data to a smaller size within a range where the expansion time of the image data is within an allowable range.
本発明の上記目的は、下記の手段によって達成される。 The above object of the present invention is achieved by the following means.
(1)複数種類の圧縮方式により同一の画像データを同時並行に圧縮して、当該同一の画像データに対して複数種類の圧縮データを生成する圧縮部と、前記圧縮部により生成された前記複数種類の圧縮データのそれぞれに対して、当該圧縮データの伸長時間を求める伸長時間算出部と、前記伸長時間算出部により求められた前記複数種類の圧縮データの伸長時間と各圧縮データのデータサイズとに基づいて、前記複数種類の圧縮データの中から一の圧縮データを選択する選択部と、前記選択部により選択された前記圧縮データを、出力データとして出力する出力部と、を有することを特徴とする画像処理装置。 (1) A compression unit that simultaneously compresses the same image data by a plurality of types of compression methods to generate a plurality of types of compressed data for the same image data, and the plurality of units generated by the compression unit For each type of compressed data, an expansion time calculation unit that calculates the expansion time of the compressed data, the expansion time of the plurality of types of compressed data determined by the expansion time calculation unit, and the data size of each compressed data And a selection unit that selects one compressed data from the plurality of types of compressed data, and an output unit that outputs the compressed data selected by the selection unit as output data. An image processing apparatus.
(2)前記画像データは、1ページ分の画像データを複数に分割して得られる分割画像データであって、前記圧縮部は、前記複数の分割画像データを順次に圧縮することを特徴とする上記(1)に記載の画像処理装置。 (2) The image data is divided image data obtained by dividing image data for one page into a plurality of pieces, and the compression unit sequentially compresses the plurality of divided image data. The image processing apparatus according to (1) above.
(3)前記出力データとして出力済みの前記圧縮データの前記伸長時間を積算して、当該出力済みの圧縮データの伸長時間の積算時間を求める積算時間算出部と、前記出力済みの圧縮データの元となった前記分割画像データの総データサイズに基づいて、前記積算時間算出部により求められた前記積算時間の閾値を設定する設定部と、前記積算時間が、前記設定部により設定された前記閾値未満であるか否かを判断する判断部と、をさらに有し、前記判断部により前記積算時間が前記閾値未満であると判断される場合には、前記選択部は、前記複数種類の圧縮データの中から、データサイズが最小の圧縮データを選択し、前記判断部により前記積算時間が前記閾値以上であると判断される場合には、前記選択部は、前記複数種類の圧縮データの中から、前記伸長時間が最短の圧縮データを選択することを特徴とする上記(2)に記載の画像処理装置。 (3) an integration time calculation unit that integrates the decompression time of the compressed data that has been output as the output data to obtain an integration time of the decompression time of the compressed data that has been output; Based on the total data size of the divided image data that has become, a setting unit that sets a threshold of the integration time obtained by the integration time calculation unit, and the threshold that the integration time is set by the setting unit A determination unit that determines whether or not the total time is less than the threshold by the determination unit, the selection unit includes the plurality of types of compressed data When the determination unit determines that the integration time is equal to or greater than the threshold value, the selection unit selects the plurality of types of compression data. The image processing apparatus according to (2) from in the elongation time and selects the shortest of the compressed data.
(4)前記設定部は、前記出力済みの圧縮データの伸長時間の積算時間が、前記出力済みの圧縮データの元となった分割画像データに基づく画像の印刷処理に要する時間よりも短くなるように、前記分割画像データの総データサイズに基づいて前記閾値を設定することを特徴とする上記(3)に記載の画像処理装置。 (4) The setting unit is configured so that the integration time of the decompression time of the output compressed data is shorter than the time required for the image printing process based on the divided image data that is the source of the output compressed data. The image processing apparatus according to (3), wherein the threshold is set based on a total data size of the divided image data.
(5)前記判断部により前記積算時間が前記閾値未満であると判断される場合において、前記データサイズが最小の圧縮データが複数種類ある場合、前記選択部は、当該複数種類の圧縮データの中から前記伸長時間が最短の圧縮データを選択することを特徴とする上記(3)または(4)に記載の画像処理装置。 (5) When the determination unit determines that the accumulated time is less than the threshold value, and there are a plurality of types of compressed data with the minimum data size, the selection unit selects among the plurality of types of compressed data. The image processing apparatus according to (3) or (4), wherein the compressed data having the shortest decompression time is selected.
(6)複数種類の圧縮方式により同一の画像データを同時並行に圧縮して、当該同一の画像データに対して複数種類の圧縮データを生成するステップ(a)と、前記ステップ(a)において生成された前記複数種類の圧縮データのそれぞれに対して、当該圧縮データの伸長時間を求めるステップ(b)と、前記ステップ(b)において求められた前記複数種類の圧縮データの伸長時間と各圧縮データのデータサイズとに基づいて、前記複数種類の圧縮データの中から一の圧縮データを選択するステップ(c)と、前記ステップ(c)において選択された前記圧縮データを、出力データとして出力するステップ(d)と、を有することを特徴とする画像処理方法。 (6) A step (a) of simultaneously compressing the same image data by a plurality of types of compression methods to generate a plurality of types of compressed data for the same image data, and generating in the step (a) For each of the plurality of types of compressed data, the step (b) of obtaining the decompression time of the compressed data, the decompression time of the plurality of types of compressed data obtained in step (b), and each compressed data A step (c) of selecting one compressed data from the plurality of types of compressed data based on the data size, and a step of outputting the compressed data selected in the step (c) as output data An image processing method comprising: (d).
(7)前記画像データは、1ページ分の画像データを複数に分割して得られる分割画像データであって、前記ステップ(a)において、前記複数の分割画像データが順次に圧縮されることを特徴とする上記(6)に記載の画像処理方法。 (7) The image data is divided image data obtained by dividing image data for one page into a plurality of pieces, and the plurality of divided image data are sequentially compressed in the step (a). The image processing method according to (6), characterized in that it is characterized in that
(8)前記出力データとして出力済みの前記圧縮データの前記伸長時間を積算して、当該出力済みの圧縮データの伸長時間の積算時間を求めるステップ(e)と、前記出力済みの圧縮データの元となった前記分割画像データの総データサイズに基づいて、前記ステップ(e)において求められた前記積算時間の閾値を設定するステップ(f)と、前記積算時間が、前記ステップ(f)において設定された前記閾値未満であるか否かを判断するステップ(g)と、をさらに有し、前記ステップ(g)において前記積算時間が前記閾値未満であると判断される場合には、前記ステップ(c)において、前記複数種類の圧縮データの中から、データサイズが最小の圧縮データが選択され、前記ステップ(g)において前記積算時間が前記閾値以上であると判断される場合には、前記ステップ(c)において、前記複数種類の圧縮データの中から、前記伸長時間が最短の圧縮データが選択されることを特徴とする上記(7)に記載の画像処理方法。 (8) Step (e) of accumulating the decompression time of the compressed data that has been output as the output data to obtain an integral time of the decompression time of the compressed data that has been output; Based on the total data size of the divided image data, the step (f) for setting the threshold value for the integration time obtained in the step (e), and the integration time is set in the step (f). A step (g) for determining whether or not the integrated time is less than the threshold in the step (g). In c), the compressed data having the smallest data size is selected from the plurality of types of compressed data, and in the step (g), the integration time is equal to or greater than the threshold value. If it is determined, in the step (c), the compressed data having the shortest decompression time is selected from the plurality of types of compressed data. Image processing method.
(9)前記ステップ(f)において、前記出力済みの圧縮データの伸長時間の積算時間が、前記出力済みの圧縮データの元となった分割画像データに基づく画像の印刷処理に要する時間よりも短くなるように、前記分割画像データの総データサイズに基づいて前記閾値が設定されることを特徴とする上記(7)に記載の画像処理方法。 (9) In step (f), the integration time of the decompression time of the compressed data that has been output is shorter than the time required for image printing processing based on the divided image data that is the source of the compressed data that has been output. The image processing method according to (7), wherein the threshold is set based on a total data size of the divided image data.
(10)前記ステップ(g)において前記積算時間が前記閾値未満であると判断される場合において、前記データサイズが最小の圧縮データが複数種類ある場合、前記ステップ(c)において、当該複数種類の圧縮データの中から前記伸長時間が最短の圧縮データが選択されることを特徴とする上記(8)または(9)に記載の画像処理方法。 (10) In the case where it is determined in the step (g) that the integration time is less than the threshold value, and there are a plurality of types of compressed data having the minimum data size, in the step (c), the plurality of types The image processing method according to (8) or (9), wherein the compressed data having the shortest decompression time is selected from the compressed data.
本発明によれば、同時並行に生成される複数種類の圧縮データの中から、各圧縮データの伸長時間とデータサイズとに基づいて一の圧縮データが選択され、出力データとして出力される。したがって、画像データの圧縮結果として出力する圧縮データを複数種類の圧縮データの中から選択する際に、各圧縮データの伸長時間とデータサイズとを参照して、最適な圧縮データを選択することが可能となる。これにより、画像データの伸長時間が許容範囲に収まる範囲内で、画像データをより小さなサイズに圧縮することができる。 According to the present invention, one compressed data is selected from a plurality of types of compressed data generated in parallel based on the decompression time and data size of each compressed data, and is output as output data. Therefore, when selecting compressed data to be output as a compression result of image data from among a plurality of types of compressed data, it is possible to select the optimal compressed data by referring to the decompression time and data size of each compressed data. It becomes possible. As a result, the image data can be compressed to a smaller size within a range where the decompression time of the image data is within an allowable range.
以下、図面を参照して、本発明の実施形態を詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
図1は、本発明の一実施形態である画像処理装置を備えたプリンタの概略構成を示すブロック図である。 FIG. 1 is a block diagram illustrating a schematic configuration of a printer including an image processing apparatus according to an embodiment of the present invention.
図1に示されるとおり、プリンタ1は、CPU11、ROM12、RAM13、画像処理部14、データ出力部15、印刷部16、I/F制御部17、およびホストI/F18を含む。CPU11、ROM12、RAM13、画像処理部14、データ出力部15、I/F制御部17、およびホストI/F18は、バスを介して相互に接続されている。印刷部16は、データ出力部15に接続されている。
As shown in FIG. 1, the printer 1 includes a
プリンタ1は、文書の印刷を指示するホストPC2にネットワークを介して接続されており、ホストPC2からの印刷指示に基づいて印刷処理を実行する。なお、プリンタ1とホストPC2とは、ネットワークを介することなく直接機器間で接続(ローカル接続)されていてもよい。
The printer 1 is connected to a
CPU11は、プログラムにしたがって上記各部の制御や各種の演算処理を実行する。ROM12は、各種プログラムおよび各種データを格納する。
The
RAM13は、作業領域として一時的にプログラムおよびデータを記憶する。RAM13は、ビットマップ形式の画像データ30、および画像データ30を圧縮して得られる圧縮済み画像データ40を格納する。
The
画像処理部14は、ビットマップ形式の画像データ30に対して色変換およびスクリーン処理等の画像処理を実行する。また、画像処理部14は、画像データ30を圧縮してデータサイズが縮小されている圧縮済み画像データ40を生成する。
The
データ出力部15は、RAM13から圧縮済み画像データ40を読み出してリアルタイムに伸長しつつ、印刷部16に転送する。データ出力部15は、印刷部16における用紙の搬送速度等に応じて圧縮済み画像データ40を伸長しつつ、印刷部16に転送する。
The
印刷部16は、電子写真式プロセス等の周知の作像プロセスを用いて、データ出力部15から転送される画像データに基づく画像を用紙等の記録媒体に印刷する。
The
I/F制御部17は、ホストI/F18を制御する。ホストI/F18は、ネットワークを介して他の機器と通信するためのインタフェースであり、イーサネット(登録商標)、トークンリング、FDDI等の規格が用いられる。
The I /
図2は、図1に示されるプリンタにおける画像処理部の概略構成を示すブロック図である。 FIG. 2 is a block diagram showing a schematic configuration of the image processing unit in the printer shown in FIG.
図2に示されるとおり、画像処理部14は、ASIC(Application Specific Integrated Circuit)として構成されており、ReadDMA回路101、画像処理モジュール102、圧縮モジュール103、およびWriteDMA回路104を含む。
As shown in FIG. 2, the
ReadDMA回路101は、処理対象の画像データを取得する。ReadDMA101は、RAM13に格納されているビットマップ形式の画像データ30を所定ライン数のバンド単位で読み出し、画像処理モジュール102に渡す。
The ReadDMA
画像処理モジュール102は、画像データに対して画像処理を実行する。画像処理モジュール102は、ReadDMA回路101から渡される1バンド分の画像データに対して、色変換処理、スクリーン処理、γ補正処理、および輪郭強調処理等の画像処理を実行する。
The
圧縮モジュール103は、画像処理済みの画像データを圧縮する。圧縮モジュール103は、画像処理モジュール102により画像処理された1バンド分の画像データを、所定サイズのデータ単位で圧縮する。圧縮モジュール103は、圧縮された画像データの1ライン毎の伸長時間が許容範囲に収まる範囲内で、圧縮された画像データのデータサイズがより小さくなるように、複数種類の圧縮アルゴリズムを用いて画像データを圧縮する。
The
WriteDMA回路104は、圧縮済み画像データを出力する。WriteDMA回路104は、圧縮モジュール103により圧縮された1バンド分の画像データをRAM13に書き戻す。
The
図3は、図2に示される画像処理部における圧縮モジュールの概略構成を示すブロック図である。 FIG. 3 is a block diagram showing a schematic configuration of the compression module in the image processing unit shown in FIG.
図3に示されるとおり、圧縮モジュール103は、第1〜第4圧縮アルゴリズム回路111a〜111d、第1〜第4伸長時間検出回路112a〜112d、サイズ情報比較回路113、伸長時間比較回路114、伸長時間積算回路115、選択回路116、およびデータセレクト回路117を含む。
As shown in FIG. 3, the
第1〜第4圧縮アルゴリズム回路111a〜111dは、互いに異なる圧縮アルゴリズムにより画像データを圧縮して圧縮データを生成する。第1〜第4圧縮アルゴリズム回路111a〜111dは、1ライン分の画像データを分割して得られる16バイトの分割画像データを同時並行に圧縮して、1つの分割画像データに対して4種類の圧縮データを生成する。第1〜第4圧縮アルゴリズム回路111a〜111dは、対応する第1〜第4伸長時間検出回路112a〜112dおよびサイズ情報比較回路113にそれぞれ接続されており、圧縮データのデータサイズを示す信号をそれぞれ送出する。第1〜第4圧縮アルゴリズム回路111a〜111dにより実行される圧縮アルゴリズムの詳細については後述する。
The first to fourth
第1〜第4伸長時間検出回路112a〜112dは、対応する第1〜第4圧縮アルゴリズム回路111a〜111dで生成された圧縮データの伸長時間(クロック数)を検出する。第1〜第4伸長時間検出回路112a〜112dは、第1〜第4圧縮アルゴリズム回路111a〜111dからの信号に基づいて、圧縮データの伸長時間を検出する。第1〜第4伸長時間検出回路112a〜112dは、伸長時間比較回路114および伸長時間積算回路115にそれぞれ接続されており、圧縮データの伸長時間を示す信号をそれぞれ送出する。
The first to fourth decompression
サイズ情報比較回路113は、第1〜第4圧縮アルゴリズム回路111a〜111dで生成された4種類の圧縮データのデータサイズを比較する。サイズ情報比較回路113は、第1〜第4圧縮アルゴリズム回路111a〜111dからの信号に基づいて4種類の圧縮データのデータサイズを比較し、データサイズが最小の圧縮データを特定する。サイズ情報比較回路113は、伸長時間積算回路115および選択回路116に接続されており、データサイズが最小の圧縮データを示す信号を送出する。
The size
伸長時間比較回路114は、第1〜第4伸長時間検出回路112a〜112dで検出された各圧縮データの伸長時間を比較する。伸長時間比較回路114は、第1〜第4伸長時間検出回路112a〜112dからの信号に基づいて4種類の圧縮データの伸長時間を比較し、伸長時間が最短の圧縮データを特定する。伸長時間比較回路114は、伸長時間積算回路115および選択回路116に接続されており、伸長時間が最短の圧縮データを示す信号を送出する。
The decompression
伸長時間積算回路115は、出力データとして出力された圧縮データの伸長時間の積算値を算出する。伸長時間積算部115は、第1〜第4伸長時間検出回路112a〜112d、サイズ情報比較回路113、および伸長時間比較回路114からの信号に基づいて、出力データとして出力された圧縮データの伸長時間の積算値を算出する。また、伸長時間積算回路115は、出力データとして出力された圧縮データの伸長時間の積算値を、当該圧縮データの元となった画像データのデータサイズに応じて設定される閾値と比較する。伸長時間積算回路115は、選択回路116に接続されており、伸長時間の積算値と閾値との比較結果を示す信号を送出する。
The expansion
選択回路116は、データセレクト回路117の動作基準を切り替える。選択回路116は、データセレクト回路117に接続されており、伸長時間積算回路115からの信号に基づいて、データセレクト回路117の動作基準を切り替える。選択回路116は、データセレクト回路117がサイズ情報比較回路113からの信号に応じて動作する状態と、データセレクト回路117が伸長時間比較回路114からの信号に応じて動作する状態とを切り替える。
The
データセレクト回路117は、複数種類の圧縮データの中から一の圧縮データを選択して出力する。データセレクト回路117は、サイズ情報比較回路113または伸長時間比較回路114からの信号に基づいて、第1〜第4圧縮アルゴリズム回路111a〜111dで生成された4種類の圧縮データの中から、データサイズが最小の圧縮データまたは伸長時間が最短の圧縮データを出力データとして出力する。
The data select
次に、第1〜第4圧縮アルゴリズム回路111a〜111dにより実行される4種類の圧縮アルゴリズムについて説明する。
Next, four types of compression algorithms executed by the first to fourth
<第1圧縮アルゴリズム>
第1圧縮アルゴリズムは、「代表値圧縮」と称される圧縮アルゴリズムであり、特定の階調データのフィルパターン(たとえば、10%グレーのフィルパターン)と32ピクセル(16バイト)の画像データとが一致するか否かを判定し、フィルパターンと画像データとが一致する場合、16バイトの画像データを8ビットのデータに置き換え、2ビットのヘッダを付加して10ビットのデータとして出力する。
<First compression algorithm>
The first compression algorithm is a compression algorithm called “representative value compression”, and a specific gradation data fill pattern (for example, a 10% gray fill pattern) and 32 pixel (16 bytes) image data are obtained. It is determined whether or not they match, and if the fill pattern and the image data match, the 16-byte image data is replaced with 8-bit data, a 2-bit header is added, and the data is output as 10-bit data.
フィルパターンと画像データとが一致しない場合には、16バイトの画像データが4分割され、4バイトの画像データとフィルパターンとが一致するか否かが判定される。4バイトの画像データとフィルパターンとが一致する場合には、4バイトの画像データが10ビットのデータとして出力され、4バイトの画像データとフィルパターンとが一致しない場合には、圧縮結果が得られない。 If the fill pattern does not match the image data, the 16-byte image data is divided into four, and it is determined whether the 4-byte image data matches the fill pattern. If the 4-byte image data matches the fill pattern, the 4-byte image data is output as 10-bit data. If the 4-byte image data does not match the fill pattern, a compression result is obtained. I can't.
印刷ジョブ毎に異なるフィルパターンを取得するにはRAM13を参照する必要があるため、第1圧縮アルゴリズムにより圧縮されたデータを伸長する場合、32ピクセル(16バイト)の画像データを復元するのに、4分割されてない画像データに対しては、6クロックの処理時間が必要とされ、4分割された画像データに対しては、24クロックの処理時間が必要とされる。
Since it is necessary to refer to the
<第2圧縮アルゴリズム>
第2圧縮アルゴリズムは、「単純履歴」と称される圧縮アルゴリズムであり、4バイト単位で区切られる過去2048バイトのデータの履歴と4バイトの画像データとを比較して、画像データと一致するデータの位置情報を返すことにより、4バイトの画像データを18ビットのデータとして出力する。なお、第1圧縮アルゴリズムと同様、第2圧縮アルゴリズムによる圧縮処理も、画像データによっては圧縮結果が得られない。
<Second compression algorithm>
The second compression algorithm is a compression algorithm referred to as “simple history”, which is a data that matches image data by comparing the history of past 2048 bytes of data divided in units of 4 bytes with 4 bytes of image data. 4 bytes of image data is output as 18-bit data. Note that, similarly to the first compression algorithm, a compression result by the second compression algorithm cannot be obtained depending on image data.
第2圧縮アルゴリズムでは、過去2048バイトのデータの履歴を保持するためにRAM13を使用する必要があり、第2圧縮アルゴリズムにより圧縮された画像データを伸長する場合、32ピクセル(16バイト)の画像データを復元するのに、24クロックの処理時間が必要とされる。
In the second compression algorithm, it is necessary to use the
<第3圧縮アルゴリズム>
第3圧縮アルゴリズムは、「ハフマン符号」と称される圧縮アルゴリズムであり、統計データに基づいて出現頻度順にデータを並べた「ハフマンテーブル」と称されるデータ変換テーブルを使用し、出現頻度の高いデータにビット長の短い符号を割り当てることによりデータを圧縮する。圧縮結果は出現頻度に応じて可変となり、4バイトの画像データが10〜46ビットの圧縮データに変換される。
<Third compression algorithm>
The third compression algorithm is a compression algorithm called “Huffman code”, and uses a data conversion table called “Huffman table” in which data is arranged in order of appearance frequency based on statistical data, and has a high appearance frequency. Data is compressed by assigning a code with a short bit length to the data. The compression result is variable according to the appearance frequency, and 4-byte image data is converted into compressed data of 10 to 46 bits.
「ハフマンテーブル」は固定データとして準備されるため、RAMを用いないロジック回路が実現可能であり、第3圧縮アルゴリズムにより圧縮されたデータを伸長する場合、32ピクセル(16バイト)の画像データを復元するのに、12クロックの処理時間が必要とされる。 Since the “Huffman table” is prepared as fixed data, a logic circuit that does not use RAM can be realized. When decompressing data compressed by the third compression algorithm, image data of 32 pixels (16 bytes) is restored. To do this, a processing time of 12 clocks is required.
<第4圧縮アルゴリズム>
第4圧縮アルゴリズムは、非圧縮であり、元の画像データにヘッダを付加して、非圧縮のまま出力する。第4圧縮アルゴリズムでは、16バイトの画像データに3ビットのヘッダが付加され、131ビットのデータが生成される。
<Fourth compression algorithm>
The fourth compression algorithm is uncompressed, adds a header to the original image data, and outputs the uncompressed image data. In the fourth compression algorithm, a 3-bit header is added to 16-byte image data, and 131-bit data is generated.
一方、第4圧縮アルゴリズムにより生成されたデータを伸長するには、ヘッダ解析に1クロックが必要であり、1クロック毎に4バイトのデータが伸長されるため、32ピクセル(16バイト)の画像データを復元するのに、5クロックの処理時間が必要とされる。 On the other hand, in order to decompress the data generated by the fourth compression algorithm, one clock is required for header analysis, and 4 bytes of data are decompressed every clock. Therefore, image data of 32 pixels (16 bytes) is obtained. Is required to process 5 clocks.
第1〜第4圧縮アルゴリズムの圧縮結果および伸長時間をまとめたものを表1に示す。 Table 1 summarizes the compression results and decompression times of the first to fourth compression algorithms.
表1に示されるとおり、4種類の圧縮アルゴリズムでは、同一の画像データを圧縮して得られる圧縮データのデータサイズおよび伸長時間が互いに異なる。 As shown in Table 1, the four types of compression algorithms have different data sizes and decompression times of compressed data obtained by compressing the same image data.
以上のとおり構成される本実施形態のプリンタ1では、ホストPC2から印刷ジョブが受信される場合、印刷ジョブに含まれるPDLデータが、ラスタライズ処理によりビットマップ形式の画像データ30に変換される。ビットマップ形式の画像データ30は、RAM13に一旦格納される。それから、画像データ30はRAM13から読み出され、画像処理部14において圧縮された後、RAM13に再度格納される。圧縮済み画像データ40は、ページ単位で読み出され、リアルタイムに伸長されながら印刷部16に転送される。なお、本実施形態の伸長処理では、圧縮された画像データは、解像度等の劣化を伴うことなく元の画像データに復元される。
In the printer 1 of the present embodiment configured as described above, when a print job is received from the
本実施形態の圧縮モジュール103では、1ライン分の画像データの伸長処理が印刷処理に間に合わずに印刷エラーが発生してしまうことを防止するために、圧縮済みの画像データの1ライン分の伸長時間が許容範囲に収まる範囲内で、圧縮済みの画像データのデータサイズがより小さくなるように画像データが圧縮される。
In the
図4は、図3に示される圧縮モジュールにおける画像データの圧縮処理を説明するためのフローチャートである。本実施形態では、1ライン分の画像データを分割して得られる16バイト(32ピクセル)の分割画像データ単位で、1ライン分の画像データが一方の端部から他方の端部まで圧縮される。 FIG. 4 is a flowchart for explaining compression processing of image data in the compression module shown in FIG. In this embodiment, image data for one line is compressed from one end to the other in units of 16-byte (32 pixels) divided image data obtained by dividing image data for one line. .
図4に示されるとおり、本実施形態における画像データの圧縮処理では、まず、伸長時間積算カウンタが初期化される(ステップS101)。本実施形態では、1ライン分の画像データの圧縮処理に先立って、伸長時間積算回路115における伸長時間の積算値が初期値「0」に設定される。
As shown in FIG. 4, in the compression processing of image data in the present embodiment, first, an expansion time integration counter is initialized (step S101). In this embodiment, prior to the compression processing of the image data for one line, the integration value of the expansion time in the expansion
次に、第1〜第4圧縮アルゴリズムによって、1つの分割画像データが同時並行に圧縮される(ステップS102)。本実施形態では、第1〜第4圧縮アルゴリズム回路111a〜111dに、16バイトの分割画像データが同時に入力され、第1〜第4圧縮アルゴリズムで圧縮される。その結果、1つの分割画像データに対して、4種類の圧縮データが生成される。これにともなって、第1〜第4伸長時間検出回路112a〜112dにおいて各圧縮データの伸長時間(クロック数)が検出される。第1〜第4伸長時間検出回路112a〜112dは、表1に示される関係にしたがって、対応する圧縮データのデータサイズ情報から、圧縮データの伸長時間をそれぞれ検出する。
Next, one divided image data is compressed in parallel by the first to fourth compression algorithms (step S102). In the present embodiment, 16-byte divided image data is simultaneously input to the first to fourth
次に、出力済みの圧縮データの伸長時間の積算値が閾値未満であるか否かが判断される(ステップS103)。本実施形態では、ステップS102に示す処理で生成された複数種類の圧縮データの中から、出力データとして出力する一の圧縮データを選択するのに先立って、まず、1ライン分の画像データの端部から順次に圧縮される分割画像データのうち、出力データとして既に出力済みの圧縮データの伸長時間が積算される。そして、出力済みの圧縮データの伸長時間の積算値(総クロック数)が、当該圧縮データの元となった分割画像データの総データ数に応じて設定される閾値と比較される。 Next, it is determined whether or not the integrated value of the decompression time of the compressed data that has been output is less than the threshold value (step S103). In this embodiment, prior to selecting one compressed data to be output as output data from a plurality of types of compressed data generated by the processing shown in step S102, first, the end of image data for one line is selected. Among the divided image data that is sequentially compressed from the image data, the decompression time of the compressed data that has already been output as output data is integrated. Then, the integrated value (total number of clocks) of the decompression time of the compressed data that has been output is compared with a threshold value that is set according to the total number of divided image data that is the source of the compressed data.
ここで、閾値は、出力済みの圧縮データの元となった分割画像データに基づく画像の印刷処理に必要とされる時間として、圧縮出力済みの分割画像データの総データ数と所定のクロック数との積により表される。たとえば、16バイトの分割画像データに基づく画像の印刷処理に必要とされる時間が20クロックであり、出力済みの圧縮データの元となった分割画像データの総データ数がNバイトである場合、閾値は、N×20/16クロックで表される。 Here, the threshold value is the time required for the image printing process based on the divided image data that is the source of the compressed data that has been output, and the total number of pieces of compressed image data and the predetermined number of clocks. Represented by the product of For example, when the time required for an image printing process based on 16-byte divided image data is 20 clocks, and the total number of pieces of divided image data used as the source of output compressed data is N bytes, The threshold value is represented by N × 20/16 clock.
より具体的には、1ライン分の画像データの一方の端部から4番目の分割画像データまで圧縮処理が終了して出力データが出力済みである場合、分割画像データの総データ数は64(16×4)バイトであり、閾値は、80(64×20/16)クロックに設定される。この80クロックが4番目までの出力データの伸長時間の積算値Mと比較される。なお、所定サイズの画像データに基づく画像の印刷処理に必要とされる時間(たとえば、20クロック)は、印刷部16の用紙搬送速度等の特性を考慮して決定される。
More specifically, when the compression processing is completed from one end of the image data for one line to the fourth divided image data and the output data has already been output, the total number of divided image data is 64 ( 16 × 4) bytes and the threshold is set to 80 (64 × 20/16) clocks. The 80 clocks are compared with the integrated value M of the expansion time of the output data up to the fourth. Note that the time (for example, 20 clocks) required for image printing processing based on image data of a predetermined size is determined in consideration of characteristics such as the paper conveyance speed of the
伸長時間の積算値Mが閾値未満であると判断される場合(ステップS103:YES)、複数種類の圧縮データの中から、データサイズが最小の圧縮データが選択される(ステップS104)。本実施形態では、伸長後の分割画像データに基づく画像の印刷処理に要する時間よりも圧縮データの伸長時間の方が短いため、印刷エラーは発生しないとして、ステップS102に示す処理で生成された複数種類の圧縮データの中から、データサイズが最小の圧縮データが選択される。たとえば、M<N×20/16の場合、4種類の圧縮データの中から、データサイズが最小の圧縮データが選択される。 When it is determined that the decompression time integrated value M is less than the threshold value (step S103: YES), the compressed data with the smallest data size is selected from a plurality of types of compressed data (step S104). In the present embodiment, since the decompression time of the compressed data is shorter than the time required for the image printing process based on the divided image data after decompression, it is assumed that no print error occurs, and a plurality of data generated by the process shown in step S102 is performed. The compressed data having the smallest data size is selected from the types of compressed data. For example, when M <N × 20/16, compressed data having the smallest data size is selected from four types of compressed data.
そして、選択された圧縮データが出力データとして出力される(ステップS105)。本実施形態では、ステップS104に示す処理で選択されたデータサイズが最小の圧縮データが、出力データとして出力される。なお、データサイズが最小となる圧縮データが2つ以上ある場合には、伸長時間のより短い圧縮データが選択される。 The selected compressed data is output as output data (step S105). In the present embodiment, the compressed data having the smallest data size selected in the process shown in step S104 is output as output data. Note that when there are two or more pieces of compressed data having a minimum data size, compressed data having a shorter decompression time is selected.
次に、出力データとして出力された圧縮データの伸長時間が、伸長時間の積算時間に加算される(ステップS106)。本実施形態では、ステップS104に示す処理で選択されたデータサイズが最小の圧縮データの伸長時間が、伸長時間積算回路115に格納されている伸長時間の積算値に加算される。
Next, the decompression time of the compressed data output as output data is added to the integration time of the decompression time (step S106). In the present embodiment, the decompression time of the compressed data having the smallest data size selected in the process shown in step S104 is added to the decompression time integration value stored in the decompression
以上のとおり、ステップS101〜S106に示す処理によれば、まず、1ライン分の画像データを分割して得られる分割画像データが複数種類の圧縮アルゴリズムにより同時並行に圧縮されて、複数種類の圧縮データが生成される。次に、出力データとして出力済みの分割画像データの総データ数に応じて設定される閾値と、出力済みの圧縮データの伸長時間の積算値とが比較される。そして、伸長時間の積算値が閾値未満と判断される場合、複数種類の圧縮データの中からデータサイズが最小の圧縮データが選択される。 As described above, according to the processing shown in steps S101 to S106, first, divided image data obtained by dividing image data for one line is compressed in parallel by a plurality of types of compression algorithms, and a plurality of types of compression are performed. Data is generated. Next, a threshold value set according to the total number of pieces of divided image data that have been output as output data is compared with the integrated value of the decompression time of the compressed data that has been output. When it is determined that the integration value of the decompression time is less than the threshold value, the compressed data having the smallest data size is selected from a plurality of types of compressed data.
一方、ステップS103に示す処理において、伸長時間の積算値Mが閾値以上であると判断される場合(ステップS103:NO)、複数種類の圧縮データの中から、伸長時間が最短の圧縮データが選択される(ステップS107)。本実施形態では、伸長後の分割画像データに基づく画像の印刷処理に要する時間よりも圧縮データの伸長時間の方が長いため、印刷エラーが発生するおそれがあるとして、ステップS102に示す処理で生成された複数種類の圧縮データの中から、伸長時間が最短の圧縮データが選択される。たとえば、M≧N×20/16の場合、4種類の圧縮データの中から、伸長時間が最短の圧縮データが選択される。 On the other hand, when it is determined in the process shown in step S103 that the expansion time integrated value M is equal to or greater than the threshold (step S103: NO), the compressed data with the shortest expansion time is selected from a plurality of types of compressed data. (Step S107). In this embodiment, since the decompression time of the compressed data is longer than the time required for the image printing process based on the decompressed divided image data, a print error may occur, and the process shown in step S102 is performed. The compressed data with the shortest decompression time is selected from the plurality of types of compressed data. For example, when M ≧ N × 20/16, compressed data having the shortest decompression time is selected from four types of compressed data.
そして、選択された圧縮データが出力データとして出力される(ステップS108)。本実施形態では、ステップS107に示す処理で選択された伸長時間が最短の圧縮データが、出力データとして出力される。 The selected compressed data is output as output data (step S108). In the present embodiment, the compressed data with the shortest decompression time selected in the process shown in step S107 is output as output data.
次に、出力データとして出力された圧縮データの伸長時間が、伸長時間の積算値に加算される(ステップS109)。本実施形態では、ステップS107に示す処理で選択された伸長時間が最短の圧縮データの伸長時間が、伸長時間積算回路115に格納されている伸長時間の積算値に加算される。
Next, the decompression time of the compressed data output as output data is added to the integrated value of the decompression time (step S109). In the present embodiment, the decompression time of the compressed data having the shortest decompression time selected in the process shown in step S107 is added to the decompression time integration value stored in the decompression
以上のとおり、ステップS107〜S109に示す処理によれば、出力済みの圧縮データの伸長時間の積算値が閾値以上と判断される場合、複数種類の圧縮データの中から伸長時間が最短の圧縮データが選択される。 As described above, according to the processing shown in steps S107 to S109, when it is determined that the integrated value of the decompression time of the compressed data that has been output is greater than or equal to the threshold value, the compressed data having the shortest decompression time from among a plurality of types of compressed data. Is selected.
次に、1ライン分の画像データの終端まで圧縮処理が実行されたか否かが判断される(ステップS110)。本実施形態では、1ライン分の画像データの一方の端部から16バイトの分割画像データ毎に順次に実行される圧縮処理が、1ライン分の画像データの他方の端部まで実行されたか否かが判断される。 Next, it is determined whether or not the compression process has been executed up to the end of the image data for one line (step S110). In the present embodiment, whether or not the compression processing that is sequentially executed for each 16-byte divided image data from one end of the image data for one line is performed up to the other end of the image data for one line. Is judged.
1ライン分の画像データの終端まで圧縮処理が実行されていないと判断される場合(ステップS110:NO)、1ライン分の画像データの終端の分割画像データに対する圧縮処理が実行されるまで、ステップS102以下の処理が繰り返される。 When it is determined that the compression process has not been executed up to the end of the image data for one line (step S110: NO), the step is performed until the compression process is performed on the divided image data at the end of the image data for one line. The processing from S102 onward is repeated.
一方、1ライン分の画像データの終端まで圧縮処理が実行されたと判断される場合(ステップS110:YES)、複数ラインの画像データのうち最終ラインの画像データまで圧縮処理が完了されたか否かが判断される(ステップS111)。本実施形態では、バンド単位で取得されている画像データの最終ラインまで、圧縮処理が完了されたか否かが判断される。 On the other hand, when it is determined that the compression process has been executed up to the end of the image data for one line (step S110: YES), it is determined whether or not the compression process has been completed up to the last line of the image data of a plurality of lines. Determination is made (step S111). In the present embodiment, it is determined whether or not the compression process has been completed up to the last line of the image data acquired in band units.
最終ラインまで圧縮処理が完了されていないと判断される場合(ステップS111:NO)、最終ラインの圧縮処理が完了されるまで、ステップS101以下の処理が繰り返される。一方、最終ラインまで圧縮処理が完了されたと判断される場合(ステップS111:YES)、処理が終了される。 If it is determined that the compression process has not been completed up to the final line (step S111: NO), the process from step S101 is repeated until the final line compression process is completed. On the other hand, when it is determined that the compression process has been completed up to the final line (step S111: YES), the process ends.
以上のとおり、ステップS110〜S111に示す処理によれば、16バイトの分割画像データ単位で実行される1ライン分の画像データの圧縮処理が、1つのバンドを構成する複数のラインに対して実行される。その結果、1バンド分の画像データが圧縮され、圧縮後の画像データは、メモリ13に再度格納される。
As described above, according to the processing shown in steps S110 to S111, the compression processing of image data for one line executed in units of 16-byte divided image data is executed for a plurality of lines constituting one band. Is done. As a result, the image data for one band is compressed, and the compressed image data is stored again in the
そして、図4に示されるフローチャートの処理によれば、1ライン分の画像データを構成する複数の分割画像データのうち圧縮出力済みの分割画像データの伸長時間の積算値が閾値未満である場合には、画像データの伸長時間に余裕があるとして、複数種類の圧縮データの中からデータサイズが最小の圧縮データが選択される。一方、圧縮出力済みの分割画像データの伸長時間の積算値が閾値以上になる場合には、画像データの伸長時間に余裕がないとして、複数種類の圧縮データの中から伸長時間が最短の圧縮データが選択される。 Then, according to the processing of the flowchart shown in FIG. 4, when the integrated value of the decompression times of the divided image data that has already been compressed out of the plurality of divided image data constituting the image data for one line is less than the threshold. The compressed data having the smallest data size is selected from a plurality of types of compressed data on the assumption that the expansion time of the image data is sufficient. On the other hand, if the integrated value of the decompression time of the divided image data that has been compressed and output is equal to or greater than the threshold value, the compressed data with the shortest decompression time is selected from a plurality of types of compressed data, assuming that the decompression time of the image data is not sufficient Is selected.
このような構成によれば、1ライン分の画像データを一方の端部から他方の端部まで16バイト単位で順次に圧縮していく中で、データサイズが最小の圧縮データを出力データとして出力する処理と伸長時間が最短の圧縮データを出力データとして出力する処理とが、伸長時間の積算値と閾値との比較結果に応じて切り替えられることにより、データサイズと伸長時間の両方が最適化された1ライン分の圧縮済み画像データが取得される。 According to such a configuration, one line of image data is sequentially compressed from one end to the other end in units of 16 bytes, and compressed data having the smallest data size is output as output data. The data size and the decompression time are optimized by switching between the process to perform and the process to output the compressed data with the shortest decompression time as output data according to the comparison result of the decompression time integrated value and the threshold value. One line of compressed image data is acquired.
その結果、圧縮された画像データをリアルタイムに伸長しながら印刷処理を実行する印刷方式において、1ライン分の画像データの伸長処理が印刷処理に間に合わずに印刷エラーが発生してしまうことが防止される。さらに、画像データができる限り小さいデータサイズにまで圧縮されるため、RAM13の使用量が最小化される。
As a result, in a printing method in which printing processing is executed while decompressing compressed image data in real time, it is possible to prevent a printing error from occurring because the decompression processing of image data for one line is not in time for the printing processing. The Further, since the image data is compressed to the smallest possible data size, the amount of use of the
以上のとおり、本実施形態によれば、複数種類の圧縮アルゴリズムによって同時並行に生成される複数種類の圧縮データの中から、各圧縮データの伸長時間とデータサイズとに基づいて一の圧縮データが選択され、出力データとして出力される。したがって、画像データの圧縮結果として出力する圧縮データを複数種類の圧縮データの中から選択する際に、各圧縮データの伸長時間とデータサイズとを参照して、最適な圧縮データを選択することが可能となる。これにより、画像データの伸長時間が許容範囲に収まる範囲内で、画像データをより小さなサイズに圧縮することができる。 As described above, according to the present embodiment, one compressed data is selected from a plurality of types of compressed data generated in parallel by a plurality of types of compression algorithms based on the decompression time and data size of each compressed data. Selected and output as output data. Therefore, when selecting compressed data to be output as a compression result of image data from among a plurality of types of compressed data, it is possible to select the optimal compressed data by referring to the decompression time and data size of each compressed data. It becomes possible. As a result, the image data can be compressed to a smaller size within a range where the decompression time of the image data is within an allowable range.
また、本実施形態によれば、複数種類の圧縮アルゴリズムにより画像データが同時並行に圧縮されるので、圧縮方式を変更して画像データを圧縮し直す場合よりも効率よく画像データを圧縮することができる。さらに、画像データを圧縮し直すために元の画像データを保持しておく必要がなく、メモリの使用量が節約される。 In addition, according to the present embodiment, since image data is compressed in parallel by a plurality of types of compression algorithms, the image data can be compressed more efficiently than when the compression method is changed and the image data is compressed again. it can. Further, it is not necessary to retain the original image data in order to recompress the image data, and the amount of memory used can be saved.
本発明は、上記した実施形態のみに限定されるものではなく、特許請求の範囲内において、種々改変することができる。 The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope of the claims.
たとえば、上記実施形態では、伸長時間の積算値と閾値との比較結果に応じて、複数種類の圧縮データの中から、データサイズが最小の圧縮データまたは伸長時間が最短の圧縮データが選択された。しかしながら、複数種類の圧縮データの中から一の圧縮データを選択する方法は、上記実施形態に限定されるものではない。たとえば、伸長時間の積算値と閾値とを比較するのではなく、複数種類の圧縮データの伸長時間自体を所定の許容値と比較することにより、複数種類の圧縮データを許容値未満の伸長時間を有する圧縮データに絞り込み、絞り込まれた圧縮データの中から、データサイズが最小の圧縮データが選択されてもよい。 For example, in the above-described embodiment, the compressed data with the smallest data size or the compressed data with the shortest decompression time is selected from a plurality of types of compressed data according to the comparison result between the integrated value of the decompression time and the threshold value. . However, the method for selecting one compressed data from a plurality of types of compressed data is not limited to the above embodiment. For example, rather than comparing the integrated value of decompression time with a threshold value, the decompression time of a plurality of types of compressed data is compared with a predetermined allowable value, thereby reducing the decompression time of the plurality of types of compressed data below the allowable value. The compressed data having the smallest data size may be selected from the compressed data that have been narrowed down to the compressed data.
また、上記実施形態では、1ライン分の画像データを分割して得られる分割画像データ単位で画像データの圧縮処理が実行された。しかしながら、たとえば、1ライン分の画像データ単位で画像データが圧縮されてもよく、または、所定ライン数のバンド単位もしくは所定のブロック単位で画像データが圧縮されてもよい。 In the above-described embodiment, the image data compression processing is executed in units of divided image data obtained by dividing image data for one line. However, for example, the image data may be compressed in units of image data for one line, or the image data may be compressed in bands of a predetermined number of lines or predetermined blocks.
本実施形態にかかる画像処理装置における各種処理を行う手段および方法は、専用のハードウエア回路、またはプログラムされたコンピュータのいずれによっても実現することが可能である。上記プログラムは、たとえば、フレキシブルディスクおよびCD−ROM等のコンピュータ読み取り可能な記録媒体によって提供されてもよいし、インターネット等のネットワークを介してオンラインで提供されてもよい。この場合、コンピュータ読み取り可能な記録媒体に記録されたプログラムは、通常、ハードディスク等の記憶部に転送され記憶される。また、上記プログラムは、単独のアプリケーションソフトとして提供されてもよいし、装置の一機能としてその装置のソフトウエアに組み込まれてもよい。 The means and method for performing various processes in the image processing apparatus according to the present embodiment can be realized by either a dedicated hardware circuit or a programmed computer. The program may be provided by a computer-readable recording medium such as a flexible disk and a CD-ROM, or may be provided online via a network such as the Internet. In this case, the program recorded on the computer-readable recording medium is normally transferred to and stored in a storage unit such as a hard disk. The program may be provided as a single application software, or may be incorporated in the software of the device as one function of the device.
1 プリンタ、
11 CPU、
12 ROM、
13 RAM、
14 画像処理部、
15 データ出力部、
16 印刷部、
17 I/F制御部、
18 ホストI/F、
2 ホストPC、
101 ReadDMA回路、
102 画像処理モジュール、
103 圧縮モジュール、
104 WriteDMA回路、
111a,111b,111c,111d 第1〜第4圧縮アルゴリズム回路、
112a,112b,112c,112d 第1〜第4伸長時間検出回路、
113 サイズ情報比較回路、
114 伸長時間比較回路、
115 伸長時間積算回路、
116 選択回路、
117 データセレクト回路。
1 printer,
11 CPU,
12 ROM,
13 RAM,
14 Image processing unit,
15 data output section,
16 Printing department,
17 I / F control unit,
18 Host I / F,
2 host PC,
101 ReadDMA circuit,
102 image processing module,
103 compression module,
104 Write DMA circuit,
111a, 111b, 111c, 111d first to fourth compression algorithm circuits,
112a, 112b, 112c, 112d first to fourth extension time detection circuits,
113 Size information comparison circuit,
114 expansion time comparison circuit,
115 extension time integration circuit,
116 selection circuit,
117 Data select circuit.
Claims (10)
前記圧縮部により生成された前記複数種類の圧縮データのそれぞれに対して、当該圧縮データの伸長時間を求める伸長時間算出部と、
前記伸長時間算出部により求められた前記複数種類の圧縮データの伸長時間と各圧縮データのデータサイズとに基づいて、前記複数種類の圧縮データの中から一の圧縮データを選択する選択部と、
前記選択部により選択された前記圧縮データを、出力データとして出力する出力部と、を有することを特徴とする画像処理装置。 A compression unit that simultaneously compresses the same image data by a plurality of types of compression methods and generates a plurality of types of compressed data for the same image data;
For each of the plurality of types of compressed data generated by the compression unit, an expansion time calculation unit that calculates the expansion time of the compressed data;
A selection unit that selects one compressed data from the plurality of types of compressed data based on the decompression time of the plurality of types of compressed data obtained by the decompression time calculation unit and the data size of each compressed data;
An image processing apparatus comprising: an output unit that outputs the compressed data selected by the selection unit as output data.
前記圧縮部は、前記複数の分割画像データを順次に圧縮することを特徴とする請求項1に記載の画像処理装置。 The image data is divided image data obtained by dividing image data for one page into a plurality of pieces,
The image processing apparatus according to claim 1, wherein the compression unit sequentially compresses the plurality of divided image data.
前記出力済みの圧縮データの元となった前記分割画像データの総データサイズに基づいて、前記積算時間算出部により求められた前記積算時間の閾値を設定する設定部と、
前記積算時間が、前記設定部により設定された前記閾値未満であるか否かを判断する判断部と、をさらに有し、
前記判断部により前記積算時間が前記閾値未満であると判断される場合には、前記選択部は、前記複数種類の圧縮データの中から、データサイズが最小の圧縮データを選択し、前記判断部により前記積算時間が前記閾値以上であると判断される場合には、前記選択部は、前記複数種類の圧縮データの中から、前記伸長時間が最短の圧縮データを選択することを特徴とする請求項2に記載の画像処理装置。 An integration time calculation unit that integrates the decompression time of the compressed data that has been output as the output data, and calculates an integration time of the decompression time of the compressed data that has been output;
A setting unit that sets a threshold value of the integration time obtained by the integration time calculation unit based on the total data size of the divided image data that is the source of the output compressed data;
A determination unit that determines whether or not the accumulated time is less than the threshold set by the setting unit;
When the determination unit determines that the integration time is less than the threshold, the selection unit selects compressed data having a minimum data size from the plurality of types of compressed data, and the determination unit When the integration time is determined to be equal to or greater than the threshold, the selection unit selects the compressed data with the shortest decompression time from the plurality of types of compressed data. Item 3. The image processing apparatus according to Item 2.
前記ステップ(a)において生成された前記複数種類の圧縮データのそれぞれに対して、当該圧縮データの伸長時間を求めるステップ(b)と、
前記ステップ(b)において求められた前記複数種類の圧縮データの伸長時間と各圧縮データのデータサイズとに基づいて、前記複数種類の圧縮データの中から一の圧縮データを選択するステップ(c)と、
前記ステップ(c)において選択された前記圧縮データを、出力データとして出力するステップ(d)と、を有することを特徴とする画像処理方法。 A step (a) of simultaneously compressing the same image data by a plurality of types of compression methods and generating a plurality of types of compressed data for the same image data;
For each of the plurality of types of compressed data generated in step (a), obtaining a decompression time of the compressed data;
Step (c) of selecting one compressed data from among the plurality of types of compressed data based on the decompression time of the plurality of types of compressed data obtained in step (b) and the data size of each compressed data. When,
And (d) outputting the compressed data selected in step (c) as output data.
前記ステップ(a)において、前記複数の分割画像データが順次に圧縮されることを特徴とする請求項6に記載の画像処理方法。 The image data is divided image data obtained by dividing image data for one page into a plurality of pieces,
The image processing method according to claim 6, wherein in the step (a), the plurality of divided image data are sequentially compressed.
前記出力済みの圧縮データの元となった前記分割画像データの総データサイズに基づいて、前記ステップ(e)において求められた前記積算時間の閾値を設定するステップ(f)と、
前記積算時間が、前記ステップ(f)において設定された前記閾値未満であるか否かを判断するステップ(g)と、をさらに有し、
前記ステップ(g)において前記積算時間が前記閾値未満であると判断される場合には、前記ステップ(c)において、前記複数種類の圧縮データの中から、データサイズが最小の圧縮データが選択され、前記ステップ(g)において前記積算時間が前記閾値以上であると判断される場合には、前記ステップ(c)において、前記複数種類の圧縮データの中から、前記伸長時間が最短の圧縮データが選択されることを特徴とする請求項7に記載の画像処理方法。 (E) calculating the integration time of the decompression time of the compressed data that has been output by integrating the decompression time of the compressed data that has been output as the output data;
A step (f) of setting a threshold value of the integration time obtained in the step (e) based on a total data size of the divided image data that is a source of the output compressed data;
And (g) determining whether the accumulated time is less than the threshold value set in the step (f),
If it is determined in step (g) that the accumulated time is less than the threshold value, compressed data having the smallest data size is selected from the plurality of types of compressed data in step (c). When it is determined in step (g) that the accumulated time is equal to or greater than the threshold value, in step (c), compressed data with the shortest decompression time is selected from the plurality of types of compressed data. The image processing method according to claim 7, wherein the image processing method is selected.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009044839A JP4840462B2 (en) | 2009-02-26 | 2009-02-26 | Image processing apparatus, image processing method, and image processing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009044839A JP4840462B2 (en) | 2009-02-26 | 2009-02-26 | Image processing apparatus, image processing method, and image processing program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010200174A true JP2010200174A (en) | 2010-09-09 |
JP4840462B2 JP4840462B2 (en) | 2011-12-21 |
Family
ID=42824394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009044839A Expired - Fee Related JP4840462B2 (en) | 2009-02-26 | 2009-02-26 | Image processing apparatus, image processing method, and image processing program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4840462B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9374594B2 (en) | 2014-06-11 | 2016-06-21 | Brother Kogyo Kabushiki Kaisha | Converting apparatus |
JP2019134286A (en) * | 2018-01-31 | 2019-08-08 | 株式会社リコー | Encoding apparatus, encoding method, and encoding program |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09147093A (en) * | 1995-11-28 | 1997-06-06 | Canon Inc | Printing system, information processor and information processing method |
JPH1023271A (en) * | 1996-07-05 | 1998-01-23 | Canon Inc | Image-forming method and its device |
JP2006262208A (en) * | 2005-03-17 | 2006-09-28 | Ricoh Co Ltd | Information processing system, method and program for predicting expansion time of encoded file, and information recording medium |
-
2009
- 2009-02-26 JP JP2009044839A patent/JP4840462B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09147093A (en) * | 1995-11-28 | 1997-06-06 | Canon Inc | Printing system, information processor and information processing method |
JPH1023271A (en) * | 1996-07-05 | 1998-01-23 | Canon Inc | Image-forming method and its device |
JP2006262208A (en) * | 2005-03-17 | 2006-09-28 | Ricoh Co Ltd | Information processing system, method and program for predicting expansion time of encoded file, and information recording medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9374594B2 (en) | 2014-06-11 | 2016-06-21 | Brother Kogyo Kabushiki Kaisha | Converting apparatus |
JP2019134286A (en) * | 2018-01-31 | 2019-08-08 | 株式会社リコー | Encoding apparatus, encoding method, and encoding program |
JP7040058B2 (en) | 2018-01-31 | 2022-03-23 | 株式会社リコー | Encoding device |
Also Published As
Publication number | Publication date |
---|---|
JP4840462B2 (en) | 2011-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4476909B2 (en) | Printing apparatus, printing processing method, printing processing program, and recording medium | |
US20040190791A1 (en) | Image processing apparatus | |
JP2000295113A (en) | Huffman coded data compressor | |
JP2011049764A (en) | Data compression and decompression device | |
JP4840462B2 (en) | Image processing apparatus, image processing method, and image processing program | |
US20120121176A1 (en) | Image compression apparatus and image compression method | |
JP5020998B2 (en) | Image processing apparatus and image processing method | |
JP4009808B2 (en) | Image processing device | |
JP4121676B2 (en) | Image processing apparatus that performs compression and expansion, and electronic printing apparatus using the same | |
US8941882B2 (en) | Method of pre-processing data on a host machine for a host-based print system | |
JP2009239852A (en) | Image processing apparatus and image processing method | |
JP2009044547A (en) | Image processor and image processing method | |
JP2010041193A (en) | Image processing controller and image processing apparatus | |
JP6589642B2 (en) | Data processing apparatus and program | |
JP4446389B2 (en) | Interface device for compression / decompression module | |
JP6589316B2 (en) | Image compression apparatus and image processing apparatus | |
JP6541387B2 (en) | PROCESSING APPARATUS, CONTROL METHOD THEREOF, AND PROGRAM | |
JP4399965B2 (en) | Printing apparatus and printing method | |
JP2005144843A (en) | Image processor, method of processing image, image processing program, and computer readable recording medium recorded with the same | |
JP6775558B2 (en) | Image stretcher and its control method and program | |
JP2004072273A (en) | Picture processor, picture processing method, computer program and computer readable storage medium | |
CN107864381B (en) | Image processing apparatus and image processing method | |
JP5549937B2 (en) | Image processing apparatus and image processing method | |
JP2006157444A (en) | Image forming apparatus and method | |
JP6631119B2 (en) | Image processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110630 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110705 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110817 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20110906 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110919 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4840462 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20141014 Year of fee payment: 3 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |