[go: up one dir, main page]

JP2008282135A - Image processing apparatus, image reading apparatus, image forming apparatus, and image processing method - Google Patents

Image processing apparatus, image reading apparatus, image forming apparatus, and image processing method Download PDF

Info

Publication number
JP2008282135A
JP2008282135A JP2007124426A JP2007124426A JP2008282135A JP 2008282135 A JP2008282135 A JP 2008282135A JP 2007124426 A JP2007124426 A JP 2007124426A JP 2007124426 A JP2007124426 A JP 2007124426A JP 2008282135 A JP2008282135 A JP 2008282135A
Authority
JP
Japan
Prior art keywords
rotation
image
image data
unit
processing unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007124426A
Other languages
Japanese (ja)
Inventor
Michiyuki Suzuki
通之 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2007124426A priority Critical patent/JP2008282135A/en
Publication of JP2008282135A publication Critical patent/JP2008282135A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)
  • Storing Facsimile Image Data (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To reduce cost by simplifying a structure for performing rotation processing of image data. <P>SOLUTION: An image processing apparatus includes: a work memory 53; first and second rotation processing units 51 and 52 which rotate image data by using the same work memory 53 and by changing a reading order of image data from the work memory 53 for a writing order of image data to the work memory 53, and performs the rotation processing by dividing image data into a plurality of blocks; and a time division use control unit for allowing the first rotation processing unit 51 and the second rotation processing unit 52 to time-divisionally use the work memory 53 for the rotation processing. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、入力画像データを回転させて出力する画像処理装置、画像読取り装置、画像形成装置および画像処理方法に関するものである。   The present invention relates to an image processing apparatus, an image reading apparatus, an image forming apparatus, and an image processing method that rotate and output input image data.

従来、デジタル複写機等の画像形成装置は、スキャナ機能およびプリンタ機能などの複数の機能を備えている。この種の画像形成装置では、原稿画像をスキャナ部にて読み込むことにより得た画像データに対して所定のあるいは指定された画像処理を施し、処理後の画像データを記憶部に記憶する。また、記憶部に記憶している画像データを出力指示に応じて記憶部から読み出し、プリンタ部により印刷して出力する。   Conventionally, an image forming apparatus such as a digital copying machine has a plurality of functions such as a scanner function and a printer function. In this type of image forming apparatus, predetermined or designated image processing is performed on image data obtained by reading a document image with a scanner unit, and the processed image data is stored in a storage unit. Further, the image data stored in the storage unit is read from the storage unit in response to an output instruction, printed by the printer unit, and output.

上記のように、原稿画像の読み取りにより得られた画像データを記憶部に記憶する場合、および記憶部に記憶されている画像データを印刷画像として出力する場合等には、通常画像データの回転処理が行われる。例えば特許文献1には、マルチファンクションの画像入出力装置において、画像データの回転処理を行う場合に、ジョブの優先度に応じてハードウェアによる処理とソフトウェアによる処理とを所定サイズのバンド単位で使い分けることが記載されている。   As described above, when the image data obtained by reading the original image is stored in the storage unit, and when the image data stored in the storage unit is output as a print image, normal image data rotation processing is performed. Is done. For example, Patent Document 1 discloses that when image data is rotated in a multi-function image input / output device, processing by hardware and processing by software are selectively used in band units of a predetermined size according to job priority. It is described.

図17は、画像データを90度回転させる場合の回転処理の概要を示す説明図である。デジタル複写機での回転処理は、大容量メモリに保存されている画像データを小ブロック単位で読み出し、そのブロック単位で回転させた後、再び上記大容量メモリに保存する処理である。この回転処理では、まず大容量メモリ内に、回転処理の対象となる画像データを保存するための第1の領域と回転処理後の画像データを保存するための第2の領域とを確保する。次に、第1の領域から回転処理対象の画像データをブロック単位でデータ回転部内部の小容量メモリに読み込み、データ回転部内部が画像データを上記ブロック単位で回転させた後、大容量メモリの第2の領域に書き込む。このように小さいブロック単位での回転処理を繰り返すことにより、画像データ全体の回転処理が完了する。   FIG. 17 is an explanatory diagram showing an outline of a rotation process when image data is rotated by 90 degrees. The rotation process in the digital copying machine is a process in which image data stored in a large-capacity memory is read in units of small blocks, rotated in units of blocks, and then stored in the large-capacity memory again. In this rotation process, first, a first area for storing image data to be subjected to the rotation process and a second area for storing image data after the rotation process are secured in the large-capacity memory. Next, image data to be rotated is read from the first area into a small-capacity memory inside the data rotation unit in units of blocks. After the data rotation unit rotates the image data in units of the blocks, Write to the second area. By repeating the rotation processing in units of small blocks as described above, the rotation processing of the entire image data is completed.

図18は画像データの回転処理を行う従来のデジタル複写機の概略構成を示すブロック図である。このデジタル複写機は、スキャナ部101、プリンタ部102、大容量メモリ103、制御部104および画像処理部105を備えている。画像処理部105は、大容量メモリ103から読み出した画像データに対して、第1データ回転部112および第2データ回転部115により回転処理を行うとともに、これら回転処理の前後において所定の画像処理を行い、処理後の画像データを大容量メモリ103に格納する。   FIG. 18 is a block diagram showing a schematic configuration of a conventional digital copying machine that performs image data rotation processing. The digital copying machine includes a scanner unit 101, a printer unit 102, a large capacity memory 103, a control unit 104, and an image processing unit 105. The image processing unit 105 performs rotation processing on the image data read from the large-capacity memory 103 by the first data rotation unit 112 and the second data rotation unit 115, and performs predetermined image processing before and after these rotation processing. The processed image data is stored in the large-capacity memory 103.

上記の処理を行うために、画像処理部105は、第1前処理部111、第1データ回転部112、第1後処理部113、第2前処理部114、第2データ回転部115および第2後処理部116を備えている。例えば、第1前処理部111はスキャナ部101から入力された画像データに対して所定のフィルタ処理を行う。第1データ回転部112はフィルタ処理後の画像データに対して回転処理を行う。第1後処理部113は、回転処理後の画像データに対してJPEG圧縮を行う。第2前処理部114は、JPEG圧縮されている画像データを印刷処理のためにJPEG解凍する。第2データ回転部115は、JPEG解凍された画像データに対して、設定されている用紙上での印刷方向に適合するように、回転処理を行う。第2後処理部116はプリンタ部102にて処理される画像データとして適合するように、回転処理後の画像データに対して色変換等の処理を行う。   In order to perform the above processing, the image processing unit 105 includes a first preprocessing unit 111, a first data rotation unit 112, a first post processing unit 113, a second preprocessing unit 114, a second data rotation unit 115, and a first data rotation unit 115. 2 post-processing unit 116 is provided. For example, the first preprocessing unit 111 performs a predetermined filter process on the image data input from the scanner unit 101. The first data rotation unit 112 performs rotation processing on the image data after the filter processing. The first post-processing unit 113 performs JPEG compression on the image data after the rotation processing. The second preprocessing unit 114 decompresses JPEG-compressed image data for print processing. The second data rotation unit 115 rotates the JPEG decompressed image data so as to match the set printing direction on the paper. The second post-processing unit 116 performs processing such as color conversion on the image data after the rotation processing so as to be suitable as image data processed by the printer unit 102.

図19は、図18に示した画像処理部105の構成を詳細に示すブロック図である。同図に示すように、画像処理部105は、図18に示した各処理部が大容量メモリ103から画像データを読み出したり、処理後の画像データを大容量メモリ103に書き込んだりする場合のデータ調停手段としてバス調停部117を備えている。また、第1データ回転部112および第2データ回転部115はそれぞれ小容量メモリとしてのバッファであるワークメモリ112aおよび115aを備えている。   FIG. 19 is a block diagram showing in detail the configuration of the image processing unit 105 shown in FIG. As shown in FIG. 18, the image processing unit 105 includes data when each processing unit shown in FIG. 18 reads image data from the large-capacity memory 103 and writes processed image data to the large-capacity memory 103. A bus arbitration unit 117 is provided as arbitration means. The first data rotation unit 112 and the second data rotation unit 115 include work memories 112a and 115a, which are buffers as small-capacity memories, respectively.

図20は、図19に示した第1データ回転部112および第2データ回転部115の構成を詳細に示すブロック図である。同図に示すように、第1および第2データ回転部112,115は、DMA(Direct Memory Access)読出し制御部121、DMA書込み制御部122、DMA読出しアドレス計算部123、DMA書込みアドレス計算部124、SRAM書込み制御部125、SRAM読出し制御部126、バッファ選択制御部127、sRAM書込み選択部128、sRAM読出し選択部129、前記ワークメモリ112a,115a、レジスタ130および割込み制御部131を備えている。また、DMA読出し制御部121には読出しDMA調停部132が接続され、DMA書込み制御部122には書込みDMA調停部133が接続されている。
特開2006−173843号(平成18年8月29日公開)
FIG. 20 is a block diagram illustrating in detail the configuration of the first data rotation unit 112 and the second data rotation unit 115 illustrated in FIG. As shown in the figure, the first and second data rotation units 112 and 115 include a DMA (Direct Memory Access) read control unit 121, a DMA write control unit 122, a DMA read address calculation unit 123, and a DMA write address calculation unit 124. , An SRAM write control unit 125, an SRAM read control unit 126, a buffer selection control unit 127, an sRAM write selection unit 128, an sRAM read selection unit 129, the work memories 112a and 115a, a register 130, and an interrupt control unit 131. In addition, a read DMA arbitration unit 132 is connected to the DMA read control unit 121, and a write DMA arbitration unit 133 is connected to the DMA write control unit 122.
JP 2006-173843 A (released August 29, 2006)

デジタル複写機は、図18に示す構成において、スキャナ部101による画像の読み込み指令に基づく処理を行っている途中にプリンタ部102による印刷指令を受けた場合に、その指令に基づく印刷処理を同時に行うこと、すなわちマルチアクセスに対応すること要求されている。   In the configuration shown in FIG. 18, when the digital copying machine receives a print command from the printer unit 102 while performing a process based on an image reading command by the scanner unit 101, the digital copying machine simultaneously performs a printing process based on the command. That is, it is required to support multi-access.

一方、例えばスキャナ部101の読み込み動作により得られた画像データを画像処理部105の第1前処理部111、第1データ回転部112および第1後処理部113にて処理した場合、通常、第1前処理部111および第1後処理部113での処理よりも第1データ回転部112での回転処理の方が処理速度は速くなっている。このため、第1データ回転部112は、第1前処理部111もしくは第1後処理部113が処理を行っている間も待機状態となっていることが多くなる。   On the other hand, for example, when the image data obtained by the reading operation of the scanner unit 101 is processed by the first preprocessing unit 111, the first data rotation unit 112, and the first postprocessing unit 113 of the image processing unit 105, normally, The processing speed of the rotation processing in the first data rotation unit 112 is faster than the processing in the first preprocessing unit 111 and the first postprocessing unit 113. For this reason, the first data rotation unit 112 is often in a standby state while the first pre-processing unit 111 or the first post-processing unit 113 is performing processing.

しかしながら、上記従来の構成では、第1データ回転部112は、第1前処理部111および第1後処理部113の処理が終了しない限り、他の原稿の画像データについての回転処理を行うことができない。したがって、マルチアクセスに対応するために、図18に示したように、第1データ回転部112に加えて第2データ回転部115が必要となっており、このような構成はコストアップを招来している。   However, in the above-described conventional configuration, the first data rotation unit 112 can perform rotation processing on image data of other documents unless the processing of the first preprocessing unit 111 and the first postprocessing unit 113 is completed. Can not. Accordingly, in order to cope with multi-access, as shown in FIG. 18, in addition to the first data rotation unit 112, the second data rotation unit 115 is necessary, and such a configuration causes an increase in cost. ing.

したがって、本発明は、画像データの回転処理を行うための構成を簡略化してコストダウンを図ることができる画像処理装置、画像読取り装置、画像形成装置および画像処理方法の提供を目的としている。   Accordingly, an object of the present invention is to provide an image processing apparatus, an image reading apparatus, an image forming apparatus, and an image processing method capable of reducing the cost by simplifying the configuration for performing rotation processing of image data.

本発明の画像処理装置は、回転用画像メモリと、同一の前記回転用画像メモリを使用し、前記回転用画像メモリへの画像データの書込み順序に対して前記回転用画像メモリからの画像データの読出し順序を変更することにより前記画像データを回転処理し、この回転処理を前記画像データを複数のブロックに分割して行う第1および第2の回転処理部と、前記回転処理において前記回転用画像メモリを前記第1の回転処理部と前記第2の回転処理部とにより時分割使用させる時分割使用制御部とを備えていることを特徴としている。   The image processing apparatus of the present invention uses the same rotation image memory as the rotation image memory, and stores the image data from the rotation image memory in the order of writing the image data to the rotation image memory. The image data is rotated by changing the reading order, and the rotation processing is performed by dividing the image data into a plurality of blocks, and the rotation image in the rotation processing. It is characterized by comprising a time-division use control unit that causes the memory to be used in a time-sharing manner by the first rotation processing unit and the second rotation processing unit.

また、本発明の画像処理方法は、同一の回転用画像メモリを使用し、前記回転用画像メモリへの画像データの書込み順序に対して前記回転用画像メモリからの画像データの読出し順序を変更することにより前記画像データを回転処理し、この回転処理を前記画像データを複数のブロックに分割して行う第1および第2の回転処理工程を有し、前記回転処理において前記回転用画像メモリを前記第1の回転処理工程と前記第2の回転処理工程とで時分割使用することを特徴としている。   The image processing method of the present invention uses the same image memory for rotation, and changes the reading order of image data from the image memory for rotation with respect to the order of writing image data to the image memory for rotation. The image data is rotated, and the rotation process is performed by dividing the image data into a plurality of blocks, and the rotation image memory is stored in the rotation process. The first rotation processing step and the second rotation processing step are used in a time-sharing manner.

上記の構成によれば、第1および第2の回転処理部(第1および第2の回転処理工程)による回転処理では、同一の回転用画像メモリがそれら両者により時分割使用される。したがって、同一の回転用画像メモリを使用する構成において、第1の回転処理部(第1の回転処理工程)による回転処理を伴う画像処理と第2の回転処理部(第2の回転処理工程)による回転処理を伴う画像処理とを並行して行うことができる。これにより、画像処理装置(画像処理方法)では所望の処理速度を維持しながら、回転用画像メモリの減少による回路規模の縮小とコストダウンとが可能となる。   According to the above configuration, in the rotation processing by the first and second rotation processing units (first and second rotation processing steps), the same image memory for rotation is used in a time-sharing manner by both of them. Accordingly, in a configuration using the same image memory for rotation, image processing involving rotation processing by the first rotation processing unit (first rotation processing step) and second rotation processing unit (second rotation processing step) The image processing accompanied by the rotation processing by the can be performed in parallel. Thereby, in the image processing apparatus (image processing method), it is possible to reduce the circuit scale and cost by reducing the rotation image memory while maintaining a desired processing speed.

上記の画像処理装置において、前記時分割使用制御部は、前記第1の回転処理部が回転処理する第1の画像データのデータ量と前記第2の回転処理部が回転処理する第2の画像データのデータ量とに応じて、前記第1回転処理部と前記第2の回転処理部との前記回転用画像メモリの時分割使用の割合を設定する構成としてもよい。   In the image processing apparatus, the time-division use control unit includes a data amount of first image data that is rotated by the first rotation processing unit and a second image that is rotated by the second rotation processing unit. A ratio of time-division use of the image memory for rotation between the first rotation processing unit and the second rotation processing unit may be set according to the data amount of data.

上記の構成によれば、第1の回転処理部が回転処理する第1の画像データのデータ量と第2の回転処理部が回転処理する第2の画像データのデータ量とに応じて、第1の回転処理部と第2の回転処理部との回転用画像メモリの時分割使用の割合が設定される。例えば、第1の回転処理部と第2の回転処理部とで、処理する画像データのフォーマットが異なる場合、それら画像データのフォーマットに応じて第1の回転処理部と第2回転処理部とによる回転用画像メモリの使用時間の割合が設定される。したがって、第1の画像データのデータ量と第2の画像データのデータ量とが異なる場合に、第1の回転処理部と第2の回転処理部とのいずれか一方の処理が大幅に早く終了し、他方が大幅に遅く終了するといった処理時間の不均衡を生じない。   According to the above configuration, according to the data amount of the first image data rotated by the first rotation processing unit and the data amount of the second image data rotated by the second rotation processing unit, The ratio of time-division use of the image memory for rotation of the first rotation processing unit and the second rotation processing unit is set. For example, when the image data format to be processed is different between the first rotation processing unit and the second rotation processing unit, the first rotation processing unit and the second rotation processing unit depend on the format of the image data. The ratio of the usage time of the image memory for rotation is set. Therefore, when the data amount of the first image data is different from the data amount of the second image data, the process of either the first rotation processing unit or the second rotation processing unit is completed significantly earlier. However, there is no processing time imbalance such that the other ends significantly later.

これにより、第1の回転処理部による回転処理を伴う画像処理と第2の回転処理部による回転処理を伴う画像処理とが並行して行われる場合に、データ量が異なる種々の画像データに対して、それら画像データ同士の処理時間比の仕様に適合した処理が可能となる。   As a result, when image processing with rotation processing by the first rotation processing unit and image processing with rotation processing by the second rotation processing unit are performed in parallel, for various image data having different data amounts Thus, processing conforming to the specification of the processing time ratio between the image data becomes possible.

上記の画像処理装置において、前記第1の画像データと前記第2の画像データとのいずれか一方がカラーの画像データであり、他方がモノクロの画像データである場合に、前記時分割使用制御部は、前記第1の回転処理部と第2の回転処理部のうち、カラーの画像データを処理する回転処理部による前記回転用画像メモリの時分割使用の割合をモノクロの画像データを処理する回転処理部による前記回転用画像メモリの時分割使用の割合よりも大きくする構成としてもよい。   In the above-described image processing apparatus, when one of the first image data and the second image data is color image data and the other is monochrome image data, the time-division use control unit Rotation processing monochrome image data with the time-division use ratio of the image memory for rotation by the rotation processing section that processes color image data out of the first rotation processing section and the second rotation processing section It is good also as a structure made larger than the ratio of the time division use of the said image memory for rotation by a process part.

上記の構成によれば、第1の回転処理部と第2の回転処理部とのうち、カラーの画像データを処理する回転処理部による回転処理に要する時間が大幅に長くなるといった事態を回避することができる。すなわち、カラーの画像データを処理する回転処理部の回転処理の時間とモノクロの画像データを処理する回転処理部による回転処理の時間とに不均衡を生じない。   According to the above configuration, it is possible to avoid a situation in which the time required for the rotation processing by the rotation processing unit that processes the color image data among the first rotation processing unit and the second rotation processing unit is significantly increased. be able to. That is, there is no imbalance between the rotation processing time of the rotation processing unit that processes color image data and the rotation processing time of the rotation processing unit that processes monochrome image data.

これにより、画像処理装置において、第1の回転処理部による回転処理を伴う画像処理と第2の回転処理部による回転処理を伴う画像処理とが並行して行われる場合に、カラーの画像データとモノクロの画像データとの処理時間比の仕様に適合した処理が可能となる。   Thereby, in the image processing apparatus, when the image processing accompanied by the rotation processing by the first rotation processing unit and the image processing accompanied by the rotation processing by the second rotation processing unit are performed in parallel, Processing conforming to the specification of the processing time ratio with monochrome image data can be performed.

上記の画像処理装置において、前記第1の画像データと前記第2の画像データとがデータ量が同じカラーの画像データもしくはデータ量が同じモノクロの画像データである場合に、前記時分割使用制御部は、前記第1の回転処理部と第2の回転処理部とによる前記回転用画像メモリの時分割使用の割合を均等にする構成としてもよい。   In the above image processing apparatus, when the first image data and the second image data are color image data having the same data amount or monochrome image data having the same data amount, the time division use control unit May be configured such that the ratio of time-division use of the image memory for rotation by the first rotation processing unit and the second rotation processing unit is equalized.

上記の画像処理装置において、前記第1の画像データと前記第2の画像データとのいずれか一方がRGB信号形式のカラーの画像データであり、他方がCMYK信号形式のカラーの画像データである構成としてもよい。   In the image processing apparatus, one of the first image data and the second image data is color image data in RGB signal format, and the other is color image data in CMYK signal format. It is good.

上記の画像処理装置は、原稿の画像を読み取って画像データを取得する原稿画像読取り手段とデータの送受信が可能であり、画像データ格納用メモリを備え、前記第1の回転処理部は、前記原稿画像読取り手段から入力された画像データを回転処理し、回転処理後の画像データを前記画像データ格納用メモリに格納する一方、前記第2の回転処理部は、前記画像データ格納用メモリから読み出した画像データを回転処理した後、前記画像データ格納用メモリに格納する構成としてもよい。   The image processing apparatus is capable of transmitting / receiving data to / from a document image reading unit that reads an image of a document and obtains image data, and includes an image data storage memory, and the first rotation processing unit includes the document The image data input from the image reading means is rotated, and the image data after the rotation processing is stored in the image data storage memory, while the second rotation processing unit is read from the image data storage memory The image data may be rotated and then stored in the image data storage memory.

上記の画像処理装置は、画像データに基づいて印刷を行う印刷手段とデータの送受信が可能であり、前記第2の回転処理部は、前記印刷手段の印刷動作に応じて前記回転処理を行う構成としてもよい。   The image processing apparatus is capable of transmitting / receiving data to / from a printing unit that performs printing based on image data, and the second rotation processing unit performs the rotation process according to a printing operation of the printing unit. It is good.

上記の構成によれば、第1の回転処理部は原稿画像読取り手段から入力された画像データを回転処理するものとなり、第2の回転処理部は印刷手段の印刷動作に応じて、この印刷動作のために、画像データ格納用メモリから読み出した画像データを回転処理するものとなる。したがって、原稿画像読取り手段と印刷手段とに対応して各画像データの回転処理を適切に行うことができる。   According to the above configuration, the first rotation processing unit rotates the image data input from the document image reading unit, and the second rotation processing unit performs the printing operation according to the printing operation of the printing unit. Therefore, the image data read from the image data storage memory is rotated. Therefore, the rotation processing of each image data can be appropriately performed corresponding to the document image reading unit and the printing unit.

本発明の画像読取り装置は、前記原稿画像読取り手段および前記画像処理装置を備えている構成である。   The image reading apparatus of the present invention comprises the document image reading means and the image processing apparatus.

上記の構成によれば、画像読取り装置は、原稿画像読取り手段と画像データの回転処理機能を有する画像処理装置とを備えたスキャナ等の装置として構成することができる。   According to the above configuration, the image reading apparatus can be configured as an apparatus such as a scanner including a document image reading unit and an image processing apparatus having a function of rotating image data.

本発明の画像形成装置は、前記原稿画像読取り手段および前記画像処理装置、並びに画像データに基づいて印刷を行う印刷手段を備え、前記第2の回転処理部は、前記印刷手段の印刷動作に応じて前記回転処理を行う構成である。   The image forming apparatus of the present invention includes the original image reading unit, the image processing device, and a printing unit that performs printing based on image data, and the second rotation processing unit is configured to perform a printing operation of the printing unit. The rotation process is performed.

上記の構成によれば、画像形成装置は、原稿画像読取り手段と、画像処理装置と、画像データに基づいて印刷を行う印刷手段とを備え、画像処理装置が原稿画像読取り手段と印刷手段とに対応して各画像データの回転処理を行うデジタル複写機等の装置として構成することができる。   According to the above configuration, the image forming apparatus includes the document image reading unit, the image processing device, and the printing unit that performs printing based on the image data. The image processing device includes the document image reading unit and the printing unit. Correspondingly, it can be configured as a device such as a digital copying machine that performs rotation processing of each image data.

本発明の構成によれば、同一の回転用画像メモリを使用する構成において、第1の回転処を伴う画像処理と第2の回転処理を伴う画像処理とを並行して行うことができる。これにより、所望の処理速度を維持しながら、回転用画像メモリの減少による回路規模の縮小とコストダウンとが可能となる。   According to the configuration of the present invention, in the configuration using the same rotation image memory, the image processing with the first rotation processing and the image processing with the second rotation processing can be performed in parallel. As a result, the circuit scale can be reduced and the cost can be reduced by reducing the rotation image memory while maintaining a desired processing speed.

本発明の一実施形態を図面に基づいて以下に説明する。本実施の形態の画像形成装置としてのデジタル複写機は、図1に示す構成を備えている。図1は、画像データの回転処理機能を備えたデジタル複写機の概略構成を示すブロック図である。   An embodiment of the present invention will be described below with reference to the drawings. A digital copying machine as an image forming apparatus according to the present embodiment has the configuration shown in FIG. FIG. 1 is a block diagram showing a schematic configuration of a digital copying machine having a function of rotating image data.

図1に示すように、デジタル複写機は、スキャナ部(原稿画像読取り手段)1、プリンタ部(印刷手段)2、大容量メモリ(画像データ格納用メモリ)3、制御部(時分割使用制御部)4および画像処理部5を備えている。スキャナ部1は原稿の画像を読み取り画像データに変換する。プリンタ部2は画像データに基づいて、画像データの可視化した像を用紙上に印刷する。大容量メモリ3は例えばDDR(Double Data Rate)SDRAMからなる。このデジタル複写機は、スキャナ部1を使用しての画像読取りの要求とプリンタ部2を使用しての印刷の要求とのマルチアクセスに対応可能である。すなわち、スキャナ部1による画像の読取り動作とプリンタ部2による印刷動作とを並行して行えるようになっている。   As shown in FIG. 1, a digital copying machine includes a scanner unit (original image reading unit) 1, a printer unit (printing unit) 2, a large-capacity memory (image data storage memory) 3, a control unit (time division use control unit). ) 4 and an image processing unit 5. The scanner unit 1 reads an image of a document and converts it into image data. The printer unit 2 prints a visualized image of the image data on a sheet based on the image data. The large capacity memory 3 is composed of, for example, a DDR (Double Data Rate) SDRAM. This digital copying machine can cope with multi-access between an image reading request using the scanner unit 1 and a printing request using the printer unit 2. That is, the image reading operation by the scanner unit 1 and the printing operation by the printer unit 2 can be performed in parallel.

