JP5094274B2 - Image processing apparatus and method - Google Patents

Image processing apparatus and method Download PDF

Info

Publication number
JP5094274B2
JP5094274B2 JP2007216405A JP2007216405A JP5094274B2 JP 5094274 B2 JP5094274 B2 JP 5094274B2 JP 2007216405 A JP2007216405 A JP 2007216405A JP 2007216405 A JP2007216405 A JP 2007216405A JP 5094274 B2 JP5094274 B2 JP 5094274B2
Authority
JP
Japan
Prior art keywords
address
read
line
image data
generation method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2007216405A
Other languages
Japanese (ja)
Other versions
JP2008112435A5 (en
JP2008112435A (en
Inventor
圭吾 小倉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2007216405A priority Critical patent/JP5094274B2/en
Publication of JP2008112435A publication Critical patent/JP2008112435A/en
Publication of JP2008112435A5 publication Critical patent/JP2008112435A5/ja
Application granted granted Critical
Publication of JP5094274B2 publication Critical patent/JP5094274B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To solve problems in which conversion processing of a rectangular image to raster image data is complicated, and when such addressing method is attained only by hardware, operation verification therefor also requires much time. <P>SOLUTION: Based on a first write-address generation method, image data are read line by line from a line memory capable of storing pixel data for n lines in which one line is composed of n&times;n&times;m pixels. Further, after writing of a rectangular image to the line memory is performed based on a second write-address generation method, line-by-line reading of image data from the line memory is performed based on a second read-out-address generation method. <P>COPYRIGHT: (C)2008,JPO&amp;INPIT

Description

本発明は、複数の矩形画像を入力して点順次のラスタイメージデータへ変換する画像処理装置及びその方法に関するものである。   The present invention relates to an image processing apparatus and method for inputting a plurality of rectangular images and converting them into dot sequential raster image data.

複数の矩形画像で構成されるページ単位の画像データを、画像データ用のバッファメモリを用いてライン単位の画像データに変換して出力する場合を考える。この場合、矩形画像を単位として入力されるページ単位の画像データを、ライン単位の画像データへ変換する必要がある。この変換方法の最も一般的なものとしては、(矩形画像に含まれる画像データのライン数)×(1ライン分の画素数)に相当するデータ量の2倍のバッファメモリを用い、ダブルバッファ方式により変換する方法がある。   Consider a case where page unit image data composed of a plurality of rectangular images is converted into line unit image data and output using a buffer memory for image data. In this case, it is necessary to convert page unit image data input in units of rectangular images into line unit image data. The most common conversion method is a double buffer method using a buffer memory twice the amount of data corresponding to (number of lines of image data contained in a rectangular image) × (number of pixels for one line). There is a method to convert by.

また他の方法としては、(矩形画像に含まれる画像データのライン数)×(1ライン分の画素数)に相当する容量のバッファメモリを用いて、シングルバッファ方式で矩形画像からラスタ画像データへ変換する方法がある。この方法では、バッファメモリから1ライン分の画像データを読み出した後に、読み出したアドレスに対して、次の矩形画像を書き込むように処理している(特許文献1,2参照)。   As another method, from a rectangular image to raster image data by a single buffer method using a buffer memory having a capacity corresponding to (number of lines of image data included in a rectangular image) × (number of pixels for one line). There is a way to convert. In this method, after the image data for one line is read from the buffer memory, the next rectangular image is written to the read address (see Patent Documents 1 and 2).

次に、従来例1として、前者のダブルバッファ方式による矩形画像からライン単位の画像データへの変換処理について説明する。   Next, as a conventional example 1, a conversion process from a rectangular image to line-based image data by the former double buffer method will be described.

この例における矩形画像は、矩形画像に含まれる画像データのライン数は4ラインであり、各ラインが4画素からなるものとする。そうすると、矩形画像は、4画素×4画素の合計16画素の画素データから構成されることとなる。   In the rectangular image in this example, the number of lines of image data included in the rectangular image is four, and each line is composed of four pixels. Then, the rectangular image is composed of pixel data of 16 pixels in total of 4 pixels × 4 pixels.

図2(A),(B)は、n×n画素からなる矩形画像を示す図で、図2(A)は、バッファメモリに最初に入力される矩形画像を示し、図2(B)はバッファメモリに次に入力される矩形画像を示す。   2A and 2B are diagrams illustrating a rectangular image composed of n × n pixels. FIG. 2A illustrates a rectangular image that is first input to the buffer memory. FIG. The rectangular image input next to the buffer memory is shown.

バッファメモリに入力される画素データの順番は、図の数字の順番通りである。即ち、1つの矩形画像内で1ライン分(n×n×m画素)の画素データを入力すると、次のラインの画素データを入力している。即ち、図2(A)の例では、1ライン目の画素1〜画素4の画素データを入力すると、次に2ライン目の画素5〜画素8の画素データを入力する。こうして画素16までをバッファメモリに入力すると、図2(A)に示す矩形画像の入力が完了する。そして次に図2(B)に示す矩形画像が入力されると画素17〜画素32の画素データも同様の順番で入力される。尚、図2では、2つの矩形画像のみを示しているが、3番目の矩形画像も同様に、画素33乃至画素48の画素データが図2に示す矩形画像の画素の順番に配置されている。そしてそれ以降の矩形画素に関しても同様である。   The order of the pixel data input to the buffer memory is the same as the numerical order in the figure. That is, when pixel data of one line (n × n × m pixels) is input in one rectangular image, the pixel data of the next line is input. That is, in the example of FIG. 2A, when the pixel data of the pixels 1 to 4 in the first line is input, the pixel data of the pixels 5 to 8 in the second line is input next. When pixels 16 and so on are input to the buffer memory, the input of the rectangular image shown in FIG. Next, when the rectangular image shown in FIG. 2B is input, the pixel data of the pixels 17 to 32 are also input in the same order. In FIG. 2, only two rectangular images are shown. Similarly, in the third rectangular image, the pixel data of the pixels 33 to 48 are arranged in the order of the pixels of the rectangular image shown in FIG. . The same applies to the subsequent rectangular pixels.

図3は、ダブルバッファ方式のメモリ回路構成を示すブロック図である。   FIG. 3 is a block diagram showing the configuration of a double buffer memory circuit.

420,430はそれぞれ図2に示す(矩形画像に含まれる画像データのライン数)×(1ライン分の画素数(x))の容量を有するラインバッファメモリである。メモリ制御部410は、ラインバッファ420,430への矩形画像の書込み、及びラインバッファメモリからの画像データの読み出しを制御する。ここでx=32のとき、ページ単位の画像データの1ライン分に含まれる32画素に相当する8つの矩形画像を「1矩形画像アレイ」と表現する。この場合にラインバッファメモリに格納できる全画素数は32×8=256画素となる。この場合、ラインバッファ420に256画素(8矩形画像分)の画像データを書き込むと、書込み制御部は、ラインバッファ430に切替えて、次から入力される矩形画像を、ラインバッファ430に格納する。一方、読み出し制御部は、書込み制御部が書き込みを完了したラインバッファ420から画像データをライン単位で読み出すように動作する。   Reference numerals 420 and 430 denote line buffer memories each having a capacity of (number of lines of image data included in a rectangular image) × (number of pixels for one line (x)) shown in FIG. The memory control unit 410 controls writing of rectangular images to the line buffers 420 and 430 and reading of image data from the line buffer memory. Here, when x = 32, eight rectangular images corresponding to 32 pixels included in one line of image data in page units are expressed as “one rectangular image array”. In this case, the total number of pixels that can be stored in the line buffer memory is 32 × 8 = 256 pixels. In this case, when image data of 256 pixels (eight rectangular images) is written in the line buffer 420, the writing control unit switches to the line buffer 430 and stores the next input rectangular image in the line buffer 430. On the other hand, the read control unit operates so as to read the image data line by line from the line buffer 420 that has been written by the write control unit.

図4は、この書込み制御部によるラインバッファメモリへの矩形画像の書込み順を説明する図であり、図5は、読み出し制御部によるラインバッファメモリからの画像データの読み出し順を説明する図である。このように画像データの書込み時は、矩形画像の単位で画像データをラインバッファメモリに書込み、読み出し時には、ライン単位で画像データを読み出している。しかし、このようなダブルバッファ方式の場合には、1ラインを32画素とした4ライン分のラインバッファが2つ必要になり、矩形画像のサイズが大きくなればなるほど、大容量のラインバッファメモリが必要になりコストアップの要因になっている。   FIG. 4 is a diagram for explaining the order in which rectangular images are written to the line buffer memory by the write control unit, and FIG. 5 is a diagram for explaining the order in which image data is read from the line buffer memory by the read control unit. . As described above, when writing image data, the image data is written to the line buffer memory in units of rectangular images, and when reading, the image data is read in units of lines. However, in the case of such a double buffer system, two line buffers for four lines, each having 32 pixels as one line, are necessary. As the size of the rectangular image increases, a larger capacity line buffer memory is required. This is necessary and is a cause of cost increase.

次に従来例2として、シングルバッファ(例えばラインバッファ420のみ)による矩形画像からライン単位の画像データへの変換処理について説明する。   Next, a conversion process from a rectangular image to line-based image data by a single buffer (for example, only the line buffer 420) will be described as Conventional Example 2.

最初の1矩形画像アレイの画像データの書込みの順序は、前述の図4と同じである。そして、その最初の1矩形画像アレイの画像データの読み出しの順序は図5に示す通りである。但し、ここではシングルバッファであるため、このラインバッファメモリからライン単位で画像データを読み出したときに次に入力される矩形画像を格納するアドレスが異なってくる。   The order of writing the image data of the first rectangular image array is the same as that in FIG. The order of reading the image data of the first one rectangular image array is as shown in FIG. However, since it is a single buffer here, the address for storing the next input rectangular image when the image data is read from the line buffer memory in units of lines differs.

図6は、ラインバッファメモリから1ライン分の画像データを読み出した後に、読み出したアドレスに対して、次に入力された2つの矩形画像が格納された状態を示す図である。   FIG. 6 is a diagram illustrating a state in which the next input two rectangular images are stored for the read address after the image data for one line is read from the line buffer memory.

ここではライン600に、2つの矩形画像(図2に示す)の画素1乃至画素16と、画素17乃至画素32までが格納されている。以下同様にして、各1主走査分の画像データの読み出しが完了して最初の1矩形画像アレイの読み出しが完了した後には、各ライン601〜603のそれぞれには、画素33〜画素64、画素65〜画素96、画素97〜画素128の画素データが格納されている。   Here, the line 600 stores pixels 1 to 16 and pixels 17 to 32 of two rectangular images (shown in FIG. 2). Similarly, after the reading of the image data for one main scan is completed and the reading of the first one rectangular image array is completed, each of the lines 601 to 603 includes pixel 33 to pixel 64, pixel The pixel data of 65-pixel 96 and pixel 97-pixel 128 are stored.

図7は、2番目の1矩形画像アレイの画像データの読み出しを説明する図である。   FIG. 7 is a diagram for explaining reading of image data of the second one rectangular image array.

1行目の画像データの読み出し時には、1番目の矩形画像の画素1〜画素4、2番目の矩形画像の画素17〜画素20、3番目の矩形画像の画素33〜画素36、以下同様にして8番目の矩形画像の画素113〜画素116までが読み出される。この読み出し順は、図7の点線で示すようになる。2行目の画像データ、即ち、画素5〜画素8、画素21〜画素24に関しても同様にアドレッシングされて読み出される。   When reading out the image data of the first row, the pixels 1 to 4 of the first rectangular image, the pixels 17 to 20 of the second rectangular image, the pixels 33 to 36 of the third rectangular image, and so on. The pixels 113 to 116 of the eighth rectangular image are read out. This reading order is as shown by the dotted line in FIG. The image data in the second row, that is, the pixels 5 to 8 and the pixels 21 to 24 are similarly addressed and read out.

図8は、図7に示す順に読み出した画素の位置に次に入力される矩形画像の各画素を書き込んだ様子を示す図である。図8では、2番目の1矩形画像アレイの画像データの読み出し時に、3番目の1矩形画像アレイの最初と2番目の矩形画像(図2)が入力されて格納された状態を示している。   FIG. 8 is a diagram illustrating a state in which each pixel of the next input rectangular image is written at the pixel position read in the order shown in FIG. FIG. 8 shows a state in which the first and second rectangular images (FIG. 2) of the third one rectangular image array are input and stored when the image data of the second one rectangular image array is read.

図9は、こうして3番目の1矩形画像アレイがラインバッファに格納された後、次に入力される4番目の1矩形画像アレイの最初の矩形画像(図2(A))が、その読み出した画像データの位置に格納された状態を示す図である。即ち、3番目の1矩形画像アレイがラインバッファに格納された後、その1主走査の画像データの読み出しが開始され、そのデータの読み出しに伴って、4番目の1矩形画像アレイの最初の矩形画像が、その読み出した画像データの位置に格納される。   FIG. 9 shows that after the third rectangular image array is stored in the line buffer in this way, the first rectangular image (FIG. 2A) of the fourth input rectangular image array to be input next is read out. It is a figure which shows the state stored in the position of image data. That is, after the third one rectangular image array is stored in the line buffer, reading of the image data of one main scan is started, and the first rectangle of the fourth one rectangular image array is read along with the reading of the data. An image is stored at the position of the read image data.

以下詳しい説明を省略するが、5番目の矩形画像アレイの画像データの読み出し時、つまり6番目の矩形画像アレイの画像データの書込み時には、1番目の矩形画像アレイの画像データの書き込み時と同様のアドレッシング方法を採ることになる。   Although not described in detail below, when reading the image data of the fifth rectangular image array, that is, when writing the image data of the sixth rectangular image array, the same as when writing the image data of the first rectangular image array The addressing method will be adopted.

このように、この方法では、4画素×4ラインで、主走査が32画素という小さい画像の中でさえ、このような6通りものアドレッシングが必要となる。従って、変換処理を行う矩形画像のサイズが大きくなり、また、実際に用いられる画像サイズを想定した場合には、データの書込み及び読み出しにおけるアドレス制御はより複雑なものとなる。
特開2004−40381号公報 特開2001−285644号公報
As described above, this method requires such six kinds of addressing even in a small image of 4 pixels × 4 lines and a main scan of 32 pixels. Accordingly, the size of the rectangular image to be converted is increased, and address control in writing and reading of data becomes more complicated when an actually used image size is assumed.
JP 2004-40181 A JP 2001-285644 A

このように上述した従来技術では、矩形画像からラスタ画像データへの変換処理が複雑になっていた。即ち、前者の方法では、副走査ライン数の2倍のメモリ容量が必要となるため、高速動作を行わせるためにICにメモリを内蔵するためにはメモリ容量が非常に大きくなる。   As described above, in the above-described prior art, the conversion process from the rectangular image to the raster image data is complicated. That is, the former method requires a memory capacity twice as large as the number of sub-scanning lines, so that the memory capacity becomes very large in order to incorporate the memory in the IC in order to perform high-speed operation.

また後者の方法では、前述したように、画像データを読み出したアドレスに対して、次に矩形画像を書き込み、その書き込んだ画像データを主走査方向に読み出すという処理が必要になり、矩形画像の数が増えるたびに処理が複雑になる。特に、このようなアドレッシング方法をハードウェアのみで実現しようとすると、これらの動作検証にも時間を要する。また、全てのアドレッシング方法が検証されずにハードウェア化されることも起こりうるため、バグ発生のリスクも高かった。   In the latter method, as described above, it is necessary to write a rectangular image next to the address from which the image data is read, and to read the written image data in the main scanning direction. The processing becomes more complicated as the number increases. In particular, when such an addressing method is to be realized only by hardware, it takes time to verify these operations. In addition, since all addressing methods could be hardwareized without being verified, the risk of bugs was high.

本発明の目的は上記従来技術の問題点を解決することにある。   An object of the present invention is to solve the above-mentioned problems of the prior art.

本願発明の一態様に係る特徴は、矩形画像からラスタ画像データへの変換処理において、メモリ容量が増大することを避けつつ、メモリアクセスの際のアドレッシングを単純化する画像処理装置及びその方法を提供することにある。   According to an aspect of the present invention, there is provided an image processing apparatus and method for simplifying addressing at the time of memory access while avoiding an increase in memory capacity in a conversion process from a rectangular image to raster image data. There is to do.

上記目的を達成するために本発明の一態様に係る画像処理装置は以下のような構成を備える。即ち、
n×n画素で構成される矩形画像の複数を入力してn×m画素を1ラインとするライン単位の画像データを出力する画像処理装置であって、
1ラインをn×m画素とするnライン分の画素データを記憶可能な記憶手段と、
前記記憶手段に前記矩形画像を書き込むための書き込みアドレス、及び前記記憶手段からライン単位の画像データを読み出すための読み出しアドレスを生成するアドレス生成手段と、
個の矩形画像が前記記憶手段に書き込まれる度に、前記書き込みアドレスの生成方式を第1の書き込みアドレス生成方式と第2の書き込みアドレス生成方式とで切替え、nライン分の画像データを前記記憶手段から読み出す度に、前記読み出しアドレスの生成方式を第1の読み出しアドレス生成方式と第2の読み出しアドレス生成方式とで切替える切替え手段と、
前記第1の書き込みアドレス生成方式に基づいて前記記憶手段への矩形画像の書き込みを行った後に、前記第1の読み出しアドレス生成方式に基づいて前記記憶手段からライン単位の画像データの読み出しを行うとともに、前記第2の書き込みアドレス生成方式に基づいて前記記憶手段への矩形画像の書き込みを行った後に前記第2の読み出しアドレス生成方式に基づいて前記記憶手段からライン単位の画像データの読み出しを行うよう前記記憶手段を制御する制御手段とを有し
前記制御手段は、前記第1の読み出しアドレス生成方式に基づいて1ライン以上でnライン未満の画像データを前記記憶手段から読み出したことに応じて、当該画像データが読み出された領域への前記第2の書き込みアドレス生成方式に基づく矩形画像の書き込みを開始させ、前記第2の読み出しアドレス生成方式に基づいて1ライン以上でnライン未満の画像データを前記記憶手段から読み出したことに応じて、当該画像データが読み出された領域へ前記第1の書き込みアドレス生成方式に基づく矩形画像の書き込みを開始させ、
前記第1の書き込みアドレス生成方式は、各矩形画像の書き込みにおいてn画素がn×mアドレスおきにn回書き込まれるようにアドレスを生成する方式であって、k番目の矩形画像の書き込み開始アドレスにn×nを加えたアドレスが(k+1)番目の矩形画像の書き込み開始アドレスとなり、k番目の矩形画像の書き込み開始アドレスにnを加えたアドレスが(k+2)番目の矩形画像の書き込み開始アドレスとなるようにアドレスを生成する方式であり、
前記第1の読み出しアドレス生成方式は、各ラインの読み出しにおいてn画素がm回読み出されるようにアドレスを生成する方式であって、k回目の読み出し開始アドレスにn×nを加えたアドレスが(k+1)回目の読み出し開始アドレスとなり、k回目の読み出し開始アドレスにnを加えたアドレスが(k+2)回目の読み出し開始アドレスとなるようにアドレスを生成する方式であり、
前記第2の書き込みアドレス生成方式は、各矩形画像の書き込みにおいてn×n画素が1回書き込まれるようにアドレスを生成する方式であって、k番目の矩形画像の書き込み開始アドレスにn×nを加えたアドレスが(k+1)番目の矩形画像の書き込み開始アドレスとなるようにアドレスを生成する方式であり、
前記第2の読み出しアドレス生成方式は、各ラインの読み出しにおいてn画素がm回読み出されるようにアドレスを生成する方式であって、k回目の読み出し開始アドレスにn×nを加えたアドレスが(k+1)回目の読み出し開始アドレスとなり、k回目の読み出し開始アドレスにn×mを加えたアドレスが(k+2)回目の読み出し開始アドレスとなるようにアドレスを生成する方式であることを特徴とする。
In order to achieve the above object, an image processing apparatus according to an aspect of the present invention has the following arrangement. That is,
An image processing device for inputting a plurality of rectangular images composed of n × n pixels and outputting image data in units of lines with n × m pixels as one line,
Storage means capable of storing pixel data for n lines in which one line is n × m pixels;
Address generation means for generating a write address for writing the rectangular image in the storage means, and a read address for reading line-unit image data from the storage means;
Each time m rectangular images are written to the storage means, the write address generation method is switched between the first write address generation method and the second write address generation method, and image data for n lines is stored in the storage unit. Switching means for switching the read address generation method between the first read address generation method and the second read address generation method each time reading from the means;
After writing the rectangular image to the storage unit based on the first write address generation method, the image data is read in line units from the storage unit based on the first read address generation method. After writing the rectangular image to the storage unit based on the second write address generation method, the image data is read in line units from the storage unit based on the second read address generation method. and control means for controlling said storage means,
The control unit reads the image data of one line or more and less than n lines from the storage unit based on the first read address generation method, and the control unit reads the image data into the area where the image data is read. In response to starting to write a rectangular image based on the second write address generation method and reading image data of one line or more and less than n lines from the storage unit based on the second read address generation method, Start writing a rectangular image based on the first write address generation method to the area from which the image data has been read,
The first write address generation method is a method of generating addresses so that n pixels are written n times every n × m addresses in writing each rectangular image, and the write start address of the kth rectangular image is set as the write start address. The address obtained by adding n × n is the write start address of the (k + 1) th rectangular image, and the address obtained by adding n to the write start address of the kth rectangular image is the write start address of the (k + 2) th rectangular image. So that the address is generated
The first read address generation method is a method of generating an address so that n pixels are read m times in reading of each line, and an address obtained by adding n × n to the kth read start address is (k + 1). This is a method for generating an address so that an address obtained by adding n to the k-th read start address becomes the (k + 2) -th read start address.
The second write address generation method is a method of generating an address so that n × n pixels are written once in writing of each rectangular image, and n × n is set as a write start address of the kth rectangular image. In this method, the address is generated so that the added address becomes the write start address of the (k + 1) th rectangular image.
The second read address generation method is a method of generating an address so that n pixels are read m times in reading of each line, and an address obtained by adding n × n to the kth read start address is (k + 1). This is a method of generating an address so that an address obtained by adding n × m to the kth read start address becomes the (k + 2) th read start address .

上記目的を達成するために本発明の一態様に係る画像処理方法は以下のような工程を備える。即ち、
1ラインをn×m画素とするnライン分の画素データを記憶可能な記憶手段を有し、n×n画素で構成される矩形画像の複数を入力してn×m画素を1ラインとするライン単位の画像データを出力する画像処理装置における画像処理方法であって、
前記メモリに前記矩形画像を書き込むための書き込みアドレス、及び前記記憶手段からライン単位の画像データを読み出すための読み出しアドレスを生成する生成工程と、
個の矩形画像が前記メモリに書き込まれる度に前記書き込みアドレスの生成方式を第1の書き込みアドレス生成方式と第2の書き込みアドレス生成方式とで切替え、nライン分の画像データを前記メモリから読み出す度に前記読み出しアドレスの生成方式を第1の読み出しアドレス生成方式と第2の読み出しアドレス生成方式とで切替える切替え工程と、
前記第1の書き込みアドレス生成方式に基づいて前記メモリへの矩形画像の書き込みを行った後に、前記第1の読み出しアドレス生成方式に基づいて前記メモリからライン単位の画像データの読み出しを行うとともに、前記第2の書き込みアドレス生成方式に基づいて前記メモリへの矩形画像の書き込みを行った後に、前記第2の読み出しアドレス生成方式に基づいて前記メモリからライン単位の画像データの読み出しを行うよう前記メモリを制御する制御工程とを有し
前記制御工程は、前記第1の読み出しアドレス生成方式に基づいて1ライン以上でnライン未満の画像データを前記記憶手段から読み出したことに応じて、当該画像データが読み出された領域への前記第2の書き込みアドレス生成方式に基づく矩形画像の書き込みを開始させ、前記第2の読み出しアドレス生成方式に基づいて1ライン以上でnライン未満の画像データを前記記憶手段から読み出したことに応じて、当該画像データが読み出された領域へ前記第1の書き込みアドレス生成方式に基づく矩形画像の書き込みを開始させ、
前記第1の書き込みアドレス生成方式は、各矩形画像の書き込みにおいてn画素がn×mアドレスおきにn回書き込まれるようにアドレスを生成する方式であって、k番目の矩形画像の書き込み開始アドレスにn×nを加えたアドレスが(k+1)番目の矩形画像の書き込み開始アドレスとなり、k番目の矩形画像の書き込み開始アドレスにnを加えたアドレスが(k+2)番目の矩形画像の書き込み開始アドレスとなるようにアドレスを生成する方式であり、
前記第1の読み出しアドレス生成方式は、各ラインの読み出しにおいてn画素がm回読み出されるようにアドレスを生成する方式であって、k回目の読み出し開始アドレスにn×nを加えたアドレスが(k+1)回目の読み出し開始アドレスとなり、k回目の読み出し開始アドレスにnを加えたアドレスが(k+2)回目の読み出し開始アドレスとなるようにアドレスを生成する方式であり、
前記第2の書き込みアドレス生成方式は、各矩形画像の書き込みにおいてn×n画素が1回書き込まれるようにアドレスを生成する方式であって、k番目の矩形画像の書き込み開始アドレスにn×nを加えたアドレスが(k+1)番目の矩形画像の書き込み開始アドレスとなるようにアドレスを生成する方式であり、
前記第2の読み出しアドレス生成方式は、各ラインの読み出しにおいてn画素がm回読み出されるようにアドレスを生成する方式であって、k回目の読み出し開始アドレスにn×nを加えたアドレスが(k+1)回目の読み出し開始アドレスとなり、k回目の読み出し開始アドレスにn×mを加えたアドレスが(k+2)回目の読み出し開始アドレスとなるようにアドレスを生成する方式であることを特徴とする。
In order to achieve the above object, an image processing method according to an aspect of the present invention includes the following steps. That is,
It has a storage means capable of storing pixel data for n lines where one line is n × m pixels, and inputs a plurality of rectangular images composed of n × n pixels to make n × m pixels one line. An image processing method in an image processing apparatus for outputting line-unit image data,
A generation step of generating a write address for writing the rectangular image to the memory and a read address for reading line-unit image data from the storage unit;
Each time m rectangular images are written to the memory, the write address generation method is switched between the first write address generation method and the second write address generation method, and image data for n lines is read from the memory. A switching step of switching the read address generation method between a first read address generation method and a second read address generation method each time;
After writing the rectangular image to the memory based on the first write address generation method, the image data is read from the memory in units of lines based on the first read address generation method, and After writing a rectangular image to the memory based on a second write address generation method, the memory is configured to read line-by-line image data from the memory based on the second read address generation method. and a control step of controlling,
In response to reading out image data of one line or more and less than n lines from the storage unit based on the first read address generation method, the control step reads the image data into the area from which the image data was read. In response to starting to write a rectangular image based on the second write address generation method and reading image data of one line or more and less than n lines from the storage unit based on the second read address generation method, Start writing a rectangular image based on the first write address generation method to the area from which the image data has been read,
The first write address generation method is a method of generating addresses so that n pixels are written n times every n × m addresses in writing each rectangular image, and the write start address of the kth rectangular image is set as the write start address. The address obtained by adding n × n is the write start address of the (k + 1) th rectangular image, and the address obtained by adding n to the write start address of the kth rectangular image is the write start address of the (k + 2) th rectangular image. So that the address is generated
The first read address generation method is a method of generating an address so that n pixels are read m times in reading of each line, and an address obtained by adding n × n to the kth read start address is (k + 1). This is a method for generating an address so that an address obtained by adding n to the k-th read start address becomes the (k + 2) -th read start address.
The second write address generation method is a method of generating an address so that n × n pixels are written once in writing of each rectangular image, and n × n is set as a write start address of the kth rectangular image. In this method, the address is generated so that the added address becomes the write start address of the (k + 1) th rectangular image.
The second read address generation method is a method of generating an address so that n pixels are read m times in reading of each line, and an address obtained by adding n × n to the kth read start address is (k + 1). This is a method of generating an address so that an address obtained by adding n × m to the kth read start address becomes the (k + 2) th read start address .

本発明によれば、矩形画像からラスタ画像データへの変換処理において、メモリ容量が増大することを避けつつ、メモリアクセスの際のアドレッシングを単純化できる。   According to the present invention, in the conversion processing from rectangular images to raster image data, it is possible to simplify the addressing at the time of memory access while avoiding an increase in memory capacity.

以下、添付図面を参照して本発明の好適な実施の形態を詳しく説明する。尚、以下の実施の形態は特許請求の範囲に係る本発明を限定するものでなく、また本実施の形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. The following embodiments do not limit the present invention according to the claims, and all combinations of features described in the present embodiments are essential to the solution means of the present invention. Not exclusively.

まず最初に本実施の形態に係るアドレッシングの概念を図10〜図14を参照して説明する。   First, the concept of addressing according to the present embodiment will be described with reference to FIGS.

図10は、最初のm個(m=8)の矩形画像アレイ(8矩形画像)の画像データをラインバッファに書込む際のアドレス順を説明する図である。ここでも前述の従来技術の説明のように、1ラインが32画素、1矩形画像が4×4画素の場合で説明している。尚、図中の○数字は、矩形画像の書き込む順を表している。   FIG. 10 is a diagram for explaining the address order when the image data of the first m (m = 8) rectangular image arrays (8 rectangular images) is written into the line buffer. Here, as in the above description of the prior art, one line is 32 pixels, and one rectangular image is 4 × 4 pixels. In the figure, the ◯ numbers indicate the order in which rectangular images are written.

ここでは1番目の矩形画像(図2(A))を、1001で示すように、アドレス1〜4,33〜36,65〜68,97〜100に書き込む。次に2番目の矩形画像(図2(B))を、1002で示すように、アドレス17〜20,49〜52,81〜84,113〜116に書き込む。同様に、3番目の矩形画像は、1003で示すように、アドレス5〜8,37〜40,69〜72,101〜104に書き込む。また4番目の矩形画像は、1004で示すように、アドレス21〜24,53〜56,85〜88,117〜120に書き込む。   Here, the first rectangular image (FIG. 2A) is written at addresses 1 to 4, 33 to 36, 65 to 68, and 97 to 100 as indicated by 1001. Next, the second rectangular image (FIG. 2B) is written to addresses 17 to 20, 49 to 52, 81 to 84, and 113 to 116 as indicated by 1002. Similarly, the third rectangular image is written at addresses 5 to 8, 37 to 40, 69 to 72, 101 to 104, as indicated by 1003. The fourth rectangular image is written at addresses 21 to 24, 53 to 56, 85 to 88, and 117 to 120 as indicated by 1004.

これは、1矩形画像内のデータは、1行ごとに32アドレスのオフセットで書込み、次の矩形画像は16アドレスのオフセットで書き込むことを意味している。但し、2番目、4番目、6番目の矩形画像の次は、16アドレス分進めると、図10のラインバッファの容量を越えてしまうので、折り返して、合計16アドレス分だけ進めている。   This means that data in one rectangular image is written with an offset of 32 addresses per line, and the next rectangular image is written with an offset of 16 addresses. However, after the second, fourth, and sixth rectangular images, if the address is advanced by 16 addresses, the capacity of the line buffer shown in FIG. 10 is exceeded, so that it is folded and advanced by a total of 16 addresses.

図11は、図10のようにして格納された1矩形画像アレイの1行目の画像データの読み出し順を説明する図である。   FIG. 11 is a diagram for explaining the reading order of image data in the first row of one rectangular image array stored as shown in FIG.

ここでは元の矩形画像の1行目のデータ順に、アドレス1〜7のデータ1111、次はアドレス17〜20のデータ1112、次はアドレス5〜8のデータ1113、そしてアドレス21〜24のデータ1114の順に読み出される。   Here, in the order of data in the first row of the original rectangular image, data 1111 at addresses 1 to 7, next data 1112 at addresses 17 to 20, next data 1113 at addresses 5 to 8, and data 1114 at addresses 21 to 24 are used. Are read in this order.

前述の従来例2では、画像データを読み出したアドレスに、次に入力された矩形画像が書き込まれていたが、本実施の形態では、矩形画像アレイの1行目の画像データの読み出しが完了するまで次の矩形画像データの書き込みを開始しない。   In the above-described conventional example 2, the next input rectangular image is written at the address from which the image data is read. In this embodiment, the reading of the image data in the first row of the rectangular image array is completed. Until the next rectangular image data is not written.

図12は、図11の最初の矩形画像アレイの1行目の画像データの読み出し後、次に入力される2番目の矩形画像アレイの画像データのうち、1番目と2番目の矩形画像をラインバッファに書き込んだ状態を示す図である。ここでは1番目と2番目の矩形画像の画素データが、アドレスの順に格納されている。   FIG. 12 shows the lines of the first and second rectangular images among the image data of the second rectangular image array inputted next after the reading of the first row of image data of the first rectangular image array of FIG. It is a figure which shows the state written in the buffer. Here, the pixel data of the first and second rectangular images are stored in the order of addresses.

このように2番目の矩形画像アレイの矩形画像データは、アドレス1から順番にアドレスの順に各矩形画像の画素データを図2で示す画素の順に書き込むだけでよい。但し、最初の矩形画像アレイの1ライン目の画像データを読み出しても、2つの矩形画像分の画像データ(図12の例では32画素)しか書き込むことができない。このため、読み出し速度に対してデータの入力が早い場合には、2ライン目のデータの読み出し終了を待って、後続の2つの矩形画像の画像データを書き込むように制御する必要がある。   In this way, the rectangular image data of the second rectangular image array need only be written in the order of the pixels shown in FIG. However, even if image data of the first line of the first rectangular image array is read out, only image data for two rectangular images (32 pixels in the example of FIG. 12) can be written. For this reason, when the input of data is faster than the reading speed, it is necessary to wait for the end of the reading of the data of the second line and control to write the image data of the subsequent two rectangular images.

図13は、こうして2番目の矩形画像アレイの画像データがラインバッファに書き込まれた状態を示す図である。ここでは、ラインバッファの最初の行に、1番目と2番目の矩形画像の画素データがアドレス順に記憶され、次の行に3番目と4番目の矩形画像の画素データがアドレス順に記憶されている。以下同様に、5番目と6番目の矩形画像の画素データが3行目に、7番目と8番目の矩形画像の画素データが4行目にそれぞれアドレスの順に記憶されている。   FIG. 13 is a diagram showing a state in which the image data of the second rectangular image array is thus written in the line buffer. Here, the pixel data of the first and second rectangular images are stored in the order of addresses in the first row of the line buffer, and the pixel data of the third and fourth rectangular images are stored in the order of addresses in the next row. . Similarly, pixel data of the fifth and sixth rectangular images are stored in the third row, and pixel data of the seventh and eighth rectangular images are stored in the fourth row in the order of addresses.

図14は、図13に示す2番目の矩形画像アレイの画像データを主走査ラインの順にラインバッファから読み出す処理を説明する図である。   FIG. 14 is a diagram illustrating a process of reading the image data of the second rectangular image array shown in FIG. 13 from the line buffer in the order of the main scanning lines.

ここで主走査1ライン目のデータの読み出し時には、アドレス1〜4、アドレス17〜20、アドレス33〜36、アドレス49〜52、アドレス65〜68、アドレス81〜84、アドレス97〜100、そしてアドレス113〜116の順番で読み出される。   Here, at the time of reading data on the first line of the main scanning, addresses 1 to 4, addresses 17 to 20, addresses 33 to 36, addresses 49 to 52, addresses 65 to 68, addresses 81 to 84, addresses 97 to 100, and addresses Data are read in the order of 113 to 116.

この場合、最初の矩形画像アレイの画像データのアクセスと同様に、2番目の矩形画像アレイの1ライン目のデータを読み終わるまでは、3番目の矩形画像アレイの画像データを書き込むことができないものとする。そして、この2番目の矩形画像アレイの1ライン目の画像データの読み出しが完了すると3番目の矩形画像アレイの最初の2つの矩形画像が書き込まれる。この時の、書き込み順は、図10に示す最初の矩形画像アレイの画像データの書込み時のアドレッシング方法と同じとする。   In this case, as in the case of accessing the image data of the first rectangular image array, the image data of the third rectangular image array cannot be written until the first line of data of the second rectangular image array is read. And When the reading of the image data of the first line of the second rectangular image array is completed, the first two rectangular images of the third rectangular image array are written. The writing order at this time is the same as the addressing method at the time of writing the image data of the first rectangular image array shown in FIG.

このようなアドレッシング方法によれば、矩形画像に分割された1ページの画像データを入力してラスタイメージに変換するのが容易になる。即ち、入力される画像データが奇数番目の矩形画像アレイであるか、偶数番目の矩形画像アレイであるかに応じて、各矩形画像アレイの画像データを書込むアドレス及び読み出しアドレスを変更すればよい。   According to such an addressing method, it becomes easy to input one page of image data divided into rectangular images and convert it into a raster image. In other words, depending on whether the input image data is an odd-numbered rectangular image array or an even-numbered rectangular image array, the address for writing the image data of each rectangular image array and the reading address may be changed. .

このアドレッシングの概念に基づいて、実際に想定されるシステムへの適用例を説明する。   Based on this addressing concept, an application example to an actually assumed system will be described.

図1は、本実施の形態に係る矩形画像から点順次のラスタ画像へ変換する画像処理装置の概略構成を示すブロック図である。   FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus for converting a rectangular image into a dot-sequential raster image according to the present embodiment.

CPU100には、大容量のメインメモリ105が接続されている。またチップ間バス110,130を介して、画像処理部(プロセッサ)200及び300が接続されている。尚、メインメモリ105には、不図示の画像入力部から入力されるページ単位の画像データが記憶されているものとする。メインメモリ105に記憶されたページ単位の画像データに画像処理を行う場合、ページ単位の画像データのままで画像処理を行おうとすると、1ページ分の画像データを格納するためのバッファメモリを画像処理部300に設ける必要がある。しかし、画像処理部300に、1ページ分の画像データを格納できるような大容量のバッファメモリを設けるのはコストアップになってしまう。   A large capacity main memory 105 is connected to the CPU 100. Further, image processing units (processors) 200 and 300 are connected via interchip buses 110 and 130. It is assumed that the main memory 105 stores page-unit image data input from an image input unit (not shown). When image processing is performed on page-unit image data stored in the main memory 105, if image processing is to be performed with the page-unit image data as it is, a buffer memory for storing image data for one page is stored in the image memory. It is necessary to provide the unit 300. However, providing the image processing unit 300 with a large-capacity buffer memory that can store image data for one page increases the cost.

そこで本実施の形態では、メインメモリ105に記憶されたページ単位の画像データを、複数の矩形領域に分割した画像(矩形画像)を単位として、画像処理部300に画像処理を行わせるものとする。この場合、画像処理部300には、矩形画像を格納できる分のバッファメモリがあれば画像処理を実行可能である。但し本実施の形態では、画像処理部200から出力する画像データは、ページ単位の画像データの1ライン分に相当するライン単位の画像データとして、画像データを出力するものとする。そして、ライン単位の画像データとして画像データを出力するには、矩形画像をライン単位の画像データに変換する必要があり、その変換の仕組みが画像処理部200に組み込まれている。   Therefore, in the present embodiment, it is assumed that the image processing unit 300 performs image processing in units of images (rectangular images) obtained by dividing the page-unit image data stored in the main memory 105 into a plurality of rectangular areas. . In this case, if the image processing unit 300 has a buffer memory that can store a rectangular image, image processing can be executed. However, in the present embodiment, the image data output from the image processing unit 200 is output as image data in line units corresponding to one line of image data in page units. In order to output image data as line-by-line image data, it is necessary to convert a rectangular image into line-by-line image data, and the conversion mechanism is incorporated in the image processing unit 200.

尚、図1で、メインメモリ105からチップ間バス110を介して画像処理部200に入力された画像データは、判定部260により画像処理部200で処理する画像データであるか否かが判定される。ここで画像処理部200で処理する画像データであると判定されると、その画像データは内部データバス240に送られる。一方、画像処理部200で処理する画像データでないと判定されると、その画像データはチップ間バス120を介して画像処理部300に送られる。   In FIG. 1, it is determined whether or not the image data input from the main memory 105 to the image processing unit 200 via the inter-chip bus 110 is image data to be processed by the image processing unit 200. The If it is determined that the image data is processed by the image processing unit 200, the image data is sent to the internal data bus 240. On the other hand, when it is determined that the image data is not processed by the image processing unit 200, the image data is sent to the image processing unit 300 via the inter-chip bus 120.

制御部220は、矩形画像からラスタ画像データへの変換処理を実行しており、内部のメモリバス230を介して、ラインメモリ210に接続される。この制御部220は、矩形画像から点順次のラスタ画像データに変換し、その結果を内部データバス250へ出力している。そしてデータ出力制御部270の制御の下に、その処理済みの画像データは画像処理部200からバス280に出力される。   The control unit 220 executes a conversion process from rectangular images to raster image data, and is connected to the line memory 210 via the internal memory bus 230. The control unit 220 converts the rectangular image into dot sequential raster image data and outputs the result to the internal data bus 250. Then, the processed image data is output from the image processing unit 200 to the bus 280 under the control of the data output control unit 270.

図15は、本実施の形態に係る制御部220の構成を示すブロック図である。   FIG. 15 is a block diagram showing a configuration of control unit 220 according to the present embodiment.

入力信号1601に制御されて入力される矩形画像の画像データ1600は、データ分割部1611によって、ライン単位に分割される。そして、データ分割部1611に一定量のデータが溜まると書込み制御部1620は、アクセス調停部1630に対して、書込み要求1606と、書込みアドレス1603を出力する。アクセス調停部1630で、この書込み要求が許可されると、書き込み制御部1620は、データ分割部1611のバッファに記憶された画像データをメモリバス230を介してラインメモリ210に書き込む。   The image data 1600 of the rectangular image that is input under the control of the input signal 1601 is divided into lines by the data dividing unit 1611. When a certain amount of data accumulates in the data dividing unit 1611, the write control unit 1620 outputs a write request 1606 and a write address 1603 to the access arbitration unit 1630. When this write request is permitted by the access arbitration unit 1630, the write control unit 1620 writes the image data stored in the buffer of the data dividing unit 1611 to the line memory 210 via the memory bus 230.

一方、アクセス調停部1630は、ラインメモリ210へのデータの書き込みと読み出しの状態を監視している。前述したような1ラインの読み出し終了タイミングや、書込み或は読み出しのアクセスを優先するモードなどの状態管理を行う。   On the other hand, the access arbitration unit 1630 monitors the state of data writing to and reading from the line memory 210. Status management such as the above-described one-line read end timing and a mode giving priority to write or read access is performed.

読出し制御部1640は、アクセス調停部1630によりラインメモリ210からのデータの読み出しが許可されると、ラインメモリ210からメモリバス230を介して画像データを読み出す。データ送信部1650は、制御信号1608により通知を受けると、メモリバス230のデータを取り込んでデータ送信部1650のバッファ(不図示)に格納する。   When the access arbitration unit 1630 permits reading of data from the line memory 210, the read control unit 1640 reads image data from the line memory 210 via the memory bus 230. When the data transmission unit 1650 is notified by the control signal 1608, the data transmission unit 1650 takes in the data of the memory bus 230 and stores it in a buffer (not shown) of the data transmission unit 1650.

1画素はC(シアン)M(マゼンタ)Y(イエロー)K(黒)の各色成分のデータで構成され、各色を12ビット(4096階調)で表現するために、48ビット(12ビット×4色)のデータで構成される。1つの矩形画像のサイズを32画素×32ラインとする。ライン方向の画素数は最大8192画素(256矩形画像分)であるシステムの例で説明する。   One pixel is composed of data of each color component of C (cyan), M (magenta), Y (yellow), and K (black), and 48 bits (12 bits × 4) in order to express each color with 12 bits (4096 gradations). Color) data. The size of one rectangular image is 32 pixels × 32 lines. A system example in which the maximum number of pixels in the line direction is 8192 pixels (for 256 rectangular images) will be described.

図16は、ラインメモリ210における矩形画像のデータ配列を示す図である。   FIG. 16 is a diagram showing a data array of rectangular images in the line memory 210.

縦方向の番号(1〜32)は、ラインメモリにおけるライン(ライン番号)を示しており、1は1番目のライン、2は2番目のラインというように、番号に対してラインが設定されているものとする。   The numbers in the vertical direction (1 to 32) indicate lines (line numbers) in the line memory, where 1 is the first line, 2 is the second line, etc. It shall be.

ここで1つの矩形画像の1ライン分の画素数は32(画素)であるため、矩形画像の1ライン分のデータ量は、48ビット×32(画素)で1536ビットとなる。いまラインメモリ210が、1アドレスあたり256ビット幅のものを使用すると、1つの矩形画像の1ラインについて6アドレスが必要となる。また上述のライン方向の画素数(8192画素)では、1536アドレスが必要となる。よって、いまラインメモリ210を1ライン(8192画素)単位で切ってあるとすると、2ライン目の先頭アドレスは、アドレス「1536」となる。以後、各ラインの先頭アドレスは「1536」ずつ加算されていく。   Here, since the number of pixels for one line of one rectangular image is 32 (pixels), the amount of data for one line of the rectangular image is 1536 bits of 48 bits × 32 (pixels). If the line memory 210 has a 256-bit width per address, six addresses are required for one line of one rectangular image. Further, in the above-described number of pixels in the line direction (8192 pixels), 1536 addresses are required. Therefore, if the line memory 210 is cut in units of one line (8192 pixels), the head address of the second line is the address “1536”. Thereafter, the head address of each line is incremented by “1536”.

図16は、各ラインの先頭部分のアドレスオフセット番号(上部)と、各ライン番号(左部)を示しており、各ラインの先頭部分を拡大して示している。   FIG. 16 shows the address offset number (upper part) and the line number (left part) of the head part of each line, and shows the head part of each line in an enlarged manner.

次に実際のアドレッシング順序を説明する。   Next, the actual addressing order will be described.

まず始めに、奇数番目の矩形画像アレイをラインメモリ210に書き込む際のアドレッシング順序(第1の書き込みアドレス生成方式)を説明する。   First, an addressing sequence (first write address generation method) when writing an odd-numbered rectangular image array to the line memory 210 will be described.

奇数番目の矩形画像アレイの画像データの入力時、書き込み制御部1620は、1番目の矩形画像を、アドレスオフセット番号0〜5の位置に合わせて書き込む(1601で示す図16の0〜5の縦方向)。また、書き込み制御部1620は、2番目の矩形画像を、1矩形画像における32ライン分のアドレスオフセット(32×6アドレス=192アドレス)を持たせて、1602で示すアドレス192〜197に対して書き込む。   When the image data of the odd-numbered rectangular image array is input, the writing control unit 1620 writes the first rectangular image in accordance with the positions of the address offset numbers 0 to 5 (vertical 0 to 5 in FIG. direction). The write control unit 1620 writes the second rectangular image to addresses 192 to 197 indicated by 1602 with an address offset (32 × 6 addresses = 192 addresses) for 32 lines in one rectangular image. .

これらを繰り返していくと、図17の1700〜1707で示すように、8つの矩形画像が書き込まれる。そして次に9番目の矩形画像を書き込むときには、アドレスが折り返される。このアドレスが折り返された時は、ブロックを1つ分ずらして、図16の1603で示すアドレス6〜11に対応する領域に、それ9番目の矩形画像がラインメモリ210に書き込まれることになる。   If these steps are repeated, eight rectangular images are written as indicated by 1700 to 1707 in FIG. Then, when the ninth rectangular image is written next, the address is folded. When this address is folded, the block is shifted by one, and the ninth rectangular image is written in the line memory 210 in the area corresponding to addresses 6 to 11 indicated by 1603 in FIG.

以上のような方式(第1の書き込みアドレス生成方式)で、256個の矩形画像のラインメモリ210への書き込みを行うことで、奇数番目の矩形画像アレイが、ラインメモリ210の全領域に書き込まれる。   By writing 256 rectangular images to the line memory 210 using the above method (first write address generation method), the odd-numbered rectangular image array is written to the entire area of the line memory 210. .

そして、第1の書き込みアドレス生成方式により矩形画像アレイが書き込まれたラインメモリ210からライン単位の画像データを読み出す場合、図16に示す1604の領域、1605の領域,…と1ライン目に書き込まれた画素データを読み出す。これにより、読み出し制御部1640は、32画素×256=8192画素を1ラインの画素数とするライン単位の画像データを読み出す。そして、読み出し制御部1640は、ライン単位の画像データの読み出しを、2ライン目、3ライン目,…,32ライン目と繰り返すことで、奇数番目の矩形画像アレイをラインメモリ210から読み出す。そして、第1の書き込みアドレス生成方式で矩形画像アレイが書き込まれたラインメモリ210から、特定のラインに格納されるライン単位の画像データを読み出す方式を第1の読み出しアドレス生成方式と呼ぶこととする。   When the line-unit image data is read from the line memory 210 in which the rectangular image array is written by the first write address generation method, it is written in the 1604 area, 1605 area,... Shown in FIG. Read out pixel data. As a result, the read control unit 1640 reads image data in units of lines in which 32 pixels × 256 = 8192 pixels are used as the number of pixels in one line. Then, the read control unit 1640 reads out the odd-numbered rectangular image array from the line memory 210 by repeating the reading of the image data in units of lines as the second line, the third line,. A method of reading out line-unit image data stored in a specific line from the line memory 210 in which the rectangular image array is written by the first write address generation method is referred to as a first read address generation method. .

次に偶数番目の矩形画像アレイをラインメモリ210に書込む際のアドレッシング順序(第2の書き込みアドレス生成方式)を説明する。   Next, the addressing sequence (second write address generation method) when writing the even-numbered rectangular image array into the line memory 210 will be described.

偶数番目の矩形画像アレイの場合、書き込み制御部1620は、図16に示す1604の領域に対して、1番目の矩形画像を書き込む。また各矩形画像は、1ライン分(32画素=1536ビット)を1つのブロック(6アドレス分)としてラインメモリ210に書き込むようにする。そして、書き込み制御部1620は、2番目の矩形画像を、図16に示す1605の領域に対して書き込む。そして、書き込み制御部1620は、3番目以降の矩形画像を、ラインメモリ210上で1ライン目に相当する領域に書き込む動作を繰り返す。そして、書き込み制御部1620は、8個の矩形画像を書き込むことでラインメモリ210上の1ライン目を、全ての領域に矩形画像が書き込まれた状態とする。そして、9番目〜16番目の矩形画像は、ラインメモリ210上で2ライン目に相当する領域に書き込まれる。同様に、17番目〜24番目の矩形画像は3ライン目に、25番目〜32番目の矩形画像は4ライン目に書き込まれる。最終的には、249番目〜256番目の矩形画像が32ライン目に書き込まれ、偶数番目の矩形画像アレイがラインメモリ210の全領域に書き込まれた状態となる。   In the case of an even-numbered rectangular image array, the writing control unit 1620 writes the first rectangular image in the area 1604 shown in FIG. Each rectangular image is written in the line memory 210 as one block (for six addresses) for one line (32 pixels = 1536 bits). Then, the writing control unit 1620 writes the second rectangular image in the area 1605 shown in FIG. Then, the writing control unit 1620 repeats the operation of writing the third and subsequent rectangular images in the area corresponding to the first line on the line memory 210. Then, the writing control unit 1620 writes eight rectangular images so that the first line on the line memory 210 is in a state where the rectangular images are written in all areas. The ninth to sixteenth rectangular images are written in an area corresponding to the second line on the line memory 210. Similarly, the 17th to 24th rectangular images are written on the 3rd line, and the 25th to 32nd rectangular images are written on the 4th line. Eventually, the 249th to 256th rectangular images are written in the 32nd line, and the even-numbered rectangular image array is written in the entire area of the line memory 210.

一方、偶数番目の矩形画像アレイをラインメモリ210から読み出す際に、読み出し制御部1640は、アドレス0〜5、アドレス192〜197、アドレス384〜389というように、192アドレスずつアドレスをスキップしながら読み出す。そして1ラインの最終まで折り返した場合は、6アドレス分のオフセットを与えて、アドレス6〜11、アドレス198〜203、アドレス390〜395というようにデータを読み出していく。こうして1ライン分の画像データの読み出しが終了すると、8つの矩形画像分のデータ領域が解放される。以上のように、第2の書き込みアドレス生成方式で、矩形画像アレイが書き込まれたラインメモリ210からライン単位の画像データを読み出す方式を第2の読み出しアドレス生成方式と呼ぶこととする。   On the other hand, when the even-numbered rectangular image array is read from the line memory 210, the read control unit 1640 reads while skipping addresses by 192 addresses, such as addresses 0 to 5, addresses 192 to 197, and addresses 384 to 389. . When the line is folded back to the end, an offset of 6 addresses is given, and data is read out such as addresses 6 to 11, addresses 198 to 203, and addresses 390 to 395. When the reading of the image data for one line is thus completed, the data area for eight rectangular images is released. As described above, a method of reading out image data in units of lines from the line memory 210 in which the rectangular image array is written in the second write address generation method is referred to as a second read address generation method.

以上の第1の書き込みアドレス生成方式、第2の書き込みアドレス生成方式、第1の読み出しアドレス生成方式、第2の読み出しアドレス生成方式を実現するためのオフセットアドレス生成方式は、ラインメモリ210の使用方法に応じて、数式化が可能である。   The offset address generation method for realizing the first write address generation method, the second write address generation method, the first read address generation method, and the second read address generation method is a method of using the line memory 210. Depending on the formula, it is possible to formulate it.

今回は、line_offset,rect_offset,return_offset,in_block_offsetの4つのオフセットを使用し、奇数番目の矩形画像アレイ、偶数番目の矩形画像アレイに応じて、オフセットの内容を切り替えて、アドレスの生成を行う。   This time, four offsets of line_offset, rect_offset, return_offset, and in_block_offset are used, and the contents of the offset are switched according to the odd-numbered rectangular image array and the even-numbered rectangular image array to generate an address.

このアドレス生成のための演算式は以下で示すことができる。   An arithmetic expression for generating this address can be shown below.

address=line_offset+rect_offset+return_offset+in_block_offset
図18は、各オフセットの種類とモードによるオフセットの意味合いを説明する図である。
address = line_offset + rect_offset + return_offset + in_block_offset
FIG. 18 is a diagram for explaining the meaning of the offset depending on the type and mode of each offset.

今回の例では、
(1)書込みモード:
(奇数番目の矩形画像アレイ)odd line Address=(current_line−1)×1536+((current_rect−1)%8)×192+Int((current_rect−1)/8)×6+current_beat ...式(1)
(偶数番目の矩形画像アレイ)odd line Address=(current_line−1)×6+(current_rect−1)×192+0+current_beat ...式(2)
尚、前述の図10の場合には、上記式は以下のようになる。
In this example,
(1) Write mode:
(Odd-numbered rectangular image array) odd line Address = (current_line−1) × 1536 + ((current_rect−1)% 8) × 192 + Int ((current_rect−1) / 8) × 6 + current_beat (1)
(Even-numbered rectangular image array) odd line Address = (current_line−1) × 6 + (current_rect−1) × 192 + 0 + current_beat Equation (2)
In the case of FIG. 10 described above, the above formula is as follows.

(奇数番目の矩形画像アレイ)odd line Address=(current_line−1)×32+((current_rect−1)%2)×16+Int((current_rect−1)/2)×4+current_beat
(偶数番目の矩形画像アレイ)odd line Address=(current_line−1)×4+(current_rect−1)×16+0+current_beat
(2)読出しモード:
(奇数番目の矩形画像アレイ)odd line Address=(rcurrent_line−1)×1536+((current_block−1)%8)×192+Int((current_block−1)/8)×6+current_beat ...式(3)
(偶数番目の矩形画像アレイ)even line Address=(rcurrent_line−1)×6+((current_block−1)×192+0+current_beat ...式(4)
というようになる。尚、上記式において、「(current_rect−1)%8」は、(current_rect−1)を「8」で割ったときの余りを表している。また(current_block−1)は、1つの矩形画像を構成するライン数である。更に、Int((current_block−1)/8)は、(current_block−1)を8で割った商の整数部分を表している。
(Odd-numbered rectangular image array) odd line Address = (current_line−1) × 32 + ((current_rect−1)% 2) × 16 + Int ((current_rect−1) / 2) × 4 + current_beat
(Even-numbered rectangular image array) odd line Address = (current_line−1) × 4 + (current_rect−1) × 16 + 0 + current_beat
(2) Read mode:
(Odd-numbered rectangular image array) odd line Address = (rcurrent_line−1) × 1536 + ((current_block−1)% 8) × 192 + Int ((current_block−1) / 8) × 6 + current_beat (3)
(Even-numbered rectangular image array) even line Address = (rcurrent_line−1) × 6 + ((current_block−1) × 192 + 0 + current_beat... (4)
And so on. In the above formula, “(current_rect−1)% 8” represents the remainder when (current_rect−1) is divided by “8”. Further, (current_block-1) is the number of lines constituting one rectangular image. Furthermore, Int ((current_block-1) / 8) represents the integer part of the quotient obtained by dividing (current_block-1) by 8.

書込みモードでのcurrent_rectは、1矩形画像アレイにおける矩形画像の順番(最初は1)を示し、読出し時のcurrent_blockは、32画素を1ブロックとしたブロック数を示している。またcurrent_beatは、32画素を入力するために必要なラインメモリ210上のメモリアドレス数をオフセットとしている。またrcurrent_lineは、読出し時のライン位置(1〜32のいずれか)を示している。   Current_rect in the writing mode indicates the order of the rectangular images in one rectangular image array (initially 1), and current_block at the time of reading indicates the number of blocks with 32 pixels as one block. The current_beat has the number of memory addresses on the line memory 210 necessary to input 32 pixels as an offset. Rcurrent_line indicates the line position (any one of 1 to 32) at the time of reading.

また、1ライン中に書き込まれる矩形画像数である「8」は、各矩形画像を図12のようにラインバッファに格納した場合の矩形画像数で、8192/1024(32画素×32ライン)から求めている。   Also, “8”, which is the number of rectangular images written in one line, is the number of rectangular images when each rectangular image is stored in the line buffer as shown in FIG. 12, from 8192/1024 (32 pixels × 32 lines). Seeking.

以上のように、現在の矩形画像のラインと1矩形画像アレイにおける矩形画像の位置がわかれば、アドレスが生成できる。   As described above, if the line of the current rectangular image and the position of the rectangular image in one rectangular image array are known, an address can be generated.

次に、図19を参照して、アクセス調停部1630の動作について説明する。   Next, the operation of the access arbitration unit 1630 will be described with reference to FIG.

図19は、本実施の形態に係るアクセス調停部1630により制御される状態遷移を説明する図である。   FIG. 19 is a diagram for explaining state transition controlled by the access arbitration unit 1630 according to the present embodiment.

ここでは、あるページの処理を行うために8個の状態(S0〜S7)を定義している。ここで、ライトアクセスプライオリティハイ(S2)、リードプライオリティハイ(S4)、最終矩形画像アレイリード(S6)の3つの状態がメインのステートとなる。状態S0はリセット状態、状態S1はアイドル(スタンバイ)状態を示す。状態S3は、予め定められた矩形画像データの書き込みが終了した状態を示し、状態S5は、主走査1ライン分の画像データの読み出しが終了した状態を示す。   Here, eight states (S0 to S7) are defined for processing a certain page. Here, the three states of write access priority high (S2), read priority high (S4), and final rectangular image array read (S6) are the main states. State S0 indicates a reset state, and state S1 indicates an idle (standby) state. A state S3 indicates a state where writing of predetermined rectangular image data is completed, and a state S5 indicates a state where reading of image data for one main scanning line is completed.

状態S2では、書込み要求(ライトアクセス)があった場合は、その書き込みが優先的に実行される。尚、読出し要求(リードアクセス)は、それまでに書き込んでいる矩形画像の数に応じて、その読出し要求が許可される場合と、許可されずに待たされる場合とがある。   In the state S2, if there is a write request (write access), the write is preferentially executed. Note that the read request (read access) may be permitted or may not be permitted depending on the number of rectangular images written so far.

状態S4では、読出し要求が優先される。書込み要求は、例えば図17の例では、主走査方向の1ラインのデータを読み出すと8個の矩形画像の書き込みが許可される。しかしこの1ラインのデータを読み出すまでは、データの書込み要求は許可されない状態のままになる。   In the state S4, the read request has priority. For example, in the example of FIG. 17, when the writing request reads out one line of data in the main scanning direction, writing of eight rectangular images is permitted. However, until this one line of data is read, the data write request remains unpermitted.

最終の状態S6では、読出し要求のみが実行される。ここではページの最後の2矩形画像アレイ分のデータが既にラインメモリ210に記憶されており、それの読出しを行う状態である。この時、次のページの書込み要求があったとしても、現ページの画像データが完全に読み出されて出力されるまでは、次ページの画像データの書込みは許可されない。こうして現ページの画像データが全て読み出されると、状態S7に移行する。   In the final state S6, only the read request is executed. In this case, the data for the last two rectangular image arrays of the page is already stored in the line memory 210 and is read. At this time, even if there is a write request for the next page, writing of the image data of the next page is not permitted until the image data of the current page is completely read and output. When all the image data of the current page is read in this way, the process proceeds to state S7.

これらの制御方法によれば、ラインメモリの容量は、(矩形画像を構成するライン数)×(1ライン画素数)の容量とすれば良い。そして、書き込みと読み出しで各々2種類のアドレッシング方法によって、ページ単位の画像データを、ライン単位の画像データに変換して出力できる。   According to these control methods, the capacity of the line memory may be a capacity of (the number of lines constituting the rectangular image) × (the number of pixels of one line). Then, image data in page units can be converted into image data in line units and output by two types of addressing methods for writing and reading.

この例は、図1にあるシステムのように、IC内にラインメモリを持つ構成としているが、例えばDRAMのような大容量メモリの一部の領域を用いても可能である。また、これらの制御をハードウェア化するだけでなく、ソフトウェアによって実施することも可能である。   In this example, the line memory is provided in the IC as in the system shown in FIG. 1, but it is also possible to use a part of a large capacity memory such as a DRAM. Further, these controls can be implemented not only by hardware but also by software.

図20〜図22は、図1の制御部220によるデータ変換処理を説明するフローチャートである。   20 to 22 are flowcharts for explaining data conversion processing by the control unit 220 of FIG.

図20のステップS100〜S112は、複数の矩形画像を入力して、ラインメモリ210に1矩形画像アレイの画像データを格納する処理を示している。   Steps S100 to S112 in FIG. 20 show processing for inputting a plurality of rectangular images and storing the image data of one rectangular image array in the line memory 210.

まずステップS100で、current_line,current_rectを共に「1」に初期化する。次にステップS101で,1番目の矩形画像を入力する。ステップS102では,その矩形画像の1ライン目の画素データを格納するアドレスを生成し、ステップS103で、制御部220は、そのアドレスに矩形画像の1ライン分の画素データを書き込む。この場合のアドレスの生成は、前述の式(1)に基づいて行われる。こうして矩形画像の1ライン分の画素データをラインメモリ210に書き込むと、ステップS104で、current_lineを+1し、ステップS105で、1矩形画像をラインメモリ210に書き込むまでステップS102〜S105を繰り返す。こうして1番目の矩形画像をラインメモリ210に書き込むとステップS106に進み、current_lineを「1」に戻し、ステップS108で次の矩形画像を入力する。ステップS108では、矩形画像の順番を示すcurrent_rectを+1する。そしてステップS109で、制御部220は、前述のステップS102〜S105の処理(ステップS140)を実行して、その矩形画像をラインメモリ210に書き込む。こうして2番目の矩形画像のラインメモリ210への書き込みが終了するとステップS110に進み、current_lineを「1」に戻してステップS111に進む。そして、ステップS111で、制御部220は、1矩形画像アレイの画像データをラインメモリ210に格納したか否かを判定する。格納が完了していればステップS112に進むが、そうでないときはステップS106に戻る。こうして1矩形画像アレイの画像データがラインメモリ210に記憶された状態は、例えば図10のようになっている。   First, in step S100, current_line and current_rect are both initialized to “1”. In step S101, the first rectangular image is input. In step S102, an address for storing the pixel data of the first line of the rectangular image is generated. In step S103, the control unit 220 writes the pixel data for one line of the rectangular image to the address. In this case, the address is generated based on the above-described equation (1). When the pixel data for one line of the rectangular image is written in the line memory 210 in this way, the current_line is incremented by 1 in step S104, and steps S102 to S105 are repeated until one rectangular image is written in the line memory 210 in step S105. When the first rectangular image is thus written in the line memory 210, the process proceeds to step S106, current_line is returned to "1", and the next rectangular image is input in step S108. In step S108, current_rect indicating the order of the rectangular images is incremented by one. In step S109, the control unit 220 executes the processes in steps S102 to S105 described above (step S140) and writes the rectangular image in the line memory 210. When the writing of the second rectangular image to the line memory 210 is thus completed, the process proceeds to step S110, the current_line is returned to “1”, and the process proceeds to step S111. In step S <b> 111, the control unit 220 determines whether the image data of one rectangular image array is stored in the line memory 210. If the storage is completed, the process proceeds to step S112. If not, the process returns to step S106. The state in which the image data of one rectangular image array is stored in the line memory 210 is as shown in FIG. 10, for example.

次に図21に進み、ステップS113〜S119で、その1矩形画像アレイの画像データのラインメモリ210からの読出しを行う。即ち、ステップS113で、1番目の矩形画像の1ライン目(current_block = 1)が格納されているアドレスを算出する。これは例えば前述の式(3)により求めることができる。次にステップS114で、制御部220は、その1ライン分の画像データを読み出す。次にステップS115で、current_blockを+1し、ステップS116で、ページ単位の画像データの1ライン分(8192画素)の画像データを読み出すまでステップS113〜S116を繰り返す。こうしてページ単位の画像データの1ライン分の画像データを読み出すと、次の矩形画像の書き込みが可能になるためステップS117で、次の矩形画像が入力されているかを調べ、入力されているとステップS118に進む。ステップS118では、その入力された矩形画像を構成する複数のラインの各ラインを、その読み出しが完了したラインメモリ210の1ライン分のエリアに格納する。この場合の書き込むアドレスの計算は、例えば前述の式(2)に基づいて行われる。こうして、後続の2つの矩形画像が書き込まれた状態は、例えば図12のようになる。   Next, proceeding to FIG. 21, in steps S113 to S119, the image data of the one rectangular image array is read from the line memory 210. That is, in step S113, the address at which the first line (current_block = 1) of the first rectangular image is stored is calculated. This can be obtained, for example, by the above-described equation (3). Next, in step S114, the control unit 220 reads the image data for one line. Next, in step S115, current_block is incremented by 1, and in step S116, steps S113 to S116 are repeated until image data for one line (8192 pixels) of image data in page units is read. When the image data for one line of the page-unit image data is read out in this way, the next rectangular image can be written. In step S117, it is checked whether the next rectangular image is input. The process proceeds to S118. In step S118, each line of the plurality of lines constituting the inputted rectangular image is stored in an area for one line of the line memory 210 that has been read. In this case, the write address is calculated based on the above-described equation (2), for example. Thus, the state in which the subsequent two rectangular images are written is as shown in FIG. 12, for example.

ステップS117で、次の矩形画像が入力されていないとき、或はステップS118が終了するとステップS119に進み、1矩形画像アレイの画像データの読み出しが完了したかをみる。完了していないときはステップS120に進み、current_blockを「1」に戻し、rcurrent_lineを+1してステップS113に進む。こうして1矩形画像アレイの読み出しが完了し、次の1矩形画像アレイの画像データが格納された状態は、例えば図13のようになる。   In step S117, when the next rectangular image is not input, or when step S118 ends, the process proceeds to step S119 to check whether the reading of the image data of one rectangular image array is completed. If not completed, the process proceeds to step S120, current_block is returned to “1”, rcurrent_line is incremented by 1, and the process proceeds to step S113. In this way, the reading of one rectangular image array is completed and the image data of the next one rectangular image array is stored, for example, as shown in FIG.

次にステップS121では、次の1矩形画像アレイの画像データが少しでも格納されているかを調べる。ここで次の矩形画像アレイの画像データが全く存在しないときは、これ以降、矩形画像の入力がないと判断して処理を終了する。尚、この終了判定はこれに限定されるものでなく、予め入力される矩形画像数が分かっているときはその数により判断しても良く、或は所定時間経過しても入力が無いときに、この処理を終了すると判断しても良い。   Next, in step S121, it is checked whether image data of the next one rectangular image array is stored. Here, when there is no image data of the next rectangular image array, it is determined that no rectangular image is input thereafter, and the process is terminated. This end determination is not limited to this. When the number of rectangular images input in advance is known, it may be determined by the number, or when there is no input after a predetermined time has elapsed. It may be determined that this process is finished.

次にステップS122以降では、この2つ目の矩形画像アレイデータの読み出しを行う。ステップS122では、current_block、current_lineを共に「1」に初期化し、ステップS123で、例えば上述の式(4)に従って読出しアドレスを算出し、current_blockの矩形画像の1行目を読出す。次にステップS124で、current_blockを+1し、次のcurrent_blockの矩形画像の1行目を読出す準備を行う。こうしてステップS125で、矩形画像の1行目の画像データをページ単位の画像データの1ライン分を読み出したと判断するとステップS126に進む。ステップS126では、current_blockを「1」にセットし、current_lineを+1して、次に矩形画像の2行目の画像データの読み出しに進む。   In step S122 and subsequent steps, the second rectangular image array data is read. In step S122, both current_block and current_line are initialized to “1”. In step S123, for example, a read address is calculated according to the above-described equation (4), and the first row of the rectangular image of current_block is read. Next, in step S124, current_block is incremented by 1 and preparation for reading the first row of the rectangular image of the next current_block is made. When it is determined in step S125 that the image data of the first row of the rectangular image has been read out for one line of image data in page units, the process proceeds to step S126. In step S126, current_block is set to “1”, current_line is incremented by 1, and then the process proceeds to reading image data on the second line of the rectangular image.

ステップS127では、ページ単位の画像データの1ライン分の読み出しが完了して、次の矩形画像の書き込みが可能になっているため、次の矩形画像が入力されているかを判断する。そして入力されていればステップS128に進み、ステップS140のようにして、その矩形画像を、既に読み出した1行目の画像エリアに格納する。そしてステップS129では、例えば図13のように格納された、1矩形画像アレイの画像データの読み出しが完了したかをみる。読み出しが完了していないときはステップS123に戻るが、完了したときはステップS130に進み、次の1矩形画像アレイの画像データの格納が完了しているかを判定する。ここで格納が完了している場合は、例えば前述の図10のように画像データが格納されていることになる。その場合はステップS113に進み、その矩形画像アレイの画像データの読み出しを行う。そうでないときはステップS131に進み、次に矩形画像アレイの画像データが全く格納されていなければ終了と判断する。これはステップS121の場合と同じである。一方、何らかの画像データが格納されていれば、次の矩形画像アレイの画像データが入力されると判断してステップS127に進む。   In step S127, since reading of one line of image data in units of pages is completed and writing of the next rectangular image is possible, it is determined whether the next rectangular image is input. If it has been input, the process proceeds to step S128, and the rectangular image is stored in the image area of the first row that has already been read, as in step S140. In step S129, it is checked whether reading of image data of one rectangular image array stored as shown in FIG. 13, for example, is completed. When the reading is not completed, the process returns to step S123. When the reading is completed, the process proceeds to step S130, and it is determined whether the image data of the next one rectangular image array has been stored. Here, when the storage is completed, the image data is stored as shown in FIG. 10, for example. In that case, the process proceeds to step S113, and the image data of the rectangular image array is read. If not, the process proceeds to step S131. Next, if no image data of the rectangular image array is stored, it is determined to end. This is the same as in step S121. On the other hand, if any image data is stored, it is determined that the image data of the next rectangular image array is input, and the process proceeds to step S127.

尚、ここでは説明を分かりやすくするために、1つのフローチャートで説明した。しかし、矩形画像の入力とラインバッファへの書込みと、ラインバッファに格納された画像データの読出し処理とをそれぞれ別のタスクで実行する、所謂マルチタスク処理で実行されても良い。また上述の式で示すアドレスの計算式は、矩形画像のサイズ、ページ単位の画像データの1ライン分の画素数に応じて変更されるため、あくまでも一例として説明したもので、本願発明を限定するものではないことはもちろんである。例えば、rectangular imageのsizeをn×n画素とすると、nは2以上の整数であれば任意の値であってよい。また、rectangular imageのsizeをn×n画素とした場合、line-by-lineのimage dataの画素数はn×n×m 画素とするのが望ましい。この際、n及びmは2以上の整数であれば任意の値であって良い。   Here, in order to make the explanation easy to understand, the description has been made with one flowchart. However, it may be executed by so-called multitask processing in which rectangular image input, writing to the line buffer, and reading processing of image data stored in the line buffer are executed in separate tasks. In addition, the address calculation formula shown above is changed according to the size of the rectangular image and the number of pixels for one line of image data in page units, and thus is described only as an example, and the present invention is limited. Of course, it is not a thing. For example, if the size of the rectangular image is n × n pixels, n may be an arbitrary value as long as it is an integer of 2 or more. Further, when the size of the rectangular image is n × n pixels, it is desirable that the number of pixels of line-by-line image data is n × n × m pixels. At this time, n and m may be arbitrary values as long as they are integers of 2 or more.

また、上記の説明では、1ライン分の画像データをラインメモリ210から読み出したことに応じて、rectangular imageの書込みを開始することとしたが、他の態様であっても良い。例えば、rectangular imageのsizeをn×n画素(nは2以上の整数)とした場合、ラインメモリ210から1ライン以上かつnライン未満の画像データを読み出すと、rectangular imageの書込みを開始するようにしても良い。この場合でも、ラインメモリ210からnライン分の画像データを読み出した後にrectangular image の書込みを開始する場合に比べて、画像データの読みだし及び書込みに要する時間を短縮することができる。   In the above description, the writing of the rectangular image is started in response to the reading of the image data for one line from the line memory 210. However, other modes may be used. For example, when the size of the rectangular image is n × n pixels (n is an integer equal to or larger than 2), when image data of one line or more and less than n lines is read from the line memory 210, writing of the rectangular image is started. May be. Even in this case, the time required to read and write the image data can be shortened compared to the case where writing of the rectangular image is started after reading the image data for n lines from the line memory 210.

(他の実施形態)
以上、本発明の実施形態について詳述したが、本発明は、複数の機器から構成されるシステムに適用しても良いし、また一つの機器からなる装置に適用しても良い。
(Other embodiments)
Although the embodiments of the present invention have been described in detail above, the present invention may be applied to a system constituted by a plurality of devices or may be applied to an apparatus constituted by one device.

なお、本発明は、前述した実施形態の機能を実現するソフトウェアのプログラムを、システム或いは装置に直接或いは遠隔から供給し、そのシステム或いは装置のコンピュータが該供給されたプログラムを読み出して実行することによっても達成され得る。その場合、プログラムの機能を有していれば、形態は、プログラムである必要はない。   In the present invention, a software program that implements the functions of the above-described embodiments is supplied directly or remotely to a system or apparatus, and the computer of the system or apparatus reads and executes the supplied program. Can also be achieved. In that case, as long as it has the function of a program, the form does not need to be a program.

従って、本発明の機能処理をコンピュータで実現するために、該コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明のクレームでは、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。   Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. That is, the claims of the present invention include the computer program itself for realizing the functional processing of the present invention. In this case, the program may be in any form as long as it has a program function, such as an object code, a program executed by an interpreter, or script data supplied to the OS.

プログラムを供給するための記録媒体としては、様々なものが使用できる。例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD−ROM、CD−R、CD−RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD−ROM,DVD−R)などである。   Various recording media for supplying the program can be used. For example, floppy (registered trademark) disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card, ROM, DVD (DVD-ROM, DVD- R).

その他、プログラムの供給方法としては、クライアントコンピュータのブラウザを用いてインターネットのホームページに接続し、該ホームページからハードディスク等の記録媒体にダウンロードすることによっても供給できる。その場合、ダウンロードされるのは、本発明のコンピュータプログラムそのもの、もしくは圧縮され自動インストール機能を含むファイルであってもよい。また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明のクレームに含まれるものである。   As another program supply method, the program can be supplied by connecting to a home page on the Internet using a browser of a client computer and downloading the program from the home page to a recording medium such as a hard disk. In this case, the computer program itself of the present invention or a compressed file including an automatic installation function may be downloaded. It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer is also included in the claims of the present invention.

また、本発明のプログラムを暗号化してCD−ROM等の記憶媒体に格納してユーザに配布する形態としても良い。その場合、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせ、その鍵情報を使用することにより暗号化されたプログラムが実行可能な形式でコンピュータにインストールされるようにする。   Further, the program of the present invention may be encrypted, stored in a storage medium such as a CD-ROM, and distributed to users. In that case, a user who has cleared a predetermined condition is allowed to download key information to be decrypted from a homepage via the Internet, and using the key information, the encrypted program can be executed on a computer in a format that can be executed. To be installed.

また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される形態以外の形態でも実現可能である。例えば、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行ない、その処理によっても前述した実施形態の機能が実現され得る。   Further, the present invention can be realized in a form other than the form in which the functions of the above-described embodiments are realized by the computer executing the read program. For example, based on the instructions of the program, an OS or the like running on the computer performs part or all of the actual processing, and the functions of the above-described embodiments can also be realized by the processing.

更に、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれるようにしてもよい。この場合、その後で、そのプログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行ない、その処理によって前述した実施形態の機能が実現される。   Furthermore, the program read from the recording medium may be written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer. In this case, thereafter, based on the instructions of the program, the CPU or the like provided in the function expansion board or function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing. .

本実施の形態に係る矩形画像から点順次のラスタ画像データへ変換する画像処理装置の概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of an image processing apparatus that converts rectangular images into dot-sequential raster image data according to the present embodiment. 矩形画像の構成例を示す図で、図2(A)は、最初の矩形画像、図2(B)は次に入力される矩形画像をそれぞれ示している。FIGS. 2A and 2B are diagrams illustrating a configuration example of a rectangular image. FIG. 2A illustrates a first rectangular image, and FIG. 2B illustrates a rectangular image to be input next. ダブルバッファ方式のメモリ回路構成を示すブロック図である。It is a block diagram showing a memory circuit configuration of a double buffer system. 書込み制御部によるラインバッファへの画像データの書込み順を説明する図である。It is a figure explaining the writing order of the image data to the line buffer by a writing control part. 読み出し制御部によるラインバッファからの画像データの読み出し順を説明する図である。It is a figure explaining the read-out order of the image data from the line buffer by a read-out control part. 1主走査ライン分のデータの読み出しが完了した後、その読み出したメモリエリアに次に入力された2つの矩形画像が格納された状態を示す図である。FIG. 6 is a diagram illustrating a state in which two rectangular images input next are stored in the read memory area after data reading for one main scanning line is completed. 2番目の矩形画像アレイの画像データの読み出しを説明する図である。It is a figure explaining reading of the image data of the 2nd rectangular image array. 図7に示す順に読み出した画素の位置に次に入力される矩形画像の各画素を書き込んだ様子を示す図である。It is a figure which shows a mode that each pixel of the rectangular image input next is written in the position of the pixel read in the order shown in FIG. 3番目の矩形画像アレイがラインバッファに格納された後、その1主走査の画像データの読み出しが開始され、そのデータの読み出しに伴って次に入力される4番目の矩形画像アレイの最初の矩形画像が、その読み出した画像データの位置に格納された状態を示す図である。After the third rectangular image array is stored in the line buffer, reading of the image data of one main scan is started, and the first rectangle of the fourth rectangular image array to be input next with the reading of the data is started. It is a figure which shows the state in which the image was stored in the position of the read image data. 本実施の形態において、最初の矩形画像アレイの画像データをラインバッファに書込む際のアドレス順を説明する図である。In this embodiment, it is a figure explaining the address order at the time of writing the image data of the first rectangular image array in a line buffer. 本実施の形態において、図10のようにして格納された矩形画像アレイ分の1行目の画像データの読み出し順を説明する図である。In this Embodiment, it is a figure explaining the read-out order of the image data of the 1st line for the rectangular image array stored as shown in FIG. 本実施の形態において、図11の最初の矩形画像アレイ分の1行目の画像データの読み出し後、次に入力される2番目の矩形画像アレイ分の画像データのうち、1番目と2番目の矩形画像をラインバッファに書き込んだ状態を示す図である。In the present embodiment, after reading out the first row of image data for the first rectangular image array in FIG. 11, the first and second of the image data for the second rectangular image array that is input next. It is a figure which shows the state which wrote the rectangular image in the line buffer. 本実施の形態において、2番目の矩形画像アレイ分の画像データがラインバッファに書き込まれた状態を示す図である。In this Embodiment, it is a figure which shows the state by which the image data for the 2nd rectangular image array was written in the line buffer. 本実施の形態において、図13に示す2番目の矩形画像アレイ分の画像データをラインバッファから読み出す処理を説明する図である。FIG. 14 is a diagram illustrating a process of reading image data for the second rectangular image array shown in FIG. 13 from the line buffer in the present embodiment. 本実施の形態に係る制御部の構成を示すブロック図である。It is a block diagram which shows the structure of the control part which concerns on this Embodiment. 本実施の形態に係るラインメモリにおける矩形画像のデータ配列を示す図である。It is a figure which shows the data arrangement | sequence of the rectangular image in the line memory which concerns on this Embodiment. 本実施の形態に係るラインメモリのアドレスとデータの関係を示す図である。It is a figure which shows the relationship between the address and data of the line memory which concerns on this Embodiment. 本実施の形態における、各オフセットの種類とモードによるオフセットの意味合いを説明する図である。It is a figure explaining the meaning of the offset by the kind and mode of each offset in this Embodiment. 本実施の形態に係るアクセス調停部により制御される状態遷移を説明する図である。It is a figure explaining the state transition controlled by the access arbitration part which concerns on this Embodiment. , , 本実施の形態に係る制御部によるデータ変換処理を説明するフローチャートである。It is a flowchart explaining the data conversion process by the control part which concerns on this Embodiment.

Claims (8)

n×n画素で構成される矩形画像の複数を入力してn×m画素を1ラインとするライン単位の画像データを出力する画像処理装置であって、
1ラインをn×m画素とするnライン分の画素データを記憶可能な記憶手段と、
前記記憶手段に前記矩形画像を書き込むための書き込みアドレス、及び前記記憶手段からライン単位の画像データを読み出すための読み出しアドレスを生成するアドレス生成手段と、
個の矩形画像が前記記憶手段に書き込まれる度に、前記書き込みアドレスの生成方式を第1の書き込みアドレス生成方式と第2の書き込みアドレス生成方式とで切替え、nライン分の画像データを前記記憶手段から読み出す度に、前記読み出しアドレスの生成方式を第1の読み出しアドレス生成方式と第2の読み出しアドレス生成方式とで切替える切替え手段と、
前記第1の書き込みアドレス生成方式に基づいて前記記憶手段への矩形画像の書き込みを行った後に、前記第1の読み出しアドレス生成方式に基づいて前記記憶手段からライン単位の画像データの読み出しを行うとともに、前記第2の書き込みアドレス生成方式に基づいて前記記憶手段への矩形画像の書き込みを行った後に前記第2の読み出しアドレス生成方式に基づいて前記記憶手段からライン単位の画像データの読み出しを行うよう前記記憶手段を制御する制御手段とを有し
前記制御手段は、前記第1の読み出しアドレス生成方式に基づいて1ライン以上でnライン未満の画像データを前記記憶手段から読み出したことに応じて、当該画像データが読み出された領域への前記第2の書き込みアドレス生成方式に基づく矩形画像の書き込みを開始させ、前記第2の読み出しアドレス生成方式に基づいて1ライン以上でnライン未満の画像データを前記記憶手段から読み出したことに応じて、当該画像データが読み出された領域へ前記第1の書き込みアドレス生成方式に基づく矩形画像の書き込みを開始させ、
前記第1の書き込みアドレス生成方式は、各矩形画像の書き込みにおいてn画素がn×mアドレスおきにn回書き込まれるようにアドレスを生成する方式であって、k番目の矩形画像の書き込み開始アドレスにn×nを加えたアドレスが(k+1)番目の矩形画像の書き込み開始アドレスとなり、k番目の矩形画像の書き込み開始アドレスにnを加えたアドレスが(k+2)番目の矩形画像の書き込み開始アドレスとなるようにアドレスを生成する方式であり、
前記第1の読み出しアドレス生成方式は、各ラインの読み出しにおいてn画素がm回読み出されるようにアドレスを生成する方式であって、k回目の読み出し開始アドレスにn×nを加えたアドレスが(k+1)回目の読み出し開始アドレスとなり、k回目の読み出し開始アドレスにnを加えたアドレスが(k+2)回目の読み出し開始アドレスとなるようにアドレスを生成する方式であり、
前記第2の書き込みアドレス生成方式は、各矩形画像の書き込みにおいてn×n画素が1回書き込まれるようにアドレスを生成する方式であって、k番目の矩形画像の書き込み開始アドレスにn×nを加えたアドレスが(k+1)番目の矩形画像の書き込み開始アドレスとなるようにアドレスを生成する方式であり、
前記第2の読み出しアドレス生成方式は、各ラインの読み出しにおいてn画素がm回読み出されるようにアドレスを生成する方式であって、k回目の読み出し開始アドレスにn×nを加えたアドレスが(k+1)回目の読み出し開始アドレスとなり、k回目の読み出し開始アドレスにn×mを加えたアドレスが(k+2)回目の読み出し開始アドレスとなるようにアドレスを生成する方式であることを特徴とする画像処理装置。
An image processing device for inputting a plurality of rectangular images composed of n × n pixels and outputting image data in units of lines with n × m pixels as one line,
Storage means capable of storing pixel data for n lines in which one line is n × m pixels;
Address generation means for generating a write address for writing the rectangular image in the storage means, and a read address for reading line-unit image data from the storage means;
Each time m rectangular images are written to the storage means, the write address generation method is switched between the first write address generation method and the second write address generation method, and image data for n lines is stored in the storage unit. Switching means for switching the read address generation method between the first read address generation method and the second read address generation method each time reading from the means;
After writing the rectangular image to the storage unit based on the first write address generation method, the image data is read in line units from the storage unit based on the first read address generation method. After writing the rectangular image to the storage unit based on the second write address generation method, the image data is read in line units from the storage unit based on the second read address generation method. and control means for controlling said storage means,
The control unit reads the image data of one line or more and less than n lines from the storage unit based on the first read address generation method, and the control unit reads the image data into the area where the image data is read. In response to starting to write a rectangular image based on the second write address generation method and reading image data of one line or more and less than n lines from the storage unit based on the second read address generation method, Start writing a rectangular image based on the first write address generation method to the area from which the image data has been read,
The first write address generation method is a method of generating addresses so that n pixels are written n times every n × m addresses in writing each rectangular image, and the write start address of the kth rectangular image is set as the write start address. The address obtained by adding n × n is the write start address of the (k + 1) th rectangular image, and the address obtained by adding n to the write start address of the kth rectangular image is the write start address of the (k + 2) th rectangular image. So that the address is generated
The first read address generation method is a method of generating an address so that n pixels are read m times in reading of each line, and an address obtained by adding n × n to the kth read start address is (k + 1). This is a method for generating an address so that an address obtained by adding n to the k-th read start address becomes the (k + 2) -th read start address.
The second write address generation method is a method of generating an address so that n × n pixels are written once in writing of each rectangular image, and n × n is set as a write start address of the kth rectangular image. In this method, the address is generated so that the added address becomes the write start address of the (k + 1) th rectangular image.
The second read address generation method is a method of generating an address so that n pixels are read m times in reading of each line, and an address obtained by adding n × n to the kth read start address is (k + 1). An image processing apparatus that generates an address so that an address obtained by adding n × m to a k-th read start address becomes a (k + 2) -th read start address .
前記制御手段は、前記第1の読み出しアドレス生成方式に基づいて1ライン分の画像データを前記記憶手段から読み出したことに応じて、当該画像データが読み出された領域への前記第2の書き込みアドレス生成方式に基づく矩形画像の書き込みを開始させ、前記第2の読み出しアドレス生成方式に基づいて1ライン分の画像データを前記記憶手段から読み出したことに応じて、当該画像データが読み出された領域へ前記第1の書き込みアドレス生成方式に基づく矩形画像の書き込みを開始させることを特徴とする請求項に記載の画像処理装置。 In response to reading one line of image data from the storage means based on the first read address generation method, the control means writes the second write to the area from which the image data has been read. The writing of the rectangular image based on the address generation method is started, and the image data is read in response to reading the image data for one line from the storage unit based on the second read address generation method. The image processing apparatus according to claim 1 , wherein writing of a rectangular image based on the first write address generation method is started to an area. 前記第1の書き込みアドレス生成方式は、前記矩形画像をn画素ずつ各々異なるラインに書き込むためのアドレスを生成する方式であり、
前記第1の読み出しアドレス生成方式は、特定のラインに格納されるn×m画素の画像データをライン単位の画像データとして読み出すためのアドレスを生成する方式であり、
前記第2の書き込みアドレス生成方式は、前記矩形画像を同一ラインに書き込むためのアドレスを生成する方式であり、
前記第2の読み出しアドレス生成方式は、前記nラインに含まれる各ラインからn×m画素の画像データをライン単位の画像データとして読み出すためのアドレスを生成する方式であることを特徴とする請求項1又は2に記載の画像処理装置。
The first write address generation method is a method of generating an address for writing the rectangular image to different lines by n pixels,
It said first read address generating method is a method for generating an address for reading the image data of n × m pixels that will be stored in a specific line as image data in line units,
The second write address generation method is a method of generating an address for writing the rectangular image on the same line,
The second read address generation method is a method of generating an address for reading n × m pixel image data as image data in units of lines from each line included in the n lines. The image processing apparatus according to 1 or 2 .
前記制御手段は、前記1ライン分の画像データを読み出した後、その読み出した画像データの領域に、次に入力される矩形画像を記憶することを特徴とする請求項1乃至のいずれか1項に記載の画像処理装置。 Wherein, after reading the image data of the one line, in the region of the image data thus read out, then any one of claims 1 to 3, characterized in that storing a rectangular image that is input 1 The image processing apparatus according to item. 1ラインをn×m画素とするnライン分の画素データを記憶可能な記憶手段を有し、n×n画素で構成される矩形画像の複数を入力してn×m画素を1ラインとするライン単位の画像データを出力する画像処理装置における画像処理方法であって、
前記メモリに前記矩形画像を書き込むための書き込みアドレス、及び前記記憶手段からライン単位の画像データを読み出すための読み出しアドレスを生成する生成工程と、
個の矩形画像が前記メモリに書き込まれる度に前記書き込みアドレスの生成方式を第1の書き込みアドレス生成方式と第2の書き込みアドレス生成方式とで切替え、nライン分の画像データを前記メモリから読み出す度に前記読み出しアドレスの生成方式を第1の読み出しアドレス生成方式と第2の読み出しアドレス生成方式とで切替える切替え工程と、
前記第1の書き込みアドレス生成方式に基づいて前記メモリへの矩形画像の書き込みを行った後に、前記第1の読み出しアドレス生成方式に基づいて前記メモリからライン単位の画像データの読み出しを行うとともに、前記第2の書き込みアドレス生成方式に基づいて前記メモリへの矩形画像の書き込みを行った後に、前記第2の読み出しアドレス生成方式に基づいて前記メモリからライン単位の画像データの読み出しを行うよう前記メモリを制御する制御工程とを有し
前記制御工程は、前記第1の読み出しアドレス生成方式に基づいて1ライン以上でnライン未満の画像データを前記記憶手段から読み出したことに応じて、当該画像データが読み出された領域への前記第2の書き込みアドレス生成方式に基づく矩形画像の書き込みを開始させ、前記第2の読み出しアドレス生成方式に基づいて1ライン以上でnライン未満の画像データを前記記憶手段から読み出したことに応じて、当該画像データが読み出された領域へ前記第1の書き込みアドレス生成方式に基づく矩形画像の書き込みを開始させ、
前記第1の書き込みアドレス生成方式は、各矩形画像の書き込みにおいてn画素がn×mアドレスおきにn回書き込まれるようにアドレスを生成する方式であって、k番目の矩形画像の書き込み開始アドレスにn×nを加えたアドレスが(k+1)番目の矩形画像の書き込み開始アドレスとなり、k番目の矩形画像の書き込み開始アドレスにnを加えたアドレスが(k+2)番目の矩形画像の書き込み開始アドレスとなるようにアドレスを生成する方式であり、
前記第1の読み出しアドレス生成方式は、各ラインの読み出しにおいてn画素がm回読み出されるようにアドレスを生成する方式であって、k回目の読み出し開始アドレスにn×nを加えたアドレスが(k+1)回目の読み出し開始アドレスとなり、k回目の読み出し開始アドレスにnを加えたアドレスが(k+2)回目の読み出し開始アドレスとなるようにアドレスを生成する方式であり、
前記第2の書き込みアドレス生成方式は、各矩形画像の書き込みにおいてn×n画素が1回書き込まれるようにアドレスを生成する方式であって、k番目の矩形画像の書き込み開始アドレスにn×nを加えたアドレスが(k+1)番目の矩形画像の書き込み開始アドレスとなるようにアドレスを生成する方式であり、
前記第2の読み出しアドレス生成方式は、各ラインの読み出しにおいてn画素がm回読み出されるようにアドレスを生成する方式であって、k回目の読み出し開始アドレスにn×nを加えたアドレスが(k+1)回目の読み出し開始アドレスとなり、k回目の読み出し開始アドレスにn×mを加えたアドレスが(k+2)回目の読み出し開始アドレスとなるようにアドレスを生成する方式であることを特徴とする画像処理方法。
It has a storage means capable of storing pixel data for n lines where one line is n × m pixels, and inputs a plurality of rectangular images composed of n × n pixels to make n × m pixels one line. An image processing method in an image processing apparatus for outputting line-unit image data,
A generation step of generating a write address for writing the rectangular image to the memory and a read address for reading line-unit image data from the storage unit;
Each time m rectangular images are written to the memory, the write address generation method is switched between the first write address generation method and the second write address generation method, and image data for n lines is read from the memory. A switching step of switching the read address generation method between a first read address generation method and a second read address generation method each time;
After writing the rectangular image to the memory based on the first write address generation method, the image data is read from the memory in units of lines based on the first read address generation method, and After writing a rectangular image to the memory based on a second write address generation method, the memory is configured to read line-by-line image data from the memory based on the second read address generation method. and a control step of controlling,
In response to reading out image data of one line or more and less than n lines from the storage unit based on the first read address generation method, the control step reads the image data into the area from which the image data was read. In response to starting to write a rectangular image based on the second write address generation method and reading image data of one line or more and less than n lines from the storage unit based on the second read address generation method, Start writing a rectangular image based on the first write address generation method to the area from which the image data has been read,
The first write address generation method is a method of generating addresses so that n pixels are written n times every n × m addresses in writing each rectangular image, and the write start address of the kth rectangular image is set as the write start address. The address obtained by adding n × n is the write start address of the (k + 1) th rectangular image, and the address obtained by adding n to the write start address of the kth rectangular image is the write start address of the (k + 2) th rectangular image. So that the address is generated
The first read address generation method is a method of generating an address so that n pixels are read m times in reading of each line, and an address obtained by adding n × n to the kth read start address is (k + 1). This is a method for generating an address so that an address obtained by adding n to the k-th read start address becomes the (k + 2) -th read start address.
The second write address generation method is a method of generating an address so that n × n pixels are written once in writing of each rectangular image, and n × n is set as a write start address of the kth rectangular image. In this method, the address is generated so that the added address becomes the write start address of the (k + 1) th rectangular image.
The second read address generation method is a method of generating an address so that n pixels are read m times in reading of each line, and an address obtained by adding n × n to the kth read start address is (k + 1). An image processing method characterized in that an address is generated so that an address obtained by adding n × m to a kth read start address becomes a (k + 2) th read start address. .
前記制御工程は、前記第1の読み出しアドレス生成方式に基づいて1ライン分の画像データを前記メモリから読み出したことに応じて、該画像データが読み出された領域への前記第2の書き込みアドレス生成方式に基づく矩形画像の書き込みを開始させ、前記第2の読み出しアドレス生成方式に基づいて1ライン分の画像データを前記メモリから読み出したことに応じて、該画像データが読み出された領域へ前記第1の書き込みアドレス生成方式に基づく矩形画像の書き込みを開始させることを特徴とする請求項に記載の画像処理方法。 In response to reading out image data for one line from the memory based on the first read address generation method, the control step includes the second write address to the area from which the image data has been read out. The writing of the rectangular image based on the generation method is started, and the image data for one line is read from the memory based on the second read address generation method. 6. The image processing method according to claim 5 , wherein writing of a rectangular image based on the first write address generation method is started. 前記第1の書き込みアドレス生成方式は、前記矩形画像をn画素ずつ各々異なるラインに書き込むためのアドレスを生成する方式であり、
前記第1の読み出しアドレス生成方式は、特定のラインに格納されるn×m画素の画像データをライン単位の画像データとして読み出すためのアドレスを生成する方式であり、
前記第2の書き込みアドレス生成方式は、前記矩形画像を同一ラインに書き込むためのアドレスを生成する方式であり、
前記第2の読み出しアドレス生成方式は、前記nラインに含まれる各ラインからn×m画素の画像データをライン単位の画像データとして読み出すためのアドレスを生成する方式であることを特徴とする請求項5又は6に記載の画像処理方法。
The first write address generation method is a method of generating an address for writing the rectangular image to different lines by n pixels,
It said first read address generating method is a method for generating an address for reading the image data of n × m pixels that will be stored in a specific line as image data in line units,
The second write address generation method is a method of generating an address for writing the rectangular image on the same line,
The second read address generation method is a method of generating an address for reading n × m pixel image data as image data in units of lines from each line included in the n lines. The image processing method according to 5 or 6 .
前記制御工程は、前記1ライン分の画像データを読み出した後、その読み出した画像データの領域に、次に入力される矩形画像を記憶することを特徴とする請求項5乃至7のいずれか1項に記載の画像処理方法。 Wherein the control step, after reading the image data of the one line, in the region of the image data thus read out, then any one of claims 5 to 7, characterized in that storing a rectangular image that is input 1 The image processing method according to item.
JP2007216405A 2006-10-06 2007-08-22 Image processing apparatus and method Expired - Fee Related JP5094274B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007216405A JP5094274B2 (en) 2006-10-06 2007-08-22 Image processing apparatus and method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2006275730 2006-10-06
JP2006275730 2006-10-06
JP2007216405A JP5094274B2 (en) 2006-10-06 2007-08-22 Image processing apparatus and method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2012205032A Division JP5276744B2 (en) 2006-10-06 2012-09-18 Image processing apparatus and control method thereof

Publications (3)

Publication Number Publication Date
JP2008112435A JP2008112435A (en) 2008-05-15
JP2008112435A5 JP2008112435A5 (en) 2010-10-07
JP5094274B2 true JP5094274B2 (en) 2012-12-12

Family

ID=39444894

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007216405A Expired - Fee Related JP5094274B2 (en) 2006-10-06 2007-08-22 Image processing apparatus and method

Country Status (1)

Country Link
JP (1) JP5094274B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6757141B2 (en) 2016-01-18 2020-09-16 キヤノン株式会社 Image processing device, its control method, and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3503711B2 (en) * 1994-09-08 2004-03-08 株式会社リコー Raster / block conversion method and apparatus for implementing the method
JP2001285644A (en) * 2000-03-31 2001-10-12 Sony Corp Control method for line memory

Also Published As

Publication number Publication date
JP2008112435A (en) 2008-05-15

Similar Documents

Publication Publication Date Title
JPH04107070A (en) Encoding and decoding device
JP3880680B2 (en) A system that converts source images to destination images
JP5276744B2 (en) Image processing apparatus and control method thereof
JP4364897B2 (en) Data transfer device
JP5094274B2 (en) Image processing apparatus and method
JP2007172254A (en) Memory control circuit
US7508538B2 (en) Image data rotation apparatus
JPH11306343A (en) Rotational processing device for two-dimensional data
JP2008136125A (en) Image processing apparatus
JP2502753B2 (en) Image output device
JP2000231631A (en) Image rotating device
JPH07304213A (en) Printer and control method thereof
JP5151328B2 (en) Image forming apparatus, image transfer method, program, and recording medium
US6191865B1 (en) Image processing system and method for controlling such system
JP2004009416A (en) Laser beam type output apparatus and output method
JP4539163B2 (en) Image processing apparatus and program
JP2000268169A (en) Picture information rotating device
JP3059618B2 (en) Image control device
JP2008226190A (en) Image processor and method for it
JP2006166251A (en) Image processing apparatus and control method thereof
JP2008236085A (en) Image processor
JP2002007206A (en) Memory controller and image processor
JP2008227638A (en) Color image processor and image memory access control method
JPH06282639A (en) Picture forming device
JPS61103358A (en) System for generating character with n-time angle

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100820

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100820

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111011

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111222

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120220

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120817

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120918

R151 Written notification of patent or utility model registration

Ref document number: 5094274

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150928

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees