JP2007201705A - Image processor, image processing method, program, and computer-readable recording medium - Google Patents

Image processor, image processing method, program, and computer-readable recording medium Download PDF

Info

Publication number
JP2007201705A
JP2007201705A JP2006016486A JP2006016486A JP2007201705A JP 2007201705 A JP2007201705 A JP 2007201705A JP 2006016486 A JP2006016486 A JP 2006016486A JP 2006016486 A JP2006016486 A JP 2006016486A JP 2007201705 A JP2007201705 A JP 2007201705A
Authority
JP
Japan
Prior art keywords
image data
band
reading
image processing
read
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
JP2006016486A
Other languages
Japanese (ja)
Inventor
Takayuki Saito
貴之 齋藤
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 JP2006016486A priority Critical patent/JP2007201705A/en
Publication of JP2007201705A publication Critical patent/JP2007201705A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor or the like capable of achieving miniaturization of a memory for storing image data. <P>SOLUTION: A compressor 3 has a READ DMAC 4, a compression core 5, and a final code detector 6. The READ DMAC 4 reads out image data in a band unit from an image memory 2 so as to send the image data after receiving transmission of a Req signal from the compression core 5. The compression core 5 executes compression processing to the image data by encoding them and sends out the encoded data to the final code detector 6 after adding a termination code when the image data to be processed become band termination data. The final code detector 6 checks whether or not the termination code is attached to the sent-out data, and resets an internal state of the compression core 5 when the termination code is detected. The reset compression core 5 transmits the Req signal to the READ DMAC 4, and executes compression processing after receiving the next image data. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、画像処理装置、画像処理方法、プログラム及びコンピュータ読み取り可能な記録媒体に関し、特にメモリから読み取った画像データをバンド単位で圧縮する画像処理装置等に関するものである。   The present invention relates to an image processing apparatus, an image processing method, a program, and a computer-readable recording medium, and more particularly to an image processing apparatus that compresses image data read from a memory in band units.

従来、画像処理装置においては、画像メモリから1ページ分の画像データを読み出し、これを一旦RAM等のメモリに展開して圧縮器に送り、これを圧縮処理して符号化データを得るようにしている。   Conventionally, in an image processing device, image data for one page is read from an image memory, and is temporarily expanded in a memory such as a RAM and sent to a compressor, which is compressed to obtain encoded data. Yes.

なお、画像メモリに対して画像データの入出力(読み書き)を実行するために、DMA(Direct Memory Access)データ転送方式を用いたメモリ制御コントローラ(以下、DMACという)が用いられる。DMACは、ディスクリプタと呼ばれるメモリ領域管理情報に基づいて、画像メモリの特定の記憶領域(メモリ領域)に対して画像データの入出力を行うための制御を実行する。   In order to execute input / output (read / write) of image data to / from the image memory, a memory controller (hereinafter referred to as DMAC) using a DMA (Direct Memory Access) data transfer method is used. The DMAC executes control for inputting / outputting image data to / from a specific storage area (memory area) of the image memory based on memory area management information called a descriptor.

ところで、近年のデータ処理機能の向上に伴い、画像を取り扱う機会が増加しており、さらに取り扱う画像も高解像度のカラー画像を扱うようになってきている。例えば、レーザプリンタ等の画像形成装置においても、印刷処理の高速化に加え、カラー化、高画質化が急速に進んでおり、さらなる高機能化が望まれている。   By the way, with recent improvements in data processing functions, opportunities for handling images are increasing, and moreover, images to be handled are also handling high-resolution color images. For example, in an image forming apparatus such as a laser printer, in addition to speeding up printing processing, colorization and image quality are rapidly progressing, and further enhancement of functionality is desired.

また、大量のデータを処理する際に、一旦メモリに記憶させてから出力することが行われるが、画像のカラー化、高画質化のためにデータ量が増加すると、画像を記憶しておくために大量のメモリを必要とするという問題も発生する。もちろん、画像だけでなく、例えば画像に付加された様々なデータも記憶する必要があり、必要とされるメモリ量はさらに多くなる。   Further, when processing a large amount of data, the data is temporarily stored in a memory and then output. However, when the amount of data increases for colorization and high image quality of the image, the image is stored. The problem of requiring a large amount of memory also occurs. Of course, it is necessary to store not only the image but also various data added to the image, for example, and the amount of memory required is further increased.

これに対し、例えば特許文献1では、画像データを記憶する記憶部のリソースの有効利用を図り、生産性を確保する画像処理装置が開示されている。
特開2004−220579号公報
On the other hand, for example, Patent Document 1 discloses an image processing apparatus that secures productivity by effectively using resources of a storage unit that stores image data.
JP 2004-220579 A

ところで、レーザプリンタ、インクジェットプリンタ等の画像形成装置では、印刷に際して、ビットマップ形式で表現されたデータに基づいて印刷処理が行われる。しかし、ビットマップデータはデータ量が大きいため、1ページ分のデータを保持してから印刷を行う場合、画像形成装置は膨大な量のメモリを必要とすることになる。   By the way, in an image forming apparatus such as a laser printer or an ink jet printer, printing is performed based on data expressed in a bitmap format. However, since bitmap data has a large amount of data, when printing is performed after holding one page of data, the image forming apparatus requires a huge amount of memory.

このように、ページ処理単位が基本となる画像処理装置を供える画像形成装置では、読み出された画像データが展開されるメモリとしては少なくとも1ページ分の容量を必要とし、メモリが大型化し、増大してしまうという問題があった。   As described above, in an image forming apparatus provided with an image processing apparatus based on a page processing unit, a memory in which read image data is developed requires a capacity of at least one page, and the memory becomes larger and increased. There was a problem of doing.

そこで、本発明は、画像データを格納するメモリの小型化を図ることができる画像処理装置等を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus that can reduce the size of a memory that stores image data.

かかる目的を達成するために、請求項1記載の発明は、画像データを記憶する記憶手段と、前記記憶手段に記憶された画像データを読み出す読出手段と、前記読出手段により読み出された画像データを圧縮する圧縮手段とを備える画像処理装置において、前記記憶手段は、画像データを複数の帯状の領域であるバンド単位に分けてバンド画像データとして記憶し、前記読出手段は、メモリ領域管理情報に基づいて前記記憶手段により記憶されたバンド画像データを読み出し、前記圧縮手段は、前記読出手段により読み出されたバンド画像データを符号化するとともに、前記バンド画像データの終端を表すバンド終端符号を付加する付加手段と、前記付加手段により付加されたバンド終端符号を検知した場合、前記圧縮手段内の前記符号化されたバンド画像データに関する情報をクリアし内部状態をリセットするリセット手段とを有することを特徴とする。   In order to achieve such an object, the invention described in claim 1 is a storage means for storing image data, a reading means for reading image data stored in the storage means, and image data read by the reading means. In the image processing apparatus comprising the compression means for compressing the image data, the storage means stores the image data as band image data divided into a plurality of band-like areas, and the reading means stores the memory area management information. Based on this, the band image data stored in the storage unit is read out, and the compression unit encodes the band image data read out by the reading unit and adds a band end code indicating the end of the band image data. Adding means, and when the band end code added by the adding means is detected, the encoding in the compression means is performed. And having a reset means for resetting the internal state to clear the information regarding band image data.

本請求項記載の発明は、記憶手段、読出手段及び圧縮手段を備える画像処理装置で、特に圧縮手段に特徴を有するものである。圧縮手段は、記憶手段及び読出手段により記憶され読み出されたバンド単位の画像データを符号化して圧縮処理する。そして、圧縮手段は、さらに付加手段及びリセット手段を備える。付加手段は、符号化した画像データにバンドの終端を表す情報を符号として付加し、リセット手段が圧力手段のリセットを行うタイミングを提供する。リセット手段は、後続の圧縮処理をスムーズに行うために、圧縮手段内の圧縮処理済みの画像データに関する情報をクリアし、内部状態をリセットする。当該リセットは、付加手段による終端符号を受けて行われる。本構成をとることで、膨大な画像データをバンド単位で圧縮処理し、画像展開等を行うことができることから数バンド分のメモリをあればよく、メモリの増大を回避して小型化を図ることが可能となる。また、圧縮処理に際しても、バンド単位で圧縮処理済みの画像データのクリアをすることで、処理速度の低下を防ぐことができる。   The invention described in this claim is an image processing apparatus including a storage unit, a reading unit, and a compression unit, and particularly has a feature in the compression unit. The compression means encodes and compresses the band-unit image data stored and read by the storage means and the read means. The compression unit further includes an addition unit and a reset unit. The adding unit adds information indicating the end of the band to the encoded image data as a code, and provides a timing at which the reset unit resets the pressure unit. The reset unit clears information related to the compressed image data in the compression unit and resets the internal state in order to perform subsequent compression processing smoothly. The reset is performed in response to the termination code by the adding means. By adopting this configuration, it is possible to compress a large amount of image data in band units and perform image expansion, etc., so only a few bands of memory are required, and miniaturization is achieved by avoiding an increase in memory. Is possible. Also, in the compression process, the processing speed can be prevented from being lowered by clearing the compressed image data in band units.

また、請求項2記載の発明は、請求項1に記載の画像処理装置において、前記読出手段により読み出されたバンド画像データを一時的に蓄積するトグルバッファを有し、前記読出手段は、前記メモリ領域管理情報に記載された終端情報を受け取り、前記メモリ領域管理情報に対応するバンド画像データの前記トグルバッファへの書き込みが終わった場合に、次に読み出されたバンド画像データについて前記トグルバッファへ書込みを行うことを特徴とする。   The invention according to claim 2 is the image processing apparatus according to claim 1, further comprising a toggle buffer for temporarily accumulating band image data read by the reading means, wherein the reading means When the end information described in the memory area management information is received and the writing of the band image data corresponding to the memory area management information to the toggle buffer is finished, the band buffer for the next read band image data It is characterized in that writing is performed.

また、請求項3記載の発明は、請求項2に記載の画像処理装置において、前記読出手段は、受信モジュール及び送信モジュールを有し、前記受信モジュールは、前記記憶手段から読み出されたバンド画像データを前記トグルバッファへ書き込み、前記送信モジュールは、前記受信モジュールにより書き込まれたバンド画像データを前記トグルバッファから読み出し、前記圧縮手段へ送出することを特徴とする。   According to a third aspect of the present invention, in the image processing apparatus according to the second aspect, the reading unit includes a receiving module and a transmitting module, and the receiving module reads a band image read from the storage unit. The data is written to the toggle buffer, and the transmission module reads the band image data written by the reception module from the toggle buffer and sends the data to the compression unit.

また、請求項4記載の発明は、請求項3に記載の画像処理装置において、前記受信モジュールによる書込み及び前記送信モジュールによる読出しは、平行して行われることを特徴とする。   According to a fourth aspect of the present invention, in the image processing apparatus according to the third aspect, the writing by the receiving module and the reading by the transmitting module are performed in parallel.

また、請求項5記載の発明は、請求項2から4のいずれか1項に記載の画像形成装置において、前記読出手段は、複数のトグルバッファを有することを特徴とする。   According to a fifth aspect of the present invention, in the image forming apparatus according to any one of the second to fourth aspects, the reading unit includes a plurality of toggle buffers.

また、請求項6記載の発明は、請求項1から5のいずれか1項に記載の画像処理装置において、前記記憶手段に前記バンド画像データを書き込む書込手段を備え、前記記憶手段は、少なくとも2バンド分のバンド画像データを記憶する容量を有し、前記読出手段は、前記書込手段により前記記憶手段に前記バンド画像データが書き込まれている際に、前記記憶手段により既に記憶されているバンド画像データを読み出すことを特徴とする。   The invention according to claim 6 is the image processing apparatus according to any one of claims 1 to 5, further comprising a writing unit that writes the band image data into the storage unit, wherein the storage unit includes at least The reading means has a capacity for storing band image data for two bands, and the reading means is already stored in the storage means when the band image data is written in the storage means by the writing means. Band image data is read out.

また、請求項7記載の発明は、画像データを記憶する記憶工程と、前記記憶工程に記憶された画像データを読み出す読出工程と、前記読出工程により読み出された画像データを圧縮する圧縮工程とを備える画像処理方法において、前記記憶工程は、画像データを複数の帯状の領域であるバンド単位に分けてバンド画像データとして記憶し、前記読出工程は、メモリ領域管理情報に基づいて前記記憶工程により記憶されたバンド画像データを読み出し、前記圧縮工程は、前記読出工程により読み出されたバンド画像データを符号化するとともに、前記バンド画像データの終端を表すバンド終端符号を付加する付加工程と、前記付加工程により付加されたバンド終端符号を検知した場合、前記圧縮手段内の前記符号化されたバンド画像データに関する情報をクリアし内部状態をリセットするリセット工程とを有することを特徴とする。   The invention according to claim 7 is a storage step of storing image data, a reading step of reading out image data stored in the storage step, and a compression step of compressing the image data read out in the reading step. In the image processing method, the storage step divides the image data into band units that are a plurality of band-like regions and stores them as band image data, and the reading step is performed by the storage step based on memory region management information. The stored band image data is read, and the compression step encodes the band image data read by the reading step and adds a band end code representing the end of the band image data; and When the band end code added by the adding step is detected, the encoded band image data in the compression means is related. And having a reset step for resetting the internal state clears that information.

また、請求項8記載の発明は、請求項7に記載の画像処理方法において、前記読出工程により読み出されたバンド画像データを一時的に蓄積するトグルバッファを有する画像処理装置の画像処理方法であって、前記読出工程は、前記メモリ領域管理情報に記載された終端情報を受け取り、前記メモリ領域管理情報に対応するバンド画像データの前記トグルバッファへの書き込みが終わった場合に、次に読み出されたバンド画像データについて前記トグルバッファへ書込みを行うことを特徴とする。   The invention according to claim 8 is the image processing method according to claim 7, wherein the image processing apparatus has a toggle buffer for temporarily storing the band image data read out by the reading step. The reading step receives the end information described in the memory area management information, and when the band image data corresponding to the memory area management information has been written to the toggle buffer, the reading is performed next. The band image data thus written is written into the toggle buffer.

また、請求項9記載の発明は、請求項8に記載の画像処理方法において、前記読出工程は、受信モジュール及び送信モジュールを有し、前記受信モジュールは、前記記憶工程により読み出されたバンド画像データを前記トグルバッファへ書き込み、前記送信モジュールは、前記受信モジュールにより書き込まれたバンド画像データを前記トグルバッファから読み出し、前記圧縮工程へ送出することを特徴とする。   The invention according to claim 9 is the image processing method according to claim 8, wherein the reading step includes a receiving module and a transmitting module, and the receiving module reads the band image read by the storing step. The data is written into the toggle buffer, and the transmission module reads out the band image data written by the reception module from the toggle buffer and sends it to the compression step.

また、請求項10記載の発明は、請求項9に記載の画像処理方法において、前記受信モジュールによる書込み及び前記送信モジュールによる読出しは、同時に行われることを特徴とする。   According to a tenth aspect of the present invention, in the image processing method according to the ninth aspect, the writing by the receiving module and the reading by the transmitting module are performed simultaneously.

また、請求項11記載の発明は、請求項7から10のいずれか1項に記載の画像処理方法において、前記記憶工程により記憶される記憶領域が少なくとも2バンド分のバンド画像データを記憶する容量を有する画像処理装置の画像処理方法であって、前記記憶領域に前記バンド画像データを書き込む書込工程を備え、前記読出工程は、前記書込工程により前記記憶領域に前記バンド画像データが書き込まれている際に、前記記憶工程により既に記憶されているバンド画像データを読み出すことを特徴とする。   The invention according to claim 11 is the image processing method according to any one of claims 7 to 10, wherein the storage area stored by the storing step stores the band image data for at least two bands. An image processing method for an image processing apparatus comprising: a writing step for writing the band image data in the storage area, wherein the reading step writes the band image data in the storage area by the writing step. In this case, the band image data already stored in the storing step is read out.

また、請求項12記載の発明は、画像形成装置が備えるコンピュータに請求項7から11に記載の画像処理方法を実行させるためのプログラムである。   A twelfth aspect of the invention is a program for causing a computer included in the image forming apparatus to execute the image processing method according to the seventh to eleventh aspects.

また、請求項13記載の発明は、請求項12に記載のプログラムを記録したコンピュータ読取可能な記録媒体である。   A thirteenth aspect of the invention is a computer-readable recording medium on which the program according to the twelfth aspect is recorded.

本発明によれば、本発明は、画像データを格納するメモリの小型化を図ることができる画像処理装置等が実現される。   According to the present invention, the present invention realizes an image processing apparatus and the like that can reduce the size of a memory that stores image data.

<実施形態1>
まず、図1を参照しながら、本発明の第1の実施形態における画像処理装置について説明する。
<Embodiment 1>
First, an image processing apparatus according to a first embodiment of the present invention will be described with reference to FIG.

図1は、本実施形態における画像処理装置の構成を示すブロック図である。画像処理装置1は、画像メモリ2、圧縮器3を備えており、画像メモリ2は、例えば半導体メモリ等であり、画像入力装置から入力される画像データを記憶し、圧縮器3は、画像メモリ2に記憶された画像データを符号化、すなわちデータ形式の変換を行って出力する。また、圧縮器3は、READ DMAC4、圧縮コア5、最終符号検知部6、WRITE DMAC7から構成される。   FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to the present embodiment. The image processing apparatus 1 includes an image memory 2 and a compressor 3. The image memory 2 is, for example, a semiconductor memory and stores image data input from the image input apparatus. The compressor 3 is an image memory. The image data stored in 2 is encoded, that is, converted in data format and output. The compressor 3 includes a READ DMAC 4, a compression core 5, a final code detection unit 6, and a WRITE DMAC 7.

READ DMAC4は、主に画像データ読取りを行うDMACで、ディスクリプタに基づいて画像メモリ2から画像データを読み込み、圧縮コア5へ画像データを送り出す。なお、ディスクリプタには、バンド単位の画像データ(以下、バンドデータという)の終わりを意味するバンド終端情報を記載できる。   The READ DMAC 4 is a DMAC that mainly reads image data, reads image data from the image memory 2 based on the descriptor, and sends the image data to the compression core 5. In the descriptor, band end information indicating the end of image data in band units (hereinafter referred to as band data) can be described.

圧縮コア5は、READ DMAC4から送り出された画像データに圧縮処理を行い、符号化されたデータを最終符号検知部へ送出する。   The compression core 5 performs compression processing on the image data sent from the READ DMAC 4 and sends the encoded data to the final code detection unit.

最終符号検知部6は、圧縮コア5から送出された符号化データに後述するバンド終端符号が付加されているか否かの検知を行い、符号化データをWRITE DMAC7へ送る。   The final code detection unit 6 detects whether or not a band end code (to be described later) is added to the encoded data sent from the compression core 5, and sends the encoded data to the WRITE DMAC 7.

WRITE DMAC7は、主に画像データ書込みを行うDMACで、最終符号検知部より送られた符号化データを画像メモリ2に書き込む。なお、符号化された画像データは、画像メモリ2とは別の記憶装置、例えばHDD(Hard Disk Drive)等の補助記憶装置に書き込んでもよい。   The WRITE DMAC 7 is a DMAC that mainly writes image data, and writes the encoded data sent from the final code detector to the image memory 2. The encoded image data may be written in a storage device different from the image memory 2, for example, an auxiliary storage device such as an HDD (Hard Disk Drive).

以下、圧縮器3における圧縮処理について詳細に述べる。   Hereinafter, the compression process in the compressor 3 will be described in detail.

まず、READ DMAC4は、KICK信号を立ち上げ、圧縮コア5によりReq信号が発信されるのを待機する。Req信号が返されたときに、ACK信号と読み出した画像データを圧縮コア5に送出していく。ACK信号及び画像データの送出中はKICK信号が立上げ状態であるが、ディスクリプタに記載されたバンド終端情報によりバンドデータの終わりを判断し、KICK信号を下げる。   First, the READ DMAC 4 raises the KICK signal and waits for the Req signal to be transmitted by the compression core 5. When the Req signal is returned, the ACK signal and the read image data are sent to the compression core 5. While the ACK signal and the image data are being transmitted, the KICK signal is in a rising state, but the end of the band data is determined based on the band end information described in the descriptor, and the KICK signal is lowered.

次に、圧縮コア5は、KICK信号が立上げ状態になったら、内部状態がクリアされた時点でReq信号をREAD DMAC4に対して発信する。そして、READ DMAC4から送られた画像データを符号化し、随時、その符号化データを最終符号検知部6に送り出す。KICK信号が下がっていたときには、さらに終端処理を行い、最後にバンド終端符号を付加して送出する。バンド終端符号は、バンドデータの終わりを意味する点では上述したバンド終端情報と共通するが、圧縮された画像データと共通のデータ形式の符号化データであり、ディスクリプタの情報が符号化の対象でない点で異なる。   Next, when the KICK signal enters the rising state, the compression core 5 transmits a Req signal to the READ DMAC 4 when the internal state is cleared. Then, the image data sent from the READ DMAC 4 is encoded, and the encoded data is sent to the final code detector 6 as needed. When the KICK signal is lowered, termination processing is further performed, and finally a band termination code is added and transmitted. The band end code is the same as the band end information described above in that it means the end of the band data, but it is encoded data in the same data format as the compressed image data, and the descriptor information is not the object of encoding. It is different in point.

次に、最終符号検知部6は、圧縮コア5から送り出された符号化データにバンド終端符号が付されていたときに、圧縮コア5にリセットをかける。すなわち、圧縮コア5に対しReset信号を発信する。圧縮コア5では、最終符号検知部6よるReset信号を受けて圧縮コア5内の圧縮データ等に関する情報をクリアし、内部状態のリセットを行う。   Next, the final code detection unit 6 resets the compression core 5 when the band termination code is attached to the encoded data sent from the compression core 5. That is, a Reset signal is transmitted to the compression core 5. The compression core 5 receives the Reset signal from the final code detection unit 6 and clears the information regarding the compressed data in the compression core 5 and resets the internal state.

本実施形態のように構成することで、バンド単位で画像データを圧縮処理し、また画像展開を行うことで、メモリの増大を回避し小型化を図ることができる。また、圧縮処理に際して、バンド単位で圧縮処理済みの画像データのクリアをすることで、処理速度の低下を防ぐことができる。   By configuring as in the present embodiment, image data is subjected to compression processing in band units and image expansion is performed, so that an increase in memory can be avoided and miniaturization can be achieved. Further, when the compression process is performed, the image data that has been subjected to the compression process is cleared in band units, thereby preventing a reduction in processing speed.

<実施形態2>
次に、図2を参照しながら、本発明の第2の実施形態における画像処理装置について説明する。
<Embodiment 2>
Next, an image processing apparatus according to the second embodiment of the present invention will be described with reference to FIG.

図1は、本実施形態における画像処理装置の構成を示すブロック図である。基本的な構成は実施形態1と同様であるが、READ DMAC4にモジュール及びトグルバッファを設けている点で異なる。   FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to the present embodiment. The basic configuration is the same as that of the first embodiment, but differs in that a module and a toggle buffer are provided in the READ DMAC 4.

圧縮器3のREAD DMAC4は、受信モジュール21、送信モジュール22、第1トグルバッファ23及び第2トグルバッファ24を備える。   The READ DMAC 4 of the compressor 3 includes a reception module 21, a transmission module 22, a first toggle buffer 23, and a second toggle buffer 24.

受信モジュール21は、画像メモリ2からの画像データを受信する受信側のモジュールで、受信した画像データの書込みを2つのトグルバッファに対して行う。   The receiving module 21 is a receiving-side module that receives image data from the image memory 2 and writes the received image data to the two toggle buffers.

送信モジュール22は、圧縮コアに画像データを送信する送信側のモジュールで、受信モジュール21がトグルバッファに書き込んだ画像データの読出しを行う。   The transmission module 22 is a module on the transmission side that transmits image data to the compression core, and reads out the image data written in the toggle buffer by the reception module 21.

第1トグルバッファ23及び第2トグルバッファ24は、圧縮処理するための画像データを一時的に格納する記憶領域で、一方において受信モジュール21により書込みが行われているときに、別の一方では送信モジュール22により書き込まれた画像データの読出しが行われる。バッファが1つしかない場合は、書込み要求と読出し要求がかちあったときにいずれかの要求が待たされるが、2つのバッファを用いることで書込み要求と読出し要求とを並列して行うことができる。   The first toggle buffer 23 and the second toggle buffer 24 are storage areas for temporarily storing image data for compression processing. When writing is performed by the reception module 21 on one side, transmission is performed on the other side. The image data written by the module 22 is read out. If there is only one buffer, one of the requests is waited when there is a write request and a read request, but by using two buffers, the write request and the read request can be performed in parallel. .

以下、本実施形態の圧縮器3における圧縮処理について詳細に述べる。なお、基本的な流れは実施形態1と同様であるので、相違する点を中心に説明する。   Hereinafter, the compression process in the compressor 3 of this embodiment will be described in detail. Since the basic flow is the same as that of the first embodiment, the differences will be mainly described.

まず、READ DMAC4は、ディスクリプタを受け取り動作する。受信モジュール21は、画像データを受信すると、例えば第1トグルバッファにデータの書込みを行う。通常は、書き込んでいたトグルバッファの空き容量がなくなった時点で、もう一方のトグルバッファにデータを書き込み始める。   First, the READ DMAC 4 operates by receiving a descriptor. When receiving the image data, the receiving module 21 writes the data in the first toggle buffer, for example. Normally, data writing to the other toggle buffer is started when there is no more free space in the toggle buffer that has been written.

また、転送対象の画像データに対応するディスクリプタにバンド終端情報が記載されているときには、受信モジュール21は、ディスクリプタ記載の画像データを一方のトグルバッファに書き終えると、次に受信したディスクリプタの画像データを別の一方のトグルバッファに書き込む。   When the band end information is described in the descriptor corresponding to the image data to be transferred, the reception module 21 finishes writing the image data described in the descriptor in one toggle buffer, and then receives the image data of the next received descriptor. Is written to the other toggle buffer.

次に、送信モジュール22は、容量のなくなったトグルバッファあるいは書込みが行われていないトグルバッファを読み出し、読み出した画像データを圧縮コア5に送信するが、データ送信に際しては実施形態1と同様に、まずKICK信号を立ち上げ、圧縮コア5からのReq信号を待機する。そして、受信モジュール21からバンド終端情報の記載されたディスクリプタを受け取ると、トグルバッファに書き込まれたバンド最後のデータの送信を終了した時点でKICK信号を下げる。   Next, the transmission module 22 reads the toggle buffer that has run out of capacity or the toggle buffer that has not been written, and transmits the read image data to the compression core 5. First, the KICK signal is raised, and the Req signal from the compression core 5 is waited. When receiving the descriptor in which the band end information is written from the receiving module 21, the KICK signal is lowered when transmission of the last data of the band written in the toggle buffer is completed.

圧縮処理、最終符号検知、リセット処理等については実施形態1と同様であるため、説明を省略する。   Since the compression processing, final code detection, reset processing, and the like are the same as those in the first embodiment, description thereof is omitted.

本実施形態のように構成することで、データリードの流れを止めることなく、バンドデータ毎の圧縮が可能となり、圧縮処理が効率化する。なお、この仕組みが成立するには、圧縮コアがKICK信号の下げを受けEnd Of Data信号を受け取ってから、圧縮処理の終了後にReq信号を返すまでの間にトグルバッファに十分な余裕があることが必要である。   By configuring as in the present embodiment, compression for each band data is possible without stopping the flow of data read, and the compression processing becomes efficient. In order for this mechanism to be established, the toggle core must have sufficient margin between the end of the compression process and the return of the Req signal after receiving the End Of Data signal after the KICK signal is lowered. is required.

<実施形態3>
次に、図3を参照しながら、本発明の第3の実施形態における画像処理装置について説明する。
<Embodiment 3>
Next, an image processing apparatus according to a third embodiment of the present invention will be described with reference to FIG.

図3は、本実施形態における画像処理装置の構成を示すブロック図である。本実施形態は、圧縮器と接続される画像メモリ及び他モジュールについて別に構成したものである。圧縮器3内部の実装については、先述した実施形態1、実施形態2のいずれでも構わない。   FIG. 3 is a block diagram showing the configuration of the image processing apparatus according to this embodiment. In this embodiment, the image memory and other modules connected to the compressor are separately configured. As for the mounting inside the compressor 3, either the first embodiment or the second embodiment described above may be used.

他モジュール31はメモリ2へ画像データ書込みのアクセスを行い、圧縮器3は書き込まれた画像データの読出しを行う。また、メモリ2は、バンド単位に画像データを格納する領域を持ち、例えばmバンド目の画像データの格納領域32、m+1バンド目の画像データの格納領域33を有する。   The other module 31 accesses the memory 2 for writing image data, and the compressor 3 reads the written image data. The memory 2 has an area for storing image data in band units. For example, the memory 2 includes an m-band image data storage area 32 and an m + 1 band image data storage area 33.

また、他モジュール31の書込み及び圧縮器3の読出しは平行して行われる。例えば、他モジュール31がmバンド目の画像データを格納領域32へ書き込んでいる際に、圧縮器3はm+1バンド目の画像データを読み出して圧縮処理を行う。   Further, the writing of the other module 31 and the reading of the compressor 3 are performed in parallel. For example, when the other module 31 is writing the m-th band image data into the storage area 32, the compressor 3 reads out the m + 1 band image data and performs the compression process.

また、圧縮器3は、バンド毎に圧縮された符号化データの書込みを画像メモリ2に対して行うが、別の記憶装置に行ってもよい。   In addition, the compressor 3 writes the encoded data compressed for each band to the image memory 2, but may write it to another storage device.

本実施形態の構成によれば、画像データを格納する記憶手段として、少なくとも2バンド分のメモリがあればよいことになり、メモリの小型化が可能となる。なお、本実施形態では、画像メモリ2への書込み、読出しは、DMACを用いて行われることから、実施形態2のようにトグルバッファを用いることとは異なる。   According to the configuration of the present embodiment, it is sufficient to have at least two bands of memory as storage means for storing image data, and the memory can be reduced in size. In the present embodiment, writing to and reading from the image memory 2 are performed using the DMAC, which is different from using a toggle buffer as in the second embodiment.

なお、各実施形態による処理をCPUが実行するためのプログラムは、本発明に係るプログラムを構成する。また、該プログラムを記録する記録媒体は、本発明に係るコンピュータ読み取り可能な記録媒体を構成する。当該記録媒体としては、例えば、フロッピディスク、HDD、光ディスク、光磁気ディスク、CD−ROM、CD−R、磁気テープ、不揮発性のメモリカード、ROM等を用いることができる。   Note that the program for the CPU to execute the processing according to each embodiment constitutes a program according to the present invention. The recording medium for recording the program constitutes a computer-readable recording medium according to the present invention. As the recording medium, for example, a floppy disk, HDD, optical disk, magneto-optical disk, CD-ROM, CD-R, magnetic tape, nonvolatile memory card, ROM, or the like can be used.

また、上述する実施形態は、本発明の好適な実施形態であり、上記実施形態のみに本発明の範囲を限定するものではなく、本発明の要旨を逸脱しない範囲において種々の変更を施した形態での実施が可能である。   The above-described embodiment is a preferred embodiment of the present invention, and the scope of the present invention is not limited to the above-described embodiment alone, and various modifications are made without departing from the gist of the present invention. Implementation is possible.

本発明の実施形態における画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus in embodiment of this invention. 本発明の実施形態における画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus in embodiment of this invention. 本発明の実施形態における画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus in embodiment of this invention.

符号の説明Explanation of symbols

1 画像処理装置
2 画像メモリ
3 圧縮器
4 READ DMAC
5 圧縮コア
6 最終符号検知部
7 WRITE DMAC
21 受信Mod(モジュール)
22 送信Mod(モジュール)
23 第1トグルバッファ
24 第2トグルバッファ
31 他モジュール
32 mバンド画像データ領域
32 m+1バンド画像データ領域
DESCRIPTION OF SYMBOLS 1 Image processing apparatus 2 Image memory 3 Compressor 4 READ DMAC
5 Compression core 6 Final code detection unit 7 WRITE DMAC
21 Reception Mod (module)
22 Transmission Mod (module)
23 First toggle buffer 24 Second toggle buffer 31 Other module 32 m-band image data area 32 m + 1 band image data area

Claims (13)

画像データを記憶する記憶手段と、前記記憶手段に記憶された画像データを読み出す読出手段と、前記読出手段により読み出された画像データを圧縮する圧縮手段とを備える画像処理装置において、
前記記憶手段は、画像データを複数の帯状の領域であるバンド単位に分けてバンド画像データとして記憶し、
前記読出手段は、メモリ領域管理情報に基づいて前記記憶手段により記憶されたバンド画像データを読み出し、
前記圧縮手段は、
前記読出手段により読み出されたバンド画像データを符号化するとともに、
前記バンド画像データの終端を表すバンド終端符号を付加する付加手段と、
前記付加手段により付加されたバンド終端符号を検知した場合、前記圧縮手段内の前記符号化されたバンド画像データに関する情報をクリアし内部状態をリセットするリセット手段とを有することを特徴とする画像処理装置。
In an image processing apparatus comprising storage means for storing image data, reading means for reading image data stored in the storage means, and compression means for compressing image data read by the reading means,
The storage means divides the image data into band units that are a plurality of band-like regions and stores them as band image data,
The reading means reads the band image data stored by the storage means based on the memory area management information,
The compression means includes
Encoding the band image data read by the reading means;
Adding means for adding a band end code representing the end of the band image data;
Image processing, comprising: a reset unit that clears information about the encoded band image data in the compression unit and resets an internal state when the band end code added by the addition unit is detected apparatus.
前記読出手段により読み出されたバンド画像データを一時的に蓄積するトグルバッファを有し、
前記読出手段は、前記メモリ領域管理情報に記載された終端情報を受け取り、前記メモリ領域管理情報に対応するバンド画像データの前記トグルバッファへの書き込みが終わった場合に、次に読み出されたバンド画像データについて前記トグルバッファへ書込みを行うことを特徴とする請求項1に記載の画像処理装置。
A toggle buffer for temporarily storing band image data read by the reading means;
The reading means receives the termination information described in the memory area management information, and when the band image data corresponding to the memory area management information has been written to the toggle buffer, the next read band The image processing apparatus according to claim 1, wherein the image data is written to the toggle buffer.
前記読出手段は、受信モジュール及び送信モジュールを有し、
前記受信モジュールは、前記記憶手段から読み出されたバンド画像データを前記トグルバッファへ書き込み、
前記送信モジュールは、前記受信モジュールにより書き込まれたバンド画像データを前記トグルバッファから読み出し、前記圧縮手段へ送出することを特徴とする請求項2に記載の画像処理装置。
The reading means has a receiving module and a transmitting module,
The receiving module writes the band image data read from the storage means to the toggle buffer,
The image processing apparatus according to claim 2, wherein the transmission module reads out the band image data written by the reception module from the toggle buffer and sends the data to the compression unit.
前記受信モジュールによる書込み及び前記送信モジュールによる読出しは、平行して行われることを特徴とする請求項3に記載の画像処理装置。   The image processing apparatus according to claim 3, wherein the writing by the receiving module and the reading by the transmitting module are performed in parallel. 前記読出手段は、複数のトグルバッファを有することを特徴とする請求項2から4のいずれか1項に記載の画像形成装置。   The image forming apparatus according to claim 2, wherein the reading unit includes a plurality of toggle buffers. 前記記憶手段に前記バンド画像データを書き込む書込手段を備え、
前記記憶手段は、少なくとも2バンド分のバンド画像データを記憶する容量を有し、
前記読出手段は、前記書込手段により前記記憶手段に前記バンド画像データが書き込まれている際に、前記記憶手段により既に記憶されているバンド画像データを読み出すことを特徴とする請求項1から5のいずれか1項に記載の画像処理装置。
Writing means for writing the band image data into the storage means;
The storage means has a capacity to store band image data for at least two bands,
The reading means reads the band image data already stored in the storage means when the band image data is written in the storage means by the writing means. The image processing apparatus according to any one of the above.
画像データを記憶する記憶工程と、前記記憶工程に記憶された画像データを読み出す読出工程と、前記読出工程により読み出された画像データを圧縮する圧縮工程とを備える画像処理方法において、
前記記憶工程は、画像データを複数の帯状の領域であるバンド単位に分けてバンド画像データとして記憶し、
前記読出工程は、メモリ領域管理情報に基づいて前記記憶工程により記憶されたバンド画像データを読み出し、
前記圧縮工程は、
前記読出工程により読み出されたバンド画像データを符号化するとともに、
前記バンド画像データの終端を表すバンド終端符号を付加する付加工程と、
前記付加工程により付加されたバンド終端符号を検知した場合、前記圧縮手段内の前記符号化されたバンド画像データに関する情報をクリアし内部状態をリセットするリセット工程とを有することを特徴とする画像処理方法。
In an image processing method comprising: a storage step for storing image data; a read step for reading image data stored in the storage step; and a compression step for compressing image data read by the read step.
The storing step divides the image data into band units that are a plurality of band-like regions and stores them as band image data,
The reading step reads the band image data stored by the storing step based on the memory area management information,
The compression step includes
While encoding the band image data read by the reading step,
An additional step of adding a band end code representing the end of the band image data;
An image processing comprising: a reset step of clearing information on the encoded band image data in the compression means and resetting an internal state when the band end code added by the adding step is detected Method.
前記読出工程により読み出されたバンド画像データを一時的に蓄積するトグルバッファを有する画像処理装置の画像処理方法であって、
前記読出工程は、前記メモリ領域管理情報に記載された終端情報を受け取り、前記メモリ領域管理情報に対応するバンド画像データの前記トグルバッファへの書き込みが終わった場合に、次に読み出されたバンド画像データについて前記トグルバッファへ書込みを行うことを特徴とする請求項7に記載の画像処理方法。
An image processing method of an image processing apparatus having a toggle buffer for temporarily storing band image data read by the reading step,
The reading step receives the termination information described in the memory area management information, and when the band image data corresponding to the memory area management information has been written to the toggle buffer, the next read band 8. The image processing method according to claim 7, wherein the image data is written to the toggle buffer.
前記読出工程は、受信モジュール及び送信モジュールを有し、
前記受信モジュールは、前記記憶工程により読み出されたバンド画像データを前記トグルバッファへ書き込み、
前記送信モジュールは、前記受信モジュールにより書き込まれたバンド画像データを前記トグルバッファから読み出し、前記圧縮工程へ送出することを特徴とする請求項8に記載の画像処理方法。
The reading step includes a receiving module and a transmitting module,
The reception module writes the band image data read out in the storage step to the toggle buffer,
9. The image processing method according to claim 8, wherein the transmission module reads out the band image data written by the reception module from the toggle buffer, and sends the band image data to the compression step.
前記受信モジュールによる書込み及び前記送信モジュールによる読出しは、同時に行われることを特徴とする請求項9に記載の画像処理方法。   The image processing method according to claim 9, wherein writing by the receiving module and reading by the transmitting module are performed simultaneously. 前記記憶工程により記憶される記憶領域が少なくとも2バンド分のバンド画像データを記憶する容量を有する画像処理装置の画像処理方法であって、
前記記憶領域に前記バンド画像データを書き込む書込工程を備え、
前記読出工程は、前記書込工程により前記記憶領域に前記バンド画像データが書き込まれている際に、前記記憶工程により既に記憶されているバンド画像データを読み出すことを特徴とする請求項7から10のいずれか1項に記載の画像処理方法。
An image processing method of an image processing apparatus, wherein the storage area stored by the storage step has a capacity to store band image data for at least two bands,
A writing step of writing the band image data in the storage area;
The read-out step reads out the band image data already stored in the storage step when the band image data is written in the storage area in the writing step. The image processing method according to any one of the above.
画像形成装置が備えるコンピュータに請求項7から11に記載の画像処理方法を実行させるためのプログラム。   The program for making the computer with which an image forming apparatus is provided perform the image processing method of Claim 7-11. 請求項12に記載のプログラムを記録したコンピュータ読取可能な記録媒体。   A computer-readable recording medium on which the program according to claim 12 is recorded.
JP2006016486A 2006-01-25 2006-01-25 Image processor, image processing method, program, and computer-readable recording medium Pending JP2007201705A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006016486A JP2007201705A (en) 2006-01-25 2006-01-25 Image processor, image processing method, program, and computer-readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006016486A JP2007201705A (en) 2006-01-25 2006-01-25 Image processor, image processing method, program, and computer-readable recording medium

Publications (1)

Publication Number Publication Date
JP2007201705A true JP2007201705A (en) 2007-08-09

Family

ID=38455851

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006016486A Pending JP2007201705A (en) 2006-01-25 2006-01-25 Image processor, image processing method, program, and computer-readable recording medium

Country Status (1)

Country Link
JP (1) JP2007201705A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010226516A (en) * 2009-03-24 2010-10-07 Kyocera Mita Corp Image processing apparatus
JP2011160268A (en) * 2010-02-02 2011-08-18 Ricoh Co Ltd Image processing apparatus, image processing method, image processing program, and recording medium
US8427693B2 (en) 2009-03-24 2013-04-23 Kyocera Document Solutions Inc. Image processing apparatus and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05341955A (en) * 1992-06-12 1993-12-24 Fujitsu Ltd Data compression and restoration system
JPH11313210A (en) * 1998-04-27 1999-11-09 Matsushita Graphic Communication Systems Inc Communication equipment and communication method
JP2004072683A (en) * 2002-08-09 2004-03-04 Canon Inc Image processing apparatus, print system, and control program
JP2004274553A (en) * 2003-03-11 2004-09-30 Canon Inc Image processing apparatus, image processing method and program, and storage medium
JP2004304664A (en) * 2003-03-31 2004-10-28 Ricoh Co Ltd Image processing apparatus and method, color digital copying machine, and color printer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05341955A (en) * 1992-06-12 1993-12-24 Fujitsu Ltd Data compression and restoration system
JPH11313210A (en) * 1998-04-27 1999-11-09 Matsushita Graphic Communication Systems Inc Communication equipment and communication method
JP2004072683A (en) * 2002-08-09 2004-03-04 Canon Inc Image processing apparatus, print system, and control program
JP2004274553A (en) * 2003-03-11 2004-09-30 Canon Inc Image processing apparatus, image processing method and program, and storage medium
JP2004304664A (en) * 2003-03-31 2004-10-28 Ricoh Co Ltd Image processing apparatus and method, color digital copying machine, and color printer

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010226516A (en) * 2009-03-24 2010-10-07 Kyocera Mita Corp Image processing apparatus
US8427693B2 (en) 2009-03-24 2013-04-23 Kyocera Document Solutions Inc. Image processing apparatus and method
JP2011160268A (en) * 2010-02-02 2011-08-18 Ricoh Co Ltd Image processing apparatus, image processing method, image processing program, and recording medium

Similar Documents

Publication Publication Date Title
JP4991816B2 (en) Image processing device
KR101410168B1 (en) Configurable buffer allocation for multi-format video processing
JP2007201705A (en) Image processor, image processing method, program, and computer-readable recording medium
US7864359B2 (en) Data compression and decompression unit
US10389912B2 (en) Image processing apparatus and method for controlling image processing apparatus
JP2008205636A (en) Image processing device, image processing method of image processing device, and program
JP5097788B2 (en) Data processing apparatus and data processing program
US20100104204A1 (en) Encoding device, decoding device, image forming device, method, and program storage medium
JP5441676B2 (en) Image processing apparatus and processing method thereof
US8081828B2 (en) Method for transmitting image bit stream and image encoder
JP4446389B2 (en) Interface device for compression / decompression module
JP3912372B2 (en) Color image processing device
US8520964B2 (en) Image processing apparatus
JP4307435B2 (en) Image data storage device, copying machine, image forming system, and image data storage method
JP2007019902A (en) Image compression circuit, semiconductor integrated circuit and image compressing method
JP5205317B2 (en) Image processing device
JP2009038776A (en) Image processing apparatus, and image processing method
JP4496935B2 (en) Audio / video output device and audio / video output method
JP4259328B2 (en) Image processing apparatus, printer, and method for reading stored data
JP2006344035A (en) Data transmission and reception system, state informing circuit, and state informing program
JP2011237972A (en) Data processing device and data processing program
JP5407912B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium
JP2007251983A (en) Image data output apparatus
JP5494055B2 (en) Image forming apparatus, control method, program, and recording medium
KR20060124300A (en) Image forming apparatus for performing high-speed image processing using direct link

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081027

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100813

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100831

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101027

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101116

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110426