JP2011244178A - Image processor and control method of image processor - Google Patents
Image processor and control method of image processor Download PDFInfo
- 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
Links
Images
Landscapes
- Storing Facsimile Image Data (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
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,
しかしながら、上述のような従来技術は、画像データに対して効率よくデータ量削減処理を行うことができないという問題が生じる。 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
そこで、メインメモリに対するアクセス数を低減させるために、所定数の画素単位で画像データを読み出し、該画像データに対して非可逆圧縮処理および可逆圧縮処理の両者を行う構成を想定することができる。つまり、可逆圧縮および非可逆圧縮を行う際に行うメインメモリに対するアクセスを共通化する構成とすることが考えられる。 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ないし図12に基づいて説明すると以下の通りである。すなわち、本実施の形態に係る画像処理装置1は、画像データから写真領域や文字領域など特徴領域(特性の領域)を判定し、特徴領域に応じて可逆圧縮または非可逆圧縮(画像データ処理)を行うものである。画像処理装置1は、例えば、複写機、プリンタ、スキャナ、ファクシミリ、あるいはこれらを統合したデジタル複合機などにより実現できる。
An embodiment of the present invention will be described below with reference to FIGS. That is, the
まず、図1を参照して画像処理装置1における圧縮処理に係る構成について説明する。図1は、本発明の実施形態を示すものであり、画像処理装置1における圧縮処理に係る要部構成について示すブロック図である。
First, a configuration relating to compression processing in the
(画像処理装置の圧縮処理に係る構成)
図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
割り込み制御部11は、当該画像処理装置1が備える各部からイベント信号を受信するとCPU12に対してイベント発生を通知するものである。このイベント信号の例としては、例えば、DMA転送完了の通知、スレーブモジュール(本実施形態ではメモリコントローラ14等)との通信エラーなどによるDMA転送の中止を示す通知などが挙げられる。つまり、イベント信号は、各DMA部から割り込み制御部11に対して出力される通知信号である。各DMA部から通知されたこれらの通知信号は、割り込み制御部11が備える不図示のレジスタに保持されように構成されている。そして、CPU12が該当するレジスタから通知信号を読み出すことにより、何のイベントが発生したのかを判定することができる。CPU12は判定したイベントの種類によって、次に動作すべき内容を決定する。
When receiving an event signal from each unit included in the
CPU12は、画像処理装置1が備える各部の各種制御を行うものである。具体的には、CPU12は、後述するDRAM(メインメモリ)3からプログラムデータを、メモリコントローラ14を介して読み出し、この読み出した命令を解釈して動作する。CPU12は、これらの命令を順番に読み出すことで、画像処理装置1全体の各部を制御することができる。なお、この命令としては、例えばDMA部に対する起動および終了命令、あるいは割り込み処理命令などが挙げられる。
The
メモリコントローラ14は、DRAM3と接続されており、CPU12、または各DMA部からの指示に応じて該DRAM3に対するデータの読み出し、および書込みを制御するモジュールである。つまり、メモリコントローラ14は、スレーブモジュールとして動作するものであり、マスタモジュールであるCPU12や各DMA部により指示されたDRAM3のアドレスから、指示されたデータサイズのデータを読み出したり、書き込んだりする。そして、メモリコントローラ14は、読み出し要求によってDRAM3から読み出したデータを、読み出しの要求を行ったマスタモジュール(CPU12または各DMA部)に転送する。あるいは、メモリコントローラ14は、書き込み要求により書き込むべきデータをマスタモジュールから取得し、DRAM3に対して書き込みを行う。また、メモリコントローラ14は、DRAM3に格納されているデータが消えないようにするために、リフレッシュ制御などを行うものでもある。
The
HDDコントローラ15は、DMA部を有しており、CPU12からのDMA部に対する起動命令に応じて、ハードディスク(HDD)に対し、データの読み出し、あるいは書き込みを行うモジュールである。HDDコントローラ15は、全てのデータ転送が完了すると、割り込み制御部11に対して完了通知を行う。そして、この通知は、割り込み制御部11を介してCPU12に通知される。なお、HDDコントローラ15が扱うデータとは、画像データ、指示データ、圧縮データ、プログラムデータなど、HDDに格納するデータ全てが対象となる。
The
画質改善画像処理部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
画像処理部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
また、画像処理部16は、特に圧縮処理を実行する部材として、圧縮モジュール13を備えている。圧縮モジュール13の詳細については後述する。
In addition, the image processing unit 16 includes a
指示データ生成部17は、DMA部を有し、圧縮方式指示データ(指示データと称する)を生成するモジュールである。この指示データとは、画像データの圧縮形式を特定するためのデータである。以下において、この指示データの生成処理について説明する。
The instruction
本実施の形態に係る画像処理装置1は、以下のような流れで画像データの指示データの生成を行っている。すなわち、CPU12からの起動命令に応じて、指示データ生成17がDRAM3からデータを読み出し、指示データ生成17内部で画像解析を行う。指示データ生成部17は、画像解析結果から各画素(本実施形態ではRGB各8bit合計24bitを1画素とする)毎に、4bitの指示データ(指示データと称する)を生成する。つまり、1画素24bitの画像データにつき、4bitの指示データを生成する。例えば、100MBの画像データを圧縮処理する場合、該100MBの画像データに対する指示データは16.7MBのサイズとなる。このようにして、CPU12からの制御指示の下、指示データ生成部17が指示データを生成する。
The
生成された指示データは、CPU12からの指示に応じて指示データ生成部17が備えるDMAが、メモリコントローラ14を介してDRAM3に書き込む。そして、全ての画素に対する指示データをDRAM3に書き込むと、割り込み制御部11に対して指示データ生成処理の完了通知を行う。この完了通知は、割り込み制御部11を介してCPU12に通知される。
The generated instruction data is written into the
画像データに対して実行される画像解析とは、例えば、領域判定などの処理が挙げられる。つまり、領域判定処理において、色変化および濃度変化の大きく高周波成分の多い画像は、写真領域であると判定され、この領域に対して非可逆圧縮を行う指示データが生成される。なお、画像解析の具体的処理内容については、公知の技術であるため、その詳細はここでは省略する。 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
圧縮モジュール13は、DRAM3から画像データと指示データを読み込むと、3つの圧縮コアモジュールに分散して、可逆圧縮および非可逆圧縮が行われる。より具体的には、画像データ非可逆圧縮コア21は、画像データのうち写真等を含む所定領域(写真領域)に対して非可逆圧縮を行う。一方、画像データ可逆圧縮コア22は、この同じ画像データのうち文字等が存在する領域(文字領域)に対して可逆圧縮を行う。また、指示データ可逆圧縮コア23は、この画像データに対応する指示データの可逆圧縮を実行する。以下において、図2を参照して、本実施の形態に係る圧縮モジュール13のより詳細な構成について説明する。図2は、本発明の実施形態を示すものであり、圧縮モジュール13の要部構成を説明するブロック図である。
When the
なお、図2では、説明を簡便にするために、圧縮モジュール13がDRAM3から第1画像データ、圧縮方式指示データ、第2画像データをそれぞれ読み出すように記載されている。しかしながら、実際には、システムバス2を通じてメモリコントローラ14を介してDRAM3から上述した各種画像データを読み出す。
In FIG. 2, it is described that the
(圧縮モジュールの構成)
図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
なお、圧縮モジュールDMA24(特にDMA部24a〜24c)、SRAM25(特にSRAM25a〜25c)、アービタ26、SRAMリードコントローラ27a〜27cによって本発明の転送部を実現する。
The compression module DMA24 (particularly the
また、圧縮モジュール13が備えるDMA部24a〜24g、SRAM25a〜25g、SRAMリードコントローラ27a〜27c、データ置換部28a〜28b、圧縮コアモジュール、SRAMライトコントローラ29a〜29cそれぞれの個数は上述した個数に限定されるものではない。圧縮処理対象となるデータの種類等に応じて適宜設けることができる。
The number of
SRAM25は、DRAM3から読み出した指示データ、画像データ(第1画像データ、第2画像データ)、およびこれらの各種データを圧縮処理した結果得られる4つの圧縮データ(圧縮データ24d〜24g)を格納するメモリである。
The
第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
データ置換部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ライトコントローラ29a〜29cは、各圧縮コアモジュールによって圧縮処理されたデータ(第1〜第4圧縮データ)をSRAM25(SRAM25d〜25g)にそれぞれ書き込むものである。SRAM25に書き込まれたデータそれぞれを、DMA24d〜24gが、メモリコントローラ14を介してDRAM3に書き込む。
The
上記した構成を有する圧縮モジュール13は、2種類の画像データ(第1画像データセットおよび第2画像データ)を並列的に圧縮処理することが可能となっている。そこで、上述した図2、ならびに図3、4を参照にして、圧縮モジュール13における圧縮処理の処理フローについて説明する。図3は、本発明の実施形態を示すものであり、圧縮モジュール13における圧縮処理の処理フローを示すフローチャートである。
The
(圧縮処理の処理フロー)
まず、前提として、並列的に圧縮処理を行う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
また、指示データの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
なお、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
なお、ステップ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
次に、CPU12は、DMA部(DMA部24dからDMA部24f)のデスティネーション(destination)動作設定を行う(S12)。
Next, the
このデスティネーション(destination)動作設定とは、圧縮処理後のデータを、DRAM3のどの位置(アドレス)に格納すべきか指定することである。
The destination operation setting is to designate in which position (address) of the
より具体的には、CPU12は、DMA部24dに対し、可逆圧縮後の指示データ(第1圧縮データ)を、開始アドレス0x3000_0000に格納するように設定する。DMA部24eに対しては、可逆圧縮後の画像データ(第2圧縮データ)を、開始アドレス0x4000_0000に格納するように設定する。DMA部24eに対しては、非可逆圧縮後の画像データ(第3圧縮データ)を、開始アドレス0x5000_0000に格納するように設定する。
More specifically, the
以上のようにソース動作設定およびデスティネーション(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
まず、DMA部24bは、第1画像データをDRAM3からSRAMのデータサイズ分だけ読み出す。そして、読み出したデータをSRAM25に格納する(S14)。
First, the
具体的には、図4に示すように、DRAM3から読み出されたデータがSRAM25に読み出される。図4は、本発明の実施形態を示すものであり、DRAM3からSRAM25へのデータの読み出し例を示す図である。
Specifically, as shown in FIG. 4, data read from the
すなわち、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
次に、DMA部24aは、指示データをDRAM3からSRAMのデータサイズ分だけ読み出す。そして、読み出したデータをSRAM25に格納する(S15)。
Next, the
具体的には、上記した第1画像データと同様に、図4に示すように、DRAM3から読み出されたデータがSRAM25に読み出される。
Specifically, similarly to the first image data described above, the data read from the
すなわち、指示データについても第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
このように指示データおよび第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
ここで、図5を参照して、データ置換部28a、28bによって実行される置換処理について説明する。図5は、本発明の実施形態を示すものであり、データ置換部28a、28bによって実行される置換処理を示す図である。
Here, the replacement process executed by the
まず、置換処理後の結果を画像データ非可逆圧縮コア21に出力する場合について説明する。
First, the case where the result after the replacement process is output to the image data
データ置換部28a、28bは、画像データの画素「001」と、対応する指示データ「1」とを、それぞれのSRAM25より取得する。ここで指示データは、「0」または「1」の2値により示されるもので、「0」は可逆圧縮処理を行うべき画素であることを意味し、「1」は非可逆圧縮処理を行うべき画素であることを意味するものとする。
The
このように、指示データの値「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
次に、第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
図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
このように置換処理を主走査方向の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
ここでの置換処理の処理手順は図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
ところで、SRAMリードコントローラ27a〜27cそれぞれは、同じ指示データを格納したSRAM25aと、第1画像データを格納したSRAM25bにアクセスするため、アービタ26によってSRAM25a、25bに対するアクセス制御の調停が行われる。
By the way, each of the SRAM read
以下において、図7を参照してアービタ26による調停処理について説明する。図7は、本発明の実施形態を示すものであり、アービタ26による調停処理のタイムチャートを示す図である。
Hereinafter, the arbitration process by the
本実施の形態に係る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
図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
一方、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
以上のようにして、本実施形態では、アービタ26による調停処理により、複数モジュール(SRAMリードコントローラ27a〜27c)からの同じSRAM25に対する時分割アクセスを実現することができる。ただし、SRAMのリードポートを3ポート備えた構成とすれば、このような時分割制御を省略することができる。
As described above, in the present embodiment, time-sharing access to the
画像データおよび指示データが圧縮コアモジュールに対して転送されると、圧縮コアモジュールにおいて、圧縮処理(可逆圧縮処理または非可逆圧縮理)が行なわれる(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
また、本実施の形態に係る画像処理装置1では、3つの圧縮コアモジュールそれぞれは、圧縮処理が完了すると、圧縮モジュールDMA24(DMA部24d〜24g)に対して、その完了を示す完了通知を行うように構成されている。より具体的には、指示データ可逆圧縮コア23は、指示データの可逆圧縮処理が完了するたびにDMA部24dに完了通知を行う。画像データ可逆圧縮コア22は、画像データの可逆圧縮処理が完了するたびにDMA部24eに完了通知を行う。また、画像データ非可逆圧縮コア21は、画像データの非可逆圧縮が完了するたびにDMA部24fに完了通知を行う。
In the
圧縮モジュールDMA24(DMA部24d〜24g)は、完了通知を受信したものから順に、SRAM25(SRAM25d〜25f)に格納された圧縮データ(第1圧縮データ〜第3圧縮データ)を、ステップS12において設定したデスティネーション(destination)動作設定に基づきDRAM3に対して書き込む(S19)。
In step S12, the compression module DMA24 (
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 (
以上のようにして、本実施の形態に係る画像処理装置1では、「第1画像データセットの圧縮処理」を実行する。
As described above, the
ところで、アービタ26によりSRAMリードコントローラ27a〜27cのSRAM25に対するアクセスは時分割制御されているが、指示データの可逆圧縮処理、画像データの可逆圧縮処理、ならびに画像データの非可逆圧縮処理それぞれは、実質的には並列して処理が進められる。
By the way, the access to the
また、可逆圧縮、非可逆圧縮はそれぞれ圧縮方式が異なるため圧縮処理にかかる時間が異なる。このため、画像データ非可逆圧縮コア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
例えば、画像データ可逆圧縮コア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
なお、上述したように、アービタ26によって、SRAMリードコントローラ27a〜27cそれぞれのSRAM25に対するアクセスタイミングが調整されている。しかしながら、SRAMリードコントローラ27a〜27cそれぞれのSRAM25に対するアクセスタイミングのタイムラグは、非常に小さい。このため、画像データ非可逆圧縮コア21、画像データ可逆圧縮コア22、指示データ可逆圧縮コア23それぞれで実行される圧縮処理は、それぞれほぼ同じタイミングで並列して実行されるものとしてみなすことができる。このため、図8では、SRAMサイズ分の指示データ、画像データに対する圧縮処理の開始はほぼ同時となるように表している。
As described above, the access timing for the
図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
ところで、本実施の形態に係る画像処理装置1は、上記したように、並列的に圧縮処理を行う2種類の画像データとして、第1画像データとその指示データとを含むデータ(第1画像データセット)に加えて、第2画像データがDRAM3に記憶されている。
By the way, as described above, the
そこで、本実施の形態に係る画像処理装置1は、画像データ非可逆圧縮コア21において発生している上述の待ち時間を利用して、この第2画像データの圧縮処理を行うように構成されている。
Therefore, the
以下において、まず図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
(第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
まず、前提として、第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
次に、CPU12は、DMA部24gのデスティネーション(destination)動作設定を行う(S32)。より具体的には、CPU12は、DMA部24gに対し、非可逆圧縮後の画像データ(第4圧縮データ)を、開始アドレス0x6000_0000に格納するように設定する。
Next, the
以上のようにソース動作設定およびデスティネーション動作設定が完了すると、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
まず、DMA部24cは、第2画像データをDRAM3からSRAMのデータサイズ分だけ読み出す。そして、読み出したデータをSRAM25に格納する(S34)。
First, the DMA unit 24c reads the second image data from the
具体的には、上述した図4と同様にして、DRAM3から読み出されたデータがSRAM25に読み出される。
Specifically, the data read from the
DRAM3から第2画像データの取得が完了すると、すなわち第2画像データのSRAMデータサイズ分の読み出しが完了すると、圧縮モジュールDMA24は、SRAMリードコントローラ27cに対して、データ取得完了を通知する。
When the acquisition of the second image data from the
この通知を受信すると、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
第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
圧縮モジュール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
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
以上のようにして、本実施の形態に係る画像処理装置1では、「第2画像データセットの圧縮処理」を実行する。
As described above, in the
以上のように、「第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
以下において、第1画像データセットおよび第2画像データの画像データ非可逆圧縮コア21における並列処理について説明する。
Hereinafter, parallel processing in the image data
(画像データ非可逆圧縮コアにおける並列処理)
本実施の形態に係る画像処理装置1では、前提として、第2画像データよりも第1画像データセットに対する圧縮処理が優先されるように設定されているものとする。
(Parallel processing in image data lossy compression core)
In the
まず、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
ここで、第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部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
また、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
これら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
すなわち、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
このため、第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
上記では第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
また、画像データ非可逆圧縮コア21には、第1画像データセットと第2画像データとの異なる種類の画像データが入力される。このため、SRAMリードコントローラ27cは、画像データ非可逆圧縮コア21に対して画像データを供給する際には、どちらの画像データを転送中なのかを示す必要がある。SRAMリードコントローラ27cは、図10に示すように、画像データ非可逆圧縮コア21に対して出力する信号中にimage number信号(送信データ指示信号)を含めることによって、どちらの画像データを転送中なのか示すことができる。
The image data
より具体的には、画像データ非可逆圧縮コア21に対して画像データが転送される際、画像データ非可逆圧縮コア21は、image number信号を含む図10に示す信号の入力を受ける。図10は、画像データ非可逆圧縮コア21が画像データを受信する際の信号波形を示す図である。
More specifically, when image data is transferred to the 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
また、画像データ非可逆圧縮コア21はimage number信号によって示された2種類の画像データが、図11に示すようにランダムに入力されることから、それぞれの画像データに応じた圧縮処理を時分割的に実現する必要がある。そして、画像データ非可逆圧縮コア21は2種類の画像データを時分割で圧縮処理するために、レジスタ設定セットを2つ有する必要がある。なお、図11は、本発明の実施形態を示すものであり、2種類の画像データを時分割で圧縮処理した場合の処理状態の一例を示す図である。
Further, since the image data
そこで、本実施の形態に係る画像データ非可逆圧縮コア21は、図12に示すように、圧縮コア31と、2種類のレジスタセット(第1レジスタセット33a、第2レジスタセット33b)を有するレジスタ32とを備えた構成とする。図12は、本発明の実施形態を示すものであり、画像データ非可逆圧縮コア21の要部構成を示すブロック図である。
Therefore, as shown in FIG. 12, the image data
第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
圧縮コア31は、画像データ非可逆圧縮コア21の中核となる部分であり、画像データを非可逆圧縮するために演算処理するものである。圧縮コア31は、image number信号に応じて、レジスタ32における第1レジスタセット33aまたは第2レジスタセット33bいずれかを選択する。そして、レジスタ32から、選択した第1レジスタセット33aまたは第2レジスタセット33bのレジスタ設定の供給を受け、第1画像データまたは第2画像データの非可逆圧縮処理を実行する。
The
圧縮コア31は、非可逆圧縮処理後の圧縮データ(第3圧縮データまたは第4圧縮データ)をSRAMライトコントローラ29cに渡してSRAM25fまたはSRAM25gに格納させる。
The
この圧縮データの転送においても、画像データ非可逆圧縮コア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
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
以上の構成により、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
なお、上記では、画像データを圧縮する圧縮処理を例に挙げて説明したが、これに限定されるものではなく、逆に圧縮された画像データの伸張処理でも同様に実現できる。すなわち、圧縮された画像データの伸張処理においても、可逆圧縮された画像データを伸張する場合と、非可逆圧縮された画像データを伸張する場合とでは同様に処理能力に差が出る。このため、圧縮された画像データの伸張処理の場合であっても、上記した圧縮処理と同様に、伸張処理の待ち時間に異なる種類の画像データの伸張処理を行うことで、処理効率を向上させることができる。 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
以上のように、本実施の形態に係る画像処理装置1は、画像データを圧縮する画像データ可逆圧縮コア22と、該画像データ可逆圧縮コア22とは画像データの圧縮方式が異なるとともに、圧縮処理時間が小さい画像データ非可逆圧縮コア21を備える。さらに、画像処理装置1は、第1画像データセットを、該第1画像データを構成する領域の特性に応じて、画像データ可逆圧縮コア22によって圧縮する第1領域部分と、画像データ非可逆圧縮コア21によって圧縮する第2領域部分とに分離するCPU12も備えている。そして、画像処理装置1では、画像データ可逆圧縮コア22により第1領域部分が圧縮されている間に、第2領域部分と第1画像データとは異なる第2画像データとを圧縮するように構成されている。
As described above, in the
このため、本実施の形態に係る画像処理装置1は、DRAM3に記憶している第1画像データセットおよび第2画像データに対して効率よく圧縮処理を実行することができる。
For this reason, the
本発明は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 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
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
12 CPU (separator)
13
22 Image data lossless compression core (first data processing unit)
23 Instruction data
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
33b Second register set (second data processing information)
Claims (5)
上記画像データ処理を行う画像データとして、異なる特性の領域を含む第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.
上記第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に記載の画像処理装置。 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:
上記送信データ指示信号に基づき、上記第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画像データとは異なる第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.
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)
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 |
-
2010
- 2010-05-18 JP JP2010114100A patent/JP5587029B2/en active Active
Patent Citations (2)
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 |