JP2000138823A - Image processor - Google Patents

Image processor

Info

Publication number
JP2000138823A
JP2000138823A JP10311597A JP31159798A JP2000138823A JP 2000138823 A JP2000138823 A JP 2000138823A JP 10311597 A JP10311597 A JP 10311597A JP 31159798 A JP31159798 A JP 31159798A JP 2000138823 A JP2000138823 A JP 2000138823A
Authority
JP
Japan
Prior art keywords
line
data
lines
header
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10311597A
Other languages
Japanese (ja)
Inventor
Takeshi Aihara
剛 相原
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP10311597A priority Critical patent/JP2000138823A/en
Publication of JP2000138823A publication Critical patent/JP2000138823A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To simplify video data transfer processing by interleaving data other than bit map data of a line header, to which an identification number and a consecutive line number N are added, so as to compress the data in the case that the same data of a line are in existence consecutively on N lines, thereby decreasing the frequency of access to a memory. SOLUTION: When the same data of a line are in existence consecutively on N lines, an identification number is given to a data block for the consecutive N lines, the identification number and the consecutive line number N are provided as a line header to a head of the data block and other data than bit map data of the line header are interleaved, so as to cause the data to be compressed. A CPU expands the bit map data of each line to an image data storage section 101, compresses the bit map data and stores the compressed data in a compression data storage section 102. When the bit map data that are expanded in the image data signal 101 are compressed, the CPU references a tag and the consecutive line number N of the line header of each line.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、プリンタ装置や
他機能複写機等の画像処理装置、特に印字ビットマップ
データの圧縮効率の向上に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus such as a printer or a copier of another function, and more particularly to an improvement in compression efficiency of print bitmap data.

【0002】[0002]

【従来の技術】ホスト装置から白黒の文書データ等をプ
リンタ装置に送り印刷する場合、プリンタ装置のコント
ローラにあるRAMのページバッファに1ページ分の画
像イメージデータを展開し、展開した画像イメージデー
タの印刷方向の先頭のラインから最終ラインまでの全て
のラインに対し順に白又は黒の2値の印字画像データを
読み取りプリンタエンジンに送リ記録用紙に印刷してい
る。
2. Description of the Related Art When printing black-and-white document data from a host device to a printer device and printing it, image data of one page is developed in a page buffer of a RAM in a controller of the printer device, and the developed image image data is stored in a page buffer. For all lines from the first line to the last line in the printing direction, binary print image data of white or black is read in order and sent to the printer engine and printed on recording paper.

【0003】[0003]

【発明が解決しようとする課題】しかしながら展開した
1ページ分の画像イメージデータの内容に関わらず全て
のラインに対し順に白又は黒の2値の印字画素データを
読み取りプリンタエンジンに送っていると、1ページ分
のデータを全てRAMから読み取るビデオDMA処理が
必要となり、例えばテキストファイル等に多く含まれる
1ラインが全て白のデータをビデオDMA転送すると
き、白データを示す「0」データをシステムデータバス
を経由して1ライン分送り続けるなど無駄な処理を行わ
なければならず、システムバスが占有され、システム全
体のパフォーマンスに影響を与えていた。また、画像メ
モリ用のバスを専用化しシステムバスと分離して対応し
ている場合もあるが、この場合、データバス等が多くな
り、基板レイアウトやゲートアレイの設計が複雑化しコ
ストがかかってしまう。
However, if the binary print pixel data of white or black is sequentially read and sent to the printer engine for all the lines irrespective of the content of the developed image data of one page, Video DMA processing for reading all data for one page from the RAM is required. For example, when video DMA transfer is performed for all lines of white data, which are often included in a text file or the like, “0” data indicating white data is replaced with system data. Useless processing has to be performed, such as continuing to send one line via the bus, occupying the system bus and affecting the performance of the entire system. In some cases, the bus for the image memory is dedicated to support the system bus separately from the system bus. However, in this case, the number of data buses increases, and the layout of the substrate and the design of the gate array become complicated and cost increases. .

【0004】この発明はかかる短所を改善し、メモリへ
のアクセス回数を減らしてビデオデータ転送処理を簡略
化しシステムバスの負担を軽減することができる画像処
理装置を提供することを目的とするものである。
[0004] It is an object of the present invention to provide an image processing apparatus which can improve such disadvantages, reduce the number of accesses to the memory, simplify the video data transfer processing, and reduce the load on the system bus. is there.

【0005】[0005]

【課題を解決するための手段】この発明に係る画像処理
装置は、ホスト装置からの画像情報をビットマップデー
タに展開し、展開されたビットマップデータを1ライン
ずつビデオDMA転送して画像補正を行ったシリアルの
ビデオデータをプリンタエンジンに送信して画像を印刷
する画像処理装置において、ホスト装置からの画像情報
をビットマップデータに展開するときに、ある1ライン
と同じデータがNライン連続して存在する場合には、連
続しているNラインの同一データブロックに識別番号を
付け、識別番号と連続ライン数Nを同一データブロック
の先頭にラインヘッダとして持たせて、識別番号と連続
ライン数Nが付けられたラインヘッダのビットマップデ
ータ以外を間引いて圧縮させることを特徴とする。
An image processing apparatus according to the present invention expands image information from a host apparatus into bitmap data, and transfers the expanded bitmap data line by line in a video DMA to perform image correction. In an image processing apparatus that transmits serial video data to a printer engine and prints an image, when developing image information from a host device into bitmap data, the same data as one line is continuously used for N lines. If it exists, an identification number is assigned to the same data block of N consecutive lines, and the identification number and the number of continuous lines N are given as a line header at the beginning of the same data block, and the identification number and the number of continuous lines N Characters other than the bitmap data of the line header marked with are thinned out and compressed.

【0006】上記画像補正を行う画像補正部に、Mライ
ン分のビデオデータを格納するキャシュメモリを持た
せ、キャシュメモリ内の各ラインを上記同一データブロ
ックに付けた識別番号で管理すると良い。
It is preferable that the image correction section for performing the image correction has a cache memory for storing video data for M lines, and each line in the cache memory is managed by an identification number assigned to the same data block.

【0007】また、上記ビットマップデータを1ライン
づつ印字するときに各ラインヘッダの識別番号と連続ラ
イン数Nによりビデオデータを切換え擬似的に圧縮デー
タを伸長すると良い。
When printing the bitmap data one line at a time, it is preferable to switch the video data in accordance with the identification number of each line header and the number N of continuous lines to expand the compressed data in a pseudo manner.

【0008】さらに、上記キャシュメモリの内容を、印
刷部数の内容により1ページ印刷毎にクリアするか否か
を切換える。
Further, whether or not the content of the cache memory is cleared every time one page is printed is switched according to the content of the number of copies.

【0009】[0009]

【発明の実施の形態】この発明のプリンタ装置はホスト
装置に接続され、ホスト装置から送られた印刷データを
印刷する。プリンタ装置にはコントローラと印刷を行な
うプリンタエンジンを有する。コントローラはホストイ
ンタフェースとCPUとASICとプログラムROMと
フォントROMとRAMと画像補正部及びエンジンイン
タフェースを有する。RAMにはイメージデータ格納部
と圧縮データ格納部を有する。イメージデータ格納部と
圧縮データ格納部は、各ライン毎にビットマップデータ
を格納する画像データ領域を有し、各ラインの先頭に1
6ビットのラインヘッダを有する。ラインヘッダの上位
6ビットは各ラインを監視するタグと呼ばれる識別番号
を示し、下位は、ある1ラインと同じデータが連続して
存在する場合の連続ライン数Nを示す。画像補正部はR
AM上のビデオイメージデータを画像補正してエンジン
インタフェースに送るものであり、インプットバッファ
とビデオキャシュメモリとアウトプットバッファとライ
ンカウンタ及びビデオセレクタを有する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A printer device according to the present invention is connected to a host device and prints print data sent from the host device. The printer device has a controller and a printer engine for performing printing. The controller has a host interface, a CPU, an ASIC, a program ROM, a font ROM, a RAM, an image correction unit, and an engine interface. The RAM has an image data storage unit and a compressed data storage unit. Each of the image data storage unit and the compressed data storage unit has an image data area for storing bitmap data for each line.
It has a 6-bit line header. The upper six bits of the line header indicate an identification number called a tag for monitoring each line, and the lower six bits indicate the number N of continuous lines when the same data as one certain line is continuously present. The image correction unit is R
It is for correcting the video image data on the AM and sending it to the engine interface, and has an input buffer, a video cache memory, an output buffer, a line counter, and a video selector.

【0010】ホスト装置から送られた画像情報をビット
マップデータに展開してRAMのイメージデータ格納部
に格納するとき、CPUは、ある1ラインと同じデータ
がNライン連続して存在する場合、連続しているNライ
ンの同一データブロックに識別番号を付け、識別番号と
連続ライン数Nを同一データブロックの先頭にラインヘ
ッダとして持たせて展開する。このイメージデータ格納
部に展開されたビットマップデータを圧縮するとき、C
PUは識別番号と連続ライン数Nが付けられたラインヘ
ッダのビットマップデータ以外を間引いて圧縮して圧縮
データ格納部に格納する。
When the image information sent from the host device is expanded into bitmap data and stored in the image data storage section of the RAM, the CPU determines that if the same data as a certain line exists continuously for N lines, The same data block of N lines is assigned an identification number, and the identification number and the number N of continuous lines are assigned to the head of the same data block as a line header and developed. When compressing the bitmap data expanded in the image data storage,
The PU thins out and compresses data other than the bitmap data of the line header to which the identification number and the continuous line number N are attached, and stores the data in the compressed data storage unit.

【0011】圧縮データ格納部に格納されたビットマッ
プデータを印刷するとき、画像補正部に格納されている
各ラインのラインヘッダのタグが同じ場合は、ビットマ
ップデータを圧縮データ格納部からビデオキャシュメモ
リに1回だけロードしてDMA転送の回数を減らす。そ
してキャシュメモリにロードされたラインデータを1ラ
インづつ印字するときに各ラインヘッダの連続ライン数
に複数ライン数が指定されているときは、キャシュメモ
リ内の同じ識別番号のラインデータを指定されたライン
数分繰り返して出力して印刷処理の効率を高める。
When printing the bitmap data stored in the compressed data storage unit, if the line header tag of each line stored in the image correction unit is the same, the bitmap data is transferred from the compressed data storage unit to the video cache. The memory is loaded only once to reduce the number of DMA transfers. When the line data loaded in the cache memory is printed one line at a time, if a plurality of lines is specified in the continuous line number of each line header, the line data having the same identification number in the cache memory is specified. Output is repeated for the number of lines to increase the efficiency of the printing process.

【0012】[0012]

【実施例】図1はこの発明の一実施例の構成を示すブロ
ック図である。図に示すように、プリンタ装置1はホス
ト装置2に接続され、ホスト装置2から送られた印刷デ
ータを印刷するものであり、コントローラ3と印刷を行
なうプリンタエンジン4を有する。コントローラ3はホ
ストインタフェース5とCPU6とASIC7とプログ
ラムROM8とフォントROM9とRAM10と画像補
正部11及びエンジンインタフェース12を有する。ホ
ストインタフェース5はセントロI/FやRS232C
からなり、ホスト装置2と通信を行なう。CPU6はプ
ログラムROM8のプログラムやホスト装置2からのコ
マンドによってコントローラ3全体を制御する。ASI
C7はコントローラ3のデバイス又は外部インタフェー
スへのバスコントロールをするものであり、ビットマッ
プデータのDMA転送制御を行う。プログラムROM8
にはコントローラ3の制御プログラムや画像補正部11
の画像補正パターンが格納されている。フォントROM
9はフォントのパターンデータなどを記憶している。R
AM10はCPU6のワークメモリや入力データのイン
プットバッファ,プリントデータのページメモリ等に使
用する。RAM10は、図2に示すように、イメージデ
ータ格納部101及び圧縮データ格納部102を有す
る。イメージデータ格納部101と圧縮データ格納部1
02は、図3に示すように、各ライン毎にビットマップ
データを格納する画像データ領域103を有し、各ライ
ンの先頭に16ビットのラインヘッダ104を有する。
ラインヘッダ104の上位6ビットは各ラインを監視す
るタグと呼ばれる識別番号を示し、下位は、ある1ライ
ンと同じデータが連続して存在する場合の連続ライン数
Nを示す。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. As shown in the figure, the printer device 1 is connected to a host device 2, prints print data sent from the host device 2, and has a controller 3 and a printer engine 4 for printing. The controller 3 has a host interface 5, a CPU 6, an ASIC 7, a program ROM 8, a font ROM 9, a RAM 10, an image correction unit 11, and an engine interface 12. Host interface 5 is Centro I / F or RS232C
And communicates with the host device 2. The CPU 6 controls the entire controller 3 according to a program in the program ROM 8 and a command from the host device 2. ASI
C7 controls a bus to a device of the controller 3 or an external interface, and controls DMA transfer of bitmap data. Program ROM 8
The control program of the controller 3 and the image correction unit 11
Are stored. Font ROM
Reference numeral 9 stores font pattern data and the like. R
The AM 10 is used as a work memory of the CPU 6, an input buffer for input data, a page memory for print data, and the like. The RAM 10 has an image data storage unit 101 and a compressed data storage unit 102, as shown in FIG. Image data storage unit 101 and compressed data storage unit 1
02 has an image data area 103 for storing bitmap data for each line as shown in FIG. 3, and has a 16-bit line header 104 at the head of each line.
The upper six bits of the line header 104 indicate an identification number called a tag for monitoring each line, and the lower six bits indicate the number N of continuous lines when the same data as one certain line is continuously present.

【0013】画像補正部11はRAM10上のビデオイ
メージデータを画像補正してエンジンインタフェース1
2に送るものであり、図2に示すように、インプットバ
ッファ111とビデオキャシュメモリ112とアウトプ
ットバッファ113とラインカウンタ114及びビデオ
セレクタ115を有する。インプットバッファ111は
RAM10から取り込まれるビットマップパラレルデー
タをシリアルデータに変換する。ビデオキャシュメモリ
112はインプットバッファ111からのシリアルデー
タを複数ライン分格納するものであり、各ラインはライ
ンの先頭に設けられたラインヘッダのタグで管理され
る。アウトプットバッファ113はビデオキャシュメモ
リ112から出力されたビデオデータをビデオクロック
に同期させて出力する。ラインカウンタ114はライン
ゲート信号とビデオクロックを入力して、画像データを
1ライン出力するたびにトリガ信号を出力する。ビデオ
セレクタ115はラインカウンタ114からのトリガ信
号により、1ライン毎にラインヘッダ104の情報によ
ってビデオキャシュメモリ112内のビデオデータを切
替えて選択する。エンジンインタフェース12はプリン
タエンジン4とコマンドとステータスや印字データの通
信を行う。
An image correcting section 11 corrects the image of the video image data on the RAM 10 to perform image correction on the engine interface 1.
2 and includes an input buffer 111, a video cache memory 112, an output buffer 113, a line counter 114, and a video selector 115, as shown in FIG. The input buffer 111 converts bitmap parallel data fetched from the RAM 10 into serial data. The video cache memory 112 stores serial data from the input buffer 111 for a plurality of lines, and each line is managed by a tag of a line header provided at the head of the line. The output buffer 113 outputs the video data output from the video cache memory 112 in synchronization with a video clock. The line counter 114 receives a line gate signal and a video clock, and outputs a trigger signal every time one line of image data is output. The video selector 115 switches and selects video data in the video cache memory 112 according to the information of the line header 104 for each line in response to a trigger signal from the line counter 114. The engine interface 12 communicates commands, statuses and print data with the printer engine 4.

【0014】上記のように構成したプリンタ装置1で、
例えば図4に示す表ファイル21を印刷するときの圧縮
処理するときの動作を説明する。図4(a)に示す表フ
ァイ21の印刷データの先頭部を拡大してライン別に見
ると、図4(b)に示すようになる。図4(b)に示す
ように、先頭の1ラインと2ラインは表ファイル21の
上の横線だけを示すために白と黒の同一データとなり、
3ラインから5ラインは表ファイル21の縦線だけを示
すため白と黒のデータが繰り返す同一データとなり、6
ラインから50ラインはフォントがあるため、各ライン
で全て異なるデータになる。51ラインから53ライン
は表ファイル21の縦線だけを示すため白と黒のデータ
が繰り返す同一データとなり、3ラインから5ラインと
同一データとなる。また、54ラインと55ラインは表
ファイル21の横線だけを示すために白と黒の同一デー
タとなり、1ラインと2ラインと同じデータになり、5
6ラインから58ラインは表ファイル21の縦線だけを
示すため白と黒のデータが繰り返す同一データとなり、
3ラインから5ラインと同じデータになり、59ライン
から100ラインはフォントがあるため、各ラインで全
て異なるデータになる。
In the printer device 1 configured as described above,
For example, an operation when performing compression processing when printing the table file 21 shown in FIG. 4 will be described. FIG. 4B shows an enlarged view of the head of the print data of the table file 21 shown in FIG. As shown in FIG. 4B, the first line and the first line are the same data of white and black because only the horizontal line on the table file 21 is shown.
Lines 3 to 5 show only vertical lines of the table file 21, and are the same data in which white and black data are repeated.
Since there are fonts in the 50 lines from the line, different data are obtained for each line. Lines 51 to 53 indicate only vertical lines of the table file 21, and are the same data in which white and black data are repeated, and are the same data as lines 3 to 5. Lines 54 and 55 show the same data of white and black because they show only the horizontal lines of the table file 21, and have the same data of lines 1 and 2;
Lines 6 to 58 are the same data in which white and black data are repeated because only the vertical lines of table file 21 are shown.
The data is the same as the 3rd to 5th lines, and since the 59th to 100th lines have fonts, all the lines have different data.

【0015】このような表ファイル21を示す印刷デー
タがホスト装置2からプリンタ装置1に送られると、C
PU6は送られた印刷データをRAM10のイメージデ
ータ格納部101に1ライン毎にビットマップデータと
して展開する。このとき、CPU6は各ラインを解読
し、図3(a)に示すように、その情報をラインヘッダ
104として16ビットのデータを1ラインのビットマ
ップデータの先頭に付加して展開する。このラインヘッ
ダ104を付加するときに1ライン目のラインヘッダ1
04のタグを使用しないことを示す「0」にし、連続ラ
イン数Nを「1」とする。次ぎに2ライン目のビットマ
ップデータを解読して、図3(a)に示すように、2ラ
イン目のビットマップデータが1ライン目のビットマッ
プデータと同一であると判定すると、1ライン目のライ
ンヘッダ104のタグを「1」とし、連続ライン数Nを
「2」とし、2ライン目にラインヘッダ104を付加せ
ずにビットマップデータとして展開する。次ぎに3ライ
ン目のビットマップデータを解読して、3ライン目のビ
ットマップデータが1ライン目のビットマップデータと
異なると判定すると、3ライン目のラインヘッダ104
のタグを「0」とし、連続ライン数Nを「1」とする。
引き続いて4ライン目のビットマップデータを解読し
て、4ライン目のビットマップデータが3ライン目のビ
ットマップデータと同一であると判定すると、既に設定
されているタグのラインデータと比較して、等しければ
そのタグ、等しくなければ既に設定されいるタグに
「1」を加え、3ライン目のラインヘッダ104のタグ
を「2」とし、4ライン目にラインヘッダ104を付加
せずにビットマップデータとして展開する。同様に5ラ
イン目のビットマップデータを解読して、5ライン目の
ビットマップデータが3ライン目のビットマップデータ
と同一であると判定すると、連続ライン数Nを「3」と
し、5ライン目にラインヘッダ104を付加せずにビッ
トマップデータとして展開する。このようにして各ライ
ンのビットマップデータを順次展開する。
When print data indicating such a table file 21 is sent from the host device 2 to the printer device 1, C
The PU 6 develops the sent print data in the image data storage unit 101 of the RAM 10 as bitmap data line by line. At this time, the CPU 6 decodes each line, and as shown in FIG. 3A, develops the information as a line header 104 by adding 16-bit data to the head of one-line bitmap data. When adding this line header 104, the first line header 1
It is set to “0” indicating that the 04 tag is not used, and the number of continuous lines N is set to “1”. Next, the bit map data of the second line is decoded, and if it is determined that the bit map data of the second line is the same as the bit map data of the first line as shown in FIG. Is set to "1", the number N of continuous lines is set to "2", and the line header 104 is developed as bitmap data without adding the line header 104 to the second line. Next, the bit map data of the third line is decoded, and if it is determined that the bit map data of the third line is different from the bit map data of the first line, the line header 104 of the third line is determined.
Is set to "0", and the number N of continuous lines is set to "1".
Subsequently, the bit map data on the fourth line is decoded, and if it is determined that the bit map data on the fourth line is the same as the bit map data on the third line, the bit map data on the fourth line is compared with the line data of the already set tag. If the tag is equal, the tag is set to “1”, and if not, the tag of the line header 104 of the third line is set to “2”, and the bitmap is added without adding the line header 104 to the fourth line. Expand as data. Similarly, if the bitmap data of the fifth line is decoded and it is determined that the bitmap data of the fifth line is the same as the bitmap data of the third line, the number N of continuous lines is set to “3” and the fifth line is set. Is developed as bitmap data without adding the line header 104 to the data. Thus, the bitmap data of each line is sequentially developed.

【0016】この各ラインのビットマップデータを展開
するときに、6ラインから50ラインは全て異なるデー
タであるから、6ラインから50ラインのラインヘッダ
104にはタグを「0」とし、連続ライン数Nを「1」
としてビットマップデータを展開する。また、51ライ
ンから53ラインは3ラインから5ラインと同じデータ
であるため、51ラインのラインヘッダ104のタグを
「2」とし、連続ライン数Nを「3」とし、52ライン
と53ラインにはラインヘッダ104を付加せずにビッ
トマップデータとして展開する。54ラインと55ライ
ンのビットマップデータは1ラインと2ラインと同じで
あから、54ラインのラインヘッダ104のタグを
「1」とし、連続ライン数Nを「2」とし、56ライン
から58ラインのビットマップデータは3ラインから5
ラインと同じデータであるため、56ラインのラインヘ
ッダ104のタグを「2」とし、連続ライン数Nを
「3」とする。
When the bitmap data of each line is developed, since the lines 6 to 50 are all different data, the tag is set to “0” in the line header 104 of the line 6 to 50, and N is "1"
To expand the bitmap data. Since lines 51 to 53 are the same data as lines 3 to 5, the tag of the line header 104 of the 51 line is set to “2”, the number N of continuous lines is set to “3”, and the 52 Is developed as bitmap data without adding the line header 104. Since the bitmap data of 54 lines and 55 lines is the same as 1 line and 2 lines, the tag of the line header 104 of 54 lines is set to “1”, the number of continuous lines N is set to “2”, and 56 lines to 58 lines Bitmap data from 3 lines to 5
Since the data is the same as the line, the tag of the 56-line line header 104 is set to “2”, and the number N of continuous lines is set to “3”.

【0017】上記のようにしてイメージデータ格納部1
01に各ラインのビットマップデータを展開した後、C
PU6は展開したビットマップデータを圧縮して圧縮デ
ータ格納部102に格納する。このイメージデータ格納
部101に展開されたビットマップデータを圧縮すると
きにCPU6は各ラインのラインヘッダ104のタグと
連続ライン数Nを参照し、ラインヘッダ104のタグと
連続ライン数Nが付加されたライン毎に、ラインヘッダ
104とビットマップデータを圧縮データ格納部102
に展開する。例えば図3に示した各ラインのビットマッ
プデータを圧縮すると、図4に示すように第1ラインに
タグが「1」と連続ライン数Nを「2」としたラインヘ
ッダ104と1ライン目のビットマップデータを圧縮デ
ータ格納部102に格納し、2ライン目のビットマップ
データを圧縮データ格納部102に格納せず、圧縮デー
タ格納部102の第2ラインにタグが「2」と連続ライ
ン数Nを「3」としたラインヘッダ104と3ライン目
のビットマップデータを展開し、4ライン目と5ライン
目のビットマップデータをカットする。また、6ライン
から50ラインのラインヘッダ104はタグが「0」で
あり、連続ライン数Nが「1」であるからそのまま圧縮
データ格納部102に格納する。このように同一データ
が連続しているラインをカットしてラインヘッダ104
が付加されたラインのビットマップデータを圧縮データ
格納部102に格納することにより、図4に示す表ファ
イル21の印刷データの1ラインから100ラインまで
のデータのなかから11ライン分のデータをカットする
ことができ、1ラインが2024ビット(253バイ
ト)とした場合、2783バイトのデータを圧縮するこ
とができる。
As described above, the image data storage unit 1
01 after expanding the bitmap data of each line,
The PU 6 compresses the decompressed bitmap data and stores it in the compressed data storage unit 102. When compressing the bitmap data expanded in the image data storage unit 101, the CPU 6 refers to the tag of the line header 104 and the number N of continuous lines of each line, and adds the tag of the line header 104 and the number N of continuous lines. For each line, a line header 104 and bitmap data are stored in a compressed data storage unit 102.
Expand to For example, when the bitmap data of each line shown in FIG. 3 is compressed, as shown in FIG. 4, the tag is “1” on the first line and the line header 104 with the number N of continuous lines is “2” and the first line The bitmap data is stored in the compressed data storage unit 102, the bitmap data of the second line is not stored in the compressed data storage unit 102, and the tag is “2” in the second line of the compressed data storage unit 102 and the number of continuous lines. The line header 104 where N is set to “3” and the bitmap data of the third line are developed, and the bitmap data of the fourth and fifth lines are cut. In addition, since the tag of the line header 104 of 6 to 50 lines is “0” and the number N of continuous lines is “1”, it is stored in the compressed data storage unit 102 as it is. In this way, the line in which the same data is continuous is cut and the line header 104 is cut.
Is stored in the compressed data storage unit 102, thereby cutting 11 lines of data from the 1st to 100th lines of the print data of the table file 21 shown in FIG. When one line has 2024 bits (253 bytes), 2,783 bytes of data can be compressed.

【0018】上記のようにRAM10の圧縮データ格納
部102に圧縮されたビットマップデータを印刷すると
きの動作を図5のフローチャートを参照して説明する。
印刷動作を開始すると、CPU6は圧縮データ格納部1
02の第1ラインに格納された1ライン目のラインヘッ
ダ104を画像補正部11のビデオセレクタ115に転
送する(ステップS1,S2)。ビデオセレクタ115
は転送されたラインヘッダ104のタグが「0」か否を
判定し(ステップS3)、ラインヘッダ104のタグが
「0」以外のときは、ビデオキャシュメモリ112の該
当するタグのアドレスにラインデータが有るかどうかを
確認する(ステップS4)。この確認の結果、ビデオキ
ャシュメモリ112の該当するタグのアドレスにライン
データがないときは、ビデオDMAリクエストをASI
C7に発行する。すなわち圧縮データ格納部102に格
納された1ライン目のラインヘッダ104のタグは
「1」であり、ビデオキャシュメモリ112のタグ
「1」のアドレスにラインデータがないから、ビデオD
MAリクエストをASIC7に発行して圧縮データ格納
部102から1ライン目のラインヘッダ104とビット
マップデータをインプットバッファ111を介してビデ
オキャシュメモリ112に転送させ、ビデオキャシュメ
モリ112のタグが「1」のアドレスと出力ポートにロ
ードする(ステップS5)。このビデオキャシュメモリ
112の出力ポートにロードされた1ライン分のデータ
をアウトプットバッファ113を介してビデオデータと
してエンジンインタフェース12に送りプリンタエンジ
ン4で1ライン目を印刷させる(ステップS7)。ま
た、ビデオキャシュメモリ112にロードされた1ライ
ン目のラインヘッダ104の連続ライン数Nが「2」で
あるから、ライン数を+1にして引き続きビデオキャシ
ュメモリ112の出力ポートにロードされた1ライン分
のデータをアウトプットバッファ113を介してビデオ
データとしてエンジンインタフェース12に送りプリン
タエンジン4で2ライン目を印刷させる(ステップS
8,S9,S7)。次ぎに圧縮データ格納部102の第
2ラインに格納された3ライン目のラインヘッダ104
をビデオセレクタ115に転送し(ステップS10,S
11,S2)、1ライン目と2ライン目と同様にして3
ライン目と4ライン目及び5ライン目を印刷させる(ス
テップS3〜S5,S7〜S9)。
The operation for printing the compressed bitmap data in the compressed data storage unit 102 of the RAM 10 as described above will be described with reference to the flowchart of FIG.
When the printing operation is started, the CPU 6 sets the compressed data storage 1
The line header 104 of the first line stored in the first line 02 is transferred to the video selector 115 of the image correction unit 11 (steps S1 and S2). Video selector 115
Determines whether the tag of the transferred line header 104 is "0" (step S3). If the tag of the line header 104 is not "0", the line data is added to the address of the corresponding tag in the video cache memory 112. Is checked (step S4). As a result of this check, if there is no line data at the address of the corresponding tag in the video cache memory 112, the video DMA request is sent to the ASI
Issue to C7. That is, since the tag of the line header 104 of the first line stored in the compressed data storage unit 102 is “1” and there is no line data at the address of the tag “1” of the video cache memory 112,
An MA request is issued to the ASIC 7, and the line header 104 and bitmap data of the first line from the compressed data storage unit 102 are transferred to the video cache memory 112 via the input buffer 111, and the tag of the video cache memory 112 is set to "1". (Step S5). The data for one line loaded into the output port of the video cache memory 112 is sent as video data to the engine interface 12 via the output buffer 113, and the first line is printed by the printer engine 4 (step S7). Further, since the number of continuous lines N of the first line header 104 loaded in the video cache memory 112 is “2”, the number of lines is set to +1 and one line continuously loaded to the output port of the video cache memory 112 is set. The minute data is sent to the engine interface 12 as video data via the output buffer 113 and the printer engine 4 prints the second line (step S).
8, S9, S7). Next, the line header 104 of the third line stored in the second line of the compressed data storage unit 102
Is transferred to the video selector 115 (steps S10 and S10).
11, S2) 3 in the same manner as the first and second lines
The fourth line and the fifth line are printed (steps S3 to S5, S7 to S9).

【0019】また、6ライン目から50ライン目を印刷
するとき、ビデオセレクタ115は転送されたラインヘ
ッダ104のタグが「0」と判定すると(ステップS
2,S3)、圧縮データ格納部102に格納されたビッ
トマップデータをインプットバッファ111を介して各
ライン毎にビデオDMA転送によりビデオキャシュメモ
リ112の出力ポートにロードさせ(ステップS1
2)、ビデオキャシュメモリ112の出力ポートにロー
ドされた1ライン分のデータをアウトプットバッファ1
13を介してビデオデータとしてエンジンインタフェー
ス12に送りプリンタエンジン4で印刷させる(ステッ
プS13,S14)。
When printing the sixth to fiftieth lines, the video selector 115 determines that the tag of the transferred line header 104 is "0" (step S).
2, S3), the bitmap data stored in the compressed data storage unit 102 is loaded into the output port of the video cache memory 112 by video DMA transfer for each line via the input buffer 111 (step S1).
2) The data for one line loaded into the output port of the video cache memory 112 is stored in the output buffer 1
The data is sent as video data to the engine interface 12 via the printer interface 13 and printed by the printer engine 4 (steps S13 and S14).

【0020】また、51ライン目を印刷するとき、ビデ
オセレクタ115は転送されたラインヘッダ104のタ
グが「2」を検出すると(ステップS2,S3)、ビデ
オキャシュメモリ112のタグが「2」のアドレスにあ
るラインデータを出力ポートにロードさせ(ステップS
6)、ビデオキャシュメモリ112の出力ポートにロー
ドされた1ライン分のデータをアウトプットバッファ1
13を介してビデオデータとしてエンジンインタフェー
ス12に送りプリンタエンジン4で印刷させる(ステッ
プS7)。そして51ライン目の連続ライン数Nが
「3」であるから、同じデータを2回連続してアウトプ
ットバッファ113を介してビデオデータとしてエンジ
ンインタフェース12に送り、51ライン目と52ライ
ン目と53ライン目の3ライン分の同じデータを印刷さ
せる(ステップS8,S9,S7)。54ライン目を印
刷するとき、ビデオセレクタ115は転送されたライン
ヘッダ104のタグが「1」を検出すると(ステップS
2,S3)、ビデオキャシュメモリ112のタグが
「1」のアドレスにあるラインデータを出力ポートにロ
ードさせ(ステップS6)、ビデオキャシュメモリ11
2の出力ポートにロードされた1ライン分のデータをア
ウトプットバッファ113を介してビデオデータとして
エンジンインタフェース12に送りプリンタエンジン4
で印刷させる(ステップS7)。この場合、54ライン
目の連続ライン数Nが「2」であるから、同じデータを
ビデオキャシュメモリ112から引き続いて出力して5
5ライン目を印刷させる(ステップS8,S9,S
7)。
When printing the 51st line, when the video selector 115 detects that the tag of the transferred line header 104 is “2” (steps S2 and S3), the video selector 115 determines that the tag of the video cache memory 112 is “2”. Load the line data at the address to the output port (step S
6) The data of one line loaded into the output port of the video cache memory 112 is stored in the output buffer 1
The data is sent to the engine interface 12 as video data via the printer 13 and printed by the printer engine 4 (step S7). Since the number N of continuous lines of the 51st line is “3”, the same data is transmitted to the engine interface 12 as video data through the output buffer 113 twice in succession, and the 51st line, the 52nd line, and the 53rd line. The same data for the third line is printed (steps S8, S9, S7). When printing the 54th line, the video selector 115 detects that the tag of the transferred line header 104 is “1” (Step S).
2, S3), the line data at the address of which the tag of the video cache memory 112 is "1" is loaded into the output port (step S6), and the video cache memory 11 is loaded.
2 is sent to the engine interface 12 as video data via the output buffer 113 via the output buffer 113, and the printer engine 4
(Step S7). In this case, since the number of continuous lines N of the 54th line is “2”, the same data is continuously output from the video cache memory 112 and
Print the fifth line (steps S8, S9, S
7).

【0021】このようにして、圧縮データ格納部102
に格納されている各ラインのラインヘッダ104のタグ
が同じ場合は、ビットマップデータを圧縮データ格納部
102からビデオキャシュメモリ112に1回ロードす
れは良く、DMA転送の回数を減らしてシステムバスの
負担を軽減することができる。
Thus, the compressed data storage unit 102
If the tag of the line header 104 of each line is the same, the bitmap data can be loaded from the compressed data storage unit 102 to the video cache memory 112 once. The burden can be reduced.

【0022】以下同様にして各ラインのデータを印刷さ
せ、表ファイル21の全てのラインを印刷し(ステップ
S11)、表ファイル21を1部だけ印刷する場合は、
次回印刷するファイルが同一データではないから、次回
印刷するために圧縮されたビットマップデータのライン
ヘッダ104のタグとビデオキャシュメモリ112上に
記憶されているタグとラインデータの互換性がないた
め、ビデオキャシュメモリ112の全ての内容をクリア
する(ステップS15,S16)。また、表ファイル2
1を複数部印刷する場合は、次回印刷するファイルが同
一データであるから、印刷するために圧縮されたビット
マップデータのラインヘッダ104のタグとビデオキャ
シュメモリ112上に記憶されているタグとラインデー
タの互換性があるため、ビデオキャシュメモリ112の
全ての内容をクリアしないで保存しておく。このように
ビデオキャシュメモリ112の全ての内容を保存してお
くことにより、各ラインのビットマップデータを圧縮デ
ータ格納部102からビデオキャシュメモリ112にロ
ードしなくて済み、効率良く印刷することができる。
In the same manner, the data of each line is printed, all the lines of the table file 21 are printed (step S11), and if only one copy of the table file 21 is to be printed,
Since the file to be printed next time is not the same data, there is no compatibility between the tag of the line header 104 of the bitmap data compressed for the next printing and the tag stored in the video cache memory 112 and the line data. All contents of the video cache memory 112 are cleared (steps S15 and S16). Table file 2
When printing a plurality of copies of “1”, since the file to be printed next is the same data, the tag of the line header 104 of the bitmap data compressed for printing and the tag and line stored in the video cache memory 112 are used. Due to data compatibility, all contents of the video cache memory 112 are stored without being cleared. By storing all the contents of the video cache memory 112 in this manner, it is not necessary to load the bitmap data of each line from the compressed data storage unit 102 to the video cache memory 112, and printing can be performed efficiently. .

【0023】[0023]

【発明の効果】この発明は以上説明したように、ある1
ラインと同じデータがNライン連続して存在する場合、
連続しているNラインの同一データブロックに識別番号
を付け、識別番号と連続ライン数Nを同一データブロッ
クの先頭にラインヘッダとして持たせて、識別番号と連
続ライン数Nが付けられたラインヘッダのビットマップ
データ以外を間引いて圧縮させるから、ビットマップデ
ータを効率良く圧縮することができる。
According to the present invention, as described above, a certain
When the same data as the line exists continuously for N lines,
An identification number is assigned to the same data block of continuous N lines, and the identification number and the number of continuous lines N are provided as a line header at the beginning of the same data block, and the line header with the identification number and the number of continuous lines N attached The bitmap data other than the bitmap data is thinned and compressed, so that the bitmap data can be efficiently compressed.

【0024】また、画像補正を行う画像補正部に複数ラ
イン分のビデオデータを格納するキャシュメモリ内の各
ラインをビットマップデータの同一データブロックに付
けた識別番号で管理することにより、同じビットマップ
データをキャシュメモリには1回ロードすれは良く、D
MA転送の回数を減らしてシステムバスの負担を軽減す
ることができる。
Also, by managing each line in the cache memory for storing a plurality of lines of video data in the image correction unit for performing image correction by using an identification number assigned to the same data block of the bitmap data, the same bitmap can be obtained. It is good to load the data once into the cache memory.
The burden on the system bus can be reduced by reducing the number of MA transfers.

【0025】さらに、印字ビットマップデータを1ライ
ンづつ印字するとき、各ラインヘッダの連続ライン数に
複数ライン数が指定されている場合、キャシュメモリ内
の同じ識別番号のアドレスのラインデータを指定された
ライン数分繰り返して出力することにより、印刷処理の
効率を高めることができる。
Further, when printing the print bitmap data one line at a time, if a plurality of lines is specified as the number of continuous lines in each line header, the line data of the same identification number in the cache memory is specified. By repeatedly outputting the data for the number of lines, the efficiency of the printing process can be increased.

【0026】また、キャシュメモリの内容を、印刷部数
の内容により1ページ印刷毎にクリアするか否かを切換
え、複数部印刷するときはビデオキャシュメモリの全て
の内容を保存しておくことにより、各ラインのビットマ
ップデータをビデオキャシュメモリにロードしなくて済
み、効率良く印刷することができる。
Also, by switching whether or not the contents of the cache memory are cleared every time one page is printed according to the content of the number of copies, and when printing a plurality of copies, the entire contents of the video cache memory are saved. It is not necessary to load the bitmap data of each line into the video cache memory, and printing can be performed efficiently.

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

【図1】この発明の実施例の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention.

【図2】RAMと画像補正部の構成を示すブロック図で
ある。
FIG. 2 is a block diagram illustrating a configuration of a RAM and an image correction unit.

【図3】RAMに展開されたビットマップデータの説明
図である。
FIG. 3 is an explanatory diagram of bitmap data developed in a RAM.

【図4】印刷する表ファイルの説明図である。FIG. 4 is an explanatory diagram of a table file to be printed.

【図5】印刷処理を示すフローチャートである。FIG. 5 is a flowchart illustrating a printing process.

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

1 プリンタ装置 2 ホスト装置 3 コントローラ 4 プリンタエンジン 5 ホストインタフェース 6 CPU 7 ASIC 8 プログラムROM 9 フォントROM 10 RAM 11 画像補正部 12 エンジンインタフェース 101 イメージデータ格納部 102 圧縮データ格納部 111 インプットバッファ 112 ビデオキャシュメモリ 113 アウトプットバッファ 114 ラインカウンタ 115 ビデオセレクタ Reference Signs List 1 printer device 2 host device 3 controller 4 printer engine 5 host interface 6 CPU 7 ASIC 8 program ROM 9 font ROM 10 RAM 11 image correction unit 12 engine interface 101 image data storage unit 102 compressed data storage unit 111 input buffer 112 video cache memory 113 Output buffer 114 Line counter 115 Video selector

