JP4667348B2 - Encoded data memory storage control device, method, and image processing device - Google Patents
Encoded data memory storage control device, method, and image processing device Download PDFInfo
- Publication number
- JP4667348B2 JP4667348B2 JP2006313033A JP2006313033A JP4667348B2 JP 4667348 B2 JP4667348 B2 JP 4667348B2 JP 2006313033 A JP2006313033 A JP 2006313033A JP 2006313033 A JP2006313033 A JP 2006313033A JP 4667348 B2 JP4667348 B2 JP 4667348B2
- Authority
- JP
- Japan
- Prior art keywords
- memory
- data
- encoded data
- encoding
- encoded
- 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.)
- Active
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Storing Facsimile Image Data (AREA)
Description
本発明は、符号化データメモリ格納制御装置、方法、及び画像処理装置に関し、より詳細には、例えばJPEG(Joint Photographic Experts Group)圧縮処理のようなブロック単位で画像データを符号化する際に用いる符号化データメモリ格納制御装置、その方法、及びその制御装置を備えた画像処理装置に関するものである。 The present invention relates to an encoded data memory storage control apparatus, method, and image processing apparatus. More specifically, the present invention is used when encoding image data in units of blocks such as JPEG (Joint Photographic Experts Group) compression processing. The present invention relates to an encoded data memory storage control device, a method thereof, and an image processing device including the control device.
ディジタル複合機では、スキャンされた画像を記憶装置に保存するために、画像データの圧縮を行い、また保存された画像データを印字するために、圧縮されたデータを伸張し、画像データを復号して印字処理を行っている。 In digital multi-function peripherals, the image data is compressed to store the scanned image in a storage device, and the compressed data is expanded and the image data is decoded to print the stored image data. Print processing.
カラー画像を圧縮する際には、JPEG規格に基づく圧縮処理が多く使用される。JPEG処理は、8×8のブロック単位での圧縮処理であり、ディジタル複合機のような走査方向に順にデータ入力される装置においては、走査方向のラインバッファを内部もしくは外部メモリ上に確保し、圧縮処理を実現する。カラー画像では、1画素の情報量も大きく、多くのメモリ領域を必要としているため、効率良くメモリを使用した処理方法が必要となる。 When compressing a color image, a compression process based on the JPEG standard is often used. JPEG processing is compression processing in units of 8 × 8 blocks, and in a device that sequentially inputs data in the scanning direction, such as a digital multifunction peripheral, a line buffer in the scanning direction is secured in an internal or external memory, Implement compression processing. In a color image, the amount of information per pixel is large and a large memory area is required. Therefore, a processing method using the memory efficiently is required.
このような要求に対し、例えば、特許文献1には、圧縮伸長処理と回転処理、拡大縮小処理を並列に処理する場合に、バッファメモリを共有することでメモリ容量の節約を図る画像処理装置が開示されている。 In response to such a request, for example, Patent Document 1 discloses an image processing apparatus that saves memory capacity by sharing a buffer memory when compression / decompression processing, rotation processing, and enlargement / reduction processing are performed in parallel. It is disclosed.
また、特許文献2には、指定した圧縮率以下にデータサイズを制御し、また、メモリ管理を容易にして、メモリ容量を節約し、1度の画像読み込みのみで符号化を行い、標準的なJPEG方式における圧縮処理速度と変わらない処理速度、画質を実現できる画像処理装置が開示されている。 Japanese Patent Application Laid-Open No. 2004-228620 controls the data size below a specified compression ratio, facilitates memory management, saves memory capacity, performs encoding only by one image reading, An image processing apparatus capable of realizing a processing speed and image quality that are the same as the compression processing speed in the JPEG method is disclosed.
さらに、特許文献3には、画像データに送信情報を付加して送信するにあたり、圧縮後に送信情報を付加するのではなく、画像データの圧縮(JPEG圧縮)前に画像データに送信情報を付加することにより、画像データの送信時における伸長・再圧縮処理を省くことで、メモリの節約及び送信処理の短縮化をなし得る画像通信装置が開示されている。
しかしながら、画像圧縮率が入力画像によって異なるため、特許文献1−3に記載の技術をはじめとする従来のメモリ節約技術では、符号化データを格納するメモリとしては、処理上最低限必要な符号化データ格納メモリ領域を画像データ格納メモリ領域とは別に同一メモリ上に確保する必要があった。代替方法としては、画像データ格納用のメモリの他に符号化データ格納用の別メモリを設けておくことが考えられるが、別途メモリ領域を必要とする点で同じである。いずれの場合でも、搭載するメモリの容量が大きくなり、必要な配置スペースやコストが大きくなってしまう。 However, since the image compression rate varies depending on the input image, in the conventional memory saving technique including the technique described in Patent Documents 1-3, as a memory for storing encoded data, the minimum encoding necessary for processing is required. It was necessary to secure the data storage memory area on the same memory separately from the image data storage memory area. As an alternative method, it is conceivable to provide a separate memory for storing encoded data in addition to the memory for storing image data, but the same is necessary in that a separate memory area is required. In either case, the capacity of the memory to be mounted increases, and the required arrangement space and cost increase.
本発明は、上述のごとき実情に鑑みてなされたものであり、ブロック単位で画像データを符号化するに際し、少なくとも読み込み対象画像データの格納メモリ領域だけで符号化データを格納することが可能な、符号化データメモリ格納制御装置、その方法、及びその制御装置を備えた画像処理装置を提供することを、その目的とする。 The present invention has been made in view of the above circumstances, and when encoding image data in units of blocks, it is possible to store encoded data only in a storage memory area of at least read target image data. It is an object of the present invention to provide an encoded data memory storage control device, a method thereof, and an image processing device including the control device.
上記の課題を解決するために、本発明の第1の技術手段は、メモリに走査順に入力された画像データを、該画像データのデータ量を超えないデータ量になるように且つ所定のブロック単位で符号化する符号化手段に対し、該符号化手段で符号化後の符号化データを前記メモリへ格納する制御を行う符号化データメモリ格納制御装置であって、前記メモリから、前記所定のブロックに含まれる画素数の自然数倍で且つ前記メモリのバースト転送単位と同じデータ量をもつ前記走査の方向に連続した前記画像データを、一度に読み出して一時的に蓄積し、前記符号化手段に渡す入力バッファと、前記符号化手段から出力された符号化データを一時的に蓄積し前記メモリに出力する出力バッファと、前記メモリから前記入力バッファへ読み出す際の読み出しアドレス及び前記出力バッファから前記メモリに書き込む際の書き込みアドレスを管理し、前記メモリに前記読み出しアドレス及び書き込みアドレスを指定したアクセス要求を行うアドレス管理部とを有し、符号化した後の符号化データを前記メモリに格納する際に、前記読み出しアドレスから前記画像データの読み出し済みのメモリ領域を求め、符号化を完了した画像データが格納されたメモリ領域に、前記符号化データを前記所定のブロック単位順に格納し、格納する前記符号化データが前記所定のブロックに満たない場合には不足分を空データで上書きすることを特徴としたものである。 In order to solve the above-described problem, the first technical means of the present invention provides image data input to the memory in the scanning order so that the data amount does not exceed the data amount of the image data and in a predetermined block unit. An encoded data memory storage control device for performing control for storing the encoded data encoded by the encoding means in the memory with respect to the encoding means for encoding in the encoding means , wherein the predetermined block is transferred from the memory The image data continuous in the scanning direction having the same number of data as the burst transfer unit of the memory and the number of pixels included in the memory is read at a time and temporarily stored in the encoding means. An input buffer to be passed, an output buffer for temporarily storing the encoded data output from the encoding means and outputting it to the memory, and a buffer for reading from the memory to the input buffer. Managed by looking out address and the output buffer a write address for writing to said memory, said and an address management unit that performs an access request specifying a read address and write address to the memory, the code after encoding When storing the encoded data in the memory, the memory area from which the image data has been read is obtained from the read address, and the encoded data is stored in the memory area in which the encoded image data is stored. The data is stored in block unit order, and when the encoded data to be stored is less than the predetermined block, the shortage is overwritten with empty data .
第2の技術手段は、第1の技術手段において、前記符号化手段は、JPEG規格又はJPEG2000規格に基づき符号化処理を実行する手段であることを特徴としたものである。 According to a second technical means, in the first technical means, the encoding means is means for executing an encoding process based on the JPEG standard or the JPEG2000 standard.
第3の技術手段は、第1又は第2の技術手段における符号化データメモリ格納制御装置を備えた画像処理装置であって、前記メモリと、前記符号化手段とを備えたことを特徴としたものである。 A third technical means is an image processing apparatus including the encoded data memory storage control device according to the first or second technical means, and includes the memory and the encoding means. Is.
第4の技術手段は、メモリに走査順に入力された画像データを、該画像データのデータ量を超えないデータ量になるように且つ所定のブロック単位で符号化する符号化手段に対し、該符号化手段で符号化後の符号化データを前記メモリへ格納する制御を行う符号化データメモリ格納制御方法であって、読み出し手段が、前記メモリから、前記所定のブロックに含まれる画素数の自然数倍で且つ前記メモリのバースト転送単位と同じデータ量をもつ前記走査の方向に連続した前記画像データを、入力バッファに一度に読み出して一時的に蓄積し、前記符号化手段に渡すステップと、書き出し手段が、前記符号化手段から出力された符号化データを出力バッファに一時的に蓄積し前記メモリに出力する書き出しステップと、アドレス管理部が、前記メモリから前記入力バッファへ読み出す際の読み出しアドレス及び前記出力バッファから前記メモリに書き込む際の書き込みアドレスを管理し、前記メモリに前記読み出しアドレス及び書き込みアドレスを指定したアクセス要求を行うステップとを含み、前記書き出しステップは、前記書き出し手段が、前記符号化手段が符号化した後の符号化データを前記メモリに出力して格納する際に、前記読み出しアドレスから前記画像データの読み出し済みのメモリ領域を求め、符号化を完了した画像データが格納されたメモリ領域に、前記符号化データを前記所定のブロック単位順に格納し、格納する前記符号化データが前記所定のブロックに満たない場合には不足分を空データで上書きすることを特徴としたものである。 According to a fourth technical means, for the encoding means for encoding the image data inputted in the memory in the scanning order so that the data amount does not exceed the data amount of the image data and in a predetermined block unit, An encoded data memory storage control method for performing control to store encoded data encoded by an encoding unit in the memory , wherein the reading unit is a natural number of the number of pixels included in the predetermined block from the memory the image data is continuous in the direction of the scan times and in having the same amount of data as the burst transfer unit of the memory, reading and temporarily stored at a time in the input buffer, a step of passing said encoding means, writing Means for temporarily storing the encoded data output from the encoding means in an output buffer and outputting it to the memory; and Managing a read address when reading from the memory to the input buffer and a write address when writing from the output buffer to the memory, and performing an access request designating the read address and write address to the memory, and writing step, the writing means, the encoded data after the encoding means encoded in storing and output to the memory, obtains the read already in the memory area of the image data from said read address, The encoded data is stored in the predetermined block unit order in the memory area where the encoded image data is stored, and if the encoded data to be stored is less than the predetermined block, the shortage is empty. It is characterized by overwriting with data .
本発明によれば、ブロック単位で画像データを符号化するに際し、少なくとも読み込み対象画像データの格納メモリ領域だけで符号化データを格納することが可能となる。 According to the present invention, when encoding image data in units of blocks, it is possible to store the encoded data only at least in the storage memory area of the image data to be read.
本発明に係る符号化データメモリ格納制御装置(以下、本制御装置という)は、画像データを所定のブロック単位で符号化した後にその符号化データをメモリに格納する制御を行う。従って、本制御装置は、この符号化を実行する符号化手段の出力(好ましくは入出力)を制御する装置である。また、本制御装置は、符号化がデータの圧縮を伴う処理であり、符号化データが符号化処理済みの画像データ(元の画像データ)をそのデータ量で上回ることは一般的にない(少なくともないように調整できる)ことを利用して、符号化処理済みの画像データのメモリ領域に符号化データを格納する制御を行う。 An encoded data memory storage control device (hereinafter referred to as the present control device) according to the present invention performs control to store image data in a memory after encoding the image data in a predetermined block unit. Therefore, the present control device is a device for controlling the output (preferably input / output) of the encoding means for executing this encoding. In the present control apparatus, encoding is a process involving data compression, and the encoded data generally does not exceed the encoded image data (original image data) by the amount of data (at least In other words, control is performed to store the encoded data in the memory area of the encoded image data.
上述の符号化手段としては、JPEG規格又はJPEG2000規格に基づき符号化処理を実行する手段であることが好ましい。以下の例では、符号化手段としてハードウェアでの構成、すなわち符号化回路を挙げて説明するが、符号化プログラムをコンピュータに実行可能に組み込むことでも実現できる。また、本制御装置で取り扱う画像データとしては、静止画像データ単体に限ったものではなく動画データの各フレームであってもよい。 The encoding means described above is preferably a means for executing an encoding process based on the JPEG standard or the JPEG2000 standard. In the following example, a description will be given by taking a hardware configuration as an encoding means, that is, an encoding circuit, but it can also be realized by incorporating an encoding program into a computer in an executable manner. Further, the image data handled by this control apparatus is not limited to still image data alone, but may be each frame of moving image data.
また、本発明に係る画像処理装置は、本制御装置を備え、画像処理を施す装置である。この画像処理装置は、読み出し/書き込み対象となるメモリ(及びそのメモリを制御するメモリコントローラ)と、上述の符号化手段とを備える画像符号化装置(画像圧縮処理装置)であることが好ましいが、本制御装置が少なくともこれらにアクセス可能になっていればよい。本発明に係る画像処理装置としては、例えば複写機能、ファクシミリ機能、データ送信機能、ファイル管理機能等をもつディジタル複合機や、原稿を読み取ってファイルとして保存するファイル管理装置、スキャナや外部PC等から画像データの入力が可能なPCなど、様々な機器が該当する。 An image processing apparatus according to the present invention is an apparatus that includes the present control device and performs image processing. The image processing apparatus is preferably an image encoding apparatus (image compression processing apparatus) including a memory to be read / written (and a memory controller that controls the memory) and the encoding unit described above. It suffices for the control device to be accessible at least. The image processing apparatus according to the present invention includes, for example, a digital multifunction machine having a copy function, a facsimile function, a data transmission function, a file management function, a file management apparatus that reads a document and stores it as a file, a scanner, an external PC, etc. Various devices such as a PC capable of inputting image data are applicable.
図1は、本発明の一実施形態に係る符号化データメモリ格納制御回路を備えた画像処理装置の一構成例を示すブロック図で、図2は、図1の画像処理装置のうち符号化データメモリ制御回路を含む符号化回路の一構成例を示すブロック図である。また、図3及び図4は、図2の符号化データメモリ格納制御回路におけるメモリアクセス処理例を説明するための概念図である。 FIG. 1 is a block diagram illustrating an example of the configuration of an image processing apparatus including an encoded data memory storage control circuit according to an embodiment of the present invention. FIG. 2 illustrates encoded data of the image processing apparatus of FIG. It is a block diagram which shows one structural example of the encoding circuit containing a memory control circuit. FIGS. 3 and 4 are conceptual diagrams for explaining an example of memory access processing in the encoded data memory storage control circuit of FIG.
図1で例示する画像処理装置1は、画像データの符号化及び符号化したデータの復号化を実行する符号化・復号化処理部10を備え、符号化・復号化処理部10の入出力対象となる各種処理回路とともに、各種処理回路でデータの格納領域として使用するメモリ24と、符号化・復号化処理部10を含む全ての回路を制御する演算処理装置(CPU21)とを備える。
An image processing apparatus 1 illustrated in FIG. 1 includes an encoding /
図1では、各種処理回路として、原稿の画像を光学的に読み取りスキャンデータとして画像データを出力するスキャナ22、色変換や各種フィルタリングや合成処理などの各種画像処理を実行する画像処理回路23、外部機器との通信を行う通信回路25、並びに印字処理を実行するレーザスキャナユニット(LSU)26を挙げている。但し、各種処理回路としては、これら以外の回路も備えてもよいし、同時に具備する組み合わせも図示するものに限ったものではない。
In FIG. 1, as various processing circuits, a
図1で例示する符号化・復号化処理部10は、符号化回路18、復号化回路19、並びにメモリ24のI/Fとなってメモリ24を制御するメモリコントローラ14が、内部バス17によりバス接続される。さらに、符号化・復号化処理部10は、CPU21、スキャナ22、画像処理回路23、通信回路25、及びLSU26のそれぞれに対するインターフェースとなるCPU I/F11、画像入力I/F12、画像処理I/F13、通信I/F15、及び画像出力I/F16がバス接続されてなる。但し、少なくとも符号化回路18で例示する符号化手段がメモリ24にアクセス可能に設けられた構成であれば、本制御装置での制御が可能である。
The encoding /
また、メモリ24は、上述のごとく各種処理回路での処理に使用することが好ましいが、少なくとも符号化・復号化処理部10の符号化回路18にて符号化対象の画像データ及び符号化後のデータを格納するために使用すればよい。例えば、LSU26ではページメモリに展開した画像データに基づき印刷を実行することとなるが、そのページメモリとしてメモリ24を利用してもよい。メモリコントローラ14がより多くの回路からアクセス要求を受けて制御する構成ほど、メモリ24の多くのメモリ領域が符号化回路18以外の回路で確保されている可能性が高く、符号化回路18が確保するメモリ領域を少なくできるといった本発明の効果がより顕在化する。
The
図2で例示する符号化回路18は、JPEG方式の符号化処理を行う回路であり、入力された8×8ブロック単位の画像データに対して変換符号化(DCT:離散コサイン変換)部33、DCT後の画像データ(変換係数)を量子化する量子化部34、並びに、量子化された量子化係数をエントロピー符号化(ハフマン符号化/算術符号化)して符号化データを出力するエントロピー符号化部35を備える。
An
符号化回路18は、変換符号化部33でのDCTの前に間引き処理を実行したり、DCTの代わりにDPCM(予測符号化)を行うなど他の構成であってもよい。また、ブロック単位で符号化処理を行う回路であれば、符号化回路18の代わりに、JPEG2000方式など他の符号化方式の符号化回路を組み込んでもよい。また、符号化回路18で例示のごとく直交変換を含む符号化処理であることが好ましいが、それに限ったものではない。
The
符号化回路18は、さらに入力バッファ(入力画像バッファ)32、出力バッファ(出力画像バッファ)36、及び制御部・アドレス管理部31を備える。制御部・アドレス管理部31は、まとめて図示し説明するが、制御部とアドレス管理部とを別々に構成してもよい。アドレス管理部や制御部は、全てハードウェアで構成する必要はなく、アドレス管理プログラムや制御部を内部CPUで実行可能に組み込んで構成してもよい。
The
制御部は、CPU21からの制御に基づき符号化自体の制御を行う部位で、例えば量子化部34に対し制御パラメータ(例えば設定する量子化ステップ或いは選択する量子化テーブル)を指定したり、エントロピー符号化部35に対するハフマン符号の選択などの制御パラメータを指定したりする。制御部は、アドレス管理部に対し符号化の実行も指示し、これにより変換符号化部33に画像データが入力画像バッファ32を介して入力されることとなる。
The control unit is a part that controls the encoding itself based on the control from the
本制御装置は、上述の入力画像バッファ32、出力画像バッファ36、及びアドレス管理部で構成できる。図2で例示する本制御装置は、図示のように符号化回路18に組み込むこともできるが、符号化回路18の外部に設けてもよい。
This control apparatus can be composed of the above-described
アドレス管理部は、メモリ24から入力画像バッファ32へ読み出す際の(読み出すデータのメモリ24上の)読み出しアドレス及び出力画像バッファ36からメモリ24に書き込む際の(書き込むデータのメモリ24上の)書き込みアドレスを管理し、メモリ24(実際にはメモリコントローラ14)に読み出しアドレス及び書き込みアドレスを指定したアクセス要求を行う。
The address management unit reads a read address (on the
読み出し時のアドレス管理部の処理を、図3(A)を参照して例示する。まず、スキャナ22等からメモリ24に格納されたデータは、各ライン毎に連続したデータとなっている。従って、そのまま読み出すとライン全部の読み出しが完了したら次のラインの読み出しがなされることとなる。符号化をブロック単位で処理するために、アドレス管理部では、次に説明するような読み出し処理を行う必要がある。
The processing of the address management unit at the time of reading will be exemplified with reference to FIG. First, data stored in the
アドレス管理部は、制御部からのJPEG処理開始指示により、入力画像バッファ32へ読み込む画像データのメモリ24上のメモリ領域(矩形で図示したJPEG処理対象の画像ブロックが格納されたメモリ領域)を決定し、読み出しアドレスを指定した読み出し要求信号を、メモリコントローラ14に対して送信する。
In response to a JPEG processing start instruction from the control unit, the address management unit determines a memory area on the
読み出しアドレスは、★(開始位置)〜☆,▲〜△,・・・,■〜□の順で読み込み可能なように指定する。ここで、1ブロック分のみ読み出す場合には、★〜☆は8画素分のデータとなり、nブロック分読み出す場合には、★〜☆は8×n画素分のデータとなる。ここで、nは自然数である。nブロック分読み出す場合にも、★(開始位置)〜☆,▲〜△,・・・,■〜□の順で主走査方向では可能な限り連続となるように読み出せばよい。 The read address is specified so that it can be read in the order of ★ (start position) to ☆, ▲ to △, ..., ■ to □. Here, when only one block is read, ★ ˜ ☆ are data for 8 pixels, and when reading for n blocks, ★ ˜ ☆ are data for 8 × n pixels. Here, n is a natural number. Also when reading out n blocks, it is only necessary to read as long as possible in the main scanning direction in the order of ★ (start position) to ☆, ▲ to △, ..., ■ to □.
その後、アドレス管理部は、メモリコントローラ14から読み出し許可信号を受ける。読み出し許可信号の受信とともに、入力画像バッファ32にメモリ24から画像データ(1つ以上の画像ブロック分)が走査順に入力され、符号化回路18の各部33〜35等で構成される符号化手段でその画像データを所定のブロック単位で符号化される。
Thereafter, the address management unit receives a read permission signal from the memory controller 14. Along with the reception of the read permission signal, image data (one or more image blocks) is input from the
続いて、順に次の画像ブロック群が読み出し要求されて読み出され、符号化される。例えば□の次には●で示すアドレスが指定されて次の画像ブロック群が読み込まれる。なお、図3及び図4では8ライン分のみ図示しているが、実際のメモリ領域は例えば少なくとも1ページ分存在し、1以上の画像ブロック毎に読み込まれ、符号化が画像ブロック単位で実行される。 Subsequently, the next image block group is sequentially requested and read out and encoded. For example, after □, an address indicated by ● is designated, and the next image block group is read. 3 and 4 show only 8 lines. However, the actual memory area exists for at least one page, for example, is read for each of one or more image blocks, and encoding is performed in units of image blocks. The
入力画像バッファ32は、図3(A)で8×(8×n)画素分として例示したように、符号化処理単位である所定のブロックに含まれる画素数(この例では8×8)のn倍(すなわちn個の画像ブロック分)でメモリ24から画像データを読み出して一時的に蓄積し、符号化手段に渡すことが好ましい。従って、入力画像バッファ32は、JPEG処理用としては好ましくは8×8×n画素分(n≧1)のデータ格納領域をもつ。画像データの読み出しを符号化処理単位のn倍で行うことで、符号化処理が円滑に実行できる。
As illustrated in FIG. 3A as 8 × (8 × n) pixels, the
さらに、メモリコントローラ14がメモリ24内のデータをバースト転送可能なものであることが好ましい。そして、上記n倍のデータのうちn倍の主走査方向(メモリ24に格納された走査方向)に連続するデータ(8×n)、すなわち読み込むn個の画像ブロックに含まれる主走査方向の画素数(8×n)は、メモリ24のバースト転送単位(実際にはメモリコントローラ14のバースト転送単位)と同じデータ量としておくことが、処理速度の点で好ましい。
Furthermore, it is preferable that the memory controller 14 is capable of burst transfer of data in the
換言すると、入力画像バッファ32に一度に読み出される画像データは走査方向に連続した画像データであり、その画像データはメモリ24のバースト転送単位と同じデータ量であることが好ましい。
In other words, the image data read to the
書き込み時のアドレス管理部の処理を、図3(B)を参照して例示する。アドレス管理部は、出力画像バッファ36からメモリ24に書き込む符号化後のデータ(符号化データ)に対し、メモリ24上の書き込み先のメモリ領域を決定し、書き込みアドレスを指定した書き込み要求信号を、メモリコントローラ14に対して送信する。ここで、書き込む符号化データとは、当然出力画像バッファ36の格納容量を超えるものではない。
The processing of the address management unit at the time of writing will be exemplified with reference to FIG. The address management unit determines a write destination memory area on the
例えば、読み出したnブロック分(★〜□までのデータ)が符号化処理を終了していた場合、すくなくともその分の符号化データは、出力画像バッファ36に蓄積されている。この符号化データの書き込み先のメモリ領域は、少なくとも符号化済みの画像データのメモリ領域になるようにすればよい。従って、書き込みアドレスは読み出しアドレスを取得して、画像データの読み出し済みのメモリ領域を求め、それに基づき適切な書き込みアドレスを指定するとよい。例えば、読み出し時と同様に、★(開始位置)〜☆,▲〜△,・・・,■〜□,●,・・・の順で書き込み可能なように指定する。
For example, when the read n blocks (data from * to □) have been encoded, at least the encoded data is accumulated in the
実際には、符号化処理前の画像データに比べ符号化データは圧縮されており、少なくとも同じ格納領域には収まることになる。但し、上述の順で指定した場合でも、圧縮されておりデータの格納領域が余ることになる。その余り(圧縮分の余剰領域)には、空データを上書きすることで、完全に読み出し時と対応させるように書き込むとよい。この場合、符号化データを使用する際に、読み出し時にアドレスをそれに基づき指定すればよいだけである。 Actually, the encoded data is compressed compared to the image data before the encoding process, and at least fits in the same storage area. However, even if it is specified in the above-described order, it is compressed and the data storage area remains. The remainder (the surplus area for compression) may be written so as to completely correspond to the time of reading by overwriting empty data. In this case, when using the encoded data, it is only necessary to specify an address based on the address at the time of reading.
空データの上書きを実行するより好ましい例として、続くnブロック分の画像データに対する符号化データを続けて書き込むようにすればよい。すなわち、続くnブロック分の画像データを符号化した符号化データは、前のnブロック分に対する符号化データに続くメモリ領域に格納すればよい。 As a more preferable example of overwriting the empty data, the encoded data for the subsequent n blocks of image data may be continuously written. That is, encoded data obtained by encoding image data for the subsequent n blocks may be stored in a memory area following the encoded data for the previous n blocks.
ここで、出力画像バッファ36からメモリ24へ出力する符号化データはバースト転送単位であることが好ましいが、入力画像バッファ32での格納単位と必ずしも同じにしなくてもよい。書き込みを開始するトリガとしては、バースト転送単位だけ符号化データが出力画像バッファに蓄積された時点の他に、読み出したn個の画像ブロックの符号化が終了した時点、さらには出力画像バッファ36の残り容量が或る閾値を切った時点など、様々な事象が採用できる。
Here, the encoded data output from the
その後、アドレス管理部は、メモリコントローラ14から書き込み許可信号を受ける。書き込み許可信号の受信とともに、出力画像バッファ36に蓄積された符号化データが順次メモリコントローラ14に出力され、メモリコントローラ14によってメモリ24に書き込まれる。
Thereafter, the address management unit receives a write permission signal from the memory controller 14. With the reception of the write permission signal, the encoded data stored in the
このように、本制御装置は、符号化した後の符号化データをメモリ24に格納する際に、符号化を完了した画像データが格納されたメモリ領域に、符号化データを所定のブロック単位順に格納する。なお、この格納は、ブロック単位順であればよく、上述したように複数ブロック分同時に実行してもよい。
In this way, when storing the encoded data after encoding in the
本制御装置は、このようにして、符号化回路18で符号化後の符号化データを出力画像バッファ36からメモリ24へ格納する制御を行い、次のトリガで同様の処理を実行することで、符号化データの格納が完了していく。画像データの読み出し及び符号化データの書き込みが進むに連れ、図3(A)の状態から図4(A)の状態のように白色で示す符号格納可能領域が増えていき、符号化データの生成及び格納が完了し、最終的に図4(B)のような状態になる。
In this way, the present control device performs control to store the encoded data after encoding by the
このような制御を行うことで、アドレス管理部は、符号化対象として最初に指定した読み込みメモリ領域の確保、例えばスキャナ22で書き込みメモリ領域として指定したメモリ領域の確保だけで済む。従って、メモリ24を他の各種処理回路で同時に使用する際のメモリ領域の確保が容易になるか、予め用意する容量を少なくすることができる。
By performing such control, the address management unit only needs to secure the read memory area first designated as the encoding target, for example, the memory area designated as the write memory area by the
一方、メモリ24への格納が完了した符号化データは、各種処理回路での処理(例えば外部や内部の記憶装置に転送する処理、復号処理、復号処理を伴う印字処理)のために、メモリ24から読み出される。このとき、図4(B)で矢視して例示するように格納した順番(所定のブロック単位の順番)で符号の読み出しを実行するとよい。なお、空データを上書きした場合にはそのまま読み出してもよいし、空データの分を飛ばして読み出してもよい。
On the other hand, the encoded data that has been stored in the
以上、本制御装置及びそれを備えた画像処理装置について説明したが、本発明は、本制御装置で実行される制御の方法(符号化データメモリ格納制御方法;以下、本方法という)としての形態も採用できる。 Although the present control apparatus and the image processing apparatus including the control apparatus have been described above, the present invention is an embodiment as a control method (encoded data memory storage control method; hereinafter referred to as the present method) executed by the control apparatus. Can also be adopted.
本方法では、取得手段が、メモリから符号化を完了した画像データが格納されたメモリ領域の情報を取得するステップと、書き出し手段が、符号化手段が符号化した後の符号化データをメモリに格納する際に、取得手段で取得したメモリ領域に、符号化データを所定のブロック単位順に格納するステップとを含む。ここでいう取得手段及び書き出し手段とは、上述したようにアドレス管理部に具備でき、バッファメモリ(出力画像バッファ36)の制御が可能となる。上述したアドレス管理プログラムは、このような処理を実行するプログラムとなる。 In this method, the acquisition means acquires from the memory the information of the memory area where the image data that has been encoded is stored, and the writing means stores the encoded data that has been encoded by the encoding means in the memory. Storing the encoded data in a predetermined block unit order in the memory area acquired by the acquiring means when storing. The acquisition means and the writing means referred to here can be provided in the address management section as described above, and the buffer memory (output image buffer 36) can be controlled. The address management program described above is a program that executes such processing.
また、本方法の他の形態として読み出し時から制御するようにしてもよい。この方法は、読み出し手段が、メモリから画像データを所定のブロック単位で読み出して符号化手段に渡すステップと、書き出し手段が、符号化手段が符号化した後の符号化データをメモリに格納する際に、符号化を完了した画像データが格納されたメモリ領域に、符号化データを所定のブロック単位順に格納するステップとを含む。ここでいう読み出し手段及び書き出し手段とは、上述したようにアドレス管理部に具備でき、バッファメモリ(入力画像バッファ32・出力画像バッファ36)の制御が可能となる。上述したアドレス管理プログラムは、このような処理を実行するプログラムでもよい。
Moreover, you may make it control from the time of reading as another form of this method. In this method, the reading means reads out image data from the memory in units of a predetermined block and passes it to the encoding means, and the writing means stores the encoded data after the encoding means encodes in the memory. And storing the encoded data in a predetermined block unit order in a memory area where the encoded image data is stored. The reading means and writing means here can be provided in the address management section as described above, and control of the buffer memory (
以上、説明したように、本発明では、ブロック単位で画像データを符号化するに際し、符号化した符号化データ(符号データ)を、符号化が既に完了した画像データ領域に所定のブロック単位順に格納する。従って、少なくとも読み込み対象画像データの格納メモリ領域だけで符号化データを格納すること、すなわち画像データを読み込むメモリ領域より多くのメモリ領域を使用することなく符号化データを格納することが可能となり、メモリ資源を効率良く利用することができる。 As described above, according to the present invention, when encoding image data in units of blocks, the encoded data (code data) that has been encoded is stored in the order of predetermined block units in the image data area where encoding has already been completed. To do. Therefore, it is possible to store the encoded data only in the storage memory area of the image data to be read at least, that is, to store the encoded data without using more memory areas than the memory area from which the image data is read. Resources can be used efficiently.
1…画像処理装置、10…符号化・復号化処理部、11…CPU I/F、12…画像入力I/F、13…画像処理I/F、14…メモリコントローラ、15…通信I/F、16…画像出力I/F、17…内部バス、18…符号化回路、19…復号化回路、21…CPU、22…スキャナ、23…画像処理回路、24…メモリ、25…通信回路、26…レーザスキャナユニット(LSU)、31…制御部・アドレス管理部、32…入力画像バッファ、33…変換符号化部、34…量子化部、35…エントロピー符号化部、36…出力画像バッファ。
DESCRIPTION OF SYMBOLS 1 ... Image processing apparatus, 10 ... Encoding / decoding processing part, 11 ... CPU I / F, 12 ... Image input I / F, 13 ... Image processing I / F, 14 ... Memory controller, 15 ... Communication I / F , 16 ... Image output I / F, 17 ... Internal bus, 18 ... Coding circuit, 19 ... Decoding circuit, 21 ... CPU, 22 ... Scanner, 23 ... Image processing circuit, 24 ... Memory, 25 ... Communication circuit, 26 DESCRIPTION OF SYMBOLS ... Laser scanner unit (LSU) 31 ... Control part and
Claims (4)
前記メモリから、前記所定のブロックに含まれる画素数の自然数倍で且つ前記メモリのバースト転送単位と同じデータ量をもつ前記走査の方向に連続した前記画像データを、一度に読み出して一時的に蓄積し、前記符号化手段に渡す入力バッファと、前記符号化手段から出力された符号化データを一時的に蓄積し前記メモリに出力する出力バッファと、前記メモリから前記入力バッファへ読み出す際の読み出しアドレス及び前記出力バッファから前記メモリに書き込む際の書き込みアドレスを管理し、前記メモリに前記読み出しアドレス及び書き込みアドレスを指定したアクセス要求を行うアドレス管理部とを有し、
符号化した後の符号化データを前記メモリに格納する際に、前記読み出しアドレスから前記画像データの読み出し済みのメモリ領域を求め、符号化を完了した画像データが格納されたメモリ領域に、前記符号化データを前記所定のブロック単位順に格納し、格納する前記符号化データが前記所定のブロックに満たない場合には不足分を空データで上書きすることを特徴とする符号化データメモリ格納制御装置。 In contrast to the encoding means for encoding the image data input in the scanning order into the memory so that the data amount does not exceed the data amount of the image data and in a predetermined block unit, An encoded data memory storage control device that controls to store encoded data in the memory,
The image data continuous in the scanning direction having the same amount of data as the burst transfer unit of the memory is read out at a time from the memory, and is temporarily multiplied by the natural number of pixels included in the predetermined block. An input buffer that accumulates and passes to the encoding means; an output buffer that temporarily accumulates encoded data output from the encoding means and outputs to the memory; and a read operation when reading from the memory to the input buffer An address management unit that manages an address and a write address when writing to the memory from the output buffer, and performs an access request specifying the read address and the write address in the memory;
When storing the encoded data after encoding in the memory, the memory area from which the image data has been read is obtained from the read address, and the code area is stored in the memory area where the encoded image data is stored. An encoded data memory storage control device, wherein encoded data is stored in the order of the predetermined block unit, and when the encoded data to be stored is less than the predetermined block, the shortage is overwritten with empty data .
読み出し手段が、前記メモリから、前記所定のブロックに含まれる画素数の自然数倍で且つ前記メモリのバースト転送単位と同じデータ量をもつ前記走査の方向に連続した前記画像データを、入力バッファに一度に読み出して一時的に蓄積し、前記符号化手段に渡すステップと、
書き出し手段が、前記符号化手段から出力された符号化データを出力バッファに一時的に蓄積し前記メモリに出力する書き出しステップと、
アドレス管理部が、前記メモリから前記入力バッファへ読み出す際の読み出しアドレス及び前記出力バッファから前記メモリに書き込む際の書き込みアドレスを管理し、前記メモリに前記読み出しアドレス及び書き込みアドレスを指定したアクセス要求を行うステップとを含み、
前記書き出しステップは、前記書き出し手段が、前記符号化手段が符号化した後の符号化データを前記メモリに出力して格納する際に、前記読み出しアドレスから前記画像データの読み出し済みのメモリ領域を求め、符号化を完了した画像データが格納されたメモリ領域に、前記符号化データを前記所定のブロック単位順に格納し、格納する前記符号化データが前記所定のブロックに満たない場合には不足分を空データで上書きすることを特徴とする符号化データメモリ格納制御方法。 In contrast to the encoding means for encoding the image data input in the scanning order into the memory so that the data amount does not exceed the data amount of the image data and in a predetermined block unit, An encoded data memory storage control method for performing control to store encoded data in the memory,
Reading means receives, from the memory, the image data that is a natural number multiple of the number of pixels included in the predetermined block and has the same amount of data as the burst transfer unit of the memory, in the scanning direction, to the input buffer. Reading at a time, temporarily storing it, and passing it to the encoding means;
A writing step for temporarily storing the encoded data output from the encoding unit in an output buffer and outputting the encoded data to the memory;
The address management unit manages a read address when reading from the memory to the input buffer and a write address when writing from the output buffer to the memory, and makes an access request designating the read address and write address to the memory. Including steps,
The writing step, the writing means, the encoded data after the encoding means encoded in storing and output to the memory, obtains the read already in the memory area of the image data from the read address The encoded data is stored in the predetermined block unit order in the memory area where the encoded image data is stored, and if the encoded data to be stored is less than the predetermined block, a shortage is stored. An encoded data memory storage control method comprising overwriting with empty data .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006313033A JP4667348B2 (en) | 2006-11-20 | 2006-11-20 | Encoded data memory storage control device, method, and image processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006313033A JP4667348B2 (en) | 2006-11-20 | 2006-11-20 | Encoded data memory storage control device, method, and image processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2008131258A JP2008131258A (en) | 2008-06-05 |
| JP4667348B2 true JP4667348B2 (en) | 2011-04-13 |
Family
ID=39556691
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006313033A Active JP4667348B2 (en) | 2006-11-20 | 2006-11-20 | Encoded data memory storage control device, method, and image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4667348B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3355909B2 (en) * | 1996-02-19 | 2002-12-09 | 富士ゼロックス株式会社 | Printer control method and apparatus |
| JP4574426B2 (en) * | 2005-04-21 | 2010-11-04 | キヤノン株式会社 | Data processing apparatus and data processing method |
-
2006
- 2006-11-20 JP JP2006313033A patent/JP4667348B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2008131258A (en) | 2008-06-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4187415B2 (en) | Multi-resolution compressed image management system and method | |
| JP3732702B2 (en) | Image processing device | |
| US7468803B2 (en) | Image processing apparatus and image processing method | |
| KR101320155B1 (en) | Image processing apparatus and method of controlling the apparatus | |
| JP2000278685A (en) | Method for processing variable length encoded binary bit stream | |
| US8094952B2 (en) | Image processing apparatus and image processing method | |
| US7450773B2 (en) | Image processing apparatus and image processing method, image processing system, image processing program and storage medium | |
| JP2008017441A (en) | Data processing apparatus, data processing method and program | |
| US20050276500A1 (en) | Image encoding apparatus, and image processing apparatus and its control method | |
| JP2004080520A (en) | Image processing device, image reading device, and image forming device | |
| JP4667348B2 (en) | Encoded data memory storage control device, method, and image processing device | |
| JP2004221998A (en) | Image processing device | |
| US20040179741A1 (en) | Image processing apparatus | |
| JP2006325186A (en) | Image processing device | |
| JP2010073210A (en) | Image processing apparatus | |
| JP2006086579A (en) | Image processing apparatus, program, and storage medium | |
| JP2006304243A (en) | Image processing apparatus, printing apparatus, and image processing method | |
| RU2852258C2 (en) | Method for decoding images | |
| JP2003116009A (en) | Image encoding control equipment and method therefor | |
| JP4195624B2 (en) | Image processing apparatus, image forming apparatus, image reading apparatus, program, and storage medium | |
| JP6223012B2 (en) | Image coding apparatus and image coding method | |
| JP4262145B2 (en) | Image processing apparatus and control method thereof | |
| JP2003209697A (en) | Image processing apparatus and method, computer program and storage medium | |
| JPH0774925A (en) | Color image processing apparatus and method thereof | |
| JP2007188361A (en) | MEMORY CONTROL METHOD, MEMORY CONTROL DEVICE, AND IMAGE PROCESSING DEVICE |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090218 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20101014 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20101026 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20101215 |
|
| 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: 20110111 |
|
| 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: 20110111 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140121 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4667348 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |