JP2868440B2 - Motion vector search method and search device - Google Patents

Motion vector search method and search device

Info

Publication number
JP2868440B2
JP2868440B2 JP23952695A JP23952695A JP2868440B2 JP 2868440 B2 JP2868440 B2 JP 2868440B2 JP 23952695 A JP23952695 A JP 23952695A JP 23952695 A JP23952695 A JP 23952695A JP 2868440 B2 JP2868440 B2 JP 2868440B2
Authority
JP
Japan
Prior art keywords
pixel data
current image
data transfer
transfer
block
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 - Lifetime
Application number
JP23952695A
Other languages
Japanese (ja)
Other versions
JPH0984020A (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.)
GURAFUITSUKUSU KOMYUNIKEESHON RABORATORIIZU KK
Original Assignee
GURAFUITSUKUSU KOMYUNIKEESHON RABORATORIIZU KK
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 GURAFUITSUKUSU KOMYUNIKEESHON RABORATORIIZU KK filed Critical GURAFUITSUKUSU KOMYUNIKEESHON RABORATORIIZU KK
Priority to JP23952695A priority Critical patent/JP2868440B2/en
Publication of JPH0984020A publication Critical patent/JPH0984020A/en
Application granted granted Critical
Publication of JP2868440B2 publication Critical patent/JP2868440B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ディジタル動画像
の情報圧縮に適用される動きベクトル探索装置に係り、
特に、現画像の一部を構成する現符号化ブロックの画素
データと前符号化画像上のサーチウィンドウ内の複数の
候補ブロックの画素データとに基づいて算出されたそれ
ぞれのディストーションによって動きベクトルを探索す
る動きベクトル探索装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a motion vector search apparatus applied to information compression of digital moving images,
In particular, a motion vector is searched for by each of the distortions calculated based on the pixel data of the current coded block constituting a part of the current image and the pixel data of a plurality of candidate blocks in the search window on the previous coded image. To a motion vector search device.

【0002】[0002]

【従来の技術】文字、図形、音声、映像などの異なる情
報をデジタルデータで表現し、これらのメディアを統合
して一元的に取り扱うマルチメディアが近年注目を浴び
ている。このマルチメディアをより効果的に実現するキ
ー・テクノロジーのひとつとして情報圧縮技術がある。
情報圧縮技術は、情報の冗長性に着目し、冗長な部分の
情報を削減することにより、情報量を少なくする技術で
あり、これにより大量の情報を効率的に処理し、蓄積
し、伝送することが可能となる。
2. Description of the Related Art In recent years, multimedia which expresses different information such as characters, figures, voices, and images by digital data, and integrates these media and handles them in a unified manner has attracted attention in recent years. One of the key technologies to realize this multimedia more effectively is information compression technology.
Information compression technology is a technology that focuses on information redundancy and reduces the amount of information by reducing the information in redundant parts, thereby efficiently processing, storing, and transmitting a large amount of information. It becomes possible.

【0003】各種のメディアの情報量には大きな差があ
り、とりわけ、動画像は膨大な情報量を有するため、大
幅な情報の圧縮が必要となる。情報の圧縮方法には各種
方式があり、これらの方式を組み合わせることにより、
大幅な圧縮を実現している。一般に、これらの圧縮機能
はLSI(Large scale integrated circuit)として提
供されている。
[0003] There is a large difference in the amount of information of various media. In particular, since a moving image has a huge amount of information, a large amount of information compression is required. There are various methods for compressing information, and by combining these methods,
Significant compression has been achieved. Generally, these compression functions are provided as an LSI (Large scale integrated circuit).

【0004】動画像情報の圧縮方式の一つとして、動画
像の一部を構成する2つの画面間の時間的な相関関係に
基づいて情報圧縮を行う方式が知られている。この圧縮
方式には、例えば、単純フレーム間予測符号化方式、動
き補償フレーム間予測符号化方式がある。ここで、フレ
ームとは、動画像を構成する1枚の画面を表わす。以
下、単純フレーム間予測符号化方式および動き補償フレ
ーム間予測符号化方式について説明する。
As one of the compression methods for moving image information, there is known a method for compressing information based on a temporal correlation between two screens constituting a part of a moving image. This compression method includes, for example, a simple inter-frame prediction coding method and a motion compensation inter-frame prediction coding method. Here, the frame represents one screen constituting a moving image. Hereinafter, the simple inter-frame prediction coding method and the motion compensation inter-frame prediction coding method will be described.

【0005】図45は単純フレーム間予測符号化方式を
示す図である。単純フレーム間予測符号化方式において
は、互いに位置的に対応する現画像100の各画素デー
タと前符号化画像200の各画素データとの差分値を算
出し、この差分値を適当な閾値と比較して、有意画素デ
ータと非有意画素データとに識別する。有意画素データ
は、この差分値が閾値より大きい場合に相当し、前符号
化画像200から現画像100を予測する際に省略する
ことのできないデータである。一方、非有意画素データ
は、この差分値が閾値以下の場合に相当し、前符号化画
像200から現画像100を予測する際に削減すること
が可能なデータである。
FIG. 45 is a diagram showing a simple inter-frame predictive coding method. In the simple inter-frame predictive coding method, a difference value between each pixel data of the current image 100 and each pixel data of the previous coded image 200 corresponding to each other is calculated, and the difference value is compared with an appropriate threshold value. Then, it is distinguished between significant pixel data and insignificant pixel data. The significant pixel data corresponds to a case where the difference value is larger than a threshold value, and is data that cannot be omitted when predicting the current image 100 from the previous encoded image 200. On the other hand, insignificant pixel data corresponds to a case where the difference value is equal to or smaller than the threshold value, and is data that can be reduced when the current image 100 is predicted from the pre-encoded image 200.

【0006】なお、前符号化画像200は、現画像10
0よりも過去の画像であっても、未来の画像であっても
よいが、現画像100よりも時間的に先に符号化される
画像である。例えば、図45に示すように、前符号化画
像200における人物像10が現画像100において右
方向に移動してる場合、有意画素データを示す領域は、
2つの有意画素領域20および21によって示される。
有意画素領域20に位置的に対応する現画像100上の
画素データは、この画素データと有意画素領域20との
差分値および有意画素領域20によって表わすことがで
き、有意画素領域21に位置的に対応する現画像100
上の画素データは、この画素データと有意画素領域21
との差分値および有意画素領域21によって表わすこと
ができる。残りの非有意画素領域は、この非有意画素領
域と位置的に対応する前符号化画像200の画素データ
そのものによって表わすことができる。
Note that the pre-encoded image 200 is
The image may be an image earlier than 0 or a future image, but is an image that is encoded earlier than the current image 100 in time. For example, as shown in FIG. 45, when the human image 10 in the pre-encoded image 200 is moving rightward in the current image 100, the area indicating significant pixel data is
Indicated by two significant pixel regions 20 and 21.
Pixel data on the current image 100 corresponding to the significant pixel region 20 can be represented by a difference value between the pixel data and the significant pixel region 20 and the significant pixel region 20. Corresponding current image 100
The upper pixel data indicates that this pixel data and the significant pixel area 21
And the significant pixel area 21. The remaining non-significant pixel area can be represented by the pixel data itself of the pre-encoded image 200 corresponding to the non-significant pixel area.

【0007】単純フレーム間予測符号化方式では、有意
画素数が少ないほど予測の際に必要な差分値のデータ量
を少なくすることができるので、圧縮効率を向上するこ
とができる。また、閾値を高く設定することによって有
意画素数を少なくして圧縮効率をさらに向上することも
できるが、閾値を高くしすぎると、画像の動きがぎくし
ゃくして不自然になったり、動くべき画像の一部が残像
として現れたりするため、画像品質が著しく劣化すると
いった不具合が発生する。
In the simple inter-frame predictive coding method, the smaller the number of significant pixels, the smaller the data amount of the difference value required for prediction, so that the compression efficiency can be improved. Also, by setting a high threshold, the number of significant pixels can be reduced to further improve the compression efficiency.However, if the threshold is set too high, the image becomes jerky and unnatural, May appear as an afterimage, causing a problem that the image quality is significantly deteriorated.

【0008】このように、単純フレーム間予測符号化方
式では、現画像100を前符号化画像200の同一位置
の画素データに基づいて予測するので、現画像100と
前符号化画像200との間の画像上の変化が小さいとき
には高い圧縮効率を実現することができるが、図45に
示されるように、画像の一部が画像上で大幅に移動する
ような場合には、単純フレーム間予測符号化方式よりも
次に説明する動き補償フレーム間予測符号化方式を用い
た方が圧縮効率は高くなる。
As described above, in the simple inter-frame predictive coding method, the current image 100 is predicted based on the pixel data at the same position of the previous coded image 200. When the change on the image is small, a high compression efficiency can be realized. However, as shown in FIG. 45, when a part of the image moves largely on the image, The compression efficiency is higher when the motion-compensated inter-frame prediction coding method described below is used than in the coding method.

【0009】動き補償フレーム間予測符号化方式では、
図46に示されるように、人物像10が移動した場合、
図46に示される動きベクトルMVを算出する。動きベ
クトルMVは、人物像10の移動方向および移動距離を
表わし、この動きベクトルMVと前符号化画像200の
人物像10を形成する画素データとによって、現画像1
00上の人物像10を予測する。この場合、有意画素領
域は領域20のみになる。したがって、動き補償フレー
ム間予測符号化方式のほうが、有意画素数を大幅に少な
くすることができるので、画像情報の圧縮効率を大幅に
向上することができる。
In the motion compensation inter-frame prediction coding method,
As shown in FIG. 46, when the human image 10 moves,
The motion vector MV shown in FIG. 46 is calculated. The motion vector MV indicates the moving direction and the moving distance of the human image 10.
A person image 10 on 00 is predicted. In this case, the significant pixel region is only the region 20. Therefore, the motion-compensated inter-frame prediction coding method can significantly reduce the number of significant pixels, and can greatly improve the compression efficiency of image information.

【0010】ところで、国際標準方式であるITU−T
(International telecommunication Union-Telecommun
ication Standardization Sector)H.261による動
き補償フレーム間予測方式では、まず、図47に示すよ
うに、現画像101を複数のブロックに分割し、その一
つのブロック(以下、現符号化ブロックと呼ぶ)170
に類似した同一サイズの複数のブロック370(以下、
候補ブロックと呼ぶ)を含むサーチウィンドウ270を
前符号化画像201上で特定し、サーチウインド270
内に含まれる複数の候補ブロック370と現符号化ブロ
ック170とのディストーションを算出する。
Incidentally, the ITU-T which is an international standard system
(International telecommunication Union-Telecommun
ication Standardization Sector) H. In the motion compensation inter-frame prediction method according to H.261, first, as shown in FIG.
A plurality of blocks 370 of the same size similar to
(Referred to as a candidate block) is specified on the pre-encoded image 201 and the search window 270 is specified.
Is calculated between the plurality of candidate blocks 370 and the current coded block 170.

【0011】ここで、ディストーションとは、各候補ブ
ロック370と現符号化ブロック170との類似性を表
わすものであり、各候補ブロック内の位置的に対応する
画素データの差分値をそれぞれ求め、これらの差分値が
相殺されないように絶対値演算または二乗演算等によっ
て正数データに変換して累積した値で示される。次に、
算出されたディストーションの中から最小の値をもつデ
ィストーションを特定し、この最小ディストーションを
有する候補ブロック370と現符号化ブロック170に
基づいて動きベクトルMVが算出される。
Here, the distortion indicates the similarity between each candidate block 370 and the current coding block 170, and obtains the difference value of the pixel data corresponding to the position in each candidate block. Are converted into positive data by an absolute value operation, a square operation, or the like so as not to cancel out the difference value, and the value is accumulated. next,
The distortion having the minimum value is specified from the calculated distortions, and the motion vector MV is calculated based on the candidate block 370 having the minimum distortion and the current coding block 170.

【0012】さらに、現符号化ブロック170、サーチ
ウィンドウ270、候補ブロック370の関係について
説明する。図48(b)に示すように、現符号化ブロッ
ク170がN行M列の画素から構成され、図48(a)
に示すように、サーチウィンドウ270がH行L列の画
素から構成されるとすると、現符号化ブロック170に
類似した候補ブロック370は、サーチウィンドウ27
0内に(H−N+1)×(L−M+1)個存在する。
Further, the relationship between the current coding block 170, the search window 270, and the candidate block 370 will be described. As shown in FIG. 48B, the current coding block 170 is composed of N rows and M columns of pixels.
Assuming that the search window 270 is composed of pixels in H rows and L columns as shown in FIG.
There are (H−N + 1) × (L−M + 1) pieces in 0.

【0013】また、現符号化ブロック170の左上角の
画素データをa(0,0)で表わすとすると、サーチウ
ィンドウ270内でこの画素データa(0,0)に位置
的に対応する各候補ブロック370の画素の取り得る範
囲は、図48(a)の斜線領域で示される。現符号化ブ
ロック170内の画素データと各候補ブロック370内
の画素データとの位置的な対応関係を図49に示す。図
49に示すように、現符号化ブロック170内の画素デ
ータa(m,n)に位置的に対応する各候補ブロック3
70内の画素データは、サーチウィンドウ270内の画
素データb(l+m,h+n)で表わされる。ここで、
hおよびlはサーチウィンドウ270内の各候補ブロッ
ク370を特定する値であり、サーチウィンドウ270
内の画素データb(l,h)は候補ブロック370の左
上角の画素データであり、現符号化ブロック170の左
上角の画素データa(0,0)に位置的に対応する。
Assuming that pixel data at the upper left corner of the current encoding block 170 is represented by a (0,0), each candidate positionally corresponding to this pixel data a (0,0) in the search window 270 The range that the pixel in block 370 can take is indicated by the shaded area in FIG. FIG. 49 shows the positional correspondence between the pixel data in the current coding block 170 and the pixel data in each candidate block 370. As shown in FIG. 49, each candidate block 3 corresponding to the pixel data a (m, n) in the current coding block 170 in position.
The pixel data in 70 is represented by pixel data b (l + m, h + n) in the search window 270. here,
h and l are values that specify each candidate block 370 in the search window 270;
Pixel data b (l, h) in the upper left corner of the candidate block 370 corresponds to the pixel data a (0, 0) in the upper left corner of the current coding block 170.

【0014】図48および図49に示された現符号化ブ
ロック170、サーチウィンドウ270および複数の候
補ブロック370において、現符号化ブロック170と
各候補ブロック370とのディストーションをD(l,
h)とすると、D(l,h)は以下の式により表わされ
る。
In the current coding block 170, the search window 270 and the plurality of candidate blocks 370 shown in FIGS.
h), D (l, h) is represented by the following equation.

【0015】[0015]

【数1】 (Equation 1)

【0016】ここで、‖‖はディストーションを演算す
るノルムを示し、d(m,n)は、 d(m,n)=b(l+m,h+n)−a(m,n) で表わされ、現符号化ブロック170の画素データおよ
び位置的に対応する各候補ブロック370の画素データ
の差分値である局所ディストーションを示している。ノ
ルム演算は、一般に、絶対値演算および二乗演算が用い
られるが、計算の複雑さと効率の点で絶対値演算が最も
頻繁に用いられる。
Here, ‖‖ indicates a norm for calculating the distortion, and d (m, n) is expressed by d (m, n) = b (l + m, h + n) -a (m, n). A local distortion, which is a difference value between the pixel data of the current coding block 170 and the pixel data of each candidate block 370 corresponding to the position, is shown. The norm operation generally uses an absolute value operation and a square operation, but the absolute value operation is most frequently used in terms of computational complexity and efficiency.

【0017】なお、動き補償フレーム間予測方式におい
て、現画像と前符号化画像をブロック単位で比較する方
法は、ブロック・マッチング法と呼ばれており、さら
に、サーチウィンドウ内に含まれる全ての候補ブロック
と現符号化ブロックとを比較する場合には、フル・サー
チ・ブロック・マッチング法(全点探索法)と呼ばれて
いる。
In the motion-compensated inter-frame prediction method, a method of comparing the current image and the previous coded image on a block basis is called a block matching method. When the block is compared with the current coded block, it is called a full search block matching method (all-point search method).

【0018】この全点探索法を用いて動きベクトルを求
める方法および装置として、例えば、特開平2−213
291号公報の二次元アニメート画像の連続画像を表わ
すデータ信号を処理するための方法および回路が知られ
ている。この方法および回路においては、演算時間を短
縮するため、候補ブロックの数だけプロセッサエレメン
トを配置して、プロセッサエレメントに供給されたサー
チエリアのデータを全体として上方向、下方向および左
方向に切り換えてスキャニングを行うことでディストー
ションを求めている。
As a method and an apparatus for obtaining a motion vector using the all-points search method, for example, Japanese Patent Laid-Open No. Hei 2-213
No. 291 is known a method and a circuit for processing a data signal representing a continuous image of a two-dimensional animated image. In this method and circuit, in order to reduce the operation time, processor elements are arranged by the number of candidate blocks, and the data of the search area supplied to the processor elements is switched as a whole in the upward, downward and left directions. I'm looking for distortion by scanning.

【0019】すなわち、図50および図51に示すよう
に、lおよびhを l=0,1,2 h=0,1,2 で表わすとすると、まず、各プロセッサエレメントにサ
ーチウィンドウの画素データが入力されるとともに、現
符号化ブロックの画素データa(0,0)が入力された
サイクル0では、各プロセッサエレメントでは、局所デ
ィストーション |b(l,h)−a(0,0)| の計算およびストアが行われる。
That is, as shown in FIGS. 50 and 51, if l and h are represented by l = 0,1,2 and h = 0,1,2, first, the pixel data of the search window is stored in each processor element. In the cycle 0 in which the pixel data a (0,0) of the current coding block is input as well as the pixel data a (0,0) of the current coding block, each processor element calculates the local distortion | b (l, h) -a (0,0) | And store is done.

【0020】次のサイクル1では、サーチウィンドウの
各画素データを全体として上に移動するとともに、現符
号化ブロックの画素データa(0,1)が入力されるこ
とで局所ディストーション |b(l,h+1)−a(0,1)| の計算が行われ、さらに、サイクル0で計算された局所
ディストーションに加算されてストアされる。
In the next cycle 1, each pixel data in the search window is moved upward as a whole, and the pixel data a (0, 1) of the current coded block is inputted, so that the local distortion | b (l, h + 1) -a (0,1) | is further added to the local distortion calculated in cycle 0 and stored.

【0021】次いで、サイクル2では、サーチウィンド
ウの各画素データを全体として左に移動するとともに、
現符号化ブロックの画素データa(1,1)が入力され
ることで局所ディストーション |b(l+1,h+1)−a(1,1)| の計算が行われ、さらに、サイクル1での演算結果に加
算されてストアされる。
Next, in cycle 2, each pixel data of the search window is moved to the left as a whole,
By inputting the pixel data a (1,1) of the current coded block, the local distortion | b (l + 1, h + 1) -a (1,1) | is calculated, and the operation result in cycle 1 And stored.

【0022】次いで、サイクル3では、サーチウィンド
ウの各画素データを全体として下に移動するとともに、
現符号化ブロックの画素データa(1,0)が入力され
ることで |b(l+1,h)−a(1,0)| の計算が行われ、さらに、サイクル2での演算結果に加
算されてストアされ、結果として配置したプロセッサエ
レメントと同数の9個の候補ブロックに対応する各候補
ブロックと現符号化ブロックとのディストーションが計
算される。
Next, in cycle 3, each pixel data of the search window is moved downward as a whole,
| B (l + 1, h) -a (1,0) | is calculated by inputting pixel data a (1,0) of the current coding block, and further added to the operation result in cycle 2. Then, the distortion between each candidate block corresponding to the same number of nine candidate blocks as the processor elements arranged as a result and the current coded block is calculated.

【0023】次いで、この9個のディストーションの中
から検出された最小ディストーションに基づいて動きベ
クトルが求められる。一般に、動きベクトルを探索する
処理は、ディストーションの演算と画像メモリへのアク
セスが大部分を占め、膨大な処理を行うために高速のL
SIが要求される。これに対し、上記動きベクトル探索
装置は、2次元のシストリックアレー構造を採用し、L
SIチップ内に複数のプロセッサエレメントを配置し
て、並列動作を行うことにより動きベクトル探索処理の
高速化を実現している。
Next, a motion vector is obtained based on the minimum distortion detected from the nine distortions. In general, most of the processing for searching for a motion vector is performed by calculating a distortion and accessing an image memory.
SI is required. On the other hand, the motion vector search device adopts a two-dimensional systolic array structure,
By arranging a plurality of processor elements in the SI chip and performing a parallel operation, a high-speed motion vector search process is realized.

【0024】[0024]

【発明が解決しようとする課題】しかしながら、従来の
動きベクトル探索装置にあっては、図50〜図51に示
すように、サーチウィンドウの画素データは、ディスト
ーションの算出に使用され、最も左の列のプロセッサエ
レメントの左方向にスキャンされると消滅し、複数の現
画像ブロックに対してそれぞれサーチウィンドウを設定
してディストーションを算出する場合、同じサーチウィ
ンドウの画素データを参照画像の画素データが記憶され
た画像メモリに何回もアクセスする必要があるため、プ
ロセッサエレメントによりディストーションを演算する
時間より、入力すべきサーチウィンドウの画素データを
画像メモリにアクセスする時間のほうが長くかかってし
まい、画像メモリへの参照画像の画素データのアクセス
速度が全体の処理速度の向上を妨げる原因となってしま
うといった問題があった。
However, in the conventional motion vector search apparatus, as shown in FIGS. 50 to 51, the pixel data of the search window is used for calculating the distortion, and the leftmost column is used. Disappears when scanned to the left of the processor element, and when calculating a distortion by setting a search window for each of a plurality of current image blocks, pixel data of the same search window is stored as pixel data of a reference image. Since it is necessary to access the image memory many times, it takes longer to access the image memory for the pixel data of the search window to be input than to calculate the distortion by the processor element. The access speed of the pixel data of the reference image is the whole process There is a problem that becomes a cause that prevents the improvement of the time.

【0025】そこで、本発明は、同じサーチウィンドウ
の画素データを共有する複数の現画像ブロックに対し
て、一つの現画像ブロックに対応するディストーション
の算出に使用されたサーチウィンドウの画素データのう
ち、プロセッサエレメントから消滅してしまう画素デー
タを保持するレジスタを設け、レジスタに保持された画
素データを再度プロセッサエレメントに戻して異なる現
画像ブロック対応するディストーションを算出すること
で、サーチウィンドウの画素データを画像メモリにアク
セスするデータ量を少なくし、相対的に動きベクトル探
索処理を高速化することができる動きベクトル探索方法
および探索装置を提供することを目的とする。
Therefore, according to the present invention, for a plurality of current image blocks sharing the same search window pixel data, of the search window pixel data used for calculating the distortion corresponding to one current image block, A register for holding pixel data that disappears from the processor element is provided, and the pixel data held in the register is returned to the processor element again to calculate a distortion corresponding to a different current image block, so that the pixel data in the search window is imaged. An object of the present invention is to provide a motion vector search method and a search device capable of reducing the amount of data accessing a memory and relatively speeding up a motion vector search process.

【0026】[0026]

【課題を解決するための手段】請求項1に記載の発明
は、動画像を部分的に構成する現画像を前記動画像を部
分的に構成する参照画像に基づいて予測するのに用いら
れる動きベクトルを探索する方法であり、前記現画像が
画素データを有する複数行複数列の画素により表わされ
る複数の現画像ブロックを含み、前記参照画像がそれぞ
れ画素データを有する前記現画像ブロックと同一サイズ
の複数の候補ブロックを含み、前記現画像ブロック毎
に、前記複数の候補ブロックのうち該現画像ブロックに
類似する何れか1つの候補ブロックのブロック位置と該
現画像ブロックのブロック位置とによって、前記動きベ
クトルを特定する動きベクトル探索方法であって、前記
複数の現画像ブロックの画素データと、それぞれ前記参
照画像の複数の候補ブロックのうち少なくとも2つの候
補ブロックを含む複数のサーチウィンドウの画素データ
と、を準備する工程と、前記サーチウィンドウおよび前
記現画像ブロックのサイズに応じた探索領域を形成し該
探索領域内に前記サーチウィンドウ内の各候補ブロック
の画素データの一部を入力して保持するとともに該保持
した画素データを前記探索領域の所定方向に転送する第
1の画素データ転送保持手段と、前記第1の画素データ
転送保持手段との間で画素データを授受し前記第1の画
素データ転送保持手段と共に前記サーチウィンドウの画
素データを前記探索領域を通る所定の転送経路に沿って
転送する第2の画素データ転送保持手段と、前記転送経
路に沿って転送される画素データの一部を前記第1およ
び第2の画素データ転送保持手段から入力し出力する第
3の画素データ転送保持手段と、をそれぞれ準備する工
程と、前記サーチウィンドウの画素データを前記第1お
よび第2の画素データ転送保持手段に入力するととも
に、前記第1および第2の画素データ転送保持手段によ
り前記サーチウィンドウの画素データを前記転送経路に
沿って転送するウィンドウデータ転送工程と、前記現画
像ブロックの画素データと前記第1の画素データ転送保
持手段に保持された画素データとに基づいて、前記現画
像ブロックの各々に対し、前記現画像ブロックと前記複
数の候補ブロックとの間の画像の差を表わす複数のディ
ストーションをそれぞれ算出する第1のディストーショ
ン算出工程と、前記現画像ブロックの各々に対し算出さ
れた複数のディストーションの値のうち最小値を検出し
て、前記類似する1つの候補ブロックを特定する類似ブ
ロック特定工程と、を含み、さらに、前記第1および第
2の画素データ転送保持手段に入力された前記サーチウ
ィンドウの画素データのうち一部の画素データを前記第
1および第2の画素データ転送保持手段から排出しつつ
前記第3の画素データ転送保持手段に保持させる排出デ
ータ保持工程と、前記第3の画素データ転送保持手段に
保持された画素データを前記第3の画素データ転送保持
手段から前記第1および第2の画素データ転送保持手段
に戻す画素データ戻し工程と、該画素データ戻し工程に
より前記第1および第2の画素データ転送保持手段に戻
された画素データを用いて、前記現画像ブロックとは異
なる現画像ブロックに対応するディストーション算出を
開始する第2のディストーション算出工程と、を有する
ことを特徴とする。
According to a first aspect of the present invention, there is provided a method for predicting a current image partially forming a moving image based on a reference image partially forming the moving image. A method for searching for a vector, wherein the current image includes a plurality of current image blocks represented by a plurality of rows and columns of pixels having pixel data, and the reference image has the same size as the current image block each having pixel data. A plurality of candidate blocks, wherein for each of the current image blocks, the motion is determined by a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block. A motion vector search method for specifying a vector, wherein pixel data of the plurality of current image blocks and a plurality of candidate Preparing pixel data of a plurality of search windows including at least two candidate blocks in the search block, and forming a search area corresponding to the size of the search window and the current image block, and forming the search area in the search area. First pixel data transfer and holding means for inputting and holding a part of the pixel data of each candidate block in the search window, and transferring the held pixel data in a predetermined direction of the search area; A second pixel data transfer for exchanging pixel data with the data transfer holding unit and transferring the pixel data of the search window along a predetermined transfer path passing through the search area together with the first pixel data transfer holding unit; Holding means for inputting a part of the pixel data transferred along the transfer path from the first and second pixel data transfer holding means; And a third pixel data transfer and holding means for outputting and outputting, and inputting the pixel data of the search window to the first and second pixel data transfer and holding means, A window data transfer step of transferring the pixel data of the search window along the transfer path by the pixel data transfer holding unit; and a pixel held by the pixel data of the current image block and the first pixel data transfer holding unit. A first distortion calculating step of calculating, for each of the current image blocks, a plurality of distortions representing an image difference between the current image block and the plurality of candidate blocks, based on the data, Detecting the minimum value among a plurality of distortion values calculated for each of the current image blocks, And a similar block specifying step of specifying one similar candidate block. Further, a part of the pixel data of the search window input to the first and second pixel data transfer and holding means is further included. Discharging data holding step of discharging the pixel data from the first and second pixel data transfer holding means while holding the pixel data in the third pixel data transfer holding means, and the pixel data held in the third pixel data transfer holding means From the third pixel data transfer and holding means to the first and second pixel data transfer and holding means, and the first and second pixel data transfer and holding means by the pixel data returning step Using the returned pixel data, a second distortion for starting a distortion calculation corresponding to a current image block different from the current image block And having a Deployment calculating step.

【0027】請求項2に記載の発明は、動画像を部分的
に構成する現画像を前記動画像を部分的に構成する参照
画像に基づいて予測するのに用いられる動きベクトルを
探索する方法であり、前記現画像が画素データを有する
複数行複数列の画素により表わされる複数の現画像ブロ
ックを含み、前記参照画像がそれぞれ画素データを有す
る前記現画像ブロックと同一サイズの複数の候補ブロッ
クを含み、前記現画像ブロック毎に、前記複数の候補ブ
ロックのうち該現画像ブロックに類似する何れか1つの
候補ブロックのブロック位置と該現画像ブロックのブロ
ック位置とによって、前記動きベクトルを特定する動き
ベクトル探索方法であって、前記複数の現画像ブロック
の画素データと、それぞれ前記参照画像の複数の候補ブ
ロックのうち少なくとも2つの候補ブロックを含む複数
のサーチウィンドウの画素データと、を準備する工程
と、前記サーチウィンドウおよび前記現画像ブロックの
サイズに応じた探索領域を形成し該探索領域内に前記サ
ーチウィンドウ内の各候補ブロックの画素データの一部
を入力して保持するとともに該保持した画素データを前
記探索領域の所定方向に転送する第1の画素データ転送
保持手段と、前記第1の画素データ転送保持手段との間
で画素データを授受し前記第1の画素データ転送保持手
段と共に前記サーチウィンドウの画素データを前記探索
領域を通る所定の転送経路に沿って転送する第2の画素
データ転送保持手段と、前記転送経路に沿って転送され
る画素データの一部を前記第1および第2の画素データ
転送保持手段から入力し出力する第3の画素データ転送
保持手段と、をそれぞれ準備する工程と、前記サーチウ
ィンドウの画素データを前記第1および第2の画素デー
タ転送保持手段に入力するとともに、前記第1および第
2の画素データ転送保持手段により前記サーチウィンド
ウの画素データを前記転送経路に沿って転送するウィン
ドウデータ転送工程と、前記現画像ブロックの画素デー
タと前記第1の画素データ転送保持手段に保持された画
素データとに基づいて、前記現画像ブロックの各々に対
し、前記現画像ブロックと前記複数の候補ブロックとの
間の画像の差を表わす複数のディストーションをそれぞ
れ算出する第1のディストーション算出工程と、前記現
画像ブロックの各々に対し算出された複数のディストー
ションの値のうち最小値を検出して、前記類似する1つ
の候補ブロックを特定する類似ブロック特定工程と、を
含み、さらに、前記第1および第2の画素データ転送保
持手段に入力された前記サーチウィンドウの画素データ
のうち一部の画素データを前記第1および第2の画素デ
ータ転送保持手段から排出しつつ前記第3の画素データ
転送保持手段に保持させる排出データ保持工程と、前記
第3の画素データ転送保持手段に保持された画素データ
を前記第3の画素データ転送保持手段から前記第1およ
び第2の画素データ転送保持手段に戻す画素データ戻し
工程と、該画素データ戻し工程と同時に、前記第1およ
び第2の画素データ転送保持手段に戻された画素データ
を用いて、前記現画像ブロックとは異なる現画像ブロッ
クに対応するディストーションをそれぞれ算出する第2
のディストーション算出工程と、を有することを特徴と
する。
According to a second aspect of the present invention, there is provided a method for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image. The current image includes a plurality of current image blocks represented by pixels in a plurality of rows and columns having pixel data, and the reference image includes a plurality of candidate blocks of the same size as the current image block each having pixel data. A motion vector for specifying the motion vector by a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block for each of the current image blocks. A search method, wherein pixel data of the plurality of current image blocks and a small number of Preparing pixel data of a plurality of search windows including two candidate blocks; and forming a search area corresponding to the size of the search window and the current image block, and forming a search area in the search area within the search window. First pixel data transfer and holding means for inputting and holding a part of pixel data of each candidate block and transferring the held pixel data in a predetermined direction of the search area; and first pixel data transfer and holding means A second pixel data transfer holding unit that transfers pixel data between the first and second pixel data along with the first pixel data transfer holding unit along a predetermined transfer path passing through the search area; A third part of inputting and outputting a part of the pixel data transferred along the transfer path from the first and second pixel data transfer holding units; Preparing pixel data transfer and holding means, respectively; and inputting the pixel data of the search window to the first and second pixel data transfer and holding means, and providing the first and second pixel data transfer and holding means. A window data transfer step of transferring the pixel data of the search window along the transfer path, and based on the pixel data of the current image block and the pixel data held in the first pixel data transfer holding unit, For each of the current image blocks, a first distortion calculating step of respectively calculating a plurality of distortions representing an image difference between the current image block and the plurality of candidate blocks; On the other hand, a minimum value is detected from a plurality of calculated distortion values, and the similar one A similar block specifying step of specifying a candidate block, further comprising the step of converting some of the pixel data of the search window input to the first and second pixel data transfer and holding means into the first and second pixel data. A discharge data holding step of holding the third pixel data transfer holding unit while discharging the pixel data from the second pixel data transfer holding unit; and storing the pixel data held in the third pixel data transfer holding unit in the third pixel data transfer holding unit. A step of returning pixel data from the pixel data transfer and holding means to the first and second pixel data transfer and holding means; and a step of returning to the first and second pixel data transfer and holding means simultaneously with the pixel data returning step. A second calculating unit that calculates a distortion corresponding to a current image block different from the current image block using the pixel data.
And a distortion calculating step.

【0028】請求項3に記載の発明は、動画像を部分的
に構成する現画像を前記動画像を部分的に構成する参照
画像に基づいて予測するのに用いられる動きベクトルを
探索する方法であり、N,Mをそれぞれ整数とすると
き、前記現画像が画素データを有するN行M列の画素に
より表わされる複数の現画像ブロックを含み、前記参照
画像がそれぞれ画素データを有する前記現画像ブロック
と同一サイズの複数の候補ブロックを含み、前記現画像
ブロック毎に、前記複数の候補ブロックのうち該現画像
ブロックに類似する何れか1つの候補ブロックのブロッ
ク位置と該現画像ブロックのブロック位置とによって、
前記動きベクトルを特定する動きベクトル探索方法であ
って、前記複数の現画像ブロックの画素データと、H,
Lをそれぞれ整数とするとき、それぞれ前記参照画像の
複数の候補ブロックのうち少なくとも2つの候補ブロッ
クを含むH行L列の画素により表わされる複数のサーチ
ウィンドウの画素データと、を準備する工程と、前記サ
ーチウィンドウおよび前記現画像ブロックのサイズに応
じた(H−N+1)行(L−M+1)列の探索領域を形
成し該探索領域内に前記サーチウィンドウ内の各候補ブ
ロックの画素データの一部を入力して保持するとともに
該保持した画素データを前記探索領域の所定方向に転送
する(H−N+1)×(L−M+1)個の第1レジスタ
を有する第1の画素データ転送保持手段と、前記第1の
画素データ転送保持手段との間で画素データを授受する
複数の第2レジスタを有し前記第1の画素データ転送保
持手段と共に前記サーチウィンドウの画素データを前記
探索領域を通る所定の転送経路に沿って転送する第2の
画素データ転送保持手段と、前記転送経路に沿って転送
される画素データの一部を前記第1および第2の画素デ
ータ転送保持手段から入力し出力する(M−1)×H個
の第3レジスタを有する第3の画素データ転送保持手段
と、をそれぞれ準備する工程と、前記サーチウィンドウ
の画素データを前記第1および第2の画素データ転送保
持手段に入力するとともに、前記第1および第2の画素
データ転送保持手段により前記サーチウィンドウの画素
データを前記転送経路に沿って転送するウィンドウデー
タ転送工程と、前記現画像ブロックの画素データと前記
第1の画素データ転送保持手段に保持された画素データ
とに基づいて、前記現画像ブロックの各々に対し、前記
現画像ブロックと前記複数の候補ブロックとの間の画像
の差を表わす複数のディストーションをそれぞれ算出す
る第1のディストーション算出工程と、前記現画像ブロ
ックの各々に対し算出された複数のディストーションの
値のうち最小値を検出して、前記類似する1つの候補ブ
ロックを特定する類似ブロック特定工程と、を含み、さ
らに、前記第1および第2の画素データ転送保持手段に
入力された前記サーチウィンドウの画素データのうち転
送方向下流側の(M−1)列分の画素データを前記第1
および第2の画素データ転送保持手段から排出しつつ前
記第3の画素データ転送保持手段に保持させる排出デー
タ保持工程と、前記第3の画素データ転送保持手段に保
持された画素データを前記第3の画素データ転送保持手
段から前記第1および第2の画素データ転送保持手段に
戻す画素データ戻し工程と、該画素データ戻し工程によ
り前記第1および第2の画素データ転送保持手段に戻さ
れた画素データを用いて、前記現画像ブロックとは異な
る現画像ブロックに対応するディストーション算出を開
始する第2のディストーション算出工程と、を有するこ
とを特徴とする。
According to a third aspect of the present invention, there is provided a method for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image. When N and M are integers, the current image includes a plurality of current image blocks represented by N rows and M columns of pixels having pixel data, and the reference image has the current image blocks each having pixel data. And a plurality of candidate blocks of the same size as the current image block, and for each of the current image blocks, a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block. By
A motion vector search method for specifying the motion vector, wherein pixel data of the plurality of current image blocks;
When L is an integer, preparing pixel data of a plurality of search windows represented by pixels in H rows and L columns each including at least two candidate blocks among the plurality of candidate blocks of the reference image; A search area of (H−N + 1) rows (LM−M + 1) columns corresponding to the size of the search window and the current image block is formed, and a part of pixel data of each candidate block in the search window is formed in the search area. A first pixel data transfer and holding means having (H−N + 1) × (L−M + 1) first registers for inputting and holding the received pixel data and transferring the held pixel data in a predetermined direction of the search area; A plurality of second registers for transmitting and receiving pixel data to and from the first pixel data transfer holding unit; Second pixel data transfer and holding means for transferring the pixel data of the search window along a predetermined transfer path passing through the search area, and a part of the pixel data transferred along the transfer path with the first and second pixel data. Preparing (M-1) × H third registers for inputting and outputting from the pixel data transfer / holding means, and outputting pixel data of the search window. A window data transfer step of inputting the first and second pixel data transfer and holding means and transferring the pixel data of the search window along the transfer path by the first and second pixel data transfer and holding means; Based on the pixel data of the current image block and the pixel data held in the first pixel data transfer and holding means, A first distortion calculating step of calculating a plurality of distortions each representing an image difference between the current image block and the plurality of candidate blocks; and a plurality of distortions calculated for each of the current image blocks. Detecting the minimum value of the distortion values of the above, and specifying the similar one candidate block. The similar block specifying step further comprises the steps of: The pixel data of (M-1) columns on the downstream side in the transfer direction among the pixel data of the search window
And a discharge data holding step of holding the third pixel data transfer holding means while discharging the pixel data from the second pixel data transfer holding means, and transferring the pixel data held by the third pixel data transfer holding means to the third pixel data transfer holding means. A pixel data return step of returning from the pixel data transfer and holding means to the first and second pixel data transfer and holding means, and a pixel returned to the first and second pixel data transfer and holding means by the pixel data return step And a second distortion calculation step of starting a distortion calculation corresponding to a current image block different from the current image block using the data.

【0029】請求項4に記載の発明は、請求項3に記載
の動きベクトル探索方法において、前記排出データ保持
工程において、前記第1および第2レジスタに入力され
た画素データのうち前記転送方向最下流の1列分の画素
データを前記(M−1)×H個のうちH個の第3レジス
タに保持させるとともに該H個の第3レジスタから残り
の第3レジスタに画素データを転送するステップを(M
−1)回繰り返し、前記画素データ戻し工程において、
前記(M−1)×H個のうちH個の第3レジスタから前
記第1および第2レジスタに画素データを転送するとと
もに残りの第3レジスタに保持された画素データを該H
個の第3レジスタに転送するステップを(M−1)回繰
り返し、前記第3レジスタに入力された(M−1)列分
の画素データを再度第1および第2レジスタに戻すのと
同時に、前記第3レジスタに前記(M−1)列分の画素
データが入力されたとき前記探索領域の1列目に対応す
る第1および第2レジスタに保持されていた画素データ
を前記探索領域のM列目の画素列に対応する第1および
第2レジスタに転送して、前記探索領域内に前記第1の
ディストーション算出工程の開始時と同じ画素データを
配置した後、前記第2のディストーション算出工程を実
行することを特徴とする。
According to a fourth aspect of the present invention, in the motion vector search method according to the third aspect, in the discharging data holding step, the pixel data input to the first and second registers in the transfer direction is selected. A step of holding pixel data of one column in the downstream in H third registers of the (M-1) × H and transferring pixel data from the H third registers to the remaining third registers; To (M
-1) repeating the pixel data returning step,
The pixel data is transferred from the H third registers out of the (M-1) × H to the first and second registers, and the pixel data held in the remaining third registers is transferred to the H registers.
The step of transferring to the third registers is repeated (M-1) times, and the pixel data of (M-1) columns input to the third register is returned to the first and second registers at the same time. When the (M-1) th column of pixel data is input to the third register, the pixel data held in the first and second registers corresponding to the first column of the search area is replaced by the M of the search area. After transferring the pixel data to the first and second registers corresponding to the pixel columns of the column and arranging the same pixel data in the search area as at the start of the first distortion calculation step, the second distortion calculation step Is performed.

【0030】請求項5に記載の発明は、動画像を部分的
に構成する現画像を前記動画像を部分的に構成する参照
画像に基づいて予測するのに用いられる動きベクトルを
探索する方法であり、N,Mをそれぞれ整数とすると
き、前記現画像が画素データを有するN行M列の画素に
より表わされる複数の現画像ブロックを含み、前記参照
画像がそれぞれ画素データを有する前記現画像ブロック
と同一サイズの複数の候補ブロックを含み、前記現画像
ブロック毎に、前記複数の候補ブロックのうち該現画像
ブロックに類似する何れか1つの候補ブロックのブロッ
ク位置と該現画像ブロックのブロック位置とによって、
前記動きベクトルを特定する動きベクトル探索方法であ
って、前記複数の現画像ブロックの画素データと、H,
Lをそれぞれ整数とするとき、それぞれ前記参照画像の
複数の候補ブロックのうち少なくとも2つの候補ブロッ
クを含むH行L列の画素により表わされる複数のサーチ
ウィンドウの画素データと、を準備する工程と、前記サ
ーチウィンドウおよび前記現画像ブロックのサイズに応
じた(H−N+1)行(L−M+1)列の探索領域を形
成し該探索領域内に前記サーチウィンドウ内の各候補ブ
ロックの画素データの一部を入力して保持するとともに
該保持した画素データを前記探索領域の所定方向に転送
する(H−N+1)×(L−M+1)個の第1レジスタ
を有する第1の画素データ転送保持手段と、前記第1の
画素データ転送保持手段との間で画素データを授受する
複数の第2レジスタを有し前記第1の画素データ転送保
持手段と共に前記サーチウィンドウの画素データを前記
探索領域を通る所定の転送経路に沿って転送する第2の
画素データ転送保持手段と、前記転送経路に沿って転送
される画素データの一部を前記第1および第2の画素デ
ータ転送保持手段から入力し出力するM×H個の第3レ
ジスタを有する第3の画素データ転送保持手段と、をそ
れぞれ準備する工程と、前記サーチウィンドウの画素デ
ータを前記第1および第2の画素データ転送保持手段に
入力するとともに、前記第1および第2の画素データ転
送保持手段により前記サーチウィンドウの画素データを
前記転送経路に沿って転送するウィンドウデータ転送工
程と、前記現画像ブロックの画素データと前記第1の画
素データ転送保持手段に保持された画素データとに基づ
いて、前記現画像ブロックの各々に対し、前記現画像ブ
ロックと前記複数の候補ブロックとの間の画像の差を表
わす複数のディストーションをそれぞれ算出する第1の
ディストーション算出工程と、前記現画像ブロックの各
々に対し算出された複数のディストーションの値のうち
最小値を検出して、前記類似する1つの候補ブロックを
特定する類似ブロック特定工程と、を含み、さらに、前
記第1および第2の画素データ転送保持手段に入力され
た前記サーチウィンドウの画素データのうち転送方向下
流側のM列分の画素データを前記第1および第2の画素
データ転送保持手段から排出しつつ前記第3の画素デー
タ転送保持手段に保持させる排出データ保持工程と、前
記第3の画素データ転送保持手段に保持された画素デー
タを前記第3の画素データ転送保持手段から前記第1お
よび第2の画素データ転送保持手段に戻す画素データ戻
し工程と、該画素データ戻し工程により前記第1および
第2の画素データ転送保持手段に戻された画素データを
用いて、前記現画像ブロックとは異なる現画像ブロック
に対応するディストーション算出を開始する第2のディ
ストーション算出工程と、を有することを特徴とする。
According to a fifth aspect of the present invention, there is provided a method for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image. When N and M are integers, the current image includes a plurality of current image blocks represented by N rows and M columns of pixels having pixel data, and the reference image has the current image blocks each having pixel data. And a plurality of candidate blocks of the same size as the current image block, and for each of the current image blocks, a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block. By
A motion vector search method for specifying the motion vector, wherein pixel data of the plurality of current image blocks;
When L is an integer, preparing pixel data of a plurality of search windows represented by pixels in H rows and L columns each including at least two candidate blocks among the plurality of candidate blocks of the reference image; A search area of (H−N + 1) rows (LM−M + 1) columns corresponding to the size of the search window and the current image block is formed, and a part of pixel data of each candidate block in the search window is formed in the search area. A first pixel data transfer and holding means having (H−N + 1) × (L−M + 1) first registers for inputting and holding the received pixel data and transferring the held pixel data in a predetermined direction of the search area; A plurality of second registers for transmitting and receiving pixel data to and from the first pixel data transfer holding unit; Second pixel data transfer and holding means for transferring the pixel data of the search window along a predetermined transfer path passing through the search area, and a part of the pixel data transferred along the transfer path with the first and second pixel data. And a third pixel data transfer holding unit having M × H third registers input and output from the pixel data transfer holding unit, respectively. A window data transfer step of inputting the pixel data of the search window along the transfer path by the first and second pixel data transfer holding means, Based on the pixel data of the current image block and the pixel data held by the first pixel data transfer holding unit. A first distortion calculating step of calculating a plurality of distortions each representing an image difference between the current image block and the plurality of candidate blocks, and a plurality of distortions calculated for each of the current image blocks. Detecting a minimum value among the values and identifying the similar one candidate block. The similarity determination method further comprises the steps of: A discharge data holding step of discharging the pixel data for M columns on the downstream side in the transfer direction from the first and second pixel data transfer holding means and holding the pixel data in the third pixel data transfer holding means among the pixel data of The pixel data held in the third pixel data transfer holding unit is transferred from the third pixel data transfer holding unit to the first pixel data. And a pixel data return step of returning to the first and second pixel data transfer and holding means, and the pixel data returned to the first and second pixel data transfer and hold means by the pixel data return step. And a second distortion calculation step of starting a distortion calculation corresponding to a different current image block.

【0031】請求項6に記載の発明は、請求項4に記載
の動きベクトル探索方法において、前記排出データ保持
工程において、前記第1および第2レジスタに入力され
た画素データのうち前記転送方向最下流の1列分の画素
データを前記M×H個のうちH個の第3レジスタに保持
させるとともに該H個の第3レジスタから残りの第3レ
ジスタに画素データを転送するステップをM回繰り返
し、前記画素データ戻し工程において、前記M×H個の
うちH個の第3レジスタから前記第1および第2レジス
タに画素データを転送するとともに残りの第3レジスタ
に保持された画素データを前記H個の第3レジスタに転
送するステップをM回繰り返して、前記探索領域内に前
記第1のディストーション算出工程の開始時と同じ画素
データを配置した後、前記第2のディストーション算出
工程を実行することを特徴とする。
According to a sixth aspect of the present invention, in the motion vector search method according to the fourth aspect, in the discharging data holding step, the pixel data input to the first and second registers has a maximum value in the transfer direction. The step of holding the pixel data of one column in the downstream in the H third registers among the M × H registers and transferring the pixel data from the H third registers to the remaining third registers is repeated M times. In the pixel data returning step, the pixel data is transferred from the H third registers out of the M × H registers to the first and second registers, and the pixel data held in the remaining third registers is transferred to the H registers. After repeating the step of transferring to the third registers M times, and arranging the same pixel data in the search area as at the start of the first distortion calculation step, The method is characterized in that the second distortion calculating step is performed.

【0032】請求項7に記載の発明は、動画像を部分的
に構成する現画像を前記動画像を部分的に構成する参照
画像に基づいて予測するのに用いられる動きベクトルを
探索する方法であり、前記現画像が画素データを有する
複数行複数列の画素により表わされる複数の現画像ブロ
ックを含み、前記参照画像がそれぞれ画素データを有す
る前記現画像ブロックと同一サイズの複数の候補ブロッ
クを含み、前記現画像ブロック毎に、前記複数の候補ブ
ロックのうち該現画像ブロックに類似する何れか1つの
候補ブロックのブロック位置と該現画像ブロックのブロ
ック位置とによって、前記動きベクトルを特定する動き
ベクトル探索方法であって、前記複数の現画像ブロック
の画素データと、それぞれ前記参照画像の複数の候補ブ
ロックのうち少なくとも2つの候補ブロックを含む複数
のサーチウィンドウの画素データと、を準備する工程
と、前記サーチウィンドウの画素データを記憶し出力す
る参照画像データ記憶手段と、前記サーチウィンドウお
よび前記現画像ブロックのサイズに応じた探索領域を形
成し該探索領域内に前記サーチウィンドウ内の各候補ブ
ロックの画素データの一部を入力して保持するとともに
該保持した画素データを前記探索領域の所定方向に転送
する第1の画素データ転送保持手段と、前記第1の画素
データ転送保持手段との間で画素データを授受し前記第
1の画素データ転送保持手段と共に前記サーチウィンド
ウの画素データを前記探索領域を通る所定の転送経路に
沿って転送する第2の画素データ転送保持手段と、前記
転送経路に沿って転送される画素データの一部を前記第
1および第2の画素データ転送保持手段から入力し出力
する第3の画素データ転送保持手段と、前記参照画像デ
ータ記憶手段から前記複数のうち何れかのサーチウィン
ドウの画素データを取り込んで記憶するとともに記憶済
のサーチウィンドウの画素データを前記参照画像データ
記憶手段からのデータ転送速度より大きい転送速度で前
記第1および第2の画素データ転送保持手段に供給する
高速転送記憶手段と、をそれぞれ準備する工程と、前記
サーチウィンドウの画素データを、前記複数のうち何れ
かのサーチウィンドウの一部の画素データを含む所定画
素領域分ずつ前記参照画像データ記憶手段から読み出し
て前記高速転送記憶手段に記憶させるウィンドウデータ
読み出し工程と、前記高速転送記憶手段に記憶されたサ
ーチウィンドウの画素データを前記第1および第2の画
素データ転送保持手段に入力する第1のウィンドウデー
タ入力工程と、前記第1および第2の画素データ転送保
持手段により前記サーチウィンドウの画素データを前記
転送経路に沿って転送するウィンドウデータ転送工程
と、前記現画像ブロックの画素データと前記第1の画素
データ転送保持手段に保持された画素データとに基づい
て、前記現画像ブロックの各々に対し、前記現画像ブロ
ックと前記複数の候補ブロックとの間の画像の差を表わ
す複数のディストーションをそれぞれ算出する第1のデ
ィストーション算出工程と、前記現画像ブロックの各々
に対し算出された複数のディストーションの値のうち最
小値を検出して、前記類似する1つの候補ブロックを特
定する類似ブロック特定工程と、を含み、さらに、前記
第1および第2の画素データ転送保持手段に入力された
前記サーチウィンドウの画素データのうち一部の画素デ
ータを前記第1および第2の画素データ転送保持手段か
ら排出しつつ前記第3の画素データ転送保持手段に保持
させる排出データ保持工程と、前記第3の画素データ転
送保持手段に保持された画素データを前記第3の画素デ
ータ転送保持手段から前記第1および第2の画素データ
転送保持手段に戻す画素データ戻し工程と、該画素デー
タ戻し工程により前記第1および第2の画素データ転送
保持手段に戻された画素データを用いて、前記現画像ブ
ロックとは異なる現画像ブロックに対応するディストー
ション算出を開始する第2のディストーション算出工程
と、前記ウィンドウデータ読み出し工程で読み出され前
記高速転送記憶手段に記憶されている前記所定画素領域
分の画素データのうち、前記第2のディストーション算
出工程の開始時に前記探索領域内に戻された画素データ
に続く転送順序の画素データを、前記高速転送記憶手段
から前記第1および第2の画素データ転送保持手段に入
力させる第2のウィンドウデータ入力工程と、を有する
ことを特徴とする。
According to a seventh aspect of the present invention, there is provided a method for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image. The current image includes a plurality of current image blocks represented by pixels in a plurality of rows and columns having pixel data, and the reference image includes a plurality of candidate blocks of the same size as the current image block each having pixel data. A motion vector for specifying the motion vector by a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block for each of the current image blocks. A search method, wherein pixel data of the plurality of current image blocks and a small number of Preparing pixel data of a plurality of search windows each including two candidate blocks; reference image data storage means for storing and outputting the pixel data of the search window; and sizes of the search window and the current image block. Forming a search area according to the above, inputting and holding a part of the pixel data of each candidate block in the search window in the search area, and transferring the held pixel data in a predetermined direction of the search area. A first pixel data transfer / holding unit, and a first pixel data transfer / holding unit for transmitting / receiving pixel data, and passing the pixel data of the search window together with the first pixel data transfer / holding unit through the search area. Second pixel data transfer holding means for transferring along the transfer path, and pixel data for transfer along the transfer path. A third pixel data transfer and holding means for inputting and outputting a part of the pixel data from the first and second pixel data transfer and holding means, and pixel data of any one of the plurality of search windows from the reference image data storage means High-speed transfer storage means for fetching and storing pixel data of the stored search window to the first and second pixel data transfer holding means at a transfer rate higher than the data transfer rate from the reference image data storage means And reading the pixel data of the search window from the reference image data storage unit by a predetermined pixel area including a part of the pixel data of one of the plurality of search windows. A step of reading window data to be stored in the transfer storage means; A first window data inputting step of inputting the pixel data of the search window to the first and second pixel data transfer and holding means; and the pixel data of the search window by the first and second pixel data transfer and holding means. A window data transfer step of transferring along the transfer path; and, based on the pixel data of the current image block and the pixel data held in the first pixel data transfer holding means, for each of the current image blocks. A first distortion calculating step of calculating a plurality of distortions each representing an image difference between the current image block and the plurality of candidate blocks, and a plurality of distortions calculated for each of the current image blocks. A similar block feature that detects the minimum value among the values and identifies the similar one candidate block. And transferring some of the pixel data of the search window input to the first and second pixel data transfer means to the first and second pixel data transfer means. A discharge data holding step of holding the third pixel data transfer holding unit while discharging the pixel data from the third pixel data transfer holding unit, and discharging the pixel data held by the third pixel data transfer holding unit from the third pixel data transfer holding unit to the third pixel data transfer holding unit A pixel data return step of returning to the first and second pixel data transfer and holding means; and the pixel data returned to the first and second pixel data transfer and hold means by the pixel data return step, using the current image block. A second distortion calculating step of starting a distortion calculation corresponding to a current image block different from the current image block, and a window data reading step Among the pixel data of the predetermined pixel area read out and stored in the high-speed transfer storage unit, the pixels in the transfer order following the pixel data returned into the search area at the start of the second distortion calculation step A second window data input step of inputting data from the high-speed transfer storage unit to the first and second pixel data transfer holding units.

【0033】請求項8に記載の発明は、動画像を部分的
に構成する現画像を前記動画像を部分的に構成する参照
画像に基づいて予測するのに用いられる動きベクトルを
探索する方法であり、N,Mをそれぞれ整数とすると
き、前記現画像が画素データを有するN行M列の画素に
より表わされる複数の現画像ブロックを含み、前記参照
画像がそれぞれ画素データを有する前記現画像ブロック
と同一サイズの複数の候補ブロックを含み、前記現画像
ブロック毎に、前記複数の候補ブロックのうち該現画像
ブロックに類似する何れか1つの候補ブロックのブロッ
ク位置と該現画像ブロックのブロック位置とによって、
前記動きベクトルを特定する動きベクトル探索方法であ
って、前記複数の現画像ブロックの画素データと、H,
Lをそれぞれ整数とするとき、それぞれ前記参照画像の
複数の候補ブロックのうち少なくとも2つの候補ブロッ
クを含むH行L列の画素により表わされる複数のサーチ
ウィンドウの画素データと、を準備する工程と、前記サ
ーチウィンドウの画素データを記憶し出力する参照画像
データ記憶手段と、前記サーチウィンドウおよび前記現
画像ブロックのサイズに応じた(H−N+1)行(L−
M+1)列の探索領域を形成し該探索領域内に前記サー
チウィンドウ内の各候補ブロックの画素データの一部を
入力して保持するとともに該保持した画素データを前記
探索領域の所定方向に転送する(H−N+1)×(L−
M+1)個の第1レジスタを有する第1の画素データ転
送保持手段と、前記第1の画素データ転送保持手段との
間で画素データを授受する複数の第2レジスタを有し前
記第1の画素データ転送保持手段と共に前記サーチウィ
ンドウの画素データを前記探索領域を通る所定の転送経
路に沿って転送する第2の画素データ転送保持手段と、
前記転送経路に沿って転送される画素データの一部を前
記第1および第2の画素データ転送保持手段から入力し
出力する(M−1)×H個又はM×H個の第3レジスタ
を有する第3の画素データ転送保持手段と、前記参照画
像データ記憶手段から前記複数のうち何れかのサーチウ
ィンドウの画素データを取り込んで記憶するとともに記
憶済のサーチウィンドウの画素データを前記参照画像デ
ータ記憶手段からのデータ転送速度より大きい転送速度
で前記第1および第2の画素データ転送保持手段に供給
する高速転送記憶手段と、をそれぞれ準備する工程と、
前記サーチウィンドウの画素データを、前記複数のうち
何れかのサーチウィンドウの一部の画素データを含む所
定画素領域分ずつ前記参照画像データ記憶手段から読み
出して前記高速転送記憶手段に記憶させるウィンドウデ
ータ読み出し工程と、前記高速転送記憶手段に記憶され
たサーチウィンドウの画素データを前記第1および第2
の画素データ転送保持手段に入力する第1のウィンドウ
データ入力工程と、前記第1および第2の画素データ転
送保持手段により前記サーチウィンドウの画素データを
前記転送経路に沿って転送するウィンドウデータ転送工
程と、前記現画像ブロックの画素データと前記第1の画
素データ転送保持手段に保持された画素データとに基づ
いて、前記現画像ブロックの各々に対し、前記現画像ブ
ロックと前記複数の候補ブロックとの間の画像の差を表
わす複数のディストーションをそれぞれ算出する第1の
ディストーション算出工程と、前記現画像ブロックの各
々に対し算出された複数のディストーションの値のうち
最小値を検出して、前記類似する1つの候補ブロックを
特定する類似ブロック特定工程と、を含み、さらに、前
記第1および第2の画素データ転送保持手段に入力され
た前記サーチウィンドウの画素データのうち転送方向下
流側の(M−1)列又はM列分の画素データを前記第1
および第2の画素データ転送保持手段から排出しつつ前
記第3の画素データ転送保持手段に保持させる排出デー
タ保持工程と、前記第3の画素データ転送保持手段に保
持された画素データを前記第3の画素データ転送保持手
段から前記第1および第2の画素データ転送保持手段に
戻す画素データ戻し工程と、該画素データ戻し工程によ
り前記第1および第2の画素データ転送保持手段に戻さ
れた画素データを用いて、前記現画像ブロックとは異な
る現画像ブロックに対応するディストーション算出を開
始する第2のディストーション算出工程と、前記ウィン
ドウデータ読み出し工程で読み出され前記高速転送記憶
手段に記憶されている前記所定画素領域分の画素データ
のうち、前記第2のディストーション算出工程の開始時
に前記探索領域内に戻された画素データに続く転送順序
の画素データを、前記高速転送記憶手段から前記第1お
よび第2の画素データ転送保持手段に入力させる第2の
ウィンドウデータ入力工程と、を有することを特徴とす
る。
An eighth aspect of the present invention is a method for searching for a motion vector used to predict a current image partially forming a moving image based on a reference image partially forming the moving image. When N and M are integers, the current image includes a plurality of current image blocks represented by N rows and M columns of pixels having pixel data, and the reference image has the current image blocks each having pixel data. And a plurality of candidate blocks of the same size as the current image block, and for each of the current image blocks, a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block. By
A motion vector search method for specifying the motion vector, wherein pixel data of the plurality of current image blocks;
When L is an integer, preparing pixel data of a plurality of search windows represented by pixels in H rows and L columns each including at least two candidate blocks among the plurality of candidate blocks of the reference image; Reference image data storage means for storing and outputting the pixel data of the search window; and (H-N + 1) rows (L-N) corresponding to the size of the search window and the current image block.
A search area of (M + 1) columns is formed, a part of the pixel data of each candidate block in the search window is inputted and held in the search area, and the held pixel data is transferred in a predetermined direction of the search area. (H−N + 1) × (L−
A first pixel data transfer holding unit having (M + 1) first registers, and a plurality of second registers for transmitting and receiving pixel data between the first pixel data transfer holding unit; A second pixel data transfer holding unit that transfers pixel data of the search window along with a data transfer holding unit along a predetermined transfer path passing through the search area;
(M-1) × H or M × H third registers for inputting and outputting a part of the pixel data transferred along the transfer path from the first and second pixel data transfer holding units. A third pixel data transfer holding unit, and a pixel data of any one of the plurality of search windows from the reference image data storage unit. Providing high-speed transfer storage means for supplying the first and second pixel data transfer holding means at a transfer rate higher than the data transfer rate from the means;
Window data reading in which pixel data of the search window is read from the reference image data storage unit by a predetermined pixel area including a part of pixel data of any of the plurality of search windows and stored in the high-speed transfer storage unit. And storing the pixel data of the search window stored in the high-speed transfer storage means in the first and second search windows.
A first window data input step of inputting the pixel data to the pixel data transfer and holding means, and a window data transfer step of transferring the pixel data of the search window along the transfer path by the first and second pixel data transfer and holding means. And, based on the pixel data of the current image block and the pixel data held in the first pixel data transfer holding means, for each of the current image blocks, the current image block and the plurality of candidate blocks. A first distortion calculating step of calculating a plurality of distortions each representing a difference between images, and detecting a minimum value among a plurality of distortion values calculated for each of the current image blocks, and A similar block specifying step of specifying one candidate block to be performed. Pixel data transfer holding means is input to the transfer direction downstream side of the pixel data of the search window (M-1) column or M columns worth of the pixel data first
And a discharge data holding step of holding the third pixel data transfer holding means while discharging the pixel data from the second pixel data transfer holding means, and transferring the pixel data held by the third pixel data transfer holding means to the third pixel data transfer holding means. A pixel data return step of returning from the pixel data transfer and holding means to the first and second pixel data transfer and holding means, and a pixel returned to the first and second pixel data transfer and holding means by the pixel data return step A second distortion calculation step of starting a distortion calculation corresponding to a current image block different from the current image block using data; and a window data read step which is read and stored in the high-speed transfer storage means. At the start of the second distortion calculation step, the pixel data of the predetermined pixel area A second window data input step of inputting pixel data in a transfer order following the returned pixel data from the high-speed transfer storage unit to the first and second pixel data transfer holding units. I do.

【0034】請求項9に記載の発明は、請求項7又は8
に記載の動きベクトル探索方法において、前記画素デー
タ戻し工程で前記第1および第2の画素データ転送保持
手段に画素データが戻され、該画素データに続く転送順
序の画素データが前記第2のウィンドウデータ入力工程
で前記高速転送記憶手段から前記第1および第2の画素
データ転送保持手段に入力されることにより、前記複数
のうち何れかのサーチウィンドウの一部の画素データが
前記探索領域に供給される間に、該一部の画素データと
前記複数のうち何れかの現画像ブロックの画素データと
に基づいて、前記第2のディストーション算出工程を実
行するとともに、前記何れかのサーチウィンドウの残部
の画素データを前記参照画像データ記憶手段から読み出
して前記高速転送記憶手段に記憶させるよう前記ウィン
ドウデータ読み出し工程を開始することを特徴とする。
The ninth aspect of the present invention is the invention according to the seventh or eighth aspect.
Wherein the pixel data is returned to the first and second pixel data transfer holding means in the pixel data return step, and the pixel data in the transfer order following the pixel data is stored in the second window. In the data input step, a part of pixel data of any one of the plurality of search windows is supplied to the search area by being input from the high-speed transfer storage means to the first and second pixel data transfer holding means. While performing the second distortion calculating step based on the partial pixel data and the pixel data of any of the plurality of current image blocks, and Read out the window data so as to read out the pixel data of Characterized in that to start the process.

【0035】請求項10に記載の発明は、請求項3〜6
および8の何れかに記載の動きベクトル探索方法におい
て、前記サーチウィンドウ内で隣り合う2つの画素列の
画素データが互いに列方向で逆方向に転送されるよう、
前記第1レジスタおよび第2レジスタにより、前記探索
領域内で入力画素データを列方向に往復移動させながら
行方向の一方側に転送させることを特徴とする。
The tenth aspect of the present invention is the third aspect of the present invention.
In the motion vector search method according to any one of (8) and (9), pixel data of two adjacent pixel columns in the search window are transferred in the column direction in opposite directions to each other.
The first register and the second register transfer input pixel data to one side in the row direction while reciprocating in the column direction in the search area.

【0036】請求項11に記載の発明は、請求項1〜4
および7〜9の何れかに記載の動きベクトル探索方法に
おいて、前記現画像ブロックおよび候補ブロックがそれ
ぞれ偶数の画素列を有することを特徴とする。請求項1
2に記載の発明は、請求項1〜2および5〜9の何れか
に記載の動きベクトル探索方法において、前記現画像ブ
ロックおよび候補ブロックがそれぞれ奇数の画素列を有
することを特徴とする。
The eleventh aspect of the present invention relates to the first to fourth aspects.
And the motion vector search method according to any one of 7 to 9, wherein the current image block and the candidate block each have an even number of pixel columns. Claim 1
According to a second aspect of the present invention, in the motion vector search method according to any one of the first to second and fifth to ninth aspects, the current image block and the candidate block each have an odd number of pixel columns.

【0037】請求項13に記載の発明は、請求項1およ
び3〜8の何れかに記載の動きベクトル探索方法におい
て、前記探索領域内におけるディストーション算出開始
時の画素データの位置を保って、前記第1および第2の
画素データ転送保持手段から第3の画素データ転送保持
手段に画素データを排出させ、かつ、前記第3の画素デ
ータ転送保持手段から前記第1および第2の画素データ
転送保持手段に画素データを戻すよう出力させることを
特徴とする。
According to a thirteenth aspect of the present invention, in the motion vector search method according to any one of the first to third aspects, the position of the pixel data at the start of the distortion calculation in the search area is maintained. The pixel data is discharged from the first and second pixel data transfer / holding means to the third pixel data transfer / holding means, and the first and second pixel data transfer / holding is performed from the third pixel data transfer / holding means. And outputting the pixel data to return the pixel data.

【0038】請求項14に記載の発明は、動画像を部分
的に構成する現画像を前記動画像を部分的に構成する参
照画像に基づいて予測するのに用いられる動きベクトル
を探索する装置であり、前記現画像が画素データを有す
る複数行複数列の画素により表わされる複数の現画像ブ
ロックを含み、前記参照画像がそれぞれ画素データを有
する前記現画像ブロックと同一サイズの複数の候補ブロ
ックを含み、前記現画像ブロック毎に、前記複数の候補
ブロックのうち該現画像ブロックに類似する何れか1つ
の候補ブロックのブロック位置と該現画像ブロックのブ
ロック位置とによって、前記動きベクトルを特定する動
きベクトル探索装置であって、前記現画像ブロックの画
素データを出力する現画像データ出力手段と、前記参照
画像の画素データを記憶し、前記候補ブロックをそれぞ
れ少なくとも2つ含んだ複数のサーチウィンドウの画素
データを出力可能な参照画像データ記憶手段と、前記サ
ーチウィンドウおよび前記現画像ブロックのサイズに応
じた探索領域を形成し、該探索領域内に前記サーチウィ
ンドウ内の各候補ブロックの画素データの一部を入力し
て保持するとともに、該保持した画素データを前記探索
領域の所定方向に転送する第1の画素データ転送保持手
段と、前記第1の画素データ転送保持手段との間で画素
データを授受し、前記第1の画素データ転送保持手段と
共に前記サーチウィンドウの画素データを前記探索領域
を通る所定の転送経路に沿って転送する第2の画素デー
タ転送保持手段と、前記転送経路に沿って転送された画
素データの一部を前記第1および第2の画素データ転送
保持手段から入力し、該入力した画素データを前記第1
および第2の画素データ転送保持手段に戻すよう出力す
る第3の画素データ転送保持手段と、前記サーチウィン
ドウの画素データを前記第1および第2の画素データ転
送保持手段に入力させるとともに、前記第1および第2
の画素データ転送保持手段により前記サーチウィンドウ
の画素データを前記転送経路に沿って転送させるウィン
ドウデータ転送制御手段と、前記現画像データ出力手段
から出力された現画像ブロックの画素データと前記第1
の画素データ転送保持手段に保持された画素データとに
基づいて、前記現画像ブロックの各々に対し、前記現画
像ブロックと前記複数の候補ブロックとの間の画像の差
を表わす複数のディストーションをそれぞれ算出するデ
ィストーション算出手段と、前記現画像ブロックの各々
に対し算出された複数のディストーションの値のうち最
小値を検出して、前記類似する1つの候補ブロックを特
定する類似ブロック特定手段と、前記第1および第2の
画素データ転送保持手段により画素データが転送される
とき、前記第1および第2の画素データ転送保持手段に
入力された画素データのうち前記サーチウィンドウの1
列目から所定列分だけ各列の画素データを前記第1およ
び第2の画素データ転送保持手段から排出しつつ前記第
3の画素データ転送保持手段に保持させる排出データ保
持制御手段と、前記第3の画素データ転送保持手段に入
力された各列の画素データを前記第3の画素データ転送
保持手段から排出しつつ前記第1および第2の画素デー
タ転送保持手段に保持させる戻しデータ転送制御手段
と、を備え、前記ディストーション算出手段が、前記第
3の画素データ転送保持手段から前記第1および第2の
画素データ転送保持手段に戻された画素データを用い
て、前記現画像ブロックとは異なる現画像ブロックに対
応するディストーション算出を行なうことを特徴とす
る。
According to a fourteenth aspect of the present invention, there is provided an apparatus for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image. The current image includes a plurality of current image blocks represented by a plurality of rows and columns of pixels having pixel data, and the reference image includes a plurality of candidate blocks of the same size as the current image block each having pixel data. A motion vector specifying the motion vector by, for each of the current image blocks, a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block. A search device, comprising: current image data output means for outputting pixel data of the current image block; and pixel data of the reference image. Storing reference image data storage means capable of outputting pixel data of a plurality of search windows each including at least two of the candidate blocks, and forming a search area according to the size of the search window and the current image block; First pixel data transfer holding means for inputting and holding a part of pixel data of each candidate block in the search window in the search area, and transferring the held pixel data in a predetermined direction of the search area; And the first pixel data transfer and holding means, and transfers pixel data along with the first pixel data transfer and holding means along a predetermined transfer path through the search area with the pixel data of the search window. A second pixel data transfer holding unit for transferring, and a part of the pixel data transferred along the transfer path the first and second pixel data transfer means. Pixel data transfer type from the holding means, the input the pixel data first has
And a third pixel data transfer and holding means for outputting the pixel data of the search window to the first and second pixel data transfer and holding means. 1st and 2nd
Window data transfer control means for causing the pixel data of the search window to be transferred along the transfer path by the pixel data transfer and holding means; and the pixel data of the current image block output from the current image data output means and the first
Based on the pixel data held by the pixel data transfer holding unit, a plurality of distortions representing the image difference between the current image block and the plurality of candidate blocks are respectively generated for each of the current image blocks. A distortion calculating means for calculating, a similar block specifying means for detecting a minimum value among a plurality of distortion values calculated for each of the current image blocks and specifying the one similar candidate block; When the pixel data is transferred by the first and second pixel data transfer and holding means, one of the search windows in the pixel data input to the first and second pixel data transfer and holding means is selected.
Discharging data holding control means for holding the third pixel data transfer holding means while discharging pixel data of each column by a predetermined column from the first column from the first and second pixel data transfer holding means; Return data transfer control means for causing the first and second pixel data transfer holding means to hold the pixel data of each column input to the third pixel data transfer holding means while discharging the pixel data from the third pixel data transfer holding means Wherein the distortion calculating means differs from the current image block by using the pixel data returned from the third pixel data transfer holding means to the first and second pixel data transfer holding means. Distortion calculation corresponding to the current image block is performed.

【0039】請求項15に記載の発明は、動画像を部分
的に構成する現画像を前記動画像を部分的に構成する参
照画像に基づいて予測するのに用いられる動きベクトル
を探索する装置であり、前記現画像が画素データを有す
る複数行複数列の画素により表わされる複数の現画像ブ
ロックを含み、前記参照画像がそれぞれ画素データを有
する前記現画像ブロックと同一サイズの複数の候補ブロ
ックを含み、前記現画像ブロック毎に、前記複数の候補
ブロックのうち該現画像ブロックに類似する何れか1つ
の候補ブロックのブロック位置と該現画像ブロックのブ
ロック位置とによって、前記動きベクトルを特定する動
きベクトル探索装置であって、前記現画像ブロックの画
素データを出力する現画像データ出力手段と、前記参照
画像の画素データを記憶し、前記候補ブロックをそれぞ
れ少なくとも2つ含んだ複数のサーチウィンドウの画素
データを出力可能な参照画像データ記憶手段と、前記サ
ーチウィンドウおよび前記現画像ブロックのサイズに応
じた探索領域を形成し、該探索領域内に前記サーチウィ
ンドウ内の各候補ブロックの画素データの一部を入力し
て保持するとともに、該保持した画素データを前記探索
領域の所定方向に転送する第1の画素データ転送保持手
段と、前記第1の画素データ転送保持手段との間で画素
データを授受し、前記第1の画素データ転送保持手段と
共に前記サーチウィンドウの画素データを前記探索領域
を通る所定の転送経路に沿って転送する第2の画素デー
タ転送保持手段と、前記転送経路に沿って転送された画
素データの一部を前記第1および第2の画素データ転送
保持手段から入力し、該入力した画素データを前記第1
および第2の画素データ転送保持手段に戻すよう出力す
る第3の画素データ転送保持手段と、前記サーチウィン
ドウの画素データを前記第1および第2の画素データ転
送保持手段に入力させるとともに、前記第1および第2
の画素データ転送保持手段により前記サーチウィンドウ
の画素データを前記転送経路に沿って転送させるウィン
ドウデータ転送制御手段と、前記現画像データ出力手段
から出力された現画像ブロックの画素データと前記第1
の画素データ転送保持手段に保持された画素データとに
基づいて、前記現画像ブロックの各々に対し、前記現画
像ブロックと前記複数の候補ブロックとの間の画像の差
を表わす複数のディストーションをそれぞれ算出するデ
ィストーション算出手段と、前記現画像ブロックの各々
に対し算出された複数のディストーションの値のうち最
小値を検出して、前記類似する1つの候補ブロックを特
定する類似ブロック特定手段と、前記第1および第2の
画素データ転送保持手段により画素データが転送される
とき、前記第1および第2の画素データ転送保持手段に
入力された画素データのうち前記サーチウィンドウの1
列目から所定列分だけ各列の画素データを前記第1およ
び第2の画素データ転送保持手段から排出しつつ前記第
3の画素データ転送保持手段に保持させる排出データ保
持制御手段と、前記第3の画素データ転送保持手段に入
力された各列の画素データを前記第3の画素データ転送
保持手段から排出しつつ前記第1および第2の画素デー
タ転送保持手段に保持させる戻しデータ転送制御手段
と、を備え、前記ディストーション算出手段が、前記戻
しデータ転送制御手段による画素データの転送と同時
に、前記第3の画素データ転送保持手段から前記第1お
よび第2の画素データ転送保持手段に戻された画素デー
タを用いて、前記現画像ブロックとは異なる現画像ブロ
ックに対応するディストーション算出を行なうことを特
徴とする。
According to a fifteenth aspect of the present invention, there is provided an apparatus for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image. The current image includes a plurality of current image blocks represented by a plurality of rows and columns of pixels having pixel data, and the reference image includes a plurality of candidate blocks of the same size as the current image block each having pixel data. A motion vector specifying the motion vector by, for each of the current image blocks, a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block. A search device, comprising: current image data output means for outputting pixel data of the current image block; and pixel data of the reference image. Storing reference image data storage means capable of outputting pixel data of a plurality of search windows each including at least two of the candidate blocks, and forming a search area according to the size of the search window and the current image block; First pixel data transfer holding means for inputting and holding a part of pixel data of each candidate block in the search window in the search area, and transferring the held pixel data in a predetermined direction of the search area; And the first pixel data transfer and holding means, and transfers pixel data along with the first pixel data transfer and holding means along a predetermined transfer path through the search area with the pixel data of the search window. A second pixel data transfer holding unit for transferring, and a part of the pixel data transferred along the transfer path the first and second pixel data transfer means. Pixel data transfer type from the holding means, the input the pixel data first has
And a third pixel data transfer and holding means for outputting the pixel data of the search window to the first and second pixel data transfer and holding means. 1st and 2nd
Window data transfer control means for causing the pixel data of the search window to be transferred along the transfer path by the pixel data transfer and holding means; and the pixel data of the current image block output from the current image data output means and the first
Based on the pixel data held by the pixel data transfer holding unit, a plurality of distortions representing the image difference between the current image block and the plurality of candidate blocks are respectively generated for each of the current image blocks. A distortion calculating means for calculating, a similar block specifying means for detecting a minimum value among a plurality of distortion values calculated for each of the current image blocks and specifying the one similar candidate block; When the pixel data is transferred by the first and second pixel data transfer and holding means, one of the search windows in the pixel data input to the first and second pixel data transfer and holding means is selected.
Discharge data holding control means for holding the third pixel data transfer holding means while discharging pixel data of each column by a predetermined column from the first row from the first and second pixel data transfer holding means; Return data transfer control means for causing the first and second pixel data transfer holding means to hold the pixel data of each column input to the third pixel data transfer holding means while discharging the pixel data from the third pixel data transfer holding means Wherein the distortion calculation means is returned from the third pixel data transfer holding means to the first and second pixel data transfer holding means simultaneously with the transfer of the pixel data by the return data transfer control means. The distortion calculation is performed for the current image block different from the current image block using the pixel data thus obtained.

【0040】請求項16に記載の発明は、動画像を部分
的に構成する現画像を前記動画像を部分的に構成する参
照画像に基づいて予測するのに用いられる動きベクトル
を探索する装置であり、N,Mをそれぞれ整数とすると
き、前記現画像が画素データを有するN行M列の画素に
より表わされる複数の現画像ブロックを含み、前記参照
画像がそれぞれ画素データを有する前記現画像ブロック
と同一サイズの複数の候補ブロックを含み、前記現画像
ブロック毎に、前記複数の候補ブロックのうち該現画像
ブロックに類似する何れか1つの候補ブロックのブロッ
ク位置と該現画像ブロックのブロック位置とによって、
前記動きベクトルを特定する動きベクトル探索装置であ
って、前記現画像ブロックの画素データを出力する現画
像データ出力手段と、前記参照画像の画素データを記憶
し、H,Lをそれぞれ整数とするとき、前記候補ブロッ
クをそれぞれ少なくとも2つ含んだH行L列の画素によ
り表わされる複数のサーチウィンドウの画素データを出
力可能な参照画像データ記憶手段と、前記サーチウィン
ドウおよび前記現画像ブロックのサイズに応じた(H−
N+1)行(L−M+1)列の探索領域を形成し、該探
索領域内に前記サーチウィンドウ内の各候補ブロックの
画素データの一部を入力して保持するとともに、該保持
した画素データを前記探索領域の所定方向に転送する
(H−N+1)×(L−M+1)個の第1レジスタを有
する第1の画素データ転送保持手段と、前記第1の画素
データ転送保持手段の第1レジスタとの間で画素データ
を授受する複数の第2レジスタを有し、前記第1の画素
データ転送保持手段と共に前記サーチウィンドウの画素
データを前記探索領域を通る所定の転送経路に沿って転
送する第2の画素データ転送保持手段と、前記転送経路
に沿って転送された画素データの一部を前記第1および
第2の画素データ転送保持手段から入力し、該入力した
画素データを前記第1および第2の画素データ転送保持
手段に戻すよう出力する(M−1)×H個の第3レジス
タを有する第3の画素データ転送保持手段と、前記サー
チウィンドウの画素データを前記第1および第2の画素
データ転送保持手段に入力させるとともに、前記第1お
よび第2の画素データ転送保持手段により前記サーチウ
ィンドウの画素データを前記転送経路に沿って転送させ
るウィンドウデータ転送制御手段と、前記現画像データ
出力手段から出力された現画像ブロックの画素データと
前記第1の画素データ転送保持手段に保持された画素デ
ータとに基づいて、前記現画像ブロックの各々に対し、
前記現画像ブロックと前記複数の候補ブロックとの間の
画像の差を表わす複数のディストーションをそれぞれ算
出するディストーション算出手段と、前記現画像ブロッ
クの各々に対し算出された複数のディストーションの値
のうち最小値を検出して、前記類似する1つの候補ブロ
ックを特定する類似ブロック特定手段と、前記第1およ
び第2の画素データ転送保持手段により画素データが転
送されるとき、前記第1および第2の画素データ転送保
持手段に入力された画素データのうち前記サーチウィン
ドウの1列目から(M−1)列目までの各列の画素デー
タを前記第1および第2の画素データ転送保持手段から
排出しつつ前記第3の画素データ転送保持手段に保持さ
せる排出データ保持制御手段と、前記第3の画素データ
転送保持手段により前記第1および第2の画素データ転
送保持手段に画素データが転送されるとき、前記第3の
画素データ転送保持手段に入力された画素データのうち
前記サーチウィンドウの(M−1)列目から1列目まで
の各列の画素データを前記第3の画素データ転送保持手
段から排出しつつ前記第1および第2の画素データ転送
保持手段に保持させる戻しデータ転送制御手段と、を備
え、前記ディストーション算出手段が、前記第3の画素
データ転送保持手段から前記第1および第2の画素デー
タ転送保持手段に戻された画素データを用いて、前記現
画像ブロックとは異なる現画像ブロックに対応するディ
ストーション算出を行なうことを特徴とする。
According to a sixteenth aspect of the present invention, there is provided an apparatus for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image. When N and M are integers, the current image includes a plurality of current image blocks represented by N rows and M columns of pixels having pixel data, and the reference image has the current image blocks each having pixel data. And a plurality of candidate blocks of the same size as the current image block, and for each of the current image blocks, a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block. By
A motion vector searching device for specifying the motion vector, wherein current image data output means for outputting pixel data of the current image block, and pixel data of the reference image are stored, and H and L are integers, respectively. A reference image data storage means capable of outputting pixel data of a plurality of search windows represented by pixels in H rows and L columns each including at least two of the candidate blocks, and according to sizes of the search window and the current image block. (H-
A search area of (N + 1) rows (LM + 1) columns is formed, a part of the pixel data of each candidate block in the search window is input and held in the search area, and the held pixel data is A first pixel data transfer holding unit having (H−N + 1) × (L−M + 1) first registers for transferring data in a predetermined direction of the search area; a first register of the first pixel data transfer holding unit; A plurality of second registers for transmitting and receiving pixel data between the first and second pixel data transfer means, and transferring the pixel data of the search window along a predetermined transfer path passing through the search area together with the first pixel data transfer and holding means. And a part of the pixel data transferred along the transfer path from the first and second pixel data transfer and holding means, and the input pixel data is And third pixel data transfer and holding means having (M-1) × H third registers for outputting the data to the second pixel data transfer and holding means, and outputting the pixel data of the search window to the first and second pixel data transfer and holding means. Window data transfer control means for inputting the pixel data of the search window along the transfer path by the first and second pixel data transfer and holding means, On the basis of the pixel data of the current image block output from the data output unit and the pixel data held by the first pixel data transfer holding unit, for each of the current image blocks,
Distortion calculation means for calculating a plurality of distortions each representing an image difference between the current image block and the plurality of candidate blocks, and a minimum among a plurality of distortion values calculated for each of the current image blocks Detecting pixel values, and when the pixel data is transferred by the similar block specifying means for specifying the similar one candidate block, and the first and second pixel data transfer and holding means, the first and second pixel data are transferred. The pixel data of each column from the first column to the (M-1) th column of the search window among the pixel data input to the pixel data transfer holding unit is discharged from the first and second pixel data transfer holding units. Discharging data holding control means for causing the third pixel data transfer holding means to hold the data while holding the third pixel data transfer holding means. When the pixel data is transferred to the first and second pixel data transfer and holding means, the pixel data input to the third pixel data transfer and holding means starts from the (M-1) th column of the search window. Return data transfer control means for discharging the pixel data of each column up to the first column from the third pixel data transfer / holding means and holding the pixel data in the first and second pixel data transfer / holding means; The distortion calculation unit uses the pixel data returned from the third pixel data transfer holding unit to the first and second pixel data transfer holding units to correspond to a current image block different from the current image block. Distortion calculation is performed.

【0041】請求項17に記載の発明は、請求項16に
記載の動きベクトル探索装置において、前記ウィンドウ
データ転送制御手段が、前記第1レジスタおよび第2レ
ジスタにより、前記サーチウィンドウ内で隣接する2つ
の画素列の画素データを互いに列方向で逆方向に転送さ
せ、かつ、前記サーチウィンドウ内の画素データを列方
向に往復移動させながら行方向の一方側に転送させると
ともに、前記(M−1)列分の画素データが前記第3レ
ジスタから第1および第2レジスタに戻されるとき、前
記探索領域の1列目の画素列に対応する第1および第2
レジスタに保持されていた画素データを、前記行方向の
他方側に戻すよう転送させ、さらに、これらM列分の画
素データが前記何れかの現画像ブロックに対応するディ
ストーション算出開始時の位置に復帰したとき、前記入
力画素データの転送方向を再度前記行方向の一方側に切
り換え、前記ディストーション算出手段が、前記第3レ
ジスタから第1および第2レジスタに戻された(M−
1)列分の画素データと、前記第3レジスタに前記(M
−1)列分の画素データが入力されたとき前記探索領域
の1列目の画素列に対応する第1および第2レジスタに
保持されていた画素データとを用いて、前記現画像ブロ
ックとは異なる現画像ブロックに対応するディストーシ
ョンを算出することを特徴とする。
According to a seventeenth aspect of the present invention, in the motion vector search device according to the sixteenth aspect, the window data transfer control means uses the first register and the second register to select two adjacent data in the search window. The pixel data in one pixel column are transferred in the opposite direction in the column direction, and the pixel data in the search window is transferred to one side in the row direction while reciprocating in the column direction. When pixel data of a column is returned from the third register to the first and second registers, the first and second pixels corresponding to the first pixel column of the search area are returned.
The pixel data held in the register is transferred back to the other side in the row direction, and the pixel data for these M columns is returned to the position at the start of the distortion calculation corresponding to any of the current image blocks. Then, the transfer direction of the input pixel data is switched again to one side in the row direction, and the distortion calculating means is returned from the third register to the first and second registers (M−
1) The pixel data for the column and the (M) are stored in the third register.
-1) When the pixel data of a column is input, the current image block is defined by using the pixel data held in the first and second registers corresponding to the first pixel column of the search area. Distortions corresponding to different current image blocks are calculated.

【0042】請求項18に記載の発明は、動画像を部分
的に構成する現画像を前記動画像を部分的に構成する参
照画像に基づいて予測するのに用いられる動きベクトル
を探索する装置であり、N,Mをそれぞれ整数とすると
き、前記現画像が画素データを有するN行M列の画素に
より表わされる複数の現画像ブロックを含み、前記参照
画像がそれぞれ画素データを有する前記現画像ブロック
と同一サイズの複数の候補ブロックを含み、前記現画像
ブロック毎に、前記複数の候補ブロックのうち該現画像
ブロックに類似する何れか1つの候補ブロックのブロッ
ク位置と該現画像ブロックのブロック位置とによって、
前記動きベクトルを特定する動きベクトル探索装置であ
って、前記現画像ブロックの画素データを出力する現画
像データ出力手段と、前記参照画像の画素データを記憶
し、H,Lをそれぞれ整数とするとき、前記候補ブロッ
クをそれぞれ少なくとも2つ含んだH行L列の画素によ
り表わされる複数のサーチウィンドウの画素データを出
力可能な参照画像データ記憶手段と、前記サーチウィン
ドウおよび前記現画像ブロックのサイズに応じた(H−
N+1)行(L−M+1)列の探索領域を形成し、該探
索領域内に前記サーチウィンドウ内の各候補ブロックの
画素データの一部を入力して保持するとともに、該保持
した画素データを前記探索領域の所定方向に転送する
(H−N+1)×(L−M+1)個の第1レジスタを有
する第1の画素データ転送保持手段と、前記第1の画素
データ転送保持手段の第1レジスタとの間で画素データ
を授受する複数の第2レジスタを有し、前記第1の画素
データ転送保持手段と共に前記サーチウィンドウの画素
データを前記探索領域を通る所定の転送経路に沿って転
送する第2の画素データ転送保持手段と、前記転送経路
に沿って転送された画素データの一部を前記第1および
第2の画素データ転送保持手段から入力し、該入力した
画素データを前記第1および第2の画素データ転送保持
手段に戻すよう出力するM×H個の第3レジスタを有す
る第3の画素データ転送保持手段と、前記サーチウィン
ドウの画素データを前記第1および第2の画素データ転
送保持手段に入力させるとともに、前記第1および第2
の画素データ転送保持手段により前記サーチウィンドウ
の画素データを前記転送経路に沿って転送させるウィン
ドウデータ転送制御手段と、前記現画像データ出力手段
から出力された現画像ブロックの画素データと前記第1
の画素データ転送保持手段に保持された画素データとに
基づいて、前記現画像ブロックの各々に対し、前記現画
像ブロックと前記複数の候補ブロックとの間の画像の差
を表わす複数のディストーションをそれぞれ算出するデ
ィストーション算出手段と、前記現画像ブロックの各々
に対し算出された複数のディストーションの値のうち最
小値を検出して、前記類似する1つの候補ブロックを特
定する類似ブロック特定手段と、前記第1および第2の
画素データ転送保持手段により画素データが転送される
とき、前記第1および第2の画素データ転送保持手段に
入力された画素データのうち前記サーチウィンドウの1
列目からM列目までの各列の画素データを前記第1およ
び第2の画素データ転送保持手段から排出しつつ前記第
3の画素データ転送保持手段に保持させる排出データ保
持制御手段と、前記第3の画素データ転送保持手段によ
り前記第1および第2の画素データ転送保持手段に画素
データが転送されるとき、前記第3の画素データ転送保
持手段に入力された画素データのうち前記サーチウィン
ドウのM列目から1列目までの各列の画素データを前記
第3の画素データ転送保持手段から排出しつつ前記第1
および第2の画素データ転送保持手段に保持させる戻し
データ転送制御手段と、を備え、前記ディストーション
算出手段が、前記第3の画素データ転送保持手段から前
記第1および第2の画素データ転送保持手段に戻された
画素データを用いて、前記現画像ブロックとは異なる現
画像ブロックに対応するディストーション算出を行なう
ことを特徴とする。
The invention according to claim 18 is an apparatus for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image. When N and M are integers, the current image includes a plurality of current image blocks represented by N rows and M columns of pixels having pixel data, and the reference image has the current image blocks each having pixel data. And a plurality of candidate blocks of the same size as the current image block, and for each of the current image blocks, a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block. By
A motion vector searching device for specifying the motion vector, wherein current image data output means for outputting pixel data of the current image block, and pixel data of the reference image are stored, and H and L are integers, respectively. A reference image data storage means capable of outputting pixel data of a plurality of search windows represented by pixels in H rows and L columns each including at least two of the candidate blocks, and according to sizes of the search window and the current image block. (H-
A search area of (N + 1) rows (LM + 1) columns is formed, a part of the pixel data of each candidate block in the search window is input and held in the search area, and the held pixel data is A first pixel data transfer holding unit having (H−N + 1) × (L−M + 1) first registers for transferring data in a predetermined direction of the search area; a first register of the first pixel data transfer holding unit; A plurality of second registers for transmitting and receiving pixel data between the first and second pixel data transfer means, and transferring the pixel data of the search window along a predetermined transfer path passing through the search area together with the first pixel data transfer and holding means. And a part of the pixel data transferred along the transfer path from the first and second pixel data transfer and holding means, and the input pixel data is And third pixel data transfer and holding means having M × H third registers for outputting the data back to the second pixel data transfer and holding means, and converting the pixel data of the search window into the first and second pixel data. Input to the transfer holding means and the first and second
Window data transfer control means for causing the pixel data of the search window to be transferred along the transfer path by the pixel data transfer and holding means; and the pixel data of the current image block output from the current image data output means and the first
Based on the pixel data held by the pixel data transfer holding unit, a plurality of distortions representing the image difference between the current image block and the plurality of candidate blocks are respectively generated for each of the current image blocks. A distortion calculating means for calculating, a similar block specifying means for detecting a minimum value among a plurality of distortion values calculated for each of the current image blocks and specifying the one similar candidate block; When the pixel data is transferred by the first and second pixel data transfer and holding means, one of the search windows in the pixel data input to the first and second pixel data transfer and holding means is selected.
Discharging data holding control means for holding the third pixel data transfer holding means while discharging pixel data of each column from the column to the Mth column from the first and second pixel data transfer holding means; When the pixel data is transferred to the first and second pixel data transfer holding units by the third pixel data transfer holding unit, the search window is selected from the pixel data input to the third pixel data transfer holding unit. While discharging pixel data of each column from the Mth column to the first column from the third pixel data transfer holding unit.
And return data transfer control means for causing the second pixel data transfer and holding means to hold the data. Using the pixel data returned to the above, a distortion calculation corresponding to a current image block different from the current image block is performed.

【0043】請求項19に記載の発明は、請求項18に
記載の動きベクトル探索装置において、前記ウィンドウ
データ転送制御手段が、前記第1レジスタおよび第2レ
ジスタにより、前記サーチウィンドウ内で隣接する2つ
の画素列の画素データを互いに列方向で逆方向に転送さ
せ、かつ、前記サーチウィンドウ内の画素データを列方
向に往復移動させながら行方向の一方側に転送させると
ともに、前記サーチウィンドウの1列目からM列目まで
のM列分の画素データを、前記行方向の他方側に戻すよ
う転送させ、さらに、これらM列分の画素データが前記
何れかの現画像ブロックに対応するディストーション算
出開始時の位置に復帰したとき、前記入力画素データの
転送方向を再度前記行方向の一方側に切り換え、前記デ
ィストーション算出手段が、前記第3レジスタから第1
および第2レジスタに戻されたM列分の画素データを用
いて、前記現画像ブロックとは異なる現画像ブロックに
対応するディストーションを算出することを特徴とす
る。
According to a nineteenth aspect of the present invention, in the motion vector search device according to the eighteenth aspect, the window data transfer control means uses the first register and the second register to select two adjacent data in the search window. The pixel data in one pixel column is transferred in the opposite direction in the column direction, and the pixel data in the search window is transferred to one side in the row direction while reciprocating in the column direction. The pixel data for M columns from the first column to the Mth column is transferred back to the other side in the row direction, and the pixel data for these M columns is used to start the distortion calculation corresponding to any of the current image blocks. When the pixel returns to the position of the hour, the transfer direction of the input pixel data is switched again to one side in the row direction, and the distortion calculation is performed. Means, first from the third register 1
And calculating a distortion corresponding to a current image block different from the current image block by using the pixel data of M columns returned to the second register.

【0044】請求項20に記載の発明は、動画像を部分
的に構成する現画像を前記動画像を部分的に構成する参
照画像に基づいて予測するのに用いられる動きベクトル
を探索する装置であり、前記現画像が画素データを有す
る複数行複数列の画素により表わされる複数の現画像ブ
ロックを含み、前記参照画像がそれぞれ画素データを有
する前記現画像ブロックと同一サイズの複数の候補ブロ
ックを含み、前記現画像ブロック毎に、前記複数の候補
ブロックのうち該現画像ブロックに類似する何れか1つ
の候補ブロックのブロック位置と該現画像ブロックのブ
ロック位置とによって、前記動きベクトルを特定する動
きベクトル探索装置であって、前記現画像ブロックの画
素データを出力する現画像データ出力手段と、前記参照
画像の画素データを記憶し、前記候補ブロックをそれぞ
れ少なくとも2つ含んだ複数のサーチウィンドウの画素
データを出力可能な参照画像データ記憶手段と、前記サ
ーチウィンドウおよび前記現画像ブロックのサイズに応
じた探索領域を形成し、該探索領域内に前記サーチウィ
ンドウ内の各候補ブロックの画素データの一部を入力し
て保持するとともに、該保持した画素データを前記探索
領域の所定方向に転送する第1の画素データ転送保持手
段と、前記第1の画素データ転送保持手段との間で画素
データを授受し、前記第1の画素データ転送保持手段と
共に前記サーチウィンドウの画素データを前記探索領域
を通る所定の転送経路に沿って転送する第2の画素デー
タ転送保持手段と、前記転送経路に沿って転送された画
素データの一部を前記第1および第2の画素データ転送
保持手段から入力し、該入力した画素データを前記第1
および第2の画素データ転送保持手段に戻すよう出力す
る第3の画素データ転送保持手段と、前記参照画像デー
タ記憶手段から前記複数のうち何れかのサーチウィンド
ウの一部の画素データを含む所定画素領域分ずつ画素デ
ータを読み出して記憶するとともに、記憶済のサーチウ
ィンドウの画素データを前記参照画像データ記憶手段か
らのデータ転送速度より大きい転送速度で前記第1およ
び第2の画素データ転送保持手段に供給する高速転送記
憶手段と、前記高速転送記憶手段に記憶されたサーチウ
ィンドウの画素データを前記第1および第2の画素デー
タ転送保持手段に入力させるとともに、前記複数のうち
少なくとも2つの候補ブロックを前記探索領域内に順次
入力させるよう、前記第1および第2の画素データ転送
保持手段により前記サーチウィンドウの画素データを前
記転送経路に沿って転送させるウィンドウデータ転送制
御手段と、前記現画像データ出力手段から出力された現
画像ブロックの画素データと前記第1の画素データ転送
保持手段に保持された画素データとに基づいて、前記現
画像ブロックの各々に対し、前記現画像ブロックと前記
複数の候補ブロックとの間の画像の差を表わす複数のデ
ィストーションをそれぞれ算出するディストーション算
出手段と、前記現画像ブロックの各々に対し算出された
複数のディストーションの値のうち最小値を検出して、
前記類似する1つの候補ブロックを特定する類似ブロッ
ク特定手段と、前記第1および第2の画素データ転送保
持手段により画素データが転送されるとき、前記第1お
よび第2の画素データ転送保持手段に入力された画素デ
ータのうち前記サーチウィンドウの1列目から所定列分
だけ各列の画素データを前記第1および第2の画素デー
タ転送保持手段から排出しつつ前記第3の画素データ転
送保持手段に保持させる排出データ保持制御手段と、前
記第3の画素データ転送保持手段により前記第1および
第2の画素データ転送保持手段に画素データが転送され
るとき、前記第3の画素データ転送保持手段に入力され
た各列の画素データを前記第3の画素データ転送保持手
段から排出しつつ前記第1および第2の画素データ転送
保持手段に保持させる戻しデータ転送制御手段と、を備
え、前記高速転送記憶手段が、前記参照画像データ記憶
手段から読み出し記憶している前記所定画素領域分の画
素データのうち、前記探索領域内に戻された画素データ
に続く転送順序の画素データを前記第1および第2の画
素データ転送保持手段に再度入力させ、前記ディストー
ション算出手段が、前記第3の画素データ転送保持手段
から前記第1および第2の画素データ転送保持手段に戻
された画素データと、前記高速転送記憶手段から前記第
1および第2の画素データ転送保持手段に再度入力され
た画素データとを用いて、前記現画像ブロックとは異な
る現画像ブロックに対応するディストーション算出を行
なうことを特徴とする。
According to a twentieth aspect of the present invention, there is provided an apparatus for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image. The current image includes a plurality of current image blocks represented by pixels in a plurality of rows and columns having pixel data, and the reference image includes a plurality of candidate blocks of the same size as the current image block each having pixel data. A motion vector for specifying the motion vector by a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block for each of the current image blocks. A search device, comprising: current image data output means for outputting pixel data of the current image block; and pixel data of the reference image. Storing reference image data storage means capable of outputting pixel data of a plurality of search windows each including at least two of the candidate blocks, and forming a search area according to the size of the search window and the current image block; First pixel data transfer holding means for inputting and holding a part of pixel data of each candidate block in the search window in the search area, and transferring the held pixel data in a predetermined direction of the search area; And the first pixel data transfer and holding means, and transfers pixel data along with the first pixel data transfer and holding means along a predetermined transfer path through the search area with the pixel data of the search window. A second pixel data transfer holding unit for transferring, and a part of the pixel data transferred along the transfer path the first and second pixel data transfer means. Pixel data transfer type from the holding means, the input the pixel data first has
And a third pixel data transfer and holding unit that outputs the pixel data to be returned to the second pixel data transfer and holding unit; Pixel data is read out and stored for each area, and the stored search window pixel data is transferred to the first and second pixel data transfer holding units at a transfer rate higher than the data transfer rate from the reference image data storage unit. High-speed transfer storage means for supplying, and inputting the pixel data of the search window stored in the high-speed transfer storage means to the first and second pixel data transfer holding means, and The first and second pixel data transfer and holding means are configured to sequentially input the data into the search area. Window data transfer control means for transferring the pixel data of the search window along the transfer path, pixel data of the current image block output from the current image data output means and the first pixel data transfer holding means Distortion calculating means for calculating, for each of the current image blocks, a plurality of distortions representing an image difference between the current image block and the plurality of candidate blocks, based on the pixel data, Detecting a minimum value among a plurality of distortion values calculated for each of the image blocks,
A similar block specifying unit for specifying the similar one candidate block; and a first and a second pixel data transfer and holding unit, when pixel data is transferred by the first and the second pixel data transfer and holding unit. The third pixel data transfer holding unit while discharging the pixel data of each column by a predetermined column from the first column of the search window out of the input pixel data from the first and second pixel data transfer holding units. The third pixel data transfer holding unit when the pixel data is transferred to the first and second pixel data transfer holding units by the third pixel data transfer holding unit. The pixel data of each column input to the first and second pixel data transfer holding units are discharged from the third pixel data transfer holding unit while being discharged from the third pixel data transfer holding unit. Return data transfer control means, wherein the high-speed transfer storage means reads out the pixel data of the predetermined pixel area from the reference image data storage means and stores the pixels returned in the search area. The pixel data in the transfer order following the data is again input to the first and second pixel data transfer holding units, and the distortion calculating unit outputs the first and second pixels from the third pixel data transfer holding unit. Using the pixel data returned to the data transfer holding unit and the pixel data re-input from the high-speed transfer storage unit to the first and second pixel data transfer holding units, a current image different from the current image block is used. A distortion calculation corresponding to an image block is performed.

【0045】請求項21に記載の発明は、請求項20に
記載の動きベクトル探索装置において、前記第3の画素
データ転送保持手段から前記第1および第2の画素デー
タ転送保持手段に画素データが戻され、該画素データに
続く転送順序の画素データが前記高速転送記憶手段から
前記第1および第2の画素データ転送保持手段に再度入
力されることにより、前記複数のうち何れかのサーチウ
ィンドウの一部の画素データが前記探索領域に供給され
るとき、前記何れかのサーチウィンドウの残部の画素デ
ータを前記参照画像データ記憶手段から読み出して前記
高速転送記憶手段に記憶させることを特徴とする。
According to a twenty-first aspect of the present invention, in the motion vector search device according to the twentieth aspect, the pixel data is transferred from the third pixel data transfer holding means to the first and second pixel data transfer holding means. And the pixel data in the transfer order following the pixel data is input again from the high-speed transfer storage unit to the first and second pixel data transfer holding units, so that any one of the plurality of search windows When a part of the pixel data is supplied to the search area, the remaining pixel data of any of the search windows is read from the reference image data storage means and stored in the high-speed transfer storage means.

【0046】請求項22に記載の発明は、請求項16〜
21の何れかに記載の動きベクトル探索装置において、
前記第3の画素データ転送保持手段が、前記探索領域内
におけるディストーション算出開始時の画素データの位
置を保って画素データを入力し出力することを特徴とす
る。
The invention according to claim 22 is the invention according to claims 16 to
21. The motion vector search device according to any one of
The third pixel data transfer holding unit inputs and outputs the pixel data while maintaining the position of the pixel data at the start of the distortion calculation in the search area.

【0047】請求項23に記載の発明は、請求項16〜
22の何れかに記載の動きベクトル探索装置において、
前記ディストーション算出手段が、前記第1レジスタと
共に二次元的に配列された複数の演算器を有するシスト
リックアレー構造の演算回路によって構成されることを
特徴とする。
The invention according to claim 23 is the invention according to claims 16 to
22. The motion vector search device according to any one of
The distortion calculating means is constituted by an arithmetic circuit having a systolic array structure having a plurality of arithmetic units two-dimensionally arranged together with the first register.

【0048】請求項24に記載の発明は、請求項16〜
23の何れかに記載の動きベクトル探索装置において、
前記第2レジスタが前記探索領域の各列の1行目と(H
−N+1)行目の第1レジスタに接続されたことを特徴
とする。請求項25に記載の発明は、請求項24に記載
の動きベクトル探索装置において、前記第2レジスタ
が、(N−1)×(L−M+1)個設けられ、各列同数
になるよう配置されていることを特徴とする。
The invention according to claim 24 is the invention according to claims 16 to
23. The motion vector search device according to any one of
The second register stores the first row of each column of the search area and (H
−N + 1) is connected to the first register in the row. According to a twenty-fifth aspect of the present invention, in the motion vector search device according to the twenty-fourth aspect, (N-1) × (L−M + 1) second registers are provided and arranged so that each column has the same number. It is characterized by having.

【0049】請求項26に記載の発明は、請求項24に
記載の動きベクトル探索装置において、前記第2レジス
タが、前記探索領域の各列の1行目の第1レジスタに接
続された第2レジスタを含む(N−1)×(L−M+
1)個のレジスタと、前記探索領域の各列の(H−N+
1)行目の第1レジスタに接続された第2レジスタを含
む(N−1)×(L−M+1)個のレジスタからなり、
それぞれ各列同数になるよう配置され、前記第3レジス
タが、各列に(H+N−1)個設けられていることを特
徴とする。
According to a twenty-sixth aspect of the present invention, in the motion vector search device according to the twenty-fourth aspect, the second register is connected to a first register in a first row of each column of the search area. (N-1) x (LM-
1) registers and (H-N +
1) Consisting of (N−1) × (L−M + 1) registers including the second register connected to the first register in the row,
Each column is arranged to have the same number, and (H + N-1) third registers are provided in each column.

【0050】[0050]

【発明の実施の形態】以下、本発明の実施の形態につい
て添付図面を参照しつつ説明する。本発明に係る動きベ
クトル探索装置は、図1に示すように、現画像データ出
力手段1000、参照画像データ記憶手段2000、第
1の画素データ転送保持手段3001、第2の画素デー
タ転送保持手段3002、第3の画素データ転送保持手
段4000、ディストーション算出手段5000、類似
ブロック特定手段6000、ウィンドウデータ転送制御
手段8001、排出データ保持制御手段8002および
戻しデータ転送制御手段8003を備えている。
Embodiments of the present invention will be described below with reference to the accompanying drawings. As shown in FIG. 1, a motion vector search device according to the present invention includes a current image data output unit 1000, a reference image data storage unit 2000, a first pixel data transfer holding unit 3001, and a second pixel data transfer holding unit 3002. , A third pixel data transfer holding unit 4000, a distortion calculating unit 5000, a similar block specifying unit 6000, a window data transfer control unit 8001, a discharge data holding control unit 8002, and a return data transfer control unit 8003.

【0051】現画像データ出力手段1000は、現画像
ブロックの画素データを第1の画素データ転送保持手段
3001に出力するものである。参照画像データ記憶手
段2000は、参照画像の画素データを記憶し、候補ブ
ロックをそれぞれ少なくとも2つ含んだ複数のサーチウ
ィンドウの画素データを第2の画素データ転送保持手段
3002に出力するものである。
The current image data output means 1000 outputs the pixel data of the current image block to the first pixel data transfer holding means 3001. The reference image data storage unit 2000 stores pixel data of a reference image and outputs pixel data of a plurality of search windows including at least two candidate blocks to the second pixel data transfer holding unit 3002.

【0052】第1の画素データ転送保持手段および第2
の画素データ転送保持手段は、サーチウィンドウ内の各
候補ブロックの画素データの一部を入力して保持すると
ともに、第1および第2の画素データ転送保持手段との
間で画素データを授受し、該保持した画素データを所定
の転送経路に沿って転送するものである。第3の画素デ
ータ転送保持手段は、前記転送経路に沿って転送された
画素データの一部を前記第1および第2の画素データ転
送保持手段から入力し、該入力した画素データを前記第
1および第2の画素データ転送保持手段に戻すよう出力
するものである。
The first pixel data transfer holding means and the second
Means for inputting and holding a part of the pixel data of each candidate block in the search window, and exchanging pixel data with the first and second pixel data transfer and holding means, The held pixel data is transferred along a predetermined transfer path. The third pixel data transfer and holding unit inputs a part of the pixel data transferred along the transfer path from the first and second pixel data transfer and holding units, and stores the input pixel data in the first and second pixel data. And output to the second pixel data transfer holding means.

【0053】ディストーション算出手段5000は、前
記現画像データ出力手段から出力された現画像ブロック
の画素データと前記第1の画素データ転送保持手段に保
持された画素データとに基づいて、前記現画像ブロック
の各々に対し、前記現画像ブロックと前記複数の候補ブ
ロックとの間の画像の差を表わす複数のディストーショ
ンをそれぞれ算出し、また、前記第3の画素データ転送
保持手段から前記第1および第2の画素データ転送保持
手段に戻された画素データを用いて、前記現画像ブロッ
クとは異なる現画像ブロックに対応するディストーショ
ンをそれぞれ算出するものである。
The distortion calculation means 5000 calculates the current image block based on the pixel data of the current image block output from the current image data output means and the pixel data held in the first pixel data transfer holding means. , A plurality of distortions each representing an image difference between the current image block and the plurality of candidate blocks are calculated, and the first and second pixel data transfer and holding means calculate Using the pixel data returned to the pixel data transfer and holding means, a distortion corresponding to a current image block different from the current image block is calculated.

【0054】類似ブロック特定手段6000は、前記現
画像ブロックの各々に対し算出された複数のディストー
ションの値のうち最小値を検出して、前記類似する1つ
の候補ブロックを特定するものである。ウィンドウデー
タ転送制御手段8001は、前記サーチウィンドウの画
素データを前記第1および第2の画素データ転送保持手
段に入力させるとともに、前記第1および第2の画素デ
ータ転送保持手段により前記サーチウィンドウの画素デ
ータを前記転送経路に沿って転送させるものである。
The similar block specifying means 6000 detects the minimum value among a plurality of distortion values calculated for each of the current image blocks, and specifies the similar one candidate block. The window data transfer control unit 8001 inputs the pixel data of the search window to the first and second pixel data transfer holding units, and controls the first and second pixel data transfer holding units to store the pixel data of the search window. Data is transferred along the transfer path.

【0055】排出データ保持制御手段8002は、前記
第1および第2の画素データ転送保持手段により画素デ
ータが転送されるとき、前記第1および第2の画素デー
タ転送保持手段に入力された画素データのうち前記サー
チウィンドウの1列目から所定列分だけ各列の画素デー
タを前記第1および第2の画素データ転送保持手段から
排出しつつ前記第3の画素データ転送保持手段に保持さ
せるものである。
When the pixel data is transferred by the first and second pixel data transfer holding units, the discharged data holding control unit 8002 controls the pixel data input to the first and second pixel data transfer holding units. And discharging the pixel data of each column by a predetermined column from the first column of the search window from the first and second pixel data transfer holding units and holding the pixel data in the third pixel data transfer holding unit. is there.

【0056】戻しデータ転送制御手段8003は、前記
第3の画素データ転送保持手段に入力された各列の画素
データを前記第3の画素データ転送保持手段から排出し
つつ前記第1および第2の画素データ転送保持手段に保
持させるものである。以上により、現画像データ出力手
段1000から出力された現画像ブロックの画素データ
と参照画像データ記憶手段2000から出力されたサー
チウィンドウの画素データに基づいて、現画像ブロック
と複数の候補ブロックとのディストーションを算出する
ことができ、また、現画像データ出力手段1000から
出力された現画像ブロックの画素データと第3の画素デ
ータ転送保持手段4000から戻されたサーチウィンド
ウの画素データに基づいて、現画像ブロックと複数の候
補ブロックとのディストーションを算出することができ
る。
The return data transfer control unit 8003 discharges the pixel data of each column input to the third pixel data transfer holding unit from the third pixel data transfer holding unit while discharging the pixel data from the third pixel data transfer holding unit. This is to be held by the pixel data transfer holding means. As described above, based on the pixel data of the current image block output from the current image data output unit 1000 and the pixel data of the search window output from the reference image data storage unit 2000, the distortion between the current image block and a plurality of candidate blocks is determined. Is calculated based on the pixel data of the current image block output from the current image data output unit 1000 and the pixel data of the search window returned from the third pixel data transfer and holding unit 4000. Distortion between the block and a plurality of candidate blocks can be calculated.

【0057】したがって、参照画像データ記憶手段20
00から第1の画素データ転送保持手段3001および
第2の画素データ転送保持手段3002にデータを転送
する早さよりも早い第3の画素データ転送保持手段40
00から第1の画素データ転送保持手段3001および
第2の画素データ転送保持手段3002にサーチウィン
ドウの画素データを入力することができ、ディストーシ
ョンを短時間で算出をすることができる。
Therefore, the reference image data storage means 20
The third pixel data transfer holding unit 40 is faster than the data is transferred from 00 to the first pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 3002.
From 00, the pixel data of the search window can be input to the first pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 3002, and the distortion can be calculated in a short time.

【0058】[0058]

【実施例】以下、本発明を図面に基づいて詳しく説明す
る。図1〜図38は、本発明に係る動きベクトル探索装
置の第1実施例を示す図である。図1に機能ブロック図
を示し、図2に構成例を示す。図1に示すように、動き
ベクトル探索装置は、現画像データ出力手段1000,
参照画像データ記憶手段2000,第1の画素データ転
送保持手段3001,第2の画素データ転送保持手段3
002,第3の画素データ転送保持手段4000,ディ
ストーション算出手段5000,類似ブロック特定手段
6000,ウィンドウデータ転送制御手段8001,排
出データ保持制御手段8002および戻しデータ転送制
御手段8003からなり、図2に示すように、第1の画
素データ転送保持手段3001,第2の画素データ転送
保持手段3002,第3の画素データ転送保持手段40
00およびディストーション算出手段5000は入力レ
ジスタIR,プロセッサエレメントPE,垂直サイドレ
ジスタVSおよび水平サイドレジスタHSから構成さ
れ、図3に示された異なる2つの現画像ブロックすなわ
ち、第1現画像ブロック110および第2現画像ブロッ
ク120に対する動きベクトルを現画像上の現画像ブロ
ックよりも先に符号化された参照画像上のサーチウィン
ドウ210内の複数の候補ブロック310に基づいて探
索するものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail with reference to the drawings. FIGS. 1 to 38 are diagrams showing a first embodiment of a motion vector search device according to the present invention. FIG. 1 shows a functional block diagram, and FIG. 2 shows a configuration example. As shown in FIG. 1, the motion vector search device includes a current image data output unit 1000,
Reference image data storage unit 2000, first pixel data transfer holding unit 3001, second pixel data transfer holding unit 3
002, a third pixel data transfer holding unit 4000, a distortion calculation unit 5000, a similar block specifying unit 6000, a window data transfer control unit 8001, a discharge data holding control unit 8002, and a return data transfer control unit 8003, as shown in FIG. As described above, the first pixel data transfer holding unit 3001, the second pixel data transfer holding unit 3002, and the third pixel data transfer holding unit 40
00 and the distortion calculating means 5000 are composed of an input register IR, a processor element PE, a vertical side register VS, and a horizontal side register HS. Two different current image blocks shown in FIG. (2) Search for a motion vector for the current image block 120 based on a plurality of candidate blocks 310 in a search window 210 on a reference image that is encoded earlier than the current image block on the current image.

【0059】ここで、図1,図2において画素データの
流れを実線の矢印で示し、ディストーションの流れを点
線、制御信号を一点鎖線で示す。また、図3に示される
図は、異なる2つの現画像ブロック110,120とサ
ーチウインドウ210および該サーチウインドウ210
内の各候補ブロック310の関係を示す図である。図1
2に示すように、プロセッサエレメントPEは画素デー
タ入力転送ユニット3100,ディストーション算出ユ
ニット5200およびディストーション出力転送ユニッ
ト5300からなる。
In FIGS. 1 and 2, the flow of pixel data is indicated by solid arrows, the flow of distortion is indicated by dotted lines, and the control signal is indicated by dashed lines. FIG. 3 shows two different current image blocks 110 and 120, a search window 210, and the search window 210.
FIG. 6 is a diagram showing the relationship between each candidate block 310 in FIG. FIG.
As shown in FIG. 2, the processor element PE includes a pixel data input transfer unit 3100, a distortion calculation unit 5200, and a distortion output transfer unit 5300.

【0060】はじめに、各手段の概要について説明す
る。現画像データ出力手段1000は、現画像を部分的
に構成する一つの現画像ブロックの画素データをディス
トーション算出手段5000に出力するものである。現
画像ブロックは任意のブロックサイズであってよいが、
以下の説明では図3に示されるように、第1現画像ブロ
ック110として、画素データ a(0,0),a(0,1),a(0,2), a(1,0),a(1,1),a(1,2), a(2,0),a(2,1)およびa(2,2) からなる3×3画素サイズのブロックとする。
First, the outline of each means will be described. The current image data output unit 1000 outputs pixel data of one current image block partially forming the current image to the distortion calculation unit 5000. The current image block may be of any block size,
In the following description, as shown in FIG. 3, pixel data a (0,0), a (0,1), a (0,2), a (1,0), A block of 3 × 3 pixels consisting of a (1,1), a (1,2), a (2,0), a (2,1) and a (2,2).

【0061】参照画像データ記憶手段2000は、サー
チウィンドウ内の画素データを第1の画素データ転送保
持手段3001および第2の画素データ転送保持手段3
002に出力するために記憶し、出力するものである。
サーチウインドウのサイズは、現画像ブロックより大き
ければ任意のサイズでよいが、以下の説明では図3に示
されるように、サーチウィンドウ210として、画素デ
ータ b(0,0),b(0,1),b(0,2),b(0,
3),b(0,4), b(1,0),b(1,1),b(1,2),b(1,
3),b(1,4), b(2,0),b(2,1),b(2,2),b(2,
3),b(2,4), b(3,0),b(3,1),b(3,2),b(3,
3),b(3,4), b(4,0),b(4,1),b(4,2),b(4,
3)およびb(4,4)からなる5×5画素サイズとす
る。
The reference image data storage means 2000 stores the pixel data in the search window in the first pixel data transfer holding means 3001 and the second pixel data transfer holding means 3.
002 for storage and output.
The size of the search window may be any size as long as it is larger than the current image block. In the following description, as shown in FIG. 3, the search window 210 is used as pixel data b (0,0), ), B (0, 2), b (0,
3), b (0, 4), b (1, 0), b (1, 1), b (1, 2), b (1,
3), b (1, 4), b (2, 0), b (2, 1), b (2, 2), b (2,
3), b (2, 4), b (3, 0), b (3, 1), b (3, 2), b (3, 3)
3), b (3,4), b (4,0), b (4,1), b (4,2), b (4,4)
3) and b (4, 4) are set to a 5 × 5 pixel size.

【0062】第1の画素データ転送保持手段3001お
よび第2の画素データ転送保持手段3002は、入力レ
ジスタIR,垂直サイドレジスタVSおよびプロセッサ
エレメントPEの画素データ入力転送ユニット3100
からなり、入力された画素データを各レジスタおよび各
プロセッサエレメントPE間で繰り返し転送させ、各レ
ジスタおよび各プロセッサエレメントPEに保持させる
ものである。
The first pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 3002 are provided with an input register IR, a vertical side register VS, and a pixel data input transfer unit 3100 of the processor element PE.
The input pixel data is repeatedly transferred between each register and each processor element PE, and held in each register and each processor element PE.

【0063】第3の画素データ転送保持手段4000は
水平サイドレジスタHSからなり、プロセッサエレメン
トPEまたは垂直サイドレジスタVSから排出された画
素データを受取り、水平サイドレジスタHS間を繰り返
し転送させながら、各水平サイドレジスタHSに保持す
るものである。また、各水平サイドレジスタHSに保持
した画素データをプロセッサエレメントPEまたは垂直
サイドレジスタVSに再び戻すように転送するものであ
る。
The third pixel data transfer holding means 4000 comprises a horizontal side register HS, receives the pixel data discharged from the processor element PE or the vertical side register VS, and repeatedly transfers the horizontal data between the horizontal side registers HS. This is held in the side register HS. The pixel data held in each horizontal side register HS is transferred back to the processor element PE or the vertical side register VS.

【0064】図12に示すように、ディストーション算
出手段5000は、プロセッサエレメントPEのディス
トーション算出ユニット5200およびディストーショ
ン出力転送ユニット5300からなり、現画像ブロック
内の各画素データをサーチウインドウの各候補ブロック
内の位置的に対応する各画素データから減算したものを
正数データに変換し、正数変換後の各画素のディストー
ションすなわち局所ディストーションをブロック単位に
合計することによって、現画像上の現画像ブロックと参
照画像上のサーチウインドウ内の各候補ブロックとの間
の各ディストーションを算出し、類似ブロック特定手段
6000へ出力転送するものである。
As shown in FIG. 12, the distortion calculating means 5000 includes a distortion calculating unit 5200 and a distortion output transfer unit 5300 of the processor element PE, and converts each pixel data in the current image block into each candidate block in each search window candidate block. The result of subtraction from each pixel data corresponding to the position is converted to positive data, and the distortion of each pixel after the positive conversion, that is, the local distortion is summed up in block units, thereby referring to the current image block on the current image. Each distortion between each candidate block in the search window on the image and each candidate block is calculated and output to the similar block specifying unit 6000.

【0065】類似ブロック特定手段6000は、ディス
トーション算出手段5000により算出されたディスト
ーションのうちの最小のディストーションを検出して、
検出された最小ディストーションに対応するサーチウィ
ンドウ内の候補ブロックを特定し、動きベクトルを算出
するものである。信号出力ユニット8000は、現画像
データ出力手段1000,第1の画素データ転送保持手
段3001,第2の画素データ転送保持手段3002,
第3の画素データ転送保持手段4000,ディストーシ
ョン算出手段5000および類似ブロック特定手段60
00の動作を制御するものである。
The similar block specifying means 6000 detects the minimum distortion among the distortions calculated by the distortion calculating means 5000,
This is to identify a candidate block in the search window corresponding to the detected minimum distortion and calculate a motion vector. The signal output unit 8000 includes a current image data output unit 1000, a first pixel data transfer holding unit 3001, a second pixel data transfer holding unit 3002,
Third pixel data transfer holding unit 4000, distortion calculating unit 5000, and similar block specifying unit 60
00 is controlled.

【0066】図4に示されるように、信号出力ユニット
8000は、第1〜第9信号出力端子P1〜P9を有し
ており、各信号出力端子P1〜P9から出力される各信
号は、現画像データ出力手段1000,第1の画素デー
タ転送保持手段3001,第2の画素データ転送保持手
段3002,第3の画素データ転送保持手段4000,
ディストーション算出手段5000および類似ブロック
特定手段6000の各手段の動作を制御するための信号
であり、各手段に出力される。
As shown in FIG. 4, signal output unit 8000 has first to ninth signal output terminals P1 to P9, and each signal output from each signal output terminal P1 to P9 is Image data output means 1000, first pixel data transfer holding means 3001, second pixel data transfer holding means 3002, third pixel data transfer holding means 4000,
This is a signal for controlling the operation of each unit of the distortion calculating unit 5000 and the similar block specifying unit 6000, and is output to each unit.

【0067】信号出力ユニット8000の各信号出力端
子P1〜P9から出力される各信号の動作は、図5から
図10のタイムチャートに示される。図中のc1,c
2,c3,...は後で述べるクロックパルス信号CK
1の1クロック目の立ち上がりから2クロック目の立ち
上がりまでの期間をc1として、以後、期間c2,c
3,...と呼ぶことにする。図5〜図8に示される図
は、参照画像データ記憶手段2000,第1の画素デー
タ転送保持手段3001,第2の画素データ転送保持手
段3002,第3の画素データ転送保持手段4000お
よびディストーション算出手段5000に出力される信
号と画素データの入力状態を示す図であり、図9,図1
0に示される図は、類似ブロック特定手段6000に出
力される信号と各データとの関係を示す図である。
The operation of each signal output from each signal output terminal P1 to P9 of the signal output unit 8000 is shown in the time charts of FIGS. C1, c in the figure
2, c3,. . . Is a clock pulse signal CK described later.
The period from the rising edge of the first clock to the rising edge of the second clock is c1.
3,. . . I will call it. FIGS. 5 to 8 show a reference image data storage unit 2000, a first pixel data transfer holding unit 3001, a second pixel data transfer holding unit 3002, a third pixel data transfer holding unit 4000, and a distortion calculation. FIGS. 9 and 1 are diagrams showing input states of a signal output to a means 5000 and pixel data.
FIG. 0 shows a relationship between a signal output to the similar block specifying unit 6000 and each data.

【0068】また、これらの信号は2値のパルス信号で
あり、ローレベルのときは0を表わし、ハイレベルのと
きは1を表わす。以後の説明においても信号レベルは0
または1と表わすものとする。ここで、図5〜図10に
示されたRは、現画像データ出力手段1000に入力さ
れる現画像ブロックの画素データを示し、S0およびS
1は、参照画像データ記憶手段2000から第2の画素
データ転送保持手段3002に入力されるサーチウイン
ドウの画素データを示し、LMVy,CTx,Min,
MyおよびMxは、類似ブロック特定手段6000にお
いて、各処理段階で各機器より出力されるデータであ
り、その内容については後述するものとし、MVx,y
は、類似ブロック特定手段6000で求められた動きベ
クトルを示す。
These signals are binary pulse signals. When the signals are low, they represent 0, and when they are high, they represent 1. In the following description, the signal level is 0.
Or 1 Here, R shown in FIGS. 5 to 10 indicates the pixel data of the current image block input to the current image data output means 1000, and S0 and S
Reference numeral 1 denotes pixel data of a search window input from the reference image data storage unit 2000 to the second pixel data transfer holding unit 3002, and LMVy, CTx, Min,
My and Mx are data output from each device at each processing stage in the similar block specifying means 6000, and the contents thereof will be described later, and MVx, y
Indicates a motion vector obtained by the similar block specifying unit 6000.

【0069】信号出力ユニット8000の各信号出力端
子P1〜P9から出力される各信号は、以下のとおりで
ある。第1信号出力端子P1から出力される信号は、ク
ロックパルス信号CK1であり、本装置の基本となるク
ロックパルス信号であり、クロックパルス信号CK1を
基準として、全ての信号が制御され、さらに各手段の動
作が制御されるものである。
The signals output from the signal output terminals P1 to P9 of the signal output unit 8000 are as follows. The signal output from the first signal output terminal P1 is a clock pulse signal CK1, which is a basic clock pulse signal of the present apparatus. All signals are controlled based on the clock pulse signal CK1, and Is controlled.

【0070】第2信号出力端子P2から出力される信号
は、パルス信号CK2で、クロックパルス信号CK1と
同じパルス幅および同じ周期をもち、クロックパルス信
号CK1の1クロック目に同期して出力される。本信号
の意味はクロックパルス信号CK1と次のように区別し
ている。すなわち、クロックパルス信号CK1は現画像
データ出力手段1000,第1の画素データ転送保持手
段3001,第2の画素データ転送保持手段3002,
第3の画素データ転送保持手段4000およびディスト
ーション算出手段5000において、ディストーション
を算出するまでの間の動作を制御するための信号であ
り、パルス信号CK2はディストーションをもとにディ
ストーション算出手段5000および類似ブロック特定
手段6000において最小ディストーションおよび動き
ベクトルを特定する動作の制御をするための信号であ
る。
The signal output from the second signal output terminal P2 is a pulse signal CK2 having the same pulse width and the same cycle as the clock pulse signal CK1, and is output in synchronization with the first clock of the clock pulse signal CK1. . The meaning of this signal is distinguished from the clock pulse signal CK1 as follows. That is, the clock pulse signal CK1 is supplied to the current image data output unit 1000, the first pixel data transfer holding unit 3001, the second pixel data transfer holding unit 3002,
The third pixel data transfer / holding unit 4000 and the distortion calculating unit 5000 are signals for controlling the operation until the distortion is calculated. It is a signal for controlling the operation of specifying the minimum distortion and the motion vector in the specifying unit 6000.

【0071】第3信号出力端子P3から出力される信号
は、パルス信号SLで、クロックパルス信号CK1の1
クロック目が出力される前に、クロックパルス信号の立
ち下がりに同期して、クロックパルス信号CK1の2倍
のパルス幅で出力され、以後、クロックパルス信号CK
1の3倍の周期で出力され、クロックパルス信号CK1
の15クロック目の立ち下がりに同期して出力された
後、クロックパルス信号CK1の5倍の周期で出力さ
れ、クロックパルス信号CK1の20クロック目の立ち
下がりに同期して出力され、以後、クロックパルス信号
CK1の3倍の周期で出力され、同様の動作を繰り返
し、クロックパルス信号CK1の15クロック目から数
えて34クロック目までを1サイクル、すなわち、クロ
ックパルス信号CK1の20クロックを1サイクルとし
て上記動作を繰り返す。
The signal output from the third signal output terminal P3 is a pulse signal SL, which is one of the clock pulse signals CK1.
Before the clock pulse is output, the clock pulse signal CK1 is output with a pulse width twice that of the clock pulse signal CK1 in synchronization with the fall of the clock pulse signal.
The clock pulse signal CK1 is output at a period three times as long as
Is output in synchronization with the falling edge of the clock pulse signal CK1, and is output in synchronization with the falling edge of the clock pulse signal CK1 at the 20th clock. The pulse signal CK1 is output at three times the cycle, and the same operation is repeated. One cycle is from the 15th clock to the 34th clock of the clock pulse signal CK1, that is, 20 clocks of the clock pulse signal CK1 as one cycle. The above operation is repeated.

【0072】本信号の意味は第1の画素データ転送保持
手段3001,第2の画素データ転送保持手段3002
および第3の画素データ転送保持手段4000におい
て、画素データの転送方向を右から左へ伝送するタイミ
ングおよび現画像データ出力手段1000において画素
データの転送方向を分岐させるタイミングをとるための
ものである。
The meaning of this signal is as follows: the first pixel data transfer holding means 3001, the second pixel data transfer holding means 3002
And the third pixel data transfer holding unit 4000 sets the timing for transmitting the pixel data transfer direction from right to left and the current image data output unit 1000 for branching the pixel data transfer direction.

【0073】第4信号出力端子P4から出力される信号
は、パルス信号SHで、クロックパルス信号CK1の2
倍のパルス幅で、クロックパルス信号CK1の10クロ
ック目の立ち下がりに同期して、クロックパルス信号C
K1の5倍の周期で出力され、クロックパルス信号CK
1の4倍のパルス幅で、クロックパルス信号CK1の1
5クロック目の立ち下がりに同期して、クロックパルス
信号CK1の15倍の周期で出力され、クロックパルス
信号CK1の2倍のパルス幅で、クロックパルス信号C
K1の30クロック目の立ち下がりに同期して出力さ
れ、以後クロックパルス信号CK1の10クロック目か
ら数えて29クロック目までを1サイクル、すなわち、
クロックパルス信号CK1の20クロックを1サイクル
として上記動作を繰り返す。
The signal output from the fourth signal output terminal P4 is a pulse signal SH, which is a signal of the clock pulse signal CK1.
The clock pulse signal C has a double pulse width and is synchronized with the falling edge of the tenth clock of the clock pulse signal CK1.
The clock pulse signal CK is output at a period five times as long as K1.
The pulse width of the clock pulse signal CK1 is 1
In synchronization with the falling edge of the fifth clock, the clock pulse signal CK1 is output at a cycle 15 times as long as the clock pulse signal CK1, and the pulse width of the clock pulse signal C is twice as large as that of the clock pulse signal CK1.
It is output in synchronization with the fall of the 30th clock of K1, and thereafter, one cycle from the 10th clock to the 29th clock of the clock pulse signal CK1, that is,
The above operation is repeated with 20 cycles of the clock pulse signal CK1 as one cycle.

【0074】本信号の意味は第3の画素データ転送保持
手段4000において第1の画素データ転送保持手段3
001および第2の画素データ転送保持手段3002か
ら排出された画素データを入力し、保持するタイミング
をとるためのものである。なお、第3の画素データ転送
保持手段4000に入力され、保持される画素データの
配置が、画素データ排出開始前のディストーション算出
開始時の各プロセッサエレメントPE(x,y)におけ
る画素データの配置を保つように本信号は動作するもの
とする。
The meaning of this signal is that the third pixel data transfer and holding means 4000
001 and the pixel data discharged from the second pixel data transfer holding unit 3002 are input and held at a timing. The arrangement of the pixel data input to and held by the third pixel data transfer holding unit 4000 is determined by the arrangement of the pixel data in each processor element PE (x, y) at the time of starting the distortion calculation before the start of the pixel data discharge. It is assumed that this signal operates so as to keep it.

【0075】第5信号出力端子P5から出力される信号
は、パルス信号SRで、クロックパルス信号CK1の6
倍のパルス幅で、クロックパルス信号CK1の18クロ
ック目の立ち下がりに同期して出力され、以後クロック
パルス信号CK1の20倍の周期で出力される。本信号
の意味は第1の画素データ転送保持手段3001,第2
の画素データ転送保持手段3002および第3の画素デ
ータ転送保持手段4000において、各プロセッサエレ
メントおよび各レジスタ間の画素データの転送方向を左
から右へ伝送する、つまり、画素データを戻すタイミン
グをとるためのものである。
The signal output from the fifth signal output terminal P5 is a pulse signal SR,
The clock pulse signal CK1 is output with a double pulse width in synchronization with the falling edge of the 18th clock of the clock pulse signal CK1, and then output at a cycle 20 times the clock pulse signal CK1. The meaning of this signal is the first pixel data transfer holding means 3001,
In the pixel data transfer holding unit 3002 and the third pixel data transfer holding unit 4000, the transfer direction of the pixel data between each processor element and each register is transmitted from left to right, that is, the timing for returning the pixel data is taken. belongs to.

【0076】第6信号出力端子P6から出力される信号
は、パルス信号LD1で、クロックパルス信号CK1の
2倍のパルス幅で、クロックパルス信号CK1の18ク
ロック目の立ち下がりに同期して、クロックパルス信号
CK1の11倍の周期で出力され、クロックパルス信号
CK1の29クロック目の立ち下がりに同期して、クロ
ックパルス信号CK1の9倍の周期で出力され、クロッ
クパルス信号CK1の38クロック目の立ち下がりに同
期して出力され、以後、クロックパルス信号CK1の1
8クロック目から数えて37クロック目までを1サイク
ル、すなわち、クロックパルス信号CK1の20クロッ
クを1サイクルとして上記動作を繰り返す。
The signal output from the sixth signal output terminal P6 is a pulse signal LD1, which has a pulse width twice that of the clock pulse signal CK1 and which is synchronized with the falling edge of the 18th clock of the clock pulse signal CK1. The pulse signal CK1 is output at a cycle 11 times longer than that of the clock pulse signal CK1. The clock signal CK1 is output at a cycle 9 times longer than that of the clock pulse signal CK1 in synchronization with the fall of the clock 29 at the 29th clock. The signal is output in synchronization with the falling edge.
The above operation is repeated with one cycle from the eighth clock to the 37th clock counted as one cycle, that is, one cycle of 20 clocks of the clock pulse signal CK1.

【0077】本信号の意味はディストーション算出手段
5000において、ディストーションを算出するタイミ
ングおよび出力あるいは転送するタイミングをとるため
のものである。第7信号出力端子P7から出力される信
号は、パルス信号LD2で、クロックパルス信号CK1
の2倍のパルス幅で、クロックパルス信号CK1の19
クロック目の立ち下がりに同期して、クロックパルス信
号CK1の11倍の周期で出力され、クロックパルス信
号CK1の30クロック目の立ち下がりに同期して、ク
ロックパルス信号CK1の9倍の周期で出力され、クロ
ックパルス信号CK1の39クロック目の立ち下がりに
同期して出力され、以後、クロックパルス信号CK1の
19クロック目から数えて38クロック目までを1サイ
クル、すなわち、クロックパルス信号CK1の20クロ
ックを1サイクルとして上記動作を繰り返す。
The meaning of this signal is to determine the timing for calculating the distortion and the timing for outputting or transferring the distortion in the distortion calculating means 5000. The signal output from the seventh signal output terminal P7 is a pulse signal LD2 and a clock pulse signal CK1.
Of the clock pulse signal CK1 with a pulse width twice as large as
The clock pulse signal CK1 is output at a period of 11 times in synchronization with the falling edge of the clock pulse, and the clock pulse signal CK1 is output at a period of 9 times the clock pulse signal CK1 in synchronization with the falling edge of the 30th clock. The clock pulse signal CK1 is output in synchronization with the 39th falling edge of the clock pulse signal CK1. Thereafter, one cycle extends from the 19th clock to the 38th clock of the clock pulse signal CK1, that is, 20 clocks of the clock pulse signal CK1. Is one cycle, and the above operation is repeated.

【0078】本信号の意味は類似ブロック特定手段60
00において、動きベクトルを求めるための各機器の動
作のタイミングをとるためのものである。第8信号出力
端子P8から出力される信号は、パルス信号CLで、ク
ロックパルス信号CK1の2倍のパルス幅で、クロック
パルス信号CK1の9クロック目の立ち下がりに同期し
て、クロックパルス信号CK1の11倍の周期で出力さ
れ、クロックパルス信号CK1の20クロック目の立ち
下がりに同期して、クロックパルス信号CK1の9倍の
周期で出力され、クロックパルス信号CK1の29クロ
ック目の立ち下がりに同期して出力され、以後、クロッ
クパルス信号CK1の9クロック目から数えて28クロ
ック目までを1サイクル、すなわち、クロックパルス信
号CK1の20クロックを1サイクルとして上記動作を
繰り返す。
The meaning of this signal is determined by the similar block specifying means 60.
At 00, the operation timing of each device for obtaining the motion vector is set. The signal output from the eighth signal output terminal P8 is a pulse signal CL having a pulse width twice that of the clock pulse signal CK1 and being synchronized with the falling edge of the ninth clock of the clock pulse signal CK1. Is output at a cycle nine times longer than the clock pulse signal CK1 in synchronism with the fall of the clock pulse signal CK1 at the 20th clock, and at the fall of the 29th clock of the clock pulse signal CK1. The clock pulse signal CK1 is output in synchronization, and thereafter, the above operation is repeated with one cycle from the ninth clock of the clock pulse signal CK1 to the 28th clock, that is, 20 cycles of the clock pulse signal CK1.

【0079】本信号の意味はディストーション算出手段
5000において、ディストーションを算出する際の積
算値をクリアするタイミングをとるためのものである。
第9信号出力端子P9から出力される信号は、パルス信
号SMV1で、クロックパルス信号CK1の2倍のパル
ス幅で、クロックパルス信号CK1の23クロック目の
立ち下がりに同期して、クロックパルス信号CK1の1
1倍の周期で出力され、クロックパルス信号CK1の3
4クロック目の立ち下がりに同期して、クロックパルス
信号CK1の9倍の周期で出力され、クロックパルス信
号CK1の43クロック目の立ち下がりに同期して出力
され、以後、クロックパルス信号CK1の23クロック
目から数えて42クロック目までを1サイクル、すなわ
ち、クロックパルス信号CK1の20クロックを1サイ
クルとして上記動作を繰り返す。
The meaning of this signal is to set a timing at which the distortion calculating means 5000 clears the integrated value when calculating the distortion.
The signal output from the ninth signal output terminal P9 is a pulse signal SMV1, which has a pulse width twice that of the clock pulse signal CK1 and which is synchronized with the falling edge of the 23rd clock of the clock pulse signal CK1. Of 1
The clock pulse signal CK1 is output at a cycle of 1 time and
The clock pulse signal CK1 is output at nine times the cycle in synchronization with the falling edge of the fourth clock, and is output in synchronization with the falling edge of the clock pulse signal CK1 at the 43rd clock. The above operation is repeated by setting one cycle from the clock to the 42th clock, that is, one cycle of 20 clocks of the clock pulse signal CK1.

【0080】本信号の意味は類似ブロック特定手段60
00において、動きベクトルを求めるタイミングをとる
ためのものである。動きベクトル探索装置の各手段の具
体例を以下に説明する。はじめに、各手段の構成につい
て説明する。図1における現画像データ出力手段100
0のブロック図を図19に示す。同図に示すように、現
画像データ出力手段1000はフリップフロップ111
0,1120,1130,1140,1210,123
0および1250と、セレクタ1220および1240
からなる。
The meaning of this signal is determined by the similar block specifying means 60.
At 00, the timing for obtaining the motion vector is set. Specific examples of each means of the motion vector search device will be described below. First, the configuration of each means will be described. Current image data output means 100 in FIG.
0 is shown in FIG. As shown in FIG.
0, 1120, 1130, 1140, 1210, 123
0 and 1250 and selectors 1220 and 1240
Consists of

【0081】フリップフロップ1110,1120,1
130,1140,1210,1230および1250
は、Dフリップフロップからなり、データ入力端子A,
信号入力端子Sおよびデータ出力端子Yを有し、信号入
力端子Sに入力された信号のパルスに同期して、データ
入力端子Aに入力されているデータをデータ出力端子Y
にラッチするものである。
The flip-flops 1110, 1120, 1
130, 1140, 1210, 1230 and 1250
Is composed of D flip-flops and has data input terminals A,
It has a signal input terminal S and a data output terminal Y, and synchronizes data input to the data input terminal A with a data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S.
Is to be latched.

【0082】セレクタ1220および1240は、第1
データ入力端子A,第2データ入力端子B,信号入力端
子Sおよびデータ出力端子Yを有し、信号入力端子Sに
入力された信号が0のとき第1データ入力端子Aに入力
されているデータをデータ出力端子Yから出力し、信号
入力端子Sに入力された信号が1のとき第2データ入力
端子Bに入力されているデータをデータ出力端子Yから
出力するものである。
The selectors 1220 and 1240 are connected to the first
It has a data input terminal A, a second data input terminal B, a signal input terminal S, and a data output terminal Y, and when the signal input to the signal input terminal S is 0, the data input to the first data input terminal A Is output from the data output terminal Y, and when the signal input to the signal input terminal S is 1, the data input to the second data input terminal B is output from the data output terminal Y.

【0083】現画像データ出力手段1000の全てのフ
リップフロップ1110,1120,1130,114
0,1210,1230および1250の信号入力端子
Sは、信号出力ユニット8000の第1信号出力端子P
1に電気的に接続されている。フリップフロップ111
0のデータ入力端子Aは、図示しない現画像データ記憶
手段に電気的に接続され、フリップフロップ1120の
データ入力端子Aは、フリップフロップ1110のデー
タ出力端子Yに電気的に接続されている。フリップフロ
ップ1130のデータ入力端子Aは、フリップフロップ
1120のデータ出力端子Yに電気的に接続され、フリ
ップフロップ1140のデータ入力端子Aは、フリップ
フロップ1130のデータ出力端子Yに電気的に接続さ
れている。フリップフロップ1210のデータ入力端子
Aは、フリップフロップ1130のデータ出力端子Yに
電気的に接続され、フリップフロップ1230のデータ
入力端子Aは、セレクタ1220のデータ出力端子Yに
電気的に接続され、フリップフロップ1250のデータ
入力端子Aは、セレクタ1240のデータ出力端子Yに
電気的に接続されている。
All the flip-flops 1110, 1120, 1130, 114 of the current image data output means 1000
0, 1210, 1230 and 1250 are connected to the first signal output terminal P of the signal output unit 8000.
1 electrically. Flip-flop 111
The data input terminal A of 0 is electrically connected to a current image data storage unit (not shown), and the data input terminal A of the flip-flop 1120 is electrically connected to the data output terminal Y of the flip-flop 1110. Data input terminal A of flip-flop 1130 is electrically connected to data output terminal Y of flip-flop 1120, and data input terminal A of flip-flop 1140 is electrically connected to data output terminal Y of flip-flop 1130. I have. Data input terminal A of flip-flop 1210 is electrically connected to data output terminal Y of flip-flop 1130, data input terminal A of flip-flop 1230 is electrically connected to data output terminal Y of selector 1220, The data input terminal A of the switch 1250 is electrically connected to the data output terminal Y of the selector 1240.

【0084】セレクタ1220の信号入力端子Sは、信
号出力ユニット8000の第3信号出力端子P3に電気
的に接続され、第1データ入力端子Aは、フリップフロ
ップ1210のデータ出力端子Yに電気的に接続され、
第2データ入力端子Bは、フリップフロップ1120の
データ出力端子Yに電気的に接続されている。セレクタ
1240の信号入力端子Sは、信号出力ユニット800
0の第3信号出力端子P3に電気的に接続され、第1デ
ータ入力端子Aは、フリップフロップ1230のデータ
出力端子Yに電気的に接続され、第2データ入力端子B
は、フリップフロップ1110のデータ出力端子Yに電
気的に接続されている。
The signal input terminal S of the selector 1220 is electrically connected to the third signal output terminal P3 of the signal output unit 8000, and the first data input terminal A is electrically connected to the data output terminal Y of the flip-flop 1210. Connected
The second data input terminal B is electrically connected to the data output terminal Y of the flip-flop 1120. The signal input terminal S of the selector 1240 is connected to the signal output unit 800
0 is electrically connected to the third signal output terminal P3, the first data input terminal A is electrically connected to the data output terminal Y of the flip-flop 1230, and the second data input terminal B
Are electrically connected to the data output terminal Y of the flip-flop 1110.

【0085】詳しく説明すると、フリップフロップ11
10のデータ入力端子Aに現画像ブロックブロックの画
素データa(0,0),a(0,1),a(0,2),
a(1,0),a(1,1),a(1,2)・・・が、
図5〜図8に示すクロックパルス信号CK1の7,8,
9,10,11,12・・・クロック目のそれぞれのパ
ルスに同期して記載順に入力されるようになっている。
More specifically, the flip-flop 11
The pixel data a (0,0), a (0,1), a (0,2), a (0,2),
a (1,0), a (1,1), a (1,2)...
7, 8, and 7 of the clock pulse signal CK1 shown in FIGS.
9, 10, 11, 12,... Are inputted in the order of description in synchronization with the respective pulses of the clock.

【0086】一方、フリップフロップ1140のデータ
出力端子Yから画素データa(0,0),a(0,
1),a(0,2),a(1,0),a(1,1),a
(1,2)・・・が、クロックパルス信号CK1の1
0,11,12,13,14,15・・・クロック目の
それぞれのパルスに同期して記載順に出力されるように
なっており、フリップフロップ1250のデータ出力端
子Yから画素データa(0,2),a(0,1),a
(0,0),a(1,2),a(1,1),a(1,
0)・・・が、クロックパルス信号CK1の10,1
1,12,13,14,15・・・クロック目のそれぞ
れのパルスに同期して記載順に出力されるようになって
いる。
On the other hand, from the data output terminal Y of the flip-flop 1140, the pixel data a (0,0), a (0,
1), a (0, 2), a (1, 0), a (1, 1), a
(1, 2)... Correspond to 1 of the clock pulse signal CK1.
0, 11, 12, 13, 14, 15,... Are output in the order of description in synchronization with the respective pulses of the clock. 2), a (0,1), a
(0,0), a (1,2), a (1,1), a (1,
0)... Are 10, 1 of the clock pulse signal CK1.
1, 12, 13, 14, 15,... Are output in the order of description in synchronization with the respective pulses of the clock.

【0087】図1における第1の画素データ転送保持手
段3001,第2の画素データ転送保持手段3002お
よび第3の画素データ転送保持手段4000は、図2お
よび図18に示すように、9個のプロセッサエレメント PE(0,0),PE(0,1),PE(0,2), PE(1,0),PE(1,1),PE(1,2), PE(2,0),PE(2,1),PE(2,2), 6個の垂直サイドレジスタ VS(0,3),VS(0,4), VS(1,3),VS(1,4), VS(2,3),VS(2,4), 15個の水平サイドレジスタ HS(−3,0),HS(−3,1),HS(−3,
2),HS(−3,3),HS(−3,4), HS(−2,0),HS(−2,1),HS(−2,
2),HS(−2,3),HS(−2,4), HS(−1,0),HS(−1,1),HS(−1,
2),HS(−1,3),HS(−1,4)、並びに、
5個の入力レジスタ IR(3,0),IR(3,1),IR(3,2),I
R(3,3),IR(3,4)を有している。 x=−3,−2,−1,0,1,2,3, y=0,1,2,3,4として、上述の各プロセッサエ
レメントPEをPE(x,y),各垂直サイドレジスタ
VSをVS(x,y),各水平サイドレジスタHSをH
S(x,y),各入力レジスタIRをIR(x,y)と
表わすものとする。
As shown in FIGS. 2 and 18, the first pixel data transfer holding means 3001, the second pixel data transfer holding means 3002, and the third pixel data transfer holding means 4000 in FIG. Processor element PE (0,0), PE (0,1), PE (0,2), PE (1,0), PE (1,1), PE (1,2), PE (2,0) , PE (2,1), PE (2,2), 6 vertical side registers VS (0,3), VS (0,4), VS (1,3), VS (1,4), VS (2,3), VS (2,4), 15 horizontal side registers HS (-3,0), HS (-3,1), HS (-3,
2), HS (−3, 3), HS (−3, 4), HS (−2, 0), HS (−2, 1), HS (−2,
2), HS (−2, 3), HS (−2, 4), HS (−1, 0), HS (−1, 1), HS (−1, 1)
2), HS (-1,3), HS (-1,4), and
Five input registers IR (3,0), IR (3,1), IR (3,2), I
R (3,3) and IR (3,4). Assuming that x = −3, −2, −1, 0, 1, 2, 3, y = 0, 1, 2, 3, 4, each processor element PE described above is denoted by PE (x, y) and each vertical side register VS is VS (x, y), and each horizontal side register HS is H
S (x, y) and each input register IR is represented as IR (x, y).

【0088】ここで、プロセッサエレメントPE(0,
0)の位置を基準として、第1列目のプロセッサエレメ
ントと呼ぶとするとき、第1列目のプロセッサエレメン
トPE(0,y)および第3列目のプロセッサエレメン
トPE(2,y)を奇数列のプロセッサエレメントと呼
び、第2列目のプロセッサエレメントPE(1,y)を
偶数列のプロセッサエレメントと以下の説明で呼ぶこと
にする。
Here, the processor element PE (0,
When the processor element in the first column is called the processor element PE (0, y) in the first column and the processor element PE (2, y) in the third column based on the position of the processor element PE (2, y) on the basis of the position of 0), The processor element PE (1, y) in the second column will be referred to as a processor element in an even column in the following description.

【0089】奇数列のプロセッサエレメントの入出力端
子を図11(a)に示し、偶数列のプロセッサエレメン
トの入出力端子を図11(b)に示す。同図に示すよう
に、奇数列の各プロセッサエレメントPE(x,y)
は、入力端子X,YUi,YLi,YRiおよびDi、
並びに、出力端子YUo,YLo,YRoおよびDoを
有し、さらに図示しない信号出力ユニット8000の各
信号(CK1,CK2,CL,LD1,SL,SR)出
力端子に接続された入力端子を有している。また、偶数
列の各プロセッサエレメントPE(x,y)は、YU
i、YUoのかわりに入力端子YDiおよび出力端子Y
Doを有している。
FIG. 11A shows the input / output terminals of the odd-numbered processor elements, and FIG. 11B shows the input / output terminals of the even-numbered processor elements. As shown in the figure, each processor element PE (x, y) in an odd column
Are input terminals X, YUi, YLi, YRi and Di,
It has output terminals YUo, YLo, YRo and Do, and further has an input terminal connected to each signal (CK1, CK2, CL, LD1, SL, SR) output terminal of the signal output unit 8000 (not shown). I have. Further, each processor element PE (x, y) in the even-numbered column is YU
i, YUo instead of input terminal YDi and output terminal Y
Do.

【0090】図1における第1の画素データ転送保持手
段3001,第2の画素データ転送保持手段3002,
ウィンドウデータ転送制御手段8001およびディスト
ーション算出手段5000の各プロセッサエレメントP
E(x,y)の詳細構成ブロック図を図12に示す。同
図に示すように、各プロセッサエレメントPE(x,
y)は、セレクタ3110,フリップフロップ312
0,減算器5210,正数変換器5220,加算器52
30,フリップフロップ5240,反転器5250,論
理積演算器5260,セレクタ5310およびフリップ
フロップ5320を備えている。
The first pixel data transfer holding unit 3001, the second pixel data transfer holding unit 3002 in FIG.
Each processor element P of the window data transfer control means 8001 and the distortion calculation means 5000
FIG. 12 shows a detailed configuration block diagram of E (x, y). As shown in the drawing, each processor element PE (x,
y) is a selector 3110 and a flip-flop 312
0, subtractor 5210, positive number converter 5220, adder 52
30, a flip-flop 5240, an inverter 5250, an AND operator 5260, a selector 5310, and a flip-flop 5320.

【0091】はじめにプロセッサエレメントの構成機器
について個々に説明をする。各プロセッサエレメントP
E(x,y)のセレクタ3110は、第1データ入力端
子A,第2データ入力端子B,第3データ入力端子C,
第1信号入力端子S0,第2信号入力端子S1およびデ
ータ出力端子Yを有し、第1信号入力端子S0,第2信
号入力端子S1の入力信号の状態により第1データ入力
端子A,第2データ入力端子B,第3データ入力端子C
とデータ出力端子Yとの接続を切り換えるものである。
First, the components of the processor element will be individually described. Each processor element P
The selector 3110 of E (x, y) includes a first data input terminal A, a second data input terminal B, a third data input terminal C,
It has a first signal input terminal S0, a second signal input terminal S1, and a data output terminal Y. The first data input terminal A, the second data input terminal A, and the second Data input terminal B, third data input terminal C
And the connection between the data output terminal Y.

【0092】信号入力端子S1に入力された信号が1の
ときは、信号入力端子S0に入力された信号の状態に関
わらず、第3データ入力端子Cに入力されているデータ
をデータ出力端子Yから出力し、信号入力端子S1に入
力された信号が0のときは、信号入力端子S0に入力さ
れた信号の状態により、データ出力端子Yから出力する
データを第1データ入力端子Aと第2データ入力端子B
のデータで切換え、信号入力端子S0に入力された信号
が1のときは、第2データ入力端子Bに入力されている
データをデータ出力端子Yから出力し、信号入力端子S
0に入力された信号が0のときは、第1データ入力端子
Aに入力されているデータをデータ出力端子Yから出力
するものである。
When the signal input to the signal input terminal S1 is 1, the data input to the third data input terminal C is transferred to the data output terminal Y regardless of the state of the signal input to the signal input terminal S0. When the signal input to the signal input terminal S1 is 0, the data output from the data output terminal Y is output to the first data input terminal A and the second data input terminal depending on the state of the signal input to the signal input terminal S0. Data input terminal B
When the signal input to the signal input terminal S0 is 1, the data input to the second data input terminal B is output from the data output terminal Y, and the signal input terminal S0
When the signal input to 0 is 0, the data input to the first data input terminal A is output from the data output terminal Y.

【0093】各プロセッサエレメントPE(x,y)の
フリップフロップ3120は、Dフリップフロップから
なり、データ入力端子A,信号入力端子Sおよびデータ
出力端子Yを有し、信号入力端子Sに入力された信号の
パルスに同期して、データ入力端子Aに入力されている
データをデータ出力端子Yにラッチするものである。各
プロセッサエレメントPE(x,y)の減算器5210
は、第1データ入力端子A,第2データ入力端子Bおよ
びデータ出力端子Yを有し、第1データ入力端子Aに入
力されたデータから第2データ入力端子Bに入力された
データを減算してデータ出力端子Yから出力するもので
ある。
The flip-flop 3120 of each processor element PE (x, y) is composed of a D flip-flop, has a data input terminal A, a signal input terminal S, and a data output terminal Y, and is input to the signal input terminal S. The data input to the data input terminal A is latched to the data output terminal Y in synchronization with the signal pulse. Subtractor 5210 of each processor element PE (x, y)
Has a first data input terminal A, a second data input terminal B, and a data output terminal Y, and subtracts data input to the second data input terminal B from data input to the first data input terminal A. From the data output terminal Y.

【0094】各プロセッサエレメントPE(x,y)の
正数変換器5220は、データ入力端子Aおよびデータ
出力端子Yを有し、データ入力端子Aに入力されたデー
タを絶対値演算または二乗演算により正数データに変換
してデータ出力端子Yから出力するものである。各プロ
セッサエレメントPE(x,y)の加算器5230は、
第1データ入力端子A,第2データ入力端子Bおよびデ
ータ出力端子Yを有し、第1データ入力端子Aに入力さ
れたデータと第2データ入力端子Bに入力されたデータ
を加算してデータ出力端子Yから出力するものである。
The positive number converter 5220 of each processor element PE (x, y) has a data input terminal A and a data output terminal Y, and converts the data input to the data input terminal A by an absolute value operation or a square operation. The data is converted into positive data and output from the data output terminal Y. The adder 5230 of each processor element PE (x, y)
It has a first data input terminal A, a second data input terminal B, and a data output terminal Y. The data input to the first data input terminal A and the data input to the second data input terminal B are added to generate data. This is output from the output terminal Y.

【0095】各プロセッサエレメントPE(x,y)の
フリップフロップ5240は、Dフリップフロップから
なり、データ入力端子A,信号入力端子Sおよびデータ
出力端子Yを有し、信号入力端子Sに入力された信号の
パルスに同期して、データ入力端子Aに入力されている
データをデータ出力端子Yにラッチするものである。各
プロセッサエレメントPE(x,y)の反転器5250
は、信号入力端子Sおよびデータ出力端子Yを有し、信
号入力端子Sに入力された信号が0を表わす信号である
場合には、データ出力端子Yに全てのビットが1で表さ
れるデータを出力し、入力された信号が1を表わす信号
である場合には、データ出力端子Yに全てのビットが0
で表されるデータを出力するものである。
The flip-flop 5240 of each processor element PE (x, y) is composed of a D flip-flop, has a data input terminal A, a signal input terminal S, and a data output terminal Y, and is input to the signal input terminal S. The data input to the data input terminal A is latched to the data output terminal Y in synchronization with the signal pulse. Inverter 5250 of each processor element PE (x, y)
Has a signal input terminal S and a data output terminal Y. When the signal input to the signal input terminal S is a signal representing 0, the data output terminal Y has all bits represented by 1 Is output, and when the input signal is a signal representing 1, all bits are set to 0 at the data output terminal Y.
Is output.

【0096】各プロセッサエレメントPE(x,y)の
論理積演算器5260は、第1データ入力端子A,第2
データ入力端子Bおよびデータ出力端子Yを有し、第1
データ入力端子Aおよび第2データ入力端子Bに入力さ
れたデータをビット毎に論理積演算を行い、その結果得
られたデータをデータ出力端子Yに出力するものであ
る。
The AND operator 5260 of each processor element PE (x, y) has a first data input terminal A, a second data input terminal A,
A data input terminal B and a data output terminal Y;
It performs a logical AND operation on the data input to the data input terminal A and the second data input terminal B for each bit, and outputs the resulting data to the data output terminal Y.

【0097】各プロセッサエレメントPE(x,y)の
セレクタ5310は、第1データ入力端子A,第2デー
タ入力端子B,信号入力端子Sおよびデータ出力端子Y
を有し、信号入力端子Sに入力された信号が0のとき第
1データ入力端子Aに入力されているデータをデータ出
力端子Yから出力し、信号入力端子Sに入力された信号
が1のとき第2データ入力端子Bに入力されているデー
タをデータ出力端子Yから出力するものである。
The selector 5310 of each processor element PE (x, y) has a first data input terminal A, a second data input terminal B, a signal input terminal S, and a data output terminal Y.
When the signal input to the signal input terminal S is 0, the data input to the first data input terminal A is output from the data output terminal Y, and when the signal input to the signal input terminal S is 1 At this time, the data input to the second data input terminal B is output from the data output terminal Y.

【0098】各プロセッサエレメントPE(x,y)の
フリップフロップ5320は、Dフリップフロップから
なり、データ入力端子A,信号入力端子Sおよびデータ
出力端子Yを有し、信号入力端子Sに入力された信号の
パルスに同期して、データ入力端子Aに入力されている
データをデータ出力端子Yにラッチするものである。つ
ぎに、各プロセッサエレメントPE(x,y)の各構成
機器間の接続について説明する。
The flip-flop 5320 of each processor element PE (x, y) is composed of a D flip-flop, has a data input terminal A, a signal input terminal S and a data output terminal Y, and is input to the signal input terminal S. The data input to the data input terminal A is latched to the data output terminal Y in synchronization with the signal pulse. Next, the connection between the components of each processor element PE (x, y) will be described.

【0099】各プロセッサエレメントPE(x,y)の
セレクタ3110の第1データ入力端子Aは、プロセッ
サエレメントPE(x,y)が奇数列にある場合には、
一つ下側に位置する別のプロセッサエレメントPE
(x,y+1)の出力端子YUoまたは垂直サイドレジ
スタVS(x,3)の出力端子に入力端子YUiを介し
て電気的に接続され、プロセッサエレメントPE(x,
y)が偶数列にある場合には、一つ上側に位置する別の
プロセッサエレメントPE(x,y−1)の出力端子Y
Doまたは垂直サイドレジスタVS(x,4)の出力端
子に入力端子YDiを介して電気的に接続されている。
The first data input terminal A of the selector 3110 of each processor element PE (x, y) is connected to the first data input terminal A when the processor element PE (x, y) is in an odd column.
Another processor element PE located one below
It is electrically connected to the output terminal YUo of (x, y + 1) or the output terminal of the vertical side register VS (x, 3) via the input terminal YUi, and the processor element PE (x,
If y) is in an even-numbered column, the output terminal Y of another processor element PE (x, y-1) located one level above
Do or the output terminal of the vertical side register VS (x, 4) is electrically connected via the input terminal YDi.

【0100】セレクタ3110の第2データ入力端子B
は、一つ右側に位置する別のプロセッサエレメントPE
(x+1,y)の出力端子YLoまたは入力レジスタI
R(x+1,y)の出力端子に入力端子YLiを介して
電気的に接続されている。セレクタ3110の第3デー
タ入力端子Cは、一つ左側に位置する別のプロセッサエ
レメントPE(x−1,y)の出力端子YRoまたは水
平サイドレジスタHS(−1,y)の出力端子に入力端
子YRiを介して電気的に接続されている。
Second data input terminal B of selector 3110
Is another processor element PE located on the right
(X + 1, y) output terminal YLo or input register I
It is electrically connected to the output terminal of R (x + 1, y) via the input terminal YLi. The third data input terminal C of the selector 3110 is connected to the output terminal YRo of another processor element PE (x-1, y) located on the left side or the output terminal of the horizontal side register HS (-1, y). They are electrically connected via YRi.

【0101】セレクタ3110の第1信号入力端子S0
は、信号出力ユニット8000の第3信号出力端子P3
に電気的に接続され、第2信号入力端子S1は、信号出
力ユニット8000の第5信号出力端子P5に電気的に
接続されている。各プロセッサエレメントPE(x,
y)のフリップフロップ3120のデータ入力端子Aは
同じプロセッサエレメントPE(x,y)のセレクタ3
110のデータ出力端子Yに電気的に接続され、信号入
力端子Sは信号出力ユニット8000の第1信号出力端
子P1に電気的に接続されている。
The first signal input terminal S0 of the selector 3110
Is the third signal output terminal P3 of the signal output unit 8000.
And the second signal input terminal S1 is electrically connected to the fifth signal output terminal P5 of the signal output unit 8000. Each processor element PE (x,
y), the data input terminal A of the flip-flop 3120 is connected to the selector 3 of the same processor element PE (x, y).
110 is electrically connected to the data output terminal Y, and the signal input terminal S is electrically connected to the first signal output terminal P1 of the signal output unit 8000.

【0102】各プロセッサエレメントPE(x,y)の
減算器5210の第1データ入力端子Aは同じプロセッ
サエレメントPE(x,y)のフリップフロップ312
0のデータ出力端子Yに電気的に接続され、第2データ
入力端子Bは奇数列の各プロセッサエレメントにおいて
は、現画像データ出力手段1000のフリップフロップ
1140のデータ出力端子Yに入力端子Xを介して電気
的に接続され、偶数列の各プロセッサエレメントにおい
ては、現画像データ出力手段1000のフリップフロッ
プ1250のデータ出力端子Yに入力端子Xを介して電
気的に接続されている。
The first data input terminal A of the subtractor 5210 of each processor element PE (x, y) is connected to the flip-flop 312 of the same processor element PE (x, y).
0 is electrically connected to the data output terminal Y, and the second data input terminal B is connected to the data output terminal Y of the flip-flop 1140 of the current image data output means 1000 via the input terminal X in each odd-numbered processor element. Each of the processor elements in the even-numbered columns is electrically connected to the data output terminal Y of the flip-flop 1250 of the current image data output unit 1000 via the input terminal X.

【0103】各プロセッサエレメントPE(x,y)の
正数変換器5220のデータ入力端子Aは同じプロセッ
サエレメントPE(x,y)の減算器5210のデータ
出力端子Yに電気的に接続されている。各プロセッサエ
レメントPE(x,y)の加算器5230の第1データ
入力端子Aは同じプロセッサエレメントPE(x,y)
の正数変換器5220のデータ出力端子Yに電気的に接
続され、第2データ入力端子Bは同じプロセッサエレメ
ントPE(x,y)の論理積演算器5260のデータ出
力端子Yに電気的に接続されている。
The data input terminal A of the positive number converter 5220 of each processor element PE (x, y) is electrically connected to the data output terminal Y of the subtractor 5210 of the same processor element PE (x, y). . The first data input terminal A of the adder 5230 of each processor element PE (x, y) is connected to the same processor element PE (x, y).
Is electrically connected to the data output terminal Y of the positive number converter 5220, and the second data input terminal B is electrically connected to the data output terminal Y of the AND operator 5260 of the same processor element PE (x, y). Have been.

【0104】各プロセッサエレメントPE(x,y)の
フリップフロップ5240のデータ入力端子Aは同じプ
ロセッサエレメントPE(x,y)の加算器5230の
データ出力端子Yに電気的に接続され、信号入力端子S
は信号出力ユニット8000の第1信号出力端子P1に
電気的に接続されている。各プロセッサエレメントPE
(x,y)の反転器5250の信号入力端子Sは信号出
力ユニット8000の第8信号出力端子P8に電気的に
接続されている。
The data input terminal A of the flip-flop 5240 of each processor element PE (x, y) is electrically connected to the data output terminal Y of the adder 5230 of the same processor element PE (x, y), and the signal input terminal S
Is electrically connected to the first signal output terminal P1 of the signal output unit 8000. Each processor element PE
The signal input terminal S of the (x, y) inverter 5250 is electrically connected to the eighth signal output terminal P8 of the signal output unit 8000.

【0105】各プロセッサエレメントPE(x,y)の
論理積演算器5260の第1データ入力端子Aは同じプ
ロセッサエレメントPE(x,y)の反転器5250の
データ出力端子Yに電気的に接続され、第2データ入力
端子Bは同じプロセッサエレメントPE(x,y)のフ
リップフロップ5240のデータ出力端子Yに電気的に
接続されている。
The first data input terminal A of the AND operator 5260 of each processor element PE (x, y) is electrically connected to the data output terminal Y of the inverter 5250 of the same processor element PE (x, y). , The second data input terminal B is electrically connected to the data output terminal Y of the flip-flop 5240 of the same processor element PE (x, y).

【0106】各プロセッサエレメントPE(x,y)の
反転器5250と論理積演算器5260と加算器523
0とフリップフロップ5240の組合わせにより以下の
ような動作が可能となる。ここで、フリップフロップ5
240からクロックパルス信号CK1に同期してラッチ
され出力されているデータを前回データとし、正数変換
器5220から出力されているデータを今回データと呼
ぶとする。
Inverter 5250, AND operator 5260, and adder 523 of each processor element PE (x, y)
The combination of 0 and the flip-flop 5240 enables the following operation. Here, flip-flop 5
The data latched and output from 240 in synchronization with the clock pulse signal CK1 is referred to as previous data, and the data output from the positive number converter 5220 is referred to as current data.

【0107】反転器5250の信号入力端子Sに入力さ
れた信号が1のときは加算器5230では第2データ入
力端子Bに入力されたデータが0となるため、加算器5
230では第1データ入力端子Aに入力された今回デー
タがデータ出力端子Yにそのまま出力され、フリップフ
ロップ5240のデータ入力端子Aに入力される。一
方、反転器5250の信号入力端子Sに入力された信号
が0のときはフリップフロップ5240のデータ出力端
子Yから出力された前回データが、論理積演算器526
0の第2データ入力端子Bに入力され、その前回データ
がデータ出力端子Yから出力されて、加算器5230の
第2データ入力端子Bに入力されるため、加算器523
0では第1データ入力端子Aに入力された今回データ
と、フリップフロップ5240にラッチされ出力され、
第2データ入力端子Bに入力された前回データとを加算
してデータ出力端子Yにその結果が出力され、フリップ
フロップ5240のデータ入力端子Aに入力されるもの
である。
When the signal input to the signal input terminal S of the inverter 5250 is 1, the data input to the second data input terminal B becomes 0 in the adder 5230.
In 230, the current data input to the first data input terminal A is output to the data output terminal Y as it is, and is input to the data input terminal A of the flip-flop 5240. On the other hand, when the signal input to the signal input terminal S of the inverter 5250 is 0, the previous data output from the data output terminal Y of the flip-flop 5240 is output by the AND operator 526.
0 is input to the second data input terminal B of the adder 5230, and the previous data is output from the data output terminal Y and input to the second data input terminal B of the adder 5230.
At 0, the current data input to the first data input terminal A and the flip-flop 5240 are latched and output,
The result is added to the previous data input to the second data input terminal B, the result is output to the data output terminal Y, and the result is input to the data input terminal A of the flip-flop 5240.

【0108】各プロセッサエレメントPE(x,y)の
セレクタ5310の第1データ入力端子Aは、一つ右側
に位置する別のプロセッサエレメントPE(x+1,
y)のフリップフロップ5320のデータ出力端子Yに
入力端子Diを介して電気的に接続され、第2データ入
力端子Bは、同じプロセッサエレメントPE(x,y)
のフリップフロップ5240のデータ出力端子Yに電気
的に接続され、信号入力端子Sは、信号出力ユニット8
000の第6信号出力端子P6に電気的に接続されてい
る。
The first data input terminal A of the selector 5310 of each processor element PE (x, y) is connected to another processor element PE (x + 1,
y) is electrically connected to the data output terminal Y of the flip-flop 5320 via the input terminal Di, and the second data input terminal B is connected to the same processor element PE (x, y).
Is electrically connected to the data output terminal Y of the flip-flop 5240, and the signal input terminal S is connected to the signal output unit 8
000 to the sixth signal output terminal P6.

【0109】各プロセッサエレメントPE(x,y)の
フリップフロップ5320のデータ入力端子Aは同じプ
ロセッサエレメントPE(x,y)のセレクタ5310
のデータ出力端子Yに電気的に接続され、信号入力端子
Sは信号出力ユニット8000の第2信号出力端子P2
に電気的に接続されている。図1における第2の画素デ
ータ転送保持手段3002の入力レジスタIR(x,
y)の構成例を図13に示す。同図に示すように、入力
レジスタIR(x,y)は、フリップフロップ3220
からなる。
The data input terminal A of the flip-flop 5320 of each processor element PE (x, y) is connected to the selector 5310 of the same processor element PE (x, y).
Is electrically connected to a data output terminal Y of the second signal output terminal P2 of the signal output unit 8000.
Is electrically connected to The input register IR (x, x, x) of the second pixel data transfer holding unit 3002 in FIG.
FIG. 13 shows a configuration example of y). As shown in the figure, the input register IR (x, y) is a flip-flop 3220
Consists of

【0110】フリップフロップ3220は、Dフリップ
フロップからなり、データ入力端子A、信号入力端子S
およびデータ出力端子Yを有し、信号入力端子Sに入力
された信号のパルスに同期して、データ入力端子Aに入
力されているデータをデータ出力端子Yにラッチするも
のである。入力レジスタIR(3,0),IR(3,
1)およびIR(3,3)のフリップフロップ3220
のデータ入力端子Aは一つ下側に位置する別の入力レジ
スタIR(x,y+1)の出力端子Outに電気的に接
続され、入力レジスタIR(3,2)およびIR(3,
4)のフリップフロップ3220のデータ入力端子A
は、参照画像データ記憶手段2000のデータ出力端子
に電気的に接続され、全ての入力レジスタIR(x,
y)のフリップフロップ3220の信号入力端子Sは信
号出力ユニット8000の第1信号出力端子P1に電気
的に接続されている。
The flip-flop 3220 is composed of a D flip-flop, and has a data input terminal A and a signal input terminal S.
And a data output terminal Y, and latches data input to the data input terminal A to the data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S. Input registers IR (3,0), IR (3,3)
1) and IR (3,3) flip-flop 3220
Is electrically connected to the output terminal Out of another input register IR (x, y + 1) located one lower side, and the input registers IR (3, 2) and IR (3,
4) Data input terminal A of flip-flop 3220
Are electrically connected to the data output terminals of the reference image data storage means 2000, and all the input registers IR (x,
The signal input terminal S of the flip-flop 3220 of y) is electrically connected to the first signal output terminal P1 of the signal output unit 8000.

【0111】図1における第2の画素データ転送保持手
段3002の垂直サイドレジスタVS(x,y)の構成
例を図14,図15に示す。ここで、第1列目の垂直サ
イドレジスタVS(0,y)および第3列目の垂直サイ
ドレジスタVS(2,y)を奇数列の垂直サイドレジス
タと呼び、第2列目の垂直サイドレジスタVS(1,
y)を偶数列の垂直サイドレジスタと以下の説明で呼ぶ
ことにする。
FIGS. 14 and 15 show examples of the configuration of the vertical side register VS (x, y) of the second pixel data transfer holding means 3002 in FIG. Here, the first column vertical side registers VS (0, y) and the third column vertical side registers VS (2, y) are called odd-numbered column vertical side registers, and the second column vertical side registers. VS (1,
y) will be referred to as an even column vertical side register in the following description.

【0112】図14(a)に示す図は、奇数列の各垂直
サイドレジスタVS(x,y)を示す図であり、図14
(b)に示す図は、偶数列の各垂直サイドレジスタVS
(x,y)を示す図である。図14(a)に示すよう
に、奇数列の各垂直サイドレジスタVS(x,y)は、
入力端子YUi,YLi,YRiおよび出力端子YU
o,YLo,YRoを有し、さらに図示されない信号出
力ユニット8000の各信号(CK1,SL,SR)出
力端子に接続された入力端子を有している。また、図1
4(b)に示すように、偶数列の各垂直サイドレジスタ
VS(x,y)は、入力端子YDi,YLi,YRiお
よび出力端子YDo,YLo,YRoを有し、さらに図
示されない信号出力ユニット8000の各信号(CK
1,SL,SR)出力端子に接続された入力端子を有し
ている。
FIG. 14A is a diagram showing each vertical side register VS (x, y) in an odd-numbered column.
The diagram shown in (b) shows each of the vertical side registers VS in the even columns.
It is a figure showing (x, y). As shown in FIG. 14A, each of the vertical side registers VS (x, y) in the odd columns is
Input terminals YUi, YLi, YRi and output terminal YU
o, YLo, and YRo, and an input terminal connected to each signal (CK1, SL, SR) output terminal of the signal output unit 8000 (not shown). FIG.
As shown in FIG. 4B, each vertical side register VS (x, y) in the even-numbered column has input terminals YDi, YLi, YRi and output terminals YDo, YLo, YRo, and further has a signal output unit 8000 (not shown). Of each signal (CK
1, SL, SR) output terminals.

【0113】各垂直サイドレジスタVS(x,y)は、
図15に示すように、セレクタ3310、フリップフロ
ップ3320からなる。セレクタ3310は、第1デー
タ入力端子A,第2データ入力端子B,第3データ入力
端子C,信号入力端子S0,信号入力端子S1およびデ
ータ出力端子Yを有し、第1信号入力端子S0,第2信
号入力端子S1の入力信号の状態により第1データ入力
端子A,第2データ入力端子B,第3データ入力端子C
とデータ出力端子Yとの接続を切り換えるものである。
Each vertical side register VS (x, y) is
As shown in FIG. 15, a selector 3310 and a flip-flop 3320 are provided. The selector 3310 has a first data input terminal A, a second data input terminal B, a third data input terminal C, a signal input terminal S0, a signal input terminal S1, and a data output terminal Y, and the first signal input terminal S0, The first data input terminal A, the second data input terminal B, and the third data input terminal C depend on the state of the input signal of the second signal input terminal S1.
And the connection between the data output terminal Y.

【0114】信号入力端子S1に入力された信号が1の
ときは、信号入力端子S0に入力された信号の状態に関
わらず、第3データ入力端子Cに入力されているデータ
をデータ出力端子Yから出力し、信号入力端子S1に入
力された信号が0のときは、信号入力端子S0に入力さ
れた信号の状態により、データ出力端子Yから出力する
データを第1データ入力端子Aと第2データ入力端子B
のデータで切換え、信号入力端子S0に入力された信号
が1のときは、第2データ入力端子Bに入力されている
データをデータ出力端子Yから出力し、信号入力端子S
0に入力された信号が0のときは、第1データ入力端子
Aに入力されているデータをデータ出力端子Yから出力
するものである。
When the signal input to the signal input terminal S1 is 1, the data input to the third data input terminal C is transferred to the data output terminal Y regardless of the state of the signal input to the signal input terminal S0. When the signal input to the signal input terminal S1 is 0, the data output from the data output terminal Y is output to the first data input terminal A and the second data input terminal depending on the state of the signal input to the signal input terminal S0. Data input terminal B
When the signal input to the signal input terminal S0 is 1, the data input to the second data input terminal B is output from the data output terminal Y, and the signal input terminal S0
When the signal input to 0 is 0, the data input to the first data input terminal A is output from the data output terminal Y.

【0115】フリップフロップ3320は、Dフリップ
フロップからなり、データ入力端子A,信号入力端子S
およびデータ出力端子Yを有し、信号入力端子Sに入力
された信号のパルスに同期して、データ入力端子Aに入
力されているデータをデータ出力端子Yにラッチするも
のである。各垂直サイドレジスタVS(x,y)のセレ
クタ3310の第1データ入力端子Aは、垂直サイドレ
ジスタVS(x,y)が奇数列にある場合には、一つ下
側に位置する別の垂直サイドレジスタVS(x,y+
1)の出力端子YUoまたはプロセッサエレメントPE
(x,0)の出力端子YUoに入力端子YUiを介して
電気的に接続され、垂直サイドレジスタVS(x,y)
が偶数列にある場合には、一つ上側に位置する別の垂直
サイドレジスタVS(x,y−1)の出力端子YDoま
たはプロセッサエレメントPE(x,y−1)の出力端
子YDoに入力端子YDiを介して電気的に接続されて
いる。
The flip-flop 3320 comprises a D flip-flop, and has a data input terminal A and a signal input terminal S.
And a data output terminal Y, and latches data input to the data input terminal A to the data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S. The first data input terminal A of the selector 3310 of each vertical side register VS (x, y) is connected to another vertical position located below by one when the vertical side registers VS (x, y) are in odd columns. Side register VS (x, y +
Output terminal YUo of 1) or processor element PE
The output terminal YUo of (x, 0) is electrically connected via the input terminal YUi, and the vertical side register VS (x, y)
Is in an even-numbered column, the input terminal is connected to the output terminal YDo of another vertical side register VS (x, y-1) located one position above or the output terminal YDo of the processor element PE (x, y-1). They are electrically connected via YDi.

【0116】セレクタ3310の第2データ入力端子B
は、一つ右側に位置する別の垂直サイドレジスタVS
(x+1,y)の出力端子YLoまたは入力レジスタI
R(x+1,y)の出力端子に入力端子YLiを介して
電気的に接続されている。セレクタ3310の第3デー
タ入力端子Cは、一つ左側に位置する別の垂直サイドレ
ジスタVS(x−1,y)の出力端子YRoまたは水平
サイドレジスタHS(x−1,y)の出力端子に入力端
子YRiを介して電気的に接続されている。
Second data input terminal B of selector 3310
Is another vertical side register VS located on the right
(X + 1, y) output terminal YLo or input register I
It is electrically connected to the output terminal of R (x + 1, y) via the input terminal YLi. The third data input terminal C of the selector 3310 is connected to the output terminal YRo of another vertical side register VS (x-1, y) located on the left side or the output terminal of the horizontal side register HS (x-1, y). They are electrically connected via the input terminal YRi.

【0117】セレクタ3310の第1信号入力端子S0
は信号出力ユニット8000の第3信号出力端子P3に
電気的に接続され、第2信号入力端子S1は信号出力ユ
ニット8000の第5信号出力端子P5に電気的に接続
されている。各垂直サイドレジスタVS(x,y)のフ
リップフロップ3320のデータ入力端子Aは同じ垂直
サイドレジスタVS(x,y)のセレクタ3310のデ
ータ出力端子Yに電気的に接続され、信号入力端子Sは
信号出力ユニット8000の第1信号出力端子P1に電
気的に接続されている。
First signal input terminal S0 of selector 3310
Is electrically connected to the third signal output terminal P3 of the signal output unit 8000, and the second signal input terminal S1 is electrically connected to the fifth signal output terminal P5 of the signal output unit 8000. The data input terminal A of the flip-flop 3320 of each vertical side register VS (x, y) is electrically connected to the data output terminal Y of the selector 3310 of the same vertical side register VS (x, y). It is electrically connected to the first signal output terminal P1 of the signal output unit 8000.

【0118】図1における第3の画素データ転送保持手
段4000の水平サイドレジスタHS(x,y)の構成
例を図16,図17に示す。図16に示すように、各水
平サイドレジスタHS(x,y)は、入力端子YLi,
YRiおよび出力端子YLo,YRoを有し、さらに図
示されない信号出力ユニット8000の各信号(CK
1,SH,SR)出力端子に接続された入力端子を有し
ている。
FIGS. 16 and 17 show examples of the configuration of the horizontal side register HS (x, y) of the third pixel data transfer holding means 4000 in FIG. As shown in FIG. 16, each horizontal side register HS (x, y) has an input terminal YLi,
YRi and output terminals YLo and YRo, and each signal (CK) of a signal output unit 8000 (not shown).
1, SH, SR) output terminals.

【0119】各水平サイドレジスタHS(x,y)は、
図17に示すように、セレクタ3410,フリップフロ
ップ3420からなる。セレクタ3410は、第1デー
タ入力端子A,第2データ入力端子B,第3データ入力
端子C,信号入力端子S0,信号入力端子S1およびデ
ータ出力端子Yを有し、第1信号入力端子S0,第2信
号入力端子S1の入力信号の状態により第1データ入力
端子A,第2データ入力端子B,第3データ入力端子C
とデータ出力端子Yとの接続を切り換えるものである。
Each horizontal side register HS (x, y) is
As shown in FIG. 17, it comprises a selector 3410 and a flip-flop 3420. The selector 3410 has a first data input terminal A, a second data input terminal B, a third data input terminal C, a signal input terminal S0, a signal input terminal S1, and a data output terminal Y. The first data input terminal A, the second data input terminal B, and the third data input terminal C depend on the state of the input signal of the second signal input terminal S1.
And the connection between the data output terminal Y.

【0120】信号入力端子S1に入力された信号が1の
ときは、信号入力端子S0に入力された信号の状態に関
わらず、第3データ入力端子Cに入力されているデータ
をデータ出力端子Yから出力し、信号入力端子S1に入
力された信号が0のときは、信号入力端子S0に入力さ
れた信号の状態により、データ出力端子Yから出力する
データを第1データ入力端子Aと第2データ入力端子B
のデータで切換え、信号入力端子S0に入力された信号
が1のときは、第2データ入力端子Bに入力されている
データをデータ出力端子Yから出力し、信号入力端子S
0に入力された信号が0のときは、第1データ入力端子
Aに入力されているデータをデータ出力端子Yから出力
するものである。
When the signal input to the signal input terminal S1 is 1, the data input to the third data input terminal C is transferred to the data output terminal Y regardless of the state of the signal input to the signal input terminal S0. When the signal input to the signal input terminal S1 is 0, the data output from the data output terminal Y is output to the first data input terminal A and the second data input terminal depending on the state of the signal input to the signal input terminal S0. Data input terminal B
When the signal input to the signal input terminal S0 is 1, the data input to the second data input terminal B is output from the data output terminal Y, and the signal input terminal S0
When the signal input to 0 is 0, the data input to the first data input terminal A is output from the data output terminal Y.

【0121】フリップフロップ3420は、Dフリップ
フロップからなり、データ入力端子A、信号入力端子S
およびデータ出力端子Yを有し、信号入力端子Sに入力
された信号のパルスに同期して、データ入力端子Aに入
力されているデータをデータ出力端子Yにラッチするも
のである。各水平サイドレジスタHS(x,y)のセレ
クタ3410の第1データ入力端子Aは、同じ水平サイ
ドレジスタHS(x,y)のフリップフロップ3420
のデータ出力端子Yに電気的に接続されている。
The flip-flop 3420 comprises a D flip-flop, and has a data input terminal A and a signal input terminal S.
And a data output terminal Y, and latches data input to the data input terminal A to the data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S. The first data input terminal A of the selector 3410 of each horizontal side register HS (x, y) is connected to the flip-flop 3420 of the same horizontal side register HS (x, y).
Are electrically connected to the data output terminal Y.

【0122】セレクタ3410の第2データ入力端子B
は、一つ右側に位置する別の水平サイドレジスタHS
(x+1,y)の出力端子YLo,プロセッサエレメン
トPE(0,y)の出力端子YLoまたは垂直サイドレ
ジスタVS(0,y)の出力端子YLoに入力端子YL
iを介して電気的に接続されている。セレクタ3410
の第3データ入力端子Cは、一つ左側に位置する別の水
平サイドレジスタHS(x−1,y)の出力端子YRo
に入力端子YRiを介して電気的に接続されている。
Second data input terminal B of selector 3410
Is another horizontal side register HS located on the right side
The input terminal YL is connected to the output terminal YLo of (x + 1, y), the output terminal YLo of the processor element PE (0, y), or the output terminal YLo of the vertical side register VS (0, y).
It is electrically connected via i. Selector 3410
Is connected to an output terminal YRo of another horizontal side register HS (x-1, y) located on the left side.
Are electrically connected to each other through an input terminal YRi.

【0123】セレクタ3410の第1信号入力端子S0
は信号出力ユニット8000の第4信号出力端子P4に
電気的に接続され、第2信号入力端子S1は信号出力ユ
ニット8000の第5信号出力端子P5に電気的に接続
されている。各水平サイドレジスタHS(x,y)のフ
リップフロップ3420のデータ入力端子Aは同じ水平
サイドレジスタHS(x,y)のセレクタ3410のデ
ータ出力端子Yに電気的に接続され、信号入力端子Sは
信号出力ユニット8000の第1信号出力端子P1に電
気的に接続されている。
The first signal input terminal S0 of the selector 3410
Is electrically connected to the fourth signal output terminal P4 of the signal output unit 8000, and the second signal input terminal S1 is electrically connected to the fifth signal output terminal P5 of the signal output unit 8000. The data input terminal A of the flip-flop 3420 of each horizontal side register HS (x, y) is electrically connected to the data output terminal Y of the selector 3410 of the same horizontal side register HS (x, y), and the signal input terminal S is It is electrically connected to the first signal output terminal P1 of the signal output unit 8000.

【0124】図1における参照画像データ記憶手段20
00は、構成については特に規定しないが、以下に示す
機能を有するものとする。参照画像データ記憶手段20
00は、図5〜図8に示すように、第2の画素データ転
送保持手段3002の入力レジスタIR(3,2)の入
力端子にサーチウインドウの画素データ b(0,0),b(0,1),b(0,2), b(1,0),b(1,1),b(1,2), b(2,0),b(2,1),b(2,2)・・・を、
クロックパルス信号CK1の1クロック毎にそれぞれの
クロックに同期して記載順に出力されるようになってお
り、一方、入力レジスタIR(3,4)の入力端子にサ
ーチウインドウの画素データ b(0,3),b(0,4), b(1,3),b(1,4), b(2,3),b(2,4)・・・を、クロックパルス
信号CK1の2クロック目より1クロック毎にそれぞれ
のクロックに同期して記載順に出力し、以後、3クロッ
クを1周期として、2画素分ずつ画素データが出力され
るようになっている。
The reference image data storage means 20 in FIG.
00 has no particular limitation on the configuration, but has the following functions. Reference image data storage means 20
00 is the search window pixel data b (0,0), b (0) input to the input terminal of the input register IR (3,2) of the second pixel data transfer holding means 3002 as shown in FIGS. , 1), b (0,2), b (1,0), b (1,1), b (1,2), b (2,0), b (2,1), b (2, 2) ...
The clock pulse signal CK1 is output for each clock in synchronism with each clock in the order described. On the other hand, pixel data b (0, 0, 3), b (0,4), b (1,3), b (1,4), b (2,3), b (2,4),... Are the second clock of the clock pulse signal CK1. In this manner, the data is output in the order described in synchronization with each clock for each clock, and thereafter, pixel data for two pixels is output with three clocks as one cycle.

【0125】図1における類似ブロック特定手段600
0の詳細構成ブロック図を図20に示す。同図に示すよ
うに類似ブロック特定手段6000は、最小ディストー
ション検出ユニット6100、動きベクトル垂直成分検
出ユニット6200および動きベクトル水平成分検出ユ
ニット6300からなり、最小ディストーション検出ユ
ニット6100は、比較器6110,比較器6120,
セレクタ6130,フリップフロップ6140,論理和
演算器6150およびセレクタ付きフリップフロップ6
180を備え、動きベクトル垂直成分検出ユニット62
00は、セレクタ6220,フリップフロップ623
0,換算テーブル6240およびセレクタ付きフリップ
フロップ6280を備え、動きベクトル水平成分検出ユ
ニット6300は、カウンタ6310,セレクタ632
0,フリップフロップ6330,換算テーブル6340
およびセレクタ付きフリップフロップ6380を備えて
いる。
Similar block specifying means 600 in FIG.
0 is shown in FIG. As shown in the figure, the similar block specifying unit 6000 includes a minimum distortion detection unit 6100, a motion vector vertical component detection unit 6200, and a motion vector horizontal component detection unit 6300. The minimum distortion detection unit 6100 includes a comparator 6110 and a comparator. 6120,
Selector 6130, flip-flop 6140, OR operator 6150, and flip-flop 6 with selector
180, the motion vector vertical component detection unit 62
00 is the selector 6220, flip-flop 623
0, a conversion table 6240 and a flip-flop 6280 with a selector. The motion vector horizontal component detection unit 6300 includes a counter 6310, a selector 632,
0, flip-flop 6330, conversion table 6340
And a flip-flop 6380 with a selector.

【0126】はじめに、類似ブロック特定手段6000
の構成機器について個々に説明をする。最小ディストー
ション検出ユニット6100の比較器6110は、デー
タ入力端子A0,A1,A2,データ出力端子Mおよび
Yを有し、データ入力端子A0,A1,A2に入力され
たデータの中で最小の値を持つデータLMDisを出力
端子Yから出力し、最小の値を持つデータの入力された
入力端子がA0ならば0を、A1ならば1を、A2なら
ば2をLMVyとしてデータ出力端子Mから出力するも
のである。
First, similar block specifying means 6000
Each component will be described individually. The comparator 6110 of the minimum distortion detection unit 6100 has data input terminals A0, A1, A2, data output terminals M and Y, and calculates the minimum value among the data input to the data input terminals A0, A1, A2. Is output from the output terminal Y, and if the input terminal to which data having the minimum value is input is A0, 0 is output, A1 is 1, and A2 is 2 is output from the data output terminal M as LMVy. Things.

【0127】最小ディストーション検出ユニット610
0の比較器6120は、第1データ入力端子A,第2デ
ータ入力端子Bおよび信号出力端子Yを有し、第1デー
タ入力端子Aに入力されたデータが第2データ入力端子
Bに入力されたデータ以上の大きさであるとき、0を表
わす信号Minを信号出力端子Yから出力し、第1デー
タ入力端子Aに入力されたデータが第2データ入力端子
Bに入力されたデータより小さいとき、1を表わす信号
Minを信号出力端子Yから出力するものである。
The minimum distortion detection unit 610
The zero comparator 6120 has a first data input terminal A, a second data input terminal B, and a signal output terminal Y, and the data input to the first data input terminal A is input to the second data input terminal B. A signal Min representing 0 is output from the signal output terminal Y when the data input to the first data input terminal A is smaller than the data input to the second data input terminal B , 1 from the signal output terminal Y.

【0128】最小ディストーション検出ユニット610
0のセレクタ6130は、第1データ入力端子A,第2
データ入力端子B,信号入力端子Sおよびデータ出力端
子Yを有し、信号入力端子Sに入力された信号が0を表
わす信号のとき、第2データ入力端子Bに入力されてい
るデータをデータ出力端子Yから出力し、信号入力端子
Sに入力された信号が1を表わす信号のとき、第1デー
タ入力端子Aに入力されているデータをデータ出力端子
Yから出力するものである。
Minimum distortion detection unit 610
0 selector 6130 includes a first data input terminal A, a second data input terminal A,
It has a data input terminal B, a signal input terminal S, and a data output terminal Y. When the signal input to the signal input terminal S is a signal representing 0, the data input to the second data input terminal B is output as data. When the signal output from the terminal Y and the signal input to the signal input terminal S is a signal representing 1, the data input to the first data input terminal A is output from the data output terminal Y.

【0129】最小ディストーション検出ユニット610
0のフリップフロップ6140は、Dフリップフロップ
からなり、データ入力端子A,信号入力端子Sおよびデ
ータ出力端子Yを有し、信号入力端子Sに入力された信
号のパルスに同期して、データ入力端子Aに入力されて
いるデータをデータ出力端子Yにラッチするものであ
る。
Minimum distortion detecting unit 610
The 0 flip-flop 6140 is composed of a D flip-flop, has a data input terminal A, a signal input terminal S, and a data output terminal Y, and synchronizes with a signal pulse input to the signal input terminal S to generate a data input terminal. The data input to A is latched at the data output terminal Y.

【0130】最小ディストーション検出ユニット610
0の論理和演算器6150は、信号入力端子S,データ
入力端子Bおよびデータ出力端子Yを有し、信号入力端
子Sの信号が1を表わすときはデータ入力端子Bのデー
タに関わらず、データ出力端子Yに全ビットが1を表わ
すデータを出力し、信号入力端子Sの信号が0を表わす
ときはデータ入力端子Bに入力されたデータをデータ出
力端子Yに出力するものである。
The minimum distortion detection unit 610
OR operation unit 6150 of 0 has signal input terminal S, data input terminal B, and data output terminal Y. When the signal of signal input terminal S represents 1, regardless of the data of data input terminal B, The output terminal Y outputs data in which all bits represent 1, and when the signal at the signal input terminal S indicates 0, the data input to the data input terminal B is output to the data output terminal Y.

【0131】言換えれば、最小ディストーション検出ユ
ニット6100では、フリップフロップ6140からパ
ルス信号CK2に同期してラッチされ出力されているデ
ータを前回までの最小ディストーションとし、比較器6
110から出力されているデータLMDisを今回の最
小ディストーションと呼ぶとすると、論理和演算器61
50の信号入力端子Sに入力された信号が0のとき、比
較器6120で第1データ入力端子Aに入力された今回
の最小ディストーションと第2データ入力端子Bに入力
された前回までの最小ディストーションとを比較して小
さい方のディストーションをセレクタ6130を介して
フリップフロップ6140に入力しするもので、論理和
演算器6150の信号入力端子Sに入力された信号が1
のときは、前回までの最小ディストーションは無効とし
て、今回の最小ディストーションを最も小さい最小ディ
ストーションとしてセレクタ6130を介してフリップ
フロップ6140に入力するものである。
In other words, in the minimum distortion detecting unit 6100, the data latched and output from the flip-flop 6140 in synchronization with the pulse signal CK2 is set as the minimum distortion up to the previous time, and
If the data LMDis output from 110 is called the current minimum distortion, the logical sum operation unit 61
When the signal input to the signal input terminal 50 is 0, the current minimum distortion input to the first data input terminal A by the comparator 6120 and the previous minimum distortion input to the second data input terminal B by the comparator 6120 And the smaller distortion is input to the flip-flop 6140 via the selector 6130, and the signal input to the signal input terminal S of the OR gate 6150 is 1
In this case, the minimum distortion up to the previous time is invalidated, and the current minimum distortion is input to the flip-flop 6140 via the selector 6130 as the minimum distortion.

【0132】最小ディストーション検出ユニット610
0のセレクタ付きフリップフロップ6180は、データ
入力端子I,第1信号入力端子E,第2信号入力端子F
およびデータ出力端子Oを有し、図21に示されるよう
に、セレクタ9110およびフリップフロップ9120
からなる。最小ディストーション検出ユニット6100
のセレクタ付きフリップフロップ6180のセレクタ9
110は、第1データ入力端子A,第2データ入力端子
B,信号入力端子Sおよびデータ出力端子Yを有し、信
号入力端子Sに入力された信号が0を表わす信号のと
き、第1データ入力端子Aに入力されているデータをデ
ータ出力端子Yから出力し、信号入力端子Sに入力され
た信号が1を表わす信号のとき、第2データ入力端子B
に入力されているデータをデータ出力端子Yから出力す
るものである。
Minimum distortion detection unit 610
The flip-flop 6180 with a selector of 0 has a data input terminal I, a first signal input terminal E, and a second signal input terminal F
And a data output terminal O, as shown in FIG.
Consists of Minimum distortion detection unit 6100
Selector 9 of flip-flop 6180 with selector
110 has a first data input terminal A, a second data input terminal B, a signal input terminal S, and a data output terminal Y, and when the signal input to the signal input terminal S is a signal representing 0, the first data input terminal S The data input to the input terminal A is output from the data output terminal Y. When the signal input to the signal input terminal S is a signal representing 1, the second data input terminal B
Is output from the data output terminal Y.

【0133】最小ディストーション検出ユニット610
0のセレクタ付きフリップフロップ6180のフリップ
フロップ9120は、Dフリップフロップからなり、デ
ータ入力端子A、信号入力端子Sおよびデータ出力端子
Yを有し、信号入力端子Sに入力された信号のパルスに
同期して、データ入力端子Aに入力されているデータを
データ出力端子Yにラッチするものである。
Minimum distortion detection unit 610
The flip-flop 9120 of the flip-flop 6180 with a selector of 0 is a D flip-flop, has a data input terminal A, a signal input terminal S, and a data output terminal Y, and is synchronized with a pulse of a signal input to the signal input terminal S. Then, the data input to the data input terminal A is latched at the data output terminal Y.

【0134】動きベクトル垂直成分検出ユニット620
0のセレクタ6220は、第1データ入力端子A、第2
データ入力端子B、信号入力端子Sおよびデータ出力端
子Yを有し、信号入力端子Sに入力された信号が0を表
わす信号のとき、第1データ入力端子Aに入力されてい
るデータをデータ出力端子Yから出力し、信号入力端子
Sに入力された信号が1を表わす信号のとき、第2デー
タ入力端子Bに入力されているデータをデータ出力端子
Yから出力するものである。
Motion vector vertical component detection unit 620
0 selector 6220 includes a first data input terminal A, a second data input terminal A,
It has a data input terminal B, a signal input terminal S, and a data output terminal Y. When the signal input to the signal input terminal S is a signal representing 0, the data input to the first data input terminal A is output as data. When the signal output from the terminal Y and the signal input to the signal input terminal S is a signal representing 1, the data input to the second data input terminal B is output from the data output terminal Y.

【0135】動きベクトル垂直成分検出ユニット620
0のフリップフロップ6230は、Dフリップフロップ
からなり、データ入力端子A,信号入力端子Sおよびデ
ータ出力端子Yを有し、信号入力端子Sに入力された信
号のパルスに同期して、データ入力端子Aに入力されて
いるデータをデータ出力端子Yにラッチするものであ
る。ここで、出力されるデータをMyと呼ぶことにす
る。
Motion vector vertical component detection unit 620
The 0 flip-flop 6230 is composed of a D flip-flop, has a data input terminal A, a signal input terminal S, and a data output terminal Y. The data input to A is latched at the data output terminal Y. Here, the output data is referred to as My.

【0136】動きベクトル垂直成分検出ユニット620
0の換算テーブル6240は、データ入力端子Aおよび
データ出力端子Yを有し、データ入力端子Aに入力され
たデータをあらかじめ準備されている換算テーブルに基
づいて、動きベクトルデータに換算し、データ出力端子
Yに出力するものである。動きベクトル垂直成分検出ユ
ニット6200のセレクタ付きフリップフロップ628
0は、データ入力端子I,第1信号入力端子E,第2信
号入力端子Fおよびデータ出力端子Oを有し、図21に
示されるように、セレクタ付きフリップフロップ618
0と同様の構成である。
Motion vector vertical component detection unit 620
The conversion table 6240 of 0 has a data input terminal A and a data output terminal Y, converts data input to the data input terminal A into motion vector data based on a conversion table prepared in advance, and outputs data. Output to terminal Y. Flip-flop 628 with selector of motion vector vertical component detection unit 6200
0 has a data input terminal I, a first signal input terminal E, a second signal input terminal F, and a data output terminal O, and as shown in FIG.
The configuration is the same as that of 0.

【0137】動きベクトル水平成分検出ユニット630
0のカウンタ6310は、信号入力端子CL,CKおよ
びカウントデータ出力端子Qnを有し、信号入力端子C
Lに入力された信号が1を表わす信号のとき出力カウン
トCTxを0にリセットし、カウントデータ出力端子Q
nに出力し、信号入力端子CLに入力された信号が0を
表わす信号でかつ、信号入力端子CKに入力された信号
が1を表わす信号のときにそのパルス信号の立上がりに
同期して出力カウントCTxを1づつカウントアップし
て、カウントデータ出力端子Qnに出力するものであ
る。
Motion vector horizontal component detection unit 630
0 counter 6310 has signal input terminals CL and CK and count data output terminal Qn.
When the signal input to L is a signal representing 1, the output count CTx is reset to 0, and the count data output terminal Q
n, and when the signal input to the signal input terminal CL is a signal representing 0 and the signal input to the signal input terminal CK is a signal representing 1, the output count is synchronized with the rise of the pulse signal. CTx is incremented by one and output to the count data output terminal Qn.

【0138】動きベクトル水平成分検出ユニット630
0のセレクタ6320は、第1データ入力端子A,第2
データ入力端子B,信号入力端子Sおよびデータ出力端
子Yを有し、信号入力端子Sに入力された信号が0を表
わす信号のとき、第1データ入力端子Aに入力されてい
るデータをデータ出力端子Yから出力し、信号入力端子
Sに入力された信号が1を表わす信号のとき、第2デー
タ入力端子Bに入力されているデータをデータ出力端子
Yから出力するものである。
Motion vector horizontal component detection unit 630
0 selector 6320 includes a first data input terminal A, a second data input terminal A,
It has a data input terminal B, a signal input terminal S, and a data output terminal Y. When the signal input to the signal input terminal S is a signal representing 0, the data input to the first data input terminal A is output to the data output terminal. When the signal output from the terminal Y and the signal input to the signal input terminal S is a signal representing 1, the data input to the second data input terminal B is output from the data output terminal Y.

【0139】動きベクトル水平成分検出ユニット630
0のフリップフロップ6330は、Dフリップフロップ
からなり、データ入力端子A,信号入力端子Sおよびデ
ータ出力端子Yを有し、信号入力端子Sに入力された信
号のパルスに同期して、データ入力端子Aに入力されて
いるデータをデータ出力端子Yにラッチするものであ
る。ここで、出力されるデータをMxと呼ぶことにす
る。
Motion vector horizontal component detection unit 630
The 0 flip-flop 6330 is formed of a D flip-flop, has a data input terminal A, a signal input terminal S, and a data output terminal Y. The data flip-flop 6330 The data input to A is latched at the data output terminal Y. Here, the output data is referred to as Mx.

【0140】動きベクトル水平成分検出ユニット630
0の換算テーブル6340は、データ入力端子Aおよび
データ出力端子Yを有し、データ入力端子Aに入力され
たデータをあらかじめ準備されている換算テーブルに基
づいて、動きベクトルデータに換算し、データ出力端子
Yに出力するものである。動きベクトル水平成分検出ユ
ニット6300のセレクタ付きフリップフロップ638
0は、データ入力端子I,第1信号入力端子E,第2信
号入力端子Fおよびデータ出力端子Oを有し、図21に
示されるように、第1セレクタ付きフリップフロップ6
180と同様の構成である。
Motion vector horizontal component detection unit 630
The conversion table 6340 of 0 has a data input terminal A and a data output terminal Y, converts data input to the data input terminal A into motion vector data based on a conversion table prepared in advance, and outputs data. Output to terminal Y. Flip-flop 638 with selector of motion vector horizontal component detection unit 6300
0 has a data input terminal I, a first signal input terminal E, a second signal input terminal F, and a data output terminal O, and as shown in FIG.
It has the same configuration as 180.

【0141】つぎに、類似ブロック特定手段6000の
各構成機器間の接続について説明する。最小ディストー
ション検出ユニット6100の比較器6110のデータ
入力端子A0は、プロセッサエレメントPE(0,0)
のフリップフロップ5320のデータ出力端子Yに、プ
ロセッサエレメントPE(0,0)の出力端子Doを介
して電気的に接続され、データ入力端子A1は、プロセ
ッサエレメントPE(0,1)のフリップフロップ53
20のデータ出力端子Yに、プロセッサエレメントPE
(0,1)の出力端子Doを介して電気的に接続され、
データ入力端子A2は、プロセッサエレメントPE
(0,2)のフリップフロップ5320のデータ出力端
子Yに、プロセッサエレメントPE(0,2)の出力端
子Doを介して電気的に接続されている。
Next, the connection between the components of the similar block specifying means 6000 will be described. The data input terminal A0 of the comparator 6110 of the minimum distortion detection unit 6100 is connected to the processor element PE (0,0).
The data input terminal A1 is electrically connected to the data output terminal Y of the flip-flop 5320 of the processor element PE (0, 0) via the output terminal Do of the processor element PE (0, 1).
20, the processor element PE is connected to the data output terminal Y.
Electrically connected via the output terminal (0, 1) Do,
The data input terminal A2 is connected to the processor element PE
The data output terminal Y of the (0,2) flip-flop 5320 is electrically connected via the output terminal Do of the processor element PE (0,2).

【0142】最小ディストーション検出ユニット610
0の比較器6120の第1データ入力端子Aは、比較器
6110のデータ出力端子Yに電気的に接続され、第2
データ入力端子Bは、論理和演算器6150のデータ出
力端子Yに電気的に接続されている。最小ディストーシ
ョン検出ユニット6100のセレクタ6130の第1デ
ータ入力端子Aは、比較器6110のデータ出力端子Y
に電気的に接続され、第2データ入力端子Bは、フリッ
プフロップ6140のデータ出力端子Yに電気的に接続
され、信号入力端子Sは、比較器6120の信号出力端
子Yに電気的に接続されている。
Minimum distortion detection unit 610
The first data input terminal A of the zero comparator 6120 is electrically connected to the data output terminal Y of the comparator 6110,
The data input terminal B is electrically connected to the data output terminal Y of the OR operation unit 6150. The first data input terminal A of the selector 6130 of the minimum distortion detection unit 6100 is connected to the data output terminal Y of the comparator 6110.
The second data input terminal B is electrically connected to the data output terminal Y of the flip-flop 6140, and the signal input terminal S is electrically connected to the signal output terminal Y of the comparator 6120. ing.

【0143】最小ディストーション検出ユニット610
0のフリップフロップ6140のデータ入力端子Aは、
セレクタ6130のデータ出力端子Yに電気的に接続さ
れ、信号入力端子Sは、信号出力ユニット8000の第
2信号出力端子P2に電気的に接続されている。最小デ
ィストーション検出ユニット6100の論理和演算器6
150の信号入力端子Sは、信号出力ユニット8000
の第7信号出力端子P7に電気的に接続され、データ入
力端子Bは、フリップフロップ6140のデータ出力端
子Yに電気的に接続されている。
Minimum distortion detection unit 610
The data input terminal A of the 0 flip-flop 6140 is
The signal output terminal Y of the selector 6130 is electrically connected to the data output terminal Y, and the signal input terminal S is electrically connected to the second signal output terminal P2 of the signal output unit 8000. OR operator 6 of minimum distortion detection unit 6100
The signal input terminal S of 150 is a signal output unit 8000
And the data input terminal B is electrically connected to the data output terminal Y of the flip-flop 6140.

【0144】最小ディストーション検出ユニット610
0のセレクタ付きフリップフロップ6180のデータ入
力端子Iは、フリップフロップ6140のデータ出力端
子Yに電気的に出力され、信号入力端子Eは、信号出力
ユニット8000の第9信号出力端子P9に電気的に接
続され、信号入力端子Fは、信号出力ユニット8000
の第2信号出力端子P2に電気的に接続されている。
Minimum distortion detection unit 610
The data input terminal I of the flip-flop 6180 with a selector of 0 is electrically output to the data output terminal Y of the flip-flop 6140, and the signal input terminal E is electrically connected to the ninth signal output terminal P9 of the signal output unit 8000. The signal input terminal F is connected to the signal output unit 8000
Is electrically connected to the second signal output terminal P2.

【0145】また、図21に示す、セレクタ付きフリッ
プフロップのセレクタ9110の第1データ入力端子A
は、フリップフロップ9120のデータ出力端子Yに電
気的に接続され、第2データ入力端子Bおよび信号入力
端子Sは、セレクタ付きフリップフロップのデータ入力
端子Iおよび信号入力端子Eを通してそれぞれセレクタ
付きフリップフロップにおいて説明する入力端子に電気
的に接続され、フリップフロップ9120のデータ入力
端子Aは、セレクタ9110のデータ出力端子Yに電気
的に接続され、信号入力端子Sは、セレクタ付きフリッ
プフロップの信号入力端子Fを通してセレクタ付きフリ
ップフロップにおいて説明する入力端子に電気的に接続
されている。また、フリップフロップ9120の信号出
力端子Yは、セレクタ付きフリップフロップの出力端子
Oを通してそれぞれセレクタ付きフリップフロップにお
いて説明する出力端子に電気的に接続されている。
The first data input terminal A of the selector 9110 of the flip-flop with selector shown in FIG.
Is electrically connected to the data output terminal Y of the flip-flop 9120, and the second data input terminal B and the signal input terminal S are connected through the data input terminal I and the signal input terminal E of the flip-flop with the selector, respectively. The data input terminal A of the flip-flop 9120 is electrically connected to the data output terminal Y of the selector 9110, and the signal input terminal S is the signal input terminal of the flip-flop with selector. It is electrically connected through F to an input terminal described in the flip-flop with a selector. Further, the signal output terminal Y of the flip-flop 9120 is electrically connected to the output terminal described in the flip-flop with a selector through the output terminal O of the flip-flop with a selector.

【0146】動きベクトル垂直成分検出ユニット620
0のセレクタ6220の第1データ入力端子Aは、フリ
ップフロップ6230のデータ出力端子Yに電気的に接
続され、第2データ入力端子Bは、最小ディストーショ
ン検出ユニット6100の比較器6110のデータ出力
端子Mに電気的に接続され、信号入力端子Sは、最小デ
ィストーション検出ユニット6100の比較器6120
の信号出力端子Yに電気的に接続されている。
Motion vector vertical component detection unit 620
0 selector 6220 is electrically connected to data output terminal Y of flip-flop 6230, and second data input terminal B is connected to data output terminal M of comparator 6110 of minimum distortion detection unit 6100. The signal input terminal S is electrically connected to the comparator 6120 of the minimum distortion detection unit 6100.
Is electrically connected to the signal output terminal Y of

【0147】動きベクトル垂直成分検出ユニット620
0のフリップフロップ6230のデータ入力端子Aは、
セレクタ6220のデータ出力端子Yに電気的に接続さ
れ、信号入力端子Sは、信号出力ユニット8000の第
2信号出力端子P2に電気的に接続されている。動きベ
クトル垂直成分検出ユニット6200の換算テーブル6
240のデータ入力端子Aは、フリップフロップ623
0のデータ出力端子Yに電気的に接続されている。
Motion vector vertical component detection unit 620
The data input terminal A of the 0 flip-flop 6230 is
The signal output terminal Y of the selector 6220 is electrically connected to the data output terminal Y, and the signal input terminal S is electrically connected to the second signal output terminal P2 of the signal output unit 8000. Conversion table 6 of motion vector vertical component detection unit 6200
The data input terminal A of 240 is a flip-flop 623
0 is electrically connected to the data output terminal Y.

【0148】動きベクトル垂直成分検出ユニット620
0のセレクタ付きフリップフロップ6280のデータ入
力端子Iは、換算テーブル6240のデータ出力端子Y
に電気的に出力され、信号入力端子Eは、信号出力ユニ
ット8000の第9信号出力端子P9に電気的に接続さ
れ、信号入力端子Fは、信号出力ユニット8000の第
2信号出力端子P2に電気的に接続されている。
Motion vector vertical component detection unit 620
The data input terminal I of the flip-flop 6280 with the selector of 0 is the data output terminal Y of the conversion table 6240.
The signal input terminal E is electrically connected to the ninth signal output terminal P9 of the signal output unit 8000, and the signal input terminal F is electrically connected to the second signal output terminal P2 of the signal output unit 8000. Connected.

【0149】動きベクトル水平成分検出ユニット630
0のカウンタ6310の信号入力端子CLは、信号出力
ユニット8000の第7信号出力端子P7に電気的に接
続され、信号入力端子CKは、信号出力ユニット800
0の第2信号出力端子P2に電気的に接続されている。
動きベクトル水平成分検出ユニット6300のセレクタ
6320の第1データ入力端子Aは、フリップフロップ
6330のデータ出力端子Yに電気的に接続され、第2
データ入力端子Bは、カウンタ6310のカウントデー
タ出力端子Qnに電気的に接続され、信号入力端子S
は、最小ディストーション検出ユニット6100の比較
器6120の信号出力端子Yに電気的に接続されてい
る。
Motion vector horizontal component detection unit 630
The signal input terminal CL of the zero counter 6310 is electrically connected to the seventh signal output terminal P7 of the signal output unit 8000, and the signal input terminal CK is connected to the signal output unit 800.
0 is electrically connected to the second signal output terminal P2.
The first data input terminal A of the selector 6320 of the motion vector horizontal component detection unit 6300 is electrically connected to the data output terminal Y of the flip-flop 6330,
The data input terminal B is electrically connected to the count data output terminal Qn of the counter 6310, and the signal input terminal S
Is electrically connected to the signal output terminal Y of the comparator 6120 of the minimum distortion detection unit 6100.

【0150】動きベクトル水平成分検出ユニット630
0のフリップフロップ6330のデータ入力端子Aは、
セレクタ6320のデータ出力端子Yに電気的に接続さ
れ、信号入力端子Sは、信号出力ユニット8000の第
2信号出力端子P2に電気的に接続されている。動きベ
クトル水平成分検出ユニット6300の換算テーブル6
340のデータ入力端子Aは、フリップフロップ633
0のデータ出力端子Yに電気的に接続されている。
Motion vector horizontal component detection unit 630
The data input terminal A of the 0 flip-flop 6330 is
The signal output terminal Y of the selector 6320 is electrically connected to the data output terminal Y, and the signal input terminal S is electrically connected to the second signal output terminal P2 of the signal output unit 8000. Conversion table 6 of motion vector horizontal component detection unit 6300
The data input terminal A of 340 is connected to the flip-flop 633.
0 is electrically connected to the data output terminal Y.

【0151】動きベクトル水平成分検出ユニット630
0のセレクタ付きフリップフロップ6380のデータ入
力端子Iは、換算テーブル6340のデータ出力端子Y
に電気的に出力され、信号入力端子Eは、信号出力ユニ
ット8000の第9信号出力端子P9に電気的に接続さ
れ、信号入力端子Fは、信号出力ユニット8000の第
2信号出力端子P2に電気的に接続されている。
Motion vector horizontal component detection unit 630
The data input terminal I of the flip-flop 6380 with the selector of 0 is the data output terminal Y of the conversion table 6340.
The signal input terminal E is electrically connected to the ninth signal output terminal P9 of the signal output unit 8000, and the signal input terminal F is electrically connected to the second signal output terminal P2 of the signal output unit 8000. Connected.

【0152】次に、作用を説明する。最初に、現画像デ
ータ出力手段1000および参照画像データ記憶手段2
000から第1の画素データ転送保持手段3001,第
2の画素データ転送保持手段3002およびディストー
ション算出手段5000に入力される画素データの流れ
を説明するとともに、第1の画素データ転送保持手段3
001および第2の画素データ転送保持手段3002の
データ保持状態およびディストーション算出手段500
0における演算処理について説明する。
Next, the operation will be described. First, the current image data output unit 1000 and the reference image data storage unit 2
000 to the first pixel data transfer holding unit 3001, the second pixel data transfer holding unit 3002, and the distortion calculation unit 5000.
001 and the data holding state and distortion calculating means 500 of the second pixel data transfer holding means 3002
The arithmetic processing at 0 will be described.

【0153】なお、図5〜図10のパルス信号SL,パ
ルス信号SRおよびクロックパルス信号CK1のタイミ
ングから理解されるように、クロックパルス信号CK1
の各パルスが発せられる前に、パルス信号SLおよびパ
ルス信号SRの信号が変化するため、プロセッサエレメ
ントPE(x,y)のセレクタ3110では、パルス信
号SLによりクロックパルス信号CK1の1クロック目
が発せられる前に、第2データ入力端子Bが選択され、
2クロック目が発せられる前に、第1データ入力端子A
が選択され、この選択がクロックパルス信号CK1の3
クロック毎に、以後の各クロックで繰り返され、さら
に、パルス信号SRによりクロックパルス信号CK1の
19クロック目が発せられる前に、第3データ入力端子
Cが選択され、22クロック目が発せられる前に、パル
ス信号SLにより選択された第1データ入力端子Aが選
択されて、この選択は、クロックパルス信号CK1の2
0クロック毎に、以後の各クロックで繰り返される。
As understood from the timings of pulse signal SL, pulse signal SR and clock pulse signal CK1 in FIGS. 5 to 10, clock pulse signal CK1
Since the pulse signal SL and the pulse signal SR change before each pulse is generated, the selector 3110 of the processor element PE (x, y) generates the first clock of the clock pulse signal CK1 by the pulse signal SL. Before the second data input terminal B is selected,
Before the second clock is issued, the first data input terminal A
Is selected, and this selection corresponds to 3 of the clock pulse signal CK1.
The third data input terminal C is selected before the nineteenth clock of the clock pulse signal CK1 is generated by the pulse signal SR, and is repeated before the twenty-second clock is generated before the nineteenth clock of the clock pulse signal CK1 is generated by the pulse signal SR. , The first data input terminal A selected by the pulse signal SL is selected.
It is repeated at every clock after every 0 clock.

【0154】また、現画像データ出力手段1000のセ
レクタ1220および1240では、パルス信号SLに
よりクロックパルス信号CK1の1クロック目が発せら
れる前に、第2データ入力端子Bが選択され、2クロッ
ク目が発せられる前に、第1データ入力端子Aが選択さ
れ、この選択がクロックパルス信号CK1の3クロック
毎に、以後の各クロックで繰り返される。
In the selectors 1220 and 1240 of the current image data output means 1000, the second data input terminal B is selected before the first clock of the clock pulse signal CK1 is generated by the pulse signal SL, and the second clock is selected. Before being issued, the first data input terminal A is selected, and this selection is repeated every three clocks of the clock pulse signal CK1 in each of the subsequent clocks.

【0155】一方、図13に示されるように、各入力レ
ジスタIR(x,y)のフリップフロップ3220で
は、データ入力端子に入力されている画素データがクロ
ックパルス信号CK1の各パルスに同期してラッチされ
て、各垂直サイドレジスタVSまたは各プロセッサエレ
メントPEに出力され、図15に示されるように、各垂
直サイドレジスタVS(x,y)のフリップフロップ3
320では、セレクタ3310で選択されているデータ
入力端子に入力されている画素データがクロックパルス
信号CK1の各パルスに同期してラッチされ、他の各プ
ロセッサエレメントPE,各垂直サイドレジスタVSま
たは各水平サイドレジスタHSに出力端子YLo,YR
o,YUo,YDoを通して出力され、図17に示され
るように、各水平サイドレジスタHS(x,y)のフリ
ップフロップ3420では、セレクタ3410で選択さ
れているデータ入力端子に入力されている画素データが
クロックパルス信号CK1の各パルスに同期してラッチ
され、他の各プロセッサエレメントPE,各垂直サイド
レジスタVSまたは各水平サイドレジスタHSに出力端
子YLo,YRoを通して出力され、図12に示される
ように、各プロセッサエレメントPE(x,y)のフリ
ップフロップ3120では、セレクタ3110で選択さ
れているデータ入力端子に入力されている画素データが
クロックパルス信号CK1の各パルスに同期してラッチ
され、他の各プロセッサエレメントPE,各垂直サイド
レジスタVSまたは各水平サイドレジスタHSに出力端
子YLo,YRo,YUo,YDoを通して出力され
る。
On the other hand, as shown in FIG. 13, in the flip-flop 3220 of each input register IR (x, y), the pixel data input to the data input terminal is synchronized with each pulse of the clock pulse signal CK1. After being latched and output to each vertical side register VS or each processor element PE, as shown in FIG. 15, the flip-flop 3 of each vertical side register VS (x, y)
At 320, the pixel data input to the data input terminal selected by the selector 3310 is latched in synchronization with each pulse of the clock pulse signal CK1, and the other processor elements PE, each vertical side register VS, or each horizontal side register VS1 is latched. Output terminals YLo and YR are connected to the side register HS.
o, YUo, and YDo, and as shown in FIG. 17, in the flip-flop 3420 of each horizontal side register HS (x, y), the pixel data input to the data input terminal selected by the selector 3410 Is latched in synchronization with each pulse of the clock pulse signal CK1, and is output to the other processor elements PE, the vertical side registers VS or the horizontal side registers HS through the output terminals YLo and YRo, as shown in FIG. In the flip-flop 3120 of each processor element PE (x, y), the pixel data input to the data input terminal selected by the selector 3110 is latched in synchronization with each pulse of the clock pulse signal CK1, and Each processor element PE, each vertical side register VS or Output terminals YLo in each horizontal side register HS, YRo, YUo, output through YDO.

【0156】また、図19に示されるように、現画像デ
ータ出力手段1000のフリップフロップ1140で
は、フリップフロップ1130のデータ出力端子Yから
出力されている画素データがクロックパルス信号CK1
の各パルスに同期してラッチされ、奇数列の各プロセッ
サエレメントに出力端子Upを通して出力され、現画像
データ出力手段1000のフリップフロップ1250で
は、セレクタ1240で選択されているデータ入力端子
に入力されている画素データがクロックパルス信号CK
1の各パルスに同期してラッチされ、偶数列の各プロセ
ッサエレメントに出力端子Downを通して出力され
る。
As shown in FIG. 19, in the flip-flop 1140 of the current image data output means 1000, the pixel data output from the data output terminal Y of the flip-flop 1130 is supplied to the clock pulse signal CK1.
Are latched in synchronism with each of the pulses, and output to the processor elements in the odd-numbered columns through the output terminal Up. In the flip-flop 1250 of the current image data output means 1000, the flip-flop 1250 is Pixel data is clock pulse signal CK
The signal is latched in synchronization with each pulse of 1 and output to each processor element in the even-numbered column through the output terminal Down.

【0157】よって、以下で説明する第1の画素データ
転送保持手段3001および第2の画素データ転送保持
手段3002における各入力レジスタIR(x,y)に
対しての画素データの入力は、各入力レジスタIR
(x,y)のフリップフロップ3220におけるラッチ
時を意味するものとし、各垂直サイドレジスタVS
(x,y)に対しての画素データの入力は、各垂直サイ
ドレジスタVS(x,y)のフリップフロップ3320
におけるラッチ時を意味するものとし、各水平サイドレ
ジスタHS(x,y)に対しての画素データの入力は、
各水平サイドレジスタHS(x,y)のフリップフロッ
プ3420におけるラッチ時を意味するものとする。ま
た、各プロセッサエレメントPE(x,y)に対しての
画素データの入力は、各プロセッサエレメントPE
(x,y)のフリップフロップ3120におけるラッチ
時を意味するものとする。
Therefore, the input of pixel data to each input register IR (x, y) in the first pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 3002 described below Register IR
This means that the (x, y) flip-flop 3220 is latched, and each vertical side register VS
Input of pixel data to (x, y) is performed by flip-flop 3320 of each vertical side register VS (x, y).
, And the input of pixel data to each horizontal side register HS (x, y)
This means that the flip-flop 3420 of each horizontal side register HS (x, y) is latched. The input of the pixel data to each processor element PE (x, y) is performed by each processor element PE (x, y).
This means that the (x, y) flip-flop 3120 is latched.

【0158】クロックパルス信号CK1のパルス信号に
同期して、各入力レジスタIR(x,y)は、図18に
おける下側の入力レジスタIR(x,y−1)あるいは
参照画像データ記憶手段2000からデータを入力する
ようになっており、クロックパルス信号CK1の各クロ
ック毎に上述の動作が繰り返される。また、クロックパ
ルス信号CK1の1クロック目には、各プロセッサエレ
メントPE(x,y)および各垂直サイドレジスタVS
(x,y)は図18における右側のプロセッサエレメン
トPE(x+1,y)あるいは垂直サイドレジスタVS
(x+1,y)から画素データを入力し、2,3クロッ
ク目には、奇数列の各プロセッサエレメントPE(x,
y)および各垂直サイドレジスタVS(x,y)では図
18における下側のプロセッサエレメントPE(x,y
+1)あるいは垂直サイドレジスタVS(x,y+1)
から画素データを入力し、偶数列の各プロセッサエレメ
ントPE(x,y)および各垂直サイドレジスタVS
(x,y)では図18における上側のプロセッサエレメ
ントPE(x,y−1)あるいは垂直サイドレジスタV
S(x,y−1)から画素データを入力するようになっ
ている。
In synchronization with the pulse signal of the clock pulse signal CK1, each input register IR (x, y) is supplied from the lower input register IR (x, y-1) or the reference image data storage means 2000 in FIG. Data is input, and the above operation is repeated for each clock of the clock pulse signal CK1. In addition, in the first clock of the clock pulse signal CK1, each processor element PE (x, y) and each vertical side register VS
(X, y) is the processor element PE (x + 1, y) on the right side in FIG. 18 or the vertical side register VS
Pixel data is input from (x + 1, y), and at the second and third clocks, each processor element PE (x,
y) and each of the vertical side registers VS (x, y), the lower processor element PE (x, y) in FIG.
+1) or the vertical side register VS (x, y + 1)
, Pixel data from each of the processor elements PE (x, y) and the vertical side registers VS in the even columns.
In (x, y), the upper processor element PE (x, y-1) or the vertical side register V in FIG.
Pixel data is input from S (x, y-1).

【0159】ここで、最上端である第1行目に位置する
プロセッサエレメントPE(x,0)と最下端である第
5行目に位置する垂直サイドレジスタVS(x,4)に
おいては上述の動作ではそれぞれ奇数列においては第5
行目に位置する垂直サイドレジスタVS(x,4)には
第1行目に位置するプロセッサエレメントPE(x,
0)からデータを入力し、偶数列においては第1行目に
位置するプロセッサエレメントPE(x,0)には第5
行目に位置する垂直サイドレジスタVS(x,4)から
データを入力するようになる。以下の説明においてはこ
れらの動作は省略し、下側のプロセッサエレメントある
いは垂直サイドレジスタからの入力または上側のプロセ
ッサエレメントあるいは垂直サイドレジスタからの入力
と記述することにする。
Here, in the processor element PE (x, 0) located on the first row, which is the uppermost end, and the vertical side register VS (x, 4) located on the fifth row, which is the lowermost end, In operation, each of the odd columns has a fifth
In the vertical side register VS (x, 4) located on the line, the processor element PE (x,
0), the processor element PE (x, 0) located in the first row in the even-numbered column has the fifth
Data is input from the vertical side register VS (x, 4) located in the row. In the following description, these operations will be omitted and described as an input from the lower processor element or the vertical side register or an input from the upper processor element or the vertical side register.

【0160】上述の動作はクロックパルス信号CK1の
3クロック毎に、以後の各クロックにおいて繰り返され
る。詳しく説明すると、クロックパルス信号CK1の1
クロック目に同期して、図22に示されるように、参照
画像データ記憶手段2000から、画素データb(0,
0)が入力レジスタIR(3,2)に入力される。次い
で、クロックパルス信号CK1の2クロック目に同期し
て、図23に示されるように、画素データb(0,0)
が入力レジスタIR(3,2)から一つ上に位置する入
力レジスタIR(3,1)に伝送される。
The above operation is repeated every three clocks of the clock pulse signal CK1 in each of the subsequent clocks. More specifically, one of the clock pulse signals CK1
In synchronization with the clock, as shown in FIG. 22, the pixel data b (0,
0) is input to the input register IR (3, 2). Next, in synchronization with the second clock of the clock pulse signal CK1, as shown in FIG. 23, the pixel data b (0,0)
Is transmitted from the input register IR (3, 2) to the input register IR (3, 1) located one level above.

【0161】同時に、参照画像データ記憶手段2000
から、画素データb(0,1)が入力レジスタIR
(3,2)に、画素データb(0,3)が入力レジスタ
IR(3,4)に、それぞれ入力される。次いで、クロ
ックパルス信号CK1の3クロック目に同期して、図2
4に示されるように、画素データb(0,0)が入力レ
ジスタIR(3,1)から一つ上側に位置する入力レジ
スタIR(3,0)に、画素データb(0,1)が入力
レジスタIR(3,2)から一つ上側に位置する入力レ
ジスタIR(3,1)に、画素データb(0,3)が入
力レジスタIR(3,4)から一つ上側に位置する入力
レジスタIR(3,3)に、それぞれ伝送される。
At the same time, reference image data storage means 2000
, The pixel data b (0, 1) is stored in the input register IR.
The pixel data b (0,3) is input to (3,2), respectively, to the input register IR (3,4). Next, in synchronization with the third clock of the clock pulse signal CK1, FIG.
As shown in FIG. 4, the pixel data b (0,1) is stored in the input register IR (3,0) located one level above the input register IR (3,1). The pixel data b (0,3) is input to the input register IR (3,1) located one level above the input register IR (3,2). The data is transmitted to the registers IR (3, 3).

【0162】同時に、参照画像データ記憶手段2000
から、画素データb(0,2)が入力レジスタIR
(3,2)に、画素データb(0,4)が入力レジスタ
IR(3,4)に、それぞれ入力される。次いで、クロ
ックパルス信号CK1の4クロック目に同期して、図2
5に示されるように、各入力レジスタIRに入力された
画素データb(0,0),b(0,1),b(0,
2),b(0,3),b(0,4)は一つ左側に位置す
る各プロセッサエレメントPEまたは各垂直サイドレジ
スタVSにそれぞれ伝送される。
At the same time, reference image data storage means 2000
, The pixel data b (0, 2) is stored in the input register IR.
The pixel data b (0,4) is input to (3,2), respectively, to the input register IR (3,4). Next, in synchronization with the fourth clock of the clock pulse signal CK1, FIG.
As shown in FIG. 5, the pixel data b (0,0), b (0,1), b (0,
2), b (0,3) and b (0,4) are transmitted to each processor element PE or each vertical side register VS located one position to the left.

【0163】詳しく説明すると、画素データb(0,
0)が入力レジスタIR(3,0)からプロセッサエレ
メントPE(2,0)に、画素データb(0,1)が入
力レジスタIR(3,1)からプロセッサエレメントP
E(2,1)に、画素データb(0,2)が入力レジス
タIR(3,2)からプロセッサエレメントPE(2,
2)に、画素データb(0,3)が入力レジスタIR
(3,3)から垂直サイドレジスタVS(2,3)に、
画素データb(0,4)が入力レジスタIR(3,4)
から垂直サイドレジスタVS(2,4)に、それぞれ伝
送される。同時に、参照画像データ記憶手段2000か
ら、画素データb(1,0)が入力レジスタIR(3,
2)に、入力される。
More specifically, the pixel data b (0,
0) from input register IR (3,0) to processor element PE (2,0), and pixel data b (0,1) from input register IR (3,1) to processor element P
In E (2,1), pixel data b (0,2) is transferred from input register IR (3,2) to processor element PE (2,1).
2), the pixel data b (0, 3) is stored in the input register IR.
From (3,3) to the vertical side register VS (2,3),
The pixel data b (0,4) is stored in the input register IR (3,4).
To the vertical side register VS (2, 4). At the same time, the pixel data b (1,0) is stored in the input register IR (3,3) from the reference image data storage unit 2000.
2) is input.

【0164】次いで、クロックパルス信号CK1の5ク
ロック目に同期して、図26に示されるように、各プロ
セッサエレメントPEおよび各垂直サイドレジスタVS
に入力された画素データb(0,0),b(0,1),
b(0,2),b(0,3),b(0,4)および入力
レジスタIR(3,2)に入力された画素データb
(1,0)は、一つ上側に位置する各プロセッサエレメ
ントPEあるいは各レジスタにそれぞれ伝送される。
Next, in synchronization with the fifth clock of the clock pulse signal CK1, as shown in FIG. 26, each processor element PE and each vertical side register VS
, The pixel data b (0,0), b (0,1),
b (0,2), b (0,3), b (0,4) and pixel data b input to the input register IR (3,2)
(1, 0) is transmitted to each processor element PE or each register located one level above.

【0165】詳しく説明すると、画素データb(0,
0)がプロセッサエレメントPE(2,0)から垂直サ
イドレジスタVS(2,4)に、画素データb(0,
1)がプロセッサエレメントPE(2,1)からプロセ
ッサエレメントPE(2,0)に、画素データb(0,
2)がプロセッサエレメントPE(2,2)からプロセ
ッサエレメントPE(2,1)に、画素データb(0,
3)が垂直サイドレジスタVS(2,3)からプロセッ
サエレメントPE(2,2)に、画素データb(0,
4)が垂直サイドレジスタVS(2,4)から垂直サイ
ドレジスタVS(2,3)に、画素データb(1,0)
が入力レジスタIR(3,2)から入力レジスタIR
(3,1)に、それぞれ伝送される。
More specifically, the pixel data b (0,
0) is transferred from the processor element PE (2, 0) to the vertical side register VS (2, 4), and the pixel data b (0,
1) from the processor element PE (2, 1) to the processor element PE (2, 0), the pixel data b (0,
2) from the processor element PE (2, 2) to the processor element PE (2, 1), the pixel data b (0,
3) transfers pixel data b (0,2) from the vertical side register VS (2,3) to the processor element PE (2,2).
4) the pixel data b (1,0) is transferred from the vertical side register VS (2,4) to the vertical side register VS (2,3).
From input register IR (3,2) to input register IR
(3, 1).

【0166】同時に、参照画像データ記憶手段2000
から、画素データb(1,1)が入力レジスタIR
(3,2)に、画素データb(1,3)が入力レジスタ
IR(3,4)に、それぞれ入力される。次いで、クロ
ックパルス信号CK1の6クロック目に同期して、図2
7に示されるように、各プロセッサエレメントPEおよ
び各垂直サイドレジスタVSに入力された画素データb
(0,0),b(0,1),b(0,2),b(0,
3),b(0,4)は、一つ上側に位置する各プロセッ
サエレメントPEあるいは各レジスタに、各入力レジス
タIRに入力された画素データb(1,0),b(1,
1),b(1,3)は、一つ上側の入力レジスタIR
に、それぞれ伝送される。
At the same time, reference image data storage means 2000
, The pixel data b (1, 1) is stored in the input register IR.
The pixel data b (1,3) is input to (3,2), respectively, to the input register IR (3,4). Next, in synchronization with the sixth clock of the clock pulse signal CK1, FIG.
As shown in FIG. 7, the pixel data b input to each processor element PE and each vertical side register VS
(0,0), b (0,1), b (0,2), b (0,
3) and b (0,4) are the pixel data b (1,0) and b (1,1) input to each input register IR in each processor element PE or each register located one level above.
1), b (1, 3) are input registers IR one level above
, Respectively.

【0167】詳しく説明すると、画素データb(0,
1)がプロセッサエレメントPE(2,0)から垂直サ
イドレジスタVS(2,4)に、画素データb(0,
2)がプロセッサエレメントPE(2,1)からプロセ
ッサエレメントPE(2,0)に、画素データb(0,
3)がプロセッサエレメントPE(2,2)からプロセ
ッサエレメントPE(2,1)に、画素データb(0,
4)が垂直サイドレジスタVS(2,3)からプロセッ
サエレメントPE(2,2)に、画素データb(0,
0)が垂直サイドレジスタVS(2,4)から垂直サイ
ドレジスタVS(2,3)に、画素データb(1,0)
が入力レジスタIR(3,1)から入力レジスタIR
(3,0)に、画素データb(1,1)が入力レジスタ
IR(3,2)から入力レジスタIR(3,1)に、画
素データb(1,3)が入力レジスタIR(3,4)か
ら入力レジスタIR(3,3)に、それぞれ伝送され
る。
More specifically, the pixel data b (0,
1) sends pixel data b (0,2) from the processor element PE (2,0) to the vertical side register VS (2,4).
2) from the processor element PE (2,1) to the processor element PE (2,0), the pixel data b (0,
3) transfers pixel data b (0,2) from the processor element PE (2,2) to the processor element PE (2,1).
4) sends pixel data b (0,2) from the vertical side register VS (2,3) to the processor element PE (2,2).
0) from the vertical side register VS (2,4) to the vertical side register VS (2,3),
From the input register IR (3,1) to the input register IR
At (3,0), pixel data b (1,1) is transferred from input register IR (3,2) to input register IR (3,1), and pixel data b (1,3) is stored at input register IR (3,1). 4) to the input registers IR (3,3).

【0168】同時に、参照画像データ記憶手段2000
から、画素データb(1,2)が入力レジスタIR
(3,2)に、画素データb(1,4)が入力レジスタ
IR(3,4)に、それぞれ入力される。次いで、クロ
ックパルス信号CK1の7クロック目に同期して、図2
8に示されるように、各プロセッサエレメントPEおよ
び各垂直サイドレジスタVSに伝送された画素データb
(0,0),b(0,1),b(0,2),b(0,
3),b(0,4)は一つ左側に位置する各プロセッサ
エレメントPEまたは各垂直サイドレジスタVSに、各
入力レジスタIRに入力された画素データb(1,
0),b(1,1),b(1,2),b(1,3),b
(1,4)は一つ左側に位置する各プロセッサエレメン
トPEまたは各垂直サイドレジスタVSに、それぞれ伝
送される。
At the same time, reference image data storage means 2000
From the input register IR
The pixel data b (1, 4) is input to (3, 2), respectively, to the input register IR (3, 4). Next, in synchronization with the seventh clock of the clock pulse signal CK1, FIG.
As shown in FIG. 8, the pixel data b transmitted to each processor element PE and each vertical side register VS
(0,0), b (0,1), b (0,2), b (0,
3) and b (0,4) are the pixel data b (1,1) input to each input register IR in each processor element PE or each vertical side register VS located on the left side.
0), b (1, 1), b (1, 2), b (1, 3), b
(1, 4) is transmitted to each processor element PE or each vertical side register VS located one position to the left.

【0169】詳しく説明すると、画素データb(0,
2)がプロセッサエレメントPE(2,0)からプロセ
ッサエレメントPE(1,0)に、画素データb(0,
3)がプロセッサエレメントPE(2,1)からプロセ
ッサエレメントPE(1,1)に、画素データb(0,
4)がプロセッサエレメントPE(2,2)からプロセ
ッサエレメントPE(1,2)に、画素データb(0,
0)が垂直サイドレジスタVS(2,3)から垂直サイ
ドレジスタVS(1,3)に、画素データb(0,1)
が垂直サイドレジスタVS(2,4)から垂直サイドレ
ジスタVS(1,4)に、画素データb(1,0)が入
力レジスタIR(3,0)からプロセッサエレメントP
E(2,0)に、画素データb(1,1)が入力レジス
タIR(3,1)からプロセッサエレメントPE(2,
1)に、画素データb(1,2)が入力レジスタIR
(3,2)からプロセッサエレメントPE(2,2)
に、画素データb(1,3)が入力レジスタIR(3,
3)から垂直サイドレジスタVS(2,3)に、画素デ
ータb(1,4)が入力レジスタIR(3,4)から垂
直サイドレジスタVS(2,4)に、それぞれ伝送され
る。
More specifically, pixel data b (0,
2) from the processor element PE (2, 0) to the processor element PE (1, 0), the pixel data b (0,
3) transfers pixel data b (0,0) from the processor element PE (2,1) to the processor element PE (1,1).
4) transfers pixel data b (0,0) from the processor element PE (2,2) to the processor element PE (1,2).
0) is transferred from the vertical side register VS (2,3) to the vertical side register VS (1,3), and the pixel data b (0,1)
From the vertical side register VS (2,4) to the vertical side register VS (1,4), and the pixel data b (1,0) from the input register IR (3,0) to the processor element P
At E (2,0), pixel data b (1,1) is transferred from the input register IR (3,1) to the processor element PE (2,1).
1), the pixel data b (1, 2) is stored in the input register IR.
From (3, 2) to processor element PE (2, 2)
The pixel data b (1,3) is input to the input register IR (3,3).
3) to the vertical side register VS (2,3), and the pixel data b (1,4) from the input register IR (3,4) to the vertical side register VS (2,4).

【0170】同時に、参照画像データ記憶手段2000
から、画素データb(2,0)が入力レジスタIR
(3,2)に、入力される。さらに、現画像データ出力
手段1000では、クロックパルス信号CK1の7クロ
ック目に同期して、図示しない現画像データ記憶手段か
ら、画素データa(0,0)がフリップフロップ111
0に入力される。
At the same time, reference image data storage means 2000
From the input register IR
(3, 2) is input. Further, in the current image data output means 1000, in synchronization with the seventh clock of the clock pulse signal CK1, the pixel data a (0,0) is supplied from the current image data storage means (not shown) to the flip-flop 111.
Input to 0.

【0171】次いで、クロックパルス信号CK1の8ク
ロック目に同期して、図29に示されるように、各プロ
セッサエレメントPEおよび各垂直サイドレジスタVS
に伝送された画素データb(0,0),b(0,1),
b(0,2),b(0,3),b(0,4)は一つ下側
に位置する各プロセッサエレメントPEおよび各垂直サ
イドレジスタVSに、各プロセッサエレメントPEおよ
び各垂直サイドレジスタVSに伝送された画素データb
(1,0),b(1,1),b(1,2),b(1,
3),b(1,4)および入力レジスタIR(3,2)
に入力された画素データb(2,0)は、一つ上側に位
置する各プロセッサエレメントPEあるいは各レジスタ
に、それぞれ伝送される。
Next, in synchronization with the eighth clock of the clock pulse signal CK1, as shown in FIG. 29, each processor element PE and each vertical side register VS
Pixel data b (0,0), b (0,1),
b (0,2), b (0,3), b (0,4) are assigned to each processor element PE and each vertical side register VS located one position below, and each processor element PE and each vertical side register VS Pixel data b transmitted to
(1,0), b (1,1), b (1,2), b (1,
3), b (1, 4) and input register IR (3, 2)
Is transmitted to each processor element PE or each register located one upper position.

【0172】同時に、参照画像データ記憶手段2000
から、画素データb(2,1)が入力レジスタIR
(3,2)に、画素データb(2,3)が入力レジスタ
IR(3,4)に、それぞれ入力される。さらに、現画
像データ出力手段1000では、クロックパルス信号C
K1の8クロック目に同期して、画素データa(0,
0)がフリップフロップ1110からフリップフロップ
1120に伝送され、同時に現画像データ記憶手段から
画素データa(0,1)がフリップフロップ1110に
入力される。
At the same time, reference image data storage means 2000
From the input register IR
The pixel data b (2,3) is input to (3,2), respectively, to the input register IR (3,4). Further, in the current image data output means 1000, the clock pulse signal C
In synchronization with the eighth clock of K1, the pixel data a (0,
0) is transmitted from the flip-flop 1110 to the flip-flop 1120, and at the same time, the pixel data a (0, 1) is input to the flip-flop 1110 from the current image data storage means.

【0173】次いで、クロックパルス信号CK1の9ク
ロック目に同期して、図30に示されるように、各プロ
セッサエレメントPEおよび各垂直サイドレジスタVS
に伝送された画素データb(0,0),b(0,1),
b(0,2),b(0,3),b(0,4)は一つ下側
に位置する各プロセッサエレメントPEあるいは各垂直
サイドレジスタVSに、各プロセッサエレメントPEお
よび各垂直サイドレジスタVSに伝送された画素データ
b(1,0),b(1,1),b(1,2),b(1,
3),b(1,4)は一つ上側に位置する各プロセッサ
エレメントPEあるいは各垂直サイドレジスタVSに、
各入力レジスタIRに入力された画素データb(2,
0),b(2,1),b(2,3)は、一つ上側に位置
する各入力レジスタIRに、それぞれ伝送される。
Next, in synchronization with the ninth clock of the clock pulse signal CK1, as shown in FIG. 30, each processor element PE and each vertical side register VS
Pixel data b (0,0), b (0,1),
b (0,2), b (0,3), b (0,4) are assigned to each processor element PE or each vertical side register VS located one position below, each processor element PE and each vertical side register VS Pixel data b (1,0), b (1,1), b (1,2), b (1,
3), b (1, 4) are stored in each processor element PE or each vertical side register VS located one level above,
The pixel data b (2,2) input to each input register IR
0), b (2, 1) and b (2, 3) are transmitted to the input registers IR located one level above, respectively.

【0174】同時に、参照画像データ記憶手段2000
から、画素データb(2,2)が入力レジスタIR
(3,2)に、画素データb(2,4)が入力レジスタ
IR(3,4)に、それぞれ入力される。さらに、現画
像データ出力手段1000では、クロックパルス信号C
K1の9クロック目に同期して、画素データa(0,
0)がフリップフロップ1120からフリップフロップ
1130に、画素データa(0,1)がフリップフロッ
プ1110からフリップフロップ1120に、それぞれ
伝送され、同時に、現画像データ記憶手段から、画素デ
ータa(0,2)がフリップフロップ1110に入力さ
れる。
At the same time, reference image data storage means 2000
From the input register IR
The pixel data b (2,4) is input to (3,2), respectively, to the input register IR (3,4). Further, in the current image data output means 1000, the clock pulse signal C
In synchronization with the ninth clock of K1, the pixel data a (0,
0) is transmitted from the flip-flop 1120 to the flip-flop 1130, and the pixel data a (0, 1) is transmitted from the flip-flop 1110 to the flip-flop 1120. At the same time, the pixel data a (0, 2) ) Is input to the flip-flop 1110.

【0175】次いで、クロックパルス信号CK1の10
クロック目に同期して、図31に示されるように、各プ
ロセッサエレメントPEおよび各垂直サイドレジスタV
Sに伝送された画素データb(0,0),b(0,
1),b(0,2),b(0,3),b(0,4),b
(1,0),b(1,1),b(1,2),b(1,
3),b(1,4)は一つ左側に位置する各プロセッサ
エレメントPEまたは各垂直サイドレジスタVSに、各
入力レジスタIRに入力された画素データb(2,
0),b(2,1),b(2,2),b(2,3),b
(2,4)は一つ左側に位置する各プロセッサエレメン
トPEまたは各垂直サイドレジスタVSに、それぞれ伝
送される。
Next, 10 of the clock pulse signal CK1
In synchronization with the clock, as shown in FIG. 31, each processor element PE and each vertical side register V
The pixel data b (0,0), b (0,0,
1), b (0, 2), b (0, 3), b (0, 4), b
(1,0), b (1,1), b (1,2), b (1,
3) and b (1, 4) are stored in each processor element PE or each vertical side register VS located on the left side and the pixel data b (2, 2) input to each input register IR.
0), b (2, 1), b (2, 2), b (2, 3), b
(2, 4) is transmitted to each processor element PE or each vertical side register VS located one to the left.

【0176】同時に、参照画像データ記憶手段2000
から、画素データb(3,0)が入力レジスタIR
(3,2)に入力される。さらに、現画像データ出力手
段1000では、クロックパルス信号CK1の9クロッ
ク目の立ち下がりに同期してパルス信号SLが1を表わ
す信号となるため、セレクタ1220およびセレクタ1
240では第2データ入力端子Bとデータ出力端子Yが
電気的に接続され、クロックパルス信号CK1の10ク
ロック目に同期して、画素データa(0,0)がフリッ
プフロップ1130からフリップフロップ1140およ
びフリップフロップ1210に、画素データa(0,
1)がフリップフロップ1120からフリップフロップ
1130およびセレクタ1220の第2データ入力端子
Bを介してフリップフロップ1230に、画素データa
(0,2)がフリップフロップ1110からフリップフ
ロップ1120およびセレクタ1240の第2データ入
力端子Bを介してフリップフロップ1250に、それぞ
れ伝送され、同時に、現画像データ記憶手段2000か
ら画素データa(1,0)がフリップフロップ1110
に入力される。
At the same time, reference image data storage means 2000
From the input register IR
Input to (3, 2). Further, in the current image data output means 1000, the pulse signal SL becomes a signal representing 1 in synchronization with the falling edge of the ninth clock of the clock pulse signal CK1, so that the selector 1220 and the selector 1
At 240, the second data input terminal B and the data output terminal Y are electrically connected, and the pixel data a (0,0) is transmitted from the flip-flop 1130 to the flip-flop 1140 and in synchronization with the tenth clock of the clock pulse signal CK1. In the flip-flop 1210, the pixel data a (0,
1) the pixel data a from the flip-flop 1120 to the flip-flop 1230 via the flip-flop 1130 and the second data input terminal B of the selector 1220;
(0, 2) is transmitted from the flip-flop 1110 to the flip-flop 1250 via the flip-flop 1120 and the second data input terminal B of the selector 1240, respectively, and at the same time, the pixel data a (1, 0) is a flip-flop 1110
Is input to

【0177】以上の動作で各プロセッサエレメント PE(0,0),PE(0,1),PE(0,2), PE(1,0),PE(1,1),PE(1,2), PE(2,0),PE(2,1)およびPE(2,2)
に画素データ b(0,0),b(0,1),b(0,2), b(1,2),b(1,3),b(1,4), b(2,0),b(2,1)およびb(2,2)が記載
順に入力され、ディストーション算出の準備が完了した
ことになり、各プロセッサエレメントPEでは、以下の
演算処理が開始される。
With the above operation, each processor element PE (0,0), PE (0,1), PE (0,2), PE (1,0), PE (1,1), PE (1,2) ), PE (2,0), PE (2,1) and PE (2,2)
, The pixel data b (0,0), b (0,1), b (0,2), b (1,2), b (1,3), b (1,4), b (2,0) ), B (2,1) and b (2,2) are input in the stated order, and the preparation for the distortion calculation is completed, and the following arithmetic processing is started in each processor element PE.

【0178】なお、クロックパルス信号CK1の11ク
ロック目以降18クロック目までの間、各プロセッサエ
レメント,各垂直サイドレジスタおよび各入力レジスタ
間の画素データの伝送および入力は同様に行なわれる。
一旦、画素データの転送動作についての説明はここで終
わりにして、演算処理の説明の後、再び説明することに
する。
The transmission and input of pixel data between each processor element, each vertical side register, and each input register are performed in the same manner from the 11th clock to the 18th clock of the clock pulse signal CK1.
The description of the transfer operation of the pixel data once ends here, and will be described again after the description of the arithmetic processing.

【0179】図6に示されるクロックパルス信号CK1
の10クロック目のアップエッヂから19クロック目の
アップエッヂまでの間の期間c10,c11,c12,
c13,c14,c15,c16,c17,c18にお
いて、各プロセッサエレメントPE(x,y)の各素子
では、以下の演算処理が行われ、ディストーションがそ
れぞれ求められる。
Clock pulse signal CK1 shown in FIG.
Period c10, c11, c12, c10, c11, c12,
In c13, c14, c15, c16, c17, and c18, the following arithmetic processing is performed in each element of each processor element PE (x, y), and distortion is obtained.

【0180】すなわち、期間c10においては、図31
に示すように、各画素データ b(0,0),b(0,1),b(0,2), b(1,2),b(1,3),b(1,4), b(2,0),b(2,1)およびb(2,2)が、各
プロセッサエレメントのセレクタ3110およびフリッ
プフロップ3120を経由して、それぞれ記載順に対応
するプロセッサエレメント PE(0,0),PE(0,1),PE(0,2), PE(1,0),PE(1,1),PE(1,2), PE(2,0),PE(2,1),PE(2,2)の減
算器5210に第1データ入力端子Aを介して入力され
る。
That is, in the period c10, FIG.
, Each of the pixel data b (0,0), b (0,1), b (0,2), b (1,2), b (1,3), b (1,4), b (2,0), b (2,1) and b (2,2) pass through the selector 3110 and the flip-flop 3120 of each processor element, and correspond to the corresponding processor element PE (0,0). , PE (0,1), PE (0,2), PE (1,0), PE (1,1), PE (1,2), PE (2,0), PE (2,1), The data is input to the subtractor 5210 of PE (2, 2) via the first data input terminal A.

【0181】すなわち、奇数列の各プロセッサエレメン
トPE(x,y)には、画素データb(x,y)が入力
され、偶数列の各プロセッサエレメントPE(x,y)
には、画素データb(x,y+2)が入力される。ま
た、同時に奇数列の各プロセッサエレメントPEでは現
画像ブロックの画素データa(0,0)が、各プロセッ
サエレメントPE(x,y)の減算器5210に第2デ
ータ入力端子Bを介して入力され、偶数列の各プロセッ
サエレメントでは現画像ブロックの画素データa(0,
2)が、各プロセッサエレメントPE(x,y)の減算
器5210に第2データ入力端子Bを介して入力され
る。
That is, pixel data b (x, y) is input to each of the odd-numbered processor elements PE (x, y), and each of the even-numbered processor elements PE (x, y).
, Pixel data b (x, y + 2) is input. At the same time, the pixel data a (0,0) of the current image block is input to the subtractor 5210 of each processor element PE (x, y) via the second data input terminal B in each processor element PE in the odd column. , The pixel data a (0,
2) is input to the subtractor 5210 of each processor element PE (x, y) via the second data input terminal B.

【0182】これにより、奇数列の各プロセッサエレメ
ントPE(x,y)では、減算器5210によりb
(x,y)−a(0,0)が演算され、偶数列の各プロ
セッサエレメントPE(x,y)では、減算器5210
によりb(x,y+2)−a(0,2)が演算され、正
数変換器5220により、 (奇数) |b(x,y) - a(0,0)| (偶数) |b(x,y+2) - a(0,2)| に変換されて、加算器5230に第1データ入力端子A
を介して入力される。
Thus, in each processor element PE (x, y) in the odd-numbered column, b
(X, y) -a (0,0) is calculated, and in each processor element PE (x, y) in the even-numbered column, a subtractor 5210 is used.
B (x, y + 2) −a (0,2) is calculated by the following equation, and the positive number converter 5220 calculates (odd) | b (x, y) −a (0,0) | (even number) | b (x , y + 2) -a (0,2) |, and the first data input terminal A
Is entered via

【0183】一方、各プロセッサエレメントの反転器5
250には、信号入力端子Sを介してパルス信号CLが
入力される。このパルス信号CLが期間c10の前の期
間c9において、クロックパルス信号CK1の9クロッ
ク目の立ち下がりに同期して1となるため、反転器52
50の信号入力端子Sには1が入力され、その結果、論
理積演算器5260のデータ出力端子Yを介してデータ
0が出力され、加算器5230に第2データ入力端子B
を介して入力される。よって、加算器5230では、第
1データ入力端子Aを介して入力される上記今回データ
と第2データ入力端子Bを介して入力される0とが加算
され、 (奇数) |b(x,y) - a(0,0)| (偶数) |b(x,y+2) - a(0,2)| が算出されて、フリップフロップ5240に入力され
る。
On the other hand, the inverter 5 of each processor element
The pulse signal CL is input to 250 via the signal input terminal S. Since the pulse signal CL becomes 1 in a period c9 before the period c10 in synchronization with the falling of the ninth clock of the clock pulse signal CK1, the inverter 52
1 is input to the signal input terminal S of the logical AND operation unit 5260, and as a result, data 0 is output via the data output terminal Y of the AND operator 5260, and the second data input terminal B
Is entered via Therefore, in the adder 5230, the current data input through the first data input terminal A and 0 input through the second data input terminal B are added, and (odd number) | b (x, y ) -a (0,0) | (even number) | b (x, y + 2) -a (0,2) | is calculated and input to the flip-flop 5240.

【0184】期間c11においては、奇数列の各プロセ
ッサエレメントPE(x,y)の減算器5210には、
第1データ入力端子Aを介して、画素データb(x,y
+1)が入力され、第2データ入力端子Bを介して、現
画像ブロックの画素データa(0,1)が入力される。
偶数列の各プロセッサエレメントPE(x,y)の減算
器5210には、第1データ入力端子Aを介して、画素
データb(x,y+1)が入力され、第2データ入力端
子Bを介して、現画像ブロックの画素データa(0,
1)が入力される。
In the period c11, the subtractor 5210 of each processor element PE (x, y) in the odd-numbered column supplies
Through the first data input terminal A, the pixel data b (x, y
+1) is input, and pixel data a (0, 1) of the current image block is input via the second data input terminal B.
The pixel data b (x, y + 1) is input to the subtractor 5210 of each processor element PE (x, y) in the even-numbered column via the first data input terminal A, and is input via the second data input terminal B. , Pixel data a (0,
1) is input.

【0185】したがって、奇数列および偶数列の各プロ
セッサエレメントPE(x,y)では、ともに減算器5
210によりb(x,y+1)−a(0,1)が演算さ
れ、正数変換器5220により (奇数) |b(x,y+1) - a(0,1)| (偶数) |b(x,y+1) - a(0,1)| に変換されて、加算器5230に第1データ入力端子A
を介して入力される。
Therefore, in each of the odd-column and even-column processor elements PE (x, y), the subtractor 5
210 calculates b (x, y + 1) -a (0,1), and the positive number converter 5220 calculates (odd) | b (x, y + 1) -a (0,1) | (even) | b (x, y + 1) -a (0,1) |, and the first data input terminal A
Is entered via

【0186】一方、各プロセッサエレメントの反転器5
250には、信号入力端子Sを介してパルス信号CLが
入力される。このパルス信号CLが期間c11の前の期
間c10において、クロックパルス信号CK1の10ク
ロック目の立ち下がりに同期して0となるため、反転器
5250の信号入力端子Sには0が入力され、その結果
フリップフロップ5240にラッチされ出力されている
前回データ (奇数) |b(x,y) - a(0,0)| (偶数) |b(x,y+2) - a(0,2)| が論理積演算器5260のデータ出力端子Yを介して出
力され、加算器5230に第2データ入力端子Bを介し
て入力される。よって、加算器5230では、第1デー
タ入力端子Aを介して入力される上記今回データと第2
データ入力端子Bを介して入力される上記前回データと
が加算され、 が算出されて、フリップフロップ5240に入力され
る。
On the other hand, the inverter 5 of each processor element
The pulse signal CL is input to 250 via the signal input terminal S. Since the pulse signal CL becomes 0 in a period c10 before the period c11 in synchronization with the fall of the tenth clock of the clock pulse signal CK1, 0 is input to the signal input terminal S of the inverter 5250. Previous data latched and output by result flip-flop 5240 (odd number) | b (x, y)-a (0,0) | (even number) | b (x, y + 2)-a (0,2) Is output via the data output terminal Y of the AND operator 5260 and is input to the adder 5230 via the second data input terminal B. Therefore, in the adder 5230, the current data input through the first data input terminal A and the second data
The previous data input via the data input terminal B is added, Is calculated and input to the flip-flop 5240.

【0187】尚、期間c11以降、つぎにパルス信号C
Lが1となるまでの間は論理積演算器5260のデータ
出力端子Yからは常にフリップフロップ5240のデー
タ出力端子Yより出力され、論理積演算器の第2データ
入力端子Bに入力された前回データが出力され、加算器
5230では第1データ入力端子Aに今回データが入力
され、第2データ入力端子Bに前回データが入力され、
したがって、今回データと前回データを加算した値をデ
ータ出力端子Yから出力することになる。
After the period c11, the pulse signal C
Until L becomes 1, data is always output from the data output terminal Y of the flip-flop 5240 from the data output terminal Y of the AND operator 5260, and is output to the second data input terminal B of the AND operator. The data is output. In the adder 5230, the current data is input to the first data input terminal A, and the previous data is input to the second data input terminal B.
Therefore, a value obtained by adding the current data and the previous data is output from the data output terminal Y.

【0188】期間c12において、奇数列の各プロセッ
サエレメントPE(x,y)の減算器5210には、第
1データ入力端子Aを介して、画素データb(x,y+
2)が入力され、第2データ入力端子Bを介して、現画
像ブロックの画素データa(0,2)が入力される。偶
数列の各プロセッサエレメントPE(x,y)の減算器
5210には、第1データ入力端子Aを介して、画素デ
ータb(x,y)が入力され、第2データ入力端子Bを
介して、現画像ブロックの画素データa(0,0)が入
力される。
In the period c12, the pixel data b (x, y +) is supplied via the first data input terminal A to the subtractor 5210 of each processor element PE (x, y) in the odd column.
2) is input, and pixel data a (0, 2) of the current image block is input via the second data input terminal B. The pixel data b (x, y) is input to the subtractor 5210 of each processor element PE (x, y) in the even-numbered column via the first data input terminal A, and is input via the second data input terminal B. , Pixel data a (0,0) of the current image block is input.

【0189】これにより、奇数列の各プロセッサエレメ
ントPE(x,y)では、減算器5210によりb
(x,y+2)−a(0,2)が演算され、偶数列の各
プロセッサエレメントPE(x,y)では、減算器52
10によりb(x,y)−a(0,0)が演算され、正
数変換器5220により (奇数) |b(x,y+2) - a(0,2)| (偶数) |b(x,y) - a(0,0)| に変換されて、加算器5230に第1データ入力端子A
を介して入力される。また、加算器5230には、第2
データ入力端子Bを介して、期間c11において計算さ
れた上記前回データがフリップフロップ5240より論
理積演算器5260を通して入力される。
As a result, in each processor element PE (x, y) in the odd-numbered column, b
(X, y + 2) -a (0, 2) is calculated, and in each processor element PE (x, y) in the even-numbered column, the subtracter 52
10 calculates b (x, y) -a (0,0), and the positive number converter 5220 calculates (odd) | b (x, y + 2) -a (0,2) | (even) | b (x, y) -a (0,0) | and the first data input terminal A
Is entered via The adder 5230 includes the second
Through the data input terminal B, the previous data calculated in the period c11 is input from the flip-flop 5240 through the logical product calculator 5260.

【0190】加算器5230では、上記2つのデータが
加算され、 が算出されて、フリップフロップ5240に入力され
る。
In the adder 5230, the above two data are added. Is calculated and input to the flip-flop 5240.

【0191】期間c13において、奇数列の各プロセッ
サエレメントPE(x,y)の減算器5210には、第
1データ入力端子Aを介して、画素データb(x+1,
y)が入力され、第2データ入力端子Bを介して、現画
像ブロックの画素データa(1,0)が入力される。偶
数列の各プロセッサエレメントPE(x,y)の減算器
5210には、第1データ入力端子Aを介して、画素デ
ータb(x+1,y+2)が入力され、第2データ入力
端子Bを介して、現画像ブロックの画素データa(1,
2)が入力される。
In the period c13, the pixel data b (x + 1,2) is supplied to the subtractor 5210 of each processor element PE (x, y) in the odd column via the first data input terminal A.
y) is input, and pixel data a (1, 0) of the current image block is input via the second data input terminal B. The pixel data b (x + 1, y + 2) is input to the subtractor 5210 of each processor element PE (x, y) in the even-numbered column via the first data input terminal A, and is input via the second data input terminal B. , Pixel data a (1,
2) is input.

【0192】これにより、奇数列の各プロセッサエレメ
ントPE(x,y)では、減算器5210によりb(x
+1,y)−a(1,0)が演算され、偶数列の各プロ
セッサエレメントPE(x,y)では、減算器5210
によりb(x+1,y+2)−a(1,2)が演算さ
れ、正数変換器5220により (奇数) |b(x+1,y) - a(1,0)| (偶数) |b(x+1,y+2) - a(1,2)| に変換されて、加算器5230に第1データ入力端子A
を介して入力される。また、加算器5230には、第2
データ入力端子Bを介して、期間c12において計算さ
れた上記前回データがフリップフロップ5240より論
理積演算器5260を通して入力される。
Thus, in each processor element PE (x, y) in the odd-numbered column, b (x
+1, y) -a (1, 0) is calculated, and in each processor element PE (x, y) in an even-numbered column, a subtractor 5210 is used.
B (x + 1, y + 2) -a (1,2) is calculated by the following equation, and the positive number converter 5220 calculates (odd number) | b (x + 1, y)-a (1,0) | (even number) | b ( x + 1, y + 2)-a (1,2) |
Is entered via The adder 5230 includes the second
Via the data input terminal B, the previous data calculated in the period c12 is input from the flip-flop 5240 through the logical product calculator 5260.

【0193】加算器5230では、上記2つのデータが
加算され、 が算出されて、フリップフロップ5240に入力され
る。
In the adder 5230, the above two data are added. Is calculated and input to the flip-flop 5240.

【0194】期間c14において、奇数列の各プロセッ
サエレメントPE(x,y)の減算器5210には、第
1データ入力端子Aを介して、画素データb(x+1,
y+1)が入力され、また、第2データ入力端子Bを介
して、現画像ブロックの画素データa(1,1)が入力
される。偶数列の各プロセッサエレメントPE(x,
y)の減算器5210には、第1データ入力端子Aを介
して、画素データb(x+1,y+1)が入力され、ま
た、第2データ入力端子Bを介して、現画像ブロックの
画素データa(1,1)が入力される。
In the period c14, the pixel data b (x + 1,2) is supplied to the subtracter 5210 of each processor element PE (x, y) in the odd column via the first data input terminal A.
y + 1) is input, and the pixel data a (1, 1) of the current image block is input via the second data input terminal B. Each processor element PE (x,
The pixel data b (x + 1, y + 1) is input to the subtractor 5210 of y) via the first data input terminal A, and the pixel data a of the current image block is input via the second data input terminal B. (1, 1) is input.

【0195】したがって、奇数列および偶数列の各プロ
セッサエレメントPE(x,y)では、ともに減算器5
210によりb(x+1,y+1)−a(1,1)が演
算され、正数変換器5220により (奇数) |b(x+1,y+1) - a(1,1)| (偶数) |b(x+1,y+1) - a(1,1)| に変換されて、加算器5230に第1データ入力端子A
を介して入力される。また、加算器5230には、第2
データ入力端子Bを介して、期間c13において計算さ
れた上記前回データがフリップフロップ5240より論
理積演算器5260を介して入力される。
Therefore, in each of the odd-numbered and even-numbered processor elements PE (x, y), the subtractor 5
210 calculates b (x + 1, y + 1) -a (1,1), and the positive number converter 5220 calculates (odd number) | b (x + 1, y + 1) -a (1,1) | (even number) | b (x + 1, y + 1) -a (1,1) | and the first data input terminal A
Is entered via The adder 5230 includes the second
Through the data input terminal B, the previous data calculated in the period c13 is input from the flip-flop 5240 via the logical product calculator 5260.

【0196】加算器5230では、上記2つのデータが
加算され、 が算出されて、フリップフロップ5240に入力され
る。
In the adder 5230, the above two data are added. Is calculated and input to the flip-flop 5240.

【0197】期間c15において、奇数列の各プロセッ
サエレメントPE(x,y)の減算器5210には、第
1データ入力端子Aを介して、画素データb(x+1,
y+2)が入力され、第2データ入力端子Bを介して、
現画像ブロックの画素データa(1,2)が入力され
る。偶数列の各プロセッサエレメントPE(x,y)の
減算器5210には、第1データ入力端子Aを介して、
画素データb(x+1,y)が入力され、第2データ入
力端子Bを介して、現画像ブロックの画素データa
(1,0)が入力される。
In the period c15, the pixel data b (x + 1,2) is supplied to the subtractor 5210 of each processor element PE (x, y) in the odd column via the first data input terminal A.
y + 2) is input, and via the second data input terminal B,
Pixel data a (1,2) of the current image block is input. The subtracter 5210 of each processor element PE (x, y) in the even-numbered column is connected via the first data input terminal A to
The pixel data b (x + 1, y) is input, and the pixel data a of the current image block is input via the second data input terminal B.
(1, 0) is input.

【0198】奇数列の各プロセッサエレメントPE
(x,y)では、減算器5210によりb(x+1,y
+2)−a(1,2)が演算され、偶数列の各プロセッ
サエレメントPE(x,y)では、減算器5210によ
りb(x+1,y)−a(1,0)が演算され、正数変
換器5220により (奇数) |b(x+1,y+2) - a(1,2)| (偶数) |b(x+1,y) - a(1,0)| に変換されて、加算器5230に第1データ入力端子A
を介して入力される。また、加算器5230には、第2
データ入力端子Bを介して、期間c14において計算さ
れた上記前回データがフリップフロップ5240より論
理積演算器5260を介して入力される。
Each processor element PE in an odd column
In (x, y), b (x + 1, y) is subtracted by the subtractor 5210.
+2) −a (1,2) is calculated, and in each processor element PE (x, y) in the even-numbered column, b (x + 1, y) −a (1,0) is calculated by the subtractor 5210 to obtain a positive number. Is converted to (odd) | b (x + 1, y + 2)-a (1,2) | (even) | b (x + 1, y)-a (1,0) | , The first data input terminal A to adder 5230
Is entered via The adder 5230 includes the second
Through the data input terminal B, the previous data calculated in the period c14 is input from the flip-flop 5240 through the logical product calculator 5260.

【0199】加算器5230では、上記2つのデータが
加算され、 が算出されて、フリップフロップ5240に入力され
る。
The adder 5230 adds the above two data, and Is calculated and input to the flip-flop 5240.

【0200】期間16から期間18においても同様に演
算処理が行われ、この結果 (奇数) |b(x+2,y+2) - a(2,2)| + |b(x+2,y+1) - a(2,1)| + |b(x+2,y) - a(2,0)| + |b(x+1,y+2) - a(1,2)| + |b(x+1,y+1) - a(1,1)| + |b(x+1,y) - a(1,0)| + |b(x,y+2) - a(0,2)| + |b(x,y+1) - a(0,1)| + |b(x,y) - a(0,0)| ・・・(Q1) (偶数) |b(x+2,y) - a(2,0)| + |b(x+2,y+1) - a(2,1)| + |b(x+2,y+2) - a(2,2)| + |b(x+1,y) - a(1,0)| + |b(x+1,y+1) - a(1,1)| + |b(x+1,y+2) - a(1,2)| + |b(x,y) - a(0,0)| + |b(x,y+1) - a(0,1)| + |b(x,y+2) - a(0,2)| ・・・(Q2) が算出されて、フリップフロップ5240に入力され
る。
The same arithmetic processing is performed from the period 16 to the period 18, and as a result (odd number) | b (x + 2, y + 2) −a (2,2) | + | b (x + 2, y + 1)-a (2,1) | + | b (x + 2, y)-a (2,0) | + | b (x + 1, y + 2)-a (1,2) | + | B (x + 1, y + 1)-a (1,1) | + | b (x + 1, y)-a (1,0) | + | b (x, y + 2)-a (0,2) | + | b (x, y + 1) -a (0,1) | + | b (x, y) -a (0,0) | (Q1) (even number) | b (x + 2, y)-a (2,0) | + | b (x + 2, y + 1)-a (2,1) | + | b (x + 2, y + 2)-a (2,2) | + | b (x + 1, y)-a (1,0) | + | b (x + 1, y + 1)-a (1,1) | + | b (x + 1, y + 2)-a (1,2) | + | b (x, y)-a (0,0) | + | b (x, y + 1)-a (0,1) | + | b (x, y + 2) -a (0,2) | (Q2) is calculated and input to the flip-flop 5240.

【0201】奇数列のプロセッサエレメントPE(x,
y)から出力される上記式(Q1)は、変形すると偶数
列のプロセッサエレメントPE(x,y)から出力され
る上記式(Q2)と同等である。上記式(Q1)および
(Q2)は、図3に示されたサーチウィンドウ210の
複数の候補ブロック310と、第1現画像ブロック11
0とのディストーションを表わす式である。
The processor elements PE (x,
The above equation (Q1) output from y) is equivalent to the above equation (Q2) output from the even-numbered column of processor elements PE (x, y) when deformed. The above equations (Q1) and (Q2) are obtained by dividing the plurality of candidate blocks 310 of the search window 210 shown in FIG.
This is an expression representing distortion with 0.

【0202】以下の説明では、上記式(Q1),(Q
2)をD(x,y)とする。以上の動作で各プロセッサ
エレメント PE(0,0),PE(0,1),PE(0,2), PE(1,0),PE(1,1),PE(1,2), PE(2,0),PE(2,1)およびPE(2,2)
におけるディストーション D(0,0),D(0,1),D(0,2), D(1,0),D(1,1),D(1,2), D(2,0),D(2,1)およびD(2,2)が算出
されたことになり、各プロセッサエレメントPEの出力
端子Doを介して類似ブロック特定手段6000へ出力
される。
In the following description, the above equations (Q1), (Q
2) is D (x, y). By the above operation, each processor element PE (0,0), PE (0,1), PE (0,2), PE (1,0), PE (1,1), PE (1,2), PE (2,0), PE (2,1) and PE (2,2)
D (0,0), D (0,1), D (0,2), D (1,0), D (1,1), D (1,2), D (2,0) , D (2,1) and D (2,2) are calculated and output to the similar block specifying means 6000 via the output terminal Do of each processor element PE.

【0203】つぎに、再び画素データの流れの説明に戻
り、第1の画素データ転送保持手段3001および第2
の画素データ転送保持手段3002から出力され第3の
画素データ転送保持手段4000へ入力される画素デー
タの流れを説明するとともに、第3の画素データ転送保
持手段4000における画素データの保持状態について
説明し、さらに、第3の画素データ転送保持手段400
0から第1の画素データ転送保持手段3001および第
2の画素データ転送保持手段3002へ画素データを戻
す処理について説明する。
Next, returning to the description of the flow of the pixel data, the first pixel data transfer holding means 3001 and the second
The flow of pixel data output from the pixel data transfer holding unit 3002 and input to the third pixel data transfer holding unit 4000 will be described, and the holding state of pixel data in the third pixel data transfer holding unit 4000 will be described. And the third pixel data transfer holding means 400
A process of returning pixel data from 0 to the first pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 3002 will be described.

【0204】クロックパルス信号CK1の11クロック
目に同期して、図32に示されるように、各プロセッサ
エレメントPEおよび各垂直サイドレジスタVSに保持
されている画素データb(0,0),b(0,1),b
(0,2),b(0,3)およびb(0,4)は一つ左
側に位置する隣の各水平サイドレジスタHS(−1,
0),HS(−1,1),HS(−1,2),HS(−
1,3)およびHS(−1,4)に記載順に、それぞれ
伝送される。
In synchronization with the eleventh clock of the clock pulse signal CK1, as shown in FIG. 32, the pixel data b (0,0), b (0) held in each processor element PE and each vertical side register VS. 0,1), b
(0,2), b (0,3) and b (0,4) are adjacent horizontal side registers HS (-1 ,,
0), HS (-1,1), HS (-1,2), HS (-
1, 3) and HS (-1, 4), respectively.

【0205】詳しく説明すると、期間11の前の期間1
0において図6に示されるように、クロックパルス信号
CK1の10クロック目の立ち下がりに同期してパルス
信号SHが1となるため、各水平サイドレジスタHSの
セレクタ3410の第1信号入力端子S0に1が入力さ
れ、第2信号入力端子S1には0が入力されており、し
たがって、セレクタ3410の第2データ入力端子Bと
データ出力端子Yが電気的に接続され、各水平サイドレ
ジスタのフリップフロップ3420のデータ入力端子A
に各水平サイドレジスタの入力端子YLiを介して一つ
右側に位置する各プロセッサエレメントあるいは各垂直
サイドレジスタの出力端子YLoから出力された画素デ
ータが入力される。
More specifically, the period 1 before the period 11
At 0, as shown in FIG. 6, the pulse signal SH becomes 1 in synchronization with the fall of the 10th clock of the clock pulse signal CK1, so that the first signal input terminal S0 of the selector 3410 of each horizontal side register HS is 1 is input, and 0 is input to the second signal input terminal S1. Therefore, the second data input terminal B and the data output terminal Y of the selector 3410 are electrically connected, and the flip-flop of each horizontal side register is 3420 data input terminal A
The pixel data output from each processor element located on the right side or the output terminal YLo of each vertical side register is input via the input terminal YLi of each horizontal side register.

【0206】次いで、クロックパルス信号CK1の12
クロック目から15クロック目までは図6に示されるよ
うに、パルス信号SHおよびパルス信号SRともに0な
ので、各水平サイドレジスタのセレクタ3410の第1
信号入力端子S0および第2信号入力端子S1に0が入
力され、したがって、各水平サイドレジスタのセレクタ
3410では第1データ入力端子Aとデータ出力端子Y
が電気的に接続され、同じ水平サイドレジスタのフリッ
プフロップ3420のデータ出力端子Yから出力された
画素データを入力し、再び、各水平サイドレジスタのフ
リップフロップ3420のデータ入力端子Aに画素デー
タが入力され、保持される。
Next, 12 of the clock pulse signal CK1
As shown in FIG. 6, since the pulse signal SH and the pulse signal SR are both 0 from the 15th clock to the 15th clock, the first of the selectors 3410 of each horizontal side register
0 is input to the signal input terminal S0 and the second signal input terminal S1, so that the selector 3410 of each horizontal side register has the first data input terminal A and the data output terminal Y
Are electrically connected, the pixel data output from the data output terminal Y of the flip-flop 3420 of the same horizontal side register is input, and the pixel data is input again to the data input terminal A of the flip-flop 3420 of each horizontal side register. Is retained.

【0207】次いで、クロックパルス信号CK1の16
クロック目に同期して、図33に示されるように、各水
平サイドレジスタHSに保持されている画素データb
(0,0),b(0,1),b(0,2),b(0,
3)およびb(0,4)は一つ左側に位置する隣の各水
平サイドレジスタHS(−2,0),HS(−2,
1),HS(−2,2),HS(−2,3)およびHS
(−2,4)に記載順に、各プロセッサエレメントPE
および各垂直サイドレジスタVSに保持されている画素
データb(1,2),b(1,3),b(1,4),b
(1,0)およびb(1,1)は一つ左側に位置する隣
の各水平サイドレジスタHS(−1,0),HS(−
1,1),HS(−1,2),HS(−1,3)および
HS(−1,4)に記載順に、それぞれ伝送される。
Next, 16 of the clock pulse signal CK1
In synchronization with the clock, as shown in FIG. 33, the pixel data b held in each horizontal side register HS
(0,0), b (0,1), b (0,2), b (0,
3) and b (0,4) are adjacent horizontal side registers HS (−2,0), HS (−2,
1), HS (-2, 2), HS (-2, 3) and HS
Each processor element PE is described in the order described in (-2, 4).
And pixel data b (1,2), b (1,3), b (1,4), b held in each vertical side register VS
(1,0) and b (1,1) are adjacent horizontal side registers HS (-1,0), HS (-
1, (1), HS (-1, 2), HS (-1, 3), and HS (-1, 4), respectively.

【0208】詳しく説明すると、期間16の前の期間1
5において図6に示されるように、クロックパルス信号
CK1の15クロック目の立ち下がりに同期してパルス
信号SHが1となるため、各水平サイドレジスタのセレ
クタ3410の第1信号入力端子S0に1が入力され、
第2信号入力端子S1には0が入力されており、したが
って、セレクタ3410の第2データ入力端子Bとデー
タ出力端子Yが電気的に接続され、各水平サイドレジス
タのフリップフロップ3420のデータ入力端子Aに各
水平サイドレジスタの入力端子YLiを介して一つ右側
に位置する各プロセッサエレメント,各垂直サイドレジ
スタあるいは各水平サイドレジスタの出力端子YLoか
ら出力された画素データが入力される。
More specifically, period 1 before period 16
5, the pulse signal SH becomes 1 in synchronization with the falling edge of the 15th clock of the clock pulse signal CK1, so that 1 is input to the first signal input terminal S0 of the selector 3410 of each horizontal side register. Is entered,
Since 0 is input to the second signal input terminal S1, the second data input terminal B and the data output terminal Y of the selector 3410 are electrically connected, and the data input terminal of the flip-flop 3420 of each horizontal side register. Pixel data output from the output terminal YLo of each processor element, each vertical side register, or each horizontal side register located on the right side is input to A via the input terminal YLi of each horizontal side register.

【0209】次いで、クロックパルス信号CK1の17
クロック目に同期して、図34に示されるように、各水
平サイドレジスタHSに保持されている画素データb
(0,0),b(0,1),b(0,2),b(0,
3),b(0,4),b(1,2),b(1,3),b
(1,4),b(1,0)およびb(1,1)は一つ左
側に位置する隣の各水平サイドレジスタHS(−3,
0),HS(−3,1),HS(−3,2),HS(−
3,3),HS(−3,4),HS(−2,0),HS
(−2,1),HS(−2,2),HS(−2,3)お
よびHS(−2,4)に記載順に、各プロセッサエレメ
ントPEおよび各垂直サイドレジスタVSに保持されて
いる画素データb(2,0),b(2,1),b(2,
2),b(2,3)およびb(2,4)は一つ左側に位
置する隣の各水平サイドレジスタHS(−1,0),H
S(−1,1),HS(−1,2),HS(−1,3)
およびHS(−1,4)に記載順に、それぞれ伝送され
る。
Next, 17 of the clock pulse signal CK1
In synchronization with the clock, as shown in FIG. 34, the pixel data b held in each horizontal side register HS
(0,0), b (0,1), b (0,2), b (0,
3), b (0, 4), b (1, 2), b (1, 3), b
(1,4), b (1,0) and b (1,1) are adjacent horizontal side registers HS (−3,
0), HS (−3, 1), HS (−3, 2), HS (−)
3,3), HS (-3,4), HS (-2,0), HS
(-2,1), HS (-2,2), HS (-2,3) and HS (-2,4) in the order described, the pixels held in each processor element PE and each vertical side register VS. Data b (2,0), b (2,1), b (2,
2), b (2,3) and b (2,4) are adjacent horizontal side registers HS (-1,0), H
S (-1,1), HS (-1,2), HS (-1,3)
And HS (-1,4) in the order described.

【0210】詳しく説明すると、図6に示されるよう
に、パルス信号SHが1となるため、各水平サイドレジ
スタのセレクタ3410の第1信号入力端子S0に1が
入力され、第2信号入力端子S1には0が入力されてお
り、したがって、セレクタ3410の第2データ入力端
子Bとデータ出力端子Yが電気的に接続され、各水平サ
イドレジスタのフリップフロップ3420のデータ入力
端子Aに各水平サイドレジスタの入力端子YLiを介し
て一つ右側に位置する各プロセッサエレメント,各垂直
サイドレジスタあるいは各水平サイドレジスタの出力端
子YLoから出力された画素データが入力される。
More specifically, as shown in FIG. 6, since the pulse signal SH becomes 1, 1 is input to the first signal input terminal S0 of the selector 3410 of each horizontal side register, and the second signal input terminal S1 , The second data input terminal B of the selector 3410 is electrically connected to the data output terminal Y, and the data input terminal A of the flip-flop 3420 of each horizontal side register is connected to each horizontal side register. , The pixel data output from the output terminal YLo of each processor element, each vertical side register, or each horizontal side register located on the right side via the input terminal YLi.

【0211】以上の動作で水平サイドレジスタ HS(−3,0),HS(−3,1),HS(−3,
2),HS(−3,3),HS(−3,4), HS(−2,0),HS(−2,1),HS(−2,
2),HS(−2,3),HS(−2,4), HS(−1,0),HS(−1,1),HS(−1,
2),HS(−1,3)およびHS(−1,4)に、画
素データ b(0,0),b(0,1),b(0,2),b(0,
3),b(0,4), b(1,2),b(1,3),b(1,4),b(1,
0),b(1,1), b(2,0),b(2,1),b(2,2),b(2,
3)およびb(2,4)が、それぞれ記載順に転送保持
されたことになる。
By the above operation, the horizontal side registers HS (-3,0), HS (-3,1), HS (-3,1)
2), HS (−3, 3), HS (−3, 4), HS (−2, 0), HS (−2, 1), HS (−2,
2), HS (−2, 3), HS (−2, 4), HS (−1, 0), HS (−1, 1), HS (−1, 1)
2), HS (-1,3) and HS (-1,4) have pixel data b (0,0), b (0,1), b (0,2), b (0,0).
3), b (0, 4), b (1, 2), b (1, 3), b (1, 4), b (1,
0), b (1, 1), b (2, 0), b (2, 1), b (2, 2), b (2,
3) and b (2, 4) are transferred and held in the order described.

【0212】つぎに、第3の画素データ転送保持手段4
000に転送保持された画素データを再び第1の画素デ
ータ転送保持手段3001および第2の画素データ転送
保持手段3002へ戻す作用について説明する。クロッ
クパルス信号CK1の19クロック目に同期して、図3
6に示されるように、各水平サイドレジスタHSに保持
されている画素データb(0,0),b(0,1),b
(0,2),b(0,3),b(0,4),b(1,
2),b(1,3),b(1,4),b(1,0)およ
びb(1,1)は一つ右側に位置する隣の各水平サイド
レジスタHSに、画素データb(2,0),b(2,
1),b(2,2),b(2,3)およびb(2,4)
は一つ右側に位置する隣の各プロセッサエレメントPE
および各垂直サイドレジスタVSに、それぞれ伝送され
る。
Next, the third pixel data transfer holding means 4
The operation of returning the pixel data transferred and held to the first pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 3002 again will be described. In synchronization with the 19th clock of the clock pulse signal CK1, FIG.
As shown in FIG. 6, the pixel data b (0,0), b (0,1), b held in each horizontal side register HS
(0,2), b (0,3), b (0,4), b (1,
2), b (1,3), b (1,4), b (1,0) and b (1,1) are stored in the next horizontal side register HS located on the right side by one pixel data b ( 2,0), b (2,
1), b (2,2), b (2,3) and b (2,4)
Is the next processor element PE located on the right
And each of the vertical side registers VS.

【0213】詳しく説明すると、図6に示されるよう
に、パルス信号SRが1となるため、各水平サイドレジ
スタのセレクタ3410の第2信号入力端子S1に1が
入力される。したがって、第1信号入力端子S0に関わ
らず、セレクタ3410の第3データ入力端子Cとデー
タ出力端子Yが電気的に接続され、各水平サイドレジス
タのフリップフロップ3420のデータ入力端子Aに各
水平サイドレジスタの入力端子YRiを介して一つ左側
に位置する各水平サイドレジスタの出力端子YRoから
出力された画素データが入力される。
More specifically, as shown in FIG. 6, since the pulse signal SR becomes 1, 1 is input to the second signal input terminal S1 of the selector 3410 of each horizontal side register. Therefore, regardless of the first signal input terminal S0, the third data input terminal C and the data output terminal Y of the selector 3410 are electrically connected, and each horizontal side register is connected to the data input terminal A of the flip-flop 3420 of each horizontal side register. The pixel data output from the output terminal YRo of each horizontal side register located on the left side via the input terminal YRi of the register is input.

【0214】一方、各プロセッサエレメントのセレクタ
3110の第2信号入力端子S1にも1が入力される。
したがって、第1信号入力端子S0に関わらず、セレク
タ3110の第3データ入力端子Cとデータ出力端子Y
が電気的に接続され、各プロセッサエレメントのフリッ
プフロップ3120のデータ入力端子Aに各プロセッサ
エレメントの入力端子YRiを介して一つ左側に位置す
る各水平サイドレジスタの出力端子YRoあるいは各プ
ロセッサエレメントの出力端子YRoから出力された画
素データが入力される。
On the other hand, 1 is also input to the second signal input terminal S1 of the selector 3110 of each processor element.
Therefore, regardless of the first signal input terminal S0, the third data input terminal C and the data output terminal Y of the selector 3110
Is electrically connected to the data input terminal A of the flip-flop 3120 of each processor element via the input terminal YRi of each processor element. The pixel data output from the terminal YRo is input.

【0215】各垂直サイドレジスタにおいても同様で、
セレクタ3310の第2信号入力端子S1にも1が入力
される。したがって、第1信号入力端子S0に関わら
ず、セレクタ3310の第3データ入力端子Cとデータ
出力端子Yが電気的に接続され、各垂直サイドレジスタ
のフリップフロップ3320のデータ入力端子Aに各垂
直サイドレジスタの入力端子YRiを介して一つ左側に
位置する各水平サイドレジスタの出力端子YRoあるい
は各垂直サイドレジスタの出力端子YRoから出力され
た画素データが入力される。
The same applies to each vertical side register.
1 is also input to the second signal input terminal S1 of the selector 3310. Therefore, regardless of the first signal input terminal S0, the third data input terminal C and the data output terminal Y of the selector 3310 are electrically connected, and the data input terminal A of the flip-flop 3320 of each vertical side register is connected to each vertical side terminal. The pixel data output from the output terminal YRo of each horizontal side register or the output terminal YRo of each vertical side register located on the left side via the input terminal YRi of the register is input.

【0216】次いで、クロックパルス信号CK1の20
クロック目に同期して、図37に示されるように、各プ
ロセッサエレメントPEおよび各垂直サイドレジスタV
Sに保持されている画素データb(2,0),b(2,
1),b(2,2),b(2,3)およびb(2,4)
は一つ右側に位置する隣の各プロセッサエレメントPE
および各垂直サイドレジスタVSに、各水平サイドレジ
スタHSに保持されている画素データb(1,2),b
(1,3),b(1,4),b(1,0)およびb
(1,1)は一つ右側に位置する隣の各プロセッサエレ
メントPEおよび各垂直サイドレジスタVSに、画素デ
ータb(0,0),b(0,1),b(0,2),b
(0,3)およびb(0,4)は、一つ右側に位置する
隣の各水平サイドレジスタHSに、それぞれ伝送され
る。
Next, 20 of the clock pulse signal CK1
In synchronization with the clock, as shown in FIG. 37, each processor element PE and each vertical side register V
The pixel data b (2,0) and b (2,2) held in S
1), b (2,2), b (2,3) and b (2,4)
Is the next processor element PE located on the right
And pixel data b (1,2), b held in each horizontal side register HS in each vertical side register VS.
(1,3), b (1,4), b (1,0) and b
(1,1) indicates that pixel data b (0,0), b (0,1), b (0,2), b are stored in the adjacent processor elements PE and the respective vertical side registers VS located on the right side.
(0,3) and b (0,4) are transmitted to the adjacent horizontal side registers HS located one position to the right.

【0217】詳しく説明すると、図6に示されるよう
に、パルス信号SRが1となるため、各水平サイドレジ
スタのセレクタ3410の第2信号入力端子S1に1が
入力される。したがって、第1信号入力端子S0に関わ
らず、セレクタ3410の第3データ入力端子Cとデー
タ出力端子Yが電気的に接続され、各水平サイドレジス
タのフリップフロップ3420のデータ入力端子Aに各
水平サイドレジスタの入力端子YRiを介して一つ左側
に位置する各水平サイドレジスタの出力端子YRoから
出力された画素データが入力される。
More specifically, as shown in FIG. 6, since the pulse signal SR becomes 1, 1 is input to the second signal input terminal S1 of the selector 3410 of each horizontal side register. Therefore, regardless of the first signal input terminal S0, the third data input terminal C and the data output terminal Y of the selector 3410 are electrically connected, and each horizontal side register is connected to the data input terminal A of the flip-flop 3420 of each horizontal side register. The pixel data output from the output terminal YRo of each horizontal side register located on the left side via the input terminal YRi of the register is input.

【0218】一方、各プロセッサエレメントのセレクタ
3110の第2信号入力端子S1にも1が入力される。
したがって、第1信号入力端子S0に関わらず、セレク
タ3110の第3データ入力端子Cとデータ出力端子Y
が電気的に接続され、各プロセッサエレメントのフリッ
プフロップ3120のデータ入力端子Aに各プロセッサ
エレメントの入力端子YRiを介して一つ左側に位置す
る各水平サイドレジスタの出力端子YRoあるいは各プ
ロセッサエレメントの出力端子YRoから出力された画
素データが入力される。
On the other hand, 1 is also input to the second signal input terminal S1 of the selector 3110 of each processor element.
Therefore, regardless of the first signal input terminal S0, the third data input terminal C and the data output terminal Y of the selector 3110
Is electrically connected to the data input terminal A of the flip-flop 3120 of each processor element via the input terminal YRi of each processor element. The pixel data output from the terminal YRo is input.

【0219】各垂直サイドレジスタにおいても同様で、
セレクタ3310の第2信号入力端子S1にも1が入力
される。したがって、第1信号入力端子S0に関わら
ず、セレクタ3310の第3データ入力端子Cとデータ
出力端子Yが電気的に接続され、各垂直サイドレジスタ
のフリップフロップ3320のデータ入力端子Aに各垂
直サイドレジスタの入力端子YRiを介して一つ左側に
位置する各水平サイドレジスタの出力端子YRoあるい
は各垂直サイドレジスタの出力端子YRoから出力され
た画素データが入力される。
The same applies to each vertical side register.
1 is also input to the second signal input terminal S1 of the selector 3310. Therefore, regardless of the first signal input terminal S0, the third data input terminal C and the data output terminal Y of the selector 3310 are electrically connected, and the data input terminal A of the flip-flop 3320 of each vertical side register is connected to each vertical side terminal. The pixel data output from the output terminal YRo of each horizontal side register or the output terminal YRo of each vertical side register located on the left side via the input terminal YRi of the register is input.

【0220】次いで、クロックパルス信号CK1の21
クロック目に同期して、図38に示されるように、各プ
ロセッサエレメントPEに保持されている画素データb
(2,0),b(2,1),b(2,2),b(2,
3),b(2,4),b(1,2),b(1,3),b
(1,4),b(1,0)およびb(1,1)は、一つ
右側に位置する隣の各プロセッサエレメントPEおよび
各垂直サイドレジスタVSに、各水平サイドレジスタH
Sに保持されている画素データb(0,0),b(0,
1),b(0,2),b(0,3)およびb(0,4)
は、一つ右側に位置する隣の各プロセッサエレメントP
Eおよび各垂直サイドレジスタVSに、それぞれ伝送さ
れる。
Next, 21 of the clock pulse signal CK1
In synchronization with the clock, as shown in FIG. 38, the pixel data b held in each processor element PE
(2,0), b (2,1), b (2,2), b (2,
3), b (2, 4), b (1, 2), b (1, 3), b
(1,4), b (1,0) and b (1,1) are stored in the adjacent processor elements PE and the vertical side registers VS located on the right side by one and the horizontal side registers H in the respective vertical side registers VS.
The pixel data b (0,0), b (0,
1), b (0,2), b (0,3) and b (0,4)
Is the next processor element P located on the right
E and each of the vertical side registers VS.

【0221】詳しく説明すると、図6に示されるよう
に、パルス信号SRが1となるため、各水平サイドレジ
スタのセレクタ3410の第2信号入力端子S1に1が
入力される。したがって、第1信号入力端子S0に関わ
らず、セレクタ3410の第3データ入力端子Cとデー
タ出力端子Yが電気的に接続され、各水平サイドレジス
タのフリップフロップ3420のデータ入力端子Aに各
水平サイドレジスタの入力端子YRiを介して一つ左側
に位置する各水平サイドレジスタの出力端子YRoから
出力された画素データが入力される。
More specifically, as shown in FIG. 6, since the pulse signal SR is 1, 1 is input to the second signal input terminal S1 of the selector 3410 of each horizontal side register. Therefore, regardless of the first signal input terminal S0, the third data input terminal C and the data output terminal Y of the selector 3410 are electrically connected, and each horizontal side register is connected to the data input terminal A of the flip-flop 3420 of each horizontal side register. The pixel data output from the output terminal YRo of each horizontal side register located on the left side via the input terminal YRi of the register is input.

【0222】一方、各プロセッサエレメントのセレクタ
3110の第2信号入力端子S1にも1が入力される。
したがって、第1信号入力端子S0に関わらず、セレク
タ3110の第3データ入力端子Cとデータ出力端子Y
が電気的に接続され、各プロセッサエレメントのフリッ
プフロップ3120のデータ入力端子Aに各プロセッサ
エレメントの入力端子YRiを介して一つ左側に位置す
る各水平サイドレジスタの出力端子YRoあるいは各プ
ロセッサエレメントの出力端子YRoから出力された画
素データが入力される。
On the other hand, 1 is also input to the second signal input terminal S1 of the selector 3110 of each processor element.
Therefore, regardless of the first signal input terminal S0, the third data input terminal C and the data output terminal Y of the selector 3110
Is electrically connected to the data input terminal A of the flip-flop 3120 of each processor element via the input terminal YRi of each processor element. The pixel data output from the terminal YRo is input.

【0223】各垂直サイドレジスタにおいても同様で、
セレクタ3310の第2信号入力端子S1にも1が入力
される。したがって、第1信号入力端子S0に関わら
ず、セレクタ3310の第3データ入力端子Cとデータ
出力端子Yが電気的に接続され、各垂直サイドレジスタ
のフリップフロップ3320のデータ入力端子Aに各垂
直サイドレジスタの入力端子YRiを介して一つ左側に
位置する各水平サイドレジスタの出力端子YRoあるい
は各垂直サイドレジスタの出力端子YRoから出力され
た画素データが入力される。
The same applies to each vertical side register.
1 is also input to the second signal input terminal S1 of the selector 3310. Therefore, regardless of the first signal input terminal S0, the third data input terminal C and the data output terminal Y of the selector 3310 are electrically connected, and the data input terminal A of the flip-flop 3320 of each vertical side register is connected to each vertical side terminal. The pixel data output from the output terminal YRo of each horizontal side register or the output terminal YRo of each vertical side register located on the left side via the input terminal YRi of the register is input.

【0224】以上の動作で第3の画素データ転送保持手
段4000により保持されていた画素データb(0,
0),b(0,1),b(0,2),b(0,3),b
(0,4),b(1,2),b(1,3),b(1,
4),b(1,0),b(1,1),b(2,0),b
(2,1),b(2,2),b(2,3)およびb
(2,4)が、プロセッサエレメントおよび垂直サイド
レジスタのPE(0,0),PE(0,1),PE
(0,2),VS(0,3),VS(0,4),PE
(1,0),PE(1,1),PE(1,2),VS
(1,3),VS(1,4),PE(2,0),PE
(2,1),PE(2,2),VS(2,3)およびV
S(2,4)に、記載順に転送されたことになる。
In the above operation, the pixel data b (0,0,0) held by the third pixel data transfer holding
0), b (0, 1), b (0, 2), b (0, 3), b
(0,4), b (1,2), b (1,3), b (1,
4), b (1, 0), b (1, 1), b (2, 0), b
(2,1), b (2,2), b (2,3) and b
(2, 4) are PE (0, 0), PE (0, 1), PE of the processor element and the vertical side register.
(0,2), VS (0,3), VS (0,4), PE
(1, 0), PE (1, 1), PE (1, 2), VS
(1, 3), VS (1, 4), PE (2, 0), PE
(2,1), PE (2,2), VS (2,3) and V
It is transferred to S (2,4) in the order described.

【0225】つぎに、ディストーション算出手段500
0において算出され保持されている各プロセッサエレメ
ントPE毎のディストーションの類似ブロック特定手段
6000への転送についてタイムチャートの図6を参照
しながら説明するとともに、類似ブロック特定手段60
00において最小ディストーションおよび動きベクトル
を求める作用についてタイムチャートの図9,10を参
照しながら説明する。
Next, the distortion calculating means 500
The transfer of the distortion calculated and held for each processor element PE to the similar block specifying means 6000 at 0 will be described with reference to FIG.
The operation of determining the minimum distortion and the motion vector at 00 will be described with reference to FIGS.

【0226】期間c19において、図6に示すように、
期間c19の前の期間c18の間にパルス信号LD1が
1となるため、各プロセッサエレメントPE(x,y)
のセレクタ5310の信号入力端子Sに1が入力され、
セレクタ5310の第2データ入力端子Bがデータ出力
端子Yと電気的に接続され、さらにフリップフロップ5
320のデータ入力端子Aに接続される。
In a period c19, as shown in FIG.
Since the pulse signal LD1 becomes 1 during the period c18 before the period c19, each processor element PE (x, y)
Is input to the signal input terminal S of the selector 5310 of
The second data input terminal B of the selector 5310 is electrically connected to the data output terminal Y.
320 is connected to the data input terminal A.

【0227】期間c19の間に発せられるパルス信号C
K2に同期して、各プロセッサエレメントPE(x,
y)で算出されたディストーションD(x,y)が各プ
ロセッサエレメントPE(x,y)のセレクタ5310
の第2データ入力端子Bを介してフリップフロップ53
20のデータ入力端子Aに入力される。そして、期間c
20の間に発せられるパルス信号CK2に同期して、デ
ィストーションD(x,y)は、フリップフロップ53
20のデータ出力端子Yを介して各プロセッサエレメン
トPE(x,y)の出力端子Doから出力される。
The pulse signal C generated during the period c19
In synchronization with K2, each processor element PE (x,
The distortion D (x, y) calculated in y) is the selector 5310 of each processor element PE (x, y).
Through the second data input terminal B of the flip-flop 53
20 are input to the data input terminal A. And period c
In synchronization with the pulse signal CK2 generated during the period 20, the distortion D (x, y) is
The data is output from the output terminal Do of each processor element PE (x, y) via the 20 data output terminals Y.

【0228】このとき、プロセッサエレメントPE
(0,0),PE(0,1)およびPE(0,2)で算
出された各ディストーションD(0,0),D(0,
1)およびD(0,2)は、それぞれプロセッサエレメ
ントPE(0,0),PE(0,1)およびPE(0,
2)の出力端子Doを介して類似ブロック特定手段60
00の比較器6110に入力される。
At this time, the processor element PE
Each of the distortions D (0,0), D (0,0) calculated by (0,0), PE (0,1) and PE (0,2).
1) and D (0,2) are the processor elements PE (0,0), PE (0,1) and PE (0,1), respectively.
Similar block specifying means 60 via the output terminal Do of 2)
00 is input to the comparator 6110.

【0229】次いで、期間c20において、図6に示す
ように、期間c20の前の期間c19の間にパルス信号
LD1が0となるため、各プロセッサエレメントPE
(x,y)のセレクタ5310の信号入力端子Sに0が
入力され、セレクタ5310の第1データ入力端子Aが
データ出力端子Yと電気的に接続され、さらにフリップ
フロップ5320のデータ入力端子Aに接続される。
Next, in the period c20, as shown in FIG. 6, since the pulse signal LD1 becomes 0 during the period c19 before the period c20, each processor element PE
0 is input to the signal input terminal S of the (x, y) selector 5310, the first data input terminal A of the selector 5310 is electrically connected to the data output terminal Y, and the data input terminal A of the flip-flop 5320 is Connected.

【0230】期間c20の間に発せられるパルス信号C
K2に同期して、各プロセッサエレメントPE(x+
1,y)で算出されたディストーションD(x+1,
y)がそれぞれプロセッサエレメントPE(x,y)の
入力端子Diを介してセレクタ5310の第1データ入
力端子Aに入力される。そして、期間c21の間に発せ
られるパルス信号CK2に同期して、ディストーション
D(x+1,y)は、フリップフロップ5320のデー
タ入力端子Aに入力され、フリップフロップ5320の
データ出力端子Yを介してそれぞれプロセッサエレメン
トPE(x,y)の出力端子Doから出力される。
A pulse signal C generated during the period c20
In synchronization with K2, each processor element PE (x +
, Y), the distortion D (x + 1,
y) is input to the first data input terminal A of the selector 5310 via the input terminal Di of the processor element PE (x, y). Then, in synchronization with the pulse signal CK2 generated during the period c21, the distortion D (x + 1, y) is input to the data input terminal A of the flip-flop 5320, and is output via the data output terminal Y of the flip-flop 5320, respectively. It is output from the output terminal Do of the processor element PE (x, y).

【0231】このとき、プロセッサエレメントPE
(1,0),PE(1,1)およびPE(1,2)で算
出された各ディストーションD(1,0),D(1,
1)およびD(1,2)は、それぞれプロセッサエレメ
ントPE(0,0),PE(0,1)およびPE(0,
2)の出力端子Doを介して類似ブロック特定手段60
00の比較器6110に入力される。
At this time, the processor element PE
The distortions D (1,0), D (1,1) calculated by (1,0), PE (1,1) and PE (1,2)
1) and D (1,2) are the processor elements PE (0,0), PE (0,1) and PE (0,1), respectively.
Similar block specifying means 60 via the output terminal Do of 2)
00 is input to the comparator 6110.

【0232】次いで、期間c21において、図6に示す
ように、パルス信号LD1は0のままであるので、各プ
ロセッサエレメントPE(x,y)のセレクタ5310
の信号入力端子Sに0が入力され、セレクタ5310の
第1データ入力端子Aがデータ出力端子Yと電気的に接
続され、さらにフリップフロップ5320のデータ入力
端子Aに接続される。
Next, in the period c21, as shown in FIG. 6, since the pulse signal LD1 remains 0, the selector 5310 of each processor element PE (x, y)
Is input to the signal input terminal S of the flip-flop 5320, the first data input terminal A of the selector 5310 is electrically connected to the data output terminal Y, and further connected to the data input terminal A of the flip-flop 5320.

【0233】期間c21の間に発せられるパルス信号C
K2に同期して、各プロセッサエレメントPE(x+
2,y)で算出されたディストーションD(x+2,
y)がそれぞれプロセッサエレメントPE(x,y)の
入力端子Diを介してセレクタ5310の第1データ入
力端子Aに入力され、さらにフリップフロップ5320
のデータ入力端子Aに入力される。そして、期間c22
の間に発せられるパルス信号CK2に同期して、ディス
トーションD(x+2,y)は、フリップフロップ53
20のデータ出力端子Yを介してそれぞれプロセッサエ
レメントPE(x,y)の出力端子Doから出力され
る。
The pulse signal C generated during the period c21
In synchronization with K2, each processor element PE (x +
2, the distortion D (x + 2,
y) is input to the first data input terminal A of the selector 5310 via the input terminal Di of the processor element PE (x, y).
Is input to the data input terminal A. And period c22
In synchronization with the pulse signal CK2 generated during the period, the distortion D (x + 2, y)
The data is output from the output terminal Do of the processor element PE (x, y) via the 20 data output terminals Y.

【0234】このとき、プロセッサエレメントPE
(2,0),PE(2,1)およびPE(2,2)で算
出された各ディストーションD(2,0),D(2,
1)およびD(2,2)は、それぞれプロセッサエレメ
ントPE(0,0),PE(0,1)およびPE(0,
2)の出力端子Doを介して類似ブロック特定手段60
00の比較器6110に入力される。
At this time, the processor element PE
(2,0), PE (2,1) and distortions D (2,0), D (2,2) calculated by PE (2,2).
1) and D (2,2) are processor elements PE (0,0), PE (0,1) and PE (0,1), respectively.
Similar block specifying means 60 via the output terminal Do of 2)
00 is input to the comparator 6110.

【0235】以上の動作でディストーション算出手段5
000において、各プロセッサエレメントPE毎に算出
されたディストーションD(x,y)がすべて類似ブロ
ック特定手段6000へ転送されたことになり、類似ブ
ロック特定手段6000では最小ディストーションおよ
び動きベクトルを求めることになる。類似ブロック特定
手段6000では、比較器6110に各データ入力端子
A0,A1,A2を介して、第1の画素データ転送保持
手段3001およびディストーション算出手段5000
の各プロセッサエレメントPE(x,y)によって求め
られたそれぞれのディストーションが入力される。
In the above operation, the distortion calculating means 5
000, the distortion D (x, y) calculated for each processor element PE is all transferred to the similar block specifying means 6000, and the similar block specifying means 6000 determines the minimum distortion and motion vector. . In the similar block specifying unit 6000, the first pixel data transfer holding unit 3001 and the distortion calculating unit 5000 are supplied to the comparator 6110 via the data input terminals A0, A1, and A2.
Are input by the respective processor elements PE (x, y).

【0236】まず、期間c19において、パルス信号L
D2に同期して、論理和演算器6150に信号入力端子
Sを介して信号1が入力され、また、カウンタ6310
に信号入力端子CLを介して信号1にされることにより
より、カウンタ6310の内部データの出力カウントC
Txが0にリセットされる。次いで、パルス信号CK2
の20クロック目に同期して、D(0,0),D(0,
1),D(0,2)が、類似ブロック特定手段6000
の最小ディストーション検出ユニット6100の比較器
6110にデータ入力端子A0,A1,A2を介してそ
れぞれ入力される。比較器6110では、データ入力端
子A0,A1,A2を介してそれぞれ入力されたデータ
が比較され、その中から最も小さいディストーションが
選択されて、データ出力端子Yを介して最小ディストー
ションLMDisが出力され、最小ディストーションに
対応するデータ入力端子をLMVyとし、0,1または
2がデータ出力端子Mを介して出力される。
First, in the period c19, the pulse signal L
In synchronization with D2, the signal 1 is input to the OR operation unit 6150 via the signal input terminal S.
Is changed to a signal 1 through the signal input terminal CL, so that the internal data output count C
Tx is reset to zero. Next, the pulse signal CK2
In synchronization with the 20th clock of D (0,0), D (0,0,
1) and D (0, 2) are similar block specifying means 6000
Is input to the comparator 6110 of the minimum distortion detection unit 6100 via the data input terminals A0, A1, and A2, respectively. The comparator 6110 compares the data input through the data input terminals A0, A1, and A2, selects the smallest distortion from the data, and outputs the minimum distortion LMDis via the data output terminal Y. The data input terminal corresponding to the minimum distortion is LMVy, and 0, 1 or 2 is output via the data output terminal M.

【0237】本実施例では、図9に示されるようにLM
Vy=0であり、最小ディストーションLMDis=D
(0,0)である。類似ブロック特定手段6000の最
小ディストーション検出ユニット6100の論理和演算
器6150では、信号入力端子Sを介して信号1が入力
されているので、データ入力端子Bを介して入力されて
いるデータ、すなわち、フリップフロップ6140のデ
ータ出力端子Yから出力され、入力されているデータに
関わらず、データ出力端子Yを介してすべてのビットが
1のデータ、すなわち、最大値のデータが出力される。
比較器6120では、第1データ入力端子Aを介して入
力された最小ディストーションLMDis=D(0,
0)と、第2データ入力端子Bを介して入力された上記
最大値のデータを比較し、D(0,0)の方が小さいた
め信号出力端子Yを介してMin=1が出力される。セ
レクタ6130では、信号入力端子Sを介して信号1が
入力されるため、第1データ入力端子Aを介して入力さ
れているD(0,0)がデータ出力端子Yを介してフリ
ップフロップ6140に出力される。
In this embodiment, as shown in FIG.
Vy = 0, minimum distortion LMDis = D
(0,0). In the OR operation unit 6150 of the minimum distortion detection unit 6100 of the similar block specifying unit 6000, since the signal 1 is input through the signal input terminal S, the data input through the data input terminal B, that is, Data is output from the data output terminal Y of the flip-flop 6140 and all bits are 1 via the data output terminal Y, that is, data having the maximum value, regardless of the input data.
In the comparator 6120, the minimum distortion LMDis = D (0, 0) input via the first data input terminal A
0) is compared with the data of the maximum value input through the second data input terminal B, and Min = 1 is output through the signal output terminal Y because D (0,0) is smaller. . In the selector 6130, since the signal 1 is input through the signal input terminal S, D (0,0) input through the first data input terminal A is input to the flip-flop 6140 through the data output terminal Y. Is output.

【0238】類似ブロック特定手段6000の動きベク
トル垂直成分検出ユニット6200のセレクタ6220
では、信号入力端子Sを介して入力された信号1によ
り、第2データ入力端子Bがデータ出力端子Yと電気的
に接続され、LMVy=0を入力し、データ出力端子Y
を介してフリップフロップ6230に出力される。類似
ブロック特定手段6000の動きベクトル水平成分検出
ユニット6300のカウンタ6310では、CK2のパ
ルス信号に同期して、信号入力端子CLに入力される信
号LD2によってリセットされた内部データの出力カウ
ントCTxがカウント出力端子Qnを介してCTx=0
として出力される。セレクタ6320では、信号入力端
子Sを介して入力された信号1により、第2データ入力
端子Bがデータ出力端子Yと電気的に接続され、CTx
=0を入力し、データ出力端子Yを介してフリップフロ
ップ6330に出力される。
Selector 6220 of motion vector vertical component detection unit 6200 of similar block specifying means 6000
In response to the signal 1 input via the signal input terminal S, the second data input terminal B is electrically connected to the data output terminal Y, LMVy = 0 is input, and the data output terminal Y
Is output to the flip-flop 6230 via the. In the counter 6310 of the motion vector horizontal component detection unit 6300 of the similar block identification unit 6000, the output count CTx of the internal data reset by the signal LD2 input to the signal input terminal CL is output in synchronization with the pulse signal of CK2. CTx = 0 via terminal Qn
Is output as In the selector 6320, the second data input terminal B is electrically connected to the data output terminal Y by the signal 1 input via the signal input terminal S, and the signal CTx
= 0, and output to the flip-flop 6330 via the data output terminal Y.

【0239】次いで、パルス信号CK2の21クロック
目に同期して、類似ブロック特定手段6000の最小デ
ィストーション検出ユニット6100のフリップフロッ
プ6140では、入力データD(0,0)がラッチさ
れ、データ出力端子Yを介してセレクタ付きフリップフ
ロップ6180に出力される。類似ブロック特定手段6
000の動きベクトル垂直成分検出ユニット6200の
フリップフロップ6230では、入力データ0がラッチ
され、データ出力端子Yを介してMy=0として換算テ
ーブル6240に出力され、換算テーブル6240で
は、データ入力端子Aを介して入力されたデータMy=
0が動きベクトルに換算され、データ出力端子Yを介し
て換算データがセレクタ付きフリップフロップ6280
に出力される。
Next, in synchronization with the 21st clock of the pulse signal CK2, in the flip-flop 6140 of the minimum distortion detection unit 6100 of the similar block specifying means 6000, the input data D (0,0) is latched, and the data output terminal Y Is output to the flip-flop 6180 with the selector through. Similar block specifying means 6
In the flip-flop 6230 of the motion vector vertical component detection unit 6200 of 000, input data 0 is latched and output to the conversion table 6240 as My = 0 via the data output terminal Y. Data My =
0 is converted into a motion vector, and the converted data is converted via a data output terminal Y into a flip-flop 6280 with a selector.
Is output to

【0240】類似ブロック特定手段6000の動きベク
トル水平成分検出ユニット6300のフリップフロップ
6330では、入力データ0がラッチされ、データ出力
端子Yを介してMx=0として換算テーブル6340に
出力され、換算テーブル6340では、データ入力端子
Aを介して入力されたデータMx=0が動きベクトルに
換算され、データ出力端子Yを介して換算データがセレ
クタ付きフリップフロップ6380に出力される。
In the flip-flop 6330 of the motion vector horizontal component detecting unit 6300 of the similar block specifying means 6000, the input data 0 is latched and output to the conversion table 6340 as Mx = 0 via the data output terminal Y. Then, the data Mx = 0 input through the data input terminal A is converted into a motion vector, and the converted data is output to the flip-flop with selector 6380 through the data output terminal Y.

【0241】つまり、前回求められたデータがそれぞれ
フリップフロップ6140,6230および6330に
保持されたことになる。同時に、パルス信号CK2の2
1クロック目に同期して、D(1,0),D(1,
1),D(1,2)が、類似ブロック特定手段6000
の最小ディストーション検出ユニット6100の比較器
6110にデータ入力端子A0,A1,A2を介してそ
れぞれ入力される。比較器6110では、データ入力端
子A0,A1,A2を介してそれぞれ入力されたデータ
が比較され、その中で最も小さいディストーションが選
択されて、最小ディストーションLMDis=D(1,
2)がデータ出力端子Yを介して出力され、D(1,
2)が入力されたデータ入力端子A2を表わすLMVy
=2が、データ出力端子Mを介して出力される。
That is, the data obtained last time is held in flip-flops 6140, 6230 and 6330, respectively. At the same time, 2 of the pulse signal CK2
In synchronization with the first clock, D (1,0), D (1,
1) and D (1, 2) are similar block specifying means 6000
Is input to the comparator 6110 of the minimum distortion detection unit 6100 via the data input terminals A0, A1, and A2, respectively. The comparator 6110 compares the data input via the data input terminals A0, A1, A2, and selects the smallest distortion among them, and the minimum distortion LMDis = D (1,
2) is output via the data output terminal Y and D (1,
LMVy representing data input terminal A2 to which 2) has been input
= 2 is output via the data output terminal M.

【0242】類似ブロック特定手段6000の最小ディ
ストーション検出ユニット6100の論理和演算器61
50では、信号入力端子Sを介して信号0が入力されて
いるので、データ入力端子Bを介して入力されているデ
ータ、すなわち、フリップフロップ6140のデータ出
力端子Yから出力され、入力されている前回最小ディス
トーションのD(0,0)がデータ出力端子Yを介して
出力される。比較器6120では、第1データ入力端子
Aを介して入力された上記今回最小ディストーションL
MDis=D(1,2)と、第2データ入力端子Bを介
して入力された上記前回最小ディストーションのD
(0,0)とを比較し、D(0,0)の方が小さいため
信号出力端子Yを介してMin=0が出力される。セレ
クタ6130では、信号入力端子Sを介して信号0が入
力されるため、第2データ入力端子Bを介して入力され
ているD(0,0)がデータ出力端子Yを介してフリッ
プフロップ6140に出力される。
The OR calculator 61 of the minimum distortion detecting unit 6100 of the similar block specifying means 6000
In 50, since the signal 0 is input through the signal input terminal S, the data input through the data input terminal B, that is, the data is output from the data output terminal Y of the flip-flop 6140 and input. The previous minimum distortion D (0,0) is output via the data output terminal Y. In the comparator 6120, the current minimum distortion L input through the first data input terminal A is
MDis = D (1,2) and D of the previous minimum distortion input via the second data input terminal B
(0, 0), and Min = 0 is output via the signal output terminal Y because D (0, 0) is smaller. In the selector 6130, since the signal 0 is input through the signal input terminal S, D (0,0) input through the second data input terminal B is input to the flip-flop 6140 through the data output terminal Y. Is output.

【0243】つまり、第1列目および第2列目のプロセ
ッサエレメントPEにおける最小ディストーションが求
められ、フリップフロップ6140に入力されたことに
なる。一方、類似ブロック特定手段6000の動きベク
トル垂直成分検出ユニット6200のセレクタ6220
では、信号入力端子Sを介して信号0が入力されるた
め、第1データ入力端子Aがデータ出力端子Yと電気的
に接続され、前回LMVy=0を入力し、データ出力端
子Yを介してフリップフロップ6230に出力される。
That is, the minimum distortion in the processor elements PE in the first and second columns is obtained and input to the flip-flop 6140. On the other hand, the selector 6220 of the motion vector vertical component detection unit 6200 of the similar block specifying unit 6000
In the example, since the signal 0 is input through the signal input terminal S, the first data input terminal A is electrically connected to the data output terminal Y. Output to flip-flop 6230.

【0244】一方、類似ブロック特定手段6000の動
きベクトル水平成分検出ユニット6300のカウンタ6
310では、CK2のパルス信号に同期して、カウント
アップされた出力カウントCTxがカウント出力端子Q
nを介してCTx=1として出力される。セレクタ63
20では、信号入力端子Sを介して信号0が入力される
ため、第1データ入力端子Aがデータ出力端子Yと電気
的に接続され、前回CTx=0を入力し、データ出力端
子Yを介してフリップフロップ6330に出力される。
On the other hand, the counter 6 of the motion vector horizontal component detection unit 6300 of the similar block specifying means 6000
At 310, the output count CTx, which has been counted up in synchronization with the pulse signal of CK2, is output to the count output terminal Q.
Output as CTx = 1 via n. Selector 63
At 20, the signal 0 is input via the signal input terminal S, so that the first data input terminal A is electrically connected to the data output terminal Y, the previous CTx = 0 is input, and the first data input terminal A is input via the data output terminal Y. And output to the flip-flop 6330.

【0245】次いで、パルス信号CK2の22クロック
目に同期して、類似ブロック特定手段6000の最小デ
ィストーション検出ユニット6100のフリップフロッ
プ6140では、入力データD(0,0)がラッチさ
れ、データ出力端子Yを介してセレクタ付きフリップフ
ロップ6180に出力される。類似ブロック特定手段6
000の動きベクトル垂直成分検出ユニット6200の
フリップフロップ6230では、入力データ0がラッチ
され、データ出力端子Yを介してMy=0として換算テ
ーブル6240に出力され、換算テーブル6240で
は、データ入力端子Aを介して入力されたデータMy=
0が動きベクトルに換算され、データ出力端子Yを介し
て換算データがセレクタ付きフリップフロップ6280
に出力される。類似ブロック特定手段6000の動きベ
クトル水平成分検出ユニット6300のフリップフロッ
プ6330では、入力データ1がラッチされ、データ出
力端子Yを介してMx=1として換算テーブル6340
に出力され、換算テーブル6340では、データ入力端
子Aを介して入力されたデータMx=1が動きベクトル
に換算され、データ出力端子Yを介して換算データがセ
レクタ付きフリップフロップ6380に出力される。
Next, in synchronization with the 22nd clock of the pulse signal CK2, the flip-flop 6140 of the minimum distortion detection unit 6100 of the similar block specifying means 6000 latches the input data D (0,0) and outputs the data output terminal Y Is output to the flip-flop 6180 with the selector through. Similar block specifying means 6
In the flip-flop 6230 of the motion vector vertical component detection unit 6200 of 000, input data 0 is latched and output to the conversion table 6240 as My = 0 via the data output terminal Y. Data My =
0 is converted into a motion vector, and the converted data is converted via a data output terminal Y into a flip-flop 6280 with a selector.
Is output to In the flip-flop 6330 of the motion vector horizontal component detection unit 6300 of the similar block specifying unit 6000, the input data 1 is latched, and the conversion table 6340 is set as Mx = 1 via the data output terminal Y.
In the conversion table 6340, the data Mx = 1 input via the data input terminal A is converted into a motion vector, and the converted data is output to the flip-flop with selector 6380 via the data output terminal Y.

【0246】つまり、前回求められたデータがそれぞれ
フリップフロップ6140,6230および6330に
保持されたことになる。同時に、パルス信号CK2の2
2クロック目に同期して、D(2,0),D(2,
1),D(2,2)が、類似ブロック特定手段6000
の最小ディストーション検出ユニット6100の比較器
6110にデータ入力端子A0,A1,A2を介してそ
れぞれ入力される。比較器6110では、データ入力端
子A0,A1,A2を介してそれぞれ入力されたデータ
が比較され、その中で最も小さいディストーションD
(2,1)がデータ出力端子Yを介して出力され、D
(2,1)が入力されたデータ入力端子A1を表わすL
MVy=1が、データ出力端子Mを介して出力される。
That is, the data obtained last time is held in flip-flops 6140, 6230 and 6330, respectively. At the same time, 2 of the pulse signal CK2
In synchronization with the second clock, D (2, 0), D (2,
1) and D (2, 2) are similar block specifying means 6000
Is input to the comparator 6110 of the minimum distortion detection unit 6100 via the data input terminals A0, A1, and A2, respectively. The comparator 6110 compares the data input through the data input terminals A0, A1, A2, respectively, and finds the smallest distortion D among them.
(2, 1) is output via the data output terminal Y, and D
L representing the data input terminal A1 to which (2, 1) has been input
MVy = 1 is output via the data output terminal M.

【0247】類似ブロック特定手段6000の最小ディ
ストーション検出ユニット6100の論理和演算器61
50では、信号入力端子Sを介して信号0が入力されて
いるので、データ入力端子Bを介して入力されているデ
ータ、すなわち、フリップフロップ6140のデータ出
力端子Yより出力されている前回最小ディストーション
のD(0,0)がデータ出力端子Yを介して出力され
る。比較器6120では、第1データ入力端子Aを介し
て入力された上記今回最小ディストーションLMDis
=D(2,1)と、第2データ入力端子Bを介して入力
された上記前回最小ディストーションのD(0,0)と
を比較し、D(2,1)の方が小さいためMin=1が
信号出力端子Yを介して出力される。セレクタ6130
では、信号入力端子Sを介して信号1が入力されるた
め、第1データ入力端子Aを介して入力されているD
(2,1)がデータ出力端子Yを介して出力され、フリ
ップフロップ6140に入力される。
The OR calculator 61 of the minimum distortion detecting unit 6100 of the similar block specifying means 6000
At 50, since the signal 0 is input via the signal input terminal S, the data input via the data input terminal B, that is, the previous minimum distortion output from the data output terminal Y of the flip-flop 6140 Are output via the data output terminal Y. In the comparator 6120, the current minimum distortion LMDis inputted through the first data input terminal A
= D (2,1) is compared with the previous minimum distortion D (0,0) input via the second data input terminal B. Since D (2,1) is smaller, Min = 1 is output via the signal output terminal Y. Selector 6130
Since the signal 1 is input through the signal input terminal S, the signal D is input through the first data input terminal A.
(2, 1) is output through the data output terminal Y and input to the flip-flop 6140.

【0248】つまり、第1列目から第3列目のプロセッ
サエレメントPEにおける最小ディストーションが求め
られ、フリップフロップ6140に入力されたことにな
る。一方、類似ブロック特定手段6000の動きベクト
ル垂直成分検出ユニット6200のセレクタ6220で
は、信号入力端子Sを介して信号1が入力されるので、
第2データ入力端子Bがデータ出力端子Yと電気的に接
続され、LMVy=1を入力し、データ出力端子Yを介
してフリップフロップ6230に出力される。
That is, the minimum distortion in the processor elements PE in the first to third columns is obtained and input to the flip-flop 6140. On the other hand, since the signal 1 is input to the selector 6220 of the motion vector vertical component detection unit 6200 of the similar block specifying unit 6000 through the signal input terminal S,
The second data input terminal B is electrically connected to the data output terminal Y, receives LMVy = 1, and is output to the flip-flop 6230 via the data output terminal Y.

【0249】一方、類似ブロック特定手段6000の動
きベクトル水平成分検出ユニット6300のカウンタ6
310では、CK2のパルス信号に同期して、カウント
アップされた出力カウントCTxがカウント出力端子Q
nを介してCTx=2として出力される。セレクタ63
20では、信号入力端子Sを介して信号1が入力される
ので、第2データ入力端子Bがデータ出力端子Yと電気
的に接続され、CTx=2を入力し、データ出力端子Y
を介してフリップフロップ6330に出力される。
On the other hand, the counter 6 of the motion vector horizontal component detection unit 6300 of the similar block specifying means 6000
At 310, the output count CTx, which has been counted up in synchronization with the pulse signal of CK2, is output to the count output terminal Q.
Output as CTx = 2 via n. Selector 63
At 20, the signal 1 is input via the signal input terminal S, so that the second data input terminal B is electrically connected to the data output terminal Y, CTx = 2 is input, and the data output terminal Y
Is output to the flip-flop 6330 via the.

【0250】次いで、パルス信号CK2の23クロック
目に同期して、類似ブロック特定手段6000の最小デ
ィストーション検出ユニット6100のフリップフロッ
プ6140では、入力データD(2,1)がラッチさ
れ、データ出力端子Yを介してセレクタ付きフリップフ
ロップ6180に出力される。類似ブロック特定手段6
000の動きベクトル垂直成分検出ユニット6200の
フリップフロップ6230では、入力データ1がラッチ
され、データ出力端子Yを介してMy=1として換算テ
ーブル6240に出力され、換算テーブル6240で
は、データ入力端子Aを介して入力されたデータMy=
1が動きベクトルに換算され、データ出力端子Yを介し
て換算データがセレクタ付きフリップフロップ6280
に出力される。
Next, in synchronization with the 23rd clock of the pulse signal CK2, the flip-flop 6140 of the minimum distortion detection unit 6100 of the similar block specifying means 6000 latches the input data D (2,1) and outputs the data output terminal Y Is output to the flip-flop 6180 with the selector through. Similar block specifying means 6
In the flip-flop 6230 of the motion vector vertical component detection unit 6200 of 000, the input data 1 is latched and output to the conversion table 6240 as My = 1 via the data output terminal Y. Data My =
1 is converted to a motion vector, and the converted data is supplied via a data output terminal Y to a flip-flop 6280 with a selector.
Is output to

【0251】類似ブロック特定手段6000の動きベク
トル水平成分検出ユニット6300のフリップフロップ
6330では、入力データ2がラッチされ、データ出力
端子Yを介してMx=2として換算テーブル6340に
出力され、換算テーブル6340では、データ入力端子
Aを介して入力されたデータMx=2が動きベクトルに
換算され、データ出力端子Yを介して換算データがセレ
クタ付きフリップフロップ6380に出力される。
In the flip-flop 6330 of the motion vector horizontal component detection unit 6300 of the similar block specifying means 6000, the input data 2 is latched and output to the conversion table 6340 as Mx = 2 via the data output terminal Y. Then, the data Mx = 2 input through the data input terminal A is converted into a motion vector, and the converted data is output to the flip-flop with selector 6380 through the data output terminal Y.

【0252】つまり、前回求められたデータがそれぞれ
フリップフロップ6140,6230および6330に
保持されたことになる。次いで、パルス信号CK2の2
3クロック目の立ち下がりに同期して、パルス信号SM
V1が1となるため、類似ブロック特定手段6000の
最小ディストーション検出ユニット6100のセレクタ
付きフリップフロップ6180では、信号入力端子Eに
信号1が入力されるため、セレクタ9110の信号入力
端子Sに1が入力され、セレクタ9110の第2データ
入力端子Bとデータ出力端子Yが電気的に接続され、フ
リップフロップ9120のデータ入力端子Aに最小ディ
ストーションD(2,1)が入力され、類似ブロック特
定手段6000の動きベクトル垂直成分検出ユニット6
200のセレクタ付きフリップフロップ6280では、
信号入力端子Eに信号1が入力されるため、セレクタ9
110の信号入力端子Sに1が入力され、セレクタ91
10の第2データ入力端子Bとデータ出力端子Yが電気
的に接続され、フリップフロップ9120のデータ入力
端子Aに換算テーブル6240で求められたデータ0が
入力され、類似ブロック特定手段6000の動きベクト
ル水平成分検出ユニット6300のセレクタ付きフリッ
プフロップ6380では、信号入力端子Eに信号1が入
力されるため、セレクタ9110の信号入力端子Sに1
が入力され、セレクタ9110の第2データ入力端子B
とデータ出力端子Yが電気的に接続され、フリップフロ
ップ9120のデータ入力端子Aに換算テーブル634
0で求められたデータ2が入力される。
That is, the data obtained last time is held in flip-flops 6140, 6230 and 6330, respectively. Next, 2 of the pulse signal CK2
The pulse signal SM is synchronized with the falling edge of the third clock.
Since V1 is 1, the signal 1 is input to the signal input terminal E of the flip-flop 6180 with the selector of the minimum distortion detection unit 6100 of the similar block specifying unit 6000, so that 1 is input to the signal input terminal S of the selector 9110. Then, the second data input terminal B and the data output terminal Y of the selector 9110 are electrically connected, the minimum distortion D (2,1) is input to the data input terminal A of the flip-flop 9120, and the similar block specifying means 6000 Motion vector vertical component detection unit 6
In 200 flip-flops 6280 with selectors,
Since the signal 1 is input to the signal input terminal E, the selector 9
1 is input to the signal input terminal S of the selector 110 and the selector 91
10, the second data input terminal B and the data output terminal Y are electrically connected, the data 0 obtained by the conversion table 6240 is input to the data input terminal A of the flip-flop 9120, and the motion vector of the similar block specifying means 6000 is input. In the flip-flop with selector 6380 of the horizontal component detection unit 6300, since the signal 1 is input to the signal input terminal E, 1 is input to the signal input terminal S of the selector 9110.
Is input to the second data input terminal B of the selector 9110.
And the data output terminal Y are electrically connected, and the conversion table 634 is connected to the data input terminal A of the flip-flop 9120.
Data 2 obtained at 0 is input.

【0253】次いで、パルス信号CK2の24クロック
目に同期して、類似ブロック特定手段6000の最小デ
ィストーション検出ユニット6100のセレクタ付きフ
リップフロップ6180では、フリップフロップ912
0に入力データD(2,1)がラッチされ、データ出力
端子Yから出力され、最小ディストーションMinDi
sとしてD(2,1)がデータ出力端子Oを介して出力
され、類似ブロック特定手段6000の動きベクトル垂
直成分検出ユニット6200のセレクタ付きフリップフ
ロップ6280では、フリップフロップ9120に入力
データ0がラッチされ、動きベクトル垂直成分MVyと
してデータ0がデータ出力端子Oを介して出力され、類
似ブロック特定手段6000の動きベクトル水平成分検
出ユニット6300のセレクタ付きフリップフロップ6
380では、フリップフロップ9120に入力データ2
がラッチされ、動きベクトル水平成分MVxとしてデー
タ2がデータ出力端子Oを介して出力される。
Next, in synchronization with the 24th clock of the pulse signal CK2, in the flip-flop 6180 with the selector of the minimum distortion detecting unit 6100 of the similar block specifying means 6000, the flip-flop 912
0, the input data D (2, 1) is latched and output from the data output terminal Y, and the minimum distortion MinDi
As s, D (2,1) is output via the data output terminal O, and in the flip-flop 6280 with the selector of the motion vector vertical component detection unit 6200 of the similar block specifying means 6000, the input data 0 is latched in the flip-flop 9120. , Data 0 is output via the data output terminal O as the vertical component MVy of the motion vector, and the flip-flop 6
At 380, the input data 2 is input to the flip-flop 9120.
Are latched, and data 2 is output via the data output terminal O as the motion vector horizontal component MVx.

【0254】以上により、第1現画像ブロック110に
対応する最小ディストーションMinDis(2,1)
と動きベクトル(2,0)が求まる。したがって、類似
ブロック特定手段6000により、サーチウインドウ2
10内の全ての候補ブロック310と第1現画像ブロッ
ク110との間の最小ディストーションMinDisお
よび最小ディストーションに対応する動きベクトルMV
x,yが算出されたことになる。
As described above, the minimum distortion MinDis (2, 1) corresponding to the first current image block 110 is obtained.
And the motion vector (2, 0) are obtained. Therefore, the search window 2
10 and the motion vector MV corresponding to the minimum distortion MinDis and the minimum distortion between all the candidate blocks 310 and the first current image block 110.
x and y are calculated.

【0255】図39〜図40は、本発明に係る動きベク
トル探索装置の第2実施例を示す図である。図39に示
すように、ここでは、第1実施例において対象にした第
1現画像ブロック110およびサーチウインドウ210
内の候補ブロック310をそれぞれ第1現画像ブロック
110および第1サーチウインドウ210内の候補ブロ
ック310とし、該第1現画像ブロック110および第
1サーチウインドウ210内の候補ブロック310に対
し、M画素分横にずれた第2現画像ブロック120およ
び第2サーチウインドウ220内の候補ブロック320
とし、さらにM画素分横にずれた第3現画像ブロック1
30および第3サーチウインドウ230内の候補ブロッ
ク330とを探索対象にし、第1実施例に続いて動きベ
クトルを探索する場合について説明する。
FIGS. 39 to 40 show a second embodiment of the motion vector search apparatus according to the present invention. As shown in FIG. 39, here, the first current image block 110 and the search window 210 targeted in the first embodiment are used.
Are set as the first current image block 110 and the candidate block 310 in the first search window 210, respectively. Horizontally shifted second current image block 120 and candidate block 320 in second search window 220
And the third current image block 1 shifted horizontally by M pixels
A description will be given of a case where a search is made for a motion vector following the first embodiment, with the search block 30 and the candidate block 330 in the third search window 230 as search targets.

【0256】はじめに、現画像データ出力手段1000
および参照画像データ記憶手段2000から第1の画素
データ転送保持手段3001および第2の画素データ転
送保持手段3002に入力される画素データの流れを説
明する。尚、ここでは第1実施例において使用したタイ
ムチャート図5〜図10も合わせて参照しながら説明す
る。
First, the current image data output means 1000
The flow of pixel data input from the reference image data storage unit 2000 to the first pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 3002 will be described. The description will be made with reference to the time charts used in the first embodiment and FIGS.

【0257】現画像データ出力手段1000では第1実
施例から引続き、クロックパルス信号CK1の18クロ
ック目に同期して、第2現画像ブロック120の画素デ
ータa(3,0)が現画像データ出力手段1000のフ
リップフロップ1110に入力される。以後、クロック
パルス信号CK1に同期して、画素データa(3,
1),a(3,2),a(4,0),a(4,
1),...が順次、現画像データ出力手段1000の
フリップフロップ1110に入力される。
In the current image data output means 1000, the pixel data a (3,0) of the second current image block 120 outputs the current image data in synchronization with the eighteenth clock of the clock pulse signal CK1. It is input to the flip-flop 1110 of the means 1000. Thereafter, in synchronization with the clock pulse signal CK1, the pixel data a (3,
1), a (3, 2), a (4, 0), a (4,
1),. . . Are sequentially input to the flip-flop 1110 of the current image data output unit 1000.

【0258】現画像データ出力手段1000における画
素データの転送については、第1実施例と同様であり、
ここでは詳しい説明は省略するが、クロックパルス信号
CK1の21クロック目より、現画像データ出力手段1
000の出力端子を介して、ディストーション算出手段
5000の各プロセッサエレメントPEへ第2現画像ブ
ロックの画素データが伝送され、各プロセッサエレメン
トPEではディストーションの算出処理が開始されるこ
とになる。
The transfer of pixel data in the current image data output means 1000 is the same as in the first embodiment.
Although the detailed description is omitted here, the current image data output unit 1 starts from the 21st clock of the clock pulse signal CK1.
The pixel data of the second current image block is transmitted to each processor element PE of the distortion calculation means 5000 via the output terminal of 000, and each processor element PE starts a distortion calculation process.

【0259】また、上記期間c19から期間c21にお
いて、第1の画素データ転送保持手段3001および第
2の画素データ転送保持手段3002では第3の画素デ
ータ転送保持手段4000に保持されていた画素データ
が戻され、第1の画素データ転送保持手段3001の各
プロセッサエレメント PE(0,0),PE(0,1),PE(0,2), PE(1,0),PE(1,1),PE(1,2), PE(2,0),PE(2,1)およびPE(2,2)
に、第1サーチウィンドウ210内の候補ブロック31
0の画素データ b(0,0),b(0,1),b(0,2), b(1,2),b(1,3),b(1,4), b(2,0),b(2,1)およびb(2,2)が記載
順に入力され、ディストーション算出の準備が完了した
ことになり、各プロセッサエレメントPEでは、上記準
備が完了する期間c21からつぎのディストーション算
出が開始される。
In the period c19 to the period c21, the first pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 3002 store the pixel data held in the third pixel data transfer holding unit 4000. The processor elements PE (0,0), PE (0,1), PE (0,2), PE (1,0), PE (1,1) of the first pixel data transfer holding unit 3001 are returned. , PE (1,2), PE (2,0), PE (2,1) and PE (2,2)
The candidate block 31 in the first search window 210
0 pixel data b (0,0), b (0,1), b (0,2), b (1,2), b (1,3), b (1,4), b (2, 0), b (2, 1) and b (2, 2) are input in the stated order, and the preparation for distortion calculation is completed. In each processor element PE, the next distortion starts from the period c21 when the preparation is completed. Calculation is started.

【0260】図6に示されるクロックパルス信号CK1
の21クロック目のアップエッヂから30クロック目の
アップエッヂまでの間の期間c21,c22,c23,
c24,c25,c26,c27,c28,c29にお
いて、各プロセッサエレメントPE(x,y)の各素子
では、第1実施例と同様の演算処理が行われ、ディスト
ーションがそれぞれ求められる。
Clock pulse signal CK1 shown in FIG.
, C21, c22, c23, and c23 between the up edge of the 21st clock and the 30th clock.
In c24, c25, c26, c27, c28, and c29, in each element of each processor element PE (x, y), the same arithmetic processing as in the first embodiment is performed, and distortion is obtained.

【0261】ここでは、詳しい説明は省略するが、期間
c29の演算処理が終了したとき、 (奇数) |b(x+2,y+2) - a(5,2)| + |b(x+2,y+1) - a(5,1)| + |b(x+2,y) - a(5,0)| + |b(x+1,y+2) - a(4,2)| + |b(x+1,y+1) - a(4,1)| + |b(x+1,y) - a(4,0)| + |b(x,y+2) - a(3,2)| + |b(x,y+1) - a(3,1)| + |b(x,y) - a(3,0)| ・・・(Q3) (偶数) |b(x+2,y) - a(5,0)| + |b(x+2,y+1) - a(5,1)| + |b(x+2,y+2) - a(5,2)| + |b(x+1,y) - a(4,0)| + |b(x+1,y+1) - a(4,1)| + |b(x+1,y+2) - a(4,2)| + |b(x,y) - a(3,0)| + |b(x,y+1) - a(3,1)| + |b(x,y+2) - a(3,2)| ・・・(Q4) が、各プロセッサエレメントPEの加算器5230で算
出され、各プロセッサエレメントPEのフリップフロッ
プ5240へ出力される。
Although the detailed description is omitted here, when the arithmetic processing in the period c29 ends, (odd number) | b (x + 2, y + 2) −a (5,2) | + | b (x + 2, y + 1)-a (5,1) | + | b (x + 2, y)-a (5,0) | + | b (x + 1, y + 2)-a (4, 2) | + | b (x + 1, y + 1)-a (4,1) | + | b (x + 1, y)-a (4,0) | + | b (x, y + 2 ) -a (3,2) | + | b (x, y + 1) -a (3,1) | + | b (x, y) -a (3,0) | ... (Q3) ( (Even number) | b (x + 2, y)-a (5,0) | + | b (x + 2, y + 1)-a (5,1) | + | b (x + 2, y + 2 )-a (5,2) | + | b (x + 1, y)-a (4,0) | + | b (x + 1, y + 1)-a (4,1) | + | b (x + 1, y + 2)-a (4,2) | + | b (x, y)-a (3,0) | + | b (x, y + 1)-a (3,1) | + | B (x, y + 2) −a (3,2) | (Q4) is calculated by the adder 5230 of each processor element PE and output to the flip-flop 5240 of each processor element PE. You.

【0262】奇数列のプロセッサエレメントPE(x,
y)から出力される上記式(Q3)は、変形すると偶数
列のプロセッサエレメントPE(x,y)から出力され
る上記式(Q4)と同等である。上記式(Q3)および
(Q4)は、図39に示された第1サーチウィンドウ2
10内の各候補ブロック310と、第2現画像ブロック
120とのディストーションを表わす式である。
The processor elements PE (x,
The above equation (Q3) output from y) is equivalent to the above equation (Q4) output from the even-numbered row of processor elements PE (x, y) when deformed. The above equations (Q3) and (Q4) correspond to the first search window 2 shown in FIG.
10 is an expression representing the distortion between each candidate block 310 in 10 and the second current image block 120.

【0263】以下の説明では、上記式(Q3),(Q
4)をD2(x,y)とし、第1実施例で算出された、
第1サーチウィンドウ210内の各候補ブロック310
と、第1現画像ブロック110とのディストーションを
D1(x,y)とする。以上の動作で各プロセッサエレ
メント PE(0,0),PE(0,1),PE(0,2), PE(1,0),PE(1,1),PE(1,2), PE(2,0),PE(2,1)およびPE(2,2)
における各ディストーション D2(0,0),D2(0,1),D2(0,2), D2(1,0),D2(1,1),D2(1,2), D2(2,0),D2(2,1)およびD2(2,2)
が算出されたことになり、各プロセッサエレメントPE
の出力端子Doを介して類似ブロック特定手段6000
へ出力される。
In the following description, the above equations (Q3) and (Q
4) is D2 (x, y), and is calculated in the first embodiment.
Each candidate block 310 in the first search window 210
, And the distortion with the first current image block 110 is D1 (x, y). By the above operation, each processor element PE (0,0), PE (0,1), PE (0,2), PE (1,0), PE (1,1), PE (1,2), PE (2,0), PE (2,1) and PE (2,2)
, D2 (0,0), D2 (0,1), D2 (0,2), D2 (1,0), D2 (1,1), D2 (1,2), D2 (2,0) ), D2 (2,1) and D2 (2,2)
Is calculated, and each processor element PE
Similar block specifying means 6000 via the output terminal Do
Output to

【0264】つぎに、ディストーション算出手段500
0において算出され保持されている各プロセッサエレメ
ントPE毎のディストーションを類似ブロック特定手段
6000へ転送する作用についても第1実施例と同様で
あり、詳しい説明は省略するが、タイムチャートの図
7,図8に示すように、期間c29においてパルス信号
LD1が1となり、各プロセッサエレメントPEのセレ
クタ5310では第2データ入力端子Bが選択され、パ
ルス信号CK2の30クロック目に同期して、各プロセ
ッサエレメントPE(x,y)で算出されたディストー
ションD2(x,y)が各プロセッサエレメントPE
(x,y)の出力端子Doを介して類似ブロック特定手
段6000あるいは各プロセッサエレメントPE(x−
1,y)へ出力される。
Next, the distortion calculating means 500
The operation of transferring the distortion calculated for each processor element PE and held for each processor element PE to the similar block specifying means 6000 is also the same as that of the first embodiment, and detailed description is omitted, but FIGS. As shown in FIG. 8, the pulse signal LD1 becomes 1 during the period c29, the second data input terminal B is selected by the selector 5310 of each processor element PE, and each processor element PE is synchronized with the 30th clock of the pulse signal CK2. The distortion D2 (x, y) calculated by (x, y) is calculated for each processor element PE.
The similar block specifying means 6000 or each processor element PE (x-
1, y).

【0265】期間c30から再び、パルス信号LD1は
0となるため、各プロセッサエレメントPE(x,y)
のセレクタ5310では第1データ入力端子Aが選択さ
れ、パルス信号CK2の31クロック目,32クロック
目に同期して、各プロセッサエレメントPE(x+1,
y)およびPE(x+2,y)で算出されたディストー
ションD2(x+1,y)およびD2(x+2,y)が
それぞれ各プロセッサエレメントPE(x,y)の出力
端子Doを介して順次、類似ブロック特定手段6000
へ出力される。
Since the pulse signal LD1 becomes 0 again from the period c30, each of the processor elements PE (x, y)
Selector 5310 selects the first data input terminal A, and in synchronization with the 31st clock and the 32nd clock of the pulse signal CK2, each processor element PE (x + 1,
y) and the distortions D2 (x + 1, y) and D2 (x + 2, y) calculated by PE (x + 2, y) are sequentially specified through the output terminal Do of each processor element PE (x, y). Means 6000
Output to

【0266】つぎに、類似ブロック特定手段6000に
おいて最小ディストーションおよび動きベクトルを求め
る作用についても第1実施例と同様であり、詳しい説明
は省略するが、タイムチャートの図10に示すように、
類似ブロック特定手段6000では、期間c31から期
間c34までの間に最小ディストーションおよび動きベ
クトルが求められ、パルス信号CK2の34クロック目
の立ち下がりに同期して、パルス信号SMV1が1とな
るため、類似ブロック特定手段6000の最小ディスト
ーション検出ユニット6100のセレクタ付きフリップ
フロップ6180,類似ブロック特定手段6000の動
きベクトル垂直成分検出ユニット6200のセレクタ付
きフリップフロップ6280および類似ブロック特定手
段6000の動きベクトル水平成分検出ユニット630
0のセレクタ付きフリップフロップ6380では、信号
入力端子Eに信号1が入力されるため、セレクタ911
0の信号入力端子Sに1が入力され、セレクタ9110
の第2データ入力端子Bとデータ出力端子Yが電気的に
接続され、フリップフロップ9120のデータ入力端子
AにD2(2,0),データ−1およびデータ−2がそ
れぞれ入力される。
Next, the operation for obtaining the minimum distortion and the motion vector in the similar block specifying means 6000 is the same as that in the first embodiment, and the detailed description is omitted, but as shown in FIG.
In the similar block specifying unit 6000, the minimum distortion and the motion vector are obtained from the period c31 to the period c34, and the pulse signal SMV1 becomes 1 in synchronization with the falling of the 34th clock of the pulse signal CK2. The flip-flop with selector 6180 of the minimum distortion detecting unit 6100 of the block specifying unit 6000, the flip-flop with selector 6280 of the motion vector vertical component detecting unit 6200 of the similar block specifying unit 6000, and the motion vector horizontal component detecting unit 630 of the similar block specifying unit 6000.
In the flip-flop 6380 with the selector of 0, since the signal 1 is input to the signal input terminal E, the selector 911
1 is input to the 0 signal input terminal S, and the selector 9110
Is electrically connected to the second data input terminal B, and the data input terminal A of the flip-flop 9120 receives D2 (2,0), data-1 and data-2, respectively.

【0267】次いで、パルス信号CK2の35クロック
目に同期して、類似ブロック特定手段6000の最小デ
ィストーション検出ユニット6100のセレクタ付きフ
リップフロップ6180,類似ブロック特定手段600
0の動きベクトル垂直成分検出ユニット6200のセレ
クタ付きフリップフロップ6280および類似ブロック
特定手段6000の動きベクトル水平成分検出ユニット
6300のセレクタ付きフリップフロップ6380で
は、フリップフロップ9120に入力データD2(2,
1),データ−1およびデータ−2がそれぞれラッチさ
れ、データ出力端子Yから出力され、最小ディストーシ
ョンMinDisとしてD2(2,0)が、動きベクト
ル垂直成分MVyとしてデータ−1が、動きベクトル水
平成分MVxとしてデータ−2がデータ出力端子Oを介
して出力される。
Next, in synchronization with the 35th clock of the pulse signal CK2, the flip-flop with selector 6180 of the minimum distortion detection unit 6100 of the similar block specifying unit 6000 and the similar block specifying unit 600
In the flip-flop 6280 with selector of the motion vector vertical component detection unit 6200 of 0 and the flip-flop 6380 with selector of the motion vector horizontal component detection unit 6300 of the similar block specifying means 6000, the input data D2 (2,
1), data-1 and data-2 are respectively latched and output from the data output terminal Y, D2 (2,0) as the minimum distortion MinDis, data-1 as the motion vector vertical component MVy, and the motion vector horizontal component Data-2 is output via the data output terminal O as MVx.

【0268】以上により、第1サーチウィンドウ210
内の各候補ブロック310と第2現画像ブロック120
に対応する最小ディストーションMinDisD2
(2,0)と動きベクトル(−2,−1)が求まる。し
たがって、類似ブロック特定手段6000により、第1
サーチウインドウ210内の候補ブロック310と第1
現画像ブロック110との間の最小ディストーションM
inDisD1(2,1)および最小ディストーション
に対応する動きベクトルMVx,y(2,0)および第
1サーチウインドウ210内の候補ブロック310と第
2現画像ブロック120との間の最小ディストーション
MinDisD2(2,0)および最小ディストーショ
ンに対応する動きベクトルMVx,y(−2,−1)が
算出されたことになる。
Thus, the first search window 210
In each of the candidate blocks 310 and the second current image block 120
Distortion MinDisD2 corresponding to
(2, 0) and the motion vector (−2, −1) are obtained. Therefore, the similar block specifying means 6000 sets the first
The candidate block 310 in the search window 210 and the first
Minimum distortion M with current image block 110
The motion vector MVx, y (2,0) corresponding to inDisD1 (2,1) and the minimum distortion, and the minimum distortion MinDisD2 (2,2) between the candidate block 310 and the second current image block 120 in the first search window 210. 0) and the motion vector MVx, y (−2, −1) corresponding to the minimum distortion.

【0269】以上の処理をまとめ、第1実施例の処理と
ともに第2実施例のパイプライン処理の流れを時系列で
図40に示す。同図に示すように、処理工程は大きく分
けて、現画像データ出力手段1000による現画像ブロ
ックの画素データの準備および参照画像データ記憶手段
2000による参照画像の候補ブロックを含むサーチウ
ィンドウの画素データを準備し、これらを入出力し、転
送保持する工程とディストーション算出手段5000に
よるディストーション算出工程と第3の画素データ転送
保持手段4000により保持されていた画素データの戻
し工程と類似ブロック特定手段6000による最小ディ
ストーションと動きベクトルの特定および出力工程とに
分類される。
The above processing is summarized, and the flow of the pipeline processing of the second embodiment together with the processing of the first embodiment is shown in time series in FIG. As shown in the figure, the processing steps are roughly divided into preparation of pixel data of a current image block by a current image data output unit 1000 and pixel data of a search window including a candidate block of a reference image by a reference image data storage unit 2000. Preparing, inputting / outputting, transferring and holding these, a distortion calculating step by the distortion calculating means 5000, a returning step of the pixel data held by the third pixel data transfer holding means 4000, and a minimum by the similar block specifying means 6000. Distortion and motion vector identification and output are classified.

【0270】これらの工程はそれぞれ、信号出力ユニッ
ト8000からの制御信号により制御されており、現画
像データ出手段1000による現画像ブロックの画素デ
ータの準備および参照画像データ記憶手段2000によ
る参照画像の候補ブロックを含むサーチウィンドウの画
素データを準備し、これらを入出力し、転送保持する工
程はクロックパルス信号CK1およびパルス信号SLに
より制御され、ディストーション算出手段5000によ
るディストーション算出工程はクロックパルス信号CK
1およびパルス信号SLおよびパルス信号LD1により
制御され、第3の画素データ転送保持手段4000によ
り保持されていた画素データの戻し工程はクロックパル
ス信号CK1およびパルス信号SRにより制御され、類
似ブロック特定手段6000による最小ディストーショ
ンと動きベクトルの特定および出力工程はパルス信号C
K2,パルス信号LD2およびパルス信号SMV1によ
り制御される。
Each of these steps is controlled by a control signal from the signal output unit 8000. The preparation of the pixel data of the current image block by the current image data output unit 1000 and the reference image candidate by the reference image data storage unit 2000 The process of preparing the pixel data of the search window including the block, inputting / outputting and transferring and holding the data is controlled by the clock pulse signal CK1 and the pulse signal SL.
1 and the pulse signal SL and the pulse signal LD1, and the process of returning the pixel data held by the third pixel data transfer holding unit 4000 is controlled by the clock pulse signal CK1 and the pulse signal SR. The process of identifying and outputting the minimum distortion and motion vector by the pulse signal C
K2, controlled by a pulse signal LD2 and a pulse signal SMV1.

【0271】図40に示すように、上記信号により各工
程は順次処理を行う。上記工程をここで仮に、画素デー
タ準備工程,ディストーション算出工程,画素データ戻
し工程および類似ブロック特定工程と呼ぶことにする
と、画素データ準備工程はクロックパルス信号CK1の
1クロック目より第1サーチウィンドウ210内の各候
補ブロック310の画素データを準備開始し、以後同様
にして、クロックパルス信号CK1の20クロックを1
サイクルとして第2サーチウィンドウ220内の候補ブ
ロック320,第3サーチウィンドウ230内の候補ブ
ロック330,...の画素データを入力する。さらに
画素データ準備工程はクロックパルス信号CK1の7ク
ロック目より第1現画像ブロック110の画素データを
準備開始し、ついで、クロックパルス信号CK1の18
クロック目より第2現画像ブロック120の画素データ
を準備開始し、ついで、クロックパルス信号CK1の9
クロック後の27クロック目より第2現画像ブロックの
画素データを再び、準備開始し、以後同様にして、クロ
ックパルス信号CK1の20クロックを1サイクルとし
て第3現画像ブロック130,第4現画像ブロック14
0,...の画素データを2度づつ入力する。
As shown in FIG. 40, each step is sequentially processed by the above signals. If the above steps are referred to as a pixel data preparation step, a distortion calculation step, a pixel data return step, and a similar block identification step, the pixel data preparation step starts with the first search window 210 starting from the first clock of the clock pulse signal CK1. , The preparation of the pixel data of each candidate block 310 is started, and thereafter, 20 clocks of the clock pulse signal CK1 are set to 1
As a cycle, the candidate blocks 320 in the second search window 220, the candidate blocks 330 in the third search window 230,. . . Is input. Further, in the pixel data preparation step, the preparation of the pixel data of the first current image block 110 is started from the seventh clock of the clock pulse signal CK1.
The preparation of the pixel data of the second current image block 120 is started from the clock, and the 9th of the clock pulse signal CK1 is started.
The preparation of the pixel data of the second current image block is started again from the 27th clock after the clock, and thereafter, similarly, the 20th clock of the clock pulse signal CK1 is regarded as one cycle, and the third current image block 130 and the fourth current image block are similarly performed. 14
0,. . . Are input twice.

【0272】ディストーション算出工程はパルス信号C
Lによりディストーション算出手段5000の加算器5
230のデータがクリアされ、ディストーション算出が
開始され、パルス信号LD1により算出されたディスト
ーションが類似ブロック特定手段6000へ出力され
る。したがって、第1サーチウィンドウ210内の候補
ブロック310と第1現画像ブロック110のディスト
ーションD1が期間c10から期間c18までの間に算
出され、第1サーチウィンドウ210内の候補ブロック
310と第2現画像ブロック120のディストーション
D2が期間c21から期間c29までの間に算出され、
以後同様にして、クロックパルス信号CK1の20クロ
ックを1サイクルとして第2サーチウィンドウ220内
の候補ブロック320と第2現画像ブロック120のデ
ィストーション算出,さらに第3現画像ブロック130
のディストーション算出,第3サーチウィンドウ230
内の候補ブロック330と第3現画像ブロック130の
ディストーション算出,さらに第4現画像ブロック14
0のディストーション算出,...とディストーション
算出が行われ各ディストーションが出力される。
In the distortion calculation step, the pulse signal C
L, the adder 5 of the distortion calculating means 5000
The data of 230 is cleared, the distortion calculation is started, and the distortion calculated by the pulse signal LD1 is output to the similar block specifying means 6000. Accordingly, the distortion D1 between the candidate block 310 in the first search window 210 and the first current image block 110 is calculated from the period c10 to the period c18, and the candidate block 310 and the second current image in the first search window 210 are calculated. The distortion D2 of the block 120 is calculated from the period c21 to the period c29,
Thereafter, similarly, the distortion of the candidate block 320 and the second current image block 120 in the second search window 220 in the second search window 220 is calculated using the 20 clocks of the clock pulse signal CK1 as one cycle.
, Distortion search, third search window 230
, The distortion of the candidate block 330 and the third current image block 130, and the fourth current image block 14
0 distortion calculation,. . . Is calculated, and each distortion is output.

【0273】画素データ戻し工程はパルス信号SRによ
り第3の画素データ転送保持手段4000に保持されて
いた画素データを第1の画素データ転送保持手段300
1および第2の画素データ転送保持手段3002へ戻
し、上記ディストーション算出工程で1度算出に用いた
候補ブロックの画素データを、再び、参照画像データ記
憶手段2000より入力転送処理することなく、ディス
トーション算出を行うことができる。
In the pixel data return step, the pixel data held in the third pixel data transfer holding means 4000 is converted to the first pixel data transfer holding means 300 by the pulse signal SR.
Returning to the first and second pixel data transfer holding means 3002, the pixel data of the candidate block used once in the distortion calculation step is subjected to the distortion calculation without the input transfer processing from the reference image data storage means 2000 again. It can be performed.

【0274】類似ブロック特定工程はパルス信号LD2
により類似ブロック特定手段6000より転送されたデ
ィストーションを入力し、最小ディストーションおよび
動きベクトルを特定し、パルス信号SMV1によりこれ
らを出力する。したがって、第1サーチウィンドウ21
0内の候補ブロック310と第1現画像ブロック110
の最小ディストーションD1および動きベクトルが期間
c24から期間c34までの間に出力され、第1サーチ
ウィンドウ210内の候補ブロック310と第2現画像
ブロック120の最小ディストーションD2および動き
ベクトルが期間c35から期間c43までの間に出力さ
れ、以後同様にして、クロックパルス信号CK1の20
クロックを1サイクルとして第2サーチウィンドウ22
0内の候補ブロック320と第2現画像ブロック120
の最小ディストーションD3および動きベクトル,さら
に第3現画像ブロック130の最小ディストーションD
4および動きベクトル,第3サーチウィンドウ230内
の候補ブロック330と第3現画像ブロック130の最
小ディストーションD5および動きベクトル,さらに第
4現画像ブロック140の最小ディストーションD6お
よび動きベクトル,...と最小ディストーションおよ
び動きベクトルの特定が行われ最小ディストーションお
よび動きベクトルが出力される。
The similar block specifying step includes the pulse signal LD2.
To input the distortion transferred from the similar block specifying means 6000, specify the minimum distortion and the motion vector, and output them by the pulse signal SMV1. Therefore, the first search window 21
0 and the first current image block 110
Is output during the period c24 to the period c34, and the minimum distortion D2 and the motion vector of the candidate block 310 and the second current image block 120 in the first search window 210 are changed from the period c35 to the period c43. Until the clock pulse signal CK1
Using the clock as one cycle, the second search window 22
0 and the second current image block 120
, The minimum distortion D3 and the motion vector of the third current image block 130.
4 and the motion vector, the minimum distortion D5 and the motion vector of the candidate block 330 and the third current image block 130 in the third search window 230, and the minimum distortion D6 and the motion vector of the fourth current image block 140,. . . Then, the minimum distortion and the motion vector are specified, and the minimum distortion and the motion vector are output.

【0275】図41は、本発明に係る動きベクトル探索
装置の第3実施例を示す図である。同図に示すように、
動きベクトル探索装置は、第1実施例および第2実施例
に加えて、参照画像データ記憶手段2000から、第1
の画素データ転送保持手段3001および第2の画素デ
ータ転送保持手段3002へ入力保持された画素データ
を記憶する高速転送記憶手段7000を具備することを
特徴とするものである。
FIG. 41 is a diagram showing a third embodiment of the motion vector search device according to the present invention. As shown in the figure,
The motion vector search device includes a first image data storage unit 2000 in addition to the first and second embodiments.
And a high-speed transfer storage unit 7000 for storing the pixel data input and held to the pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 3002.

【0276】高速転送記憶手段7000は、参照画像デ
ータ記憶手段2000から第1の画素データ転送保持手
段3001および第2の画素データ転送保持手段300
2へ画素データが入力されるとき、同時に画素データを
記憶し、記憶したサーチウィンドウの画素データを参照
画像データ記憶手段2000からのデータ転送速度より
大きい転送速度で、第1の画素データ転送保持手段30
01および第2の画素データ転送保持手段3002に供
給するものである。
The high-speed transfer storage unit 7000 is provided from the reference image data storage unit 2000 to the first pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 300.
When the pixel data is input to the second pixel data storage unit, the pixel data is simultaneously stored and the stored pixel data of the search window is stored in the first pixel data transfer holding unit at a transfer speed higher than the data transfer speed from the reference image data storage unit 2000. 30
01 and the second pixel data transfer holding unit 3002.

【0277】これにより、参照画像データ記憶手段20
00に入力された後、一旦、削除され再度、入力される
画素データを、より迅速に第1の画素データ転送保持手
段3001および第2の画素データ転送保持手段300
2へ入力することが可能となる。高速転送記憶手段70
00は従来のキャッシュメモリ等でも良く、その構成に
ついては、ここでは特に規定しない。
As a result, the reference image data storage means 20
After the pixel data is input to the first pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 300, the pixel data is deleted once and input again.
2 can be input. High-speed transfer storage means 70
00 may be a conventional cache memory or the like, and its configuration is not particularly defined here.

【0278】詳しく説明すると、第1実施例および第2
実施例で示したように、クロックパルス信号CK1の1
8クロック目において、図35に示すように、第1の画
素データ転送保持手段3001および第2の画素データ
転送保持手段3002の各プロセッサエレメントPE
(1,0),PE(1,1),PE(1,2),PE
(2,0),PE(2,1),PE(2,2),垂直サ
イドレジスタVS(1,3),VS(1,4),VS
(2,3),VS(2,4),および入力レジスタIR
(3,0),IR(3,1),IR(3,2),IR
(3,3)およびIR(3,4)には、第2サーチウィ
ンドウ220内の複数の候補ブロック320の画素デー
タb(3,0),b(3,1),b(3,2),b
(4,2),b(4,3),b(4,4),b(3,
3),b(3,4),b(4,0),b(4,1),b
(5,0),b(5,1),b(5,2),b(5,
3)およびb(5,4)が入力されている。
To be more specific, the first embodiment and the second embodiment
As described in the embodiment, 1 of the clock pulse signal CK1 is used.
At the eighth clock, as shown in FIG. 35, each processor element PE of the first pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 3002
(1, 0), PE (1, 1), PE (1, 2), PE
(2, 0), PE (2, 1), PE (2, 2), vertical side register VS (1, 3), VS (1, 4), VS
(2, 3), VS (2, 4), and input register IR
(3,0), IR (3,1), IR (3,2), IR
The pixel data b (3,0), b (3,1), b (3,2) of the plurality of candidate blocks 320 in the second search window 220 are included in (3,3) and IR (3,4). , B
(4,2), b (4,3), b (4,4), b (3,
3), b (3, 4), b (4, 0), b (4, 1), b
(5,0), b (5,1), b (5,2), b (5,
3) and b (5, 4) are input.

【0279】つまり、これらの画素データはこの時点ま
でに、同時に高速転送記憶手段7000にも入力され、
記憶される。ついで、クロックパルス信号CK1の21
クロック目より、再び、第1の画素データ転送保持手段
3001および第2の画素データ転送保持手段3002
へ入力されるとき、第1実施例および第2実施例とは異
なり、参照画像データ記憶手段2000からではなく、
高速転送記憶手段7000から上記第2サーチウィンド
ウ220内の複数の候補ブロック320の画素データを
入力するものである。
That is, these pixel data are simultaneously input to the high-speed transfer storage means 7000 by this time.
It is memorized. Next, 21 of the clock pulse signal CK1
From the clock, the first pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 3002 again
Is input from the reference image data storage unit 2000, unlike the first and second embodiments.
The pixel data of the plurality of candidate blocks 320 in the second search window 220 is input from the high-speed transfer storage unit 7000.

【0280】同様にして、クロックパルス信号CK1の
30クロック目から39クロック目までの間に第1の画
素データ転送保持手段3001および第2の画素データ
転送保持手段3002へ入力保持された第3サーチウィ
ンドウ230内の複数の候補ブロック330の画素デー
タは、同時に高速転送記憶手段7000へも入力され、
記憶される。
Similarly, the third search input and held to the first pixel data transfer holding means 3001 and the second pixel data transfer holding means 3002 during the 30th clock to the 39th clock of the clock pulse signal CK1. The pixel data of the plurality of candidate blocks 330 in the window 230 are also input to the high-speed transfer storage unit 7000 at the same time,
It is memorized.

【0281】ついで、クロックパルス信号CK1の41
クロック目より、再び、第1の画素データ転送保持手段
3001および第2の画素データ転送保持手段3002
へ高速転送記憶手段7000から上記第3サーチウィン
ドウ230内の複数の候補ブロック330の画素データ
を入力するものである。図42〜図43は、本発明に係
る動きベクトル探索装置の第4実施例を示す図である。
図42に示すように、動きベクトル探索装置は、第1実
施例あるいは第3実施例と同様の手段からなるものであ
る。
Next, 41 of the clock pulse signal CK1
From the clock, the first pixel data transfer holding unit 3001 and the second pixel data transfer holding unit 3002 again
The pixel data of a plurality of candidate blocks 330 in the third search window 230 is input from the high-speed transfer storage unit 7000. 42 to 43 are diagrams showing a fourth embodiment of the motion vector search device according to the present invention.
As shown in FIG. 42, the motion vector search device comprises the same means as in the first embodiment or the third embodiment.

【0282】現画像ブロックの画素データのサイズをN
行M列とするとき、前述の実施例においてはN=3,M
=3とMが奇数であったが、第4実施例においてはN=
3,M=4とMが偶数であるとする。図42における第
1の画素データ転送保持手段3001,第2の画素デー
タ転送保持手段3002,第3の画素データ転送保持手
段4000およびディストーション算出手段5000
は、12個のプロセッサエレメント PE(0,0),PE(0,1),PE(0,2), PE(1,0),PE(1,1),PE(1,2), PE(2,0),PE(2,1),PE(2,2), PE(3,0),PE(3,1),PE(3,2), 8個の垂直サイドレジスタ VS(0,3),VS(0,4), VS(1,3),VS(1,4), VS(2,3),VS(2,4), VS(3,3),VS(3,4), 15個の水平サイドレジスタ HS(−3,0),HS(−3,1),HS(−3,
2),HS(−3,3),HS(−3,4), HS(−2,0),HS(−2,1),HS(−2,
2),HS(−2,3),HS(−2,4), HS(−1,0),HS(−1,1),HS(−1,
2),HS(−1,3),HS(−1,4)、並びに、
5個の入力レジスタIR(3,0),IR(3,1),
IR(3,2),IR(3,3),IR(3,4)を有
している。
The size of the pixel data of the current image block is set to N
When the number of rows is M, N = 3 and M in the above embodiment.
= 3 and M were odd numbers, but in the fourth embodiment, N =
3, M = 4 and M is an even number. 42. First pixel data transfer holding unit 3001, second pixel data transfer holding unit 3002, third pixel data transfer holding unit 4000 and distortion calculating unit 5000 in FIG.
Are the 12 processor elements PE (0,0), PE (0,1), PE (0,2), PE (1,0), PE (1,1), PE (1,2), PE (2,0), PE (2,1), PE (2,2), PE (3,0), PE (3,1), PE (3,2), 8 vertical side registers VS (0 , 3), VS (0, 4), VS (1, 3), VS (1, 4), VS (2, 3), VS (2, 4), VS (3, 3), VS (3, 4), 15 horizontal side registers HS (-3,0), HS (-3,1), HS (-3,
2), HS (−3, 3), HS (−3, 4), HS (−2, 0), HS (−2, 1), HS (−2,
2), HS (−2, 3), HS (−2, 4), HS (−1, 0), HS (−1, 1), HS (−1, 1)
2), HS (-1,3), HS (-1,4), and
Five input registers IR (3,0), IR (3,1),
IR (3,2), IR (3,3) and IR (3,4).

【0283】つまり、水平サイドレジスタHSの数は
(M−1)×N個からなることになる。このように、現
画像ブロックの画素データのサイズをN行M列とすると
き、Mが奇数であるときは、水平サイドレジスタHSは
M×N個からなり、Mが偶数であるときは、水平サイド
レジスタHSは(M−1)×N個からなる。
That is, the number of horizontal side registers HS is (M-1) × N. As described above, when the size of the pixel data of the current image block is N rows and M columns, the horizontal side register HS is composed of M × N when M is odd, and when M is even, the horizontal side register HS is horizontal. The number of side registers HS is (M-1) × N.

【0284】また、ディストーション算出手段5000
の各プロセッサエレメントPE(x,y)の接続におい
て、第1実施例と異なる点は、減算器5210の第1デ
ータ入力端子Aは同じプロセッサエレメントPE(x,
y)のフリップフロップ3120のデータ出力端子に電
気的に接続され、第2データ入力端子Bは奇数列の各プ
ロセッサエレメントにおいては、現画像データ出力手段
1000のフリップフロップ1250のデータ出力端子
に入力端子Xを介して電気的に接続され、偶数列の各プ
ロセッサエレメントにおいては、現画像データ出力手段
1000のフリップフロップ1140のデータ出力端子
に入力端子Xを介して電気的に接続されている。
Also, the distortion calculating means 5000
Is different from the first embodiment in that the first data input terminal A of the subtractor 5210 is connected to the same processor element PE (x, y).
y) is electrically connected to the data output terminal of the flip-flop 3120, and the second data input terminal B is connected to the data output terminal of the flip-flop 1250 of the current image data output means 1000 in each of the odd-numbered processor elements. Each of the processor elements in the even columns is electrically connected to the data output terminal of the flip-flop 1140 of the current image data output unit 1000 via the input terminal X.

【0285】言換えれば、現画像データ出力手段100
0のデータ出力端子とプロセッサエレメントPEの入力
端子Xの接続において、奇数列と偶数列で接続が逆にな
る。また、第1実施例のように、ディストーション算出
手段5000および類似ブロック特定手段6000にお
いて、ディストーションが右から左の各プロセッサエレ
メントPEへ伝送され、プロセッサエレメントPE
(0,0),PE(0,1),PE(0,2)の出力端
子Doを介して、類似ブロック特定手段6000の比較
器6110へ出力されるように構成しても良いが、本実
施例においては、図42に示すようにディストーション
は下から上の各プロセッサエレメントPEへ伝送される
ものとし、プロセッサエレメントPE(0,0),PE
(1,0),PE(2,0),PE(3,0)出力端子
Doを介して、類似ブロック特定手段6000の比較器
6110へ出力されるものとする。
In other words, the current image data output means 100
In the connection between the data output terminal of 0 and the input terminal X of the processor element PE, the connection is reversed between the odd columns and the even columns. Further, as in the first embodiment, in the distortion calculating means 5000 and the similar block specifying means 6000, the distortion is transmitted to each processor element PE from right to left, and the processor element PE
It may be configured to output to the comparator 6110 of the similar block specifying means 6000 via the output terminal Do of (0,0), PE (0,1), PE (0,2). In this embodiment, as shown in FIG. 42, it is assumed that the distortion is transmitted from the bottom to the top processor elements PE, and the processor elements PE (0,0), PE
It is assumed that the signal is output to the comparator 6110 of the similar block specifying means 6000 via the (1,0), PE (2,0), PE (3,0) output terminal Do.

【0286】つまり、類似ブロック特定手段6000の
構成機器の比較器6110、並びに、ディストーション
算出手段5000の各プロセッサエレメントPEおよび
類似ブロック特定手段6000の各構成機器間の接続に
おいて、以下に示す部分が第1実施例と異なる。類似ブ
ロック特定手段6000の最小ディストーション検出ユ
ニット6100の比較器6110は、データ入力端子A
0,A1,A2,A3,データ出力端子MおよびYを有
し、データ入力端子A0,A1,A2,A3に入力され
たデータの中で最小の値を持つデータLMDisを出力
端子Yから出力し、最小の値を持つデータの入力された
入力端子がA0ならば0を、A1ならば1を、A2なら
ば2を、A3ならば3をLMVyとしてデータ出力端子
Mから出力するものである。
In other words, in the connection between the comparators 6110 of the constituent devices of the similar block specifying means 6000 and the respective processor elements PE of the distortion calculating means 5000 and the respective constituent devices of the similar block specifying means 6000, the following parts are the following. Different from the first embodiment. The comparator 6110 of the minimum distortion detection unit 6100 of the similar block specifying means 6000 has a data input terminal A
0, A1, A2, A3, data output terminals M and Y, and data LMDis having the minimum value among the data input to the data input terminals A0, A1, A2, A3 are output from the output terminal Y. When the input terminal to which the data having the minimum value is input is A0, 0 is output if A1, 1 is output if A1, 2 is output if A2, and 3 is output as LMVy if A3.

【0287】ディストーション算出手段5000の各プ
ロセッサエレメントPE(x,y)のセレクタ5310
の第1データ入力端子Aは、一つ下側に位置する別のプ
ロセッサエレメントPE(x,y−1)のフリップフロ
ップ5320のデータ出力端子Yに入力端子Diを介し
て電気的に接続され、類似ブロック特定手段6000の
最小ディストーション検出ユニット6100の比較器6
110のデータ入力端子A0は、プロセッサエレメント
PE(0,0)のフリップフロップ5320のデータ出
力端子Yに、プロセッサエレメントPE(0,0)の出
力端子Doを介して電気的に接続され、データ入力端子
A1は、プロセッサエレメントPE(1,0)のフリッ
プフロップ5320のデータ出力端子Yに、プロセッサ
エレメントPE(1,0)の出力端子Doを介して電気
的に接続され、データ入力端子A2は、プロセッサエレ
メントPE(2,0)のフリップフロップ5320のデ
ータ出力端子Yに、プロセッサエレメントPE(2,
0)の出力端子Doを介して電気的に接続され、データ
入力端子A3は、プロセッサエレメントPE(3,0)
のフリップフロップ5320のデータ出力端子Yに、プ
ロセッサエレメントPE(3,0)の出力端子Doを介
して電気的に接続されている。
The selector 5310 of each processor element PE (x, y) of the distortion calculating means 5000
The first data input terminal A is electrically connected to the data output terminal Y of the flip-flop 5320 of another processor element PE (x, y-1) located one lower side via the input terminal Di, Comparator 6 of minimum distortion detection unit 6100 of similar block specifying means 6000
The data input terminal A0 of 110 is electrically connected to the data output terminal Y of the flip-flop 5320 of the processor element PE (0, 0) via the output terminal Do of the processor element PE (0, 0). The terminal A1 is electrically connected to the data output terminal Y of the flip-flop 5320 of the processor element PE (1, 0) via the output terminal Do of the processor element PE (1, 0). The data output terminal Y of the flip-flop 5320 of the processor element PE (2,0) is connected to the processor element PE (2,0).
0), and the data input terminal A3 is electrically connected to the processor element PE (3, 0).
Is electrically connected to the data output terminal Y of the flip-flop 5320 via the output terminal Do of the processor element PE (3, 0).

【0288】また、信号出力ユニット8000において
は出力信号のタイミングが第1実施例と異なる。各信号
の意味は第1実施例と同じである。図43に出力信号の
タイミングの概略と、パイプライン処理工程を示す。信
号出力ユニット8000の各信号出力端子P1〜P9か
ら出力される各信号は、以下のとおりである。
In the signal output unit 8000, the timing of the output signal is different from that in the first embodiment. The meaning of each signal is the same as in the first embodiment. FIG. 43 shows an outline of the timing of the output signal and a pipeline processing step. The signals output from the signal output terminals P1 to P9 of the signal output unit 8000 are as follows.

【0289】第1信号出力端子P1から出力される信号
は、クロックパルス信号CK1であり、第1実施例と同
様の仕様である。第2信号出力端子P2から出力される
信号は、パルス信号CK2で、第1実施例と同様の仕様
である。第3信号出力端子P3から出力される信号はパ
ルス信号SLで、クロックパルス信号CK1の1クロッ
ク目が出力される前に、クロックパルス信号の立ち下が
りに同期して出力され、クロックパルス信号CK1の2
倍のパルス幅で、以後、クロックパルス信号CK1の3
倍の周期で出力され、クロックパルス信号CK1の21
クロック目の立ち下がりに同期して出力された後、クロ
ックパルス信号CK1の5倍の周期で出力され、クロッ
クパルス信号CK1の26クロック目の立ち下がりに同
期して出力され、以後、クロックパルス信号CK1の3
倍の周期で出力され、同様の動作を繰り返し、クロック
パルス信号CK1の23クロック目から数えて48クロ
ック目までを1サイクル、すなわち、クロックパルス信
号CK1の26クロックを1サイクルとして上記動作を
繰り返す。
The signal output from the first signal output terminal P1 is a clock pulse signal CK1, which has the same specifications as in the first embodiment. The signal output from the second signal output terminal P2 is a pulse signal CK2 having the same specifications as in the first embodiment. The signal output from the third signal output terminal P3 is a pulse signal SL, which is output in synchronization with the falling edge of the clock pulse signal before the first clock of the clock pulse signal CK1 is output. 2
The pulse width is twice that of the clock pulse signal CK1.
The clock pulse signal CK1 is output at twice the cycle and
After being output in synchronization with the falling edge of the clock pulse, the clock pulse signal CK1 is output at five times the cycle, and is output in synchronization with the falling edge of the clock pulse signal CK1 at the 26th clock. 3 of CK1
The same operation is repeated at twice the cycle, and the same operation is repeated, and the above operation is repeated with one cycle from the 23rd clock to the 48th clock of the clock pulse signal CK1, that is, 26 clocks of the clock pulse signal CK1 as one cycle.

【0290】第4信号出力端子P4から出力される信号
は、パルス信号SHで、クロックパルス信号CK1の2
倍のパルス幅で、クロックパルス信号CK1の13クロ
ック目の立ち下がりに同期して出力され、クロックパル
ス信号CK1の5倍の周期で、クロックパルス信号CK
1の4倍のパルス幅で、クロックパルス信号CK1の1
8クロック目の立ち下がりに同期して出力され、クロッ
クパルス信号CK1の21倍の周期で、クロックパルス
信号CK1の2倍のパルス幅で、クロックパルス信号C
K1の39クロック目の立ち下がりに同期して出力さ
れ、以後クロックパルス信号CK1の13クロック目か
ら数えて38クロック目までを1サイクル、すなわち、
クロックパルス信号CK1の26クロックを1サイクル
として上記動作を繰り返す。
The signal output from the fourth signal output terminal P4 is a pulse signal SH, which is a signal of the clock pulse signal CK1.
The clock pulse signal CK1 is output at a double pulse width in synchronization with the falling edge of the 13th clock of the clock pulse signal CK1, and at a period five times the clock pulse signal CK1.
The pulse width of the clock pulse signal CK1 is 1
The clock pulse signal C is output in synchronization with the falling edge of the eighth clock, and has a cycle 21 times as long as the clock pulse signal CK1 and a pulse width twice as large as the clock pulse signal CK1.
It is output in synchronization with the fall of the 39th clock of K1, and thereafter, one cycle from the 13th clock to the 38th clock of the clock pulse signal CK1, ie, one cycle,
The above operation is repeated with 26 clocks of the clock pulse signal CK1 as one cycle.

【0291】第5信号出力端子P5から出力される信号
は、パルス信号SRで、クロックパルス信号CK1の6
倍のパルス幅で、クロックパルス信号CK1の24クロ
ック目の立ち下がりに同期して出力され、以後クロック
パルス信号CK1の26倍の周期で出力される。第6信
号出力端子P6から出力される信号は、パルス信号LD
1で、クロックパルス信号CK1の2倍のパルス幅で、
クロックパルス信号CK1の24クロック目の立ち下が
りに同期して出力され、クロックパルス信号CK1の1
4倍の周期で、クロックパルス信号CK1の38クロッ
ク目の立ち下がりに同期して出力され、クロックパルス
信号CK1の12倍の周期で、クロックパルス信号CK
1の50クロック目の立ち下がりに同期して出力され、
以後、クロックパルス信号CK1の24クロック目から
数えて49クロック目までを1サイクル、すなわち、ク
ロックパルス信号CK1の26クロックを1サイクルと
して上記動作を繰り返す。
The signal output from the fifth signal output terminal P5 is a pulse signal SR, which is a signal of the clock pulse signal CK1.
The clock pulse signal CK1 is output at a double pulse width in synchronization with the falling edge of the 24th clock of the clock pulse signal CK1, and thereafter output at a 26 times cycle of the clock pulse signal CK1. The signal output from the sixth signal output terminal P6 is a pulse signal LD.
1, with a pulse width twice as large as the clock pulse signal CK1,
The clock pulse signal CK1 is output in synchronization with the fall of the 24th clock, and the clock pulse signal CK1
The clock pulse signal CK1 is output at a four-fold cycle in synchronization with the falling edge of the 38th clock of the clock pulse signal CK1, and at a 12-fold cycle of the clock pulse signal CK1.
1 is output in synchronization with the fall of the 50th clock,
Thereafter, the above operation is repeated with one cycle from the 24th clock to the 49th clock of the clock pulse signal CK1, that is, 26 cycles of the clock pulse signal CK1 as one cycle.

【0292】第7信号出力端子P7から出力される信号
は、パルス信号LD2で、クロックパルス信号CK1の
2倍のパルス幅で、クロックパルス信号CK1の25ク
ロック目の立ち下がりに同期して出力され、クロックパ
ルス信号CK1の14倍の周期で、クロックパルス信号
CK1の39クロック目の立ち下がりに同期して出力さ
れ、クロックパルス信号CK1の12倍の周期で、クロ
ックパルス信号CK1の51クロック目の立ち下がりに
同期して出力され、以後、クロックパルス信号CK1の
25クロック目から数えて50クロック目までを1サイ
クル、すなわち、クロックパルス信号CK1の26クロ
ックを1サイクルとして上記動作を繰り返す。
The signal output from the seventh signal output terminal P7 is a pulse signal LD2 having a pulse width twice that of the clock pulse signal CK1 and is output in synchronization with the falling edge of the 25th clock of the clock pulse signal CK1. The clock pulse signal CK1 is output at a period of 14 times in synchronization with the falling edge of the 39th clock of the clock pulse signal CK1. The signal is output in synchronization with the fall, and thereafter, the above operation is repeated with one cycle from the 25th clock to the 50th clock of the clock pulse signal CK1, that is, 26 cycles of the clock pulse signal CK1.

【0293】第8信号出力端子P8から出力される信号
は、パルス信号CLで、クロックパルス信号CK1の2
倍のパルス幅で、クロックパルス信号CK1の12クロ
ック目の立ち下がりに同期して出力され、クロックパル
ス信号CK1の14倍の周期で出力され、クロックパル
ス信号CK1の26クロック目の立ち下がりに同期して
出力され、クロックパルス信号CK1の12倍の周期
で、クロックパルス信号CK1の38クロック目の立ち
下がりに同期して出力され、以後、クロックパルス信号
CK1の12クロック目から数えて37クロック目まで
を1サイクル、すなわち、クロックパルス信号CK1の
26クロックを1サイクルとして上記動作を繰り返す。
The signal output from the eighth signal output terminal P8 is a pulse signal CL,
It is output with a double pulse width in synchronization with the falling edge of the 12th clock of the clock pulse signal CK1, and is output with a cycle 14 times that of the clock pulse signal CK1, and synchronized with the falling edge of the 26th clock of the clock pulse signal CK1. The clock pulse signal CK1 is output at a cycle 12 times as long as the clock pulse signal CK1 in synchronization with the falling edge of the clock pulse signal CK1 at the 38th clock. Up to one cycle, that is, 26 clocks of the clock pulse signal CK1 as one cycle, and the above operation is repeated.

【0294】第9信号出力端子P9から出力される信号
は、パルス信号SMV1で、クロックパルス信号CK1
の2倍のパルス幅で、クロックパルス信号CK1の29
クロック目の立ち下がりに同期して出力され、クロック
パルス信号CK1の14倍の周期で出力され、クロック
パルス信号CK1の43クロック目の立ち下がりに同期
して出力され、クロックパルス信号CK1の12倍の周
期で、クロックパルス信号CK1の55クロック目の立
ち下がりに同期して出力され、以後、クロックパルス信
号CK1の29クロック目から数えて54クロック目ま
でを1サイクル、すなわち、クロックパルス信号CK1
の26クロックを1サイクルとして上記動作を繰り返
す。
The signal output from the ninth signal output terminal P9 is a pulse signal SMV1 and a clock pulse signal CK1.
Of the clock pulse signal CK1 with twice the pulse width of
The clock pulse signal CK1 is output in synchronization with the falling edge of the clock pulse signal CK1, and is output in a cycle 14 times as large as the clock pulse signal CK1. The clock pulse signal CK1 is output in synchronization with the 43rd falling edge of the clock pulse signal CK1. , And is output in synchronization with the fall of the 55th clock of the clock pulse signal CK1. Thereafter, one cycle from the 29th clock to the 54th clock of the clock pulse signal CK1, ie, the clock pulse signal CK1
The above operation is repeated with 26 clocks as one cycle.

【0295】なお、作用については第1実施例と現画像
ブロックの画素データ数が違うため、処理のタイミング
が異なるが、信号出力ユニット8000からの制御信号
に基づいて第1実施例と同様に動作するものであり、こ
こでは説明は省略する。図44は、本発明に係る動きベ
クトル探索装置の第5実施例を示す図である。同図に示
すように、動きベクトル探索装置は、第1実施例あるい
は第3実施例と同様の手段からなるものであるが、第2
の画素データ転送保持手段3002における垂直サイド
レジスタVSをプロセッサエレメントPEの上側にも設
けるものである。
The operation is the same as that of the first embodiment based on the control signal from the signal output unit 8000, although the operation timing is different because the number of pixel data of the current image block is different from that of the first embodiment. The description is omitted here. FIG. 44 is a diagram showing a fifth embodiment of the motion vector search device according to the present invention. As shown in the figure, the motion vector search device comprises the same means as in the first embodiment or the third embodiment.
The vertical side register VS in the pixel data transfer holding means 3002 is also provided above the processor element PE.

【0296】詳しく説明すると、第1の画素データ転送
保持手段3001,第2の画素データ転送保持手段30
02,第3の画素データ転送保持手段4000およびデ
ィストーション算出手段5000は、図44に示すよう
に、9個のプロセッサエレメント PE(0,0),PE(0,1),PE(0,2), PE(1,0),PE(1,1),PE(1,2), PE(2,0),PE(2,1),PE(2,2), 12個の垂直サイドレジスタ VS(0,−2),VS(0,−1),VS(0,
3),VS(0,4), VS(1,−2),VS(1,−1),VS(1,
3),VS(1,4), VS(2,−2),VS(2,−1),VS(2,
3),VS(2,4), 21個の水平サイドレジスタ HS(−3,−2),HS(−3,−1),HS(−
3,0),HS(−3,1),HS(−3,2),HS
(−3,3),HS(−3,4), HS(−2,−2),HS(−2,−1),HS(−
2,0),HS(−2,1),HS(−2,2),HS
(−2,3),HS(−2,4), HS(−1,−2),HS(−1,−1),HS(−
1,0),HS(−1,1),HS(−1,2),HS
(−1,3),HS(−1,4)、並びに、5個の入力
レジスタ IR(3,0),IR(3,1),IR(3,2),I
R(3,3),IR(3,4)を有している。 x=−3,−2,−1,0,1,2,3, y=−2,−1,0,1,2,3,4として、上述の各
プロセッサエレメントPEをPE(x,y),各垂直サ
イドレジスタVSをVS(x,y),各水平サイドレジ
スタHSをHS(x,y),各入力レジスタIRをIR
(x,y)と表わすものとする。
More specifically, the first pixel data transfer holding unit 3001, the second pixel data transfer holding unit 30
02, the third pixel data transfer holding unit 4000 and the distortion calculating unit 5000, as shown in FIG. 44, include nine processor elements PE (0,0), PE (0,1), PE (0,2). , PE (1,0), PE (1,1), PE (1,2), PE (2,0), PE (2,1), PE (2,2), 12 vertical side registers VS (0, -2), VS (0, -1), VS (0,
3), VS (0, 4), VS (1, -2), VS (1, -1), VS (1,
3), VS (1, 4), VS (2, -2), VS (2, -1), VS (2,
3), VS (2, 4), 21 horizontal side registers HS (-3, -2), HS (-3, -1), HS (-
3,0), HS (-3,1), HS (-3,2), HS
(-3,3), HS (-3,4), HS (-2, -2), HS (-2, -1), HS (-
2,0), HS (-2,1), HS (-2,2), HS
(-2,3), HS (-2,4), HS (-1, -2), HS (-1, -1), HS (-
1,0), HS (-1,1), HS (-1,2), HS
(-1,3), HS (-1,4), and five input registers IR (3,0), IR (3,1), IR (3,2), I
R (3,3) and IR (3,4). Assuming that x = −3, −2, −1, 0, 1, 2, 3, y = −2, −1, 0, 1, 2, 3, 4, each processor element PE described above is denoted by PE (x, y ), Each vertical side register VS is VS (x, y), each horizontal side register HS is HS (x, y), and each input register IR is IR
(X, y).

【0297】図44に示すように、最上端に位置する垂
直サイドレジスタVS(x,−2)と最下端に位置する
垂直サイドレジスタVS(x,4)は互いに電気的に接
続されず、したがって、奇数列においては最下端に位置
する垂直サイドレジスタVS(x,4)の入力端子YU
iは電気的に接続されず、偶数列においては最上端に位
置する垂直サイドレジスタVS(x,−2)の入力端子
YUiは電気的に接続されないことになる。
As shown in FIG. 44, the uppermost vertical side register VS (x, -2) and the lowermost vertical side register VS (x, 4) are not electrically connected to each other, and , The input terminal YU of the vertical side register VS (x, 4) located at the lowermost position in the odd-numbered column
i is not electrically connected, and the input terminal YUi of the vertical side register VS (x, -2) located at the uppermost end in the even-numbered column is not electrically connected.

【0298】次に、水平サイドレジスタHSからプロセ
ッサエレメントPE方向に画素データを戻しながらディ
ストーションの算出を行なう場合について説明する。本
実施例においては、プロセッサエレメントPEおよび垂
直サイドレジスタVSから水平サイドレジスタHSに画
素データを出力するタイミングは、すべて水平サイドレ
ジスタHSに接続されているプロセッサエレメントPE
および垂直サイドレジスタVSの列のディストーション
算出開始位置を保って出力される。すなわち、プロセッ
サエレメントPE(0,0),PE(0,1),PE
(0,2),垂直サイドレジスタVS(0,3),VS
(0,4)に、入力された画素データ(x,0),
(x,1),(x,2),(x,3),(x,4)が、
水平サイドレジスタHS(−1,0),HS(−1,
1),HS(−1,2),HS(−1,3),HS(−
1,4)に出力される。
Next, the case where the distortion is calculated while returning pixel data from the horizontal side register HS in the direction of the processor element PE will be described. In the present embodiment, the timing at which pixel data is output from the processor element PE and the vertical side register VS to the horizontal side register HS is determined by the processor element PE connected to the horizontal side register HS.
The signal is output while maintaining the distortion calculation start position in the column of the vertical side register VS. That is, the processor elements PE (0,0), PE (0,1), PE
(0, 2), vertical side register VS (0, 3), VS
In (0,4), input pixel data (x, 0),
(X, 1), (x, 2), (x, 3), (x, 4)
Horizontal side registers HS (-1,0), HS (-1 ,,
1), HS (−1, 2), HS (−1, 3), HS (−)
1, 4).

【0299】また、プロセッサエレメントのある列の2
列目以降に保持されている画素データは、ディストーシ
ョン算出後、隣の列に一旦シフトされ、上下のシフト
後、元の列に戻される。この戻されるタイミングに同期
して、水平サイドレジスタVSからも画素データがプロ
セッサエレメントのある1列目に転送され、ディストー
ションの算出が開始される。
[0299] Also, 2 in the column having the processor element
The pixel data held in the columns and thereafter is temporarily shifted to the next column after the distortion is calculated, and is returned to the original column after being shifted up and down. In synchronization with this return timing, the pixel data is also transferred from the horizontal side register VS to the first column having the processor element, and the calculation of the distortion is started.

【0300】また、第1、第2、第3および第4実施例
のような構成においては、画素データを隣の列にシフト
してディストーション開始位置に戻さずに、上下に転送
を続けてディストーション算出開始位置に戻してもよ
い。
In the arrangements of the first, second, third, and fourth embodiments, the pixel data is not shifted to the next column and returned to the distortion start position, but the data is continuously transferred up and down to obtain the distortion. It may return to the calculation start position.

【0301】[0301]

【発明の効果】請求項1記載の発明によれば、第1のデ
ィストーション算出工程において、現画像ブロックの画
素データとサーチウィンドウの画素データとに基づい
て、前記現画像ブロックと前記サーチウィンドウの複数
の候補ブロックとの間のディストーションをそれぞれ算
出し、さらに、第2のディストーション算出工程におい
て、画素データ戻し工程により第3の画素データ転送保
持手段から戻されたサーチウィンドウの画素データを用
いて、前記現画像ブロックとは異なる現画像ブロックに
対応するディストーションを算出することができる。
According to the first aspect of the present invention, in the first distortion calculating step, a plurality of the current image block and the search window are determined based on the pixel data of the current image block and the pixel data of the search window. , Respectively, and further, in the second distortion calculation step, using the pixel data of the search window returned from the third pixel data transfer holding unit in the pixel data return step, A distortion corresponding to a current image block different from the current image block can be calculated.

【0302】このため、第2のディストーション算出時
にサーチウィンドウの画素データを高速に読み込みディ
ストーションを算出することができ、動きベクトル探索
処理を高速化することができる。請求項2記載の発明に
よれば、第1のディストーション算出工程において、現
画像ブロックの画素データとサーチウィンドウの画素デ
ータとに基づいて、前記現画像ブロックと前記サーチウ
ィンドウの複数の候補ブロックとの間のディストーショ
ンをそれぞれ算出し、さらに、第3の画素データ転送保
持手段からサーチウィンドウの画素データを第1および
第2の画素データ転送保持手段に戻す画素データ戻し工
程と同時に、第2のディストーション算出工程におい
て、前記サーチウィンドウの画素データを用いて、前記
現画像ブロックとは異なる現画像ブロックに対応するデ
ィストーションを算出することができる。
[0302] Therefore, at the time of the second distortion calculation, the pixel data of the search window can be read at high speed to calculate the distortion, and the speed of the motion vector search processing can be increased. According to the second aspect of the present invention, in the first distortion calculation step, the current image block and the plurality of candidate blocks of the search window are determined based on the pixel data of the current image block and the pixel data of the search window. Calculating the distortion between the pixel data and the pixel data in the search window from the third pixel data transfer and holding means to the first and second pixel data transfer and holding means. In the step, a distortion corresponding to a current image block different from the current image block can be calculated using the pixel data of the search window.

【0303】このため、第2のディストーション算出時
にサーチウィンドウの画素データを高速に読み込みディ
ストーションを算出することができ、動きベクトル探索
処理を高速化することができる。請求項3記載の発明に
よれば、第1のディストーション算出工程において、現
画像ブロックの画素データとサーチウィンドウの画素デ
ータとに基づいて、前記現画像ブロックと前記サーチウ
ィンドウの複数の候補ブロックとの間のディストーショ
ンをそれぞれ算出し、さらに、第2のディストーション
算出工程において、画素データ戻し工程により第3の画
素データ転送保持手段から戻された(M−1)列分のサ
ーチウィンドウの画素データを用いて、前記現画像ブロ
ックとは異なる現画像ブロックに対応するディストーシ
ョンを算出することができる。
[0303] Therefore, at the time of the second distortion calculation, the pixel data of the search window can be read at high speed to calculate the distortion, and the speed of the motion vector search processing can be increased. According to the third aspect of the present invention, in the first distortion calculating step, the current image block and the plurality of candidate blocks of the search window are determined based on the pixel data of the current image block and the pixel data of the search window. And the second distortion calculation step uses the pixel data of the search window for (M-1) columns returned from the third pixel data transfer holding unit in the pixel data return step in the second distortion calculation step. Thus, the distortion corresponding to the current image block different from the current image block can be calculated.

【0304】このため、第2のディストーション算出時
にサーチウィンドウの画素データを高速に読み込みディ
ストーションを算出することができ、動きベクトル探索
処理を高速化することができる。請求項4記載の発明に
よれば、請求項3に記載の発明において、サーチウィン
ドウの画素データを(M−1)ステップでディストーシ
ョン算出行程の開始位置に転送することができる。この
ため、画素データの転送方向を切り換えるだけでディス
トーションの算出ができ、容易にディストーションの算
出ができる。
Therefore, at the time of the second distortion calculation, the pixel data of the search window can be read at high speed to calculate the distortion, and the speed of the motion vector search processing can be increased. According to the fourth aspect of the present invention, in the third aspect of the present invention, the pixel data of the search window can be transferred to the start position of the distortion calculation process in the (M-1) step. Therefore, the distortion can be calculated simply by switching the transfer direction of the pixel data, and the distortion can be easily calculated.

【0305】請求項5記載の発明によれば、第1のディ
ストーション算出工程において、現画像ブロックの画素
データとサーチウィンドウの画素データとに基づいて、
前記現画像ブロックと前記サーチウィンドウの複数の候
補ブロックとの間のディストーションをそれぞれ算出
し、さらに、第2のディストーション算出工程におい
て、画素データ戻し工程により第3の画素データ転送保
持手段から戻されたM列分のサーチウィンドウの画素デ
ータを用いて、前記現画像ブロックとは異なる現画像ブ
ロックに対応するディストーションを算出することがで
きる。
[0305] According to the fifth aspect of the invention, in the first distortion calculating step, based on the pixel data of the current image block and the pixel data of the search window,
The distortion between the current image block and the plurality of candidate blocks in the search window is calculated, and the pixel data is returned from the third pixel data transfer holding unit in the pixel data return step in the second distortion calculation step. The distortion corresponding to the current image block different from the current image block can be calculated using the pixel data of the search window for M columns.

【0306】このため、第2のディストーション算出時
にサーチウィンドウの画素データを高速に読み込みディ
ストーションを算出することができ、動きベクトル探索
処理を高速化することができる。請求項6記載の発明に
よれば、請求項5に記載の発明において、サーチウィン
ドウの画素データをMステップでディストーション算出
行程の開始位置に転送することができる。このため、画
素データの転送方向を切り換えるだけでディストーショ
ンの算出ができ、容易にディストーションの算出ができ
る。
Therefore, at the time of the second distortion calculation, the pixel data of the search window can be read at high speed to calculate the distortion, and the speed of the motion vector search processing can be increased. According to the invention described in claim 6, in the invention described in claim 5, the pixel data of the search window can be transferred to the start position of the distortion calculation process in M steps. Therefore, the distortion can be calculated simply by switching the transfer direction of the pixel data, and the distortion can be easily calculated.

【0307】請求項7記載の発明によれば、第1のディ
ストーション算出工程において、現画像ブロックの画素
データと高速転送記憶手段から入力されたサーチウィン
ドウの画素データとに基づいて、前記現画像ブロックと
前記サーチウィンドウの複数の候補ブロックとの間のデ
ィストーションをそれぞれ算出し、さらに、第2のディ
ストーション算出工程において、画素データ戻し工程に
より第3の画素データ転送保持手段から戻されたサーチ
ウィンドウの画素データと、前記高速転送記憶手段から
入力されたサーチウィンドウの画素データとを用いて、
前記現画像ブロックとは異なる現画像ブロックに対応す
るディストーションを算出することができる。
According to the seventh aspect of the present invention, in the first distortion calculating step, the current image block based on the pixel data of the current image block and the pixel data of the search window inputted from the high-speed transfer storage means. And a plurality of candidate blocks of the search window are calculated respectively. Further, in the second distortion calculation step, the pixels of the search window returned from the third pixel data transfer holding unit in the pixel data return step are calculated. Using the data and the pixel data of the search window input from the high-speed transfer storage means,
Distortion corresponding to a current image block different from the current image block can be calculated.

【0308】このため、サーチウィンドウの画素データ
を高速に読み込みディストーションを算出することがで
き、動きベクトル探索処理を高速化することができる。
請求項8記載の発明によれば、第1のディストーション
算出工程において、現画像ブロックの画素データと高速
転送記憶手段から入力されたサーチウィンドウの画素デ
ータとに基づいて、前記現画像ブロックと前記サーチウ
ィンドウの複数の候補ブロックとの間のディストーショ
ンをそれぞれ算出し、さらに、第2のディストーション
算出工程において、画素データ戻し工程により第3の画
素データ転送保持手段から戻された(M−1)列又はM
列分のサーチウィンドウの画素データと、前記高速転送
記憶手段から入力されたサーチウィンドウの画素データ
とを用いて、前記現画像ブロックとは異なる現画像ブロ
ックに対応するディストーションを算出することができ
る。
[0308] Therefore, the pixel data of the search window can be read at high speed to calculate the distortion, and the motion vector search processing can be sped up.
According to the invention described in claim 8, in the first distortion calculation step, the current image block and the search are input based on the pixel data of the current image block and the pixel data of the search window input from the high-speed transfer storage unit. The distortion between each of the plurality of candidate blocks in the window is calculated, and further, in the second distortion calculating step, the (M-1) column or the (M-1) column returned from the third pixel data transfer holding unit in the pixel data returning step M
The distortion corresponding to the current image block different from the current image block can be calculated using the pixel data of the search window for the column and the pixel data of the search window input from the high-speed transfer storage unit.

【0309】このため、サーチウィンドウの画素データ
を高速に読み込みディストーションを算出することがで
き、動きベクトル探索処理を高速化することができる。
請求項9記載の発明によれば、請求項7又は8に記載の
発明において、画素データ戻し工程、第1および第2の
ウィンドウデータ入力工程の期間に参照画像データ記憶
手段から前記高速転送記憶手段に画素データを転送させ
ることができる。このため、参照画像データ記憶手段か
らの転送速度に制限されることなく、高速で画素データ
を転送することができ、動きベクトル探索処理を高速化
することができる。
[0309] Therefore, the pixel data of the search window can be read at high speed to calculate the distortion, and the speed of the motion vector search processing can be increased.
According to the ninth aspect of the present invention, in the invention of the seventh or eighth aspect, the high-speed transfer storage means is provided from the reference image data storage means during the pixel data return step and the first and second window data input steps. Can transfer pixel data. Therefore, the pixel data can be transferred at a high speed without being limited by the transfer speed from the reference image data storage means, and the motion vector search processing can be speeded up.

【0310】請求項10記載の発明によれば、請求項3
〜6および8の何れかに記載の発明において、列毎に画
素データの列方向の転送方向を固定することができる。
このため、データの転送バスを削減することができ、回
路構成を簡素化することができる。請求項11記載の発
明によれば、請求項1〜4および7〜9の何れかに記載
の発明において、ディストーション算出が終了したと
き、各列の画素データの位置をディストーション算出開
始時の行位置において同一にすることができる。このた
め、各列の画素データを行方向にシフトさせることでデ
ィストーション算出開始時の画素位置にすることがで
き、次のディストーション算出を容易にかつ速やかに行
なうことができる。
According to the tenth aspect, the third aspect is provided.
In any of the inventions described in any one of the above items 6 to 8, the transfer direction of the pixel data in the column direction can be fixed for each column.
Therefore, the number of data transfer buses can be reduced, and the circuit configuration can be simplified. According to the eleventh aspect, in the invention according to any one of the first to fourth and seventh to ninth aspects, when the distortion calculation is completed, the position of the pixel data in each column is changed to the row position at the start of the distortion calculation. Can be the same. Therefore, by shifting the pixel data of each column in the row direction, the pixel position at the start of the distortion calculation can be set, and the next distortion calculation can be performed easily and quickly.

【0311】請求項12記載の発明によれば、請求項1
〜2および5〜9の何れかに記載の発明において、ディ
ストーション算出が終了したとき、第3の画素データ転
送保持手段に保持されている各列の画素データの位置を
ディストーション算出開始時の行位置において同一にす
ることができる。このため、第3の画素データ転送保持
手段に保持されている各列の画素データを行方向にシフ
トさせることでディストーション算出開始時の画素位置
にすることができ、次のディストーション算出を容易に
かつ速やかに行なうことができる。
[0311] According to the twelfth aspect of the present invention, the first aspect is provided.
In the invention according to any one of (1) to (2) and (5) to (9), when the distortion calculation is completed, the position of the pixel data of each column held in the third pixel data transfer holding unit is changed to the row position at the start of the distortion calculation. Can be the same. For this reason, by shifting the pixel data of each column held in the third pixel data transfer holding unit in the row direction, the pixel position at the time of starting the distortion calculation can be set, and the next distortion calculation can be performed easily and easily. It can be done promptly.

【0312】請求項13記載の発明によれば、請求項1
および3〜8の何れかに記載の発明において、第3の画
素データ転送保持手段から第1および第2の画素データ
転送保持手段に画素データが戻されたとき、ディストー
ション算出開始時の画素データの位置を保っていること
ができる。このため、第1および第2の画素データ転送
保持手段に画素データが戻された状態のままディストー
ション算出を開始することができ、次のディストーショ
ン算出を容易にかつ速やかに行なうことができる。
According to the thirteenth aspect, the first aspect is provided.
In the invention described in any one of (3) to (8), when the pixel data is returned from the third pixel data transfer holding unit to the first and second pixel data transfer holding units, the pixel data at the start of the distortion calculation is Position can be maintained. For this reason, the distortion calculation can be started with the pixel data returned to the first and second pixel data transfer holding units, and the next distortion calculation can be performed easily and promptly.

【0313】請求項14記載の発明によれば、ディスト
ーション算出手段において、現画像データ出力手段から
出力された現画像ブロックの画素データと参照画像デー
タ記憶手段から出力され第1の画素データ転送保持手段
に保持されたサーチウィンドウ内の各候補ブロックの画
素データとに基づいて、前記現画像ブロックと前記サー
チウィンドウの複数の候補ブロックとの間のディストー
ションをそれぞれ算出し、さらに、ディストーション算
出手段が、第3の画素データ転送保持手段から前記第1
の画素データ転送保持手段に戻された画素データを用い
て、前記現画像ブロックとは異なる現画像ブロックに対
応するディストーションを算出することができる。
According to the fourteenth aspect, in the distortion calculating means, the pixel data of the current image block output from the current image data output means and the first pixel data transfer holding means output from the reference image data storage means are stored. Calculating a distortion between the current image block and a plurality of candidate blocks of the search window, based on the pixel data of each candidate block in the search window held in the search window, further comprising: 3 from the pixel data transfer holding means.
By using the pixel data returned to the pixel data transfer holding unit, the distortion corresponding to the current image block different from the current image block can be calculated.

【0314】このため、2回目のディストーション算出
時にサーチウィンドウの画素データを高速に読み込みデ
ィストーションを算出することができ、動きベクトル探
索処理を高速化することができる。請求項15記載の発
明によれば、ディストーション算出手段において、現画
像データ出力手段から出力された現画像ブロックの画素
データと参照画像データ記憶手段から出力され第1の画
素データ転送保持手段に保持されたサーチウィンドウ内
の各候補ブロックの画素データとに基づいて、前記現画
像ブロックと前記サーチウィンドウの複数の候補ブロッ
クとの間のディストーションをそれぞれ算出し、さら
に、戻しデータ転送制御手段による画素データの転送と
同時に、ディストーション算出手段が、第3の画素デー
タ転送保持手段から前記第1の画素データ転送保持手段
に戻された画素データを用いて、前記現画像ブロックと
は異なる現画像ブロックに対応するディストーションを
算出することができる。
Therefore, at the time of the second distortion calculation, the pixel data of the search window can be read at high speed to calculate the distortion, and the speed of the motion vector search processing can be increased. According to the fifteenth aspect, in the distortion calculating means, the pixel data of the current image block output from the current image data output means and the output from the reference image data storage means are stored in the first pixel data transfer and holding means. Calculating the distortion between the current image block and the plurality of candidate blocks in the search window, based on the pixel data of each candidate block in the search window, and further calculating the pixel data by the return data transfer control means. Simultaneously with the transfer, the distortion calculating unit uses the pixel data returned from the third pixel data transfer holding unit to the first pixel data transfer holding unit to correspond to a current image block different from the current image block. Distortion can be calculated.

【0315】このため、2回目のディストーション算出
時にサーチウィンドウの画素データを高速に読み込み連
続してディストーションを算出することができ、動きベ
クトル探索処理を高速化することができる。請求項16
記載の発明によれば、ディストーション算出手段におい
て、現画像データ出力手段から出力された現画像ブロッ
クの画素データと参照画像データ記憶手段から出力され
第1の画素データ転送保持手段に保持されたサーチウィ
ンドウ内の各候補ブロックの画素データとに基づいて、
前記現画像ブロックと前記サーチウィンドウの複数の候
補ブロックとの間のディストーションをそれぞれ算出
し、さらに、ディストーション算出手段が、第3の画素
データ転送保持手段から前記第1の画素データ転送保持
手段に戻された(M−1)列分の画素データを用いて、
前記現画像ブロックとは異なる現画像ブロックに対応す
るディストーションを算出することができる。
Therefore, at the time of the second distortion calculation, the pixel data of the search window can be read at a high speed and the distortion can be calculated continuously, and the speed of the motion vector search processing can be increased. Claim 16
According to the invention described above, in the distortion calculating means, the pixel data of the current image block output from the current image data output means and the search window output from the reference image data storage means and held by the first pixel data transfer holding means Based on the pixel data of each candidate block in
Calculating a distortion between the current image block and the plurality of candidate blocks in the search window; and further calculating a distortion from the third pixel data transfer holding unit to the first pixel data transfer holding unit. Using the (M-1) columns of pixel data thus obtained,
Distortion corresponding to a current image block different from the current image block can be calculated.

【0316】このため、2回目のディストーション算出
時にサーチウィンドウの画素データを高速に読み込みデ
ィストーションを算出することができ、動きベクトル探
索処理を高速化することができる。請求項17記載の発
明によれば、請求項16に記載の発明において、サーチ
ウィンドウ内の画素データを行方向の一方側に転送させ
ながらディストーションを算出し、(M−1)列分の第
3レジスタの画素データと探索領域の1列目の画素列に
対応する第1および第2レジスタに保持されていた画素
データを、前記行方向の他方側に戻すよう転送させ、さ
らに、これらM列分の画素データがディストーション算
出開始時の位置に復帰したとき、前記入力画素データの
転送方向を再度前記行方向の一方側に切り換えて、前記
現画像ブロックとは異なる現画像ブロックに対応するデ
ィストーションを算出することができる。
Therefore, at the time of the second distortion calculation, the pixel data of the search window can be read at high speed to calculate the distortion, and the speed of the motion vector search processing can be increased. According to the seventeenth aspect, in the invention according to the sixteenth aspect, the distortion is calculated while transferring the pixel data in the search window to one side in the row direction, and the third (M-1) columns are calculated. The pixel data in the register and the pixel data held in the first and second registers corresponding to the first pixel column in the search area are transferred back to the other side in the row direction. When the pixel data has returned to the position at the start of the distortion calculation, the transfer direction of the input pixel data is switched again to one side in the row direction to calculate a distortion corresponding to a current image block different from the current image block. can do.

【0317】このため、転送方向を切り換えることで高
速にディストーションを算出することができ、容易に動
きベクトル探索処理を高速化することができる。請求項
18記載の発明によれば、ディストーション算出手段に
おいて、現画像データ出力手段から出力された現画像ブ
ロックの画素データと参照画像データ記憶手段から出力
され第1の画素データ転送保持手段に保持されたサーチ
ウィンドウ内の各候補ブロックの画素データとに基づい
て、前記現画像ブロックと前記サーチウィンドウの複数
の候補ブロックとの間のディストーションをそれぞれ算
出し、さらに、ディストーション算出手段が、第3の画
素データ転送保持手段から前記第1の画素データ転送保
持手段に戻されたM列分の画素データを用いて、前記現
画像ブロックとは異なる現画像ブロックに対応するディ
ストーションを算出することができる。
Therefore, the distortion can be calculated at high speed by switching the transfer direction, and the speed of the motion vector search process can be easily increased. According to the eighteenth aspect of the invention, in the distortion calculating means, the pixel data of the current image block output from the current image data output means and the output from the reference image data storage means are stored in the first pixel data transfer and holding means. Calculating a distortion between the current image block and a plurality of candidate blocks in the search window based on the pixel data of each candidate block in the search window. A distortion corresponding to a current image block different from the current image block can be calculated using the pixel data of M columns returned from the data transfer holding unit to the first pixel data transfer holding unit.

【0318】このため、2回目のディストーション算出
時にサーチウィンドウの画素データを高速に読み込みデ
ィストーションを算出することができ、動きベクトル探
索処理を高速化することができる。請求項19記載の発
明によれば、請求項17に記載の発明において、サーチ
ウィンドウ内の画素データを行方向の一方側に転送させ
ながらディストーションを算出し、M列分の第3レジス
タの画素データを、前記行方向の他方側に戻すよう転送
させ、さらに、これらM列分の画素データがディストー
ション算出開始時の位置に復帰したとき、前記入力画素
データの転送方向を再度前記行方向の一方側に切り換え
て、前記現画像ブロックとは異なる現画像ブロックに対
応するディストーションを算出することができる。
Therefore, at the time of the second distortion calculation, the pixel data of the search window can be read at high speed to calculate the distortion, and the speed of the motion vector search processing can be increased. According to a nineteenth aspect of the present invention, in the invention of the seventeenth aspect, the distortion is calculated while transferring the pixel data in the search window to one side in the row direction, and the pixel data of the third register for M columns is calculated. Is transferred to the other side in the row direction, and when the pixel data for these M columns returns to the position at the start of the distortion calculation, the transfer direction of the input pixel data is again changed to one side in the row direction. , The distortion corresponding to the current image block different from the current image block can be calculated.

【0319】このため、転送方向を切り換えることで高
速にディストーションを算出することができ、容易に動
きベクトル探索処理を高速化することができる。請求項
20記載の発明によれば、ディストーション算出手段に
おいて、現画像データ出力手段から出力された現画像ブ
ロックの画素データと高速転送記憶手段から出力され第
1の画素データ転送記憶手段に保持されたサーチウィン
ドウ内の各候補ブロックの画素データとに基づいて、前
記現画像ブロックと前記サーチウィンドウの複数の候補
ブロックとの間のディストーションをそれぞれ算出し、
さらに、ディストーション算出手段が、第3の画素デー
タ転送保持手段から前記第1の画素データ転送保持手段
に戻された画素データと、前記高速転送記憶手段から前
記第1の画素データ転送保持手段に再度入力された画素
データとを用いて、前記現画像ブロックとは異なる現画
像ブロックに対応するディストーションを算出すること
ができる。
Therefore, the distortion can be calculated at high speed by switching the transfer direction, and the speed of the motion vector search process can be easily increased. According to the twentieth aspect, in the distortion calculator, the pixel data of the current image block output from the current image data output unit and the pixel data output from the high-speed transfer storage unit and held in the first pixel data transfer storage unit. Based on the pixel data of each candidate block in the search window, calculate the distortion between the current image block and a plurality of candidate blocks in the search window, respectively.
Further, the distortion calculating means re-stores the pixel data returned from the third pixel data transfer holding means to the first pixel data transfer holding means and the pixel data transferred from the high speed transfer storage means to the first pixel data transfer holding means. Using the input pixel data, a distortion corresponding to a current image block different from the current image block can be calculated.

【0320】このため、サーチウィンドウの画素データ
を高速に読み込みディストーションを算出することがで
き、動きベクトル探索処理を高速化することができる。
請求項21記載の発明によれば、請求項20に記載の発
明において、第1および第2の画素データ転送保持手段
にサーチウィンドウの画素データが供給される間に、参
照画像データ記憶手段から前記高速転送記憶手段に画素
データを転送させることができる。このため、参照画像
データ記憶手段からの転送速度に制限されることなく、
高速で画素データを転送することができ、動きベクトル
探索処理を高速化することができる。
[0320] Therefore, the pixel data of the search window can be read at high speed to calculate the distortion, and the motion vector search processing can be sped up.
According to the twenty-first aspect, in the twenty-second aspect, the reference image data storage unit supplies the pixel data of the search window to the first and second pixel data transfer holding units while the pixel data is supplied to the first and second pixel data transfer holding units. Pixel data can be transferred to the high-speed transfer storage means. Therefore, without being limited by the transfer speed from the reference image data storage means,
Pixel data can be transferred at high speed, and the motion vector search processing can be speeded up.

【0321】請求項22記載の発明によれば、請求項1
6〜21の何れかに記載の発明において、第3の画素デ
ータ転送保持手段が、ディストーション算出開始時の画
素データの位置を保って、第1および第2の画素データ
転送保持手段に画素データを入出力することができる。
このため、第1および第2の画素データ転送保持手段に
画素データが戻された状態のままディストーション算出
を開始することができ、次のディストーション算出を容
易にかつ速やかに行なうことができる。
According to the twenty-second aspect, the first aspect is provided.
In the invention according to any one of 6 to 21, the third pixel data transfer holding unit stores the pixel data at the start of the distortion calculation, and stores the pixel data in the first and second pixel data transfer holding units. Can input and output.
For this reason, the distortion calculation can be started with the pixel data returned to the first and second pixel data transfer holding units, and the next distortion calculation can be performed easily and promptly.

【0322】請求項23記載の発明によれば、請求項1
6〜22の何れかに記載の発明において、ディストーシ
ョン算出手段が、第1レジスタと共に複数の演算器を構
成することができ、二次元的に配列することができる。
このため、ディストーション算出手段と第1レジスタと
の同期がとりやすく、高速処理を安定させることができ
る。また、配列がしやすく、回路設計が容易にできる。
According to the invention of claim 23, claim 1
In the invention according to any one of Items 6 to 22, the distortion calculating means can form a plurality of arithmetic units together with the first register, and can be arranged two-dimensionally.
For this reason, it is easy to synchronize the distortion calculating means with the first register, and high-speed processing can be stabilized. Further, the arrangement is easy, and the circuit design is easy.

【0323】請求項24記載の発明によれば、請求項1
6〜23の何れかに記載の発明において、第1レジスタ
と第2レジスタとのデータの授受を各列の1行目と(H
−N+1)行目の第1レジスタによって行なうことがで
きる。このため、列方向に順序良くサーチウィンドウの
画素データを入力することができ、データ入力を容易に
行なうことができる。
According to the twenty-fourth aspect, the first aspect is provided.
In the invention described in any one of 6 to 23, data transmission / reception between the first register and the second register is performed in the first row of each column and (H
-N + 1) can be performed by the first register in the row. Therefore, pixel data of the search window can be input in order in the column direction, and data input can be easily performed.

【0324】請求項25記載の発明によれば、請求項2
4に記載の発明において、第2レジスタを各列(L−M
+1)個づつ設けてディストーションの算出を行なうこ
とができる。このため、最小限のレジスタによってディ
ストーションの算出ができ、部品点数の削減ができる。
請求項26記載の発明によれば、請求項24に記載の発
明において、各列の第2レジスタが、1行目の第1レジ
スタに授受される(L−M+1)個の画素データと、
(H−N+1)行目の第1レジスタに授受される(L−
M+1)個の画素データをそれぞれ保持することができ
る。このため、各列の第1レジスタから入出力される画
素データは、1行目の第1レジスタに授受される画素デ
ータと、(H−N+1)行目の第1レジスタに授受され
る画素データをそれぞれ別に転送することができ、第1
レジスタと第2レジスタとの画素データの受け渡しが容
易にできる。
According to the invention of claim 25, claim 2
In the invention described in Item 4, the second register is stored in each column (L-M
+1) Distortion can be calculated by providing each of them. Therefore, distortion can be calculated with a minimum number of registers, and the number of components can be reduced.
According to the twenty-sixth aspect of the present invention, in the twenty-sixth aspect, the second register in each column is (L−M + 1) pixel data transferred to and from the first register in the first row;
Transferred to the first register in the (H-N + 1) th row (L-N + 1)
M + 1) pieces of pixel data can be held respectively. For this reason, pixel data input / output from the first register of each column includes pixel data transmitted / received to the first register in the first row and pixel data transmitted / received to / from the first register in the (H-N + 1) th row. Can be transferred separately, and the first
Pixel data can be easily transferred between the register and the second register.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明に係わる動きベクトル探索装置の第1実
施例の機能ブロック図である。
FIG. 1 is a functional block diagram of a first embodiment of a motion vector search device according to the present invention.

【図2】本発明に係わる動きベクトル探索装置の第1実
施例の構成例を示す図である。
FIG. 2 is a diagram showing a configuration example of a first embodiment of a motion vector search device according to the present invention.

【図3】現画像ブロックのサーチウインドウにおける一
対応例を示す図である。
FIG. 3 is a diagram showing a corresponding example of a search window of a current image block.

【図4】図1に示された動きベクトル探索装置の信号出
力ユニットにおける各手段に対する信号経路を示す図で
ある。
FIG. 4 is a diagram showing a signal path for each means in a signal output unit of the motion vector search device shown in FIG. 1;

【図5】図4に示された信号出力ユニットから出力され
る各信号のタイムチャートである。
FIG. 5 is a time chart of each signal output from the signal output unit shown in FIG. 4;

【図6】図4に示された信号出力ユニットから出力され
る各信号のタイムチャートである。
FIG. 6 is a time chart of each signal output from the signal output unit shown in FIG. 4;

【図7】図4に示された信号出力ユニットから出力され
る各信号のタイムチャートである。
FIG. 7 is a time chart of each signal output from the signal output unit shown in FIG. 4;

【図8】図4に示された信号出力ユニットから出力され
る各信号のタイムチャートである。
FIG. 8 is a time chart of each signal output from the signal output unit shown in FIG. 4;

【図9】図4に示された信号出力ユニットから出力され
る各信号のタイムチャートである。
FIG. 9 is a time chart of each signal output from the signal output unit shown in FIG. 4;

【図10】図4に示された信号出力ユニットから出力さ
れる各信号のタイムチャートである。
FIG. 10 is a time chart of each signal output from the signal output unit shown in FIG. 4;

【図11】図2に示された各プロセッサエレエントの入
出力端子の配置を示す図である。
FIG. 11 is a diagram showing an arrangement of input / output terminals of each processor element shown in FIG. 2;

【図12】図2に示された各プロセッサエレメントの詳
細な回路図である。
FIG. 12 is a detailed circuit diagram of each processor element shown in FIG. 2;

【図13】図2に示された入力レジスタの入出力端子の
配置および詳細な回路図を示す図である。
13 is a diagram showing an arrangement of input / output terminals of the input register shown in FIG. 2 and a detailed circuit diagram.

【図14】図2に示された垂直サイドレジスタの入出力
端子の配置を示す図である。
FIG. 14 is a diagram showing an arrangement of input / output terminals of the vertical side register shown in FIG. 2;

【図15】図2に示された垂直サイドレジスタの詳細な
回路図である。
FIG. 15 is a detailed circuit diagram of the vertical side register shown in FIG. 2;

【図16】図2に示された水平サイドレジスタの入出力
端子の配置を示す図である。
16 is a diagram showing an arrangement of input / output terminals of the horizontal side register shown in FIG. 2;

【図17】図2に示された水平サイドレジスタの詳細な
回路図である。
FIG. 17 is a detailed circuit diagram of the horizontal side register shown in FIG. 2;

【図18】図2に示された各レジスタの配置図を示す図
である。
18 is a diagram showing an arrangement diagram of each register shown in FIG. 2;

【図19】図1に示された現画像ブロックデータ出力手
段の詳細な回路図である。
19 is a detailed circuit diagram of a current image block data output unit shown in FIG.

【図20】図1に示された類似ブロック特定手段の詳細
な回路図である。
FIG. 20 is a detailed circuit diagram of a similar block specifying unit shown in FIG. 1;

【図21】図20に示されたセレクタ付きフリップフロ
ップの詳細な回路図である。
21 is a detailed circuit diagram of the flip-flop with a selector shown in FIG.

【図22】図5〜図10に示されたクロックパルス信号
CK1の1パルス目におけるサーチウインドウの画素デ
ータの各レジスタにおけるデータ転送位置を示す図であ
る。
FIG. 22 is a diagram showing a data transfer position in each register of pixel data of a search window at the first pulse of the clock pulse signal CK1 shown in FIGS. 5 to 10;

【図23】図5〜図10に示されたクロックパルス信号
CK1の2パルス目におけるサーチウインドウの画素デ
ータの各レジスタにおけるデータ転送位置を示す図であ
る。
FIG. 23 is a diagram showing a data transfer position in each register of pixel data of a search window in the second pulse of the clock pulse signal CK1 shown in FIGS. 5 to 10;

【図24】図5〜図10に示されたクロックパルス信号
CK1の3パルス目におけるサーチウインドウの画素デ
ータの各レジスタにおけるデータ転送位置を示す図であ
る。
24 is a diagram showing a data transfer position in each register of pixel data of a search window at a third pulse of the clock pulse signal CK1 shown in FIGS. 5 to 10;

【図25】図5〜図10に示されたクロックパルス信号
CK1の4パルス目におけるサーチウインドウの画素デ
ータの各レジスタにおけるデータ転送位置を示す図であ
る。
FIG. 25 is a diagram showing a data transfer position in each register of pixel data of a search window at the fourth pulse of the clock pulse signal CK1 shown in FIGS. 5 to 10;

【図26】図5〜図10に示されたクロックパルス信号
CK1の5パルス目におけるサーチウインドウの画素デ
ータの各レジスタにおけるデータ転送位置を示す図であ
る。
26 is a diagram showing a data transfer position in each register of pixel data of a search window at the fifth pulse of the clock pulse signal CK1 shown in FIGS.

【図27】図5〜図10に示されたクロックパルス信号
CK1の6パルス目におけるサーチウインドウの画素デ
ータの各レジスタにおけるデータ転送位置を示す図であ
る。
FIG. 27 is a diagram showing a data transfer position in each register of pixel data of a search window at the sixth pulse of the clock pulse signal CK1 shown in FIGS. 5 to 10;

【図28】図5〜図10に示されたクロックパルス信号
CK1の7パルス目におけるサーチウインドウの画素デ
ータの各レジスタにおけるデータ転送位置、および、現
画像ブロック画素データの現画像ブロックデータ出力手
段内の各フリップフロップにおけるデータ位置を示す図
である。
FIG. 28 shows a data transfer position in each register of pixel data of a search window at the seventh pulse of the clock pulse signal CK1 shown in FIGS. FIG. 3 is a diagram showing a data position in each flip-flop of FIG.

【図29】図5〜図10に示されたクロックパルス信号
CK1の8パルス目におけるサーチウインドウの画素デ
ータの各レジスタにおけるデータ転送位置、および、現
画像ブロック画素データの現画像ブロックデータ出力手
段内の各フリップフロップにおけるデータ位置を示す図
である。
FIG. 29 shows a data transfer position in each register of pixel data of a search window at the eighth pulse of the clock pulse signal CK1 shown in FIGS. FIG. 6 is a diagram showing a data position in each flip-flop of FIG.

【図30】図5〜図10に示されたクロックパルス信号
CK1の9パルス目におけるサーチウインドウの画素デ
ータの各レジスタにおけるデータ転送位置、および、現
画像ブロック画素データの現画像ブロックデータ出力手
段内の各フリップフロップにおけるデータ位置を示す図
である。
FIG. 30 shows a data transfer position in each register of pixel data of a search window at the ninth pulse of the clock pulse signal CK1 shown in FIGS. FIG. 3 is a diagram showing a data position in each flip-flop of FIG.

【図31】図5〜図10に示されたクロックパルス信号
CK1の10パルス目におけるサーチウインドウの画素
データの各レジスタにおけるデータ転送位置、および、
現画像ブロック画素データの現画像ブロックデータ出力
手段内の各フリップフロップにおけるデータ位置を示す
図である。
FIG. 31 shows a data transfer position in each register of pixel data of a search window at the tenth pulse of the clock pulse signal CK1 shown in FIGS. 5 to 10, and
FIG. 9 is a diagram showing a data position of each flip-flop in a current image block data output unit of current image block pixel data.

【図32】図5〜図10に示されたクロックパルス信号
CK1の11パルス目におけるサーチウインドウの画素
データの各レジスタにおけるデータ転送位置、および、
現画像ブロック画素データの現画像ブロックデータ出力
手段内の各フリップフロップにおけるデータ位置を示す
図である。
FIG. 32 shows a data transfer position in each register of pixel data of a search window at the eleventh pulse of the clock pulse signal CK1 shown in FIGS.
FIG. 9 is a diagram showing a data position of each flip-flop in a current image block data output unit of current image block pixel data.

【図33】図5〜図10に示されたクロックパルス信号
CK1の16パルス目におけるサーチウインドウの画素
データの各レジスタにおけるデータ転送位置、および、
現画像ブロック画素データの現画像ブロックデータ出力
手段内の各フリップフロップにおけるデータ位置を示す
図である。
33 shows a data transfer position in each register of pixel data of a search window at the 16th pulse of the clock pulse signal CK1 shown in FIGS. 5 to 10, and
FIG. 9 is a diagram showing a data position of each flip-flop in a current image block data output unit of current image block pixel data.

【図34】図5〜図10に示されたクロックパルス信号
CK1の17パルス目におけるサーチウインドウの画素
データの各レジスタにおけるデータ転送位置、および、
現画像ブロック画素データの現画像ブロックデータ出力
手段内の各フリップフロップにおけるデータ位置を示す
図である。
34 shows a data transfer position in each register of pixel data of a search window at the 17th pulse of the clock pulse signal CK1 shown in FIGS. 5 to 10, and
FIG. 9 is a diagram showing a data position of each flip-flop in a current image block data output unit of current image block pixel data.

【図35】図5〜図10に示されたクロックパルス信号
CK1の18パルス目におけるサーチウインドウの画素
データの各レジスタにおけるデータ転送位置、および、
現画像ブロック画素データの現画像ブロックデータ出力
手段内の各フリップフロップにおけるデータ位置を示す
図である。
35 shows a data transfer position in each register of pixel data of a search window at the 18th pulse of the clock pulse signal CK1 shown in FIGS. 5 to 10, and
FIG. 9 is a diagram showing a data position of each flip-flop in a current image block data output unit of current image block pixel data.

【図36】図5〜図10に示されたクロックパルス信号
CK1の19パルス目におけるサーチウインドウの画素
データの各レジスタにおけるデータ転送位置、および、
現画像ブロック画素データの現画像ブロックデータ出力
手段内の各フリップフロップにおけるデータ位置を示す
図である。
36 shows a data transfer position in each register of pixel data of a search window at the 19th pulse of the clock pulse signal CK1 shown in FIGS. 5 to 10, and
FIG. 9 is a diagram showing a data position of each flip-flop in a current image block data output unit of current image block pixel data.

【図37】図5〜図10に示されたクロックパルス信号
CK1の20パルス目におけるサーチウインドウの画素
データの各レジスタにおけるデータ転送位置、および、
現画像ブロック画素データの現画像ブロックデータ出力
手段内の各フリップフロップにおけるデータ位置を示す
図である。
FIG. 37 shows a data transfer position in each register of pixel data of a search window at the 20th pulse of the clock pulse signal CK1 shown in FIGS. 5 to 10, and
FIG. 9 is a diagram showing a data position of each flip-flop in a current image block data output unit of current image block pixel data.

【図38】図5〜図10に示されたクロックパルス信号
CK1の21パルス目におけるサーチウインドウの画素
データの各レジスタにおけるデータ転送位置、および、
現画像ブロック画素データの現画像ブロックデータ出力
手段内の各フリップフロップにおけるデータ位置を示す
図である。
38 shows a data transfer position in each register of pixel data of a search window at the 21st pulse of the clock pulse signal CK1 shown in FIGS. 5 to 10, and
FIG. 9 is a diagram showing a data position of each flip-flop in a current image block data output unit of current image block pixel data.

【図39】M画素分だけ列方向にずれた現画像ブロック
とサーチウインドウの対応関係をを示す図である。
FIG. 39 is a diagram showing the correspondence between a current image block shifted in the column direction by M pixels and a search window.

【図40】第2実施例におけるパイプライン処理の工程
を示す図である
FIG. 40 is a diagram showing a pipeline processing step in the second embodiment.

【図41】本発明に係わる動きベクトル探索装置の第3
実施例の機能ブロック図である。
FIG. 41 shows a third example of the motion vector search device according to the present invention.
It is a functional block diagram of an example.

【図42】本発明に係わる動きベクトル探索装置の第4
実施例の構成例を示す図である。
FIG. 42 shows a fourth example of the motion vector search device according to the present invention.
It is a figure showing the example of composition of an example.

【図43】第4実施例におけるパイプライン処理の工程
を示す図である
FIG. 43 is a diagram showing a step of the pipeline processing in the fourth embodiment.

【図44】本発明に係わる動きベクトル探索装置の第5
実施例の構成例を示す図である。
FIG. 44 shows a fifth example of the motion vector search device according to the present invention.
It is a figure showing the example of composition of an example.

【図45】従来の単純フレーム間予測を説明する図であ
る。
FIG. 45 is a view for explaining conventional simple inter-frame prediction.

【図46】従来の動き補償フレーム間予測を説明する図
である。
FIG. 46 is a diagram for explaining conventional motion compensation inter-frame prediction.

【図47】従来の現符号化ブロックとサーチウインドウ
を説明する図である。
FIG. 47 is a diagram illustrating a conventional current coded block and a search window.

【図48】従来の現符号化ブロックと探索領域を説明す
る図である。
FIG. 48 is a diagram illustrating a conventional current coded block and a search area.

【図49】従来の現符号化ブロック内の画素と候補ブロ
ック内の画素との位置関係を説明する図である。
FIG. 49 is a diagram illustrating a conventional positional relationship between pixels in a current coding block and pixels in a candidate block.

【図50】従来のディストーション算出方法とサーチウ
インドウデータの転送過程を説明する図である
FIG. 50 is a diagram illustrating a conventional distortion calculation method and a search window data transfer process.

【図51】従来のディストーション算出方法とサーチウ
インドウデータの転送過程を説明する図である
FIG. 51 is a diagram illustrating a conventional distortion calculation method and a transfer process of search window data.

【符号の説明】[Explanation of symbols]

10 人物像 20,21 有意画素領域 100,101 現画像 110 現画像ブロック,第1現画像ブロック 120 第2現画像ブロック 130 第3現画像ブロック 170 現符号化ブロック 200,201 前符号化画像 210 サーチウインドウ,第1サーチウインドウ 220 第2サーチウインドウ 230 第3サーチウインドウ 270 サーチウィンドウ 310,320,330 候補ブロック 370 候補ブロック 1000 現画像データ出力手段 1110,1120,1130,1140,1210,
1230,1250 フリップフロップ 1220,1240 セレクタ 2000 参照画像データ記憶手段 3001 第1の画素データ転送保持手段 3002 第2の画素データ転送保持手段 3100 画素データ入力転送ユニット 3110 セレクタ 3120 フリップフロップ 3220 フリップフロップ 3310 セレクタ 3320 フリップフロップ 3410 セレクタ 3420 フリップフロップ 4000 第3の画素データ転送保持手段 5000 ディストーション算出手段 5200 ディストーション算出ユニット 5210 減算器 5220 正数変換器 5230 加算器 5240 フリップフロップ 5250 反転器 5260 論理積演算器 5300 ディストーション出力転送ユニット 5310 セレクタ 5320 フリップフロップ 6000 類似ブロック特定手段 6100 最小ディストーション検出ユニット 6110 比較器 6120 比較器 6130 セレクタ 6140 フリップフロップ 6150 論理和演算器 6180 セレクタ付きフリップフロップ 6200 動きベクトル垂直成分検出ユニット 6220 セレクタ 6230 フリップフロップ 6240 換算テーブル 6280 セレクタ付きフリップフロップ 6300 動きベクトル水平成分検出ユニット 6310 カウンタ 6320 セレクタ 6330 フリップフロップ 6340 換算テーブル 6380 セレクタ付きフリップフロップ 7000 高速転送記憶手段 8000 信号出力ユニット 8001 ウィンドウデータ転送制御手段 8002 排出データ保持制御手段 8003 戻しデータ転送制御手段 9110 セレクタ 9120 フリップフロップ
10 Human image 20, 21 Significant pixel area 100, 101 Current image 110 Current image block, first current image block 120 Second current image block 130 Third current image block 170 Current coded block 200, 201 Pre-coded image 210 Search Window, first search window 220 second search window 230 third search window 270 search window 310, 320, 330 candidate block 370 candidate block 1000 current image data output means 1110, 1120, 1130, 1140, 1210,
1230, 1250 Flip-flops 1220, 1240 Selector 2000 Reference image data storage means 3001 First pixel data transfer and holding means 3002 Second pixel data transfer and holding means 3100 Pixel data input transfer unit 3110 Selector 3120 Flip-flop 3220 Flip-flop 3310 Selector 3320 Flip-flop 3410 Selector 3420 Flip-flop 4000 Third pixel data transfer holding unit 5000 Distortion calculating unit 5200 Distortion calculating unit 5210 Subtractor 5220 Positive number converter 5230 Adder 5240 Flip-flop 5250 Inverter 5260 Logical product operator 5300 Distortion output transfer Unit 5310 Selector 5320 Flip-flop 60 0 Similar block specifying means 6100 Minimum distortion detection unit 6110 Comparator 6120 Comparator 6130 Selector 6140 Flip-flop 6150 OR operation unit 6180 Flip-flop with selector 6200 Motion vector vertical component detection unit 6220 selector 6230 Flip-flop 6240 Conversion table 6280 Flip-flop with selector 6300 Motion vector horizontal component detection unit 6310 Counter 6320 Selector 6330 Flip-flop 6340 Conversion table 6380 Flip-flop with selector 7000 High-speed transfer storage unit 8000 Signal output unit 8001 Window data transfer control unit 8002 Ejection data holding control unit 8003 Return data transfer control unit 9110 Select 9120 flip-flop

Claims (26)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】動画像を部分的に構成する現画像を前記動
画像を部分的に構成する参照画像に基づいて予測するの
に用いられる動きベクトルを探索する方法であり、前記
現画像が画素データを有する複数行複数列の画素により
表わされる複数の現画像ブロックを含み、前記参照画像
がそれぞれ画素データを有する前記現画像ブロックと同
一サイズの複数の候補ブロックを含み、前記現画像ブロ
ック毎に、前記複数の候補ブロックのうち該現画像ブロ
ックに類似する何れか1つの候補ブロックのブロック位
置と該現画像ブロックのブロック位置とによって、前記
動きベクトルを特定する動きベクトル探索方法であっ
て、 前記複数の現画像ブロックの画素データと、それぞれ前
記参照画像の複数の候補ブロックのうち少なくとも2つ
の候補ブロックを含む複数のサーチウィンドウの画素デ
ータと、を準備する工程と、 前記サーチウィンドウおよび前記現画像ブロックのサイ
ズに応じた探索領域を形成し該探索領域内に前記サーチ
ウィンドウ内の各候補ブロックの画素データの一部を入
力して保持するとともに該保持した画素データを前記探
索領域の所定方向に転送する第1の画素データ転送保持
手段と、前記第1の画素データ転送保持手段との間で画
素データを授受し前記第1の画素データ転送保持手段と
共に前記サーチウィンドウの画素データを前記探索領域
を通る所定の転送経路に沿って転送する第2の画素デー
タ転送保持手段と、前記転送経路に沿って転送される画
素データの一部を前記第1および第2の画素データ転送
保持手段から入力し出力する第3の画素データ転送保持
手段と、をそれぞれ準備する工程と、 前記サーチウィンドウの画素データを前記第1および第
2の画素データ転送保持手段に入力するとともに、前記
第1および第2の画素データ転送保持手段により前記サ
ーチウィンドウの画素データを前記転送経路に沿って転
送するウィンドウデータ転送工程と、 前記現画像ブロックの画素データと前記第1の画素デー
タ転送保持手段に保持された画素データとに基づいて、
前記現画像ブロックの各々に対し、前記現画像ブロック
と前記複数の候補ブロックとの間の画像の差を表わす複
数のディストーションをそれぞれ算出する第1のディス
トーション算出工程と、 前記現画像ブロックの各々に対し算出された複数のディ
ストーションの値のうち最小値を検出して、前記類似す
る1つの候補ブロックを特定する類似ブロック特定工程
と、を含み、 さらに、 前記第1および第2の画素データ転送保持手段に入力さ
れた前記サーチウィンドウの画素データのうち一部の画
素データを前記第1および第2の画素データ転送保持手
段から排出しつつ前記第3の画素データ転送保持手段に
保持させる排出データ保持工程と、 前記第3の画素データ転送保持手段に保持された画素デ
ータを前記第3の画素データ転送保持手段から前記第1
および第2の画素データ転送保持手段に戻す画素データ
戻し工程と、 該画素データ戻し工程により前記第1および第2の画素
データ転送保持手段に戻された画素データを用いて、前
記現画像ブロックとは異なる現画像ブロックに対応する
ディストーション算出を開始する第2のディストーショ
ン算出工程と、を有することを特徴とする動きベクトル
探索方法。
1. A method for searching for a motion vector used to predict a current image partially forming a moving image based on a reference image partially forming the moving image, wherein the current image is a pixel. Including a plurality of current image blocks represented by pixels in a plurality of rows and columns having data, the reference image includes a plurality of candidate blocks of the same size as the current image block each having pixel data, for each current image block A motion vector search method for identifying the motion vector by a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block; Pixel data of a plurality of current image blocks and at least two candidate blocks of the plurality of candidate blocks of the reference image, respectively Preparing pixel data of a plurality of search windows, including: a search area corresponding to the size of the search window and the current image block, and a pixel of each candidate block in the search window in the search area. A first pixel data transfer and holding unit for inputting and holding a part of the data and transferring the held pixel data in a predetermined direction of the search area; Second pixel data transfer and holding means for transmitting and receiving data and transferring the pixel data of the search window along with the first pixel data transfer and holding means along a predetermined transfer path passing through the search area; Pixel data transfer and holding means for inputting and outputting a part of pixel data transferred from the first and second pixel data transfer and holding means Preparing the search window, and inputting the pixel data of the search window to the first and second pixel data transfer and holding means, and the first and second pixel data transfer and holding means provide the search window. A window data transfer step of transferring pixel data along the transfer path, based on the pixel data of the current image block and the pixel data held in the first pixel data transfer holding unit,
For each of the current image blocks, a first distortion calculation step of respectively calculating a plurality of distortions representing an image difference between the current image block and the plurality of candidate blocks, A similar block specifying step of detecting a minimum value among the plurality of calculated distortion values and specifying the similar one candidate block, further comprising the first and second pixel data transfer holding. Discharging data holding for causing the third pixel data transfer holding unit to hold some of the pixel data of the search window input to the unit while discharging the pixel data from the first and second pixel data transfer holding units And storing the pixel data held in the third pixel data transfer holding unit in the third pixel data transfer holding unit. Said the first
And a pixel data return step of returning to the second pixel data transfer / holding means; and using the pixel data returned to the first and second pixel data transfer / holding means in the pixel data return step, the current image block A second distortion calculation step of starting a distortion calculation corresponding to a different current image block.
【請求項2】動画像を部分的に構成する現画像を前記動
画像を部分的に構成する参照画像に基づいて予測するの
に用いられる動きベクトルを探索する方法であり、前記
現画像が画素データを有する複数行複数列の画素により
表わされる複数の現画像ブロックを含み、前記参照画像
がそれぞれ画素データを有する前記現画像ブロックと同
一サイズの複数の候補ブロックを含み、前記現画像ブロ
ック毎に、前記複数の候補ブロックのうち該現画像ブロ
ックに類似する何れか1つの候補ブロックのブロック位
置と該現画像ブロックのブロック位置とによって、前記
動きベクトルを特定する動きベクトル探索方法であっ
て、 前記複数の現画像ブロックの画素データと、それぞれ前
記参照画像の複数の候補ブロックのうち少なくとも2つ
の候補ブロックを含む複数のサーチウィンドウの画素デ
ータと、を準備する工程と、 前記サーチウィンドウおよび前記現画像ブロックのサイ
ズに応じた探索領域を形成し該探索領域内に前記サーチ
ウィンドウ内の各候補ブロックの画素データの一部を入
力して保持するとともに該保持した画素データを前記探
索領域の所定方向に転送する第1の画素データ転送保持
手段と、前記第1の画素データ転送保持手段との間で画
素データを授受し前記第1の画素データ転送保持手段と
共に前記サーチウィンドウの画素データを前記探索領域
を通る所定の転送経路に沿って転送する第2の画素デー
タ転送保持手段と、前記転送経路に沿って転送される画
素データの一部を前記第1および第2の画素データ転送
保持手段から入力し出力する第3の画素データ転送保持
手段と、をそれぞれ準備する工程と、 前記サーチウィンドウの画素データを前記第1および第
2の画素データ転送保持手段に入力するとともに、前記
第1および第2の画素データ転送保持手段により前記サ
ーチウィンドウの画素データを前記転送経路に沿って転
送するウィンドウデータ転送工程と、 前記現画像ブロックの画素データと前記第1の画素デー
タ転送保持手段に保持された画素データとに基づいて、
前記現画像ブロックの各々に対し、前記現画像ブロック
と前記複数の候補ブロックとの間の画像の差を表わす複
数のディストーションをそれぞれ算出する第1のディス
トーション算出工程と、 前記現画像ブロックの各々に対し算出された複数のディ
ストーションの値のうち最小値を検出して、前記類似す
る1つの候補ブロックを特定する類似ブロック特定工程
と、を含み、 さらに、 前記第1および第2の画素データ転送保持手段に入力さ
れた前記サーチウィンドウの画素データのうち一部の画
素データを前記第1および第2の画素データ転送保持手
段から排出しつつ前記第3の画素データ転送保持手段に
保持させる排出データ保持工程と、 前記第3の画素データ転送保持手段に保持された画素デ
ータを前記第3の画素データ転送保持手段から前記第1
および第2の画素データ転送保持手段に戻す画素データ
戻し工程と、 該画素データ戻し工程と同時に、前記第1および第2の
画素データ転送保持手段に戻された画素データを用い
て、前記現画像ブロックとは異なる現画像ブロックに対
応するディストーションをそれぞれ算出する第2のディ
ストーション算出工程と、を有することを特徴とする動
きベクトル探索方法。
2. A method for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image, wherein the current image is a pixel. Including a plurality of current image blocks represented by pixels in a plurality of rows and columns having data, the reference image includes a plurality of candidate blocks of the same size as the current image block each having pixel data, for each current image block A motion vector search method for identifying the motion vector by a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block, Pixel data of a plurality of current image blocks and at least two candidate blocks of the plurality of candidate blocks of the reference image, respectively Preparing pixel data of a plurality of search windows, including: a search area corresponding to the size of the search window and the current image block, and a pixel of each candidate block in the search window in the search area. A first pixel data transfer and holding unit for inputting and holding a part of the data and transferring the held pixel data in a predetermined direction of the search area; Second pixel data transfer and holding means for transmitting and receiving data and transferring the pixel data of the search window along with the first pixel data transfer and holding means along a predetermined transfer path passing through the search area; Pixel data transfer and holding means for inputting and outputting a part of pixel data transferred from the first and second pixel data transfer and holding means Preparing the search window, and inputting the pixel data of the search window to the first and second pixel data transfer and holding means, and the first and second pixel data transfer and holding means provide the search window. A window data transfer step of transferring pixel data along the transfer path, based on the pixel data of the current image block and the pixel data held in the first pixel data transfer holding unit,
For each of the current image blocks, a first distortion calculation step of respectively calculating a plurality of distortions representing an image difference between the current image block and the plurality of candidate blocks, A similar block specifying step of detecting a minimum value among the plurality of calculated distortion values and specifying the similar one candidate block, further comprising the first and second pixel data transfer holding. Discharging data holding for causing the third pixel data transfer holding unit to hold some of the pixel data of the search window input to the unit while discharging the pixel data from the first and second pixel data transfer holding units And storing the pixel data held in the third pixel data transfer holding unit in the third pixel data transfer holding unit. Said the first
And a pixel data return step of returning to the second pixel data transfer / holding means, and simultaneously with the pixel data return step, using the pixel data returned to the first and second pixel data transfer / holding means, A second distortion calculating step of calculating distortion corresponding to a current image block different from the block, respectively.
【請求項3】動画像を部分的に構成する現画像を前記動
画像を部分的に構成する参照画像に基づいて予測するの
に用いられる動きベクトルを探索する方法であり、N,
Mをそれぞれ整数とするとき、前記現画像が画素データ
を有するN行M列の画素により表わされる複数の現画像
ブロックを含み、前記参照画像がそれぞれ画素データを
有する前記現画像ブロックと同一サイズの複数の候補ブ
ロックを含み、前記現画像ブロック毎に、前記複数の候
補ブロックのうち該現画像ブロックに類似する何れか1
つの候補ブロックのブロック位置と該現画像ブロックの
ブロック位置とによって、前記動きベクトルを特定する
動きベクトル探索方法であって、 前記複数の現画像ブロックの画素データと、H,Lをそ
れぞれ整数とするとき、それぞれ前記参照画像の複数の
候補ブロックのうち少なくとも2つの候補ブロックを含
むH行L列の画素により表わされる複数のサーチウィン
ドウの画素データと、を準備する工程と、 前記サーチウィンドウおよび前記現画像ブロックのサイ
ズに応じた(H−N+1)行(L−M+1)列の探索領
域を形成し該探索領域内に前記サーチウィンドウ内の各
候補ブロックの画素データの一部を入力して保持すると
ともに該保持した画素データを前記探索領域の所定方向
に転送する(H−N+1)×(L−M+1)個の第1レ
ジスタを有する第1の画素データ転送保持手段と、前記
第1の画素データ転送保持手段との間で画素データを授
受する複数の第2レジスタを有し前記第1の画素データ
転送保持手段と共に前記サーチウィンドウの画素データ
を前記探索領域を通る所定の転送経路に沿って転送する
第2の画素データ転送保持手段と、前記転送経路に沿っ
て転送される画素データの一部を前記第1および第2の
画素データ転送保持手段から入力し出力する(M−1)
×H個の第3レジスタを有する第3の画素データ転送保
持手段と、をそれぞれ準備する工程と、 前記サーチウィンドウの画素データを前記第1および第
2の画素データ転送保持手段に入力するとともに、前記
第1および第2の画素データ転送保持手段により前記サ
ーチウィンドウの画素データを前記転送経路に沿って転
送するウィンドウデータ転送工程と、 前記現画像ブロックの画素データと前記第1の画素デー
タ転送保持手段に保持された画素データとに基づいて、
前記現画像ブロックの各々に対し、前記現画像ブロック
と前記複数の候補ブロックとの間の画像の差を表わす複
数のディストーションをそれぞれ算出する第1のディス
トーション算出工程と、 前記現画像ブロックの各々に対し算出された複数のディ
ストーションの値のうち最小値を検出して、前記類似す
る1つの候補ブロックを特定する類似ブロック特定工程
と、を含み、 さらに、 前記第1および第2の画素データ転送保持手段に入力さ
れた前記サーチウィンドウの画素データのうち転送方向
下流側の(M−1)列分の画素データを前記第1および
第2の画素データ転送保持手段から排出しつつ前記第3
の画素データ転送保持手段に保持させる排出データ保持
工程と、 前記第3の画素データ転送保持手段に保持された画素デ
ータを前記第3の画素データ転送保持手段から前記第1
および第2の画素データ転送保持手段に戻す画素データ
戻し工程と、 該画素データ戻し工程により前記第1および第2の画素
データ転送保持手段に戻された画素データを用いて、前
記現画像ブロックとは異なる現画像ブロックに対応する
ディストーション算出を開始する第2のディストーショ
ン算出工程と、を有することを特徴とする動きベクトル
探索方法。
3. A method for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image, wherein N,
When M is an integer, the current image includes a plurality of current image blocks represented by N rows and M columns of pixels having pixel data, and the reference image has the same size as the current image block having pixel data. A plurality of candidate blocks, each one of the plurality of candidate blocks being similar to the current image block among the plurality of candidate blocks;
A motion vector search method for specifying the motion vector based on a block position of one candidate block and a block position of the current image block, wherein pixel data of the plurality of current image blocks and H and L are integers, respectively. And preparing pixel data of a plurality of search windows represented by pixels in H rows and L columns each including at least two candidate blocks of the plurality of candidate blocks of the reference image; and A search area of (H−N + 1) rows (LM−M + 1) columns corresponding to the size of the image block is formed, and a part of the pixel data of each candidate block in the search window is input and held in the search area And (H−N + 1) × (L−M + 1) first pixels that transfer the held pixel data in a predetermined direction of the search area. A first pixel data transfer holding unit having a register, and a plurality of second registers for transmitting and receiving pixel data between the first pixel data transfer holding unit; A second pixel data transfer holding unit that transfers pixel data of a search window along a predetermined transfer path passing through the search area; and a part of the pixel data transferred along the transfer path is divided into the first and second pixel data. (M-1)
XH third pixel data transfer and holding means having third registers, respectively; and inputting the pixel data of the search window to the first and second pixel data transfer and holding means. A window data transfer step of transferring the pixel data of the search window along the transfer path by the first and second pixel data transfer holding units; and a transfer and holding of the pixel data of the current image block and the first pixel data. Based on the pixel data held by the means,
For each of the current image blocks, a first distortion calculation step of respectively calculating a plurality of distortions representing an image difference between the current image block and the plurality of candidate blocks, A similar block specifying step of detecting a minimum value among the calculated plurality of distortion values and specifying the similar one candidate block; and further comprising the first and second pixel data transfer holding. The pixel data of (M-1) columns on the downstream side in the transfer direction among the pixel data of the search window input to the means are discharged from the first and second pixel data transfer holding means while the third data is being discharged.
A discharge data holding step of holding the pixel data by the third pixel data transfer holding unit from the third pixel data transfer holding unit by the first pixel data transfer holding unit;
And a pixel data return step of returning to the second pixel data transfer / holding means; and using the pixel data returned to the first and second pixel data transfer / holding means in the pixel data return step, the current image block A second distortion calculation step of starting a distortion calculation corresponding to a different current image block.
【請求項4】前記排出データ保持工程において、前記第
1および第2レジスタに入力された画素データのうち前
記転送方向最下流の1列分の画素データを前記(M−
1)×H個のうちH個の第3レジスタに保持させるとと
もに該H個の第3レジスタから残りの第3レジスタに画
素データを転送するステップを(M−1)回繰り返し、 前記画素データ戻し工程において、前記(M−1)×H
個のうちH個の第3レジスタから前記第1および第2レ
ジスタに画素データを転送するとともに残りの第3レジ
スタに保持された画素データを該H個の第3レジスタに
転送するステップを(M−1)回繰り返し、 前記第3レジスタに入力された(M−1)列分の画素デ
ータを再度第1および第2レジスタに戻すのと同時に、
前記第3レジスタに前記(M−1)列分の画素データが
入力されたとき前記探索領域の1列目に対応する第1お
よび第2レジスタに保持されていた画素データを前記探
索領域のM列目の画素列に対応する第1および第2レジ
スタに転送して、 前記探索領域内に前記第1のディストーション算出工程
の開始時と同じ画素データを配置した後、 前記第2のディストーション算出工程を実行することを
特徴とする請求項3に記載の動きベクトル探索方法。
4. In the discharge data holding step, pixel data of one column at the most downstream in the transfer direction among the pixel data input to the first and second registers is stored in the (M-
1) repeating the step of holding the pixel data in the H third registers among the × H registers and transferring the pixel data from the H third registers to the remaining third registers (M−1) times; In the step, (M-1) × H
Transferring pixel data from the H third registers to the first and second registers and transferring the pixel data held in the remaining third registers to the H third registers (M -1) times, and the pixel data of (M-1) columns input to the third register is returned to the first and second registers again.
When the (M-1) th column of pixel data is input to the third register, the pixel data held in the first and second registers corresponding to the first column of the search area is replaced by the M of the search area. After transferring the pixel data to the first and second registers corresponding to the pixel columns of the column and arranging the same pixel data in the search area as at the start of the first distortion calculation step, the second distortion calculation step 4. The method according to claim 3, wherein
【請求項5】動画像を部分的に構成する現画像を前記動
画像を部分的に構成する参照画像に基づいて予測するの
に用いられる動きベクトルを探索する方法であり、N,
Mをそれぞれ整数とするとき、前記現画像が画素データ
を有するN行M列の画素により表わされる複数の現画像
ブロックを含み、前記参照画像がそれぞれ画素データを
有する前記現画像ブロックと同一サイズの複数の候補ブ
ロックを含み、前記現画像ブロック毎に、前記複数の候
補ブロックのうち該現画像ブロックに類似する何れか1
つの候補ブロックのブロック位置と該現画像ブロックの
ブロック位置とによって、前記動きベクトルを特定する
動きベクトル探索方法であって、 前記複数の現画像ブロックの画素データと、H,Lをそ
れぞれ整数とするとき、それぞれ前記参照画像の複数の
候補ブロックのうち少なくとも2つの候補ブロックを含
むH行L列の画素により表わされる複数のサーチウィン
ドウの画素データと、を準備する工程と、 前記サーチウィンドウおよび前記現画像ブロックのサイ
ズに応じた(H−N+1)行(L−M+1)列の探索領
域を形成し該探索領域内に前記サーチウィンドウ内の各
候補ブロックの画素データの一部を入力して保持すると
ともに該保持した画素データを前記探索領域の所定方向
に転送する(H−N+1)×(L−M+1)個の第1レ
ジスタを有する第1の画素データ転送保持手段と、前記
第1の画素データ転送保持手段との間で画素データを授
受する複数の第2レジスタを有し前記第1の画素データ
転送保持手段と共に前記サーチウィンドウの画素データ
を前記探索領域を通る所定の転送経路に沿って転送する
第2の画素データ転送保持手段と、前記転送経路に沿っ
て転送される画素データの一部を前記第1および第2の
画素データ転送保持手段から入力し出力するM×H個の
第3レジスタを有する第3の画素データ転送保持手段
と、をそれぞれ準備する工程と、 前記サーチウィンドウの画素データを前記第1および第
2の画素データ転送保持手段に入力するとともに、前記
第1および第2の画素データ転送保持手段により前記サ
ーチウィンドウの画素データを前記転送経路に沿って転
送するウィンドウデータ転送工程と、 前記現画像ブロックの画素データと前記第1の画素デー
タ転送保持手段に保持された画素データとに基づいて、
前記現画像ブロックの各々に対し、前記現画像ブロック
と前記複数の候補ブロックとの間の画像の差を表わす複
数のディストーションをそれぞれ算出する第1のディス
トーション算出工程と、 前記現画像ブロックの各々に対し算出された複数のディ
ストーションの値のうち最小値を検出して、前記類似す
る1つの候補ブロックを特定する類似ブロック特定工程
と、を含み、 さらに、 前記第1および第2の画素データ転送保持手段に入力さ
れた前記サーチウィンドウの画素データのうち転送方向
下流側のM列分の画素データを前記第1および第2の画
素データ転送保持手段から排出しつつ前記第3の画素デ
ータ転送保持手段に保持させる排出データ保持工程と、 前記第3の画素データ転送保持手段に保持された画素デ
ータを前記第3の画素データ転送保持手段から前記第1
および第2の画素データ転送保持手段に戻す画素データ
戻し工程と、 該画素データ戻し工程により前記第1および第2の画素
データ転送保持手段に戻された画素データを用いて、前
記現画像ブロックとは異なる現画像ブロックに対応する
ディストーション算出を開始する第2のディストーショ
ン算出工程と、を有することを特徴とする動きベクトル
探索方法。
5. A method for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image.
When M is an integer, the current image includes a plurality of current image blocks represented by N rows and M columns of pixels having pixel data, and the reference image has the same size as the current image block having pixel data. A plurality of candidate blocks, each one of the plurality of candidate blocks being similar to the current image block among the plurality of candidate blocks;
A motion vector search method for specifying the motion vector based on a block position of one candidate block and a block position of the current image block, wherein pixel data of the plurality of current image blocks and H and L are integers, respectively. And preparing pixel data of a plurality of search windows represented by pixels in H rows and L columns each including at least two candidate blocks of the plurality of candidate blocks of the reference image; and A search area of (H−N + 1) rows (LM−M + 1) columns corresponding to the size of the image block is formed, and a part of the pixel data of each candidate block in the search window is input and held in the search area And (H−N + 1) × (L−M + 1) first pixels that transfer the held pixel data in a predetermined direction of the search area. A first pixel data transfer holding unit having a register, and a plurality of second registers for transmitting and receiving pixel data between the first pixel data transfer holding unit; A second pixel data transfer holding unit that transfers pixel data of a search window along a predetermined transfer path passing through the search area; and a part of the pixel data transferred along the transfer path is divided into the first and second pixel data. And a third pixel data transfer and holding unit having M × H third registers input and output from the two pixel data transfer and holding units, respectively. The pixel data of the search window is input to the second pixel data transfer holding unit, and the first and second pixel data transfer holding units transfer the pixel data of the search window. A window data transfer step of transferring along the road, on the basis of the pixel data held in the pixel data and the first pixel data transfer holding means of the current image block,
For each of the current image blocks, a first distortion calculation step of respectively calculating a plurality of distortions representing an image difference between the current image block and the plurality of candidate blocks, A similar block specifying step of detecting a minimum value among the plurality of calculated distortion values and specifying the similar one candidate block, further comprising the first and second pixel data transfer holding. The third pixel data transfer holding unit while discharging the M columns of pixel data on the downstream side in the transfer direction from the pixel data of the search window input to the unit from the first and second pixel data transfer holding units And a discharge data holding step of holding the pixel data held in the third pixel data transfer holding means in the third pixel data. From the data transfer holding means.
And a pixel data return step of returning to the second pixel data transfer / holding means; and using the pixel data returned to the first and second pixel data transfer / holding means in the pixel data return step, the current image block A second distortion calculation step of starting a distortion calculation corresponding to a different current image block.
【請求項6】前記排出データ保持工程において、前記第
1および第2レジスタに入力された画素データのうち前
記転送方向最下流の1列分の画素データを前記M×H個
のうちH個の第3レジスタに保持させるとともに該H個
の第3レジスタから残りの第3レジスタに画素データを
転送するステップをM回繰り返し、 前記画素データ戻し工程において、前記M×H個のうち
H個の第3レジスタから前記第1および第2レジスタに
画素データを転送するとともに残りの第3レジスタに保
持された画素データを前記H個の第3レジスタに転送す
るステップをM回繰り返して、 前記探索領域内に前記第1のディストーション算出工程
の開始時と同じ画素データを配置した後、 前記第2のディストーション算出工程を実行することを
特徴とする請求項5に記載の動きベクトル探索方法。
6. The discharging data holding step, wherein the pixel data of one column at the most downstream in the transfer direction among the pixel data input to the first and second registers is replaced with H of the M × H pixels. The step of causing the third register to hold the pixel data and transferring the pixel data from the H third registers to the remaining third registers is repeated M times. Transferring the pixel data from the third register to the first and second registers and transferring the pixel data held in the remaining third registers to the H third registers M times; 6. After arranging the same pixel data as at the start of the first distortion calculation step, the second distortion calculation step is executed. 4. The motion vector search method according to 1.
【請求項7】動画像を部分的に構成する現画像を前記動
画像を部分的に構成する参照画像に基づいて予測するの
に用いられる動きベクトルを探索する方法であり、前記
現画像が画素データを有する複数行複数列の画素により
表わされる複数の現画像ブロックを含み、前記参照画像
がそれぞれ画素データを有する前記現画像ブロックと同
一サイズの複数の候補ブロックを含み、前記現画像ブロ
ック毎に、前記複数の候補ブロックのうち該現画像ブロ
ックに類似する何れか1つの候補ブロックのブロック位
置と該現画像ブロックのブロック位置とによって、前記
動きベクトルを特定する動きベクトル探索方法であっ
て、 前記複数の現画像ブロックの画素データと、それぞれ前
記参照画像の複数の候補ブロックのうち少なくとも2つ
の候補ブロックを含む複数のサーチウィンドウの画素デ
ータと、を準備する工程と、 前記サーチウィンドウの画素データを記憶し出力する参
照画像データ記憶手段と、前記サーチウィンドウおよび
前記現画像ブロックのサイズに応じた探索領域を形成し
該探索領域内に前記サーチウィンドウ内の各候補ブロッ
クの画素データの一部を入力して保持するとともに該保
持した画素データを前記探索領域の所定方向に転送する
第1の画素データ転送保持手段と、前記第1の画素デー
タ転送保持手段との間で画素データを授受し前記第1の
画素データ転送保持手段と共に前記サーチウィンドウの
画素データを前記探索領域を通る所定の転送経路に沿っ
て転送する第2の画素データ転送保持手段と、前記転送
経路に沿って転送される画素データの一部を前記第1お
よび第2の画素データ転送保持手段から入力し出力する
第3の画素データ転送保持手段と、前記参照画像データ
記憶手段から前記複数のうち何れかのサーチウィンドウ
の画素データを取り込んで記憶するとともに記憶済のサ
ーチウィンドウの画素データを前記参照画像データ記憶
手段からのデータ転送速度より大きい転送速度で前記第
1および第2の画素データ転送保持手段に供給する高速
転送記憶手段と、をそれぞれ準備する工程と、 前記サーチウィンドウの画素データを、前記複数のうち
何れかのサーチウィンドウの一部の画素データを含む所
定画素領域分ずつ前記参照画像データ記憶手段から読み
出して前記高速転送記憶手段に記憶させるウィンドウデ
ータ読み出し工程と、 前記高速転送記憶手段に記憶されたサーチウィンドウの
画素データを前記第1および第2の画素データ転送保持
手段に入力する第1のウィンドウデータ入力工程と、 前記第1および第2の画素データ転送保持手段により前
記サーチウィンドウの画素データを前記転送経路に沿っ
て転送するウィンドウデータ転送工程と、 前記現画像ブロックの画素データと前記第1の画素デー
タ転送保持手段に保持された画素データとに基づいて、
前記現画像ブロックの各々に対し、前記現画像ブロック
と前記複数の候補ブロックとの間の画像の差を表わす複
数のディストーションをそれぞれ算出する第1のディス
トーション算出工程と、 前記現画像ブロックの各々に対し算出された複数のディ
ストーションの値のうち最小値を検出して、前記類似す
る1つの候補ブロックを特定する類似ブロック特定工程
と、を含み、 さらに、 前記第1および第2の画素データ転送保持手段に入力さ
れた前記サーチウィンドウの画素データのうち一部の画
素データを前記第1および第2の画素データ転送保持手
段から排出しつつ前記第3の画素データ転送保持手段に
保持させる排出データ保持工程と、 前記第3の画素データ転送保持手段に保持された画素デ
ータを前記第3の画素データ転送保持手段から前記第1
および第2の画素データ転送保持手段に戻す画素データ
戻し工程と、 該画素データ戻し工程により前記第1および第2の画素
データ転送保持手段に戻された画素データを用いて、前
記現画像ブロックとは異なる現画像ブロックに対応する
ディストーション算出を開始する第2のディストーショ
ン算出工程と、 前記ウィンドウデータ読み出し工程で読み出され前記高
速転送記憶手段に記憶されている前記所定画素領域分の
画素データのうち、前記第2のディストーション算出工
程の開始時に前記探索領域内に戻された画素データに続
く転送順序の画素データを、前記高速転送記憶手段から
前記第1および第2の画素データ転送保持手段に入力さ
せる第2のウィンドウデータ入力工程と、を有すること
を特徴とする動きベクトル探索方法。
7. A method for searching for a motion vector used to predict a current image partially forming a moving image based on a reference image partially forming the moving image, wherein the current image is a pixel. Including a plurality of current image blocks represented by pixels in a plurality of rows and columns having data, the reference image includes a plurality of candidate blocks of the same size as the current image block each having pixel data, for each current image block A motion vector search method for identifying the motion vector by a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block; Pixel data of a plurality of current image blocks and at least two candidate blocks of the plurality of candidate blocks of the reference image, respectively Preparing pixel data of a plurality of search windows including: a reference image data storage unit for storing and outputting the pixel data of the search window; and a search area corresponding to the size of the search window and the current image block. A first pixel data transfer for inputting and holding a part of the pixel data of each candidate block in the search window in the search area, and transferring the held pixel data in a predetermined direction of the search area. A pixel data is exchanged between the holding unit and the first pixel data transfer holding unit, and the pixel data of the search window is transmitted along with the first pixel data transfer holding unit along a predetermined transfer path passing through the search area. A second pixel data transfer holding unit for transferring a part of the pixel data transferred along the transfer path to the first and second pixel data. A third pixel data transfer and holding unit which inputs and outputs the second pixel data from the second pixel data transfer and holding unit, and stores and stores pixel data of any one of the plurality of search windows from the reference image data storage unit Providing high-speed transfer storage means for supplying pixel data of the search window to the first and second pixel data transfer holding means at a transfer rate higher than the data transfer rate from the reference image data storage means. Window data to be read out from the reference image data storage means and stored in the high-speed transfer storage means by a predetermined pixel area including pixel data of a part of any one of the plurality of search windows from the plurality of search windows; A reading step; and a pixel data of a search window stored in the high-speed transfer storage means. A first window data inputting step of inputting a pixel data of the search window to the transfer path by the first and second pixel data transfer holding means. Window data transfer step of transferring the pixel data of the current image block and the pixel data held by the first pixel data transfer holding unit,
For each of the current image blocks, a first distortion calculation step of respectively calculating a plurality of distortions representing an image difference between the current image block and the plurality of candidate blocks, A similar block specifying step of detecting a minimum value among the plurality of calculated distortion values and specifying the similar one candidate block, further comprising the first and second pixel data transfer holding. Discharging data holding for causing the third pixel data transfer holding unit to hold some of the pixel data of the search window input to the unit while discharging the pixel data from the first and second pixel data transfer holding units And storing the pixel data held in the third pixel data transfer holding unit in the third pixel data transfer holding unit. Said the first
And a pixel data return step of returning to the second pixel data transfer / holding means; and using the pixel data returned to the first and second pixel data transfer / holding means in the pixel data return step, the current image block A second distortion calculation step of starting a distortion calculation corresponding to a different current image block; and a pixel data of the predetermined pixel area read out in the window data reading step and stored in the high-speed transfer storage unit. Inputting pixel data in the transfer order following the pixel data returned into the search area at the start of the second distortion calculation step from the high-speed transfer storage unit to the first and second pixel data transfer holding units; And a second window data inputting step.
【請求項8】動画像を部分的に構成する現画像を前記動
画像を部分的に構成する参照画像に基づいて予測するの
に用いられる動きベクトルを探索する方法であり、N,
Mをそれぞれ整数とするとき、前記現画像が画素データ
を有するN行M列の画素により表わされる複数の現画像
ブロックを含み、前記参照画像がそれぞれ画素データを
有する前記現画像ブロックと同一サイズの複数の候補ブ
ロックを含み、前記現画像ブロック毎に、前記複数の候
補ブロックのうち該現画像ブロックに類似する何れか1
つの候補ブロックのブロック位置と該現画像ブロックの
ブロック位置とによって、前記動きベクトルを特定する
動きベクトル探索方法であって、 前記複数の現画像ブロックの画素データと、H,Lをそ
れぞれ整数とするとき、それぞれ前記参照画像の複数の
候補ブロックのうち少なくとも2つの候補ブロックを含
むH行L列の画素により表わされる複数のサーチウィン
ドウの画素データと、を準備する工程と、 前記サーチウィンドウの画素データを記憶し出力する参
照画像データ記憶手段と、前記サーチウィンドウおよび
前記現画像ブロックのサイズに応じた(H−N+1)行
(L−M+1)列の探索領域を形成し該探索領域内に前
記サーチウィンドウ内の各候補ブロックの画素データの
一部を入力して保持するとともに該保持した画素データ
を前記探索領域の所定方向に転送する(H−N+1)×
(L−M+1)個の第1レジスタを有する第1の画素デ
ータ転送保持手段と、前記第1の画素データ転送保持手
段との間で画素データを授受する複数の第2レジスタを
有し前記第1の画素データ転送保持手段と共に前記サー
チウィンドウの画素データを前記探索領域を通る所定の
転送経路に沿って転送する第2の画素データ転送保持手
段と、前記転送経路に沿って転送される画素データの一
部を前記第1および第2の画素データ転送保持手段から
入力し出力する(M−1)×H個又はM×H個の第3レ
ジスタを有する第3の画素データ転送保持手段と、前記
参照画像データ記憶手段から前記複数のうち何れかのサ
ーチウィンドウの画素データを取り込んで記憶するとと
もに記憶済のサーチウィンドウの画素データを前記参照
画像データ記憶手段からのデータ転送速度より大きい転
送速度で前記第1および第2の画素データ転送保持手段
に供給する高速転送記憶手段と、をそれぞれ準備する工
程と、 前記サーチウィンドウの画素データを、前記複数のうち
何れかのサーチウィンドウの一部の画素データを含む所
定画素領域分ずつ前記参照画像データ記憶手段から読み
出して前記高速転送記憶手段に記憶させるウィンドウデ
ータ読み出し工程と、 前記高速転送記憶手段に記憶されたサーチウィンドウの
画素データを前記第1および第2の画素データ転送保持
手段に入力する第1のウィンドウデータ入力工程と、 前記第1および第2の画素データ転送保持手段により前
記サーチウィンドウの画素データを前記転送経路に沿っ
て転送するウィンドウデータ転送工程と、 前記現画像ブロックの画素データと前記第1の画素デー
タ転送保持手段に保持された画素データとに基づいて、
前記現画像ブロックの各々に対し、前記現画像ブロック
と前記複数の候補ブロックとの間の画像の差を表わす複
数のディストーションをそれぞれ算出する第1のディス
トーション算出工程と、 前記現画像ブロックの各々に対し算出された複数のディ
ストーションの値のうち最小値を検出して、前記類似す
る1つの候補ブロックを特定する類似ブロック特定工程
と、を含み、 さらに、 前記第1および第2の画素データ転送保持手段に入力さ
れた前記サーチウィンドウの画素データのうち転送方向
下流側の(M−1)列又はM列分の画素データを前記第
1および第2の画素データ転送保持手段から排出しつつ
前記第3の画素データ転送保持手段に保持させる排出デ
ータ保持工程と、 前記第3の画素データ転送保持手段に保持された画素デ
ータを前記第3の画素データ転送保持手段から前記第1
および第2の画素データ転送保持手段に戻す画素データ
戻し工程と、 該画素データ戻し工程により前記第1および第2の画素
データ転送保持手段に戻された画素データを用いて、前
記現画像ブロックとは異なる現画像ブロックに対応する
ディストーション算出を開始する第2のディストーショ
ン算出工程と、 前記ウィンドウデータ読み出し工程で読み出され前記高
速転送記憶手段に記憶されている前記所定画素領域分の
画素データのうち、前記第2のディストーション算出工
程の開始時に前記探索領域内に戻された画素データに続
く転送順序の画素データを、前記高速転送記憶手段から
前記第1および第2の画素データ転送保持手段に入力さ
せる第2のウィンドウデータ入力工程と、を有すること
を特徴とする動きベクトル探索方法。
8. A method for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image, wherein N, N
When M is an integer, the current image includes a plurality of current image blocks represented by N rows and M columns of pixels having pixel data, and the reference image has the same size as the current image block having pixel data. A plurality of candidate blocks, each one of the plurality of candidate blocks being similar to the current image block among the plurality of candidate blocks;
A motion vector search method for specifying the motion vector based on a block position of one candidate block and a block position of the current image block, wherein pixel data of the plurality of current image blocks and H and L are integers, respectively. And preparing pixel data of a plurality of search windows represented by pixels in H rows and L columns including at least two candidate blocks among the plurality of candidate blocks of the reference image, respectively, And a reference image data storage means for storing and outputting a search area of (H-N + 1) rows and (L-M + 1) columns corresponding to the size of the search window and the current image block. A part of the pixel data of each candidate block in the window is inputted and held, and the held pixel data is input. Transferring data in a predetermined direction of the search region (H-N + 1) ×
A first pixel data transfer holding unit having (L−M + 1) first registers; and a plurality of second registers for transmitting and receiving pixel data between the first pixel data transfer holding unit. Second pixel data transfer holding means for transferring the pixel data of the search window along a predetermined transfer path through the search area together with one pixel data transfer holding means, and pixel data transferred along the transfer path A third pixel data transfer holding unit having (M-1) × H or M × H third registers for inputting and outputting a part of the pixel data from the first and second pixel data transfer holding units; The reference image data storage means captures and stores the pixel data of any one of the plurality of search windows from the reference image data storage means, and stores the stored pixel data of the search window in the reference image data storage means. Providing high-speed transfer storage means for supplying the first and second pixel data transfer holding means at a transfer rate greater than the data transfer rate from the storage device. A window data reading step of reading from the reference image data storage means by a predetermined pixel area including a part of the pixel data of any of the search windows and storing the read image data in the high-speed transfer storage means; A first window data inputting step of inputting pixel data of a search window to the first and second pixel data transfer and holding means; and a first window data inputting step of inputting pixel data of the search window by the first and second pixel data transfer and holding means. A window data transfer step of transferring along the transfer path; On the basis of the pixel data and the pixel data held in the first pixel data transfer holding unit,
For each of the current image blocks, a first distortion calculation step of respectively calculating a plurality of distortions representing an image difference between the current image block and the plurality of candidate blocks, A similar block specifying step of detecting a minimum value among the calculated plurality of distortion values and specifying the similar one candidate block; and further comprising the first and second pixel data transfer holding. The pixel data of (M-1) rows or M rows on the downstream side in the transfer direction among the pixel data of the search window input to the means are discharged from the first and second pixel data transfer holding means while discharging the pixel data. A discharge data holding step for holding the pixel data in the third pixel data transfer holding unit; The third pixel data transfer and holding means transmits the first
And a pixel data return step of returning to the second pixel data transfer / holding means; and using the pixel data returned to the first and second pixel data transfer / holding means in the pixel data return step, the current image block A second distortion calculation step of starting a distortion calculation corresponding to a different current image block; and a pixel data of the predetermined pixel area read out in the window data reading step and stored in the high-speed transfer storage unit. Inputting pixel data in the transfer order following the pixel data returned into the search area at the start of the second distortion calculation step from the high-speed transfer storage unit to the first and second pixel data transfer holding units; And a second window data inputting step.
【請求項9】前記画素データ戻し工程で前記第1および
第2の画素データ転送保持手段に画素データが戻され、
該画素データに続く転送順序の画素データが前記第2の
ウィンドウデータ入力工程で前記高速転送記憶手段から
前記第1および第2の画素データ転送保持手段に入力さ
れることにより、前記複数のうち何れかのサーチウィン
ドウの一部の画素データが前記探索領域に供給される間
に、 該一部の画素データと前記複数のうち何れかの現画像ブ
ロックの画素データとに基づいて、前記第2のディスト
ーション算出工程を実行するとともに、 前記何れかのサーチウィンドウの残部の画素データを前
記参照画像データ記憶手段から読み出して前記高速転送
記憶手段に記憶させるよう前記ウィンドウデータ読み出
し工程を開始することを特徴とする請求項7又は8に記
載の動きベクトル探索方法。
9. In the pixel data return step, pixel data is returned to the first and second pixel data transfer holding means,
Pixel data in the transfer order following the pixel data is input from the high-speed transfer storage unit to the first and second pixel data transfer holding units in the second window data input step, so that any one of the plurality of pixel data is transferred. While part of the pixel data of the search window is supplied to the search area, based on the part of the pixel data and the pixel data of any of the plurality of current image blocks, the second Executing a distortion calculation step, and starting the window data reading step to read out the remaining pixel data of any of the search windows from the reference image data storage means and store the pixel data in the high-speed transfer storage means. The motion vector search method according to claim 7 or 8, wherein
【請求項10】前記サーチウィンドウ内で隣り合う2つ
の画素列の画素データが互いに列方向で逆方向に転送さ
れるよう、前記第1レジスタおよび第2レジスタによ
り、前記探索領域内で入力画素データを列方向に往復移
動させながら行方向の一方側に転送させることを特徴と
する請求項3〜6および8の何れかに記載の動きベクト
ル探索方法。
10. The input pixel data in the search area by the first register and the second register so that pixel data of two adjacent pixel columns in the search window are transferred in mutually opposite column directions. 9. The motion vector search method according to claim 3, wherein the data is transferred to one side in the row direction while reciprocating in the column direction.
【請求項11】前記現画像ブロックおよび候補ブロック
がそれぞれ偶数の画素列を有することを特徴とする請求
項1〜4および7〜9の何れかに記載の動きベクトル探
索方法。
11. The motion vector search method according to claim 1, wherein each of the current image block and the candidate block has an even number of pixel columns.
【請求項12】前記現画像ブロックおよび候補ブロック
がそれぞれ奇数の画素列を有することを特徴とする請求
項1〜2および5〜9の何れかに記載の動きベクトル探
索方法。
12. The motion vector search method according to claim 1, wherein each of the current image block and the candidate block has an odd number of pixel columns.
【請求項13】前記探索領域内におけるディストーショ
ン算出開始時の画素データの位置を保って、前記第1お
よび第2の画素データ転送保持手段から第3の画素デー
タ転送保持手段に画素データを排出させ、かつ、前記第
3の画素データ転送保持手段から前記第1および第2の
画素データ転送保持手段に画素データを戻すよう出力さ
せることを特徴とする請求項1および3〜8の何れかに
記載の動きベクトル探索方法。
13. A pixel data is discharged from said first and second pixel data transfer and holding means to a third pixel data transfer and holding means while maintaining the position of pixel data at the start of distortion calculation within said search area. 9. The apparatus according to claim 1, wherein said third pixel data transfer holding means outputs pixel data to said first and second pixel data transfer holding means so as to return pixel data. Motion vector search method.
【請求項14】動画像を部分的に構成する現画像を前記
動画像を部分的に構成する参照画像に基づいて予測する
のに用いられる動きベクトルを探索する装置であり、前
記現画像が画素データを有する複数行複数列の画素によ
り表わされる複数の現画像ブロックを含み、前記参照画
像がそれぞれ画素データを有する前記現画像ブロックと
同一サイズの複数の候補ブロックを含み、前記現画像ブ
ロック毎に、前記複数の候補ブロックのうち該現画像ブ
ロックに類似する何れか1つの候補ブロックのブロック
位置と該現画像ブロックのブロック位置とによって、前
記動きベクトルを特定する動きベクトル探索装置であっ
て、 前記現画像ブロックの画素データを出力する現画像デー
タ出力手段と、 前記参照画像の画素データを記憶し、前記候補ブロック
をそれぞれ少なくとも2つ含んだ複数のサーチウィンド
ウの画素データを出力可能な参照画像データ記憶手段
と、 前記サーチウィンドウおよび前記現画像ブロックのサイ
ズに応じた探索領域を形成し、該探索領域内に前記サー
チウィンドウ内の各候補ブロックの画素データの一部を
入力して保持するとともに、該保持した画素データを前
記探索領域の所定方向に転送する第1の画素データ転送
保持手段と、 前記第1の画素データ転送保持手段との間で画素データ
を授受し、前記第1の画素データ転送保持手段と共に前
記サーチウィンドウの画素データを前記探索領域を通る
所定の転送経路に沿って転送する第2の画素データ転送
保持手段と、 前記転送経路に沿って転送された画素データの一部を前
記第1および第2の画素データ転送保持手段から入力
し、該入力した画素データを前記第1および第2の画素
データ転送保持手段に戻すよう出力する第3の画素デー
タ転送保持手段と、 前記サーチウィンドウの画素データを前記第1および第
2の画素データ転送保持手段に入力させるとともに、前
記第1および第2の画素データ転送保持手段により前記
サーチウィンドウの画素データを前記転送経路に沿って
転送させるウィンドウデータ転送制御手段と、 前記現画像データ出力手段から出力された現画像ブロッ
クの画素データと前記第1の画素データ転送保持手段に
保持された画素データとに基づいて、前記現画像ブロッ
クの各々に対し、前記現画像ブロックと前記複数の候補
ブロックとの間の画像の差を表わす複数のディストーシ
ョンをそれぞれ算出するディストーション算出手段と、 前記現画像ブロックの各々に対し算出された複数のディ
ストーションの値のうち最小値を検出して、前記類似す
る1つの候補ブロックを特定する類似ブロック特定手段
と、 前記第1および第2の画素データ転送保持手段により画
素データが転送されるとき、前記第1および第2の画素
データ転送保持手段に入力された画素データのうち前記
サーチウィンドウの1列目から所定列分だけ各列の画素
データを前記第1および第2の画素データ転送保持手段
から排出しつつ前記第3の画素データ転送保持手段に保
持させる排出データ保持制御手段と、 前記第3の画素データ転送保持手段に入力された各列の
画素データを前記第3の画素データ転送保持手段から排
出しつつ前記第1および第2の画素データ転送保持手段
に保持させる戻しデータ転送制御手段と、 を備え、 前記ディストーション算出手段が、前記第3の画素デー
タ転送保持手段から前記第1および第2の画素データ転
送保持手段に戻された画素データを用いて、前記現画像
ブロックとは異なる現画像ブロックに対応するディスト
ーション算出を行なうことを特徴とする動きベクトル探
索装置。
14. An apparatus for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image, wherein the current image is a pixel. Including a plurality of current image blocks represented by pixels in a plurality of rows and columns having data, the reference image includes a plurality of candidate blocks of the same size as the current image block each having pixel data, for each current image block A motion vector search device that specifies the motion vector by a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block; A current image data output unit that outputs pixel data of a current image block; and stores the pixel data of the reference image. Reference image data storage means capable of outputting pixel data of a plurality of search windows each including at least two blocks, and a search area corresponding to the size of the search window and the current image block is formed; First pixel data transfer and holding means for inputting and holding a part of the pixel data of each candidate block in the search window, and transferring the held pixel data in a predetermined direction of the search area; A second pixel data transfer / transfer unit that transmits and receives pixel data to and from the pixel data transfer holding unit, and transfers pixel data of the search window along a predetermined transfer path passing through the search area together with the first pixel data transfer holding unit. Pixel data transfer holding means, and a part of the pixel data transferred along the transfer path, the first and second pixel data transfer holding Third pixel data transfer and holding means for inputting the pixel data from the means and outputting the input pixel data to the first and second pixel data transfer and holding means; and outputting the pixel data of the search window to the first and second pixel data. Window data transfer control means for inputting the pixel data of the search window along the transfer path by the first and second pixel data transfer holding means, On the basis of the pixel data of the current image block output from the data output means and the pixel data held by the first pixel data transfer holding means, the current image block and the plurality Calculation for calculating a plurality of distortions each representing an image difference between the candidate blocks And a similar block identification unit that detects a minimum value among a plurality of distortion values calculated for each of the current image blocks and identifies the one similar candidate block; and the first and second blocks. When the pixel data is transferred by the pixel data transfer and holding unit, the pixel data input to the first and second pixel data transfer and holding units is shifted from the first column of the search window by a predetermined column in each column. Discharge data holding control means for discharging pixel data from the first and second pixel data transfer / holding means and holding the pixel data in the third pixel data transfer / holding means; and input to the third pixel data transfer / holding means. Return data that is stored in the first and second pixel data transfer holding units while discharging the pixel data of each column from the third pixel data transfer holding unit. Wherein the distortion calculating means uses the pixel data returned from the third pixel data transfer holding means to the first and second pixel data transfer holding means to generate the current image. A motion vector search device for performing a distortion calculation corresponding to a current image block different from a block.
【請求項15】動画像を部分的に構成する現画像を前記
動画像を部分的に構成する参照画像に基づいて予測する
のに用いられる動きベクトルを探索する装置であり、前
記現画像が画素データを有する複数行複数列の画素によ
り表わされる複数の現画像ブロックを含み、前記参照画
像がそれぞれ画素データを有する前記現画像ブロックと
同一サイズの複数の候補ブロックを含み、前記現画像ブ
ロック毎に、前記複数の候補ブロックのうち該現画像ブ
ロックに類似する何れか1つの候補ブロックのブロック
位置と該現画像ブロックのブロック位置とによって、前
記動きベクトルを特定する動きベクトル探索装置であっ
て、 前記現画像ブロックの画素データを出力する現画像デー
タ出力手段と、 前記参照画像の画素データを記憶し、前記候補ブロック
をそれぞれ少なくとも2つ含んだ複数のサーチウィンド
ウの画素データを出力可能な参照画像データ記憶手段
と、 前記サーチウィンドウおよび前記現画像ブロックのサイ
ズに応じた探索領域を形成し、該探索領域内に前記サー
チウィンドウ内の各候補ブロックの画素データの一部を
入力して保持するとともに、該保持した画素データを前
記探索領域の所定方向に転送する第1の画素データ転送
保持手段と、 前記第1の画素データ転送保持手段との間で画素データ
を授受し、前記第1の画素データ転送保持手段と共に前
記サーチウィンドウの画素データを前記探索領域を通る
所定の転送経路に沿って転送する第2の画素データ転送
保持手段と、 前記転送経路に沿って転送された画素データの一部を前
記第1および第2の画素データ転送保持手段から入力
し、該入力した画素データを前記第1および第2の画素
データ転送保持手段に戻すよう出力する第3の画素デー
タ転送保持手段と、 前記サーチウィンドウの画素データを前記第1および第
2の画素データ転送保持手段に入力させるとともに、前
記第1および第2の画素データ転送保持手段により前記
サーチウィンドウの画素データを前記転送経路に沿って
転送させるウィンドウデータ転送制御手段と、 前記現画像データ出力手段から出力された現画像ブロッ
クの画素データと前記第1の画素データ転送保持手段に
保持された画素データとに基づいて、前記現画像ブロッ
クの各々に対し、前記現画像ブロックと前記複数の候補
ブロックとの間の画像の差を表わす複数のディストーシ
ョンをそれぞれ算出するディストーション算出手段と、 前記現画像ブロックの各々に対し算出された複数のディ
ストーションの値のうち最小値を検出して、前記類似す
る1つの候補ブロックを特定する類似ブロック特定手段
と、 前記第1および第2の画素データ転送保持手段により画
素データが転送されるとき、前記第1および第2の画素
データ転送保持手段に入力された画素データのうち前記
サーチウィンドウの1列目から所定列分だけ各列の画素
データを前記第1および第2の画素データ転送保持手段
から排出しつつ前記第3の画素データ転送保持手段に保
持させる排出データ保持制御手段と、 前記第3の画素データ転送保持手段に入力された各列の
画素データを前記第3の画素データ転送保持手段から排
出しつつ前記第1および第2の画素データ転送保持手段
に保持させる戻しデータ転送制御手段と、 を備え、 前記ディストーション算出手段が、前記戻しデータ転送
制御手段による画素データの転送と同時に、前記第3の
画素データ転送保持手段から前記第1および第2の画素
データ転送保持手段に戻された画素データを用いて、前
記現画像ブロックとは異なる現画像ブロックに対応する
ディストーション算出を行なうことを特徴とする動きベ
クトル探索装置。
15. An apparatus for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image, wherein the current image is a pixel. Including a plurality of current image blocks represented by pixels in a plurality of rows and columns having data, the reference image includes a plurality of candidate blocks of the same size as the current image block each having pixel data, for each current image block A motion vector search device that specifies the motion vector by a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block; A current image data output unit that outputs pixel data of a current image block; and stores the pixel data of the reference image. Reference image data storage means capable of outputting pixel data of a plurality of search windows each including at least two blocks, and a search area corresponding to the size of the search window and the current image block is formed; First pixel data transfer and holding means for inputting and holding a part of the pixel data of each candidate block in the search window, and transferring the held pixel data in a predetermined direction of the search area; A second pixel data transfer / transfer unit that transmits and receives pixel data to and from the pixel data transfer holding unit, and transfers pixel data of the search window along a predetermined transfer path passing through the search area together with the first pixel data transfer holding unit. Pixel data transfer holding means, and a part of the pixel data transferred along the transfer path, the first and second pixel data transfer holding Third pixel data transfer and holding means for inputting the pixel data from the means and outputting the input pixel data to the first and second pixel data transfer and holding means; and outputting the pixel data of the search window to the first and second pixel data. Window data transfer control means for inputting the pixel data of the search window along the transfer path by the first and second pixel data transfer holding means, On the basis of the pixel data of the current image block output from the data output means and the pixel data held by the first pixel data transfer holding means, the current image block and the plurality Calculation for calculating a plurality of distortions each representing an image difference between the candidate blocks And a similar block identification unit that detects a minimum value among a plurality of distortion values calculated for each of the current image blocks and identifies the one similar candidate block; and the first and second blocks. When the pixel data is transferred by the pixel data transfer and holding unit, the pixel data input to the first and second pixel data transfer and holding units is shifted from the first column of the search window by a predetermined column in each column. Discharge data holding control means for discharging pixel data from the first and second pixel data transfer / holding means and holding the pixel data in the third pixel data transfer / holding means; and input to the third pixel data transfer / holding means. Return data that is stored in the first and second pixel data transfer holding units while discharging the pixel data of each column from the third pixel data transfer holding unit. Transfer control means, wherein the distortion calculating means simultaneously transfers the pixel data by the return data transfer control means and simultaneously holds the first and second pixel data from the third pixel data transfer holding means. A motion vector search device, wherein a distortion calculation corresponding to a current image block different from the current image block is performed using the pixel data returned to the means.
【請求項16】動画像を部分的に構成する現画像を前記
動画像を部分的に構成する参照画像に基づいて予測する
のに用いられる動きベクトルを探索する装置であり、
N,Mをそれぞれ整数とするとき、前記現画像が画素デ
ータを有するN行M列の画素により表わされる複数の現
画像ブロックを含み、前記参照画像がそれぞれ画素デー
タを有する前記現画像ブロックと同一サイズの複数の候
補ブロックを含み、前記現画像ブロック毎に、前記複数
の候補ブロックのうち該現画像ブロックに類似する何れ
か1つの候補ブロックのブロック位置と該現画像ブロッ
クのブロック位置とによって、前記動きベクトルを特定
する動きベクトル探索装置であって、 前記現画像ブロックの画素データを出力する現画像デー
タ出力手段と、 前記参照画像の画素データを記憶し、H,Lをそれぞれ
整数とするとき、前記候補ブロックをそれぞれ少なくと
も2つ含んだH行L列の画素により表わされる複数のサ
ーチウィンドウの画素データを出力可能な参照画像デー
タ記憶手段と、 前記サーチウィンドウおよび前記現画像ブロックのサイ
ズに応じた(H−N+1)行(L−M+1)列の探索領
域を形成し、該探索領域内に前記サーチウィンドウ内の
各候補ブロックの画素データの一部を入力して保持する
とともに、該保持した画素データを前記探索領域の所定
方向に転送する(H−N+1)×(L−M+1)個の第
1レジスタを有する第1の画素データ転送保持手段と、 前記第1の画素データ転送保持手段の第1レジスタとの
間で画素データを授受する複数の第2レジスタを有し、
前記第1の画素データ転送保持手段と共に前記サーチウ
ィンドウの画素データを前記探索領域を通る所定の転送
経路に沿って転送する第2の画素データ転送保持手段
と、 前記転送経路に沿って転送された画素データの一部を前
記第1および第2の画素データ転送保持手段から入力
し、該入力した画素データを前記第1および第2の画素
データ転送保持手段に戻すよう出力する(M−1)×H
個の第3レジスタを有する第3の画素データ転送保持手
段と、 前記サーチウィンドウの画素データを前記第1および第
2の画素データ転送保持手段に入力させるとともに、前
記第1および第2の画素データ転送保持手段により前記
サーチウィンドウの画素データを前記転送経路に沿って
転送させるウィンドウデータ転送制御手段と、 前記現画像データ出力手段から出力された現画像ブロッ
クの画素データと前記第1の画素データ転送保持手段に
保持された画素データとに基づいて、前記現画像ブロッ
クの各々に対し、前記現画像ブロックと前記複数の候補
ブロックとの間の画像の差を表わす複数のディストーシ
ョンをそれぞれ算出するディストーション算出手段と、 前記現画像ブロックの各々に対し算出された複数のディ
ストーションの値のうち最小値を検出して、前記類似す
る1つの候補ブロックを特定する類似ブロック特定手段
と、 前記第1および第2の画素データ転送保持手段により画
素データが転送されるとき、前記第1および第2の画素
データ転送保持手段に入力された画素データのうち前記
サーチウィンドウの1列目から(M−1)列目までの各
列の画素データを前記第1および第2の画素データ転送
保持手段から排出しつつ前記第3の画素データ転送保持
手段に保持させる排出データ保持制御手段と、 前記第3の画素データ転送保持手段により前記第1およ
び第2の画素データ転送保持手段に画素データが転送さ
れるとき、前記第3の画素データ転送保持手段に入力さ
れた画素データのうち前記サーチウィンドウの(M−
1)列目から1列目までの各列の画素データを前記第3
の画素データ転送保持手段から排出しつつ前記第1およ
び第2の画素データ転送保持手段に保持させる戻しデー
タ転送制御手段と、 を備え、 前記ディストーション算出手段が、前記第3の画素デー
タ転送保持手段から前記第1および第2の画素データ転
送保持手段に戻された画素データを用いて、前記現画像
ブロックとは異なる現画像ブロックに対応するディスト
ーション算出を行なうことを特徴とする動きベクトル探
索装置。
16. An apparatus for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image,
When N and M are integers, the current image includes a plurality of current image blocks represented by N rows and M columns of pixels having pixel data, and the reference image is the same as the current image block having pixel data. Including a plurality of candidate blocks of a size, for each of the current image blocks, the block position of any one of the plurality of candidate blocks similar to the current image block and the block position of the current image block, A motion vector search device that specifies the motion vector, wherein a current image data output unit that outputs pixel data of the current image block, and that stores pixel data of the reference image and that H and L are integers, respectively. , A plurality of search windows represented by pixels in H rows and L columns each including at least two of the candidate blocks. Reference image data storage means capable of outputting raw data; and forming a search area of (H-N + 1) rows and (LM + 1) columns according to the size of the search window and the current image block, and in the search area A part of the pixel data of each candidate block in the search window is inputted and held, and the held pixel data is transferred in a predetermined direction of the search area. (H−N + 1) × (L−M + 1) pieces A first pixel data transfer holding unit having a first register; and a plurality of second registers for transferring pixel data between the first register of the first pixel data transfer holding unit;
A second pixel data transfer holding unit that transfers the pixel data of the search window along a predetermined transfer path passing through the search area together with the first pixel data transfer holding unit; Part of the pixel data is input from the first and second pixel data transfer and holding means, and the input pixel data is output to be returned to the first and second pixel data transfer and holding means (M-1). × H
Third pixel data transfer and holding means having a plurality of third registers; and inputting the pixel data of the search window to the first and second pixel data transfer and holding means; Window data transfer control means for transferring the pixel data of the search window along the transfer path by transfer holding means; transfer of the pixel data of the current image block output from the current image data output means and the first pixel data Distortion calculation for calculating, for each of the current image blocks, a plurality of distortions representing an image difference between the current image block and the plurality of candidate blocks, based on the pixel data held in the holding unit; Means, and a plurality of distortion values calculated for each of the current image blocks A similar block identifying unit that identifies a similar candidate block by detecting a minimum value of the first and second pixel data when the pixel data is transferred by the first and second pixel data transfer holding units; The pixel data of each column from the first column to the (M-1) th column of the search window among the pixel data input to the second pixel data transfer holding unit are stored in the first and second pixel data transfer holding units. Discharge data holding control means for causing the third pixel data transfer holding means to hold the data while discharging the pixel data; and transferring the pixel data to the first and second pixel data transfer holding means by the third pixel data transfer holding means. The search window (M−M−M) of the pixel data input to the third pixel data transfer holding unit.
1) The pixel data of each column from the column to the first column is
Return data transfer control means for causing the first and second pixel data transfer and holding means to hold while discharging from the pixel data transfer and holding means, and wherein the distortion calculating means includes the third pixel data transfer and holding means Using the pixel data returned to the first and second pixel data transfer and holding means to calculate a distortion corresponding to a current image block different from the current image block.
【請求項17】前記ウィンドウデータ転送制御手段が、
前記第1レジスタおよび第2レジスタにより、前記サー
チウィンドウ内で隣接する2つの画素列の画素データを
互いに列方向で逆方向に転送させ、かつ、前記サーチウ
ィンドウ内の画素データを列方向に往復移動させながら
行方向の一方側に転送させるとともに、前記(M−1)
列分の画素データが前記第3レジスタから第1および第
2レジスタに戻されるとき、前記探索領域の1列目の画
素列に対応する第1および第2レジスタに保持されてい
た画素データを、前記行方向の他方側に戻すよう転送さ
せ、さらに、これらM列分の画素データが前記何れかの
現画像ブロックに対応するディストーション算出開始時
の位置に復帰したとき、前記入力画素データの転送方向
を再度前記行方向の一方側に切り換え、 前記ディストーション算出手段が、前記第3レジスタか
ら第1および第2レジスタに戻された(M−1)列分の
画素データと、前記第3レジスタに前記(M−1)列分
の画素データが入力されたとき前記探索領域の1列目の
画素列に対応する第1および第2レジスタに保持されて
いた画素データとを用いて、前記現画像ブロックとは異
なる現画像ブロックに対応するディストーションを算出
することを特徴とする請求項16に記載の動きベクトル
探索装置。
17. The window data transfer control means,
The first register and the second register transfer pixel data of two adjacent pixel columns in the search window in opposite directions in the column direction, and reciprocate pixel data in the search window in the column direction. While transferring to one side in the row direction, and (M-1)
When pixel data of a column is returned from the third register to the first and second registers, the pixel data held in the first and second registers corresponding to the first pixel column of the search area is When the pixel data for the M columns is returned to the position at the time of starting the distortion calculation corresponding to any of the current image blocks, the transfer direction of the input pixel data is returned to the other side in the row direction. Is again switched to one side in the row direction, and the distortion calculating means stores the pixel data of (M-1) columns returned from the third register to the first and second registers, and stores the pixel data in the third register. (M-1) When the pixel data for the column is input, the pixel data stored in the first and second registers corresponding to the first pixel column in the search area is used. 17. The motion vector search device according to claim 16, wherein a distortion corresponding to a current image block different from the current image block is calculated.
【請求項18】動画像を部分的に構成する現画像を前記
動画像を部分的に構成する参照画像に基づいて予測する
のに用いられる動きベクトルを探索する装置であり、
N,Mをそれぞれ整数とするとき、前記現画像が画素デ
ータを有するN行M列の画素により表わされる複数の現
画像ブロックを含み、前記参照画像がそれぞれ画素デー
タを有する前記現画像ブロックと同一サイズの複数の候
補ブロックを含み、前記現画像ブロック毎に、前記複数
の候補ブロックのうち該現画像ブロックに類似する何れ
か1つの候補ブロックのブロック位置と該現画像ブロッ
クのブロック位置とによって、前記動きベクトルを特定
する動きベクトル探索装置であって、 前記現画像ブロックの画素データを出力する現画像デー
タ出力手段と、 前記参照画像の画素データを記憶し、H,Lをそれぞれ
整数とするとき、前記候補ブロックをそれぞれ少なくと
も2つ含んだH行L列の画素により表わされる複数のサ
ーチウィンドウの画素データを出力可能な参照画像デー
タ記憶手段と、 前記サーチウィンドウおよび前記現画像ブロックのサイ
ズに応じた(H−N+1)行(L−M+1)列の探索領
域を形成し、該探索領域内に前記サーチウィンドウ内の
各候補ブロックの画素データの一部を入力して保持する
とともに、該保持した画素データを前記探索領域の所定
方向に転送する(H−N+1)×(L−M+1)個の第
1レジスタを有する第1の画素データ転送保持手段と、 前記第1の画素データ転送保持手段の第1レジスタとの
間で画素データを授受する複数の第2レジスタを有し、
前記第1の画素データ転送保持手段と共に前記サーチウ
ィンドウの画素データを前記探索領域を通る所定の転送
経路に沿って転送する第2の画素データ転送保持手段
と、 前記転送経路に沿って転送された画素データの一部を前
記第1および第2の画素データ転送保持手段から入力
し、該入力した画素データを前記第1および第2の画素
データ転送保持手段に戻すよう出力するM×H個の第3
レジスタを有する第3の画素データ転送保持手段と、 前記サーチウィンドウの画素データを前記第1および第
2の画素データ転送保持手段に入力させるとともに、前
記第1および第2の画素データ転送保持手段により前記
サーチウィンドウの画素データを前記転送経路に沿って
転送させるウィンドウデータ転送制御手段と、 前記現画像データ出力手段から出力された現画像ブロッ
クの画素データと前記第1の画素データ転送保持手段に
保持された画素データとに基づいて、前記現画像ブロッ
クの各々に対し、前記現画像ブロックと前記複数の候補
ブロックとの間の画像の差を表わす複数のディストーシ
ョンをそれぞれ算出するディストーション算出手段と、 前記現画像ブロックの各々に対し算出された複数のディ
ストーションの値のうち最小値を検出して、前記類似す
る1つの候補ブロックを特定する類似ブロック特定手段
と、 前記第1および第2の画素データ転送保持手段により画
素データが転送されるとき、前記第1および第2の画素
データ転送保持手段に入力された画素データのうち前記
サーチウィンドウの1列目からM列目までの各列の画素
データを前記第1および第2の画素データ転送保持手段
から排出しつつ前記第3の画素データ転送保持手段に保
持させる排出データ保持制御手段と、 前記第3の画素データ転送保持手段により前記第1およ
び第2の画素データ転送保持手段に画素データが転送さ
れるとき、前記第3の画素データ転送保持手段に入力さ
れた画素データのうち前記サーチウィンドウのM列目か
ら1列目までの各列の画素データを前記第3の画素デー
タ転送保持手段から排出しつつ前記第1および第2の画
素データ転送保持手段に保持させる戻しデータ転送制御
手段と、 を備え、 前記ディストーション算出手段が、前記第3の画素デー
タ転送保持手段から前記第1および第2の画素データ転
送保持手段に戻された画素データを用いて、前記現画像
ブロックとは異なる現画像ブロックに対応するディスト
ーション算出を行なうことを特徴とする動きベクトル探
索装置。
18. An apparatus for searching for a motion vector used for predicting a current image partially forming a moving image based on a reference image partially forming the moving image,
When N and M are integers, the current image includes a plurality of current image blocks represented by N rows and M columns of pixels having pixel data, and the reference image is the same as the current image block having pixel data. Including a plurality of candidate blocks of a size, for each of the current image blocks, the block position of any one of the plurality of candidate blocks similar to the current image block and the block position of the current image block, A motion vector search device that specifies the motion vector, wherein a current image data output unit that outputs pixel data of the current image block, and that stores pixel data of the reference image and that H and L are integers, respectively. , A plurality of search windows represented by pixels in H rows and L columns each including at least two of the candidate blocks. Reference image data storage means capable of outputting raw data; and forming a search area of (H-N + 1) rows and (LM + 1) columns according to the size of the search window and the current image block, and in the search area A part of the pixel data of each candidate block in the search window is inputted and held, and the held pixel data is transferred in a predetermined direction of the search area. (H−N + 1) × (L−M + 1) pieces A first pixel data transfer holding unit having a first register; and a plurality of second registers for transferring pixel data between the first register of the first pixel data transfer holding unit;
A second pixel data transfer holding unit that transfers the pixel data of the search window along a predetermined transfer path passing through the search area together with the first pixel data transfer holding unit; M × H number of pixel data which are inputted from the first and second pixel data transfer and holding means and a part of the pixel data are output to be returned to the first and second pixel data transfer and hold means Third
A third pixel data transfer / holding unit having a register, and inputting the pixel data of the search window to the first and second pixel data transfer / holding units, and the first and second pixel data transfer / holding units. Window data transfer control means for transferring the pixel data of the search window along the transfer path; holding the pixel data of the current image block output from the current image data output means and the first pixel data transfer holding means Based on the obtained pixel data, for each of the current image blocks, a distortion calculation unit that calculates a plurality of distortions each representing an image difference between the current image block and the plurality of candidate blocks, Of the multiple distortion values calculated for each of the current image blocks, A similar block specifying unit that detects a value and detects the similar one candidate block; and a first and second pixel data transfer unit that transfers the pixel data by the first and second pixel data transfer holding units. The pixel data of each column from the first column to the M-th column of the search window among the pixel data input to the pixel data transfer holding unit are discharged from the first and second pixel data transfer holding units while discharging the pixel data. A discharge data holding control unit that causes the pixel data transfer holding unit to hold pixel data, and a third pixel data transfer holding unit that transfers pixel data to the first and second pixel data transfer holding units. The pixel data of each column from the Mth column to the first column of the search window among the pixel data input to the third pixel data transfer and holding means is the third pixel data Return data transfer control means for causing the first and second pixel data transfer and holding means to hold while discharging from the transfer and holding means, wherein the distortion calculating means is configured to switch the third pixel data transfer and holding means from the third pixel data transfer and holding means A motion vector search device, wherein a distortion corresponding to a current image block different from the current image block is calculated using the pixel data returned to the first and second pixel data transfer and holding means.
【請求項19】前記ウィンドウデータ転送制御手段が、
前記第1レジスタおよび第2レジスタにより、前記サー
チウィンドウ内で隣接する2つの画素列の画素データを
互いに列方向で逆方向に転送させ、かつ、前記サーチウ
ィンドウ内の画素データを列方向に往復移動させながら
行方向の一方側に転送させるとともに、前記サーチウィ
ンドウの1列目からM列目までのM列分の画素データ
を、前記行方向の他方側に戻すよう転送させ、さらに、
これらM列分の画素データが前記何れかの現画像ブロッ
クに対応するディストーション算出開始時の位置に復帰
したとき、前記入力画素データの転送方向を再度前記行
方向の一方側に切り換え、 前記ディストーション算出手段が、前記第3レジスタか
ら第1および第2レジスタに戻されたM列分の画素デー
タを用いて、前記現画像ブロックとは異なる現画像ブロ
ックに対応するディストーションを算出することを特徴
とする請求項18に記載の動きベクトル探索装置。
19. The window data transfer control means,
The first register and the second register transfer pixel data of two adjacent pixel columns in the search window in opposite directions in the column direction, and reciprocate pixel data in the search window in the column direction. And transferring the pixel data for M columns from the first column to the Mth column of the search window so as to return to the other side in the row direction.
When the pixel data for these M columns returns to the position at the start of the distortion calculation corresponding to any of the current image blocks, the transfer direction of the input pixel data is switched again to one side in the row direction, and the distortion calculation is performed. Means for calculating a distortion corresponding to a current image block different from the current image block by using the M columns of pixel data returned from the third register to the first and second registers. The motion vector search device according to claim 18.
【請求項20】動画像を部分的に構成する現画像を前記
動画像を部分的に構成する参照画像に基づいて予測する
のに用いられる動きベクトルを探索する装置であり、前
記現画像が画素データを有する複数行複数列の画素によ
り表わされる複数の現画像ブロックを含み、前記参照画
像がそれぞれ画素データを有する前記現画像ブロックと
同一サイズの複数の候補ブロックを含み、前記現画像ブ
ロック毎に、前記複数の候補ブロックのうち該現画像ブ
ロックに類似する何れか1つの候補ブロックのブロック
位置と該現画像ブロックのブロック位置とによって、前
記動きベクトルを特定する動きベクトル探索装置であっ
て、 前記現画像ブロックの画素データを出力する現画像デー
タ出力手段と、 前記参照画像の画素データを記憶し、前記候補ブロック
をそれぞれ少なくとも2つ含んだ複数のサーチウィンド
ウの画素データを出力可能な参照画像データ記憶手段
と、 前記サーチウィンドウおよび前記現画像ブロックのサイ
ズに応じた探索領域を形成し、該探索領域内に前記サー
チウィンドウ内の各候補ブロックの画素データの一部を
入力して保持するとともに、該保持した画素データを前
記探索領域の所定方向に転送する第1の画素データ転送
保持手段と、 前記第1の画素データ転送保持手段との間で画素データ
を授受し、前記第1の画素データ転送保持手段と共に前
記サーチウィンドウの画素データを前記探索領域を通る
所定の転送経路に沿って転送する第2の画素データ転送
保持手段と、 前記転送経路に沿って転送された画素データの一部を前
記第1および第2の画素データ転送保持手段から入力
し、該入力した画素データを前記第1および第2の画素
データ転送保持手段に戻すよう出力する第3の画素デー
タ転送保持手段と、 前記参照画像データ記憶手段から前記複数のうち何れか
のサーチウィンドウの一部の画素データを含む所定画素
領域分ずつ画素データを読み出して記憶するとともに、
記憶済のサーチウィンドウの画素データを前記参照画像
データ記憶手段からのデータ転送速度より大きい転送速
度で前記第1および第2の画素データ転送保持手段に供
給する高速転送記憶手段と、 前記高速転送記憶手段に記憶されたサーチウィンドウの
画素データを前記第1および第2の画素データ転送保持
手段に入力させるとともに、前記複数のうち少なくとも
2つの候補ブロックを前記探索領域内に順次入力させる
よう、前記第1および第2の画素データ転送保持手段に
より前記サーチウィンドウの画素データを前記転送経路
に沿って転送させるウィンドウデータ転送制御手段と、 前記現画像データ出力手段から出力された現画像ブロッ
クの画素データと前記第1の画素データ転送保持手段に
保持された画素データとに基づいて、前記現画像ブロッ
クの各々に対し、前記現画像ブロックと前記複数の候補
ブロックとの間の画像の差を表わす複数のディストーシ
ョンをそれぞれ算出するディストーション算出手段と、 前記現画像ブロックの各々に対し算出された複数のディ
ストーションの値のうち最小値を検出して、前記類似す
る1つの候補ブロックを特定する類似ブロック特定手段
と、 前記第1および第2の画素データ転送保持手段により画
素データが転送されるとき、前記第1および第2の画素
データ転送保持手段に入力された画素データのうち前記
サーチウィンドウの1列目から所定列分だけ各列の画素
データを前記第1および第2の画素データ転送保持手段
から排出しつつ前記第3の画素データ転送保持手段に保
持させる排出データ保持制御手段と、 前記第3の画素データ転送保持手段により前記第1およ
び第2の画素データ転送保持手段に画素データが転送さ
れるとき、前記第3の画素データ転送保持手段に入力さ
れた各列の画素データを前記第3の画素データ転送保持
手段から排出しつつ前記第1および第2の画素データ転
送保持手段に保持させる戻しデータ転送制御手段と、 を備え、 前記高速転送記憶手段が、前記参照画像データ記憶手段
から読み出し記憶している前記所定画素領域分の画素デ
ータのうち、前記探索領域内に戻された画素データに続
く転送順序の画素データを前記第1および第2の画素デ
ータ転送保持手段に再度入力させ、 前記ディストーション算出手段が、前記第3の画素デー
タ転送保持手段から前記第1および第2の画素データ転
送保持手段に戻された画素データと、前記高速転送記憶
手段から前記第1および第2の画素データ転送保持手段
に再度入力された画素データとを用いて、前記現画像ブ
ロックとは異なる現画像ブロックに対応するディストー
ション算出を行なうことを特徴とする動きベクトル探索
装置。
20. An apparatus for searching for a motion vector used to predict a current image partially forming a moving image based on a reference image partially forming the moving image, wherein the current image is a pixel. Including a plurality of current image blocks represented by pixels in a plurality of rows and columns having data, the reference image includes a plurality of candidate blocks of the same size as the current image block each having pixel data, for each current image block A motion vector search device that specifies the motion vector by a block position of any one of the plurality of candidate blocks similar to the current image block and a block position of the current image block; A current image data output unit that outputs pixel data of a current image block; and stores the pixel data of the reference image. Reference image data storage means capable of outputting pixel data of a plurality of search windows each including at least two blocks, and a search area corresponding to the size of the search window and the current image block is formed; First pixel data transfer and holding means for inputting and holding a part of the pixel data of each candidate block in the search window, and transferring the held pixel data in a predetermined direction of the search area; A second pixel data transfer / transfer unit that transmits and receives pixel data to and from the pixel data transfer holding unit, and transfers pixel data of the search window along a predetermined transfer path passing through the search area together with the first pixel data transfer holding unit. Pixel data transfer holding means, and a part of the pixel data transferred along the transfer path, the first and second pixel data transfer holding A third pixel data transfer and holding means for inputting the input pixel data and returning the input pixel data to the first and second pixel data transfer and holding means; While reading and storing pixel data by a predetermined pixel area including a part of the pixel data of the search window,
High-speed transfer storage means for supplying the stored search window pixel data to the first and second pixel data transfer holding means at a transfer rate greater than the data transfer rate from the reference image data storage means; Means for inputting the pixel data of the search window stored in the means to the first and second pixel data transfer and holding means, and sequentially inputting at least two of the plurality of candidate blocks into the search area. Window data transfer control means for transferring pixel data of the search window along the transfer path by first and second pixel data transfer holding means; and pixel data of a current image block output from the current image data output means. Based on the pixel data held by the first pixel data transfer holding means, For each of the image blocks, a distortion calculation unit that calculates a plurality of distortions each representing an image difference between the current image block and the plurality of candidate blocks, and a plurality of distortions calculated for each of the current image blocks. Detecting the minimum value of the distortion values of the similarity and identifying the similar one candidate block; and when the pixel data is transferred by the first and second pixel data transfer holding means, In the pixel data input to the first and second pixel data transfer and holding means, pixel data of each column for a predetermined column from the first column of the search window is transferred to the first and second pixel data transfer and holding means. Discharge data holding control means for causing the third pixel data transfer holding means to hold the data while discharging the data from the third pixel data; When the pixel data is transferred to the first and second pixel data transfer holding units by the data transfer holding unit, the pixel data of each column input to the third pixel data transfer holding unit is transferred to the third pixel data transfer holding unit. Return data transfer control means for causing the first and second pixel data transfer holding means to hold while discharging from the pixel data transfer holding means, wherein the high-speed transfer storage means reads and stores the reference image data storage means Among the pixel data for the predetermined pixel area, the pixel data in the transfer order following the pixel data returned in the search area is again input to the first and second pixel data transfer holding means, A distortion calculating unit configured to determine whether the pixel data returned from the third pixel data transfer holding unit to the first and second pixel data transfer holding units is equal to the high-speed pixel data; A distortion calculation corresponding to a current image block different from the current image block is performed by using the pixel data re-input from the transmission storage unit to the first and second pixel data transfer holding units. Motion vector search device.
【請求項21】前記第3の画素データ転送保持手段から
前記第1および第2の画素データ転送保持手段に画素デ
ータが戻され、該画素データに続く転送順序の画素デー
タが前記高速転送記憶手段から前記第1および第2の画
素データ転送保持手段に再度入力されることにより、前
記複数のうち何れかのサーチウィンドウの一部の画素デ
ータが前記探索領域に供給されるとき、 前記何れかのサーチウィンドウの残部の画素データを前
記参照画像データ記憶手段から読み出して前記高速転送
記憶手段に記憶させることを特徴とする請求項20に記
載の動きベクトル探索装置。
21. Pixel data is returned from said third pixel data transfer and holding means to said first and second pixel data transfer and holding means, and pixel data in a transfer order following said pixel data is stored in said high speed transfer and storage means. Is input to the first and second pixel data transfer and holding means again, so that when some of the pixel data of any of the plurality of search windows is supplied to the search area, 21. The motion vector search device according to claim 20, wherein the remaining pixel data of a search window is read from the reference image data storage means and stored in the high-speed transfer storage means.
【請求項22】前記第3の画素データ転送保持手段が、
前記探索領域内におけるディストーション算出開始時の
画素データの位置を保って画素データを入力し出力する
ことを特徴とする請求項16〜21の何れかに記載の動
きベクトル探索装置。
22. The third pixel data transfer holding means,
22. The motion vector search device according to claim 16, wherein the pixel data is input and output while maintaining the position of the pixel data at the start of the distortion calculation in the search area.
【請求項23】前記ディストーション算出手段が、前記
第1レジスタと共に二次元的に配列された複数の演算器
を有するシストリックアレー構造の演算回路によって構
成されることを特徴とする請求項16〜22の何れかに
記載の動きベクトル探索装置。
23. The distortion calculating means according to claim 16, wherein said distortion calculating means comprises an arithmetic circuit having a systolic array structure having a plurality of arithmetic units arranged two-dimensionally together with said first register. The motion vector search device according to any one of the above.
【請求項24】前記第2レジスタが前記探索領域の各列
の1行目と(H−N+1)行目の第1レジスタに接続さ
れたことを特徴とする請求項16〜23の何れかに記載
の動きベクトル探索装置。
24. The apparatus according to claim 16, wherein said second register is connected to the first register in the first row and (H-N + 1) -th row of each column of said search area. The motion vector search device according to the above.
【請求項25】前記第2レジスタが、(N−1)×(L
−M+1)個設けられ、各列同数になるよう配置されて
いることを特徴とする請求項24に記載の動きベクトル
探索装置。
25. The method according to claim 25, wherein the second register is (N-1) × (L
25. The motion vector search device according to claim 24, wherein -M + 1) units are provided and arranged so that each column has the same number.
【請求項26】前記第2レジスタが、前記探索領域の各
列の1行目の第1レジスタに接続された第2レジスタを
含む(N−1)×(L−M+1)個のレジスタと、前記
探索領域の各列の(H−N+1)行目の第1レジスタに
接続された第2レジスタを含む(N−1)×(L−M+
1)個のレジスタからなり、それぞれ各列同数になるよ
う配置され、 前記第3レジスタが、各列に(H+N−1)個設けられ
ていることを特徴とする請求項24に記載の動きベクト
ル探索装置。
26. (N-1) .times. (LM + 1) registers including the second register connected to the first register in the first row of each column of the search area, (N−1) × (L−M +) including the second register connected to the first register in the (H−N + 1) th row of each column of the search area.
25. The motion vector according to claim 24, comprising 1) registers, arranged so as to have the same number in each column, and (H + N-1) third registers in each column. Searching device.
JP23952695A 1995-09-19 1995-09-19 Motion vector search method and search device Expired - Lifetime JP2868440B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23952695A JP2868440B2 (en) 1995-09-19 1995-09-19 Motion vector search method and search device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23952695A JP2868440B2 (en) 1995-09-19 1995-09-19 Motion vector search method and search device

Publications (2)

Publication Number Publication Date
JPH0984020A JPH0984020A (en) 1997-03-28
JP2868440B2 true JP2868440B2 (en) 1999-03-10

Family

ID=17046119

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23952695A Expired - Lifetime JP2868440B2 (en) 1995-09-19 1995-09-19 Motion vector search method and search device

Country Status (1)

Country Link
JP (1) JP2868440B2 (en)

Also Published As

Publication number Publication date
JPH0984020A (en) 1997-03-28

Similar Documents

Publication Publication Date Title
JP2839950B2 (en) Motion detector
JP2834640B2 (en) Motion estimation apparatus and method
JP2868440B2 (en) Motion vector search method and search device
JP2868457B2 (en) Motion vector search device
JP2768646B2 (en) Motion vector search method and search device
JP2866325B2 (en) Motion vector search device
JP2868441B2 (en) Motion vector search method and search device
JP4228705B2 (en) Motion vector search method and apparatus
JP2963369B2 (en) Motion vector search device
JP2868444B2 (en) Motion vector search method and search device
JP2866326B2 (en) Motion vector search device
JP2866324B2 (en) Motion vector search device
JP2866321B2 (en) Motion vector search method and apparatus
KR0178302B1 (en) Motion estimation processor based on the bidirectional parallel pipe line structure
JP2931783B2 (en) Motion vector search device
JP2872105B2 (en) Distortion calculator
JPS6360952B2 (en)
JP2934146B2 (en) Block matching method and apparatus in video compression
JP2768648B2 (en) Motion vector search method and apparatus
JP3189655B2 (en) Apparatus and method for detecting motion vector
JP2983170B2 (en) Motion vector search method and search device
JPH0775066A (en) Picture signal converter
JP3115511B2 (en) Motion vector search device
JPH06178289A (en) Motion vector detection circuit
JP3004686B2 (en) Encoding circuit and image encoding device