JP4219939B2 - Signal processing circuit in image input device - Google Patents

Signal processing circuit in image input device Download PDF

Info

Publication number
JP4219939B2
JP4219939B2 JP2006052515A JP2006052515A JP4219939B2 JP 4219939 B2 JP4219939 B2 JP 4219939B2 JP 2006052515 A JP2006052515 A JP 2006052515A JP 2006052515 A JP2006052515 A JP 2006052515A JP 4219939 B2 JP4219939 B2 JP 4219939B2
Authority
JP
Japan
Prior art keywords
register
storage area
unit
byte
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006052515A
Other languages
Japanese (ja)
Other versions
JP2006211699A (en
Inventor
元 佐々木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MegaChips Corp
Original Assignee
MegaChips 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 MegaChips Corp filed Critical MegaChips Corp
Priority to JP2006052515A priority Critical patent/JP4219939B2/en
Publication of JP2006211699A publication Critical patent/JP2006211699A/en
Application granted granted Critical
Publication of JP4219939B2 publication Critical patent/JP4219939B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

この発明は、主にディジタルスチルカメラ等の画像入力装置内において撮像素子によって撮像された2次元的に配列された画素単位の信号を変換する画像入力装置における信号処理回路に関する。   The present invention relates to a signal processing circuit in an image input apparatus that converts a signal in units of two-dimensionally arranged pixels that are imaged by an image sensor in an image input apparatus such as a digital still camera.

従来から、ディジタルカメラで撮像された画像に対して、回転、鏡映、色配列変換等の画像処理を施すことが行われている。その際には、撮像された画像データを内部に備わったCPUに読み込み、そこで、ソフトウェアによって上記画像処理を行っている。   Conventionally, image processing such as rotation, mirroring, and color array conversion has been performed on an image captured by a digital camera. At that time, the captured image data is read into a CPU provided therein, and the image processing is performed by software.

ところで、CPUが32ビットのレジスタを有し、それによって1画素が1バイト(8ビット)等の単位で表現される画像データをソフトウェアで上記画像処理を行う場合には、CPUの処理単位(32ビット)と画素の単位(8ビット)が一致していないために、一度画像データをCPU内の複数のレジスタ上に分解し回転等を行なった後、レジスタ上で32ビットのデータ(以下、「ワードデータ」と呼ぶ)を再構築、すなわち、8ビットの画像データに余分に24ビットのダミーのビットを付加した後、メモリまたは記録メディアに格納し、そうして得られた32ビットの画像データをCPUに読み込んで処理し、処理終了後には再び8ビットのデータに戻して画像データを保存している。そのため、この処理ではワードデータと1バイトのデータの間のデータ変換処理が多く、処理時間が増大していた。   By the way, when the CPU has a 32-bit register and image data expressed in units of 1 byte (8 bits) by one pixel is to be processed by software, the CPU processing unit (32 (Bit) and the unit of pixel (8 bits) do not match. Therefore, after the image data is once decomposed into a plurality of registers in the CPU and rotated, 32-bit data (hereinafter, “ The word data) is reconstructed, ie, an extra 24 bits of dummy bits are added to the 8-bit image data, and then stored in a memory or recording medium. The 32-bit image data thus obtained Are read into the CPU and processed, and after the processing is completed, the image data is stored again by returning to 8-bit data. Therefore, in this process, there are many data conversion processes between word data and 1-byte data, and the processing time is increased.

この発明は、従来技術における上述の問題の克服を意図しており、高速に画像の回転、鏡映、色配列変換等の処理を行なうことができる画像入力装置における信号処理回路を提供することを目的とする。   The present invention is intended to overcome the above-described problems in the prior art, and provides a signal processing circuit in an image input apparatus capable of performing processing such as image rotation, mirroring, and color array conversion at high speed. Objective.

上記の目的を達成するため、請求項1の発明は、画像入力装置内において撮像素子によって撮像された2次元的に配列された所定単位の単位画像信号と同じビット数の記憶領域を複数備える記憶手段を備え、前記単位画像信号が所定の単位色配列を形成する複数の成分のうちの1成分であり、前記単位色配列は、1つの輝度成分と水平または垂直方向における配置の周波数が前記輝度成分の1/2である2つの色成分とからなるものであり、さらに、前記記憶手段の各記憶領域に記憶された単位画像信号の配列を、前記単位色配列を保ちつつ右に90゜回転させて前記記憶手段の各記憶領域に記憶させるように、前記記憶手段の各記憶領域が互いに接続されたものである。 In order to achieve the above object, the invention of claim 1 is provided with a plurality of storage areas having the same number of bits as unit image signals of predetermined units arranged in a two-dimensional array imaged by an image sensor in an image input device. And the unit image signal is one of a plurality of components forming a predetermined unit color array, and the unit color array has one luminance component and a frequency of arrangement in the horizontal or vertical direction. 2 color components that are 1/2 of the components, and further, the unit image signal array stored in each storage area of the storage means is rotated 90 ° to the right while maintaining the unit color array The storage areas of the storage means are connected to each other so as to be stored in the storage areas of the storage means.

また、請求項2の発明は、請求項1に記載の画像入力装置における信号処理回路において、前記単位色配列が1つの輝度成分と水平または垂直方向における配置の周波数が前記輝度成分の1/2である2つの色成分とからなるものであり、前記記憶手段としてレジスタグループを備え、当該レジスタグループが第1および第2レジスタを備えるとともに、当該第1および第2レジスタが、前記輝度成分および前記2つの色成分のそれぞれを記憶する第0ないし第3記憶領域をそれぞれ備えるものであって、第1レジスタの第0記憶領域の単位画像信号が所定の接続線によって第2レジスタの第0記憶領域に直接接続され、第1レジスタの第2記憶領域の単位画像信号が所定の接続線によって第1レジスタの第0記憶領域に直接接続され、第2レジスタの第0記憶領域の単位画像信号が所定の接続線によって第2レジスタの第2記憶領域に直接接続され、第2レジスタの第1記憶領域の単位画像信号が所定の接続線によって第1レジスタの第1記憶領域および第2レジスタの第1記憶領域に直接接続され、第2レジスタの第2記憶領域の単位画像信号が第1レジスタの第2記憶領域に直接接続され、第2レジスタの第3記憶領域の単位画像信号が所定の接続線によって第1レジスタの第3記憶領域および第2レジスタの第3記憶領域に直接接続されるものである。   According to a second aspect of the present invention, in the signal processing circuit of the image input device according to the first aspect, the unit color arrangement is one luminance component and the frequency of arrangement in the horizontal or vertical direction is ½ of the luminance component. And a register group as the storage means, the register group includes first and second registers, and the first and second registers include the luminance component and the 0th to 3rd storage areas for storing each of the two color components are provided, and the unit image signal of the 0th storage area of the first register is sent to the 0th storage area of the second register by a predetermined connection line. The unit image signal of the second storage area of the first register is directly connected to the 0th storage area of the first register by a predetermined connection line, and the second register The unit image signal of the zeroth storage area of the register is directly connected to the second storage area of the second register by a predetermined connection line, and the unit image signal of the first storage area of the second register is connected to the first register by the predetermined connection line Are directly connected to the first storage area of the second register and the first storage area of the second register, the unit image signal of the second storage area of the second register is directly connected to the second storage area of the first register, The unit image signals in the three storage areas are directly connected to the third storage area of the first register and the third storage area of the second register by a predetermined connection line.

また、請求項3の発明は、画像入力装置内において撮像素子によって撮像された2次元的に配列された所定単位の単位画像信号と同じビット数の記憶領域を複数備える記憶手段を備え、前記単位画像信号が所定の単位色配列を形成する複数の成分のうちの1成分であり、前記単位色配列は、1つの輝度成分と水平または垂直方向における配置の周波数が前記輝度成分の1/2である2つの色成分とからなるものであり、さらに、前記記憶手段の各記憶領域に記憶された単位画像信号の配列を、前記単位色配列を保ちつつ左に90゜回転させて前記記憶手段の各記憶領域に記憶させるように、前記記憶手段の各記憶領域が互いに接続されたものである。

Further, the invention of claim 3 includes a storage unit including a plurality of storage areas having the same number of bits as unit image signals of a predetermined unit arranged in a two-dimensional manner imaged by an image sensor in the image input device, and the unit The image signal is one component of a plurality of components forming a predetermined unit color array, and the unit color array has one luminance component and a frequency of arrangement in the horizontal or vertical direction being ½ of the luminance component. The unit image signal array stored in each storage area of the storage unit is rotated 90 ° to the left while maintaining the unit color array, and the storage unit Each storage area of the storage means is connected to each other so as to be stored in each storage area.

また、請求項4の発明は、請求項3に記載の画像入力装置における信号処理回路において、前記単位色配列が1つの輝度成分と水平または垂直方向における配置の周波数が前記輝度成分の1/2である2つの色成分とからなるものであり、前記記憶手段としてレジスタグループを備え、当該レジスタグループが第1および第2レジスタを備えるとともに、当該第1および第2レジスタが、前記輝度成分および前記2つの色成分のそれぞれを記憶する第0ないし第3記憶領域をそれぞれ備えるものであって、第1レジスタの第0記憶領域の単位画像信号が所定の接続線によって第1レジスタの第2記憶領域に直接接続され、第1レジスタの第2記憶領域の単位画像信号が所定の接続線によって第2レジスタの第2記憶領域に直接接続され、第2レジスタの第0記憶領域の単位画像信号が所定の接続線によって第1レジスタの第0記憶領域に直接接続され、第2レジスタの第1記憶領域の単位画像信号が所定の接続線によって第1レジスタの第1記憶領域および第2レジスタの第1記憶領域に直接接続され、第2レジスタの第2記憶領域の単位画像信号が所定の接続線によって第2レジスタの第0記憶領域に直接接続され、第2レジスタの第3記憶領域の単位画像信号が所定の接続線によって第1レジスタの第3記憶領域および第2レジスタの第3記憶領域に直接接続されるもの。   According to a fourth aspect of the present invention, in the signal processing circuit of the image input device according to the third aspect, the unit color arrangement is one luminance component and the frequency of arrangement in the horizontal or vertical direction is 1/2 of the luminance component. And a register group as the storage means, the register group includes first and second registers, and the first and second registers include the luminance component and the Second to third storage areas for storing each of the two color components, wherein the unit image signal of the zeroth storage area of the first register is connected to the second storage area of the first register by a predetermined connection line The unit image signal of the second storage area of the first register is directly connected to the second storage area of the second register by a predetermined connection line, and the second register The unit image signal of the zeroth storage area of the register is directly connected to the zeroth storage area of the first register by a predetermined connection line, and the unit image signal of the first storage area of the second register is connected to the first register by the predetermined connection line. The first storage area and the first storage area of the second register, and the unit image signal of the second storage area of the second register is directly connected to the 0th storage area of the second register by a predetermined connection line, A unit image signal in the third storage area of the second register is directly connected to the third storage area of the first register and the third storage area of the second register by a predetermined connection line.

請求項1および請求項2の発明によれば、複数の成分のうちの1成分である単位画像信号と同じビット数の記憶領域を複数備える記憶手段を備え、前記記憶手段の各記憶領域に記憶された単位画像信号の配列を、単位色配列を保ちつつ右に90゜回転させて前記記憶手段の各記憶領域に記憶させるように、前記記憶手段の各記憶領域が互いに接続されるため、単位画像信号のデータ長の変換が不要なので、高速かつ低消費電力に右90°回転処理を行うことができる。また、記憶手段の画像信号を右90°回転して、再びその記憶手段に戻すので、複数の記憶手段を設ける必要がなく、安価な回路とすることができる。   According to the first and second aspects of the present invention, the storage unit includes a plurality of storage areas having the same number of bits as the unit image signal that is one of the plurality of components, and is stored in each storage area of the storage means. The storage areas of the storage means are connected to each other so that the arrangement of the unit image signals is rotated 90 ° to the right while maintaining the unit color arrangement and stored in the storage areas of the storage means. Since conversion of the data length of the image signal is unnecessary, the right 90 ° rotation process can be performed at high speed and low power consumption. Further, since the image signal of the storage means is rotated 90 ° to the right and returned to the storage means again, there is no need to provide a plurality of storage means, and an inexpensive circuit can be obtained.

また、請求項3および請求項4の発明によれば、単位画像信号と同じビット数の記憶領域を複数備える記憶手段を備え、前記記憶手段の各記憶領域に記憶された単位画像信号の配列を、単位色配列を保ちつつ左に90゜回転させて前記記憶手段の各記憶領域に記憶させるように、前記記憶手段の各記憶領域が互いに接続されるため、単位画像信号のデータ長の変換が不要なので、高速かつ低消費電力に左90°回転処理を行うことができる。また、記憶手段の画像信号を左90°回転して、再びその記憶手段に戻すので、複数の記憶手段を設ける必要がなく、安価な回路とすることができる。   According to the third and fourth aspects of the present invention, the storage unit includes a plurality of storage areas having the same number of bits as the unit image signal, and the arrangement of the unit image signals stored in each storage area of the storage unit is determined. Since the storage areas of the storage means are connected to each other so that they are rotated 90 ° to the left and stored in the storage areas of the storage means while maintaining the unit color arrangement, the data length of the unit image signal can be converted. Since it is unnecessary, the left 90 ° rotation process can be performed at high speed and low power consumption. Further, since the image signal of the storage means is rotated 90 ° to the left and returned to the storage means again, it is not necessary to provide a plurality of storage means, and an inexpensive circuit can be obtained.

以下、この発明の実施の形態を図面に基づいて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

<1.第1の実施の形態>
図1はこの発明の一の実施の形態に係るディジタルスチルカメラを示す図である。このディジタルスチルカメラは、図1の如く、CCD(撮像素子)21で撮像した画像をアナログ信号処理回路22で取り込んでA/D変換し、このディジタル化された画像についての画素補間、色変換、輪郭強調処理、フィルタリング及び間引き処理等の所定の一般画像処理をリアルタイムプロセッシングユニット(RPU)23でリアルタイム処理(実時間処理)にて高速に実行すると共に、回転、鏡映、色配列変換、JPEG圧縮処理等を含む例外的画像処理をCPU(中央制御部)24および本発明の信号処理回路に相当するコプロセッサ25で実行した後、外部インターフェース(I/F)26を通じて所定の処理装置(パーソナルコンピュータ)等に出力し、併せて、当該画像をディスプレイ駆動回路27aを通じてファインダーとしてのLCD27に表示し、またDRAMまたはSDRAM等の一般的な主メモリ29等に格納するようになっている。この際、ファインダー(LCD27)への画像供給に関しては若干の解像度を落とすなどの所定の処理をリアルタイムプロセッシングユニット23で行った後、次々と画像を出力することで、ファインダー27での画像表示を行うが、操作部28における図示しない撮像釦等が操作者によって押操作されたときには、主メモリ29内の詳細な画像をメモリカード30等の記録装置(Storage Media)に一気に格納するようになっている。
<1. First Embodiment>
FIG. 1 is a diagram showing a digital still camera according to an embodiment of the present invention. As shown in FIG. 1, the digital still camera captures an image captured by a CCD (imaging device) 21 by an analog signal processing circuit 22 and performs A / D conversion, and performs pixel interpolation, color conversion, and the like on the digitized image. Predetermined general image processing such as edge enhancement processing, filtering and thinning processing is executed at high speed in real time processing (real time processing) by the real time processing unit (RPU) 23, and rotation, mirroring, color array conversion, JPEG compression Exceptional image processing including processing and the like is executed by a CPU (central control unit) 24 and a coprocessor 25 corresponding to the signal processing circuit of the present invention, and then a predetermined processing device (personal computer) through an external interface (I / F) 26. In addition, the image is displayed on the finder through the display drive circuit 27a. It is displayed on the LCD27 as, also adapted to store in the common main memory 29 such as a DRAM or SDRAM. At this time, for the image supply to the finder (LCD 27), after performing predetermined processing such as a slight reduction in resolution in the real-time processing unit 23, the images are displayed one after another by outputting images one after another. However, when an imaging button (not shown) in the operation unit 28 is pressed by the operator, a detailed image in the main memory 29 is stored at once in a recording device (Storage Media) such as the memory card 30. .

そして、アナログ信号処理回路22を通じて与えられた画像については、リアルタイム処理を行う場合は途中の画素配列データを主メモリ29に蓄えずにRPU23で直接的に処理を行う一方、リアルタイム処理を行わない場合には、操作者の操作部28を通じての各種画像処理命令(後述する右回転命令および左回転命令を含む)により上記の回転、鏡映、色配列変換、JPEG圧縮処理等の処理がCPU24およびコプロセッサ25で施されて一旦主メモリ29の図示しないCCDデータバッファ(CCD Data Buffer)に画素配列データとして蓄えられ、その画素配列データを再度ダイレクトメモリアクセス(DMA)でリアルタイムプロセッシングユニット23に入力してやることで、高速に処理を行うようになっている。ここで、CPU24は内部に32ビット長のレジスタを有し、32ビット(1ワード)単位でデータ処理を行うものとなっているとともに、上記のリアルタイムに行わない処理のうち、回転、鏡映、色配列変換処理についてはCPU24におけるソフトウェアによる処理ではなく、後に詳述するこれらの処理専用の回路を備えるコプロセッサ25によって高速かつ低消費電力に行われる。   When an image given through the analog signal processing circuit 22 is processed in real time, the pixel arrangement data in the middle is not stored in the main memory 29 but directly processed by the RPU 23, while the real time processing is not performed. According to various image processing commands (including a right rotation command and a left rotation command, which will be described later) through the operator's operation unit 28, the CPU 24 and the CPU 24 perform processing such as rotation, mirroring, color arrangement conversion, and JPEG compression processing. It is applied by the processor 25 and once stored as pixel array data in a CCD data buffer (CCD Data Buffer) (not shown) of the main memory 29, and the pixel array data is again input to the real-time processing unit 23 by direct memory access (DMA). Therefore, processing is performed at high speed. Here, the CPU 24 has a 32-bit register inside, and performs data processing in units of 32 bits (1 word). Among the processing not performed in real time, rotation, reflection, The color array conversion process is not performed by software in the CPU 24, but is performed at high speed and with low power consumption by the coprocessor 25 including circuits dedicated to these processes, which will be described in detail later.

また、リアルタイムプロセッシングユニット23、CPU24、外部インターフェース26等は、主メモリ29、メモリカード30及びJPEG処理部31とともにメインバスMBにバス接続されており、これらのデータ相互の受け渡しに際してCPU24の負荷を低減すべく、このCPU24を介さずにダイレクトメモリアクセス(DMA)コントローラ32の制御に基づいて各要素間のメインバスMBを通じたデータの授受を行っている。   The real-time processing unit 23, the CPU 24, the external interface 26, and the like are bus-connected to the main bus MB together with the main memory 29, the memory card 30, and the JPEG processing unit 31, and the load on the CPU 24 is reduced when these data are exchanged. Therefore, data is transferred between the elements through the main bus MB based on the control of the direct memory access (DMA) controller 32 without using the CPU 24.

なお、図1中の符号30aはオートフォーカス機能付きのレンズや絞り機構等を有する光学機構、符号30bはストロボ、符号30cはCCD21を駆動するCCD駆動回路、符号30dはリアルタイムプロセッシングユニット23及びCCD駆動回路30c等の動作タイミングを規律するためのタイミングジェネレータ(TG)、符号30eはPLL発信回路をそれぞれ示している。   1, reference numeral 30a denotes an optical mechanism having a lens with an autofocus function, an aperture mechanism, etc., reference numeral 30b denotes a strobe, reference numeral 30c denotes a CCD driving circuit for driving the CCD 21, and reference numeral 30d denotes a real-time processing unit 23 and CCD driving. A timing generator (TG) for regulating the operation timing of the circuit 30c and the like, and reference numeral 30e indicate a PLL transmission circuit.

つぎに、この発明の主要部であるコプロセッサ25について説明する。図2は第1の実施の形態におけるコプロセッサ25のレジスタグループおよびそれらにおけるレジスタ間の接続を示す図である。図示のようにこのコプロセッサ25は、この発明の記憶手段に相当するレジスタグループRG1〜RG3を備えている。そして、各レジスタグループはそれぞれ4つの記憶素子に相当するレジスタを備えている。すなわち、レジスタグループRG1〜RG3はそれぞれレジスタR1〜R4を備えている。さらに、各レジスタR1〜R4はそれぞれ32ビットすなわち1ワード(4バイト)のレジスタである。   Next, the coprocessor 25 which is a main part of the present invention will be described. FIG. 2 is a diagram showing register groups of the coprocessor 25 and connections between the registers in the coprocessor 25 according to the first embodiment. As shown, the coprocessor 25 includes register groups RG1 to RG3 corresponding to the storage means of the present invention. Each register group includes registers corresponding to four storage elements. That is, the register groups RG1 to RG3 include registers R1 to R4, respectively. Further, each of the registers R1 to R4 is a register of 32 bits, that is, one word (4 bytes).

そして、このディジタルカメラでは画素単位の画像データは8ビット(1バイト)で表わされた単色の階調信号であり、各レジスタは第0〜第3バイトB3に8ビット(1バイト)ずつ、すなわち、レジスタ内の各ビットを第0ビット〜第31ビットと呼ぶとき、第0〜第7ビット、第8〜第15ビット、第16〜第23ビットおよび第24〜第31ビットをそれぞれ第0バイトB0、第1バイトB1、第2バイトB2および第3バイトB3と呼び、それら各バイトに1画素ずつ画像データ(この発明の単位画像信号に相当)が読み込まれる。すなわち、各レジスタグループRG1〜RG3それぞれの各レジスタR1〜R4内において、単位となる1画素の画像データと同じビット数の領域に各画素の画像データが記憶されるようになっている。   In this digital camera, the pixel unit image data is a monochrome gradation signal represented by 8 bits (1 byte), and each register has 8 bits (1 byte) in the 0th to 3rd bytes B3. That is, when each bit in the register is referred to as the 0th to 31st bits, the 0th to 7th bits, the 8th to 15th bits, the 16th to 23rd bits, and the 24th to 31st bits are set to 0th, respectively. Called byte B0, first byte B1, second byte B2, and third byte B3, image data (corresponding to the unit image signal of the present invention) is read in each byte. That is, in each register R1 to R4 of each register group RG1 to RG3, the image data of each pixel is stored in an area having the same number of bits as the image data of one pixel as a unit.

なお、各レジスタグループRG1〜RG3それぞれの各レジスタR1〜R4は、CPU24から画像データを読み込んだり、逆にCPU24に出力したりするために、それぞれ直接CPU24に電気的に接続されている。これによりレジスタグループRG1〜RG3の各レジスタR1〜R4の各バイトB0〜B3はCPU24を介して間接的に主メモリ29に接続されている。   Each register R1 to R4 of each register group RG1 to RG3 is electrically connected directly to the CPU 24 in order to read image data from the CPU 24 or output it to the CPU 24. As a result, the bytes B0 to B3 of the registers R1 to R4 of the register group RG1 to RG3 are indirectly connected to the main memory 29 via the CPU 24.

また、レジスタグループRG1とRG2およびRG2とRG3の各レジスタR1〜R4の第0〜第3バイトB3は以下に示すように互いに所定の接続線で電気的に直接接続されている。すなわち、レジスタグループRG1のすべてのレジスタの第0バイトB0がレジスタグループRG2のレジスタR4の第0バイトB0から第3バイトB3に接続され、レジスタグループRG1のすべてのレジスタの第1バイトB1がレジスタグループRG2のレジスタR3の第0バイトB0から第3バイトB3に接続され、レジスタグループRG1のすべてのレジスタの第2バイトB2がレジスタグループRG2のレジスタR2の第0バイトB0から第3バイトB3に接続され、レジスタグループRG1のすべてのレジスタの第3バイトB3がレジスタグループRG2のレジスタR1の第0バイトB0から第3バイトB3に接続されている。また、レジスタグループRG2のレジスタR1の第0バイトB0から第3バイトB3がそれぞれレジスタグループRG3のレジスタR1の第3バイトB3から第0バイトB0に接続され、レジスタグループRG2のレジスタR2の第0バイトB0から第3バイトB3がそれぞれレジスタグループRG3のレジスタR2の第3バイトB3から第0バイトB0に接続され、レジスタグループRG2のレジスタR3の第0バイトB0から第3バイトB3がそれぞれレジスタグループRG3のレジスタR3の第3バイトB3から第0バイトB0に接続され、レジスタグループRG2のレジスタR4の第0バイトB0から第3バイトB3がそれぞれレジスタグループRG3のレジスタR4の第3バイトB3から第0バイトB0に接続されている。   The 0th to 3rd bytes B3 of the registers R1 to R4 of the register groups RG1 and RG2 and RG2 and RG3 are electrically connected directly to each other through a predetermined connection line as shown below. That is, the 0th byte B0 of all the registers of the register group RG1 is connected to the 0th byte B0 to the 3rd byte B3 of the register R4 of the register group RG2, and the first byte B1 of all the registers of the register group RG1 is the register group. The 0th byte B0 to the 3rd byte B3 of the register R3 of the RG2 are connected, and the 2nd byte B2 of all the registers of the register group RG1 are connected to the 0th byte B0 to the 3rd byte B3 of the register R2 of the register group RG2. The third byte B3 of all the registers of the register group RG1 is connected to the 0th byte B0 to the third byte B3 of the register R1 of the register group RG2. The 0th byte B0 to the 3rd byte B3 of the register R1 of the register group RG2 are connected to the 3rd byte B3 to the 0th byte B0 of the register R1 of the register group RG3, respectively, and the 0th byte of the register R2 of the register group RG2 B0 to the third byte B3 are connected to the third byte B3 to the 0th byte B0 of the register R2 of the register group RG3, respectively, and the 0th byte B0 to the third byte B3 of the register R3 of the register group RG2 are respectively connected to the register group RG3. The third byte B3 to the 0th byte B0 of the register R3 are connected, and the 0th byte B0 to the third byte B3 of the register R4 of the register group RG2 are respectively changed from the third byte B3 to the 0th byte B0 of the register R4 of the register group RG3. It is connected to the.

このように各レジスタグループは接続されているため、以下に示すように、各レジスタグループ間で画像データを転送することにより、画像に対して右90゜回転、左90゜回転および画像について左右方向(水平方向)の鏡映といった画像処理を高速に行うものとなっている。   Since each register group is connected in this way, as shown below, by transferring image data between each register group, the image is rotated 90 ° to the right, 90 ° to the left, and horizontally to the image. Image processing such as mirroring in the (horizontal direction) is performed at high speed.

図3は第1の実施の形態におけるコプロセッサ25による回転処理を説明するための図であり、図3(a)〜(c)は右90゜回転の様子を示す図、図3(d)〜図3(f)は左90゜回転の様子を示す図である。まず、主メモリ29に図3(a)のように記憶された4ワードの画像データがCPU24を介してレジスタグループRG2に図3(b)のように読み込まれる。すなわち、レジスタグループRG2のレジスタR1〜R4の各バイトB0〜B3は図示しないが、CPU24を介して主メモリと、画像データが上下方向(垂直方向)に鏡映するように接続されている。そして、レジスタグループRG2の画像データはレジスタグループRG1に図3(c)のように転送される。この図3(a)と(c)とを比較すると4ワード分の画像が右に90゜回転していることが分かる。そして、レジスタグループRG1から画像データを出力すると右に90゜回転した画像データが得られるのである。   FIG. 3 is a diagram for explaining the rotation processing by the coprocessor 25 in the first embodiment, and FIGS. 3A to 3C are diagrams showing a state of 90 ° rotation to the right, and FIG. FIG. 3 (f) is a diagram showing a state of 90 ° rotation to the left. First, 4-word image data stored in the main memory 29 as shown in FIG. 3A is read into the register group RG2 via the CPU 24 as shown in FIG. 3B. That is, although not shown, the bytes B0 to B3 of the registers R1 to R4 of the register group RG2 are connected to the main memory via the CPU 24 so that the image data is reflected in the vertical direction (vertical direction). Then, the image data of the register group RG2 is transferred to the register group RG1 as shown in FIG. Comparing FIGS. 3A and 3C, it can be seen that the image of 4 words is rotated 90 ° to the right. When the image data is output from the register group RG1, image data rotated 90 ° to the right is obtained.

同様に、主メモリ29に図3(d)のように記憶された4ワードの画像データがCPU24を介してレジスタグループRG3に図3(e)のように読み込まれ、レジスタグループRG2を介してレジスタグループRG1に転送され、図3(f)のような配列になる。この図3(e)および(f)を比較すると4ワード分の画像が左に90゜回転していることが分かる。そして、レジスタグループRG1から画像データを出力すると左に90゜回転した画像データが得られるのである。   Similarly, 4-word image data stored in the main memory 29 as shown in FIG. 3 (d) is read into the register group RG3 via the CPU 24 as shown in FIG. 3 (e), and is registered via the register group RG2. The data is transferred to the group RG1, and the arrangement is as shown in FIG. Comparing FIGS. 3 (e) and 3 (f), it can be seen that the image of 4 words is rotated 90 ° to the left. When the image data is output from the register group RG1, image data rotated 90 ° to the left is obtained.

図4は第1の実施の形態におけるコプロセッサ25による鏡映処理を説明するための図である。まず、主メモリに図4(a)のように記憶された4ワードの画像データがレジスタグループRG3に図4(b)のように読み込まれ、レジスタグループRG2に図4(c)のように転送される。この図4(a)と(c)とを比較すると4ワード分の画像が縦方向の中心線CL(各レジスタの第1バイトB1と第2バイトB2を貫く線)を軸として左右方向に鏡映していることが分かる。そして、レジスタグループRG2から画像データを出力すると左右方向に鏡映した画像が得られるのである。   FIG. 4 is a diagram for explaining the mirroring process by the coprocessor 25 in the first embodiment. First, 4-word image data stored in the main memory as shown in FIG. 4A is read into the register group RG3 as shown in FIG. 4B and transferred to the register group RG2 as shown in FIG. 4C. Is done. 4 (a) and 4 (c) are compared, an image of 4 words is mirrored in the horizontal direction about the vertical center line CL (line passing through the first byte B1 and the second byte B2 of each register). You can see that it is reflected. When the image data is output from the register group RG2, an image mirrored in the left-right direction is obtained.

なお、図1から分かるように各レジスタグループの各レジスタの各バイトからは接続線が1本ずつ出ている。すなわち、1つのレジスタグループの1つのレジスタの各バイトは接続線に接続されることによって他のレジスタグループの1つのレジスタに対応して、すべて、一対一対応している。これにより、レジスタグループRG1〜RG3のうちのいずれの2つのレジスタグループ間の画像データの転送も可逆である。したがって、レジスタグループRG2からレジスタグループRG1への転送も、レジスタグループRG3からレジスタグループRG2への転送も行うことができ、さらには、レジスタグループRG3からレジスタグループRG2を介したレジスタグループRG1への転送も行うことができる。これによって、それぞれ、上述の変換の逆変換、すなわち、レジスタグループRG2からレジスタグループRG1への転送によって左90゜回転を、レジスタグループRG2からレジスタグループRG3への転送によっても中心線CLを軸とした鏡映を、レジスタグループRG3からレジスタグループRG2を介したレジスタグループRG1への転送によって右90゜回転を行うことができる。   As can be seen from FIG. 1, one connection line is provided from each byte of each register of each register group. In other words, each byte of one register of one register group is connected to the connection line, thereby corresponding to one register of another register group, and has a one-to-one correspondence. Thereby, transfer of image data between any two register groups of the register groups RG1 to RG3 is reversible. Therefore, transfer from the register group RG2 to the register group RG1, transfer from the register group RG3 to the register group RG2, and transfer from the register group RG3 to the register group RG1 via the register group RG2 are also possible. It can be carried out. As a result, the above-described conversion is reversed, that is, 90 ° to the left by the transfer from the register group RG2 to the register group RG1, and the center line CL as the axis by the transfer from the register group RG2 to the register group RG3. The mirror can be rotated 90 ° right by transfer from register group RG3 to register group RG1 via register group RG2.

さらに、上下方向の鏡映、すなわち、各レジスタグループRGのレジスタR2とR3との間に当たる画像中の水平方向の直線を対称軸として鏡映を行う場合は、回路構成によって実現する場合と速度的に大差ないので、CPU24においてソフトウェアで実現している。なお、このような上下方向の鏡映についても2つのレジスタグループ間を所定の接続線で電気的に接続して、それらレジスタグループ間で画像データを転送することによって容易に実現することができる。   Further, when mirroring in the vertical direction, that is, mirroring with the horizontal straight line in the image between the registers R2 and R3 of each register group RG as the axis of symmetry, it is speedy compared with the case where it is realized by the circuit configuration. Therefore, the CPU 24 is realized by software. Note that such vertical mirroring can be easily realized by electrically connecting two register groups with a predetermined connection line and transferring image data between the register groups.

また、このコプロセッサ25では画素単位でまとめられた色を構成する複数の成分を有する画像データを、成分単位で複数の画素の画像データを合併した画像データにしたり、逆に、合併された画像データを複数の成分を有する画素単位の画像データに分離したりすることができる。   Further, in this coprocessor 25, image data having a plurality of components constituting a color grouped in units of pixels is converted into image data obtained by merging image data of a plurality of pixels in units of components. The data can be separated into pixel-unit image data having a plurality of components.

図5は第1の実施の形態による色データの合併および分離の様子を説明するための図である。2画素が32ビットで表わされる複合画素データとその複合画素データの後述する単位色配列における各成分ごとの32ビットの画像データとの間でデータ形式を変換する色データの合併や分離を示している。ここで扱う複合画素データとは、単位となる2画素を表現する32ビットのカラー画像データであって、色を表わす1群の複数の成分の単位となる配列である単位色配列を有し、その単位色配列が1つの輝度成分(Y成分)と水平または垂直方向における配置の周波数が輝度成分の1/2(データ数が半分)である2つの色成分とからなるものである。第1の実施の形態では、水平方向に各成分が配列される形式の単位画素データを用いており、2画素を表現する画像データとして8ビットからなるY成分が2画素分と、それら2画素に共通のそれぞれ8ビットからなるCy成分(青成分から輝度成分を引いた色差信号)およびCb成分(赤成分から輝度成分を引いた色差信号)とを併せて32ビットの複合画素データとしている。そして、このような複合画素データを各成分ごとにまとめた32ビットの画像データに変換するのである。   FIG. 5 is a diagram for explaining how color data is merged and separated according to the first embodiment. The merge and separation of color data for converting the data format between the composite pixel data in which two pixels are represented by 32 bits and the 32-bit image data for each component in the unit color array described later of the composite pixel data are shown. Yes. The composite pixel data handled here is 32-bit color image data representing two pixels as a unit, and has a unit color array that is an array of a plurality of components of a group representing a color, The unit color arrangement is composed of one luminance component (Y component) and two color components in which the arrangement frequency in the horizontal or vertical direction is 1/2 of the luminance component (the number of data is half). In the first embodiment, unit pixel data in a format in which each component is arranged in the horizontal direction is used, and the Y component consisting of 8 bits is 2 pixels as image data representing 2 pixels, and these 2 pixels. The 8-bit Cy component (color difference signal obtained by subtracting the luminance component from the blue component) and the Cb component (color difference signal obtained by subtracting the luminance component from the red component) are combined into 32-bit composite pixel data. Then, such composite pixel data is converted into 32-bit image data that is grouped for each component.

なお、この色を構成する成分の合併および分離処理では上記複合画素データを各レジスタグループRG2およびRG1それぞれの各レジスタR1〜R4に記憶するものとなっている。すなわち、各レジスタグループRG1,RG2それぞれの各レジスタR1〜R4内において、この発明の単位画像信号に相当する単位となる1つの成分の画像データ(この例ではYまたはCbまたはCr成分)と同じビット数の記憶領域(第0〜第3バイト)に各成分データを記憶する。   In the process of merging and separating the components constituting this color, the composite pixel data is stored in the registers R1 to R4 of the register groups RG2 and RG1, respectively. That is, in each register R1 to R4 of each register group RG1 and RG2, the same bit as the image data of one component (in this example, Y, Cb, or Cr component) that is a unit corresponding to the unit image signal of the present invention. Each component data is stored in a number of storage areas (0th to 3rd bytes).

図5(a)に示すように、Y,Cb,Y,Crの各成分の画像データをレジスタグループRG2のレジスタR1〜R4に読み込み、レジスタグループRG1に転送することによって、レジスタグループRG1のレジスタR1〜R4にそれぞれ画素単位に合併された画像データが生成される。逆に、Y,Cb,Y,Crの各成分を有する2画素単位の画像データをレジスタグループRG2のレジスタR1〜R4に読み込み、レジスタグループRG1に転送することによって、レジスタグループRG1のレジスタR1〜R4にそれぞれ4画素分のY,Cb,Y,Crの各成分に分離された画像データが生成される。これは、前述の右90゜回転および左90゜回転の機能を用いて色データの合併および分離を行うことができることを示している。   As shown in FIG. 5A, the image data of each component of Y, Cb, Y, and Cr is read into the registers R1 to R4 of the register group RG2, and transferred to the register group RG1, thereby register R1 of the register group RG1. Image data merged in units of pixels in .about.R4 is generated. Conversely, the image data in units of two pixels having the respective components Y, Cb, Y, and Cr are read into the registers R1 to R4 of the register group RG2, and transferred to the register group RG1, whereby the registers R1 to R4 of the register group RG1. Then, image data separated into Y, Cb, Y, and Cr components for 4 pixels is generated. This indicates that the color data can be merged and separated by using the functions of 90 ° rotation to the right and 90 ° to the left.

なお、このコプロセッサ25の変換処理は前述のように可逆であるので、逆にレジスタグループRG1に上記のような画像データを読み込んで、レジスタグループRG2に転送しても、画像データの色を構成する成分についての分離および合併を行うことができる。   Since the conversion process of the coprocessor 25 is reversible as described above, the color of the image data is configured even when the image data as described above is read into the register group RG1 and transferred to the register group RG2. Separation and merger of the components to be performed can be performed.

以上説明したように、第1の実施の形態によれば、レジスタグループRG1〜RG3において、単位となる画像データと同じビット数(1バイト)の記憶領域、すなわち各レジスタR1〜R4の各バイトが上述のような接続関係で互いに直接接続されているので、各レジスタグループRG1〜RG3間の画像データの転送により右90°回転、左90°回転、中心線に対する左右方向の鏡映およびカラー画像データの成分の合併および分離を行うことができる。そのため、CPU24においてソフトウェアによってこれらの処理を行う場合には単位となる画像データを8ビットから32ビットに変換する必要があるのに対して、第1の実施の形態では単位となる画像データのデータ長を変換する必要がなく、データ長の変換工程およびそのためのデータ移動が不要となり、高速かつ低消費電力に上記処理を行うことができる。   As described above, according to the first embodiment, in the register groups RG1 to RG3, the storage area having the same number of bits (1 byte) as the unit image data, that is, each byte of each register R1 to R4 is stored. Since they are directly connected to each other as described above, the image data is transferred between the register groups RG1 to RG3, rotated 90 ° to the right, rotated 90 ° to the left, mirrored in the horizontal direction with respect to the center line, and color image data. The components can be merged and separated. Therefore, when the CPU 24 performs these processes by software, it is necessary to convert the unit image data from 8 bits to 32 bits, whereas in the first embodiment, the unit image data data. It is not necessary to convert the length, the data length conversion step and the data movement for that are not necessary, and the above processing can be performed at high speed and with low power consumption.

<2.第2の実施の形態>
第2の実施の形態では図1で示した第1の実施の形態の装置構成とコプロセッサ25以外は全く同様の構成となっており、そして、このコプロセッサ25はCPU24から与えられた画像データを右90゜回転するものとなっている。以下、このコプロセッサ25の構造および処理について説明する。
<2. Second Embodiment>
In the second embodiment, the apparatus configuration of the first embodiment shown in FIG. 1 is the same as that of the first embodiment except for the coprocessor 25. The coprocessor 25 receives image data provided from the CPU 24. Is rotated 90 ° to the right. Hereinafter, the structure and processing of the coprocessor 25 will be described.

図6は第2の実施の形態におけるコプロセッサ25のレジスタグループおよびそれらにおけるレジスタ間の接続を示す図である。第2の実施の形態におけるコプロセッサ25は第1の実施の形態におけるレジスタグループRG1〜RG3と同様の32ビットのレジスタを4つずつ備えるレジスタグループRG4およびRG5を備えている。ただし、第2の実施の形態ではレジスタグループRG4とRG5においてレジスタR1およびR2とレジスタR3およびR4とは全く同じ接続関係になっているので、レジスタR1およびR2のみについて代表的に図示している。   FIG. 6 is a diagram showing register groups of the coprocessor 25 and connections between the registers in the coprocessor 25 according to the second embodiment. The coprocessor 25 in the second embodiment includes register groups RG4 and RG5 each including four 32-bit registers similar to the register groups RG1 to RG3 in the first embodiment. However, in the second embodiment, the registers R1 and R2 and the registers R3 and R4 have exactly the same connection relationship in the register groups RG4 and RG5, so only the registers R1 and R2 are representatively illustrated.

そして、第2の実施の形態では2画素が32ビット(例えばYCbYCrの色配列で各成分が8ビット)で表現される複合画素データ(ビデオデータ)を各レジスタグループRG4,RG5それぞれの各レジスタR1〜R4に記憶するものとなっている。なお、ここで扱う複合画素データは第1の実施の形態における複合画素データと同様のものである。そして、各レジスタグループRG4,RG5それぞれの各レジスタR1〜R4内において、この発明の単位画像信号に相当する単位となる1つの成分の画像データ(上記の例ではYまたはCbまたはCr成分)と同じビット数の記憶領域(第0〜第3バイト)に各成分データが記憶されるようになっている。   In the second embodiment, composite pixel data (video data) in which two pixels are expressed by 32 bits (for example, each component is 8 bits in a YCbYCr color arrangement) is registered in each register R1 of each register group RG4, RG5. It is to be stored in ~ R4. The composite pixel data handled here is the same as the composite pixel data in the first embodiment. In each of the registers R1 to R4 of each of the register groups RG4 and RG5, the same as one component image data (in the above example, Y, Cb, or Cr component) as a unit corresponding to the unit image signal of the present invention. Each component data is stored in a bit number storage area (0th to 3rd bytes).

さらに、レジスタグループRG4およびRG5のレジスタR1およびR2(R3およびR4)の各バイトは以下に示すように互いに所定の接続線により電気的に直接接続されている。すなわち、レジスタグループRG4のレジスタR1の第0バイトB0とレジスタグループRG5のレジスタR2の第0バイトB0とが、レジスタグループRG4のレジスタR1の第2バイトB2とレジスタグループRG5のレジスタR1の第0バイトB0とが、レジスタグループRG4のレジスタR2の第0バイトB0とレジスタグループRG5のレジスタR2の第2バイトB2とが、レジスタグループRG4のレジスタR2の第1バイトB1とレジスタグループRG5のレジスタR1の第1バイトB1及びレジスタグループRG5のレジスタR2の第1バイトB1とが、レジスタグループRG4のレジスタR2の第2バイトB2とレジスタグループRG5のレジスタR1の第2バイトB2とが、レジスタグループRG4のレジスタR2の第3バイトB3とレジスタグループRG5のレジスタR1の第3バイトB3及びレジスタグループRG5のレジスタR2の第3バイトB3とが、それぞれ接続されている。   Further, the bytes of the registers R1 and R2 (R3 and R4) of the register groups RG4 and RG5 are electrically connected directly to each other through a predetermined connection line as shown below. That is, the 0th byte B0 of the register R1 of the register group RG4 and the 0th byte B0 of the register R2 of the register group RG5 are the second byte B2 of the register R1 of the register group RG4 and the 0th byte of the register R1 of the register group RG5. B0 is the 0th byte B0 of the register R2 of the register group RG4 and the second byte B2 of the register R2 of the register group RG5 is the first byte B1 of the register R2 of the register group RG4 and the first byte B1 of the register R1 of the register group RG5. 1 byte B1 and 1st byte B1 of register R2 of register group RG5, 2nd byte B2 of register R2 of register group RG4, 2nd byte B2 of register R1 of register group RG5, register R2 of register group RG4 The first A third byte B3 of the register R2 of the third byte B3 and the register group RG5 byte B3 and the register R1 in the register group RG5 are connected respectively.

図7は第2の実施の形態におけるコプロセッサ25による右回転処理を説明するための図である。前述のようにレジスタR1およびR2とレジスタR3およびR4とが同じ接続であるのは、2レジスタ分すなわち16ビット単位のビデオデータで表わされる4画素についての右90゜の回転を8画素に対して並列に行っていることを意味している。そのため、以下、代表してレジスタR3およびR4における回転について説明する。なお、図7の各レジスタの各バイト内の記号は前述の各成分(Y,Cb,Y,Cr成分)を表わしており、その後ろの数字は8個の画素(第0〜第7画素)のいずれであるかを表わしている。   FIG. 7 is a diagram for explaining a right rotation process by the coprocessor 25 in the second embodiment. As described above, the registers R1 and R2 and the registers R3 and R4 have the same connection because the rotation of 90 ° to the right with respect to 8 pixels is performed with respect to 2 registers, that is, 4 pixels represented by 16-bit video data. It means that we are going in parallel. Therefore, the rotation in the registers R3 and R4 will be described below as a representative. Note that symbols in each byte of each register in FIG. 7 represent the above-described components (Y, Cb, Y, Cr components), and the numbers after them are 8 pixels (0th to 7th pixels). It represents which of these.

まず、レジスタR3およびR4のうち、Y成分が記憶された第0バイトB0および第2バイトB2のみに注目してみると、レジスタグループRG4からRG5へのデータ転送により、Y0〜Y3は回転されてY0は元のY1の位置に、Y1は元のY3の位置に、Y2は元のY0の位置に、Y3は元のY2の位置にそれぞれ移動している。また、Cb成分、Cr成分についてはY,Cb,Y,Cr成分の配列を崩さないために各レジスタの第1バイトB1にCb成分が、第3バイトB3にCr成分が位置する必要があるため、最初にレジスタR4の第1バイトB1および第3バイトB3に記憶されていたCb0およびCr1をそのままレジスタR3にコピーしている。以上から、この変換で複合画素データが右90゜回転していることが分かる。なお、レジスタR1およびR2においても同様である。   First, paying attention to only the 0th byte B0 and the 2nd byte B2 in which the Y component is stored in the registers R3 and R4, Y0 to Y3 are rotated by the data transfer from the register group RG4 to RG5. Y0 is moved to the original Y1, Y1 is moved to the original Y3 position, Y2 is moved to the original Y0 position, and Y3 is moved to the original Y2 position. For the Cb component and Cr component, the Cb component must be located in the first byte B1 and the Cr component must be located in the third byte B3 in order not to destroy the arrangement of the Y, Cb, Y, and Cr components. First, Cb0 and Cr1 stored in the first byte B1 and the third byte B3 of the register R4 are copied to the register R3 as they are. From the above, it can be seen that the composite pixel data is rotated 90 ° to the right by this conversion. The same applies to the registers R1 and R2.

以上説明したように、第2の実施の形態によれば、レジスタグループRG4およびRG5において、単位となる1つの成分データと同じビット数(1バイト)の記憶領域、すなわち各レジスタR1〜R4の各バイトが上述のような接続関係で互いに直接接続されているので、各レジスタグループRG4およびRG5間の画像データの転送によりビデオデータの右90°回転を行うことができるので、CPU24においてソフトウェアによってこれらの処理を行う場合と比べて、単位となる色を構成する各成分データのデータ長を変換する必要がなく、データ長の変換工程およびそのためのデータ移動が不要となり、高速かつ低消費電力に上記処理を行うことができる。   As described above, according to the second embodiment, in the register groups RG4 and RG5, a storage area having the same number of bits (1 byte) as one component data as a unit, that is, each of the registers R1 to R4 Since the bytes are directly connected to each other in the connection relationship as described above, the video data can be rotated 90 ° to the right by transferring the image data between the register groups RG4 and RG5. Compared to the case of processing, it is not necessary to convert the data length of each component data constituting the unit color, the data length conversion step and the data movement for that are unnecessary, and the above processing is performed at high speed and with low power consumption. It can be performed.

<3.第3の実施の形態>
第3の実施の形態でも図1で示した第1の実施の形態の装置構成とコプロセッサ25以外は全く同様の構成となっており、そして、このコプロセッサ25はCPU24から与えられた画像データを左90゜回転するものとなっている。以下、このコプロセッサ25の構造および処理について説明する。
<3. Third Embodiment>
Also in the third embodiment, the configuration is the same as that of the first embodiment shown in FIG. 1 except for the coprocessor 25, and the coprocessor 25 has image data supplied from the CPU 24. Is rotated 90 ° to the left. Hereinafter, the structure and processing of the coprocessor 25 will be described.

図8は第3の実施の形態におけるコプロセッサ25のレジスタグループおよびそれらにおけるレジスタ間の接続を示す図である。第3の実施の形態におけるコプロセッサ25は第2の実施の形態におけるレジスタグループRG4,RG5と同様の構成のレジスタグループRG6およびRG7を備えている。また、第2の実施の形態と同様に、レジスタグループRG6とRG7においてレジスタR1およびR2とレジスタR3およびR4とは全く同じ接続関係になっているので、レジスタR1およびR2のみについて代表的に図示している。   FIG. 8 is a diagram showing register groups of the coprocessor 25 and connections between the registers in the coprocessor 25 according to the third embodiment. The coprocessor 25 in the third embodiment includes register groups RG6 and RG7 having the same configuration as the register groups RG4 and RG5 in the second embodiment. Similarly to the second embodiment, the registers R1 and R2 and the registers R3 and R4 have the same connection relationship in the register groups RG6 and RG7, so that only the registers R1 and R2 are representatively illustrated. ing.

そして、第3の実施の形態では2画素が32ビット(例えばYCbYCrの色配列で各成分が8ビット)で表現される複合画素データ(ビデオデータ)を各レジスタグループRG6,RG7それぞれの各レジスタR1〜R4に記憶するものとなっている。なお、ここで扱う複合画素データは第1の実施の形態における複合画素データと同様のものである。そして、各レジスタグループRG6,RG7それぞれの各レジスタR1〜R4内において、この発明の単位画像信号に相当する単位となる1つの成分の画像データ(上記の例ではYまたはCbまたはCr成分)と同じビット数の記憶領域(第0〜第3バイト)に各成分データが記憶されるようになっている。   In the third embodiment, composite pixel data (video data) in which 2 pixels are expressed by 32 bits (for example, each component is 8 bits in a YCbYCr color arrangement) is stored in each register R1 of each register group RG6, RG7. It is to be stored in ~ R4. The composite pixel data handled here is the same as the composite pixel data in the first embodiment. In each of the registers R1 to R4 of each of the register groups RG6 and RG7, the same as one component image data (in the above example, Y, Cb, or Cr component) as a unit corresponding to the unit image signal of the present invention. Each component data is stored in a bit number storage area (0th to 3rd bytes).

また、レジスタグループRG6およびRG7の各レジスタの各バイトが以下に示すように互いに所定の接続線によって電気的に直接接続されている。すなわち、レジスタグループRG6のレジスタR1の第0バイトB0とレジスタグループRG7のレジスタR1の第2バイトB2とが、レジスタグループRG6のレジスタR1の第2バイトB2とレジスタグループRG7のレジスタR2の第2バイトB2とが、レジスタグループRG6のレジスタR2の第0バイトB0とレジスタグループRG7のレジスタR1の第0バイトB0とが、レジスタグループRG6のレジスタR2の第1バイトB1とレジスタグループRG7のレジスタR1の第1バイトB1及びレジスタグループRG7のレジスタR2の第1バイトB1とが、レジスタグループRG6のレジスタR2の第2バイトB2とレジスタグループRG7のレジスタR2の第0バイトB0とが、レジスタグループRG6のレジスタR2の第3バイトB3とレジスタグループRG7のレジスタR1の第3バイトB3及びレジスタグループRG7のレジスタR2の第3バイトB3とが、接続されている。   In addition, each byte of each register of the register groups RG6 and RG7 is electrically directly connected to each other by a predetermined connection line as shown below. That is, the 0th byte B0 of the register R1 of the register group RG6 and the second byte B2 of the register R1 of the register group RG7 are the second byte B2 of the register R1 of the register group RG6 and the second byte of the register R2 of the register group RG7. B2 is the 0th byte B0 of the register R2 of the register group RG6 and the 0th byte B0 of the register R1 of the register group RG7 is the first byte B1 of the register R2 of the register group RG6 and the first byte B1 of the register R1 of the register group RG7. 1 byte B1 and 1st byte B1 of register R2 of register group RG7, 2nd byte B2 of register R2 of register group RG6, 0th byte B0 of register R2 of register group RG7, register R2 of register group RG6 The first A third byte B3 of the register R2 of the third byte B3 and the register group RG7 byte B3 and the register R1 in the register group RG7 is connected.

図9は第3の実施の形態におけるコプロセッサ25による左回転処理を説明するための図である。第3の実施の形態では、第2の実施の形態と同様の複合画素データ(ビデオデータ)を左90゜回転するものとなっている。第2の実施の形態と同様にレジスタR3およびR4のうち、Y成分が記憶された第0バイトB0および第2バイトB2のみに注目してみると、レジスタグループRG6からRG7へのデータ転送により、明らかに左90゜回転していることが分かる。また、Cb成分、Cr成分については第2の実施の形態と同様である。また、レジスタR1およびR2においても同様である。   FIG. 9 is a diagram for explaining the left rotation processing by the coprocessor 25 in the third embodiment. In the third embodiment, the same composite pixel data (video data) as in the second embodiment is rotated 90 ° to the left. As in the second embodiment, when attention is paid only to the 0th byte B0 and the 2nd byte B2 in which the Y component is stored in the registers R3 and R4, the data transfer from the register group RG6 to RG7 Obviously, it is rotated 90 ° to the left. The Cb component and the Cr component are the same as in the second embodiment. The same applies to the registers R1 and R2.

以上説明したように、第3の実施の形態によれば、レジスタグループRG6およびRG7において、単位となる1つの成分データと同じビット数(1バイト)の記憶領域、すなわち各レジスタR1〜R4の各バイトが上述のような接続関係で互いに直接接続されているので、各レジスタグループRG4およびRG5間の画像データの転送によりビデオデータの左90°回転を行うことができるので、CPU24においてソフトウェアによってこれらの処理を行う場合と比べて、単位となる各成分データのデータ長を変換する必要がなく、データ長の変換工程およびそのためのデータ移動が不要となり、高速かつ低消費電力に上記処理を行うことができる。   As described above, according to the third embodiment, in the register groups RG6 and RG7, a storage area having the same number of bits (1 byte) as one component data as a unit, that is, each of the registers R1 to R4 Since the bytes are directly connected to each other in the connection relationship as described above, video data can be rotated 90 ° to the left by transferring image data between the register groups RG4 and RG5. Compared with the case where processing is performed, it is not necessary to convert the data length of each component data as a unit, the data length conversion step and the data movement therefor are unnecessary, and the above processing can be performed at high speed and with low power consumption. it can.

<4.第4の実施の形態>
第4の実施の形態でも図1で示した第1の実施の形態の装置構成とコプロセッサ25以外は全く同様の構成となっており、そして、このコプロセッサ25はCPU24から与えられた画像データを所定の右回転命令の入力に従い、第2の実施の形態と全く同様に右90゜回転するものとなっている。以下、このコプロセッサ25の構造および処理について説明する。
<4. Fourth Embodiment>
Also in the fourth embodiment, the configuration is the same as that of the first embodiment shown in FIG. 1 except for the coprocessor 25, and the coprocessor 25 receives image data given from the CPU 24. Is rotated 90 ° right in the same manner as in the second embodiment in accordance with the input of a predetermined right rotation command. Hereinafter, the structure and processing of the coprocessor 25 will be described.

図10は第4の実施の形態におけるコプロセッサ25のレジスタグループおよびそれらにおけるレジスタ間の接続関係を模式的に示す図である。第4の実施の形態におけるコプロセッサ25は第2の実施の形態におけるレジスタグループRG4,RG5と同様のレジスタR1〜R4からなるレジスタグループRG8を備えている。すなわち、レジスタグループを1つ備えるのみである。なお、図10では説明上、本来1つのレジスタグループRG8を2つ並べて図示している。   FIG. 10 is a diagram schematically showing the register group of the coprocessor 25 and the connection relationship between the registers in the coprocessor 25 according to the fourth embodiment. The coprocessor 25 in the fourth embodiment includes a register group RG8 including registers R1 to R4 similar to the register groups RG4 and RG5 in the second embodiment. That is, only one register group is provided. In FIG. 10, two register groups RG8 are originally shown side by side for explanation.

また、第4の実施の形態でも2画素が32ビット(例えばYCbYCrの色配列で各成分が8ビット)で表現される複合画素データ(ビデオデータ)をレジスタグループRG8の各レジスタR1〜R4に記憶するものとなっている。なお、ここで扱う複合画素データは第1の実施の形態における複合画素データと同様のものである。そして、各レジスタR1〜R4内において、この発明の単位画像信号に相当する単位となる1つの成分の画像データ(上記の例ではYまたはCbまたはCr成分)と同じビット数の記憶領域(第0〜第3バイト)に各成分データが記憶されるようになっている。   Also in the fourth embodiment, composite pixel data (video data) in which two pixels are represented by 32 bits (for example, each component is 8 bits in a YCbYCr color arrangement) is stored in each of the registers R1 to R4 of the register group RG8. It is supposed to be. The composite pixel data handled here is the same as the composite pixel data in the first embodiment. In each of the registers R1 to R4, a storage area (0th bit) having the same number of bits as the image data of one component (in the above example, Y, Cb, or Cr component) that is a unit corresponding to the unit image signal of the present invention. Each component data is stored in (.about.3rd byte).

そして、レジスタグループRG8のレジスタR1およびR2の各バイトが以下に示すように互いに所定の接続線(この発明の右回転手段に相当)により電気的に直接接続されており、また、第2の実施の形態と同様に、レジスタR1およびR2とレジスタR3およびR4とは全く同じ接続関係になっている。すなわち、レジスタR1の第0バイトB0がレジスタR2の第0バイトB0に、レジスタR1の第2バイトB2がレジスタR1の第0バイトB0に、レジスタR2の第0バイトB0がレジスタR2の第2バイトB2に、レジスタR2の第1バイトB1がレジスタR1の第1バイトB1及びレジスタR2の第1バイトB1に、レジスタR2の第2バイトB2がレジスタR1の第2バイトB2に、レジスタR2の第3バイトB3がレジスタR1の第3バイトB3及びレジスタR2の第3バイトB3に、それぞれ接続されている。   The bytes of the registers R1 and R2 of the register group RG8 are electrically directly connected to each other by a predetermined connection line (corresponding to the right rotation means of the present invention) as shown below. Similarly to the configuration of, the registers R1 and R2 and the registers R3 and R4 have exactly the same connection relationship. That is, the 0th byte B0 of the register R1 is the 0th byte B0 of the register R2, the 2nd byte B2 of the register R1 is the 0th byte B0 of the register R1, and the 0th byte B0 of the register R2 is the 2nd byte of the register R2. B2, the first byte B1 of the register R2 is the first byte B1 of the register R1 and the first byte B1 of the register R2, the second byte B2 of the register R2 is the second byte B2 of the register R1, and the third byte of the register R2 Byte B3 is connected to the third byte B3 of register R1 and the third byte B3 of register R2.

さらに、レジスタグループRG8の各レジスタR1〜R4の各バイトは図示しないセレクタによってCPU24からの画像データの入力と上記レジスタグループRG8内からの画像データの入力とを切り替えることができるようになっている。   Further, the bytes of the registers R1 to R4 of the register group RG8 can be switched between image data input from the CPU 24 and image data input from the register group RG8 by a selector (not shown).

上記のようにレジスタR1およびR2(同様にR3およびR4)が接続されているため、CPU24から画像データが読み込まれた後、操作者が操作部を通じて右回転命令を入力すると、その信号はセレクタに入力され、それによりレジスタグループRG8の入力がレジスタR1〜R4どうしの入力に切り替えられ、画像データの転送が行われる。具体的には以下のように転送される。すなわち、レジスタR1の第0バイトB0からレジスタR2の第0バイトB0に、レジスタR1の第2バイトB2からレジスタR1の第0バイトB0に、レジスタR2の第0バイトB0からレジスタR2の第2バイトB2に、レジスタR2の第1バイトB1からレジスタR1の第1バイトB1及びレジスタR2の第1バイトB1に、レジスタR2の第2バイトB2からレジスタR1の第2バイトB2に、レジスタR2の第3バイトB3からレジスタR1の第3バイトB3及びレジスタR2の第3バイトB3に、それぞれ転送され記憶される。   Since the registers R1 and R2 (as well as R3 and R4) are connected as described above, when image data is read from the CPU 24 and the operator inputs a right rotation command through the operation unit, the signal is sent to the selector. As a result, the input of the register group RG8 is switched to the input of the registers R1 to R4, and the image data is transferred. Specifically, it is transferred as follows. That is, the 0th byte B0 of the register R1 to the 0th byte B0 of the register R2, the 2nd byte B2 of the register R1 to the 0th byte B0 of the register R1, and the 0th byte B0 of the register R2 to the 2nd byte of the register R2. B2, from the first byte B1 of the register R2 to the first byte B1 of the register R1 and the first byte B1 of the register R2, from the second byte B2 of the register R2 to the second byte B2 of the register R1, and from the third byte of the register R2 The data is transferred and stored from the byte B3 to the third byte B3 of the register R1 and the third byte B3 of the register R2.

図11は第4の実施の形態におけるコプロセッサ25による右回転処理を説明するための図である。図示のように、2画素が32ビット(Y成分,Cb成分,Y成分,Cr成分で1単位)で表現される複合画素データ(ビデオデータ)が、上記のようなレジスタ間の転送により第2の実施の形態と同様に右90゜回転されて記憶されていることが分かる。また、この結果からも分かるように、第4の実施の形態では右90゜回転された複合画素データを同一のレジスタグループRG8に戻して記憶している。   FIG. 11 is a diagram for explaining the right rotation process by the coprocessor 25 in the fourth embodiment. As shown in the figure, composite pixel data (video data) in which two pixels are expressed by 32 bits (one unit of Y component, Cb component, Y component, and Cr component) is transferred to the second by transfer between the registers as described above. It can be seen that the data is rotated 90 degrees to the right as in the embodiment. As can be seen from this result, in the fourth embodiment, the composite pixel data rotated 90 ° to the right is returned to the same register group RG8 and stored.

以上説明したように、第4の実施の形態によれば、レジスタグループRG8において、単位となる1つの成分データと同じビット数(1バイト)の記憶領域、すなわち各レジスタR1〜R4の各バイトが上述のような接続関係で互いに直接接続されているので、右回転命令の入力に応答して、各レジスタR1,R2またはR3,R4内で各バイト間の転送によりビデオデータの右90°回転を行うことができるので、CPU24においてソフトウェアによってこれらの処理を行う場合と比べて、単位となる各成分データのデータ長を変換する必要がなく、データ長の変換工程およびそのためのデータ移動が不要となり、高速かつ低消費電力に上記処理を行うことができる。   As described above, according to the fourth embodiment, in the register group RG8, a storage area having the same number of bits (1 byte) as one component data as a unit, that is, each byte of each register R1 to R4 is stored. Since they are directly connected to each other as described above, in response to the input of the right rotation command, the video data is rotated 90 ° to the right by transfer between each byte in each register R1, R2 or R3, R4. Compared with the case where the CPU 24 performs these processes by software, it is not necessary to convert the data length of each component data as a unit, and the data length conversion step and the data movement therefor are not necessary. The above processing can be performed at high speed and with low power consumption.

<5.第5の実施の形態>
第5の実施の形態でも図1で示した第1の実施の形態の装置構成とコプロセッサ25以外は全く同様の構成となっており、そして、このコプロセッサ25はCPU24から与えられた画像データを所定の左回転命令の入力に従い、第3の実施の形態と全く同様に左90゜回転するものとなっている。以下、このコプロセッサ25の構造および処理について説明する。
<5. Fifth embodiment>
In the fifth embodiment as well, the configuration of the apparatus of the first embodiment shown in FIG. 1 is the same as that of the first embodiment except for the coprocessor 25, and the coprocessor 25 has image data provided from the CPU 24. Is rotated 90 ° to the left in the same manner as in the third embodiment in accordance with the input of a predetermined left rotation command. Hereinafter, the structure and processing of the coprocessor 25 will be described.

図12は第5の実施の形態におけるコプロセッサ25のレジスタグループおよびそれらにおけるレジスタ間の接続関係を模式的に示す図である。第5の実施の形態におけるコプロセッサ25は第4の実施の形態におけるレジスタグループRG8と同様のレジスタR1〜R4からなるレジスタグループRG9を1つ備えるのみである。なお、図12では説明上、本来1つのレジスタグループRG9を2つ並べて図示している。   FIG. 12 is a diagram schematically illustrating the register group of the coprocessor 25 and the connection relationship between the registers in the coprocessor 25 according to the fifth embodiment. The coprocessor 25 in the fifth embodiment includes only one register group RG9 including registers R1 to R4 similar to the register group RG8 in the fourth embodiment. In FIG. 12, two register groups RG9 are originally shown side by side for explanation.

また、第5の実施の形態でも2画素が32ビット(例えばYCbYCrの色配列で各成分が8ビット)で表現される複合画素データ(ビデオデータ)をレジスタグループRG9の各レジスタR1〜R4に記憶するものとなっている。なお、ここで扱う複合画素データは第1の実施の形態における複合画素データと同様のものである。そして、各レジスタR1〜R4内において、この発明の単位画像信号に相当する単位となる1つの成分の画像データ(上記の例ではYまたはCbまたはCr成分)と同じビット数の記憶領域(第0〜第3バイト)に各成分データが記憶されるようになっている。   Also in the fifth embodiment, composite pixel data (video data) in which two pixels are represented by 32 bits (for example, each component is 8 bits in a YCbYCr color arrangement) is stored in each of the registers R1 to R4 of the register group RG9. It is supposed to be. The composite pixel data handled here is the same as the composite pixel data in the first embodiment. In each of the registers R1 to R4, a storage area (0th bit) having the same number of bits as the image data of one component (in the above example, Y, Cb, or Cr component) that is a unit corresponding to the unit image signal of the present invention. Each component data is stored in (.about.3rd byte).

そして、レジスタグループRG9のレジスタR1およびR2の各バイトが以下に示すように互いに所定の接続線(この発明の右回転手段に相当)により電気的に直接接続されており、また、第3の実施の形態と同様に、レジスタR1およびR2とレジスタR3およびR4とは全く同じ接続関係になっている。すなわち、レジスタR1の第0バイトB0がレジスタR1の第2バイトB2に、レジスタR1の第2バイトB2がレジスタR2の第2バイトB2に、レジスタR2の第0バイトB0がレジスタR1の第0バイトB0に、レジスタR2の第1バイトB1がレジスタR1の第1バイトB1及びレジスタR2の第1バイトB1に、レジスタR2の第2バイトB2がレジスタR2の第0バイトB0に、レジスタR2の第3バイトB3がレジスタR1の第3バイトB3及びレジスタR2の第3バイトB3に、それぞれ接続されている。また、図示しないが第4の実施の形態と同様のセレクタを備えている。   The bytes of the registers R1 and R2 of the register group RG9 are electrically connected directly to each other through a predetermined connection line (corresponding to the right rotation means of the present invention) as shown below. Similarly to the configuration of, the registers R1 and R2 and the registers R3 and R4 have exactly the same connection relationship. That is, the 0th byte B0 of the register R1 is the second byte B2 of the register R1, the second byte B2 of the register R1 is the second byte B2 of the register R2, and the 0th byte B0 of the register R2 is the 0th byte of the register R1. In B0, the first byte B1 of the register R2 is the first byte B1 of the register R1 and the first byte B1 of the register R2, the second byte B2 of the register R2 is the 0th byte B0 of the register R2, and the third byte of the register R2 Byte B3 is connected to the third byte B3 of register R1 and the third byte B3 of register R2. Further, although not shown, a selector similar to that of the fourth embodiment is provided.

そして、上記のようにレジスタR1およびR2(同様にR3およびR4)が接続されているため、CPU24から画像データが読み込まれた後、作業者が操作スイッチを通じて左回転命令を入力すると、その信号はセレクタに入力され、それによりレジスタグループRG9の入力がレジスタR1〜R4どうしの入力に切り替えられ、画像データの転送が行われる。具体的には以下のように転送される。すなわち、レジスタR1の第0バイトB0からレジスタR1の第2バイトB2に、レジスタR1の第2バイトB2からレジスタR2の第2バイトB2に、レジスタR2の第0バイトB0からレジスタR1の第0バイトB0に、レジスタR2の第1バイトB1からレジスタR1の第1バイトB1及びレジスタR2の第1バイトB1に、レジスタR2の第2バイトB2からレジスタR2の第0バイトB0に、レジスタR2の第3バイトB3からレジスタR1の第3バイトB3及びレジスタR2の第3バイトB3に、それぞれ転送され記憶される。   Since the registers R1 and R2 (as well as R3 and R4) are connected as described above, when image data is read from the CPU 24 and an operator inputs a left rotation command through the operation switch, the signal is As a result, the input of the register group RG9 is switched to the input of the registers R1 to R4, and the image data is transferred. Specifically, it is transferred as follows. That is, the 0th byte B0 of the register R1 to the 2nd byte B2 of the register R1, the 2nd byte B2 of the register R1 to the 2nd byte B2 of the register R2, and the 0th byte B0 of the register R2 to the 0th byte of the register R1. B0, the first byte B1 of the register R2, the first byte B1 of the register R1 and the first byte B1 of the register R2, the second byte B2 of the register R2 to the 0th byte B0 of the register R2, the third of the register R2 The data is transferred and stored from the byte B3 to the third byte B3 of the register R1 and the third byte B3 of the register R2.

図13は第5の実施の形態におけるコプロセッサ25による左回転処理を説明するための図である。図示のように、第3の実施の形態と同様に複合画素データ(ビデオデータ)が、上記のようなレジスタ間の転送により左90゜回転されて記憶されていることが分かる。また、この結果からも分かるように、第5の実施の形態では左90゜回転された複合画素データを同一のレジスタグループRG9に戻して記憶している。   FIG. 13 is a diagram for explaining the left rotation processing by the coprocessor 25 in the fifth embodiment. As shown in the figure, it can be seen that the composite pixel data (video data) is stored by being rotated 90 ° to the left by the transfer between the registers as described above, as in the third embodiment. Further, as can be seen from this result, in the fifth embodiment, the composite pixel data rotated 90 ° to the left is returned to and stored in the same register group RG9.

以上説明したように、第5の実施の形態によれば、レジスタグループRG9において、単位となる1つの成分データと同じビット数(1バイト)の記憶領域、すなわち各レジスタR1〜R4の各バイトが上述のような接続関係で互いに直接接続されているので、左回転命令の入力に応答して、各レジスタR1,R2またはR3,R4内で各バイト間の転送によりビデオデータの左90°回転を行うことができるので、CPU24においてソフトウェアによってこれらの処理を行う場合と比べて、単位となる各成分データのデータ長を変換する必要がなく、データ長の変換工程およびそのためのデータ移動が不要となり、高速かつ低消費電力に上記処理を行うことができる。   As described above, according to the fifth embodiment, in the register group RG9, a storage area having the same number of bits (1 byte) as one component data as a unit, that is, each byte of each register R1 to R4 is stored. Since they are directly connected to each other as described above, in response to the input of the left rotation command, the video data is rotated 90 ° to the left by transfer between the bytes in each register R1, R2 or R3, R4. Compared with the case where the CPU 24 performs these processes by software, it is not necessary to convert the data length of each component data as a unit, and the data length conversion step and the data movement therefor are not necessary. The above processing can be performed at high speed and with low power consumption.

<6.第6の実施の形態>
第6の実施の形態でも図1で示した第1の実施の形態の装置構成とコプロセッサ25以外は全く同様の構成となっており、そして、このコプロセッサ25はCPU24から与えられた画像データを所定の右回転命令の入力に従い、第3の実施の形態と全く同様に右90゜回転するものとなっている。以下、このコプロセッサ25の構造および処理について説明する。
<6. Sixth Embodiment>
Also in the sixth embodiment, the apparatus configuration of the first embodiment shown in FIG. 1 is the same as that of the first embodiment except for the coprocessor 25. The coprocessor 25 has image data provided from the CPU 24. Is rotated 90 degrees right in the same manner as in the third embodiment in accordance with the input of a predetermined right rotation command. Hereinafter, the structure and processing of the coprocessor 25 will be described.

図14は第6の実施の形態におけるコプロセッサ25のレジスタおよびそれらにおけるレジスタ間の接続を示す図である。第6の実施の形態におけるコプロセッサ25は第1〜第5の実施の形態におけるレジスタと同様の32ビットのレジスタR1およびR2を備えている。   FIG. 14 is a diagram showing registers of the coprocessor 25 and connections between the registers in the sixth embodiment. The coprocessor 25 in the sixth embodiment includes 32-bit registers R1 and R2 similar to the registers in the first to fifth embodiments.

また、第6の実施の形態でも2画素が32ビット(例えばYCrYCbやYYCrCbの色配列で各成分が8ビット)で表現される複合画素データ(ビデオデータ)を各レジスタR1およびR2に記憶するものとなっている。なお、ここで扱う複合画素データは第1の実施の形態における複合画素データと同様のものである。そして、各レジスタR1およびR2内において、この発明の単位画像信号に相当する単位となる1つの成分の画像データ(上記の例ではYまたはCbまたはCr成分)と同じビット数の記憶領域(第0〜第3バイト)に各成分データが記憶されるようになっている。   Also in the sixth embodiment, composite pixel data (video data) in which two pixels are expressed by 32 bits (for example, each component is 8 bits in a color arrangement of YCrYCb or YYCrCb) is stored in each register R1 and R2. It has become. The composite pixel data handled here is the same as the composite pixel data in the first embodiment. In each of the registers R1 and R2, a storage area (0th bit) having the same number of bits as the image data of one component (in the above example, Y, Cb, or Cr component) that is a unit corresponding to the unit image signal of the present invention. Each component data is stored in (.about.3rd byte).

そして、レジスタR1およびR2の各バイトが以下に示すように互いに所定の接続線により電気的に直接接続されている。すなわち、レジスタR1の第0バイトB0とレジスタR2の第0バイトB0とが、レジスタR1の第1バイトB1とレジスタR2の第2バイトB2とが、レジスタR1の第2バイトB2とレジスタR2の第1バイトB1とが、レジスタR1の第3バイトB3とレジスタR2の第3バイトB3とが、それぞれ接続されている。   The bytes of the registers R1 and R2 are electrically connected directly to each other through a predetermined connection line as shown below. That is, the 0th byte B0 of the register R1 and the 0th byte B0 of the register R2, the 1st byte B1 of the register R1 and the 2nd byte B2 of the register R2, the 2nd byte B2 of the register R1 and the 2nd byte of the register R2 One byte B1 is connected to the third byte B3 of the register R1 and the third byte B3 of the register R2.

このような構成により、このコプロセッサ25は2画素が32ビットで表現される第一の色配列の複合画素データを2画素が32ビットで表現される第二の色配列の複合画素データに変換することができる。例えば、第一の色配列としてYYCrCbで表されるフォーマットの複合画素データ(ビデオデータ)を、第二の色配列としてYCrYCbで表されるフォーマットの複合画素データ(ビデオデータ)に変換することができることが図14から容易に理解できる。   With such a configuration, the coprocessor 25 converts the composite pixel data of the first color arrangement in which two pixels are represented by 32 bits into the composite pixel data of the second color arrangement in which two pixels are represented by 32 bits. can do. For example, composite pixel data (video data) in a format represented by YYCrCb as the first color array can be converted into composite pixel data (video data) in a format represented by YCrYCb as the second color array. Can be easily understood from FIG.

また、図14において、レジスタR1およびR2の各バイトは一対一に対応して接続されているため、上記の色配列の変換は可逆なものとなっている。上記のビデオデータの例では、レジスタR2に第2の色配列であるYCrYCb形式の複合画素データを入力して、レジスタR1に転送することによって、レジスタR1において第1の色配列であるYYCrCb形式の複合画素データとして取り出すことができる。   In FIG. 14, since the bytes of the registers R1 and R2 are connected in a one-to-one correspondence, the above color array conversion is reversible. In the above video data example, the composite color pixel data in the YCrYCb format that is the second color array is input to the register R2 and transferred to the register R1, so that the register R1 has the YYCrCb format that is the first color array. It can be extracted as composite pixel data.

以上説明したように、第6の実施の形態によれば、レジスタR1およびR2において、単位となる1つの成分データと同じビット数(1バイト)の記憶領域、すなわち各レジスタR1およびR2の各バイトが上述のような接続関係で互いに直接接続されているので、両レジスタR1およびR2それぞれの各バイト間の転送によりビデオデータの色配列の形式の変換を行うことができるので、CPU24においてソフトウェアによってその処理を行う場合と比べて、単位となる各成分データのデータ長を変換する必要がなく、データ長の変換工程およびそのためのデータ移動が不要となり、高速かつ低消費電力に上記処理を行うことができる。   As described above, according to the sixth embodiment, in the registers R1 and R2, a storage area having the same number of bits (1 byte) as that of one component data as a unit, that is, each byte of each register R1 and R2 Are directly connected to each other in the connection relationship as described above, so that the color arrangement format of the video data can be converted by transfer between each byte of both registers R1 and R2, so that the CPU 24 can perform the conversion by software. Compared with the case where processing is performed, it is not necessary to convert the data length of each component data as a unit, the data length conversion step and the data movement therefor are unnecessary, and the above processing can be performed at high speed and with low power consumption. it can.

<7.変形例>
上記第1〜第6の実施の形態においてディジタルスチルカメラにおけるコプロセッサおよびそれによる画像処理の例を示したが、この発明はこれに限られるものではない。
<7. Modification>
In the first to sixth embodiments, examples of the coprocessor in the digital still camera and image processing using the coprocessor have been described. However, the present invention is not limited to this.

たとえば、上記第1〜第6の実施の形態では、画像入力装置としてディジタルカメラについて示したが、ディジタルビデオカメラ等のその他の画像入力装置においても上記第1〜第6の実施の形態と同様のコプロセッサを信号処理回路として用いることができる。   For example, in the first to sixth embodiments, the digital camera is shown as the image input device. However, other image input devices such as a digital video camera are the same as those in the first to sixth embodiments. A coprocessor can be used as a signal processing circuit.

また、上記第1〜第6の実施の形態では、この発明における記憶手段をレジスタまたはレジスタグループとしたが、SRAMやDRAM等のメモリなどその他の記憶媒体に対してもこの発明を使用し得る。   In the first to sixth embodiments, the storage means in the present invention is a register or a register group. However, the present invention can also be used for other storage media such as a memory such as SRAM and DRAM.

また、上記第1〜第6の実施の形態では、8ビットを単位となる画像データのデータ長とし、コプロセッサ25における各レジスタを32ビットレジスタとしたが、例えば、16ビットを単位となる画像データのデータ長とし、コプロセッサ25において16ビットレジスタで処理する等、単位となる画像データのデータ長の2以上の整数倍をレジスタの処理単位とすればよい。   In the first to sixth embodiments, the data length of image data in units of 8 bits is used and each register in the coprocessor 25 is a 32-bit register. For example, an image in units of 16 bits is used. The data length of the data is processed by a 16-bit register in the coprocessor 25, and an integer multiple of 2 or more of the data length of the image data as a unit may be used as the processing unit of the register.

さらに、上記第6の実施の形態ではレジスタR1とR2との間で複合画素データを転送することによって色配列を変換するものとしたが、第4および第5の実施の形態のように変換後の複合画素データを同一レジスタに格納するものとしてもよい。すなわち、レジスタR1において第0バイトB0と第0バイトB0とが、第1バイトB1と第2バイトB2とが、第2バイトB2と第1バイトB1とが、第3バイトB3と第3バイトB3とが、それぞれ接続され、さらに、画像データのCPU24からの入力とレジスタR1内での転送とを切替えるセレクタを備えるものとするのである。これにより、レジスタの容量を削減できる。   Furthermore, in the sixth embodiment, the color array is converted by transferring the composite pixel data between the registers R1 and R2. However, after the conversion as in the fourth and fifth embodiments, The composite pixel data may be stored in the same register. That is, in the register R1, the 0th byte B0 and the 0th byte B0, the 1st byte B1 and the 2nd byte B2, the 2nd byte B2 and the 1st byte B1, the 3rd byte B3 and the 3rd byte B3 Are connected to each other and further include a selector for switching between input of image data from the CPU 24 and transfer in the register R1. Thereby, the capacity of the register can be reduced.

この発明の一の実施の形態に係るディジタルスチルカメラを示す図である。It is a figure which shows the digital still camera which concerns on one embodiment of this invention. 第1の実施の形態におけるコプロセッサのレジスタグループおよびそれらにおけるレジスタ間の接続を示す図である。It is a figure which shows the register group of the coprocessor in 1st Embodiment, and the connection between the registers in them. 第1の実施の形態におけるコプロセッサによる回転処理を説明するための図である。It is a figure for demonstrating the rotation process by the coprocessor in 1st Embodiment. 第1の実施の形態におけるコプロセッサによる鏡映処理を説明するための図である。It is a figure for demonstrating the mirroring process by the coprocessor in 1st Embodiment. 第1の実施の形態による色データの合併および分離の様子を説明するための図である。It is a figure for demonstrating the mode of merge of color data by 1st Embodiment, and isolation | separation. 第2の実施の形態におけるコプロセッサのレジスタグループおよびそれらにおけるレジスタ間の接続を示す図である。It is a figure which shows the register group of the coprocessor in 2nd Embodiment, and the connection between the registers in them. 第2の実施の形態におけるコプロセッサによる右回転処理を説明するための図である。It is a figure for demonstrating the right rotation process by the coprocessor in 2nd Embodiment. 第3の実施の形態におけるコプロセッサのレジスタグループおよびそれらにおけるレジスタ間の接続を示す図である。It is a figure which shows the register group of the coprocessor in 3rd Embodiment, and the connection between the registers in them. 第3の実施の形態におけるコプロセッサによる左回転処理を説明するための図である。It is a figure for demonstrating the left rotation process by the coprocessor in 3rd Embodiment. 第4の実施の形態におけるコプロセッサのレジスタグループおよびそれらにおけるレジスタ間の接続関係を模式的に示す図である。It is a figure which shows typically the connection relationship between the register group of the coprocessor in 4th Embodiment, and those registers. 第4の実施の形態におけるコプロセッサによる右回転処理を説明するための図である。It is a figure for demonstrating the right rotation process by the coprocessor in 4th Embodiment. 第5の実施の形態におけるコプロセッサのレジスタグループおよびそれらにおけるレジスタ間の接続関係を模式的に示す図である。It is a figure which shows typically the connection relation between the register group of the coprocessor in 5th Embodiment, and those registers. 第5の実施の形態におけるコプロセッサによる左回転処理を説明するための図である。It is a figure for demonstrating the left rotation process by the coprocessor in 5th Embodiment. 第6の実施の形態におけるコプロセッサのレジスタおよびそれらにおけるレジスタ間の接続を示す図である。It is a figure which shows the register of the coprocessor in 6th Embodiment, and the connection between those registers.

符号の説明Explanation of symbols

24 CPU
25 コプロセッサ(信号処理回路)
29 主メモリ
B0〜B3 第0〜第3バイト(記憶領域)
R1〜R4 レジスタ(第1および第2記憶手段)
RG1〜RG9 レジスタグループ(記憶手段、第1〜第3記憶手段)
24 CPU
25 coprocessor (signal processing circuit)
29 Main memory B0 to B3 0th to 3rd bytes (storage area)
R1-R4 registers (first and second storage means)
RG1 to RG9 register groups (storage means, first to third storage means)

Claims (4)

画像入力装置内において撮像素子によって撮像された2次元的に配列された所定単位の単位画像信号と同じビット数の記憶領域を複数備える記憶手段を備え、
前記単位画像信号が所定の単位色配列を形成する複数の成分のうちの1成分であり、前記単位色配列は、1つの輝度成分と水平または垂直方向における配置の周波数が前記輝度成分の1/2である2つの色成分とからなるものであり、さらに、
前記記憶手段の各記憶領域に記憶された単位画像信号の配列を、前記単位色配列を保ちつつ右に90゜回転させて前記記憶手段の各記憶領域に記憶させるように、前記記憶手段の各記憶領域が互いに接続されたことを特徴とする画像入力装置における信号処理回路。
A storage unit including a plurality of storage areas having the same number of bits as unit image signals of a predetermined unit that are two-dimensionally arrayed imaged by the image sensor in the image input device;
The unit image signal is one component of a plurality of components forming a predetermined unit color array, and the unit color array has one luminance component and a frequency of arrangement in the horizontal or vertical direction that is 1 / of the luminance component. 2 color components that are two , and
The unit image signals stored in each storage area of the storage unit are rotated 90 ° to the right while maintaining the unit color array and stored in each storage area of the storage unit. A signal processing circuit in an image input device, wherein storage areas are connected to each other.
請求項1に記載の画像入力装置における信号処理回路において、前記単位色配列が1つの輝度成分と水平または垂直方向における配置の周波数が前記輝度成分の1/2である2つの色成分とからなるものであり、
前記記憶手段としてレジスタグループを備え、当該レジスタグループが第1および第2レジスタを備えるとともに、当該第1および第2レジスタが、前記輝度成分および前記2つの色成分のそれぞれを記憶する第0ないし第3記憶領域をそれぞれ備えるものであって、
第1レジスタの第0記憶領域の単位画像信号が所定の接続線によって第2レジスタの第0記憶領域に直接接続され、
第1レジスタの第2記憶領域の単位画像信号が所定の接続線によって第1レジスタの第0記憶領域に直接接続され、
第2レジスタの第0記憶領域の単位画像信号が所定の接続線によって第2レジスタの第2記憶領域に直接接続され、
第2レジスタの第1記憶領域の単位画像信号が所定の接続線によって第1レジスタの第1記憶領域および第2レジスタの第1記憶領域に直接接続され、
第2レジスタの第2記憶領域の単位画像信号が第1レジスタの第2記憶領域に直接接続され、
第2レジスタの第3記憶領域の単位画像信号が所定の接続線によって第1レジスタの第3記憶領域および第2レジスタの第3記憶領域に直接接続されるものであることを特徴とする画像入力装置における信号処理回路。
2. The signal processing circuit according to claim 1, wherein the unit color array includes one luminance component and two color components whose arrangement frequency in the horizontal or vertical direction is ½ of the luminance component. Is,
A register group is provided as the storage means, and the register group includes first and second registers, and the first and second registers store the luminance component and the two color components, respectively. Each with three storage areas,
A unit image signal in the 0th storage area of the first register is directly connected to the 0th storage area of the second register by a predetermined connection line;
The unit image signal in the second storage area of the first register is directly connected to the 0th storage area of the first register by a predetermined connection line,
A unit image signal in the 0th storage area of the second register is directly connected to the second storage area of the second register by a predetermined connection line;
A unit image signal in the first storage area of the second register is directly connected to the first storage area of the first register and the first storage area of the second register by a predetermined connection line;
The unit image signal of the second storage area of the second register is directly connected to the second storage area of the first register;
Image input characterized in that unit image signals in the third storage area of the second register are directly connected to the third storage area of the first register and the third storage area of the second register by a predetermined connection line A signal processing circuit in the apparatus.
画像入力装置内において撮像素子によって撮像された2次元的に配列された所定単位の単位画像信号と同じビット数の記憶領域を複数備える記憶手段を備え、
前記単位画像信号が所定の単位色配列を形成する複数の成分のうちの1成分であり、前記単位色配列は、1つの輝度成分と水平または垂直方向における配置の周波数が前記輝度成分の1/2である2つの色成分とからなるものであり、さらに、
前記記憶手段の各記憶領域に記憶された単位画像信号の配列を、前記単位色配列を保ちつつ左に90゜回転させて前記記憶手段の各記憶領域に記憶させるように、前記記憶手段の各記憶領域が互いに接続されたことを特徴とする画像入力装置における信号処理回路。
A storage unit including a plurality of storage areas having the same number of bits as unit image signals of a predetermined unit that are two-dimensionally arrayed imaged by the image sensor in the image input device;
The unit image signal is one component of a plurality of components forming a predetermined unit color array, and the unit color array has one luminance component and a frequency of arrangement in the horizontal or vertical direction that is 1 / of the luminance component. 2 color components that are two , and
Each of the storage means is arranged such that the arrangement of unit image signals stored in each storage area of the storage means is rotated 90 ° to the left while the unit color arrangement is maintained and stored in each storage area of the storage means. A signal processing circuit in an image input device, wherein storage areas are connected to each other.
請求項3に記載の画像入力装置における信号処理回路において、前記単位色配列が1つの輝度成分と水平または垂直方向における配置の周波数が前記輝度成分の1/2である2つの色成分とからなるものであり、
前記記憶手段としてレジスタグループを備え、当該レジスタグループが第1および第2レジスタを備えるとともに、当該第1および第2レジスタが、前記輝度成分および前記2つの色成分のそれぞれを記憶する第0ないし第3記憶領域をそれぞれ備えるものであって、
第1レジスタの第0記憶領域の単位画像信号が所定の接続線によって第1レジスタの第2記憶領域に直接接続され、
第1レジスタの第2記憶領域の単位画像信号が所定の接続線によって第2レジスタの第2記憶領域に直接接続され、
第2レジスタの第0記憶領域の単位画像信号が所定の接続線によって第1レジスタの第0記憶領域に直接接続され、
第2レジスタの第1記憶領域の単位画像信号が所定の接続線によって第1レジスタの第1記憶領域および第2レジスタの第1記憶領域に直接接続され、
第2レジスタの第2記憶領域の単位画像信号が所定の接続線によって第2レジスタの第0記憶領域に直接接続され、
第2レジスタの第3記憶領域の単位画像信号が所定の接続線によって第1レジスタの第3記憶領域および第2レジスタの第3記憶領域に直接接続されるものであることを特徴とする画像入力装置における信号処理回路。
4. The signal processing circuit according to claim 3, wherein the unit color array includes one luminance component and two color components whose arrangement frequency in the horizontal or vertical direction is ½ of the luminance component. Is,
A register group is provided as the storage means, and the register group includes first and second registers, and the first and second registers store the luminance component and the two color components, respectively. Each with three storage areas,
The unit image signal in the 0th storage area of the first register is directly connected to the second storage area of the first register by a predetermined connection line,
A unit image signal in the second storage area of the first register is directly connected to the second storage area of the second register by a predetermined connection line;
The unit image signal of the 0th storage area of the second register is directly connected to the 0th storage area of the first register by a predetermined connection line,
A unit image signal in the first storage area of the second register is directly connected to the first storage area of the first register and the first storage area of the second register by a predetermined connection line;
The unit image signal in the second storage area of the second register is directly connected to the 0th storage area of the second register by a predetermined connection line,
Image input characterized in that unit image signals in the third storage area of the second register are directly connected to the third storage area of the first register and the third storage area of the second register by a predetermined connection line A signal processing circuit in the apparatus.
JP2006052515A 2006-02-28 2006-02-28 Signal processing circuit in image input device Expired - Fee Related JP4219939B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006052515A JP4219939B2 (en) 2006-02-28 2006-02-28 Signal processing circuit in image input device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006052515A JP4219939B2 (en) 2006-02-28 2006-02-28 Signal processing circuit in image input device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP03570399A Division JP4425365B2 (en) 1999-02-15 1999-02-15 Signal processing circuit in image input device

Publications (2)

Publication Number Publication Date
JP2006211699A JP2006211699A (en) 2006-08-10
JP4219939B2 true JP4219939B2 (en) 2009-02-04

Family

ID=36967951

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006052515A Expired - Fee Related JP4219939B2 (en) 2006-02-28 2006-02-28 Signal processing circuit in image input device

Country Status (1)

Country Link
JP (1) JP4219939B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191298B (en) * 2019-04-17 2022-05-17 广州虎牙信息科技有限公司 Mobile terminal, video rotation method in screen recording of mobile terminal and computer storage medium

Also Published As

Publication number Publication date
JP2006211699A (en) 2006-08-10

Similar Documents

Publication Publication Date Title
JP3828339B2 (en) Image input system and operation method of image input system
US8547453B2 (en) Image processing apparatus and camera system
WO2017149591A1 (en) Image processing device
US11468539B2 (en) Image processing device and imaging device
TWI247537B (en) Digital camera with electronic zooming function cross-reference to related applications
JP3860808B2 (en) Color interpolation line buffer and line data providing apparatus and method
JP2004274724A (en) Method and device for reconfiguring high-resolution image
WO2010044175A1 (en) Semiconductor device and semiconductor integrated circuit
JP4425365B2 (en) Signal processing circuit in image input device
JP4219939B2 (en) Signal processing circuit in image input device
JP4015682B2 (en) Signal processing circuit in image input device
JP2006304203A (en) Electronic camera with color difference interleave conversion function
JP4487454B2 (en) Electronic camera and control IC for electronic camera
JP7022866B2 (en) Image sensor, image sensor, operation method of image sensor, and program
JP2006197194A (en) Imaging device
JP2009033438A (en) Imaging apparatus
JP3075265B2 (en) Digital still camera and image data processing device
WO2018220794A1 (en) Data transfer device and data transfer method
JP2005062997A (en) Data transfer controller, disk recorder, and data transfer control method
JP2000059800A (en) Image signal processing circuit
US10475158B2 (en) Image processing device
JPH0944634A (en) Video input device
JP2007172528A (en) Signal processing processor and imaging apparatus using the same
US20110066815A1 (en) Memory access control device and memory access control method
JP2000032355A (en) Device and method for camera control and storage medium

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070213

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20070426

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070911

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071011

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20071011

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081112

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

Free format text: PAYMENT UNTIL: 20111121

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20111121

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121121

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121121

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121121

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20151121

Year of fee payment: 7

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees