JP2011244178A - Image processor and control method of image processor - Google Patents

Image processor and control method of image processor Download PDF

Info

Publication number
JP2011244178A
JP2011244178A JP2010114100A JP2010114100A JP2011244178A JP 2011244178 A JP2011244178 A JP 2011244178A JP 2010114100 A JP2010114100 A JP 2010114100A JP 2010114100 A JP2010114100 A JP 2010114100A JP 2011244178 A JP2011244178 A JP 2011244178A
Authority
JP
Japan
Prior art keywords
image data
data
image
data processing
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010114100A
Other languages
Japanese (ja)
Other versions
JP5587029B2 (en
Inventor
Takahiro Minami
崇博 南
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.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2010114100A priority Critical patent/JP5587029B2/en
Publication of JP2011244178A publication Critical patent/JP2011244178A/en
Application granted granted Critical
Publication of JP5587029B2 publication Critical patent/JP5587029B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Storing Facsimile Image Data (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processor capable of efficiently performing an image data processing such as compression and decompression with respect to first image data and second image data stored in a storage part.SOLUTION: An image processor 1 according to the present invention comprises an image data lossless compression core 22 and an image data lossy compression core 21, and further comprises a DRAM for storing the first image data and the second image data, and a CPU 12 for separating the first image data stored in the DRAM into a first region part and a second region part according to characteristics, wherein the image data lossy compression core 21 performs compression of the second region part and the second image data while the image data lossless compression core 22 performs compression of the first region part.

Description

本発明は、画像データの圧縮処理または圧縮された画像データの伸張処理を行う画像処理装置に関する。特には、画像データを可逆圧縮する圧縮処理部と、非可逆圧縮する圧縮処理部との異なる圧縮処理方式となる圧縮処理部を備える画像処理装置に関する。   The present invention relates to an image processing apparatus that performs compression processing of image data or expansion processing of compressed image data. In particular, the present invention relates to an image processing apparatus including a compression processing unit that uses different compression processing methods for a compression processing unit that performs reversible compression of image data and a compression processing unit that performs irreversible compression.

スキャナ機能、コピー機能、プリンタ機能、FAX機能をはじめとする多数の機能を有したデジタル複合機が開発されている。デジタル複合機は、ユーザから指示されたジョブや、通信ネットワークまたは電話回線ネットワークなどを通じて遠隔機器からばらばらに投入されたジョブを並列的に処理することができる。このため、デジタル複合機で行なわれる処理は非常に複雑なものとなる。   Digital multi-function peripherals having many functions including a scanner function, a copy function, a printer function, and a FAX function have been developed. The digital multi-function peripheral can process in parallel jobs that have been instructed by the user and jobs that have been submitted from remote devices via a communication network or telephone line network. For this reason, the processing performed in the digital multi-function peripheral becomes very complicated.

さらにまた近年では、上記した機能のみならず様々な機能が加わり、デジタル複合機の多機能化がますます進んでいる。例えば、デジタル複合機で実現されている新たな機能としては、様々なネットワーク関連サービス、あるいはUSBメモリまたはSDカード等の記録メディアから提供されたデータに対する処理、PDF文書の作成、各種帳票作成などを実現するためのアプリケーション機能などが挙げられる。   Furthermore, in recent years, not only the above-described functions but also various functions have been added, and the multifunctional functions of digital multifunction peripherals have been further advanced. For example, new functions implemented in digital multifunction devices include various network-related services or processing of data provided from recording media such as USB memory or SD card, creation of PDF documents, creation of various forms, etc. Application functions to realize it are listed.

デジタル複合機では、上述した機能を単体でユーザの利便性を損なうことなく実現できるとともに、複数の機能が同時に要求される場合であっても、全てのジョブを適切に処理していくことが求められる。   Digital MFPs can achieve the functions described above without sacrificing user convenience, and are required to properly process all jobs even when multiple functions are required at the same time. It is done.

また、デジタル複合機の主たる機能の一つとしては、静止画のデジタル画像を出力することである。このため、デジタル複合機から出力されるデジタル画像の画質向上は必要不可欠な問題となる。一般的にデジタル画像において画質の向上を達成するためには、画素の諧調性を大きくしたり、デジタル画像に対して適切な画像処理を施したり、画質劣化が小さい圧縮方式を採用したりする。しかしながらデジタル画像の画質向上を達成することのみを目的とすると、デジタル複合機全体における他の処理能力(例えば画像の出力処理にかかる処理速度)が低下し、ユーザの利便性を損なうことになる。そこで、画質と処理能力との両方を勘案して画像の処理方法を決定することが所望される。   Also, one of the main functions of the digital multifunction peripheral is to output a still image digital image. For this reason, improvement of the image quality of the digital image output from the digital multifunction peripheral is an indispensable problem. In general, in order to achieve an improvement in image quality in a digital image, the gradation of pixels is increased, an appropriate image process is performed on the digital image, or a compression method with small image quality degradation is employed. However, if only the purpose of improving the image quality of a digital image is achieved, other processing capabilities (for example, the processing speed required for image output processing) of the entire digital multi-function peripheral will be reduced, and the convenience of the user will be impaired. Therefore, it is desirable to determine an image processing method in consideration of both image quality and processing capability.

例えば、デジタル画像の保存・伝送等に利用する圧縮方式には、可逆圧縮と非可逆圧縮と呼ばれる圧縮形式がある。可逆圧縮とは、画像を圧縮し、後に伸張処理を行うと、完全に元の画像に戻すことができる圧縮形式である。可逆圧縮の代表的な方式としてFAXなどで用いられるMR(modified READ)、MMR(modified modified READ)、あるいはJBIGなどが挙げられる。   For example, compression methods used for digital image storage / transmission include compression formats called lossless compression and lossy compression. Lossless compression is a compression format that can restore an original image completely by compressing the image and performing decompression processing later. Typical methods for lossless compression include MR (modified READ), MMR (modified modified READ), JBIG, and the like used in FAX and the like.

一方、非可逆圧縮とは、画像を圧縮する際に、何らかの情報を欠落させることにより圧縮する方法を含むため、伸張後は元の画像に戻すことは不可能になる。非可逆圧縮の方式としては、例えばJPEGやJPEG2000、JPEG−XRなどが挙げられる。一般的には、非可逆圧縮は、可逆圧縮に比べ圧縮率を高めることができる利点や、圧縮率を調整できる利点がある。その一方で、伸張後は元の画像に戻すことができないため、画質が可逆圧縮に比べて低下することとなる。   On the other hand, irreversible compression includes a method of compressing an image by deleting some information when compressing the image. Therefore, it is impossible to restore the original image after decompression. Examples of lossy compression methods include JPEG, JPEG2000, JPEG-XR, and the like. In general, irreversible compression has the advantage that the compression rate can be increased and the compression rate can be adjusted compared to the lossless compression. On the other hand, since the original image cannot be restored after decompression, the image quality will be lower than that of lossless compression.

このように圧縮率が低くなると、圧縮後の画像データのデータサイズが大きくなる。このため、ハードディスクドライブなど記憶装置において、画像データの格納領域を十分確保することができなかったり、格納領域への画像データの転送時間が大きくなったりする。その結果、デジタル複合機全体の性能が低下してしまうこととなる。   If the compression rate is thus reduced, the data size of the compressed image data is increased. For this reason, in a storage device such as a hard disk drive, a sufficient storage area for image data cannot be secured, or the transfer time of image data to the storage area becomes long. As a result, the performance of the entire digital multi-function peripheral is degraded.

逆に、デジタル複合機の処理能力の向上を重視し、圧縮方式として非可逆圧縮を選択した場合、圧縮率を上げすぎると画質劣化が激しくなり、ユーザの満足する画質が得られなくなる。   Conversely, when emphasis is placed on improving the processing capability of the digital multi-function peripheral and irreversible compression is selected as the compression method, if the compression rate is increased too much, the image quality will deteriorate and the image quality that satisfies the user cannot be obtained.

そこで、特許文献1では、可逆圧縮および非可逆圧縮の両方の特徴を利用した画像処理装置が提案されている。特許文献1に示す画像処理装置は、静止画像を解析して、写真領域や文字領域など特徴領域(特性の領域)を判定し、それぞれのレイヤーに分割する。そして、得られたレイヤーの特徴に応じて圧縮を行う。例えば写真領域などの濃度変化の大きい画像については非可逆圧縮しても画質劣化の影響が少ない。このため、写真領域などでは、圧縮率を高められることが可能な非可逆圧縮を行う。一方、文字領域については非可逆圧縮ではブロックノイズなどにより画質劣化が目立つ。このため、文字領域は、画質面を考えて可逆圧縮を行う。   Therefore, Patent Document 1 proposes an image processing apparatus that uses the characteristics of both lossless compression and lossy compression. The image processing apparatus disclosed in Patent Document 1 analyzes a still image, determines a characteristic area (characteristic area) such as a photographic area or a character area, and divides it into layers. Then, compression is performed according to the characteristics of the obtained layer. For example, for an image having a large density change such as a photographic area, even if irreversible compression is performed, the influence of image quality deterioration is small. For this reason, irreversible compression that can increase the compression rate is performed in a photographic region or the like. On the other hand, image quality degradation is conspicuous for character areas due to block noise or the like in lossy compression. For this reason, the character area is subjected to lossless compression in consideration of image quality.

特開2010−10819号公報(2010年1月14日公開)JP 2010-10819 A (published on January 14, 2010)

しかしながら、上述のような従来技術は、画像データに対して効率よくデータ量削減処理を行うことができないという問題が生じる。   However, the conventional technique as described above has a problem that the data amount reduction processing cannot be efficiently performed on the image data.

より具体的には、特許文献1に開示された画像処理装置のように、写真領域、文字領域それぞれのレイヤーごとに別々に圧縮処理を行う構成の場合、可逆圧縮または非可逆圧縮の圧縮処理を行うたびにメインメモリにアクセスして画像データを読み出す必要がある。このため、画像データを格納したメインメモリに対するアクセス数が多くなり、効率よく画像データの圧縮処理を行うことができない。   More specifically, in the case of a configuration in which compression processing is performed separately for each layer of a photo area and a character area as in the image processing device disclosed in Patent Document 1, compression processing of lossless compression or lossy compression is performed. Each time it is done, it is necessary to access the main memory and read the image data. For this reason, the number of accesses to the main memory storing the image data increases, and the image data cannot be efficiently compressed.

そこで、メインメモリに対するアクセス数を低減させるために、所定数の画素単位で画像データを読み出し、該画像データに対して非可逆圧縮処理および可逆圧縮処理の両者を行う構成を想定することができる。つまり、可逆圧縮および非可逆圧縮を行う際に行うメインメモリに対するアクセスを共通化する構成とすることが考えられる。   Therefore, in order to reduce the number of accesses to the main memory, it is possible to assume a configuration in which image data is read in units of a predetermined number of pixels and both irreversible compression processing and reversible compression processing are performed on the image data. That is, it can be considered that the access to the main memory that is performed when performing lossless compression and lossy compression is made common.

しかしながら、このようにメインメモリに対するアクセスを共通化する構成の場合、以下のような問題が生じる。すなわち、可逆圧縮処理を行う圧縮器と非可逆圧縮処理を行う圧縮器との間において処理性能(処理速度)に差があるとき、処理性能の高い圧縮器は、処理性能の低い圧縮器の処理が完了するまで待つ必要性があるという問題が生じる。   However, in the case of a configuration in which access to the main memory is shared as described above, the following problems occur. That is, when there is a difference in processing performance (processing speed) between a compressor that performs lossless compression processing and a compressor that performs lossy compression processing, a compressor with high processing performance is processed by a compressor with low processing performance. The problem arises that there is a need to wait until is completed.

このように、メインメモリに対するアクセスを共通化する構成であっても、効率のよい圧縮処理を実現できない。また、この問題は、圧縮処理だけではなく、その圧縮処理された画像データの復元(伸張)処理でも同様に生じる。つまり、圧縮処理および復元(伸張)処理などの画像データ処理を効率よく行うことができない。   Thus, even with a configuration in which access to the main memory is shared, efficient compression processing cannot be realized. This problem occurs not only in the compression process but also in the decompression process of the compressed image data. That is, image data processing such as compression processing and decompression (decompression) processing cannot be performed efficiently.

本発明は、上記の問題点に鑑みてなされたものであり、その目的は、画像データに対して効率よく画像データ処理を行うことができる、画像処理装置および画像処理装置の制御方法を実現することにある。   The present invention has been made in view of the above problems, and an object thereof is to realize an image processing apparatus and an image processing apparatus control method capable of efficiently performing image data processing on image data. There is.

本発明に係る画像処理装置は、上記した課題を解決するために、画像データの圧縮および圧縮された画像データの伸張のうち少なくともいずれか1つの処理を含む画像データ処理を行う第1データ処理部と、この第1データ処理部とは画像データ処理の処理方式が異なるとともに、該画像データ処理にかかる処理時間が該第1データ処理部よりも小さい第2データ処理部とを有する画像処理装置であって、上記画像データ処理を行う画像データとして、異なる特性の領域を含む第1画像データと、該第1画像データとは異なる第2画像データとを記憶する記憶部と、上記記憶部に記憶された第1画像データを、該第1画像データを構成する領域の特性に応じて、上記第1データ処理部によって画像データ処理を行う領域である第1領域部分と、上記第2データ処理部によって画像データ処理を行う領域である第2領域部分とに分離する分離部と、を備え、上記第1データ処理部が第1領域部分の画像データ処理を行っている間に、上記第2データ処理部は、上記第2領域部分と上記第2画像データとを上記記憶部から読み出し、画像データ処理を行うことを特徴とする。   In order to solve the above-described problem, the image processing apparatus according to the present invention performs a first data processing unit that performs image data processing including at least one of compression of image data and expansion of the compressed image data. And an image processing apparatus having a second data processing unit having a different processing method of image data processing from the first data processing unit and a processing time for the image data processing being shorter than that of the first data processing unit. In addition, as image data to be subjected to the image data processing, a storage unit that stores first image data including regions having different characteristics and second image data different from the first image data, and storage in the storage unit The first image data that has been subjected to image data processing by the first data processing unit in accordance with the characteristics of the regions constituting the first image data, A separation unit that separates the second data processing unit into a second region part that is a region where image data processing is performed by the second data processing unit, and the first data processing unit performs image data processing of the first region part. In addition, the second data processing unit reads the second region portion and the second image data from the storage unit and performs image data processing.

本発明に係る画像処理装置は、画像データ処理の処理方式が異なる第1データ処理部および第2データ処理部を備えているため、画像データの特性に応じて適切な方式により画像データの画像データ処理を行うことができる。   Since the image processing apparatus according to the present invention includes the first data processing unit and the second data processing unit that have different image data processing methods, the image data of the image data is obtained by an appropriate method according to the characteristics of the image data. Processing can be performed.

なお、画像データの特性としては、画像データ処理に伴い、その画像データが画質の劣化の影響を大きく受けるか否か等が挙げられる。   Note that the characteristics of the image data include whether or not the image data is greatly affected by the deterioration of the image quality accompanying the image data processing.

上記した構成によるとさらに分離部を備えているため、画像データを構成する領域の特性に応じて第1画像データを第1領域部分と第2領域部分とに分離することができる。そして、分離された第1領域部分と第2領域部分とはそれぞれ第1データ処理部と第2データ処理部とで並行して画像データ処理を行うことができる。例えば、画像データの圧縮処理に伴い、画像データが画質の劣化の影響を大きく受けるか否か等によって第1画像データを分離し、それぞれの特性に応じて、第1データ処理部と第2データ処理部とに並行して処理させることができる。   According to the above configuration, since the separation unit is further provided, the first image data can be separated into the first region portion and the second region portion according to the characteristics of the regions constituting the image data. The separated first region portion and second region portion can be subjected to image data processing in parallel by the first data processing unit and the second data processing unit, respectively. For example, as the image data is compressed, the first image data is separated depending on whether the image data is greatly affected by the deterioration in image quality, and the first data processing unit and the second data are separated according to the respective characteristics. Processing can be performed in parallel with the processing unit.

また、第2データ処理部は、上記第1データ処理部が第1領域部分の画像データ処理を行っている間に、上記第2領域部分に加えて上記第2画像データも上記記憶部から読み出し、画像データ処理を行うことできる。   The second data processing unit also reads out the second image data from the storage unit in addition to the second region portion while the first data processing unit performs image data processing of the first region portion. Image data processing can be performed.

このため、本発明に係る画像処理装置は、記憶部に記憶している画像データに対して効率よく画像データ処理を実行することができるという効果を奏する。   For this reason, the image processing apparatus according to the present invention has an effect that the image data processing can be efficiently executed on the image data stored in the storage unit.

また、本発明に係る画像処理装置は、上記した構成において、上記第1領域部分と上記第2画像データとにおいて上記画像データ処理を行う優先度が設定されており、上記第2領域部分および第2画像データそれぞれを上記記憶部から読み出し、上記第2データ処理部に転送する転送部を備え、上記転送部は、上記優先度に従って上記第2領域部分または第2画像データを上記第2データ処理部に転送するように構成されていてもよい。   In the image processing apparatus according to the present invention, in the configuration described above, a priority for performing the image data processing is set in the first area portion and the second image data. A transfer unit configured to read each of the two image data from the storage unit and transfer the read image data to the second data processing unit; and the transfer unit converts the second area portion or the second image data into the second data processing according to the priority. It may be configured to forward to a part.

上記した構成によると、転送部を備えているため、予め設定されている優先度に従って、第2領域部分または第2画像データを第2データ処理部に送信することができる。   According to the configuration described above, since the transfer unit is provided, the second region portion or the second image data can be transmitted to the second data processing unit in accordance with a preset priority.

このため、画像データ処理の実行に優先度がある場合であっても、その優先度にしたがって処理を行うことができる。   Therefore, even when image data processing execution has priority, processing can be performed according to the priority.

また、本発明に係る画像処理装置は、上記した構成において、上記転送部は、上記第2領域部分または第2画像データのいずれかの画像データを、上記第2データ処理部に転送する際、転送する画像データが第2領域部分または第2画像データのいずれであるかを示す送信データ指示信号を出力しており、上記第2データ処理部は、上記送信データ指示信号に基づき、転送されたデータが第2領域部分であるのか、または第2画像データであるのか判定し、転送されたデータに応じた画像データ処理を実行するように構成されていてもよい。   In the image processing apparatus according to the present invention, in the configuration described above, when the transfer unit transfers image data of either the second region portion or the second image data to the second data processing unit, A transmission data instruction signal indicating whether the image data to be transferred is the second area portion or the second image data is output, and the second data processing unit is transferred based on the transmission data instruction signal It may be configured to determine whether the data is the second region portion or the second image data, and to execute image data processing according to the transferred data.

また、本発明に係る画像処理装置は、上記した構成において、上記第2データ処理部は、上記第2領域部分の画像データ処理を実行するための情報である第1データ処理情報と、上記第2画像データの画像データ処理を実行するための情報である第2データ処理情報とを保持しており、上記送信データ指示信号に基づき、上記第1データ処理情報または上記第2データ処理情報のいずれかを選択して、転送されたデータに応じた画像データ処理を実行するように構成されていてもよい。   In the image processing apparatus according to the present invention, in the configuration described above, the second data processing unit includes first data processing information that is information for executing image data processing of the second region portion, and the first data processing unit. Second data processing information that is information for executing image data processing of two image data, and based on the transmission data instruction signal, either the first data processing information or the second data processing information is stored. It may be configured to select the image data and execute image data processing according to the transferred data.

上記した構成によると、第2データ処理部は、第1データ処理情報及び第2データ処理情報を保持し、上記送信データ指示信号に応じて第1データ処理情報または第2データ処理情報に基づき画像データ処理を実行することができる。このため、第2データ処理部は、転送されたデータの画像データ処理の処理内容が異なる場合であってもそれぞれの処理内容に応じた処理を行うことができる。   According to the above configuration, the second data processing unit holds the first data processing information and the second data processing information, and the image is based on the first data processing information or the second data processing information according to the transmission data instruction signal. Data processing can be performed. Therefore, the second data processing unit can perform processing according to each processing content even when the processing content of the transferred image data processing is different.

本発明に係るが像処理装置の制御方法は、上記した課題を解決するために、画像データの圧縮および圧縮された画像データの伸張のうち少なくともいずれか1つの処理を含む画像データ処理を行う第1データ処理部と、この第1データ処理部とは画像データ処理の処理方式が異なるとともに、該画像データ処理にかかる処理時間が該第1データ処理部よりも小さい第2データ処理部とを有する画像処理装置の制御方法であって、上記画像処理装置は、上記画像データ処理を行う画像データとして、異なる特性の領域を含む第1画像データと、該第1画像データとは異なる第2画像データとを記憶する記憶部をさらに備えており、上記記憶部に記憶された第1画像データを、該第1画像データを構成する領域の特性に応じて、上記第1データ処理部によって画像データ処理を行う領域である第1領域部分と、上記第2データ処理部によって画像データ処理を行う領域である第2領域部分とに分離する分離ステップと、上記第1データ処理部が第1領域部分の画像データ処理を行っている間に、上記第2データ処理部は、上記第2領域部分と上記第2画像データとを上記記憶部から読み出し、画像データ処理を行う画像データ処理ステップとを含むことを特徴とする。   In order to solve the above-described problem, a control method for an image processing apparatus according to the present invention performs image data processing including at least one of compression of image data and expansion of the compressed image data. The one data processing unit and the first data processing unit have a processing method for image data processing and a second data processing unit having a processing time required for the image data processing smaller than that of the first data processing unit. A control method for an image processing device, wherein the image processing device includes first image data including regions having different characteristics and second image data different from the first image data as image data to be subjected to the image data processing. And storing the first image data stored in the storage unit in accordance with the characteristics of the area constituting the first image data. A separation step of separating a first region portion, which is a region where image data processing is performed by the unit, and a second region portion, which is a region where image data processing is performed by the second data processing unit, and the first data processing unit While performing the image data processing of the first region portion, the second data processing unit reads the second region portion and the second image data from the storage unit and performs image data processing. And a step.

本発明に係る画像処理装置の制御方法は、画像データ処理の処理方式が異なる第1データ処理部および第2データ処理部を備えているため、画像データの特性に応じて適切な方式により画像データの画像データ処理を行うことができる。   Since the control method of the image processing apparatus according to the present invention includes the first data processing unit and the second data processing unit that are different in the processing method of the image data processing, the image data is processed by an appropriate method according to the characteristics of the image data. Image data processing can be performed.

なお、画像データの特性としては、画像データ処理に伴い、その画像データが画質の劣化の影響を大きく受けるか否か等が挙げられる。   Note that the characteristics of the image data include whether or not the image data is greatly affected by the deterioration of the image quality accompanying the image data processing.

上記した方法によるとさらに分離ステップを含むため、画像データを構成する領域の特性に応じて第1画像データを第1領域部分と第2領域部分とに分離することができる。そして、分離された第1領域部分と第2領域部分とはそれぞれ第1データ処理部と第2データ処理部とで並行して画像データ処理を行うことができる。例えば、画像データの圧縮処理に伴い、画像データが画質の劣化の影響を大きく受けるか否か等によって第1画像データを分離し、それぞれの特性に応じて、第1データ処理部と第2データ処理部とに並行して処理させることができる。   Since the method further includes a separation step, the first image data can be separated into the first region portion and the second region portion according to the characteristics of the regions constituting the image data. The separated first region portion and second region portion can be subjected to image data processing in parallel by the first data processing unit and the second data processing unit, respectively. For example, as the image data is compressed, the first image data is separated depending on whether the image data is greatly affected by the deterioration in image quality, and the first data processing unit and the second data are separated according to the respective characteristics. Processing can be performed in parallel with the processing unit.

また、画像データ処理ステップを含むため、第2データ処理部は、上記第1データ処理部が第1領域部分の画像データ処理を行っている間に、上記第2領域部分に加えて上記第2画像データも上記記憶部から読み出し、画像データ処理を行うことできる。   In addition, since the image data processing step is included, the second data processing unit includes the second data portion in addition to the second region portion while the first data processing unit performs image data processing of the first region portion. Image data can also be read from the storage unit and subjected to image data processing.

このため、本発明に係る画像処理装置の制御方法は、記憶部に記憶している画像データに対して効率よく画像データ処理を実行することができるという効果を奏する。   For this reason, the control method of the image processing apparatus according to the present invention has an effect that the image data processing can be efficiently executed on the image data stored in the storage unit.

本発明に係る画像処理装置は、以上のように、本発明に係る画像処理装置は、上記した課題を解決するために、画像データの圧縮および圧縮された画像データの伸張のうち少なくともいずれか1つの処理を含む画像データ処理を行う第1データ処理部と、この第1データ処理部とは画像データ処理の処理方式が異なるとともに、該画像データ処理にかかる処理時間が該第1データ処理部よりも小さい第2データ処理部とを有する画像処理装置であって、上記画像データ処理を行う画像データとして、異なる特性の領域を含む第1画像データと、該第1画像データとは異なる第2画像データとを記憶する記憶部と、上記記憶部に記憶された第1画像データを、該第1画像データを構成する領域の特性に応じて、上記第1データ処理部によって画像データ処理を行う領域である第1領域部分と、上記第2データ処理部によって画像データ処理を行う領域である第2領域部分とに分離する分離部と、を備え、上記第1データ処理部が第1領域部分の画像データ処理を行っている間に、上記第2データ処理部は、上記第2領域部分と上記第2画像データとを上記記憶部から読み出し、画像データ処理を行うことを特徴とする。   As described above, the image processing apparatus according to the present invention is at least one of compression of image data and expansion of the compressed image data in order to solve the above-described problem. The first data processing unit that performs image data processing including two processes differs from the first data processing unit in the processing method of image data processing, and the processing time required for the image data processing is greater than that of the first data processing unit. An image processing apparatus having a smaller second data processing unit, wherein the image data to be subjected to the image data processing is a first image data including regions having different characteristics and a second image different from the first image data. A storage unit for storing data and the first image data stored in the storage unit by the first data processing unit according to the characteristics of the area constituting the first image data. A separation unit that separates a first region part that performs data processing into a second region part that performs image data processing by the second data processing unit, and the first data processing unit includes: While performing the image data processing of the first region portion, the second data processing unit reads the second region portion and the second image data from the storage unit, and performs image data processing. And

このため、本発明に係る画像処理装置は、記憶部に記憶している画像データに対して効率よく画像データ処理を実行することができるという効果を奏する。   For this reason, the image processing apparatus according to the present invention has an effect that the image data processing can be efficiently executed on the image data stored in the storage unit.

本発明に係るが像処理装置の制御方法は、以上のように、画像データの圧縮および圧縮された画像データの伸張のうち少なくともいずれか1つの処理を含む画像データ処理を行う第1データ処理部と、この第1データ処理部とは画像データ処理の処理方式が異なるとともに、該画像データ処理にかかる処理時間が該第1データ処理部よりも小さい第2データ処理部とを有する画像処理装置の制御方法であって、上記画像処理装置は、上記画像データ処理を行う画像データとして、異なる特性の領域を含む第1画像データと、該第1画像データとは異なる第2画像データとを記憶する記憶部をさらに備えており、上記記憶部に記憶された第1画像データを、該第1画像データを構成する領域の特性に応じて、上記第1データ処理部によって画像データ処理を行う領域である第1領域部分と、上記第2データ処理部によって画像データ処理を行う領域である第2領域部分とに分離する分離ステップと、上記第1データ処理部が第1領域部分の画像データ処理を行っている間に、上記第2データ処理部は、上記第2領域部分と上記第2画像データとを上記記憶部から読み出し、画像データ処理を行う画像データ処理ステップとを含むことを特徴とする。   As described above, the control method of the image processing apparatus according to the present invention includes a first data processing unit that performs image data processing including at least one of compression of image data and expansion of the compressed image data. And a second data processing unit having a processing method for image data processing different from that of the first data processing unit and a processing time required for the image data processing is shorter than that of the first data processing unit. In the control method, the image processing apparatus stores, as image data to be subjected to the image data processing, first image data including regions having different characteristics and second image data different from the first image data. A storage unit, wherein the first image data stored in the storage unit is converted into an image by the first data processing unit according to the characteristics of the area constituting the first image data. A separation step for separating a first area portion that is an area for performing data processing and a second area portion that is an area for performing image data processing by the second data processing section; While performing the image data processing of the region portion, the second data processing unit reads the second region portion and the second image data from the storage unit, and performs an image data processing step of performing image data processing; It is characterized by including.

このため、本発明に係る画像処理装置の制御方法は、記憶部に記憶している画像データに対して効率よく画像データ処理を実行することができるという効果を奏する。   For this reason, the control method of the image processing apparatus according to the present invention has an effect that the image data processing can be efficiently executed on the image data stored in the storage unit.

本発明の実施形態を示すものであり、画像処理装置における圧縮処理に係る要部構成について示すブロック図である。1, showing an embodiment of the present invention, is a block diagram illustrating a configuration of main parts related to compression processing in an image processing apparatus. FIG. 本発明の実施形態を示すものであり、圧縮モジュールの要部構成を説明するブロック図である。1, showing an embodiment of the present invention, is a block diagram illustrating a main configuration of a compression module. FIG. 本発明の実施形態を示すものであり、圧縮モジュールにおける圧縮処理の処理フローを示すフローチャートである。4 is a flowchart illustrating a processing flow of compression processing in the compression module according to the embodiment of this invention. 本発明の実施形態を示すものであり、DRAMからSRAMへのデータの読み出し例を示す図である。FIG. 4 is a diagram illustrating an example of reading data from a DRAM to an SRAM according to an embodiment of the present invention. 本発明の実施形態を示すものであり、データ置換部によって実行される置換処理を示す図である。It is a figure which shows embodiment of this invention and shows the replacement process performed by the data replacement part. 本発明の実施形態を示すものであり、データ置換部によって実行される置換処理を示す図である。It is a figure which shows embodiment of this invention and shows the replacement process performed by the data replacement part. 本発明の実施形態を示すものであり、アービタによる調停処理のタイムチャートを示す図である。FIG. 5 is a diagram illustrating an embodiment of the present invention and a time chart of arbitration processing by an arbiter. 本発明の実施形態を示すものであり、指示データ可逆圧縮コア、画像データ可逆圧縮コア、画像データ非可逆圧縮コアそれぞれで第1画像データセットの圧縮処理を行なった場合における処理時間の比較を示す図である。FIG. 4 shows an embodiment of the present invention, and shows a comparison of processing times when the compression processing of the first image data set is performed in each of the instruction data lossless compression core, the image data lossless compression core, and the image data lossy compression core. FIG. 本発明の実施形態を示すものであり、圧縮モジュールにおける圧縮処理の処理フローを示すフローチャートである。4 is a flowchart illustrating a processing flow of compression processing in the compression module according to the embodiment of this invention. 本発明の実施形態を示すものであり、画像データ非可逆圧縮コアが画像データを受信する際の信号波形を示す図である。FIG. 5 is a diagram illustrating a signal waveform when the image data lossy compression core receives image data according to the embodiment of the present invention. 本発明の実施形態を示すものであり、2種類の画像データを時分割で圧縮処理した場合の処理状態の一例を示す図である。FIG. 5 is a diagram illustrating an example of a processing state when two types of image data are compressed in a time-sharing manner according to the embodiment of this invention. 本発明の実施形態を示すものであり、画像データ非可逆圧縮コアの要部構成を示すブロック図である。1, showing an embodiment of the present invention, is a block diagram showing a main configuration of an image data lossy compression core. FIG.

本発明の一実施形態について図1ないし図12に基づいて説明すると以下の通りである。すなわち、本実施の形態に係る画像処理装置1は、画像データから写真領域や文字領域など特徴領域(特性の領域)を判定し、特徴領域に応じて可逆圧縮または非可逆圧縮(画像データ処理)を行うものである。画像処理装置1は、例えば、複写機、プリンタ、スキャナ、ファクシミリ、あるいはこれらを統合したデジタル複合機などにより実現できる。   An embodiment of the present invention will be described below with reference to FIGS. That is, the image processing apparatus 1 according to the present embodiment determines a feature region (characteristic region) such as a photograph region or a character region from image data, and reversible compression or lossy compression (image data processing) according to the feature region. Is to do. The image processing apparatus 1 can be realized by, for example, a copying machine, a printer, a scanner, a facsimile, or a digital multifunction machine that integrates these.

まず、図1を参照して画像処理装置1における圧縮処理に係る構成について説明する。図1は、本発明の実施形態を示すものであり、画像処理装置1における圧縮処理に係る要部構成について示すブロック図である。   First, a configuration relating to compression processing in the image processing apparatus 1 will be described with reference to FIG. FIG. 1 shows an embodiment of the present invention and is a block diagram showing a main configuration relating to compression processing in an image processing apparatus 1.

(画像処理装置の圧縮処理に係る構成)
図1に示すように、本実施の形態に係る画像処理装置1は、圧縮処理に係る構成として、割り込み制御部11、CPU12、メモリコントローラ14、HDDコントローラ15、画像処理部16、指示データ生成部17、および画質改善画像処理部18を備えている。そして、これら各部はシステムバス2を通じてデータの送受信を行うことができる。
(Configuration related to compression processing of image processing apparatus)
As shown in FIG. 1, the image processing apparatus 1 according to the present embodiment includes an interrupt control unit 11, a CPU 12, a memory controller 14, an HDD controller 15, an image processing unit 16, and an instruction data generation unit as a configuration related to compression processing. 17 and an image quality improvement image processing unit 18. These units can transmit and receive data through the system bus 2.

割り込み制御部11は、当該画像処理装置1が備える各部からイベント信号を受信するとCPU12に対してイベント発生を通知するものである。このイベント信号の例としては、例えば、DMA転送完了の通知、スレーブモジュール(本実施形態ではメモリコントローラ14等)との通信エラーなどによるDMA転送の中止を示す通知などが挙げられる。つまり、イベント信号は、各DMA部から割り込み制御部11に対して出力される通知信号である。各DMA部から通知されたこれらの通知信号は、割り込み制御部11が備える不図示のレジスタに保持されように構成されている。そして、CPU12が該当するレジスタから通知信号を読み出すことにより、何のイベントが発生したのかを判定することができる。CPU12は判定したイベントの種類によって、次に動作すべき内容を決定する。   When receiving an event signal from each unit included in the image processing apparatus 1, the interrupt control unit 11 notifies the CPU 12 that an event has occurred. Examples of this event signal include a notification of DMA transfer completion and a notification indicating cancellation of DMA transfer due to a communication error with a slave module (memory controller 14 or the like in the present embodiment). That is, the event signal is a notification signal output from each DMA unit to the interrupt control unit 11. These notification signals notified from each DMA unit are configured to be held in a register (not shown) included in the interrupt control unit 11. Then, the CPU 12 can determine what event has occurred by reading the notification signal from the corresponding register. The CPU 12 determines the content to be operated next depending on the determined event type.

CPU12は、画像処理装置1が備える各部の各種制御を行うものである。具体的には、CPU12は、後述するDRAM(メインメモリ)3からプログラムデータを、メモリコントローラ14を介して読み出し、この読み出した命令を解釈して動作する。CPU12は、これらの命令を順番に読み出すことで、画像処理装置1全体の各部を制御することができる。なお、この命令としては、例えばDMA部に対する起動および終了命令、あるいは割り込み処理命令などが挙げられる。   The CPU 12 performs various controls of each unit included in the image processing apparatus 1. Specifically, the CPU 12 reads program data from a DRAM (main memory) 3 to be described later via the memory controller 14, and operates by interpreting the read command. The CPU 12 can control each unit of the entire image processing apparatus 1 by reading out these commands in order. Examples of this command include a start and end command for the DMA unit, or an interrupt processing command.

メモリコントローラ14は、DRAM3と接続されており、CPU12、または各DMA部からの指示に応じて該DRAM3に対するデータの読み出し、および書込みを制御するモジュールである。つまり、メモリコントローラ14は、スレーブモジュールとして動作するものであり、マスタモジュールであるCPU12や各DMA部により指示されたDRAM3のアドレスから、指示されたデータサイズのデータを読み出したり、書き込んだりする。そして、メモリコントローラ14は、読み出し要求によってDRAM3から読み出したデータを、読み出しの要求を行ったマスタモジュール(CPU12または各DMA部)に転送する。あるいは、メモリコントローラ14は、書き込み要求により書き込むべきデータをマスタモジュールから取得し、DRAM3に対して書き込みを行う。また、メモリコントローラ14は、DRAM3に格納されているデータが消えないようにするために、リフレッシュ制御などを行うものでもある。   The memory controller 14 is connected to the DRAM 3 and is a module that controls reading and writing of data with respect to the DRAM 3 in accordance with an instruction from the CPU 12 or each DMA unit. In other words, the memory controller 14 operates as a slave module, and reads or writes data of the instructed data size from the address of the DRAM 3 instructed by the CPU 12 that is the master module or each DMA unit. Then, the memory controller 14 transfers the data read from the DRAM 3 in response to the read request to the master module (CPU 12 or each DMA unit) that has made the read request. Alternatively, the memory controller 14 acquires data to be written from the master module in response to a write request, and writes the data to the DRAM 3. The memory controller 14 also performs refresh control and the like so as not to erase data stored in the DRAM 3.

HDDコントローラ15は、DMA部を有しており、CPU12からのDMA部に対する起動命令に応じて、ハードディスク(HDD)に対し、データの読み出し、あるいは書き込みを行うモジュールである。HDDコントローラ15は、全てのデータ転送が完了すると、割り込み制御部11に対して完了通知を行う。そして、この通知は、割り込み制御部11を介してCPU12に通知される。なお、HDDコントローラ15が扱うデータとは、画像データ、指示データ、圧縮データ、プログラムデータなど、HDDに格納するデータ全てが対象となる。   The HDD controller 15 has a DMA unit, and is a module that reads or writes data from or to a hard disk (HDD) in accordance with an activation command from the CPU 12 to the DMA unit. When all data transfer is completed, the HDD controller 15 notifies the interrupt control unit 11 of completion. Then, this notification is notified to the CPU 12 via the interrupt control unit 11. The data handled by the HDD controller 15 includes all data stored in the HDD such as image data, instruction data, compressed data, and program data.

画質改善画像処理部18は、DMA部を有し、高画質化処理および解像度変換処理など画質改善にかかる処理を実現するモジュールである。画質改善画像処理部18は、CPU12からのDMA部に対する起動命令に応じて、DRAM3から画像データを取得する。そして、CPU12からの指示に応じて、取得した画像データに対して、高画質化処理および解像度変換処理等を実施する。   The image quality improvement image processing unit 18 has a DMA unit, and is a module that realizes processing related to image quality improvement such as high image quality processing and resolution conversion processing. The image quality improved image processing unit 18 acquires image data from the DRAM 3 in response to a start command from the CPU 12 to the DMA unit. And according to the instruction | indication from CPU12, an image quality improvement process, a resolution conversion process, etc. are implemented with respect to the acquired image data.

画像処理部16は、DMA部を有し、画像処理機能を実現するモジュールである。画像処理部16は、CPU12からのDMA部に対する起動命令に応じて、DRAM3から画像データを取得し、データバッファであるSRAM25に保存する。そして、画像処理部16は、SRAM25に保存した画像データを読み出し、CPU12からの指示に従って画像処理を行い、出力バッファであるSRAM25に書き込む。このようにして、画像処理が完了すると、画像処理部16では、DMA部がDRAM3に対して書き込みを行う。この一連の処理を繰り返し、全ての画像データに対する画像処理を完了すると、画像処理部16は、割り込み制御部11に対して完了通知を送る。そして、この完了通知は、画像処理部16を介してCPU12通知される。なお、画像処理部16において実行される画像処理としては、例えば、画像データの高画質化処理、解像度変換処理、暗号化処理、圧縮処理、伸張処理などの処理が挙げられる。なお、圧縮処理および伸張処理が本発明の画像データ処理に相当する。   The image processing unit 16 has a DMA unit and is a module that realizes an image processing function. The image processing unit 16 acquires image data from the DRAM 3 in response to a start command from the CPU 12 to the DMA unit, and stores it in the SRAM 25 that is a data buffer. Then, the image processing unit 16 reads the image data stored in the SRAM 25, performs image processing in accordance with an instruction from the CPU 12, and writes the image data in the SRAM 25 that is an output buffer. When the image processing is completed in this way, in the image processing unit 16, the DMA unit writes to the DRAM 3. When this series of processing is repeated and image processing for all image data is completed, the image processing unit 16 sends a completion notification to the interrupt control unit 11. This completion notification is notified to the CPU 12 via the image processing unit 16. Examples of the image processing executed in the image processing unit 16 include processing such as image quality enhancement processing, resolution conversion processing, encryption processing, compression processing, and decompression processing of image data. The compression process and the expansion process correspond to the image data process of the present invention.

また、画像処理部16は、特に圧縮処理を実行する部材として、圧縮モジュール13を備えている。圧縮モジュール13の詳細については後述する。   In addition, the image processing unit 16 includes a compression module 13 as a member that executes a compression process. Details of the compression module 13 will be described later.

指示データ生成部17は、DMA部を有し、圧縮方式指示データ(指示データと称する)を生成するモジュールである。この指示データとは、画像データの圧縮形式を特定するためのデータである。以下において、この指示データの生成処理について説明する。   The instruction data generation unit 17 has a DMA unit and is a module that generates compression method instruction data (referred to as instruction data). This instruction data is data for specifying the compression format of the image data. The instruction data generation process will be described below.

本実施の形態に係る画像処理装置1は、以下のような流れで画像データの指示データの生成を行っている。すなわち、CPU12からの起動命令に応じて、指示データ生成17がDRAM3からデータを読み出し、指示データ生成17内部で画像解析を行う。指示データ生成部17は、画像解析結果から各画素(本実施形態ではRGB各8bit合計24bitを1画素とする)毎に、4bitの指示データ(指示データと称する)を生成する。つまり、1画素24bitの画像データにつき、4bitの指示データを生成する。例えば、100MBの画像データを圧縮処理する場合、該100MBの画像データに対する指示データは16.7MBのサイズとなる。このようにして、CPU12からの制御指示の下、指示データ生成部17が指示データを生成する。   The image processing apparatus 1 according to the present embodiment generates instruction data for image data in the following flow. That is, the instruction data generation 17 reads data from the DRAM 3 in accordance with a start command from the CPU 12 and performs image analysis inside the instruction data generation 17. The instruction data generation unit 17 generates 4-bit instruction data (referred to as instruction data) for each pixel (in this embodiment, a total of 24 bits for each RGB is 24 bits as one pixel) from the image analysis result. That is, 4 bits of instruction data are generated for each pixel of 24 bits of image data. For example, when 100 MB of image data is compressed, the instruction data for the 100 MB of image data has a size of 16.7 MB. In this way, the instruction data generation unit 17 generates instruction data under the control instruction from the CPU 12.

生成された指示データは、CPU12からの指示に応じて指示データ生成部17が備えるDMAが、メモリコントローラ14を介してDRAM3に書き込む。そして、全ての画素に対する指示データをDRAM3に書き込むと、割り込み制御部11に対して指示データ生成処理の完了通知を行う。この完了通知は、割り込み制御部11を介してCPU12に通知される。   The generated instruction data is written into the DRAM 3 by the DMA included in the instruction data generation unit 17 in accordance with an instruction from the CPU 12 via the memory controller 14. When the instruction data for all the pixels is written in the DRAM 3, the completion of the instruction data generation process is notified to the interrupt control unit 11. This completion notification is sent to the CPU 12 via the interrupt control unit 11.

画像データに対して実行される画像解析とは、例えば、領域判定などの処理が挙げられる。つまり、領域判定処理において、色変化および濃度変化の大きく高周波成分の多い画像は、写真領域であると判定され、この領域に対して非可逆圧縮を行う指示データが生成される。なお、画像解析の具体的処理内容については、公知の技術であるため、その詳細はここでは省略する。   Examples of the image analysis performed on the image data include processing such as region determination. That is, in the area determination process, an image having a large color change and density change and a large amount of high-frequency components is determined to be a photographic area, and instruction data for performing irreversible compression on the area is generated. Note that the specific processing content of the image analysis is a known technique, and therefore details thereof are omitted here.

圧縮モジュール13は、複数のDMA部からなる圧縮モジュールDMA24を有しており、CPU12からの指示に応じてデータの圧縮処理を行うモジュールである。図1に示すように圧縮モジュール13は、3つの圧縮コアモジュール(画像データ非可逆圧縮コア21、画像データ可逆圧縮コア22、指示データ可逆圧縮コア23)を備えている。なお、本明細書では、画像データ非可逆圧縮コア21、画像データ可逆圧縮コア22、指示データ可逆圧縮コア23をそれぞれ区別して説明する必要がない場合は、これらを総称して単に圧縮コアモジュールと称することとする。   The compression module 13 has a compression module DMA 24 composed of a plurality of DMA units, and performs data compression processing in accordance with instructions from the CPU 12. As shown in FIG. 1, the compression module 13 includes three compression core modules (an image data lossy compression core 21, an image data lossless compression core 22, and an instruction data lossless compression core 23). In the present specification, when it is not necessary to distinguish between the image data lossy compression core 21, the image data lossless compression core 22, and the instruction data lossless compression core 23, these are collectively referred to as a compression core module. I will call it.

圧縮モジュール13は、DRAM3から画像データと指示データを読み込むと、3つの圧縮コアモジュールに分散して、可逆圧縮および非可逆圧縮が行われる。より具体的には、画像データ非可逆圧縮コア21は、画像データのうち写真等を含む所定領域(写真領域)に対して非可逆圧縮を行う。一方、画像データ可逆圧縮コア22は、この同じ画像データのうち文字等が存在する領域(文字領域)に対して可逆圧縮を行う。また、指示データ可逆圧縮コア23は、この画像データに対応する指示データの可逆圧縮を実行する。以下において、図2を参照して、本実施の形態に係る圧縮モジュール13のより詳細な構成について説明する。図2は、本発明の実施形態を示すものであり、圧縮モジュール13の要部構成を説明するブロック図である。   When the compression module 13 reads image data and instruction data from the DRAM 3, the compression module 13 distributes the data to the three compression core modules, and performs lossless compression and lossy compression. More specifically, the image data irreversible compression core 21 performs irreversible compression on a predetermined area (photo area) including a photograph or the like in the image data. On the other hand, the image data lossless compression core 22 performs lossless compression on an area (character area) in which characters and the like exist in the same image data. The instruction data lossless compression core 23 performs lossless compression of instruction data corresponding to the image data. Below, with reference to FIG. 2, the more detailed structure of the compression module 13 which concerns on this Embodiment is demonstrated. FIG. 2 shows an embodiment of the present invention, and is a block diagram for explaining a main configuration of the compression module 13.

なお、図2では、説明を簡便にするために、圧縮モジュール13がDRAM3から第1画像データ、圧縮方式指示データ、第2画像データをそれぞれ読み出すように記載されている。しかしながら、実際には、システムバス2を通じてメモリコントローラ14を介してDRAM3から上述した各種画像データを読み出す。   In FIG. 2, it is described that the compression module 13 reads the first image data, the compression method instruction data, and the second image data from the DRAM 3 for ease of explanation. However, actually, the various image data described above are read from the DRAM 3 through the system bus 2 and the memory controller 14.

(圧縮モジュールの構成)
図2に示すように、本実施の形態に係る圧縮モジュール13は、圧縮モジュールDMA24(DMA部24a〜DMA部24g)、SRAM25(SRAM25a〜25g)、アービタ26、SRAMリードコントローラ27a〜27c、データ置換部28a〜28b、圧縮コアモジュール(画像データ非可逆圧縮コア21、画像データ可逆圧縮コア22、指示データ可逆圧縮コア23)、SRAMライトコントローラ29a〜29cとを備えてなる構成である。
(Configuration of compression module)
As shown in FIG. 2, the compression module 13 according to the present embodiment includes a compression module DMA24 (DMA unit 24a to DMA unit 24g), SRAM 25 (SRAM 25a to 25g), arbiter 26, SRAM read controllers 27a to 27c, data replacement. Sections 28a to 28b, a compression core module (image data lossy compression core 21, image data lossless compression core 22, instruction data lossless compression core 23), and SRAM light controllers 29a to 29c.

なお、圧縮モジュールDMA24(特にDMA部24a〜24c)、SRAM25(特にSRAM25a〜25c)、アービタ26、SRAMリードコントローラ27a〜27cによって本発明の転送部を実現する。   The compression module DMA24 (particularly the DMA units 24a to 24c), the SRAM 25 (particularly the SRAMs 25a to 25c), the arbiter 26, and the SRAM read controllers 27a to 27c implement the transfer unit of the present invention.

また、圧縮モジュール13が備えるDMA部24a〜24g、SRAM25a〜25g、SRAMリードコントローラ27a〜27c、データ置換部28a〜28b、圧縮コアモジュール、SRAMライトコントローラ29a〜29cそれぞれの個数は上述した個数に限定されるものではない。圧縮処理対象となるデータの種類等に応じて適宜設けることができる。   The number of DMA units 24a to 24g, SRAMs 25a to 25g, SRAM read controllers 27a to 27c, data replacement units 28a to 28b, compression core modules, and SRAM write controllers 29a to 29c included in the compression module 13 are limited to the numbers described above. Is not to be done. It can be provided as appropriate according to the type of data to be compressed.

SRAM25は、DRAM3から読み出した指示データ、画像データ(第1画像データ、第2画像データ)、およびこれらの各種データを圧縮処理した結果得られる4つの圧縮データ(圧縮データ24d〜24g)を格納するメモリである。   The SRAM 25 stores instruction data read from the DRAM 3, image data (first image data, second image data), and four compressed data (compressed data 24d to 24g) obtained as a result of compressing these various data. It is memory.

第1画像データとは、例えばスキャナからの取得画像であり、第2画像データとは、例えばFAX画像など様々な画像形式が挙げられる。   The first image data is, for example, an image acquired from a scanner, and the second image data is, for example, various image formats such as a FAX image.

アービタ26は、データを読み出すためにSRAM25へアクセスするモジュールを決定するものである。より具体的には、アービタ26は、SRAMリードコントローラ27a〜27cのSRAM25に対するアクセス許可を発行する。このため、アービタ26により許可を発行されたSRAMリードコントローラだけがSRAM25にアクセスしてデータを読み出すことができる。   The arbiter 26 determines a module that accesses the SRAM 25 in order to read data. More specifically, the arbiter 26 issues an access permission for the SRAM 25 of the SRAM read controllers 27a to 27c. For this reason, only the SRAM read controller to which permission is issued by the arbiter 26 can access the SRAM 25 and read data.

データ置換部28a〜28bは、SRAMリードコントローラ27b、27cによりSRAM25から読み出された画像データを、指示データの内容に従って置換処理するものである。そして、データ置換部28a〜28cは、置換処理した結果を圧縮コアモジュールに対して出力する。なお、この置換処理の詳細については後述する。   The data replacement units 28a to 28b perform replacement processing on the image data read from the SRAM 25 by the SRAM read controllers 27b and 27c according to the contents of the instruction data. Then, the data replacement units 28a to 28c output the result of the replacement process to the compression core module. Details of the replacement process will be described later.

SRAMライトコントローラ29a〜29cは、各圧縮コアモジュールによって圧縮処理されたデータ(第1〜第4圧縮データ)をSRAM25(SRAM25d〜25g)にそれぞれ書き込むものである。SRAM25に書き込まれたデータそれぞれを、DMA24d〜24gが、メモリコントローラ14を介してDRAM3に書き込む。   The SRAM write controllers 29a to 29c write data (first to fourth compressed data) compressed by the respective compression core modules to the SRAM 25 (SRAMs 25d to 25g), respectively. Each of the data written in the SRAM 25 is written into the DRAM 3 by the DMAs 24 d to 24 g via the memory controller 14.

上記した構成を有する圧縮モジュール13は、2種類の画像データ(第1画像データセットおよび第2画像データ)を並列的に圧縮処理することが可能となっている。そこで、上述した図2、ならびに図3、4を参照にして、圧縮モジュール13における圧縮処理の処理フローについて説明する。図3は、本発明の実施形態を示すものであり、圧縮モジュール13における圧縮処理の処理フローを示すフローチャートである。   The compression module 13 having the above-described configuration can compress two types of image data (first image data set and second image data) in parallel. The processing flow of the compression processing in the compression module 13 will be described with reference to FIG. 2 and FIGS. FIG. 3 shows an embodiment of the present invention and is a flowchart showing a processing flow of compression processing in the compression module 13.

(圧縮処理の処理フロー)
まず、前提として、並列的に圧縮処理を行う2種類の画像データとして、第1画像データとその指示データとを含むデータ(第1画像データセット)と、第1画像データとは異なる画像データである第2画像データとが図2に示すようにDRAM3に記憶されているものとする。そして、第1画像データはその一部が非可逆圧縮され、それ以外は可逆圧縮されるものとする。また、指示データは可逆圧縮されるものとする。第2画像データは、非可逆圧縮のみ実行されるものとする。
(Processing flow of compression processing)
First, as a premise, as two types of image data to be compressed in parallel, data including first image data and its instruction data (first image data set) and image data different from the first image data are used. It is assumed that certain second image data is stored in the DRAM 3 as shown in FIG. A part of the first image data is irreversibly compressed, and the other part is reversibly compressed. The instruction data is reversibly compressed. It is assumed that the second image data is only subjected to lossy compression.

また、指示データのSRAM25へのDMA転送は、DMA部24aが、第1画像データのSRAM25へのDMA転送は、DMA部24bが行うものとする。また、第2画像データのSRAM25へのDMA転送は、DMA部24cが行うものとする。一方、可逆圧縮された指示データのDRAM3へのDMA転送は、DMA部24dが、可逆圧縮された第1画像データのDRAM3へのDMA転送は、DMA部24eが、非可逆圧縮された第1画像データのDRAM3へのDMA転送は、DMA部24fがそれぞれ行うものとする。また非可逆圧縮された第2画像データのDRAM3へのDMA転送は、DMA部24gが行うものとする。   The DMA transfer of instruction data to the SRAM 25 is performed by the DMA unit 24a, and the DMA transfer of the first image data to the SRAM 25 is performed by the DMA unit 24b. The DMA transfer of the second image data to the SRAM 25 is performed by the DMA unit 24c. On the other hand, the DMA transfer of the lossless instruction data to the DRAM 3 is performed by the DMA unit 24d, and the DMA transfer of the losslessly compressed first image data to the DRAM 3 is performed by the DMA unit 24e by the lossy compressed first image. DMA transfer of data to the DRAM 3 is performed by the DMA unit 24f. It is assumed that the DMA unit 24g performs the DMA transfer of the lossy-compressed second image data to the DRAM 3.

なお、2種類の画像データそれぞれの画像圧縮処理は独立して起動および終了が可能である。このため、説明の便宜上、以下のフローチャートではそれぞれの場合について個別に説明する。   Note that the image compression processing of each of the two types of image data can be activated and terminated independently. Therefore, for convenience of explanation, each case will be described individually in the following flowchart.

(第1画像データセットの圧縮処理)
まず、第1画像データセットの圧縮処理について説明する。
(Compression processing of the first image data set)
First, compression processing of the first image data set will be described.

図3に示すように、CPU12は、DMA部(DMA部24a、24b)のソース動作設定を行う(ステップS11、これ以降S11のように称する)。DMAのソース動作設定とは、DMA部24a、24bそれぞれが取得するデータが格納されているDRAM3における位置(アドレス)、および画像サイズに応じたデータサイズなどを設定することである。この設定は、CPU12が、DRAM3に格納する原稿のデータサイズや、DRAM3の使用状況に基づいて自動的に行うように構成されている。   As shown in FIG. 3, the CPU 12 performs source operation setting of the DMA unit (DMA units 24a and 24b) (step S11, hereinafter referred to as S11). The DMA source operation setting is to set a position (address) in the DRAM 3 in which data acquired by each of the DMA units 24a and 24b is stored, a data size corresponding to the image size, and the like. This setting is configured so that the CPU 12 automatically performs the setting based on the data size of the document stored in the DRAM 3 and the usage status of the DRAM 3.

なお、ステップS11では、CPU12が、DMA部24aおよびDMA部24bそれぞれが扱うデータについても設定する。具体的には、CPU12は、各DMA部24a、24bそれぞれが読み出すデータの格納位置を示すアドレスを指示することでこの設定を行う。例えば、指示データおよび第1画像データそれぞれが、図2に示すようにDRAM3に格納されている場合、CPU12は、DMA部24aに対し、指示データの格納アドレスをアドレス0x0000_0000とし、DMA部24bに対し、第1画像データの格納アドレスをアドレス0x1000_0000として設定する。   In step S11, the CPU 12 also sets data handled by each of the DMA unit 24a and the DMA unit 24b. Specifically, the CPU 12 performs this setting by designating an address indicating a storage position of data read by each of the DMA units 24a and 24b. For example, when the instruction data and the first image data are stored in the DRAM 3 as shown in FIG. 2, the CPU 12 sets the storage address of the instruction data to the address 0x0000_0000 for the DMA unit 24a and the DMA unit 24b. The storage address of the first image data is set as an address 0x1000_0000.

次に、CPU12は、DMA部(DMA部24dからDMA部24f)のデスティネーション(destination)動作設定を行う(S12)。   Next, the CPU 12 performs destination operation setting of the DMA unit (DMA unit 24d to DMA unit 24f) (S12).

このデスティネーション(destination)動作設定とは、圧縮処理後のデータを、DRAM3のどの位置(アドレス)に格納すべきか指定することである。   The destination operation setting is to designate in which position (address) of the DRAM 3 the data after compression processing should be stored.

より具体的には、CPU12は、DMA部24dに対し、可逆圧縮後の指示データ(第1圧縮データ)を、開始アドレス0x3000_0000に格納するように設定する。DMA部24eに対しては、可逆圧縮後の画像データ(第2圧縮データ)を、開始アドレス0x4000_0000に格納するように設定する。DMA部24eに対しては、非可逆圧縮後の画像データ(第3圧縮データ)を、開始アドレス0x5000_0000に格納するように設定する。   More specifically, the CPU 12 sets the DMA unit 24d to store the instruction data after the lossless compression (first compressed data) at the start address 0x3000_0000. The DMA unit 24e is set to store the image data after the lossless compression (second compressed data) at the start address 0x4000_0000. The DMA unit 24e is set to store the image data after the lossy compression (third compressed data) at the start address 0x5000_0000.

以上のようにソース動作設定およびデスティネーション(destination)動作設定が完了すると、CPU12は、圧縮モジュールDMA24を起動させる(S13)。CPU12により圧縮モジュールDMA24に対して起動指示がなされると、各DMA部(本実施形態ではDMA部24a、24b)は、DRAM3に対してデータを要求する。   When the source operation setting and the destination operation setting are completed as described above, the CPU 12 activates the compression module DMA24 (S13). When the CPU 12 instructs the compression module DMA 24 to start, each DMA unit (in this embodiment, the DMA units 24 a and 24 b) requests data from the DRAM 3.

まず、DMA部24bは、第1画像データをDRAM3からSRAMのデータサイズ分だけ読み出す。そして、読み出したデータをSRAM25に格納する(S14)。   First, the DMA unit 24b reads the first image data from the DRAM 3 by the data size of the SRAM. Then, the read data is stored in the SRAM 25 (S14).

具体的には、図4に示すように、DRAM3から読み出されたデータがSRAM25に読み出される。図4は、本発明の実施形態を示すものであり、DRAM3からSRAM25へのデータの読み出し例を示す図である。   Specifically, as shown in FIG. 4, data read from the DRAM 3 is read to the SRAM 25. FIG. 4 illustrates an embodiment of the present invention, and is a diagram illustrating an example of reading data from the DRAM 3 to the SRAM 25.

すなわち、DRAM3に格納されている画像データは、主走査方向(図の左右方向)について100画素あり、図4に示すように連続的にデータが格納されているものとする。本実施形態では、8×8画素単位で非可逆圧縮処理を行うように構成されている。一方、SRAM25には8×8画素3つ分の容量があるため、主走査方向の24画素分、副走査方向(図の上下方向)の8ライン分の矩形領域データ(192画素)を、DMA部24bはDRAM3から読み出し、SRAM25に格納する。その結果、SRAM25には、図4に示すように、画素データが格納される。   That is, the image data stored in the DRAM 3 has 100 pixels in the main scanning direction (left-right direction in the figure), and the data is continuously stored as shown in FIG. In the present embodiment, the irreversible compression process is performed in units of 8 × 8 pixels. On the other hand, since the SRAM 25 has a capacity of three 8 × 8 pixels, rectangular area data (192 pixels) for 24 lines in the main scanning direction and 8 lines in the sub-scanning direction (vertical direction in the figure) are transferred to the DMA. The unit 24b reads from the DRAM 3 and stores it in the SRAM 25. As a result, pixel data is stored in the SRAM 25 as shown in FIG.

次に、DMA部24aは、指示データをDRAM3からSRAMのデータサイズ分だけ読み出す。そして、読み出したデータをSRAM25に格納する(S15)。   Next, the DMA unit 24a reads the instruction data from the DRAM 3 by the data size of the SRAM. Then, the read data is stored in the SRAM 25 (S15).

具体的には、上記した第1画像データと同様に、図4に示すように、DRAM3から読み出されたデータがSRAM25に読み出される。   Specifically, similarly to the first image data described above, the data read from the DRAM 3 is read to the SRAM 25 as shown in FIG.

すなわち、指示データについても第1画像データと同様に、設定された開始アドレスから連続的にデータが格納されているものとする。なお、指示データが必要となる領域部分は、第1画像データにおける非可逆圧縮を実行する画像領域に対応した矩形領域部分である。このため、DMA部24aは、該当領域箇所の主走査方向における24画素、副走査方向における8画素分のデータを取得してSRAM25に格納する。   That is, it is assumed that the instruction data is continuously stored from the set start address, similarly to the first image data. In addition, the area | region part for which instruction | indication data is required is a rectangular area part corresponding to the image area | region which performs irreversible compression in 1st image data. For this reason, the DMA unit 24a acquires data for 24 pixels in the main scanning direction and 8 pixels in the sub-scanning direction of the corresponding area and stores them in the SRAM 25.

このように指示データおよび第1画像データの取得が完了すると、圧縮モジュールDMA24は、SRAMリードコントローラ27a〜27cに対して、データ取得完了を通知する。この通知を受信すると、SRAMリードコントローラ27a〜27cは、画像データおよび指示データをアービタ26の調停結果に従って、画像データ、指示データの読み込み処理を開始する。そして、データ置換部28a、28bは、SRAMリードコントローラ27b、27cによりSRAM25から読み出された画像データを、指示データの内容に従って置換処理する。そして、置換処理を行うと、SRAMリードコントローラ27a〜27cは、圧縮コアモジュールに対して転送する(S16)。   When the acquisition of the instruction data and the first image data is completed as described above, the compression module DMA 24 notifies the SRAM read controllers 27a to 27c of the completion of data acquisition. When this notification is received, the SRAM read controllers 27a to 27c start reading processing of the image data and the instruction data according to the arbitration result of the arbiter 26 for the image data and the instruction data. The data replacement units 28a and 28b perform replacement processing on the image data read from the SRAM 25 by the SRAM read controllers 27b and 27c in accordance with the contents of the instruction data. When the replacement process is performed, the SRAM read controllers 27a to 27c transfer the compressed core module (S16).

ここで、図5を参照して、データ置換部28a、28bによって実行される置換処理について説明する。図5は、本発明の実施形態を示すものであり、データ置換部28a、28bによって実行される置換処理を示す図である。   Here, the replacement process executed by the data replacement units 28a and 28b will be described with reference to FIG. FIG. 5 shows an embodiment of the present invention, and is a diagram showing a replacement process executed by the data replacement units 28a and 28b.

まず、置換処理後の結果を画像データ非可逆圧縮コア21に出力する場合について説明する。   First, the case where the result after the replacement process is output to the image data lossy compression core 21 will be described.

データ置換部28a、28bは、画像データの画素「001」と、対応する指示データ「1」とを、それぞれのSRAM25より取得する。ここで指示データは、「0」または「1」の2値により示されるもので、「0」は可逆圧縮処理を行うべき画素であることを意味し、「1」は非可逆圧縮処理を行うべき画素であることを意味するものとする。   The data replacement units 28 a and 28 b obtain the pixel “001” of the image data and the corresponding instruction data “1” from the respective SRAMs 25. Here, the instruction data is indicated by a binary value of “0” or “1”, “0” means a pixel to be subjected to lossless compression processing, and “1” performs lossy compression processing. It means that the pixel is a power pixel.

このように、指示データの値「1」は、対応する第1画像データの画素「001」について非可逆圧縮処理を行うことを意味する。このため、第1画像データの画素「001」は画像データ非可逆圧縮コア21に出力される。   Thus, the value “1” of the instruction data means that the irreversible compression process is performed on the pixel “001” of the corresponding first image data. Therefore, the pixel “001” of the first image data is output to the image data lossy compression core 21.

次に、第1画像データの画素「002」と対応する指示データの値も「1」である。このため、画素「002」についても画像データ非可逆圧縮コア21に出力する。このように、順次、画像データ非可逆圧縮コア21への出力を繰り返す。   Next, the value of the instruction data corresponding to the pixel “002” of the first image data is also “1”. Therefore, the pixel “002” is also output to the image data lossy compression core 21. In this way, the output to the image data lossy compression core 21 is repeated sequentially.

図5において、第1画像データの画素「007」を処理する場合、指示データの値は「0」となる。ここで、指示データの値「0」は可逆圧縮を行うことを意味するため、画像データの画素「007」を「0x00」に置換して、画像データ非可逆圧縮コア21に出力する。   In FIG. 5, when the pixel “007” of the first image data is processed, the value of the instruction data is “0”. Here, since the value “0” of the instruction data means that lossless compression is performed, the pixel “007” of the image data is replaced with “0x00” and output to the image data lossy compression core 21.

このように置換処理を主走査方向の8画素、副走査方向における8ライン分の合計64画素分すなわち64回繰り返すと、図5の右側に示すような置換処理後のデータが非可逆圧縮コア21に転送される。   As described above, when the replacement process is repeated for a total of 64 pixels corresponding to 8 pixels in the main scanning direction and 8 lines in the sub-scanning direction, that is, 64 times, the data after the replacement process as shown on the right side of FIG. Forwarded to

なお、本実施形態では、処理を簡単にするため置換処理は「0x00」への単純置換としているが、実際には画質向上のために様々な方法が考えられる。   In this embodiment, the replacement process is simply replaced with “0x00” in order to simplify the process. However, various methods are conceivable for improving the image quality.

次に、図6を参照して置換処理後の結果を画像データ可逆圧縮コア22に出力する場合について説明する。図6は、本発明の実施形態を示すものであり、データ置換部28a、28bによって実行される置換処理を示す図である。   Next, a case where the result after the replacement process is output to the image data lossless compression core 22 will be described with reference to FIG. FIG. 6 shows an embodiment of the present invention, and is a diagram showing replacement processing executed by the data replacement units 28a and 28b.

ここでの置換処理の処理手順は図5と同様となる。つまり、主走査方向の8画素、副走査方向の8画素分の矩形領域を1ラインずつ処理する。具体的には、第1画像データの画素の番号が若い順に処理をする。   The processing procedure of the replacement process here is the same as that in FIG. That is, a rectangular area of 8 pixels in the main scanning direction and 8 pixels in the sub scanning direction is processed line by line. Specifically, processing is performed in ascending order of pixel numbers of the first image data.

ただし、置換処理後の結果を画像データ非可逆圧縮コア21に出力する場合と比較して以下の点で異なる。すなわち、指示データの値に対する置換処理が逆転する点である。より具体的には、指示データの値「1」は非可逆圧縮処理を行うことを意味する。このため、指示データの値が「1」に対応する第1画像データの画素を「0x00」に置換して画像データ可逆圧縮コア22に出力する。一方、指示データの値が「0」に対応する第1画像データの画素は可逆圧縮を行うことを意味するため、そのまま可逆圧縮コアへ出力する。   However, the result after the replacement processing is different from the case where the result is output to the image data lossy compression core 21 in the following points. That is, the replacement process for the value of the instruction data is reversed. More specifically, the value “1” of the instruction data means that irreversible compression processing is performed. Therefore, the pixel of the first image data corresponding to the value of the instruction data “1” is replaced with “0x00” and output to the image data lossless compression core 22. On the other hand, since the pixel of the first image data corresponding to the value of the instruction data “0” means that lossless compression is performed, it is output to the lossless compression core as it is.

ところで、SRAMリードコントローラ27a〜27cそれぞれは、同じ指示データを格納したSRAM25aと、第1画像データを格納したSRAM25bにアクセスするため、アービタ26によってSRAM25a、25bに対するアクセス制御の調停が行われる。   By the way, each of the SRAM read controllers 27a to 27c accesses the SRAM 25a storing the same instruction data and the SRAM 25b storing the first image data. Therefore, the arbiter 26 arbitrates access control for the SRAMs 25a and 25b.

以下において、図7を参照してアービタ26による調停処理について説明する。図7は、本発明の実施形態を示すものであり、アービタ26による調停処理のタイムチャートを示す図である。   Hereinafter, the arbitration process by the arbiter 26 will be described with reference to FIG. FIG. 7 shows an embodiment of the present invention and is a diagram showing a time chart of arbitration processing by the arbiter 26.

本実施の形態に係るSRAMリードコントローラ27a〜27cは、上記したように、各DMA部24a、24bからデータ取得完了通知を受信すると、SRAM25にデータを要求するために、リクエスト信号(「req1」、「req2」、「req3」)を、すべてHighアクティブにする。アービタ26はリクエストを発行しているSRAMリードコントローラ27a〜27cのうちから1つを選択し、アドレス有効信号(「avalid1」、「avalid2」、または「avalid3」)をアクティブにする。   As described above, when the SRAM read controllers 27a to 27c according to the present embodiment receive the data acquisition completion notification from the respective DMA units 24a and 24b, the SRAM read controllers 27a to 27c request the SRAM 25 for data by request signals (“req1”, “Req2” and “req3”) are all made high active. The arbiter 26 selects one of the SRAM read controllers 27a to 27c issuing the request and activates the address valid signal (“avalid1”, “avalid2”, or “avalid3”).

図7に示す実施形態では、置換処理後の画像データの出力先として画像データ可逆圧縮コア22が選択され、「avalid 1」がアクティブとなっているものとする。このように、「avalid 1」がアクティブ(High)となりSRAM25へのアクセス権を得たSRAMリードコントローラ27aは、次のクロック(「clock」)で出力しているアドレス(「address」)に対応するデータ(「data」)を取得することが可能となる。   In the embodiment illustrated in FIG. 7, it is assumed that the image data lossless compression core 22 is selected as the output destination of the image data after the replacement processing, and “avalid 1” is active. As described above, the SRAM read controller 27a having “avalid 1” becomes active (High) and obtains the right to access the SRAM 25 corresponds to the address (“address”) output at the next clock (“clock”). Data (“data”) can be acquired.

一方、SRAMリードコントローラ27a〜27cとSRAM25a、25bとの間におけるインタフェースを提供するSRAM I/Fは、アービタ26からSRAMリードコントロール選択信号を受信する。そして、このSRAMリードコントロール選択信号に応じて、各SRAMリードコントローラ27a〜27cから入力されるリクエスト信号を、SRAMチップセレクト信号(「CS」)に出力する。また、SRAM I/Fは、SRAMリードコントロール選択信号に応じて、各SRAMリードコントローラからのアドレス信号をSRAM25に出力する。   On the other hand, the SRAM I / F that provides an interface between the SRAM read controllers 27 a to 27 c and the SRAMs 25 a and 25 b receives the SRAM read control selection signal from the arbiter 26. In response to the SRAM read control selection signal, a request signal input from each of the SRAM read controllers 27a to 27c is output as an SRAM chip select signal (“CS”). The SRAM I / F outputs an address signal from each SRAM read controller to the SRAM 25 in response to the SRAM read control selection signal.

以上のようにして、本実施形態では、アービタ26による調停処理により、複数モジュール(SRAMリードコントローラ27a〜27c)からの同じSRAM25に対する時分割アクセスを実現することができる。ただし、SRAMのリードポートを3ポート備えた構成とすれば、このような時分割制御を省略することができる。   As described above, in the present embodiment, time-sharing access to the same SRAM 25 from a plurality of modules (SRAM read controllers 27a to 27c) can be realized by the arbitration process by the arbiter 26. However, such a time-sharing control can be omitted if the SRAM has a configuration having three read ports.

画像データおよび指示データが圧縮コアモジュールに対して転送されると、圧縮コアモジュールにおいて、圧縮処理(可逆圧縮処理または非可逆圧縮理)が行なわれる(S17)。   When the image data and the instruction data are transferred to the compression core module, compression processing (lossless compression processing or lossy compression) is performed in the compression core module (S17).

圧縮処理された画像データおよび指示データは、SRAMライトコントローラ29a〜29cによってSRAM25(SRAM25d〜25g)に格納される(S18)。   The compressed image data and instruction data are stored in the SRAM 25 (SRAMs 25d to 25g) by the SRAM write controllers 29a to 29c (S18).

また、本実施の形態に係る画像処理装置1では、3つの圧縮コアモジュールそれぞれは、圧縮処理が完了すると、圧縮モジュールDMA24(DMA部24d〜24g)に対して、その完了を示す完了通知を行うように構成されている。より具体的には、指示データ可逆圧縮コア23は、指示データの可逆圧縮処理が完了するたびにDMA部24dに完了通知を行う。画像データ可逆圧縮コア22は、画像データの可逆圧縮処理が完了するたびにDMA部24eに完了通知を行う。また、画像データ非可逆圧縮コア21は、画像データの非可逆圧縮が完了するたびにDMA部24fに完了通知を行う。   In the image processing apparatus 1 according to the present embodiment, when the compression processing is completed, each of the three compression core modules sends a completion notification indicating the completion to the compression module DMA 24 (DMA units 24d to 24g). It is configured as follows. More specifically, the instruction data lossless compression core 23 notifies the DMA unit 24d of completion every time the instruction data lossless compression processing is completed. The image data lossless compression core 22 notifies the DMA unit 24e of completion every time the image data lossless compression processing is completed. Further, the image data lossy compression core 21 notifies the DMA unit 24f of completion every time the lossy compression of image data is completed.

圧縮モジュールDMA24(DMA部24d〜24g)は、完了通知を受信したものから順に、SRAM25(SRAM25d〜25f)に格納された圧縮データ(第1圧縮データ〜第3圧縮データ)を、ステップS12において設定したデスティネーション(destination)動作設定に基づきDRAM3に対して書き込む(S19)。   In step S12, the compression module DMA24 (DMA units 24d to 24g) sets the compressed data (first compressed data to third compressed data) stored in the SRAM 25 (SRAMs 25d to 25f) in order from the one that received the completion notification. The data is written to the DRAM 3 based on the destination operation setting (S19).

DRAM3に格納されている指示データおよび第1画像データすべてに対して圧縮処理が完了するまで(ステップS20において「YES」と判定されるまで)、上記したステップS14からステップS19までの処理を繰り返す。   Until the compression process is completed for all the instruction data and the first image data stored in the DRAM 3 (until “YES” is determined in step S20), the processes from step S14 to step S19 are repeated.

ステップS20において「YES」と判定されると、圧縮モジュールDMA24(DMA部24d〜24f)は、CPU12に対して圧縮処理の終了通知を行う。   If “YES” is determined in step S20, the compression module DMA24 (DMA units 24d to 24f) notifies the CPU 12 of the end of the compression process.

以上のようにして、本実施の形態に係る画像処理装置1では、「第1画像データセットの圧縮処理」を実行する。   As described above, the image processing apparatus 1 according to the present embodiment executes the “compression processing of the first image data set”.

ところで、アービタ26によりSRAMリードコントローラ27a〜27cのSRAM25に対するアクセスは時分割制御されているが、指示データの可逆圧縮処理、画像データの可逆圧縮処理、ならびに画像データの非可逆圧縮処理それぞれは、実質的には並列して処理が進められる。   By the way, the access to the SRAM 25 of the SRAM read controllers 27a to 27c is time-division controlled by the arbiter 26. In practice, processing proceeds in parallel.

また、可逆圧縮、非可逆圧縮はそれぞれ圧縮方式が異なるため圧縮処理にかかる時間が異なる。このため、画像データ非可逆圧縮コア21により実行される処理と、画像データ可逆圧縮コア22、および指示データ可逆圧縮コア23により実行される処理とでは、終了タイミングが異なるものとなる。   Moreover, since the compression method differs between the lossless compression and the lossy compression, the time required for the compression processing differs. For this reason, the process executed by the image data lossy compression core 21 and the process executed by the image data lossless compression core 22 and the instruction data lossless compression core 23 have different end timings.

例えば、画像データ可逆圧縮コア22および指示データ可逆圧縮コア23それぞれの処理能力を75MB/s、画像データ非可逆圧縮コア21の処理能力を200MB/sと仮定すると、圧縮処理にかかる時間の関係は図8のように表される。図8では、塗りつぶされた1ブロックが、SRAMサイズ分の画像データ、指示データそれぞれに対する圧縮処理時間を示している。図8に示す例では、画像データ非可逆圧縮コア21は、画像データ可逆圧縮コア22または指示データ可逆圧縮コア23の半分以下の時間で圧縮処理が完了している。図8は、本発明の実施形態を示すものであり、指示データ可逆圧縮コア23、画像データ可逆圧縮コア22、画像データ非可逆圧縮コア21それぞれで第1画像データセットの圧縮処理を行った場合における処理時間の比較を示す図である。   For example, assuming that the processing capacity of each of the image data lossless compression core 22 and the instruction data lossless compression core 23 is 75 MB / s and the processing capacity of the image data lossy compression core 21 is 200 MB / s, the relationship between the time required for compression processing is as follows: It is expressed as in FIG. In FIG. 8, one filled block indicates the compression processing time for the image data and the instruction data for the SRAM size. In the example shown in FIG. 8, the image data lossy compression core 21 has completed the compression process in less than half the time of the image data lossless compression core 22 or the instruction data lossless compression core 23. FIG. 8 illustrates an embodiment of the present invention, in which the first image data set is compressed by the instruction data lossless compression core 23, the image data lossless compression core 22, and the image data lossy compression core 21, respectively. It is a figure which shows the comparison of the processing time in.

なお、上述したように、アービタ26によって、SRAMリードコントローラ27a〜27cそれぞれのSRAM25に対するアクセスタイミングが調整されている。しかしながら、SRAMリードコントローラ27a〜27cそれぞれのSRAM25に対するアクセスタイミングのタイムラグは、非常に小さい。このため、画像データ非可逆圧縮コア21、画像データ可逆圧縮コア22、指示データ可逆圧縮コア23それぞれで実行される圧縮処理は、それぞれほぼ同じタイミングで並列して実行されるものとしてみなすことができる。このため、図8では、SRAMサイズ分の指示データ、画像データに対する圧縮処理の開始はほぼ同時となるように表している。   As described above, the access timing for the SRAM 25 of each of the SRAM read controllers 27a to 27c is adjusted by the arbiter 26. However, the time lag of the access timing to the SRAM 25 of each of the SRAM read controllers 27a to 27c is very small. Therefore, the compression processing executed by the image data lossy compression core 21, the image data lossless compression core 22, and the instruction data lossless compression core 23 can be regarded as being executed in parallel at substantially the same timing. . For this reason, in FIG. 8, the start of compression processing for instruction data and image data corresponding to the SRAM size is shown to be almost simultaneous.

図8からも明らかなように、圧縮処理の処理速度が異なる場合、圧縮処理の処理速度が速い方は、圧縮処理の処理速度が遅い方の処理が完了するのを待たなければ、次のSRAMサイズ分の指示データ、画像データに対する圧縮処理を実行することができない。つまり、画像データ非可逆圧縮コア21が次の圧縮処理を開始するまでの間に待ち時間が発生している。   As can be seen from FIG. 8, when the processing speed of the compression processing is different, the next SRAM has the higher processing speed of the compression processing without waiting for the processing of the lower processing speed of the compression processing to be completed. It is impossible to execute compression processing for instruction data and image data corresponding to the size. That is, there is a waiting time until the image data lossy compression core 21 starts the next compression process.

ところで、本実施の形態に係る画像処理装置1は、上記したように、並列的に圧縮処理を行う2種類の画像データとして、第1画像データとその指示データとを含むデータ(第1画像データセット)に加えて、第2画像データがDRAM3に記憶されている。   By the way, as described above, the image processing apparatus 1 according to the present embodiment has data (first image data) including first image data and instruction data thereof as two types of image data to be subjected to compression processing in parallel. In addition to the set), the second image data is stored in the DRAM 3.

そこで、本実施の形態に係る画像処理装置1は、画像データ非可逆圧縮コア21において発生している上述の待ち時間を利用して、この第2画像データの圧縮処理を行うように構成されている。   Therefore, the image processing apparatus 1 according to the present embodiment is configured to perform compression processing of the second image data by using the above-described waiting time generated in the image data lossy compression core 21. Yes.

以下において、まず図9を参照して第2画像データの圧縮処理の処理フローを説明する。そして、画像データ非可逆圧縮コア21において実行される第1画像データおよび第2画像データの圧縮処理について説明する。   In the following, the processing flow of the compression processing of the second image data will be described first with reference to FIG. The compression processing of the first image data and the second image data executed in the image data lossy compression core 21 will be described.

(第2画像データの圧縮処理)
図9を参照すると、第2画像データの圧縮処理は以下のようになる。図9は、本発明の実施形態を示すものであり、圧縮モジュール13における圧縮処理の処理フローを示すフローチャートである。
(Second image data compression process)
Referring to FIG. 9, the compression process of the second image data is as follows. FIG. 9 shows an embodiment of the present invention and is a flowchart showing a processing flow of compression processing in the compression module 13.

まず、前提として、第2画像データについては、非可逆圧縮のみが行われるものとする。   First, as a premise, it is assumed that only the irreversible compression is performed on the second image data.

図9に示すように、CPU12は、DMA部(DMA部24c)のソース動作設定を行う(S31)。なお、このステップS31では、具体的には、CPU12は、DMA部24cが読み出すデータの格納位置を示すアドレスを指示する。例えば、CPU12は、DMA部24cに対し、第2画像データの格納アドレスをアドレス0x2000_0000として設定する。   As shown in FIG. 9, the CPU 12 performs source operation setting of the DMA unit (DMA unit 24c) (S31). In step S31, specifically, the CPU 12 instructs an address indicating a storage position of data read by the DMA unit 24c. For example, the CPU 12 sets the storage address of the second image data as the address 0x2000_0000 for the DMA unit 24c.

次に、CPU12は、DMA部24gのデスティネーション(destination)動作設定を行う(S32)。より具体的には、CPU12は、DMA部24gに対し、非可逆圧縮後の画像データ(第4圧縮データ)を、開始アドレス0x6000_0000に格納するように設定する。   Next, the CPU 12 performs destination operation setting of the DMA unit 24g (S32). More specifically, the CPU 12 sets the DMA unit 24g to store the image data after the lossy compression (fourth compressed data) at the start address 0x6000_0000.

以上のようにソース動作設定およびデスティネーション動作設定が完了すると、CPU12は、圧縮モジュールDMA24を起動させる(S33)。CPU12により圧縮モジュールDMA24に対して起動指示がなされると、DMA部(本実施形態ではDMA部24c)は、DRAM3に対してデータを要求する。   When the source operation setting and the destination operation setting are completed as described above, the CPU 12 activates the compression module DMA24 (S33). When the activation instruction is given to the compression module DMA 24 by the CPU 12, the DMA unit (the DMA unit 24 c in this embodiment) requests data from the DRAM 3.

まず、DMA部24cは、第2画像データをDRAM3からSRAMのデータサイズ分だけ読み出す。そして、読み出したデータをSRAM25に格納する(S34)。   First, the DMA unit 24c reads the second image data from the DRAM 3 by the data size of the SRAM. Then, the read data is stored in the SRAM 25 (S34).

具体的には、上述した図4と同様にして、DRAM3から読み出されたデータがSRAM25に読み出される。   Specifically, the data read from the DRAM 3 is read to the SRAM 25 in the same manner as in FIG.

DRAM3から第2画像データの取得が完了すると、すなわち第2画像データのSRAMデータサイズ分の読み出しが完了すると、圧縮モジュールDMA24は、SRAMリードコントローラ27cに対して、データ取得完了を通知する。   When the acquisition of the second image data from the DRAM 3 is completed, that is, when the reading of the second image data for the SRAM data size is completed, the compression module DMA24 notifies the SRAM read controller 27c of the completion of data acquisition.

この通知を受信すると、SRAMリードコントローラ27cは、第2画像データの読み込み処理を開始する。そして、SRAMリードコントローラ27cは、CPU12からの指示に応じて、データ置換部28a、28bによる置換処理を省略して、読み出した第2画像データをアービタ26の調停結果に従って圧縮コアモジュール(画像データ非可逆圧縮コア21)に転送する(S35)。   Upon receiving this notification, the SRAM read controller 27c starts the second image data reading process. Then, the SRAM read controller 27 c omits the replacement process by the data replacement units 28 a and 28 b in accordance with an instruction from the CPU 12, and compresses the read second image data according to the arbitration result of the arbiter 26 (image data non-data). Transfer to the lossless compression core 21) (S35).