画像処理部5は、大容量メモリ3から読み出した画像データに対して、データ回転部11により回転処理を行うとともに、これら回転処理の前後において所定の画像処理を行い、処理後の画像データを大容量メモリ3に格納する。これら処理を行うために、画像処理部5は、データ回転部11、第1前処理部12、第1後処理部13、第2前処理部14および第2後処理部15を備えている。   The image processing unit 5 performs rotation processing on the image data read from the large-capacity memory 3 by the data rotation unit 11, performs predetermined image processing before and after these rotation processing, and increases the processed image data. Store in the capacity memory 3. In order to perform these processes, the image processing unit 5 includes a data rotation unit 11, a first preprocessing unit 12, a first postprocessing unit 13, a second preprocessing unit 14, and a second postprocessing unit 15.

データ回転部11は第1前処理部12での処理後の画像データに対する回転処理(第1の回転処理)、および第2前処理部14での処理後の画像データに対する回転処理(第2の回転処理)を行うことができる。これら回転処理は、設定に応じて、あるいは例えばユーザ入力に基づく指令に応じて適宜行われる。   The data rotation unit 11 performs a rotation process (first rotation process) on the image data processed by the first preprocessing unit 12 and a rotation process (second rotation) on the image data processed by the second preprocessing unit 14. Rotation process). These rotation processes are appropriately performed according to the setting or according to a command based on, for example, a user input.

第1の回転処理は、スキャナ部1で読み取った画像データを例えばパーソナルコンピュータの画面での表示方向に合致させるための処理である。また、第2の回転処理は、大容量メモリ3に記憶されている画像データをプリンタ部2にて用紙上に印刷する場合に用紙での印刷方向に合致させるための処理である。   The first rotation process is a process for matching the image data read by the scanner unit 1 with the display direction on the screen of a personal computer, for example. The second rotation process is a process for matching the printing direction on the paper when the image data stored in the large-capacity memory 3 is printed on the paper by the printer unit 2.

第1前処理部12はスキャナ部1から入力された画像データに対して例えば所定のフィルタ処理を行う。第1後処理部13は画像データに対して例えばJPEG圧縮を行う。第2前処理部14は、例えば、JPEG圧縮されている画像データを印刷処理のためにJPEG解凍する。第2後処理部15はプリンタ部102にて処理される画像データとして適合するように色変換等の処理を行う。   The first preprocessing unit 12 performs, for example, a predetermined filter process on the image data input from the scanner unit 1. The first post-processing unit 13 performs, for example, JPEG compression on the image data. For example, the second preprocessing unit 14 decompresses JPEG-compressed image data for print processing. The second post-processing unit 15 performs processing such as color conversion so as to be suitable as image data processed by the printer unit 102.

図2は、図1に示した画像処理部5の構成を詳細に示すブロック図である。同図に示すように、画像処理部5は、図1に示した各処理部が大容量メモリ3から画像データを読み出したり、処理後の画像データを大容量メモリ3に書き込んだりする場合のデータ調停手段としてバス調停部(時分割使用制御部)16を備えている。データ回転部11は、第1回転処理部51、第2回転処理部52およびワークメモリ(回転用画像メモリ)53を備えている。ワークメモリ53は、小容量メモリ(バッファ)であり、第1および第2回転処理部16,17が上記の第1および第2の回転処理を行う場合の作業領域となる。第1および第2回転処理部16,17は、一つのワークメモリ53を共用し、それぞれ画像データの回転処理を行う。   FIG. 2 is a block diagram showing in detail the configuration of the image processing unit 5 shown in FIG. As shown in the figure, the image processing unit 5 is data when each processing unit shown in FIG. 1 reads out image data from the large-capacity memory 3 or writes processed image data into the large-capacity memory 3. A bus arbitration unit (time division use control unit) 16 is provided as arbitration means. The data rotation unit 11 includes a first rotation processing unit 51, a second rotation processing unit 52, and a work memory (rotation image memory) 53. The work memory 53 is a small capacity memory (buffer) and serves as a work area when the first and second rotation processing units 16 and 17 perform the first and second rotation processes. The first and second rotation processing units 16 and 17 share one work memory 53 and respectively perform rotation processing of image data.

図3は、図2に示したデータ回転部11の構成を詳細に示すブロック図である。同図に示すように、データ回転部11は、DMA読出し制御・調停部21、DMA書込み制御・調停部22、第1DMA読出しアドレス計算部23、第2DMA読出しアドレス計算部24、第1DMA書込みアドレス計算部25、第2DMA書込みアドレス計算部26、第1SRAM書込み制御部27、第2SRAM書込み制御部28、第1SRAM読出し制御部29、第2SRAM読出し制御部30、第1バッファ選択制御部31、第2バッファ選択制御部32、sRAM書込み選択部33、sRAM読出し選択部34、前記ワークメモリ53、レジスタ35および割込み制御部36を備えている。また、DMA読出し制御・調停部21には読出しDMA調停部37が接続され、DMA書込み制御・調停部22には書込みDMA調停部38が接続されている。なお、これら読出しDMA調停部37および書込みDMA調停部38は、図2に示したバス調停部16に相当する。   FIG. 3 is a block diagram showing in detail the configuration of the data rotation unit 11 shown in FIG. As shown in the figure, the data rotation unit 11 includes a DMA read control / arbitration unit 21, a DMA write control / arbitration unit 22, a first DMA read address calculation unit 23, a second DMA read address calculation unit 24, and a first DMA write address calculation. Unit 25, second DMA write address calculation unit 26, first SRAM write control unit 27, second SRAM write control unit 28, first SRAM read control unit 29, second SRAM read control unit 30, first buffer selection control unit 31, second buffer A selection control unit 32, an sRAM write selection unit 33, an sRAM read selection unit 34, the work memory 53, a register 35, and an interrupt control unit 36 are provided. A read DMA arbitration unit 37 is connected to the DMA read control / arbitration unit 21, and a write DMA arbitration unit 38 is connected to the DMA write control / arbitration unit 22. The read DMA arbitration unit 37 and the write DMA arbitration unit 38 correspond to the bus arbitration unit 16 shown in FIG.

DMA読出し制御・調停部21は、読出しDMA調停部37に対し大容量メモリ3に保存されている画像データの読出し要求を送信する(コマンド送信動作)。この場合、DMA読出し制御・調停部21は、大容量メモリ3より読み出すべき領域のアドレスを第1DMA読出しアドレス計算部23もしくは第2DMA読出しアドレス計算部24から取得し、上記読出し要求を行う。なお、1回の読出し動作が終了すると、第1もしくは第2DMA読出しアドレス計算部23,24に対して読出し動作の終了通知を行い、次に読み出すべき領域のアドレスを第1もしくは第2DMA読出しアドレス計算部23,24から取得する。   The DMA read control / arbitration unit 21 transmits a read request for image data stored in the large-capacity memory 3 to the read DMA arbitration unit 37 (command transmission operation). In this case, the DMA read control / arbiter 21 obtains the address of the area to be read from the large-capacity memory 3 from the first DMA read address calculator 23 or the second DMA read address calculator 24 and makes the read request. When one read operation is completed, the first or second DMA read address calculation unit 23, 24 is notified of the end of the read operation, and the address of the area to be read next is calculated by the first or second DMA read address calculation. Obtained from the units 23 and 24.

DMA読出し制御・調停部21は、読出しDMA調停部37に対する上記読出し要求の送信タイミングを、大容量メモリ3から読み出した画像データを回転処理して大容量メモリ3に格納する場合はレジスタ35から取得し、入力画像データを回転処理して大容量メモリ3に格納する場合および大容量メモリ3に格納されている画像データを回転処理して出力する場合は、各モジュールから取得する。また、レジスタ35においてコマンド送信の遅延設定がされている場合、コマンド送信要求が発生してから上記遅延分の待ち時間を設け、その待ち時間経過後に読出しDMA調停部37に対してコマンド(上記読出し要求)を送信する。   The DMA read control / arbitration unit 21 obtains the transmission timing of the read request to the read DMA arbitration unit 37 from the register 35 when the image data read from the large capacity memory 3 is rotated and stored in the large capacity memory 3. When the input image data is rotated and stored in the large-capacity memory 3, and when the image data stored in the large-capacity memory 3 is rotated and output, it is acquired from each module. When the command transmission delay is set in the register 35, a waiting time corresponding to the delay is provided after the command transmission request is generated, and after the waiting time has elapsed, the command (reading the above-mentioned reading) is performed to the reading DMA arbitration unit 37. Request).

なお、上記の各モジュールは、図2の第1前処理部12、第1後処理部13、第2前処理部14および第2後処理部15であり、DMA読出し制御・調停部21は、各モジュールの終了通知を取得することで、読み出しDMA調停部37に対する読み出し要求の送信タイミングとする。   The above modules are the first preprocessing unit 12, the first postprocessing unit 13, the second preprocessing unit 14 and the second postprocessing unit 15 shown in FIG. By obtaining the end notification of each module, the read request is sent to the read DMA arbitration unit 37.

DMA書込み制御・調停部22は、書込みDMA調停部38に対し大容量メモリへの画像データの書込み要求を送信する(コマンド送信動作)。この場合、DMA書込み制御・調停部22は、大容量メモリ3に書き込むべき領域のアドレスを第1DMA書込みアドレス計算部25もしくは第2DMA書込みアドレス計算部26から取得し、上記書込み要求を行う。なお、1回の書込み動作が終了すると、第1もしくは第2DMA書込みアドレス計算部25,26に対して書込み動作の終了通知を行い、次に書き込むべき領域のアドレスを第1もしくは第2DMA書込みアドレス計算部25,26から取得する。   The DMA write control / arbitration unit 22 transmits a request to write image data to the large-capacity memory to the write DMA arbitration unit 38 (command transmission operation). In this case, the DMA write control / arbitration unit 22 acquires the address of the area to be written in the large capacity memory 3 from the first DMA write address calculation unit 25 or the second DMA write address calculation unit 26, and makes the write request. When one write operation is completed, the end of the write operation is notified to the first or second DMA write address calculators 25 and 26, and the address of the area to be written next is calculated by the first or second DMA write address. Acquired from the units 25 and 26.

DMA書込み制御・調停部22は、書込みDMA調停部38に対する上記書込み要求のタイミングを第1SRAM読出し制御部29もしくは第2SRAM読出し制御部30から取得する。また、レジスタ35においてコマンド送信の遅延設定がされている場合、コマンド送信要求が発生してから上記遅延分の待ち時間を設け、その待ち時間経過後に書込みDMA調停部38に対してコマンド(上記書込み要求)を送信する。   The DMA write control / arbitration unit 22 acquires the timing of the write request to the write DMA arbitration unit 38 from the first SRAM read control unit 29 or the second SRAM read control unit 30. When the command transmission delay is set in the register 35, a waiting time corresponding to the delay is provided after the command transmission request is generated, and after the waiting time has elapsed, a command (the writing described above) is sent to the write DMA arbitration unit 38. Request).

第1および第2DMA読出しアドレス計算部23,24は、大容量メモリ3での回転すべき画像データの保存されている位置の情報(回転前保存位置情報)をレジスタ35から取得し、大容量メモリ3における順次読み出すべき領域を計算する。計算結果はDMA読出し制御・調停部21へ送信する。   The first and second DMA read address calculation units 23 and 24 obtain from the register 35 information on the position where the image data to be rotated in the large-capacity memory 3 is stored (pre-rotation stored position information). The area to be read sequentially in 3 is calculated. The calculation result is transmitted to the DMA read control / arbiter 21.

第1および第2SRAM書込み制御部27,28は、ワークメモリ53を複数の領域に分割して設定されたブロック(sRAM)のうち、いずれのブロックを使用するかを各モードやタイミングに従って選択し、選択結果を使用ブロック情報としてsRAM書込み選択部33に送信する。ワークメモリ53の書込みアドレスの指定や制御は、これら第1および第2SRAM書込み制御部27,28が行う。   The first and second SRAM write control units 27 and 28 select which block to use from the blocks (sRAM) set by dividing the work memory 53 into a plurality of areas according to each mode and timing, The selection result is transmitted to the sRAM write selection unit 33 as used block information. The designation and control of the write address of the work memory 53 are performed by the first and second SRAM write control units 27 and 28.

第1および第2DMA書込みアドレス計算部25,26は、大容量メモリ3での画像データの保存すべき位置の情報(回転後保存位置情報)をレジスタ35から取得し、画像データの順次書き込むべき領域を計算する。計算結果はDMA書込み制御・調停部22へ送信する。   The first and second DMA write address calculators 25 and 26 obtain information on the position where image data should be stored in the large-capacity memory 3 (post-rotation storage position information) from the register 35, and write the image data sequentially. Calculate The calculation result is transmitted to the DMA write control / arbitration unit 22.

第1SRAM読出し制御部29および第2SRAM読出し制御部30は、ワークメモリ53を複数の領域に分割して設定されたブロック(sRAM)のうち、いずれのブロックを使用するかを各モードやタイミングに従って選択し、選択結果を使用ブロック情報としてsRAM読出し選択部34に送信する。ワークメモリ53の読出しアドレスの指定や制御は、これら第1および第2SRAM読出し制御部29,30が行う。   The first SRAM read control unit 29 and the second SRAM read control unit 30 select which block to use among the blocks (sRAM) set by dividing the work memory 53 into a plurality of areas according to each mode and timing. Then, the selection result is transmitted to the sRAM read selection unit 34 as used block information. The first and second SRAM read control units 29 and 30 specify and control the read address of the work memory 53.

第1バッファ選択制御部31は、第1SRAM書込み制御部27および第1SRAM読出し制御部29が制御するワークメモリ53の上記ブロックを指定する。また、それぞれのブロックに対する書込み開始タイミングおよび読出し開始タイミングを決定する。第2バッファ選択制御部32は、同様に、第2SRAM書込み制御部28および第2SRAM読出し制御部30が制御するワークメモリ53の上記ブロックを指定する。また、それぞれのブロックに対する書込み開始タイミングおよび読出し開始タイミングを決定する。   The first buffer selection control unit 31 designates the block of the work memory 53 controlled by the first SRAM write control unit 27 and the first SRAM read control unit 29. Also, the write start timing and read start timing for each block are determined. Similarly, the second buffer selection control unit 32 designates the block of the work memory 53 controlled by the second SRAM write control unit 28 and the second SRAM read control unit 30. Also, the write start timing and read start timing for each block are determined.

sRAM書込み選択部33は、第1もしくは第2SRAM書込み制御部27,28からの使用ブロック情報および使用入力バッファ信号に従ってデータバスを設定する。   The sRAM write selection unit 33 sets a data bus according to the used block information and the used input buffer signal from the first or second SRAM write control units 27 and 28.

sRAM読出し選択部34は、第1もしくは第2SRAM読出し制御部29,30からの使用ブロック情報および使用入力バッファ信号に従ってデータバスを設定する。   The sRAM read selection unit 34 sets the data bus according to the used block information and the used input buffer signal from the first or second SRAM read control units 29 and 30.

レジスタ35は、各種動作に対する設定情報等がCPU(図示せず)により書き込まれる。   In the register 35, setting information for various operations is written by a CPU (not shown).

割込み制御部36は、割込み処理が発生した場合に、その割込み処理のための制御を行う。読出しDMA調停部37は、DMA読出し制御・調停部21からの要求に応じて、DMA読出し制御・調停部21がワークメモリ53からのデータ読出しを行う場合に、この動作が適切に行えるように、バスラインの調停を行う。書込みDMA調停部38は、DMA書込み制御・調停部22からの要求に応じて、DMA書込み制御・調停部22がワークメモリ53へのデータ書込みを行う場合に、この動作が適切に行えるように、バスラインの調停を行う。   When an interrupt process occurs, the interrupt control unit 36 performs control for the interrupt process. In response to a request from the DMA read control / arbitration unit 21, the read DMA arbitration unit 37 can appropriately perform this operation when the DMA read control / arbitration unit 21 reads data from the work memory 53. Arrange bus lines. In response to a request from the DMA write control / arbitration unit 22, the write DMA arbitration unit 38 can appropriately perform this operation when the DMA write control / arbitration unit 22 writes data to the work memory 53. Arrange bus lines.

ここで、ワークメモリ53についてさらに詳細に説明する。図3では、一例としてワークメモリ53が4個のブロック(領域)に分割されている。以下、これらブロック(領域)を回転用メモリブロックと称する。各回転用メモリブロックは、2048word×32bit、すなわちアドレス2048、かつbit幅32となっている。なお、各回転用メモリブロックのメモリ容量(サイズ)は、1つの回転用メモリブロックをどれだけの容量にするかによって決まり、特に制限はない。   Here, the work memory 53 will be described in more detail. In FIG. 3, the work memory 53 is divided into four blocks (areas) as an example. Hereinafter, these blocks (areas) are referred to as rotation memory blocks. Each memory block for rotation has 2048 words × 32 bits, that is, an address 2048 and a bit width 32. The memory capacity (size) of each rotation memory block is determined by how much capacity one rotation memory block is to be made, and is not particularly limited.

また、回転用メモリブロックの数は、特に限定されるものではなく、例えばワークメモリ53からデータの読出し速度に応じて設定される。図3の例では、ワークメモリ53が4個の回転用メモリブロックを有する構成であることから、90度の回転データを読み出す場合、1クロックにつき4画素ずつ読み出すことができる。この構成では、回転用メモリブロックが1本の場合に比べて読出し速度が4倍となる。   The number of memory blocks for rotation is not particularly limited, and is set according to the data reading speed from the work memory 53, for example. In the example of FIG. 3, since the work memory 53 has four rotation memory blocks, when 90-degree rotation data is read, four pixels can be read per clock. In this configuration, the reading speed is four times as compared with the case of one rotation memory block.

上記のように、ワークメモリ53が複数の回転用メモリブロックを有する構成では、デジタル複写機として求められる処理速度とデータ容量とに基づき、各回転用メモリブロックに対して処理を連続して割り当てる。これにより、ワークメモリ53としては待機状態が少なくなり、ワークメモリ53を使用した効率のよい回転処理が可能となる。   As described above, in the configuration in which the work memory 53 includes a plurality of rotation memory blocks, processing is continuously assigned to each rotation memory block based on the processing speed and data capacity required for the digital copying machine. As a result, the work memory 53 has fewer standby states, and efficient rotation processing using the work memory 53 becomes possible.

また、本実施の形態のデジタル複写機では、ワークメモリ53が2個以上の回転用メモリブロックを有し、それら回転用メモリブロックを時分割にて共用する構成としている。したがって、画像データを回転するための構成を小さい回路規模にて実現でき、かつ画像データの種類に応じて求められる回転処理性能を実現できるようにしている。   In the digital copying machine according to the present embodiment, the work memory 53 has two or more rotation memory blocks, and the rotation memory blocks are shared in a time-sharing manner. Therefore, the configuration for rotating the image data can be realized with a small circuit scale, and the rotation processing performance required according to the type of the image data can be realized.

上記の構成において、デジタル複写機での画像データの回転処理について説明する。図4は、図1に示したデータ回転部11での画像データの回転処理の概要を示す説明図である。図4の回転処理では、画像データを90度右向きに回転させており、大容量メモリ3上の画像データは主走査方向のサイズと副走査方向のサイズとが入れ替わった状態となる。この回転処理は従来のものと同様である。   In the above configuration, the rotation processing of image data in the digital copying machine will be described. FIG. 4 is an explanatory diagram showing an outline of image data rotation processing in the data rotation unit 11 shown in FIG. In the rotation processing of FIG. 4, the image data is rotated 90 degrees rightward, and the image data on the large-capacity memory 3 is in a state where the size in the main scanning direction and the size in the sub-scanning direction are switched. This rotation process is the same as the conventional one.

上記の回転処理においては、1ページ分の画像データを複数のブロックに分割し、それらブロック単位で回転処理を行っている。この処理をブロック数分行うことにより、1ページ分の回転処理が完了する。以下では、画像データの上記ブロックをデータブロックと称する。図4の左側の図中における矢印は、大容量メモリ3から1データブロック(1個の丸付数字の領域)の画像データを読み出す場合の、各データブロックの読出し順序を示す。また、図4の右側の図中における大容量メモリ3内の矢印は、大容量メモリ3へ1データブロックずつ書き込む場合の、各データブロックの書込み順序を示す。   In the above rotation processing, image data for one page is divided into a plurality of blocks, and the rotation processing is performed in units of these blocks. By performing this process for the number of blocks, the rotation process for one page is completed. Hereinafter, the block of image data is referred to as a data block. The arrows in the diagram on the left side of FIG. 4 indicate the reading order of each data block when reading the image data of one data block (one circled number area) from the large capacity memory 3. Also, the arrows in the large-capacity memory 3 in the diagram on the right side of FIG. 4 indicate the writing order of each data block when writing one data block to the large-capacity memory 3.

図5は、図4に示した回転処理をワークメモリ53上での処理を含めて詳細に示す説明図である。ここでは、128画素×64ラインを1データブロックとし、この1データブロック分の画像データを大容量メモリ3から読み出してデータ回転部11のワークメモリ53に書き込み、その後、ワークメモリ53から読み出して大容量メモリ3に書き込んでいる。図5に示すように、データ回転部11は、画像データを大容量メモリ3から読み出してワークメモリ53に書き込む場合のワークメモリ53への書込み順序と、ワークメモリ53から読み出して大容量メモリに書き込む場合のワークメモリ53からの読出し順序とを異ならせることにより回転処理を行っている。具体的には、ワークメモリ53への書込みの場合には、ワークメモリ53の上端の右端領域を始端として右方向へ書込み、ワークメモリ53からの読出しの場合には、ワークメモリ53の左端の下端領域を始端として上方向へ読出しを行っている。   FIG. 5 is an explanatory diagram showing the rotation process shown in FIG. 4 in detail including the process on the work memory 53. Here, 128 pixels × 64 lines are defined as one data block, and the image data for one data block is read from the large-capacity memory 3 and written to the work memory 53 of the data rotation unit 11, and then read from the work memory 53 to be large Writing to the capacity memory 3. As shown in FIG. 5, the data rotation unit 11 reads the image data from the large-capacity memory 3 and writes the data to the work memory 53, and the reading order from the work memory 53 and writes it to the large-capacity memory. The rotation processing is performed by changing the reading order from the work memory 53 in this case. Specifically, in the case of writing to the work memory 53, the right end region at the upper end of the work memory 53 is written in the right direction, and in the case of reading from the work memory 53, the lower end of the left end of the work memory 53 is written. Reading is performed upward starting from the area.

図6(a)は、ワークメモリ53を分割せずに使用する場合のワークメモリ53への書込み処理とワークメモリ53からの読出し処理とを示す説明図である。図6(b)はワークメモリ53を分割して使用する場合のワークメモリ53への書込み処理とワークメモリ53からの読出し処理とを示す説明図である。図6(b)は図3に示した本実施の形態のデータ回転部11での処理に対応している。ワークメモリ53は、1データブロック分のデータ量(128画素×64ライン)に対応して、1ブロックが128画素×64ラインの4個のブロック(回転用メモリブロック)に分割されている。   FIG. 6A is an explanatory diagram showing a write process to the work memory 53 and a read process from the work memory 53 when the work memory 53 is used without being divided. FIG. 6B is an explanatory diagram showing a writing process to the work memory 53 and a reading process from the work memory 53 when the work memory 53 is divided and used. FIG. 6B corresponds to the processing in the data rotation unit 11 of the present embodiment shown in FIG. The work memory 53 is divided into four blocks (rotation memory blocks) of 128 pixels × 64 lines corresponding to the data amount (128 pixels × 64 lines) for one data block.

ワークメモリ53を分割せずに使用する場合(図6(a))、ワークメモリ53への書込み処理とワークメモリ53からの読出し処理は、図5に示したワークメモリ53に対する処理と同様である。ワークメモリ53を例えば4分割して使用する場合(図6(b))、4個の回転用メモリブロックへの書込み処理は順次行われるので、処理速度は図6(a)の場合と同様である。一方、ワークメモリ53からの読出し処理の場合、4個の回転用メモリブロックから同時に画像データを読み出すことができるので、すなわち同時に4画素の画像データを読み出すことができるので、処理速度が速くなる。   When the work memory 53 is used without being divided (FIG. 6A), the writing process to the work memory 53 and the reading process from the work memory 53 are the same as the processes for the work memory 53 shown in FIG. . For example, when the work memory 53 is divided into four parts (FIG. 6 (b)), the writing process to the four rotation memory blocks is performed sequentially, so the processing speed is the same as in FIG. 6 (a). is there. On the other hand, in the case of the reading process from the work memory 53, the image data can be read simultaneously from the four rotation memory blocks, that is, the image data of 4 pixels can be read simultaneously, so that the processing speed is increased.

図7(a)は処理する画像データがRGB(24bit)データである場合のワークメモリ53への書込み処理を示す説明図、図7(b)は処理する画像データがK(4bit)データである場合のワークメモリ53への書込み処理を示す説明図、図7(c)は処理する画像データがK(1bit)データである場合のワークメモリ53への書込み処理を示す説明図である。   FIG. 7A is an explanatory diagram showing the writing process to the work memory 53 when the image data to be processed is RGB (24 bit) data, and FIG. 7B is the image data to be processed being K (4 bit) data. FIG. 7C is an explanatory diagram showing the writing process to the work memory 53 when the image data to be processed is K (1 bit) data.

図7(a)〜図7(c)では、ワークメモリ53が有する4個の回転用メモリブロックをFIFO_0〜FIFO_3として表している。例えば、RGBの画像データを90度回転させる場合、FIFO_0〜FIFO_3には大容量メモリ3からそれぞれ異なるラインのデータが格納される。Nライン目のFIFOには大容量メモリ3上における(n×4−3)(n=0,1,…)ライン目の画像データが書き込まれる。ワークメモリ53からの画像データの読み出しは、4個のFIFOから1画素ずつ合計4画素が同時に読み出される。したがって、例えば16回の読出し動作により64ラインから1画素目のデータだけが読み出される。   In FIG. 7A to FIG. 7C, the four rotation memory blocks included in the work memory 53 are represented as FIFO_0 to FIFO_3. For example, when RGB image data is rotated by 90 degrees, FIFO_0 to FIFO_3 store data of different lines from the large-capacity memory 3, respectively. Image data of the (n × 4-3) (n = 0, 1,...) Line on the large-capacity memory 3 is written into the FIFO of the Nth line. When reading out the image data from the work memory 53, a total of four pixels are simultaneously read out from the four FIFOs one by one. Therefore, for example, only the first pixel data is read from 64 lines by 16 reading operations.

ワークメモリ53への画像データの書込み処理において、処理する画像データがRGB(24bit)データである場合、図7(a)に示すように、Nライン目の1画素目から128画素目まではFIFO_0に読み込む。なお、N=n×4−3 (nは整数) )である。N+1ライン目の1画素目から128画素目まではFIFO_1に読み込む。N+3ライン目の1画素目から128画素目まではFIFO_2に読み込む。N+4ライン目の1画素目から128画素目まではFIFO_3に読み込む。   In the image data writing process to the work memory 53, when the image data to be processed is RGB (24 bit) data, as shown in FIG. 7A, the first to 128th pixels in the Nth line are FIFO_0. Read in. Note that N = n × 4-3 (n is an integer)). The first pixel to the 128th pixel on the (N + 1) th line are read into FIFO_1. The first pixel through the 128th pixel on the N + 3 line are read into FIFO_2. The first pixel through the 128th pixel on the N + 4th line are read into FIFO_3.

また、処理する画像データがK(4bit)データである場合、図7(b)に示すように、Nライン目の1画素目から256画素目まではFIFO_0に読み込む。N+1ライン目の1画素目から256画素目まではFIFO_1に読み込む。N+3ライン目の1画素目から256画素目まではFIFO_2に読み込む。N+4ライン目の1画素目から256画素目まではFIFO_3に読み込む。   If the image data to be processed is K (4 bit) data, the first to 256th pixels on the Nth line are read into FIFO_0 as shown in FIG. 7B. The first pixel to the 256th pixel on the (N + 1) th line are read into FIFO_1. The first pixel to the 256th pixel on the N + 3 line are read into FIFO_2. The first pixel to the 256th pixel on the N + 4th line are read into FIFO_3.

また、処理する画像データがK(1bit)データである場合、図7(c)に示すように、Nライン目の1画素目から512画素目まではFIFO_0に読み込む。N+1ライン目の1画素目から512画素目まではFIFO_1に読み込む。N+3ライン目の1画素目から512画素目まではFIFO_2に読み込む。N+4ライン目の1画素目から512画素目まではFIFO_3に読み込む。   If the image data to be processed is K (1 bit) data, the first to 512th pixels on the N-th line are read into FIFO_0 as shown in FIG. 7C. The first pixel to the 512th pixel on the (N + 1) th line are read into FIFO_1. The first to 512th pixels on the N + 3 line are read into FIFO_2. The first to 512th pixels on the N + 4th line are read into FIFO_3.

上記のように、本実施の形態では、ワークメモリ53が一定サイズの4個の回転用メモリブロック(2048word×32bit)を有する構成としている。したがって、処理する画像データのフォーマットに応じてワークメモリ53に格納する画素数を変更することにより、ワークメモリ53を無駄なく使うことができる。   As described above, in the present embodiment, the work memory 53 is configured to have four rotation memory blocks (2048 words × 32 bits) of a certain size. Therefore, by changing the number of pixels stored in the work memory 53 according to the format of the image data to be processed, the work memory 53 can be used without waste.

図8には、ワークメモリ53が2048word×32bit×4本の構成である場合において、ワークメモリ53に格納可能な画像フォーマットごとの画素数を示す。この画素数は、画像データを複数のデータブロックに分割して回転処理する場合の各データブロックのサイズに相当する。なお、図8において、画像フォーマットがCMYK(8ビット/ch)である場合の備考欄に記載のCh単位とは、CMYKデータが各同一色チャンネルで1つのプレーン(C−C−C−, M−M−M−)を構成していることを言う。これとは対象的に、RGBは画素毎にRGB−RGBの並びになっている。   FIG. 8 shows the number of pixels for each image format that can be stored in the work memory 53 when the work memory 53 has a configuration of 2048 words × 32 bits × 4. This number of pixels corresponds to the size of each data block when image data is divided into a plurality of data blocks and rotated. In FIG. 8, the Ch unit described in the remarks column when the image format is CMYK (8 bits / ch) means that one plane (C-C-C-, M -M-M-). In contrast, RGB is a sequence of RGB-RGB for each pixel.

また、図9には、A4サイズ600dpiにおける画像フォーマットごとのデータサイズ(データ量)を示す。   FIG. 9 shows the data size (data amount) for each image format in A4 size 600 dpi.

上記の構成において、本実施の形態の画像形成装置では、データ回転部11の第1回転処理部51と第2回転処理部52とがワークメモリ53を時分割使用により共用している。この場合、第1回転処理部51と第2回転処理部52とのワークメモリ53の使用権は均等に割り当てられるのではなく、処理すべき画像データのデータ量(画像フォーマット)とデジタル複写機(画像形成装置)に求められる画像フォーマットごとの処理速度とに基づいて設定される。また、データ量のみに注目すれば、処理すべきデータ量が多いほどワークメモリ53を相対的に長い時間使用できるように設定される。これにより、ワークメモリ53の待機時間が短くなってワークメモリ53を効率よく使用でき、ワークメモリ53を共用する場合のデータ回転部11の処理速度を高めることができる。   In the above-described configuration, in the image forming apparatus according to the present embodiment, the first rotation processing unit 51 and the second rotation processing unit 52 of the data rotation unit 11 share the work memory 53 by time division use. In this case, the right to use the work memory 53 of the first rotation processing unit 51 and the second rotation processing unit 52 is not equally allocated, but the amount of image data (image format) to be processed and the digital copying machine ( And the processing speed for each image format required for the image forming apparatus). If attention is paid only to the data amount, the work memory 53 is set to be usable for a relatively long time as the amount of data to be processed increases. Thereby, the standby time of the work memory 53 is shortened, the work memory 53 can be used efficiently, and the processing speed of the data rotation unit 11 when the work memory 53 is shared can be increased.

ワークメモリ53の使用権の設定はレジスタ35(図3参照)において行われている。レジスタ35への使用権の書き込みは、マルチアクセス要求を受けて制御部4(図1参照)が行う。この制御部4はCPU(図示せず)を備えている。   The right to use the work memory 53 is set in the register 35 (see FIG. 3). The use right is written to the register 35 by the control unit 4 (see FIG. 1) in response to the multi-access request. The control unit 4 includes a CPU (not shown).

第1および第2回転処理部51,52は、レジスタ35の設定に基づいて順次設定されているデータブロック数分の処理を行う。この場合、一方の回転処理部の処理が終了すると、ワークメモリ53の使用権は他方の回転処理部に移る。   The first and second rotation processing units 51 and 52 perform processing for the number of data blocks that are sequentially set based on the setting of the register 35. In this case, when the processing of one rotation processing unit is completed, the right to use the work memory 53 is transferred to the other rotation processing unit.

図10は、第1回転処理部51および第2回転処理部52によるワークメモリ53の共有動作の概要を示す説明図である。例えば、レジスタ35において、第1回転処理部51の処理データブロック数が8と設定され、第2回転処理部52の処理データブロック数が2と設定されている場合、同図に示すように、まず、第1回転処理部51がワークメモリ53の使用権を取得して8データブロックの回転処理を行い、その後、第2回転処理部52がワークメモリ53の使用権を取得して2データブロックの回転処理を行う。この動作を交互に繰り返して1頁分の処理が終了する。   FIG. 10 is an explanatory diagram showing an outline of the sharing operation of the work memory 53 by the first rotation processing unit 51 and the second rotation processing unit 52. For example, in the register 35, when the number of processing data blocks of the first rotation processing unit 51 is set to 8 and the number of processing data blocks of the second rotation processing unit 52 is set to 2, as shown in FIG. First, the first rotation processing unit 51 obtains the right to use the work memory 53 and performs rotation processing of 8 data blocks, and then the second rotation processing unit 52 obtains the right to use the work memory 53 to obtain 2 data blocks. The rotation process is performed. By repeating this operation alternately, the processing for one page is completed.

図11は、1データブロックの画像データを回転処理する場合に必要な画像フォーマットごとのワークメモリ53の使用権をワークメモリ53の連続取得回数として示したものである。   FIG. 11 shows the right to use the work memory 53 for each image format necessary for rotating the image data of one data block as the number of continuous acquisitions of the work memory 53.

図11を参照して、例えば、画像データの回転処理要求を伴うマルチアクセスがスキャナ部1(RGB(24bit)データの回転処理要求)とプリンタ部2(CMYK(4bit)データの回転処理要求)とに対して発生した場合におけるワークメモリ53の時分割使用について説明する。   Referring to FIG. 11, for example, multi-access accompanied by a request for rotation processing of image data is performed by scanner unit 1 (RGB (24-bit) data rotation processing request) and printer unit 2 (CMYK (4-bit) data rotation processing request). The time-division use of the work memory 53 when it occurs will be described.

この場合には、スキャナ部1のブロックサイズである128画素(384Byte)×64ラインの回転を64回連続して行った後、プリンタ部2のブロックサイズである256画素(128Byte)×256ラインの回転を32回連続して行う。これにより、スキャナ部1から大容量メモリ3へ100MBのデータを80PPMの速度で回転を伴って転送し、かつ大容量メモリ3からプリンタ部2へ66MBのデータを80PPMの速度で回転を伴って転送することができる。   In this case, 128 pixels (384 bytes) × 64 lines, which is the block size of the scanner unit 1, are continuously rotated 64 times, and then the block size of the printer unit 2 is 256 pixels (128 bytes) × 256 lines. Rotate 32 times continuously. As a result, 100 MB data is transferred from the scanner unit 1 to the large capacity memory 3 at a speed of 80 PPM with rotation, and 66 MB data is transferred from the large capacity memory 3 to the printer section 2 at a speed of 80 PPM with rotation. can do.

図12から図15では、構成が異なる複数のデータ回転部11におけるワークメモリ53の使用形態を比較している。図12は、データ回転部11が1個のみのワークメモリ53を備え、そのワークメモリ53を第1回転処理部51と第2回転処理部52とが共用するものの、時分割使用を行わない場合の説明図である。図13はデータ回転部11が第1回転処理部51と第2回転処理部52とにそれぞれ専用のワークメモリ53を備えている場合の説明図である。図14は、データ回転部11が1個のみのワークメモリ53を備え、そのワークメモリ53を第1回転処理部51と第2回転処理部52とが時分割使用により共用する場合の説明図である。図15は、データ回転部11が1個のみのワークメモリ53を備え、そのワークメモリ53を第1回転処理部51と第2回転処理部52とが時分割使用により共用し、かつ第1回転処理部51と第2回転処理部52とでワークメモリ53の使用時間の割合が均等ではなく、一方に偏重している場合の説明図である。   12 to 15 compare the usage forms of the work memory 53 in a plurality of data rotation units 11 having different configurations. In FIG. 12, the data rotation unit 11 includes only one work memory 53, and the work memory 53 is shared by the first rotation processing unit 51 and the second rotation processing unit 52, but time division use is not performed. It is explanatory drawing of. FIG. 13 is an explanatory diagram when the data rotation unit 11 includes a dedicated work memory 53 for each of the first rotation processing unit 51 and the second rotation processing unit 52. FIG. 14 is an explanatory diagram in the case where the data rotation unit 11 includes only one work memory 53, and the work memory 53 is shared by the first rotation processing unit 51 and the second rotation processing unit 52 by time division use. is there. In FIG. 15, the data rotation unit 11 includes only one work memory 53, the work memory 53 is shared by the first rotation processing unit 51 and the second rotation processing unit 52 by time division use, and the first rotation is performed. It is explanatory drawing when the ratio of the usage time of the work memory 53 is not equal by the process part 51 and the 2nd rotation process part 52, and is deviating to one side.

図12〜図15に示すデータ回転部11の動作において、第1回転処理部51は、第1前処理部12による第1前処理と第1後処理部13による第1後処理との間において回転処理を行い、第2回転処理部52は、第2前処理部14による第2前処理と第2後処理部15による第2後処理との間において回転処理を行っている。   In the operation of the data rotation unit 11 shown in FIGS. 12 to 15, the first rotation processing unit 51 is between the first preprocessing by the first preprocessing unit 12 and the first postprocessing by the first postprocessing unit 13. The rotation processing is performed, and the second rotation processing unit 52 performs the rotation processing between the second preprocessing by the second preprocessing unit 14 and the second postprocessing by the second postprocessing unit 15.

図12の動作では、1個のみのワークメモリ53を第1回転処理部51と第2回転処理部52とで共用しないので、例えば1頁分の画像データについての第1前処理部12による第1前処理(第1前)、第1回転処理部51による回転処理(回転)および第1後処理部13による第1後処理(第1後)が完了した後、例えば1頁分の画像データについての第2前処理部14による第2前処理(第2前)、第2回転処理部52による回転処理(回転)および第2後処理部15による第2後処理(第2後)が行われる。したがって、上記のように、単にワークメモリ53の数を減らした構成では、画像処理部5の処理速度の低下を来たす。   In the operation of FIG. 12, since only one work memory 53 is not shared by the first rotation processing unit 51 and the second rotation processing unit 52, for example, the first preprocessing unit 12 performs image data for one page by the first preprocessing unit 12. One pre-processing (first pre-), rotation processing (rotation) by the first rotation processing unit 51, and first post-processing (first post-processing) by the first post-processing unit 13 are completed, for example, image data for one page Second pre-processing (second pre-) by the second pre-processing unit 14, rotation processing (rotation) by the second rotation processing unit 52, and second post-processing (second post-) by the second post-processing unit 15 are performed. Is called. Therefore, as described above, the configuration in which the number of work memories 53 is simply reduced causes the processing speed of the image processing unit 5 to decrease.

図13の動作では、第1回転処理部51と第2回転処理部52とがそれぞれ専用のワークメモリ53を使用して回転処理を行うことにより、第1前処理部12、第1回転処理部51および第1後処理部13による処理と、第2前処理部14、第2回転処理部52および第2後処理部15による処理とを並行して行うことができる。したがって、画像処理部5では所望の処理速度を維持することができる。しかしながら、第1回転処理部51と第2回転処理部52とにそれぞれ専用のワークメモリ53を備えている分、ワークメモリ53の数が多くなり、コストアップを招来する。   In the operation of FIG. 13, the first rotation processing unit 51 and the second rotation processing unit 52 perform rotation processing using the dedicated work memory 53, respectively, whereby the first preprocessing unit 12 and the first rotation processing unit. 51 and the processing by the first post-processing unit 13 and the processing by the second pre-processing unit 14, the second rotation processing unit 52, and the second post-processing unit 15 can be performed in parallel. Therefore, the image processing unit 5 can maintain a desired processing speed. However, since the first rotation processing unit 51 and the second rotation processing unit 52 are each provided with the dedicated work memory 53, the number of work memories 53 increases, resulting in an increase in cost.

図14の動作では、第1回転処理部51と第2回転処理部52が1個のワークメモリ53を時分割使用する。具体的には、図14に示すように、第1回転処理部51は、第1前処理部12にて処理されたデータブロックを回転処理し、第1後処理部13に渡す。第2回転処理部52は、第1回転処理部51による回転処理が終了すると、第2前処理部14にて処理されたデータブロックを回転処理し、第2後処理部15に渡す。   In the operation of FIG. 14, the first rotation processing unit 51 and the second rotation processing unit 52 use one work memory 53 in a time-sharing manner. Specifically, as shown in FIG. 14, the first rotation processing unit 51 rotates the data block processed by the first preprocessing unit 12 and passes it to the first post-processing unit 13. When the rotation processing by the first rotation processing unit 51 is completed, the second rotation processing unit 52 rotates the data block processed by the second preprocessing unit 14 and passes it to the second post-processing unit 15.

例えば、第1前処理部12は、4個分のデータブロックを連続して処理し、第1回転処理部51はそれら4個のデータブロックを順次回転処理する。第1回転処理部51での処理時間が第1回転処理部51での処理時間よりも短くなっているのは、データブロックの回転処理の方が第1回転処理部51での処理、例えばフィルタ処理よりも短時間で完了するからである。   For example, the first preprocessing unit 12 sequentially processes four data blocks, and the first rotation processing unit 51 sequentially rotates the four data blocks. The processing time in the first rotation processing unit 51 is shorter than the processing time in the first rotation processing unit 51. The data block rotation processing is performed in the first rotation processing unit 51, for example, a filter. This is because the process is completed in a shorter time than the processing.

上記の動作では、第1前処理部12による処理と、第2前処理部14による処理とを並行して行うことができる。したがって、画像処理部5では所望の処理速度を維持しながら、ワークメモリ53の減少による回路規模の縮小とコストダウンとが可能となる。   In the above operation, the processing by the first preprocessing unit 12 and the processing by the second preprocessing unit 14 can be performed in parallel. Therefore, the image processing unit 5 can reduce the circuit scale and the cost by reducing the work memory 53 while maintaining a desired processing speed.

図15の動作では、第1回転処理部51と第2回転処理部52とが1個のワークメモリ53を時分割使用する。この点は、図14の動作と同様である。但し、第1回転処理部51と第2回転処理部52とのワークメモリ53の使用時間の割合は、同一ではなく一方に偏重している。これは次の理由による。   In the operation of FIG. 15, the first rotation processing unit 51 and the second rotation processing unit 52 use one work memory 53 in a time-sharing manner. This is the same as the operation of FIG. However, the ratio of the usage time of the work memory 53 between the first rotation processing unit 51 and the second rotation processing unit 52 is not the same but is biased to one side. This is due to the following reason.

