JP2016105329A - Data processing apparatus and data processing method - Google Patents

Data processing apparatus and data processing method Download PDF

Info

Publication number
JP2016105329A
JP2016105329A JP2016041546A JP2016041546A JP2016105329A JP 2016105329 A JP2016105329 A JP 2016105329A JP 2016041546 A JP2016041546 A JP 2016041546A JP 2016041546 A JP2016041546 A JP 2016041546A JP 2016105329 A JP2016105329 A JP 2016105329A
Authority
JP
Japan
Prior art keywords
data
pack
area
bus
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2016041546A
Other languages
Japanese (ja)
Other versions
JP6242417B2 (en
Inventor
隆輔 土田
Ryusuke Tsuchida
隆輔 土田
上野 晃
Akira Ueno
晃 上野
方己 島村
Masami Shimamura
方己 島村
田中 義信
Yoshinobu Tanaka
義信 田中
崇志 梁田
Takashi Yanada
崇志 梁田
知行 仙石
Tomoyuki Sengoku
知行 仙石
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
Original Assignee
Olympus 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 filed Critical Olympus Corp
Priority to JP2016041546A priority Critical patent/JP6242417B2/en
Publication of JP2016105329A publication Critical patent/JP2016105329A/en
Application granted granted Critical
Publication of JP6242417B2 publication Critical patent/JP6242417B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a data processing apparatus configured to reduce power consumption for data transfer, while maintaining data transfer efficiency, and a data processing method.SOLUTION: A data processing apparatus includes: a first data generation section which sets a first bus area and a second bus area on a data bus to divide packed data into a first pack area and a second pack area, and extracts first data to be packed in the first pack area without space, so as to be transferred from the same position in the first bus area during burst transfer of the first data; a second data generation section which packs second data, which is input data left by the first data generation section, in the second pack area; and a data connection section which connects the first data packed in the first pack area with the second data packed in the second pack area to generate packed data.SELECTED DRAWING: Figure 1

Description

本発明は、データ処理装置およびデータ処理方法に関する。   The present invention relates to a data processing apparatus and a data processing method.

静止画用カメラ、動画用カメラ、医療用内視鏡カメラ、または産業用内視鏡カメラなどの撮像装置では、撮像装置の画素数や速度の向上に伴って、膨大な画素のデータ(以下、「画素データ」という)が含まれる画像データを処理している。このような撮像装置においては、撮像装置内の各処理ブロックが撮影によって得られた画像データを処理する際に、データを一時的に記憶するメモリが利用されている。メモリには、各処理段階の画像データが一時記憶される。   In an imaging device such as a still image camera, a video camera, a medical endoscope camera, or an industrial endoscope camera, as the number of pixels and the speed of the imaging device improve, Image data including “pixel data”). In such an imaging apparatus, a memory for temporarily storing data is used when each processing block in the imaging apparatus processes image data obtained by imaging. The memory temporarily stores image data at each processing stage.

図14は、従来の撮像装置の概略構成を示したブロック図である。例えば、図14に示した撮像装置における撮影動作では、以下のような手順で画像データの処理が行われている。
(手順1):まず、撮像処理部が、例えば、CCD(Charge Coupled Device:電荷結合素子)型の固体撮像素子によって得られた画像データを、出力DMA(Direct Memory Access)部を介してメモリに転送して一時記憶する。
(手順2):続いて、画像処理部が、メモリに一時記憶している画像データを、入力DMA部を介して読み出す。そして、画像処理部は、読み出した画像データに対して記録用の画像処理や、表示用の画像処理を行う。その後、画像処理した後の画像データを、出力DMA部を介してメモリに転送して一時記憶する。
(手順3):続いて、表示処理部が、表示用の画像処理がされた画像データを、入力DMA部を介して読み出し、表示デバイスに表示させる。
FIG. 14 is a block diagram illustrating a schematic configuration of a conventional imaging apparatus. For example, in the shooting operation in the imaging apparatus shown in FIG. 14, image data processing is performed in the following procedure.
(Procedure 1): First, the imaging processing unit, for example, stores image data obtained by a CCD (Charge Coupled Device) type solid-state imaging device in a memory via an output DMA (Direct Memory Access) unit. Transfer and store temporarily.
(Procedure 2): Subsequently, the image processing unit reads out the image data temporarily stored in the memory via the input DMA unit. The image processing unit performs image processing for recording and image processing for display on the read image data. Thereafter, the image data after the image processing is transferred to the memory via the output DMA unit and temporarily stored.
(Procedure 3): Subsequently, the display processing unit reads out the image data subjected to the image processing for display via the input DMA unit, and displays it on the display device.

このように、撮像装置では、前段の処理ブロックが、画像データをメモリに一時記憶する。そして、後段の処理ブロックが、メモリに記録されている画像データを読み出して、次の処理を行う。このように、撮像装置内の各処理ブロックが、メモリを介して処理対象の画像データの受け渡しを行うことによって、撮像装置の全体の処理を順次行っている。   As described above, in the imaging apparatus, the preceding processing block temporarily stores the image data in the memory. Then, the subsequent processing block reads the image data recorded in the memory and performs the next processing. In this manner, each processing block in the imaging apparatus sequentially performs the entire processing of the imaging apparatus by transferring the image data to be processed via the memory.

近年、静止画用カメラ、動画用カメラなどの撮像装置においては、長い時間連続して使用できることが望まれており、撮像装置内の電気回路の消費電力を低減させる技術が必要とされている。撮像装置の消費電力を低減させるための1つの方法として、各処理ブロック(電気回路)とメモリとの間での画像データの転送速度を高速にする方法が挙げられる。画像データの転送速度の高速化は、例えば、撮像装置が動作するクロックの周波数を高くしたり、各処理ブロックとメモリ間の画像データの転送期間を短縮させたりすることによって実現することができる。これらの方法は、画像データの転送速度を高速にすることによって、画像データの転送に係る消費電力を低減させるものである。   In recent years, it has been desired that imaging devices such as still image cameras and moving image cameras can be used continuously for a long time, and a technique for reducing the power consumption of an electric circuit in the imaging device is required. One method for reducing the power consumption of the imaging apparatus is a method of increasing the transfer speed of image data between each processing block (electric circuit) and the memory. Increasing the transfer rate of image data can be realized, for example, by increasing the frequency of the clock at which the imaging apparatus operates, or by shortening the transfer period of image data between each processing block and the memory. These methods reduce the power consumption for transferring image data by increasing the transfer rate of image data.

処理ブロックとメモリ間の画像データの転送期間を短縮させるための技術として、特許文献1に開示されているようなパッキングという技術が知られている。特許文献1で開示されたパッキング技術は、画像データ内の各画素データをメモリに転送する際に使用されるデータバスのバス幅を拡張し、隣接する複数の画素データをデータバスに配置(パッキング)することによって、複数の画素データを一度に転送するという技術である。この技術によって、全ての画素データを転送するために要するデータ転送の回数を、画素データを1画素毎に転送する以前のデータ転送に比べて少なくすることができ、画像データのデータ転送に係る期間を短縮することができる。例えば、図15に示したような、16行×16列のベイヤー配列のCCDから得られた画素データをメモリに転送する場合、特許文献1で開示されたパッキング技術では、4画素分の画素データを一度に転送する単位とすることによって、画像データの転送期間を1/4に短縮することができる。これにより、画素データを1画素ずつメモリに転送する場合に比べて、撮像装置内の電気回路の消費電力を低減させることができる。   As a technique for shortening the transfer period of image data between a processing block and a memory, a technique called packing as disclosed in Patent Document 1 is known. The packing technique disclosed in Patent Document 1 expands the bus width of a data bus used when transferring each pixel data in image data to a memory, and arranges adjacent pixel data on the data bus (packing). ) To transfer a plurality of pixel data at a time. With this technique, the number of times of data transfer required to transfer all pixel data can be reduced compared to the data transfer before transferring pixel data for each pixel, and the period related to data transfer of image data Can be shortened. For example, when pixel data obtained from a 16-row × 16-column Bayer array CCD as shown in FIG. 15 is transferred to a memory, the packing technique disclosed in Patent Document 1 uses pixel data for four pixels. By using as a unit for transferring at a time, the transfer period of image data can be shortened to ¼. Thereby, the power consumption of the electric circuit in the imaging device can be reduced as compared with the case where the pixel data is transferred to the memory pixel by pixel.

また、さらに画像データの転送期間を短縮する技術として、DMAのバースト転送を利用したパッキング方法が考えられる。これは、予め定められた一定のサイクル数でメモリにアクセスする単位である1バーストを、画素データをパッキングする単位として考える方法である。図16に画素データのパッキングの一例を示す。図16(a)は、特許文献1で開示されたパッキング方法で図15に示した画素データをパッキングした場合の一例を示し、図16(b)は、バーストの単位で図15に示した画素データをパッキングした場合の一例を示している。なお、図16では、画素データをメモリに転送する際に使用するデータバス(以下、「メモリバス」という)のバス幅(以下、「メモリバス幅」という)を32bitとし、バースト転送における1サイクル分のメモリアクセス(以下、「1転送」という)を4回、すなわち、4転送で1回のバースト転送を行う場合の例を示している。そして、図16(a)および図16(b)では、それぞれ上から順に、1画素の画素データの分解能、すなわち、画素データのビット数が、9bit、10bit、12bit、および14bitである場合の一例を示している。   Further, as a technique for further shortening the transfer period of image data, a packing method using DMA burst transfer is conceivable. In this method, one burst, which is a unit for accessing the memory at a predetermined number of cycles, is considered as a unit for packing pixel data. FIG. 16 shows an example of packing of pixel data. FIG. 16A shows an example in which the pixel data shown in FIG. 15 is packed by the packing method disclosed in Patent Document 1, and FIG. 16B shows the pixels shown in FIG. 15 in units of bursts. An example of packing data is shown. In FIG. 16, a bus width (hereinafter referred to as “memory bus width”) of a data bus (hereinafter referred to as “memory bus width”) used for transferring pixel data to the memory is set to 32 bits, and one cycle in burst transfer. In this example, memory access for one minute (hereinafter referred to as “one transfer”) is performed four times, that is, one burst transfer is performed with four transfers. In FIGS. 16A and 16B, an example in which the resolution of pixel data of one pixel, that is, the number of bits of pixel data is 9 bits, 10 bits, 12 bits, and 14 bits, in order from the top, respectively. Is shown.

図16からわかるように、図16(a)に示した特許文献1で開示されたパッキング方法では、1転送あたり2画素分の画素データがメモリバスに配置され、1バーストあたり8画素分の画素データをメモリに転送することができる。これに対して図16(b)に示したバースト単位でのパッキング方法では、それぞれ、14画素分、12画素分、10画素分、および9画素分の画素データをメモリに転送することができる。これは、特許文献1で開示されたパッキング方法は、メモリバス幅、すなわち、1転送の単位で画素データを配置(パッキング)するため、配置する複数の画素データのビット数の合計がメモリバス幅を超えないようにする必要がある。このため、特許文献1で開示されたパッキング方法では、メモリバス幅内に画素データを割り当てることができないビット(以下、「未使用ビット」という)が多く存在してしまう。これに対し、バースト単位でのパッキング方法は、1バーストの単位で画素データを配置(パッキング)するため、図16(b)のように、配置する複数の画素データのビット数の合計がメモリバス幅を超えてしまう場合でも、1バーストを超えなければ次の転送に画素データを配置(パッキング)することができる。すなわち、バースト単位でのパッキング方法では、メモリバス幅が画素データの分解能の整数倍ではない場合においても、1転送の単位を跨いで画素データを配置(マッピング)することができるため、未使用ビットを少なくすることができるのである。このことにより、バースト単位でのパッキング方法は、特許文献1で開示されたパッキング方法よりも、同じ時間で多くの画素データをメモリに転送する、すなわち、画像データの転送期間を短縮することができ、撮像装置内の電気回路の消費電力を、さらに低減させることができる。   As can be seen from FIG. 16, in the packing method disclosed in Patent Document 1 shown in FIG. 16A, pixel data for two pixels per transfer is arranged on the memory bus, and pixels for eight pixels per burst. Data can be transferred to memory. On the other hand, in the packing method in units of bursts shown in FIG. 16B, pixel data for 14 pixels, 12 pixels, 10 pixels, and 9 pixels can be transferred to the memory. This is because the packing method disclosed in Patent Document 1 arranges (packes) pixel data in units of one memory transfer, that is, the number of bits of a plurality of arranged pixel data. It is necessary not to exceed. For this reason, in the packing method disclosed in Patent Document 1, there are many bits (hereinafter referred to as “unused bits”) in which pixel data cannot be allocated within the memory bus width. On the other hand, in the packing method in units of bursts, pixel data is arranged (packed) in units of one burst. Therefore, as shown in FIG. 16B, the total number of bits of a plurality of pixel data to be arranged is the memory bus. Even when the width is exceeded, the pixel data can be arranged (packed) for the next transfer if one burst is not exceeded. That is, in the packing method in units of bursts, even when the memory bus width is not an integral multiple of the resolution of pixel data, pixel data can be arranged (mapped) across one transfer unit. Can be reduced. Thus, the packing method in units of bursts can transfer more pixel data to the memory in the same time than the packing method disclosed in Patent Document 1, that is, the image data transfer period can be shortened. The power consumption of the electric circuit in the imaging device can be further reduced.

特開2007−312358号公報JP 2007-31358 A

一般的に、データの変化(データの“0”→“1”、もしくは“1”→“0”の変化(反転))が少ない方が、消費電力が少ないことが知られている。このため、撮像装置内の各処理ブロック(電気回路)とメモリとの間のメモリバス上のデータの変化を少なくすることによって、撮像装置の消費電力を低減させることも考えられる。図17は、撮像装置内の処理ブロックとメモリとの間のデータバス(メモリバス)上のデータの変化と消費電力との関係を説明する図である。図17(a)は、図14に示した撮像装置における撮像処理部とメモリとの間のメモリバスのバス幅が32bitである場合の一例を示している。そして、図17(b−1)〜(b−3)では、メモリバス上のデータの変化を模式的に示している。図17の一例においては、メモリバス上のデータの変化がない図17(b−1)の場合が、最も消費電力が少なく、メモリバス上のデータの変化が最も多い図17(b−3)の場合が、最も消費電力が多くなる。   Generally, it is known that the power consumption is smaller when the data change (data “0” → “1” or “1” → “0” change (inversion)) is smaller. For this reason, it is conceivable to reduce the power consumption of the imaging apparatus by reducing the change in data on the memory bus between each processing block (electric circuit) in the imaging apparatus and the memory. FIG. 17 is a diagram for explaining the relationship between the change in data on the data bus (memory bus) between the processing block in the imaging apparatus and the memory and the power consumption. FIG. 17A illustrates an example in which the bus width of the memory bus between the imaging processing unit and the memory in the imaging apparatus illustrated in FIG. 14 is 32 bits. 17B-1 to 17B-3 schematically show changes in data on the memory bus. In the example of FIG. 17, the case of FIG. 17 (b-1) where there is no change in data on the memory bus has the least power consumption and the change in data on the memory bus is the largest. In this case, the power consumption is the largest.

このことから、撮像装置内の各処理ブロックとメモリ間のバースト転送において、連続する2転送間の画素データ(例えば、図16に示した各バースト転送の1転送目と2転送目との画素データ)の変化が多いと、画像データの転送に係る消費電力も多くなってしまうことがわかる。すなわち、メモリバス上の同一ビットが2転送間で変化している個数(ビット数)に比例して、画像データの転送に係る消費電力が変化する。   Therefore, in burst transfer between each processing block in the imaging apparatus and the memory, pixel data between two successive transfers (for example, pixel data of the first transfer and the second transfer of each burst transfer shown in FIG. 16). It can be seen that the power consumption associated with the transfer of the image data also increases when there is a large change in (). That is, the power consumption related to the transfer of image data changes in proportion to the number (number of bits) in which the same bit on the memory bus changes between two transfers.

一般的に、画像データは、隣接する画素間でデータの変化量が小さく、隣接する画素のそれぞれの画素データの同一のビットで比較すると、値が反転しているビットの方が、値が反転していないビットよりも少ないことが予想される。ここで、図16に示した、特許文献1で開示されたパッキング方法と、バースト単位でのパッキング方法とを比較すると、図18に示したように、同一色の画素データで同一のビットが揃っている、特許文献1で開示されたパッキング方法の方が、画像データの転送に係る消費電力が少ないと考えられる。なお、図18は、図16に示した特許文献1で開示されたパッキング方法と、バースト単位でのパッキング方法とにおいて、1画素の画素データのビット数が9bitである場合を示している。   In general, image data has a small amount of data change between adjacent pixels, and when compared with the same bit of each pixel data of adjacent pixels, the value of the inverted bit is inverted. It is expected that there will be fewer than not bits. Here, comparing the packing method disclosed in Patent Document 1 shown in FIG. 16 and the packing method in units of bursts, as shown in FIG. 18, the same bits are arranged in the same color pixel data. The packing method disclosed in Patent Document 1 is considered to consume less power for transferring image data. FIG. 18 shows a case where the number of bits of pixel data of one pixel is 9 bits in the packing method disclosed in Patent Document 1 shown in FIG. 16 and the packing method in units of bursts.

より具体的には、図18(a)に示した特許文献1で開示されたパッキング方法では、範囲Aに示したメモリバスの最下位ビットは、全て同一色の画素データの同一ビット(最下位ビット)である。これに対して、図18(b)に示したバースト単位でのパッキング方法では、範囲Bに示したメモリバスの最下位ビットは、全て異なる色の画素データの異なるビットである。このことから、バースト単位で画像データをパッキングすることによって、メモリバス上に配置される画素データのビットの位置が、連続する2転送間で異なってしまうと、メモリバス上の同一ビットの変化量が多くなり、画像データの転送に係る消費電力を増加させてしまうことがわかる。   More specifically, in the packing method disclosed in Patent Document 1 shown in FIG. 18A, the least significant bits of the memory bus shown in the range A are all the same bits (the least significant bits) of pixel data of the same color. Bit). On the other hand, in the packing method in units of bursts shown in FIG. 18B, the least significant bits of the memory bus shown in range B are all different bits of pixel data of different colors. Therefore, by packing image data in units of bursts, if the position of the bit of pixel data arranged on the memory bus differs between two consecutive transfers, the amount of change of the same bit on the memory bus This increases the power consumption associated with the transfer of image data.

すなわち、図18(a)に示した特許文献1で開示されたパッキング方法は、画像データの転送に係る消費電力が少ないが、データの転送効率が低い。また、図18(b)に示したバースト単位でのパッキング方法は、データの転送効率はよいが、画像データの転送に係る消費電力が多い。   That is, the packing method disclosed in Patent Document 1 shown in FIG. 18A consumes less power for transferring image data, but has low data transfer efficiency. The packing method in units of bursts shown in FIG. 18B has good data transfer efficiency, but consumes a lot of power for transferring image data.

このように、バースト単位での画素データのパッキングでは、より多くの画素データをメモリバスに配置することによって、結果的に画素データの転送期間を短縮し、画像データの転送に係る消費電力を低減させることができるが、メモリバス上に配置される画素データのビットの位置が、連続する2転送間で異なっているため、画像データの転送に係る消費電力の低減効果を十分に得ることができていない、という問題がある。   As described above, in the packing of pixel data in units of bursts, by placing a larger amount of pixel data on the memory bus, the pixel data transfer period is shortened, resulting in a reduction in power consumption for image data transfer. However, since the positions of the bits of the pixel data arranged on the memory bus are different between two successive transfers, the effect of reducing the power consumption related to the transfer of image data can be sufficiently obtained. There is no problem.

また、特許文献1で開示されたパッキング方法においては、例えば、図19に示したように、画素データをパッキングする1転送内に、3画素分の画素データを配置(パッキング)することができる。しかし、この場合には、例えば、範囲Cに示したメモリバスの最下位ビットが、画素データの同一ビット(最下位ビット)ではあるが、異なる色の画素データになってしまう。画素データは、色が異なるとその値が大きく異なる可能性が高く、特許文献1で開示されたパッキング方法でも、1転送内の画素データの配置によっては、画像データの転送に係る消費電力を低減できていないことになってしまう。   In the packing method disclosed in Patent Document 1, for example, as shown in FIG. 19, pixel data for three pixels can be arranged (packed) in one transfer for packing pixel data. However, in this case, for example, the least significant bit of the memory bus shown in the range C is the same bit (the least significant bit) of the pixel data, but becomes pixel data of a different color. The pixel data is likely to have a large difference in value when the color is different. Even with the packing method disclosed in Patent Document 1, the power consumption associated with the transfer of the image data is reduced depending on the arrangement of the pixel data in one transfer. It will not be done.

本発明は、上記の課題認識に基づいてなされたものであり、データの転送効率を維持した状態で、データ転送に係る消費電力を低減することができるデータ処理装置およびデータ処理方法を提供することを目的としている。   The present invention has been made on the basis of the above-mentioned problem recognition, and provides a data processing device and a data processing method capable of reducing power consumption related to data transfer while maintaining data transfer efficiency. It is an object.

上記の課題を解決するため、本発明のデータ処理装置は、複数の入力データを、データバス上にバースト転送するためのパックデータを生成するデータ処理装置であって、前記データバス上に第1のバス領域と第2のバス領域とを設定することで、前記パックデータを第1のパック領域と第2のパック領域とに分割し、第1のデータを取り出し、前記第1のデータのバースト転送時に前記第1のバス領域の同じ位置から転送されるように前記第1のパック領域に隙間なくパッキングする第1のデータ生成部と、前記第1のデータ生成部が取り残した前記入力データである第2のデータを前記第2のパック領域にパッキングする第2のデータ生成部と、前記第1のパック領域にパッキングされた前記第1のデータと前記第2のパック領域にパッキングされた前記第2のデータとを結合して前記パックデータを生成するデータ結合部と、を備え、前記複数の入力データは、複数の色情報をもつ画像データであり、前記パックデータ内の前記第1のパック領域の連続する2転送間のデータにおいて、隣接する同一色の画素データがメモリバス上の同一ビットに配置されている、ことを特徴とする。   In order to solve the above problems, a data processing apparatus of the present invention is a data processing apparatus that generates pack data for burst transfer of a plurality of input data on a data bus, and the data processing apparatus includes a first data processor on the data bus. By setting the bus area and the second bus area, the pack data is divided into the first pack area and the second pack area, the first data is taken out, and the burst of the first data is obtained. A first data generation unit that packs the first pack area without a gap so that it is transferred from the same position in the first bus area at the time of transfer, and the input data left by the first data generation part. A second data generation unit that packs certain second data into the second pack area; and the first data packed into the first pack area and the second pack area. And a data combination unit that generates the pack data by combining the second data that has been processed, and the plurality of input data is image data having a plurality of color information, In the data between two successive transfers in the first pack area, adjacent pixel data of the same color are arranged in the same bit on the memory bus.

また、本発明の前記第2のデータ生成部は、前記第2のデータを前記第2のパック領域内で連続するようにパッキングする、ことを特徴とする。   Further, the second data generation unit of the present invention is characterized in that the second data is packed so as to be continuous in the second pack area.

また、本発明のデータ処理装置は、所定ビット数のデータバス上をバースト転送されたパックデータから、パッキングされている元データを復元するデータ処理装置であって、前記データバス上に第1のバス領域と第2のバス領域とを設定し、前記第1のバス領域から前記パックデータの第1のパック領域のデータを取り出して出力し、前記第2のバス領域から前記パックデータの第2のパック領域のデータを取り出して出力するデータ分割部と、前記第1のパック領域から取り出されたデータに基づいて第1のデータを復元する第1のデータ復元部と、前記第2のパック領域から取り出されたデータに基づいて第2のデータを復元する第2のデータ復元部と、復元された前記第1のデータと前記第2のデータに基づいた元データを出力するデータ選択部と、を備え、前記第1のデータは、前記バースト転送時に前記第1のバス領域の同じ位置から転送されるように前記第1のパック領域に隙間なくパッキングされているデータであり、前記元データは、複数の色情報をもつ画像データであり、前記パックデータ内の前記第1のパック領域の連続する2転送間のデータにおいて、隣接する同一色の画素データがメモリバス上の同一ビットに配置されている、ことを特徴とする。   The data processing device of the present invention is a data processing device for restoring packed original data from packed data burst-transferred on a data bus having a predetermined number of bits. A bus area and a second bus area are set, the data of the first pack area of the pack data is extracted from the first bus area and output, and the second of the pack data is output from the second bus area. A data dividing unit for extracting and outputting data of the pack area, a first data restoring unit for restoring the first data based on the data extracted from the first pack area, and the second pack area A second data restoring unit for restoring the second data based on the data extracted from the data, and outputting the restored first data and the original data based on the second data Data selection unit, and the first data is data packed in the first pack area without a gap so as to be transferred from the same position in the first bus area during the burst transfer. The original data is image data having a plurality of pieces of color information, and in the data between two successive transfers of the first pack area in the pack data, adjacent pixel data of the same color are stored on the memory bus. Are arranged in the same bit.

また、本発明の前記第2のデータは、前記第2のパック領域内で連続するようにパッキングされているデータである、ことを特徴とする。   Further, the second data of the present invention is data packed so as to be continuous in the second packed area.

また、本発明のデータ処理方法は、複数の入力データを、データバス上にバースト転送するためのパックデータを生成するデータ処理方法であって、前記データバス上に第1のバス領域と第2のバス領域とを設定することで、前記パックデータを第1のパック領域と第2のパック領域とに分割するステップと、第1のデータを取り出し、前記第1のデータのバースト転送時に前記第1のバス領域の同じ位置から転送されるように前記第1のパック領域に隙間なくパッキングするステップと、前記第1のデータから残った前記入力データである第2のデータを前記第2のパック領域にパッキングするステップと、前記第1のパック領域にパッキングされた前記第1のデータと前記第2のパック領域にパッキングされた前記第2のデータとを結合して前記パックデータを生成するステップと、を含み、前記複数の入力データは、複数の色情報をもつ画像データであり、前記パックデータ内の前記第1のパック領域の連続する2転送間のデータにおいて、隣接する同一色の画素データがメモリバス上の同一ビットに配置されているデータである、ことを特徴とする。   The data processing method of the present invention is a data processing method for generating packed data for burst transfer of a plurality of input data onto a data bus, wherein the first bus area and the second data are generated on the data bus. And setting the bus area, the step of dividing the pack data into the first pack area and the second pack area, the first data is taken out, and the first data is burst transferred during the burst transfer of the first data. Packing the first pack area without gaps so as to be transferred from the same position in one bus area, and the second data as the input data remaining from the first data in the second pack A step of packing in a region, and combining the first data packed in the first packed region and the second data packed in the second packed region Generating the pack data, and the plurality of input data is image data having a plurality of color information, and data between two successive transfers of the first pack area in the pack data 2 is characterized in that adjacent pixel data of the same color are data arranged in the same bit on the memory bus.

また、本発明のデータ処理方法は、所定ビット数のデータバス上をバースト転送されたパックデータから、パッキングされている元データを復元するデータ処理方法であって、前記データバス上に第1のバス領域と第2のバス領域とを設定するステップと、前記第1のバス領域から前記パックデータの第1のパック領域のデータを取り出して出力するステップと、前記第2のバス領域から前記パックデータの第2のパック領域のデータを取り出して出力するステップと、前記第1のパック領域から取り出されたデータに基づいて第1のデータを復元するステップと、前記第2のパック領域から取り出されたデータに基づいて第2のデータを復元するステップと、復元された前記第1のデータと前記第2のデータに基づいた元データを出力するステップと、を含み、前記第1のデータは、前記バースト転送時に前記第1のバス領域の同じ位置から転送されるように前記第1のパック領域に隙間なくパッキングされているデータであり、前記元データは、複数の色情報をもつ画像データであり、前記パックデータ内の前記第1のパック領域の連続する2転送間のデータにおいて、隣接する同一色の画素データがメモリバス上の同一ビットに配置されているデータである、ことを特徴とする。   The data processing method of the present invention is a data processing method for restoring packed original data from packed data burst-transferred on a data bus having a predetermined number of bits. A step of setting a bus area and a second bus area; a step of extracting and outputting data of the first pack area of the pack data from the first bus area; and the pack from the second bus area Extracting and outputting data of the second packed area of data; restoring the first data based on the data extracted from the first packed area; and extracting from the second packed area Restoring the second data based on the recovered data, and outputting the restored first data and the original data based on the second data And the first data is data packed in the first pack area without a gap so as to be transferred from the same position in the first bus area during the burst transfer, The original data is image data having a plurality of color information, and in the data between two successive transfers in the first pack area in the pack data, adjacent pixel data of the same color are the same bit on the memory bus. It is the data arranged in.

本発明によれば、データの転送効率を維持した状態で、データ転送に係る消費電力を低減することができるという効果が得られる。   According to the present invention, it is possible to reduce power consumption for data transfer while maintaining data transfer efficiency.

本発明の実施形態における撮像装置の概略構成を示したブロック図である。1 is a block diagram illustrating a schematic configuration of an imaging apparatus according to an embodiment of the present invention. 本実施形態の撮像装置に備えた第1の構成のデータ変換部の概略構成を示したブロック図である。It is the block diagram which showed schematic structure of the data conversion part of the 1st structure with which the imaging device of this embodiment was equipped. 本実施形態の撮像装置に備えた第1の構成のデータ逆変換部の概略構成を示したブロック図である。It is the block diagram which showed schematic structure of the data reverse conversion part of the 1st structure with which the imaging device of this embodiment was equipped. 本第1の構成のデータ変換部における第1のデータ配置方法を説明する図である。It is a figure explaining the 1st data arrangement method in the data converter of the 1st composition. 本第1の構成のデータ変換部における第2のデータ配置方法を説明する図である。It is a figure explaining the 2nd data arrangement method in the data conversion part of the 1st composition. 本第1の構成のデータ変換部における第3のデータ配置方法を説明する図である。It is a figure explaining the 3rd data arrangement method in the data conversion part of the 1st composition. 本実施形態の撮像装置に備えた第2の構成のデータ変換部の概略構成を示したブロック図である。It is the block diagram which showed schematic structure of the data conversion part of the 2nd structure with which the imaging device of this embodiment was equipped. 本実施形態の撮像装置に備えた第2の構成のデータ逆変換部の概略構成を示したブロック図である。It is the block diagram which showed schematic structure of the data reverse conversion part of the 2nd structure with which the imaging device of this embodiment was equipped. 本第2の構成のデータ変換部における第4のデータ配置方法を説明する図である。It is a figure explaining the 4th data arrangement method in the data conversion part of this 2nd composition. 本実施形態の撮像装置に備えたデータ変換部によるデータ配置方法を、別の画像データに適用した場合の一例を示した図である。It is the figure which showed an example at the time of applying the data arrangement method by the data converter with which the imaging device of this embodiment was equipped to another image data. 本実施形態の撮像装置に備えたデータ変換部によるデータ配置方法を、さらに別の画像データに適用した場合の一例を示した図である。It is the figure which showed an example at the time of applying the data arrangement method by the data conversion part with which the imaging device of this embodiment was equipped to another image data. 本実施形態の撮像装置に備えたデータ変換部によるデータ配置方法を、さらに別の画像データに適用した場合の一例を示した図である。It is the figure which showed an example at the time of applying the data arrangement method by the data conversion part with which the imaging device of this embodiment was equipped to another image data. 本実施形態の撮像装置に備えたデータ変換部によるデータ配置方法を、別のデータに適用した場合の一例を示した図である。It is the figure which showed an example at the time of applying the data arrangement method by the data conversion part with which the imaging device of this embodiment was equipped to another data. 従来の撮像装置の概略構成を示したブロック図である。It is the block diagram which showed schematic structure of the conventional imaging device. 画像データの配列の一例を示した図である。It is the figure which showed an example of the arrangement | sequence of image data. 従来のデータパッキングの一例を示した図である。It is the figure which showed an example of the conventional data packing. データバス上のデータの変化と消費電力との関係を説明する図である。It is a figure explaining the relationship between the change of the data on a data bus, and power consumption. 従来のデータパッキング方法におけるデータ配置の状態の一例を示した図である。It is the figure which showed an example of the state of the data arrangement | positioning in the conventional data packing method. 従来のデータパッキング方法におけるデータ配置の状態の別の一例を示した図である。It is the figure which showed another example of the state of data arrangement in the conventional data packing method.

以下、本発明の実施形態について、図面を参照して説明する。図1は、本実施形態における撮像装置の概略構成を示したブロック図である。図1に示した撮像装置1は、CPU10と、メモリ20と、CCD30と、撮像処理部40と、画像処理部50と、表示処理部60と、表示デバイス70と、データ変換部41および51と、データ逆変換部52および62と、出力DMA部45および55と、入力DMA部56および66と、を備えている。なお、撮像装置1は、撮影した画像データを記録する機能も有しているが、説明を容易にするため、以下の説明においては、撮影した画像データを表示する場合について説明する。また、図1においては、撮像装置1内の各構成要素(処理ブロック)間での画素データの受け渡しに係るデータバスであるメモリバスの接続のみを示している。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram illustrating a schematic configuration of an imaging apparatus according to the present embodiment. 1 includes a CPU 10, a memory 20, a CCD 30, an imaging processing unit 40, an image processing unit 50, a display processing unit 60, a display device 70, and data conversion units 41 and 51. , Data inverse conversion units 52 and 62, output DMA units 45 and 55, and input DMA units 56 and 66. Note that the imaging apparatus 1 also has a function of recording captured image data, but in the following description, a case where captured image data is displayed will be described for ease of explanation. Further, FIG. 1 shows only the connection of a memory bus that is a data bus related to the transfer of pixel data between each component (processing block) in the imaging apparatus 1.

CPU10は、撮像装置1の全体の制御を行う制御装置である。
メモリ20は、撮像装置1内の各処理ブロックが処理する画素データを一時的に記憶する、例えば、DRAM(Dynamic Random Access Memory)などのメモリである。メモリ20には、撮像装置1内の各処理ブロックによる各処理段階の画素データが一時記憶される。
The CPU 10 is a control device that performs overall control of the imaging device 1.
The memory 20 is a memory such as a DRAM (Dynamic Random Access Memory) that temporarily stores pixel data processed by each processing block in the imaging apparatus 1. The memory 20 temporarily stores pixel data of each processing stage by each processing block in the imaging apparatus 1.

CCD30は、入射した被写体光を画像信号に変換する、例えば、ベイヤー配列の固体撮像素子である。CCD30は、被写体の画素信号を撮像処理部40に出力する。
撮像処理部40は、CCD30から入力された画素信号に対して、予め定められた信号処理を行った画像データを生成する。
The CCD 30 is, for example, a Bayer array solid-state imaging device that converts incident subject light into an image signal. The CCD 30 outputs the pixel signal of the subject to the imaging processing unit 40.
The imaging processing unit 40 generates image data obtained by performing predetermined signal processing on the pixel signal input from the CCD 30.

画像処理部50は、撮像処理部40が生成した画像データに対して、撮像装置1における種々の画像処理を行った画像データを生成する。
表示処理部60は、画像処理部50によって画像処理された画像データを、表示デバイス70に応じた表示データに変換する。表示処理部60は、変換した表示データを表示デバイス70に出力する。
表示デバイス70は、表示データを表示する、例えば、液晶などの表示装置である。
The image processing unit 50 generates image data obtained by performing various image processes in the imaging device 1 on the image data generated by the imaging processing unit 40.
The display processing unit 60 converts the image data image-processed by the image processing unit 50 into display data corresponding to the display device 70. The display processing unit 60 outputs the converted display data to the display device 70.
The display device 70 is a display device that displays display data, such as a liquid crystal display.

本実施形態の撮像装置1では、CCD30によって撮像された被写体の画素信号を、撮像処理部40、画像処理部50、表示処理部60が順次処理し、表示デバイス70に表示させる。このとき、各処理段階の画像データは、メモリ20を介して各処理ブロック間で受け渡される。撮像装置1内のデータ変換部41および51と、データ逆変換部52および62と、出力DMA部45および55と、入力DMA部56および66とは、各処理段階の画像データの受け渡しに係る処理ブロックである。   In the imaging apparatus 1 of this embodiment, the pixel signal of the subject imaged by the CCD 30 is sequentially processed by the imaging processing unit 40, the image processing unit 50, and the display processing unit 60 and displayed on the display device 70. At this time, the image data at each processing stage is transferred between the processing blocks via the memory 20. The data conversion units 41 and 51, the data reverse conversion units 52 and 62, the output DMA units 45 and 55, and the input DMA units 56 and 66 in the imaging apparatus 1 are processes related to the transfer of image data at each processing stage. It is a block.

データ変換部41および51は、前段の処理ブロック(図1に示した本実施形態においては、撮像処理部40または画像処理部50)から入力された画像データ内の各画素データを、予め定められた配置(パッキング)方法で、メモリバスの各ビットに配置する。データ変換部41および51の構成と、データ変換部41および51による画素データのパッキング方法に関する詳細な説明は、後述する。   The data conversion units 41 and 51 have predetermined pixel data in the image data input from the preceding processing block (in the present embodiment shown in FIG. 1, the imaging processing unit 40 or the image processing unit 50). It is arranged at each bit of the memory bus by the arrangement (packing) method. A detailed description of the configuration of the data conversion units 41 and 51 and the pixel data packing method by the data conversion units 41 and 51 will be described later.

出力DMA部45および55は、データ変換部41または51によってメモリバスの各ビットにパッキングされた画素データからなる画像データを、DMAアクセスによってメモリ20に書き込む(記憶させる)。
入力DMA部56および66は、メモリ20に記憶されている画像データをDMAアクセスによって読み出し、読み出した画像データを、データ逆変換部52または62に出力する。
The output DMA units 45 and 55 write (store) image data composed of pixel data packed into each bit of the memory bus by the data conversion unit 41 or 51 in the memory 20 by DMA access.
The input DMA units 56 and 66 read the image data stored in the memory 20 by DMA access, and output the read image data to the data reverse conversion unit 52 or 62.

データ逆変換部52および62は、入力DMA部56または66から入力された画像データに含まれる画素データを、予め定められた配置(パッキング)方法と逆の方法で元の画像データに戻し、後段の処理ブロック(図1に示した本実施形態においては、画像処理部50または表示処理部60)に出力する。データ逆変換部52および62の構成に関する詳細な説明は、後述する。   The data inverse conversion units 52 and 62 return the pixel data included in the image data input from the input DMA unit 56 or 66 to the original image data by a method reverse to a predetermined arrangement (packing) method. To the processing block (in the present embodiment shown in FIG. 1, the image processing unit 50 or the display processing unit 60). Detailed description regarding the configuration of the data reverse conversion units 52 and 62 will be described later.

ここで、図1に示した撮像装置1における画像データの処理について説明する。撮像装置1における撮影動作では、以下のような手順で画像データの処理が行われる。
(手順1):まず、撮像処理部40は、CCD30によって撮像された被写体の画素信号に対して、予め定められた信号処理を行った画像データ(例えば、CCD30の画素の配列に応じた画像データ)を生成する。そして、生成した画像データを、データ変換部41および出力DMA部45を介して、メモリ20に転送して一時記憶する。
(手順2):続いて、画像処理部50は、メモリ20に一時記憶している画像データを、入力DMA部56およびデータ逆変換部52を介して読み出す。そして、画像処理部50は、読み出した画像データに対して記録用の画像処理や、表示用の画像処理を行った画像データ(例えば、RGBデータや、YC422点順次フォーマットのYCbCrデータ)を生成する。その後、生成した画像データを、再びデータ変換部51および出力DMA部55を介してメモリ20に転送して一時記憶する。
(手順3):続いて、表示処理部60は、画像処理部50によって表示用の画像処理がされた画像データや、別途、メモリ20に記憶しているOSD(On−Screen Display)表示用の画像データを、入力DMA部66およびデータ逆変換部62を介して読み出し、表示デバイス70に表示させる。
Here, processing of image data in the imaging apparatus 1 shown in FIG. 1 will be described. In the shooting operation of the imaging apparatus 1, image data is processed in the following procedure.
(Procedure 1): First, the imaging processing unit 40 performs image data obtained by performing predetermined signal processing on the pixel signal of the subject imaged by the CCD 30 (for example, image data corresponding to the pixel arrangement of the CCD 30). ) Is generated. Then, the generated image data is transferred to the memory 20 via the data conversion unit 41 and the output DMA unit 45 and temporarily stored.
(Procedure 2): Subsequently, the image processing unit 50 reads out the image data temporarily stored in the memory 20 via the input DMA unit 56 and the data reverse conversion unit 52. Then, the image processing unit 50 generates image data (for example, RGB data or YCbCr data in YC422 dot sequential format) obtained by performing recording image processing or display image processing on the read image data. . Thereafter, the generated image data is transferred again to the memory 20 via the data conversion unit 51 and the output DMA unit 55 and temporarily stored.
(Procedure 3): Subsequently, the display processing unit 60 displays image data that has undergone image processing for display by the image processing unit 50, or an OSD (On-Screen Display) display that is separately stored in the memory 20. The image data is read out via the input DMA unit 66 and the data reverse conversion unit 62 and displayed on the display device 70.

なお、撮像装置1が撮影した画像データを記録する場合には、画像データの記録処理を行う図示しない記録処理部が、画像処理部50によって記録用の画像処理がされた画像データを、図示しない入力DMA部およびデータ逆変換部を介して読み出し、読み出した記録用の画像データをメモリカードなどの図示しない画像データ記録部に記録する。また、撮像装置1に、例えば、音を入出力する機能を備えている場合には、音声処理を行う図示しない音声処理部が、撮影時の音声データを、図示しないデータ変換部および出力DMA部を介してメモリ20に記憶する。また、音声処理部が、メモリ20に記憶している音声データを、図示しない入力DMA部およびデータ逆変換部を介して読み出し、読み出した音声データに応じた音声を、スピーカーなどの図示しない音出力部に出力させる。   When recording image data captured by the imaging apparatus 1, a recording processing unit (not shown) that performs recording processing of the image data does not show image data that has been subjected to recording image processing by the image processing unit 50. The data is read via the input DMA unit and the data reverse conversion unit, and the read image data for recording is recorded in an image data recording unit (not shown) such as a memory card. For example, when the imaging apparatus 1 has a function of inputting and outputting sound, a voice processing unit (not shown) that performs voice processing converts voice data at the time of shooting into a data conversion unit and an output DMA unit (not shown). Is stored in the memory 20. Further, the audio processing unit reads out the audio data stored in the memory 20 via an input DMA unit and a data reverse conversion unit (not shown), and outputs audio corresponding to the read audio data to a sound output (not shown) such as a speaker. To output.

<第1の構成>
次に、撮像装置1内のデータ変換部について説明する。なお、上記に述べたように、データ変換部41とデータ変換部51とは、接続される前段の処理ブロックと後段の処理ブロックが異なるのみである。より具体的には、図1に示したように、データ変換部41は、前段の撮像処理部40と後段の出力DMA部45との間に配置され、データ変換部51は、前段の撮画像処理部50と後段の出力DMA部55との間に配置されている。従って、データ変換部41とデータ変換部51とは、入力される画像データと出力する画像データとのデータ形式(フォーマット)が異なるのみである。以下の説明においては、代表してデータ変換部41について説明する。
<First configuration>
Next, the data converter in the imaging device 1 will be described. As described above, the data conversion unit 41 and the data conversion unit 51 are different only in the processing block at the preceding stage and the processing block at the subsequent stage to be connected. More specifically, as shown in FIG. 1, the data conversion unit 41 is arranged between the upstream imaging processing unit 40 and the downstream output DMA unit 45, and the data conversion unit 51 includes the upstream captured image. Arranged between the processing unit 50 and the output DMA unit 55 in the subsequent stage. Accordingly, the data conversion unit 41 and the data conversion unit 51 differ only in the data format (format) of input image data and output image data. In the following description, the data conversion unit 41 will be described as a representative.

図2は、本実施形態の撮像装置1に備えた本第1の構成のデータ変換部41の概略構成を示したブロック図である。図2に示したように、データ変換部41は、パック領域1データ生成部411と、パック領域2データ生成部412と、データ結合部413と、を備えている。   FIG. 2 is a block diagram showing a schematic configuration of the data conversion unit 41 of the first configuration provided in the imaging apparatus 1 of the present embodiment. As shown in FIG. 2, the data conversion unit 41 includes a pack area 1 data generation unit 411, a pack area 2 data generation unit 412, and a data combination unit 413.

なお、以下の説明においては、データ変換部41に、図15に示したような、16行×16列のベイヤー配列の画像データ(以下、「ベイヤーデータ」という)が入力され、ベイヤーデータ内の各画素データをパッキングする単位を4転送とし、4転送を1回のバースト転送の単位とする、すなわち、1バーストを画素データのパッキング単位とする場合について説明する。また、ベイヤーデータ内の各画素データのビット数は11bitであり、メモリバスのバス幅(メモリバス幅)は32bitであるものとして説明する。なお、図15に示したベイヤーデータでは、各画素データの数字がCCD30内の画素の位置を表しており、数字の前の「R」,「G」,「B」がCCD30内の画素の色を表している。より具体的には、「R」がCCD30の赤色の画素の画素データ、「G」がCCD30の緑色の画素の画素データ、「B」がCCD30の青色の画素の画素データを表している。   In the following description, Bayer array image data (hereinafter referred to as “Bayer data”) of 16 rows × 16 columns as shown in FIG. A case will be described in which the unit for packing each pixel data is 4 transfers, and 4 transfers is a unit for one burst transfer, that is, 1 burst is a unit for packing pixel data. In the following description, it is assumed that the number of bits of each pixel data in the Bayer data is 11 bits, and the bus width (memory bus width) of the memory bus is 32 bits. In the Bayer data shown in FIG. 15, each pixel data number represents the position of the pixel in the CCD 30, and “R”, “G”, and “B” before the number represent the color of the pixel in the CCD 30. Represents. More specifically, “R” represents pixel data of the red pixel of the CCD 30, “G” represents pixel data of the green pixel of the CCD 30, and “B” represents pixel data of the blue pixel of the CCD 30.

データ変換部41は、撮像処理部40から入力された11bitの画素データの各ビットのデータを、予め定められた後述するパッキング方法のいずれか1つの方法で、メモリバス上の各ビットに配置した32bitのパックデータを出力する。データ変換部41は、パッキング単位を、画素データの連続する各ビットをそのままメモリバス上の連続する各ビットに配置する22bitの領域(以下、「パック領域1」という)と、画素データが配置されずに残っているメモリバス上のビットに画素データの各ビットを分割して配置する10bitの領域(以下、「パック領域2」という)とに分けて、メモリバス上の各ビットに画素データの各ビットを配置する。   The data conversion unit 41 arranges each bit data of the 11-bit pixel data input from the imaging processing unit 40 in each bit on the memory bus by any one of predetermined packing methods described later. 32-bit pack data is output. The data conversion unit 41 has a 22-bit area (hereinafter referred to as “pack area 1”) in which each successive bit of pixel data is arranged as it is in each successive bit on the memory bus, and pixel data is arranged. The 10 bits area (hereinafter referred to as “pack area 2”) in which each bit of the pixel data is divided and arranged into the remaining bits on the memory bus, and the bit of the pixel data is assigned to each bit on the memory bus. Arrange each bit.

なお、データ変換部41におけるパック領域1に配置される画素データとパック領域2に配置される画素データとは、撮像処理部40から入力されるデータイネーブル信号に基づいて判別される。このデータイネーブル信号は、データ変換部41に入力された画素データが、CCD30の何色の画素のデータであるかを表す情報を含んでいる信号である。   Note that the pixel data arranged in the pack area 1 and the pixel data arranged in the pack area 2 in the data conversion unit 41 are determined based on a data enable signal input from the imaging processing unit 40. This data enable signal is a signal that includes information indicating the color data of the pixel of the CCD 30 that is input to the data converter 41.

パック領域1データ生成部411は、撮像処理部40から入力されたデータイネーブル信号に基づいて、パック領域1のデータバス(このデータバスはメモリバスの各ビットに対応しているため、以下の説明においては、「メモリバス」として説明する)の各ビットに、2画素分の画素データを、例えば、メモリバスの下位ビットに対応した位置のビットから、順次配置する。そして、画素データを順次配置したメモリバス幅以下のビット数(図2においては、22bit)のパック領域1の画素データ(以下、「パック領域1データ」という)をデータ結合部413に出力する。なお、パック領域1データ生成部411は、画素データをメモリ20にバースト転送する際の連続する2転送間のデータにおいて、隣接する同一色の画素データが、メモリバス上の同一ビットに配置されるように、パック領域1データを配置する。   The pack area 1 data generation unit 411 is based on the data enable signal input from the imaging processing unit 40, and the pack area 1 data bus (this data bus corresponds to each bit of the memory bus. In this example, pixel data for two pixels is sequentially arranged in each bit of “memory bus” (for example, from a bit corresponding to a lower bit of the memory bus). Then, the pixel data of the packed area 1 (hereinafter referred to as “packed area 1 data”) having a bit number (22 bits in FIG. 2) less than the memory bus width in which the pixel data is sequentially arranged is output to the data combining unit 413. The pack area 1 data generation unit 411 arranges adjacent pixel data of the same color in the same bit on the memory bus in the data between two successive transfers when the pixel data is burst transferred to the memory 20. Thus, the pack area 1 data is arranged.

パック領域2データ生成部412は、撮像処理部40から入力されたデータイネーブル信号に基づいて、パック領域2のデータバス(このデータバスもメモリバスの各ビットに対応しているため、以下の説明においては、「メモリバス」として説明する)の各ビットに、3画素分の画素データを配置する。そして、画素データを配置したメモリバス幅以下のビット数(図2においては、10bit)のパック領域2の画素データ(以下、「パック領域2データ」という)をデータ結合部413に出力する。なお、パック領域2データ生成部412は、予め定められた後述するパッキング方法に応じて、パック領域2データを配置する。   Based on the data enable signal input from the imaging processing unit 40, the pack area 2 data generation unit 412 is based on the data bus of the pack area 2 (this data bus also corresponds to each bit of the memory bus. In this example, pixel data for three pixels is arranged in each bit of “memory bus”. Then, the pixel data (hereinafter referred to as “pack area 2 data”) of the pack area 2 having the number of bits (10 bits in FIG. 2) less than the memory bus width in which the pixel data is arranged is output to the data combination unit 413. The pack area 2 data generation unit 412 arranges the pack area 2 data according to a predetermined packing method described later.

データ結合部413は、パック領域1データ生成部411から入力されたパック領域1データと、パック領域2データ生成部412から入力されたパック領域2データとを結合したパックデータを生成する。そして、データ結合部413は、生成したパックデータを順次、出力DMA部45に出力する。なお、データ結合部413内には、例えば、22bitのパック領域1データを一時的に保持するメモリ部を備え、撮像処理部40から入力されたデータイネーブル信号に基づいて、22bitのパック領域1データと、10bitのパック領域2データとのタイミングの整合をとって、32bitのパックデータを生成する。   The data combination unit 413 generates pack data obtained by combining the pack region 1 data input from the pack region 1 data generation unit 411 and the pack region 2 data input from the pack region 2 data generation unit 412. Then, the data combination unit 413 sequentially outputs the generated pack data to the output DMA unit 45. The data combining unit 413 includes a memory unit that temporarily holds, for example, 22-bit packed region 1 data. Based on the data enable signal input from the imaging processing unit 40, the 22-bit packed region 1 data is provided. Then, the 32-bit pack data is generated by matching the timing with the 10-bit pack area 2 data.

次に、撮像装置1内のデータ逆変換部について説明する。なお、上記に述べたように、データ逆変換部52とデータ逆変換部62とは、接続される前段の処理ブロックと後段の処理ブロックが異なるのみである。より具体的には、図1に示したように、データ逆変換部52は、前段の入力DMA部56と後段の画像処理部50との間に配置され、データ逆変換部62は、前段の入力DMA部66と後段の表示処理部60との間に配置されている。従って、データ逆変換部52とデータ逆変換部62とは、入力される画像データと出力する画像データとのデータ形式(フォーマット)が異なるのみである。以下の説明においては、代表してデータ逆変換部52について説明する。   Next, the data reverse conversion unit in the imaging apparatus 1 will be described. Note that, as described above, the data inverse transform unit 52 and the data inverse transform unit 62 are different only in the preceding processing block and the subsequent processing block to be connected. More specifically, as shown in FIG. 1, the data reverse conversion unit 52 is disposed between the input DMA unit 56 in the previous stage and the image processing unit 50 in the subsequent stage, and the data reverse conversion unit 62 is in the previous stage. It is arranged between the input DMA unit 66 and the display processing unit 60 at the subsequent stage. Therefore, the data reverse conversion unit 52 and the data reverse conversion unit 62 differ only in the data format (format) of input image data and output image data. In the following description, the data inverse conversion unit 52 will be described as a representative.

図3は、本実施形態の撮像装置1に備えた本第1の構成のデータ逆変換部52の概略構成を示したブロック図である。図3に示したように、データ逆変換部52は、データ分割部521と、パック領域1データ復元部522と、パック領域2データ復元部523と、データ選択部524と、を備えている。   FIG. 3 is a block diagram illustrating a schematic configuration of the data reverse conversion unit 52 of the first configuration provided in the imaging apparatus 1 of the present embodiment. As shown in FIG. 3, the data reverse conversion unit 52 includes a data division unit 521, a pack area 1 data restoration unit 522, a pack area 2 data restoration unit 523, and a data selection unit 524.

なお、以下の説明においては、データ逆変換部52に、データ変換部41によってパッキングされた、4転送をパッキング単位とした1バーストのパックデータが、入力DMA部56を介して入力され、入力されたパックデータを、図15に示したベイヤーデータに戻す場合について説明する。従って、ベイヤーデータ内の各画素データのビット数は11bitであり、メモリバス幅は32bitであるものとして説明する。   In the following description, one burst of packed data packed in units of 4 transfers packed by the data conversion unit 41 is input to the data inverse conversion unit 52 via the input DMA unit 56 and input. A case where the pack data is returned to the Bayer data shown in FIG. 15 will be described. Therefore, description will be made assuming that the number of bits of each pixel data in the Bayer data is 11 bits and the memory bus width is 32 bits.

データ逆変換部52は、入力DMA部56から入力された32bitのパックデータの各ビットに配置されたデータを、予め定められた後述するパッキング方法のいずれか1つの方法と逆の方法で、画像処理部50が画像処理する元の画像データ(ベイヤーデータ)に戻した11bitの画素データを出力する。データ逆変換部52では、元の画素データの連続する各ビットがそのままメモリバス上の連続する各ビットに配置された22bitのパック領域1と、元の画素データの各ビットが分割してメモリバス上のビットに配置された10bitのパック領域2とに分けて、メモリバス上の各ビットのデータを、それぞれ元の画素データの各ビットに分配する。   The data reverse conversion unit 52 converts the data arranged in each bit of the 32-bit packed data input from the input DMA unit 56 into an image by a method opposite to any one of the predetermined packing methods described later. The processing unit 50 outputs 11-bit pixel data returned to the original image data (Bayer data) to be subjected to image processing. In the data reverse conversion unit 52, the continuous bit of the original pixel data is arranged as it is in the continuous bit on the memory bus, and the bit region of the original pixel data is divided by dividing the bit of the original pixel data into the memory bus. Each bit data on the memory bus is distributed to each bit of the original pixel data separately from the 10-bit packed area 2 arranged in the upper bits.

なお、データ逆変換部52におけるパック領域1に配置された元の画素データとパック領域2に配置された元の画素データとは、画像処理部50から入力されるデータイネーブル信号に基づいて判別される。このデータイネーブル信号は、画像処理部50に出力する元の画素データが、CCD30の何色の画素のデータであるかを表す情報を含んでいる信号である。   The original pixel data arranged in the pack area 1 and the original pixel data arranged in the pack area 2 in the data reverse conversion unit 52 are discriminated based on the data enable signal input from the image processing unit 50. The This data enable signal is a signal including information indicating the color pixel data of the CCD 30 as the original pixel data output to the image processing unit 50.

データ分割部521は、パックデータをパック領域1データとパック領域2データとに分割する。そして、データ分割部521は、分割したパック領域1データ(図3においては、22bitのパック領域1データ)をパック領域1データ復元部522に、パック領域2データ(図3においては、10bitのパック領域2データ)をパック領域2データ復元部523に、それぞれ出力する。   The data dividing unit 521 divides the pack data into pack area 1 data and pack area 2 data. The data dividing unit 521 then sends the divided pack area 1 data (22-bit pack area 1 data in FIG. 3) to the pack area 1 data restoring unit 522, and pack area 2 data (in FIG. 3, 10-bit pack). Area 2 data) is output to the pack area 2 data restoration unit 523.

パック領域1データ復元部522は、データ分割部521から入力されたパック領域1データの各ビットに順次配置された、2画素分の元の画素データを、例えば、パック領域1データの上位側のビット(図3においては、11bit)の画素データと、下位側のビット(図3においては、11bit)の画素データとに分割する。そして、分割したそれぞれの画素データを、データ選択部524に出力する。   The pack area 1 data restoration unit 522 converts the original pixel data for two pixels sequentially arranged in each bit of the pack area 1 data input from the data division unit 521, for example, on the upper side of the pack area 1 data. The pixel data is divided into bits (11 bits in FIG. 3) and lower bits (11 bits in FIG. 3). Then, the divided pixel data is output to the data selection unit 524.

パック領域2データ復元部523は、画像処理部50から入力されたデータイネーブル信号に基づいて、データ分割部521から入力されたパック領域2データの各ビットに配置された、3画素分の画素データをそれぞれの画素データに分割する。そして、分割したそれぞれの画素データ(図3においては、11bit)を、データ選択部524に出力する。   Based on the data enable signal input from the image processing unit 50, the pack region 2 data restoration unit 523 is configured to store pixel data for three pixels arranged in each bit of the pack region 2 data input from the data dividing unit 521. Is divided into respective pixel data. Then, the divided pixel data (11 bits in FIG. 3) is output to the data selection unit 524.

なお、パック領域2データ復元部523は、予め定められた後述するパッキング方法と逆の方法で、それぞれの画素データに分割する。なお、パック領域2データ復元部523内には、例えば、パッキング単位(4転送)分のパック領域2データを一時的に保持するメモリ部を備え、画像処理部50から入力されたデータイネーブル信号に基づいて、パック領域2データ内で分割して配置されている11bitの画素データを揃えて、データ選択部524に出力する。   Note that the pack area 2 data restoration unit 523 divides the data into the respective pixel data by a method reverse to a predetermined packing method described later. The pack area 2 data restoration unit 523 includes a memory unit that temporarily holds pack area 2 data for a packing unit (4 transfers), for example, and receives a data enable signal input from the image processing unit 50. Based on this, 11-bit pixel data divided and arranged in the pack area 2 data are aligned and output to the data selection unit 524.

データ選択部524は、画像処理部50から入力されたデータイネーブル信号に基づいて、パック領域1データ復元部522またはパック領域2データ復元部523から入力された画素データを順次選択し、データ逆変換部52が分割(アンパッキング)した元の画素データとして、画像処理部50に出力する。なお、データ選択部524内には、パック領域1データ復元部522およびパック領域2データ復元部523からそれぞれ入力された、11bitの画素データをそれぞれ一時的に保持するメモリ部を備え、画像処理部50から入力されたデータイネーブル信号に基づいて、画素データの出力タイミングの整合をとって、それぞれの画素データを順次、画像処理部50に出力する。   The data selection unit 524 sequentially selects the pixel data input from the pack area 1 data restoration unit 522 or the pack area 2 data restoration unit 523 based on the data enable signal input from the image processing unit 50, and performs inverse data conversion. The original pixel data divided (unpacked) by the unit 52 is output to the image processing unit 50. The data selection unit 524 includes a memory unit that temporarily holds 11-bit pixel data respectively input from the pack area 1 data restoration unit 522 and the pack area 2 data restoration unit 523, and includes an image processing unit. Based on the data enable signal input from 50, the output timing of the pixel data is matched, and each pixel data is sequentially output to the image processing unit 50.

次に、画素データの配置(パッキング)方法について説明する。本実施形態の撮像装置1では、データ変換部41および51が入力された画素データをメモリバスに配置したパックデータを生成し、データ逆変換部52および62が入力されたパックデータを元の画素データに戻す。なお、以下の説明においては、データ変換部41に、図15に示したベイヤーデータ内の各画素データが順次入力され、4転送を1つのパッキング単位とした1バーストのパックデータにパッキングする場合について説明する。また、ベイヤーデータ内の各画素データのビット数は11bitであり、メモリバス幅は32bitであるものとする。   Next, a pixel data arrangement (packing) method will be described. In the imaging device 1 of the present embodiment, pack data in which the pixel data input by the data conversion units 41 and 51 is arranged on the memory bus is generated, and the pack data input by the data reverse conversion units 52 and 62 is converted into the original pixel. Return to data. In the following description, each pixel data in the Bayer data shown in FIG. 15 is sequentially input to the data conversion unit 41 and packed into one burst pack data with four transfers as one packing unit. explain. Further, the number of bits of each pixel data in the Bayer data is 11 bits, and the memory bus width is 32 bits.

なお、データ逆変換部52および62によるパックデータを元の画素データに戻す方法は、データ変換部41および51による画素データのパッキング方法と逆の方法であるため、詳細な説明は省略する。   Note that the method of returning the packed data to the original pixel data by the data inverse conversion units 52 and 62 is the reverse of the method of packing the pixel data by the data conversion units 41 and 51, and thus detailed description thereof is omitted.

<第1のデータ配置方法>
図4は、本第1の構成のデータ変換部41における本第1のデータ配置方法(パッキング方法)を説明する図である。図4(a)は、パックデータ内の画素データの配置を示し、図4(b)は、パックデータ内のパック領域2の画素データの各ビットの配置を示している。
<First data arrangement method>
FIG. 4 is a diagram for explaining the first data arrangement method (packing method) in the data converter 41 having the first configuration. FIG. 4A shows the arrangement of pixel data in the pack data, and FIG. 4B shows the arrangement of each bit of the pixel data in the pack area 2 in the pack data.

上記に述べたように、画像データは、通常、隣接する画素同士の方が画素データの変化量が小さい。このため、パックデータを構築する際には、バースト転送時にメモリバスの各ビットの変化量が最も小さくなるように、隣接する画素の画素データの同一ビットを、各転送におけるメモリバスの同一のビットに配置することが望ましい。   As described above, image data usually has a smaller amount of change in pixel data between adjacent pixels. For this reason, when building packed data, the same bit of the pixel data of adjacent pixels is changed to the same bit of the memory bus in each transfer so that the change amount of each bit of the memory bus is minimized during burst transfer. It is desirable to arrange in.

また、ベイヤー、RGB、またはYC422点順次など、画像処理部50が画像処理する際の画像のフォーマットによって、画像データ内の各画素データが表す色の情報が異なる。このため、パックデータを構築する際には、バースト転送時にメモリバスの各ビットの変化量が最も小さくなるように、同一色の画素データを、各転送におけるメモリバスの同一のビットに配置することが望ましい。   Also, the color information represented by each pixel data in the image data varies depending on the image format when the image processing unit 50 performs image processing, such as Bayer, RGB, or YC422 dot sequential. For this reason, when building packed data, pixel data of the same color should be placed in the same bit of the memory bus in each transfer so that the amount of change in each bit of the memory bus is minimized during burst transfer Is desirable.

本第1のパッキング方法では、パック領域1データ生成部411が、パックデータ内のパック領域1の連続する2転送間のデータにおいて、隣接する同一色の画素データが、メモリバス上の同一ビットに配置されるように、パック領域1データを配置する。   In the first packing method, the pack area 1 data generation unit 411 sets adjacent pixel data of the same color in the same bit on the memory bus in the data between two successive transfers of the pack area 1 in the pack data. Pack area 1 data is arranged so as to be arranged.

また、パック領域2データ生成部412が、画素データが配置されずに残っているパックデータ内のパック領域2の連続する4転送間で、画素データがラスター順となるように、画素データの各ビットを詰めてパック領域2データを配置する。   In addition, the pack area 2 data generation unit 412 sets each pixel data so that the pixel data is in raster order between four consecutive transfers of the pack area 2 in the pack data that is left without pixel data being arranged. Pack area 2 data is arranged by packing bits.

より具体的には、パック領域1データ生成部411は、ベイヤーデータ内の各画素データ(「R0」,「G1」,「R2」,「G3」,「R4」,「G5」,「R6」,「G7」)を、図4(a)に示したように、1転送目に「R0」および「G1」、2転送目に「R2」および「G3」、3転送目に「R4」および「G5」、4転送目に「R6」および「G7」を、それぞれメモリバスの最下位ビットから順次配置(パッキング)する。   More specifically, the pack area 1 data generation unit 411 performs pixel data (“R0”, “G1”, “R2”, “G3”, “R4”, “G5”, “R6”) in the Bayer data. , “G7”), as shown in FIG. 4A, “R0” and “G1” in the first transfer, “R2” and “G3” in the second transfer, and “R4” in the third transfer. "G5" and "R6" and "G7" are sequentially arranged (packed) from the least significant bit of the memory bus in the fourth transfer.

また、パック領域2データ生成部412は、ベイヤーデータ内の各画素データ(「R8」,「G9」,「R10」)を、図4(b)に示したように、1転送目に「R8」のビット[0]〜ビット[9]、2転送目に「R0」のビット[10]および「G9」のビット[0]〜ビット[8]、3転送目に「G9」のビット[9]〜ビット[10]および「R10」のビット[0]〜ビット[7]、4転送目に「R10」のビット[8]〜ビット[10]を、それぞれパック領域2のメモリバスの下位ビットから順次パッキングする。   Further, the pack area 2 data generation unit 412 converts each pixel data (“R8”, “G9”, “R10”) in the Bayer data into “R8” at the first transfer as shown in FIG. Bit [0] to bit [9] of bit "10" of "R0" in the second transfer and bit [0] to bit [8] of "G9" in the second transfer, bit [9] of "G9" in the third transfer ] To bit [10] and bit [0] to bit [7] of “R10”, and bits [8] to [10] of “R10” are respectively assigned to the lower bits of the memory bus in the pack area 2 in the fourth transfer. Pack sequentially.

なお、パック領域2内に画素データの全てのビットを配置することができない場合には、次の画素データ(例えば、ベイヤーデータ内の画素データ「G11」)をパッキングしない。これは、データ変換部41は、パッキング単位で各画素データをパッキングするため、「G11」の画素データの一部をパッキングすると、「G11」のデータがパッキング単位を跨いでしまうことになるためである。従って、画素データが配置されなかったパック領域2内のデータバスのビット(図4においては、4転送目のデータバスのビット[31]〜ビット[25])は、未使用ビットとする。なお、未使用ビットには、全て同じ値のデータ(例えば、全て“1”または全て“0”のデータ)を配置する構成とすることもできる。   If all the bits of the pixel data cannot be arranged in the pack area 2, the next pixel data (for example, the pixel data “G11” in the Bayer data) is not packed. This is because the data conversion unit 41 packs each pixel data in a packing unit, and therefore, if a part of the pixel data “G11” is packed, the data “G11” straddles the packing unit. is there. Therefore, the bits of the data bus in the pack area 2 where the pixel data is not arranged (in FIG. 4, bits [31] to [25] of the data bus for the fourth transfer) are unused bits. Note that it is possible to adopt a configuration in which all the data having the same value (for example, all “1” or all “0” data) is arranged in the unused bits.

このようにして、パックデータを生成することによって、本第1のパッキング方法では、各転送間での画素データのビット位置のずれが、メモリバス幅全体のうち、パック領域2のビットに限定される。さらに、本第1のパッキング方法では、隣接する同一色の画素データが、メモリバス上の同一ビットに配置されるように、パック領域1内の画素データを配置している。これにより、バースト転送時におけるメモリバスの各ビットの変化量を少なくすることができる。このことにより、本第1のパッキング方法では、従来のバースト単位でのパッキング方法と同様に、画像データの転送効率を維持すると共に、従来のバースト単位でのパッキング方法よりも、画像データの転送に係る消費電力を低減させることができる。   By generating the pack data in this way, in the first packing method, the shift of the bit position of the pixel data between each transfer is limited to the bits of the pack area 2 in the entire memory bus width. The Further, in the first packing method, the pixel data in the pack area 1 is arranged so that adjacent pixel data of the same color is arranged in the same bit on the memory bus. Thereby, the amount of change of each bit of the memory bus at the time of burst transfer can be reduced. Thus, in the first packing method, the transfer efficiency of image data is maintained as in the conventional packing method in burst units, and the transfer of image data is more effective than the conventional packing method in burst units. Such power consumption can be reduced.

<第2のデータ配置方法>
図5は、本第1の構成のデータ変換部41における本第2のデータ配置方法(パッキング方法)を説明する図である。図5(a)は、パックデータ内の画素データの配置を示し、図5(b)は、パックデータ内のパック領域2の画素データの各ビットの配置を示している。
<Second data arrangement method>
FIG. 5 is a diagram for explaining the second data arrangement method (packing method) in the data conversion unit 41 of the first configuration. FIG. 5A shows the arrangement of the pixel data in the pack data, and FIG. 5B shows the arrangement of each bit of the pixel data in the pack area 2 in the pack data.

本第2のパッキング方法では、パック領域1データ生成部411が、第1のパッキング方法と同様に、パックデータ内のパック領域1の連続する2転送間のデータにおいて、隣接する同一色の画素データが、メモリバス上の同一ビットに配置されるように、パック領域1データを配置する。なお、第2のパッキング方法におけるパック領域1のパックデータの配置方法は、第1のパッキング方法と同様であるため、詳細な説明は省略する。   In the second packing method, the pack area 1 data generation unit 411 uses adjacent pixel data of the same color in the data between two successive transfers of the pack area 1 in the pack data, as in the first packing method. However, the pack area 1 data is arranged so as to be arranged in the same bit on the memory bus. Note that the arrangement method of pack data in the pack area 1 in the second packing method is the same as that in the first packing method, and thus detailed description thereof is omitted.

また、パック領域2データ生成部412が、画素データが配置されずに残っているパックデータ内のパック領域2内で、同一のビット位置を境界として画素データを分割する。そして、分割した画素データの隣接する同一色の画素データが、連続する2転送間でメモリバス上の同一ビットに配置されるように、パック領域2データを配置する。また、分割した残りのビットは、4転送目に配置する。   In addition, the pack area 2 data generation unit 412 divides the pixel data with the same bit position as a boundary in the pack area 2 in the pack data that remains without pixel data being arranged. Then, the pack area 2 data is arranged so that adjacent pixel data of the same color adjacent to the divided pixel data is arranged in the same bit on the memory bus between two successive transfers. The remaining divided bits are arranged at the fourth transfer.

より具体的には、パック領域2データ生成部412は、ベイヤーデータ内の各画素データ(「R8」,「G9」,「R10」)を、図5(b)に示したように、1転送目に「R8」のビット[1]〜ビット[10]、2転送目に「R10」のビット[1]〜ビット[10]、3転送目に「G9」のビット[1]〜ビット[10]を、それぞれパック領域2のメモリバスの下位ビットから順次パッキングする。また、4転送目に「R8」のビット[0]、「G9」のビット[0]、「R10」のビット[0]を、それぞれパック領域2のメモリバスの下位ビットから順次パッキングする。   More specifically, the pack area 2 data generation unit 412 transfers each pixel data (“R8”, “G9”, “R10”) in the Bayer data for one transfer as shown in FIG. Bit [1] to Bit [10] of “R8” in the eye, Bit [1] to Bit [10] of “R10” in the second transfer, Bit [1] to Bit [10] of “G9” in the third transfer Are sequentially packed from the lower bits of the memory bus in the pack area 2. In the fourth transfer, bit [0] of “R8”, bit [0] of “G9”, and bit [0] of “R10” are sequentially packed from the lower bits of the memory bus in the pack area 2, respectively.

なお、パック領域2内に画素データの全てのビットを配置することができない場合においては、第1のパッキング方法と同様に、画素データが配置されなかったパック領域2内のデータバスのビット(図5においては、4転送目のデータバスのビット[31]〜ビット[25])は、未使用ビットとする。   When all the bits of the pixel data cannot be arranged in the pack area 2, as in the first packing method, the bits of the data bus in the pack area 2 where the pixel data is not arranged (see FIG. 5, bit [31] to bit [25]) of the fourth transfer data bus are unused bits.

このようにして、本第2のパッキング方法では、パック領域2においても、メモリバス上の同一ビットに各画素データの同一ビットを配置している(図5における1転送目〜3転送目参照)。また、隣接する同一色の画素データを、連続する2転送間に配置している(図5における1転送目および2転送目参照)。そして、1転送目〜3転送目に配置されなかった各画素データのビットを、4転送目に配置している。これにより、第1のパッキング方法よりもさらにバースト転送時におけるメモリバスの各ビットの変化量、特に、パック領域2の各ビットの変化量を少なくすることができる。このことにより、本第2のパッキング方法では、第1のパッキング方法よりもさらに、画像データの転送に係る消費電力を低減させることができる。   In this way, in the second packing method, the same bit of each pixel data is arranged in the same bit on the memory bus also in the pack area 2 (see the first to third transfers in FIG. 5). . Further, adjacent pixel data of the same color are arranged between two successive transfers (see the first transfer and the second transfer in FIG. 5). The bits of the pixel data that are not arranged in the first transfer to the third transfer are arranged in the fourth transfer. Thereby, the amount of change of each bit of the memory bus during burst transfer, in particular, the amount of change of each bit of the pack area 2 can be reduced more than in the first packing method. As a result, in the second packing method, it is possible to further reduce the power consumption related to the transfer of the image data, compared to the first packing method.

なお、図5に示した第2のパッキング方法では、パック領域2に各画素データを配置する際に、各画素データのビット[0]をまとめて配置している場合について説明したが、これは、パック領域2のメモリバス幅が10bitであり、画素データのビット数は11bitであるためである。すなわち、メモリバス上に画素データを配置するとき、1転送内のメモリバスに配置することができなかった各画素データの最下位の1bit(図5においては、各画素データのビット[0])を、4転送目にまとめて配置したのである。従って、1転送内のメモリバスに配置することができなかった各画素データが複数ビットある場合には、その複数ビットの各画素データを、4転送目にまとめて配置することになる。なお、4転送目にまとめて配置する各画素のビットは、下位ビットが望ましい。これは、画像データは、通常、画素データの下位ビットの方が、隣接する画素同士でも、例えば、撮像装置1内のノイズ成分によって値が異なることが予想されるためである。   In the second packing method shown in FIG. 5, the case has been described in which the bit [0] of each pixel data is collectively arranged when the pixel data is arranged in the pack area 2. This is because the memory bus width of the pack area 2 is 10 bits and the number of bits of the pixel data is 11 bits. That is, when pixel data is arranged on the memory bus, the least significant 1 bit of each pixel data that could not be arranged on the memory bus in one transfer (in FIG. 5, bit [0] of each pixel data) Are arranged together in the fourth transfer. Therefore, when there are a plurality of bits of pixel data that could not be arranged on the memory bus in one transfer, the pixel data of the plurality of bits are arranged together at the fourth transfer. Note that the bits of the pixels arranged in the fourth transfer are preferably lower bits. This is because the image data is normally expected to have different values depending on noise components in the imaging device 1, for example, even if the lower bits of the pixel data are adjacent to each other.

<第3のデータ配置方法>
図6は、本第1の構成のデータ変換部41における本第3のデータ配置方法(パッキング方法)を説明する図である。図6(a)は、パックデータ内の画素データの配置を示し、図6(b)は、パックデータ内のパック領域2の画素データの各ビットの配置を示している。
<Third data arrangement method>
FIG. 6 is a diagram for explaining the third data arrangement method (packing method) in the data conversion unit 41 of the first configuration. FIG. 6A shows the arrangement of pixel data in the pack data, and FIG. 6B shows the arrangement of each bit of the pixel data in the pack area 2 in the pack data.

本第3のパッキング方法では、パック領域1データ生成部411が、第1のパッキング方法および第2のパッキング方法と同様に、パックデータ内のパック領域1の連続する2転送間のデータにおいて、隣接する同一色の画素データが、メモリバス上の同一ビットに配置されるように、画素データを配置する。なお、第3のパッキング方法におけるパック領域1のパックデータの配置方法は、第1のパッキング方法および第2のパッキング方法と同様であるため、詳細な説明は省略する。   In the third packing method, the pack area 1 data generation unit 411 is adjacent to the data between two consecutive transfers in the pack area 1 in the pack data, as in the first packing method and the second packing method. The pixel data is arranged so that pixel data of the same color is arranged at the same bit on the memory bus. Note that the arrangement method of the pack data in the pack area 1 in the third packing method is the same as the first packing method and the second packing method, and thus detailed description thereof is omitted.

また、パック領域2データ生成部412が、第2のパッキング方法と同様に、画素データが配置されずに残っているパックデータ内のパック領域2内で、同一のビット位置を境界として画素データを分割して配置する。さらに、本第3のパッキング方法では、パック領域2データ生成部412が、パック領域2内の未使用ビットに、直前の1転送で配置した画素データと同一ビットの画素データを再度配置、すなわち、コピーして配置する。なお、第3のパッキング方法におけるパック領域2の未使用ビット以外のパックデータの配置方法は、第2のパッキング方法と同様であるため、詳細な説明は省略する。   Also, the pack area 2 data generation unit 412 outputs pixel data with the same bit position as a boundary in the pack area 2 in the pack data remaining without the pixel data being arranged, as in the second packing method. Divide and arrange. Further, in the third packing method, the pack area 2 data generation unit 412 again arranges the pixel data having the same bits as the pixel data arranged in the previous one transfer in the unused bits in the pack area 2, that is, Copy and place. Note that the arrangement method of pack data other than unused bits in the pack area 2 in the third packing method is the same as that in the second packing method, and thus detailed description thereof is omitted.

ここで、パック領域2データ生成部412による未使用ビットの画素データの配置について、より具体的に説明する。パック領域2データ生成部412は、4転送目の未使用ビット(図6においては、4転送目のデータバスのビット[31]〜ビット[25])に、3転送目のデータバスのビット[31]〜ビット[25]に配置した画素データ(図6においては、画素データ「G9」のビット[4]〜ビット[10])を、コピーして、再度配置する。   Here, the arrangement of pixel data of unused bits by the pack area 2 data generation unit 412 will be described more specifically. The pack area 2 data generation unit 412 uses the unused bits of the fourth transfer (in FIG. 6, bits [31] to [25] of the data bus of the fourth transfer) to the bits [ 31] to bit [25], the pixel data (bit [4] to bit [10] of pixel data “G9” in FIG. 6) is copied and rearranged.

このようにして、本第3のパッキング方法では、パック領域2内の未使用ビットに、直前の1転送で配置した画素データと同一の値を配置している(図6における4転送目参照)。これにより、第2のパッキング方法よりもさらにバースト転送時におけるメモリバスの各ビットの変化量、特に、パック領域2の未使用ビットの変化量を少なくすることができる。このことにより、本第3のパッキング方法では、第2のパッキング方法よりもさらに、画像データの転送に係る消費電力を低減させることができる。   In this way, in the third packing method, the same value as the pixel data arranged in the previous one transfer is arranged in the unused bits in the pack area 2 (see the fourth transfer in FIG. 6). . As a result, the amount of change of each bit of the memory bus during burst transfer, in particular, the amount of change of unused bits in the pack area 2 can be further reduced as compared with the second packing method. Thus, in the third packing method, it is possible to further reduce the power consumption related to the transfer of image data, compared to the second packing method.

上記に述べたように、本第1の構成のデータ変換部41および51では、バースト転送時におけるメモリバスの各ビットの変化量が少なくなるように、画素データを配置することができる。これにより、本第1の構成のデータ変換部41および51では、従来のバースト単位でのパッキング方法と同様に、画像データの転送効率を維持すると共に、従来のバースト単位でのパッキング方法よりも、画像データの転送に係る消費電力を低減させることができる。このことにより、撮像装置1内の各構成要素(処理ブロック)とメモリ20との間での画素データの転送、すなわち、撮像装置1内の各構成要素間での画素データの受け渡しに係る消費電力を低減させることができる。   As described above, in the data conversion units 41 and 51 of the first configuration, the pixel data can be arranged so that the change amount of each bit of the memory bus at the time of burst transfer is reduced. Thereby, in the data conversion units 41 and 51 of the first configuration, the image data transfer efficiency is maintained as in the conventional burst unit packing method, and the conventional burst unit packing method, It is possible to reduce power consumption related to transfer of image data. As a result, power consumption related to transfer of pixel data between each component (processing block) in the imaging device 1 and the memory 20, that is, transfer of pixel data between each component in the imaging device 1. Can be reduced.

<第2の構成>
次に、本第2の構成のデータ変換部について説明する。図7は、本実施形態の撮像装置1に備えた本第2の構成のデータ変換部43の概略構成を示したブロック図である。図7に示したデータ変換部43は、第1の構成のデータ変換部41の代わりに、撮像装置1に備えられる。従って、データ変換部43は、データ変換部51の代わりに撮像装置1に備えることもできる。図7に示したように、データ変換部43は、ビット分割部430と、パック領域1データ生成部431と、パック領域2データ生成部432と、データ結合部433と、を備えている。
<Second configuration>
Next, the data conversion unit having the second configuration will be described. FIG. 7 is a block diagram illustrating a schematic configuration of the data conversion unit 43 of the second configuration provided in the imaging apparatus 1 of the present embodiment. The data conversion unit 43 illustrated in FIG. 7 is provided in the imaging device 1 instead of the data conversion unit 41 having the first configuration. Therefore, the data conversion unit 43 can be provided in the imaging device 1 instead of the data conversion unit 51. As shown in FIG. 7, the data conversion unit 43 includes a bit division unit 430, a pack region 1 data generation unit 431, a pack region 2 data generation unit 432, and a data combination unit 433.

なお、以下の説明においては、第1の構成と同様に、データ変換部43に、図15に示したような、16行×16列のベイヤーデータが入力され、4転送をベイヤーデータ内の各画素データのパッキング単位とし、メモリバス幅は32bitである場合について説明する。なお、図7においては、第2の構成と異なり、ベイヤーデータ内の各画素データのビット数が9bitであるものとして説明する。   In the following description, as in the first configuration, Bayer data of 16 rows × 16 columns as shown in FIG. 15 is input to the data conversion unit 43, and four transfers are performed in each Bayer data. A case where the pixel data packing unit is used and the memory bus width is 32 bits will be described. In FIG. 7, unlike the second configuration, description will be made assuming that the number of bits of each pixel data in the Bayer data is 9 bits.

データ変換部43は、撮像処理部40から入力された9bitの画素データの各ビットのデータを、予め定められた後述するパッキング方法で、メモリバス上の各ビットに配置した32bitのパックデータを出力する。データ変換部43は、第1の構成のデータ変換部41と同様に、パッキング単位をパック領域1とパック領域2とに分けてメモリバス上の各ビットに画素データの各ビットを配置する。ただし、メモリバス上の各ビットに画素データの各ビットを配置する方法は、第1の構成のデータ変換部41と異なる。データ変換部43によるメモリバスへの画素データの配置方法に関する詳細な説明は、後述する。   The data converter 43 outputs 32-bit pack data in which each bit of 9-bit pixel data input from the imaging processor 40 is arranged in each bit on the memory bus by a predetermined packing method described later. To do. Similar to the data converter 41 of the first configuration, the data converter 43 divides the packing unit into the pack area 1 and the pack area 2 and arranges each bit of the pixel data in each bit on the memory bus. However, the method of arranging each bit of pixel data in each bit on the memory bus is different from the data conversion unit 41 of the first configuration. A detailed description of the arrangement method of the pixel data on the memory bus by the data conversion unit 43 will be described later.

ビット分割部430は、入力されたそれぞれの画素データを、例えば、上位8ビットの画素データ(以下、「上位画素データ」という)と下位1ビットの画素データ(以下、「下位画素データ」という)とに分割する。そして、分割した上位画素データを、パック領域1データ生成部431に出力する。またビット分割部430は、分割した下位画素データを、パック領域2データ生成部432に出力する。   The bit division unit 430, for example, converts each input pixel data into upper 8 bit pixel data (hereinafter referred to as “upper pixel data”) and lower 1 bit pixel data (hereinafter referred to as “lower pixel data”). And split. Then, the divided upper pixel data is output to the pack area 1 data generation unit 431. In addition, the bit division unit 430 outputs the divided lower pixel data to the pack region 2 data generation unit 432.

パック領域1データ生成部431は、撮像処理部40から入力されたデータイネーブル信号に基づいて、パック領域1のデータバス(このデータバスはメモリバスの各ビットに対応しているため、以下の説明においては、「メモリバス」として説明する)の各ビットに、4画素分の上位画素データを、例えば、メモリバスの下位ビットに対応した位置のビットから、順次配置する。そして、上位画素データを順次配置したメモリバス幅のビット数(図7においては、32bit)のパック領域1データをデータ結合部433に出力する。また、パック領域1データ生成部431が、4転送目のパック領域1データをデータ結合部433に出力する際には、2画素分の上位画素データを、例えば、メモリバスの下位ビットに対応した位置のビットから、順次配置した16bitのパック領域1データをデータ結合部433に出力する。なお、パック領域1データ生成部431は、上位画素データをメモリ20にバースト転送する際の連続する2転送間のデータにおいて、隣接する同一色の画素データが、メモリバス上の同一ビットに配置されるように、パック領域1データを配置する。   The pack area 1 data generation unit 431 is based on the data enable signal input from the imaging processing unit 40, and the pack area 1 data bus (this data bus corresponds to each bit of the memory bus. In this example, upper pixel data for four pixels is sequentially arranged in each bit of “memory bus”, for example, starting from a bit at a position corresponding to the lower bit of the memory bus. Then, the pack area 1 data having the number of bits (32 bits in FIG. 7) of the memory bus width in which the upper pixel data is sequentially arranged is output to the data combination unit 433. When the pack area 1 data generation unit 431 outputs the pack area 1 data for the fourth transfer to the data combination unit 433, the upper pixel data for two pixels corresponds to, for example, the lower bits of the memory bus. The 16 bit packed region 1 data arranged sequentially from the position bit is output to the data combining unit 433. The pack area 1 data generation unit 431 arranges adjacent pixel data of the same color in the same bit on the memory bus in the data between two successive transfers when the upper pixel data is burst transferred to the memory 20. Thus, the pack area 1 data is arranged.

パック領域2データ生成部432は、撮像処理部40から入力されたデータイネーブル信号に基づいて、パック領域2のデータバス(このデータバスもメモリバスの各ビットに対応しているため、以下の説明においては、「メモリバス」として説明する)の各ビットに、14画素分の下位画素データを配置する。そして、下位画素データを配置したメモリバス幅以下のビット数(図7においては、16bit)のパック領域2データをデータ結合部433に出力する。なお、パック領域2データ生成部432内には、例えば、16個の1bitの画素データをそれぞれ一時的に保持するメモリ部を備え、撮像処理部40から入力されたデータイネーブル信号に基づいて画素データの出力タイミングの整合をとり、4転送目のタイミングでパック領域2データをデータ結合部433に出力する。   The pack area 2 data generation unit 432 is based on the data enable signal input from the imaging processing unit 40, and the pack area 2 data bus (this data bus also corresponds to each bit of the memory bus. In FIG. 4, the lower pixel data for 14 pixels is arranged in each bit of “memory bus”. Then, the pack area 2 data having the number of bits less than the memory bus width in which the lower pixel data is arranged (16 bits in FIG. 7) is output to the data combining unit 433. The pack area 2 data generation unit 432 includes, for example, a memory unit that temporarily holds 16 pieces of 1-bit pixel data, and pixel data based on a data enable signal input from the imaging processing unit 40. The pack area 2 data is output to the data combining unit 433 at the timing of the fourth transfer.

データ結合部433は、パック領域1データ生成部431から入力されたパック領域1データと、パック領域2データ生成部432から入力されたパック領域2データとを結合したパックデータを生成する。そして、データ結合部433は、生成したパックデータを順次、出力DMA部45に出力する。なお、データ結合部433は、1転送目〜3転送目までは、パック領域1データ生成部431から入力されたパック領域1データを、パックデータとして順次出力DMA部45に出力する。また、データ結合部433は、4転送目で、パック領域1データ生成部431から入力された16bitのパック領域1データと、パック領域2データ生成部432から入力された16bitのパック領域2データとを結合したパックデータを出力DMA部45に出力する。   The data combining unit 433 generates pack data obtained by combining the pack region 1 data input from the pack region 1 data generation unit 431 and the pack region 2 data input from the pack region 2 data generation unit 432. Then, the data combining unit 433 sequentially outputs the generated pack data to the output DMA unit 45. The data combining unit 433 sequentially outputs the pack area 1 data input from the pack area 1 data generation unit 431 to the output DMA unit 45 as pack data from the first transfer to the third transfer. Also, the data combining unit 433 receives the 16-bit pack region 1 data input from the pack region 1 data generation unit 431 and the 16-bit pack region 2 data input from the pack region 2 data generation unit 432 in the fourth transfer. Is output to the output DMA unit 45.

なお、データ結合部433内には、例えば、16bitのパック領域1データを一時的に保持するメモリ部を備え、撮像処理部40から入力されたデータイネーブル信号に基づいて、16bitの4転送目のパック領域1データと、16bitの4転送目のパック領域2データとのタイミングの整合をとって、32bitのパックデータを生成する。   The data combining unit 433 includes, for example, a memory unit that temporarily stores 16-bit packed area 1 data. Based on the data enable signal input from the imaging processing unit 40, the fourth transfer of 16-bit data is performed. The pack area 1 data and the 16-bit fourth transfer pack area 2 data are matched in timing to generate 32-bit pack data.

次に、本第2の構成のデータ逆変換部について説明する。図8は、本実施形態の撮像装置1に備えた本第2の構成のデータ逆変換部54の概略構成を示したブロック図である。図8に示したデータ逆変換部54は、第1の構成のデータ逆変換部52の代わりに、撮像装置1に備えられる。従って、データ逆変換部54は、データ逆変換部62の代わりに撮像装置1に備えることもできる。図8に示したように、データ逆変換部54は、データ分割部541と、パック領域1データ復元部542と、パック領域2データ復元部543と、ビット結合部540と、データ選択部544と、を備えている。   Next, the data inverse conversion unit having the second configuration will be described. FIG. 8 is a block diagram showing a schematic configuration of the data inverse conversion unit 54 of the second configuration provided in the imaging apparatus 1 of the present embodiment. The data reverse conversion unit 54 illustrated in FIG. 8 is provided in the imaging device 1 instead of the data reverse conversion unit 52 having the first configuration. Therefore, the data reverse conversion unit 54 can be provided in the imaging device 1 instead of the data reverse conversion unit 62. As shown in FIG. 8, the data reverse conversion unit 54 includes a data division unit 541, a pack area 1 data restoration unit 542, a pack area 2 data restoration unit 543, a bit combination unit 540, and a data selection unit 544. It is equipped with.

なお、以下の説明においては、第1の構成と同様に、データ逆変換部54に、データ変換部43によってパッキングされた、4転送をパッキング単位とした1バーストのパックデータが、入力DMA部56を介して入力され、入力されたパックデータを、図15に示したベイヤーデータに戻す場合について説明する。従って、ベイヤーデータ内の各画素データのビット数は9bitであり、メモリバス幅は32bitであるものとして説明する。   In the following description, as in the first configuration, one burst of packed data packed in the data inverse conversion unit 54 by the data conversion unit 43 and having 4 transfers as a packing unit is input DMA unit 56. A case where the input pack data is returned to the Bayer data shown in FIG. 15 will be described. Therefore, description will be made assuming that the number of bits of each pixel data in the Bayer data is 9 bits and the memory bus width is 32 bits.

データ逆変換部54は、入力DMA部56から入力された32bitのパックデータの各ビットに配置されたデータを、予め定められた後述するパッキング方法と逆の方法で、画像処理部50が画像処理する元の画像データ(ベイヤーデータ)に戻した9bitの画素データを出力する。データ逆変換部54は、第1の構成のデータ逆変換部52と同様に、パッキング単位をパック領域1とパック領域2とに分けて、メモリバス上の各ビットのデータを、それぞれ元の画素データの各ビットに分配する。   The data reverse conversion unit 54 converts the data arranged in each bit of the 32-bit packed data input from the input DMA unit 56 by the image processing unit 50 using a method reverse to a predetermined packing method described later. The 9-bit pixel data returned to the original image data (Bayer data) is output. Similar to the data inverse conversion unit 52 of the first configuration, the data inverse conversion unit 54 divides the packing unit into the pack area 1 and the pack area 2, and converts the data of each bit on the memory bus to the original pixel. Distribute to each bit of data.

データ分割部541は、パックデータをパック領域1データとパック領域2データとに分割する。そして、データ分割部541は、分割したパック領域1データ(図8においては、32bitのパック領域1データ、または16bitのパック領域1データ)をパック領域1データ復元部542に出力する。また、データ分割部541は、パック領域2データ(図8においては、16bitのパック領域2データ)をパック領域2データ復元部543に出力する。   The data dividing unit 541 divides the pack data into pack area 1 data and pack area 2 data. Then, the data division unit 541 outputs the divided pack area 1 data (32-bit pack area 1 data or 16-bit pack area 1 data in FIG. 8) to the pack area 1 data restoration unit 542. Further, the data dividing unit 541 outputs the pack area 2 data (16-bit pack area 2 data in FIG. 8) to the pack area 2 data restoring unit 543.

パック領域1データ復元部542は、データ分割部541から入力されたパック領域1データの各ビットに順次配置された、4画素分の元の上位画素データを、例えば、パック領域1データの4つの上位画素データ(図8においては、8bit)に分割する。そして、分割したそれぞれの上位画素データを、ビット結合部540に出力する。   The pack area 1 data restoration unit 542 converts the original upper pixel data for 4 pixels sequentially arranged in each bit of the pack area 1 data input from the data division unit 541 into, for example, four pack area 1 data The data is divided into upper pixel data (8 bits in FIG. 8). Then, each divided upper pixel data is output to the bit combination unit 540.

パック領域2データ復元部543は、画像処理部50から入力されたデータイネーブル信号に基づいて、データ分割部541から入力されたパック領域2データの各ビットに配置された、14画素分の下位画素データをそれぞれの画素データに分割する。そして、分割したそれぞれの下位画素データ(図8においては、1bit)を、ビット結合部540に順次出力する。なお、パック領域2データ復元部543は、予め定められた後述するパッキング方法と逆の方法で、それぞれの下位画素データに分割する。   Based on the data enable signal input from the image processing unit 50, the pack region 2 data restoration unit 543 is arranged for each of the lower 14 pixels arranged in each bit of the pack region 2 data input from the data dividing unit 541. Data is divided into respective pixel data. Then, each divided lower pixel data (1 bit in FIG. 8) is sequentially output to the bit combination unit 540. Note that the pack area 2 data restoration unit 543 divides the data into lower pixel data by a method reverse to a predetermined packing method described later.

ビット結合部540は、パック領域1データ復元部542から入力された上位画素データと、パック領域2データ復元部543から入力された下位画素データとをそれぞれ結合し、結合した画素データをデータ選択部544に出力する。なお、ビット結合部540内には、例えば、パッキング単位(4転送)分の上位画素データを一時的に保持するメモリ部を備え、パック領域2データ復元部543から下位画素データが入力される毎に、入力された下位画素データに対応する上位画素データを結合して、パック領域1データとパック領域2データとに分割して配置されている9bitの画素データを揃えて、データ選択部544に出力する。   The bit combination unit 540 combines the upper pixel data input from the pack area 1 data restoration unit 542 and the lower pixel data input from the pack area 2 data restoration unit 543, and the combined pixel data is a data selection unit. Output to 544. The bit combination unit 540 includes, for example, a memory unit that temporarily stores upper pixel data for a packing unit (4 transfers), and each time lower pixel data is input from the pack region 2 data restoration unit 543. In addition, the upper pixel data corresponding to the inputted lower pixel data is combined, and 9-bit pixel data arranged by being divided into the pack area 1 data and the pack area 2 data is aligned, and the data selection unit 544 Output.

データ選択部544は、画像処理部50から入力されたデータイネーブル信号に基づいて、ビット結合部540から入力された画素データを順次選択し、データ逆変換部54が分割(アンパッキング)した元の画素データとして、画像処理部50に出力する。なお、データ選択部544内には、ビット結合部540からそれぞれ入力された、9bitの画素データをそれぞれ一時的に保持するメモリ部を備え、画像処理部50から入力されたデータイネーブル信号に基づいて、画素データの出力タイミングの整合をとって、それぞれの画素データを順次、画像処理部50に出力する。   The data selection unit 544 sequentially selects the pixel data input from the bit combination unit 540 based on the data enable signal input from the image processing unit 50, and the original data divided (unpacked) by the data inverse conversion unit 54 The pixel data is output to the image processing unit 50. The data selection unit 544 includes a memory unit that temporarily stores 9-bit pixel data input from the bit combination unit 540, respectively, and is based on a data enable signal input from the image processing unit 50. The output timing of the pixel data is matched, and each pixel data is sequentially output to the image processing unit 50.

次に、本第2の構成における画素データの配置(パッキング)方法について説明する。本実施形態の撮像装置1では、例えば、データ変換部43が入力された画素データをメモリバスに配置したパックデータを生成し、データ逆変換部54が入力されたパックデータを元の画素データに戻す。なお、以下の説明においては、データ変換部43に、図15に示したベイヤーデータ内の各画素データが順次入力され、4転送を1つのパッキング単位とした1バーストのパックデータにパッキングする場合について説明する。また、ベイヤーデータ内の各画素データのビット数は9bitであり、メモリバス幅は32bitであるものとする。   Next, a pixel data arrangement (packing) method in the second configuration will be described. In the imaging apparatus 1 of the present embodiment, for example, pack data in which the pixel data input by the data conversion unit 43 is arranged on a memory bus is generated, and the pack data input by the data reverse conversion unit 54 is converted into original pixel data. return. In the following description, each pixel data in the Bayer data shown in FIG. 15 is sequentially input to the data conversion unit 43 and packed into one burst pack data with four transfers as one packing unit. explain. In addition, the number of bits of each pixel data in the Bayer data is 9 bits, and the memory bus width is 32 bits.

なお、データ逆変換部54によるパックデータを元の画素データに戻す方法は、データ変換部43による画素データのパッキング方法と逆の方法であるため、詳細な説明は省略する。   Note that the method for returning the packed data to the original pixel data by the data reverse conversion unit 54 is the reverse of the method for packing the pixel data by the data conversion unit 43, and thus detailed description thereof is omitted.

<第4のデータ配置方法>
図9は、本第2の構成のデータ変換部43における本第4のデータ配置方法(パッキング方法)を説明する図である。図9(a)は、上述した第2のパッキング方法によって、9bitの画素データをメモリバス上に配置した場合の一例を示し、図9(b)は、本第4のパッキング方法によるパックデータ内の画素データの配置を示し、図9(c)は、本第4のパッキング方法によるパックデータ内のパック領域2の画素データの各ビットの配置を示している。
<Fourth data arrangement method>
FIG. 9 is a diagram for explaining the fourth data arrangement method (packing method) in the data conversion unit 43 of the second configuration. FIG. 9A shows an example in which 9-bit pixel data is arranged on the memory bus by the above-described second packing method, and FIG. 9B shows the contents of the pack data by the fourth packing method. FIG. 9C shows the arrangement of each bit of the pixel data in the pack area 2 in the pack data according to the fourth packing method.

第4のパッキング方法では、パックデータ内のパック領域1の連続する2転送間のデータにおいて、隣接する同一色の画素データが、メモリバス上の同一ビットに配置されるように、パック領域1データを配置する。また、パックデータ内のパック領域2内で、同一のビット位置を境界として画素データを分割し、分割した画素データの隣接する同一色の画素データが、連続する2転送間でメモリバス上の同一ビットに配置されるように、パック領域2データを配置する。   In the fourth packing method, in the data between two consecutive transfers in the pack area 1 in the pack data, the pack area 1 data is arranged such that adjacent pixel data of the same color are arranged in the same bit on the memory bus. Place. Also, within the packed area 2 in the packed data, the pixel data is divided with the same bit position as a boundary, and adjacent pixel data of the same color adjacent to the divided pixel data are the same on the memory bus between two successive transfers. Pack area 2 data is arranged so as to be arranged in bits.

このことから、第2のパッキング方法では、図9(a)に示したように、ベイヤーデータ内の各画素データ(「R0」,「G1」,「R2」,「G3」,「R4」,「G5」,「R6」,「G7」,「R8」,「R10」,「R12」)が、パック領域1に配置され、ベイヤーデータ内の各画素データ(「G9」,「G11」,「G13」)が、パック領域2に配置されることになる。   Therefore, in the second packing method, as shown in FIG. 9A, each pixel data (“R0”, “G1”, “R2”, “G3”, “R4”, “G5”, “R6”, “G7”, “R8”, “R10”, “R12”) are arranged in the pack area 1, and each pixel data (“G9”, “G11”, “ G13 ") is arranged in the pack area 2.

図9(a)に示した第2のパッキング方法でも、バースト転送時のメモリバスの各ビットの変化量が少なくなっているため、画像データの転送に係る消費電力を低減させることができるが、3転送目におけるメモリバスのビット[27]〜ビット[31]と、4転送目におけるメモリバスのビット[19]〜ビット[26]とで消費電力が上昇することが予想される。   Even in the second packing method shown in FIG. 9A, the amount of change in each bit of the memory bus at the time of burst transfer is reduced, so that the power consumption related to the transfer of image data can be reduced. It is expected that the power consumption will increase with bits [27] to [31] of the memory bus in the third transfer and bits [19] to [26] of the memory bus in the fourth transfer.

画像データは、隣接する画素間で画素データの変化量が小さい場合、画素データの上位ビットは変化せず、下位ビットだけが変化することが予想される。このため、画素データを上位ビットと下位ビットとに分割し、変化量の少ない上位ビットをパック領域1に配置し、変化量が多い下位ビットをパック領域2に配置してパックデータを構築した方が、さらにバースト転送時のメモリバスの各ビットの変化量が少なくなる場合がある。   In the image data, when the change amount of the pixel data between adjacent pixels is small, it is expected that the upper bits of the pixel data do not change and only the lower bits change. For this reason, the pack data is constructed by dividing the pixel data into upper bits and lower bits, placing upper bits with a small amount of change in the pack area 1, and placing lower bits with a large amount of change in the pack area 2. However, the amount of change of each bit of the memory bus during burst transfer may be further reduced.

本第4のパッキング方法では、ビット分割部431が、画素データを上位画素データと下位画素データとに分割する。そして、パック領域1データ生成部431が、分割した上位画素データを、パックデータ内のパック領域1の連続する2転送間のデータにおいて、隣接する同一色の上位画素データが、メモリバス上の同一ビットに配置されるように、パック領域1データを配置する。また、パック領域2データ生成部432が、分割した下位画素データを、4転送目に配置する。   In the fourth packing method, the bit dividing unit 431 divides pixel data into upper pixel data and lower pixel data. Then, the pack area 1 data generation unit 431 uses the divided upper pixel data in the data between two successive transfers of the pack area 1 in the pack data, and the adjacent upper pixel data of the same color is the same on the memory bus. Pack area 1 data is arranged so as to be arranged in bits. The pack area 2 data generation unit 432 arranges the divided lower pixel data at the fourth transfer.

より具体的には、ビット分割部431が、ベイヤーデータ内の各画素データを、上位画素データ(ビット[8]〜ビット[1])と、下位画素データ(ビット[0])とに分割する。そして、パック領域1データ生成部431は、図9(b)に示したように、1転送目に「R0」、「G1」、「R8」、および「G9」、2転送目に「R2」、「G3」、「R10」、および「G11」、3転送目に「R4」、「G5」、「R12」、および「G13」、4転送目に「R6」および「G7」の上位画素データを、それぞれメモリバスの最下位ビットから順次配置(パッキング)する。   More specifically, the bit dividing unit 431 divides each pixel data in the Bayer data into upper pixel data (bit [8] to bit [1]) and lower pixel data (bit [0]). . Then, as shown in FIG. 9B, the pack area 1 data generation unit 431 performs “R0”, “G1”, “R8”, and “G9” for the first transfer, and “R2” for the second transfer. , “G3”, “R10”, and “G11”, “R4”, “G5”, “R12”, and “G13” in the third transfer, and “R6” and “G7” upper pixel data in the fourth transfer Are sequentially arranged (packed) from the least significant bit of the memory bus.

また、パック領域2データ生成部432は、「R0」、「G1」、「R2」、「G3」、「R4」、「G5」、「R6」、「G7」、「R8」、「G9」、「R10」、「G11」、「R12」および「G13」の下位画素データを、それぞれパック領域2のメモリバスの下位ビットから順次パッキングする。なお、4転送目におけるメモリバスのビット[30]およびビット[31]は、未使用ビットとする。これは、第1の構成と同様の理由である。   The pack area 2 data generation unit 432 also performs “R0”, “G1”, “R2”, “G3”, “R4”, “G5”, “R6”, “G7”, “R8”, “G9”. , “R10”, “G11”, “R12”, and “G13” are sequentially packed from the lower bits of the memory bus in the pack area 2, respectively. Note that bit [30] and bit [31] of the memory bus in the fourth transfer are unused bits. This is the same reason as in the first configuration.

このようにして、パックデータを生成することによって、本第4のパッキング方法では、第1の構成と同様に、各転送間での画素データのビット位置のずれが、メモリバス幅全体のうち、パック領域2のビットに限定される。さらに、本第4のパッキング方法では、パック領域2が4転送目のみに限定されため、メモリバスに占めるパック領域2の割合を少なくすることができる。これにより、バースト転送時におけるメモリバスの各ビットの変化量を、さらに少なくすることができる。このことにより、本第4のパッキング方法では、第1の構成のパッキング方法(第1〜第3のパッキング方法)よりもさらに、画像データの転送に係る消費電力を低減させることができる。   By generating the pack data in this way, in the fourth packing method, as in the first configuration, the shift of the bit position of the pixel data between the transfers is out of the entire memory bus width. It is limited to the bits in the pack area 2. Further, in the fourth packing method, the pack area 2 is limited to only the fourth transfer, and therefore the ratio of the pack area 2 in the memory bus can be reduced. Thereby, the amount of change of each bit of the memory bus at the time of burst transfer can be further reduced. Thus, in the fourth packing method, it is possible to further reduce the power consumption related to the transfer of the image data, compared to the packing method (first to third packing methods) of the first configuration.

なお、本第4のパッキング方法においても、第3のパッキング方法と同様に、図9に示した未使用ビットに、3転送目のデータバスのビット[30]〜ビット[31]に配置した画素データ(図9においては、画素データ「G13」のビット[7]〜ビット[8])を、コピーして、再度配置することにより、さらに画像データの転送に係る消費電力を低減させることができる。   In the fourth packing method, similarly to the third packing method, the pixels arranged in the unused bits shown in FIG. 9 in bits [30] to [31] of the third transfer data bus. By copying the data (bit [7] to bit [8] of the pixel data “G13” in FIG. 9) and arranging the data again, the power consumption related to the transfer of the image data can be further reduced. .

上記に述べたように、本第2の構成のデータ変換部43では、バースト転送時におけるメモリバスの各ビットの変化量が少なくなるように、画素データを配置することができる。これにより、本第2の構成のデータ変換部43でも、従来のバースト単位でのパッキング方法と同様に、画像データの転送効率を維持すると共に、従来のバースト単位でのパッキング方法よりも、画像データの転送に係る消費電力を低減させることができる。このことにより、第1の構成のデータ変換部41および51と同様に、撮像装置1内の各構成要素(処理ブロック)とメモリ20との間での画素データの転送、すなわち、撮像装置1内の各構成要素間での画素データの受け渡しに係る消費電力を低減させることができる。   As described above, in the data conversion unit 43 of the second configuration, the pixel data can be arranged so that the change amount of each bit of the memory bus at the time of burst transfer is reduced. As a result, the data conversion unit 43 of the second configuration also maintains the transfer efficiency of the image data in the same manner as the conventional packing method in the burst unit, and also the image data than the conventional packing method in the burst unit. It is possible to reduce the power consumption related to the transfer. Accordingly, similarly to the data conversion units 41 and 51 of the first configuration, the pixel data is transferred between each component (processing block) in the imaging device 1 and the memory 20, that is, in the imaging device 1. Thus, it is possible to reduce the power consumption related to the transfer of pixel data between the components.

なお、上記に述べた実施形態においては、ベイヤーデータに本実施形態のパッキング方法を適用した場合について説明したが、本実施形態のパッキング方法は、ベイヤーデータへの適用に限定されるものではなく、RGBデータ、YC422点順次やYC444点順次フォーマットのYCbCrデータ、またはOSDデータなど、様々な画像データに適用することができる。また、本実施形態のパッキング方法は、画像データへの適用に限定されるものではなく、音声データなど、他の形式のデータに適用することもできる。   In the embodiment described above, the case where the packing method of the present embodiment is applied to Bayer data has been described, but the packing method of the present embodiment is not limited to application to Bayer data, It can be applied to various image data such as RGB data, YC422 dot sequential or YC444 dot sequential format YCbCr data, or OSD data. Further, the packing method of the present embodiment is not limited to application to image data, and can also be applied to other types of data such as audio data.

<適用例>
次に、本実施形態のパッキング方法を、他の形式の画像データや、画像データ以外のデータに適用した場合の一例について説明する。まず、本実施形態のパッキング方法をRGBデータに適用した場合の一例について説明する。図10は、本実施形態の撮像装置1に備えたデータ変換部41によるデータ配置方法(パッキング方法)を、別の画像データ(RGBデータ)に適用した場合の一例を示した図である。なお、図10では、8bitのRGBデータに、従来のバースト単位でのパッキング方法を適用した一例(図10(a)参照)と、第3のパッキング方法を適用した一例(図10(b)参照)とを、それぞれ示している。
<Application example>
Next, an example in which the packing method of the present embodiment is applied to other types of image data or data other than image data will be described. First, an example in which the packing method of the present embodiment is applied to RGB data will be described. FIG. 10 is a diagram illustrating an example when the data arrangement method (packing method) by the data conversion unit 41 included in the imaging apparatus 1 of the present embodiment is applied to other image data (RGB data). In FIG. 10, an example in which the conventional packing method in units of bursts is applied to 8-bit RGB data (see FIG. 10A) and an example in which the third packing method is applied (see FIG. 10B). ), Respectively.

図10(a)に示したように、従来のバースト単位でのパッキング方法によって、RGBデータ(8bit×3色=24bit)を単純に配置すると、32bitのメモリバスの全てのビットが、異なる色の画素データになってしまう。これに対して、図10(b)に示した第3のパッキング方法では、パック領域1のメモリバスの各ビットは、4つの転送とも同一色の画素データの同一ビットとなる。また、パック領域2の4転送目のメモリバスの各ビットの値は、3転送目のメモリバスの各ビットの値を同じ値になる。これにより、パック領域1では、バースト転送時のメモリバスの各ビットの変化量を少なくすることができ、パック領域2では、3転送目と4転送目とのメモリバスの各ビットの変化量をなくすことができる。このことにより、画像データの転送に係る消費電力を低減させることができる。   As shown in FIG. 10A, when RGB data (8 bits × 3 colors = 24 bits) is simply arranged by a conventional packing method in units of bursts, all bits of a 32-bit memory bus have different colors. It becomes pixel data. On the other hand, in the third packing method shown in FIG. 10B, each bit of the memory bus in the packed area 1 becomes the same bit of the pixel data of the same color for the four transfers. Further, the value of each bit of the memory bus for the fourth transfer in the pack area 2 is the same as the value of each bit of the memory bus for the third transfer. Thus, in the pack area 1, the amount of change in each bit of the memory bus during burst transfer can be reduced, and in the pack area 2, the amount of change in each bit of the memory bus between the third transfer and the fourth transfer can be reduced. Can be eliminated. As a result, power consumption related to transfer of image data can be reduced.

図11は、本実施形態の撮像装置1に備えたデータ変換部41によるデータ配置方法(パッキング方法)を、さらに別の画像データ(YCbCrデータ)に適用した場合の一例を示した図である。なお、図11では、図11(a)に示したような、10bitのY、8bitのCbおよびCrデータに、従来のバースト単位でのパッキング方法を適用した一例(図11(b)参照)と、第1のパッキング方法を適用した一例(図11(c)参照)とを、それぞれ示している。   FIG. 11 is a diagram illustrating an example when the data arrangement method (packing method) by the data conversion unit 41 included in the imaging apparatus 1 of the present embodiment is applied to still another image data (YCbCr data). FIG. 11 shows an example in which a conventional packing method in units of bursts is applied to 10-bit Y, 8-bit Cb and Cr data as shown in FIG. 11A (see FIG. 11B). FIG. 11 shows an example of applying the first packing method (see FIG. 11C).

図11(b)に示したように、従来のバースト単位でのパッキング方法によって、YCbCrデータを単純に配置すると、メモリバスの全てのビットが、異なる色を表す画素データになってしまう。これに対して、図11(c)に示した第1のパッキング方法では、パック領域1のメモリバスの各ビットは、同一の色を表す画素データの同一ビットとなる。これにより、パック領域1では、バースト転送時のメモリバスの各ビットの変化量を少なくすることができ、画像データの転送に係る消費電力を低減させることができる。また、図11に示した例からもわかるように、本実施形態のパッキング方法では、それぞれのデータのビット数が異なる場合でも、同様に適用することができる。   As shown in FIG. 11B, if YCbCr data is simply arranged by the conventional packing method in units of bursts, all the bits of the memory bus become pixel data representing different colors. On the other hand, in the first packing method shown in FIG. 11C, each bit of the memory bus in the packed area 1 is the same bit of pixel data representing the same color. Thereby, in the pack area 1, the amount of change of each bit of the memory bus at the time of burst transfer can be reduced, and power consumption related to transfer of image data can be reduced. As can be seen from the example shown in FIG. 11, the packing method of this embodiment can be applied in the same manner even when the number of bits of each data is different.

図12は、本実施形態の撮像装置1に備えたデータ変換部41によるデータ配置方法(パッキング方法)を、さらに別の画像データ(OSDデータ)に適用した場合の一例を示した図である。なお、図12では、6bitのOSDデータに、従来のバースト単位でのパッキング方法を適用した一例(図12(a)参照)と、第2のパッキング方法を適用した一例(図10(b)参照)とを、それぞれ示している。   FIG. 12 is a diagram illustrating an example when the data arrangement method (packing method) by the data conversion unit 41 provided in the imaging apparatus 1 of the present embodiment is applied to still another image data (OSD data). In FIG. 12, an example in which the conventional packing method in units of bursts is applied to 6-bit OSD data (see FIG. 12A) and an example in which the second packing method is applied (see FIG. 10B). ), Respectively.

図12(a)に示したように、従来のバースト単位でのパッキング方法によって、OSDデータを単純に配置すると、メモリバスの全てのビットが、異なる表示データの異なるビットになってしまう。これに対して、図12(b)に示した第2のパッキング方法では、パック領域1のメモリバスの各ビットは、表示データの同一ビットとなる。これにより、パック領域1では、バースト転送時のメモリバスの各ビットの変化量を少なくすることができ、画像データの転送に係る消費電力を低減させることができる。また、図12(b)をみてもわかるように、本実施形態のパッキング方法では、32bitのメモリバス幅のほとんどがパック領域1であるため、より多くの消費電力の低減効果を得ることができる。   As shown in FIG. 12A, if the OSD data is simply arranged by the conventional packing method in units of bursts, all bits of the memory bus become different bits of different display data. On the other hand, in the second packing method shown in FIG. 12B, each bit of the memory bus in the packed area 1 becomes the same bit of display data. Thereby, in the pack area 1, the amount of change of each bit of the memory bus at the time of burst transfer can be reduced, and power consumption related to transfer of image data can be reduced. Also, as can be seen from FIG. 12B, in the packing method of this embodiment, since most of the 32-bit memory bus width is the pack area 1, it is possible to obtain more power consumption reduction effect. .

図13は、本実施形態の撮像装置1に備えたデータ変換部41によるデータ配置方法(パッキング方法)を、別のデータ(音声データ)に適用した場合の一例を示した図である。なお、図13では、それぞれ24bitのR(右)データおよびL(左)データを64bitのメモリバスに適用した場合を示している。そして、図13(a)には、従来のバースト単位でのパッキング方法を適用した一例を示し、図13(b)には、第2のパッキング方法を適用した一例を示している。   FIG. 13 is a diagram illustrating an example when the data arrangement method (packing method) by the data conversion unit 41 included in the imaging apparatus 1 of the present embodiment is applied to other data (voice data). FIG. 13 shows a case where 24-bit R (right) data and L (left) data are applied to a 64-bit memory bus. FIG. 13A shows an example in which the conventional packing method in units of bursts is applied, and FIG. 13B shows an example in which the second packing method is applied.

図13(a)に示したように、従来のバースト単位でのパッキング方法によって、音声データを単純に配置すると、64bitのメモリバスの全てのビットが、異なるビットの音声データになってしまう。これに対して、図13(b)に示した第2のパッキング方法では、パック領域1のメモリバスの各ビットは、同じ側の音声データの同一ビットとなる。これにより、パック領域1では、バースト転送時のメモリバスの各ビットの変化量を少なくすることができ、画像データ以外の他の形式のデータでも、転送に係る消費電力を低減させることができる。   As shown in FIG. 13A, if audio data is simply arranged by the conventional packing method in units of bursts, all the bits of the 64-bit memory bus become audio data of different bits. On the other hand, in the second packing method shown in FIG. 13B, each bit of the memory bus in the pack area 1 becomes the same bit of the audio data on the same side. Thereby, in the pack area 1, the amount of change of each bit of the memory bus at the time of burst transfer can be reduced, and the power consumption related to transfer can be reduced even for other types of data other than image data.

上記に述べたとおり、本発明を実施するための形態によれば、メモリバス幅をパック領域1とパック領域2とに分ける。そして、パック領域1のメモリバス上の各ビットには、転送するデータの各ビットを、ほぼそのまま配置する。また、パック領域2のメモリバス上の各ビットには、転送するデータの各ビットを分割して配置する。これにより、バースト転送時におけるメモリバスの各ビットの変化量を少なくすることができる。しかも、データの転送効率は、従来と同等のデータ転送効率を維持することができる。これにより、像装置内の各構成要素(処理ブロック)とメモリとの間でのデータの受け渡しに係る消費電力の低減効果を十分に得ることができる。   As described above, according to the embodiment for carrying out the present invention, the memory bus width is divided into the pack area 1 and the pack area 2. Then, each bit of the data to be transferred is arranged almost as it is in each bit on the memory bus in the pack area 1. In addition, each bit of the data to be transferred is divided and arranged in each bit on the memory bus in the pack area 2. Thereby, the amount of change of each bit of the memory bus at the time of burst transfer can be reduced. In addition, the data transfer efficiency can maintain the same data transfer efficiency as before. Thereby, it is possible to sufficiently obtain the effect of reducing the power consumption related to the data transfer between each component (processing block) in the image apparatus and the memory.

なお、本実施形態においては、4転送を1回のバースト転送の単位とし、1バーストをデータのパッキング単位とした場合について説明したが、1回のバースト転送における転送の回数や、データのパッキングの単位は、本発明を実施するための形態に限定されるものではない。例えば、64転送を1回のバースト転送の単位とし、1バースト内の16転送をデータのパッキングの単位とする、すなわち、1バースト内に4つのパッキング単位が含まれる構成にすることもできる。また、例えば、16転送をデータのパッキングの単位とし、8転送を1回のバースト転送の単位とする、すなわち、パッキング単位が2回のバースト転送に跨っている構成にすることもできる。   In this embodiment, the case where four transfers are used as a unit of burst transfer and one burst is used as a data packing unit has been described. However, the number of transfers in one burst transfer and the number of data packings A unit is not limited to the form for implementing this invention. For example, 64 transfers may be used as a unit for one burst transfer, and 16 transfers within one burst may be used as a data packing unit, that is, one packing may include four packing units. Further, for example, 16 transfers may be used as a data packing unit and 8 transfers may be used as one burst transfer unit, that is, the packing unit may extend over two burst transfers.

また、本実施形態においては、撮像装置内の構成要素間でデータの受け渡しを行う場合のパッキング方法を、いくつかのデータに適用した場合について説明したが、本実施形態のパッキング方法を適用することができる範囲は、本発明を実施するための形態に限定されるものではなく、各構成要素間でデータの受け渡しを行うシステムであれば、どのようなシステムにも適用することができる。   In the present embodiment, the case where the packing method in the case of transferring data between components in the imaging apparatus is applied to some data has been described. However, the packing method of the present embodiment is applied. The range in which data can be transmitted is not limited to the mode for carrying out the present invention, and can be applied to any system as long as it is a system that exchanges data between each component.

また、本実施形態においては、例えば、データ変換部を出力DMA部の前段の処理ブロックとして配置し、データ逆変換部を入力DMA部の後段の処理ブロックとして配置した場合の一例について説明したが、データ変換部およびデータ逆変換部の配置は、本発明を実施するための形態に限定されるものではない。例えば、データ変換部を出力DMA部内の構成要素とすることや、データ逆変換部を入力DMA部内の構成要素とすることもできる。また、例えば、データ変換部を前段の撮像処理部内の構成要素とすることや、データ逆変換部を後段の画像処理部内の構成要素とすることもできる。   In the present embodiment, for example, the data conversion unit is arranged as a processing block preceding the output DMA unit and the data inverse conversion unit is arranged as a processing block subsequent to the input DMA unit. The arrangement of the data conversion unit and the data reverse conversion unit is not limited to the form for carrying out the present invention. For example, the data conversion unit can be a component in the output DMA unit, and the data reverse conversion unit can be a component in the input DMA unit. Further, for example, the data conversion unit can be a component in the preceding image processing unit, and the data reverse conversion unit can be a component in the subsequent image processing unit.

以上、本発明の実施形態について、図面を参照して説明してきたが、具体的な構成はこの実施形態に限定されるものではなく、本発明の趣旨を逸脱しない範囲においての種々の変更も含まれる。   The embodiment of the present invention has been described above with reference to the drawings. However, the specific configuration is not limited to this embodiment, and includes various modifications within the scope of the present invention. It is.

1・・・撮像装置(データ処理装置)
10・・・CPU(データ処理装置)
20・・・メモリ(データ処理装置)
30・・・CCD
40・・・撮像処理部
50・・・画像処理部
60・・・表示処理部
70・・・表示デバイス
41,51・・・データ変換部(データ処理装置)
411・・・パック領域1データ生成部(第1のデータ生成部)
412・・・パック領域2データ生成部(第2のデータ生成部)
413・・・データ結合部
52,62・・・データ逆変換部(データ処理装置)
521・・・データ分割部
522・・・パック領域1データ復元部(第1のデータ復元部)
523・・・パック領域2データ復元部(第2のデータ復元部)
524・・・データ選択部
45,55・・・出力DMA部
56,66・・・入力DMA部
43・・・データ変換部(データ処理装置)
430・・・ビット分割部(画素データ分割部)
431・・・パック領域1データ生成部(第1のデータ生成部)
432・・・パック領域2データ生成部(第2のデータ生成部)
433・・・データ結合部
54・・・データ逆変換部(データ処理装置)
541・・・データ分割部
542・・・パック領域1データ復元部(第1のデータ復元部)
543・・・パック領域2データ復元部(第2のデータ復元部)
540・・・ビット結合部(画素データ結合部)
544・・・データ選択部
1 ... Imaging device (data processing device)
10 ... CPU (data processing device)
20 ... Memory (data processing device)
30 ... CCD
40 ... Imaging processor 50 ... Image processor 60 ... Display processor 70 ... Display devices 41, 51 ... Data converter (data processing device)
411... Pack area 1 data generation unit (first data generation unit)
412... Pack area 2 data generation unit (second data generation unit)
413... Data combination unit 52, 62... Data reverse conversion unit (data processing device)
521: Data division unit 522: Pack area 1 data restoration unit (first data restoration unit)
523... Pack area 2 data restoration unit (second data restoration unit)
524 ... Data selection unit 45, 55 ... Output DMA unit 56, 66 ... Input DMA unit 43 ... Data conversion unit (data processing device)
430: Bit division unit (pixel data division unit)
431... Pack area 1 data generation unit (first data generation unit)
432 ... Pack region 2 data generation unit (second data generation unit)
433... Data combining unit 54... Data reverse conversion unit (data processing device)
541... Data division unit 542... Pack area 1 data restoration unit (first data restoration unit)
543... Pack area 2 data restoration unit (second data restoration unit)
540 ... Bit combination part (pixel data combination part)
544 ... Data selection section

Claims (6)

複数の入力データを、データバス上にバースト転送するためのパックデータを生成するデータ処理装置であって、
前記データバス上に第1のバス領域と第2のバス領域とを設定することで、前記パックデータを第1のパック領域と第2のパック領域とに分割し、第1のデータを取り出し、前記第1のデータのバースト転送時に前記第1のバス領域の同じ位置から転送されるように前記第1のパック領域に隙間なくパッキングする第1のデータ生成部と、
前記第1のデータ生成部が取り残した前記入力データである第2のデータを前記第2のパック領域にパッキングする第2のデータ生成部と、
前記第1のパック領域にパッキングされた前記第1のデータと前記第2のパック領域にパッキングされた前記第2のデータとを結合して前記パックデータを生成するデータ結合部と、
を備え、
前記複数の入力データは、複数の色情報をもつ画像データであり、前記パックデータ内の前記第1のパック領域の連続する2転送間のデータにおいて、隣接する同一色の画素データがメモリバス上の同一ビットに配置されている、
ことを特徴とするデータ処理装置。
A data processing device for generating pack data for burst transfer of a plurality of input data on a data bus,
By setting a first bus area and a second bus area on the data bus, the pack data is divided into a first pack area and a second pack area, and the first data is taken out, A first data generation unit that packs the first pack area without a gap so that the first data is transferred from the same position in the first bus area during burst transfer of the first data;
A second data generation unit that packs the second data, which is the input data left by the first data generation unit, into the second pack area;
A data combining unit that combines the first data packed in the first pack area and the second data packed in the second pack area to generate the pack data;
With
The plurality of input data is image data having a plurality of color information, and in the data between two successive transfers of the first pack area in the pack data, adjacent pixel data of the same color are on the memory bus. Of the same bit,
A data processing apparatus.
前記第2のデータ生成部は、
前記第2のデータを前記第2のパック領域内で連続するようにパッキングする、
ことを特徴とする請求項1に記載のデータ処理装置。
The second data generator is
Packing the second data so as to be continuous in the second pack area;
The data processing apparatus according to claim 1.
所定ビット数のデータバス上をバースト転送されたパックデータから、パッキングされている元データを復元するデータ処理装置であって、
前記データバス上に第1のバス領域と第2のバス領域とを設定し、前記第1のバス領域から前記パックデータの第1のパック領域のデータを取り出して出力し、前記第2のバス領域から前記パックデータの第2のパック領域のデータを取り出して出力するデータ分割部と、
前記第1のパック領域から取り出されたデータに基づいて第1のデータを復元する第1のデータ復元部と、
前記第2のパック領域から取り出されたデータに基づいて第2のデータを復元する第2のデータ復元部と、
復元された前記第1のデータと前記第2のデータに基づいた元データを出力するデータ選択部と、
を備え、
前記第1のデータは、
前記バースト転送時に前記第1のバス領域の同じ位置から転送されるように前記第1のパック領域に隙間なくパッキングされているデータであり、
前記元データは、複数の色情報をもつ画像データであり、前記パックデータ内の前記第1のパック領域の連続する2転送間のデータにおいて、隣接する同一色の画素データがメモリバス上の同一ビットに配置されている、
ことを特徴とするデータ処理装置。
A data processing apparatus for restoring packed original data from packed data burst-transferred on a data bus having a predetermined number of bits,
A first bus area and a second bus area are set on the data bus, the data of the first pack area of the pack data is extracted from the first bus area and output, and the second bus is output. A data dividing unit for extracting and outputting the data of the second pack area of the pack data from the area;
A first data restoration unit that restores the first data based on the data extracted from the first pack area;
A second data restoration unit for restoring second data based on the data extracted from the second pack area;
A data selection unit for outputting original data based on the restored first data and the second data;
With
The first data is:
Data packed in the first packed area without any gaps so as to be transferred from the same position in the first bus area during the burst transfer;
The original data is image data having a plurality of color information. In the data between two successive transfers in the first pack area in the pack data, adjacent pixel data of the same color are the same on the memory bus. Arranged in a bit,
A data processing apparatus.
前記第2のデータは、
前記第2のパック領域内で連続するようにパッキングされているデータである、
ことを特徴とする請求項3に記載のデータ処理装置。
The second data is:
The data is packed continuously in the second packed area.
The data processing apparatus according to claim 3.
複数の入力データを、データバス上にバースト転送するためのパックデータを生成するデータ処理方法であって、
前記データバス上に第1のバス領域と第2のバス領域とを設定することで、前記パックデータを第1のパック領域と第2のパック領域とに分割するステップと、
第1のデータを取り出し、前記第1のデータのバースト転送時に前記第1のバス領域の同じ位置から転送されるように前記第1のパック領域に隙間なくパッキングするステップと、
前記第1のデータから残った前記入力データである第2のデータを前記第2のパック領域にパッキングするステップと、
前記第1のパック領域にパッキングされた前記第1のデータと前記第2のパック領域にパッキングされた前記第2のデータとを結合して前記パックデータを生成するステップと、
を含み、
前記複数の入力データは、複数の色情報をもつ画像データであり、前記パックデータ内の前記第1のパック領域の連続する2転送間のデータにおいて、隣接する同一色の画素データがメモリバス上の同一ビットに配置されているデータである、
ことを特徴とするデータ処理方法。
A data processing method for generating pack data for burst transfer of a plurality of input data on a data bus,
Dividing the pack data into a first pack area and a second pack area by setting a first bus area and a second bus area on the data bus;
Extracting the first data and packing the first pack area without gaps so that the first data is transferred from the same position in the first bus area during burst transfer of the first data;
Packing the second data, which is the input data remaining from the first data, into the second pack area;
Combining the first data packed in the first pack area and the second data packed in the second pack area to generate the pack data;
Including
The plurality of input data is image data having a plurality of color information, and in the data between two successive transfers of the first pack area in the pack data, adjacent pixel data of the same color are on the memory bus. Are arranged in the same bit of
A data processing method.
所定ビット数のデータバス上をバースト転送されたパックデータから、パッキングされている元データを復元するデータ処理方法であって、
前記データバス上に第1のバス領域と第2のバス領域とを設定するステップと、
前記第1のバス領域から前記パックデータの第1のパック領域のデータを取り出して出力するステップと、
前記第2のバス領域から前記パックデータの第2のパック領域のデータを取り出して出力するステップと、
前記第1のパック領域から取り出されたデータに基づいて第1のデータを復元するステップと、
前記第2のパック領域から取り出されたデータに基づいて第2のデータを復元するステップと、
復元された前記第1のデータと前記第2のデータに基づいた元データを出力するステップと、
を含み、
前記第1のデータは、
前記バースト転送時に前記第1のバス領域の同じ位置から転送されるように前記第1のパック領域に隙間なくパッキングされているデータであり、
前記元データは、複数の色情報をもつ画像データであり、前記パックデータ内の前記第1のパック領域の連続する2転送間のデータにおいて、隣接する同一色の画素データがメモリバス上の同一ビットに配置されているデータである、
ことを特徴とするデータ処理方法。
A data processing method for restoring original packed data from packed data burst-transferred on a data bus having a predetermined number of bits,
Setting a first bus area and a second bus area on the data bus;
Extracting and outputting data of the first pack area of the pack data from the first bus area; and
Extracting and outputting data of the second pack area of the pack data from the second bus area; and
Restoring the first data based on the data retrieved from the first pack area;
Restoring the second data based on the data retrieved from the second pack area;
Outputting original data based on the restored first data and the second data;
Including
The first data is:
Data packed in the first packed area without any gaps so as to be transferred from the same position in the first bus area during the burst transfer;
The original data is image data having a plurality of color information. In the data between two successive transfers in the first pack area in the pack data, adjacent pixel data of the same color are the same on the memory bus. Is the data placed in the bits,
A data processing method.
JP2016041546A 2016-03-03 2016-03-03 Data processing apparatus and data processing method Expired - Fee Related JP6242417B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016041546A JP6242417B2 (en) 2016-03-03 2016-03-03 Data processing apparatus and data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016041546A JP6242417B2 (en) 2016-03-03 2016-03-03 Data processing apparatus and data processing method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2011066058A Division JP5898409B2 (en) 2011-03-24 2011-03-24 Data processing apparatus and data processing method

Publications (2)

Publication Number Publication Date
JP2016105329A true JP2016105329A (en) 2016-06-09
JP6242417B2 JP6242417B2 (en) 2017-12-06

Family

ID=56102514

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016041546A Expired - Fee Related JP6242417B2 (en) 2016-03-03 2016-03-03 Data processing apparatus and data processing method

Country Status (1)

Country Link
JP (1) JP6242417B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05257844A (en) * 1991-07-22 1993-10-08 Internatl Business Mach Corp <Ibm> Method and device for communication for transmitting image data
JP2000305891A (en) * 1999-04-22 2000-11-02 Canon Inc Dma controller and controlling method therefor
JP2005286662A (en) * 2004-03-29 2005-10-13 Nec Electronics Corp Data transmission apparatus, data transmission / reception system, and data transmission method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05257844A (en) * 1991-07-22 1993-10-08 Internatl Business Mach Corp <Ibm> Method and device for communication for transmitting image data
JP2000305891A (en) * 1999-04-22 2000-11-02 Canon Inc Dma controller and controlling method therefor
JP2005286662A (en) * 2004-03-29 2005-10-13 Nec Electronics Corp Data transmission apparatus, data transmission / reception system, and data transmission method

Also Published As

Publication number Publication date
JP6242417B2 (en) 2017-12-06

Similar Documents

Publication Publication Date Title
CN100418358C (en) Pixel interpolation device and camera
JP5780795B2 (en) Data processing apparatus and data processing method
JP5898409B2 (en) Data processing apparatus and data processing method
JP5734715B2 (en) Data processing apparatus and data processing method
US8565542B2 (en) Data processing apparatus and data processing method
JP5738639B2 (en) Data processing apparatus and data processing method
JP6242417B2 (en) Data processing apparatus and data processing method
JP2004193911A (en) Image processing apparatus, its method and digital still camera
TW201947925A (en) Image transmission method and system thereof and image transmission apparatus
JP2010251882A (en) Image capturing apparatus and image reproducing device
JP7022544B2 (en) Image processing equipment and methods, and imaging equipment
JP2006094225A (en) Image processing apparatus, image processing method, and its program
JP3972478B2 (en) Imaging device
JP5697418B2 (en) Image processing apparatus and control method thereof
JP6048046B2 (en) Image composition apparatus and image composition method
JP2009033438A (en) Imaging apparatus
JP2011059911A (en) Image processing apparatus
JP2006303693A (en) Electronic camera provided with function of generating reduced picture
JP2006141001A (en) Image processing apparatus reduced in power consumption and method
JP2005159916A (en) Imaging device
JP2004260858A (en) Chrominance signal processing apparatus and chrominance signal processing method
JPH01223891A (en) Video information processor
TWI410983B (en) Memory access system and method for efficiently utilizing memory bandwidth
JP5278497B2 (en) Image processing apparatus and image processing method
JPH08331580A (en) Image processor

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20160304

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160303

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170217

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170328

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170519

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20170522

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171107

R151 Written notification of patent or utility model registration

Ref document number: 6242417

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees