JP4713970B2 - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP4713970B2 JP4713970B2 JP2005216102A JP2005216102A JP4713970B2 JP 4713970 B2 JP4713970 B2 JP 4713970B2 JP 2005216102 A JP2005216102 A JP 2005216102A JP 2005216102 A JP2005216102 A JP 2005216102A JP 4713970 B2 JP4713970 B2 JP 4713970B2
- Authority
- JP
- Japan
- Prior art keywords
- unit
- image data
- compression
- compressed image
- storage area
- 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
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
Description
本発明は、画像処理装置に関し、特に画像データの圧縮処理を行うことが可能な画像処理装置に関する。 The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus capable of performing compression processing of image data.
画像処理装置において、バスのデータ転送量の低減とメモリ容量の削減とを図るための技術として、拡大縮小処理を含む複数の画像処理をパイプライン処理可能とした技術が特許文献1において提案されている。この特許文献1の手法では、複数の画像処理部とその後段の圧縮処理部とをバッファを介して直結的に接続するように画像処理装置を構成しておき、画像処理部には、それぞれの画像処理に必要な補間用画素データと圧縮処理に必要な最小単位であるMCU(Minimum Coded Unit)分の列方向データを有するデータとをまとめて入力するようにしている。ここで、MCUは、例えば8画素×8画素や16画素×16画素のデータから構成されるデータである。
In the image processing apparatus, as a technique for reducing the data transfer amount of the bus and the memory capacity, a technique that enables pipeline processing of a plurality of image processes including an enlargement / reduction process is proposed in
このような特許文献1では、画像処理部から圧縮処理部までの間の処理において、処理データをSDRAM等の記憶装置に転送する必要がなくなるため、バスのデータ転送量を低減することができる。
特許文献1の手法では、画像処理後に圧縮処理部に入力されるデータの列方向幅が必ずMCU1つ分に限定されてしまう。ここで、昨今の画像処理技術の高度化により、補間画素数は増大する傾向にある。この一方で、補間画素数は、処理後のデータ幅には依存しないため、圧縮処理を行う際の入力データの列方向幅を大きくすることが画像処理の高効率化に繋がる。
In the method of
本発明は、上記の事情に鑑みてなされたもので、圧縮処理部に入力できる画像データの列方向幅を大きくすることにより、より効率の良い画像処理が可能な画像処理装置を提供することを目的とする。 The present invention has been made in view of the above circumstances, and provides an image processing apparatus capable of performing more efficient image processing by increasing the column-direction width of image data that can be input to a compression processing unit. Objective.
上記の目的を達成するために、本発明の第1の態様による画像処理装置は、供給された画像データに対して空間的な画像処理を施すための複数の直列に接続された画像処理部と、前記画像処理部により画像処理された画像データを、列方向の入力画素数が圧縮処理の最小単位のN(N≧2)倍となるようなブロック単位で該ブロック単位の画像データを走査線の長さ分並べた1ブロックライン分順次入力し、この入力されたブロック単位の画像データを順次圧縮処理することにより1ブロックライン分のブロック単位の圧縮画像データを得る圧縮処理部と、前記圧縮処理部で得られた1ブロックライン分のブロック単位の圧縮画像データを順次読み出して第1の並び替え処理を施す第1の並び替え部と、前記第1の並び替え部で並び替えられた前記1ブロックライン分のブロック単位の圧縮画像データが順次書き込まれる第1の記憶領域を有する記憶部と、前記記憶部の第1の記憶領域に書き込まれた圧縮画像データを読み出して、第2の並び替え処理を施し、並び順を変更した1ブロックライン分のブロック単位の圧縮画像データを前記第1の記憶領域とは別の第2の記憶領域に順次書き込む第2の並び替え部とを具備することを特徴とする。 In order to achieve the above object, an image processing apparatus according to a first aspect of the present invention includes a plurality of serially connected image processing units for performing spatial image processing on supplied image data. The image data processed by the image processing unit is scanned with the block unit image data in units of blocks such that the number of input pixels in the column direction is N (N ≧ 2) times the minimum unit of compression processing. A compression processing unit for sequentially inputting one block line arranged for the length of each block and sequentially compressing the input block-unit image data to obtain block-unit compressed image data for one block line, and the compression The first rearrangement unit that sequentially reads out the compressed image data for each block line obtained by the processing unit and performs the first rearrangement process, and the first rearrangement unit rearranges the compressed image data. A storage unit having a first storage area in which compressed image data for each block line is sequentially written, and the compressed image data written in the first storage area of the storage unit is read, A second rearrangement unit that sequentially writes the compressed image data in units of blocks corresponding to one block line in which the rearrangement order is changed to a second storage area different from the first storage area. It is characterized by comprising.
この第1の態様によれば、圧縮処理部に入力できる画像データの列方向幅を大きくすることができ、これに伴って画像処理部に入力できる画像データの列方向幅も大きくすることができる。また、圧縮処理部に入力できる画像データの列方向幅を大きくすることにより、後の再生に適さない順序で圧縮処理が行われるが、これを後の再生に適するような順序に並び替えることができる。 According to the first aspect, the column direction width of the image data that can be input to the compression processing unit can be increased, and accordingly, the column direction width of the image data that can be input to the image processing unit can also be increased. . In addition, by increasing the column direction width of image data that can be input to the compression processing unit, compression processing is performed in an order that is not suitable for later reproduction, but this may be rearranged in an order that is suitable for later reproduction. it can.
本発明によれば、圧縮処理部に入力できる画像データの列方向幅を大きくすることにより、より効率の良い画像処理が可能な画像処理装置を提供することができる。 ADVANTAGE OF THE INVENTION According to this invention, the image processing apparatus which can perform more efficient image processing can be provided by enlarging the column direction width | variety of the image data which can be input into a compression process part.
以下、図面を参照して本発明の実施形態を説明する。
[第1の実施形態]
図1は、本発明の第1の実施形態に係る画像処理装置の主要な構成について示す図である。図1に示す画像処理装置は、撮像部101と、プリプロセス部102と、DMA103と、バス104と、記憶装置105と、DMA106と、画像処理部107と、圧縮処理部108と、DMA109とから構成されている。また、画像処理部107は、拡大縮小処理などの空間的な画像処理を含む複数の異なる画像処理を行うことが可能なように、複数の画像処理部(図1では画像処理部A107aと画像処理部B107b)が直結的に接続されて構成されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[First Embodiment]
FIG. 1 is a diagram showing a main configuration of an image processing apparatus according to the first embodiment of the present invention. The image processing apparatus illustrated in FIG. 1 includes an
図1において、撮像部101によって撮像されて得られた画像信号は、プリプロセス部102にて所定のアナログ処理及びデジタル処理が施される。これらの処理によって生成された画像データはDMA103を介してバス104に転送され、SDRAMなどで構成された記憶装置105に書き込まれる。
In FIG. 1, an image signal obtained by being imaged by the
記憶装置105に書き込まれた画像データは、DMA106を介して画像処理部107に入力される。ここで、第1の実施形態では、記憶装置105から画像処理部107に、列方向の入力画素数が後段の圧縮処理に必要な最小単位のデータ(MCU)の整数倍(ここでは例えば4倍)を単位とするデータと画像処理部107において削られる画素データを補間するための補間画素データとからなる画像データが1ライン分(このような画像データを1ブロックライン分の画像データと称する)入力される。このような1ブロックライン分の画像データを入力するために、記憶装置105に記憶されている画像データを1画素ずつ列方向に、MCUの4倍のデータ幅に補間画素データ分を加えたデータ幅だけ読み出し、この読み出しを行方向に走査線の長さ分だけ繰り返すようにして画像データの読み出しを行うようにする。このようにして読み出された単位毎の画像データが画像処理部107に入力されることにより、画像処理部A107aと画像処理部B107bとにおける画像処理によって補間画素データ部分が削られ、最終的に列方向の入力画素数がMCUの4倍で構成される単位毎の画像データのみが圧縮処理部108に入力される。圧縮処理部108では入力された画像データに対して圧縮処理が行われたあと、これにより得られた圧縮画像データがDMA109を介して記憶装置105に書き込まれる。
The image data written in the
なお、画像処理部107における画像処理は必ずしも全ての処理を行う必要は無く、必要のない画像処理を行わないようにバイパスさせることも可能である。図1の例では画像処理部B107bにおける処理をバイパスできるように構成されている。
Note that the image processing in the
図2は、本発明の第1の実施形態に係る画像処理装置の要部である圧縮処理部108の構成について示した図である。図2に示す圧縮処理部108は、JPEGコアI/F部201と、JPEGコア202と、第1の並び替え部203と、第2の並び替え部204とから構成されている。
FIG. 2 is a diagram illustrating a configuration of the
JPEGコアI/F部201には、4個のバッファ(BUF−A〜BUF−D)が設けられており、JPEGコアI/F部201に入力された画像データがこれらバッファBUF−A〜BUF−Dに順次格納される。ここで、バッファBUF−A〜BUF−Dは、それぞれJPEGコアI/F部201に入力された画像データを1圧縮単位ずつ格納できるだけの容量を有しているものである。この1圧縮単位とは、列方向の画素数が1MCU分、行方向の画素数が1MCUの整数倍の画素数を有する非圧縮の画像データのことを言うものとする。この1圧縮単位の画像データの末尾部分にはJPEG圧縮時にリスタートマーカが付加される。ここで、リスタートマーカとは圧縮処理の区切りを示すためのデータである。つまり、リスタートマーカ間隔が2、即ち圧縮時にリスタートマーカを2MCU毎に付加するようにするのであれば、図3(a)に示すように1圧縮単位は2MCU分の画像データとなる。また、圧縮時にリスタートマーカを4MCU毎に付加するようにするのであれば、図3(b)に示すように1圧縮単位は4MCU分の画像データとなる。
The JPEG core I /
以下、JPEGコアI/F部201に入力される画像データ内における圧縮単位を図4に示すようにしてナンバリングして説明を続ける。なお、図4に示す圧縮単位は、図5に示すように左上端の圧縮単位1−1、1−2、1−3、1−4がパラレルにJPEGコアI/F部201に入力される。ここで、圧縮単位の画像データ1−1、1−2、1−3、1−4からなる画像データをブロック単位の画像データと呼ぶことにすると、このブロック単位の画像データは、行方向に1画素分ずつ図5の矢印に示す方向にデータの入力がなされ、列方向に最初の1MCU分の画像データがバッファBUF−Aに、次に続く1MCU分の画像データがそれぞれバッファBUF−B、バッファBUF−C、バッファBUF−Dに格納され、この入力動作が、行方向の画素数が1圧縮単位の画素数になるまで繰り返される。そして、これら4つの圧縮単位が図6のようにしてバッファBUF−A〜BUF−Dにそれぞれ別々に格納される。バッファBUF−A〜BUF−Dのそれぞれに1圧縮単位分の画像データが格納されると、まずバッファBUF−Aから1圧縮単位分の画像データがJPEGコア202に入力され、以後バッファBUF−B、バッファBUF−C、バッファBUF−Dと順次1圧縮単位分の画像データがJPEGコア202に入力される。バッファBUF−A〜BUF−Dからそれぞれ1圧縮単位分の画像データが出力されると、次の4つの圧縮単位2−1、2−2、2−3、2−4がパラレルにJPEGコアI/F部201に入力される。以後も同様にして圧縮単位が4つずつパラレルにJPEGコアI/F部201に入力され、4つの圧縮単位が4つのバッファに格納され次第JPEGコア202に入力される。これにより図7に示すような順序で圧縮単位毎の画像データがJPEGコア202に入力される。
Hereinafter, description will be continued by numbering the compression units in the image data input to the JPEG core I /
JPEGコア202では1圧縮単位分の画像データが入力されるたびにJPEG圧縮処理が行われる。そして、1圧縮単位分の画像データが圧縮されるごとにリスタートマーカが付加されて圧縮画像データが生成される。ここで、リスタートマーカは8のモジュロで番号付けされる。つまり、1つの圧縮単位分の圧縮画像データが生成されるたびに、FFD0、FFD1、FFD2、FFD3、FFD4、FFD5、FFD6、FFD7、FFD0、FFD1…、の順で番号付けされたリスタートマーカが付加される。
The
ここで、図7に示す順序でJPEGコア202に入力されて圧縮された圧縮画像データをそのまま図7に示す順序で記憶装置105に書き込んだ場合には、一般の画像再生装置においては圧縮画像データの伸長を行う場合に圧縮画像データを行方向に読み出して行うので、図7の順序で記憶された圧縮画像データを伸長しても図4に示す元の画像の順序で伸長することはできない。そこで、以後の第1の並び替え部203及び第2の並び替え部204を利用して圧縮画像データの並び替えを行った後で記憶装置105に記憶させるようにする。
Here, when the compressed image data input and compressed to the
図8(a)は、第1の並び替え部203及び第2の並び替え部204の内部の構成を示す図である。
FIG. 8A is a diagram illustrating an internal configuration of the
まず、第1の並び替え処理を行う第1の並び替え部203は、圧縮画像データ読み出し部203aと、リスタートマーカ検出部203bと、リスタートマーカ書き換え部203cと、選択部203dと、選択部203eと、圧縮画像データ書き込み部203fとから構成されている。
First, the
圧縮画像データ読み出し部203aでは、JPEGコア202から1ブロックライン分の圧縮単位の圧縮画像データが順次読み出される。この読み出された圧縮画像データはリスタートマーカ検出部203bに入力される。リスタートマーカ検出部203bでは、圧縮画像データ読み出し部203aから入力された圧縮画像データ中のリスタートマーカの検出が行われると共にリスタートマーカの数がカウントされる。
The compressed image
リスタートマーカ書き換え部203cではリスタートマーカ検出部203bにおいて検出されたリスタートマーカのマーカ番号の書き換えが行われる。この書き換え時のマーカ番号は、
マーカ番号=((行方向圧縮単位数×現在の行方向圧縮単位位置)+現在の列方向圧縮単位位置)%8 (式1)
の式に基づいて決定される。ここで、(式1)の行方向圧縮単位数は、行方向に配列された圧縮単位の数を示す。図4の例ではhとなる。また、現在の行方向圧縮単位位置は、リスタートマーカの書き換え対象となっている圧縮単位毎の圧縮画像データの行方向位置(即ち、何列目であるか)を示す。例えば、圧縮単位1−1を圧縮して得られた圧縮画像データ(以下、圧縮画像データ1−1と称する。他の圧縮画像データについても同様)の位置を(行,列)=(0,0)とすると、圧縮画像データ1−2の行方向位置は1となる。また、圧縮画像データ2−1の行方向位置は0となる。さらに、現在の列方向圧縮単位位置は、リスタートマーカの書き換え対象となっている単位毎の圧縮画像データの列方向位置(即ち、何行目であるか)を示す。上記した圧縮画像データ1−2の列方向位置は0となる。また、圧縮画像データ2−1の列方向位置は1となる。また、(式1)中の「%8」は8のモジュロ演算を行うことを意味している。
The restart
Marker number = ((number of compression units in row direction × current compression unit position in row direction) + current compression unit position in column direction)% 8 (Formula 1)
It is determined based on the following formula. Here, the number of compression units in the row direction in (Equation 1) indicates the number of compression units arranged in the row direction. In the example of FIG. The current row direction compression unit position indicates the row direction position (that is, what column) of the compressed image data for each compression unit to be rewritten by the restart marker. For example, the position of the compressed image data obtained by compressing the compression unit 1-1 (hereinafter referred to as compressed image data 1-1. The same applies to other compressed image data) (row, column) = (0, 0), the position of the compressed image data 1-2 in the row direction is 1. Also, the row direction position of the compressed image data 2-1 is zero. Furthermore, the current column direction compression unit position indicates the column direction position (that is, what number line) of the compressed image data for each unit to be rewritten by the restart marker. The position in the column direction of the compressed image data 1-2 is 0. The position in the column direction of the compressed image data 2-1 is 1. In addition, “% 8” in (Expression 1) means that 8 modulo operations are performed.
例えば、行方向圧縮単位数が10でリスタートマーカの書き換え対象が圧縮画像データ1−2である場合には、書き換え後のリスタートマーカのマーカ番号は、マーカ番号=((10×1)+0)%8=2となる。即ち、書き換えが行われることにより、元のマーカ番号がFFD1であった圧縮画像データ1−2のマーカ番号はFFD2となる。 For example, when the number of compression units in the row direction is 10 and the restart marker to be rewritten is the compressed image data 1-2, the marker number of the restart marker after rewriting is marker number = ((10 × 1) +0. )% 8 = 2. That is, by performing the rewriting, the marker number of the compressed image data 1-2 in which the original marker number is FFD1 becomes FFD2.
選択部203dでは、圧縮画像データ読み出し部203aにおいて読み出された圧縮画像データとリスタートマーカ書き換え部203cにおいて書き換えられたリスタートマーカの何れかが選択的に選択部203eに出力される。つまり、選択部203dでは、リスタートマーカ検出部203bにおいてリスタートマーカが検出されるまでは圧縮画像データ読み出し部203aにおいて読み出された圧縮画像データが出力され、リスタートマーカ検出部203bにおいてリスタートマーカが検出されたときにリスタートマーカ書き換え部203cにおいて書き換えられたリスタートマーカが出力される。これにより、圧縮単位毎の圧縮画像データの末尾にリスタートマーカ書き換え部203cにおいてマーカ番号が書き換えられたリスタートマーカが付加される。
In the
選択部203eでは、選択部203dから出力された圧縮画像データが符号バッファBUF−a〜符号バッファBUF−dに選択的に出力される。まず、選択部203eからは、リスタートマーカ検出部203bにおいてリスタートマーカが検出されるまで圧縮画像データが符号バッファBUF−aに出力される。リスタートマーカ検出部203bにおいてリスタートマーカが検出された場合には、リスタートマーカ書き換え部203cにおいて書き換えられたリスタートマーカが符号バッファBUF−aに出力され、その後圧縮画像データの出力先の切り替えが行われる。そして次にリスタートマーカが検出されるまで圧縮画像データが符号バッファBUF−bに出力される。リスタートマーカ検出部203bにおいてリスタートマーカが検出された場合には、リスタートマーカ書き換え部203cで書き換えられたリスタートマーカが符号バッファBUF−bに出力され、その後圧縮画像データの出力先の切り替えが行われる。そして次にリスタートマーカが検出されるまで圧縮画像データが符号バッファBUF−cに出力される。リスタートマーカ検出部203bにおいてリスタートマーカが検出された場合には、リスタートマーカ書き換え部203cで書き換えられたリスタートマーカが符号バッファBUF−cに出力され、その後圧縮画像データの出力先の切り替えが行われる。そして次にリスタートマーカが検出されるまで圧縮画像データが符号バッファBUF−dに出力される。
In the
以後も同様にして、リスタートマーカ検出部203bにおいてリスタートマーカが検出される毎に出力先の切り替えが行われる。これにより、符号バッファBUF−aにはバッファBUF−Aの系を経て圧縮された圧縮単位毎の圧縮画像データが格納され、符号バッファBUF−bにはバッファBUF−Bの系を経て圧縮された圧縮単位毎の圧縮画像データが格納され、符号バッファBUF−cにはバッファBUF−Cの系を経て圧縮された圧縮単位毎の圧縮画像データが格納され、符号バッファBUF−dにはバッファBUF−Dの系を経て圧縮された圧縮単位毎の圧縮画像データが格納される。ここで、符号バッファBUF−a〜符号バッファBUF−dは、それぞれ圧縮データ書き込み部203fが1度の書き込み動作で書き込むことができる容量の整数倍の容量を有しているものであり、各符号バッファに圧縮画像データがフルに格納された時点で、フルになった符号バッファに格納された圧縮画像データが圧縮画像データ書き込み部203fに出力される。
Similarly, the output destination is switched every time the restart marker is detected by the
圧縮画像データ書き込み部203fでは、符号バッファBUF−a〜符号バッファBUF−dから出力された圧縮画像データを記憶装置105の第1の記憶領域105aに1ブロックライン分書き込む第1の並び替え処理が行われる。この際にはバッファ番号に関係なく、フルになった符号バッファから順次圧縮画像データが書き込まれる。圧縮画像データ書き込み部203fは、まず、第1の並び替え処理の開始時に、記憶装置105内に各符号バッファに対応する書き込みエリア(図8(a)に示す書き込みエリアA−1〜D−1)を確保し、以後は、フルになった符号バッファに格納された圧縮画像データを順次対応する書き込みエリアに書き込み、最初にフルになった書き込みエリアに対応する次の書き込みエリアを現在確保されている最後の書き込みエリアに連続させて確保するようにする。また、この際に、新しく確保した書き込みエリアの先頭アドレスの値を対応する1つ前の書き込みエリアの末尾部分に書き込んでおくようにする。
The compressed image
例えば、図8(a)の例では、書き込みエリアC−1が最も早くフルになった例を示している。この場合には、書き込みエリアD−1の後に次の書き込みエリアC−2が確保される。これと同時に書き込みエリアC−1の末尾部分に書き込みエリアC−2の先頭アドレスの値が書き込まれる。以後も同様にしてフルになった書き込みエリアに対応する次の書き込みエリアが確保されると共に、新たに確保された書き込みエリアの先頭アドレスの値が1つ前の書き込みエリアの末尾部分に書き込まれる。 For example, the example of FIG. 8A shows an example in which the write area C-1 is fullest earliest. In this case, the next write area C-2 is secured after the write area D-1. At the same time, the value of the start address of the write area C-2 is written at the end of the write area C-1. Thereafter, similarly, the next write area corresponding to the full write area is secured, and the value of the start address of the newly secured write area is written at the end of the previous write area.
以上の第1の並び替え処理が終了すると、記憶装置105の第1の記憶領域105aには1ブロックライン分の圧縮画像データが書き込まれていることになる。
When the first rearrangement process is completed, the compressed image data for one block line is written in the
次に、第2の並び替え処理を行う第2の並び替え部204は、圧縮画像データ読み出し部204aと、圧縮画像データ書き込み部204bとから構成されている。
Next, the
圧縮画像データ読み出し部204aでは、記憶装置105の第1の記憶領域105aに書き込まれた圧縮画像データが読み出される。この際、まず書き込みエリアA−1に書き込まれている圧縮画像データが読み出される。次に、書き込みエリアA−1の末尾部分に書き込まれた先頭アドレスの値が参照されて書き込みエリアA−2に書き込まれた圧縮画像データが読み出される。以後も同様にして書き込みエリアの末尾部分に書き込まれた先頭アドレスの値が参照されて符号バッファBUF−aの系の圧縮画像データが順次読み出される。次に、書き込みエリアB−1に書き込まれている圧縮画像データが読み出される。その後に、書き込みエリアB−1の末尾部分に書き込まれた先頭アドレスの値が参照されて書き込みエリアB−2に書き込まれた圧縮画像データが読み出される。以後も同様にして書き込みエリアの末尾部分に書き込まれた先頭アドレスの値が参照されて符号バッファBUF−bの系の圧縮画像データが順次読み出される。
The compressed image
その後も同様にして、符号バッファBUF−cの系の圧縮画像データ及び符号バッファBUF−dの系の圧縮画像データが読み出される。 Thereafter, similarly, the compressed image data of the code buffer BUF-c and the compressed image data of the code buffer BUF-d are read out.
圧縮画像データ書き込み部204bでは、圧縮画像データ読み出し部204aで読み出された圧縮画像データが、そのままの順序で記憶装置105の第1の記憶領域105aと異なる第2の記憶領域105bに書き込まれる。
In the compressed image
このような処理により、図4で示す並び順に対応した順序で圧縮画像データが記憶装置105に書き込まれる。
By such processing, the compressed image data is written in the
なお、図8(a)の例では、第1の並び替え部203、第2の並び替え部204でそれぞれ並び替えが行われた圧縮画像データを共に記憶装置105に記憶させるようにしているが、図8(b)に示すように、第1の並び替え部203で並び替えが行われた圧縮画像データを記憶装置105に書き込み、第2の並び替え部204で並び替えが行われた圧縮画像データを記憶装置105とは別の外部メディア110に書き込むようにしても良い。なお、外部メディア110としては、例えばメモリカードやハードディスクなどが用いられる。
In the example of FIG. 8A, the compressed image data that has been sorted by the
このような処理が、1ブロックライン分のリスタートマーカがカウントされるまで繰り返される。1ブロックライン分のリスタートマーカがカウントされた時点で、圧縮画像データ読み出し部203aにおける読み出しが一旦終了する。
Such a process is repeated until the restart marker for one block line is counted. When the restart marker for one block line is counted, reading by the compressed image
以後は次のブロックラインの処理に移り、このような処理が全ブロックラインの終了まで、即ち1フレーム分の処理が終了するまで繰り返される。 Thereafter, the processing moves to the next block line, and such processing is repeated until the end of all the block lines, that is, until the processing for one frame is completed.
次に、第1の実施形態の効果について図9(a)及び図9(b)を参照して説明する。上記したように、画像処理部A107aと画像処理部B107bとにおいては、画像処理によって補間画素データ部分が削られる。一般の画像処理においては、この削られる部分をなるべく少なくできるように、1ブロックライン分の画像データを記憶装置105から読み出す際に図9(a)や図9(b)に示すようにして補間画素データを重複するように読み出すようにしている。このような読み出しを行うようにすれば、補間画素データとして最終的に削られる部分は記憶装置105に記憶されている画像データ中の上端及び下端のみとなる。このとき削られる補間画素データは処理後の画像データの幅には依存しない。なお、実際には画像データ中の左端及び右端も削られるがこれらの影響は無視することができる程度のものである。
Next, the effect of 1st Embodiment is demonstrated with reference to Fig.9 (a) and FIG.9 (b). As described above, in the image
ここで、1回の入力で画像処理部107に入力できる列方向入力画素数が少ないと、図9(a)に示すように、1フレーム分の画像データを処理するために画像処理部に1ブロックライン分の画像データを入力する回数も多くなる。この場合、重複して読み出さなければならない補間画素データのデータ量が大きくなり、画像処理部107に入力するデータの総量が大きくなって画像処理の効率が低くなってしまう。
Here, if the number of input pixels in the column direction that can be input to the
これに対し第1の実施形態では、圧縮処理部108に複数の圧縮単位の画像データを入力できるようにすることにより、図9(b)に示すように画像処理部107に入力する1ブロックライン分の画像データの列方向幅を大きくすることができる。これにより、重複して読み出さなければならない補間画素データのデータ量を少なくして入力データの総量を減らし、画像処理の効率を向上させることが可能である。
On the other hand, in the first embodiment, by allowing image data of a plurality of compression units to be input to the
また、圧縮処理部108に複数の圧縮単位の画像データを入力するようにしたことにより、画像再生の際の伸長時において正しい並び順の画像データが復元されなくなってしまうが、第1の実施形態では圧縮処理の際に圧縮単位毎に得られた圧縮画像データの並び替えを行うことにより、伸長時において正しい並び順の画像データが復元される。
In addition, by inputting image data of a plurality of compression units to the
[第2の実施形態]
図10は、本発明の第2の実施形態に係る画像処理装置における第1の並び替え部及び第2の並び替え部の構成について示す図である。この第2の実施形態は、第1の記憶領域を符号バッファの数に対応して分割することによって符号バッファBUF−a〜符号バッファBUF−dに対応した記憶領域を予め確保しておく例である。ここで、図10(a)は第1の並び替え部で並び替えられた圧縮画像データが格納される第1の記憶領域105cと第2の並び替え部で並び替えられた圧縮画像データが格納される第2の記憶領域105dとを同一の記憶装置105に設けた例を示す図である。一方、図10(b)は第1の並び替え部203で並び替えられた圧縮画像データが格納される第1の記憶領域105cを記憶装置105に設け、第2の並び替え部204で並び替えられた圧縮画像データが格納される第2の記憶領域105dを外部メディア110に設けた例を示す図である。なお、これ以外の構成については第1の実施形態で説明したものと同様である。
[Second Embodiment]
FIG. 10 is a diagram illustrating a configuration of the first rearrangement unit and the second rearrangement unit in the image processing apparatus according to the second embodiment of the present invention. The second embodiment is an example in which storage areas corresponding to code buffer BUF-a to code buffer BUF-d are secured in advance by dividing the first storage area in accordance with the number of code buffers. is there. Here, FIG. 10A stores the
図10(a)及び図10(b)に示すように、第2の実施形態では、第1の並び替え部203で並び替えられた圧縮画像データが格納される記憶領域105cに、書き込みエリアA〜書き込みエリアDの4つの書き込みエリアが予め確保されている。このような第2の実施形態においては、符号バッファBUF−a〜符号バッファBUF−dからそれぞれ出力された圧縮画像データがそれぞれ対応する書き込みエリアに順次格納されていく。つまり、圧縮画像データ書き込み部203fによって、符号バッファBUF−aから入力された圧縮画像データが書き込みエリアAの先頭アドレスから順次書き込まれ、符号バッファBUF−bから入力された圧縮画像データが書き込みエリアBの先頭アドレスから順次書き込まれ、符号バッファBUF−cから入力された圧縮画像データが書き込みエリアCの先頭アドレスから順次書き込まれ、符号バッファBUF−dから入力された圧縮画像データが書き込みエリアDの先頭アドレスから順次書き込まれる。
As shown in FIGS. 10A and 10B, in the second embodiment, the write area A is stored in the
圧縮画像データ読み出し部204aでは記憶装置105の第1の記憶領域105cに書き込まれた圧縮画像データが書き込みエリアA、書き込みエリアB、書き込みエリアC、書き込みエリアDの順で順次読み出される。圧縮画像データ書き込み部204bでは圧縮画像データ読み出し部204aで読み出された圧縮画像データが、そのままの順序で第2の記憶領域105dに書き込まれる。
The compressed image
以上の第1の並び替え処理が終了すると、書き込みエリアAにはJPEGコアI/F部201のバッファBUF−Aに格納されて圧縮された圧縮単位の圧縮画像データ(1−1、2−1、…、h−(v−3))が格納され、書き込みエリアBにはJPEGコアI/F部201のバッファBUF−Bに格納されて圧縮された圧縮単位の圧縮画像データ(1−2、2−2、…、h−(v−2))が格納され、同様にして、書き込みエリアCと書き込みエリアDには、バッファBUF−Cに格納されて圧縮された圧縮単位の圧縮画像データ(1−3、2−3、…、h−(v−1))、バッファBUF−Dに格納されて圧縮された圧縮単位の圧縮画像データ(1−4、2−4、…、h−v)がそれぞれ格納される。
When the first rearrangement process is completed, the compressed image data (1-1, 2-1) in the compression unit stored in the buffer BUF-A of the JPEG core I /
以上説明したような第2の実施形態では第1の並び替え処理を行う際に次エリアの先頭アドレスを末尾部分に格納しておく必要がない。 In the second embodiment as described above, it is not necessary to store the start address of the next area in the end portion when performing the first rearrangement process.
以上実施形態に基づいて本発明を説明したが、本発明は上記した実施形態に限定されるものではなく、本発明の要旨の範囲内で種々の変形や応用が可能なことは勿論である。例えば、上記した各実施形態では、記憶装置105から画像処理部107に入力する画像データの列方向の入力画素数をMCUの4倍で説明しているが、この数を変更しても良い。また、BUF−A〜BUF−Dのそれぞれを入力側のバッファと出力側のバッファの2つのバッファで構成する所謂バタフライ構成として処理の高速化を図るようにしても良い。
Although the present invention has been described based on the above embodiments, the present invention is not limited to the above-described embodiments, and various modifications and applications are naturally possible within the scope of the gist of the present invention. For example, in each of the embodiments described above, the number of input pixels in the column direction of the image data input from the
さらに、上記した実施形態には種々の段階の発明が含まれており、開示される複数の構成要件の適当な組合せにより種々の発明が抽出され得る。例えば、実施形態に示される全構成要件からいくつかの構成要件が削除されても、発明が解決しようとする課題の欄で述べた課題が解決でき、発明の効果の欄で述べられている効果が得られる場合には、この構成要件が削除された構成も発明として抽出され得る。 Further, the above-described embodiments include various stages of the invention, and various inventions can be extracted by appropriately combining a plurality of disclosed constituent elements. For example, even if some constituent requirements are deleted from all the constituent requirements shown in the embodiment, the problem described in the column of the problem to be solved by the invention can be solved, and the effect described in the column of the effect of the invention Can be extracted as an invention.
101…撮像部(CCD)、102…プリプロセス部、103,106,109…DMA、104…バス、105…記憶装置、107…画像処理部、108…圧縮処理部、110…外部メディア、201…JPEGコアI/F部、202…JPEGコア、203…第1の並び替え部、204…第2の並び替え部
DESCRIPTION OF
Claims (8)
前記画像処理部により画像処理された画像データを、列方向の入力画素数が圧縮処理の最小単位のN(N≧2)倍となるようなブロック単位で該ブロック単位の画像データを走査線の長さ
分並べた1ブロックライン分順次入力し、この入力されたブロック単位の画像データを順次圧縮処理することにより1ブロックライン分のブロック単位の圧縮画像データを得る圧縮処理部と、
前記圧縮処理部で得られた1ブロックライン分のブロック単位の圧縮画像データを順次読み出して第1の並び替え処理を施す第1の並び替え部と、
前記第1の並び替え部で並び替えられた前記1ブロックライン分のブロック単位の圧縮画像データが順次書き込まれる第1の記憶領域を有する記憶部と、
前記記憶部の第1の記憶領域に書き込まれた圧縮画像データを読み出して、第2の並び替え処理を施し、並び順を変更した1ブロックライン分のブロック単位の圧縮画像データを前記第1の記憶領域とは別の第2の記憶領域に順次書き込む第2の並び替え部と、
を具備することを特徴とする画像処理装置。 A plurality of serially connected image processing units for performing spatial image processing on the supplied image data;
The image data processed by the image processing unit is converted into image data of the block unit in block units such that the number of input pixels in the column direction is N (N ≧ 2) times the minimum unit of compression processing. A compression processing unit which sequentially inputs one block line arranged in length and obtains compressed image data in block units for one block line by sequentially compressing the input block unit image data;
A first rearrangement unit that sequentially reads out the compressed image data in block units for one block line obtained by the compression processing unit and performs a first rearrangement process;
A storage unit having a first storage area in which compressed image data in units of blocks for the one block line rearranged by the first rearrangement unit is sequentially written;
The compressed image data written in the first storage area of the storage unit is read out, subjected to a second rearrangement process, and the compressed image data in block units for one block line whose arrangement order has been changed is changed to the first A second rearrangement unit for sequentially writing to a second storage area different from the storage area;
An image processing apparatus comprising:
前記圧縮処理部は、前記ブロック単位の画像データを格納する単一或いは複数のバッファを含み、
前記圧縮処理部は、前記1ブロックライン分のブロック単位の圧縮画像データを得る際に、行方向に1画素分で列方向に前記圧縮処理の最小単位のN倍の画素数からなる画像データを順次前記バッファに格納することを行方向に繰り返して前記バッファにブロック単位毎の圧縮単位の画像データをN個分格納し、前記格納されたブロック単位毎のN個分の圧縮単位の画像データを、列方向で1番上の圧縮単位の画像データから順次圧縮処理を施し、1つの圧縮単位の画像データの圧縮処理が終了するごとに、圧縮処理が終了した画像データに前記圧縮単位の画像データの圧縮処理が終了したことを示すリスタートマーカを付加することでブロック単位毎の圧縮単位の圧縮画像データを得て、該得られたブロック単位毎の圧縮単位の圧縮画像データを順次1ブロックライン分前記第1の並び替え部に出力することを特徴とする請求項1に記載の画像処理装置。 The block unit image data includes N units of compression unit image data consisting of image data corresponding to the number of pixels that is M times the minimum unit of the compression process in the column direction and M units of the minimum unit of the compression process in the column direction. It is an array of pieces,
The compression processing unit includes a single or a plurality of buffers for storing the block-unit image data,
When obtaining the compressed image data in units of blocks for the one block line, the compression processing unit obtains image data composed of one pixel in the row direction and N pixels as the minimum unit of the compression processing in the column direction. Sequential storage in the buffer is repeated in the row direction, and N pieces of compression unit image data for each block unit are stored in the buffer, and N pieces of compression unit image data for each stored block unit are stored. Each time compression processing is performed sequentially from the image data of the first compression unit in the column direction, and the compression processing of the image data of one compression unit is completed, the image data of the compression unit is added to the compressed image data. The compressed marker data for each block unit is obtained by adding a restart marker indicating that the compression processing has been completed, and the compressed image data of the obtained compression unit for each block unit is obtained. The image processing apparatus according to claim 1, characterized in that sequentially outputs the one block line of the first sorting section the data.
前記第2の並び替え部は、前記第1の並び替え処理によって並び順を変更され前記複数の記憶領域に書き込まれた圧縮単位毎の圧縮画像データを、同一の符号バッファに対応する圧縮単位毎の圧縮画像データのみを順次読み出し、前記第2の記憶領域にそのままの順序で書き込むことで前記第2の並び替え処理を行うことを特徴とする請求項2に記載の画像処理装置。 The first rearrangement unit includes K (1 ≦ 1) from the top of the compression unit image data of each block among the compressed image data for each compression unit of one block line sequentially output from the compression processing unit. K ≦ N) including N code buffers for inputting and storing only compressed image data for each compression unit corresponding to image data of the compression unit, and for each compression unit stored in the N code buffers The compressed image data is written in correspondence with each of a plurality of storage areas obtained by dividing the first storage area of the storage unit so as to correspond to the code buffer.
The second rearrangement unit changes the compressed image data for each compression unit whose arrangement order is changed by the first rearrangement process and written in the plurality of storage areas, for each compression unit corresponding to the same code buffer. The image processing apparatus according to claim 2, wherein only the compressed image data is sequentially read out and written in the second storage area in the same order as it is, so that the second rearrangement process is performed.
前記第1の並び替え部は、前記N個の符号バッファから出力される圧縮単位の圧縮画像データを、対応する前記複数の記憶領域に順次格納し、
前記第2の並び替え部は、前記同一の符号バッファに対応する前記複数の記憶領域に格納された圧縮単位の圧縮画像データを順次読み出して、前記第2の記憶領域に書き込むことを特徴とする請求項3に記載の画像処理装置。 The first storage area is composed of a single storage area, and the single storage area is divided into a plurality of storage areas corresponding to the N code buffers,
The first rearrangement unit sequentially stores compressed image data of compression units output from the N code buffers in the plurality of corresponding storage areas,
The second rearrangement unit sequentially reads out compressed image data of compression units stored in the plurality of storage areas corresponding to the same code buffer, and writes the compressed image data in the second storage area. The image processing apparatus according to claim 3.
前記第1の並び替え部は、前記N個の符号バッファから出力される圧縮単位の圧縮画像データを、前記N個の記憶領域のうち対応する記憶領域に順次格納し、
前記第2の並び替え部は、前記N個の記憶領域のそれぞれに格納された圧縮単位の圧縮画像データを同一の記憶領域の圧縮単位の圧縮画像データ毎に順次読み出して、前記第2の記憶領域に書き込むことを特徴とする請求項3に記載の画像処理装置。 The first storage area is divided into N storage areas corresponding to the N code buffers on a one-to-one basis,
The first rearrangement unit sequentially stores compressed image data of a compression unit output from the N code buffers in a corresponding storage area among the N storage areas;
The second rearrangement unit sequentially reads out the compressed image data of the compression unit stored in each of the N storage areas for each compressed image data of the compression unit of the same storage area, and performs the second storage. The image processing apparatus according to claim 3, wherein the image processing apparatus writes in the area.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005216102A JP4713970B2 (en) | 2005-07-26 | 2005-07-26 | Image processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005216102A JP4713970B2 (en) | 2005-07-26 | 2005-07-26 | Image processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007036596A JP2007036596A (en) | 2007-02-08 |
JP4713970B2 true JP4713970B2 (en) | 2011-06-29 |
Family
ID=37795314
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005216102A Expired - Fee Related JP4713970B2 (en) | 2005-07-26 | 2005-07-26 | Image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4713970B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8369632B2 (en) | 2009-04-08 | 2013-02-05 | Olympus Corporation | Image processing apparatus and imaging apparatus |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002084493A (en) * | 2000-09-08 | 2002-03-22 | Matsushita Electric Ind Co Ltd | Solid-state image pickup device and image pickup method |
JP2003189109A (en) * | 2001-10-09 | 2003-07-04 | Canon Inc | Image processor and image processing method, and computer program |
JP2003219185A (en) * | 2001-11-14 | 2003-07-31 | Olympus Optical Co Ltd | Image processor and processing method |
-
2005
- 2005-07-26 JP JP2005216102A patent/JP4713970B2/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002084493A (en) * | 2000-09-08 | 2002-03-22 | Matsushita Electric Ind Co Ltd | Solid-state image pickup device and image pickup method |
JP2003189109A (en) * | 2001-10-09 | 2003-07-04 | Canon Inc | Image processor and image processing method, and computer program |
JP2003219185A (en) * | 2001-11-14 | 2003-07-31 | Olympus Optical Co Ltd | Image processor and processing method |
Also Published As
Publication number | Publication date |
---|---|
JP2007036596A (en) | 2007-02-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2010521728A5 (en) | ||
CN102750689A (en) | Image processing apparatus and control method thereof | |
JP5359569B2 (en) | Memory access method | |
CN111630560A (en) | Method and system for correcting a distorted input image | |
KR100793286B1 (en) | Digital video codec using small size buffer memory, and method for controlling the same | |
JP5231330B2 (en) | Image processing device | |
WO2006129518A1 (en) | Memory access method | |
JP4819517B2 (en) | Image processing method and image processing apparatus | |
CN111147849B (en) | Post-processing apparatus and post-processing method | |
JP4713970B2 (en) | Image processing device | |
JP4713957B2 (en) | Image processing device | |
CN104243886A (en) | High-speed image analyzing and video generating technology based on plug-in technology | |
JP2008072585A (en) | Method of supplying data for arithmetic processing and image processing apparatus | |
CN100444633C (en) | Image processing method and image processing apparatus | |
CN103369193B (en) | Image processing apparatus and image processing system | |
JP3560804B2 (en) | Moving image encoding method and apparatus | |
JP2017192045A (en) | Image processing apparatus | |
JP4109151B2 (en) | Image processing device | |
JP7234000B2 (en) | Image data processing device for affine transformation of two-dimensional image | |
JP6544905B2 (en) | Image processing apparatus, image processing method, program | |
JP2007110419A (en) | Image magnification method | |
US20140286583A1 (en) | Image encoder and image processing system | |
JP2006121343A (en) | Image processor | |
JP6411250B2 (en) | Image processing apparatus and image processing method | |
WO2017208540A1 (en) | Image processing device, image processing method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080321 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20101015 |
|
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: 20101213 |
|
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: 20110315 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110325 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4713970 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313115 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |