JP4713970B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

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
Application number
JP2005216102A
Other languages
Japanese (ja)
Other versions
JP2007036596A (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.)
Olympus Corp
Olympus Imaging Corp
Original Assignee
Olympus Corp
Olympus Imaging Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Olympus Corp, Olympus Imaging Corp filed Critical Olympus Corp
Priority to JP2005216102A priority Critical patent/JP4713970B2/en
Publication of JP2007036596A publication Critical patent/JP2007036596A/en
Application granted granted Critical
Publication of JP4713970B2 publication Critical patent/JP4713970B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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 Patent Document 1. Yes. In the technique disclosed in Patent Document 1, an image processing apparatus is configured so that a plurality of image processing units and subsequent compression processing units are directly connected via a buffer. Interpolation pixel data necessary for image processing and data having column direction data for MCU (Minimum Coded Unit) which is the minimum unit necessary for compression processing are input together. Here, the MCU is data composed of, for example, data of 8 pixels × 8 pixels or 16 pixels × 16 pixels.

このような特許文献1では、画像処理部から圧縮処理部までの間の処理において、処理データをSDRAM等の記憶装置に転送する必要がなくなるため、バスのデータ転送量を低減することができる。
特開2000−311241号公報
In Patent Document 1, it is not necessary to transfer processing data to a storage device such as an SDRAM in the processing from the image processing unit to the compression processing unit, so that the data transfer amount of the bus can be reduced.
JP 2000-311241 A

特許文献1の手法では、画像処理後に圧縮処理部に入力されるデータの列方向幅が必ずMCU1つ分に限定されてしまう。ここで、昨今の画像処理技術の高度化により、補間画素数は増大する傾向にある。この一方で、補間画素数は、処理後のデータ幅には依存しないため、圧縮処理を行う際の入力データの列方向幅を大きくすることが画像処理の高効率化に繋がる。   In the method of Patent Document 1, the width in the column direction of data input to the compression processing unit after image processing is necessarily limited to one MCU. Here, the number of interpolation pixels tends to increase due to the recent advancement of image processing technology. On the other hand, since the number of interpolated pixels does not depend on the data width after processing, increasing the width in the column direction of input data when performing compression processing leads to higher efficiency of image processing.

本発明は、上記の事情に鑑みてなされたもので、圧縮処理部に入力できる画像データの列方向幅を大きくすることにより、より効率の良い画像処理が可能な画像処理装置を提供することを目的とする。   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 imaging unit 101, a preprocessing unit 102, a DMA 103, a bus 104, a storage device 105, a DMA 106, an image processing unit 107, a compression processing unit 108, and a DMA 109. It is configured. Further, the image processing unit 107 can perform a plurality of different image processes including spatial image processing such as enlargement / reduction processing (in FIG. 1, the image processing unit A 107a and the image processing unit 107). Part B107b) is connected directly.

図1において、撮像部101によって撮像されて得られた画像信号は、プリプロセス部102にて所定のアナログ処理及びデジタル処理が施される。これらの処理によって生成された画像データはDMA103を介してバス104に転送され、SDRAMなどで構成された記憶装置105に書き込まれる。   In FIG. 1, an image signal obtained by being imaged by the imaging unit 101 is subjected to predetermined analog processing and digital processing in a preprocessing unit 102. The image data generated by these processes is transferred to the bus 104 via the DMA 103 and written in the storage device 105 configured by SDRAM or the like.

記憶装置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 storage device 105 is input to the image processing unit 107 via the DMA 106. Here, in the first embodiment, the number of input pixels in the column direction is an integer multiple of the minimum unit data (MCU) necessary for the subsequent compression processing (for example, four times here) from the storage device 105 to the image processing unit 107. ) And image data composed of interpolated pixel data for interpolating the pixel data to be deleted in the image processing unit 107 (for such image data, this is referred to as image data for one block line). Entered. In order to input such image data for one block line, the image data stored in the storage device 105 is obtained by adding the interpolation pixel data to the data width four times the MCU in the column direction pixel by pixel. Image data is read by reading only the width and repeating this reading for the length of the scanning line in the row direction. By inputting the image data for each unit read in this way to the image processing unit 107, the interpolated pixel data portion is deleted by image processing in the image processing unit A 107a and the image processing unit B 107b, and finally. Only image data for each unit, in which the number of input pixels in the column direction is four times that of the MCU, is input to the compression processing unit 108. The compression processing unit 108 performs compression processing on the input image data, and then writes the compressed image data obtained thereby to the storage device 105 via the DMA 109.

なお、画像処理部107における画像処理は必ずしも全ての処理を行う必要は無く、必要のない画像処理を行わないようにバイパスさせることも可能である。図1の例では画像処理部B107bにおける処理をバイパスできるように構成されている。   Note that the image processing in the image processing unit 107 does not necessarily need to be performed entirely, and can be bypassed so as not to perform unnecessary image processing. In the example of FIG. 1, the processing in the image processing unit B 107b can be bypassed.

図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 compression processing unit 108 which is a main part of the image processing apparatus according to the first embodiment of the present invention. The compression processing unit 108 illustrated in FIG. 2 includes a JPEG core I / F unit 201, a JPEG core 202, a first rearrangement unit 203, and a second rearrangement unit 204.

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 / F unit 201 is provided with four buffers (BUF-A to BUF-D), and the image data input to the JPEG core I / F unit 201 is the buffers BUF-A to BUF. Stored sequentially in -D. Here, each of the buffers BUF-A to BUF-D has a capacity sufficient to store the image data input to the JPEG core I / F unit 201 by one compression unit. This one compression unit refers to non-compressed image data in which the number of pixels in the column direction is 1 MCU and the number of pixels in the row direction is an integer multiple of 1 MCU. A restart marker is added to the end portion of the image data in one compression unit during JPEG compression. Here, the restart marker is data for indicating a delimiter of compression processing. That is, if the restart marker interval is 2, that is, if a restart marker is added every 2 MCUs during compression, one compression unit is image data for 2 MCUs as shown in FIG. If a restart marker is added every 4 MCUs during compression, one compression unit is image data for 4 MCUs as shown in FIG.

以下、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 / F unit 201 as shown in FIG. 4, the compression units 1-1, 1-2, 1-3, and 1-4 at the upper left end are input to the JPEG core I / F unit 201 in parallel as shown in FIG. . Here, if the image data consisting of the compression unit image data 1-1, 1-2, 1-3, and 1-4 is referred to as block unit image data, the block unit image data is arranged in the row direction. Data is input for each pixel in the direction indicated by the arrow in FIG. 5, the first 1 MCU image data in the column direction is stored in the buffer BUF-A, and the next 1 MCU image data is stored in the buffer BUF-B. The data is stored in the buffer BUF-C and the buffer BUF-D, and this input operation is repeated until the number of pixels in the row direction reaches the number of pixels in one compression unit. These four compression units are separately stored in the buffers BUF-A to BUF-D as shown in FIG. When image data for one compression unit is stored in each of the buffers BUF-A to BUF-D, first, image data for one compression unit is input from the buffer BUF-A to the JPEG core 202, and thereafter the buffer BUF-B. , Buffer BUF-C, buffer BUF-D and image data for one compression unit are sequentially input to the JPEG core 202. When image data for one compression unit is output from each of the buffers BUF-A to BUF-D, the next four compression units 2-1, 2-2, 2-3, 2-4 are parallelized to the JPEG core I. / F unit 201 is input. Thereafter, similarly, four compression units are input in parallel to the JPEG core I / F unit 201, and four compression units are stored in four buffers and input to the JPEG core 202 as soon as possible. As a result, image data for each compression unit is input to the JPEG core 202 in the order shown in FIG.

JPEGコア202では1圧縮単位分の画像データが入力されるたびにJPEG圧縮処理が行われる。そして、1圧縮単位分の画像データが圧縮されるごとにリスタートマーカが付加されて圧縮画像データが生成される。ここで、リスタートマーカは8のモジュロで番号付けされる。つまり、1つの圧縮単位分の圧縮画像データが生成されるたびに、FFD0、FFD1、FFD2、FFD3、FFD4、FFD5、FFD6、FFD7、FFD0、FFD1…、の順で番号付けされたリスタートマーカが付加される。   The JPEG core 202 performs JPEG compression processing every time image data for one compression unit is input. Each time image data for one compression unit is compressed, a restart marker is added to generate compressed image data. Here, the restart markers are numbered with 8 modulo. That is, each time compressed image data for one compression unit is generated, restart markers numbered in the order of FFD0, FFD1, FFD2, FFD3, FFD4, FFD5, FFD6, FFD7, FFD0, FFD1,. Added.

ここで、図7に示す順序でJPEGコア202に入力されて圧縮された圧縮画像データをそのまま図7に示す順序で記憶装置105に書き込んだ場合には、一般の画像再生装置においては圧縮画像データの伸長を行う場合に圧縮画像データを行方向に読み出して行うので、図7の順序で記憶された圧縮画像データを伸長しても図4に示す元の画像の順序で伸長することはできない。そこで、以後の第1の並び替え部203及び第2の並び替え部204を利用して圧縮画像データの並び替えを行った後で記憶装置105に記憶させるようにする。   Here, when the compressed image data input and compressed to the JPEG core 202 in the order shown in FIG. 7 is written as it is into the storage device 105 in the order shown in FIG. 4 is read out in the row direction, the compressed image data stored in the order of FIG. 7 cannot be decompressed in the original image order shown in FIG. Therefore, after the rearrangement of the compressed image data is performed using the first rearrangement unit 203 and the second rearrangement unit 204, the storage device 105 stores them.

図8(a)は、第1の並び替え部203及び第2の並び替え部204の内部の構成を示す図である。   FIG. 8A is a diagram illustrating an internal configuration of the first rearrangement unit 203 and the second rearrangement unit 204.

まず、第1の並び替え処理を行う第1の並び替え部203は、圧縮画像データ読み出し部203aと、リスタートマーカ検出部203bと、リスタートマーカ書き換え部203cと、選択部203dと、選択部203eと、圧縮画像データ書き込み部203fとから構成されている。   First, the first rearrangement unit 203 that performs the first rearrangement process includes a compressed image data reading unit 203a, a restart marker detection unit 203b, a restart marker rewriting unit 203c, a selection unit 203d, and a selection unit. 203e and a compressed image data writing unit 203f.

圧縮画像データ読み出し部203aでは、JPEGコア202から1ブロックライン分の圧縮単位の圧縮画像データが順次読み出される。この読み出された圧縮画像データはリスタートマーカ検出部203bに入力される。リスタートマーカ検出部203bでは、圧縮画像データ読み出し部203aから入力された圧縮画像データ中のリスタートマーカの検出が行われると共にリスタートマーカの数がカウントされる。   The compressed image data reading unit 203 a sequentially reads compressed image data in a compression unit for one block line from the JPEG core 202. The read compressed image data is input to the restart marker detection unit 203b. The restart marker detection unit 203b detects the restart marker in the compressed image data input from the compressed image data reading unit 203a and counts the number of restart markers.

リスタートマーカ書き換え部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 rewriting unit 203c rewrites the marker number of the restart marker detected by the restart marker detection unit 203b. The marker number at the time of rewriting is
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 selection unit 203d, either the compressed image data read by the compressed image data reading unit 203a or the restart marker rewritten by the restart marker rewriting unit 203c is selectively output to the selection unit 203e. That is, the selection unit 203d outputs the compressed image data read by the compressed image data reading unit 203a until the restart marker is detected by the restart marker detection unit 203b, and the restart marker detection unit 203b restarts. When the marker is detected, the restart marker rewritten by the restart marker rewriting unit 203c is output. As a result, the restart marker whose marker number has been rewritten by the restart marker rewriting unit 203c is added to the end of the compressed image data for each compression unit.

選択部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 selection unit 203e, the compressed image data output from the selection unit 203d is selectively output to the code buffer BUF-a to the code buffer BUF-d. First, the selection unit 203e outputs compressed image data to the code buffer BUF-a until a restart marker is detected by the restart marker detection unit 203b. When the restart marker is detected by the restart marker detection unit 203b, the restart marker rewritten by the restart marker rewriting unit 203c is output to the code buffer BUF-a, and then the output destination of the compressed image data is switched. Is done. The compressed image data is output to the code buffer BUF-b until a restart marker is detected next time. When the restart marker is detected by the restart marker detection unit 203b, the restart marker rewritten by the restart marker rewriting unit 203c is output to the code buffer BUF-b, and then the output destination of the compressed image data is switched. Is done. The compressed image data is output to the code buffer BUF-c until a restart marker is detected next time. When the restart marker detecting unit 203b detects a restart marker, the restart marker rewritten by the restart marker rewriting unit 203c is output to the code buffer BUF-c, and then the output destination of the compressed image data is switched. Is done. The compressed image data is output to the code buffer BUF-d until a restart marker is detected next time.

以後も同様にして、リスタートマーカ検出部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 restart marker detector 203b. Thus, compressed image data for each compression unit compressed through the buffer BUF-A system is stored in the code buffer BUF-a, and compressed in the code buffer BUF-b through the buffer BUF-B system. Compressed image data for each compression unit is stored, compressed image data for each compression unit compressed through the buffer BUF-C system is stored in the code buffer BUF-c, and buffer BUF-d is stored in the code buffer BUF-d. Compressed image data for each compression unit compressed through the system D is stored. Here, the code buffer BUF-a to the code buffer BUF-d each have a capacity that is an integral multiple of the capacity that the compressed data writing unit 203f can write in one write operation. When the compressed image data is fully stored in the buffer, the compressed image data stored in the full code buffer is output to the compressed image data writing unit 203f.

圧縮画像データ書き込み部203fでは、符号バッファBUF−a〜符号バッファBUF−dから出力された圧縮画像データを記憶装置105の第1の記憶領域105aに1ブロックライン分書き込む第1の並び替え処理が行われる。この際にはバッファ番号に関係なく、フルになった符号バッファから順次圧縮画像データが書き込まれる。圧縮画像データ書き込み部203fは、まず、第1の並び替え処理の開始時に、記憶装置105内に各符号バッファに対応する書き込みエリア(図8(a)に示す書き込みエリアA−1〜D−1)を確保し、以後は、フルになった符号バッファに格納された圧縮画像データを順次対応する書き込みエリアに書き込み、最初にフルになった書き込みエリアに対応する次の書き込みエリアを現在確保されている最後の書き込みエリアに連続させて確保するようにする。また、この際に、新しく確保した書き込みエリアの先頭アドレスの値を対応する1つ前の書き込みエリアの末尾部分に書き込んでおくようにする。   The compressed image data writing unit 203f performs a first rearrangement process of writing the compressed image data output from the code buffer BUF-a to the code buffer BUF-d into the first storage area 105a of the storage device 105 for one block line. Done. At this time, the compressed image data is sequentially written from the full code buffer regardless of the buffer number. First, the compressed image data writing unit 203f, at the start of the first rearrangement process, writes the write areas corresponding to the code buffers in the storage device 105 (write areas A-1 to D-1 shown in FIG. 8A). After that, the compressed image data stored in the full code buffer is sequentially written to the corresponding write area, and the next write area corresponding to the first full write area is currently secured. It is ensured that the last writing area is continuously provided. At this time, the value of the start address of the newly secured write area is written to the end of the corresponding previous write area.

例えば、図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 first storage area 105a of the storage device 105.

次に、第2の並び替え処理を行う第2の並び替え部204は、圧縮画像データ読み出し部204aと、圧縮画像データ書き込み部204bとから構成されている。   Next, the second rearrangement unit 204 that performs the second rearrangement process includes a compressed image data reading unit 204a and a compressed image data writing unit 204b.

圧縮画像データ読み出し部204aでは、記憶装置105の第1の記憶領域105aに書き込まれた圧縮画像データが読み出される。この際、まず書き込みエリアA−1に書き込まれている圧縮画像データが読み出される。次に、書き込みエリアA−1の末尾部分に書き込まれた先頭アドレスの値が参照されて書き込みエリアA−2に書き込まれた圧縮画像データが読み出される。以後も同様にして書き込みエリアの末尾部分に書き込まれた先頭アドレスの値が参照されて符号バッファBUF−aの系の圧縮画像データが順次読み出される。次に、書き込みエリアB−1に書き込まれている圧縮画像データが読み出される。その後に、書き込みエリアB−1の末尾部分に書き込まれた先頭アドレスの値が参照されて書き込みエリアB−2に書き込まれた圧縮画像データが読み出される。以後も同様にして書き込みエリアの末尾部分に書き込まれた先頭アドレスの値が参照されて符号バッファBUF−bの系の圧縮画像データが順次読み出される。   The compressed image data reading unit 204 a reads the compressed image data written in the first storage area 105 a of the storage device 105. At this time, first, the compressed image data written in the writing area A-1 is read. Next, the compressed image data written in the writing area A-2 is read by referring to the value of the head address written in the end portion of the writing area A-1. Thereafter, similarly, the value of the head address written at the end of the writing area is referred to, and the compressed image data of the system of the code buffer BUF-a is sequentially read out. Next, the compressed image data written in the writing area B-1 is read out. After that, the compressed image data written in the writing area B-2 is read by referring to the value of the head address written in the end portion of the writing area B-1. Thereafter, similarly, the value of the head address written in the end portion of the writing area is referred to, and the compressed image data of the system of the code buffer BUF-b is sequentially read out.

その後も同様にして、符号バッファ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 data writing unit 204b, the compressed image data read by the compressed image data reading unit 204a is written in the second storage area 105b different from the first storage area 105a of the storage device 105 in the same order.

このような処理により、図4で示す並び順に対応した順序で圧縮画像データが記憶装置105に書き込まれる。   By such processing, the compressed image data is written in the storage device 105 in an order corresponding to the arrangement order shown in FIG.

なお、図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 first sorting unit 203 and the second sorting unit 204 are both stored in the storage device 105. 8B, the compressed image data that has been rearranged by the first rearrangement unit 203 is written in the storage device 105, and the second rearrangement unit 204 performs the rearrangement. You may make it write image data in the external medium 110 different from the memory | storage device 105. FIG. For example, a memory card or a hard disk is used as the external medium 110.

このような処理が、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 data reading unit 203a is once finished.

以後は次のブロックラインの処理に移り、このような処理が全ブロックラインの終了まで、即ち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 processing unit A 107a and the image processing unit B 107b, the interpolation pixel data portion is deleted by image processing. In general image processing, when the image data for one block line is read out from the storage device 105, interpolation is performed as shown in FIGS. Pixel data is read so as to overlap. If such reading is performed, only the upper and lower ends of the image data stored in the storage device 105 are finally cut as interpolation pixel data. The interpolated pixel data deleted at this time does not depend on the width of the processed image data. Actually, the left end and the right end in the image data are also removed, but these influences are negligible.

ここで、1回の入力で画像処理部107に入力できる列方向入力画素数が少ないと、図9(a)に示すように、1フレーム分の画像データを処理するために画像処理部に1ブロックライン分の画像データを入力する回数も多くなる。この場合、重複して読み出さなければならない補間画素データのデータ量が大きくなり、画像処理部107に入力するデータの総量が大きくなって画像処理の効率が低くなってしまう。   Here, if the number of input pixels in the column direction that can be input to the image processing unit 107 with a single input is small, as shown in FIG. 9A, 1 is input to the image processing unit to process image data for one frame. The number of times the image data for the block line is input also increases. In this case, the amount of interpolated pixel data that must be read redundantly increases, the total amount of data input to the image processing unit 107 increases, and image processing efficiency decreases.

これに対し第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 compression processing unit 108, one block line input to the image processing unit 107 as shown in FIG. 9B. The width in the column direction of the image data can be increased. As a result, it is possible to reduce the amount of interpolation pixel data that must be read redundantly, reduce the total amount of input data, and improve the efficiency of image processing.

また、圧縮処理部108に複数の圧縮単位の画像データを入力するようにしたことにより、画像再生の際の伸長時において正しい並び順の画像データが復元されなくなってしまうが、第1の実施形態では圧縮処理の際に圧縮単位毎に得られた圧縮画像データの並び替えを行うことにより、伸長時において正しい並び順の画像データが復元される。   In addition, by inputting image data of a plurality of compression units to the compression processing unit 108, image data in the correct arrangement order cannot be restored at the time of decompression at the time of image reproduction. The first embodiment Then, by rearranging the compressed image data obtained for each compression unit during the compression process, the image data in the correct arrangement order is restored at the time of decompression.

[第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 first storage area 105c in which the compressed image data rearranged by the first rearrangement unit is stored and the compressed image data rearranged by the second rearrangement unit. It is a figure which shows the example which provided the 2nd storage area 105d to be provided in the same memory | storage device 105. FIG. On the other hand, in FIG. 10B, the storage device 105 is provided with a first storage area 105 c in which the compressed image data rearranged by the first rearrangement unit 203 is stored, and the second rearrangement unit 204 performs rearrangement. It is a figure which shows the example which provided the 2nd storage area 105d in which the compressed image data by which it was stored in the external medium 110. FIG. Other configurations are the same as those described in the first embodiment.

図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 storage area 105c in which the compressed image data rearranged by the first rearrangement unit 203 is stored. Four write areas of .about.write area D are secured in advance. In such a second embodiment, the compressed image data output from the code buffer BUF-a to code buffer BUF-d are sequentially stored in the corresponding write areas. That is, the compressed image data writing unit 203f sequentially writes the compressed image data input from the code buffer BUF-a from the top address of the write area A, and the compressed image data input from the code buffer BUF-b is written to the write area B. Are sequentially written from the head address of the writing area C, the compressed image data input from the code buffer BUF-c is sequentially written from the head address of the writing area C, and the compressed image data input from the code buffer BUF-d is Sequentially written from the address.

圧縮画像データ読み出し部204aでは記憶装置105の第1の記憶領域105cに書き込まれた圧縮画像データが書き込みエリアA、書き込みエリアB、書き込みエリアC、書き込みエリアDの順で順次読み出される。圧縮画像データ書き込み部204bでは圧縮画像データ読み出し部204aで読み出された圧縮画像データが、そのままの順序で第2の記憶領域105dに書き込まれる。   The compressed image data reading unit 204a sequentially reads the compressed image data written in the first storage area 105c of the storage device 105 in the order of the writing area A, the writing area B, the writing area C, and the writing area D. The compressed image data writing unit 204b writes the compressed image data read by the compressed image data reading unit 204a to the second storage area 105d in the same order.

以上の第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 / F unit 201 and compressed in the writing area A is completed. ,..., H- (v-3)) are stored, and in the writing area B, compressed image data (1-2, 1-2) stored in the buffer BUF-B of the JPEG core I / F unit 201 and compressed. 2-2,..., H- (v-2)) are stored, and similarly, in the write area C and the write area D, compressed image data (in a compression unit stored in the buffer BUF-C and compressed) 1-3, 2-3,..., H- (v-1)), compressed image data (1-4, 2-4,..., Hv) stored in the buffer BUF-D and compressed. ) Are stored respectively.

以上説明したような第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 storage device 105 to the image processing unit 107 is described as four times that of the MCU, but this number may be changed. Further, the processing speed may be increased by a so-called butterfly configuration in which each of BUF-A to BUF-D is configured by two buffers, that is, an input side buffer and an output side buffer.

さらに、上記した実施形態には種々の段階の発明が含まれており、開示される複数の構成要件の適当な組合せにより種々の発明が抽出され得る。例えば、実施形態に示される全構成要件からいくつかの構成要件が削除されても、発明が解決しようとする課題の欄で述べた課題が解決でき、発明の効果の欄で述べられている効果が得られる場合には、この構成要件が削除された構成も発明として抽出され得る。   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.

本発明の第1の実施形態に係る画像処理装置の主要な構成について示す図である。1 is a diagram illustrating a main configuration of an image processing apparatus according to a first embodiment of the present invention. 本発明の第1の実施形態に係る画像処理装置の要部である圧縮処理部の構成について示した図である。It is the figure shown about the structure of the compression process part which is the principal part of the image processing apparatus which concerns on the 1st Embodiment of this invention. 圧縮単位について説明するための図である。It is a figure for demonstrating a compression unit. 圧縮単位毎に分割された画像データについて示した図である。It is the figure shown about the image data divided | segmented for every compression unit. 圧縮単位の画像データが画像処理部に入力されるときの入力順について示す図である。It is a figure shown about the input order when the image data of a compression unit is input into an image process part. 圧縮単位の画像データがバッファBUF−A〜BUF−Dに格納されるときの様子を示す図である。It is a figure which shows a mode when the image data of a compression unit are stored in buffer BUF-A-BUF-D. 圧縮単位毎の画像データがJPEGコアに入力されるときの入力順について示す図である。It is a figure shown about the input order when the image data for every compression unit is input into a JPEG core. 第1の実施形態における第1の並び替え部及び第2の並び替え部の内部の構成を示す図である。It is a figure which shows the structure inside the 1st rearrangement part and 2nd rearrangement part in 1st Embodiment. 第1の実施形態の効果について説明するための図である。It is a figure for demonstrating the effect of 1st Embodiment. 第2の実施形態における第1の並び替え部及び第2の並び替え部の内部の構成を示す図である。It is a figure which shows the structure inside the 1st rearrangement part in 2nd Embodiment, and a 2nd rearrangement part.

符号の説明Explanation of symbols

101…撮像部(CCD)、102…プリプロセス部、103,106,109…DMA、104…バス、105…記憶装置、107…画像処理部、108…圧縮処理部、110…外部メディア、201…JPEGコアI/F部、202…JPEGコア、203…第1の並び替え部、204…第2の並び替え部   DESCRIPTION OF SYMBOLS 101 ... Imaging part (CCD), 102 ... Pre-processing part, 103, 106, 109 ... DMA, 104 ... Bus, 105 ... Storage device, 107 ... Image processing part, 108 ... Compression processing part, 110 ... External media, 201 ... JPEG core I / F unit, 202 ... JPEG core, 203 ... first rearrangement unit, 204 ... second rearrangement unit

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:
前記ブロック単位の画像データは、列方向に前記圧縮処理の最小単位、行方向に前記圧縮処理の最小単位のM倍である画素数分の画像データからなる圧縮単位の画像データを列方向にN個分並べたものであり、
前記圧縮処理部は、前記ブロック単位の画像データを格納する単一或いは複数のバッファを含み、
前記圧縮処理部は、前記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.
前記第1の並び替え部は、前記圧縮処理部から順次出力される1ブロックライン分の圧縮単位毎の圧縮画像データのうちで、前記各ブロックの圧縮単位の画像データの上からK(1≦K≦N)番目の圧縮単位の画像データに対応する圧縮単位毎の圧縮画像データのみをそれぞれ入力して格納するN個の符号バッファを含み、前記N個の符号バッファに格納された圧縮単位毎の圧縮画像データを、前記記憶部の第1の記憶領域を前記符号バッファに対応するように分割した複数の記憶領域にそれぞれ対応させて書き込むことで前記第1の並び替え処理を行い、
前記第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個の符号バッファのそれぞれに対応する複数の記憶領域に分割されており、
前記第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個の符号バッファに1対1で対応するN個の記憶領域に分割されており、
前記第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.
前記第1の並び替え部は、前記1ブロックライン分の圧縮単位の圧縮画像データに対して前記第1の並び替え処理を施す際に、前記リスタートマーカの書き換えを行うことを特徴とする請求項2に記載の画像処理装置。   The first rearrangement unit rewrites the restart marker when performing the first rearrangement process on the compressed image data of the compression unit for one block line. Item 3. The image processing apparatus according to Item 2. 前記第2の記憶領域は、前記記憶部に、前記第1の記憶領域とは別に設けられている記憶領域であることを特徴とする請求項1乃至6の何れか1つに記載の画像処理装置。   The image processing according to claim 1, wherein the second storage area is a storage area provided in the storage unit separately from the first storage area. apparatus. 前記第2の記憶領域は、前記記憶部とは別個に設けられた記憶装置における記憶領域であることを特徴とする請求項1乃至6の何れか1つに記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the second storage area is a storage area in a storage device provided separately from the storage unit.
JP2005216102A 2005-07-26 2005-07-26 Image processing device Expired - Fee Related JP4713970B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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