JP2014127886A - Image processing apparatus - Google Patents

Image processing apparatus Download PDF

Info

Publication number
JP2014127886A
JP2014127886A JP2012283806A JP2012283806A JP2014127886A JP 2014127886 A JP2014127886 A JP 2014127886A JP 2012283806 A JP2012283806 A JP 2012283806A JP 2012283806 A JP2012283806 A JP 2012283806A JP 2014127886 A JP2014127886 A JP 2014127886A
Authority
JP
Japan
Prior art keywords
pixel
block
comparison
sub
color conversion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2012283806A
Other languages
Japanese (ja)
Inventor
Shinichi Asai
慎一 浅井
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2012283806A priority Critical patent/JP2014127886A/en
Publication of JP2014127886A publication Critical patent/JP2014127886A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To achieve acceleration of color conversion using hardware by a simple hardware configuration.SOLUTION: An image processing apparatus performs color conversion of a pixel outputted from a comparison processing part by a color conversion part, writes the color-converted pixel in an output buffer and copies and writes a pixel value of the pixel concerned in pixels with the same pixel value. The comparison processing part includes: a first comparator 32a; a first memory 34a for storing an address of a representative pixel of a second sub-block whose comparison result by the first comparator 32a is inconsistency; a second comparator 32b; a second memory 34b for storing addresses of representative pixels of respective second sub-blocks in a first sub-block whose comparison result by the second comparator 32b is inconsistency; and read control parts 36, 37 for reading out respective pixels other than the representative pixel of the first sub-block, the representative pixels whose addresses are stored in the second memory 34b and the representative pixel whose address is stored in the first memory 34a as pixels to be color-converted.

Description

本発明は、画像処理装置に関する。   The present invention relates to an image processing apparatus.

プリンターやコピー機等の画像形成装置においては、画像データを色変換し、入力された画像データの色空間を、画像形成装置が表現可能な色空間に一致させている。
色空間同士は複雑な関係にあるため、色変換時、色変換後の画素値を逐一演算するのではなく、入力値に対し色変換後の出力値が定められたLUT(Look Up Table)が利用されている(例えば、特許文献1参照)。LUTにおいて、全ての入力値に対応する出力値を定めると、大容量のメモリーが必要となるため、通常のLUTは、代表色についてのみ入力値と出力値が定められ、他は補間演算によって出力値を得ている。
In an image forming apparatus such as a printer or a copier, color conversion is performed on image data, and the color space of the input image data is matched with a color space that can be expressed by the image forming apparatus.
Since the color spaces are in a complicated relationship, the LUT (Look Up Table) in which the output value after color conversion is defined for the input value is not calculated one by one at the time of color conversion. (For example, refer to Patent Document 1). When an output value corresponding to all input values is determined in the LUT, a large capacity memory is required. Therefore, an ordinary LUT determines input values and output values only for representative colors, and outputs other values by interpolation. I am getting the value.

代表色のみ入力値と出力値を保持するようにしても、必要なメモリー容量は決して小さくない。色空間を構成する色数が多いほど、LUTのデータ量が増え、大容量のメモリーが必要となる。そのようなメモリーを持つ色変換回路を、LSI(Large Scale Integration)のようなハードウェアに実装するには、負担が大きいことが知られている。   Even if only the representative color holds the input value and the output value, the necessary memory capacity is not small. As the number of colors constituting the color space increases, the amount of data in the LUT increases and a large-capacity memory is required. It is known that a large burden is required for mounting such a color conversion circuit having a memory on hardware such as LSI (Large Scale Integration).

一般に、ハードウェアによる処理を高速化するためには、処理回路を複数設けて、並列に処理していく方法が有効である。しかし、色変換回路に関しては、上述したような容量の大きいメモリーを並列に設けることになるため、ハードウェアへの実装はより困難を伴う。C(シアン)、M(マジェンタ)、Y(イエロー)及びK(黒)のような多数色を使用する画像形成装置においては、特に困難である。   In general, in order to speed up processing by hardware, it is effective to provide a plurality of processing circuits and perform processing in parallel. However, with respect to the color conversion circuit, since the large-capacity memory as described above is provided in parallel, mounting on hardware is more difficult. This is particularly difficult in an image forming apparatus that uses multiple colors such as C (cyan), M (magenta), Y (yellow), and K (black).

そのため、従来はハードウェアではなく、ソフトウェアにより色変換することが多かった(例えば、特許文献1、2参照)。
ソフトウェアにより色変換する場合、ハードウェアにより色変換する場合と比べて、1画素の色変換に要する時間が長い。しかし、文字や図形の画像領域については、同じ文字、同じ図形の画像領域内であれば同一色である場合が多く、ソフトウェアによれば一括変換が可能である。よって、文字や図形の画像領域が多い画像データであれば、ソフトウェアによる色変換であっても処理時間を短縮することができる。
Therefore, conventionally, color conversion is often performed by software instead of hardware (see, for example, Patent Documents 1 and 2).
When color conversion is performed by software, the time required for color conversion of one pixel is longer than when color conversion is performed by hardware. However, the image areas of characters and figures are often the same color as long as they are within the image area of the same character and figure, and batch conversion is possible according to software. Therefore, if the image data has a large number of character and graphic image areas, the processing time can be shortened even with software color conversion.

上記特許文献1は、そのような特性を活かして、注目画素と画素値が同じ画素の連続数を求め、注目画素の色変換後の画素値をその連続数だけ繰り返すことにより、色変換の処理時間を短縮している。また、特許文献2によれば、プリンタドライバーにより画像データを生成する段階で、特許文献1と同様の処理をしている。   The above-mentioned patent document 1 makes use of such characteristics to obtain a continuous number of pixels having the same pixel value as the target pixel, and repeats the pixel value after color conversion of the target pixel by the continuous number, thereby performing color conversion processing. Time has been shortened. According to Patent Document 2, the same processing as Patent Document 1 is performed at the stage of generating image data by a printer driver.

特開2008−205636号公報JP 2008-205636 A 特開2004−54653号公報JP 2004-54653 A

一方、画像データには、文字や図形の他に写真の画像領域が含まれていることも多い。写真の画像領域内は同一色とは限らず、隣接する画素の画素値の予測が難しい。そのため、1画素ずつ色変換する以外に方法が無く、処理速度が低下する要因となっている。結局、ソフトウェアによる色変換は、ハードウェアによる色変換に比べて、やはり処理時間が長く、色変換の高速化が望まれている。   On the other hand, image data often includes an image area of a photograph in addition to characters and figures. The image area of a photograph is not necessarily the same color, and it is difficult to predict pixel values of adjacent pixels. For this reason, there is no method other than color conversion for each pixel, which causes a reduction in processing speed. After all, color conversion by software has a longer processing time than color conversion by hardware, and speeding up of color conversion is desired.

本発明の課題は、ハードウェアによる色変換の高速化を、簡易なハードウェア構成で実現することである。   An object of the present invention is to realize high-speed color conversion by hardware with a simple hardware configuration.

請求項1に記載の発明によれば、
画像データをブロック単位で入力し、複数のブロックを保持する第1入力バッファーと、
前記第1入力バッファーから1ブロックを入力し、当該1ブロック内の各画素の画素値を比較して、当該1ブロックの色変換する画素を出力する比較処理部と、
前記比較処理部から出力された画素を色変換する色変換部と、
出力バッファーと、
前記色変換部により色変換された画素を前記出力バッファーに書き込み、前記比較の結果、当該色変換された画素と画素値が一致する画素に対し、当該色変換された画素の画素値をコピーして書き込むバッファー制御部と、を備え、
前記比較処理部は、
第2入力バッファーと、
前記第1入力バッファーに保持された1ブロックを、前記第2入力バッファーに書き込む書込制御部と、
前記1ブロックを分割して得られた第1サブブロックを、さらに分割して得られた第2サブブロック内の各画素の画素値を比較し、各画素値が一致か又は不一致かを示す比較結果を出力する第1比較器と、
前記第1比較器による比較結果が不一致であった第2サブブロックの代表画素のアドレスを保持する第1メモリーと、
前記第1サブブロック内の各第2サブブロックの代表画素の画素値を比較し、各画素値が一致し、かつ前記第1比較器による比較結果が一致である場合は一致の比較結果を出力し、各画素値が不一致か又は前記第1比較器による比較結果が不一致である場合は不一致の比較結果を出力する第2比較器と、
前記第2比較器による比較結果が不一致であった第1サブブロック内の各第2サブブロックの代表画素のアドレスを保持する第2メモリーと、
前記色変換する画素として、前記第1サブブロックの代表画素と、前記第2メモリーにアドレスが保持された第2サブブロックの代表画素と、前記第1メモリーにアドレスが保持された代表画素以外の第2サブブロック内の各画素とを、前記第2入力バッファーから読み出して出力する読出制御部と、
を備える画像処理装置が提供される。
According to the invention of claim 1,
A first input buffer for inputting image data in units of blocks and holding a plurality of blocks;
A comparison processing unit that inputs one block from the first input buffer, compares pixel values of each pixel in the one block, and outputs pixels for color conversion of the one block;
A color conversion unit that performs color conversion on the pixels output from the comparison processing unit;
An output buffer;
The pixel converted by the color conversion unit is written to the output buffer, and the pixel value of the pixel subjected to the color conversion is copied to a pixel whose pixel value matches the pixel subjected to the color conversion as a result of the comparison. And a buffer controller for writing
The comparison processing unit
A second input buffer;
A writing control unit for writing one block held in the first input buffer to the second input buffer;
The pixel value of each pixel in the second sub-block obtained by further dividing the first sub-block obtained by dividing the one block is compared, and the comparison indicating whether the pixel values match or do not match A first comparator for outputting a result;
A first memory for holding an address of a representative pixel of a second sub-block in which the comparison result by the first comparator does not match;
The pixel values of the representative pixels of the second sub-blocks in the first sub-block are compared, and if the pixel values match and the comparison result by the first comparator is coincident, the coincidence comparison result is output. A second comparator that outputs a non-matching comparison result when each pixel value does not match or the comparison result by the first comparator does not match,
A second memory for holding the address of the representative pixel of each second sub-block in the first sub-block in which the comparison result by the second comparator is inconsistent;
The pixels to be color-converted are pixels other than the representative pixel of the first sub-block, the representative pixel of the second sub-block whose address is held in the second memory, and the representative pixel whose address is held in the first memory. A read controller that reads out and outputs each pixel in the second sub-block from the second input buffer;
An image processing apparatus is provided.

請求項2に記載の発明によれば、
前記比較処理部は、前記第2入力バッファー、前記書込制御部、前記第1比較器、前記第1メモリー、前記第2比較器、前記第2メモリー及び前記読出制御部を含む比較モジュールを複数備え、複数のブロックを入力して、各比較モジュールにより各ブロックの比較を並列に行って、各ブロックの色変換する画素を順次前記色変換部に出力する、
請求項1に記載の画像処理装置が提供される。
According to invention of Claim 2,
The comparison processing unit includes a plurality of comparison modules including the second input buffer, the write control unit, the first comparator, the first memory, the second comparator, the second memory, and the read control unit. A plurality of blocks are input, each block is compared in parallel by each comparison module, and the pixels for color conversion of each block are sequentially output to the color conversion unit.
An image processing apparatus according to claim 1 is provided.

請求項3に記載の発明によれば、
前記書込制御部は、第1サブブロックの代表画素、第2サブブロックの代表画素、第2サブブロック内の代表画素以外の各画素の順に割り振られた書込アドレスを前記第2入力バッファーに出力し、前記第2入力バッファーに書き込まれた1ブロックにアドレスを割り当てる、
請求項1又は2に記載の画像処理装置が提供される。
According to invention of Claim 3,
The write control unit uses a write address assigned in the order of each pixel other than the representative pixel in the first sub-block, the representative pixel in the second sub-block, and the representative pixel in the second sub-block in the second input buffer. Output and assign an address to one block written in the second input buffer;
An image processing apparatus according to claim 1 or 2 is provided.

請求項4に記載の発明によれば、
前記第1比較器及び第2比較器は、各画素値の比較時、色空間も比較し、画素値及び色空間が一致する場合、各画素値が一致の比較結果を出力し、画素値又は色空間が不一致の場合、各画素値が不一致の比較結果を出力する、
請求項1〜3の何れか一項に記載の画像処理装置が提供される。
According to invention of Claim 4,
The first comparator and the second comparator also compare the color space when comparing each pixel value, and if the pixel value and the color space match, each pixel value outputs a comparison result of matching, If the color space does not match, output a comparison result where each pixel value does not match.
An image processing apparatus according to any one of claims 1 to 3 is provided.

請求項5に記載の発明によれば、
前記第1比較器及び第2比較器は、各画素値の比較時、属性も比較し、画素値及び属性が一致する場合、各画素値が一致の比較結果を出力し、画素値又は属性が不一致の場合、各画素値が不一致の比較結果を出力する、
請求項1〜3の何れか一項に記載の画像処理装置が提供される。
According to the invention of claim 5,
The first comparator and the second comparator also compare attributes when comparing each pixel value, and if the pixel value and the attribute match, each pixel value outputs a comparison result indicating that the pixel value or attribute matches. If they do not match, output a comparison result where each pixel value does not match.
An image processing apparatus according to any one of claims 1 to 3 is provided.

本発明によれば、第1サブブロック内の各画素値が一致する場合、第1サブブロック単位で一括して色変換することができる。第1サブブロック内の各画素値が不一致である場合、第1サブブロックより小さい第2サブブロック単位で、一括して色変換するか又は各画素を色変換することができる。よって、色変換する画素の数を減らして、色変換の処理時間を短縮することができる。色変換部が1つであっても、色変換の高速化が可能であり、ハードウェアによる色変換の高速化を、簡易なハードウェア構成で実現することができる。   According to the present invention, when the pixel values in the first sub-block match, color conversion can be performed collectively in units of the first sub-block. When the pixel values in the first sub-block do not match, color conversion can be performed in batch or color conversion can be performed for each pixel in units of the second sub-block smaller than the first sub-block. Therefore, the number of pixels for color conversion can be reduced and the color conversion processing time can be shortened. Even if there is only one color conversion unit, it is possible to increase the speed of color conversion, and it is possible to increase the speed of color conversion by hardware with a simple hardware configuration.

画像形成装置の機能ブロック図である。2 is a functional block diagram of the image forming apparatus. FIG. 第1実施の形態に係る画像処理装置の色変換を行う構成部分の構成図である。It is a block diagram of the component which performs color conversion of the image processing apparatus which concerns on 1st Embodiment. 画像データの入力例を示している。An example of inputting image data is shown. 図2の比較処理部の構成図である。It is a block diagram of the comparison process part of FIG. 1ブロックの各画素に割り当てられたアドレスの例を示している。The example of the address allocated to each pixel of 1 block is shown. 第1比較器及び第2比較器が比較に要する処理時間を示している。The first comparator and the second comparator indicate the processing time required for comparison. (a)色変換部への画素の入力順の一例である。(b)色変換部への画素の入力順の一例である。(c)第2メモリーが無い場合の色変換部への画素の入力順の例を示している。(A) It is an example of the input order of the pixel to a color conversion part. (B) It is an example of the input order of the pixel to a color conversion part. (C) shows an example of the order of input of pixels to the color conversion unit when there is no second memory. 色変換された画素のコピー例を示している。An example of copying a color-converted pixel is shown. 比較処理部が第3比較器を備えた場合の構成図である。It is a block diagram in case a comparison process part is provided with the 3rd comparator. 第2の実施の形態に係る画像処理装置の色変換を行う構成部分の構成図である。It is a block diagram of the component part which performs color conversion of the image processing apparatus which concerns on 2nd Embodiment. 複数の比較モジュールを備えた比較処理部の構成図である。It is a block diagram of the comparison process part provided with the several comparison module. 複数の比較モジュールを備えた場合の比較及び色変換の処理時間を示している。The comparison and color conversion processing times when a plurality of comparison modules are provided are shown. (a)1ブロック内に不一致の画素がある場合に、1つの比較モジュールが比較に要する処理時間と色変換に要する処理時間を示している。(b)1ブロック内の全画素が一致する場合に、1つの比較モジュールが比較に要する処理時間と色変換に要する処理時間を示している。(c)1ブロック内の全画素が一致する場合に、複数の比較モジュールが比較に要する処理時間と色変換に要する処理時間を示している。(A) When there is a non-matching pixel in one block, the processing time required for one comparison module and the processing time required for color conversion are shown. (B) When all the pixels in one block match, the processing time required for one comparison module and the processing time required for color conversion are shown. (C) When all the pixels in one block match, the processing time required for comparison and the processing time required for color conversion by a plurality of comparison modules are shown.

以下、図面を参照して、本発明の画像処理装置の実施の形態について説明する。   Embodiments of an image processing apparatus according to the present invention will be described below with reference to the drawings.

〔第1の実施の形態〕
図1は、画像形成装置Tの機能ブロック図を示している。画像形成装置Tには、第1の実施の形態に係る画像処理装置G1が搭載されている。
画像形成装置Tは、画像データに基づいて用紙上に画像を形成する。画像形成装置Tは、原稿を読み取って画像データを得ることもできるし、ネットワーク上のコンピューターから受信したPDL(Page Description Language)データから画像データを得ることもできる。
画像形成装置Tは、図1に示すように、プリントコントローラー1、画像読取部2、画像メモリー3、画像処理装置G1、画像形成部4、制御部5、記憶部6、操作部7、表示部8及び通信部9を備えている。
[First Embodiment]
FIG. 1 is a functional block diagram of the image forming apparatus T. In the image forming apparatus T, the image processing apparatus G1 according to the first embodiment is mounted.
The image forming apparatus T forms an image on a sheet based on the image data. The image forming apparatus T can obtain image data by reading a document, or can obtain image data from PDL (Page Description Language) data received from a computer on a network.
As shown in FIG. 1, the image forming apparatus T includes a print controller 1, an image reading unit 2, an image memory 3, an image processing device G1, an image forming unit 4, a control unit 5, a storage unit 6, an operation unit 7, and a display unit. 8 and a communication unit 9.

プリントコントローラー1は、通信部を備えてネットワーク上のコンピューターからPDLデータを受信し、当該PDLデータをラスタライズ処理して、ビットマップ形式の画像データを生成する。プリントコントローラー1は、C(シアン)、M(マジェンタ)、Y(イエロー)、K(黒)の4色の画像データを生成する。生成された画像データは画像メモリー3に出力され、保持される。   The print controller 1 includes a communication unit, receives PDL data from a computer on the network, rasterizes the PDL data, and generates bitmap format image data. The print controller 1 generates image data of four colors of C (cyan), M (magenta), Y (yellow), and K (black). The generated image data is output to the image memory 3 and held.

プリントコントローラー1は、ラスタライズ処理時、画素毎の属性を示す属性データを生成する。属性データは、画像データとともに出力される。
属性としては、文字(Text)、図形(Graphics)、写真(Image)がある。プリントコントローラー1は、文字、図形及び写真の各オブジェクトに該当する画素の属性を、それぞれ文字、図形及び写真の属性に設定する。
The print controller 1 generates attribute data indicating attributes for each pixel during the rasterization process. The attribute data is output together with the image data.
The attributes include text, graphics, and images. The print controller 1 sets the attribute of the pixel corresponding to each object of a character, a figure, and a photograph to the attribute of a character, a figure, and a photograph, respectively.

画像読取部2は、スキャナー等により原稿を読み取って、R(赤)、G(緑)、B(青)の3色の画像データを生成する。生成された画像データは、画像メモリー3に出力され、保持される。   The image reading unit 2 reads an original with a scanner or the like and generates image data of three colors of R (red), G (green), and B (blue). The generated image data is output to the image memory 3 and held.

画像メモリー3は、画像データを保持するメモリーである。画像メモリー3としては、DRAM(Dynamic Random Access Memory)等を用いることができる。   The image memory 3 is a memory that holds image data. As the image memory 3, a DRAM (Dynamic Random Access Memory) or the like can be used.

画像処理装置G1は、画像読取部2により生成されたR、G、Bの画像データを、画像メモリー3から読み出して色変換し、C、M、Y、Kの画像データを出力する。
プリントコントローラー1により生成された画像データは、C、M、Y、Kの色空間であるが、画像処理装置G1は、この画像データを色変換し、色補正されたC、M、Y、Kの画像データを出力することもできる。
The image processing device G1 reads R, G, and B image data generated by the image reading unit 2 from the image memory 3, performs color conversion, and outputs C, M, Y, and K image data.
The image data generated by the print controller 1 is a color space of C, M, Y, and K, but the image processing device G1 converts the color of the image data and performs color correction on C, M, Y, and K. The image data can also be output.

画像処理装置G1は、色変換された画像データに、各種画像処理を施す。
例えば、画像処理装置G1は、色変換された画像データを圧縮処理して画像メモリー3に書き込み、当該画像データを制御部5からの指示に応じて画像メモリー3から読み出して伸張処理する。画像処理装置G1は、制御部5の指示に従って、画像データに拡大又は縮小、回転、スタンプ及びページ番号の付加等の画像処理を施すこともできる。
また、画像処理装置G1は、画像データを中間調処理して画像形成部4に出力する。中間調処理としては、スクリーン処理、誤差拡散処理等が挙げられる。
The image processing device G1 performs various types of image processing on the color-converted image data.
For example, the image processing apparatus G1 compresses the color-converted image data, writes the image data in the image memory 3, reads out the image data from the image memory 3 in accordance with an instruction from the control unit 5, and decompresses the image data. The image processing apparatus G1 can also perform image processing such as enlargement or reduction, rotation, addition of a stamp and a page number on image data in accordance with an instruction from the control unit 5.
Further, the image processing apparatus G1 performs halftone processing on the image data and outputs the processed image data to the image forming unit 4. Examples of halftone processing include screen processing and error diffusion processing.

画像形成部4は、画像データに基づき、用紙上に画像を形成する。
具体的には、画像形成部4は、C、M、Y、Kの色毎に露光部、現像部、感光体を4セット備えている。露光部は、帯電し、回転する感光体上を、画像データに基づいて光走査して露光する。現像部は、露光により感光体上に形成された静電潜像を、トナーで現像する。このようにして4つの感光体上に形成された各色の画像は、中間転写ベルト等を介して用紙上に重ねて転写され、定着装置により定着処理される。
The image forming unit 4 forms an image on a sheet based on the image data.
Specifically, the image forming unit 4 includes four sets of an exposure unit, a development unit, and a photoreceptor for each of C, M, Y, and K colors. The exposure unit exposes the charged and rotating photoconductor by optical scanning based on the image data. The developing unit develops the electrostatic latent image formed on the photoreceptor by exposure with toner. The images of the respective colors formed on the four photoconductors in this way are transferred onto the paper in a superimposed manner via an intermediate transfer belt or the like, and fixed by a fixing device.

制御部5は、CPU(Central Processing Unit)、RAM(Random Access Memory)等を備えている。制御部5は、記憶部6に記憶されているプログラムを読み出し、当該プログラムに従って画像形成装置Tの各部を制御する。
例えば、制御部5は、画像処理装置G1により画像データを画像処理させて、画像形成部4により画像を形成させる。
The control unit 5 includes a CPU (Central Processing Unit), a RAM (Random Access Memory), and the like. The control unit 5 reads a program stored in the storage unit 6 and controls each unit of the image forming apparatus T according to the program.
For example, the control unit 5 causes the image processing apparatus G1 to perform image processing on the image data and causes the image forming unit 4 to form an image.

記憶部6は、制御部5が読み取り可能なプログラム、ファイル等を記憶している。記憶部6としては、例えばハードディスク、ROM(Read Only Memory)等の記憶媒体を用いることができる。   The storage unit 6 stores programs, files, and the like that can be read by the control unit 5. As the storage unit 6, for example, a storage medium such as a hard disk or a ROM (Read Only Memory) can be used.

操作部7は、操作キーや表示部8と一体に構成されたタッチパネル等を備え、これらの操作に応じた操作信号を制御部5に出力する。
表示部8は、制御部5の指示に従って操作画面等を表示する。
通信部9は、制御部5からの指示に従い、ネットワーク上のサーバー等と通信する。
The operation unit 7 includes an operation key and a touch panel configured integrally with the display unit 8, and outputs operation signals corresponding to these operations to the control unit 5.
The display unit 8 displays an operation screen and the like according to instructions from the control unit 5.
The communication unit 9 communicates with a server on the network according to an instruction from the control unit 5.

図2は、画像処理装置G1の色変換を行う構成部分を示している。
図2に示すように、画像処理装置G1は、バッファー制御部g0、第1入力バッファーg1、比較処理部g2A、色変換部g3、出力バッファーg4、バッファー制御部g5を備えている。
FIG. 2 shows components that perform color conversion of the image processing apparatus G1.
As shown in FIG. 2, the image processing apparatus G1 includes a buffer control unit g0, a first input buffer g1, a comparison processing unit g2A, a color conversion unit g3, an output buffer g4, and a buffer control unit g5.

バッファー制御部g0は、第1入力バッファーg1に対する画像データの書き込み及び読み出しを行う。
バッファー制御部g0は、第1入力バッファーg1へイネーブル信号及び書込アドレスを出力して、ブロック単位で画像データを第1入力バッファーg1に書き込む。
また、バッファー制御部g0は、第1入力バッファーg1へイネーブル信号及び読出アドレスを出力して、第1入力バッファーg1からブロック単位で画像データを読み出す。
The buffer control unit g0 writes and reads image data to and from the first input buffer g1.
The buffer control unit g0 outputs an enable signal and a write address to the first input buffer g1, and writes image data to the first input buffer g1 in units of blocks.
Further, the buffer control unit g0 outputs an enable signal and a read address to the first input buffer g1, and reads image data from the first input buffer g1 in units of blocks.

第1入力バッファーg1は、画像データをブロック単位で保持するメモリーである。
第1入力バッファーg1は、バッファー制御部g0からのイネーブル信号及び書込アドレスに応じて、画像メモリー3に保持されている画像データをブロック単位で入力し、複数のブロックを保持する。複数のブロックを保持することにより、各ブロックを比較処理部g2Aへ連続して出力することができ、好ましい。
図3は、画像データの入力例を示している。
第1入力バッファーg1は、図3に示すように、例えば8×8画素を1ブロックとして、4ブロックの画像データを保持する。
The first input buffer g1 is a memory that holds image data in units of blocks.
The first input buffer g1 inputs the image data held in the image memory 3 in units of blocks according to the enable signal and the write address from the buffer control unit g0, and holds a plurality of blocks. By holding a plurality of blocks, each block can be continuously output to the comparison processing unit g2A, which is preferable.
FIG. 3 shows an input example of image data.
As shown in FIG. 3, the first input buffer g1 holds, for example, 8 blocks of image data with 8 × 8 pixels as one block.

比較処理部g2Aは、第1入力バッファーg1から1ブロックを入力し、当該1ブロック内の各画素の画素値を比較して、当該1ブロックの色変換する画素を出力する。
この時、比較処理部g2Aは、色変換する画素のアドレスADRS及び比較結果cmpを、バッファー制御部g5に出力する。
The comparison processing unit g2A receives one block from the first input buffer g1, compares the pixel value of each pixel in the one block, and outputs a pixel for color conversion of the one block.
At this time, the comparison processing unit g2A outputs the address ADRS of the pixel to be color-converted and the comparison result cmp to the buffer control unit g5.

色変換部g3は、比較処理部g2Aから出力された画素を色変換する。
色変換部g3は、複数のLUTを保持するメモリーを備え、各LUTを切り替えて色変換に用いる。例えば、色変換部g3は、画像読取部2により生成された画像データの色変換時、R、G、Bの入力値に対し、C、M、Y、Kの出力値が定められたLUTを用いる。また、色変換部g3は、プリントコントローラー1により生成された画像データの色変換時、C、M、Y、Kの入力値に対し、色補正されたC、M、Y、Kの出力値が定められたLUTを用いる。
The color conversion unit g3 performs color conversion on the pixel output from the comparison processing unit g2A.
The color conversion unit g3 includes a memory that holds a plurality of LUTs, and switches each LUT to use for color conversion. For example, when the color conversion of the image data generated by the image reading unit 2 is performed, the color conversion unit g3 outputs an LUT in which output values of C, M, Y, and K are determined for the input values of R, G, and B. Use. In addition, the color conversion unit g3 outputs the C, M, Y, and K corrected output values for the C, M, Y, and K input values at the time of color conversion of the image data generated by the print controller 1. A defined LUT is used.

上記LUT以外にも、色変換部g3は、L、L、sRGB、Adobe(登録商標)RGB等の様々な色空間をC、M、Y、Kの色空間に対応させたLUTを備えることが好ましい。
色変換部g3は、入力された画像データの色空間に応じてLUTを切り替えて色変換することにより、入力された画像データの色空間に広く対応ことができる。
In addition to the LUT, the color conversion unit g3 uses various color spaces such as L * a * b * , L * u * v * , sRGB and Adobe (registered trademark) RGB in C, M, Y, and K colors. It is preferable to provide an LUT corresponding to the space.
The color conversion unit g3 can widely correspond to the color space of the input image data by performing color conversion by switching the LUT according to the color space of the input image data.

また、色変換部g3は、属性毎にLUTを備えることが好ましい。
属性によって、例えば文字と写真とでは、求められる色特性が異なるため、属性に応じたLUTを用いることにより、色変換によって各属性に適した色特性を再現することができる。
色変換部g3は、例えばR、G、BとC、M、Y、Kを対応させたLUTとして、文字、図形及び写真の各属性に応じた色特性を再現する3種類のLUTを備え、色変換する画素の属性によってLUTを切り替えればよい。
なお、画像データは属性データとともに出力されるので、色変換部g3は、この属性データに基づいて各画素の属性を判断することができる。
Further, the color conversion unit g3 preferably includes an LUT for each attribute.
For example, since the required color characteristics differ between characters and photographs depending on the attributes, color characteristics suitable for each attribute can be reproduced by color conversion by using an LUT corresponding to the attributes.
The color conversion unit g3 includes, for example, three types of LUTs that reproduce color characteristics according to the attributes of characters, graphics, and photographs as LUTs that associate R, G, B, and C, M, Y, and K. The LUT may be switched depending on the attribute of the pixel to be color converted.
Since the image data is output together with the attribute data, the color conversion unit g3 can determine the attribute of each pixel based on this attribute data.

LUTは、そのデータ量を減らすため、入力値及び出力値が各色空間の代表値からなるLUTであることもできる。色変換部g3は、入力値に近い代表値を補間演算し、出力値を得ることができる。   In order to reduce the amount of data, the LUT can be an LUT in which input values and output values are composed of representative values of each color space. The color conversion unit g3 can interpolate a representative value close to the input value and obtain an output value.

出力バッファーg4は、第1入力バッファーg1と同じく、画像データをブロック単位で保持するメモリーである。
出力バッファーg4は、バッファー制御部g5からのイネーブル信号及び書込アドレスに応じて、色変換部g3から出力された複数のブロックの色変換後の各画素を保持する。
また、バッファー制御部g5からのイネーブル信号及び読出アドレスに応じて、保持している各ブロックを出力する。
Similar to the first input buffer g1, the output buffer g4 is a memory that holds image data in units of blocks.
The output buffer g4 holds each pixel after color conversion of a plurality of blocks output from the color conversion unit g3 according to the enable signal and the write address from the buffer control unit g5.
In addition, each held block is output in accordance with the enable signal and read address from the buffer control unit g5.

バッファー制御部g5は、出力バッファーg4に対する画像データの書き込み及び読み出しを行う。
バッファー制御部g5は、比較処理部g2Aから出力されたアドレスADRSを用いて、出力バッファーg4へイネーブル信号及び書込アドレスを出力し、色変換部g3により色変換された画素を出力バッファーg4に書き込む。
色変換されていない画素は、色変換された画素と画素値が一致する画素である。バッファー制御部g5は、比較処理部g2Aから出力された比較結果cmpに応じて、色変換された画素と画素値が一致する画素に対し、色変換された画素の画素値をコピーして出力バッファーg4に書き込む。
また、バッファー制御部g5は、出力バッファーg4へイネーブル信号及び読出アドレスを出力して、ブロック単位で画像データを読み出す。
The buffer control unit g5 writes and reads image data to and from the output buffer g4.
The buffer control unit g5 outputs the enable signal and the write address to the output buffer g4 using the address ADRS output from the comparison processing unit g2A, and writes the pixel color-converted by the color conversion unit g3 to the output buffer g4. .
A pixel that has not undergone color conversion is a pixel whose pixel value matches that of the color-converted pixel. The buffer control unit g5 copies the pixel value of the color-converted pixel to the pixel whose pixel value matches the color-converted pixel according to the comparison result cmp output from the comparison processing unit g2A, and outputs an output buffer Write to g4.
Further, the buffer control unit g5 outputs an enable signal and a read address to the output buffer g4, and reads image data in units of blocks.

図4は、上記比較処理部g2Aの構成図である。
図4に示すように、比較処理部g2Aは、書込制御部30、第2入力バッファー31、第1比較器32a、第2比較器32b、メモリー制御部33、第1メモリー34a、第2メモリー34b、セレクター35、読出制御部36及び37、カウンターC1〜C3を備えて、構成されている。
FIG. 4 is a configuration diagram of the comparison processing unit g2A.
As shown in FIG. 4, the comparison processing unit g2A includes a write control unit 30, a second input buffer 31, a first comparator 32a, a second comparator 32b, a memory control unit 33, a first memory 34a, and a second memory. 34b, a selector 35, read control units 36 and 37, and counters C1 to C3.

書込制御部30は、第2入力バッファー31へイネーブル信号WE及び書込アドレスWADRSを出力して、第1入力バッファーg1に保持された1ブロックを書き込む。   The write control unit 30 outputs the enable signal WE and the write address WADRS to the second input buffer 31, and writes one block held in the first input buffer g1.

第2入力バッファー31は、1ブロックの画像データを保持するメモリーである。
色変換する画素を複数のブロック間で連続して色変換部g3へ出力するためには、第2入力バッファー31は、複数のブロックを保持できるメモリーであることが好ましい。
The second input buffer 31 is a memory that holds one block of image data.
The second input buffer 31 is preferably a memory that can hold a plurality of blocks in order to continuously output pixels to be color-converted between the plurality of blocks to the color conversion unit g3.

第2入力バッファー31は、書込制御部30からのイネーブル信号WEに応じて、第1入力バッファーg1から1ブロックを入力し、当該1ブロックを保持する。このとき、第2入力バッファー31は、書込アドレスWADRSに応じて1ブロックの各画素にアドレスを割り当てて保持する。
書込アドレスWADRSは、1ブロックを分割して得られた第1サブブロックの代表画素、当該第1サブブロックを分割して得られた第2サブブロックの代表画素、当該第2サブブロック内の代表画素以外の各画素の順に、アドレスが割り当てられるように構成されている。このような書込アドレスWADRSにより、色変換する画素の読み出しが容易となる。
The second input buffer 31 receives one block from the first input buffer g1 in response to the enable signal WE from the write control unit 30, and holds the one block. At this time, the second input buffer 31 assigns and holds an address to each pixel of one block in accordance with the write address WADRS.
The write address WADRS is a representative pixel of the first sub-block obtained by dividing one block, a representative pixel of the second sub-block obtained by dividing the first sub-block, Addresses are assigned in the order of pixels other than the representative pixel. Such a write address WADRS makes it easy to read out the pixel for color conversion.

図5は、1ブロックに割り当てられたアドレスの例を示している。図5において、丸は画素を表し、丸中の0〜15又は0〜15とa〜cの組み合わせは各画素に割り当てられたアドレスを表している。
図5に示すように、8×8画素からなる1ブロックを主走査方向及び副走査方向に等分割すると、4×4画素からなる4つの第1サブブロックが得られる。同様にして、この第1サブブロックをさらに等分割すると、2×2画素からなる16の第2サブブロックが得られる。
FIG. 5 shows an example of addresses assigned to one block. In FIG. 5, a circle represents a pixel, and 0 to 15 or a combination of 0 to 15 and a to c in the circle represents an address assigned to each pixel.
As shown in FIG. 5, when one block of 8 × 8 pixels is equally divided in the main scanning direction and the sub-scanning direction, four first sub-blocks of 4 × 4 pixels are obtained. Similarly, when the first sub-block is further equally divided, 16 second sub-blocks composed of 2 × 2 pixels are obtained.

1ブロックの分割方法はこれに限定されない。例えば、8×8画素を副走査方向に4分割し、8×2画素からなる4つの第1サブブロックを得て、当該第1サブブロックを主走査方向に2分割し、4×2画素からなる8つの第2サブブロックを得ることもできる。
画像データを低解像度に変換する可能性を考慮すると、第2サブブロックは主走査方向と副走査方向の画素数が同じであることが好ましい。
The division method for one block is not limited to this. For example, 8 × 8 pixels are divided into four in the sub-scanning direction to obtain four first sub-blocks each consisting of 8 × 2 pixels, and the first sub-block is divided into two in the main scanning direction to obtain 4 × 2 pixels. Eight second sub-blocks can be obtained.
Considering the possibility of converting the image data to a low resolution, it is preferable that the second sub-block has the same number of pixels in the main scanning direction and the sub-scanning direction.

第1サブブロック及び第2サブブロックの先頭画素、すなわち第1サブブロック内又は第2サブブロック内の左上に位置する画素が、代表画素である。先頭画素が代表画素である場合、第1サブブロックと第2サブブロックの代表画素が同じ画素である場合がある。
代表画素は、先頭画素に限らず、第1サブブロック内又は第2サブブロック内のいずれか1画素であればよい。第1サブブロックは先頭画素、第2サブブロックは右上に位置する画素というように、それぞれ異なる設定であってもよい。
The first pixel of the first sub-block and the second sub-block, that is, the pixel located at the upper left in the first sub-block or the second sub-block is the representative pixel. When the first pixel is a representative pixel, the representative pixel of the first sub-block and the second sub-block may be the same pixel.
The representative pixel is not limited to the top pixel, and may be any one pixel in the first sub-block or the second sub-block. The first sub-block may have different settings, such as the first pixel and the second sub-block may be located in the upper right.

1ブロックの各画素は、左上の画素を先頭に1ラインずつ入力される。書込アドレスWADRSは、0、0a、4、4a、1、1a、7、7a、0b、0c・・・の順に出力されるので、先頭画素から順にこのアドレスが割り当てられる。その結果、図5に示すように、各第1サブブロックの代表画素に0〜3のアドレスが割り当てられる。各第2サブブロックの代表画素には、第1サブブロックの代表画素として既にアドレスが割り当てられた代表画素を除いて、4〜15のアドレスが割り当てられる。
また、各第2サブブロック内の代表画素以外の3画素には、第2サブブロック内の位置に応じて、当該代表画素のアドレス0から15にa〜cを組み合わせたアドレスが割り当てられる。例えば、代表画素のアドレスが0の第2サブブロックは、左上の先頭画素が0、右上の画素は0a、左下の画素は0b、右下の画素は0cのアドレスがそれぞれ割り当てられている。
Each pixel in one block is input line by line starting from the top left pixel. Since the write address WADRS is output in the order of 0, 0a, 4, 4a, 1, 1a, 7, 7a, 0b, 0c,..., This address is assigned in order from the first pixel. As a result, as shown in FIG. 5, addresses 0 to 3 are assigned to the representative pixels of the first sub-blocks. Addresses 4 to 15 are assigned to the representative pixels of each second sub-block, except for representative pixels that have already been assigned addresses as representative pixels of the first sub-block.
Further, the three pixels other than the representative pixel in each second sub-block are assigned addresses in which a to c are combined with addresses 0 to 15 of the representative pixel according to the position in the second sub-block. For example, in the second sub-block whose representative pixel address is 0, the top left pixel is assigned 0, the top right pixel is 0a, the bottom left pixel is 0b, and the bottom right pixel is assigned the address 0c.

第2入力バッファー31は、読出制御部36から出力されたイネーブル信号に応じて、セレクター35から出力された読出アドレスRADRSに対応する画素を、第1比較器32a又は読出制御部37に出力する。
読出制御部36からのイネーブル信号が0である場合、セレクター35から0〜15の読出アドレスRADRSが出力される。この場合、第2入力バッファー31は、アドレス0〜15を代表画素とする各第2サブブロックを、順次第1比較器32aに出力する。例えば、0のアドレスが入力されると、第2入力バッファー31は、アドレス0,0a,0b,0cの4画素を第1比較器32aに出力する。
The second input buffer 31 outputs the pixel corresponding to the read address RADRS output from the selector 35 to the first comparator 32 a or the read control unit 37 in response to the enable signal output from the read control unit 36.
When the enable signal from the read control unit 36 is 0, read addresses RADRS of 0 to 15 are output from the selector 35. In this case, the second input buffer 31 sequentially outputs each second sub-block having addresses 0 to 15 as representative pixels to the first comparator 32a. For example, when an address of 0 is input, the second input buffer 31 outputs four pixels of addresses 0, 0a, 0b, and 0c to the first comparator 32a.

読出制御部36からのイネーブル信号が1である場合、セレクター35から0〜3の読出アドレスRADRSが出力される。この場合、第2入力バッファー31は、アドレス0〜3の各第1サブブロックの代表画素を読出制御部37に出力する。
読出制御部36からのイネーブル信号が2である場合、セレクター35から読出アドレスRADRSとして、第2比較器32bによる比較結果が不一致であった第1サブブロック内の各第2サブブロックの代表画素のアドレスが出力される。第2入力バッファー31は、当該代表画素を読出制御部37に出力する。
読出制御部36からのイネーブル信号が3である場合、セレクター35から読出アドレスRADRSとして、第1比較器32aによる比較結果が不一致であった第2サブブロックの代表画素のアドレスが出力される。第2入力バッファー31は、当該代表画素以外の第2サブブロック内の3画素を読出制御部37に出力する。
When the enable signal from the read control unit 36 is 1, the read address RADRS of 0 to 3 is output from the selector 35. In this case, the second input buffer 31 outputs the representative pixel of each first sub-block having addresses 0 to 3 to the read control unit 37.
When the enable signal from the read control unit 36 is 2, the representative address of each second sub-block in the first sub-block in the first sub-block in which the comparison result by the second comparator 32b did not coincide with the read address RADRS from the selector 35. The address is output. The second input buffer 31 outputs the representative pixel to the readout control unit 37.
When the enable signal from the read control unit 36 is 3, the selector 35 outputs the address of the representative pixel of the second sub-block where the comparison result by the first comparator 32a does not match as the read address RADRS. The second input buffer 31 outputs three pixels in the second sub-block other than the representative pixel to the read control unit 37.

第1比較器32aは、第2入力バッファー31から第2サブブロックの各画素が出力される毎に、各画素の画素値を比較し、第2サブブロック内の各画素値が一致か又は不一致かを示す比較結果を、メモリー制御部33に出力する。第1比較器32aは、比較結果が不一致であった第2サブブロックの代表画素のアドレスを第1メモリー34aに出力する。
また、第1比較器32aは、比較結果とともに各第2サブブロックの代表画素を第2比較器32bに出力する。
The first comparator 32a compares the pixel values of the pixels every time each pixel of the second sub-block is output from the second input buffer 31, and the pixel values in the second sub-block match or do not match. A comparison result indicating this is output to the memory control unit 33. The first comparator 32a outputs to the first memory 34a the address of the representative pixel of the second sub-block whose comparison result does not match.
The first comparator 32a outputs the representative pixel of each second sub-block together with the comparison result to the second comparator 32b.

第2比較器32bは、第1比較器32aから第1サブブロック内の各第2サブブロックの代表画素が出力される毎に、各代表画素の画素値を比較する。第2比較器32bは、各代表画素の画素値が一致し、かつ各第2サブブロックの第1比較器32aによる比較結果が全て一致である場合、第1サブブロック内の各画素値が一致することを示す比較結果を、メモリー制御部33に出力する。一方、各代表画素の画素値が不一致であるか又は何れかの第2サブブロックの第1比較器32aによる比較結果が不一致である場合、第1サブブロック内の各画素値が不一致であることを示す比較結果を、メモリー制御部33に出力する。   The second comparator 32b compares the pixel value of each representative pixel every time the representative pixel of each second sub-block in the first sub-block is output from the first comparator 32a. The second comparator 32b matches the pixel values in the first sub-block when the pixel values of the representative pixels match and the comparison results by the first comparators 32a of the second sub-blocks match. A comparison result indicating that this is to be performed is output to the memory control unit 33. On the other hand, when the pixel values of the representative pixels do not match or the comparison result by the first comparator 32a of any second sub-block does not match, the pixel values in the first sub-block do not match. Is output to the memory control unit 33.

第2比較器32bは、比較結果が不一致であった第1サブブロック内の各第2サブブロックの代表画素のアドレスを、第2メモリー34bに出力する。代表画素が第1サブブロック及び第2サブブロックの先頭画素である場合、第1サブブロックと第2サブブロックの代表画素が同じ画素がある。この場合、同じ画素の色変換を避けるため、第2比較器32bは、第2サブブロックの代表画素であっても、第1サブブロックの代表画素でもあるアドレス0〜3を除く。   The second comparator 32b outputs, to the second memory 34b, the address of the representative pixel of each second sub-block in the first sub-block whose comparison result does not match. When the representative pixel is the first pixel of the first sub-block and the second sub-block, there is a pixel having the same representative pixel of the first sub-block and the second sub-block. In this case, in order to avoid color conversion of the same pixel, the second comparator 32b excludes addresses 0 to 3 which are both the representative pixel of the second sub-block and the representative pixel of the first sub-block.

色変換時、入力された画像データの色空間に応じてLUTが切り替えられる場合、第1比較器32a及び第2比較器32bは、各画素値とともに色空間を比較し、画素値及び色空間が一致する場合、各画素値が一致の比較結果を出力し、画素値又は色空間が不一致の場合、各画素値が不一致の比較結果を出力することが好ましい。
これにより、色変換された画素と画素値及び色空間が一致する画素に、当該色変換された画素の画素値をコピーすることができる。また、画素値又は色空間が一致しない画素を、色空間に応じたLUTにより色変換することができる。入力された画像データ中に色空間が異なる画素が混在していても、各色空間に応じた色変換を行うことができる。
At the time of color conversion, when the LUT is switched according to the color space of the input image data, the first comparator 32a and the second comparator 32b compare the color space with each pixel value, and the pixel value and the color space are When the pixel values match, it is preferable to output a comparison result where the pixel values match, and when the pixel values or color spaces do not match, it is preferable to output a comparison result where the pixel values do not match.
As a result, the pixel value of the color-converted pixel can be copied to a pixel whose pixel value and color space match the color-converted pixel. In addition, pixels whose pixel values or color spaces do not match can be color-converted by an LUT corresponding to the color space. Even if pixels with different color spaces are mixed in the input image data, color conversion corresponding to each color space can be performed.

また、色変換時に属性に応じてLUTが切り替えられる場合、第1比較器32a及び第2比較器32bは、各画素値とともに属性を比較し、画素値及び属性が一致する場合、各画素値が一致の比較結果を出力し、画素値又は属性が不一致の場合、各画素値が不一致の比較結果を出力することが好ましい。
これにより、色変換された画素と画素値及び属性が一致する画素に、当該色変換された画素の画素値をコピーすることができる。また、画素値又は属性が一致しない画素を、属性に応じたLUTにより色変換することができる。入力された画像データ中に属性が異なる画素が混在していても、各属性に応じた色変換を行うことができる。
なお、画像データは属性データとともに出力されるので、この属性データにより、第1比較器32a及び第2比較器32bは各画素の属性を比較することができる。
In addition, when the LUT is switched according to the attribute at the time of color conversion, the first comparator 32a and the second comparator 32b compare the attribute together with each pixel value, and when the pixel value and the attribute match, each pixel value is It is preferable to output a comparison result of matching, and output a comparison result of mismatching pixel values when the pixel values or attributes do not match.
Accordingly, the pixel value of the color-converted pixel can be copied to the pixel whose pixel value and attribute match the color-converted pixel. In addition, pixels whose pixel values or attributes do not match can be color-converted by an LUT corresponding to the attributes. Even if pixels having different attributes are mixed in the input image data, color conversion corresponding to each attribute can be performed.
Since the image data is output together with the attribute data, the first comparator 32a and the second comparator 32b can compare the attribute of each pixel based on the attribute data.

図6は、第1比較器32a及び第2比較器32bが比較に要する処理時間を示す図である。
各第1比較器32a及び第2比較器32bは、1回の比較、すなわち4つの画素を入力し比較を開始してから、比較を終了して比較結果を出力するまで、3クロック要する。よって、図6に示すように、代表画素のアドレスが0〜15の全ての第2サブブロックの比較が終了するまでに要する処理時間は、18(18=16−1+3)クロックである。
代表画素のアドレスが6、9、12、15の各第2サブブロックの比較が終了した時点で、第1サブブロックの比較が可能となり、第2比較器32bの比較が開始される。よって、全ての第1サブブロック及び第2サブブロックの比較が終了するまでに要する処理時間は、21(21=19−1+3)クロックである。全ての比較が終了した時点で、色変換部g3への画素の入力が開始される。
FIG. 6 is a diagram showing the processing time required for the comparison by the first comparator 32a and the second comparator 32b.
Each of the first comparator 32a and the second comparator 32b takes three clocks from the start of one comparison, that is, the input of four pixels to the end of the comparison and the output of the comparison result. Therefore, as shown in FIG. 6, the processing time required until the comparison of all the second sub-blocks whose representative pixel addresses are 0 to 15 is 18 (18 = 16−1 + 3) clocks.
When the comparison of the second sub-blocks whose representative pixel addresses are 6, 9, 12, and 15 is completed, the first sub-blocks can be compared, and the comparison of the second comparator 32b is started. Therefore, the processing time required until the comparison of all the first sub-blocks and the second sub-blocks is 21 (21 = 19−1 + 3) clocks. When all the comparisons are completed, pixel input to the color conversion unit g3 is started.

メモリー制御部33は、第1比較器32aによる比較が終了した時、第1比較器32aから出力された比較結果が不一致であれば、第1メモリー34aにイネーブル信号WE及び書込アドレスWADRSを出力する。これにより、メモリー制御部33は、16の第2サブブロックの比較が終了する毎に、第1比較器32aから出力されたアドレスを、第1メモリー34aに書き込むことができる。   The memory control unit 33 outputs the enable signal WE and the write address WADRS to the first memory 34a if the comparison result output from the first comparator 32a does not match when the comparison by the first comparator 32a is completed. To do. Thereby, the memory control unit 33 can write the address output from the first comparator 32a in the first memory 34a every time the comparison of the 16 second sub-blocks is completed.

メモリー制御部33は、第2比較器32bによる比較が終了した時、第2比較器32bから出力された比較結果が不一致であれば、第2メモリー34bにイネーブル信号WE及び書込アドレスWADRSを出力する。これにより、メモリー制御部33は、4つの第1サブブロックの比較が終了する毎に、第2比較器32bから出力されたアドレスを第2メモリー34bに書き込むことができる。
なお、メモリー制御部33が出力する書込アドレスWADRS及び読出アドレスRADRSは、各第1メモリー34a及び第2メモリー34bに書き込まれたアドレスを、書き込まれた順に読み出すためのアドレスである。
The memory control unit 33 outputs the enable signal WE and the write address WADRS to the second memory 34b if the comparison result output from the second comparator 32b does not match when the comparison by the second comparator 32b is completed. To do. Accordingly, the memory control unit 33 can write the address output from the second comparator 32b to the second memory 34b every time the comparison of the four first sub-blocks is completed.
Note that the write address WADRS and the read address RADRS output by the memory control unit 33 are addresses for reading the addresses written in the first memory 34a and the second memory 34b in the order of writing.

メモリー制御部33は、カウンターC1のカウント値から、各第1比較器32a及び第2比較器32bがそれぞれ比較を終了するタイミングを判断することができる。
図6に示すように、各第1サブブロックの比較は、第1比較器32aへの画素の入力を開始してから、12、15、18及び21クロック後にそれぞれ終了する。各第2サブブロックの比較は、第1比較器32aへの画素の入力を開始して3クロック後から18クロック後まで1クロック毎に終了する。カウンターC1は、第1比較器32aへの画素の入力開始と同時にカウントを開始するので、メモリー制御部33は、カウント値が12、15、18及び21の時、第2比較器32bの比較が終了し、カウント値が3〜18のそれぞれの時、第1比較器32aの比較が終了したと判断する。
The memory control unit 33 can determine the timing when each of the first comparators 32a and the second comparators 32b ends the comparison from the count value of the counter C1.
As shown in FIG. 6, the comparison of each first sub-block ends after 12, 15, 18 and 21 clocks from the start of pixel input to the first comparator 32a. The comparison of each second sub-block is completed every clock from 3 clocks to 18 clocks after the pixel input to the first comparator 32a is started. The counter C1 starts counting simultaneously with the start of pixel input to the first comparator 32a. Therefore, when the count values are 12, 15, 18, and 21, the memory control unit 33 compares the second comparator 32b. When the count value is 3-18, it is determined that the comparison of the first comparator 32a is completed.

メモリー制御部33は、第1比較器32a及び第2比較器32bによる比較が全て終了し、各第1サブブロックの代表画素を色変換部g3に入力し終えた時、第2メモリー34bに読出アドレスRADRSを出力し、第2メモリー34bが保持するアドレスを読み出す。また、この時、メモリー制御部33は、処理終了信号DOF_1を出力する。
メモリー制御部33は、第2メモリー34bにアドレスが保持された第2サブブロックの代表画素を色変換部g3に入力し終えた時、第1メモリー34aに読出アドレスRADRSを出力し、第1メモリー34aが保持するアドレスを読み出す。また、この時、メモリー制御部33は、処理終了信号DOF_2を出力する。
When all the comparisons by the first comparator 32a and the second comparator 32b are completed and the representative pixels of the respective first sub-blocks have been input to the color conversion unit g3, the memory control unit 33 reads the second memory 34b. The address RADRS is output, and the address held in the second memory 34b is read. At this time, the memory control unit 33 outputs a processing end signal DOF_1.
The memory control unit 33 outputs the read address RADRS to the first memory 34a when the input of the representative pixel of the second sub-block whose address is held in the second memory 34b to the color conversion unit g3 is completed. The address held by 34a is read. At this time, the memory control unit 33 outputs a processing end signal DOF_2.

メモリー制御部33は、第1メモリー34aにアドレスが保持された代表画素以外の第2サブブロック内の各画素を色変換部g3に入力し終えた時、処理終了信号DOF_allを出力する。
第1メモリー34a及び第2メモリー34bにアドレスが保持されていない場合、メモリー制御部33は、第1サブブロックの各代表画素を色変換部g3に入力し終えた時、処理終了信号DOF_allを出力する。
The memory control unit 33 outputs the processing end signal DOF_all when the pixels in the second sub-block other than the representative pixels whose addresses are stored in the first memory 34a have been input to the color conversion unit g3.
When the addresses are not held in the first memory 34a and the second memory 34b, the memory control unit 33 outputs the processing end signal DOF_all when the input of each representative pixel of the first sub-block to the color conversion unit g3 is completed. To do.

なお、メモリー制御部33は、各画素を色変換部g3に入力し終えたタイミングを、カウンターC1のカウント値により判断することができる。
例えば、第1メモリーに2つのアドレスが書き込まれ、第2メモリー34bに3つのアドレスが書き込まれた場合、第1サブブロックの4つの代表画素に続けて3画素、6画素が入力される。メモリー制御部33は、比較終了からそれぞれの画素を色変換部g3に入力し終えたタイミングを、カウンターC1のカウント値によって判断すればよい。
Note that the memory control unit 33 can determine the timing at which each pixel has been input to the color conversion unit g3 based on the count value of the counter C1.
For example, when two addresses are written in the first memory and three addresses are written in the second memory 34b, 3 pixels and 6 pixels are input after the four representative pixels of the first sub-block. The memory control unit 33 may determine the timing at which each pixel has been input to the color conversion unit g3 from the end of the comparison, based on the count value of the counter C1.

メモリー制御部33は、各第1比較器32a及び第2比較器32bから出力された比較結果を、第1サブブロック内及び第2サブブロック内の各画素値の比較結果cmpとして、バッファー制御部g5に出力する。   The memory control unit 33 uses the comparison result output from each of the first comparator 32a and the second comparator 32b as a comparison result cmp of each pixel value in the first sub-block and the second sub-block. Output to g5.

第1メモリー34aは、メモリー制御部33からのイネーブル信号WE及び書込アドレスWADRSに応じて、第1比較器32aから出力されたアドレスを保持する。
第2メモリー34bは、メモリー制御部33からのイネーブル信号WE及び書込アドレスWADRSに応じて、第2比較器32bから出力されたアドレスを保持する。
第1メモリー34a及び第2メモリー34bは、メモリー制御部33からの読出アドレスRADRSに応じて、それぞれ保持しているアドレスをセレクター35に出力する。
The first memory 34a holds the address output from the first comparator 32a in response to the enable signal WE and the write address WADRS from the memory control unit 33.
The second memory 34b holds the address output from the second comparator 32b in response to the enable signal WE and the write address WADRS from the memory control unit 33.
The first memory 34 a and the second memory 34 b output the held addresses to the selector 35 in accordance with the read address RADRS from the memory control unit 33.

第1メモリー34a及び第2メモリー34bは、書き込まれた順にデータを読み出すことができるFIFO(First In First Out)メモリーであることが好ましい。   The first memory 34a and the second memory 34b are preferably FIFO (First In First Out) memories capable of reading data in the order of writing.

セレクター35は、アドレスADRSとして、読出制御部36から入力されたイネーブル信号が0のとき、カウンターC3のカウント値0〜15を順次出力し、イネーブル信号が1のとき、カウンターC2のカウント値0〜3を順次出力する。
また、セレクター35は、アドレスADRSとして、読出制御部36から入力されたイネーブル信号が2のとき、第2メモリー34bから出力されたアドレスを出力し、イネーブル信号が3のとき、第1メモリー34aからされたアドレスを出力する。
セレクター35からのアドレスADRSは、読出アドレスRADRSとして第2入力バッファー31に出力されるとともに、色変換する画素のアドレスADRSとして、バッファー制御部g5に出力される。
The selector 35 sequentially outputs the count value 0 to 15 of the counter C3 when the enable signal input from the read control unit 36 is 0 as the address ADRS, and when the enable signal is 1, the selector 35 outputs the count value 0 to 0 of the counter C2. 3 is output sequentially.
The selector 35 outputs the address output from the second memory 34b as the address ADRS when the enable signal input from the read controller 36 is 2, and from the first memory 34a when the enable signal is 3. Output the specified address.
The address ADRS from the selector 35 is output to the second input buffer 31 as the read address RADRS, and is also output to the buffer control unit g5 as the address ADRS of the pixel for color conversion.

読出制御部36及び37は、第2入力バッファー31に出力するイネーブル信号及び読出アドレスRADRSを制御して、第2入力バッファー31から第2サブブロック単位で画素を読み出すとともに、色変換する画素を読み出す。
具体的には、第2入力バッファー31に新たな1ブロックが保持されると、読出制御部36は、0のイネーブル信号をセレクター35及び第2入力バッファー31に出力する。
The read control units 36 and 37 control the enable signal output to the second input buffer 31 and the read address RADRS to read out pixels from the second input buffer 31 in units of second sub-blocks and read out pixels to be color-converted. .
Specifically, when one new block is held in the second input buffer 31, the read control unit 36 outputs an enable signal of 0 to the selector 35 and the second input buffer 31.

また、読出制御部36は、第1比較器32a及び第2比較器32bの比較が終了した時、1のイネーブル信号をセレクター35及び第2入力バッファー31に出力する。
図6に示すように、各第1比較器32a及び第2比較器32bによる比較が終了するタイミングは、0のイネーブル信号の出力により第1比較器32aへの画素の入力が開始されてから、21クロック後である。よって、読出制御部36は、0のイネーブル信号を出力してから21クロック後に、1のイネーブル信号を出力する。
Further, the read control unit 36 outputs one enable signal to the selector 35 and the second input buffer 31 when the comparison of the first comparator 32 a and the second comparator 32 b is completed.
As shown in FIG. 6, the timing at which the comparisons by the first comparators 32 a and the second comparators 32 b are completed is after the pixel input to the first comparator 32 a is started by the output of the 0 enable signal. 21 clocks later. Therefore, the read control unit 36 outputs a 1 enable signal 21 clocks after the 0 enable signal is output.

読出制御部36は、メモリー制御部33から処理終了信号DOF_1が出力された時、2のイネーブル信号をセレクター35及び第2入力バッファー31に出力する。
また、読出制御部36は、メモリー制御部33から処理終了信号DOF_2が出力された時、3のイネーブル信号及び第2入力バッファー31をセレクター35に出力する。
The read control unit 36 outputs two enable signals to the selector 35 and the second input buffer 31 when the processing end signal DOF_1 is output from the memory control unit 33.
In addition, when the processing end signal DOF_2 is output from the memory control unit 33, the read control unit 36 outputs the three enable signals and the second input buffer 31 to the selector 35.

読出制御部37は、セレクター35に出力されたイネーブル信号が0であるとき、第2入力バッファー31から色変換部g3への画素の出力を停止する。
セレクター35に出力されたイネーブル信号が1であるとき、第2入力バッファー31からアドレスが0〜3の第1サブブロックの各代表画素が出力される。読出制御部37は、当該代表画素を順次色変換部g3へ出力する。
When the enable signal output to the selector 35 is 0, the read control unit 37 stops the pixel output from the second input buffer 31 to the color conversion unit g3.
When the enable signal output to the selector 35 is 1, each representative pixel of the first sub-block having addresses 0 to 3 is output from the second input buffer 31. The read control unit 37 sequentially outputs the representative pixels to the color conversion unit g3.

セレクター35に出力されたイネーブル信号が2のとき、第2入力バッファー31から不一致の第1サブブロック内の各第2サブブロックの代表画素が出力される。読出制御部37は、当該代表画素を順次色変換部g3へ出力する。
セレクター35に出力されたイネーブル信号が3のとき、第2入力バッファー31から不一致の第2サブブロック内の代表画素以外の各画素が出力される。読出制御部37は、当該画素を順次色変換部g3へ出力する。
When the enable signal output to the selector 35 is 2, the representative pixel of each second sub-block in the first sub-block that does not match is output from the second input buffer 31. The read control unit 37 sequentially outputs the representative pixels to the color conversion unit g3.
When the enable signal output to the selector 35 is 3, each pixel other than the representative pixel in the mismatched second sub-block is output from the second input buffer 31. The read control unit 37 sequentially outputs the pixels to the color conversion unit g3.

カウンターC1は、第2入力バッファー31に1ブロックが入力されると、カウント値をリセットして新たにカウントを開始し、0〜63のカウント値を出力する。
カウンターC2は、先のブロックの処理終了信号DOF_allがメモリー制御部33から出力されると、カウント値をリセットして新たにカウントを開始し、0〜3のカウント値を出力する。
カウンターC3は、第2入力バッファー31に1ブロックが入力されると、カウント値をリセットして新たにカウントを開始し、0〜15のカウント値を出力する。
When one block is input to the second input buffer 31, the counter C1 resets the count value and newly starts counting, and outputs a count value of 0 to 63.
When the processing end signal DOF_all of the previous block is output from the memory control unit 33, the counter C2 resets the count value and newly starts counting, and outputs a count value of 0 to 3.
When one block is input to the second input buffer 31, the counter C3 resets the count value, newly starts counting, and outputs a count value of 0 to 15.

次に、画像処理装置G1による色変換時の処理手順を説明する。
最初に、バッファー制御部g0が、画像メモリー3に保持されている画像データをブロック単位で第1入力バッファーg1に書き込み、第1入力バッファーg1が複数のブロックを保持する。バッファー制御部g0は、複数のブロックのうちの1ブロックを第1入力バッファーg1から読み出し、比較処理部g2Aに出力する。
Next, a processing procedure at the time of color conversion by the image processing apparatus G1 will be described.
First, the buffer control unit g0 writes the image data held in the image memory 3 to the first input buffer g1 in units of blocks, and the first input buffer g1 holds a plurality of blocks. The buffer control unit g0 reads one block out of the plurality of blocks from the first input buffer g1, and outputs it to the comparison processing unit g2A.

比較処理部g2Aでは、入力された1ブロックを書込制御部30が第2入力バッファー31に書き込み、図5に示すようにアドレスを割り当てる。
最初の1ブロック目のとき、第2入力バッファー31に1ブロックが書き込まれると、各カウンターC1〜C3がカウントを開始する。また、読出制御部36は、0のイネーブル信号をセレクター35及び第2入力バッファー31に出力する。
In the comparison processing unit g2A, the write control unit 30 writes one input block into the second input buffer 31, and assigns an address as shown in FIG.
At the first block, when one block is written in the second input buffer 31, the counters C1 to C3 start counting. Further, the read control unit 36 outputs a 0 enable signal to the selector 35 and the second input buffer 31.

セレクター35は、0のイネーブル信号に応じて、カウンターC3のカウント値0〜15を、読出アドレスRADRSとして第2入力バッファー31に順次出力する。
第2入力バッファー31は、0のイネーブル信号及び読出アドレスRADRSに応じて、代表画素のアドレスが0〜15の順に、第2サブブロックの各画素を第1比較器32aに出力する。
The selector 35 sequentially outputs the count values 0 to 15 of the counter C3 to the second input buffer 31 as the read address RADRS in response to the 0 enable signal.
The second input buffer 31 outputs the pixels of the second sub-block to the first comparator 32a in the order of the representative pixel addresses from 0 to 15 in response to the enable signal of 0 and the read address RADRS.

第1比較器32aは、第2サブブロックの各画素の画素値を比較し、その比較結果をメモリー制御部33に出力する。比較結果が不一致の場合、第1比較器32aは不一致の第2サブブロックの代表画素のアドレスを第1メモリー34aに出力する。
メモリー制御部33は、第1比較器32aから不一致の比較結果が入力されると、イネーブル信号WE及び書込アドレスWADRSを第1メモリー34aに出力し、第1比較器32aから出力されたアドレスを第1メモリー34aに書き込む。
The first comparator 32 a compares the pixel values of the pixels of the second sub-block and outputs the comparison result to the memory control unit 33. If the comparison result does not match, the first comparator 32a outputs the address of the representative pixel of the mismatched second sub-block to the first memory 34a.
When a mismatch result is input from the first comparator 32a, the memory control unit 33 outputs the enable signal WE and the write address WADRS to the first memory 34a and the address output from the first comparator 32a. Write to the first memory 34a.

また、第1比較器32aは、比較結果とともに第2サブブロックの代表画素を第2比較器32bに出力する。
第2比較器32bは、第1サブブロック内の各第2サブブロックの代表画素が入力されると、各代表画素の画素値を比較する。第2比較器32bは、この比較結果と第1比較器32aの比較結果から、第1サブブロック内の各画素値の比較結果をメモリー制御部33に出力する。第2比較器32bは、比較結果が不一致であった第1サブブロック内の各第2サブブロックの代表画素のアドレスを第2メモリー34bに出力する。
メモリー制御部33は、第2比較器32bから不一致の比較結果が入力されると、イネーブル信号WE及び書込アドレスWADRSを第2メモリー34bに出力し、第2比較器32bから出力されたアドレスを第2メモリー34bに書き込む。
The first comparator 32a outputs the representative pixel of the second sub-block together with the comparison result to the second comparator 32b.
The second comparator 32b compares the pixel values of the representative pixels when the representative pixels of the second sub blocks in the first sub block are input. From the comparison result and the comparison result of the first comparator 32a, the second comparator 32b outputs the comparison result of each pixel value in the first sub-block to the memory control unit 33. The second comparator 32b outputs to the second memory 34b the address of the representative pixel of each second sub-block in the first sub-block where the comparison result does not match.
When the mismatched comparison result is input from the second comparator 32b, the memory control unit 33 outputs the enable signal WE and the write address WADRS to the second memory 34b, and the address output from the second comparator 32b. Write to the second memory 34b.

読出制御部36は、第1比較器32a及び第2比較器32bの比較が終了すると、セレクター35に1のイネーブル信号を出力する。セレクター35は、1のイネーブル信号に応じて、カウンターC2からのカウント値0〜3を読出アドレスRADRSとして順次出力する。第2入力バッファー31は、0〜3の読出アドレスRADRSに応じて、各第1サブブロックの代表画素を順次読出制御部37に出力する。   When the comparison between the first comparator 32a and the second comparator 32b is completed, the read control unit 36 outputs an enable signal of 1 to the selector 35. The selector 35 sequentially outputs the count values 0 to 3 from the counter C2 as the read address RADRS in response to one enable signal. The second input buffer 31 sequentially outputs the representative pixels of each first sub-block to the read control unit 37 in accordance with the read addresses RADRS from 0 to 3.

メモリー制御部33は、第1比較器32a及び第2比較器32bによる比較が終了し、各第1サブブロックの代表画素を色変換部g3へ入力し終えた時、処理終了信号DOF_1を出力する。
また、メモリー制御部33は、第2メモリー34bに読出アドレスRADRSを出力する。第2メモリー34bは、保持しているアドレスを出力する。
The memory control unit 33 outputs the processing end signal DOF_1 when the comparison by the first comparator 32a and the second comparator 32b is completed and the representative pixel of each first sub-block has been input to the color conversion unit g3. .
Further, the memory control unit 33 outputs the read address RADRS to the second memory 34b. The second memory 34b outputs the held address.

読出制御部36は、処理終了信号DOF_1に応じて、2のイネーブル信号をセレクター35に出力する。セレクター35は、2のイネーブル信号に応じて、第2メモリー34bから出力されたアドレスを読出アドレスRADRSとして出力する。第2入力バッファー31は、読出アドレスRADRSに応じて、不一致の第1サブブロック内にある各第2サブブロックの代表画素を出力する。   The read control unit 36 outputs two enable signals to the selector 35 in response to the processing end signal DOF_1. The selector 35 outputs the address output from the second memory 34b as the read address RADRS in response to the two enable signals. The second input buffer 31 outputs the representative pixel of each second sub-block in the first sub-block that does not match according to the read address RADRS.

メモリー制御部33は、第2メモリー34bにアドレスが保持された各第2サブブロックの代表画素を色変換部g3へ入力し終えた時、処理終了信号DOF_2を出力する。
また、メモリー制御部33は、第1メモリー34aに読出アドレスRADRSを出力する。第1メモリー34aは、保持しているアドレスを出力する。
The memory control unit 33 outputs the processing end signal DOF_2 when the input of the representative pixel of each second sub-block whose address is held in the second memory 34b to the color conversion unit g3.
In addition, the memory control unit 33 outputs the read address RADRS to the first memory 34a. The first memory 34a outputs the held address.

読出制御部36は、処理終了信号DOF_2に応じて、3のイネーブル信号をセレクター35に出力する。セレクター35は、3のイネーブル信号に応じて、第1メモリー34aから出力されたアドレスを読出アドレスRADRSとして出力する。第2入力バッファー31は、読出アドレスRADRSに応じて、不一致の第2サブブロック内の代表画素以外の各画素を出力する。
読出制御部37は、セレクター35に入力されたイネーブル信号が1〜3であるとき、第2入力バッファー31から出力された画素を、色変換部g3へ順次出力する。
The read control unit 36 outputs three enable signals to the selector 35 in response to the processing end signal DOF_2. The selector 35 outputs the address output from the first memory 34a as the read address RADRS in response to the three enable signals. The second input buffer 31 outputs each pixel other than the representative pixel in the mismatched second sub-block according to the read address RADRS.
When the enable signal input to the selector 35 is 1 to 3, the read control unit 37 sequentially outputs the pixels output from the second input buffer 31 to the color conversion unit g3.

メモリー制御部33は、第1メモリー34aにアドレスが保持された代表画素以外の第2サブブロック内の各画素を色変換部g3へ入力し終えた時、処理終了信号DOF_allを出力する。
この処理終了信号DOF_allに応じて、第2入力バッファー31には次のブロックが書き込まれ、カウンターC2がカウント値をリセットして新たにカウントを開始する。
以降、上述した処理手順と同様にして各ブロックの色変換する画素が、比較処理部g2Aから出力される。
The memory control unit 33 outputs the processing end signal DOF_all when the pixels in the second sub-block other than the representative pixel whose address is held in the first memory 34a has been input to the color conversion unit g3.
In response to the processing end signal DOF_all, the next block is written into the second input buffer 31, and the counter C2 resets the count value and newly starts counting.
Thereafter, the pixel for color conversion of each block is output from the comparison processing unit g2A in the same manner as the processing procedure described above.

図7(a)は、色変換部g3への画素の入力順の例を示している。
1ブロック目において、代表画素のアドレスが0及び4の第2サブブロックの比較結果が不一致である場合、代表画素のアドレスが0の第1サブブロックの比較結果も不一致である。この場合、第1メモリー34aにはアドレス0及び4が保持され、第2メモリー34bにはアドレス4、5及び6が保持されている。その結果、図7(a)に示すように、各第1サブブロックの代表画素(アドレス0〜3)、不一致の第1サブブロック内の各第2サブブロックの代表画素(アドレス4、5、6)、不一致の第2サブブロック内の代表画素以外の各画素(アドレス0a、0b、0c、4a、4b、4c)の順で、色変換する画素が色変換部g3へ入力される。2〜4ブロック目は、第1サブブロック及び第2サブブロックのいずれの比較結果も一致であるので、各第1サブブロックの代表画素(アドレス0〜3)のみ色変換部g3へ入力される。
FIG. 7A shows an example of the input order of pixels to the color conversion unit g3.
In the first block, when the comparison results of the second sub-blocks whose representative pixel addresses are 0 and 4 do not match, the comparison results of the first sub-block whose representative pixel address is 0 also do not match. In this case, addresses 0 and 4 are held in the first memory 34a, and addresses 4, 5, and 6 are held in the second memory 34b. As a result, as shown in FIG. 7A, the representative pixel (address 0 to 3) of each first sub-block, the representative pixel (address 4, 5, 6) Pixels for color conversion are input to the color conversion unit g3 in the order of pixels (addresses 0a, 0b, 0c, 4a, 4b, 4c) other than the representative pixels in the mismatched second sub-block. In the second to fourth blocks, since the comparison results of both the first subblock and the second subblock match, only the representative pixels (addresses 0 to 3) of each first subblock are input to the color conversion unit g3. .

図7(b)は、1ブロック目において、さらに代表画素のアドレスが9の第2サブブロックの比較結果が不一致であった場合の入力順の例を示している。
この場合、代表画素のアドレスが1の第1サブブロックの比較結果も不一致である。第1メモリー34aにはアドレス0、4及び9が保持され、第2メモリー34bにはアドレス4、5、6、7、8及び9が保持されている。その結果、図7(b)に示すように、各第1サブブロックの代表画素(アドレス0〜3)、不一致の第1サブブロック内の各第2サブブロックの代表画素(アドレス4〜9)、不一致の第2サブブロックの代表画素以外の各画素(アドレス0a、0b、0c、4a、4b、4c、9a、9b、9c)の順に、色変換する画素が色変換部g3へ入力される。
FIG. 7B shows an example of the input order in the case where the comparison result of the second sub-block whose address of the representative pixel is 9 does not match in the first block.
In this case, the comparison result of the first sub-block whose representative pixel address is 1 also does not match. Addresses 0, 4 and 9 are held in the first memory 34a, and addresses 4, 5, 6, 7, 8 and 9 are held in the second memory 34b. As a result, as shown in FIG. 7B, the representative pixels (addresses 0 to 3) of the first sub-blocks and the representative pixels (addresses 4 to 9) of the second sub-blocks in the mismatched first sub-blocks. Pixels for color conversion are input to the color conversion unit g3 in the order of pixels (addresses 0a, 0b, 0c, 4a, 4b, 4c, 9a, 9b, and 9c) other than the representative pixels of the mismatched second sub-block. .

図7(a)に示す例において、比較処理部g2Aに第2メモリー34bが無く、第1メモリー34aのみの構成であった場合、不一致の画素がある1ブロック目において、図7(c)に示すように全ての第2サブブロックの代表画素(アドレス0〜15)を色変換部g3へ入力する必要がある。その後、第1メモリー34aにアドレスが保持された不一致の第2サブブロックの代表画素以外の各画素(アドレス0a,0b,0c,0d,4a,4b,4c)が色変換部g3へ入力される。
図7(a)と図7(c)を比較して分かるように、比較処理部g2Aが第2メモリー34bを備えることによって、色変換部g3へ入力する画素の数を減少させることができ、色変換の処理時間を短縮することができる。
2〜4ブロック目のように1ブロックの全画素が一致する場合、第1サブブロックの代表画素(アドレス0〜3)のみを色変換部g3へ入力する点は同じである。
なお、このようなアドレス制御を行う場合、カウンターC2は0〜15をカウントする。全画素が一致する場合、第1サブブロックの代表画素を色変換部g3へ入力した時点で、メモリー制御部33が処理終了信号DOF_allを出力する。
In the example shown in FIG. 7A, when the comparison processing unit g2A has no second memory 34b and only the first memory 34a, in the first block where there is a mismatched pixel, FIG. As shown, it is necessary to input the representative pixels (addresses 0 to 15) of all the second sub-blocks to the color conversion unit g3. Thereafter, each pixel (address 0a, 0b, 0c, 0d, 4a, 4b, 4c) other than the representative pixel of the mismatched second sub-block whose address is held in the first memory 34a is input to the color conversion unit g3. .
As can be seen by comparing FIG. 7A and FIG. 7C, the comparison processing unit g2A includes the second memory 34b, thereby reducing the number of pixels input to the color conversion unit g3. Color conversion processing time can be shortened.
When all the pixels of one block match as in the second to fourth blocks, only the representative pixel (address 0 to 3) of the first sub-block is input to the color conversion unit g3.
When such address control is performed, the counter C2 counts 0 to 15. If all the pixels match, the memory control unit 33 outputs the processing end signal DOF_all when the representative pixel of the first sub-block is input to the color conversion unit g3.

色変換部g3は、比較処理部g2Aから出力された画素を色変換し、色変換後の画素を出力バッファーg4に出力する。
バッファー制御部g5は、比較処理部g2Aのセレクター35から出力されたアドレスADRSを、書込アドレスWADRSとして出力バッファーg4に出力する。これにより、バッファー制御部g5は、色変換された画素を出力バッファーg4に書き込むことができる。
また、バッファー制御部g5は、比較処理部g2Aのメモリー制御部33から出力された比較結果cmpが一致の第1サブブロック内の各画素に、当該第1サブブロックの代表画素の色変換後の画素値をコピーして書き込む。同様に、バッファー制御部g5は、比較結果cmpが一致の第2サブブロック内の各画素に、当該第2サブブロックの代表画素の色変換後の画素値をコピーして書き込む。
The color conversion unit g3 performs color conversion on the pixel output from the comparison processing unit g2A, and outputs the pixel after color conversion to the output buffer g4.
The buffer control unit g5 outputs the address ADRS output from the selector 35 of the comparison processing unit g2A to the output buffer g4 as the write address WADRS. Thereby, the buffer control unit g5 can write the color-converted pixel in the output buffer g4.
In addition, the buffer control unit g5 applies, to each pixel in the first subblock with the same comparison result cmp output from the memory control unit 33 of the comparison processing unit g2A, after color conversion of the representative pixel of the first subblock. Copy and write pixel values. Similarly, the buffer control unit g5 copies and writes the pixel value after color conversion of the representative pixel of the second sub-block to each pixel in the second sub-block with the same comparison result cmp.

図8は、コピー例を示している。
代表画素のアドレスが0及び4の第2サブブロックの比較結果が不一致である場合、色変換部g3により色変換された画素は、アドレスが0、1、2、3、4、5、6、0a、0b、0c、4a、4b及び4cの画素である。当該アドレスがバッファー制御部g5から書込アドレスWADRSとして出力されるので、出力バッファーg4には、図8に示すように色変換後の画素値が書き込まれる。
FIG. 8 shows a copy example.
When the comparison results of the second sub-blocks whose representative pixel addresses are 0 and 4 do not match, the pixels subjected to color conversion by the color conversion unit g3 have addresses 0, 1, 2, 3, 4, 5, 6, These are pixels 0a, 0b, 0c, 4a, 4b and 4c. Since the address is output as the write address WADRS from the buffer control unit g5, the pixel value after color conversion is written in the output buffer g4 as shown in FIG.

色変換されなかった画素は、第1サブブロック又は第2サブブロックの代表画素と画素値が一致する画素である。よって、バッファー制御部g5は、色変換されなかった画素に対し、画素値が一致する第1サブブロック単位又は第2サブブロック単位で、各代表画素の画素値をコピーして書き込む。例えば、代表画素のアドレスが5の第2サブブロックの比較結果cmpは一致である。バッファー制御部g5は、図8に示すようにアドレスが5の代表画素の色変換後の画素値を、アドレスが5a〜5cの各画素に対し、コピーする。   Pixels that have not undergone color conversion are pixels whose pixel values match the representative pixels of the first sub-block or the second sub-block. Therefore, the buffer control unit g5 copies and writes the pixel value of each representative pixel in the first sub-block unit or the second sub-block unit in which the pixel values match with respect to the pixel that has not undergone color conversion. For example, the comparison result cmp of the second sub-block whose representative pixel address is 5 is the same. As shown in FIG. 8, the buffer control unit g5 copies the pixel value after color conversion of the representative pixel having the address 5 to each pixel having the address 5a to 5c.

バッファー制御部g5は、1ブロックの書き込みを終了すると、読出アドレスRADRSを出力バッファーg4に出力し、1ブロックの画像データを出力バッファーg4から読み出す。この読出アドレスRADRSは、0、0a、4、4a、1、1a、7、7a、0b、0c、4b、4c・・・の順に出力されるので、各画素は元の順番で読み出される。
出力バッファーg4は、バッファー制御部g5からの読出アドレスRADRSに応じて、1ブロックの画像データを出力する。
When the writing of one block is completed, the buffer control unit g5 outputs the read address RADRS to the output buffer g4 and reads the image data of one block from the output buffer g4. Since this read address RADRS is output in the order of 0, 0a, 4, 4a, 1, 1a, 7, 7a, 0b, 0c, 4b, 4c,..., Each pixel is read in the original order.
The output buffer g4 outputs one block of image data according to the read address RADRS from the buffer control unit g5.

以上のように、第1の実施の形態によれば、画像処理装置G1は、画像データをブロック単位で入力し、複数のブロックを保持する第1入力バッファーg1と、第1入力バッファーg1から1ブロックを入力し、当該1ブロック内の各画素の画素値を比較して、当該1ブロックの色変換する画素を出力する比較処理部g2Aと、比較処理部g2Aから出力された画素を色変換する色変換部g3と、出力バッファーg4と、色変換部g3により色変換された画素を出力バッファーg4に書き込み、比較の結果、当該色変換された画素と画素値が一致する画素に対し、当該色変換された画素の画素値をコピーして書き込むバッファー制御部g5と、を備えている。
比較処理部g2Aは、第2入力バッファー31と、第1入力バッファーg1に保持された1ブロックを、第2入力バッファー31に書き込む書込制御部30と、1ブロックを分割して得られた第1サブブロックを、さらに分割して得られた第2サブブロック内の各画素の画素値を比較し、各画素値が一致か又は不一致かを示す比較結果を出力する第1比較器32aと、第1比較器32aによる比較結果が不一致であった第2サブブロックの代表画素のアドレスを保持する第1メモリー34aと、第1サブブロック内の各第2サブブロックの代表画素の画素値を比較し、各画素値が一致し、かつ第1比較器32aによる比較結果が一致である場合は一致の比較結果を出力し、各画素値が不一致か又は第1比較器32aによる比較結果が不一致である場合は不一致の比較結果を出力する第2比較器32bと、第2比較器32bによる比較結果が不一致であった第1サブブロック内の各第2サブブロックの代表画素のアドレスを保持する第2メモリー34bと、色変換する画素として、第1サブブロックの代表画素と、第2メモリー34bにアドレスが保持された第2サブブロックの代表画素と、第1メモリー34aにアドレスが保持された代表画素以外の第2サブブロック内の各画素とを、第2入力バッファー31から読み出して出力する読出制御部36及び37と、を備えている。
As described above, according to the first embodiment, the image processing apparatus G1 inputs the image data in units of blocks and holds the first input buffer g1 that holds a plurality of blocks, and the first input buffers g1 to 1 A block is input, the pixel value of each pixel in the one block is compared, the comparison processing unit g2A that outputs the pixel for color conversion of the one block, and the pixel output from the comparison processing unit g2A are color-converted The color conversion unit g3, the output buffer g4, and the pixel color-converted by the color conversion unit g3 are written to the output buffer g4. As a result of the comparison, the pixel whose pixel value matches the color-converted pixel A buffer control unit g5 for copying and writing the pixel value of the converted pixel.
The comparison processing unit g2A includes the second input buffer 31, the write control unit 30 that writes the one block held in the first input buffer g1 to the second input buffer 31, and the first block obtained by dividing one block. A first comparator 32a that compares pixel values of each pixel in the second sub-block obtained by further dividing one sub-block, and outputs a comparison result indicating whether each pixel value matches or does not match; The pixel value of the representative pixel of each second sub-block in the first sub-block is compared with the first memory 34a holding the address of the representative pixel of the second sub-block whose comparison result by the first comparator 32a does not match If the pixel values match and the comparison result by the first comparator 32a matches, the comparison result of the match is output, and the pixel values do not match or the comparison result by the first comparator 32a does not match. The second comparator 32b that outputs a mismatched comparison result, and the second comparator 32b that holds the address of the representative pixel of each second subblock in the first subblock where the comparison result by the second comparator 32b does not match. 2 memory 34b, as a pixel for color conversion, the representative pixel of the first sub-block, the representative pixel of the second sub-block whose address is held in the second memory 34b, and the representative whose address is held in the first memory 34a Read control units 36 and 37 that read out and output each pixel in the second sub-block other than the pixels from the second input buffer 31 are provided.

これにより、第1サブブロック内の各画素値が一致する場合、第1サブブロック単位で一括して色変換することができる。第1サブブロック内の各画素値が不一致である場合、第1サブブロックより小さい第2サブブロック単位で、一括して色変換するか又は各画素を色変換することができる。色変換する画素の数を減らして、色変換の処理時間を短縮することができ、色変換の高速化が可能である。
上述したように、第2メモリー34bを備えることにより、色変換する画素数をさらに減らすことができ、より高速化が可能となっている。
As a result, when the pixel values in the first sub-block match, color conversion can be performed collectively in units of the first sub-block. When the pixel values in the first sub-block do not match, color conversion can be performed in batch or color conversion can be performed for each pixel in units of the second sub-block smaller than the first sub-block. By reducing the number of pixels to be color-converted, the color conversion processing time can be shortened, and the color conversion speed can be increased.
As described above, by providing the second memory 34b, the number of pixels for color conversion can be further reduced, and the speed can be further increased.

色変換部g3を複数備えて、各ブロックの色変換を並列に行うことにより、色変換の高速化を図ることはできるが、色変換部g3毎にLUTを保持するメモリーを設けなければならない。例えば、1つのLUTのデータ量が10Mbitである場合、4つの色変換部g3を設けると、40Mbitのメモリーが必要である。色変換のための回路規模が非常に大きくなり、LSI等への実装が困難であるため、ハードウェアによる色変換の実現が難しい。   Although it is possible to speed up color conversion by providing a plurality of color conversion units g3 and performing color conversion of each block in parallel, a memory for holding an LUT must be provided for each color conversion unit g3. For example, when the data amount of one LUT is 10 Mbit, if four color conversion units g3 are provided, a memory of 40 Mbit is required. Since the circuit scale for color conversion becomes very large and it is difficult to mount on an LSI or the like, it is difficult to realize color conversion by hardware.

一方、比較処理部g2Aは、1画素が8bitのデータ量であり、1ブロックが8×8画素の場合、第1入力バッファーg1の容量は、2048bit(8×8画素×4色×8bit)で足りる。また、第2入力バッファー31の容量は2048bit(2048=8×8画素×4色×8bit)、第1メモリー34aの容量は256bit、第2メモリー34bの容量は32bitで足りる。比較のためのメモリーの容量は4384(2336=2048+2048+256+32)bit、色変換のためのメモリーの容量は10Mbitであるので、全体として約10.00Mbitの容量のメモリーでよい。色変換部g3を複数備える場合よりも回路規模が非常に小さく、LSI等への実装が容易である。色変換部g3が1つであっても、上述のように色変換の高速化が可能であることから、ハードウェアによる色変換の高速化を、簡易なハードウェア構成で実現することができる。   On the other hand, in the comparison processing unit g2A, when one pixel has a data amount of 8 bits and one block has 8 × 8 pixels, the capacity of the first input buffer g1 is 2048 bits (8 × 8 pixels × 4 colors × 8 bits). It ’s enough. The capacity of the second input buffer 31 is 2048 bits (2048 = 8 × 8 pixels × 4 colors × 8 bits), the capacity of the first memory 34a is 256 bits, and the capacity of the second memory 34b is 32 bits. The capacity of the memory for comparison is 4384 (2336 = 2048 + 2048 + 256 + 32) bits, and the capacity of the memory for color conversion is 10 Mbits. Therefore, a memory having a capacity of about 10.00 Mbits as a whole is sufficient. The circuit scale is much smaller than when a plurality of color conversion units g3 are provided, and mounting on an LSI or the like is easy. Even if there is only one color conversion unit g3, it is possible to speed up the color conversion as described above. Therefore, the speed of the color conversion by hardware can be realized with a simple hardware configuration.

〔変形例〕
上述した比較処理部g2Aは、図9に示すように、各第1サブブロックの代表画素を比較する第3比較器32cをさらに備え、比較器32cによる比較結果をバッファー制御部g5へ出力することができる。カウンターC2が0をカウントしたタイミングで、メモリー制御部33が処理終了フラグDOF_allを出力することにより、アドレスが0の代表画素のみが色変換部g3へ入力される。バッファー制御部g5は、比較器34cによる比較結果cmpが一致である場合、1ブロックの各画素に、色変換されたアドレス0の代表画素の画素値をコピーして出力バッファーg4に書き込めばよい。
これにより、1ブロックの全画素値が一致している場合は、色変換の処理時間をさらに短縮することができる。
[Modification]
As shown in FIG. 9, the comparison processing unit g2A described above further includes a third comparator 32c that compares the representative pixels of the first sub-blocks, and outputs a comparison result by the comparator 32c to the buffer control unit g5. Can do. When the counter C2 counts 0, the memory control unit 33 outputs the processing end flag DOF_all, so that only the representative pixel with the address 0 is input to the color conversion unit g3. When the comparison result cmp by the comparator 34c matches, the buffer control unit g5 may copy the pixel value of the representative pixel at the address 0 subjected to color conversion to each pixel of one block and write it in the output buffer g4.
As a result, when all the pixel values of one block match, the color conversion processing time can be further shortened.

〔第2の実施の形態〕
第2の実施の形態に係る画像処理装置は、上述した比較処理部g2Aの各構成部を1つの比較モジュールとして、複数の比較モジュールを備え、複数の比較モジュールにより複数のブロックの比較を並列に行う。
[Second Embodiment]
The image processing apparatus according to the second embodiment includes a plurality of comparison modules using each component of the above-described comparison processing unit g2A as one comparison module, and compares a plurality of blocks in parallel by the plurality of comparison modules. Do.

図10は、第2の実施の形態に係る画像処理装置G2の色変換する構成部分の構成図である。この画像処理装置G2は、第1の実施の形態に係る画像処理装置G1と同様に画像形成装置T(図1参照)に搭載されている。
画像処理装置G2は、比較処理部g2Aに代えて、図10に示す比較処理部g2Bを備えている以外は、画像処理装置G1と構成が同じである。すなわち、画像処理装置G2は、図10に示すようにバッファー制御部g0、第1入力バッファーg1、比較処理部g2B、色変換部g3、出力バッファーg4及びバッファー制御部g5を備えている。画像処理装置G1と同じ構成には同じ符号を付して詳細な説明を省略し、構成が異なる比較処理部g2Bについて、以下説明する。
FIG. 10 is a configuration diagram of components that perform color conversion in the image processing device G2 according to the second embodiment. The image processing apparatus G2 is mounted on the image forming apparatus T (see FIG. 1) in the same manner as the image processing apparatus G1 according to the first embodiment.
The image processing device G2 has the same configuration as the image processing device G1 except that it includes a comparison processing unit g2B shown in FIG. 10 instead of the comparison processing unit g2A. That is, the image processing apparatus G2 includes a buffer control unit g0, a first input buffer g1, a comparison processing unit g2B, a color conversion unit g3, an output buffer g4, and a buffer control unit g5 as shown in FIG. The same components as those of the image processing device G1 are denoted by the same reference numerals and detailed description thereof is omitted, and the comparison processing unit g2B having a different configuration will be described below.

図11は、比較処理部g2Bの構成図である。
図11に示すように、比較処理部g2Bは、ブロック制御部11、4つの比較モジュールM1〜M4、セレクター12を備えている。
図11において、各比較モジュールM1〜M4のメモリー制御部33が、1ブロックの色変換する画素を全て色変換部g3へ入力し終えた時に出力する処理終了信号DOF_allを、それぞれDOF_all1〜DOF_all4と表している。
また、図10及び図11において、各比較モジュールM1〜M4のメモリー制御部33が出力する比較結果cmpを、それぞれcmp1〜cmp4と表す。
FIG. 11 is a configuration diagram of the comparison processing unit g2B.
As illustrated in FIG. 11, the comparison processing unit g2B includes a block control unit 11, four comparison modules M1 to M4, and a selector 12.
In FIG. 11, the processing end signals DOF_all output when the memory control unit 33 of each of the comparison modules M1 to M4 finishes inputting all the pixels for color conversion of one block to the color conversion unit g3 are represented as DOF_all1 to DOF_all4, respectively. ing.
10 and 11, the comparison results cmp output from the memory control unit 33 of each of the comparison modules M1 to M4 are represented as cmp1 to cmp4, respectively.

ブロック制御部11は、第1入力バッファーg1から4ブロックを入力し、比較モジュールM1、M2、M3、M4の順に、1ブロックずつ振り分けて出力する。
最初の4ブロックの出力後、各比較モジュールM1〜M4が色変換する画素を色変換部g3に入力し終える毎に、各比較モジュールM1〜M4から処理終了信号DOF_all1〜DOF_all4が出力される。ブロック制御部11は、この処理終了信号DOF_all1〜DOF_all4に応じて、第1入力バッファーg1から次の1ブロックを入力し、各比較モジュールM1〜M4にそれぞれ出力する。
The block control unit 11 receives four blocks from the first input buffer g1, distributes and outputs the blocks one by one in the order of the comparison modules M1, M2, M3, and M4.
After the first four blocks are output, each time the comparison modules M1 to M4 complete the input of the pixels to be color-converted into the color conversion unit g3, the processing end signals DOF_all1 to DOF_all4 are output from the comparison modules M1 to M4. The block control unit 11 inputs the next one block from the first input buffer g1 in response to the processing end signals DOF_all1 to DOF_all4, and outputs them to the comparison modules M1 to M4, respectively.

各比較モジュールM1〜M4は、入力された1ブロック内の各画素を比較し、1ブロックの色変換する画素を色変換部g3へ出力する。
比較モジュールM1は、図11に示すように、書込制御部30、第2入力バッファー31、第1比較器32a、第2比較器32b、メモリー制御部33、第1メモリー34a、第2メモリー34b、セレクター35、読出制御部36及び37、カウンターC1〜C3を備えている。比較モジュールM1の各構成部は、第1の実施の形態の比較処理部g2Aと同じであるので、同じ構成部には同じ符号を付して詳細な説明を省略する。
他の比較モジュールM2〜M4も、比較モジュールM1と同じ構成である。図11において図示を省略しているが、他の比較モジュールM2〜M4は、それぞれ比較結果cmp2〜cmp4と、色変換する画素のアドレスADRSを、色変換部g3へ出力している。
Each of the comparison modules M1 to M4 compares the input pixels in one block, and outputs the pixels for color conversion in one block to the color conversion unit g3.
As shown in FIG. 11, the comparison module M1 includes a write controller 30, a second input buffer 31, a first comparator 32a, a second comparator 32b, a memory controller 33, a first memory 34a, and a second memory 34b. , A selector 35, read control units 36 and 37, and counters C1 to C3. Since each component of the comparison module M1 is the same as the comparison processor g2A of the first embodiment, the same components are denoted by the same reference numerals and detailed description thereof is omitted.
The other comparison modules M2 to M4 have the same configuration as the comparison module M1. Although not shown in FIG. 11, the other comparison modules M2 to M4 output the comparison results cmp2 to cmp4 and the address ADRS of the pixel to be color-converted to the color converter g3, respectively.

各比較モジュールM1〜M4のカウンターC2は、先のブロックを比較している比較モジュールM1〜M4からの処理終了信号DOF_all1〜DOF_all4に応じて、カウントを開始する。例えば、比較モジュールM1のカウンターC2は、先のブロックを比較している比較モジュールM4から処理終了信号DOF_all4が出力されると、カウントを開始する。   The counter C2 of each comparison module M1 to M4 starts counting in response to the processing end signals DOF_all1 to DOF_all4 from the comparison modules M1 to M4 comparing the previous blocks. For example, the counter C2 of the comparison module M1 starts counting when the processing end signal DOF_all4 is output from the comparison module M4 that compares the previous blocks.

セレクター12は、4つの比較モジュールM1〜M4からの出力を切り替えて、ブロック順に色変換する画素を色変換部g3に出力する。
具体的には、セレクター12は、処理終了信号DOF_all1〜DOF_all4の入力に応じて、4つの比較モジュールM1〜M4からの出力を切り替える。
セレクター12は、処理終了信号DOF_all1が入力されると、比較モジュールM2の出力に切り替え、処理終了信号DOF_all2が入力されると、比較モジュールM3の出力に切り替える。また、セレクター12は、処理終了信号DOF_all3が入力されると、比較モジュールM4の出力に切り替え、処理終了信号DOF_all4が入力されると、比較モジュールM1の出力に切り替える。
The selector 12 switches the outputs from the four comparison modules M1 to M4 and outputs the pixels to be color-converted to the color conversion unit g3 in block order.
Specifically, the selector 12 switches the outputs from the four comparison modules M1 to M4 according to the inputs of the process end signals DOF_all1 to DOF_all4.
The selector 12 switches to the output of the comparison module M2 when the processing end signal DOF_all1 is input, and switches to the output of the comparison module M3 when the processing end signal DOF_all2 is input. The selector 12 switches to the output of the comparison module M4 when the processing end signal DOF_all3 is input, and switches to the output of the comparison module M1 when the processing end signal DOF_all4 is input.

次に、第2の実施の形態に係る画像処理装置G2の色変換時の処理手順を説明する。
最初に、バッファー制御部g0が、画像メモリー3に保持されている画像データをブロック単位で第1入力バッファーg1に書き込み、第1入力バッファーg1が複数のブロックを保持する。各ブロックを連続して比較処理部g2Bへ出力するには、第1入力バッファーg1は、比較モジュールM1〜M4の数より多い5以上のブロックを保持できることが好ましい。バッファー制御部g0は、複数のブロックのうちの4ブロックを第1入力バッファーg1から読み出し、比較処理部g2Bに出力する。
Next, a processing procedure at the time of color conversion of the image processing apparatus G2 according to the second embodiment will be described.
First, the buffer control unit g0 writes the image data held in the image memory 3 to the first input buffer g1 in units of blocks, and the first input buffer g1 holds a plurality of blocks. In order to continuously output each block to the comparison processing unit g2B, it is preferable that the first input buffer g1 can hold five or more blocks larger than the number of comparison modules M1 to M4. The buffer control unit g0 reads four blocks out of the plurality of blocks from the first input buffer g1, and outputs them to the comparison processing unit g2B.

比較処理部g2Bでは、ブロック制御部11が、入力された4ブロックを各比較モジュールM1〜M4に順次出力する。
各比較モジュールM1〜M4では、入力された1ブロックを書込制御部30が第2入力バッファー31に書き込み、図5に示すようにアドレスを割り当てる。
その後、各比較モジュールM1〜M4が、1ブロックの各画素の画素値を比較し、色変換する画素を出力する処理手順は、第1の実施の形態の画像処理装置G1と同じであるので、説明を省略する。
In the comparison processing unit g2B, the block control unit 11 sequentially outputs the input four blocks to the comparison modules M1 to M4.
In each of the comparison modules M1 to M4, the write control unit 30 writes one input block into the second input buffer 31, and assigns an address as shown in FIG.
Thereafter, the comparison module M1 to M4 compares the pixel value of each pixel of one block and outputs a pixel for color conversion, which is the same as the image processing device G1 of the first embodiment. Description is omitted.

1ブロック目のとき、比較モジュールM1が1ブロック目の色変換する画素を出力すると、セレクター12は当該画素を色変換部g3へ出力する。比較モジュールM1は、色変換する画素を全て色変換部g3へ入力し終えると、処理終了信号DOF_all1を出力する。処理終了信号DOF_all1に応じて、ブロック制御部11は次のブロック(5ブロック目)を入力し、比較モジュールM1に出力する。   In the first block, when the comparison module M1 outputs a pixel for color conversion in the first block, the selector 12 outputs the pixel to the color conversion unit g3. The comparison module M1 outputs a processing end signal DOF_all1 when all the pixels to be color-converted are input to the color conversion unit g3. In response to the processing end signal DOF_all1, the block control unit 11 inputs the next block (fifth block) and outputs it to the comparison module M1.

比較モジュールM1からの処理終了信号DOF_all1に応じて、比較モジュールM2は2ブロック目の色変換する画素の出力を開始する。また、セレクター12は、処理終了信号DOF_all1に応じて、比較モジュールM1の出力を比較モジュールM2の出力に切り替え、比較モジュールM2から出力された画素を色変換部g3へ出力する。比較モジュールM2は、色変換する画素を全て色変換部g3へ入力し終えると、処理終了信号DOF_all2を出力する。処理終了信号DOF_all2に応じて、ブロック制御部11は次のブロック(6ブロック目)を入力し、比較モジュールM2に出力する。   In response to the processing end signal DOF_all1 from the comparison module M1, the comparison module M2 starts outputting pixels for color conversion in the second block. Further, the selector 12 switches the output of the comparison module M1 to the output of the comparison module M2 in response to the processing end signal DOF_all1, and outputs the pixel output from the comparison module M2 to the color conversion unit g3. The comparison module M2 outputs the processing end signal DOF_all2 when all the pixels to be color-converted are input to the color conversion unit g3. In response to the processing end signal DOF_all2, the block control unit 11 inputs the next block (sixth block) and outputs it to the comparison module M2.

比較モジュールM2からの処理終了信号DOF_all2に応じて、比較モジュールM3は3ブロック目の色変換する画素の出力を開始する。また、セレクター12は、処理終了信号DOF_all2に応じて、比較モジュールM2の出力を比較モジュールM3の出力に切り替え、比較モジュールM3から出力された画素を色変換部g3へ出力する。比較モジュールM3は、色変換する画素を全て色変換部g3へ入力し終えると、処理終了信号DOF_all3を出力する。処理終了信号DOF_all3に応じて、ブロック制御部11は次のブロック(7ブロック目)を入力し、比較モジュールM3に出力する。   In response to the processing end signal DOF_all2 from the comparison module M2, the comparison module M3 starts outputting pixels for color conversion in the third block. Further, the selector 12 switches the output of the comparison module M2 to the output of the comparison module M3 in response to the processing end signal DOF_all2, and outputs the pixel output from the comparison module M3 to the color conversion unit g3. The comparison module M3 outputs the processing end signal DOF_all3 when all the pixels to be color-converted are input to the color conversion unit g3. In response to the processing end signal DOF_all3, the block control unit 11 inputs the next block (seventh block) and outputs it to the comparison module M3.

比較モジュールM3からの処理終了信号DOF_all3に応じて、比較モジュールM4は4ブロック目の色変換する画素の出力を開始する。また、セレクター12は、処理終了信号DOF_all3に応じて、比較モジュールM3の出力を比較モジュールM4の出力に切り替え、比較モジュールM4から出力された画素を色変換部g3へ出力する。比較モジュールM4は、色変換する画素を全て色変換部g3へ入力し終えると、処理終了信号DOF_all4を出力する。処理終了信号DOF_all4に応じて、ブロック制御部11は次のブロック(8ブロック目)を入力し、比較モジュールM4に出力する。
また、処理終了信号DOF_all4に応じて、比較モジュールM1が5ブロック目の色変換する画素の出力を開始する。セレクター12は、処理終了信号DOF_all4に応じて、比較モジュールM4の出力を比較モジュールM1の出力に切り替えて、比較モジュールM1からの画素を出力する。
In response to the processing end signal DOF_all3 from the comparison module M3, the comparison module M4 starts outputting the pixels for color conversion in the fourth block. Further, the selector 12 switches the output of the comparison module M3 to the output of the comparison module M4 according to the processing end signal DOF_all3, and outputs the pixel output from the comparison module M4 to the color conversion unit g3. The comparison module M4 outputs a processing end signal DOF_all4 when all the pixels to be color-converted are input to the color conversion unit g3. In response to the processing end signal DOF_all4, the block control unit 11 inputs the next block (eighth block) and outputs it to the comparison module M4.
Further, in response to the processing end signal DOF_all4, the comparison module M1 starts outputting a pixel for color conversion of the fifth block. In response to the processing end signal DOF_all4, the selector 12 switches the output of the comparison module M4 to the output of the comparison module M1, and outputs the pixels from the comparison module M1.

このようにして、各比較モジュールM1〜M4により各ブロックの色変換する画素が順次色変換部g3へ出力される。
以降の色変換部g3、出力バッファーg4及びバッファー制御部g5の処理手順は、第1の実施の形態の画像処理装置G1と同じであるので、説明を省略する。
In this way, the pixels for color conversion of each block are sequentially output to the color conversion unit g3 by the comparison modules M1 to M4.
Subsequent processing procedures of the color conversion unit g3, the output buffer g4, and the buffer control unit g5 are the same as those of the image processing apparatus G1 of the first embodiment, and thus description thereof is omitted.

第1の実施の形態に係る比較処理部g2Aと同様に、各比較モジュールM1〜M4が第2メモリー34bを備えることによって、色変換部g3へ入力する画素を減少させることができ、色変換の処理時間を短縮することができる。   Similarly to the comparison processing unit g2A according to the first embodiment, each of the comparison modules M1 to M4 includes the second memory 34b, so that the number of pixels input to the color conversion unit g3 can be reduced, and color conversion is performed. Processing time can be shortened.

図12は、各比較モジュールM1〜M4の比較と色変換に要する処理時間を示している。
図12において、比較1入力〜比較4入力は、各比較モジュールM1〜M4の第1比較器32a及び第2比較器32bへ画素の入力を開始してから入力を終了するまでの時間を示している。比較1出力〜比較4出力は、各比較モジュールM1〜M4の第1比較器32a及び第2比較器32bの比較結果の出力を開始してから出力を終了するまでの時間を示している。比較1入力〜比較4入力、比較1出力〜比較4出力は、それぞれ(19−1)クロック要する。
1回の比較に3クロック要するので、各比較1出力〜比較4出力の開始タイミングは、各比較1入力〜比較4入力の開始タイミングより3クロック遅延している。
FIG. 12 shows the processing time required for comparison and color conversion of each of the comparison modules M1 to M4.
In FIG. 12, comparison 1 input to comparison 4 input indicate the time from the start of input of pixels to the first comparator 32a and the second comparator 32b of each of the comparison modules M1 to M4 until the input ends. Yes. The comparison 1 output to the comparison 4 output indicate the time from the start of the output of the comparison results of the first comparator 32a and the second comparator 32b of each of the comparison modules M1 to M4 to the end of the output. The comparison 1 input to comparison 4 input and the comparison 1 output to comparison 4 output each require (19-1) clocks.
Since three clocks are required for one comparison, the start timing of each comparison 1 output to comparison 4 output is delayed by 3 clocks from the start timing of each comparison 1 input to comparison 4 input.

図12の色変換1入力は、比較処理部g2Bから色変換部g3への画素の入力を開始してから入力を終了するまでの時間を示している。
比較処理部g2Bによれば、比較1出力〜比較4出力が終了した時点で、色変換部g3への各ブロックの画素の入力が開始される。1ブロック目のアドレス0及び4の第2サブブロックの比較結果が不一致であり、2〜4ブロック目の比較結果が全て一致である場合、色変換1入力が示すように、1ブロック目の入力には13クロック、2〜4ブロック目の入力にはそれぞれ4クロック要する。
The color conversion 1 input in FIG. 12 indicates the time from the start of pixel input to the color conversion unit g3 from the comparison processing unit g2B to the end of input.
According to the comparison processing unit g2B, input of pixels of each block to the color conversion unit g3 is started when the comparison 1 output to the comparison 4 output are completed. When the comparison results of the second sub-blocks at the addresses 0 and 4 in the first block are not coincident and the comparison results in the second to fourth blocks are all coincident, as shown by the color conversion 1 input, the input of the first block Requires 13 clocks and 4 clocks are required for input of the second to fourth blocks.

一方、図12の色変換2入力は、各比較モジュールM1〜M4に第2メモリー34bが無く、第1メモリー34aのみ備えた構成である場合に、色変換部g3への画素の入力を開始してから入力を終了するまでの時間を示している。
第1メモリー34aのみの構成の場合、不一致の画素があると、前述したように第2サブブロックの代表画素の全てを色変換する必要がある。そのため、色変換2入力が示すように、不一致の画素を含む1ブロック目の入力には22クロック、各画素が全て一致する2〜3ブロック目の入力にはそれぞれ4クロック要する。
色変換1入力と色変換2入力を比較して分かるように、第2メモリー34bを備える構成の方が、第1メモリー34aのみの構成の場合よりも色変換の処理時間が短い。
On the other hand, the color conversion 2 input in FIG. 12 starts the pixel input to the color conversion unit g3 when each of the comparison modules M1 to M4 has no second memory 34b and only the first memory 34a. It shows the time from input to end of input.
In the configuration of only the first memory 34a, if there is a mismatched pixel, it is necessary to color-convert all the representative pixels of the second sub-block as described above. Therefore, as shown by the color conversion 2 input, 22 clocks are required for the input of the first block including the non-matching pixels, and 4 clocks are required for the inputs of the second to third blocks where all the pixels match.
As can be seen by comparing the color conversion 1 input and the color conversion 2 input, the configuration having the second memory 34b has a shorter color conversion processing time than the configuration having only the first memory 34a.

また、比較処理部g2Aのように、1つの比較モジュールが各ブロックの比較を行うよりも、比較処理部g2Bのように、複数の比較モジュールM1〜M4が各ブロックの比較を並行して行う方が、色変換が効率的になる場合がある。1ブロック内の全画素値が一致する場合、特に効率的である。   Also, rather than one comparison module comparing each block as in the comparison processing unit g2A, a plurality of comparison modules M1 to M4 compare each block in parallel as in the comparison processing unit g2B. However, color conversion may be efficient. It is particularly efficient when all pixel values in one block match.

図13(a)〜図13(c)は、各ブロックの比較に要する処理時間と色変換に要する処理時間を示している。
図13(a)〜図13(c)において、比較1入力〜比較4入力は、各ブロックの比較時に、第1比較器32a及び第2比較器32bへ画素の入力を開始してから入力を終了するまでの時間を示している。比較1出力〜比較4出力は、各ブロックの比較時に、第1比較器32a及び第2比較器32bの比較結果の出力を開始してから出力を終了するまでの時間を示している。比較1入力〜比較4入力、比較1出力〜比較4出力は、それぞれ(19−1)クロック要する。
また、色変換入力は、色変換部g3へ画素の入力を開始してから入力を終了するまでの時間を示している。
FIGS. 13A to 13C show the processing time required for comparing each block and the processing time required for color conversion.
In FIG. 13A to FIG. 13C, the comparison 1 input to comparison 4 input are input after the pixel input to the first comparator 32a and the second comparator 32b is started when each block is compared. Shows the time until completion. The comparison 1 output to the comparison 4 output indicate the time from the start of the output of the comparison result of the first comparator 32a and the second comparator 32b to the end of the output when comparing each block. The comparison 1 input to comparison 4 input and the comparison 1 output to comparison 4 output each require (19-1) clocks.
The color conversion input indicates the time from the start of pixel input to the color conversion unit g3 to the end of input.

図13(a)及び図13(b)は、1つの比較モジュールが各ブロックの比較を行うときの比較と色変換の処理時間を示している。
1つの比較モジュールの場合、比較1入力の終了時点で比較2入力が開始されているように、第1比較器32a及び第2比較器32bへは、先のブロックの画素の入力が終了した時点で、次のブロックの画素を入力することが可能となる。また、各比較1出力〜各比較4出力の終了時点、すなわち、各ブロックの比較結果の出力が終了した時点で、色変換部g3への各ブロックの画素の入力を開始することができる。
1ブロック内に不一致の画素が有り、図13(a)に示すように、色変換部g3への1ブロックの画素の入力に22クロック要する場合、先のブロックの色変換部g3への入力を終えるまでに、次のブロックの比較結果の出力が終了している。この場合、各ブロックの色変換する画素を連続して色変換部g3に入力することができる。
FIGS. 13A and 13B show the processing time of comparison and color conversion when one comparison module compares each block.
In the case of one comparison module, when the comparison 2 input is started at the end of the comparison 1 input, the input of the pixels of the previous block is completed to the first comparator 32a and the second comparator 32b. Thus, the pixel of the next block can be input. Further, at the end of each comparison 1 output to each comparison 4 output, that is, when the output of the comparison result of each block is completed, the input of the pixel of each block to the color conversion unit g3 can be started.
If there is a mismatched pixel in one block and 22 clocks are required to input one block of pixels to the color converter g3 as shown in FIG. 13A, the input to the color converter g3 of the previous block is input. By the end, output of the comparison result of the next block has been completed. In this case, the pixels for color conversion of each block can be continuously input to the color conversion unit g3.

一方、1ブロックの全画素が一致する場合、各ブロックのアドレス0〜3の4画素のみ色変換すればよく、4クロックで色変換部g3への入力が終了する。
よって、1つの比較モジュールの場合、図13(b)に示すように、次のブロックの比較結果の出力が終了するよりも早く、先のブロックの色変換する画素の入力が終了する。そのため、次のブロックの色変換する画素の入力まで待ち時間が生じ、色変換部g3へ連続して画素を入力することができない。
On the other hand, if all the pixels in one block match, only the four pixels at addresses 0 to 3 in each block need be color-converted, and the input to the color converter g3 is completed in four clocks.
Therefore, in the case of one comparison module, as shown in FIG. 13B, the input of the pixel for color conversion of the previous block is completed earlier than the output of the comparison result of the next block is completed. Therefore, there is a waiting time until the input of the pixel for color conversion of the next block, and the pixel cannot be continuously input to the color conversion unit g3.

図13(c)は、複数の比較モジュールM1〜M4が各ブロックの比較を並列に行うときの比較と色変換の処理時間を示している。
複数の比較モジュールM1〜M4の場合、比較1入力〜比較4入力が、比較1出力〜比較4出力の終了時点より前に開始され、先のブロックの画素の比較終了を待たずに、次のブロックの比較が開始する。
1ブロックの全画素が一致している場合であっても、図13(c)に示すように、先のブロックの色変換部g3への画素の入力が終了する時には、次のブロックの比較結果の出力も終了している。そのため、各ブロックの色変換する画素を連続して色変換部g3へ入力することができ、色変換が効率的である。
なお、図13(c)において、5〜8ブロック目の処理時間を白の矢印で表している。
4ブロック目の色変換の入力の終了時、5ブロック目の比較結果の出力がまだ終了していないため、若干の待ち時間が生じている。しかし、全体としては短い待ち時間であり、図13(b)と比較しても、色変換の処理時間は格段に短い。
FIG. 13C shows the processing time for comparison and color conversion when a plurality of comparison modules M1 to M4 compare each block in parallel.
In the case of the plurality of comparison modules M1 to M4, the comparison 1 input to the comparison 4 input are started before the end point of the comparison 1 output to the comparison 4 output, and the next comparison is not performed without waiting for the comparison of the pixels in the previous block. The block comparison starts.
Even when all the pixels in one block match, as shown in FIG. 13C, when the input of the pixel to the color conversion unit g3 of the previous block is completed, the comparison result of the next block The output of is also finished. Therefore, pixels for color conversion of each block can be continuously input to the color conversion unit g3, and color conversion is efficient.
In FIG. 13C, the processing time of the fifth to eighth blocks is represented by a white arrow.
When the input of the color conversion for the fourth block is completed, the output of the comparison result for the fifth block has not been completed yet, so there is a slight waiting time. However, the overall waiting time is short, and the color conversion processing time is much shorter than that shown in FIG.

以上のように、第2の実施の形態によれば、画像処理装置G2は、画像データをブロック単位で入力し、複数のブロックを保持する第1入力バッファーg1と、第1入力バッファーg1から1ブロックを入力し、当該1ブロック内の各画素の画素値を比較して、当該1ブロックの色変換する画素を出力する比較処理部g2Bと、比較処理部g2Bから出力された画素を色変換する色変換部g3と、出力バッファーg4と、色変換部g3により色変換された画素を出力バッファーg4に書き込み、比較の結果、当該色変換された画素と画素値が一致する画素に対しては、当該色変換された画素の画素値をコピーして書き込むバッファー制御部g5と、を備えている。
比較処理部g2Bは、第2入力バッファー31、書込制御部30、第1比較器32a、第1メモリー34a、第2比較器32b、第2メモリー34b、読出制御部36及び37を含む、複数の比較モジュールM1〜M4を備え、複数のブロックを入力して各比較モジュールM1〜M4に振り分け、各比較モジュールM1〜M4により並列に比較を行って、各ブロックの色変換する画素を順次色変換部g3に出力する。
As described above, according to the second embodiment, the image processing apparatus G2 inputs image data in units of blocks, and holds the first input buffer g1 that holds a plurality of blocks, and the first input buffers g1 to 1 A block is input, the pixel value of each pixel in the block is compared, and the comparison processing unit g2B that outputs the pixel for color conversion of the block and the pixel output from the comparison processing unit g2B are color-converted The color conversion unit g3, the output buffer g4, and the pixel color-converted by the color conversion unit g3 are written in the output buffer g4. As a result of comparison, for the pixel whose pixel value matches the color-converted pixel, A buffer control unit g5 for copying and writing the pixel value of the color-converted pixel.
The comparison processing unit g2B includes a second input buffer 31, a write control unit 30, a first comparator 32a, a first memory 34a, a second comparator 32b, a second memory 34b, and read control units 36 and 37. The comparison modules M1 to M4 are provided, and a plurality of blocks are input and distributed to the comparison modules M1 to M4. The comparison modules M1 to M4 perform the comparison in parallel, and the pixels for color conversion of each block are sequentially color-converted. To the part g3.

これにより、第1サブブロック内の各画素値が一致する場合、第1サブブロック単位で一括して色変換することができる。第1サブブロック内の各画素値が不一致である場合、第1サブブロックより小さい第2サブブロック単位で、一括して色変換するか又は各画素を色変換することができる。色変換する画素を減らして、色変換の処理時間を短縮することができ、色変換の高速化が可能である。
また、第2メモリー34bを備えることにより、色変換する画素数をさらに減らして、より高速化が可能となっている。
As a result, when the pixel values in the first sub-block match, color conversion can be performed collectively in units of the first sub-block. When the pixel values in the first sub-block do not match, color conversion can be performed in batch or color conversion can be performed for each pixel in units of the second sub-block smaller than the first sub-block. It is possible to reduce the color conversion processing time by reducing the number of pixels for color conversion, and to increase the speed of color conversion.
Further, by providing the second memory 34b, it is possible to further reduce the number of pixels for color conversion and further increase the speed.

さらに、第1サブブロック内及び第2サブブロック内の各画素値の比較を並行して行うことができ、各ブロックの色変換する画素を連続して色変換することが可能である。色変換をより高速化させることができる。   Furthermore, the pixel values in the first sub-block and the second sub-block can be compared in parallel, and the pixels for color conversion in each block can be continuously color-converted. Color conversion can be further accelerated.

色変換部g3を複数備えて、各ブロックの色変換を並列に行うことにより、色変換の処理時間を短縮することはできるが、色変換部g3毎にLUTを保持するメモリーを設けなければならない。例えば、1つのLUTのデータ量が10Mbitである場合、4つの色変換部g3を設けると、40Mbitのメモリーが必要である。色変換のための回路規模が非常に大きくなり、LSI等への実装が困難であるため、ハードウェアによる色変換の実現が難しい。   Although it is possible to reduce the color conversion processing time by providing a plurality of color conversion units g3 and performing color conversion of each block in parallel, it is necessary to provide a memory for holding the LUT for each color conversion unit g3. . For example, when the data amount of one LUT is 10 Mbit, if four color conversion units g3 are provided, a memory of 40 Mbit is required. Since the circuit scale for color conversion becomes very large and it is difficult to mount on an LSI or the like, it is difficult to realize color conversion by hardware.

これに対し、比較処理部g2Bは、複数の比較モジュールM1〜M4を備えることで、色変換の高速化を実現している。1画素が8ビットのデータ量であり、1ブロックが8×8画素の場合、第1入力バッファーg1の容量は、8192bit(8×8画素×4色×8bit×4ブロック)で足りる。また、各比較モジュールM1〜M4内の第2入力バッファー31の容量は2048bit(2048=8×8画素×4色×8bit)、第1メモリー34aの容量は256bit、第2メモリー34bの容量は32bitで足りる。4つの比較モジュールM1〜M4を設けても、比較のためのメモリーの容量は17536bit(17536=8192+(2048+256+32)×4)bit、色変換のためのメモリーの容量は10Mbitであるので、全体として約10.02Mbitの容量のメモリーが使用される。色変換部g3を複数備える場合と比較して簡易なハードウェア構成で、色変換を高速化することができる。   On the other hand, the comparison processing unit g2B includes a plurality of comparison modules M1 to M4, thereby realizing high-speed color conversion. When one pixel has a data amount of 8 bits and one block is 8 × 8 pixels, the capacity of the first input buffer g1 is 8192 bits (8 × 8 pixels × 4 colors × 8 bits × 4 blocks). The capacity of the second input buffer 31 in each comparison module M1 to M4 is 2048 bits (2048 = 8 × 8 pixels × 4 colors × 8 bits), the capacity of the first memory 34a is 256 bits, and the capacity of the second memory 34b is 32 bits. Is enough. Even if four comparison modules M1 to M4 are provided, the capacity of the memory for comparison is 17536 bits (17536 = 8192 + (2048 + 256 + 32) × 4) bits, and the capacity of the memory for color conversion is 10 Mbits. A memory with a capacity of 10.02 Mbit is used. Compared with the case where a plurality of color conversion units g3 are provided, color conversion can be speeded up with a simple hardware configuration.

上記実施の形態は本発明の好適な一例であり、これに限定されない。本発明の主旨を逸脱しない範囲で適宜変更可能である。
例えば、第2の実施の形態においても、第1の実施の形態と同様に、各比較モジュールM1〜M4が、図9に示すように第3比較器32cを備える構成であってもよい。
The above embodiment is a preferred example of the present invention, and the present invention is not limited to this. Modifications can be made as appropriate without departing from the spirit of the present invention.
For example, in the second embodiment, as in the first embodiment, each comparison module M1 to M4 may include a third comparator 32c as shown in FIG.

T 画像形成装置
3 画像メモリー
G1 画像処理装置(第1の実施の形態)
g0、g5 バッファー制御部
g1 第1入力バッファー
g2A 比較処理部
30 書込制御部
31 第2入力バッファー
32a 第1比較器
32b 第2比較器
32c 第3比較器
33 メモリー制御部
34a 第1メモリー
34b 第2メモリー
36、37 読出制御部
C1〜C3 カウンター
G2 画像処理装置(第2の実施の形態)
g2B 比較処理部
11 ブロック制御部
M1〜M4 比較モジュール
12 セレクター
g3 色変換部
g4 出力バッファー
T Image forming apparatus 3 Image memory G1 Image processing apparatus (first embodiment)
g0, g5 Buffer control unit g1 First input buffer g2A Comparison processing unit 30 Write control unit 31 Second input buffer 32a First comparator 32b Second comparator 32c Third comparator 33 Memory control unit 34a First memory 34b First 2 Memory 36, 37 Read control unit C1-C3 Counter G2 Image processing apparatus (second embodiment)
g2B Comparison processing unit 11 Block control units M1 to M4 Comparison module 12 Selector g3 Color conversion unit g4 Output buffer

Claims (5)

画像データをブロック単位で入力し、複数のブロックを保持する第1入力バッファーと、
前記第1入力バッファーから1ブロックを入力し、当該1ブロック内の各画素の画素値を比較して、当該1ブロックの色変換する画素を出力する比較処理部と、
前記比較処理部から出力された画素を色変換する色変換部と、
出力バッファーと、
前記色変換部により色変換された画素を前記出力バッファーに書き込み、前記比較の結果、当該色変換された画素と画素値が一致する画素に対し、当該色変換された画素の画素値をコピーして書き込むバッファー制御部と、を備え、
前記比較処理部は、
第2入力バッファーと、
前記第1入力バッファーに保持された1ブロックを、前記第2入力バッファーに書き込む書込制御部と、
前記1ブロックを分割して得られた第1サブブロックを、さらに分割して得られた第2サブブロック内の各画素の画素値を比較し、各画素値が一致か又は不一致かを示す比較結果を出力する第1比較器と、
前記第1比較器による比較結果が不一致であった第2サブブロックの代表画素のアドレスを保持する第1メモリーと、
前記第1サブブロック内の各第2サブブロックの代表画素の画素値を比較し、各画素値が一致し、かつ前記第1比較器による比較結果が一致である場合は一致の比較結果を出力し、各画素値が不一致か又は前記第1比較器による比較結果が不一致である場合は不一致の比較結果を出力する第2比較器と、
前記第2比較器による比較結果が不一致であった第1サブブロック内の各第2サブブロックの代表画素のアドレスを保持する第2メモリーと、
前記色変換する画素として、前記第1サブブロックの代表画素と、前記第2メモリーにアドレスが保持された第2サブブロックの代表画素と、前記第1メモリーにアドレスが保持された代表画素以外の第2サブブロック内の各画素とを、前記第2入力バッファーから読み出して出力する読出制御部と、
を備える画像処理装置。
A first input buffer for inputting image data in units of blocks and holding a plurality of blocks;
A comparison processing unit that inputs one block from the first input buffer, compares pixel values of each pixel in the one block, and outputs pixels for color conversion of the one block;
A color conversion unit that performs color conversion on the pixels output from the comparison processing unit;
An output buffer;
The pixel converted by the color conversion unit is written to the output buffer, and the pixel value of the pixel subjected to the color conversion is copied to a pixel whose pixel value matches the pixel subjected to the color conversion as a result of the comparison. And a buffer controller for writing
The comparison processing unit
A second input buffer;
A writing control unit for writing one block held in the first input buffer to the second input buffer;
The pixel value of each pixel in the second sub-block obtained by further dividing the first sub-block obtained by dividing the one block is compared, and the comparison indicating whether the pixel values match or do not match A first comparator for outputting a result;
A first memory for holding an address of a representative pixel of a second sub-block in which the comparison result by the first comparator does not match;
The pixel values of the representative pixels of the second sub-blocks in the first sub-block are compared, and if the pixel values match and the comparison result by the first comparator is coincident, the coincidence comparison result is output. A second comparator that outputs a non-matching comparison result when each pixel value does not match or the comparison result by the first comparator does not match,
A second memory for holding the address of the representative pixel of each second sub-block in the first sub-block in which the comparison result by the second comparator is inconsistent;
The pixels to be color-converted are pixels other than the representative pixel of the first sub-block, the representative pixel of the second sub-block whose address is held in the second memory, and the representative pixel whose address is held in the first memory. A read controller that reads out and outputs each pixel in the second sub-block from the second input buffer;
An image processing apparatus comprising:
前記比較処理部は、前記第2入力バッファー、前記書込制御部、前記第1比較器、前記第1メモリー、前記第2比較器、前記第2メモリー及び前記読出制御部を含む比較モジュールを複数備え、複数のブロックを入力して、各比較モジュールにより各ブロックの比較を並列に行って、各ブロックの色変換する画素を順次前記色変換部に出力する、
請求項1に記載の画像処理装置。
The comparison processing unit includes a plurality of comparison modules including the second input buffer, the write control unit, the first comparator, the first memory, the second comparator, the second memory, and the read control unit. A plurality of blocks are input, each block is compared in parallel by each comparison module, and the pixels for color conversion of each block are sequentially output to the color conversion unit.
The image processing apparatus according to claim 1.
前記書込制御部は、第1サブブロックの代表画素、第2サブブロックの代表画素、第2サブブロック内の代表画素以外の各画素の順に割り振られた書込アドレスを前記第2入力バッファーに出力し、前記第2入力バッファーに書き込まれた1ブロックにアドレスを割り当てる、
請求項1又は2に記載の画像処理装置。
The write control unit uses a write address assigned in the order of each pixel other than the representative pixel in the first sub-block, the representative pixel in the second sub-block, and the representative pixel in the second sub-block in the second input buffer. Output and assign an address to one block written in the second input buffer;
The image processing apparatus according to claim 1.
前記第1比較器及び第2比較器は、各画素値の比較時、色空間も比較し、画素値及び色空間が一致する場合、各画素値が一致の比較結果を出力し、画素値又は色空間が不一致の場合、各画素値が不一致の比較結果を出力する、
請求項1〜3の何れか一項に記載の画像処理装置。
The first comparator and the second comparator also compare the color space when comparing each pixel value, and if the pixel value and the color space match, each pixel value outputs a comparison result of matching, If the color space does not match, output a comparison result where each pixel value does not match.
The image processing apparatus according to claim 1.
前記第1比較器及び第2比較器は、各画素値の比較時、属性も比較し、画素値及び属性が一致する場合、各画素値が一致の比較結果を出力し、画素値又は属性が不一致の場合、各画素値が不一致の比較結果を出力する、
請求項1〜3の何れか一項に記載の画像処理装置。
The first comparator and the second comparator also compare attributes when comparing each pixel value, and if the pixel value and the attribute match, each pixel value outputs a comparison result indicating that the pixel value or attribute matches. If they do not match, output a comparison result where each pixel value does not match.
The image processing apparatus according to claim 1.
JP2012283806A 2012-12-27 2012-12-27 Image processing apparatus Pending JP2014127886A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012283806A JP2014127886A (en) 2012-12-27 2012-12-27 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012283806A JP2014127886A (en) 2012-12-27 2012-12-27 Image processing apparatus

Publications (1)

Publication Number Publication Date
JP2014127886A true JP2014127886A (en) 2014-07-07

Family

ID=51407067

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012283806A Pending JP2014127886A (en) 2012-12-27 2012-12-27 Image processing apparatus

Country Status (1)

Country Link
JP (1) JP2014127886A (en)

Similar Documents

Publication Publication Date Title
US7200287B2 (en) Method and apparatus for image processing, and a computer product
US20100103435A1 (en) Image processing apparatus and image processing method for processing screen-processed image
US6115510A (en) Image processing apparatus capable of displaying image to be formed on sheet
US8441690B2 (en) Image processing apparatus and image processing method for processing screen-processed image
US20080240561A1 (en) Image processing apparatus
US20090316169A1 (en) Controller unit and control method performed by controller unit
JP2006253840A (en) Image forming apparatus and data processing method
JP2015156570A (en) Color processing apparatus, image forming apparatus, and program
KR20180029889A (en) Information processing apparatus and semiconductor integrated circuit including ring bus system
JP4115294B2 (en) Image processing apparatus and method
US8054518B2 (en) Color imaging devices, color imaging methods, and color separation methods
JP2009259201A (en) Image processing apparatus and image forming apparatus
JP2014127886A (en) Image processing apparatus
JPH11196258A (en) Unit and method for processing image
JP2004021645A (en) Image processing device and its control method
JP5299253B2 (en) Image processing apparatus and image processing method
JP2005027037A (en) Format conversion method and image processing apparatus
JP2003216365A (en) Image processor and image forming device
JP2013098685A (en) Image processing apparatus
US7304769B2 (en) Color imaging devices, color image forming methods, and color image data processing methods
JP2008092323A (en) Image processing equipment, and image reading apparatus and image forming apparatus equipped with the same
JPH09179973A (en) Picture processor and its method
JP2002042119A (en) Image processing device
JP2005161580A (en) Image processing apparatus, image processing method and computer program
JP2013098811A (en) Image processing apparatus