JP4845826B2 - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP4845826B2
JP4845826B2 JP2007194694A JP2007194694A JP4845826B2 JP 4845826 B2 JP4845826 B2 JP 4845826B2 JP 2007194694 A JP2007194694 A JP 2007194694A JP 2007194694 A JP2007194694 A JP 2007194694A JP 4845826 B2 JP4845826 B2 JP 4845826B2
Authority
JP
Japan
Prior art keywords
image processing
side buffer
encoded data
variable
write
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
JP2007194694A
Other languages
Japanese (ja)
Other versions
JP2009033428A (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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2007194694A priority Critical patent/JP4845826B2/en
Publication of JP2009033428A publication Critical patent/JP2009033428A/en
Application granted granted Critical
Publication of JP4845826B2 publication Critical patent/JP4845826B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Description

本発明は、画像データを可変長符号化してメモリに記憶し、記憶された可変長符号化データを読み出し、復号化して出力する画像処理装置及び画像処理方法に関し、詳細には、ページ単位の画像データの符号化開始から復号化終了までの時間を短縮することのできる画像処理装置及び画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method for variable-length encoding image data, storing the data in a memory, reading out the decoded variable-length encoded data, and decoding and outputting the data. The present invention relates to an image processing apparatus and an image processing method capable of reducing the time from the start of data encoding to the end of decoding.

ファクシミリ機能、プリンタ機能、スキャナ機能、及び複写機能を備えたマルチファンクションプリンタやデジタル複合機などの画像形成装置においては、高速化、多機能化、高画質化などを達成するため、入力された画像データを一旦画像メモリ(フレームメモリ)に蓄積し、印刷タイミングの調整、画像の加工・編集などができるように構成されている。   In image forming apparatuses such as multifunction printers and digital multi-function peripherals equipped with facsimile functions, printer functions, scanner functions, and copying functions, input images are required to achieve higher speed, more functions, higher image quality, etc. Data is temporarily stored in an image memory (frame memory), and printing timing adjustment, image processing / editing, and the like can be performed.

このような画像形成装置において、画像の読取から印刷までの速度を高速化するとともにコストを低減するためには、画像メモリを効率的に使用することが必要である。コストを抑えるためにはメモリ容量を低減することが考えられるが、メモリ容量を低減すると、一時に蓄積可能な画素データ量が少なくなるため高速印刷が困難になる。そこで、一般に画像データを符号化してデータ量を削減(圧縮)した後にメモリに格納している。例えば特許文献1に記載された画像処理装置では、スキャナから入力された画像データを符号化(圧縮)して、画像メモリに蓄積し、画像メモリに蓄積された符号化データを復号化(伸張)してプロッタへ出力する処理フローがとられている。   In such an image forming apparatus, in order to increase the speed from image reading to printing and reduce the cost, it is necessary to use the image memory efficiently. In order to reduce the cost, it is conceivable to reduce the memory capacity. However, if the memory capacity is reduced, the amount of pixel data that can be accumulated at one time is reduced, and high-speed printing becomes difficult. Therefore, generally, image data is encoded and the amount of data is reduced (compressed) and then stored in a memory. For example, in the image processing apparatus described in Patent Document 1, image data input from a scanner is encoded (compressed), stored in an image memory, and encoded data stored in the image memory is decoded (expanded). Then, a processing flow for outputting to the plotter is taken.

ここで、画像メモリとして、一般的なSDRAM(Synchronous DRAM)、DDR(Double Data Rate)メモリ等を想定した場合、DMA(Direct Memory Access)コントローラで画像メモリへの符号化データの書込(メモリライト)と、画像メモリからの蓄積された符号化データの読出(メモリリード)が行われる。このDMAコントローラは一般にバッファメモリを設けることで、画像データの符号化、符号化データの画像メモリに対する書込、読出、読み出された符号化データの復号化のタイミングを調整している。   Here, when a general SDRAM (Synchronous DRAM), DDR (Double Data Rate) memory, or the like is assumed as an image memory, writing of encoded data to the image memory (memory write) is performed by a DMA (Direct Memory Access) controller. ) And reading of the stored encoded data from the image memory (memory read) is performed. In general, this DMA controller is provided with a buffer memory to adjust the timing of encoding of image data, writing of encoded data to the image memory, reading of the encoded data, and decoding of the read encoded data.

ところで、ファーストコピータイム(スキャナから原稿画像の読み取りを開始し、コピー画像の印刷が完了するまでの時間)を高速化するためには、メモリライトされた符号化データを、すぐにメモリリードして復号化処理にまわすことが必要となる。   By the way, in order to speed up the first copy time (the time from the start of reading the original image from the scanner to the completion of the copy image printing), the encoded data written in the memory is immediately read from the memory. It is necessary to use the decryption process.

ここで、所定画素数からなるブロックを符号長が一定の固定長符号に圧縮する固定長圧縮方式で画像データを符号化した場合は、原稿1ページ中の所定の画像ブロックに対する符号化データのサイズが常に一定であるために、書込側では、符号化データがバッファメモリに所定量蓄積されたとき、それを読み出して画像メモリに書き込み、読出側では、画像メモリに蓄積されている符号化データを所定量読み出してバッファメモリに書き込み、それを読み出して復号化処理にまわすことができる。   Here, when image data is encoded by a fixed-length compression method in which a block having a predetermined number of pixels is compressed into a fixed-length code having a fixed code length, the size of the encoded data for the predetermined image block in one page of the document Is always constant, on the writing side, when a predetermined amount of encoded data is stored in the buffer memory, it is read out and written to the image memory, and on the reading side, the encoded data stored in the image memory is read Can be read out and written to the buffer memory, read out and sent to the decoding process.

ところが、JPEG(Joint Photographic Experts Group)形式のような可変長符号化方式では、入力される画像によって、データ圧縮率が大きく変動し、べた画像のような変化の少ない画像を符号化した場合、非常に圧縮率が高くなることから、生成される符号量が非常に少なくなるため、画像メモリに対する書込(メモリライト)がなかなか行われないという問題がある。また、このような状況で、復号化処理側のメモリリードを一定のレートで実行していくと、メモリリードがメモリライトを追い越してしまうおそれがある。   However, with variable-length coding schemes such as the JPEG (Joint Photographic Experts Group) format, the data compression rate varies greatly depending on the input image, and when an image with little change such as a solid image is encoded, In addition, since the compression rate is high, the amount of generated code is extremely small, and there is a problem that writing (memory write) to the image memory is not easily performed. In such a situation, if the memory read on the decoding process side is executed at a constant rate, the memory read may overtake the memory write.

そのため、可変長符号化方式を採用する場合は、1ページの画像全体の符号化完了し、画像メモリに全て書き込んでから、メモリリードを開始し、復号化処理を実行することになる。この結果、図4Aに示すように、ファーストコピータイム301が長くなってしまうという問題がある。   For this reason, when the variable-length encoding method is adopted, encoding of the entire image of one page is completed, and all the data is written in the image memory. Then, memory read is started and decoding processing is executed. As a result, there is a problem that the first copy time 301 becomes long as shown in FIG. 4A.

特開2001−211329号公報JP 2001-212329 A

本発明は、このような問題を解決するためになされたもので、その目的は、画像データを可変長符号化してメモリに記憶し、記憶された符号化データを読み出して復号化するときに、ページ単位の画像データの符号化開始から復号化終了までの時間を短縮できるようにすることである。   The present invention has been made to solve such a problem, and its purpose is to perform variable-length encoding of image data and store it in a memory, and when reading and decoding the stored encoded data, It is to be able to shorten the time from the start of encoding image data in units of pages to the end of decoding.

請求項1の発明は、画像データを可変長符号化する符号化手段と、該符号化手段から出力された可変長符号化データを一時的に蓄積する書込側バッファ手段と、該書込側バッファ手段から読み出された可変長符号化データを蓄積する記憶手段と、該記憶手段から読み出された可変長符号化データを一時的に蓄積する読出側バッファ手段と、該読出側バッファ手段から読み出された可変長符号化データを復号化する復号化手段と、前記書込側バッファ手段に蓄積された可変長符号化データを読み出し、前記記憶手段へ転送する書込制御手段とを有する画像処理装置であって、前記書込制御手段は、前記書込側バッファ手段の蓄積量が第1の所定量に達したとき又は前記第1の所定量に達する前に書込開始から所定時間経過したときのいずれか早い方のタイミングで転送することを特徴とする画像処理装置である。
請求項2の発明は、請求項1記載の画像処理装置において、前記記憶手段に蓄積された可変長符号化データを読み出し、前記読出側バッファ手段へ転送する読出制御手段と、前記書込制御手段が可変長符号化データを前記記憶手段へ転送したことを前記読出制御手段に通知する転送通知手段とを有し、前記読出制御手段は前記転送通知手段からの通知に応じて転送を行うことを特徴とする。
請求項3の発明は、請求項1記載の画像処理装置において、前記書込制御手段は、前記所定時間経過したとき、前記書込側バッファ手段に前記第1の所定量より少ない第2の所定量の可変長符号化データが蓄積されていなかった場合、蓄積されるまで前記転送を行うタイミングを遅延させることを特徴とする。
請求項4の発明は、請求項3記載の画像処理装置において、前記第2の所定量は、前記書込側バッファ手段と前記記憶手段とを接続する信号線のビット幅の整数倍であることを特徴とする。
請求項5の発明は、画像データを可変長符号化データに変換する第1の工程と、該可変長符号化データを書込側バッファ手段に蓄積する第2の工程と、該書込側バッフア手段に蓄積された可変長符号化データを読み出して記憶手段に記憶する第3の工程と、該記憶された可変長符号化データを読み出して読出側バッファ手段に蓄積する第4の工程と、該読出側バッファ手段に蓄積された可変長符号化データを読み出して画像データに復号化する第5の工程とを有する画像処理方法であって、前記第2の工程で書込側バッファ手段の蓄積量が第1の所定量に達したとき又は前記第1の所定量に達する前に蓄積開始から所定時間経過したときのいずれか早い方のタイミングで、前記第3の工程を実行することを特徴とする画像処理方法である。
請求項6の発明は、請求項5記載の画像処理方法において、前記第3の工程の実行状況を監視する第6の工程を有し、該第6の工程の監視結果に基づいて、前記第4の工程を実行することを特徴とする。
請求項7の発明は、請求項5記載の画像処理方法において、前記第2の工程で所定時間経過したときに、前記書込側バッファ手段の蓄積量が前記第1の所定量より少ない第2の所定量に達していなかった場合に、該第2の所定量に達するまで、第3の工程を実行するタイミングを遅延させる工程を有することを特徴とする。
According to the first aspect of the present invention, there is provided encoding means for variable-length encoding image data, write-side buffer means for temporarily storing variable-length encoded data output from the encoding means, and the writing side From the storage means for accumulating the variable length encoded data read from the buffer means, the read side buffer means for temporarily accumulating the variable length encoded data read from the storage means, and the read side buffer means An image having decoding means for decoding the read variable-length encoded data, and write control means for reading the variable-length encoded data stored in the write buffer means and transferring it to the storage means In the processing device, the write control unit may elapse a predetermined time from the start of writing when the accumulation amount of the write side buffer unit reaches a first predetermined amount or before reaching the first predetermined amount. When any earlier An image processing apparatus characterized by transferring at square timing.
According to a second aspect of the present invention, in the image processing apparatus according to the first aspect, the read control means for reading the variable length encoded data stored in the storage means and transferring it to the read side buffer means, and the write control means Has a transfer notification means for notifying the read control means that variable length encoded data has been transferred to the storage means, and the read control means performs transfer in response to a notification from the transfer notification means. Features.
According to a third aspect of the present invention, in the image processing apparatus according to the first aspect, the writing control means causes the writing side buffer means to receive a second place less than the first predetermined amount when the predetermined time has elapsed. When the fixed amount of variable-length encoded data is not accumulated, the transfer timing is delayed until it is accumulated.
According to a fourth aspect of the present invention, in the image processing apparatus according to the third aspect, the second predetermined amount is an integral multiple of a bit width of a signal line connecting the write side buffer means and the storage means. It is characterized by.
According to a fifth aspect of the present invention, there is provided a first step of converting image data into variable length encoded data, a second step of storing the variable length encoded data in write side buffer means, and the write side buffer. A third step of reading out the variable length encoded data stored in the means and storing it in the storage means; a fourth step of reading out the stored variable length encoded data and storing it in the read side buffer means; A fifth step of reading out the variable-length encoded data stored in the reading-side buffer means and decoding it into image data, wherein the storage amount of the writing-side buffer means in the second step The third step is executed at the earlier timing when the first predetermined amount is reached or when a predetermined time has elapsed from the start of accumulation before reaching the first predetermined amount. This is an image processing method.
A sixth aspect of the present invention is the image processing method according to the fifth aspect, further comprising a sixth step of monitoring an execution status of the third step, and based on a monitoring result of the sixth step. The fourth step is performed.
According to a seventh aspect of the present invention, in the image processing method according to the fifth aspect, when the predetermined time elapses in the second step, the accumulation amount of the writing side buffer means is smaller than the first predetermined amount. If the predetermined amount is not reached, a step of delaying the timing of executing the third step until the second predetermined amount is reached is provided.

[作用]
請求項1の発明によれば、書込側バッファ手段に蓄積された可変長符号化データの蓄積量が第1の所定量に達したとき又は前記第1の所定量に達する前に書込開始から所定時間経過したときのいずれか早い方のタイミングで、書込側バッファ手段から可変長符号化データが読み出され、記憶手段に転送される。
請求項2の発明によれば、書込制御手段が可変長符号化データを記憶手段へ転送したことを読出制御手段に通知し、読出制御手段は、その通知に応じて、記憶手段に蓄積された可変長符号化データを読み出し、読出側バッファ手段へ転送する。
請求項3の発明によれば、書込側バッファ手段に蓄積された可変長符号化データの蓄積量が第1の所定量に達する前に所定時間経過したとき、書込側バッファ手段に第1の所定量より少ない第2の所定量の可変長符号化データが蓄積されていなかった場合、蓄積されたときに転送を行う。
請求項4の発明によれば、書込側バッファ手段に蓄積された可変長符号化データの蓄積量が第1の所定量に達する前に所定時間経過したとき、書込側バッファ手段に、書込側バッファ手段と記憶手段とを接続する信号線のビット幅の整数倍の可変長符号化データが蓄積されていなかった場合、蓄積されたときに転送を行う。
請求項5の発明によれば、可変長符号化データの書込側バッファ手段の蓄積の蓄積量が第1の所定量に達したとき又は第1の所定量に達する前に蓄積開始から所定時間経過したときのいずれか早い方のタイミングで、該書込側バッフア手段に蓄積された可変長符号化データを読み出して記憶手段に記憶する。
請求項6の発明によれば、書込側バッファ手段に蓄積された可変長符号化データを読み出して記憶する工程の実行状況を監視し、その監視結果に応じて、記憶された可変長符号化データを読み出して読出側バッファ手段に蓄積する。
請求項7の発明によれば、書込側バッファ手段に蓄積された可変長符号化データの蓄積量が第1の所定量に達する前に所定時間経過したとき、書込側バッファ手段に第1の所定量より少ない第2の所定量の可変長符号化データが蓄積されていなかった場合、蓄積されたときに、書込側バッファ手段から可変長符号化データを読み出して記憶手段に記憶する。
[Action]
According to the first aspect of the present invention, when the storage amount of the variable length encoded data stored in the write side buffer means reaches the first predetermined amount or before the first predetermined amount is reached, the writing is started. The variable length encoded data is read from the writing side buffer means and transferred to the storage means at the earlier timing when a predetermined time elapses from.
According to the invention of claim 2, the write control means notifies the read control means that the variable length encoded data has been transferred to the storage means, and the read control means is stored in the storage means in response to the notification. The variable length encoded data is read out and transferred to the reading side buffer means.
According to the invention of claim 3, when the predetermined amount of time has elapsed before the storage amount of the variable-length encoded data stored in the write-side buffer means reaches the first predetermined amount, the write-side buffer means receives the first If the second predetermined amount of variable-length encoded data smaller than the predetermined amount is not accumulated, transfer is performed when accumulated.
According to the fourth aspect of the present invention, when a predetermined time elapses before the storage amount of the variable length encoded data stored in the write side buffer means reaches the first predetermined amount, the write side buffer means is written to the write side buffer means. If variable length encoded data that is an integral multiple of the bit width of the signal line connecting the input buffer means and the storage means has not been accumulated, transfer is performed when accumulated.
According to the fifth aspect of the present invention, when the storage amount of the variable-length encoded data in the writing side buffer means reaches the first predetermined amount or before reaching the first predetermined amount, a predetermined time from the start of storage. The variable length encoded data stored in the writing side buffer means is read out and stored in the storage means at the earlier timing when the time has elapsed.
According to the sixth aspect of the present invention, the execution status of the step of reading and storing the variable length encoded data stored in the write side buffer means is monitored, and the stored variable length encoding is determined according to the monitoring result. Data is read and stored in the read side buffer means.
According to the seventh aspect of the present invention, when a predetermined time elapses before the storage amount of the variable length encoded data stored in the write side buffer means reaches the first predetermined amount, the write side buffer means receives the first If the second predetermined amount of variable-length encoded data smaller than the predetermined amount is not accumulated, when it is accumulated, the variable-length encoded data is read from the writing side buffer means and stored in the storage means.

本発明によれば、画像データを可変長符号化してメモリに記憶し、記憶された符号化データを読み出して復号化するときに、ページ単位の画像データの符号化開始から復号化終了までの時間を短縮することができる。   According to the present invention, when image data is variable-length encoded and stored in a memory, and when the stored encoded data is read and decoded, the time from the start of encoding image data in units of pages to the end of decoding Can be shortened.

以下、本発明の実施形態について図面を参照しながら説明する。
図1は本発明の実施形態の画像処理装置の構成を示すブロック図である。この画像処理装置は、スキャナ101と、スキャナ101からの画像データをJPEG形式で符号化するJPEG符号器102と、JPEG符号器102で符号化されたJPEG符号データをデータバス115を通してメモリ114に書き込む書込側DMAコントローラ(以下、WDMAC)104と、メモリ114に書き込まれたJPEG符号データをデータバス115を通して読み出す読出側DMAコントローラ(以下、RDMAC)108と、RDMAC108により読み出されたJPEG符号データを復号化するJPEG復号器111と、JPEG復号器111で復号化された画像データに所定の画像処理を施す画像処理部112と、画像処理を施された画像データに基づいて画像を印刷するプロッタ113と所定のタイミングで転送トリガ信号を生成し、WDMAC104に与える転送トリガ発生部103とを有する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present invention. The image processing apparatus writes a scanner 101, a JPEG encoder 102 that encodes image data from the scanner 101 in JPEG format, and JPEG code data encoded by the JPEG encoder 102 into a memory 114 through a data bus 115. A write-side DMA controller (hereinafter referred to as WDMAC) 104, a read-side DMA controller (hereinafter referred to as RDMAC) 108 that reads JPEG code data written in the memory 114 through the data bus 115, and JPEG code data read by the RDMAC 108 A JPEG decoder 111 for decoding, an image processing unit 112 for performing predetermined image processing on the image data decoded by the JPEG decoder 111, and a plotter 113 for printing an image based on the image data subjected to the image processing A transfer trigger signal generated at a predetermined timing and applied to the WDMAC 104 Having.

スキャナ101はCCDなどのイメージセンサにより原稿の画像を読み込む装置であり、100μsec単位で、1画素1バイト(8ビット)の1ライン分の画像データを出力する。   A scanner 101 is a device that reads an image of a document by an image sensor such as a CCD, and outputs image data for one line of one byte per pixel (8 bits) in units of 100 μsec.

WDMAC104は、メモリ114にメモリライトを行うためのDMAコントローラである。WDMAC104は、各々が256バイトのバッファ107a,107bからなる2段のトグルバッファ107を持っており、バッファ制御部105の制御により、一方のバッファがJPEG符号器102から入力されるJPEG符号データを蓄積しているときに、もう一方のバッファから蓄積済みのJPEG符号データが読み出され、データバス115経由でメモリ114)にパケットデータとして出力される。   The WDMAC 104 is a DMA controller for performing a memory write to the memory 114. The WDMAC 104 has a two-stage toggle buffer 107 made up of buffers 107 a and 107 b each having 256 bytes, and one buffer stores JPEG code data input from the JPEG encoder 102 under the control of the buffer control unit 105. At this time, the stored JPEG code data is read from the other buffer and output as packet data to the memory 114) via the data bus 115.

ここで、バッファ107a,107bのサイズが256バイトであることから、1パケットのデータサイズは256バイト以下になる。また、バッファ107a,107bに蓄積された256バイトのデータ読み出し時間は、JPEG符号器102からの256バイトのバッファ107a,107bへの書込時間に対して十分早くなるように、データバス115の帯域は非常に広いものとしている。それゆえ、バッファ107a,107bの書込、読出の切替制御は、JPEG符号器102からのバッファへの256バイトの書込完了をもって、バッファ制御部105が行っている。   Here, since the size of the buffers 107a and 107b is 256 bytes, the data size of one packet is 256 bytes or less. Also, the bandwidth of the data bus 115 is set so that the 256-byte data read time accumulated in the buffers 107a and 107b is sufficiently faster than the write time from the JPEG encoder 102 to the 256-byte buffers 107a and 107b. Is very wide. Therefore, the switching control of writing and reading of the buffers 107a and 107b is performed by the buffer control unit 105 upon completion of writing of 256 bytes from the JPEG encoder 102 to the buffer.

さらに、転送トリガ発生部103は、内部のタイマーカウンタをカウントアップすることでタイマー監視を行っており、バッファ制御部105に対して、バッファ107a,107bの切替がある一定期間発生しない場合(ここでは2ライン分、200μsecとする)は、バッファ107a,107bの切替タイミングを強制的に発生させるトリガ信号を出力し、タイマーカウンタを0にリセットする。また、転送トリガ発生部103は、バッファ制御部103が、バッファ107a,107bの切替を実行した信号を受け取ったら、内部のタイマーカウンタを再び0からカウントアップしていく。   Furthermore, the transfer trigger generation unit 103 performs timer monitoring by counting up an internal timer counter, and the buffer control unit 105 does not generate a certain period of time for switching the buffers 107a and 107b (here, 200 μsec for two lines) outputs a trigger signal for forcibly generating the switching timing of the buffers 107a and 107b, and resets the timer counter to zero. In addition, when the buffer control unit 103 receives a signal indicating that the buffers 107a and 107b have been switched, the transfer trigger generation unit 103 counts up the internal timer counter from 0 again.

また、バッファ制御部105は、転送トリガ発生部103から、トリガ信号を受け取った時に、JPEG符号器102からのバッファへの書込量が、パケットデータの最低単位サイズ(ここでは16バイトとする)の倍数でない場合には、次に16バイトの倍数分が蓄積されるまで、バッファ107a,107bの切替をウェイト(待機)させる機能も持っている。ここで、パケットデータの最低単位サイズを16バイトとしたことにより、データバス115、及びメモリ114のバス幅(ビット幅)が128ビットや、256ビットの場合のデータ転送中に非常に効率的なアドレス制御ができる。   Also, when the buffer control unit 105 receives a trigger signal from the transfer trigger generation unit 103, the write amount to the buffer from the JPEG encoder 102 is the minimum unit size of packet data (here 16 bytes). If it is not a multiple of, the function of waiting for the switching of the buffers 107a and 107b until the next multiple of 16 bytes is accumulated is also provided. Here, since the minimum unit size of packet data is 16 bytes, the data bus 115 and the memory 114 are very efficient during data transfer when the bus width (bit width) of the memory 114 is 128 bits or 256 bits. Address control is possible.

転送パケット監視部106は、WDMAC104のメモリ114が転送したJPEG符号化データに関するパケット情報をRDMAC108に発行する。ここで発行するパケット情報はメモリ114に転送されたパケットのデータサイズ(前述のとおり256バイト以下)である。   The transfer packet monitoring unit 106 issues packet information related to the JPEG encoded data transferred by the memory 114 of the WDMAC 104 to the RDMAC 108. The packet information issued here is the data size of the packet transferred to the memory 114 (256 bytes or less as described above).

RDMAC108は、メモリ114からメモリリードを行うためのDMAコントローラである。RDMAC108の内部は、RDMAC104同様、各々が256バイトのバッファ110a,110bからなる2段のトグルバッファ110を持っている。バッファ110a,110bの切替タイミングは、バッファ制御部109によって制御される。その際、転送パケット監視部106により発行された、WDMAC104による所定のサイズのパケットデータのメモリライトが完了したことを表すパケット情報を受け取り、その情報をもとに制御を行う。   The RDMAC 108 is a DMA controller for performing memory read from the memory 114. Like the RDMAC 104, the RDMAC 108 has a two-stage toggle buffer 110 that includes buffers 110a and 110b each having 256 bytes. The switching timing of the buffers 110a and 110b is controlled by the buffer control unit 109. At this time, packet information issued by the transfer packet monitoring unit 106 indicating that the memory write of packet data of a predetermined size by the WDMAC 104 has been completed is received, and control is performed based on the information.

トグルバッファ110から読み出されたJPEG符号データは、JPEG復号器111に転送され、JPEG復号化され、画像データに伸張される。復号化された画像データは画像処理部112により、誤差拡散処理を伴った2値化処理などを施され、プロッタ113に出力される。   The JPEG code data read from the toggle buffer 110 is transferred to the JPEG decoder 111, JPEG decoded, and decompressed to image data. The decoded image data is subjected to a binarization process accompanied by an error diffusion process by the image processing unit 112 and is output to the plotter 113.

次に図2に示すような、自然画像領域202と、べた画像領域203とから構成される画像201を読み取る場合について、本実施形態の画像処理の動作を説明する。この画像201の主走査方向のサイズは1024ピクセル、副走査方向のサイズは1500ラインである。上部800ラインは自然画像領域202であり、下部700ラインはべた画像領域203である。ここで、説明を分かり易くするために、JPEG符号器102の圧縮効率は、自然画像領域202に対しては“8”固定、べた画像領域203に対しては“85”固定とする。   Next, the image processing operation of the present embodiment will be described in the case of reading an image 201 composed of a natural image area 202 and a solid image area 203 as shown in FIG. The size of the image 201 in the main scanning direction is 1024 pixels, and the size in the sub-scanning direction is 1500 lines. The upper 800 line is the natural image area 202, and the lower 700 line is the solid image area 203. Here, for easy understanding, the compression efficiency of the JPEG encoder 102 is fixed to “8” for the natural image area 202 and fixed to “85” for the solid image area 203.

スキャナ101が画像201の読取を開始し、その画像データがJPEG符号器102へ入力される。画像201の上方向から読み取った場合、まず自然画像領域202から、符号化を行っていく。JPEG圧縮効率が8であることから、2048バイトの画像データを圧縮するたびに、256バイトのJPEG符号が生成される。ここで、スキャナ101から読み込まれる画像201の主走査方向のサイズが1024ピクセルであることから、ほぼ2ラインの画像データを処理する度に、256バイトの符号が生成される。また、スキャナ101は、1ラインのデータを100μsec毎に出力することから、200μsec単位で256バイトのJPEG符号が生成される。従って、自然画像領域202の符号化中は、WDMAC104のトグルバッファ107は、200μsec毎にバッファ107a,107bへの蓄積、読出の切替が発生している。また、WDMAC104は200μsec毎に256バイトの符号化データを1つのパケットデータとして、データバス115経由でメモリ114に書き込む。   The scanner 101 starts reading the image 201, and the image data is input to the JPEG encoder 102. When the image 201 is read from above, encoding is first performed from the natural image region 202. Since the JPEG compression efficiency is 8, a 256-byte JPEG code is generated every time 2048-byte image data is compressed. Here, since the size of the image 201 read from the scanner 101 in the main scanning direction is 1024 pixels, a code of 256 bytes is generated every time almost two lines of image data are processed. Since the scanner 101 outputs one line of data every 100 μsec, a 256-byte JPEG code is generated in units of 200 μsec. Accordingly, during encoding of the natural image area 202, the toggle buffer 107 of the WDMAC 104 is switched between accumulation and reading in the buffers 107a and 107b every 200 μsec. The WDMAC 104 writes 256 bytes of encoded data as one packet data every 200 μsec into the memory 114 via the data bus 115.

次に、スキャナ101が、800ラインの自然画像領域202の画像の読込を終え、べた画像領域203の読込を開始したとする。このとき、JPEG圧縮効率が85であることから、例えば2ライン分、2048バイトの画像データを圧縮すると、24バイトのJPEG符号が生成される。   Next, it is assumed that the scanner 101 finishes reading an image of the 800-line natural image area 202 and starts reading the solid image area 203. At this time, since the JPEG compression efficiency is 85, for example, when 2048-byte image data for two lines is compressed, a 24-byte JPEG code is generated.

従って、WDMAC104のトグルバッファ110のバッファ110a,110bサイズである256バイトが蓄積されるためには、21760バイト、即ち約21ラインの画像データ入力が必要となる。しかし、200μsecの期間バッファ110a,110bの切替が行われていない状況が発生することから、転送トリガ発生部103から、バッファ制御部105に対して、強制的にバッファ110a,110bの切替及びメモリライトを行わせるためのトリガ信号が送出される。   Accordingly, in order to store 256 bytes having the size of the buffers 110a and 110b of the toggle buffer 110 of the WDMAC 104, it is necessary to input 21760 bytes, that is, about 21 lines of image data. However, since there is a situation in which the buffers 110a and 110b are not switched for a period of 200 μsec, the transfer trigger generation unit 103 forcibly switches the buffers 110a and 110b and writes the memory to the buffer control unit 105. A trigger signal for performing the above is sent.

バッファ制御部105がトリガ信号を受けたとき、200μsec、つまり、べた画像領域203の2ライン分のデータを圧縮した状況にあり、トグルバッファ110には24バイトしか蓄積されていない。そこで、バッファ制御部は105は、次の16バイトの倍数に当たる、32バイト蓄積されるのを待ってから、バッファ切替を行う。その結果、WDMAC104からは、1パケット32バイトのJPEG符号がメモリ114に出力される。このように、転送トリガ発生部103を設けたことで、入力画像の圧縮率によらず、メモリ114に対して定期的なデータ書込が実現される。従って、図4Bにて示すように、ファーストコピータイム302は、図4Aに示す従来装置のファーストコピータイム301と比べ、大幅に短縮される。   When the buffer control unit 105 receives the trigger signal, 200 μsec, that is, two lines of data in the solid image area 203 are compressed, and the toggle buffer 110 stores only 24 bytes. Therefore, the buffer control unit 105 performs buffer switching after waiting for 32 bytes to be accumulated, which is a multiple of the next 16 bytes. As a result, the JPEG code of 32 bytes per packet is output from the WDMAC 104 to the memory 114. Thus, by providing the transfer trigger generation unit 103, periodic data writing to the memory 114 is realized regardless of the compression rate of the input image. Therefore, as shown in FIG. 4B, the first copy time 302 is significantly shortened compared to the first copy time 301 of the conventional apparatus shown in FIG. 4A.

図3は、以上説明したWDMAC104及びRDMAC109の動作の流れを示すフローチャートである。ここで、画像入力側がWDMAC104、画像出力側がRDMAC109である。   FIG. 3 is a flowchart showing a flow of operations of the WDMAC 104 and the RDMAC 109 described above. Here, the image input side is WDMAC 104 and the image output side is RDMAC 109.

この図に示すように、ステップS1でWDMAC104が動作を開始し、ステップS2で1パケット分のメモリライトを実行すると、ステップS3で転送パケット監視部106がRDMAC108に対し、パケット情報を発行する。そして、ステップS4でページが終了したと判断されるまで、ステップS2及びS3を繰り返す。   As shown in this figure, when the WDMAC 104 starts operating in step S1 and executes a memory write for one packet in step S2, the transfer packet monitoring unit 106 issues packet information to the RDMAC 108 in step S3. Steps S2 and S3 are repeated until it is determined in step S4 that the page has been completed.

一方、RDMAC108はステップS11で動作を開始しても、ステップS12でメモリリードを待機(ウェイト)する。そして、ステップS13で転送パケット監視部106からパケット情報を受け取ったと判断したとき、ステップS14で1パケット分のメモリリードを実行する。そして、ステップS15でページが終了したと判断されるまで、ステップS12〜S14を繰り返す。   On the other hand, even if the RDMAC 108 starts operating in step S11, it waits (waits) for a memory read in step S12. When it is determined in step S13 that packet information has been received from the transfer packet monitoring unit 106, memory read for one packet is executed in step S14. Steps S12 to S14 are repeated until it is determined in step S15 that the page has been completed.

このように、画像入力の開始とともに、画像出力側も起動をかけておくことが可能である。画像出力側は、画像入力側からのパケット情報の通知を受け取るまで、メモリリードを自動で待機する。つまり、ソフトウェアの制御としても、画像入力側に対して、画像出力側の起動タイミング等を制御する必要がない。   In this way, the image output side can also be activated as the image input starts. The image output side automatically waits for a memory read until it receives notification of packet information from the image input side. That is, it is not necessary to control the start timing and the like on the image output side with respect to the image input side as software control.

本発明の実施形態の画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus of embodiment of this invention. 本発明の実施形態の画像の一例を示す図である。It is a figure which shows an example of the image of embodiment of this invention. 本発明の実施形態のWDMAC及びRDMACの動作の流れを示すフローチャートである。It is a flowchart which shows the flow of operation | movement of WDMAC and RDMAC of embodiment of this invention. 従来装置及び本実施形態のファーストコピータイムを示す図である。It is a figure which shows the first copy time of a conventional apparatus and this embodiment.

符号の説明Explanation of symbols

102・・・JPEG符号器、103・・・転送トリガ発生部、104・・・WDMAC、105,109・・・バッファ制御部、106・・・転送パケット監視部、107,110・・・トグルバッファ、108・・・RDMAC、111・・・JPEG復号器、114・・・メモリ、115・・・データバス。   102: JPEG encoder, 103: Transfer trigger generation unit, 104: WDMAC, 105, 109 ... Buffer control unit, 106: Transfer packet monitoring unit, 107, 110 ... Toggle buffer 108 RDMAC 111 JPEG decoder 114 Memory 115 Data bus

Claims (7)

画像データを可変長符号化する符号化手段と、該符号化手段から出力された可変長符号化データを一時的に蓄積する書込側バッファ手段と、該書込側バッファ手段から読み出された可変長符号化データを蓄積する記憶手段と、該記憶手段から読み出された可変長符号化データを一時的に蓄積する読出側バッファ手段と、該読出側バッファ手段から読み出された可変長符号化データを復号化する復号化手段と、前記書込側バッファ手段に蓄積された可変長符号化データを読み出し、前記記憶手段へ転送する書込制御手段とを有する画像処理装置であって、
前記書込制御手段は、前記書込側バッファ手段の蓄積量が第1の所定量に達したとき又は前記第1の所定量に達する前に書込開始から所定時間経過したときのいずれか早い方のタイミングで転送することを特徴とする画像処理装置。
Coding means for variable-length coding image data, write-side buffer means for temporarily storing variable-length coded data output from the coding means, and read from the write-side buffer means Storage means for storing variable-length encoded data, read-side buffer means for temporarily storing variable-length encoded data read from the storage means, and variable-length code read from the read-side buffer means An image processing apparatus comprising: decoding means for decoding the encoded data; and write control means for reading the variable-length encoded data stored in the write-side buffer means and transferring it to the storage means,
The writing control means is earlier when the accumulation amount of the writing side buffer means reaches a first predetermined amount or when a predetermined time elapses from the start of writing before reaching the first predetermined amount. The image processing apparatus is characterized in that the data is transferred at the same timing.
請求項1記載の画像処理装置において、
前記記憶手段に蓄積された可変長符号化データを読み出し、前記読出側バッファ手段へ転送する読出制御手段と、前記書込制御手段が可変長符号化データを前記記憶手段へ転送したことを前記読出制御手段に通知する転送通知手段とを有し、前記読出制御手段は前記転送通知手段からの通知に応じて転送することを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
Read control means for reading the variable length encoded data stored in the storage means and transferring it to the read side buffer means, and the reading that the write control means has transferred the variable length encoded data to the storage means An image processing apparatus comprising: transfer notification means for notifying the control means, wherein the read control means transfers in response to a notification from the transfer notification means.
請求項1記載の画像処理装置において、
前記書込制御手段は、前記所定時間経過したとき、前記書込側バッファ手段に前記第1の所定量より少ない第2の所定量の可変長符号化データが蓄積されていなかった場合、蓄積されるまで、前記転送するタイミングを遅延させることを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
When the predetermined time has elapsed, the write control means stores the write-side buffer means if the second predetermined amount of variable-length encoded data smaller than the first predetermined amount has not been stored. The image processing apparatus is characterized in that the transfer timing is delayed until
請求項3記載の画像処理装置において、
前記第2の所定量は、前記書込側バッファ手段と前記記憶手段とを接続する信号線のビット幅の整数倍であることを特徴とする画像処理装置。
The image processing apparatus according to claim 3.
2. The image processing apparatus according to claim 1, wherein the second predetermined amount is an integral multiple of a bit width of a signal line connecting the write side buffer means and the storage means.
画像データを可変長符号化データに変換する第1の工程と、該可変長符号化データを書込側バッファ手段に蓄積する第2の工程と、該書込側バッフア手段に蓄積された可変長符号化データを読み出して記憶手段に記憶する第3の工程と、該記憶された可変長符号化データを読み出して読出側バッファ手段に蓄積する第4の工程と、該読出側バッファ手段に蓄積された可変長符号化データを読み出して画像データに復号化する第5の工程とを有する画像処理方法であって、
前記第2の工程で書込側バッファ手段の蓄積量が第1の所定量に達したとき又は前記第1の所定量に達する前に蓄積開始から所定時間経過したときのいずれか早い方のタイミングで、前記第3の工程を実行することを特徴とする画像処理方法。
A first step of converting image data into variable-length encoded data; a second step of storing the variable-length encoded data in the write-side buffer means; and a variable length stored in the write-side buffer means A third step of reading out the encoded data and storing it in the storage means, a fourth step of reading out the stored variable length encoded data and storing it in the reading side buffer means, and storing in the reading side buffer means And a fifth step of reading the variable length encoded data and decoding it into image data,
The earlier timing when the accumulation amount of the writing side buffer means reaches the first predetermined amount in the second step or when a predetermined time elapses from the start of accumulation before reaching the first predetermined amount. The image processing method is characterized in that the third step is executed.
請求項5記載の画像処理方法において、
前記第3の工程の実行状況を監視する第6の工程を有し、該第6の工程による監視結果に基づいて、前記第4の工程を実行することを特徴とする画像処理方法。
The image processing method according to claim 5.
An image processing method comprising: a sixth step for monitoring an execution status of the third step, and executing the fourth step based on a monitoring result of the sixth step.
請求項5記載の画像処理方法において、
前記第2の工程で所定時間経過したときに、前記書込側バッファ手段の蓄積量が前記第1の所定量より少ない第2の所定量に達していなかった場合に、該第2の所定量に達するまで、第3の工程を実行するタイミングを遅延させる工程を有することを特徴とする画像処理方法。
The image processing method according to claim 5.
The second predetermined amount when the accumulated amount of the write side buffer means has not reached the second predetermined amount smaller than the first predetermined amount when the predetermined time has elapsed in the second step. An image processing method comprising a step of delaying a timing of executing the third step until reaching
JP2007194694A 2007-07-26 2007-07-26 Image processing apparatus and image processing method Expired - Fee Related JP4845826B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007194694A JP4845826B2 (en) 2007-07-26 2007-07-26 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007194694A JP4845826B2 (en) 2007-07-26 2007-07-26 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2009033428A JP2009033428A (en) 2009-02-12
JP4845826B2 true JP4845826B2 (en) 2011-12-28

Family

ID=40403441

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007194694A Expired - Fee Related JP4845826B2 (en) 2007-07-26 2007-07-26 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP4845826B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5705143B2 (en) * 2012-01-26 2015-04-22 京セラドキュメントソリューションズ株式会社 Image reading device
CN110248038B (en) * 2019-06-05 2021-01-19 广东工业大学 Image transmission method and system based on WIFI

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0352384A (en) * 1989-07-20 1991-03-06 Fuji Photo Film Co Ltd Variable length coding device
JP3835272B2 (en) * 2001-12-07 2006-10-18 富士ゼロックス株式会社 Image forming apparatus

Also Published As

Publication number Publication date
JP2009033428A (en) 2009-02-12

Similar Documents

Publication Publication Date Title
JPH07105879B2 (en) Image processing device
JP2004080520A (en) Image processing apparatus, image reading apparatus and image forming apparatus
CN103795894A (en) Binary image lossless compression and decompression IP core based on FPGA and application
JP4845826B2 (en) Image processing apparatus and image processing method
JP6191394B2 (en) Data compression apparatus, program, and computer-readable recording medium
JP2007274449A (en) Double-sided image scanner
US8582168B2 (en) Image processing apparatus and processing method thereof
JP3674644B2 (en) Data generator for printing
JP4906097B2 (en) Memory interface unit and memory unit
US20090148053A1 (en) Method for transmitting image bit stream and image encoder
JP5222803B2 (en) Image processing device
JP3901869B2 (en) Memory device
JP2005198121A (en) Image processing system and image processor
JP2010088007A (en) Image forming apparatus
JP3248555B2 (en) Facsimile machine
JP3912372B2 (en) Color image processing device
JP4307435B2 (en) Image data storage device, copying machine, image forming system, and image data storage method
JP4037872B2 (en) Image forming apparatus
JP5446929B2 (en) Image processing apparatus, image processing method, image processing program, and recording medium
JP3632066B2 (en) Digital image copying system
JP2830639B2 (en) Predictive coding device
JP5705142B2 (en) Image reading device
JPH11313182A (en) Image forming device
JP2006211128A (en) Image processing system and image processing control method
JP2003169172A (en) Digital copier

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110928

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: 20111004

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: 20111011

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

Free format text: PAYMENT UNTIL: 20141021

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees