JP5407912B2 - Image processing apparatus, image processing method, image processing program, and recording medium - Google Patents

Image processing apparatus, image processing method, image processing program, and recording medium Download PDF

Info

Publication number
JP5407912B2
JP5407912B2 JP2010021217A JP2010021217A JP5407912B2 JP 5407912 B2 JP5407912 B2 JP 5407912B2 JP 2010021217 A JP2010021217 A JP 2010021217A JP 2010021217 A JP2010021217 A JP 2010021217A JP 5407912 B2 JP5407912 B2 JP 5407912B2
Authority
JP
Japan
Prior art keywords
read
compressed data
descriptor
data
buffer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2010021217A
Other languages
Japanese (ja)
Other versions
JP2011160268A (en
Inventor
匠 小守
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2010021217A priority Critical patent/JP5407912B2/en
Publication of JP2011160268A publication Critical patent/JP2011160268A/en
Application granted granted Critical
Publication of JP5407912B2 publication Critical patent/JP5407912B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

本発明は、画像処理装置、画像処理方法、画像処理プログラム及び記録媒体に関し、詳細には、入力画像データを一旦可変長圧縮してメモリに保管した後に該メモリの圧縮データを伸長して出力する画像処理装置、画像処理方法、画像処理プログラム及び記録媒体に関する。   The present invention relates to an image processing apparatus, an image processing method, an image processing program, and a recording medium. Specifically, input image data is temporarily compressed in variable length and stored in a memory, and then the compressed data in the memory is decompressed and output. The present invention relates to an image processing apparatus, an image processing method, an image processing program, and a recording medium.

複写装置、プリンタ装置、ファクシミリ装置、複合装置等の画像処理装置においては、スキャナで読み取られた原稿の画像データをプリンタで画像形成出力する場合、以下のような処理手順によって行われる。すなわち、画像処理装置は、スキャナで読み取られて出力される画像データを圧縮器で可変長圧縮して圧縮データとし、CPU(Central Processing Unit )を介することなく、DMAC(Direct Memory Access Controller)によってメモリに転送して出力用の圧縮データとして保存する。その後、画像処理装置は、メモリ上の圧縮データをDMACで読み出して伸長器で伸長し、必要な画像処理を施して、プリンタで印刷出力する。   In an image processing apparatus such as a copying apparatus, a printer apparatus, a facsimile apparatus, or a composite apparatus, when image data of a document read by a scanner is formed and output by a printer, the following processing procedure is performed. In other words, the image processing apparatus compresses the image data read and output by the scanner into a variable length compressed by a compressor to be compressed data, and stores the data by a DMAC (Direct Memory Access Controller) without using a CPU (Central Processing Unit). And save it as compressed data for output. After that, the image processing apparatus reads the compressed data in the memory with the DMAC, decompresses it with the decompressor, performs necessary image processing, and prints it out with the printer.

このような一連の画像データ処理においては、スキャナの動作が一定の速度で行われるため、メモリへのデータ転送を一定速度で行う必要がある。   In such a series of image data processing, since the operation of the scanner is performed at a constant speed, it is necessary to transfer data to the memory at a constant speed.

そして、処理速度を向上させるために、上記スキャナで読み取られた画像データを圧縮してメモリに保存し、全ての圧縮データのメモリへの保存が完了する前に、メモリの圧縮データの読み出しを開始して、読み出した圧縮データを伸長してプロッタで印刷する処理を連続して行う逐次処理を行っている。この場合、画像データを圧縮してメモリに転送保存する圧縮転送処理とメモリの圧縮データを伸長してプロッタに転送する伸長転送処理を適切に連携させて全体の転送処理を速やかに行うことが、コピースピード、特に、1枚目のコピーであるファーストコピーの処理時間を短くする上で、重要である。   In order to improve the processing speed, the image data read by the scanner is compressed and stored in the memory, and before all the compressed data is stored in the memory, reading of the compressed data in the memory is started. Then, a sequential process is performed in which the read compressed data is decompressed and printed by the plotter. In this case, the entire transfer process can be performed quickly by appropriately linking the compression transfer process for compressing the image data and transferring and storing it in the memory and the decompression transfer process for expanding the compressed data in the memory and transferring it to the plotter. This is important for shortening the copy speed, particularly the processing time of the first copy, which is the first copy.

また、今日、画像データにおいては、印刷出力用のC(シアン)、M(マゼンタ)、Y(イエロー)、K(ブラック)のCMYK画像データだけでなく、転送や再利用が図られるため、R(レッド)、G(グリーン)、B(ブルー)のRGB画像データもメモリ上でハンドリングする必要がある。したがって、今日の画像処理装置においては、画像データの転送経路も複雑となってきており、コピー動作を行う場合の原稿の読み取りから印刷出力までのファーストコピー時間が長くなる原因の一つとなっている。   Also, today, image data can be transferred and reused in addition to CMYK image data of C (cyan), M (magenta), Y (yellow), and K (black) for print output. It is necessary to handle RGB image data of (red), G (green), and B (blue) on the memory. Therefore, in today's image processing apparatuses, the transfer path of image data has become complicated, which is one of the causes of a long first copy time from reading a document to printing output when performing a copy operation. .

また、入力される画像データを圧縮器で可変長圧縮してメモリに圧縮データとして保存する場合、圧縮器で圧縮される圧縮データのデータサイズが一定でないため、圧縮転送処理と伸長転送処理を連続して行う逐次処理においては、画像データの圧縮率に応じて圧縮器での処理時間にバラツキが発生し、ファーストコピー時間を保証することができなくなる。すなわち、DMACによる圧縮データの転送では、所定データ量の圧縮データがバッファに蓄積されると、メモリにDMA転送して書き込みを行い、メモリに書き込まれた圧縮データを所定量読み出してバッファに書き込んで、該バッファの圧縮データを伸長器に出力する。したがって、圧縮器の圧縮率によって圧縮器での処理時間にバラツキが発生すると、バッファに所定データ量の圧縮データが蓄積される時間にバラツキが発生し、圧縮転送と伸長転送を適切に連携させることができなくなる。   In addition, when the input image data is variable-length compressed by the compressor and saved as compressed data in the memory, the data size of the compressed data compressed by the compressor is not constant. In the sequential processing performed in this manner, the processing time in the compressor varies depending on the compression rate of the image data, and the first copy time cannot be guaranteed. That is, in the transfer of compressed data by DMAC, when a predetermined amount of compressed data is accumulated in the buffer, it is DMA-transferred and written to the memory, and a predetermined amount of compressed data written in the memory is read and written to the buffer. The compressed data in the buffer is output to the decompressor. Therefore, if there is a variation in the processing time in the compressor due to the compression rate of the compressor, there will be a variation in the time for which the predetermined amount of compressed data is stored in the buffer, and the compression transfer and decompression transfer will be linked appropriately. Can not be.

そして、従来、画像データを可変長圧縮して書き込み側バッファに蓄積した後に、メモリに転送して記憶し、記憶された圧縮データを読み出して伸長するときに、書き込み側バッファの蓄積量が第1の所定量に達したとき、または、第1の所定量に達する前に書き込み開始から所定時間経過したときのいずれか早いほうのタイミングで転送する技術が提案されている(特許文献1参照)。   Conventionally, after the image data is compressed in variable length and accumulated in the write side buffer, it is transferred to the memory and stored, and when the stored compressed data is read and decompressed, the accumulation amount in the write side buffer is the first. A technique has been proposed in which the transfer is performed at the earlier timing when the predetermined amount is reached or when a predetermined time has elapsed from the start of writing before reaching the first predetermined amount (see Patent Document 1).

しかしながら、上記従来技術にあっては、圧縮器で可変長圧縮された圧縮データが書き込み側バッファに所定量(転送パケットサイズ)蓄積されなくても、一定時間が経過すると、メモリへのデータ転送を行っているため、転送パケットサイズ(バンドサイズ)が蓄積される前に一定時間が経過して書き込み側バッファの圧縮データをメモリに転送すると、圧縮器内に圧縮途中のデータが残ることとなり、一定時間毎に一定の画像データをメモリに転送することができず、ファーストコピー時間のバラツキを完全に抑制することができないおそれがある。また、JPEGのように、可変長圧縮では、ファイルの終わりを表す終端符号EOI(End Of Identify)というマーカが一般的に付与され、JPEG規定では、終端符号EOI以降は無視して、何を記録してもよいこととなっているため、終端符号EOI以降にもデータ(冗長データ)が存在することがある。そして、従来技術にあっては、図19に示すように、斜線部分が有効圧縮データであるが、メモリから圧縮データを読み出す際に、ディスクリプタで設定されているデータ領域の全域を読み取るため、ディスクリプタで設定されているデータ領域のうち、図19に斜線で示す部分以外の終端符号EOI以降の空白部分にあるデータも読み出すこととなり、画像データを可変長圧縮する効果が希薄なものとなっていた。   However, in the above prior art, even if the compressed data compressed by the variable length by the compressor is not stored in the write side buffer in a predetermined amount (transfer packet size), the data transfer to the memory is performed after a certain period of time. Therefore, if a certain amount of time elapses before the transfer packet size (band size) is accumulated and the compressed data in the write buffer is transferred to the memory, the data being compressed will remain in the compressor. There is a possibility that constant image data cannot be transferred to the memory every time, and variations in the first copy time cannot be completely suppressed. Also, in variable-length compression, as in JPEG, a marker called end code EOI (End Of Identify) indicating the end of a file is generally added. In the JPEG standard, anything after the end code EOI is ignored and what is recorded. Therefore, data (redundant data) may exist after the end code EOI. In the prior art, as shown in FIG. 19, the shaded portion is effective compressed data. When reading compressed data from the memory, the entire data area set by the descriptor is read. In the data area set in Fig. 19, the data in the blank portion after the end code EOI other than the hatched portion in Fig. 19 is also read, and the effect of variable-length compression of the image data has been diminished. .

そこで、本発明は、記憶手段に書き込まれた圧縮データの読み出し時間を短縮しつつ、不要なデータの読み出しを禁止して、画像データを圧縮して記憶手段に転送する圧縮転送から該記憶手段の圧縮データを伸長側に転送する伸長転送の連携を適切に行い、転送処理時間を短縮する画像処理装置、画像処理方法、画像処理プログラム及び記録媒体を提供することを目的としている。   Therefore, the present invention reduces the time for reading compressed data written in the storage means, prohibits reading unnecessary data, compresses image data, and transfers the compressed data to the storage means. It is an object of the present invention to provide an image processing apparatus, an image processing method, an image processing program, and a recording medium that appropriately perform decompression transfer cooperation for transferring compressed data to the decompression side and shorten the transfer processing time.

本発明は、上記目的を達成するために、所定データ量を圧縮単位として可変長圧縮されて記憶手段に記憶された圧縮データを、伸長側からの次データ転送許可信号に応じてディスクリプタに基づいて該記憶手段から該圧縮単位毎に読み出して該伸長側に転送する場合に、該記憶手段から読み出してバッファへ書き込んだ圧縮データをカウントして、該圧縮データサイズがディスクリプタで指定されている指定データサイズになると出力されるライトカウント終了通知と、前記次データ転送許可通知のいずれかが発生すると、次のディスクリプタと圧縮データの記憶手段からの読み出しを行うことを特徴としている。   In order to achieve the above-mentioned object, the present invention uses compressed data stored in the storage means after being variable-length compressed with a predetermined data amount as a compression unit, based on a descriptor in accordance with a next data transfer permission signal from the decompression side. When reading from the storage unit for each compression unit and transferring to the decompression side, the compressed data read from the storage unit and written to the buffer is counted, and the specified data whose compressed data size is specified by the descriptor When either the write count end notification output when the size is reached or the next data transfer permission notification is generated, the next descriptor and compressed data are read from the storage means.

また、本発明は、前記伸長側が、前記圧縮単位毎の前記圧縮データの終端に付加されている終端信号に基づいて前記次データ転送許可信号を生成することを特徴としてもよい。   Further, the present invention may be characterized in that the decompression side generates the next data transfer permission signal based on a termination signal added to a termination of the compressed data for each compression unit.

さらに、本発明は、前記ライトカウント終了通知が発生すると、前記バッファから読み出した前記圧縮データのカウント値が前記指定データサイズになると出力されるリードカウント終了信号が発生するのを待って、次の前記ディスクリプタと前記圧縮データの読み出しを行うことを特徴としてもよい。   Further, the present invention waits for the generation of a read count end signal that is output when the count value of the compressed data read from the buffer reaches the specified data size when the write count end notification is generated. The descriptor and the compressed data may be read out.

また、本発明は、前記ライトカウント終了通知が発生すると、前記次データ転送許可信号が入力されるのを待って、次の前記ディスクリプタと前記圧縮データの読み出しを行うことを特徴としてもよい。   Further, the present invention may be characterized in that when the write count end notification is generated, the next descriptor and the compressed data are read after waiting for the next data transfer permission signal to be input.

さらに、本発明は、前記伸長手段が、前記次データ転送許可信号として、前記伸長手段が前記バッファリード制御手段から送られてきた前記圧縮データを一時保管する内部バッファが空になったことを示すバッファエンプティ信号、または/及び、前記圧縮データの伸長処理が終了したことを示す動作終了信号を出力することを特徴としてもよい。   Furthermore, the present invention shows that the decompression means has emptied the internal buffer in which the decompression means temporarily stores the compressed data sent from the buffer read control means as the next data transfer permission signal. A buffer empty signal and / or an operation end signal indicating that the decompression process of the compressed data has ended may be output.

本発明によれば、記憶手段から読み出した圧縮データのデータ量を監視することで、該記憶手段に書き込まれた圧縮データの読み出し時間を短縮することができ、画像データを圧縮して記憶手段に転送する圧縮転送から該記憶手段の圧縮データを伸長側に転送する伸長転送の連携を適切に行って、転送処理時間を短縮することができる。   According to the present invention, by monitoring the data amount of the compressed data read from the storage means, it is possible to shorten the read time of the compressed data written in the storage means, and compress the image data to the storage means. The transfer processing time can be shortened by appropriately coordinating the decompression transfer in which the compressed data in the storage means is transferred from the compressed transfer to the decompression side.

本発明の第1実施例を適用した複合装置の要部ブロック構成図。The principal part block block diagram of the compound apparatus to which 1st Example of this invention is applied. 画像伸長器のRDMACの詳細なブロック構成図。The detailed block block diagram of RDMAC of an image decompressor. ディスクリプタのフォーマット構成例を示す図。The figure which shows the format structural example of a descriptor. 画像伸長器のRDMACのディスクリプタリード制御部によるディスクリプタリード制御処理を示すフローチャート。10 is a flowchart showing descriptor read control processing by a descriptor read control unit of the RDMAC of the image decompressor. メモリ領域の圧縮ディスクリプタとディスクリプタを示す図。The figure which shows the compression descriptor and descriptor of a memory area. 画像伸長器のRDMACのタイミング図。The timing diagram of the RDMAC of the image decompressor. 従来の伸長側のRDMACのタイミング図。FIG. 6 is a timing diagram of a conventional decompression-side RDMAC. 本発明の第2実施例を適用した複合装置のRDMACの詳細なブロック構成図。The detailed block block diagram of RDMAC of the compound apparatus to which the second embodiment of the present invention is applied. 第2実施例のDPRリード制御部によるディスクリプタリード制御処理を示すフローチャート。12 is a flowchart illustrating descriptor read control processing by the DPR read control unit according to the second embodiment. 図9の続きの処理を示すフローチャート。10 is a flowchart showing processing subsequent to FIG. 第2実施例のメモリの圧縮データとディスクリプタを示す図。The figure which shows the compressed data and descriptor of the memory of 2nd Example. 不具合発生時のタイミング図。The timing chart at the time of malfunction occurrence. 第2実施例のRDMACのタイミング図。The timing diagram of RDMAC of 2nd Example. 第3実施例を適用した複合装置のRDMACの詳細なブロック構成図。The detailed block block diagram of RDMAC of the compound apparatus to which the third embodiment is applied. 第3実施例のDPRリード制御部によるディスクリプタリード制御処理を示すフローチャート。12 is a flowchart illustrating descriptor read control processing by the DPR read control unit according to the third embodiment. 図15の続きの処理を示すフローチャート。16 is a flowchart showing processing subsequent to FIG. 不具合発生時のタイミングチャート。Timing chart when trouble occurs. 第3実施例によるRDMACのタイミングチャート。The timing chart of RDMAC by 3rd Example. 従来のメモリの圧縮データ読み取り処理の説明図。Explanatory drawing of the compression data reading process of the conventional memory.

以下、本発明の好適な実施例を添付図面に基づいて詳細に説明する。なお、以下に述べる実施例は、本発明の好適な実施例であるので、技術的に好ましい種々の限定が付されているが、本発明の範囲は、以下の説明によって不当に限定されるものではなく、また、本実施の形態で説明される構成の全てが本発明の必須の構成要件ではない。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In addition, since the Example described below is a suitable Example of this invention, various technically preferable restrictions are attached | subjected, However, The range of this invention is unduly limited by the following description. However, not all the configurations described in the present embodiment are essential constituent elements of the present invention.

図1〜図7は、本発明の画像処理装置、画像処理方法、画像処理プログラム及び記録媒体の第1実施例を示す図であり、図1は、本発明の画像処理装置、画像処理方法、画像処理プログラム及び記録媒体の第1実施例を適用した複合装置1の要部ブロック構成図である。   1 to 7 are diagrams showing a first embodiment of an image processing device, an image processing method, an image processing program, and a recording medium according to the present invention. FIG. 1 shows an image processing device, an image processing method according to the present invention, 1 is a block diagram of a main part of a composite apparatus 1 to which a first embodiment of an image processing program and a recording medium is applied. FIG.

図1において、複合装置1は、コントローラ2とエンジン部3を備えており、コントローラ2とエンジン部3とは、ビデオI/Fにより接続されている。   In FIG. 1, the multifunction apparatus 1 includes a controller 2 and an engine unit 3, and the controller 2 and the engine unit 3 are connected by a video I / F.

エンジン部3は、スキャナ11とプロッタ12を備えており、原稿の画像を読み取って、コントローラ2で画像処理された画像データに基づいてプロッタ12で用紙に画像を印刷出力する。スキャナ11は、例えば、CCD(Charge Coupled Device )やCMOS(Complementary Metal Oxide Semiconductor; 相補型金属酸化膜半導体)を利用したイメージスキャナ等が利用されており、一般に、ADF(自動原稿送り装置)を備えている。ADFには、複数枚の原稿がセットされ、ADFは、セットされた原稿を1枚ずつスキャナ11の原稿読み取り位置に送給する。スキャナ11は、ADFから搬送されてきた原稿を走査し、原稿の画像を所定の解像度で読み取って、RGBの画像信号をデジタル変換した後、コントローラ2に出力する。   The engine unit 3 includes a scanner 11 and a plotter 12, reads an image of a document, and prints out an image on a sheet by the plotter 12 based on image data processed by the controller 2. As the scanner 11, for example, an image scanner using a CCD (Charge Coupled Device) or a CMOS (Complementary Metal Oxide Semiconductor) is used, and generally includes an ADF (Automatic Document Feeder). ing. A plurality of originals are set in the ADF, and the ADF feeds the set originals one by one to the original reading position of the scanner 11. The scanner 11 scans the document conveyed from the ADF, reads an image of the document with a predetermined resolution, converts the RGB image signal into a digital signal, and outputs it to the controller 2.

プロッタ12は、所定の印刷方式、例えば、電子写真方式、インク噴射方式のプロッタが用いられており、カラー、または、モノクロで用紙に画像を印刷出力する。   The plotter 12 uses a predetermined printing system, for example, an electrophotographic system or an ink ejection system plotter, and prints and outputs an image on paper in color or monochrome.

なお、複合装置1は、画像データの入力機能としては、スキャナ11に限るものではなく、例えば、ファクシミリ通信によってファクシミリデータを受信したり、ネットワークに接続されたコンピュータ等の情報処理装置から送られてきた画像データを受信したりして、入力画像データとしてもよい。また、複合装置1は、画像データの出力機能としても、プロッタ12で用紙に印刷出力するだけでなく、ファクシミリ機能によってファクシミリ送信出力したり、ネットワークに接続された情報処理装置や他の複合装置等に画像データを送信出力してもよい。   The composite apparatus 1 is not limited to the scanner 11 as an input function of image data. For example, the composite apparatus 1 receives facsimile data by facsimile communication or is sent from an information processing apparatus such as a computer connected to a network. The received image data may be received as input image data. In addition, the composite apparatus 1 not only outputs the image data on the paper by the plotter 12, but also outputs it by facsimile transmission by a facsimile function, an information processing apparatus connected to the network, another composite apparatus, etc. The image data may be transmitted and output.

コントローラ2は、ASIC(Application Specific Integrated Circuit)21、ASIC22、ハードディスク23、CPU(Central Processing Unit )24、操作部25及びメモリ26等を備えており、複合装置1の制御と描画及び通信を制御するとともに、操作部25からの操作入力を制御する。   The controller 2 includes an ASIC (Application Specific Integrated Circuit) 21, an ASIC 22, a hard disk 23, a CPU (Central Processing Unit) 24, an operation unit 25, a memory 26, and the like, and controls control, drawing, and communication of the composite apparatus 1. At the same time, the operation input from the operation unit 25 is controlled.

ASIC21は、画像圧縮/伸長及び画像処理のハードウェア要素を有する画像処理用のIC(Integrated Circuit:集積回路)であり、ハードディスク23、メモリ26及びCPU24を接続するブリッジの役割も有している。ASIC21は、内部レジスタ31、スキャナI/F32、画像伸長器33及び画像処理器34等を備えており、内部レジスタ31は、CPU24によって処理パラメータ等のデータが設定される。   The ASIC 21 is an image processing IC (Integrated Circuit) having hardware elements for image compression / decompression and image processing, and also serves as a bridge for connecting the hard disk 23, the memory 26, and the CPU 24. The ASIC 21 includes an internal register 31, a scanner I / F 32, an image decompressor 33, an image processor 34, and the like. Data such as processing parameters is set in the internal register 31 by the CPU 24.

スキャナI/F32は、圧縮器(圧縮手段)41及びWDMAC(Write Direct Memory Access Controller)42等を備えており、スキャナ11から入力される画像データを所定のデータ量(圧縮単位)毎に圧縮器41によってJPEG等の可変長圧縮方式で可変長圧縮して、WDMAC42によってCPU24を介することなく、メモリ26にDMA転送して圧縮データとしてデータ量を少なくして書き込む。WDMAC42は、CPU24がメモリ26上に書き込んだディスクリプタ(DPR)を参照して、メモリ26に書き込む圧縮データ(符号データ)のデータ量、書き込むアドレスを管理し、CPU24の制御を介することなく、メモリ26にメモリアクセスを行って、圧縮データを書き込む。   The scanner I / F 32 includes a compressor (compression unit) 41, a WDMAC (Write Direct Memory Access Controller) 42, and the like, and compresses image data input from the scanner 11 for each predetermined data amount (compression unit). 41 is subjected to variable-length compression by a variable-length compression method such as JPEG, and DMA-transferred to the memory 26 by the WDMAC 42 without using the CPU 24 to write the compressed data with a reduced data amount. The WDMAC 42 refers to the descriptor (DPR) written on the memory 26 by the CPU 24 and manages the amount of compressed data (code data) to be written to the memory 26 and the address to be written. Memory access to write compressed data.

画像伸長器33は、伸長器43及びRDMAC(Read Direct Memory Access Controller)44等を備えており、RDMAC44は、CPU24がメモリ26上に書き込んだディスクリプタを参照して、CPU24を介することなく、メモリ26上の圧縮データをリードして、伸長器43に渡す。伸長器(伸長手段)43は、RDMAC44のリードした圧縮データを元の画像データに伸長(復号)し、伸長後の画像データを、画像処理器34へ出力する。そして、RDMAC44は、メモリ26上のデータを読み込む際、メモリ26にリードコマンドを発行した後、該リードコマンドに対するリードデータ応答を待たずに次のリードコマンドを発行するリードコマンド先投げを行うことで、メモリリード時間を短縮させる。   The image decompressor 33 includes a decompressor 43, an RDMAC (Read Direct Memory Access Controller) 44, and the like. The RDMAC 44 refers to a descriptor written on the memory 26 by the CPU 24, and does not go through the CPU 24. The compressed data above is read and passed to the decompressor 43. The decompressor (decompression unit) 43 decompresses (decodes) the compressed data read by the RDMAC 44 to the original image data, and outputs the decompressed image data to the image processor 34. Then, when reading data on the memory 26, the RDMAC 44 issues a read command to the memory 26, and then performs a read command pre-throw that issues the next read command without waiting for a read data response to the read command. Reduce memory read time.

画像処理器34は、画像処理部45及びWDMAC46等を備えており、画像処理部45は、画像伸長器33で伸長された画像データに対して、印刷出力するのに必要な所定の画像処理、例えば、誤差拡散やガンマ変換等の画像処理を行う。WDMAC46は、CPU24がメモリ26上に書き込んだディスクリプタを参照して、画像処理部45が画像処理したメモリ26に書き込む画像データのデータ量、書き込むアドレスを管理し、CPU24の制御を介することなく、メモリ26にメモリアクセスを行って、画像データを書き込む。   The image processing unit 34 includes an image processing unit 45, a WDMAC 46, and the like. The image processing unit 45 performs predetermined image processing necessary for printing out the image data expanded by the image expansion unit 33, For example, image processing such as error diffusion and gamma conversion is performed. The WDMAC 46 refers to the descriptor written on the memory 26 by the CPU 24, manages the data amount of the image data written to the memory 26 processed by the image processing unit 45, and the address to be written. A memory access is made to the memory 26 to write image data.

ASIC22は、メモリ26上にある画像データをプロッタ12へ転送する際のプロッタ12との印刷タイミングを制御する機能を有したICであり、メモリ26やCPU24を接続するブリッジの役割も持っている。ASIC22は、内部レジスタ47及びプロッタI/F48を有しており、プロッタI/F48は、RDMAC49を有している。内部レジスタ47は、CPU24によって処理パラメータ等のデータが設定される。プロッタI/F48のRDMAC49は、メモリ26上の画像データを読み込む際に、リードコマンド発行後、リードデータ応答を待たずに次のリードコマンドを発行するリードコマンド先投げを行うことで、メモリリード時間の短縮を行う。   The ASIC 22 is an IC having a function of controlling printing timing with the plotter 12 when image data on the memory 26 is transferred to the plotter 12, and also has a role of a bridge for connecting the memory 26 and the CPU 24. The ASIC 22 has an internal register 47 and a plotter I / F 48, and the plotter I / F 48 has an RDMAC 49. The internal register 47 is set with data such as processing parameters by the CPU 24. When reading the image data on the memory 26, the RDMAC 49 of the plotter I / F 48 performs a read command first throw that issues the next read command without waiting for a read data response after issuing the read command, thereby reducing the memory read time. To shorten.

操作部25は、ユーザからの入力操作を受け付けてユーザに対して報知する情報を表示する機能を有し、メカニカルキーやタッチパネルキー等からなるテンキー、文字入力キー、スタートキー、ストップキー等の操作キーを有するとともに、操作キーから操作入力される情報や複合装置1の動作状態及び時刻等を表示する液晶ディスプレイ(LCD)等の表示部を有している。   The operation unit 25 has a function of accepting an input operation from the user and displaying information to be notified to the user. Operation of a numeric keypad including a mechanical key, a touch panel key, a character input key, a start key, a stop key, etc. In addition to having a key, it has a display unit such as a liquid crystal display (LCD) that displays information input from the operation key, the operating state of the composite apparatus 1, the time, and the like.

ハードディスク23は、画像データ、プログラム、フォントデータ及びフォームデータ等をCPU24の制御下で保存するが、記憶手段としては、ハードディスク23に限るものではなく、これらの情報を記憶することができる不揮発性の記憶手段、例えば、光ディスク等であってもよい。   The hard disk 23 stores image data, programs, font data, form data, and the like under the control of the CPU 24. However, the storage means is not limited to the hard disk 23, and is a non-volatile storage capable of storing such information. It may be a storage means, for example, an optical disk or the like.

メモリ(記憶手段)26は、RAM(Random Access Memory)等で構成され、画像データバッファ、圧縮データバッファとして用いられる。   The memory (storage means) 26 is constituted by a RAM (Random Access Memory) or the like, and is used as an image data buffer and a compressed data buffer.

CPU24は、図示しないROM(Read Only Memory)やハードディスク23に記憶されているプログラムに従ってASIC21、ASIC22の内部レジスタ31、47等へのデータ設定を行って、エンジン部3とともにコントローラ2の動作を制御し、複合装置1としての基本処理を実行するとともに、本発明の画像処理方法を実行する。また、CPU24は、ASIC21とASIC22のメモリアクセスのアービトレーションも行う。   The CPU 24 sets data in the internal registers 31 and 47 of the ASIC 21 and the ASIC 22 according to a program stored in a ROM (Read Only Memory) or the hard disk 23 (not shown), and controls the operation of the controller 2 together with the engine unit 3. The basic processing as the composite apparatus 1 is executed, and the image processing method of the present invention is executed. The CPU 24 also performs memory access arbitration for the ASIC 21 and the ASIC 22.

上記画像伸長器33のRDMAC(リードDMA制御手段)44は、図2に示すようにブロック構成されており、DPRリード制御部51、メモリI/F52、ライトトグル制御部53、リードトグル制御部54、2つのバッファ55a、55b及びレジスタ56等を備えている。   The RDMAC (read DMA control means) 44 of the image decompressor 33 has a block configuration as shown in FIG. 2, and includes a DPR read control unit 51, a memory I / F 52, a write toggle control unit 53, and a read toggle control unit 54. Two buffers 55a and 55b, a register 56, and the like are provided.

DPRリード制御部(ディスクリプタリード制御手段)51は、メモリ26上にCPU24によって書き込まれたディスクリプタ(DPR)をリードして、ディスクリプタ情報(SA/SIZE)をリードトグル制御部54、ライトトグル制御部53、メモリI/F52へ分配し、また、後述するように、ライトトグル制御部53のライトカウント終了通知または伸長器43からの次バンド転送許可信号(次データ転送許可信号)NEXTが通知されると、ディスクリプタのNDPに記載されているアドレスをリードアクセスする。また、DPRリード制御部51は、バッファ55a、55bの空き状況に基づいてディスクリプタのDPRリードコマンドの先投げ個数を制御する。すなわち、伸長器43は、可変長圧縮データの終端を示す終端符号EOIを検知すると、次バンド転送許可信号NEXTをRDMAC44のリードトグル制御部54及びDPRリード制御部51に出力する。   The DPR read control unit (descriptor read control means) 51 reads the descriptor (DPR) written by the CPU 24 on the memory 26, reads the descriptor information (SA / SIZE), the read toggle control unit 54, and the write toggle control unit 53. When it is distributed to the memory I / F 52 and, as will be described later, a write count end notification from the write toggle control unit 53 or a next band transfer permission signal (next data transfer permission signal) NEXT from the decompressor 43 is notified. Read access is made to the address described in the NDP of the descriptor. Further, the DPR read control unit 51 controls the number of first throws of the DPR read command of the descriptor based on the availability of the buffers 55a and 55b. That is, when the decompressor 43 detects the termination code EOI indicating the termination of the variable length compressed data, it outputs the next band transfer permission signal NEXT to the read toggle control unit 54 and the DPR read control unit 51 of the RDMAC 44.

なお、ディスクリプタは、図3に示すようにフォーマット構成されており、各4byte(バイト)のNDP(Next Descriptor Pointer)、SA(Start Address)、SIZE、Option等で構成されていて、CPU24によってメモリ26上に書き込まれる。SAは、RDMAC44がリードする圧縮データの先頭アドレスが記載され、SIZEは、転送する圧縮データのデータ量が記載される。なお、本実施例の複合装置1では、圧縮データが可変長圧縮データであるため、データ量は、不明であるが、圧縮器41の最悪圧縮率分のデータサイズがSIZEに記載される。NDPは、次ディスクリプタのアドレスが記載され、NDP=0の場合は、次のディスクリプタが無いことを示している。MODEは、DMACのモード設定が記載される。   The descriptor has a format configuration as shown in FIG. 3, and is composed of a 4-byte (byte) NDP (Next Descriptor Pointer), SA (Start Address), SIZE, Option, and the like. Written on. SA describes the start address of the compressed data read by the RDMAC 44, and SIZE describes the amount of compressed data to be transferred. In the composite apparatus 1 of this embodiment, since the compressed data is variable length compressed data, the data amount is unknown, but the data size corresponding to the worst compression rate of the compressor 41 is described in SIZE. NDP describes the address of the next descriptor. When NDP = 0, it indicates that there is no next descriptor. In MODE, the mode setting of DMAC is described.

メモリI/F(読み出し手段)52は、アドレス生成部52aを備えており、アドレス生成部52aは、DPRリード制御部51からのDPRアドレス(ディスクリプタアドレス)またはライトトグル制御部53からのラインカウント値に基づいてメモリアクセスするメモリ26のアドレスを生成する。メモリI/F52は、アドレス生成部52aの生成したアドレスを用いてリードコマンドを発行する。また、メモリI/F52は、発行したリードコマンドに応答するリードデータを、DPRリード制御部51またはライトトグル制御部53へ転送する。   The memory I / F (reading unit) 52 includes an address generation unit 52a. The address generation unit 52a receives the DPR address (descriptor address) from the DPR read control unit 51 or the line count value from the write toggle control unit 53. Based on the above, an address of the memory 26 to be accessed is generated. The memory I / F 52 issues a read command using the address generated by the address generation unit 52a. Further, the memory I / F 52 transfers read data in response to the issued read command to the DPR read control unit 51 or the write toggle control unit 53.

ライトトグル制御部(バッファライト制御手段)53は、ライトカウンタ53aを備えており、ライトカウンタ(ライトカウント手段)53aは、バッファ55a、55bに書き込む圧縮データをカウントする。ライトトグル制御部53は、ライトカウンタ53aのカウント結果であるライトカウント値に基づいて、圧縮データを書き込むバッファ55a、55bをトグルに制御して圧縮データのバッファ55a、55bの書き込みを行うとともに、バッファ55a、55bの空き状況をDPRリード制御部51へ通知する。ライトカウンタ53aは、初期値をSIZEとしてバッファ55a、55bへ書き込んだデータ量だけダウンカウントし、カウンタ値が「0」になると、DPRリード制御部51へライトカウント終了通知を出力(アサート)する。   The write toggle control unit (buffer write control means) 53 includes a write counter 53a, and the write counter (write count means) 53a counts compressed data to be written to the buffers 55a and 55b. The write toggle controller 53 controls the buffers 55a and 55b for writing the compressed data to toggle based on the write count value that is the count result of the write counter 53a, and writes the compressed data buffers 55a and 55b. The DPR read control unit 51 is notified of the availability of 55a and 55b. The write counter 53a counts down the data amount written to the buffers 55a and 55b with the initial value as SIZE, and outputs (asserts) a write count end notification to the DPR read control unit 51 when the counter value becomes “0”.

リードトグル制御部54は、バッファ55a、55bの読み込み制御及びバッファ55a、55bから読み込む圧縮データをカウントするリードカウンタ54aを備えており、リードカウンタ54aは、初期値をSIZEとして、バッファ55a、55bから読み込んだ圧縮データのデータ量だけダウンカウントする。リードトグル制御部54は、カウント中は、伸長器43に出力しているデータ有効信号dma_aliveをアサートし、カウンタ値が「0」になると、データ有効信号dma_aliveをネゲートするとともに、EOB(End of Block)パルスを後段の伸長器43に通知する。また、リードトグル制御部54は、次バンド転送許可信号NEXTがアサートされると、データ有効信号dma_aliveをネゲートし、リードカウンタ54aのリードカウントが「0」になる。この際、EOBパルスは後段へ出力しない。   The read toggle control unit 54 includes a read counter 54a that controls the reading of the buffers 55a and 55b and counts the compressed data read from the buffers 55a and 55b. The read counter 54a sets the initial value as SIZE and reads from the buffers 55a and 55b. Count down the amount of compressed data read. During the counting, the read toggle control unit 54 asserts the data valid signal dma_alive output to the decompressor 43. When the counter value becomes “0”, the read toggle control unit 54 negates the data valid signal dma_alive and EOB (End of Block). ) Notify the pulse to the subsequent decompressor 43. Further, when the next band transfer permission signal NEXT is asserted, the read toggle control unit 54 negates the data valid signal dma_alive, and the read count of the read counter 54a becomes “0”. At this time, the EOB pulse is not output to the subsequent stage.

バッファ55a、55bは、1リードコマンド分のバッファ容量を有しており、リードコマンドの先投げ個数と同じ個数のバッファ55a、55bを有する。本実施例の複合装置1は、2個のバッファ55a、55bを有しており、リードコマンド先投げ個数は2個である。   The buffers 55a and 55b have a buffer capacity for one read command, and have the same number of buffers 55a and 55b as the number of read commands to be thrown forward. The composite apparatus 1 of this embodiment has two buffers 55a and 55b, and the number of read command first throws is two.

そして、本実施例の複合装置1は、ROM、EEPROM(Electrically Erasable and Programmable Read Only Memory )、EPROM、フラッシュメモリ、フレキシブルディスク、CD−ROM(Compact Disc Read Only Memory )、CD−RW(Compact Disc Rewritable )、DVD(Digital Versatile Disk)、SD(Secure Digital)カード、MO(Magneto-Optical Disc)等のコンピュータが読み取り可能な記録媒体に記録されている本発明の画像処理方法を実行する画像処理プログラムを読み込んでROM等に導入することで、後述するメモリ26に書き込まれた圧縮データの読み出し時間を短縮して、画像を圧縮してメモリ26に転送する圧縮転送から該メモリ26の圧縮データを伸長器43に転送する伸長転送の連携を適切に行い、転送処理時間を短縮する画像処理方法を実行する画像処理装置として構築されている。この画像処理プログラムは、アセンブラ、C、C++、C#、Java(登録商標)等のレガシープログラミング言語やオブジェクト指向ブログラミング言語等で記述されたコンピュータ実行可能なプログラムであり、上記記録媒体に格納して頒布することができる。   The composite apparatus 1 of this embodiment includes a ROM, an EEPROM (Electrically Erasable and Programmable Read Only Memory), an EPROM, a flash memory, a flexible disk, a CD-ROM (Compact Disc Read Only Memory), and a CD-RW (Compact Disc Rewritable). ), DVD (Digital Versatile Disk), SD (Secure Digital) card, MO (Magneto-Optical Disc), etc., an image processing program for executing the image processing method of the present invention recorded on a computer-readable recording medium By reading and introducing it into a ROM or the like, the compressed data written in the memory 26, which will be described later, is shortened, and the compressed data in the memory 26 is decompressed from the compressed transfer for compressing the image and transferring it to the memory 26. The image which executes the image processing method which shortens the transfer processing time by appropriately coordinating the decompression transfer transferred to 43 It is constructed as an image processing device. This image processing program is a computer-executable program written in a legacy programming language such as assembler, C, C ++, C #, Java (registered trademark) or an object-oriented programming language, and is stored in the recording medium. Can be distributed.

次に、本実施例の作用を説明する。本実施例の複合装置1は、メモリ26からのダミーデータの読み込みを防止しつつ圧縮データの読み出しを高速に行って、画像データを圧縮してメモリ26に転送する圧縮転送からメモリ26の圧縮データを伸長器43に転送する伸長転送の連携を適切に行って、転送処理時間を短縮する。   Next, the operation of this embodiment will be described. The composite apparatus 1 of the present embodiment reads compressed data at high speed while preventing reading of dummy data from the memory 26, compresses image data, and transfers the compressed data to the memory 26. The transfer processing time is shortened by appropriately coordinating the decompression transfer for transferring the data to the decompressor 43.

すなわち、一定の速度で入力される入力画像データを可変長圧縮してメモリ26に転送保管し、メモリ26上の可変長圧縮データを読み出して伸長して出力する場合、入力画像データを可変長圧縮してメモリ26へ転送する圧縮転送処理に対して、メモリ26内の可変長圧縮データを読み出して伸長する伸長転送処理よりもバスの使用権を優先的に与えてデータ転送を行う。したがって、圧縮転送が伸長転送を追い抜いて適切な後段の処理を行うことができなくなるおそれがある。また、RDMAC44は、終端符号EOI以降のディスクリプタで指定されているメモリ領域に空きがあるときには、該空き領域のダミーデータ(冗長データ)を読み込んでしまうが、このダミーデータの読み込みを防止して、処理速度を向上させることが、上記転送速度の向上に有効である。   That is, when input image data input at a constant speed is variable-length compressed and transferred and stored in the memory 26, when the variable-length compressed data on the memory 26 is read out and decompressed and output, the input image data is variable-length compressed. For the compression transfer processing to transfer to the memory 26, data transfer is performed by giving the right to use the bus preferentially over the decompression transfer processing for reading and expanding the variable length compressed data in the memory 26. Therefore, there is a possibility that the compression transfer cannot overtake the decompression transfer and cannot perform appropriate subsequent processing. The RDMAC 44 reads dummy data (redundant data) in the empty area when there is an empty memory area specified by the descriptor after the end code EOI. Increasing the processing speed is effective for improving the transfer speed.

そこで、本実施例の複合装置1は、RDMAC44によるメモリ26の可変長圧縮データの読み出しにおいて、ダミーデータの読み込みを防止して圧縮データの読み出し時間を短縮して、圧縮転送処理と伸長転送処理を適切に連携させ、転送処理全体の処理速度の向上を図っている。   Therefore, in the reading of variable length compressed data from the memory 26 by the RDMAC 44, the composite apparatus 1 of this embodiment prevents reading of dummy data and shortens the reading time of compressed data, and performs compression transfer processing and decompression transfer processing. It is linked appropriately to improve the processing speed of the entire transfer process.

すなわち、画像伸長器33は、RDMAC44が、メモリ26上のディスクリプタ(DPR)を参照して、リードコマンドを発行することで、メモリ26上の圧縮データの読み込みを行って伸長器43に出力して、伸長器43で圧縮データの伸長を行う。そして、このRDMAC44は、メモリ26のリード処理をDPRリード制御部51が行っており、図4に示すようにディスクリプタリード制御処理を行う。すなわち、DPRリード制御部51は、RDMAC44が起動されると、レジスタ56にCPU24によって設定された先頭のディスクリプタのアドレスである初期値のディスクリプタポインタ(DPRポインタ)をレジスタ56からロードし(ステップS101)、メモリ26の該初期値のディスクリプタポインタ(DPRポインタ)に設定されているバンドのアドレスを読み取って内部レジスタに設定する(ステップS102)。   That is, in the image decompressor 33, the RDMAC 44 reads the compressed data on the memory 26 and outputs it to the decompressor 43 by issuing a read command with reference to the descriptor (DPR) on the memory 26. The decompressor 43 decompresses the compressed data. In the RDMAC 44, the DPR read control unit 51 performs the read process of the memory 26, and performs the descriptor read control process as shown in FIG. That is, when the RDMAC 44 is activated, the DPR read control unit 51 loads the initial value descriptor pointer (DPR pointer), which is the address of the first descriptor set by the CPU 24, into the register 56 from the register 56 (step S101). The address of the band set in the initial descriptor pointer (DPR pointer) of the memory 26 is read and set in the internal register (step S102).

次に、DPRリード制御部51は、初期値のディスクリプタポインタ(DPRポインタ)に記載されているアドレスをディスクリプタアドレスバス(DPRアドレスバス)に設定し、メモリI/F52にディスクリプタリードトリガ(DPRリードトリガ)を発行する(ステップS104)。メモリI/F52は、ステップS103で設定されたディスクリプタアドレスのリードコマンドをメモリ52に発行し、DPRリード制御部51は、発行したリードコマンドに対応するディスクリプタリードデータ(DPRリードデータ)の応答を待つ(ステップS105)。   Next, the DPR read control unit 51 sets the address described in the descriptor pointer (DPR pointer) of the initial value in the descriptor address bus (DPR address bus), and sets the descriptor read trigger (DPR read trigger) in the memory I / F 52. ) Is issued (step S104). The memory I / F 52 issues a read command for the descriptor address set in step S103 to the memory 52, and the DPR read control unit 51 waits for a response of descriptor read data (DPR read data) corresponding to the issued read command. (Step S105).

DPRリード制御部51は、ディスクリプタリードデータを受け取ると、ディスクリプタ情報をRDMAC44の必要な内部制御部に分配する(ステップS106)。すなわち、DPRリード制御部51は、ディスクリプタ情報のうち、SA情報をメモリI/F52へ転送し、SIZE情報をライトトグル制御部53とリードトグル制御部54へ転送する。   When receiving the descriptor read data, the DPR read control unit 51 distributes the descriptor information to the necessary internal control unit of the RDMAC 44 (step S106). That is, the DPR read control unit 51 transfers the SA information of the descriptor information to the memory I / F 52 and transfers the SIZE information to the write toggle control unit 53 and the read toggle control unit 54.

DPRリード制御部51は、ディスクリプタ情報(SA1/SIZE1/NDP1/MODE1)をDPRリード制御部51内部で保持(ラッチ)し(ステップS107)、ライトカウント終了通知または次バンド転送許可信号NEXTの通知を待つ(ステップS108)。   The DPR read control unit 51 holds (latches) the descriptor information (SA1 / SIZE1 / NDP1 / MODE1) in the DPR read control unit 51 (step S107), and notifies the write count end notification or the next band transfer permission signal NEXT. Wait (step S108).

DPRリード制御部51は、ライトカウント終了通知または次バンド転送許可信号NEXTの通知を受け取ると、ディスクリプタ情報のNDPを確認する(ステップS109)。   When receiving the write count end notification or the next band transfer permission signal NEXT notification, the DPR read control unit 51 confirms the NDP of the descriptor information (step S109).

DPRリード制御部51は、ステップS109で、ディスクリプタ情報のNDPが「0」以外であると、全ての圧縮ディスクリプタの終端ではないと判断して、NDPが示しているアドレスを内部レジスタに設定し(ステップS110)、ステップS104に戻って、ディスクリプタリードトリガ(DPRリードトリガ)のメモリI/F52への発行から上記同様に処理する(ステップS104〜S109)。   In step S109, if the NDP of the descriptor information is other than “0”, the DPR read control unit 51 determines that it is not the end of all the compressed descriptors, and sets the address indicated by the NDP in the internal register ( Step S110), returning to step S104, processing is performed in the same manner as described above from the issuance of the descriptor read trigger (DPR read trigger) to the memory I / F 52 (steps S104 to S109).

そして、ステップS109で、ディスクリプタ情報のNDPが「0」であると、DPRリード制御部51は、全圧縮データの終了であると判断して、処理を終了する。   In step S109, if the NDP of the descriptor information is “0”, the DPR read control unit 51 determines that all the compressed data is completed, and ends the process.

すなわち、図5に示すようにメモリ26に圧縮データとディスクリプタ(DPR)が記録されている場合、すなわち、ディスクリプタで指定されているデータサイズよりも、可変長圧縮データのデータサイズが小さく、終端符号EOI以降にDPRサイズまでに冗長データが存在する場合、図6にRDMAC44のタイミング図を示すように、DPRリード制御部51は、タイミングTaにおいて、伸長器43が終端符号EOIを検知して次バンド転送許可信号NEXTをRDMAC44のリードトグル制御部54とDPRリード制御部51に出力して、DPRリード制御部51がこの次バンド転送許可信号NEXTを受信すると、矢印で示すように、次バンドのディスクリプタをリード(DPRリード)する。なお、図6において、A_Dataは、RDMAC44がメモリ26から読み取るデータを示しており、B_Dataは、RDMAC44から伸長器43に出力するデータを示している。   That is, as shown in FIG. 5, when the compressed data and descriptor (DPR) are recorded in the memory 26, that is, the data size of the variable-length compressed data is smaller than the data size specified by the descriptor, the terminal code When redundant data exists up to the DPR size after the EOI, as shown in the timing diagram of the RDMAC 44 in FIG. 6, the DPR read control unit 51 detects the termination code EOI at the timing Ta and the next band. The transfer permission signal NEXT is output to the read toggle control unit 54 and the DPR read control unit 51 of the RDMAC 44. When the DPR read control unit 51 receives the next band transfer permission signal NEXT, the descriptor of the next band is indicated by an arrow. Is read (DPR lead). In FIG. 6, A_Data indicates data that the RDMAC 44 reads from the memory 26, and B_Data indicates data that is output from the RDMAC 44 to the decompressor 43.

したがって、RDMAC44は、終端符号EOI以降のダミーデータのリードを防止することができ、リード処理のパフォーマンスを向上させることができる。このとき、リードトグル制御部54は、データ有効信号dma_aliveをネゲートするとともに、EOBパルスを後段の伸長器43に通知する。   Therefore, the RDMAC 44 can prevent reading of dummy data after the end code EOI, and can improve the performance of the read process. At this time, the read toggle control unit 54 negates the data valid signal dma_alive and notifies the decompressor 43 in the subsequent stage of the EOB pulse.

なお、従来は、ディスクリプタリード制御部が、ライトトグル制御部からのライトカウント終了通知のみを検知していたため、RDMACは、図7に示すように、終端符号EOI以降のダミーデータ(冗長データ)をリードしてしまい、可変長圧縮の効果が希薄なものとなっていた。   Conventionally, since the descriptor read control unit detects only the write count end notification from the write toggle control unit, the RDMAC stores dummy data (redundant data) after the end code EOI as shown in FIG. As a result, the effect of variable length compression was diminished.

このように、本実施例の複合装置1は、所定データ量を圧縮単位として可変長圧縮されてメモリ26に記憶された圧縮データを、伸長器43からの次バンド転送許可信号(次データ転送許可信号)NEXTに応じてディスクリプタに基づいてメモリ26からバンド(圧縮単位)毎に読み出して伸長器43に転送する場合に、RDMAC44のライトトグル制御部53が、メモリ26から読み出したバンドの圧縮データをバッファ55a、55bに書き込み、ライトカウンタ53aが、該圧縮データのバッファ55a、55bへの書き込みを完了すると書き込み完了通知をDPRリード制御部51に発行して、ディスクリプタリード制御部51が、バッファ55a、55bに書き込まれた圧縮データを読み出して伸長器43へ出力するとともに、バッファ55a、55bに書き込んだ圧縮データをライトカウンタ53aによってカウントして、ライトカウンタ53aのカウントした圧縮データサイズがディスクリプタで指定されている指定データサイズになると、ライトカウント終了通知をDPRリード制御部51に出力し、DPRリード制御部51が、このライトカウント終了通知と伸長器43からの次バンド転送許可信号NEXTのいずれかが入力されると、次のDPRリードトリガをメモリI/F52に発行して、次のバンドのディスクリプタと圧縮データのメモリ26からの読み出しを行っている。   As described above, the composite apparatus 1 according to the present embodiment uses the next band transfer permission signal (next data transfer permission signal) from the decompressor 43 to the compressed data stored in the memory 26 by variable length compression using a predetermined data amount as a compression unit. Signal) When the band is read out from the memory 26 for each band (compression unit) in accordance with the descriptor and transferred to the decompressor 43, the write toggle control unit 53 of the RDMAC 44 reads the compressed data of the band read out from the memory 26. When writing to the buffers 55a and 55b and the write counter 53a completes writing of the compressed data to the buffers 55a and 55b, the write completion notification is issued to the DPR read control unit 51, and the descriptor read control unit 51 The compressed data written in 55b is read out and output to the decompressor 43, and the The compressed data written in the files 55a and 55b is counted by the write counter 53a. When the compressed data size counted by the write counter 53a reaches the designated data size designated by the descriptor, a write count end notification is sent to the DPR read control unit 51. When either the write count end notification or the next band transfer permission signal NEXT from the decompressor 43 is input, the DPR read control unit 51 issues the next DPR read trigger to the memory I / F 52. Thus, the descriptor of the next band and the compressed data are read from the memory 26.

したがって、メモリ26から読み出した圧縮データのデータ量を監視することで、メモリ26に書き込まれた圧縮データの読み出し時間を短縮することができ、画像データを圧縮してメモリ26に転送する圧縮転送からメモリ26の圧縮データを伸長器43に転送する伸長転送の連携を適切に行って、転送処理時間を短縮することができる。   Therefore, by monitoring the data amount of the compressed data read from the memory 26, it is possible to shorten the read time of the compressed data written in the memory 26. From the compression transfer in which the image data is compressed and transferred to the memory 26. The transfer processing time can be shortened by appropriately coordinating the decompression transfer for transferring the compressed data in the memory 26 to the decompressor 43.

また、本実施例の複合装置1は、伸長器43が、圧縮単位毎の圧縮データの終端に付加されている終端符号EOIに基づいて次データ転送許可信号を生成している。   In the composite apparatus 1 of the present embodiment, the decompressor 43 generates the next data transfer permission signal based on the end code EOI added to the end of the compressed data for each compression unit.

したがって、終端符号EOI以降に付加されているダミーデータ(冗長データ)を読み取ることを防止することができ、圧縮データの読み取り速度をより一層向上させることができる。   Accordingly, reading of dummy data (redundant data) added after the end code EOI can be prevented, and the reading speed of the compressed data can be further improved.

図8〜図13は、本発明の画像処理装置、画像処理方法、画像処理プログラム及び記録媒体の第2実施例を示す図であり、図8は、本発明の画像処理装置、画像処理方法、画像処理プログラム及び記録媒体の第2実施例を適用した複合装置1の要部ブロック構成図である。   8 to 13 are diagrams showing a second embodiment of the image processing apparatus, the image processing method, the image processing program, and the recording medium of the present invention, and FIG. 8 shows the image processing apparatus, the image processing method, It is a principal block block diagram of the compound apparatus 1 to which the second embodiment of the image processing program and the recording medium is applied.

なお、本実施例は、上記第1実施例の複合装置1と同様の複合装置に適用したものであり、本実施例の説明においては、第1実施例の複合装置1と同様の構成部分には、同一の符号を付して、その説明を省略または簡略化するとともに、図示しない部分についても、第1実施例の説明で用いた符号をそのまま用いて説明する。   The present embodiment is applied to a composite apparatus similar to the composite apparatus 1 of the first embodiment. In the description of the present embodiment, the same components as those of the composite apparatus 1 of the first embodiment are used. Are denoted by the same reference numerals, the description thereof will be omitted or simplified, and portions not shown will be described using the reference numerals used in the description of the first embodiment as they are.

図8において、RDMAC(リードDMA制御手段)60は、第1実施例のRDMAC44と同様のメモリI/F52、ライトトグル制御部53、リードトグル制御部54、バッファ55a、55b及びレジスタ56等を備えているとともに、DPRリード制御部(ディスクリプタリード制御手段)61を備えている。   In FIG. 8, an RDMAC (read DMA control means) 60 includes a memory I / F 52, a write toggle control unit 53, a read toggle control unit 54, buffers 55a and 55b, a register 56, and the like similar to the RDMAC 44 of the first embodiment. In addition, a DPR read control unit (descriptor read control means) 61 is provided.

リードトグル制御部54は、第1実施例と同様に、リードカウンタ54aを備えており、リードカウンタ54aは、上述のように、初期値をディレクトリのSIZEに設定されているデータサイズとして、バッファ55a、55bから読み込んだ圧縮データのデータ量だけダウンカウントする。リードトグル制御部54は、リードカウンタ54aがカウント中は、伸長器43に出力しているデータ有効信号dma_aliveをアサートし、カウンタ値が「0」になると、データ有効信号dma_aliveをネゲートするとともに、EOBパルスを後段の伸長器43に通知する。また、リードトグル制御部54は、次バンド転送許可信号NEXTがアサートされると、データ有効信号dma_aliveをネゲートし、リードカウンタ54aのリードカウントが「0」になる。この際、EOBパルスは後段へ出力しない。   As in the first embodiment, the read toggle control unit 54 includes a read counter 54a. As described above, the read counter 54a sets the initial value as the data size set in the directory SIZE and uses the buffer 55a. , 55b is counted down by the amount of compressed data read from 55b. The read toggle control unit 54 asserts the data valid signal dma_alive output to the decompressor 43 while the read counter 54a is counting. When the counter value becomes “0”, the read toggle control unit 54 negates the data valid signal dma_alive and EOB. The pulse is notified to the subsequent expander 43. Further, when the next band transfer permission signal NEXT is asserted, the read toggle control unit 54 negates the data valid signal dma_alive, and the read count of the read counter 54a becomes “0”. At this time, the EOB pulse is not output to the subsequent stage.

そして、リードカウンタ54aは、カウンタ値が「0」になってカウントを終了すると、リードカウント終了通知をDPRリード制御部61に出力する。   The read counter 54 a outputs a read count end notification to the DPR read control unit 61 when the counter value reaches “0” and the count is completed.

DPRリード制御部61は、第1実施例のDPRリード制御部51と同様に、メモリ26上にCPU24によって書き込まれたディスクリプタをリードして、ディスクリプタ情報(SA/SIZE)をリードトグル制御部54、ライトトグル制御部53、メモリI/F52へ分配し、また、ライトトグル制御部53のライトカウント終了通知、上記リードトグル制御部54のリードカウンタ54aからのリードカウント終了通知または伸長器43からの次バンド転送許可信号NEXTが通知されると、ディスクリプタのNDPに記載されているアドレスをリードアクセスする。また、DPRリード制御部61は、バッファ55a、55bの空き状況に基づいてディスクリプタのDPRリードコマンドの先投げ個数を制御する。   Similar to the DPR read control unit 51 of the first embodiment, the DPR read control unit 61 reads the descriptor written by the CPU 24 on the memory 26 and reads the descriptor information (SA / SIZE) by the read toggle control unit 54, It is distributed to the write toggle control unit 53 and the memory I / F 52, and the write count end notification of the write toggle control unit 53, the read count end notification from the read counter 54a of the read toggle control unit 54, or the next from the expander 43 When the band transfer permission signal NEXT is notified, the address described in the descriptor NDP is read-accessed. Further, the DPR read control unit 61 controls the number of first throws of the DPR read command of the descriptor based on the availability of the buffers 55a and 55b.

また、メモリI/F52は、第1実施例と同様に、アドレス生成部52aが、DPRリード制御部61のDPRアドレス、または、ライトトグル制御部53のライトカウント値を元にメモリアクセスするアドレスを生成し、該生成したアドレスを用いてリードコマンドを発行する。また、メモリI/F52は、リードコマンドの応答するメモリ26からのリードデータをDPRリード制御部61またはライトトグル制御部53へ転送する。   Similarly to the first embodiment, the memory I / F 52 has an address that the address generation unit 52a accesses to the memory based on the DPR address of the DPR read control unit 61 or the write count value of the write toggle control unit 53. Generate a read command using the generated address. The memory I / F 52 transfers the read data from the memory 26 that responds to the read command to the DPR read control unit 61 or the write toggle control unit 53.

ライトトグル制御部53は、第1実施例と同様に、バッファ55a、55bの書き込み制御及びバッファに書き込むデータをカウントするライトカウンタ53aを有し、ライトカウンタ53aのカウント結果であるライトカウント値に基づいて、圧縮データを書き込むバッファ55a、55bをトグルに制御して圧縮データのバッファ55a、55bの書き込みを行うとともに、バッファ55a、55bの空き状況をDPRリード制御部51へ通知する。ライトカウンタ53aは、初期値をSIZEとしてバッファ55a、55bへ書き込んだデータ量だけダウンカウントし、カウンタ値が「0」になると、DPRリード制御部51へライトカウント終了通知を出力(アサート)する。   Similar to the first embodiment, the write toggle control unit 53 has a write counter 53a for controlling the writing of the buffers 55a and 55b and counting the data to be written to the buffer, and based on the write count value that is the count result of the write counter 53a. Thus, the compressed data buffers 55a and 55b are toggled to write the compressed data buffers 55a and 55b, and the DPR read controller 51 is notified of the availability of the buffers 55a and 55b. The write counter 53a counts down the data amount written to the buffers 55a and 55b with the initial value as SIZE, and outputs (asserts) a write count end notification to the DPR read control unit 51 when the counter value becomes “0”.

次に、本実施例の作用を説明する。本実施例の複合装置1は、リードトグル制御部54のリードカウンタ54aからのリードカウント終了通知を用いて、DPRリード制御部61がディスクリプタのリードアクセスを制御することで、メモリ26の圧縮データのデータサイズとディスクリプタの指定データサイズが一致する場合にも、適切に圧縮ディスクリプタの読み取りを行う。   Next, the operation of this embodiment will be described. In the composite apparatus 1 of this embodiment, the DPR read control unit 61 controls the read access of the descriptor by using the read count end notification from the read counter 54a of the read toggle control unit 54, so that the compressed data in the memory 26 is stored. Even when the data size matches the specified data size of the descriptor, the compressed descriptor is read appropriately.

すなわち、DPRリード制御部61は、図9及び図10に示すように、ディスクリプタリード処理を実行する。なお、図9及び図10において、第1実施例の図4に示したディスクリプタリード処理と同様の処理ステップには、同一のステップナンバを付与して、その説明を簡略化する。DPRリード制御部61は、RDMAC60が起動されると、図9に示すように、レジスタ56にCPU24によって設定された先頭のディスクリプタのアドレスである初期値のディスクリプタポインタ(DPRポインタ)をレジスタ56からロードし(ステップS101)、メモリ26の該初期値のディスクリプタポインタ(DPRポインタ)に設定されているバンドのアドレスを読み取って内部レジスタに設定する(ステップS102)。次に、DPRリード制御部61は、初期値のディスクリプタポインタ(DPRポインタ)に記載されているアドレスをディスクリプタアドレスバス(DPRアドレスバス)に設定し、メモリI/F52にディスクリプタリードトリガ(DPRリードトリガ)を発行する(ステップS104)。メモリI/F52は、ステップS103で設定されたディスクリプタアドレスのリードコマンドをメモリ52に発行し、DPRリード制御部61は、発行したリードコマンドに対応するディスクリプタリードデータ(DPRリードデータ)の応答を待つ(ステップS105)。DPRリード制御部61は、ディスクリプタリードデータを受け取ると、ディスクリプタ情報をRDMAC60の必要な内部制御部に分配し(ステップS106)、ディスクリプタ情報(SA1/SIZE1/NDP1/MODE1)をDPRリード制御部61内部で保持(ラッチ)する(ステップS107)。   That is, the DPR read control unit 61 executes a descriptor read process as shown in FIGS. 9 and 10, the same step number is assigned to the same processing step as the descriptor read processing shown in FIG. 4 of the first embodiment, and the description is simplified. When the RDMAC 60 is activated, the DPR read control unit 61 loads the initial value descriptor pointer (DPR pointer), which is the address of the first descriptor set by the CPU 24, into the register 56 from the register 56, as shown in FIG. Then, the address of the band set in the descriptor descriptor (DPR pointer) of the initial value in the memory 26 is read and set in the internal register (step S102). Next, the DPR read control unit 61 sets the address described in the descriptor pointer (DPR pointer) of the initial value in the descriptor address bus (DPR address bus), and sets the descriptor read trigger (DPR read trigger) in the memory I / F 52. ) Is issued (step S104). The memory I / F 52 issues a read command for the descriptor address set in step S103 to the memory 52, and the DPR read control unit 61 waits for a response of descriptor read data (DPR read data) corresponding to the issued read command. (Step S105). When the DPR read control unit 61 receives the descriptor read data, the DPR read control unit 61 distributes the descriptor information to necessary internal control units of the RDMAC 60 (step S106), and the descriptor information (SA1 / SIZE1 / NDP1 / MODE1) is stored in the DPR read control unit 61. Is held (latched) (step S107).

DPRリード制御部61は、ディスクリプタ情報をラッチすると、図10に示すように、ライトカウント終了通知と次バンド転送許可信号NEXTの通知のいずれかを受け取るまで待ち(ステップS201)、次バンド転送許可信号NEXTの通知があると、ディスクリプタ情報のNDPを確認する(ステップS109)。   When the DPR read control unit 61 latches the descriptor information, as shown in FIG. 10, the DPR read control unit 61 waits until receiving either the write count end notification or the next band transfer permission signal NEXT notification (step S201), and the next band transfer permission signal. When there is a notification of NEXT, the NDP of the descriptor information is confirmed (step S109).

ステップS201で、ライトカウント終了通知があると、DPRリード制御部61は、SIZE分の圧縮データ、すなわち、ディスクリプタで指定されている指定データサイズ分の圧縮データをメモリ26からメモリリードしたと判断して、リードカウンタ54aからのリードカウント終了通知を待ち(ステップS202)、リードカウント終了通知を受け取ると、バッファ55a、55bは空になったと判断して、次のバンドの圧縮データをリードするために、ディスクリプタ情報のNDPを確認する(ステップS109)。   If there is a write count end notification in step S201, the DPR read control unit 61 determines that the compressed data for SIZE, that is, the compressed data for the designated data size specified by the descriptor has been read from the memory 26. In response to the read count end notification from the read counter 54a (step S202), when the read count end notification is received, it is determined that the buffers 55a and 55b are empty, and the compressed data of the next band is read. The NDP of the descriptor information is confirmed (step S109).

ステップS109で、ディスクリプタ情報のNDPが「0」以外であると、DPRリード制御部51は、全ての圧縮ディスクリプタの終端ではないと判断して、NDPが示しているアドレスを内部レジスタに設定し(ステップS110)、図9のステップS104に戻って、ディスクリプタリードトリガ(DPRリードトリガ)のメモリI/F52への発行から上記同様に処理する(ステップS104〜S107、S201、S202、S109)。   In step S109, if the NDP of the descriptor information is other than “0”, the DPR read control unit 51 determines that all the compressed descriptors are not terminated, and sets the address indicated by the NDP in the internal register ( Step S110), returning to step S104 in FIG. 9, processing is performed in the same manner as described above from the issuance of the descriptor read trigger (DPR read trigger) to the memory I / F 52 (steps S104 to S107, S201, S202, S109).

そして、ステップS109で、ディスクリプタ情報のNDPが「0」であると、DPRリード制御部51は、全圧縮データの終了であると判断して、処理を終了する。   In step S109, if the NDP of the descriptor information is “0”, the DPR read control unit 51 determines that all the compressed data is completed, and ends the process.

すなわち、図11に示すようにメモリ26に圧縮データとディスクリプタ(DPR)が記録されている場合、すなわち、ディスクリプタで指定されているデータサイズと、可変長圧縮データのデータサイズが同じで、終端符号EOI以降に冗長データが存在しない場合、図12に示すように、圧縮データの終端符号EOI以降のダミーデータ(冗長データ)をリードしないだけであると、ファーストコピーの時間を短縮することはできるが、圧縮データのバンド1の最終データが終端符号EOIであると、バンド2のリード途中で次バンド(バンド3)へ飛んでしまうおそれがある。   That is, as shown in FIG. 11, when the compressed data and descriptor (DPR) are recorded in the memory 26, that is, the data size specified by the descriptor and the data size of the variable length compressed data are the same, and the end code When there is no redundant data after the EOI, as shown in FIG. 12, the first copy time can be shortened if only dummy data (redundant data) after the end code EOI of the compressed data is not read. If the final data of the band 1 of the compressed data is the end code EOI, there is a possibility of jumping to the next band (band 3) while the band 2 is being read.

ところが、上述のように、DPRリード制御部61が、ステップS201で、リードトグル制御部54のリードカウンタ54aからのライトカウント終了通知があったときに、図13に示すように、次バンド転送許可信号NEXTがアサートされない場合、ステップS202で、リードカウント終了通知を待つことで、バッファ55a、55bが空になるまで、次バンドのディスクリプタをリードしない。したがって、圧縮データの各バンドの最終データが終端符号EOIであっても、圧縮データのメモリ26からの読み取り速度を向上させることができるとともに、リード途中で次のバンドに飛んでしまうことを防止することができ、ファーストコピー時間を短縮しつつ、適切な圧縮データの読み取りを行うことができる。   However, as described above, when the DPR read control unit 61 receives a write count end notification from the read counter 54a of the read toggle control unit 54 in step S201, as shown in FIG. If the signal NEXT is not asserted, the next band descriptor is not read until the buffers 55a and 55b become empty by waiting for a read count end notification in step S202. Therefore, even if the final data of each band of the compressed data is the termination code EOI, the reading speed of the compressed data from the memory 26 can be improved and the jump to the next band during the reading is prevented. Therefore, it is possible to read appropriate compressed data while shortening the first copy time.

このように、本実施例の複合装置1は、リードトグル制御部54が、バッファ55a、55bから読み出した圧縮データをカウントして該カウント値がディスクリプタで指定されている指定データサイズ(SIZE)になると、リードカウント終了信号をDPRリード制御部61に出力するリードカウンタ54aを備えており、DPRリード制御部61が、ライトカウント終了通知が入力されると、リードカウント終了信号が入力されるのを待って、次のディスクリプタと圧縮データの読み出しを行っている。   As described above, in the composite apparatus 1 of this embodiment, the read toggle control unit 54 counts the compressed data read from the buffers 55a and 55b, and sets the count value to the designated data size (SIZE) designated by the descriptor. Then, a read counter 54a that outputs a read count end signal to the DPR read control unit 61 is provided. When the DPR read control unit 61 receives a write count end notification, the read count end signal is input. Waiting for the next descriptor and compressed data to be read.

したがって、圧縮単位の圧縮データの各バンドの最終データが終端符号EOIである場合に、圧縮データの読み取り途中に次のバンドに飛んでしまうことを適切に防止することができ、ファーストコピー時間を短縮しつつ、適切な圧縮データの読み取りを行って、異常画像が発生することができる。   Therefore, when the final data of each band of the compressed data of the compression unit is the end code EOI, it is possible to appropriately prevent jumping to the next band during the reading of the compressed data, and shorten the first copy time. However, an abnormal image can be generated by reading appropriate compressed data.

図14〜図18は、本発明の画像処理装置、画像処理方法、画像処理プログラム及び記録媒体の第3実施例を示す図であり、図14は、本発明の画像処理装置、画像処理方法、画像処理プログラム及び記録媒体の第3実施例を適用した複合装置1の要部ブロック構成図である。   14 to 18 are diagrams showing a third embodiment of the image processing apparatus, the image processing method, the image processing program, and the recording medium of the present invention. FIG. 14 shows the image processing apparatus, the image processing method, It is a principal block block diagram of the compound apparatus 1 to which the third embodiment of the image processing program and the recording medium is applied.

なお、本実施例は、上記第1実施例の複合装置1と同様の複合装置に適用したものであり、本実施例の説明においては、第1実施例の複合装置1と同様の構成部分には、同一の符号を付して、その説明を省略または簡略化するとともに、図示しない部分についても、第1実施例の説明で用いた符号をそのまま用いて説明する。   The present embodiment is applied to a composite apparatus similar to the composite apparatus 1 of the first embodiment. In the description of the present embodiment, the same components as those of the composite apparatus 1 of the first embodiment are used. Are denoted by the same reference numerals, the description thereof will be omitted or simplified, and portions not shown will be described using the reference numerals used in the description of the first embodiment as they are.

図14において、RDMAC(リードDMA制御手段)70は、第1実施例のRDMAC44と同様のメモリI/F52、ライトトグル制御部53、バッファ55a、55b及びレジスタ56等を備えているとともに、DPRリード制御部(ディスクリプタリード制御手段)71及びリードトグル制御部(バッファリード制御手段)72を備えている。   In FIG. 14, an RDMAC (read DMA control means) 70 includes a memory I / F 52, a write toggle control unit 53, buffers 55a and 55b, a register 56, and the like similar to the RDMAC 44 of the first embodiment, and also DPR read. A control unit (descriptor read control means) 71 and a read toggle control unit (buffer read control means) 72 are provided.

DPRリード制御部71及びリードトグル制御部72には、伸長器43からbusy信号が入力され、このbusy信号は、伸長器43の内部バッファの空き状態を示すバッファエンプティ信号であって、伸長器43の内部バッファが空になると、「0」になる。また、このDPRリード制御部71及びリードトグル制御部72には、第1実施例の場合と同様に、伸長器43から次バンド転送許可信号NEXTが入力される。なお、伸長器43が出力する次データ転送許可信号としては、busy信号に限るものではなく、伸長器43の動作の終了を示す動作終了信号であってもよい。   The busy signal is input from the decompressor 43 to the DPR read control unit 71 and the read toggle control unit 72, and this busy signal is a buffer empty signal indicating an empty state of the internal buffer of the decompressor 43. When the internal buffer becomes empty, it becomes “0”. The DPR read control unit 71 and the read toggle control unit 72 receive the next band transfer permission signal NEXT from the decompressor 43 as in the case of the first embodiment. Note that the next data transfer permission signal output from the decompressor 43 is not limited to the busy signal, and may be an operation end signal indicating the end of the operation of the decompressor 43.

DPRリード制御部71は、ディスクリプタのリードを行い、ディスクリプタ情報(SA/SIZE)をリードトグル制御部54、ライトトグル制御部53、メモリI/F52へ分配する。また、DPRリード制御部71は、ライトトグル制御部53のライトカウント終了通知、busy信号、または、次バンド転送許可信号NEXTが通知されると、ディスクリプタのNDPに記載されているアドレスをリードアクセスする。さらに、DPRリード制御部71は、バッファ55a、55bの空き状況を元にディスクリプタのDPRリードコマンドの先投げ個数を制御する。   The DPR read control unit 71 reads the descriptor and distributes the descriptor information (SA / SIZE) to the read toggle control unit 54, the write toggle control unit 53, and the memory I / F 52. When the write count end notification, busy signal, or next band transfer permission signal NEXT is notified from the write toggle control unit 53, the DPR read control unit 71 performs read access to the address described in the NDP of the descriptor. . Further, the DPR read control unit 71 controls the number of first throws of the DPR read command of the descriptor based on the availability of the buffers 55a and 55b.

メモリI/F52及びライトトグル制御部53は、第1実施例と同様である。   The memory I / F 52 and the light toggle control unit 53 are the same as in the first embodiment.

リードトグル制御部72は、第1実施例と同様に、リードカウンタ54aを備えており、リードカウンタ54aは、上述のように、初期値をディレクトリのSIZEに設定されているデータサイズとして、バッファ55a、55bから読み込んだ圧縮データのデータ量だけダウンカウントする。リードトグル制御部54は、リードカウンタ54aがカウント中は、伸長器43に出力しているデータ有効信号dma_aliveをアサートし、カウンタ値が「0」になると、データ有効信号dma_aliveをネゲートするとともに、EOBパルスを後段の伸長器43に通知する。また、リードトグル制御部54は、次バンド転送許可信号NEXTがアサートされると、データ有効信号dma_aliveをネゲートし、リードカウンタ54aのリードカウントが「0」になる。この際、EOBパルスは後段へ出力しない。   As in the first embodiment, the read toggle control unit 72 includes a read counter 54a. As described above, the read counter 54a sets the initial value as the data size set in the directory SIZE and uses the buffer 55a. , 55b is counted down by the amount of compressed data read from 55b. The read toggle control unit 54 asserts the data valid signal dma_alive output to the decompressor 43 while the read counter 54a is counting. When the counter value becomes “0”, the read toggle control unit 54 negates the data valid signal dma_alive and EOB. The pulse is notified to the subsequent expander 43. Further, when the next band transfer permission signal NEXT is asserted, the read toggle control unit 54 negates the data valid signal dma_alive, and the read count of the read counter 54a becomes “0”. At this time, the EOB pulse is not output to the subsequent stage.

次に、本実施例の作用を説明する。本実施例の複合装置1は、伸長器43からのbusy信号に基づいて次バンドのリード制御を行う。   Next, the operation of this embodiment will be described. The composite apparatus 1 of this embodiment performs read control of the next band based on the busy signal from the decompressor 43.

すなわち、DPRリード制御部71は、図15及び図16に示すように、ディスクリプタリード処理を実行する。なお、図15及び図16において、第1実施例の図4に示したディスクリプタリード処理と同様の処理ステップには、同一のステップナンバを付与して、その説明を簡略化する。DPRリード制御部71は、RDMAC70が起動されると、図15に示すように、レジスタ56にCPU24によって設定された先頭のディスクリプタのアドレスである初期値のディスクリプタポインタ(DPRポインタ)をレジスタ56からロードし(ステップS101)、メモリ26の該初期値のディスクリプタポインタ(DPRポインタ)に設定されているバンドのアドレスを読み取って内部レジスタに設定する(ステップS102)。次に、DPRリード制御部71は、初期値のディスクリプタポインタ(DPRポインタ)に記載されているアドレスをディスクリプタアドレスバス(DPRアドレスバス)に設定し、メモリI/F52にディスクリプタリードトリガ(DPRリードトリガ)を発行する(ステップS104)。メモリI/F52は、ステップS103で設定されたディスクリプタアドレスのリードコマンドをメモリ52に発行し、DPRリード制御部71は、発行したリードコマンドに対応するディスクリプタリードデータ(DPRリードデータ)の応答を待つ(ステップS105)。DPRリード制御部71は、ディスクリプタリードデータを受け取ると、ディスクリプタ情報をRDMAC70の必要な内部制御部に分配し(ステップS106)、ディスクリプタ情報(SA1/SIZE1/NDP1/MODE1)をDPRリード制御部71内部で保持(ラッチ)する(ステップS107)。   That is, the DPR read control unit 71 executes descriptor read processing as shown in FIGS. In FIG. 15 and FIG. 16, the same step number is assigned to the same processing step as the descriptor read processing shown in FIG. 4 of the first embodiment, and the description is simplified. When the RDMAC 70 is activated, the DPR read control unit 71 loads the initial descriptor pointer (DPR pointer), which is the address of the first descriptor set by the CPU 24, into the register 56 from the register 56, as shown in FIG. Then, the address of the band set in the descriptor descriptor (DPR pointer) of the initial value in the memory 26 is read and set in the internal register (step S102). Next, the DPR read control unit 71 sets the address described in the descriptor pointer (DPR pointer) of the initial value in the descriptor address bus (DPR address bus), and sets the descriptor read trigger (DPR read trigger) in the memory I / F 52. ) Is issued (step S104). The memory I / F 52 issues a read command of the descriptor address set in step S103 to the memory 52, and the DPR read control unit 71 waits for a response of descriptor read data (DPR read data) corresponding to the issued read command. (Step S105). When the DPR read control unit 71 receives the descriptor read data, the DPR read control unit 71 distributes the descriptor information to the necessary internal control unit of the RDMAC 70 (step S106), and the descriptor information (SA1 / SIZE1 / NDP1 / MODE1) is stored in the DPR read control unit 71. Is held (latched) (step S107).

DPRリード制御部71は、ディスクリプタ情報をラッチすると、図16に示すように、ライトカウント終了通知と次バンド転送許可信号NEXTの通知のいずれかを受け取るのを待ち(ステップS301)、次バンド転送許可信号NEXTの通知があると、ディスクリプタ情報のNDPを確認する(ステップS109)。   When the descriptor information is latched, the DPR read control unit 71 waits to receive either the write count end notification or the next band transfer permission signal NEXT notification as shown in FIG. When the signal NEXT is notified, the NDP of the descriptor information is confirmed (step S109).

ステップS301で、ライトカウント終了通知があると、DPRリード制御部71は、busy信号が「0」になるのを待ち(ステップS302)、busy信号が「0」になると、伸長器43の内部バッファが空になったと判断して、次のバンドの圧縮データをリードするために、ディスクリプタ情報のNDPを確認する(ステップS109)。   In step S301, if there is a write count end notification, the DPR read control unit 71 waits for the busy signal to become “0” (step S302), and if the busy signal becomes “0”, the internal buffer of the decompressor 43 In order to read the compressed data of the next band, the NDP of the descriptor information is confirmed (step S109).

ステップS109で、ディスクリプタ情報のNDPが「0」以外であると、DPRリード制御部51は、全ての圧縮ディスクリプタの終端ではないと判断して、NDPが示しているアドレスを内部レジスタに設定し(ステップS110)、図15のステップS104に戻って、ディスクリプタリードトリガ(DPRリードトリガ)のメモリI/F52への発行から上記同様に処理する(ステップS104〜S107、S301、S302、S109)。   In step S109, if the NDP of the descriptor information is other than “0”, the DPR read control unit 51 determines that all the compressed descriptors are not terminated, and sets the address indicated by the NDP in the internal register ( Step S110), returning to Step S104 in FIG. 15, processing is performed in the same manner as described above from the issuance of the descriptor read trigger (DPR read trigger) to the memory I / F 52 (Steps S104 to S107, S301, S302, S109).

そして、ステップS109で、ディスクリプタ情報のNDPが「0」であると、DPRリード制御部51は、全圧縮データの終了であると判断して、処理を終了する。   In step S109, if the NDP of the descriptor information is “0”, the DPR read control unit 51 determines that all the compressed data is completed, and ends the process.

すなわち、図11に示したように、メモリ26に圧縮データとディスクリプタ(DPR)が記録されていて、ディスクリプタで指定されているデータサイズと、可変長圧縮データのデータサイズが同じで、終端符号EOI以降に冗長データが存在しない場合、図17に示すように、圧縮データの終端符号EOI以降のダミーデータ(冗長データ)をリードしないだけであると、ファーストコピーの時間を短縮することはできるが、圧縮データのバンド1の最終データが終端符号EOIであって、バッファ遅延によって終端符号EOIの検知が遅れると、バンド2のリード途中で次バンド(バンド3)へ飛んでしまうおそれがある。   That is, as shown in FIG. 11, the compressed data and the descriptor (DPR) are recorded in the memory 26, the data size specified by the descriptor and the data size of the variable length compressed data are the same, and the end code EOI If there is no redundant data thereafter, as shown in FIG. 17, the first copy time can be shortened if only dummy data (redundant data) after the end code EOI of the compressed data is not read. If the final data of the compressed data band 1 is the termination code EOI and the detection of the termination code EOI is delayed due to the buffer delay, there is a possibility that the band 2 may jump to the next band (band 3) in the middle of reading.

ところが、上述のように、DPRリード制御部71が、ステップS301で、図18に示すように、ライトカウント終了通知がライトトグル制御部53から入っても、ステップS302で、伸長器43からのbusy信号が「0」になるのを待つことで、伸長器43の内部バッファが空になるまで、次バンドのディスクリプタをリードすることを防止する。したがって、分割圧縮データの各バンドの最終データが終端符号EOIであって、図18に示すように、終端符号EOIの検出タイミングに誤差が発生しても、圧縮データのメモリ26からの読み取り速度を向上させることができるとともに、リード途中で次のバンドに飛んでしまうことを防止することができ、ファーストコピー時間を短縮しつつ、適切な圧縮データの読み取りを行うことができる。   However, as described above, even if the DPR read control unit 71 receives the write count end notification from the write toggle control unit 53 as shown in FIG. By waiting for the signal to become “0”, reading of the next band descriptor is prevented until the internal buffer of the decompressor 43 becomes empty. Therefore, even if the final data of each band of the divided compressed data is the end code EOI and an error occurs in the detection timing of the end code EOI as shown in FIG. 18, the reading speed of the compressed data from the memory 26 is increased. In addition to being able to improve, it is possible to prevent jumping to the next band in the middle of reading, and appropriate compressed data can be read while shortening the first copy time.

このように、本実施例の複合装置1は、DPRリード制御部61が、ライトトグル制御部53のライトカウンタ53aからライトカウント終了通知が入力されると、伸長器43から次データ転送許可信号が入力されるのを待って、次のディスクリプタと圧縮データの読み出しを行っている。   As described above, in the composite apparatus 1 of this embodiment, when the DPR read control unit 61 receives the write count end notification from the write counter 53a of the write toggle control unit 53, the next data transfer permission signal is output from the decompressor 43. Waiting for input, the next descriptor and compressed data are read.

したがって、伸長器43の動作確認を行ってから次のバンドのディスクリプタのリードを行うことができ、圧縮データが最終バンドの最終データが終端符号EOIである場合にも、異常画像が発生することを適切に防止することができる。   Therefore, after the operation of the decompressor 43 is confirmed, the descriptor of the next band can be read. Even when the final data of the final band is the end code EOI, an abnormal image is generated. It can be prevented appropriately.

また、本実施例の複合装置1は、伸長器43が、次データ転送許可信号として、リードトグル制御部54から送られてきた圧縮データを一時保管する内部バッファが空になったことを示すbusy(バッファエンプティ)信号、または/及び、圧縮データの伸長処理が終了したことを示す動作終了信号を出力している。   Further, in the multifunction apparatus 1 of this embodiment, the decompressor 43 indicates that the internal buffer for temporarily storing the compressed data sent from the read toggle control unit 54 as the next data transfer permission signal is empty. A (buffer empty) signal or / and an operation end signal indicating that the decompression process of the compressed data has been completed are output.

したがって、伸長器43が次の圧縮データの処理を行うことができるか否かを適切に判断して、次のバンドのディスクリプタをリードすることができ、圧縮データが最終バンドの最終データが終端符号EOIである場合にも、異常画像が発生することを適切に防止することができる。   Therefore, it is possible to appropriately determine whether or not the decompressor 43 can process the next compressed data, read the descriptor of the next band, and the final data of the last band is the end code. Even in the case of EOI, it is possible to appropriately prevent the occurrence of an abnormal image.

以上、本発明者によってなされた発明を好適な実施例に基づき具体的に説明したが、本発明は上記実施例で説明したものに限定されるものではなく、その要旨を逸脱しない範囲で種々変更可能であることはいうまでもない。   The invention made by the present inventor has been specifically described based on the preferred embodiments. However, the present invention is not limited to that described in the above embodiments, and various modifications can be made without departing from the scope of the invention. It goes without saying that it is possible.

本発明は、入力画像データを一旦可変長圧縮してメモリに保管した後に該メモリの圧縮データを伸長して出力する複写装置、複合装置等の画像処理装置、画像処理方法、画像処理プログラム及び記録媒体に利用することができる。   The present invention relates to an image processing apparatus, an image processing method, an image processing program, and a recording apparatus, such as a copying apparatus and a composite apparatus, which decompress and output the compressed data in the memory after the input image data is temporarily compressed in variable length and stored in the memory It can be used as a medium.

1 複合装置
2 コントローラ
3 エンジン部
11 スキャナ
12 プロッタ
21、22 ASIC
23 ハードディスク
24 CPU
25 操作部
26 メモリ
31 内部レジスタ
32 スキャナI/F
33 画像伸長器
34 画像処理器
41 圧縮器
42 WDMAC
43 伸長器
44 RDMAC
45 画像処理部
46 WDMAC
47 内部レジスタ
48 プロッタI/F
49 RDMAC
51 DPRリード制御部
52 メモリI/F
52a アドレス生成部
53 ライトトグル制御部
53a ライトカウンタ
54 リードトグル制御部
54a リードカウンタ
55a、55b バッファ
56 レジスタ
60 RDMAC
61 DPRリード制御部
70 RDMAC
71 DPRリード制御部
72 リードトグル制御部
DESCRIPTION OF SYMBOLS 1 Compound apparatus 2 Controller 3 Engine part 11 Scanner 12 Plotter 21, 22 ASIC
23 Hard disk 24 CPU
25 Operation Unit 26 Memory 31 Internal Register 32 Scanner I / F
33 Image Expander 34 Image Processor 41 Compressor 42 WDMAC
43 Expander 44 RDMAC
45 Image processing unit 46 WDMAC
47 Internal register 48 Plotter I / F
49 RDMAC
51 DPR read controller 52 Memory I / F
52a Address generation unit 53 Write toggle control unit 53a Write counter 54 Read toggle control unit 54a Read counter 55a, 55b Buffer 56 Register 60 RDMAC
61 DPR read control unit 70 RDMAC
71 DPR lead control unit 72 Lead toggle control unit

特開2009−33428号公報JP 2009-33428 A

Claims (8)

所定データ量を圧縮単位として該圧縮単位毎に入力される画像データを圧縮手段で1つの圧縮データに可変長圧縮して、記憶手段に転送して記憶した圧縮データを、リードDMA制御手段が、圧縮データを伸長する伸長手段からの次データの転送を許可する次データ転送許可信号に応じて該記憶手段のディスクリプタに基づいて該圧縮単位毎に読み出して該伸長手段に転送する画像処理装置において、
前記リードDMA制御手段は、
前記記憶手段から前記ディスクリプタ及び前記圧縮単位の前記圧縮データを読み出す読み出し手段と、
前記読み出し手段による前記記憶手段からの前記ディスクリプタ及び前記圧縮データの読み出しを制御するディスクリプタリード制御手段と、
前記読み出し手段によって前記記憶手段から読み出された前記圧縮単位の前記圧縮データを一時保管する複数のバッファと、
前記読み出し手段によって読み出された前記圧縮単位の前記圧縮データの前記バッファに対する書き込みを制御するとともに該圧縮データの該バッファへの書き込みを完了すると書き込み完了通知を発行するバッファライト制御手段と、
前記バッファに書き込まれた前記圧縮データを読み出して前記伸長手段へ出力するバッファリード制御手段と、
前記バッファライト制御手段が前記バッファに書き込んだ前記圧縮データをカウントして、該圧縮データサイズが前記ディスクリプタで指定されている指定データサイズになると、ライトカウント終了通知を前記ディスクリプタリード制御手段に出力するライトカウント手段と
を備え、
前記ディスクリプタリード制御手段は、前記ライトカウント終了通知または前記次データ転送許可通知が入力されると、次の前記ディスクリプタと前記圧縮データの読み出しを行うことを特徴とする画像処理装置。
The read DMA control means converts the compressed data stored in the compression means by variable-length compressing the image data input for each compression unit as a compression unit into a single compressed data by the compression means, In an image processing apparatus that reads out each compression unit based on a descriptor of the storage unit in accordance with a next data transfer permission signal that permits transfer of next data from a decompression unit that decompresses compressed data, and transfers the compressed data to the decompression unit.
The read DMA control means includes:
Read means for reading out the descriptor and the compressed data of the compression unit from the storage means;
Descriptor read control means for controlling reading of the descriptor and the compressed data from the storage means by the reading means;
A plurality of buffers for temporarily storing the compressed data of the compression unit read from the storage unit by the reading unit;
Buffer write control means for controlling writing of the compressed data of the compression unit read by the reading means to the buffer and issuing a write completion notification when the writing of the compressed data to the buffer is completed;
A buffer read control means for reading the compressed data written in the buffer and outputting it to the decompression means;
The buffer write control unit counts the compressed data written to the buffer, and outputs a write count end notification to the descriptor read control unit when the compressed data size reaches the specified data size specified by the descriptor. And a light counting means,
The descriptor read control means reads the next descriptor and the compressed data when the write count end notice or the next data transfer permission notice is inputted.
前記伸長手段は、前記圧縮単位毎の前記圧縮データの終端に付加されている終端信号に基づいて前記次データ転送許可信号を生成することを特徴とする請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the decompressing unit generates the next data transfer permission signal based on a termination signal added to a termination of the compressed data for each compression unit. 前記バッファリード制御手段は、前記バッファから読み出した前記圧縮データをカウントして該カウント値が前記指定データサイズになると、リードカウント終了信号を前記ディスクリプタリード制御手段に出力するリードカウント手段を備えており、
前記ディスクリプタリード制御手段は、前記ライトカウント終了通知が入力されると、前記リードカウント終了信号が入力されるのを待って、次の前記ディスクリプタと前記圧縮データの読み出しを行うことを特徴とする請求項1または請求項2記載の画像処理装置。
The buffer read control means includes read count means for counting the compressed data read from the buffer and outputting a read count end signal to the descriptor read control means when the count value reaches the specified data size. ,
The descriptor read control means, when the write count end notification is input, waits for the read count end signal to be input, and reads the next descriptor and the compressed data. The image processing apparatus according to claim 1 or 2.
前記ディスクリプタリード制御手段は、前記ライトカウント終了通知が入力されると、前記次データ転送許可信号が入力されるのを待って、次の前記ディスクリプタと前記圧縮データの読み出しを行うことを特徴とする請求項1から請求項3のいずれかに記載の画像処理装置。   When the write count end notification is input, the descriptor read control means waits for the next data transfer permission signal to be input, and reads the next descriptor and the compressed data. The image processing apparatus according to claim 1. 前記伸長手段は、前記次データ転送許可信号として、前記伸長手段が前記バッファリード制御手段から送られてきた前記圧縮データを一時保管する内部バッファが空になったことを示すバッファエンプティ信号、または/及び、前記圧縮データの伸長処理が終了したことを示す動作終了信号を出力することを特徴とする請求項4のいずれかに記載の画像処理装置。   The decompression means uses, as the next data transfer permission signal, a buffer empty signal indicating that the internal buffer for temporarily storing the compressed data sent from the buffer read control means by the decompression means has become empty, or / The image processing apparatus according to claim 4, wherein an operation end signal indicating that the decompression process of the compressed data has been completed is output. 所定データ量を圧縮単位として該圧縮単位毎に入力される画像データを圧縮処理ステップで1つの圧縮データに可変長圧縮して、記憶手段に転送して記憶した圧縮データを、リードDMA制御処理ステップが、圧縮データを伸長する伸長処理ステップからの次データの転送を許可する次データ転送許可信号に応じて該記憶手段のディスクリプタに基づいて該圧縮単位毎に読み出して該伸長処理ステップに転送する画像処理方法であって、
前記リードDMA制御処理ステップは、
前記記憶手段から前記ディスクリプタ及び前記圧縮単位の前記圧縮データを読み出す読み出し処理ステップと、
前記読み出し処理ステップによる前記記憶手段からの前記ディスクリプタ及び前記圧縮データの読み出しを制御するディスクリプタリード制御処理ステップと、
前記読み出し処理ステップによって読み出された前記圧縮単位の前記圧縮データの複数のバッファに対する書き込みを制御するとともに該圧縮データの該バッファへの書き込みを完了すると書き込み完了通知を発行するバッファライト制御処理ステップと、
前記バッファに書き込まれた前記圧縮データを読み出して前記伸長処理ステップへ出力するバッファリード制御処理ステップと、
前記バッファライト制御処理ステップが前記バッファに書き込んだ前記圧縮データをカウントして、該圧縮データサイズが前記ディスクリプタで指定されている指定データサイズになると、ライトカウント終了通知を前記ディスクリプタリード制御処理ステップに出力するライトカウント処理ステップと
を有し、
前記ディスクリプタリード制御処理ステップは、前記ライトカウント終了通知または前記次データ転送許可通知が入力されると、次の前記ディスクリプタと前記圧縮データの読み出しを行うことを特徴とする画像処理方法。
A read DMA control processing step that compresses variable length compressed image data input to each compression unit into a single compressed data in a compression processing step with a predetermined data amount as a compression unit, and transfers the stored data to a storage means. Is read out for each compression unit based on the descriptor of the storage means in accordance with a next data transfer permission signal permitting transfer of the next data from the decompression processing step for decompressing the compressed data, and transferred to the decompression processing step. A processing method,
The read DMA control processing step includes:
A read processing step of reading the descriptor and the compressed data of the compression unit from the storage means;
A descriptor read control processing step for controlling reading of the descriptor and the compressed data from the storage means by the read processing step;
A buffer write control processing step for controlling writing of the compressed data of the compression unit read by the reading processing step to a plurality of buffers and issuing a write completion notification when the writing of the compressed data to the buffer is completed; ,
A buffer read control processing step of reading out the compressed data written in the buffer and outputting it to the decompression processing step;
The buffer write control processing step counts the compressed data written to the buffer, and when the compressed data size reaches the specified data size specified by the descriptor, a write count end notification is sent to the descriptor read control processing step. And a light count processing step for outputting,
The descriptor read control processing step reads the next descriptor and the compressed data when the write count end notification or the next data transfer permission notification is input.
所定データ量を圧縮単位として該圧縮単位毎に入力される画像データを圧縮処理で1つの圧縮データに可変長圧縮して、記憶手段に転送して記憶した圧縮データを、リードDMA制御処理が、圧縮データを伸長する伸長処理からの次データの転送を許可する次データ転送許可信号に応じて該記憶手段のディスクリプタに基づいて該圧縮単位毎に読み出して該伸長処理に転送する画像処理プログラムであって、
コンピュータに、
前記リードDMA制御処理として、
前記記憶手段から前記ディスクリプタ及び前記圧縮単位の前記圧縮データを読み出す読み出し処理と、
前記読み出し処理による前記記憶手段からの前記ディスクリプタ及び前記圧縮データの読み出しを制御するディスクリプタリード制御処理と、
前記読み出し処理によって読み出された前記圧縮単位の前記圧縮データの複数のバッファに対する書き込みを制御するとともに該圧縮データの該バッファへの書き込みを完了すると書き込み完了通知を発行するバッファライト制御処理と、
前記バッファに書き込まれた前記圧縮データを読み出して前記伸長処理へ出力するバッファリード制御処理と、
前記バッファライト制御処理が前記バッファに書き込んだ前記圧縮データをカウントして、該圧縮データサイズが前記ディスクリプタで指定されている指定データサイズになると、ライトカウント終了通知を前記ディスクリプタリード制御処理に出力するライトカウント処理と、
を実行させ、
前記ディスクリプタリード制御処理においては、前記ライトカウント終了通知または前記次データ転送許可通知が入力されると、次の前記ディスクリプタと前記圧縮データの読み出しを行わせることを特徴とする画像処理プログラム。
The read DMA control process is a process in which the compressed data stored in the storage unit is compressed by variable-length compression into a single compressed data by compressing the image data input for each compression unit with a predetermined data amount as a compression unit. An image processing program that reads out each compressed unit based on a descriptor of the storage unit and transfers it to the decompression process in accordance with a next data transfer permission signal that permits transfer of the next data from the decompression process that decompresses the compressed data. And
On the computer,
As the read DMA control process,
Read processing for reading out the descriptor and the compressed data of the compression unit from the storage means;
A descriptor read control process for controlling reading of the descriptor and the compressed data from the storage means by the read process;
A buffer write control process for controlling writing of the compressed data of the compression unit read by the reading process to a plurality of buffers and issuing a write completion notification when the writing of the compressed data to the buffer is completed;
A buffer read control process for reading the compressed data written in the buffer and outputting the compressed data to the decompression process;
The buffer write control process counts the compressed data written to the buffer, and outputs a write count end notification to the descriptor read control process when the compressed data size reaches the specified data size specified by the descriptor. Write count processing,
And execute
In the descriptor read control processing, when the write count end notification or the next data transfer permission notification is input, the image processing program causes the next descriptor and the compressed data to be read.
請求項7記載の画像処理プログラムを記録したことを特徴とするコンピュータが読み取り可能な記録媒体。   A computer-readable recording medium on which the image processing program according to claim 7 is recorded.
JP2010021217A 2010-02-02 2010-02-02 Image processing apparatus, image processing method, image processing program, and recording medium Expired - Fee Related JP5407912B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010021217A JP5407912B2 (en) 2010-02-02 2010-02-02 Image processing apparatus, image processing method, image processing program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010021217A JP5407912B2 (en) 2010-02-02 2010-02-02 Image processing apparatus, image processing method, image processing program, and recording medium

Publications (2)

Publication Number Publication Date
JP2011160268A JP2011160268A (en) 2011-08-18
JP5407912B2 true JP5407912B2 (en) 2014-02-05

Family

ID=44591833

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010021217A Expired - Fee Related JP5407912B2 (en) 2010-02-02 2010-02-02 Image processing apparatus, image processing method, image processing program, and recording medium

Country Status (1)

Country Link
JP (1) JP5407912B2 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04373251A (en) * 1991-06-22 1992-12-25 Fuji Xerox Co Ltd Buffer memory control circuit
JP3417684B2 (en) * 1994-09-13 2003-06-16 株式会社東芝 Image processing device
JP2001113759A (en) * 1999-10-15 2001-04-24 Ricoh Co Ltd Image data output device
JP2003051952A (en) * 2001-08-06 2003-02-21 Fuji Xerox Co Ltd Image processing apparatus
JP2007201705A (en) * 2006-01-25 2007-08-09 Ricoh Co Ltd Image processing apparatus, image processing method, program, and computer-readable recording medium
JP2007334555A (en) * 2006-06-14 2007-12-27 Ricoh Co Ltd Data transfer device and electronic device

Also Published As

Publication number Publication date
JP2011160268A (en) 2011-08-18

Similar Documents

Publication Publication Date Title
CN108363669B (en) Memory access system, control method thereof, storage medium, and image forming apparatus
JP4928497B2 (en) Image processing apparatus, image processing method, image processing program, and storage medium
US7167263B2 (en) Multifunction peripheral apparatus, external controller for the same, and their control method
JP2012034254A (en) Data transfer device, image formation device, data transfer control method, data transfer control program, and recording medium
JP5407912B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium
US7814251B2 (en) DMA transfer control system that performs data decode and data transfer and that generates a no operation (NOP) interrupt signal to end the DMA transfer processing in response to a NOP designation
US20180074986A1 (en) Information processing apparatus and semiconductor integrated circuit including ring bus system
JP4901692B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium
JP4136347B2 (en) System controller, image forming apparatus having system controller, and DMA transfer method
JP2011155609A (en) Image processor, image processing method, image processing program, and recording medium
US8520964B2 (en) Image processing apparatus
KR102230913B1 (en) Information processing apparatus and semiconductor integrated circuit
JP5446929B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium
JP2006189919A (en) Electronic device, control method, and computer program
JP5084688B2 (en) Image forming apparatus
US20180213103A1 (en) Image processing apparatus, method of controlling the same, and storage medium
JP7835064B2 (en) Image forming apparatus and program
JP4561230B2 (en) Data transfer control device and data transfer method
JP5004322B2 (en) Data transfer control method, apparatus, and image forming apparatus
JP4812662B2 (en) Image forming apparatus
JP2007201705A (en) Image processing apparatus, image processing method, program, and computer-readable recording medium
JP4413041B2 (en) Data transfer system and image forming apparatus
JP2005107818A (en) Arbitration device and image forming device using it
CN101321225A (en) Image processing device, printing device
JP4037872B2 (en) Image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121107

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20121112

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20121112

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130930

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131008

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131021

LAPS Cancellation because of no payment of annual fees