デジタル複写機では、処理する画像データのフォーマットに応じた処理速度が求められる。すなわち、デジタル複写機では、例えば、モノクロ画像の複写速度としてカラー画像の複写速度の3倍程度が求められ、通常そのような仕様となっている。そこで、そのような仕様に合せて、ワークメモリ53の使用時間の割合を設定する。すなわち、第1前処理部12、第1回転処理部51および第1後処理部13からなる第1処理部と、第2前処理部14、第2回転処理部52および第2後処理部15からなる第2処理部とで処理する画像データのフォーマットが異なる場合、それら画像データのフォーマットに応じて第1処理部(第1回転処理部51)と第2処理部(第2回転処理部52)とによるワークメモリ53の使用時間の割合を設定する。   In a digital copying machine, a processing speed corresponding to the format of image data to be processed is required. That is, in a digital copying machine, for example, the copying speed of a monochrome image is required to be about three times the copying speed of a color image, which is usually such a specification. Therefore, the usage time ratio of the work memory 53 is set in accordance with such specifications. That is, the first preprocessing unit 12, the first rotation processing unit 51, and the first post-processing unit 13, the second pre-processing unit 14, the second rotation processing unit 52, and the second post-processing unit 15. When the format of image data to be processed is different between the second processing unit consisting of the first processing unit (first rotation processing unit 51) and the second processing unit (second rotation processing unit 52) according to the format of the image data. ) To set the ratio of the usage time of the work memory 53.

上記使用時間の割合の設定は制御部4によって行われる。この場合、制御部4は、例えば、デジタル複写機の操作パネルにおけるユーザのカラーコピーを要求する入力(例えば上記第1処理部にて処理)や、デジタル複写機に接続されているパーソナルコンピュータからのモノクロ印刷の要求(例えば上記第2処理部にて処理)に基づいて上記設定を行う。また、制御部4では、この設定を計算により、あるいは予め作成されたテーブルを参照して行う。   The setting of the ratio of the usage time is performed by the control unit 4. In this case, for example, the control unit 4 receives an input requesting a color copy of the user on the operation panel of the digital copying machine (for example, processing by the first processing unit) or a personal computer connected to the digital copying machine. The above setting is performed based on a monochrome printing request (for example, processing by the second processing unit). Further, the control unit 4 performs this setting by calculation or referring to a table created in advance.

図15では、上記第1処理部(第1回転処理部51)においてRGBデータを処理し、上記第2処理部(第2回転処理部52)においてモノクロデータを処理する場合の例を示している。ここで、仮に、ワークメモリ53の使用時間が第1回転処理部51と第2回転処理部52とで均等に設定された場合、RGBデータ(24bit)はモノクロデータ(1bit)の8倍の回数であるので、第1回転処理部51によるRGBデータの処理速度は低速となる一方、第2回転処理部52によるモノクロデータの処理速度は高速となる。そこで、第1回転処理部51と第2回転処理部52とのワークメモリ53の使用時間の割合を2:1としている。   FIG. 15 shows an example in which RGB data is processed in the first processing unit (first rotation processing unit 51) and monochrome data is processed in the second processing unit (second rotation processing unit 52). . Here, if the usage time of the work memory 53 is set equally between the first rotation processing unit 51 and the second rotation processing unit 52, the RGB data (24 bits) is eight times as many times as the monochrome data (1 bit). Therefore, the RGB data processing speed by the first rotation processing unit 51 is low, while the monochrome data processing speed by the second rotation processing unit 52 is high. Therefore, the ratio of the usage time of the work memory 53 between the first rotation processing unit 51 and the second rotation processing unit 52 is set to 2: 1.

具体的には、例えばRGB(24bit)画像データを横16画素×縦16画素のブロック単位で回転する場合、ワークメモリ53としては786ByteのRAM領域が必要となる。このRAM領域を使用した場合、モノクロ(1bit)画像データについては横48画素×縦16画素の回転が可能となる。処理する画像データが例えばA4サイズ600dpiのものである場合、この画像データは横4960画素×縦7015画素である。したがって、これらRGB(24bit)画像データおよびモノクロ(1bit)画像データについては、それぞれ下記の回数処理を行うことにより、90度もしくは270度の回転処理が完了する。   Specifically, for example, when RGB (24 bit) image data is rotated in block units of 16 horizontal pixels × 16 vertical pixels, the work memory 53 requires a 786-byte RAM area. When this RAM area is used, it is possible to rotate 48 (horizontal) × 16 (vertical) pixels for monochrome (1 bit) image data. If the image data to be processed is, for example, A4 size 600 dpi, the image data is 4960 pixels wide × 7015 pixels high. Therefore, for these RGB (24 bit) image data and monochrome (1 bit) image data, the rotation processing of 90 degrees or 270 degrees is completed by performing the following number of times processing.

RGB(24bit)画像データ: 4960/16 × 7015/16 = 136,090(回)
モノクロ(1bit)画像データ: 4960/48 × 7015/16 = 17,121(回)
上記の動作では、第1前処理部12および第1回転処理部51による処理と、第2前処理部14および第2回転処理部52による処理とを並行して行うことができる。したがって、画像処理部5では所望の処理速度を維持しながら、ワークメモリ53の減少による回路規模の縮小とコストダウンとが可能となる。
RGB (24-bit) image data: 4960/16 × 7015/16 = 136,090 (times)
Monochrome (1 bit) image data: 4960/48 x 7015/16 = 17,121 (times)
In the above operation, the processing by the first preprocessing unit 12 and the first rotation processing unit 51 and the processing by the second preprocessing unit 14 and the second rotation processing unit 52 can be performed in parallel. Therefore, the image processing unit 5 can reduce the circuit scale and cost by reducing the work memory 53 while maintaining a desired processing speed.

さらに、第1回転処理部51と第2回転処理部52とで処理する画像データのデータ量が相違する場合、例えば画像データのフォーマットが相違する場合には、処理する画像データのデータ量(フォーマット)に応じて第1回転処理部51と第2回転処理部52とのワークメモリ53の使用時間の割合を設定している。したがって、第1回転処理部51と第2回転処理部52とのいずれか一方の処理が大幅に早く終了し、他方が大幅に遅く終了するといった処理時間の不均衡を生じない。すなわち、第1処理部と第2処理部とで並行して画像データの処理を行う場合において、データ量(フォーマット)が異なる種々の画像データに対して、それら画像データ同士の処理時間比の仕様に適合した処理が可能となる。   Further, when the data amount of the image data processed by the first rotation processing unit 51 and the second rotation processing unit 52 is different, for example, when the format of the image data is different, the data amount (format of the image data to be processed) ), The ratio of the usage time of the work memory 53 between the first rotation processing unit 51 and the second rotation processing unit 52 is set. Accordingly, there is no processing time imbalance such that one of the first rotation processing unit 51 and the second rotation processing unit 52 ends significantly earlier and the other ends significantly later. That is, when processing image data in parallel between the first processing unit and the second processing unit, for various image data having different data amounts (formats), the specification of the processing time ratio between the image data Processing that conforms to can be performed.

本実施の形態のデジタル複写機において、第1処理部と第2処理部とで並行して画像データの回転を含む処理を行うのは次の場合である。例えば、キャナ部1にて読み込んだ原稿の画像データを回転させて大容量メモリ3に格納する処理と、大容量メモリ3に格納されている画像データのうちの指定されたものを回転させて出力し、プリンタ部2にて印刷する処理とを並行して行う場合である。   In the digital copying machine of the present embodiment, processing including rotation of image data is performed in parallel in the first processing unit and the second processing unit in the following case. For example, the image data of the original read by the canner unit 1 is rotated and stored in the large-capacity memory 3, and the specified image data stored in the large-capacity memory 3 is rotated and output. In this case, the printer unit 2 performs printing in parallel.

また、プリンタ部2にて画像データを印刷する場合には、上記のように、大容量メモリ3から読み出した画像データを印刷する場合の他、図16に示すように、デジタル複写機61にネットワーク63を介して接続された複数の外部装置、例えばパーソナルコンピュータ(パソコン)62から受信した画像データを印刷する場合がある。   When the printer unit 2 prints image data, as described above, in addition to printing the image data read from the large-capacity memory 3, as shown in FIG. In some cases, image data received from a plurality of external devices connected via the H.63, for example, a personal computer (personal computer) 62 is printed.

また、図16に示した構成では、パソコン62から受信した画像データを第1回転処理部51もしくは第2回転処理部52にて回転処理し、大容量メモリ3に格納する処理も可能である。   In the configuration shown in FIG. 16, the image data received from the personal computer 62 can be rotated by the first rotation processing unit 51 or the second rotation processing unit 52 and stored in the large-capacity memory 3.

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

本発明の実施の形態における画像処理装置としての、画像データの回転処理機能を備えたデジタル複写機の概略構成を示すブロック図である。1 is a block diagram showing a schematic configuration of a digital copying machine having an image data rotation processing function as an image processing apparatus according to an embodiment of the present invention. 図1に示した画像処理部の構成を詳細に示すブロック図である。FIG. 2 is a block diagram illustrating in detail a configuration of an image processing unit illustrated in FIG. 1. 図2に示したデータ回転部の構成を詳細に示すブロック図である。FIG. 3 is a block diagram illustrating in detail a configuration of a data rotation unit illustrated in FIG. 2. 図1に示したデータ回転部での画像データの回転処理の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the rotation process of the image data in the data rotation part shown in FIG. 図4に示した回転処理をワークメモリ上での処理を含めて詳細に示す説明図である。It is explanatory drawing which shows in detail the rotation process shown in FIG. 4 including the process on a work memory. 図6(a)は、図5に示したワークメモリを分割せずに使用する場合のワークメモリへの書込み処理とワークメモリからの読出し処理とを示す説明図、図6(b)はワークメモリを分割して使用する場合のワークメモリへの書込み処理とワークメモリからの読出し処理とを示す説明図である。6A is an explanatory diagram showing a writing process to the work memory and a reading process from the work memory when the work memory shown in FIG. 5 is used without being divided, and FIG. 6B is a work memory. It is explanatory drawing which shows the write-in process to the work memory in the case of using and dividing, and the read-out process from a work memory. 図7(a)は処理する画像データがRGB(24bit)bitデータである場合の図2に示したワークメモリへの書込み処理を示す説明図、図7(b)は処理する画像データがK(4bit)データである場合の同ワークメモリへの書込み処理を示す説明図、図7(c)は処理する画像データがK(1bit)データである場合の同ワークメモリへの書込み処理を示す説明図である。FIG. 7A is an explanatory diagram showing the writing process to the work memory shown in FIG. 2 when the image data to be processed is RGB (24 bit) bit data, and FIG. FIG. 7C is an explanatory diagram showing the writing process to the work memory when the image data to be processed is K (1 bit) data. It is. 図2に示したワークメモリが2048word×32bit×4本の構成である場合において、ワークメモリに格納可能な画像フォーマットごとの画素数を示す説明図である。FIG. 3 is an explanatory diagram showing the number of pixels for each image format that can be stored in the work memory when the work memory shown in FIG. 2 has a configuration of 2048 words × 32 bits × 4. A4サイズ600dpiにおける画像フォーマットごとのデータサイズ(データ量)を示す説明図である。It is explanatory drawing which shows the data size (data amount) for every image format in A4 size 600dpi. 図2に示した第1回転処理部および第2回転処理部によるワークメモリの共有動作の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the sharing operation | work of the work memory by the 1st rotation process part shown in FIG. 2, and a 2nd rotation process part. 1データブロックの画像データを回転処理する場合に必要な画像フォーマットごとの図2に示したワークメモリの使用権をワークメモリの連続取得回数として示す説明図である。It is explanatory drawing which shows the use right of the work memory shown in FIG. 2 for every image format required when image data of 1 data block is rotated as the frequency | count of continuous acquisition of a work memory. 図2に示したデータ回転部において、1個のみのワークメモリを第1回転処理部と第2回転処理部が共用し、仮に時分割使用しなかった場合のデータ回転部の動作を示す説明図である。In the data rotation unit shown in FIG. 2, only one work memory is shared by the first rotation processing unit and the second rotation processing unit, and the operation of the data rotation unit when it is not used in a time-sharing manner is explained. It is. 図2に示したデータ回転部において、データ回転部が仮に第1回転処理部と第2回転処理部とに専用のワークメモリを備えている場合のデータ回転部の動作を示す説明図である。FIG. 5 is an explanatory diagram showing an operation of the data rotation unit in the case where the data rotation unit shown in FIG. 2 includes a dedicated work memory in the first rotation processing unit and the second rotation processing unit. 図2に示したデータ回転部において、1個のみのワークメモリを第1回転処理部と第2回転処理部が時分割使用により共用する場合のデータ回転部の動作を示す説明図である。FIG. 3 is an explanatory diagram showing an operation of the data rotation unit when only one work memory is shared by the first rotation processing unit and the second rotation processing unit by time division use in the data rotation unit shown in FIG. 2. 図2に示したデータ回転部において、1個のみのワークメモリを第1回転処理部と第2回転処理部とが時分割使用により共用し、かつ第1回転処理部と第2回転処理部とでワークメモリの使用時間の割合が均等ではなく、一方に偏重している場合のデータ回転部の動作を示す説明図である。In the data rotation unit shown in FIG. 2, only one work memory is shared by the first rotation processing unit and the second rotation processing unit by time division use, and the first rotation processing unit and the second rotation processing unit FIG. 5 is an explanatory diagram showing the operation of the data rotation unit when the ratio of the usage time of the work memory is not uniform and is biased to one side. 本実施の形態の画像処理装置としてのデジタル複写機を備えたシステムを示す概略のブロック図である。1 is a schematic block diagram illustrating a system including a digital copying machine as an image processing apparatus according to an embodiment. 従来のデジタル複写機による画像データを90度回転させる場合の回転処理の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the rotation process in the case of rotating the image data by the conventional digital copying machine 90 degree | times. 従来のデジタル複写機における、画像データの回転処理を行うための構成を示す概略のブロック図である。FIG. 10 is a schematic block diagram showing a configuration for performing image data rotation processing in a conventional digital copying machine. 図18に示した画像処理部の構成を詳細に示すブロック図である。It is a block diagram which shows the structure of the image processing part shown in FIG. 18 in detail. 図19に示した第1データ回転部および第2データ回転部の構成を詳細に示すブロック図である。FIG. 20 is a block diagram illustrating in detail the configuration of a first data rotation unit and a second data rotation unit illustrated in FIG. 19.

符号の説明Explanation of symbols

1 スキャナ部(原稿画像読取り手段)
2 プリンタ部(印刷手段)
3 大容量メモリ(画像データ格納用メモリ)
4 制御部(時分割使用制御部)
5 画像処理部
11 データ回転部
12 第1前処理部
13 第1後処理部
14 第2前処理部
15 第2後処理部
16 バス調停部(時分割使用制御部)
51 第1回転処理部
52 第2回転処理部
53 ワークメモリ(回転用画像メモリ)
1 Scanner section (original image reading means)
2 Printer section (printing means)
3 Large capacity memory (image data storage memory)
4 control unit (time division use control unit)
5 Image processing unit 11 Data rotation unit 12 First pre-processing unit 13 First post-processing unit 14 Second pre-processing unit 15 Second post-processing unit 16 Bus arbitration unit (time division use control unit)
51 First Rotation Processing Unit 52 Second Rotation Processing Unit 53 Work Memory (Rotation Image Memory)

Claims (10)

回転用画像メモリと、
同一の前記回転用画像メモリを使用し、前記回転用画像メモリへの画像データの書込み順序に対して前記回転用画像メモリからの画像データの読出し順序を変更することにより前記画像データを回転処理し、この回転処理を前記画像データを複数のブロックに分割して行う第1および第2の回転処理部と、
前記回転処理において前記回転用画像メモリを前記第1の回転処理部と前記第2の回転処理部とにより時分割使用させる時分割使用制御部とを備えていることを特徴とする画像処理装置。
An image memory for rotation,
Using the same image memory for rotation, the image data is rotated by changing the reading order of the image data from the image memory for rotation with respect to the order of writing the image data to the image memory for rotation. The first and second rotation processing units for performing the rotation processing by dividing the image data into a plurality of blocks;
An image processing apparatus, comprising: a time-division use control unit that causes the rotation image memory to be used in a time-sharing manner by the first rotation processing unit and the second rotation processing unit in the rotation process.
前記時分割使用制御部は、前記第1の回転処理部が回転処理する第1の画像データのデータ量と前記第2の回転処理部が回転処理する第2の画像データのデータ量とに応じて、前記第1回転処理部と前記第2の回転処理部との前記回転用画像メモリの時分割使用の割合を設定することを特徴とする請求項1に記載の画像処理装置。   The time-sharing use control unit is responsive to a data amount of the first image data rotated by the first rotation processing unit and a data amount of the second image data rotated by the second rotation processing unit. The image processing apparatus according to claim 1, wherein a ratio of time division use of the image memory for rotation between the first rotation processing unit and the second rotation processing unit is set. 前記第1の画像データと前記第2の画像データとのいずれか一方がカラーの画像データであり、他方がモノクロの画像データである場合に、前記時分割使用制御部は、前記第1の回転処理部と第2の回転処理部のうち、カラーの画像データを処理する回転処理部による前記回転用画像メモリの時分割使用の割合をモノクロの画像データを処理する回転処理部による前記回転用画像メモリの時分割使用の割合よりも大きくすることを特徴とする請求項2に記載の画像処理装置。   When one of the first image data and the second image data is color image data and the other is monochrome image data, the time-division use control unit performs the first rotation. Of the processing unit and the second rotation processing unit, the rotation image by the rotation processing unit that processes monochrome image data is the time-division use ratio of the image memory for rotation by the rotation processing unit that processes color image data. The image processing apparatus according to claim 2, wherein the image processing apparatus is larger than a ratio of time division use of the memory. 前記第1の画像データと前記第2の画像データとがデータ量が同じカラーの画像データもしくはデータ量が同じモノクロの画像データである場合に、前記時分割使用制御部は、前記第1の回転処理部と第2の回転処理部とによる前記回転用画像メモリの時分割使用の割合を均等にすることを特徴とする請求項2に記載の画像処理装置。   When the first image data and the second image data are color image data having the same data amount or monochrome image data having the same data amount, the time-division use control unit is configured to perform the first rotation. The image processing apparatus according to claim 2, wherein a ratio of time division use of the image memory for rotation by the processing unit and the second rotation processing unit is made equal. 前記第1の画像データと前記第2の画像データとのいずれか一方がRGB信号形式のカラーの画像データであり、他方がCMYK信号形式のカラーの画像データであることを特徴とする請求項2に記載の画像処理装置。   3. One of the first image data and the second image data is color image data in RGB signal format, and the other is color image data in CMYK signal format. An image processing apparatus according to 1. 原稿の画像を読み取って画像データを取得する原稿画像読取り手段とデータの送受信が可能であり、
画像データ格納用メモリを備え、
前記第1の回転処理部は、前記原稿画像読取り手段から入力された画像データを回転処理し、回転処理後の画像データを前記画像データ格納用メモリに格納する一方、前記第2の回転処理部は、前記画像データ格納用メモリから読み出した画像データを回転処理した後、前記画像データ格納用メモリに格納することを特徴とする請求項1に記載の画像処理装置。
Data can be transmitted / received to / from a document image reading unit that reads an image of a document and acquires image data,
It has a memory for storing image data,
The first rotation processing unit rotates the image data input from the document image reading unit and stores the image data after the rotation processing in the image data storage memory, while the second rotation processing unit The image processing apparatus according to claim 1, wherein the image data read from the image data storage memory is rotated and then stored in the image data storage memory.
画像データに基づいて印刷を行う印刷手段とデータの送受信が可能であり、
前記第2の回転処理部は、前記印刷手段の印刷動作に応じて前記回転処理を行うことを特徴とする請求項6に記載の画像処理装置。
Data can be sent to and received from a printing means that performs printing based on image data.
The image processing apparatus according to claim 6, wherein the second rotation processing unit performs the rotation processing according to a printing operation of the printing unit.
請求項6に記載の前記原稿画像読取り手段および前記画像処理装置を備えていることを特徴とする画像読取り装置。   An image reading apparatus comprising the original image reading means and the image processing apparatus according to claim 6. 請求項6に記載の前記原稿画像読取り手段および前記画像処理装置、並びに画像データに基づいて印刷を行う印刷手段を備え、
前記第2の回転処理部は、前記印刷手段の印刷動作に応じて前記回転処理を行うことを特徴とする画像形成装置。
The document image reading means and the image processing apparatus according to claim 6, and printing means for performing printing based on image data,
The image forming apparatus, wherein the second rotation processing unit performs the rotation processing in accordance with a printing operation of the printing unit.
同一の回転用画像メモリを使用し、前記回転用画像メモリへの画像データの書込み順序に対して前記回転用画像メモリからの画像データの読出し順序を変更することにより前記画像データを回転処理し、この回転処理を前記画像データを複数のブロックに分割して行う第1および第2の回転処理工程を有し、
前記回転処理において前記回転用画像メモリを前記第1の回転処理工程と前記第2の回転処理工程とで時分割使用することを特徴とする画像処理方法。
Using the same image memory for rotation, rotating the image data by changing the reading order of the image data from the image memory for rotation relative to the order of writing the image data to the image memory for rotation, Having first and second rotation processing steps for performing the rotation processing by dividing the image data into a plurality of blocks;
An image processing method characterized in that in the rotation processing, the image memory for rotation is used in a time division manner in the first rotation processing step and the second rotation processing step.
JP2007124426A 2007-05-09 2007-05-09 Image processing apparatus, image reading apparatus, image forming apparatus, and image processing method Pending JP2008282135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007124426A JP2008282135A (en) 2007-05-09 2007-05-09 Image processing apparatus, image reading apparatus, image forming apparatus, and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007124426A JP2008282135A (en) 2007-05-09 2007-05-09 Image processing apparatus, image reading apparatus, image forming apparatus, and image processing method

Publications (1)

Publication Number Publication Date
JP2008282135A true JP2008282135A (en) 2008-11-20

Family

ID=40142912

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007124426A Pending JP2008282135A (en) 2007-05-09 2007-05-09 Image processing apparatus, image reading apparatus, image forming apparatus, and image processing method

Country Status (1)

Country Link
JP (1) JP2008282135A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012226463A (en) * 2011-04-18 2012-11-15 Kyocera Document Solutions Inc Image rotation device and image formation device
JP2016058947A (en) * 2014-09-11 2016-04-21 株式会社ソシオネクスト Image processing apparatus and image processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012226463A (en) * 2011-04-18 2012-11-15 Kyocera Document Solutions Inc Image rotation device and image formation device
JP2016058947A (en) * 2014-09-11 2016-04-21 株式会社ソシオネクスト Image processing apparatus and image processing method

Similar Documents

Publication Publication Date Title
JP2004048372A (en) Image processor, image input/output apparatus, scaling method, and memory control method
JP3161031B2 (en) Image processing device
JP7073634B2 (en) Electronic devices and programs
JP2008282135A (en) Image processing apparatus, image reading apparatus, image forming apparatus, and image processing method
JP6988456B2 (en) Image processing equipment and programs
US6791701B2 (en) Image forming apparatus having copy mode and printer mode
JP2015084507A (en) Image processing apparatus, integrated circuit, and image forming apparatus
US9667531B2 (en) Image processing apparatus and control method
US6980701B1 (en) Image processing method and apparatus capable of rotating and reversing an input image
JPH10208031A (en) Image processor
JP5186432B2 (en) Image processing device
JP6833491B2 (en) Information processing device
JP2004222199A (en) Image processor
US20080112011A1 (en) Output processing apparatus and data structure for executing its processing
JP2020104337A (en) Image processing device, control method of image processing device, and program
JPH11348358A (en) Image formation apparatus
JP3912372B2 (en) Color image processing device
JP2007306445A (en) Image data converter
JP2018118477A (en) Image processing device, control method and program of the same
JPH06284282A (en) Image forming device
JP2010141488A (en) Image processing controller, and printing device
JP2005327044A (en) Image processor and image processing method
JP4316476B2 (en) Image processing apparatus and image forming apparatus
JP5924104B2 (en) Image processing apparatus and image forming apparatus
JP2001047677A (en) Printer control apparatus