フロントページの続き Fターム(参考) 2C087 AA09 AB05 BA02 BA03 BC01 BD40 BD41 BD46 CA05 5B021 AA01 AA30 BB02 BB11 BB12 BB14 CC08 DD02 DD14 5B047 AA01 AB01 EA02 EB05 EB17 5C076 AA21 BA02 BA03 BA04 BB04 BB06 BB42 CA02 5C078 BA43 CA27 DA01 DA02 DB13Continued on the front page F-term (reference) 2C087 AA09 AB05 BA02 BA03 BC01 BD40 BD41 BD46 CA05 5B021 AA01 AA30 BB02 BB11 BB12 BB14 CC08 DD02 DD14 5B047 AA01 AB01 EA02 EB05 EB17 5C076 AA21 BA02 BA03 DA02 BA03 BB04 DA06

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ホスト装置からの画像情報をビットマッ
プデータに展開し、展開されたビットマップデータを1
ラインずつビデオDMA転送して画像補正を行ったシリ
アルのビデオデータをプリンタエンジンに送信して画像
を印刷する画像処理装置において、 ホスト装置からの画像情報をビットマップデータに展開
するときに、ある1ラインと同じデータがNライン連続
して存在する場合、連続しているNラインの同一データ
ブロックに識別番号を付け、識別番号と連続ライン数N
を同一データブロックの先頭にラインヘッダとして持た
せて、識別番号と連続ライン数Nが付けられたラインヘ
ッダのビットマップデータ以外を間引いて圧縮させるこ
とを特徴とする画像処理装置。
An image information from a host device is developed into bitmap data, and the developed bitmap data is converted into one bitmap data.
In an image processing apparatus that transmits serial video data that has undergone image correction by line-by-line video DMA transfer and image correction to a printer engine to print an image, when image information from a host device is expanded into bitmap data, If the same data as the line exists continuously for N lines, an identification number is assigned to the same data block of the continuous N lines, and the identification number and the number of continuous lines N
An image processing apparatus, wherein a line header is provided at the beginning of the same data block, and data other than the bitmap data of the line header to which the identification number and the continuous line number N are attached is thinned out and compressed.
【請求項2】 上記画像補正を行う画像補正部にMライ
ン分のビデオデータを格納するキャシュメモリを持た
せ、キャシュメモリ内の各ラインを上記同一データブロ
ックに付けた識別番号で管理する請求項1記載の画像処
理装置。
2. An image correcting section for performing the image correction, comprising a cache memory for storing video data for M lines, wherein each line in the cache memory is managed by an identification number assigned to the same data block. 2. The image processing device according to 1.
【請求項3】 上記ビットマップデータを1ラインづつ
印字するときに各ラインヘッダの識別番号と連続ライン
数Nによりビデオデータを切換え擬似的に圧縮データを
伸長する請求項1又は2記載の画像処理装置。
3. The image processing according to claim 1, wherein when the bitmap data is printed one line at a time, video data is switched according to the identification number of each line header and the number N of continuous lines to expand the compressed data in a pseudo manner. apparatus.
【請求項4】 上記キャシュメモリの内容を、印刷部数
の内容により1ページ印刷毎にクリアするか否かを切換
える請求項3記載の画像処理装置。
4. The image processing apparatus according to claim 3, wherein whether or not the contents of the cache memory are cleared each time one page is printed is switched according to the contents of the number of copies.
JP10311597A 1998-11-02 1998-11-02 Image processor Pending JP2000138823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10311597A JP2000138823A (en) 1998-11-02 1998-11-02 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10311597A JP2000138823A (en) 1998-11-02 1998-11-02 Image processor

Publications (1)

Publication Number Publication Date
JP2000138823A true JP2000138823A (en) 2000-05-16

Family

ID=18019170

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10311597A Pending JP2000138823A (en) 1998-11-02 1998-11-02 Image processor

Country Status (1)

Country Link
JP (1) JP2000138823A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7369277B2 (en) * 2002-03-18 2008-05-06 Ricoh Company, Ltd. Image processing apparatus, drawing processing method, and computer program
JP2010213066A (en) * 2009-03-11 2010-09-24 Kyocera Mita Corp Image-forming device
US8477144B2 (en) 2007-02-28 2013-07-02 Samsung Electronics Co., Ltd. Image display system and method for increasing efficiency of bus bandwidth

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7369277B2 (en) * 2002-03-18 2008-05-06 Ricoh Company, Ltd. Image processing apparatus, drawing processing method, and computer program
US8477144B2 (en) 2007-02-28 2013-07-02 Samsung Electronics Co., Ltd. Image display system and method for increasing efficiency of bus bandwidth
JP2010213066A (en) * 2009-03-11 2010-09-24 Kyocera Mita Corp Image-forming device
US8339658B2 (en) 2009-03-11 2012-12-25 Kyocera Document Solutions Inc. Image forming apparatus and image forming method

Similar Documents

Publication Publication Date Title
JPS63185274A (en) Terminal equipment
JP2000138823A (en) Image processor
JP2815832B2 (en) Page Printer Band Printing Method
JP3230815B2 (en) Printer
JP2018058295A (en) Image processing apparatus, image processing method and program
JP3796769B2 (en) Output device
JPH11203070A (en) Printer controller
JP2006285792A (en) Image processor and image processing method
JP2002262099A (en) Picture processor and dma controller for the same
US8207979B2 (en) Image processing apparatus, image processing method, and computer program product
JP7383462B2 (en) Image processing device, control method for image processing device, program
JP2000025275A (en) Image processing apparatus
JP3255393B2 (en) Facsimile machine
JP2000050084A (en) Picture processor, picture processing method and sotrage medium
JP2607502B2 (en) Facsimile interface device
US20110205565A1 (en) Image processing apparatus and method that perform multiple image processes, and storage medium
JP2872144B2 (en) Printing equipment
JP2004214892A (en) Image forming apparatus
JP2003348338A (en) Information processing apparatus
JPH11249832A (en) Image forming device
JPH0825716A (en) Electrophotographic page printer
JPH08274947A (en) Image rotation method and image rotation device
JPH11291563A (en) Print image data control system
JPH11259243A (en) Printing system
JP2000225735A (en) Image printer

Legal Events

Date Code Title Description
A977 Report on retrieval

Effective date: 20040409

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040427

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040907