第2画像データが圧縮コアモジュール(画像データ非可逆圧縮コア21)に対して転送されると、この圧縮コアモジュールにおいて、圧縮処理(非可逆圧縮理)が行なわれる(S36)。   When the second image data is transferred to the compression core module (image data lossy compression core 21), compression processing (irreversible compression) is performed in the compression core module (S36).

圧縮処理された第2画像データは、SRAMライトコントローラ29cによってSRAM25gに格納される(S37)。   The compressed second image data is stored in the SRAM 25g by the SRAM write controller 29c (S37).

また、画像データ非可逆圧縮コア21は、画像データの非可逆圧縮が完了するたびにDMA部24fに完了通知を行う。   Further, the image data lossy compression core 21 notifies the DMA unit 24f of completion every time the lossy compression of image data is completed.

圧縮モジュールDMA24(DMA部24g)は、完了通知を受信するとSRAM25gに格納された圧縮データ(第4圧縮データ)を、ステップS12において設定したデスティネーション(destination)動作設定に基づきDRAM3に対して書き込む(S38)。   When receiving the completion notification, the compression module DMA24 (DMA unit 24g) writes the compressed data (fourth compressed data) stored in the SRAM 25g to the DRAM 3 based on the destination operation setting set in step S12 ( S38).

DRAM3に格納されている第2画像データすべてに対して圧縮処理が完了するまで(ステップS39において「YES」と判定されるまで)、上記したステップS34からステップS38までの処理を繰り返す。   Until the compression process is completed for all the second image data stored in the DRAM 3 (until “YES” is determined in step S39), the processes from step S34 to step S38 are repeated.

ステップS39において「YES」と判定されると、圧縮モジュールDMA24(DMA部24g)は、CPU12に対して圧縮処理の終了通知を行う。   If “YES” is determined in the step S39, the compression module DMA24 (DMA unit 24g) notifies the CPU 12 of the end of the compression process.

以上のようにして、本実施の形態に係る画像処理装置1では、「第2画像データセットの圧縮処理」を実行する。   As described above, in the image processing apparatus 1 according to the present embodiment, the “compression processing of the second image data set” is executed.

以上のように、「第2画像データの圧縮処理」は、図3に示す、上記した「第1画像データセットの圧縮処理」と比較して、指示データをDRAM3から読み出すステップ(S15)が無い点を除きほぼ同様な処理を行う。   As described above, the “second image data compression process” does not include the step of reading the instruction data from the DRAM 3 (S15) as compared to the “first image data set compression process” shown in FIG. Except for this point, the same processing is performed.

本実施形態では、説明の便宜上、「第1画像データセットの圧縮処理」と「第2画像データセットの圧縮処理」とを別々に説明したが、画像処理装置1では、両者の処理を並列して行っている。特に、上述したように、本実施の形態に係る画像処理装置1では、画像データ非可逆圧縮コア21において発生する、第1画像データの圧縮処理後の待ち時間を利用して、第2画像データの圧縮処理を行う構成である。このため、画像データ非可逆圧縮コア21の利用にはハードウェア的に工夫が必要となる。   In the present embodiment, for convenience of explanation, the “compression processing of the first image data set” and the “compression processing of the second image data set” have been described separately. However, in the image processing apparatus 1, both processes are performed in parallel. Is going. In particular, as described above, the image processing apparatus 1 according to the present embodiment uses the waiting time after the compression processing of the first image data that occurs in the image data lossy compression core 21 to generate the second image data. The compression process is performed. For this reason, the use of the image data lossy compression core 21 requires hardware ingenuity.

以下において、第1画像データセットおよび第2画像データの画像データ非可逆圧縮コア21における並列処理について説明する。   Hereinafter, parallel processing in the image data irreversible compression core 21 of the first image data set and the second image data will be described.

(画像データ非可逆圧縮コアにおける並列処理)
本実施の形態に係る画像処理装置1では、前提として、第2画像データよりも第1画像データセットに対する圧縮処理が優先されるように設定されているものとする。
(Parallel processing in image data lossy compression core)
In the image processing apparatus 1 according to the present embodiment, as a premise, it is assumed that the compression processing for the first image data set is prioritized over the second image data.

まず、SRAMリードコントローラ27cは第1画像データセットのデータ転送を行うDMA部24a、24bと、第2画像データのデータ転送を行うDMA部24cとからそれぞれデータの読み込み完了通知を受信するように構成されている。   First, the SRAM read controller 27c is configured to receive data read completion notifications from the DMA units 24a and 24b that perform data transfer of the first image data set and the DMA unit 24c that performs data transfer of the second image data, respectively. Has been.

ここで、第1画像データ1セットを優先して圧縮処理する必要があるため、DMA部24a〜24cそれぞれからデータの読み込み完了通知を受信している場合、SRAMリードコントローラ27cは第1画像データセットのデータ転送を優先させる。   Here, since it is necessary to preferentially compress the first image data set, when the data read completion notification is received from each of the DMA units 24a to 24c, the SRAM read controller 27c performs the first image data set. Give priority to data transfer.

なお、DMA部24cのみからデータの読み込み完了通知を受信した場合、第1画像データセットが完全にSRAM25に格納されていない状態であると判定される、このため、この場合ではSRAMリードコントローラ27cは優先度の低い第2画像データのデータ転送を行う。   When the data read completion notification is received from only the DMA unit 24c, it is determined that the first image data set is not completely stored in the SRAM 25. Therefore, in this case, the SRAM read controller 27c Data transfer of the second image data having a low priority is performed.

また、SRAM25a、25b内に格納された指示データおよび第1画像データの、圧縮コアモジュールへの転送が完了した直後において、処理すべき第2画像データがSRAM25c内に存在し、かつDMA部24cから読み込み完了通知を受信している場合、SRAMリードコントローラ27cは第2画像データの転送を行う。   Further, immediately after the transfer of the instruction data and the first image data stored in the SRAMs 25a and 25b to the compression core module is completed, the second image data to be processed exists in the SRAM 25c, and from the DMA unit 24c. When the read completion notification is received, the SRAM read controller 27c transfers the second image data.

これら2つの条件を満たす場合以外は、DMA部24cから読み込み完了通知を受信している場合であっても、SRAMリードコントローラ27cは第1画像データセットを優先的に転送する。   Except when these two conditions are satisfied, the SRAM read controller 27c preferentially transfers the first image data set even when the reading completion notification is received from the DMA unit 24c.

このように、上記した2つの条件を満たす場合以外では、第1画像データセットを優先的に転送するように構成されているため、本実施の形態に係る画像処理装置1は、所望されるパフォーマンスを守ることができる。   As described above, since the first image data set is preferentially transferred except when the above two conditions are satisfied, the image processing apparatus 1 according to the present embodiment has a desired performance. Can be protected.

すなわち、SRAMリードコントローラ27cは、予め設定されている優先度に従って、第1画像データセットまたは第2画像データを画像データ非可逆圧縮コア21に送信することができる。   That is, the SRAM read controller 27c can transmit the first image data set or the second image data to the image data lossy compression core 21 according to a preset priority.

このため、第1画像データセットに対する処理について時間制約がある場合、該第1画像データセットに対する処理を優先することができる。なお、時間制約がある処理とは、例えば、第1画像データセットが、当該画像処理装置1において提示されているカタログスペックを守らなければならないコピージョブなどである。   For this reason, when there is a time constraint on the process for the first image data set, the process for the first image data set can be prioritized. Note that the time-constrained process is, for example, a copy job in which the first image data set must comply with the catalog specifications presented in the image processing apparatus 1.

上記では第1画像データセットを第2画像データよりも優先して圧縮処理を行う場合について説明した。しかしながら、第1画像データセットよりも第2画像データを優先して圧縮処理を行う場合も、優先度を切り替えるだけで同様に処理することができる。つまり、第2画像データを優先処理するように設定されている場合、SRAMリードコントローラ27cは、DMA部24a、24bとDMA部24cとからの読み込み完了通知について優先関係を逆転して解釈することとなる。   In the above description, the first image data set is prioritized over the second image data for the compression process. However, when compression processing is performed with priority given to the second image data over the first image data set, the same processing can be performed only by switching the priority. That is, when the second image data is set to be preferentially processed, the SRAM read controller 27c interprets the read completion notification from the DMA units 24a and 24b and the DMA unit 24c by reversing the priority relationship. Become.

また、画像データ非可逆圧縮コア21には、第1画像データセットと第2画像データとの異なる種類の画像データが入力される。このため、SRAMリードコントローラ27cは、画像データ非可逆圧縮コア21に対して画像データを供給する際には、どちらの画像データを転送中なのかを示す必要がある。SRAMリードコントローラ27cは、図10に示すように、画像データ非可逆圧縮コア21に対して出力する信号中にimage number信号(送信データ指示信号)を含めることによって、どちらの画像データを転送中なのか示すことができる。   The image data lossy compression core 21 receives different types of image data of the first image data set and the second image data. For this reason, when supplying image data to the image data lossy compression core 21, the SRAM read controller 27 c needs to indicate which image data is being transferred. As shown in FIG. 10, the SRAM read controller 27 c includes the image number signal (transmission data instruction signal) in the signal output to the image data lossy compression core 21, which image data is being transferred. Can indicate.

より具体的には、画像データ非可逆圧縮コア21に対して画像データが転送される際、画像データ非可逆圧縮コア21は、image number信号を含む図10に示す信号の入力を受ける。図10は、画像データ非可逆圧縮コア21が画像データを受信する際の信号波形を示す図である。   More specifically, when image data is transferred to the image data irreversible compression core 21, the image data irreversible compression core 21 receives a signal shown in FIG. 10 including an image number signal. FIG. 10 is a diagram showing signal waveforms when the image data lossy compression core 21 receives image data.

図10に示すように、image valid信号が「High」の時、image dataは有効な画像データとして画像データ非可逆圧縮コア21に対して供給される。このとき、同時にimage number信号も画像データ非可逆圧縮コア21に対して示すことにより、供給される画像データが第1画像データであるのか、あるいは第2画像データであるのか区別することができる。図10に示す例では、image number信号が「High」の時、第1画像データの供給を受けており、「Low」の時、第2画像データの供給を受けていると画像データ非可逆圧縮コア21は認識する。   As shown in FIG. 10, when the image valid signal is “High”, the image data is supplied to the image data lossy compression core 21 as valid image data. At this time, by simultaneously displaying the image number signal to the image data lossy compression core 21, it is possible to distinguish whether the supplied image data is the first image data or the second image data. In the example shown in FIG. 10, when the image number signal is “High”, the first image data is supplied. When the image number signal is “Low”, the second image data is supplied. The core 21 recognizes.

また、画像データ非可逆圧縮コア21はimage number信号によって示された2種類の画像データが、図11に示すようにランダムに入力されることから、それぞれの画像データに応じた圧縮処理を時分割的に実現する必要がある。そして、画像データ非可逆圧縮コア21は2種類の画像データを時分割で圧縮処理するために、レジスタ設定セットを2つ有する必要がある。なお、図11は、本発明の実施形態を示すものであり、2種類の画像データを時分割で圧縮処理した場合の処理状態の一例を示す図である。   Further, since the image data lossy compression core 21 receives two types of image data indicated by the image number signal at random as shown in FIG. 11, the compression processing corresponding to each image data is time-divisionally performed. Must be realized. The image data lossy compression core 21 needs to have two register setting sets in order to compress two types of image data in a time division manner. FIG. 11 illustrates an embodiment of the present invention, and is a diagram illustrating an example of a processing state when two types of image data are compressed in a time division manner.

そこで、本実施の形態に係る画像データ非可逆圧縮コア21は、図12に示すように、圧縮コア31と、2種類のレジスタセット(第1レジスタセット33a、第2レジスタセット33b)を有するレジスタ32とを備えた構成とする。図12は、本発明の実施形態を示すものであり、画像データ非可逆圧縮コア21の要部構成を示すブロック図である。   Therefore, as shown in FIG. 12, the image data lossy compression core 21 according to the present embodiment has a compression core 31 and a register having two types of register sets (a first register set 33a and a second register set 33b). 32. FIG. 12 shows an embodiment of the present invention, and is a block diagram showing a main configuration of the image data lossy compression core 21.

第1レジスタセット(第1データ処理情報)33aおよび第2レジスタセット(第2データ処理情報)33bには、第1画像データおよび第2画像データそれそれに応じた圧縮処理を実行するためのレジスタ設定セットが記録されている。例えば非可逆圧縮方式がJPEGの場合、このレジスタ設定セットとしては、画素サンプリング設定、量子化テーブル設定、ハフマンテーブル設定などが挙げられる。   In the first register set (first data processing information) 33a and the second register set (second data processing information) 33b, register settings for executing compression processing corresponding to the first image data and the second image data are provided. A set is recorded. For example, when the lossy compression method is JPEG, examples of the register setting set include pixel sampling setting, quantization table setting, and Huffman table setting.

なお、このレジスタ32における第1レジスタセット33aおよび第2レジスタセット33bは、レジスタI/F34を介してCPU12によって設定される。   The first register set 33a and the second register set 33b in the register 32 are set by the CPU 12 via the register I / F 34.

圧縮コア31は、画像データ非可逆圧縮コア21の中核となる部分であり、画像データを非可逆圧縮するために演算処理するものである。圧縮コア31は、image number信号に応じて、レジスタ32における第1レジスタセット33aまたは第2レジスタセット33bいずれかを選択する。そして、レジスタ32から、選択した第1レジスタセット33aまたは第2レジスタセット33bのレジスタ設定の供給を受け、第1画像データまたは第2画像データの非可逆圧縮処理を実行する。   The compression core 31 is a core part of the image data irreversible compression core 21 and performs arithmetic processing for irreversibly compressing the image data. The compression core 31 selects either the first register set 33a or the second register set 33b in the register 32 according to the image number signal. Then, the register setting of the selected first register set 33a or second register set 33b is received from the register 32, and irreversible compression processing of the first image data or the second image data is executed.

圧縮コア31は、非可逆圧縮処理後の圧縮データ(第3圧縮データまたは第4圧縮データ)をSRAMライトコントローラ29cに渡してSRAM25fまたはSRAM25gに格納させる。   The compression core 31 passes the compressed data (third compressed data or fourth compressed data) after the irreversible compression processing to the SRAM write controller 29c and stores it in the SRAM 25f or the SRAM 25g.

この圧縮データの転送においても、画像データ非可逆圧縮コア21は、SRAMライトコントローラ29cに対して圧縮データが第1画像データの圧縮データ(第3圧縮データ)であるのか、第2画像データの圧縮データ(第4圧縮データ)であるのか示す必要がある。そこで、圧縮コア31は、圧縮データを出力する際、SRAMリードコントローラ27cから第1画像データまたは第2画像データを受信するときと同様の、image number信号を含む信号をSRAMライトコントローラ29cに出力する。   Also in the transfer of the compressed data, the image data lossy compression core 21 determines whether the compressed data is the compressed data of the first image data (third compressed data) or the compressed second image data with respect to the SRAM write controller 29c. It is necessary to indicate whether it is data (fourth compressed data). Therefore, when outputting the compressed data, the compression core 31 outputs a signal including the image number signal to the SRAM write controller 29c, which is the same as when receiving the first image data or the second image data from the SRAM read controller 27c. .

SRAMライトコントローラ29cは、このimage number信号に応じて、転送する圧縮データが第3圧縮データであるのか、あるいは第4圧縮データであるのか判定する。そして、SRAMライトコントローラ29cは、する圧縮データが第3圧縮データであると判定した場合、SRAM25fに、第4圧縮データであると判定した場合、SRAM25gにそれぞれ格納する。   The SRAM write controller 29c determines whether the compressed data to be transferred is the third compressed data or the fourth compressed data according to the image number signal. When the SRAM write controller 29c determines that the compressed data to be compressed is the third compressed data, the SRAM write controller 29c stores it in the SRAM 25f.

SRAM25fに格された第3圧縮データは、DMA部24fによってDRAM3の所定の位置に格納される。また、SRAM25gに格納された第4圧縮データは、DMA部24gによってDRAM3の所定の位置に格納される。   The third compressed data stored in the SRAM 25f is stored at a predetermined position in the DRAM 3 by the DMA unit 24f. The fourth compressed data stored in the SRAM 25g is stored at a predetermined position in the DRAM 3 by the DMA unit 24g.

以上の構成により、2種類の画像データに対する圧縮処理を、画像データ非可逆圧縮コア21において、並列的に処理することができる。この結果、画像データ非可逆圧縮コア21は図8に示した待ち時間の間に第2画像データの圧縮処理を実施することができるため、画像データに対する圧縮処理の効率化を図ることができる。   With the above configuration, compression processing for two types of image data can be performed in parallel in the image data lossy compression core 21. As a result, the image data irreversible compression core 21 can perform the compression process of the second image data during the waiting time shown in FIG. 8, so that the efficiency of the compression process for the image data can be improved.

なお、上記では、画像データを圧縮する圧縮処理を例に挙げて説明したが、これに限定されるものではなく、逆に圧縮された画像データの伸張処理でも同様に実現できる。すなわち、圧縮された画像データの伸張処理においても、可逆圧縮された画像データを伸張する場合と、非可逆圧縮された画像データを伸張する場合とでは同様に処理能力に差が出る。このため、圧縮された画像データの伸張処理の場合であっても、上記した圧縮処理と同様に、伸張処理の待ち時間に異なる種類の画像データの伸張処理を行うことで、処理効率を向上させることができる。   In the above description, the compression process for compressing image data has been described as an example. However, the present invention is not limited to this, and can be similarly realized by a decompression process for compressed image data. That is, in the decompression processing of the compressed image data, there is a difference in processing capability between the case of decompressing the lossless compressed image data and the case of decompressing the lossy compressed image data. For this reason, even in the case of decompression processing of compressed image data, processing efficiency is improved by performing different types of image data decompression processing during the decompression processing waiting time, as in the above-described compression processing. be able to.

また、上記では画像データ可逆圧縮コア22と画像データ非可逆圧縮コア21との間において処理能力に差がある場合について説明した。しかしながら、例えば、同じ可逆圧縮または非可逆圧縮同士であっても、圧縮モジュールの処理能力に差がある場合には同様に、処理能力が高い方に生じる待ち時間に異なる種類の画像データの圧縮処理を行うことで処理効率を向上させることができる。   Further, the case where there is a difference in processing capability between the image data lossless compression core 22 and the image data lossy compression core 21 has been described above. However, for example, even when the same lossless compression or lossy compression is used, if there is a difference in the processing capability of the compression module, similarly, compression processing of different types of image data in the waiting time that occurs in the higher processing capability It is possible to improve the processing efficiency.

以上のように、本実施の形態に係る画像処理装置1は、画像データを圧縮する画像データ可逆圧縮コア22と、該画像データ可逆圧縮コア22とは画像データの圧縮方式が異なるとともに、圧縮処理時間が小さい画像データ非可逆圧縮コア21を備える。さらに、画像処理装置1は、第1画像データセットを、該第1画像データを構成する領域の特性に応じて、画像データ可逆圧縮コア22によって圧縮する第1領域部分と、画像データ非可逆圧縮コア21によって圧縮する第2領域部分とに分離するCPU12も備えている。そして、画像処理装置1では、画像データ可逆圧縮コア22により第1領域部分が圧縮されている間に、第2領域部分と第1画像データとは異なる第2画像データとを圧縮するように構成されている。   As described above, in the image processing apparatus 1 according to the present embodiment, the image data lossless compression core 22 that compresses image data and the image data lossless compression core 22 have different image data compression methods and compression processing. The image data lossy compression core 21 is provided with a small time. Furthermore, the image processing apparatus 1 includes a first region portion that compresses the first image data set by the image data lossless compression core 22 according to the characteristics of the regions that constitute the first image data, and image data lossy compression. A CPU 12 is also provided that is separated into a second region portion to be compressed by the core 21. The image processing apparatus 1 is configured to compress the second area portion and the second image data different from the first image data while the first area portion is compressed by the image data lossless compression core 22. Has been.

このため、本実施の形態に係る画像処理装置1は、DRAM3に記憶している第1画像データセットおよび第2画像データに対して効率よく圧縮処理を実行することができる。   For this reason, the image processing apparatus 1 according to the present embodiment can efficiently perform compression processing on the first image data set and the second image data stored in the DRAM 3.

本発明は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。   The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope shown in the claims. That is, embodiments obtained by combining technical means appropriately modified within the scope of the claims are also included in the technical scope of the present invention.

本実施の形態に係る画像処理装置1は、処理速度が遅い圧縮コアモジュールで圧縮処理している間に、処理速度が速い、別の圧縮コアモジュールで複数種類の画像データに対する圧縮処理を行うことができる。このため、異なる処理性能(処理速度)を有する2以上の圧縮コアモジュールを備える装置において幅広く適用できる。   The image processing apparatus 1 according to the present embodiment performs compression processing on a plurality of types of image data with another compression core module having a high processing speed while performing compression processing with the compression core module having a low processing speed. Can do. Therefore, the present invention can be widely applied to apparatuses including two or more compression core modules having different processing performance (processing speed).

1 画像処理装置
3 DRAM(記憶部)
12 CPU(分離部)
13 圧縮モジュール
17 指示データ生成部
21 画像データ非可逆圧縮コア(第2データ処理部)
22 画像データ可逆圧縮コア(第1データ処理部)
23 指示データ可逆圧縮コア
24 圧縮モジュールDMA(転送部)
24a〜24c DMA部(転送部)
25 SRAM(転送部)
25a〜25c SRAM(転送部)
26 アービタ(転送部)
27a〜27c SRAMリードコントローラ(転送部)
32 レジスタ
33a 第1レジスタセット(第1データ処理情報)
33b 第2レジスタセット(第2データ処理情報)
1 Image processing device 3 DRAM (storage unit)
12 CPU (separator)
13 Compression module 17 Instruction data generation unit 21 Image data lossy compression core (second data processing unit)
22 Image data lossless compression core (first data processing unit)
23 Instruction data lossless compression core 24 Compression module DMA (transfer unit)
24a to 24c DMA unit (transfer unit)
25 SRAM (transfer unit)
25a-25c SRAM (transfer unit)
26 Arbiter (transfer section)
27a to 27c SRAM read controller (transfer unit)
32 register 33a first register set (first data processing information)
33b Second register set (second data processing information)

Claims (5)

画像データの圧縮および圧縮された画像データの伸張のうち少なくともいずれか1つの処理を含む画像データ処理を行う第1データ処理部と、この第1データ処理部とは画像データ処理の処理方式が異なるとともに、該画像データ処理にかかる処理時間が該第1データ処理部よりも小さい第2データ処理部とを有する画像処理装置であって、
上記画像データ処理を行う画像データとして、異なる特性の領域を含む第1画像データと、該第1画像データとは異なる第2画像データとを記憶する記憶部と、
上記記憶部に記憶された第1画像データを、該第1画像データを構成する領域の特性に応じて、上記第1データ処理部によって画像データ処理を行う領域である第1領域部分と、上記第2データ処理部によって画像データ処理を行う領域である第2領域部分とに分離する分離部と、を備え、
上記第1データ処理部が第1領域部分の画像データ処理を行っている間に、上記第2データ処理部は、上記第2領域部分と上記第2画像データとを上記記憶部から読み出し、画像データ処理を行うことを特徴とする画像処理装置。
The first data processing unit that performs image data processing including at least one of compression of image data and decompression of compressed image data differs from the first data processing unit in the processing method of image data processing. And an image processing apparatus having a second data processing unit having a processing time required for the image data processing smaller than that of the first data processing unit,
As image data for performing the image data processing, a storage unit for storing first image data including regions having different characteristics and second image data different from the first image data;
The first image data stored in the storage unit is divided into a first region portion that is a region where image data processing is performed by the first data processing unit according to the characteristics of the region constituting the first image data, and A separation unit that separates the second data processing unit into a second region that is a region where image data processing is performed by the second data processing unit
While the first data processing unit is performing image data processing of the first region portion, the second data processing unit reads the second region portion and the second image data from the storage unit, and An image processing apparatus that performs data processing.
上記第1領域部分と上記第2画像データとにおいて上記画像データ処理を行う優先度が設定されており、
上記第2領域部分および第2画像データそれぞれを上記記憶部から読み出し、上記第2データ処理部に転送する転送部を備え、
上記転送部は、上記優先度に従って上記第2領域部分または第2画像データを上記第2データ処理部に転送することを特徴とする請求項1に記載の画像処理装置。
Priorities for performing the image data processing are set in the first area portion and the second image data,
A transfer unit that reads each of the second region portion and the second image data from the storage unit and transfers the read data to the second data processing unit;
The image processing apparatus according to claim 1, wherein the transfer unit transfers the second region portion or the second image data to the second data processing unit according to the priority.
上記転送部は、上記第2領域部分または第2画像データのいずれかの画像データを、上記第2データ処理部に転送する際、転送する画像データが第2領域部分または第2画像データのいずれであるかを示す送信データ指示信号を出力しており、
上記第2データ処理部は、上記送信データ指示信号に基づき、転送されたデータが第2領域部分であるのか、または第2画像データであるのか判定し、転送されたデータに応じた画像データ処理を実行することを特徴とする請求項2に記載の画像処理装置。
When transferring the image data of either the second region portion or the second image data to the second data processing unit, the transfer unit transfers either the second region portion or the second image data. A transmission data instruction signal indicating whether or not
The second data processing unit determines whether the transferred data is the second area portion or the second image data based on the transmission data instruction signal, and performs image data processing according to the transferred data The image processing apparatus according to claim 2, wherein:
上記第2データ処理部は、上記第2領域部分の画像データ処理を実行するための情報である第1データ処理情報と、上記第2画像データの画像データ処理を実行するための情報である第2データ処理情報とを保持しており、
上記送信データ指示信号に基づき、上記第1データ処理情報または上記第2データ処理情報のいずれかを選択して、転送されたデータに応じた画像データ処理を実行することを特徴とする請求項3に記載の画像処理装置。
The second data processing unit is first data processing information that is information for executing image data processing of the second region portion, and information that is information for executing image data processing of the second image data. 2 data processing information,
4. The image data processing corresponding to the transferred data is executed by selecting either the first data processing information or the second data processing information based on the transmission data instruction signal. An image processing apparatus according to 1.
画像データの圧縮および圧縮された画像データの伸張のうち少なくともいずれか1つの処理を含む画像データ処理を行う第1データ処理部と、この第1データ処理部とは画像データ処理の処理方式が異なるとともに、該画像データ処理にかかる処理時間が該第1データ処理部よりも小さい第2データ処理部とを有する画像処理装置の制御方法であって、
上記画像処理装置は、上記画像データ処理を行う画像データとして、異なる特性の領域を含む第1画像データと、該第1画像データとは異なる第2画像データとを記憶する記憶部をさらに備えており、
上記記憶部に記憶された第1画像データを、該第1画像データを構成する領域の特性に応じて、上記第1データ処理部によって画像データ処理を行う領域である第1領域部分と、上記第2データ処理部によって画像データ処理を行う領域である第2領域部分とに分離する分離ステップと、
上記第1データ処理部が第1領域部分の画像データ処理を行っている間に、上記第2データ処理部は、上記第2領域部分と上記第2画像データとを上記記憶部から読み出し、画像データ処理を行う画像データ処理ステップとを含むことを特徴とする画像処理装置の制御方法。
The first data processing unit that performs image data processing including at least one of compression of image data and decompression of compressed image data differs from the first data processing unit in the processing method of image data processing. And a control method for an image processing apparatus having a second data processing unit having a processing time required for the image data processing smaller than that of the first data processing unit,
The image processing apparatus further includes a storage unit that stores first image data including regions having different characteristics and second image data different from the first image data as image data to be subjected to the image data processing. And
The first image data stored in the storage unit is divided into a first region portion that is a region where image data processing is performed by the first data processing unit according to the characteristics of the region constituting the first image data, and A separation step of separating into a second region portion that is a region where image data processing is performed by the second data processing unit;
While the first data processing unit is performing image data processing of the first region portion, the second data processing unit reads the second region portion and the second image data from the storage unit, and A control method for an image processing apparatus, comprising: an image data processing step for performing data processing.
JP2010114100A 2010-05-18 2010-05-18 Image processing apparatus and image processing apparatus control method Active JP5587029B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010114100A JP5587029B2 (en) 2010-05-18 2010-05-18 Image processing apparatus and image processing apparatus control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010114100A JP5587029B2 (en) 2010-05-18 2010-05-18 Image processing apparatus and image processing apparatus control method

Publications (2)

Publication Number Publication Date
JP2011244178A true JP2011244178A (en) 2011-12-01
JP5587029B2 JP5587029B2 (en) 2014-09-10

Family

ID=45410386

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010114100A Active JP5587029B2 (en) 2010-05-18 2010-05-18 Image processing apparatus and image processing apparatus control method

Country Status (1)

Country Link
JP (1) JP5587029B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007129456A (en) * 2005-11-02 2007-05-24 Sharp Corp Image encoder, encoding method and program, and recording medium
JP2009225422A (en) * 2008-02-19 2009-10-01 Canon Inc Image encoding apparatus, image processing apparatus, and control method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007129456A (en) * 2005-11-02 2007-05-24 Sharp Corp Image encoder, encoding method and program, and recording medium
JP2009225422A (en) * 2008-02-19 2009-10-01 Canon Inc Image encoding apparatus, image processing apparatus, and control method thereof

Also Published As

Publication number Publication date
JP5587029B2 (en) 2014-09-10

Similar Documents

Publication Publication Date Title
JP4991816B2 (en) Image processing device
US8189227B2 (en) Image forming apparatus, image forming method, and computer-readable recording medium storing image forming program
US8392630B2 (en) Information processing apparatus having first DMA controller and second DMA controller wherein selection circuit determines which DMA will perform data transfer based on higher data transfer performance
JP3920168B2 (en) Image forming apparatus, control method therefor, image forming system, and recording medium
JP5587029B2 (en) Image processing apparatus and image processing apparatus control method
JP5928505B2 (en) Image processing apparatus, image processing method and image processing program in the same
US8582153B2 (en) Image forming apparatus and method
US9667531B2 (en) Image processing apparatus and control method
US10977531B1 (en) Image processing apparatus, image forming apparatus, and image processing method for improving performance of reading data of RIP process
JP5915670B2 (en) Image processing apparatus, image processing method and image processing program in the same
JP4034323B2 (en) Image data processing method, image data processing apparatus, and image forming apparatus
JP4781327B2 (en) Image processing apparatus and image processing method
JP6331735B2 (en) Image processing apparatus and image processing apparatus control method
JP2015084507A (en) Image processing apparatus, integrated circuit, and image forming apparatus
JPH10208031A (en) Image processor
JP7081477B2 (en) Image processing device, control method of image processing device, and program
JP2005323406A (en) Image processing apparatus, image processing method, program for computer to execute the method, and computer readable recording medium with the program recorded thereon
JP3912372B2 (en) Color image processing device
JP2000148576A (en) File management system
JP5494055B2 (en) Image forming apparatus, control method, program, and recording medium
JP2013016005A (en) Information processing device, control method therefor, and control program
JP2008171200A (en) Image processor, image processing method, program, and computer readable storage medium
JPH07264370A (en) Image formation and storage device
JP2001177682A (en) Image processor
JP2000165576A (en) Digital image copying system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130401

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140312

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140415

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140515

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140624

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140723

R150 Certificate of patent or registration of utility model

Ref document number: 5587029

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150