JP2866326B2 - Motion vector search device - Google Patents

Motion vector search device

Info

Publication number
JP2866326B2
JP2866326B2 JP19937195A JP19937195A JP2866326B2 JP 2866326 B2 JP2866326 B2 JP 2866326B2 JP 19937195 A JP19937195 A JP 19937195A JP 19937195 A JP19937195 A JP 19937195A JP 2866326 B2 JP2866326 B2 JP 2866326B2
Authority
JP
Japan
Prior art keywords
block
segment
input
distortion
output
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
JP19937195A
Other languages
Japanese (ja)
Other versions
JPH0951535A (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 JP19937195A priority Critical patent/JP2866326B2/en
Publication of JPH0951535A publication Critical patent/JPH0951535A/en
Application granted granted Critical
Publication of JP2866326B2 publication Critical patent/JP2866326B2/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, a frame represents one screen constituting a moving image. Less than,
The simple inter-frame prediction coding method and the motion compensation inter-frame prediction coding method will be described.

【0005】図76は単純フレーム間予測符号化方式を
示す図である。単純フレーム間予測符号化方式において
は、互いに位置的に対応する現画像101の各画素デー
タと前符号化画像301の各画素データとの差分値を算
出し、この差分値を適当な閾値と比較して、有意画素デ
ータと非有意画素データとに識別する。有意画素データ
は、この差分値が閾値より大きい場合に相当し、前符号
化画像301から現画像101を予測する際に省略する
ことのできないデータである。一方、非有意画素データ
は、この差分値が閾値以下の場合に相当し、前符号化画
像301から現画像101を予測する際に削減すること
が可能なデータである。
FIG. 76 is a diagram showing a simple inter-frame predictive coding system. In the simple inter-frame predictive coding method, a difference value between each pixel data of the current image 101 and each pixel data of the previous coded image 301 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 the threshold value, and is data that cannot be omitted when predicting the current image 101 from the previous encoded image 301. On the other hand, non-significant 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 101 is predicted from the previously encoded image 301.

【0006】なお、前符号化画像301は、現画像10
1よりも過去の画像であっても、未来の画像であっても
よいが、現画像101よりも時間的に先に符号化される
画像である。例えば、図76に示すように、前画像10
1における人物像10が現画像101において右方向に
移動してる場合、有意画素データを示す領域は、2つの
有意画素領域20および21によって示される。有意画
素領域20に位置的に対応する現画像101上の画素デ
ータは、この画素データと有意画素領域20との差分値
および有意画素領域20によって表すことができ、有意
画素領域21に位置的に対応する現画像101上の画素
データは、この画素データと有意画素領域21との差分
値および有意画素領域21によって表すことができる。
残りの非有意画素領域は、この非有意画素領域と位置的
に対応する前符号化画像301の画素データそのものに
よって表すことができる。
The pre-encoded image 301 is the same as the current image 10
Although the image may be a past image or a future image, it is an image that is coded temporally earlier than the current image 101. For example, as shown in FIG.
When the human image 10 in FIG. 1 is moving rightward in the current image 101, the area indicating significant pixel data is indicated by two significant pixel areas 20 and 21. The pixel data on the current image 101 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. The corresponding pixel data on the current image 101 can be represented by a difference value between the pixel data and the significant pixel area 21 and the significant pixel area 21.
The remaining insignificant pixel area can be represented by the pixel data itself of the pre-encoded image 301 that corresponds in position to the insignificant 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】このように、単純フレーム間予測符号化方
式では、現画像101を前符号化画像301の同一位置
の画素データに基づいて予測するので、現画像101と
前符号化画像301との間の画像上の変化が小さいとき
には高い圧縮効率を実現することができるが、図76に
示されるように、画像の一部が画像上で大幅に移動する
ような場合には、単純フレーム間予測符号化方式よりも
次に説明する動き補償フレーム間予測符号化方式を用い
た方が圧縮効率は高くなる。
As described above, in the simple inter-frame predictive coding method, the current image 101 is predicted based on the pixel data at the same position of the previous coded image 301, so that the current image 101 and the previous coded image 301 When the change on the image is small, high compression efficiency can be realized. However, as shown in FIG. 76, when a part of the image moves significantly on the image, the simple inter-frame prediction code can be used. The compression efficiency is higher when the motion-compensated inter-frame prediction coding method described below is used than in the coding method.

【0009】動き補償フレーム間予測符号化方式では、
図77に示されるように、人物像10が移動した場合、
図77に示される動きベクトルMVを算出する。動きベ
クトルMVは、人物像10の移動方向および移動距離を
表し、この動きベクトルMVと前符号化画像301の人
物像10を形成する画素データとによって、現画像10
1上の人物像10を予測する。この場合、有意画素領域
は領域20のみになる。したがって、動き補償フレーム
間予測符号化方式のほうが、有意画素数を大幅に少なく
することができるので、画像情報の圧縮効率を大幅に向
上することができる。
In the motion compensation inter-frame prediction coding method,
As shown in FIG. 77, when the human image 10 moves,
The motion vector MV shown in FIG. 77 is calculated. The motion vector MV indicates a moving direction and a moving distance of the human image 10.
1 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による動
き補償フレーム間予測方式では、まず、図78に示すよ
うに、現画像102を複数のブロックに分割し、その一
つのブロック(以下、現符号化ブロックと呼ぶ)230
に類似した同一サイズの複数のブロック530(以下、
候補ブロックと呼ぶ)を含むサーチウィンドウ405を
前符号化画像302上で特定し、サーチウインド405
内に含まれる複数の候補ブロック530と現符号化ブロ
ック230とのディストーションを算出する。
Incidentally, the ITU-T which is an international standard system
(International telecommunication Union-Telecommun
ication Standardization Sector) H. In the motion compensated inter-frame prediction method according to H.261, first, as shown in FIG. 78, the current image 102 is divided into a plurality of blocks, and one of the blocks (hereinafter, referred to as a current coded block) 230
A plurality of blocks 530 of the same size similar to
(Referred to as a candidate block) is specified on the pre-encoded image 302, and the search window 405
Is calculated between the plurality of candidate blocks 530 and the current coded block 230 included in the block.

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

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

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

【0014】図79および図80に示された現符号化ブ
ロック230、サーチウィンドウ405および複数の候
補ブロック530において、現符号化ブロック230と
各候補ブロック530とのディストーションをD(l,
h)とすると、D(l,h)は以下の式により表され
る。
In the current coding block 230, the search window 405, and the plurality of candidate blocks 530 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) で表され、現符号化ブロック230の画素データおよび
位置的に対応する各候補ブロック530の画素データの
差分値である局所ディストーションを示している。ノル
ム演算は、一般に、絶対値演算および二乗演算が用いら
れるが、計算の複雑さと効率の点で絶対値演算が最も頻
繁に用いられる。
Here, ‖‖ indicates the norm for calculating the distortion, and d (m, n) is represented by d (m, n) = b (l + m, h + n) -a (m, n). The local distortion is a difference value between the pixel data of the encoding block 230 and the pixel data of each candidate block 530 corresponding to the position. 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 discloses 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】すなわち、図81および図82に示すよう
に、lおよびhを l=0,1,2,3 h=0,1,2,3 で表すとすると、まず、斜線で示された各プロセッサエ
レメントにサーチウィンドウの画素データが入力される
とともに、現符号化ブロックの画素データa(0,0)
が入力されたサイクル0では、各プロセッサエレメント
では、局所ディストーション |b(l,h)−a(0,0)| の計算およびストアが行われる。
That is, as shown in FIGS. 81 and 82, if l and h are represented by l = 0, 1, 2, 3 h = 0, 1, 2, 3, first, each of the hatched lines The pixel data of the search window is input to the processor element, and the pixel data a (0,0) of the current coding block is input.
In the cycle 0 in which is input, each processor element calculates and stores the local distortion | b (l, h) -a (0,0) |.

【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 nine candidate blocks and the current coded block is calculated.

【0023】次いで、この9個のディストーションの中
から検出された最小ディストーションに基づいて動きベ
クトルが求められる。また、国際標準ITU−TのH.
261およびISO/IEC11172−2では、順次
走査方式の画像の符号化のみを取り扱っていたのに対し
て、国際標準の暫定標準方式ISO/IEC13818
−2では、さらに、インターレース走査方式の画像の符
号化も取扱っている。
Next, a motion vector is obtained based on the minimum distortion detected from the nine distortions. In addition, H.264 of the international standard ITU-T.
While H.261 and ISO / IEC11172-2 deal only with encoding of images of the progressive scanning method, the provisional international standard ISO / IEC13818 of the international standard is used.
-2 further handles encoding of an image of the interlaced scanning method.

【0024】インターレース走査方式は、単純に順次1
ライン毎に垂直走査を行う順次走査方式に対して、所定
の走査ライン毎に飛び越して垂直走査を行い、飛び越し
た走査ラインの本数に対応した走査回数によってフレー
ムを構成するものである。例えば、2:1インターレー
ス走査方式は、1枚のフレームを奇数走査ラインからな
るフィールドと偶数走査ラインからなるフィールドとの
2枚のフィールドで構成し、まず一方のフィールドを走
査してから他方のフィールドの走査を行うものである。
このインターレース走査方式は、信号帯域幅を節減し、
実質的に走査線数を減らすことなく、画面全体の走査回
数を多くして画像のちらつきを少なくするものである。
The interlaced scanning method is a simple one-by-one method.
In contrast to the sequential scanning method in which vertical scanning is performed line by line, vertical scanning is performed by skipping every predetermined scanning line, and a frame is constituted by the number of scans corresponding to the number of skipped scanning lines. For example, in the 2: 1 interlaced scanning method, one frame is composed of two fields, that is, a field composed of odd-numbered scanning lines and a field composed of even-numbered scanning lines. Is performed.
This interlaced scanning scheme saves signal bandwidth,
The number of scans of the entire screen is increased and the flicker of an image is reduced without substantially reducing the number of scanning lines.

【0025】インターレース走査方式の画像には、フレ
ームを符号化の単位とするフレーム構造とフィールドを
符号化の単位とするフィールド構造との両方が提供さ
れ、さらに、予測方式には、フレーム予測方式とフィー
ルド予測方式とがある。ただし、フィールド構造の場合
には、フレーム予測方式は使えない。以下、フィールド
構造におけるフィールド予測方式の例を説明する。
An image of the interlaced scanning system is provided with both a frame structure using a frame as a unit of encoding and a field structure using a field as a unit of encoding. There is a field prediction method. However, in the case of the field structure, the frame prediction method cannot be used. Hereinafter, an example of the field prediction method in the field structure will be described.

【0026】フィールド構造におけるフィールド予測方
式は、過去に符号化された2つのフィールドに基づいて
現画像フィールドを予測する方式である。例えば、図8
3に示すように、時間が経過する順に、奇数走査ライン
からなる第1フィールド601、偶数走査ラインからな
る第2フィールド602および奇数走査ラインからなる
第3フィールド603があり、すでに符号化された第1
フィールド601および第2フィールド602から第3
フィールド603を予測するものとする。また、斜線で
示された人物像11が画面の左下から右上の方向に移動
しているとする。
The field prediction method in the field structure is a method for predicting a current image field based on two previously encoded fields. For example, FIG.
As shown in FIG. 3, there are a first field 601 composed of odd scan lines, a second field 602 composed of even scan lines, and a third field 603 composed of odd scan lines. 1
From the field 601 and the second field 602 to the third
It is assumed that the field 603 is predicted. It is also assumed that the person image 11 indicated by oblique lines moves from the lower left to the upper right on the screen.

【0027】フィールド構造におけるフィールド予測方
式は、第1フィールド601から第3フィールド603
を動きベクトルMV1によって予測するとともに、第2
フィールド602から第3フィールド603を動きベク
トルMV2によって予測し、この予測された2つの動き
ベクトルMV1,MV2から最適な1本の動きベクトル
を選択するものである。
The field prediction method in the field structure includes a first field 601 to a third field 603.
Is predicted by the motion vector MV1, and the second
The third field 603 is predicted from the field 602 by the motion vector MV2, and one optimal motion vector is selected from the two predicted motion vectors MV1 and MV2.

【0028】さらに、フィールド構造におけるフィール
ド予測方式には、16×8フィールド予測方式がある。
16×8フィールド予測方式は、例えば、図83に示さ
れた第1フィールド601から第3フィールド603を
予測する場合、図84に示すように、第3フィールド6
03を時間n、第2フィールド602を時間n−1、第
1フィールド601を時間n−2とし、第1フィールド
601および第3フィールド603の奇数走査ラインを
構成する各画素を白丸で表し、第2フィールド602の
偶数走査ラインを構成する各画素を黒丸で表し、第3フ
ィールド603内の垂直4画素の現画像フィールドブロ
ック700が、現画像フィールドブロック700の上半
分を構成する垂直2画素の現画像第1セグメントブロッ
ク710と現画像フィールドブロック700の下半分を
構成する現画像第2セグメントブロック720とからな
るとすると、第3フィールド603を、以下に示す2本
の動きベクトルMV11,MV12に基づいて予測する
ものである。
As a field prediction method in the field structure, there is a 16 × 8 field prediction method.
In the 16 × 8 field prediction method, for example, when predicting the third field 603 from the first field 601 shown in FIG. 83, as shown in FIG.
03 is time n, the second field 602 is time n-1, the first field 601 is time n-2, and each pixel constituting the odd-numbered scan line of the first field 601 and the third field 603 is represented by a white circle. Each pixel constituting the even-numbered scan line of the second field 602 is represented by a black circle, and the current four-pixel current image field block 700 in the third field 603 is the current two-pixel current pixel block constituting the upper half of the current image field block 700. Assuming that the image first segment block 710 and the current image second segment block 720 constituting the lower half of the current image field block 700, the third field 603 is set based on the following two motion vectors MV11 and MV12. To predict.

【0029】動きベクトルMV11は、現画像第1セグ
メントブロック710を現符号化ブロックとし、この現
画像第1セグメントブロック710の画素データと第1
フィールド601の複数の第1セグメント候補ブロック
810の画素データとに基づいて求められ、動きベクト
ルMV12は、現画像第2セグメントブロック720を
現符号化ブロックとし、この現画像第2セグメントブロ
ック720の画素データと第1フィールド601の複数
の第2セグメント候補ブロック820の画素データとに
基づいて求められる。
The motion vector MV11 is obtained by setting the current image first segment block 710 as the current coded block,
The motion vector MV12 is obtained based on the pixel data of the plurality of first segment candidate blocks 810 in the field 601 and the motion vector MV12 is set as the current coded block using the current image second segment block 720 as the pixel of the current image second segment block 720. It is determined based on the data and the pixel data of the plurality of second segment candidate blocks 820 in the first field 601.

【0030】また、動きベクトルMV1は、現画像フィ
ールドブロック700を現符号化ブロックとし、現画像
フィールドブロック700の画素データと第1フィール
ド601の複数のフィールド候補ブロック800の画素
データに基づいて求められる。これらの3本の動きベク
トルに対して、動きベクトルMV11および動きベクト
ルMV12によって予測された画像を合成して予測され
る第3フィールド603の予測画像と動きベクトルMV
1によって予測される第3フィールド603の予測画像
とを比較して最適な動きベクトルが選択される。
The motion vector MV1 is obtained based on the pixel data of the current image field block 700 and the pixel data of the plurality of field candidate blocks 800 of the first field 601. . A predicted image of the third field 603 and a motion vector MV predicted by synthesizing an image predicted by the motion vector MV11 and the motion vector MV12 with these three motion vectors.
The optimal motion vector is selected by comparing with the predicted image of the third field 603 predicted by 1.

【0031】同様に、図85に示すように、第2フィー
ルド602に対しても、現画像第1セグメントブロック
710を現符号化ブロックとし、この現画像第1セグメ
ントブロック710の画素データと第2フィールド60
2の複数の第1セグメント候補ブロック811の画素デ
ータとに基づいて動きベクトルMV21が求められ、現
画像第2セグメントブロック720を現符号化ブロック
とし、この現画像第2セグメントブロック720の画素
データと第2フィールド602の複数の第2セグメント
候補ブロック821の画素データとに基づいて動きベク
トルMV22が求められる。また、現画像フィールドブ
ロック700を現符号化ブロックとし、現画像フィール
ドブロック700の画素データと第2フィールド602
の複数のフィールド候補ブロック801の画素データと
に基づいて動きベクトルMV2が求められる。
Similarly, as shown in FIG. 85, for the second field 602, the current image first segment block 710 is used as the current coded block, and the pixel data of the current image first segment block 710 and the second Field 60
The motion vector MV21 is calculated based on the pixel data of the plurality of first segment candidate blocks 811 and the current image second segment block 720 is set as the current coded block. The motion vector MV22 is obtained based on the pixel data of the plurality of second segment candidate blocks 821 in the second field 602. Further, the current image field block 700 is set as a current encoding block, and the pixel data of the current image field block 700 and the second field 602 are used.
And the pixel data of the plurality of field candidate blocks 801.

【0032】最終的には、第1フィールド601および
第2フィールド602において求められた上記動きベク
トルの中から最適な1本または2本の動きベクトルが選
択される。ところで、例えば、図84に示された現画像
フィールドブロック700の動きベクトルMV1は、現
画像フィールドブロック700をそれぞれ現符号化ブロ
ックとし、この現画像フィールドブロック700の画素
データと第3フィールド603の複数のフィールド候補
ブロック800の画素データに基づいて求めることがで
きるが、現画像第1セグメントブロック710および現
画像第2セグメントブロック720のそれぞれの動きベ
クトルMV11,MV12を求めるときに算出された第
1セグメント候補ブロック810に対応する複数のディ
ストーションと第2セグメント候補ブロック820に対
応する複数のディストーションとを複数のフィールド候
補ブロック800に対応するように加算し、加算された
複数のディストーションに基づいて求めることができ
る。
Ultimately, one or two optimal motion vectors are selected from the motion vectors obtained in the first field 601 and the second field 602. Incidentally, for example, the motion vector MV1 of the current image field block 700 shown in FIG. Can be calculated based on the pixel data of the field candidate block 800 of the first segment block 710. A plurality of distortions corresponding to the candidate block 810 and a plurality of distortions corresponding to the second segment candidate block 820 are added so as to correspond to the plurality of field candidate blocks 800, and based on the added plurality of distortions. It can be obtained have.

【0033】[0033]

【発明が解決しようとする課題】しかしながら、従来の
動きベクトル探索装置にあっては、現画像第1セグメン
トブロックの動きベクトルを求める第1セグメント動き
ベクトル探索装置と現画像第2セグメントブロックの動
きベクトルを求める第2セグメント動きベクトル探索装
置との2つの回路を構成し、並列動作によって、第1セ
グメント動きベクトル探索装置において現画像第1セグ
メントブロックに対応する複数のディストーションを算
出すると同時に、第2セグメント動きベクトル探索装置
において現画像第2セグメントブロックに対応する複数
のディストーションを算出し、それぞれの動きベクトル
探索装置で算出された第1セグメントブロックのディス
トーションと第2セグメントブロックのディストーショ
ンを加算することにより現画像フィールドブロックに対
応するディストーションを算出するため、回路規模が大
きくなってしまうといった問題があった。
However, in the conventional motion vector searching device, the first segment motion vector searching device for obtaining the motion vector of the current image first segment block and the motion vector of the current image second segment block are obtained. , And a plurality of distortions corresponding to the current image first segment block are calculated in the first segment motion vector search device by a parallel operation. Calculating a plurality of distortions corresponding to the second segment block of the current image in the motion vector search device, and adding the distortion of the first segment block and the distortion of the second segment block calculated by each motion vector search device; To calculate the distortion corresponding to the more current image field blocks, there is a problem that the circuit scale becomes large.

【0034】また、第1セグメントブロックの動きベク
トルを求める動作と第2セグメントブロックの動きベク
トルを求める動作とを並列に処理するため、現画像第1
セグメントブロックおよび現画像第2セグメントブロッ
クのそれぞれの画素データを並列して読み出す信号バン
ド幅、並びに、サーチウィンドウから第1セグメントブ
ロックおよび第2セグメントブロックのそれぞれのセグ
メント候補ブロックの画素データを並列して読み出す信
号バンド幅が必要となるため、回路が複雑になってしま
うといった問題があった。
Further, since the operation for obtaining the motion vector of the first segment block and the operation for obtaining the motion vector of the second segment block are processed in parallel,
The signal bandwidth for reading out the respective pixel data of the segment block and the second segment block of the current image in parallel, and the pixel data of the respective candidate segment blocks of the first segment block and the second segment block from the search window in parallel Since a signal bandwidth to be read is required, there is a problem that the circuit becomes complicated.

【0035】また、従来の動きベクトル探索装置にあっ
ては、回路規模を小さくするため、現画像フィールドブ
ロックの一方のセグメントブロックの動きベクトルを求
めるセグメント動きベクトル探索装置を構成し、まず、
現画像第1セグメントブロックの動きベクトルを求め、
次いで、現画像第2セグメントブロックの動きベクトル
を求めていた。
Further, in the conventional motion vector search device, a segment motion vector search device for obtaining a motion vector of one segment block of the current image field block is configured to reduce the circuit scale.
Find the motion vector of the first segment block of the current image,
Next, the motion vector of the second segment block of the current image has been determined.

【0036】しかしながら、現画像フィールドブロック
の動きベクトルを求める場合には、第1セグメントブロ
ックの動きベクトルを求めるときに算出された第1セグ
メントブロックのディストーションをメモリに記憶して
おき、次いで、第2セグメントブロックのディストーシ
ョンが算出されたときに、メモリから第1セグメントブ
ロックのディストーションを一々読み出し、現画像第1
セグメントのディストーションと現画像第2セグメント
のディストーションを加算して現画像フィールドブロッ
クに対応する動きベクトルを求めるので、現画像第1セ
グメントブロックのディストーションを記憶するメモリ
を構成して回路規模が大きくなってしまうとともに、処
理が複雑になってしまうといった問題があった。
However, when obtaining the motion vector of the current image field block, the distortion of the first segment block calculated when obtaining the motion vector of the first segment block is stored in the memory, and then the second When the distortion of the segment block is calculated, the distortion of the first segment block is read out one by one from the memory, and the distortion of the current image is read.
Since the motion vector corresponding to the current image field block is obtained by adding the distortion of the segment and the distortion of the current image second segment, a memory for storing the distortion of the current image first segment block is configured to increase the circuit scale. In addition, there is a problem that the processing becomes complicated.

【0037】さらに、従来の全点探索法を適用した動き
ベクトル探索方法および装置にあっては、サーチウィン
ドウ内の候補ブロックの数に応じてディストーションを
算出するプロセッサエレメントを回路上に配置する必要
があるので、広い探索範囲を設定して動きベクトルを探
索したい場合には、プロセッサエレメントの数が膨大と
なってしまい、回路が非常に複雑になってしまうといっ
た問題があった。
Further, in the conventional motion vector search method and apparatus to which the all-point search method is applied, it is necessary to arrange a processor element for calculating distortion according to the number of candidate blocks in the search window on a circuit. Therefore, when it is desired to search a motion vector by setting a wide search range, there is a problem that the number of processor elements becomes enormous and the circuit becomes extremely complicated.

【0038】そこで、本発明は、現符号化ブロックの画
素データと位置的に対応するサーチウィンドウの画素デ
ータに基づいてディストーションを算出するプロセッサ
エレメントにフリップフロップ回路を追加するだけで、
現画像第1セグメントブロックの複数のディストーショ
ンと現画像第2セグメントブロックの複数のディストー
ションを時分割処理で算出し、回路を簡素化し、かつ、
回路規模を小さくすることができる動きベクトル探索装
置を提供することを目的とする。
Accordingly, the present invention provides a processor element that calculates a distortion based on pixel data of a search window that is positionally corresponding to pixel data of a current coding block by simply adding a flip-flop circuit.
A plurality of distortions of the first segment block of the current image and a plurality of distortions of the second segment block of the current image are calculated by time-division processing to simplify the circuit, and
It is an object of the present invention to provide a motion vector search device capable of reducing the circuit scale.

【0039】また、本発明は、図81および図82に示
された上方向、下方向および左方向にサーチウィンドウ
内の画素データを転送して保持する画素データ転送保持
機能および転送されたサーチウィンドウの画素データと
現符号化ブロックの画素データとに基づいてディストー
ションを算出するディストーション算出機能の2つの機
能を有するプロセッサエレメントに対して、画素データ
転送保持機能のみを有する中間レジスタを設け、必要な
候補ブロック数に応じたプロセッサエレメントを設ける
とともに、プロセッサエレメントおよび中間レジスタの
総数がサーチウィンドウの画素数に対応するように中間
レジスタを各プロセッサエレメントの間に配置すること
で、プロセッサエレメントの数を増やすことなく、簡略
的な探索方法により探索範囲を広くすることができる動
きベクトル探索装置を提供することを目的とする。
The present invention also provides a pixel data transfer and holding function for transferring and holding pixel data in the search window in the upward, downward and left directions shown in FIGS. 81 and 82, and the transferred search window. For a processor element having two functions of a distortion calculation function of calculating a distortion based on the pixel data of the current coding block and the pixel data of the current coding block, an intermediate register having only a pixel data transfer holding function is provided, and a necessary candidate is provided. Increasing the number of processor elements by providing processor elements according to the number of blocks and arranging intermediate registers between the processor elements so that the total number of processor elements and intermediate registers corresponds to the number of pixels in the search window But with a simple search method And to provide a motion vector search apparatus capable of widening the search range.

【0040】[0040]

【課題を解決するための手段】請求項1記載の発明は、
上記課題を解決するため、インターレース走査方式の動
画像を部分的に構成する現画像フィールドを、前記動画
像を部分的に構成する参照画像フィールドに基づいて予
測するのに用いられる複数の動きベクトルを探索する動
きベクトル探索装置であり、H,L,NおよびMを整数
とするとき、前記現画像フィールドが、(N×2)行M
列の画素からなる現画像フィールドブロックを含み、該
現画像フィールドブロックが、現画像フィールドブロッ
クの上半分のブロックを構成するN行M列の画素からな
る現画像第1セグメントブロックおよび現画像フィール
ドブロックの下半分のブロックを構成するN行M列の画
素からなる現画像第2セグメントブロックからなり、前
記参照画像フィールドが、画素データをそれぞれ有する
複数の画素によって表される(H+N)行L列の画素か
らなるサーチウィンドウを含み、該サーチウィンドウ
が、該サーチウィンドウを部分的に構成するH行L列の
画素からなる上側サーチウィンドウおよび該サーチウィ
ンドウを部分的に構成するH行L列の画素からなる下側
サーチウィンドウを含み、前記サーチウィンドウが、複
数のフィールド候補ブロックを含み、前記上側サーチウ
ィンドウが、前記フィールド候補ブロックを部分的に構
成する第1セグメント候補ブロックを含み、前記下側サ
ーチウィンドウが、前記フィールド候補ブロックを部分
的に構成する第2セグメント候補ブロックを含み、現画
像フィールドブロックと各フィールド候補ブロックが同
一サイズであり、現画像フィールドブロックの現画像第
1セグメントブロックおよび現画像第2セグメントブロ
ックのそれぞれが、各フィールド候補ブロックの第1セ
グメント候補ブロックおよび第2セグメント候補ブロッ
クのそれぞれと同一サイズであり、前記複数の動きベク
トルが、前記現画像フィールドブロックと該現画像フィ
ールドブロックに最も類似したフィールド候補ブロック
との変位を表すフィールド動きベクトルと、現画像第1
セグメントブロックと該現画像第1セグメントブロック
に最も類似した第1セグメント候補ブロックとの変位を
表す第1セグメント動きベクトルと、現画像第2セグメ
ントブロックと該現画像第2セグメントブロックに最も
類似した第2セグメント候補ブロックとの変位を表す第
2セグメント動きベクトルと、を含む動きベクトル探索
装置であって、前記現画像フィールドブロックの画素デ
ータを出力する現画像ブロックデータ出力手段と、前記
サーチウィンドウの画素データを出力するサーチウィン
ドウデータ出力手段と、(H−N+1)×(L−M+
1)個のレジスタを有し、前記サーチウィンドウデータ
出力手段から出力されたサーチウィンドウの画素データ
を入力し、入力された画素データを前記レジスタ間で繰
り返し転送させて各レジスタに保持させるサーチウィン
ドウデータ転送保持手段と、(H−N+1)×(L−M
+1)個以下の演算器を有し、サーチウィンドウデータ
転送手段の各レジスタのそれぞれに保持されたサーチウ
ィンドウの画素データを入力するとともに、現画像ブロ
ックデータ出力手段から現画像フィールドブロックの画
素データを各演算器に入力し、各演算器に、現画像第1
セグメントブロックと各第1セグメント候補ブロックと
の差を表す第1セグメントブロックディストーションお
よび現画像第2セグメントブロックと各第2セグメント
候補ブロックとの差を表す第2セグメントブロックディ
ストーションを時分割演算させるセグメントブロックデ
ィストーション算出手段と、前記サーチウィンドウデー
タ出力手段から出力されたサーチウィンドウの画素デー
タを入力し、入力された画素データを保持して出力する
(H−N+1)個の前記レジスタからなる入力レジスタ
ユニットと、前記サーチウィンドウデータ出力手段から
出力されたサーチウィンドウの画素データを入力し、入
力された画素データを保持して出力する(L−M+2)
個のサイドレジスタデバイスからなるサイドレジスタユ
ニットと、を有し、前記サーチウィンドウ転送保持手段
の各レジスタが前記セグメントブロックディストーショ
ン算出手段の各演算器とともにそれぞれ(H−N+1)
行(L−M+1)列のマトリックス状に想像上配置され
るものとするとき、nを(H−N+1)以下の自然数と
し、mを(L−M+2)以下の自然数とし、前記入力レ
ジスタユニットの各レジスタは、それぞれ(L−M+
1)列目のレジスタに電気的に接続され、(L−M+
1)列目のn行目のレジスタに電気的に接続された入力
レジスタユニットのレジスタを、(L−M+2)列目の
n行目のレジスタと呼ぶとし、前記サイドレジスタユニ
ットの各サイドレジスタデバイスは、それぞれ1行目お
よび(H−N+1)行目のレジスタに電気的に接続さ
れ、m列目の1行目および(H−N+1)行目のレジス
タに電気的に接続されたサイドレジスタデバイスを、m
列目のサイドレジスタデバイスと呼ぶとするとき、2行
目以降のn行目の各レジスタが、それぞれ同列のn−1
行目のレジスタに電気的に接続され、2列目以降のm列
目の各レジスタが、それぞれ同行のm−1列目のレジス
タに電気的に接続され、2列目以降のm列目のサイドレ
ジスタデバイスが、m−1列目のサイドレジスタデバイ
スに電気的に接続され、さらに、前記サーチウィンドウ
データ転送保持手段が、前記サーチウィンドウデータ出
力手段からサーチウィンドウの画素データが転送される
タイミングに同期して、前記第1セグメント候補ブロッ
クの画素データおよび前記第2セグメント候補ブロック
の画素データを、時分割で各サイドレジスタデバイスか
らそれぞれ同列の1行目のレジスタに転送し、同時に、
1行目から(H−N)行目までのn行目の各レジスタか
らそれぞれ同列のn+1行目のレジスタに転送し、同時
に、(H−N+1)行目の各レジスタからそれぞれ同列
のサイドレジスタデバイスに転送する第1転送制御手段
と、前記サーチウィンドウデータ出力手段からサーチウ
ィンドウの画素データが転送されるタイミングに同期し
て、前記第1セグメント候補ブロックの画素データおよ
び第2セグメント候補ブロックの画素データを、時分割
で2列目以降(L−M+2)列目までのm列目の各レジ
スタからそれぞれ同行のm−1列目のレジスタに転送
し、同時に、2列目以降(L−M+2)列目までのm列
目の各サイドレジスタデバイスからそれぞれm−1列目
のサイドレジスタデバイスに転送する第2転送制御手段
と、前記サーチウィンドウデータ出力手段からサーチウ
ィンドウの画素データが転送されるタイミングに同期し
て、第1セグメント候補ブロックの画素データおよび第
2セグメント候補ブロックの画素データを、時分割で1
行目の各レジスタからそれぞれ同列のサイドレジスタデ
バイスに転送し、同時に、2行目から(H−N+1)行
目までのn行目の各レジスタからそれぞれ同列のn−1
行目の各レジスタに転送し、同時に、各サイドレジスタ
デバイスからそれぞれ同列の(H−N+1)行目のレジ
スタに転送する第3転送制御手段と、前記第1転送制御
手段による転送動作を(N−1)回行い、次いで、第2
転送制御手段による転送動作を1回行い、次いで、第3
転送制御手段による転送動作を(N−1)回行い、次い
で、第2転送制御手段による転送動作を1回行い、以
降、これらの転送動作を順次繰り返す第4転送制御手段
と、を有し、前記セグメントブロックディストーション
算出手段が、1列目の演算器に前記第1セグメント候補
ブロックの画素データが初めて入力されるタイミングに
同期して、各演算器に現画像第1セグメントブロックの
1画素分の画素データを現画像ブロックデータ出力手段
から入力するとともに、1列目の演算器に前記第2セグ
メント候補ブロックの画素データが初めて入力されるタ
イミングに同期して、各演算器に現画像第2セグメント
ブロックの1画素分の画素データを現画像ブロックデー
タ出力手段から入力し、以後、前記第4転送制御手段の
それぞれの転送動作に同期して、前記演算器に現画像フ
ィールドブロックの全ての画素データが入力されるま
で、画素データの入力を繰り返す第5転送制御手段と、
該第5転送制御手段によって各演算器に入力されたサー
チウィンドウ内の各第1セグメント候補ブロックの画素
データと現画像第1セグメントブロックの画素データに
基づいて各演算器に第1セグメントブロックディストー
ションを算出させるとともに、前記第5転送制御手段に
より各演算器に入力されたサーチウィンドウ内の各第2
セグメント候補ブロックの画素データと現画像第2セグ
メントブロックの画素データに基づいて、各演算器に第
2セグメントブロックディストーションを算出させるデ
ィストーション算出制御手段と、を有し、さらに、前記
セグメントブロックディストーション算出手段によって
算出された各第1セグメントブロックディストーション
および各第2セグメントブロックディストーションを加
算することによって、現画像フィールドブロックと各フ
ィールド候補ブロックとの差を表すフィールドブロック
ディストーションを算出するフィールドブロックディス
トーション算出手段と、前記セグメントブロックディス
トーション算出手段によって算出された第1セグメント
ブロックディストーションのうちの最小の第1セグメン
トブロックディストーションを検出し、該最小の第1セ
グメントブロックディストーションに対応する第1セグ
メント候補ブロックを特定するとともに、前記セグメン
トブロックディストーション算出手段によって算出され
た第2セグメントブロックディストーションのうちの最
小の第2セグメントブロックディストーションを検出
し、該最小の第2セグメントブロックディストーション
に対応する第2セグメント候補ブロックを特定するセグ
メントブロック特定手段と、前記フィールドブロックデ
ィストーション算出手段によって算出されたフィールド
ブロックディストーションのうちの最小のフィールドブ
ロックディストーションを検出し、該最小のフィールド
ブロックディストーションに対応するフィールド候補ブ
ロックを特定するフィールドブロック特定手段と、を有
することを特徴とする。
According to the first aspect of the present invention,
In order to solve the above-mentioned problem, a plurality of motion vectors used to predict a current image field partially constituting a moving image of an interlaced scanning method based on a reference image field partially constituting the moving image are obtained. A motion vector search device for searching, where H, L, N, and M are integers, and the current image field is (N × 2) rows M
A current image field block consisting of pixels in a column, the current image field block being a current image first segment block and a current image field block consisting of N rows and M columns of pixels forming an upper half block of the current image field block , A current image second segment block composed of N rows and M columns of pixels forming a lower half block, and the reference image field is of (H + N) rows and L columns represented by a plurality of pixels each having pixel data. A search window composed of pixels, wherein the search window is composed of an upper search window composed of pixels of H rows and L columns partially constituting the search window and a pixel of H rows and L columns partially composed of the search window. A lower search window, wherein the search window comprises a plurality of field candidates. A second segment candidate block including a lock, wherein the upper search window includes a first segment candidate block partially constituting the field candidate block, and wherein the lower search window includes a first segment candidate block partially constituting the field candidate block. And the current image field block and each field candidate block are the same size, and each of the current image first segment block and the current image second segment block of the current image field block is the first segment candidate block of each field candidate block. And the second segment candidate block is the same size as each of the second segment candidate blocks, and the plurality of motion vectors represent a displacement between the current image field block and a field candidate block most similar to the current image field block. And, the current image first
A first segment motion vector representing a displacement between the segment block and a first segment candidate block most similar to the current image first segment block, and a first segment motion vector representing the displacement of the current image second segment block and the most similar to the current image second segment block. A second segment motion vector representing a displacement from a two-segment candidate block, a current image block data output means for outputting pixel data of the current image field block, and a pixel of the search window. A search window data output means for outputting data, and (H-N + 1) × (L-M +
1) Search window data having a plurality of registers, inputting the pixel data of the search window output from the search window data output means, and causing the input pixel data to be repeatedly transferred between the registers and held in each register Transfer holding means, and (H−N + 1) × (L−M
+1) or less arithmetic units, and inputs the pixel data of the search window held in each register of the search window data transfer means, and outputs the pixel data of the current image field block from the current image block data output means. Input to each arithmetic unit, and the first image of the current image is input to each arithmetic unit.
A segment block for time-divisionally calculating a first segment block distortion representing a difference between a segment block and each first segment candidate block and a second segment block distortion representing a difference between a current image second segment block and each second segment candidate block. A distortion calculating unit, and an input register unit including (H−N + 1) registers for receiving pixel data of the search window output from the search window data output unit, and holding and outputting the input pixel data; , Input the pixel data of the search window output from the search window data output means, and hold and output the input pixel data (LM + 2)
And a side register unit comprising a plurality of side register devices, wherein each of the registers of the search window transfer holding unit is (H−N + 1) together with each of the arithmetic units of the segment block distortion calculating unit.
When imaginarily arranged in a matrix of rows (L−M + 1) columns, n is a natural number equal to or less than (H−N + 1), m is a natural number equal to or less than (L−M + 2), and Each register is (LM + M +
1) It is electrically connected to the register in the column, and (L−M +
1) The register of the input register unit electrically connected to the register of the n-th row of the column is referred to as the register of the n-th row of the (LM + 2) -th column. Is a side register device electrically connected to the registers in the first and (H-N + 1) th rows, respectively, and electrically connected to the registers in the first and (H-N + 1) th rows in the m-th column. To m
When it is called a side register device in the column, each register in the nth row from the second row is n-1 in the same column.
The registers in the m-th column from the second column are electrically connected to the registers in the (m-1) -th column in the same row, and the registers in the m-th column in the second and subsequent columns are electrically connected to the registers in the row. The side register device is electrically connected to the m-1th column side register device, and further, the search window data transfer holding unit is configured to control the timing at which pixel data of the search window is transferred from the search window data output unit. Synchronously, the pixel data of the first segment candidate block and the pixel data of the second segment candidate block are transferred in time division from each side register device to the first row register in the same column.
The data is transferred from the registers in the n-th row from the first row to the (H-N) th row to the registers in the (n + 1) -th row in the same column. At the same time, the side registers in the (H-N + 1) -th row are respectively in the same column. First transfer control means for transferring to the device, and pixel data of the first segment candidate block and pixels of the second segment candidate block in synchronization with a timing at which search window pixel data is transferred from the search window data output means. The data is transferred from the m-th register to the (m−1) th column in the same row from the mth column to the (m−2) th column in time division, and at the same time, the data is transferred from the second column to the (m−2 + 2) th column. ) Second transfer control means for transferring from each side register device in the mth column up to the column to the side register device in the (m-1) th column; Dough data output means search window pixel data in synchronism with the timing to be transferred from the pixel data of the pixel data and the second segment candidate block of the first segment candidate blocks, in a time division 1
Each of the registers in the row is transferred to the side register device in the same column, and at the same time, from each of the registers in the n-th row from the second row to the (H-N + 1) th row, n−1 in the same column are transferred.
The third transfer control means for transferring the data to each register in the row and simultaneously transferring the data from each side register device to the register in the (H−N + 1) th row in the same column, and the transfer operation by the first transfer control means to (N -1) times and then the second
The transfer operation by the transfer control means is performed once, and then the third
A transfer operation by the transfer control means is performed (N-1) times, a transfer operation by the second transfer control means is performed once, and thereafter, a fourth transfer control means that repeats these transfer operations sequentially is provided. The segment block distortion calculation means may synchronize one pixel of the current image first segment block with each arithmetic unit in synchronization with the timing at which the pixel data of the first segment candidate block is first input to the arithmetic unit in the first column. The pixel data is input from the current image block data output means, and the second image segment of the current image is supplied to each arithmetic unit in synchronization with the first input of the pixel data of the second segment candidate block to the arithmetic unit in the first column. The pixel data for one pixel of the block is inputted from the current image block data output means, and thereafter, the respective transfer operations of the fourth transfer control means are performed. Synchronously, until all the pixel data of the current image field blocks to the arithmetic unit is input, a fifth transfer control means to repeat the input of the pixel data,
Based on the pixel data of each first segment candidate block and the pixel data of the current image first segment block in the search window input to each arithmetic unit by the fifth transfer control means, the first segment block distortion is given to each arithmetic unit. And the second transfer control means in the search window input to each computing unit by the fifth transfer control means.
A distortion calculation control unit for causing each arithmetic unit to calculate a second segment block distortion based on the pixel data of the segment candidate block and the pixel data of the second segment block of the current image, further comprising the segment block distortion calculation unit A field block distortion calculating means for calculating a field block distortion representing a difference between a current image field block and each field candidate block by adding each of the first segment block distortion and each second segment block distortion calculated by: A minimum first segment block distortion among the first segment block distortions calculated by the segment block distortion calculating means; A first segment candidate block corresponding to the minimum first segment block distortion, and a minimum second segment block of the second segment block distortion calculated by the segment block distortion calculating means. A segment block specifying unit that detects distortion and specifies a second segment candidate block corresponding to the minimum second segment block distortion; and a minimum field block of the field block distortion calculated by the field block distortion calculating unit. A field block that detects distortion and specifies a field candidate block corresponding to the minimum field block distortion And having a constant section.

【0041】請求項2記載の発明は、上記課題を解決す
るため、前記セグメントブロックディストーション算出
手段が(H−N+1)×(L−M+1)個の演算器を有
することを特徴とする。請求項3記載の発明は、上記課
題を解決するため、前記マトリックス状に配置された同
行同列の前記セグメントブロックディストーション算出
手段の各演算器と前記サーチウィンドウデータ転送手段
の各レジスタとによって、それぞれプロセッサエレメン
トが構成されることを特徴とする。
According to a second aspect of the present invention, in order to solve the above problem, the segment block distortion calculating means has (H−N + 1) × (L−M + 1) arithmetic units. According to a third aspect of the present invention, in order to solve the above-mentioned problems, each processor of the segment block distortion calculation means and the registers of the search window data transfer means, which are arranged in the same matrix and are arranged in the same row, respectively, have a processor. An element is configured.

【0042】請求項4記載の発明は、上記課題を解決す
るため、前記サイドレジスタユニットの各サイドレジス
タデバイスが、それぞれ同列の1行目のレジスタに電気
的に接続された第1サイドレジスタデバイスと、それぞ
れ同列の(H−N+1)行目のレジスタに電気的に接続
された第2サイドレジスタデバイスとから構成され、該
第1サイドレジスタデバイスが、直列に電気的に接続さ
れた(N−1)個の前記レジスタを有し、一端のレジス
タが同列の1行目のレジスタに電気的に接続され、前記
第2サイドレジスタデバイスが、直列に電気的に接続さ
れた(N−1)個の前記レジスタを有し、一端のレジス
タが同列の(H−N+1)行目のレジスタに電気的に接
続されることを特徴とする。
According to a fourth aspect of the present invention, in order to solve the above-mentioned problem, each side register device of the side register unit includes a first side register device electrically connected to a register in a first row of the same column. , And second side register devices electrically connected to the (H−N + 1) th row registers in the same column, and the first side register devices are electrically connected in series (N−1). ) Registers, one end of which is electrically connected to the first row of registers in the same column, and wherein the second side register device is electrically connected in series with (N-1) number of registers. The semiconductor device includes the register, and a register at one end is electrically connected to a register in the (H−N + 1) th row in the same column.

【0043】請求項5記載の発明は、上記課題を解決す
るため、前記サイドレジスタユニットの各サイドレジス
タデバイスが、それぞれ直列に電気的に接続された(N
−1)個の前記レジスタを有し、一端のレジスタが同列
の1行目のレジスタに電気的に接続され、他端のレジス
タが同列の(H−N+1)行目のレジスタに電気的に接
続されることを特徴とする。
According to a fifth aspect of the present invention, in order to solve the above problem, each side register device of the side register unit is electrically connected in series with each other (N
-1) registers, one end of which is electrically connected to the first row of registers in the same column, and the other end of which is electrically connected to the (H-N + 1) th row of registers in the same column. It is characterized by being performed.

【0044】請求項6記載の発明は、上記課題を解決す
るため、前記サーチウィンドウデータ転送保持手段の各
レジスタが、入力端子および出力端子を有し、他のレジ
スタから画素データを入力端子を通して入力して出力端
子を通して出力する第1フリップフロップと、入力端子
および出力端子を有し、第1フリップフロップから画素
データを入力端子を通して入力して出力端子を通して出
力する第2フリップフロップと、からなり、前記セグメ
ントブロックディストーション算出手段の各演算器が、
前記レジスタの第2フリップフロップから画素データを
入力して、互いに位置的に対応する現画像第1セグメン
トブロックの画素データと第1セグメント候補ブロック
の画素データとの差を表す第1局所ディストーションを
算出するとともに、互いに位置的に対応する現画像第2
セグメントブロックの画素データと第2セグメント候補
ブロックの画素データとの差を表す第2局所ディストー
ションを算出する局所ディストーション算出ユニット
と、局所ディストーション算出ユニットによって算出さ
れた第1セグメント候補ブロックに対応する第1局所デ
ィストーションの総和を算出して前記第1セグメントブ
ロックディストーションを算出するとともに、局所ディ
ストーション算出ユニットによって算出された第2セグ
メント候補ブロックに対応する第2局所ディストーショ
ンの総和を算出して前記第2セグメントブロックディス
トーションを算出する局所ディストーション総和ユニッ
トと、を有し、該局所ディストーション総和ユニット
が、第1,第2入力端子および出力端子を有し、第1入
力端子および第2入力端子に入力されたデータを加算し
て出力端子を通して出力する加算器と、入力端子および
出力端子を有し、加算器からデータを入力端子を通して
入力して出力端子を通して出力する第1フリップフロッ
プと、入力端子および出力端子を有し、第1フリップフ
ロップからデータを入力端子を通して入力して出力端子
を通して出力する第2フリップフロップと、を有し、局
所ディストーション総和ユニットの各加算器が、局所デ
ィストーション算出ユニットから第1局所ディストーシ
ョンおよび第2局所ディストーションを第1入力端子を
通して入力するとともに、局所ディストーション総和ユ
ニットの第2フリップフロップからデータを第2入力端
子を通して入力し、全ての前記レジスタの第1および第
2フリップフロップ、並びに、全ての前記局所ディスト
ーション総和ユニットの第1および第2フリップフロッ
プが、同じクロックパルス信号によって動作することを
特徴とする。
According to a sixth aspect of the present invention, in order to solve the above problem, each register of the search window data transfer holding means has an input terminal and an output terminal, and inputs pixel data from another register through the input terminal. And a second flip-flop having an input terminal and an output terminal, inputting pixel data from the first flip-flop through the input terminal, and outputting the pixel data through the output terminal. Each computing unit of the segment block distortion calculation means,
The pixel data is input from the second flip-flop of the register to calculate a first local distortion representing a difference between the pixel data of the first segment block of the current image and the pixel data of the first segment candidate block corresponding to each other in position. And the second image corresponding to each other
A local distortion calculating unit that calculates a second local distortion representing a difference between the pixel data of the segment block and the pixel data of the second segment candidate block, and a first distortion corresponding to the first segment candidate block calculated by the local distortion calculating unit. The first segment block distortion is calculated by calculating a sum of local distortions, and the second segment block is calculated by calculating a sum of second local distortions corresponding to the second segment candidate blocks calculated by the local distortion calculation unit. A local distortion summation unit for calculating distortion, wherein the local distortion summation unit has first and second input terminals and an output terminal, and has a first input terminal and a second input terminal. An adder for adding data input to the child and outputting the data through an output terminal; a first flip-flop having an input terminal and an output terminal, receiving data from the adder through an input terminal and outputting the data through an output terminal; A second flip-flop having an input terminal and an output terminal, and inputting data from the first flip-flop through the input terminal and outputting the data through the output terminal, wherein each adder of the local distortion summation unit calculates a local distortion. A first local distortion and a second local distortion are input from the unit through a first input terminal, and data is input from a second flip-flop of the local distortion summation unit through a second input terminal, and the first and second local distortions of all the registers are input. 2 flip-flops and everything before First and second flip-flop of the local distortion summation unit, characterized in that it operates by the same clock pulse signal.

【0045】請求項7記載の発明は、上記課題を解決す
るため、前記セグメントブロックディストーション算出
手段の各演算器が、前記局所ディストーション総和ユニ
ットによって算出された第1および第2セグメントブロ
ックディストーションを前記セグメントブロック特定手
段に転送するとともに、前記フィールドブロックディス
トーション算出手段に転送するディストーション転送ユ
ニットを有し、該ディストーション転送ユニットが、入
力端子および出力端子を有し、前記局所ディストーショ
ン総和ユニットによって算出された第1および第2セグ
メントブロックディストーションを入力端子を通して入
力して出力端子を通して出力する第1フリップフロップ
と、入力端子および出力端子を有し、第1フリップフロ
ップから第1および第2セグメントブロックディストー
ションを入力端子を通して入力して前記セグメントブロ
ック特定手段およびフィールドブロックディストーショ
ン算出手段に出力端子を通して出力する第2フリップフ
ロップと、を有し、全ての前記レジスタの第1および第
2フリップフロップ、全ての前記ディストーション総和
ユニットの第1および第2フリップフロップ、並びに、
全ての前記ディストーション転送ユニットの第1および
第2フリップフロップが、同じクロックパルス信号によ
って動作することを特徴とする。
According to a seventh aspect of the present invention, in order to solve the above-mentioned problem, each of the arithmetic units of the segment block distortion calculating means converts the first and second segment block distortions calculated by the local distortion summation unit into the segment data. A distortion transfer unit for transferring to the block specifying means and for transferring to the field block distortion calculating means, wherein the distortion transfer unit has an input terminal and an output terminal, and the first signal is calculated by the local distortion summation unit. And a first flip-flop for inputting the second segment block distortion through an input terminal and outputting the same through an output terminal; and an input terminal and an output terminal. A second flip-flop that inputs a second segment block distortion through an input terminal and outputs the second segment block distortion through an output terminal to the segment block specifying unit and the field block distortion calculating unit, and the first and second flip-flops of all the registers First and second flip-flops of all the distortion summation units, and
The first and second flip-flops of all the distortion transfer units are operated by the same clock pulse signal.

【0046】請求項8記載の発明は、上記課題を解決す
るため、前記フィールドブロックディストーション算出
手段が、前記サーチウィンドウ内で垂直方向に並んだフ
ィールド候補ブロックと同数設けられ、セグメントブロ
ックディストーション算出手段から該フィールド候補ブ
ロックの第1セグメント候補ブロックに対応する第1セ
グメントブロックディストーションをそれぞれ同時に入
力して保持するフリップフロップと、該フリップフロッ
プと同数設けられ、サーチウィンドウ内で垂直方向に並
んだフィールド候補ブロックの第2セグメント候補ブロ
ックに対応する第2セグメントブロックディストーショ
ンをそれぞれ同時に入力するとともに、セグメントブロ
ックディストーション算出手段の各フリップフロップに
保持された第1セグメントブロックディストーションを
入力し、入力された第1セグメントブロックディストー
ションと第2セグメントブロックディストーションとを
加算してフィールドブロックディストーションを算出す
る加算器と、を有することを特徴とする。
According to an eighth aspect of the present invention, in order to solve the above-mentioned problem, the field block distortion calculating means is provided in the same number as the field candidate blocks vertically arranged in the search window. Flip-flops for simultaneously inputting and holding first segment block distortions respectively corresponding to the first segment candidate blocks of the field candidate blocks, and field candidate blocks provided in the same number as the flip-flops and arranged vertically in the search window , And simultaneously inputs the second segment block distortions corresponding to the second segment candidate blocks of the first and second segments, respectively. Enter the instrument block distortion, and having a an adder for calculating a field block distortion by adding the first segment block distortion and the second segment block distortion input.

【0047】請求項9記載の発明は、上記課題を解決す
るため、前記フィールドブロックディストーション算出
手段が、前記サーチウィンドウ内で水平方向に並んだフ
ィールド候補ブロックと同数設けられ、セグメントブロ
ックディストーション算出手段から該フィールド候補ブ
ロックの第1セグメント候補ブロックに対応する第1セ
グメントブロックディストーションをそれぞれ同時に入
力して保持するフリップフロップと、該フリップフロッ
プと同数設けられ、サーチウィンドウ内で水平方向に並
んだフィールド候補ブロックの第2セグメント候補ブロ
ックに対応する第2セグメントブロックディストーショ
ンをそれぞれ同時に入力するとともに、セグメントブロ
ックディストーション算出手段の各フリップフロップに
保持された第1セグメントブロックディストーションを
入力し、入力された第1セグメントブロックディストー
ションと第2セグメントブロックディストーションとを
加算してフィールドブロックディストーションを算出す
る加算器と、を有することを特徴とする。
According to a ninth aspect of the present invention, in order to solve the above problem, the field block distortion calculating means is provided in the same number as the field candidate blocks arranged in the horizontal direction in the search window. Flip-flops for simultaneously inputting and holding first segment block distortions respectively corresponding to the first segment candidate blocks of the field candidate blocks; and field candidate blocks provided in the same number as the flip-flops and arranged horizontally in the search window , And simultaneously inputs the second segment block distortions corresponding to the second segment candidate blocks of the first and second segments, respectively. Enter the instrument block distortion, and having a an adder for calculating a field block distortion by adding the first segment block distortion and the second segment block distortion input.

【0048】請求項10記載の発明は、上記課題を解決
するため、前記セグメントブロック特定手段が、セグメ
ントブロックディストーション算出手段から、前記サー
チウィンドウ内で垂直方向に一列に並んだ第1セグメン
ト候補ブロックに対応する第1セグメントブロックディ
ストーションに対して、最も外側の列の第1セグメント
ブロックディストーションをそれぞれ同時に入力すると
ともに、前記サーチウィンドウ内で垂直方向に一列に並
んだ第2セグメント候補ブロックに対応する第2セグメ
ントブロックディストーションに対して、最も外側の列
の第2セグメントブロックディストーションをそれぞれ
同時に入力し、前記サーチウィンドウ内の全ての第1お
よび第2セグメントブロックディストーションが入力さ
れるまで、前記サーチウィンドウの外側の列から順次列
毎に第1セグメントブロックディストーションおよび第
2セグメントブロックディストーションを時分割で入力
し、入力された全ての第1セグメントブロックディスト
ーションの中から最小の第1セグメントブロックディス
トーションを検出するとともに、入力された全ての第2
セグメントブロックディストーションの中から最小の第
2セグメントブロックディストーションを検出すること
を特徴とする。
According to a tenth aspect of the present invention, in order to solve the above-mentioned problem, the segment block specifying means may convert the segment block distortion calculating means into the first segment candidate blocks vertically aligned in the search window. For the corresponding first segment block distortion, the first segment block distortions in the outermost row are simultaneously inputted, respectively, and the second segment block corresponding to the second segment candidate block vertically aligned in the search window is input. For the segment block distortion, the second segment block distortions in the outermost row are simultaneously input, respectively, until the first and second segment block distortions in the search window have been input. The first segment block distortion and the second segment block distortion are sequentially input for each column from the column outside the window in a time-division manner, and the minimum first segment block distortion is input from all the input first segment block distortions. Detect and detect all second
A minimum second segment block distortion is detected from the segment block distortions.

【0049】請求項11記載の発明は、上記課題を解決
するため、前記セグメントブロック特定手段が、セグメ
ントブロックディストーション算出手段から、前記サー
チウィンドウ内で水平方向に一列に並んだ第1セグメン
ト候補ブロックに対応する第1セグメントブロックディ
ストーションに対して、最も外側の行の第1セグメント
ブロックディストーションをそれぞれ同時に入力すると
ともに、前記サーチウィンドウ内で水平方向に一行に並
んだ第2セグメント候補ブロックに対応する第2セグメ
ントブロックディストーションに対して、最も外側の行
の第2セグメントブロックディストーションをそれぞれ
同時に入力し、前記サーチウィンドウ内の全ての第1お
よび第2セグメントブロックディストーションが入力さ
れるまで、前記サーチウィンドウの外側の行から順次行
毎に第1セグメントブロックディストーションおよび第
2セグメントブロックディストーションを時分割で入力
し、入力された全ての第1セグメントブロックディスト
ーションの中から最小の第1セグメントブロックディス
トーションを検出するとともに、入力された全ての第2
セグメントブロックディストーションの中から最小の第
2セグメントブロックディストーションを検出すること
を特徴とする。
According to an eleventh aspect of the present invention, in order to solve the above-mentioned problem, the segment block specifying means converts the segment block distortion calculating means into a first segment candidate block horizontally aligned in the search window. For the corresponding first segment block distortion, the first segment block distortions of the outermost row are simultaneously input, respectively, and the second segment block corresponding to the second segment candidate block arranged in one row in the search window in the horizontal direction is simultaneously input. For the segment block distortion, the second segment block distortions in the outermost row are respectively input simultaneously, and the sub-sampling is performed until all the first and second segment block distortions in the search window are input. The first segment block distortion and the second segment block distortion are input in a time-division manner for each row sequentially from the row outside the multi-window, and a minimum first segment block distortion is input from all the input first segment block distortions. Detect and detect all second
A minimum second segment block distortion is detected from the segment block distortions.

【0050】請求項12記載の発明は、上記課題を解決
するため、少なくともひとつの前記演算器を有する演算
器およびレジスタからなる行のそれぞれの行の一端に位
置する演算器の前記ディストーション転送ユニットが、
前記フィールドブロックディストーション算出手段およ
びセグメントブロック特定手段に電気的に接続され、該
ディストーション転送ユニットが、前記フィールドブロ
ックディストーション算出手段およびセグメントブロッ
ク特定手段に電気的に接続されたそれぞれのディストー
ション転送ユニットから前記フィールドブロックディス
トーション算出手段およびセグメントブロック特定手段
にそれぞれの第1および第2セグメントブロックディス
トーションを転送するとともに、前記フィールドブロッ
クディストーション算出手段およびセグメントブロック
特定手段に向けて他の演算器のディストーション転送ユ
ニットから同行の隣の演算器のディストーション転送ユ
ニットに順次第1および第2セグメントブロックディス
トーションを転送することを特徴とする。
According to a twelfth aspect of the present invention, in order to solve the above-mentioned problem, the distortion transfer unit of the arithmetic unit located at one end of each of the rows of the arithmetic unit having at least one of the arithmetic units and the register is provided. ,
The field block distortion calculating means and the segment block specifying means are electrically connected to each other, and the distortion transfer unit is electrically connected to the field block distortion calculating means and the segment block specifying means. The first and second segment block distortions are respectively transferred to the block distortion calculating means and the segment block specifying means, and the distortion transfer unit of another arithmetic unit is sent to the field block distortion calculating means and the segment block specifying means from the distortion transfer unit. Transfer the first and second segment block distortions sequentially to the distortion transfer unit of the next computing unit And wherein the Rukoto.

【0051】請求項13記載の発明は、上記課題を解決
するため、少なくともひとつの前記演算器を有する演算
器およびレジスタからなる列のそれぞれの列の一端に位
置する演算器の前記ディストーション転送ユニットが、
前記フィールドブロックディストーション算出手段およ
びセグメントブロック特定手段に電気的に接続され、該
ディストーション転送ユニットが、前記フィールドブロ
ックディストーション算出手段およびセグメントブロッ
ク特定手段に電気的に接続されたそれぞれのディストー
ション転送ユニットから前記フィールドブロックディス
トーション算出手段およびセグメントブロック特定手段
にそれぞれの第1および第2セグメントブロックディス
トーションを転送するとともに、前記フィールドブロッ
クディストーション算出手段およびセグメントブロック
特定手段に向けて他の演算器のディストーション転送ユ
ニットから同列の隣の演算器のディストーション転送ユ
ニットに順次第1および第2セグメントブロックディス
トーションを転送することを特徴とする。
According to a thirteenth aspect of the present invention, in order to solve the above-mentioned problems, the distortion transfer unit of the arithmetic unit which is located at one end of each of the columns of the arithmetic unit having at least one of the arithmetic units and the register is provided. ,
The field block distortion calculating means and the segment block specifying means are electrically connected to each other, and the distortion transfer unit is electrically connected to the field block distortion calculating means and the segment block specifying means. The first and second segment block distortions are transferred to the block distortion calculating means and the segment block specifying means, respectively, and are transmitted from the distortion transfer unit of another arithmetic unit to the field block distortion calculating means and the segment block specifying means in the same manner. Transfer the first and second segment block distortions sequentially to the distortion transfer unit of the next computing unit And wherein the Rukoto.

【0052】請求項14記載の発明は、上記課題を解決
するため、前記現画像フィールドブロックを第1現画像
フィールドブロックと呼ぶとともに、前記サーチウィン
ドウを第1サーチウィンドウと呼び、該第1現画像フィ
ールドブロックの水平方向に隣接する現画像フィールド
ブロックを第2現画像フィールドブロックと呼ぶととも
に、前記第2現画像フィールドブロックに対応するよう
に該第1サーチウィンドウをM画素分水平方向にシフト
したサーチウィンドウを第2サーチウィンドウと呼ぶと
するとき、前記サーチウィンドウデータ出力手段が、第
2サーチウィンドウの画素データのうち、第1サーチウ
ィンドウと第2サーチウィンドウとで共通する画素デー
タを除いた残りの画素データを、第1サーチウィンドウ
の画素データに続けて順次出力するとともに、前記現画
像ブロックデータ出力手段が、前記第5転送制御手段の
転送動作に基づいて第2現画像フィールドブロックの画
素データを第1現画像フィールドブロックの画素データ
に続けて順次出力し、前記第2サーチウィンドウの画素
データと第2現画像フィールドブロックの画素データに
基づいて前記セグメントブロックディストーション算出
制御手段による第1および第2セグメントブロックディ
ストーションの算出が終了する前に、前記第1サーチウ
ィンドウの画素データと前記第1現画像フィールドブロ
ックの画素データに基づいて算出された全ての第1およ
び第2セグメントブロックディストーションが前記セグ
メントブロックディストーション算出手段によって前記
フィールドブロックディストーション算出手段およびセ
グメントブロック特定手段に転送されることを特徴とす
る。
According to a fourteenth aspect of the present invention, in order to solve the above problem, the current image field block is referred to as a first current image field block, and the search window is referred to as a first search window. A current image field block horizontally adjacent to the field block is referred to as a second current image field block, and the first search window is horizontally shifted by M pixels to correspond to the second current image field block. When the window is referred to as a second search window, the search window data output means removes the remaining pixel data of the second search window excluding the pixel data common to the first search window and the second search window. Pixel data follows the pixel data of the first search window. The current image block data output means sequentially outputs the pixel data of the second current image field block to the pixel data of the first current image field block based on the transfer operation of the fifth transfer control means. Outputting the first and second segment block distortions by the segment block distortion calculation control means based on the pixel data of the second search window and the pixel data of the second current image field block. All the first and second segment block distortions calculated based on the pixel data of one search window and the pixel data of the first current image field block are converted by the segment block distortion calculating means into the field block distortion. Characterized in that it is transferred to the calculating means and the segment block specifying means.

【0053】[0053]

【作用】請求項1記載の発明では、まず、サーチウィン
ドウデータ出力手段によって、サーチウィンドウのう
ち、第1セグメント候補ブロックの画素データと第2セ
グメント候補ブロックの画素データとが順次出力され
る。次に、前記サーチウィンドウデータ転送保持手段
が、第1転送制御手段によって、前記サーチウィンドウ
データ出力手段からサーチウィンドウの画素データが転
送されるタイミングに同期して、第1セグメント候補ブ
ロックの画素データおよび第2セグメント候補ブロック
の画素データを、時分割で各サイドレジスタデバイスか
らそれぞれ同列の1行目のレジスタに転送し、同時に、
1行目から(H−N)行目までのn行目の各レジスタか
らそれぞれ同列のn+1行目のレジスタに転送し、同時
に、(H−N+1)行目の各レジスタからそれぞれ同列
のサイドレジスタデバイスに転送する。
According to the present invention, first, the search window data output means sequentially outputs the pixel data of the first segment candidate block and the pixel data of the second segment candidate block in the search window. Next, the search window data transfer holding unit is configured to control the first transfer control unit to synchronize the pixel data of the first segment candidate block with the pixel data of the first segment candidate block in synchronization with the transfer of the search window pixel data from the search window data output unit. The pixel data of the second segment candidate block is transferred from each side register device to the first row register in the same column in a time-division manner, and at the same time,
Each of the registers in the n-th row from the first row to the (H-N) -th row is transferred to the register in the (n + 1) -th row in the same column. Transfer to device.

【0054】次に、前記サーチウィンドウデータ転送制
御手段が、第2転送制御手段によって、前記サーチウィ
ンドウデータ出力手段からサーチウィンドウの画素デー
タが転送されるタイミングに同期して、第1セグメント
候補ブロックの画素データおよび第2セグメント候補ブ
ロックの画素データを、時分割で2列目以降(L−M+
2)列目までのm列目の各レジスタからそれぞれ同行の
m−1列目のレジスタに転送し、同時に、2列目以降
(L−M+2)列目までのm列目の各サイドレジスタデ
バイスからそれぞれm−1列目のサイドレジスタデバイ
スに転送する。
Next, the search window data transfer control means causes the second transfer control means to synchronize the first segment candidate block with the search window data output means in synchronization with the pixel data of the search window. The pixel data and the pixel data of the second segment candidate block are divided into the second and subsequent columns (LM−M +
2) Each register in the m-th column up to the column is transferred to the register in the (m-1) -th column in the same row, and at the same time, each side register device in the m-th column from the second column to the (LM + 2) th column Are transferred to the side register devices in the (m-1) th column.

【0055】次に、前記サーチウィンドウデータ転送制
御手段が、第3転送制御手段によって、前記サーチウィ
ンドウデータ出力手段からサーチウィンドウの画素デー
タが転送されるタイミングに同期して、第1セグメント
候補ブロックの画素データおよび第2セグメント候補ブ
ロックの画素データを、時分割で1行目の各レジスタか
らそれぞれ同列のサイドレジスタデバイスに転送し、同
時に、2行目から(H−N+1)行目までのn行目の各
レジスタからそれぞれ同列のn−1行目の各レジスタに
転送し、同時に、各サイドレジスタデバイスからそれぞ
れ同列の(H−N+1)行目のレジスタに転送する。
Next, the search window data transfer control means causes the third transfer control means to synchronize the first segment candidate block with the timing at which the pixel data of the search window is transferred from the search window data output means. The pixel data and the pixel data of the second segment candidate block are time-divisionally transferred from the registers in the first row to the side register devices in the same column, and simultaneously, the n rows from the second row to the (H−N + 1) th row Then, the data is transferred from each register to the (n−1) th row in the same column, and simultaneously, from each side register device to the (H−N + 1) th row in the same column.

【0056】次に、前記サーチウィンドウデータ転送制
御手段が、第2転送制御手段によって、前記サーチウィ
ンドウデータ出力手段からサーチウィンドウの画素デー
タが転送されるタイミングに同期して、第1セグメント
候補ブロックの画素データおよび第2セグメント候補ブ
ロックの画素データを、時分割で2列目以降(L−M+
2)列目までのm列目の各レジスタからそれぞれ同行の
m−1列目のレジスタに画素データを転送し、同時に、
2列目以降(L−M+2)列目までのm列目の各サイド
レジスタデバイスからそれぞれm−1列目のサイドレジ
スタデバイスに画素データを転送する。
Next, the search window data transfer control means causes the second transfer control means to synchronize the first segment candidate block with the timing at which the search window pixel data is transferred from the search window data output means. The pixel data and the pixel data of the second segment candidate block are divided into the second and subsequent columns (LM−M +
2) The pixel data is transferred from each of the m-th register up to the column to the (m-1) -th register in the same row,
The pixel data is transferred from the m-th column side register device of the second column to the (LM + 2) th column to the (m-1) th column side register device.

【0057】次に、前記サーチウィンドウデータ転送制
御手段が、第4転送制御手段によって、前記第1転送制
御手段による転送動作を(N−1)回行い、次いで、第
2転送制御手段による転送動作を1回行い、次いで、第
3転送制御手段による転送動作を(N−1)回行い、次
いで、第2転送制御手段による転送動作を1回行い、以
降、これらの転送動作を順次繰り返す。
Next, the search window data transfer control means performs the transfer operation by the first transfer control means (N-1) times by the fourth transfer control means, and then performs the transfer operation by the second transfer control means. Is performed once, then the transfer operation by the third transfer control means is performed (N-1) times, then the transfer operation by the second transfer control means is performed once, and thereafter these transfer operations are sequentially repeated.

【0058】次に、前記セグメントブロックディストー
ション算出手段が、第5転送制御手段によって、1列目
の演算器に前記サーチウィンドウの第1セグメント候補
ブロックの画素データが初めて入力されるタイミングに
同期して、各演算器に現画像第1セグメントブロックの
1画素分の画素データを現画像ブロックデータ出力手段
から入力するとともに、1列目の演算器に前記サーチウ
ィンドウの第2セグメント候補ブロックの画素データが
初めて入力されるタイミングに同期して、各演算器に現
画像第2セグメントブロックの1画素分の画素データを
現画像ブロックデータ出力手段から入力し、以後、前記
第4転送制御手段のそれぞれの転送動作に同期して、前
記演算器に現画像フィールドブロックの全ての画素デー
タが入力されるまで、画素データの入力を繰り返す。
Next, the segment block distortion calculating means is synchronized by the fifth transfer control means with the timing when the pixel data of the first segment candidate block of the search window is first input to the arithmetic unit in the first column. The pixel data of one pixel of the first segment block of the current image is input to each arithmetic unit from the current image block data output means, and the pixel data of the second segment candidate block of the search window is input to the arithmetic unit in the first column. In synchronization with the input timing for the first time, pixel data of one pixel of the current image second segment block is input from the current image block data output means to each arithmetic unit, and thereafter, each transfer of the fourth transfer control means is performed. In synchronization with the operation, until all the pixel data of the current image field block are input to the arithmetic unit. , Repeat the input of the pixel data.

【0059】次に、前記セグメントブロックディストー
ション算出手段が、ディストーション算出制御手段によ
って、前記第5転送制御手段により各演算器に入力され
たサーチウィンドウ内の各第1セグメント候補ブロック
の画素データと現画像第1セグメントブロックの画素デ
ータに基づいて各演算器に第1セグメントブロックディ
ストーションを算出させるとともに、前記第5転送制御
手段により各演算器に入力されたサーチウィンドウ内の
各第2セグメント候補ブロックの画素データと現画像第
2セグメントブロックの画素データに基づいて、各演算
器に第2セグメントブロックディストーションを算出さ
せる。
Next, the segment block distortion calculating means includes a distortion calculating control means for controlling the pixel data of each first segment candidate block in the search window input to each of the arithmetic units by the fifth transfer control means and a current image. Each arithmetic unit is caused to calculate the first segment block distortion based on the pixel data of the first segment block, and the pixels of each second segment candidate block in the search window input to each arithmetic unit by the fifth transfer control means Based on the data and the pixel data of the current image second segment block, each arithmetic unit is caused to calculate a second segment block distortion.

【0060】次に、フィールドブロックディストーショ
ン算出手段によって、前記セグメントブロックディスト
ーション算出手段によって算出された各第1セグメント
ブロックディストーションおよび各第2セグメントブロ
ックディストーションを加算することによって、現画像
フィールドブロックと各フィールド候補ブロックとの差
を表すフィールドブロックディストーションを算出す
る。
Next, by adding the first segment block distortion and the second segment block distortion calculated by the segment block distortion calculating means by the field block distortion calculating means, the current image field block and each field candidate are added. Calculate the field block distortion representing the difference from the block.

【0061】次に、セグメントブロック特定手段によっ
て、前記セグメントブロックディストーション算出手段
により算出された第1セグメントブロックディストーシ
ョンのうちの最小の第1セグメントブロックディストー
ションを検出し、この最小の第1セグメントブロックデ
ィストーションに対応する第1セグメント候補ブロック
を特定するとともに、前記セグメントブロックディスト
ーション算出手段によって算出された第2セグメントブ
ロックディストーションのうちの最小の第2セグメント
ブロックディストーションを検出し、この最小の第2セ
グメントブロックディストーションに対応する第2セグ
メント候補ブロックを特定する。
Next, the minimum first segment block distortion among the first segment block distortions calculated by the segment block distortion calculating means is detected by the segment block specifying means, and the minimum first segment block distortion is detected. A corresponding first segment candidate block is specified, and a minimum second segment block distortion among the second segment block distortions calculated by the segment block distortion calculating means is detected, and the minimum second segment block distortion is detected. A corresponding second segment candidate block is identified.

【0062】次に、フィールドブロック特定手段によっ
て、前記フィールドブロックディストーション算出手段
により算出されたフィールドブロックディストーション
のうちの最小のフィールドブロックディストーションを
検出し、この最小のフィールドブロックディストーショ
ンに対応するフィールド候補ブロックを特定する。この
ため、従来、現画像第1セグメントブロックの動きベク
トルを求める第1セグメント動きベクトル探索装置と現
画像第2セグメントブロックの動きベクトルを求める第
2セグメント動きベクトル探索装置との2つの回路を並
列動作させることによってそれぞれの動きベクトルを求
めていたのに対して、セグメントブロックディストーシ
ョン算出手段によって、フィールド候補ブロックの数と
同数の演算器によって第1セグメントブロックディスト
ーションおよび第2セグメントブロックディストーショ
ンを時分割演算で算出することができるので、回路規模
を半減することができる。
Next, the field block specifying means detects the minimum field block distortion among the field block distortions calculated by the field block distortion calculating means, and determines a field candidate block corresponding to the minimum field block distortion. Identify. Therefore, conventionally, two circuits, a first segment motion vector search device for obtaining a motion vector of a current image first segment block and a second segment motion vector search device for obtaining a motion vector of a current image second segment block, are operated in parallel. However, the first and second segment block distortions are time-divisionally calculated by the segment block distortion calculating means using the same number of arithmetic units as the number of field candidate blocks. Since the calculation can be performed, the circuit scale can be reduced by half.

【0063】また、回路規模を小さくするために、ま
ず、第1セグメントブロックディストーションを算出し
てメモリに記憶しておき、次いで、第2セグメントブロ
ックディストーションを算出したとき、メモリから第1
セグメントブロックディストーションを一々読み出し、
フィールドブロックディストーションを算出する従来の
動きベクトル探索装置に対して、セグメントブロックデ
ィストーション算出手段によって、フィールド候補ブロ
ックと同数の演算器で第1セグメントブロックディスト
ーションおよび第2セグメントブロックディストーショ
ンを時分割で算出することができるので、第1セグメン
トブロックディストーションをメモリに記憶して再度読
み出す必要がなく、回路規模が大きくなることを防止す
るとともに、処理を簡素化することができる。
In order to reduce the circuit scale, first, the first segment block distortion is calculated and stored in the memory. Then, when the second segment block distortion is calculated, the first segment block distortion is calculated from the memory.
Read out the segment block distortion one by one,
For a conventional motion vector search device that calculates a field block distortion, the first segment block distortion and the second segment block distortion are calculated in a time-division manner by the same number of arithmetic units as the field candidate blocks by the segment block distortion calculating means. Therefore, it is not necessary to store the first segment block distortion in the memory and read it again, and it is possible to prevent an increase in circuit scale and to simplify the processing.

【0064】さらに、全点探索法による従来の動きベク
トル探索装置に対して、演算器の数を(H−N+1)×
(LーM+1)個よりも少なくすることができるので、
演算器の数を削減することにより、回路規模を小さくす
ることができ、かつ、広い範囲で簡略的な探索方法で動
きベクトルを求めることができる。請求項2記載の発明
では、請求項1記載の発明において、前記セグメントブ
ロックディストーション算出手段が(H−N+1)×
(L−M+1)個の演算器を有するように構成される。
Further, in comparison with the conventional motion vector search device using the all point search method, the number of arithmetic units is (H−N + 1) ×
Since it can be less than (LM + 1)
By reducing the number of arithmetic units, the circuit scale can be reduced, and a motion vector can be obtained by a simple search method over a wide range. According to a second aspect of the present invention, in the first aspect, the segment block distortion calculating means is (H−N + 1) ×
It is configured to have (L−M + 1) arithmetic units.

【0065】このため、(H−N+1)×(L−M+
1)個の候補ブロックに対応したディストーションを算
出することができるので、確実に全点探索法により予測
精度の高い第1および第2セグメント動きベクトル、並
びに、フィールド動きベクトルを求めることができる。
請求項3記載の発明では、請求項1記載の発明におい
て、プロセッサエレメントを前記マトリックス状の同行
同列に配置された前記セグメントブロックディストーシ
ョン算出手段の各演算器と前記サーチウィンドウデータ
転送手段の各レジスタとによって構成する。
For this reason, (H−N + 1) × (L−M +
1) Since the distortion corresponding to the number of candidate blocks can be calculated, the first and second segment motion vectors and the field motion vector with high prediction accuracy can be reliably obtained by the all point search method.
According to a third aspect of the present invention, in the first aspect of the present invention, the processor elements of the segment block distortion calculating means and the registers of the search window data transfer means, wherein the processor elements are arranged in the same row and column in the matrix form, It is constituted by.

【0066】このため、サーチウィンドウデータ転送手
段の各レジスタおよびセグメントブロックディストーシ
ョン算出手段の各演算器を共通制御信号によって同一時
刻に同一動作を行うように制御することができるので、
演算処理の並列化による高速処理を行うことができる。
請求項4記載の発明では、請求項1記載の発明におい
て、前記サイドレジスタユニットの各サイドレジスタデ
バイスが、それぞれ同列の1行目のレジスタに電気的に
接続された第1サイドレジスタデバイスと、それぞれ同
列の(H−N+1)行目のレジスタに電気的に接続され
た第2サイドレジスタデバイスとから構成され、この第
1サイドレジスタデバイスが、直列に電気的に接続され
た(N−1)個の前記レジスタを有し、一端のレジスタ
が同列の1行目のレジスタに電気的に接続され、前記第
2サイドレジスタデバイスが、直列に電気的に接続され
た(N−1)個の前記レジスタを有し、一端のレジスタ
が同列の(H−N+1)行目のレジスタに電気的に接続
されるように構成される。
Therefore, each register of the search window data transfer means and each arithmetic unit of the segment block distortion calculation means can be controlled by the common control signal so as to perform the same operation at the same time.
High-speed processing can be performed by parallelizing arithmetic processing.
According to a fourth aspect of the present invention, in the first aspect of the present invention, each of the side register devices of the side register unit includes a first side register device electrically connected to a register in a first row of the same column. And (N-1) second side register devices electrically connected in series to the (H-N + 1) th row of registers in the same column. Wherein one end of the registers is electrically connected to the first row of registers in the same column, and the second side register device is electrically connected in series with the (N-1) registers. And the register at one end is electrically connected to the register in the (H−N + 1) th row in the same column.

【0067】このため、サイドレジスタユニットを、セ
グメントブロックディストーション算出手段と同じレジ
スタで構成することができるので、回路を容易に構成す
ることができる。請求項5記載の発明では、請求項1記
載の発明において、前記サイドレジスタユニットの各サ
イドレジスタデバイスは、それぞれ直列に電気的に接続
された(N−1)個の前記レジスタを有し、一端のレジ
スタが同列の1行目のレジスタに電気的に接続され、他
端のレジスタが同列の(H−N+1)行目のレジスタに
電気的に接続されるように構成される。
Therefore, the side register unit can be constituted by the same register as the segment block distortion calculating means, so that the circuit can be easily constituted. According to a fifth aspect of the present invention, in the first aspect of the invention, each side register device of the side register unit has (N-1) number of the registers electrically connected in series. Are electrically connected to the first row of registers in the same column, and the other end of the register is electrically connected to the (H−N + 1) th row of the same column.

【0068】このため、サイドレジスタユニットを、セ
グメントブロックディストーション算出手段と同じレジ
スタで構成することができるので、回路を容易に構成す
ることができる。また、セグメントブロックディストー
ション算出手段の各レジスタおよび入力レジスタユニッ
トの各レジスタとサイドレジスタユニットのレジスタを
列毎にリング状に電気的に接続することができるので、
請求項4記載のサイドレジスタユニットの半数のレジス
タでサイドレジスタユニットを構成することができる。
さらに、各列毎にリング状に接続された各レジスタ間の
距離を均一に配置することができるので、各レジスタ間
に短い転送バスを形成することができるとともに、各レ
ジスタ間の転送時間を均一にすることができる。従っ
て、誤りの少ない安定した回路を形成することができる
とともに、回路規模を小さくすることができる。
Therefore, the side register unit can be constituted by the same register as the segment block distortion calculating means, so that the circuit can be easily constituted. Further, since each register of the segment block distortion calculating means and each register of the input register unit and the register of the side register unit can be electrically connected in a ring shape for each column,
A half register of the side register unit according to claim 4 can constitute the side register unit.
Further, since the distance between the registers connected in a ring shape can be arranged uniformly for each column, a short transfer bus can be formed between the registers, and the transfer time between the registers can be made uniform. Can be Therefore, a stable circuit with few errors can be formed, and the circuit scale can be reduced.

【0069】請求項6記載の発明では、請求項1記載の
発明において、全ての前記レジスタの第1および第2フ
リップフロップ、並びに、全ての前記局所ディストーシ
ョン総和ユニットの第1および第2フリップフロップ
が、同じクロックパルス信号によって動作するように構
成する。まず、前記サーチウィンドウデータ転送保持手
段の各レジスタが、第1フリップフロップによって、前
記サーチウィンドウの画素データを入力端子を通して入
力し、出力端子を通して出力し、次いで、第2フリップ
フロップによって、第1フリップフロップから出力され
た画素データを入力端子を通して入力し、出力端子を通
して出力する。
According to a sixth aspect of the present invention, in the first aspect of the present invention, the first and second flip-flops of all the registers and the first and second flip-flops of all the local distortion sum units are provided. , And are operated by the same clock pulse signal. First, each register of the search window data transfer holding means inputs pixel data of the search window through an input terminal by a first flip-flop and outputs it through an output terminal, and then outputs the first flip-flop by a second flip-flop. The pixel data output from the loop is input through an input terminal and output through an output terminal.

【0070】次に、前記セグメントブロックディストー
ション算出手段の各演算器が、局所ディストーション算
出ユニットによって、前記レジスタの第2フリップフロ
ップから画素データを入力し、互いに位置的に対応する
現画像第1セグメントブロックの画素データと第1セグ
メント候補ブロックの画素データとの差を表す第1局所
ディストーションを算出するとともに、互いに位置的に
対応する現画像第2セグメントブロックの画素データと
第2セグメント候補ブロックの画素データとの差を表す
第2局所ディストーションを算出する。
Next, each of the arithmetic units of the segment block distortion calculating means inputs pixel data from the second flip-flop of the register by the local distortion calculating unit, and the current image first segment block corresponding to each other in position. And a first local distortion representing a difference between the pixel data of the first segment candidate block and the pixel data of the first segment candidate block, and the pixel data of the current image second segment block and the pixel data of the second segment candidate block corresponding to each other in position. Then, a second local distortion representing a difference between the first and second local distortions is calculated.

【0071】次に、各演算器の局所ディストーション総
和ユニットが、加算器によって、局所ディストーション
算出ユニットから出力されたデータと局所ディストーシ
ョン総和ユニットの第2フリップフロップから出力され
たデータをそれぞれ第1入力端子および第2入力端子を
通して入力し、入力されたデータを加算して出力端子を
通して出力し、次いで、第1フリップフロップによっ
て、加算器から出力されたデータを入力端子を通して入
力して出力端子を通して出力し、次いで、第2フリップ
フロップによって、第1フリップフロップから出力され
たデータを入力端子を通して入力し出力端子を通して出
力する。次いで、これらの動作を繰り返し、局所ディス
トーション算出ユニットにより算出された第1セグメン
ト候補ブロックに対応する第1局所ディストーションの
総和を算出して前記第1セグメントブロックディストー
ションを算出するとともに、局所ディストーション算出
ユニットによって算出された第2セグメント候補ブロッ
クに対応する第2局所ディストーションの総和を算出し
て前記第2セグメントブロックディストーションを算出
する。
Next, the local distortion summation unit of each arithmetic unit uses the adder to output the data output from the local distortion calculation unit and the data output from the second flip-flop of the local distortion summation unit to a first input terminal. And input through a second input terminal, add the input data and output through an output terminal, and then input, through a first flip-flop, data output from the adder through an input terminal and output through an output terminal. Then, the data output from the first flip-flop is input through the input terminal and output through the output terminal by the second flip-flop. Next, these operations are repeated to calculate the sum of the first local distortions corresponding to the first segment candidate blocks calculated by the local distortion calculation unit to calculate the first segment block distortion, and to calculate the first segment block distortion by the local distortion calculation unit. The second segment block distortion is calculated by calculating the sum of the second local distortions corresponding to the calculated second segment candidate blocks.

【0072】このため、レジスタの第2フリップフロッ
プにラッチされたサーチウィンドウの画素データに基づ
いてと現画像ブロックデータ出力手段によって出力され
た現画像フィールドブロックの画素データに基づいて局
所ディストーション算出ユニットで算出された局所ディ
ストーションと局所ディストーション総和ユニットの第
2フリップフロップにラッチされたデータとの累積演算
を加算器によって行うことができるので、レジスタの第
1フリップフロップおよび局所ディストーション総和ユ
ニットの第1フリップフロップでは、同一の現画像セグ
メントブロックに対応するデータを保持するとともに、
レジスタの第2フリップフロップおよび局所ディストー
ション総和ユニットの第2フリップフロップにおいて
も、それぞれ第1フリップフロップと異なる同一の現画
像セグメントブロックに対応するデータを保持すること
ができる。このため、第1セグメントブロックディスト
ーションおよび第2セグメントブロックディストーショ
ンをそれぞれ時分割で算出することができる。
For this reason, the local distortion calculating unit performs the calculation based on the pixel data of the search window latched by the second flip-flop of the register and the pixel data of the current image field block output by the current image block data output means. Since the accumulated operation of the calculated local distortion and the data latched in the second flip-flop of the local distortion summation unit can be performed by the adder, the first flip-flop of the register and the first flip-flop of the local distortion summation unit can be performed. Holds the data corresponding to the same current image segment block,
The second flip-flop of the register and the second flip-flop of the local distortion summation unit can hold data corresponding to the same current image segment block different from the first flip-flop. Therefore, the first segment block distortion and the second segment block distortion can be calculated in a time-division manner.

【0073】また、直列に電気的に接続された2つのフ
リップフロップによってレジスタおよび局所ディストー
ション総和ユニットを構成することができるので、容易
に回路を構成することができる。請求項7記載の発明で
は、請求項6記載の発明において、全ての前記レジスタ
の第1および第2フリップフロップ、全ての前記局所デ
ィストーション総和ユニットの第1および第2フリップ
フロップ、並びに、全ての前記ディストーション転送ユ
ニットの第1および第2フリップフロップが、同じクロ
ックパルス信号によって動作するように構成する。
Since the register and the local distortion summation unit can be constituted by two flip-flops electrically connected in series, the circuit can be easily constituted. In the invention described in claim 7, in the invention described in claim 6, the first and second flip-flops of all the registers, the first and second flip-flops of all the local distortion sum units, and all of the local distortion sum units The first and second flip-flops of the distortion transfer unit are configured to operate with the same clock pulse signal.

【0074】まず、前記セグメントブロックディストー
ション算出手段の各演算器のディストーション転送ユニ
ットが、第1フリップフロップによって、前記局所ディ
ストーション総和ユニットによって算出された第1セグ
メントブロックディストーションおよび第2セグメント
ブロックディストーションを入力端子を通して入力して
出力端子を通して出力する。
First, the distortion transfer unit of each operation unit of the segment block distortion calculation means uses a first flip-flop to input the first segment block distortion and the second segment block distortion calculated by the local distortion summation unit to input terminals. And output through the output terminal.

【0075】次に、第2フリップフロップによって、第
1フリップフロップから第1セグメントブロックディス
トーションおよび第2セグメントブロックディストーシ
ョンを入力端子を通して入力し、前記セグメントブロッ
ク特定手段およびフィールドブロックディストーション
算出手段に出力端子を通して出力する。このため、レジ
スタ、局所ディストーション総和ユニットおよびディス
トーション転送ユニットのそれぞれの第1フリップフロ
ップでは、同一の現画像セグメントブロックに対応する
データを保持するとともに、レジスタ、局所ディストー
ション総和ユニットおよびディストーション転送ユニッ
トのそれぞれの第2フリップフロップにおいても、それ
ぞれ第1フリップフロップに保持されたデータと異なる
同一の現画像セグメントブロックに対応するデータを保
持することができる。このため、第1セグメントブロッ
クディストーションおよび第2セグメントブロックディ
ストーションをそれぞれ時分割で出力することができ
る。
Next, the first flip-flop inputs the first segment block distortion and the second segment block distortion from the first flip-flop through the input terminal, and outputs the segment block specifying means and the field block distortion calculating means through the output terminal. Output. For this reason, the first flip-flop of each of the register, the local distortion summation unit, and the distortion transfer unit holds data corresponding to the same current image segment block, and also stores the data corresponding to each of the register, the local distortion summation unit, and the distortion transfer unit. The second flip-flop can also hold data corresponding to the same current image segment block different from the data held in the first flip-flop. Therefore, the first segment block distortion and the second segment block distortion can be output in a time division manner.

【0076】また、直列に電気的に接続された2つのフ
リップフロップによってディストーション転送ユニット
を構成することができるので、容易に回路を構成するこ
とができる。請求項8記載の発明では、請求項1記載の
発明において、前記フィールドブロックディストーショ
ン算出手段が、前記サーチウィンドウ内で垂直方向に並
んだフィールド候補ブロックと同数設けられたフリップ
フロップによって、セグメントブロックディストーショ
ン算出手段の各演算器から出力されたフィールド候補ブ
ロックの第1セグメント候補ブロックに対応する第1セ
グメントブロックディストーションをそれぞれ同時に入
力して保持する。
Since the distortion transfer unit can be constituted by two flip-flops electrically connected in series, the circuit can be easily constituted. According to an eighth aspect of the present invention, in the first aspect of the present invention, the field block distortion calculating means calculates the segment block distortion by the same number of flip-flops as the number of field candidate blocks vertically arranged in the search window. The first segment block distortion corresponding to the first segment candidate block of the field candidate block output from each operation unit of the means is simultaneously input and held.

【0077】次に、該フリップフロップと同数設けらた
加算器によって、サーチウィンドウ内で垂直方向に並ん
だフィールド候補ブロックの第2セグメント候補ブロッ
クに対応する第2セグメントブロックディストーション
をそれぞれ入力するとともに、フィールドブロックディ
ストーション算出手段の各フリップフロップに保持され
た第1セグメントブロックディストーションを入力し、
入力された第1セグメントブロックディストーションと
第2セグメントブロックディストーションとを加算して
フィールドブロックディストーションを算出する。
Next, second segment block distortions corresponding to the second segment candidate blocks of the field candidate blocks arranged vertically in the search window are input by the same number of adders as the number of the flip-flops. Inputting the first segment block distortion held in each flip-flop of the field block distortion calculating means,
The input first segment block distortion and the second segment block distortion are added to calculate a field block distortion.

【0078】このため、サーチウィンドウ内で垂直方向
に並んだフィールド候補ブロックと同数のフリップフロ
ップおよび加算器によって、それぞれの行に対応する演
算器で算出された第1および第2セグメントブロックデ
ィストーションから順次フィールドブロックディストー
ションを算出することができるので、レジスタと演算器
が想像上配置されたマトリックス状にセグメントブロッ
クディストーション算出手段の演算器と同数のフリップ
フロップおよび加算器を設ける必要がなく、セグメント
ブロックディストーション算出手段と別のエリアにフィ
ールドブロックディストーション算出手段をユニットと
して配置することができる。従って、フィールドブロッ
クディストーションを算出する回路の規模を小さくする
ことができる。
For this reason, the same number of flip-flops and adders as the field candidate blocks arranged vertically in the search window sequentially start from the first and second segment block distortions calculated by the arithmetic units corresponding to the respective rows. Since the field block distortion can be calculated, it is not necessary to provide the same number of flip-flops and adders as the arithmetic units of the segment block distortion calculating means in a matrix in which registers and arithmetic units are imaginarily arranged. The field block distortion calculating means can be arranged as a unit in an area different from the means. Therefore, the scale of the circuit for calculating the field block distortion can be reduced.

【0079】請求項9記載の発明では、請求項1記載の
発明において、前記フィールドブロックディストーショ
ン算出手段が、前記サーチウィンドウ内で水平方向に並
んだフィールド候補ブロックと同数設けられたフリップ
フロップによって、セグメントブロックディストーショ
ン算出手段から出力されたフィールド候補ブロックの第
1セグメント候補ブロックに対応する第1セグメントブ
ロックディストーションをそれぞれ同時に入力して保持
する。
According to a ninth aspect of the present invention, in the first aspect of the present invention, the field block distortion calculating means includes the same number of flip-flops as the number of field candidate blocks arranged horizontally in the search window. First segment block distortions corresponding to the first segment candidate blocks of the field candidate blocks output from the block distortion calculating means are simultaneously input and held, respectively.

【0080】次に、該フリップフロップと同数設けられ
た加算器によって、サーチウィンドウ内で水平方向に並
んだフィールド候補ブロックの第2セグメント候補ブロ
ックに対応する第2セグメントブロックディストーショ
ンをそれぞれ入力するとともに、フィールドブロックデ
ィストーション算出手段の各フリップフロップに保持さ
れた第1セグメントブロックディストーションを入力
し、入力された第1セグメントブロックディストーショ
ンと第2セグメントブロックディストーションとを加算
してフィールドブロックディストーションを算出する。
Next, the same number of adders as the number of the flip-flops are used to input second segment block distortions corresponding to the second segment candidate blocks of the field candidate blocks arranged horizontally in the search window. The first segment block distortion held in each flip-flop of the field block distortion calculating means is input, and the input first segment block distortion and the second segment block distortion are added to calculate a field block distortion.

【0081】このため、サーチウィンドウ内で水平方向
に並んだフィールド候補ブロックと同数のフリップフロ
ップおよび加算器によって、それぞれの列に対応する演
算器で算出された第1および第2セグメントブロックデ
ィストーションから順次フィールドブロックディストー
ションを算出することができるので、レジスタと演算器
が想像上配置されたマトリックス状にセグメントブロッ
クディストーション算出手段の演算器と同数のフリップ
フロップおよび加算器を設ける必要がなく、セグメント
ブロックディストーション算出手段と別のエリアにフィ
ールドブロックディストーション算出手段をユニットと
して配置することができる。従って、フィールドブロッ
クディストーションを算出する回路の規模を小さくする
ことができる。
For this reason, the same number of flip-flops and adders as the field candidate blocks arranged in the horizontal direction in the search window are used to sequentially start the first and second segment block distortions calculated by the arithmetic units corresponding to the respective columns. Since the field block distortion can be calculated, it is not necessary to provide the same number of flip-flops and adders as the arithmetic units of the segment block distortion calculating means in a matrix in which registers and arithmetic units are imaginarily arranged. The field block distortion calculating means can be arranged as a unit in an area different from the means. Therefore, the scale of the circuit for calculating the field block distortion can be reduced.

【0082】請求項10記載の発明では、請求項1記載
の発明において、前記セグメントブロック特定手段が、
まず、セグメントブロックディストーション算出手段か
ら、前記サーチウィンドウ内で垂直方向に一列に並んだ
第1セグメント候補ブロックに対応する第1セグメント
ブロックディストーションに対して、最も外側の列の第
1セグメントブロックディストーションをそれぞれ同時
に入力するとともに、前記サーチウィンドウ内で垂直方
向に一列に並んだ第2セグメント候補ブロックに対応す
る第2セグメントブロックディストーションに対して、
最も外側の列の第2セグメントブロックディストーショ
ンをそれぞれ同時に入力する。
According to a tenth aspect, in the first aspect, the segment block specifying means includes:
First, the first segment block distortion in the outermost column is calculated by the segment block distortion calculating means with respect to the first segment block distortion corresponding to the first segment candidate block vertically aligned in the search window. At the same time, for the second segment block distortion corresponding to the second segment candidate block vertically aligned in the search window,
The second segment block distortions in the outermost row are input simultaneously.

【0083】次に、前記サーチウィンドウ内の全ての第
1セグメントブロックディストーションおよび第2セグ
メントブロックディストーションが入力されるまで、前
記サーチウィンドウの外側の列から順次列毎に第1セグ
メントブロックディストーションおよび第2セグメント
ブロックディストーションを時分割で入力する。次に、
入力された全ての第1セグメントブロックディストーシ
ョンの中から最小の第1セグメントブロックディストー
ションを検出するとともに、入力された全ての第2セグ
メントブロックディストーションの中から最小の第2セ
グメントブロックディストーションを検出する。
Next, until all of the first segment block distortion and the second segment block distortion in the search window are input, the first segment block distortion and the second Input segment block distortion in time division. next,
A minimum first segment block distortion is detected from all the input first segment block distortions, and a minimum second segment block distortion is detected from all the input second segment block distortions.

【0084】このため、同時に入力された第1または第
2セグメントブロックディストーションに基づいて、セ
グメントブロックディストーション算出手段の各演算器
の配置位置に対応する第1または第2セグメント候補ブ
ロックの垂直方向の位置を特定することができるととも
に、第1または第2セグメントブロックディストーショ
ンがセグメントブロック特定手段に入力された順番に基
づいて、セグメントブロックディストーション算出手段
の各演算器の配置位置に対応する第1または第2セグメ
ント候補ブロックの水平方向の位置を特定することがで
きる。
Therefore, based on the simultaneously input first or second segment block distortion, the vertical position of the first or second segment candidate block corresponding to the arrangement position of each arithmetic unit of the segment block distortion calculation means Based on the order in which the first or second segment block distortion is input to the segment block specifying means, and the first or second segment block distortion corresponding to the arrangement position of each computing unit of the segment block distortion calculating means. The horizontal position of the segment candidate block can be specified.

【0085】従って、最小の第1および第2セグメント
ブロックディストーションが検出された演算器の配置位
置に基づいて、それぞれ第1セグメント動きベクトルお
よび第2セグメント動きベクトルを容易に特定すること
ができる。請求項11記載の発明では、請求項1記載の
発明において、前記セグメントブロック特定手段が、ま
ず、セグメントブロックディストーション算出手段か
ら、前記サーチウィンドウ内で水平方向に一列に並んだ
第1セグメント候補ブロックに対応する第1セグメント
ブロックディストーションに対して、最も外側の行の第
1セグメントブロックディストーションをそれぞれ同時
に入力するとともに、前記サーチウィンドウ内で水平方
向に一行に並んだ第2セグメント候補ブロックに対応す
る第2セグメントブロックディストーションに対して、
最も外側の行の第2セグメントブロックディストーショ
ンをそれぞれ同時に入力する。
Therefore, it is possible to easily specify the first segment motion vector and the second segment motion vector, respectively, based on the arrangement positions of the arithmetic units where the minimum first and second segment block distortions are detected. According to an eleventh aspect of the present invention, in the first aspect of the present invention, the segment block specifying unit first converts the segment block distortion calculating unit into a first segment candidate block horizontally aligned in the search window. For the corresponding first segment block distortion, the first segment block distortions of the outermost row are simultaneously input, respectively, and the second segment block corresponding to the second segment candidate block arranged in one row in the search window in the horizontal direction is simultaneously input. For segment block distortion,
The second segment block distortions in the outermost row are input simultaneously.

【0086】次に、前記サーチウィンドウ内の全ての第
1セグメントブロックディストーションおよび第2セグ
メントブロックディストーションが入力されるまで、前
記サーチウィンドウの外側の行から順次行毎に第1セグ
メントブロックディストーションおよび第2セグメント
ブロックディストーションを時分割で入力する。次に、
入力された全ての第1セグメントブロックディストーシ
ョンの中から最小の第1セグメントブロックディストー
ションを検出するとともに、入力された全ての第2セグ
メントブロックディストーションの中から最小の第2セ
グメントブロックディストーションを検出する。
Next, until all the first segment block distortions and the second segment block distortions in the search window are input, the first segment block distortion and the second segment Input segment block distortion in time division. next,
A minimum first segment block distortion is detected from all the input first segment block distortions, and a minimum second segment block distortion is detected from all the input second segment block distortions.

【0087】このため、同時に入力された第1または第
2セグメントブロックディストーションに基づいて、セ
グメントブロックディストーション算出手段の各演算器
の配置位置に対応する第1または第2セグメント候補ブ
ロックの水平方向の位置を特定することができるととも
に、第1または第2セグメントブロックディストーショ
ンがセグメントブロック特定手段に入力された順番に基
づいて、セグメントブロックディストーション算出手段
の各演算器の配置位置に対応する第1または第2セグメ
ント候補ブロックの垂直方向の位置を特定することがで
きる。
For this reason, based on the simultaneously inputted first or second segment block distortion, the horizontal position of the first or second segment candidate block corresponding to the arrangement position of each arithmetic unit of the segment block distortion calculating means. Based on the order in which the first or second segment block distortion is input to the segment block specifying means, and the first or second segment block distortion corresponding to the arrangement position of each computing unit of the segment block distortion calculating means. The vertical position of the segment candidate block can be specified.

【0088】従って、最小の第1および第2セグメント
ブロックディストーションが検出された演算器の配置位
置に基づいてそれぞれ第1セグメント動きベクトルおよ
び第2セグメント動きベクトルを容易に特定することが
できる。請求項12記載の発明では、請求項7記載の発
明において、少なくともひとつの前記演算器を有する演
算器およびレジスタからなる行のそれぞれの行の一端に
位置する演算器の前記ディストーション転送ユニット
が、前記フィールドブロックディストーション算出手段
およびセグメントブロック特定手段に電気的に接続さ
れ、これらのディストーション転送ユニットが、前記フ
ィールドブロックディストーション算出手段およびセグ
メントブロック特定手段に電気的に接続されたそれぞれ
のディストーション転送ユニットから前記フィールドブ
ロックディストーション算出手段およびセグメントブロ
ック特定手段にそれぞれ第1および第2セグメントブロ
ックディストーションを転送するとともに、前記フィー
ルドブロックディストーション算出手段およびセグメン
トブロック特定手段に向けて他の演算器のディストーシ
ョン転送ユニットから同行の隣の演算器のディストーシ
ョン転送ユニットに順次第1および第2セグメントブロ
ックディストーションを転送するように構成される。
Therefore, the first segment motion vector and the second segment motion vector can be easily specified on the basis of the arrangement positions of the arithmetic units where the minimum first and second segment block distortions are detected. According to a twelfth aspect of the present invention, in the invention according to the seventh aspect, the distortion transfer unit of the arithmetic unit located at one end of each of the rows of the arithmetic unit having at least one of the arithmetic units and the register, The field block distortion calculating unit and the segment block specifying unit are electrically connected to each other, and these distortion transfer units are connected to the field block distortion calculating unit and the segment block specifying unit by the respective distortion transfer units. Transferring the first and second segment block distortions to the block distortion calculating means and the segment block specifying means, respectively; Toward detection means and the segment block specifying means configured to transfer forward as soon as 1 and the second segment block distortion Distortion transfer unit of the arithmetic unit next to the bank from the distortion transfer unit of another operation unit.

【0089】このため、同一行の演算器で算出されたそ
れぞれの第1および第2セグメントブロックディストー
ションを順次各演算器のディストーション転送ユニット
を介して一方向に転送し、同一行の一端の演算器のディ
ストーション転送ユニットからフィールドブロックディ
ストーション算出手段およびセグメントブロック特定手
段にそれぞれ第1および第2セグメントブロックディス
トーションを転送することができるので、第1および第
2セグメントブロックディストーションを転送する方向
にフィールドブロックディストーション算出手段および
セグメントブロック特定手段をユニットとして容易に配
置することができる。
For this reason, the first and second segment block distortions calculated by the arithmetic units on the same row are sequentially transferred in one direction via the distortion transfer units of the arithmetic units, and the arithmetic unit at one end of the same row is transferred. Can transfer the first and second segment block distortions from the distortion transfer unit to the field block distortion calculating means and the segment block specifying means, respectively, so that the field block distortion is calculated in the direction in which the first and second segment block distortions are transferred. The means and the segment block specifying means can be easily arranged as a unit.

【0090】また、一端の演算器のディストーション転
送ユニットからフィールドブロックディストーション算
出手段およびセグメントブロック特定手段へ第1および
第2セグメントブロックディストーションを出力する転
送バスを演算器の存在する行数に削減することができる
とともに、短い転送バスを形成することができる。さら
に、同一行の各演算器のディストーション転送ユニット
の間にも短い転送バスを形成することができるので、各
演算器間の転送時間を均一にすることができる。従っ
て、誤りの少ない安定した回路を形成することができ
る。
Further, the transfer bus for outputting the first and second segment block distortions from the distortion transfer unit of the arithmetic unit at one end to the field block distortion calculating means and the segment block specifying means is reduced to the number of rows in which the arithmetic units exist. And a short transfer bus can be formed. Further, since a short transfer bus can be formed between the distortion transfer units of the arithmetic units in the same row, the transfer time between the arithmetic units can be made uniform. Therefore, a stable circuit with few errors can be formed.

【0091】請求項13記載の発明では、請求項7記載
の発明において、少なくともひとつの前記演算器を有す
る演算器およびレジスタからなる列のそれぞれの列の一
端に位置する演算器の前記ディストーション転送ユニッ
トが、前記フィールドブロックディストーション算出手
段およびセグメントブロック特定手段に電気的に接続さ
れ、これらのディストーション転送ユニットが、前記フ
ィールドブロックディストーション算出手段およびセグ
メントブロック特定手段に電気的に接続されたそれぞれ
のディストーション転送ユニットから前記フィールドブ
ロックディストーション算出手段およびセグメントブロ
ック特定手段にそれぞれの第1および第2セグメントブ
ロックディストーションを転送するとともに、前記フィ
ールドブロックディストーション算出手段およびセグメ
ントブロック特定手段に向けて他の演算器のディストー
ション転送ユニットから同列の隣の演算器のディストー
ション転送ユニットに順次第1および第2セグメントブ
ロックディストーションを転送するように構成される。
According to a thirteenth aspect of the present invention, in the invention according to the seventh aspect, the distortion transfer unit of the arithmetic unit which is located at one end of each of columns of an arithmetic unit having at least one of the arithmetic units and a register Are electrically connected to the field block distortion calculating means and the segment block specifying means, and these distortion transfer units are respectively connected to the field block distortion calculating means and the segment block specifying means. Transfer the first and second segment block distortions to the field block distortion calculating means and the segment block specifying means from the Scan configured to transfer torsion calculating means and the segment block specifying means other calculator same column order as soon as 1 and the second segment block distortion Distortion transfer unit of the arithmetic unit next to the distortion transfer unit towards.

【0092】このため、同一列の演算器で算出されたそ
れぞれの第1および第2セグメントブロックディストー
ションを順次各演算器のディストーション転送ユニット
を介して一方向に転送し、同一列の一端の演算器のディ
ストーション転送ユニットからフィールドブロックディ
ストーション算出手段およびセグメントブロック特定手
段にそれぞれ第1および第2セグメントブロックディス
トーションを転送することができるので、第1および第
2セグメントブロックディストーションを転送する方向
にフィールドブロックディストーション算出手段および
セグメントブロック特定手段をユニットとして容易に配
置することができる。
For this reason, the first and second segment block distortions calculated by the arithmetic units in the same column are sequentially transferred in one direction via the distortion transfer unit of each arithmetic unit, and the arithmetic unit at one end of the same column is transferred. Can transfer the first and second segment block distortions from the distortion transfer unit to the field block distortion calculating means and the segment block specifying means, respectively, so that the field block distortion is calculated in the direction in which the first and second segment block distortions are transferred. The means and the segment block specifying means can be easily arranged as a unit.

【0093】また、一端の演算器のディストーション転
送ユニットからフィールドブロックディストーション算
出手段およびセグメントブロック特定手段へ第1および
第2セグメントブロックディストーションを出力する転
送バスを演算器の存在する列数に削減することができる
とともに、短い転送バスを形成することができる。さら
に、同一列の各演算器のディストーション転送ユニット
の間にも短い転送バスを形成することができるので、各
演算器間の転送時間を均一にすることができる。従っ
て、誤りの少ない安定した回路を形成することができ
る。
Further, the transfer bus for outputting the first and second segment block distortions from the distortion transfer unit of the arithmetic unit at one end to the field block distortion calculating means and the segment block specifying means is reduced to the number of columns in which the arithmetic units exist. And a short transfer bus can be formed. Furthermore, since a short transfer bus can be formed between the distortion transfer units of the arithmetic units in the same column, the transfer time between the arithmetic units can be made uniform. Therefore, a stable circuit with few errors can be formed.

【0094】請求項14記載の発明では、請求項7記載
の発明において、前記サーチウィンドウデータ出力手段
によって、第2サーチウィンドウの画素データのうち、
第1サーチウィンドウと第2サーチウィンドウで共通す
る画素データを除いた残りの画素データを、第1サーチ
ウィンドウの画素データに続けて順次出力するととも
に、前記現画像ブロックデータ出力手段によって、前記
第5転送制御手段の転送動作に基づいて第2現画像フィ
ールドブロックの画素データを第1現画像フィールドブ
ロックの画素データに続けて順次出力し、前記ディスト
ーション算出制御手段によって前記第2サーチウィンド
ウの画素データと第2現画像フィールドブロックの画素
データとに基づいて第1および第2セグメントブロック
ディストーションを算出させる。
According to a fourteenth aspect of the present invention, in the seventh aspect of the present invention, the search window data output means outputs the pixel data of the second search window.
The remaining pixel data excluding the pixel data common to the first search window and the second search window are sequentially output following the pixel data of the first search window, and the fifth image data is output by the current image block data output means. The pixel data of the second current image field block is sequentially output following the pixel data of the first current image field block based on the transfer operation of the transfer control means, and the pixel data of the second search window is output by the distortion calculation control means. The first and second segment block distortions are calculated based on the pixel data of the second current image field block.

【0095】さらに、前記第2サーチウィンドウの画素
データと第2現画像フィールドブロックの画素データに
基づいて前記ディストーション算出制御手段による第1
および第2セグメントブロックディストーションの算出
が終了する前に、前記セグメントブロックディストーシ
ョン算出手段の各ディストーション転送ユニットによっ
て、前記第1サーチウィンドウの画素データと前記第1
現画像フィールドブロックの画素データに基づいて算出
された全ての第1および第2セグメントブロックディス
トーションが前記フィールドブロックディストーション
算出手段およびセグメントブロック特定手段に転送され
るように構成される。
Further, based on the pixel data of the second search window and the pixel data of the second current image field block, a first calculation by the distortion calculation control means is performed.
Before the calculation of the second segment block distortion is completed, the pixel data of the first search window and the first search window are output by each distortion transfer unit of the segment block distortion calculation means.
All the first and second segment block distortions calculated based on the pixel data of the current image field block are transferred to the field block distortion calculating means and the segment block specifying means.

【0096】このため、セグメントブロックディストー
ション算出手段によって、第1現画像フィールドブロッ
クに隣接する第2現画像フィールドブロックの第1およ
び第2セグメントブロックディストーションを前記第4
転送制御手段の1サイクルの動作毎に順次求めることが
できる。また、第1サーチウィンドウと第2サーチウィ
ンドウとで共通する画素データを重複することなく第2
サーチウィンドウの画素データをサーチウィンドウデー
タ出力手段から出力することができるので、第2サーチ
ウィンドウのデータを始めから出力し直す必要がなく、
処理効率を大幅に向上させることができる。
For this reason, the first and second segment block distortions of the second current picture field block adjacent to the first current picture field block are calculated by the segment block distortion calculating means.
It can be obtained sequentially for each one-cycle operation of the transfer control means. In addition, pixel data common to the first search window and the second search window is not overlapped with the second search window.
Since the pixel data of the search window can be output from the search window data output means, there is no need to output the data of the second search window again from the beginning.
Processing efficiency can be greatly improved.

【0097】[0097]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

【0098】[0098]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。 (実施例1)図1〜図48は本発明に係る実施例1の動
きベクトル探索装置を示す図である。本実施例では、本
発明の特徴部分を具体的に説明する。
Embodiments of the present invention will be described below with reference to the drawings. (Embodiment 1) FIGS. 1 to 48 are views showing a motion vector search apparatus according to Embodiment 1 of the present invention. In this embodiment, a characteristic portion of the present invention will be specifically described.

【0099】図1に示すように、動きベクトル探索装置
は、現画像ブロックデータ出力ユニット1000、サー
チウィンドウデータ出力ユニット2000、セグメント
ブロックディストーション算出ユニット3000、セグ
メントブロック特定ユニット4000、フィールドブロ
ックディストーション算出ユニット5000、フィール
ドブロック特定ユニット6000および信号出力ユニッ
ト7000から構成されている。
As shown in FIG. 1, the motion vector search device includes a current image block data output unit 1000, a search window data output unit 2000, a segment block distortion calculation unit 3000, a segment block identification unit 4000, and a field block distortion calculation unit 5000. , A field block specifying unit 6000 and a signal output unit 7000.

【0100】現画像ブロックデータ出力ユニット100
0は、出力端子Rを有し、図2(a)に示された現画像
100を部分的に構成する一つの現画像フィールドブロ
ック200に含まれる現画像第1セグメントブロック2
10の画素データおよび現画像第2セグメントブロック
220の画素データを時分割でそれぞれ画素毎に出力端
子Rを通してセグメントブロックディストーション算出
ユニット3000に出力する。
The current image block data output unit 100
0 has an output terminal R and is a current image first segment block 2 included in one current image field block 200 partially constituting the current image 100 shown in FIG.
The 10 pixel data and the pixel data of the current image second segment block 220 are output to the segment block distortion calculation unit 3000 through the output terminal R for each pixel in a time-division manner.

【0101】ここで、現画像100は、インターレース
走査方式の画像であり、奇数走査ラインまたは偶数走査
ラインからなるフィールドによって構成される。また、
現画像第1セグメントブロック210は、現画像フィー
ルドブロック200の上半分のブロックであり、現画像
第2セグメントブロック220は、現画像フィールドブ
ロック200の下半分のブロックである。
Here, the current image 100 is an image of the interlaced scanning system, and is constituted by a field including odd-numbered scanning lines or even-numbered scanning lines. Also,
The current image first segment block 210 is an upper half block of the current image field block 200, and the current image second segment block 220 is a lower half block of the current image field block 200.

【0102】サーチウィンドウデータ出力ユニット20
00は、出力端子S0およびS1を有し、図2(b)に
示された前符号化画像300のサーチウィンドウ400
内の画素データを画素毎に出力端子S0およびS1を通
してセグメントブロックディストーション算出ユニット
3000に出力する。ここで、前符号化画像300も、
現画像100と同じインターレース走査方式の画像であ
り、奇数走査ラインまたは偶数走査ラインからなるフィ
ールドによって構成される。また、現画像フィールドブ
ロック200を現符号化ブロックとした場合に、現符号
化ブロックと同一サイズである複数の候補ブロックをフ
ィールド候補ブロック500と呼び、現画像第1セグメ
ントブロック210を現符号化ブロックとした場合に、
現符号化ブロックと同一サイズである複数の候補ブロッ
クを第1セグメント候補ブロック510と呼び、現画像
第2セグメントブロック220を現符号化ブロックとし
た場合に、現符号化ブロックと同一サイズである複数の
候補ブロックを第2セグメント候補ブロック520と呼
ぶとする。
Search window data output unit 20
00 has output terminals S0 and S1, and a search window 400 of the pre-coded image 300 shown in FIG.
Are output to the segment block distortion calculation unit 3000 through the output terminals S0 and S1 for each pixel. Here, the pre-encoded image 300 is also
This is an image of the same interlace scanning method as the current image 100, and is constituted by a field including odd-numbered scanning lines or even-numbered scanning lines. When the current image field block 200 is the current coded block, a plurality of candidate blocks having the same size as the current coded block are referred to as field candidate blocks 500, and the current image first segment block 210 is referred to as the current coded block. And if
A plurality of candidate blocks having the same size as the current coded block are referred to as first segment candidate blocks 510. When the current image second segment block 220 is set as the current coded block, a plurality of candidate blocks having the same size as the current coded block are provided. Is referred to as a second segment candidate block 520.

【0103】セグメントブロックディストーション算出
ユニット3000は、サーチウィンドウ400内の複数
の第1セグメント候補ブロック510に対して、まず、
各第1セグメント候補ブロック510毎に、現画像第1
セグメントブロック210の画素データと位置的に対応
する各第1セグメント候補ブロック510の画素データ
から現画像第1セグメントブロック210の画素データ
を減算し、減算した結果をさらに正数変換することで、
各画素毎の局所ディストーションを求める。次いで、各
第1セグメント候補ブロック510毎に第1セグメント
候補ブロック510のすべての局所ディストーションを
加算することにより、現画像100上の現画像第1セグ
メントブロック210と前符号化画像300上の各第1
セグメント候補ブロック510との間のそれぞれのディ
ストーションを算出する。
[0103] The segment block distortion calculation unit 3000 first assigns a plurality of first segment candidate blocks 510 in the search window 400 to
For each first segment candidate block 510, the current image first block
By subtracting the pixel data of the first segment block 210 of the current image from the pixel data of each first segment candidate block 510 corresponding in position to the pixel data of the segment block 210, the result of the subtraction is further converted to a positive number,
Find the local distortion for each pixel. Next, by adding all the local distortions of the first segment candidate block 510 for each first segment candidate block 510, the current image first segment block 210 on the current image 100 and each of the first 1
The respective distortions with the segment candidate block 510 are calculated.

【0104】また、セグメントブロックディストーショ
ン算出ユニット3000は、サーチウィンドウ400内
の複数の第2セグメント候補ブロック520に対して、
まず、各第2セグメント候補ブロック520毎に、現画
像第2セグメントブロック220の画素データと位置的
に対応する各第2セグメント候補ブロック520の画素
データから現画像第2セグメントブロック220の画素
データを減算し、減算した結果をさらに正数変換するこ
とで、各画素毎の局所ディストーションを求める。次い
で、各第2セグメント候補ブロック520毎に第2セグ
メント候補ブロック520のすべての局所ディストーシ
ョンを加算することにより、現画像100上の現画像第
2セグメントブロック220と前符号化画像300上の
各第2セグメント候補ブロック520との間のそれぞれ
のディストーションを算出する。
Further, the segment block distortion calculating unit 3000 calculates a plurality of second segment candidate blocks 520 in the search window 400 by using
First, for each second segment candidate block 520, the pixel data of the current image second segment block 220 is calculated from the pixel data of each second segment candidate block 520 that corresponds in position to the pixel data of the current image second segment block 220. Subtraction is performed, and the result of the subtraction is further converted to a positive number, thereby obtaining a local distortion for each pixel. Next, by adding all the local distortions of the second segment candidate block 520 for each second segment candidate block 520, the current image second segment block 220 on the current image 100 and each of the second The respective distortion between the two-segment candidate block 520 is calculated.

【0105】ここで、現画像第1セグメントブロック2
10の画素データと複数の第1セグメント候補ブロック
510の画素データに基づいて求められるそれぞれのデ
ィストーションを第1セグメントブロックディストーシ
ョンと呼び、現画像第2セグメントブロック220の画
素データと複数の第2セグメント候補ブロック520の
画素データに基づいて求められるそれぞれのディストー
ションを第2セグメントブロックディストーションと呼
ぶとする。
Here, the current image first segment block 2
Each of the distortions determined based on the pixel data of the first image 10 and the pixel data of the plurality of first segment candidate blocks 510 is referred to as a first segment block distortion. Each distortion obtained based on the pixel data of the block 520 is referred to as a second segment block distortion.

【0106】セグメントブロック特定ユニット4000
は、セグメントブロックディストーション算出ユニット
3000で算出された複数の第1セグメントブロックデ
ィストーションの中から最小の第1セグメントブロック
ディストーションを検出し、検出された最小の第1セグ
メントブロックディストーションに対応する第1セグメ
ント候補ブロック510のサーチウィンドウ400内の
位置情報に基づいて現画像第1セグメントブロック21
0の動きベクトルを特定するとともに、セグメントブロ
ックディストーション算出ユニット3000で算出され
た複数の第2セグメントブロックディストーションの中
から最小の第2セグメントブロックディストーションを
検出し、検出された最小の第2セグメントブロックディ
ストーションが算出された第2セグメント候補ブロック
520のサーチウィンドウ400内の位置情報に基づい
て現画像第2セグメントブロック220の動きベクトル
を特定する。
Segment block specifying unit 4000
Detects a minimum first segment block distortion from the plurality of first segment block distortions calculated by the segment block distortion calculation unit 3000, and selects a first segment candidate corresponding to the detected minimum first segment block distortion. The current image first segment block 21 based on the position information in the search window 400 in block 510
A motion vector of 0 is specified, a minimum second segment block distortion is detected from a plurality of second segment block distortions calculated by the segment block distortion calculation unit 3000, and the detected minimum second segment block distortion is detected. The motion vector of the current image second segment block 220 is specified based on the position information in the search window 400 of the second segment candidate block 520 for which is calculated.

【0107】ここで、現画像第1セグメントブロック2
10の動きベクトルを第1セグメント動きベクトルMV
Sg1と呼び、現画像第2セグメントブロック220の
動きベクトルを第2セグメント動きベクトルMVSg2
と呼ぶとする。フィールドブロックディストーション算
出ユニット5000は、セグメントブロックディストー
ション算出ユニット3000で算出された複数の第1セ
グメントブロックディストーションおよび第2セグメン
トブロックディストーションに対して、サーチウィンド
ウ400内の複数のフィールド候補ブロック500に対
応するように、各第1セグメントブロックディストーシ
ョンと各第2セグメントブロックディストーションを加
算して、現画像フィールドブロック200を現符号化ブ
ロックとする複数のディストーションを算出する。ここ
で、現画像フィールドブロック200の各フィールド候
補ブロック500に対応するそれぞれのディストーショ
ンをフィールドブロックディストーションと呼ぶとす
る。
Here, the current image first segment block 2
10 motion vectors into the first segment motion vector MV.
Sg1, and the motion vector of the current image second segment block 220 is the second segment motion vector MVSg2.
Let's call it. The field block distortion calculation unit 5000 may correspond to the plurality of field candidate blocks 500 in the search window 400 with respect to the plurality of first segment block distortions and the second segment block distortion calculated by the segment block distortion calculation unit 3000. Then, the first segment block distortion and the second segment block distortion are added to calculate a plurality of distortions in which the current image field block 200 is the current coded block. Here, each distortion corresponding to each field candidate block 500 of the current image field block 200 is referred to as a field block distortion.

【0108】フィールドブロック特定ユニット6000
は、フィールドブロックディストーション算出ユニット
5000によって算出された複数のフィールドブロック
ディストーションの中から最小のフィールドブロックデ
ィストーションを検出し、検出された最小のフィールド
ブロックディストーションに対応するフィールド候補ブ
ロック500の位置情報に基づいて現画像フィールドブ
ロック200の動きベクトルを特定する。ここで、現画
像フィールドブロック200の動きベクトルをフィール
ド動きベクトルMVFiと呼ぶとする。
Field block specifying unit 6000
Detects the minimum field block distortion from the plurality of field block distortions calculated by the field block distortion calculation unit 5000, and based on the position information of the field candidate block 500 corresponding to the detected minimum field block distortion. The motion vector of the current image field block 200 is specified. Here, the motion vector of the current image field block 200 is referred to as a field motion vector MVFi.

【0109】信号出力ユニット7000は、現画像ブロ
ックデータ出力ユニット1000、サーチウィンドウデ
ータ出力ユニット2000、セグメントブロックディス
トーション算出ユニット3000、セグメントブロック
特定ユニット4000、フィールドブロックディストー
ション算出ユニット5000およびフィールドブロック
特定ユニット6000の動作を制御する。
Signal output unit 7000 includes current image block data output unit 1000, search window data output unit 2000, segment block distortion calculation unit 3000, segment block identification unit 4000, field block distortion calculation unit 5000, and field block identification unit 6000. Control behavior.

【0110】さらに、現画像フィールドブロック200
およびサーチウィンドウ400について説明する。ま
ず、現画像フィールドブロック200のサイズは、任意
のサイズでよいが、本実施例1では説明を容易にするた
め、図3〜図5に示すように、現画像フィールドブロッ
ク200が4行2列の画素データによって構成されるも
のとし、第1セグメントブロックを2行2列の画素デー
タ a(0,0),a(0,1),a(1,0),a(1,1) によって表し、第2セグメントブロックを2行2列の画
素データ a(0,3),a(0,4),a(1,3),a(1,4) によって表すことにする。
Further, the current image field block 200
And the search window 400 will be described. First, the size of the current image field block 200 may be any size. However, in the first embodiment, the current image field block 200 has four rows and two columns as shown in FIGS. And the first segment block is defined by pixel data a (0,0), a (0,1), a (1,0), a (1,1) in two rows and two columns. The second segment block is represented by pixel data a (0,3), a (0,4), a (1,3), a (1,4) in two rows and two columns.

【0111】次に、サーチウィンドウ400のサイズ
は、現画像フィールドブロック200より大きければ任
意のサイズでよいが、図3〜図5に示すように、現画像
フィールドブロック200に対して水平方向に−1〜+
1画素、垂直方向に−1〜+1画素広げた6行4列の画
素データから構成されるものとし、画素データ b(0,0),b(1,0),b(2,0),b(3,0) ,b(0,1),b(1,1),b(2,1),b(3,1) ,b(0,2),b(1,2),b(2,2),b(3,2) ,b(0,3),b(1,3),b(2,3),b(3,3) ,b(0,4),b(1,4),b(2,4),b(3,4) ,b(0,5),b(1,5),b(2,5),b(3,5) によって表すことにする。
The size of the search window 400 may be any size as long as it is larger than the current image field block 200. However, as shown in FIGS. 1 to +
It is assumed that the pixel data is composed of pixel data of 6 rows and 4 columns extended by one pixel and −1 to +1 pixel in the vertical direction, and pixel data b (0,0), b (1,0), b (2,0), b (3,0), b (0,1), b (1,1), b (2,1), b (3,1), b (0,2), b (1,2), b (2,2), b (3,2), b (0,3), b (1,3), b (2,3), b (3,3), b (0,4), b ( 1,4), b (2,4), b (3,4), b (0,5), b (1,5), b (2,5), b (3,5) I do.

【0112】このとき、図4に示すように、現画像第1
セグメントブロック210の第1セグメント候補ブロッ
ク510は、4行4列の画素データ b(0,0),b(1,0),b(2,0),b(3,0) ,b(0,1),b(1,1),b(2,1),b(3,1) ,b(0,2),b(1,2),b(2,2),b(3,2) ,b(0,3),b(1,3),b(2,3),b(3,3) によって構成される上側サーチウィンドウ410内に存
在する。
At this time, as shown in FIG.
The first segment candidate block 510 of the segment block 210 has four rows and four columns of pixel data b (0,0), b (1,0), b (2,0), b (3,0), b (0 , 1), b (1,1), b (2,1), b (3,1), b (0,2), b (1,2), b (2,2), b (3, 2) exists in the upper search window 410 composed of b (0,3), b (1,3), b (2,3), b (3,3).

【0113】また、図5に示すように、現画像第1セグ
メントブロック220の第2セグメント候補ブロック5
20は、4行4列の画素データ b(0,2),b(1,2),b(2,2),b(3,2) ,b(0,3),b(1,3),b(2,3),b(3,3) ,b(0,4),b(1,4),b(2,4),b(3,4) ,b(0,5),b(1,5),b(2,5),b(3,5) によって構成される下側サーチウィンドウ420内に存
在する。
Also, as shown in FIG. 5, the second segment candidate block 5 of the current image first segment block 220
20 is pixel data b (0,2), b (1,2), b (2,2), b (3,2), b (0,3), b (1,3) ), b (2,3), b (3,3), b (0,4), b (1,4), b (2,4), b (3,4), b (0,5) , b (1,5), b (2,5), b (3,5) in the lower search window 420.

【0114】本実施例1の動きベクトル探索装置は、ま
ず、現画像第1セグメントブロック210の画素データ
と上側サーチウィンドウ410内の9個の第1セグメン
ト候補ブロック510の画素データに基づいて第1セグ
メントブロックディストーションを算出するとともに、
現画像第2セグメントブロック220の画素データと下
側サーチウィンドウ420内の9個の第2セグメント候
補ブロック520の画素データに基づいて第2セグメン
トブロックディストーションを算出し、次いで、算出さ
れた各第1セグメントブロックディストーションと各第
2セグメントブロックディストーションを加算して、現
画像フィールドブロック200の画素データとサーチウ
ィンドウ400内の9個のフィールド候補ブロック50
0の画素データとの間のフィールドブロックディストー
ションを算出し、それぞれ全点探索法で第1セグメント
動きベクトルMVSg1、第2セグメント動きベクトル
MVSg2およびフィールド動きベクトルMVFiを求
めるものである。
First, the motion vector search apparatus according to the first embodiment performs a first search based on the pixel data of the current image first segment block 210 and the pixel data of the nine first segment candidate blocks 510 in the upper search window 410. Calculate segment block distortion,
A second segment block distortion is calculated based on the pixel data of the current image second segment block 220 and the pixel data of the nine second segment candidate blocks 520 in the lower search window 420, and then each of the calculated first segment blocks is calculated. By adding the segment block distortion and each second segment block distortion, the pixel data of the current image field block 200 and the nine field candidate blocks 50 in the search window 400 are added.
A field block distortion with pixel data of 0 is calculated, and a first segment motion vector MVSg1, a second segment motion vector MVSg2, and a field motion vector MVFi are obtained by an all point search method.

【0115】次に、信号出力ユニット7000について
説明する。図6に示すように、信号出力ユニット700
0は、出力端子P1〜P10を有し、これらの出力端子
P1〜P10から出力されるそれぞれの信号によって上
記各ユニットを制御する。また、これらの信号は、2値
のパルス信号であり、ローレベルのときは0を表し、ハ
イレベルのときは1を表す。以下、図7〜図11に示さ
れたタイムチャートに基づいてこれらの信号を説明す
る。
Next, the signal output unit 7000 will be described. As shown in FIG. 6, the signal output unit 700
Numeral 0 has output terminals P1 to P10, and controls each of the above units by respective signals output from these output terminals P1 to P10. Further, these signals are binary pulse signals, and represent 0 when the signal is at a low level and 1 when the signal is at a high level. Hereinafter, these signals will be described based on the time charts shown in FIGS.

【0116】ここで、図7、図8および図11に示され
たRは、現画像ブロックデータ出力ユニット1000か
ら出力端子Rを通して出力された現画像フィールドブロ
ック200の画素データを示し、S0およびS1は、サ
ーチウィンドウデータ出力ユニット2000から出力端
子S0およびS1を通して出力されたそれぞれのサーチ
ウィンドウ400の画素データを示す。
Here, R shown in FIGS. 7, 8 and 11 indicates pixel data of the current image field block 200 output from the current image block data output unit 1000 through the output terminal R, and S0 and S1 Represents pixel data of each search window 400 output from the search window data output unit 2000 through the output terminals S0 and S1.

【0117】出力端子P1から出力されるクロックパル
ス信号CK1は、周期の1/2のパルス幅をもつ信号で
あり、現画像ブロックデータ出力ユニット1000、サ
ーチウィンドウデータ出力ユニット2000およびセグ
メントブロックディストーション算出ユニット3000
に出力される。現画像ブロックデータ出力ユニット10
00およびサーチウィンドウデータ出力ユニット200
0は、このクロックパルス信号CK1のダウンエッジに
同期してセグメントブロックディストーション算出ユニ
ット3000にそれぞれの画素データを出力する。ま
た、セグメントブロックディストーション算出ユニット
3000は、このクロックパルス信号CK1の立ち上り
に同期して現画像ブロックデータ出力ユニット1000
およびサーチウィンドウデータ出力ユニット2000か
ら出力された画素データを入力する。
The clock pulse signal CK1 output from the output terminal P1 is a signal having a pulse width of 1/2 of the cycle, and includes a current image block data output unit 1000, a search window data output unit 2000, and a segment block distortion calculation unit. 3000
Is output to Current image block data output unit 10
00 and search window data output unit 200
0 outputs each pixel data to the segment block distortion calculation unit 3000 in synchronization with the down edge of the clock pulse signal CK1. The segment block distortion calculating unit 3000 synchronizes with the rising edge of the clock pulse signal CK1 to output the current image block data output unit 1000.
And the pixel data output from the search window data output unit 2000.

【0118】また、図7に示すように、サーチウィンド
ウデータ出力ユニット2000から出力された最初の画
素データがセグメントブロックディストーション算出ユ
ニット3000に入力されるクロックパルス信号CK1
のパルスを1クロック目(C1)として数えることにす
る。出力端子P2から出力されるパルス信号CK2は、
クロックパルス信号CK1と同じ動作を行う信号であ
り、セグメントブロックディストーション算出ユニット
3000、セグメントブロック特定ユニット4000、
フィールドブロックディストーション算出ユニット50
00およびフィールドブロック特定ユニット6000に
出力される。
As shown in FIG. 7, the first pixel data output from search window data output unit 2000 is the clock pulse signal CK1 input to segment block distortion calculation unit 3000.
Is counted as the first clock (C1). The pulse signal CK2 output from the output terminal P2 is
This signal performs the same operation as the clock pulse signal CK1, and includes a segment block distortion calculating unit 3000, a segment block specifying unit 4000,
Field block distortion calculation unit 50
00 and the field block identification unit 6000.

【0119】出力端子P3から出力されるパルス信号S
Uは、クロックパルス信号CK1の8倍の周期、8倍の
パルス幅をもち、クロックパルス信号CK1の4クロッ
ク目(C4)のダウンエッジに同期してローレベルから
ハイレベルに立ち上がるように出力され、以後クロック
パルス信号CK1の8パルス毎に出力される。パルス信
号SUは、セグメントブロックディストーション算出ユ
ニット3000に出力される。
Pulse signal S output from output terminal P3
U has eight times the cycle and eight times the pulse width of the clock pulse signal CK1, and is output so as to rise from a low level to a high level in synchronization with the falling edge of the fourth clock (C4) of the clock pulse signal CK1. Thereafter, the clock pulse signal CK1 is output every eight pulses. The pulse signal SU is output to the segment block distortion calculation unit 3000.

【0120】出力端子P4から出力されるパルス信号S
Lは、クロックパルス信号CK1の4倍の周期、4倍の
パルス幅をもち、パルス信号SLは、初期状態がハイレ
ベルであり、クロックパルス信号CK1の2クロック目
(C2)のダウンエッジに同期してハイレベルからロー
レベルにダウンし、クロックパルス信号CK1の4クロ
ック目(C4)のダウンエッジに同期してローレベルか
らハイレベルに立ち上がるように出力され、以後クロッ
クパルス信号CK1の4パルス毎に出力される。パルス
信号SLは、セグメントブロックディストーション算出
ユニット3000に出力される。
Pulse signal S output from output terminal P4
L has a period four times as long as the clock pulse signal CK1 and a pulse width four times as large as the clock pulse signal CK1, and the pulse signal SL is initially at the high level and is synchronized with the falling edge of the second clock (C2) of the clock pulse signal CK1. The clock pulse signal CK1 is output so as to rise from the low level to the high level in synchronization with the falling edge of the fourth clock (C4) of the clock pulse signal CK1. Is output to The pulse signal SL is output to the segment block distortion calculation unit 3000.

【0121】出力端子P5から出力されるパルス信号L
D1は、クロックパルス信号CK1のパルス幅の4倍の
パルス幅をもち、クロックパルス信号CK1の14クロ
ック目(C14)のダウンエッジに同期して出力され、
以後クロックパルス信号CK1の8パルス毎に出力され
る。パルス信号LD1は、セグメントブロックディスト
ーション算出ユニット3000およびセグメントブロッ
ク特定ユニット4000に出力される。
Pulse signal L output from output terminal P5
D1 has a pulse width four times the pulse width of the clock pulse signal CK1, and is output in synchronization with the falling edge of the 14th clock (C14) of the clock pulse signal CK1,
Thereafter, the clock pulse signal CK1 is output every eight pulses. The pulse signal LD1 is output to the segment block distortion calculating unit 3000 and the segment block specifying unit 4000.

【0122】出力端子P6から出力されるパルス信号L
D2は、パルス信号LD1のパルス幅と同じパルス幅を
もち、クロックパルス信号CK1の24クロック目(C
24)のダウンエッジに同期して出力され、以後クロッ
クパルス信号CK1の8パルス毎にパルス信号LD1の
ダウンエッジに同期するように出力される。パルス信号
LD2は、セグメントブロック特定ユニット4000お
よびフィールドブロック特定ユニット6000に出力さ
れる。
Pulse signal L output from output terminal P6
D2 has the same pulse width as the pulse width of the pulse signal LD1, and the 24th clock of the clock pulse signal CK1 (C
The clock signal is output in synchronization with the down edge of 24), and thereafter, is output in synchronization with the down edge of the pulse signal LD1 every eight pulses of the clock pulse signal CK1. The pulse signal LD2 is output to the segment block specifying unit 4000 and the field block specifying unit 6000.

【0123】出力端子P7から出力されるパルス信号L
D3は、パルス信号LD1のパルス幅と同じパルス幅を
もち、クロックパルス信号CK1の26クロック目(C
26)のダウンエッジに同期して出力され、以後クロッ
クパルス信号CK1の8パルス毎にパルス信号LD2の
ダウンエッジに同期するように出力される。パルス信号
LD3は、フィールドブロック特定ユニット6000に
出力される。
Pulse signal L output from output terminal P7
D3 has the same pulse width as the pulse width of the pulse signal LD1, and the 26th clock (C
26) is output in synchronism with the down edge of the clock pulse signal CK1, and thereafter outputted in synchronism with the down edge of the pulse signal LD2 every eight pulses of the clock pulse signal CK1. The pulse signal LD3 is output to the field block specifying unit 6000.

【0124】出力端子P8から出力されるパルス信号C
TEは、クロックパルス信号CK1の2倍の周期、2倍
のパルス幅をもち、パルス信号CTEは、クロックパル
ス信号CK1の1クロック目(C1)のダウンエッジに
同期してローレベルからハイレベルに立ち上がるように
出力され、以後クロックパルス信号CK1の2パルス毎
に出力される。パルス信号CTEは、セグメントブロッ
ク特定ユニット4000、フィールドブロックディスト
ーション算出ユニット5000およびフィールドブロッ
ク特定ユニット6000に出力される。
Pulse signal C output from output terminal P8
TE has twice the period and twice the pulse width of the clock pulse signal CK1, and the pulse signal CTE changes from a low level to a high level in synchronization with the falling edge of the first clock (C1) of the clock pulse signal CK1. The signal is output so as to rise, and thereafter output every two pulses of the clock pulse signal CK1. The pulse signal CTE is output to the segment block specifying unit 4000, the field block distortion calculating unit 5000, and the field block specifying unit 6000.

【0125】出力端子P9から出力されるパルス信号S
MV1は、クロックパルス信号CK1の2倍のパルス幅
をもち、パルス信号SMV1は、クロックパルス信号C
K1の30クロック目(C30)のダウンエッジに同期
して立ち上がるように出力され、以後クロックパルス信
号CK1の8パルス毎に出力される。パルス信号SMV
1は、セグメントブロック特定ユニット4000に出力
される。
Pulse signal S output from output terminal P9
MV1 has a pulse width twice that of the clock pulse signal CK1, and the pulse signal SMV1 is
It is output so as to rise in synchronization with the down edge of the 30th clock (C30) of K1, and thereafter output every 8 pulses of the clock pulse signal CK1. Pulse signal SMV
1 is output to the segment block specifying unit 4000.

【0126】出力端子P10から出力されるパルス信号
SMV2は、クロックパルス信号CK1の2倍のパルス
幅をもち、クロックパルス信号CK1の31クロック目
(C31)のダウンエッジに同期して立ち上がるように
出力され、以後クロックパルス信号CK1の8パルス毎
にパルス信号SMV1のダウンエッジに同期するように
出力される。パルス信号SMV2は、セグメントブロッ
ク特定ユニット4000およびフィールドブロック特定
ユニット6000に出力される。
The pulse signal SMV2 output from the output terminal P10 has a pulse width twice that of the clock pulse signal CK1, and is output so as to rise in synchronization with the down edge of the 31st clock (C31) of the clock pulse signal CK1. Thereafter, every eight pulses of the clock pulse signal CK1 are output in synchronization with the down edge of the pulse signal SMV1. The pulse signal SMV2 is output to the segment block specifying unit 4000 and the field block specifying unit 6000.

【0127】また、図7、図8および図11に示すよう
に、現符号化ブロックデータ出力ユニット1000は、
クロックパルス信号CK1の13クロック目(C13)
のダウンエッジから1パルス毎にそれぞれのパルスのダ
ウンエッジに同期して現画像フィールドブロック200
の画素データを a(0,0),a(0,2),a(0,1),a(0,3) ,a(1,1),a(1,3),a(1,0),a(1,2) の順に出力する。
As shown in FIGS. 7, 8 and 11, the current coded block data output unit 1000
13th clock of clock pulse signal CK1 (C13)
From the down edge of the current image field block 200 in synchronization with the down edge of each pulse for each pulse.
Pixel data of a (0,0), a (0,2), a (0,1), a (0,3), a (1,1), a (1,3), a (1, Output in the order of 0), a (1,2).

【0128】また、サーチウィンドウデータ出力ユニッ
ト2000は、クロックパルス信号CK1の1パルス毎
にそれぞれのパルスのダウンエッジに同期して上側サー
チウィンドウ410の画素データおよび下側サーチウィ
ンドウ420の画素データを時分割で出力端子S0およ
びS1から出力する。すなわち、サーチウィンドウ40
0の画素データは、出力端子S0から b(0,1),b(0,3),b(0,0),b(0,2) ,b(1,0),b(1,2),b(1,1),b(1,3) ,b(2,1),b(2,3),b(2,0),b(2,2) ,b(3,0),b(3,2),b(3,1),b(3,3) の順に出力され、同時に、出力端子S1から b(0,3),b(0,5),b(0,2),b(0,4) ,b(1,2),b(1,4),b(1,3),b(1,5) ,b(2,3),b(2,5),b(2,2),b(2,4) ,b(3,2),b(3,4),b(3,3),b(3,5) の順に出力される。
The search window data output unit 2000 outputs the pixel data of the upper search window 410 and the pixel data of the lower search window 420 in synchronization with the down edge of each pulse of the clock pulse signal CK1. The signals are output from the output terminals S0 and S1 by division. That is, the search window 40
The pixel data of 0 is output from the output terminal S0 through b (0,1), b (0,3), b (0,0), b (0,2), b (1,0), b (1,2). ), b (1,1), b (1,3), b (2,1), b (2,3), b (2,0), b (2,2), b (3,0) , b (3,2), b (3,1), b (3,3), and at the same time, b (0,3), b (0,5), b (0, 2), b (0,4), b (1,2), b (1,4), b (1,3), b (1,5), b (2,3), b (2,5 ), b (2,2), b (2,4), b (3,2), b (3,4), b (3,3), b (3,5) in this order.

【0129】次に、動きベクトル探索装置のさらに具体
的な構成を説明する。セグメントブロックディストーシ
ョン算出ユニット3000は、図12に示すように、2
次元配列プロセッサグループ3100、入力レジスタグ
ループ3200、第1サイドレジスタグループ3300
および第2サイドレジスタグループ3400から構成さ
れている。
Next, a more specific configuration of the motion vector search device will be described. As shown in FIG. 12, the segment block distortion calculation unit 3000
Dimensional array processor group 3100, input register group 3200, first side register group 3300
And the second side register group 3400.

【0130】2次元配列プロセッサグループ3100
は、さらに、9個のプロセッサエレメント PE(0,0),PE(1,0),PE(2,0) ,PE(0,1),PE(1,1),PE(2,1) ,PE(0,2),PE(1,2),PE(2,2) から構成され、入力レジスタグループ3200は、さら
に、3個の入力レジスタ IR(3,0),IR(3,1),IR(3,2)) から構成され、第1サイドレジスタグループ3300
は、さらに、4個の第1サイドレジスタ SR(0,ー1),SR(1,-1),SR(2,-1),SR(3,-1) から構成され、第2サイドレジスタグループ3400
は、さらに、4個の第2サイドレジスタ SR(0,3),SR(1,3),SR(2,3),SR(3,3) から構成されている。
Two-dimensional array processor group 3100
Further comprises nine processor elements PE (0,0), PE (1,0), PE (2,0), PE (0,1), PE (1,1), PE (2,1) , PE (0,2), PE (1,2), PE (2,2), and the input register group 3200 further includes three input registers IR (3,0), IR (3,1). ), IR (3,2)) and the first side register group 3300
Is composed of four first side registers SR (0, -1), SR (1, -1), SR (2, -1), SR (3, -1). Group 3400
Is composed of four second side registers SR (0,3), SR (1,3), SR (2,3), SR (3,3).

【0131】ここで、プロセッサエレメントPE(x,
y)、入力レジスタIR(x,y)、第1サイドレジス
タSR(x,y)および第2サイドレジスタSR(x,
y)のx,yは、プロセッサエレメントPE(0,0)
を原点とする各プロセッサエレメントPE(x,y)お
よび各レジスタ(x,y)の位置を表す。図12におけ
る水平方向の位置が x=0,1,2,3 で表され、図12における垂直方向の位置が、PE
(0,0)を原点に下方向をプラスとして、 y=−1,0,1,2,3 で表されている。
Here, the processor element PE (x,
y), an input register IR (x, y), a first side register SR (x, y), and a second side register SR (x, y).
x and y in y) are processor elements PE (0, 0)
Represents the position of each processor element PE (x, y) and each register (x, y) with the origin as the origin. The position in the horizontal direction in FIG. 12 is represented by x = 0, 1, 2, 3, and the position in the vertical direction in FIG.
It is represented by y = -1,0,1,2,3, with (0,0) as the origin and the downward direction as a plus.

【0132】セグメントブロックディストーション算出
ユニット3000は、まず、サーチウィンドウデータ出
力ユニット2000から出力されたサーチウィンドウ4
00の画素データを入力レジスタIR(3,0)および
入力レジスタIR(3,2)に入力し、次いで、入力さ
れた画素データを各プロセッサエレメントPE(x,
y)および各レジスタ(x,y)間で図12における上
方向、下方向および左方向に転送する。
The segment block distortion calculation unit 3000 firstly outputs the search window 4 output from the search window data output unit 2000.
00 is input to the input registers IR (3,0) and IR (3,2), and then the input pixel data is input to each processor element PE (x,
y) and each register (x, y) in the upward, downward and left directions in FIG.

【0133】各プロセッサエレメントPE(x,y)
は、サーチウィンドウ400の画像データを転送して保
持するとともに、現画像ブロックデータ出力ユニット1
000から出力された現画像フィールドブロック200
の画素データを入力し、入力された現画像フィールドブ
ロック200の画素データおよび現画像フィールドブロ
ック200の画素データと位置的に対応するサーチウィ
ンドウ400の各候補ブロック500の画素データに基
づいて時分割処理によって第1セグメントブロックディ
ストーションおよび第2セグメントブロックディストー
ションを算出し、算出されたそれぞれの第1セグメント
ブロックディストーションおよび第2セグメントブロッ
クディストーションをセグメントブロック特定ユニット
4000およびフィールドブロックディストーション算
出ユニット5000に出力する。
Each processor element PE (x, y)
Transmits and holds the image data of the search window 400, and outputs the current image block data output unit 1
000 output from the current image field block 200
Pixel data of the current image field block 200 and time division processing based on the pixel data of each candidate block 500 of the search window 400 corresponding to the pixel data of the current image field block 200 in position. Then, the first and second segment block distortions are calculated, and the calculated first and second segment block distortions are output to the segment block specifying unit 4000 and the field block distortion calculation unit 5000.

【0134】各入力レジスタIR(x,y)は、サーチ
ウィンドウ400の画素データを保持して転送するバッ
ファであり、現画像ブロックデータ出力ユニット100
0から出力された現画像第1セグメントブロックおよび
現画像第2セグメントブロックの画素データが、それぞ
れサーチウィンドウデータ出力ユニット2000から出
力された各第1セグメント候補ブロックの画素データお
よび各第2セグメント候補ブロックの画素データと各プ
ロセッサエレメントPE(x,y)において位置的に対
応するように第1および第2サイドレジスタSR(x,
y)とともに設けられている。
Each input register IR (x, y) is a buffer for holding and transferring the pixel data of the search window 400, and the current image block data output unit 100
0, the pixel data of the current image first segment block and the current image second segment block output from the pixel data of each first segment candidate block and each second segment candidate block output from the search window data output unit 2000, respectively. And the first and second side registers SR (x, y) so as to correspond to the pixel data of each of the processor elements PE (x, y).
y).

【0135】また、入力レジスタIR(3,0)は、サ
ーチウィンドウデータ出力ユニット2000の出力端子
S0と電気的に接続され、入力レジスタIR(3,2)
は、サーチウィンドウデータ出力ユニット2000の出
力端子S1と電気的に接続される。各第1サイドレジス
タSR(x,y)および第2サイドレジスタSR(x,
y)は、サーチウィンドウ400の画素データを保持し
て転送するバッファであり、各プロセッサエレメントP
E(x,y)およびレジスタ(x,y)に入力された各
画素データを全体として図12における上下方向に転送
するように設けられている。
Input register IR (3,0) is electrically connected to output terminal S0 of search window data output unit 2000, and input register IR (3,2).
Is electrically connected to the output terminal S1 of the search window data output unit 2000. Each of the first side register SR (x, y) and the second side register SR (x, y)
y) is a buffer for holding and transferring the pixel data of the search window 400, and each processor element P
Each pixel data input to E (x, y) and the register (x, y) is provided so as to be transferred vertically in FIG. 12 as a whole.

【0136】次に、各プロセッサエレメントPE(x,
y)の端子配置およびブロック図を説明する。図13に
示すように、プロセッサエレメントPE(x,y)は、
入力端子YUi,YDi,YLi,DiおよびX並びに
出力端子YUo,YDo,YLoおよびDoを有し、さ
らに、図6に示された信号出力ユニット7000の出力
端子P1〜P5に接続された図示しない入力端子を有し
ている。また、図14に示すように、プロセッサエレメ
ントPE(x,y)は、さらに、転送方向選択部360
0、ディストーション算出部3700およびディストー
ション転送部3800から構成されている。
Next, each processor element PE (x,
The terminal arrangement and block diagram of y) will be described. As shown in FIG. 13, the processor element PE (x, y)
It has input terminals YUi, YDi, YLi, Di, and X and output terminals YUo, YDo, YLo, and Do, and further has inputs (not shown) connected to output terminals P1 to P5 of the signal output unit 7000 shown in FIG. It has terminals. As shown in FIG. 14, the processor element PE (x, y) further includes a transfer direction selection unit 360.
0, a distortion calculation unit 3700 and a distortion transfer unit 3800.

【0137】転送方向選択部3600は、セレクタ36
01、第1フリップフロップ3602および第2フリッ
プフロップ3603から構成される。セレクタ3601
は、入力端子S0,S1,A,B,Cおよび出力端子Y
を有する。入力端子S0は、信号出力ユニット7000
の出力端子P3に電気的に接続され、入力端子S1は、
信号出力ユニット7000の出力端子P4に電気的に接
続される。入力端子Aは、入力端子YDiを介してプロ
セッサエレメントPE(x,y−1)または後述する第
1サイドレジスタSR(x,−1)の出力端子YDoに
電気的に接続される。入力端子Bは、入力端子をYUi
を介してプロセッサエレメントPE(x,y+1)また
は後述する第2サイドレジスタSR(x,3)の出力端
子YDoに電気的に接続される。入力端子Cは、入力端
子YLiを介してプロセッサエレメントPE(x+1,
y)または後述する入力レジスタIR(3,y)の出力
端子YLoに電気的に接続される。出力端子Yは、第1
フリップフロップ3602の入力端子iに電気的に接続
される。
The transfer direction selection unit 3600 includes a selector 36
01, a first flip-flop 3602 and a second flip-flop 3603. Selector 3601
Are input terminals S0, S1, A, B, C and output terminal Y
Having. The input terminal S0 is a signal output unit 7000
Is electrically connected to the output terminal P3, and the input terminal S1 is
It is electrically connected to output terminal P4 of signal output unit 7000. The input terminal A is electrically connected to the processor element PE (x, y-1) or the output terminal YDo of a first side register SR (x, -1) described later via the input terminal YDi. The input terminal B is the input terminal YUi
Is electrically connected to the processor element PE (x, y + 1) or an output terminal YDo of a second side register SR (x, 3) described later. The input terminal C is connected to the processor element PE (x + 1,
y) or an output terminal YLo of an input register IR (3, y) described later. The output terminal Y is connected to the first
It is electrically connected to the input terminal i of the flip-flop 3602.

【0138】セレクタ3601は、信号出力ユニット7
000から出力された信号SU,SLをそれぞれ入力端
子S0,S1を通して入力し、入力された信号SU,S
Lに基づいて入力端子A,B,Cの何れか一つの入力端
子と出力端子Yを電気的に接続する切換器であり、信号
SU,SLが、それぞれ0,0のときには、入力端子A
と出力端子Yを電気的に接続し、1,0のときには、入
力端子Bと出力端子Yを電気的に接続し、0,1および
1,1のときには、入力端子Cと出力端子Yを電気的に
接続する。
The selector 3601 is connected to the signal output unit 7
000, the signals SU, SL output from the input terminals S0, S1 are input through input terminals S0, S1, respectively.
A switch that electrically connects any one of the input terminals A, B, and C to the output terminal Y based on L. When the signals SU and SL are 0 and 0, respectively, the input terminal A
And the output terminal Y is electrically connected. When 1, 0, the input terminal B and the output terminal Y are electrically connected. When 0, 1, and 1, 1, the input terminal C and the output terminal Y are electrically connected. Connection.

【0139】第1フリップフロップ3602は、Dフリ
ップフロップからなり、入力端子s,iおよび出力端子
oを有する。入力端子sは、信号出力ユニット7000
の出力端子P1に電気的に接続される。入力端子iは、
セレクタ3601の出力端子Yに電気的に接続され、出
力端子oは、第2フリップフロップ3603の入力端子
iに電気的に接続される。
The first flip-flop 3602 is composed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is a signal output unit 7000
Is electrically connected to the output terminal P1. The input terminal i is
The output terminal Y of the selector 3601 is electrically connected, and the output terminal o is electrically connected to the input terminal i of the second flip-flop 3603.

【0140】第1フリップフロップ3602は、信号出
力ユニット7000から出力されたクロックパルス信号
CK1を入力端子sを通して入力し、入力されたクロッ
クパルス信号CK1の各パルスの立ち上がりに同期し
て、入力端子iに入力されたデータを出力端子oにラッ
チする。第2フリップフロップ3603は、Dフリップ
フロップからなり、入力端子s,iおよび出力端子oを
有する。入力端子sは、信号出力ユニット7000の出
力端子P1に電気的に接続され、入力端子iは、第1フ
リップフロップ3602の出力端子oに電気的に接続さ
れる。また、出力端子oは、ディストーション算出部3
700の減算器3701の入力端子Aに電気的に接続さ
れるとともに、出力端子YUoを介してプロセッサエレ
メントPE(x,y−1)または後述する第1サイドレ
ジスタSR(x,−1)の入力端子YUiに電気的に接
続され、出力端子YDoを介してプロセッサエレメント
PE(x,y+1)または後述する第2サイドレジスタ
SR(x,3)の入力端子YDiに電気的に接続され、
出力端子YLoを介してプロセッサエレメントPE(x
−1,y)の入力端子YLiに電気的に接続される。
The first flip-flop 3602 inputs the clock pulse signal CK1 output from the signal output unit 7000 through the input terminal s, and synchronizes with the rising of each pulse of the input clock pulse signal CK1 to input terminal i. Is latched at the output terminal o. The second flip-flop 3603 is formed of a D flip-flop, and has input terminals s and i and an output terminal o. The input terminal s is electrically connected to the output terminal P1 of the signal output unit 7000, and the input terminal i is electrically connected to the output terminal o of the first flip-flop 3602. The output terminal o is connected to the distortion calculator 3
700 is electrically connected to the input terminal A of the subtractor 3701, and the input of the processor element PE (x, y-1) or the first side register SR (x, -1) described later via the output terminal YUo. Is electrically connected to a terminal YUi, and is electrically connected to an input terminal YDi of a processor element PE (x, y + 1) or a second side register SR (x, 3) described later via an output terminal YDo;
Through the output terminal YLo, the processor element PE (x
−1, y).

【0141】第2フリップフロップ3603は、信号出
力ユニット7000から出力されたクロックパルス信号
CK1を入力端子sを通して入力し、入力されたクロッ
クパルス信号CK1の各パルスの立ち上がりに同期し
て、入力端子iに入力されたデータを出力端子oにラッ
チする。ディストーション算出部3700は、さらに、
減算器3701、正数変換器3702、論理積演算器3
703、加算器3704、第1フリップフロップ370
5および第2フリップフロップ3706から構成され
る。
The second flip-flop 3603 inputs the clock pulse signal CK1 output from the signal output unit 7000 through the input terminal s, and synchronizes with the rising of each pulse of the input clock pulse signal CK1 to input terminal i. Is latched at the output terminal o. The distortion calculator 3700 further includes:
Subtractor 3701, positive number converter 3702, AND operator 3
703, adder 3704, first flip-flop 370
5 and a second flip-flop 3706.

【0142】減算器3701は、入力端子A,Bおよび
出力端子Yを有する。入力端子Aは、転送方向選択部3
600の第2フリップフロップ3603の出力端子oに
電気的に接続され、入力端子Bは、入力端子Xを介して
現画像ブロックデータ出力ユニット1000の出力端子
Rに電気的に接続される。減算器3701は、入力端子
Aを通して入力されたサーチウィンドウ400の画素デ
ータから入力端子Bを通して入力された現画像フィール
ドブロック200の画素データを減算して出力端子Yか
ら出力する。
The subtractor 3701 has input terminals A and B and an output terminal Y. The input terminal A is connected to the transfer direction selector 3
The input terminal B is electrically connected to the output terminal R of the current image block data output unit 1000 via the input terminal X. The subtractor 3701 subtracts the pixel data of the current image field block 200 input through the input terminal B from the pixel data of the search window 400 input through the input terminal A, and outputs the result from the output terminal Y.

【0143】正数変換器3702は、入力端子および出
力端子を有する。入力端子は、減算器3701の出力端
子Yに電気的に接続され、出力端子は、加算器3704
の入力端子Aに電気的に接続される。正数変換器370
2は、入力端子から入力されたデータを絶対値演算また
は二乗演算により正数データに変換して出力端子から出
力する。
The positive number converter 3702 has an input terminal and an output terminal. The input terminal is electrically connected to the output terminal Y of the subtractor 3701, and the output terminal is connected to the adder 3704.
Is electrically connected to the input terminal A. Positive number converter 370
2 converts the data input from the input terminal into positive data by an absolute value operation or a square operation, and outputs the data from the output terminal.

【0144】論理積演算器3703は、入力端子A,B
および出力端子Yを有する。入力端子Aは、信号出力ユ
ニット7000の出力端子P5に電気的に接続され、入
力端子Bは、第2フリップフロップ3706の出力端子
oに電気的に接続され、出力端子Yは、加算器3704
の入力端子Bに電気的に接続される。論理積演算器37
03は、信号出力ユニット7000から出力されたパル
ス信号LD1を入力端子Aを通して入力し、第2フリッ
プフロップ3706の出力端子oから出力されたデータ
を入力端子Bを通して入力し、入力されたパルス信号L
D1を反転したデータと入力端子Bから入力されたデー
タとの論理積を演算し、その演算結果を出力端子Yに出
力する。ここで、信号LD1が0のときには、信号LD
1を反転したデータは、すべてのビットが1で表され、
入力端子Bを通して入力されたデータが論理積の演算結
果として出力端子Yに出力される。一方、信号LD1が
1のときには、信号LD1を反転したデータは、すべて
のビットが0で表され、0を表すデータが論理積の演算
結果として出力端子Yに出力される。
The logical product operator 3703 has input terminals A and B
And an output terminal Y. The input terminal A is electrically connected to the output terminal P5 of the signal output unit 7000, the input terminal B is electrically connected to the output terminal o of the second flip-flop 3706, and the output terminal Y is connected to the adder 3704.
Is electrically connected to the input terminal B. AND operator 37
03, the pulse signal LD1 output from the signal output unit 7000 is input through the input terminal A, the data output from the output terminal o of the second flip-flop 3706 is input through the input terminal B, and the input pulse signal L
The logical AND of the data obtained by inverting D1 and the data input from the input terminal B is calculated, and the calculation result is output to the output terminal Y. Here, when the signal LD1 is 0, the signal LD1
In the data obtained by inverting 1, all bits are represented by 1;
The data input through the input terminal B is output to the output terminal Y as an AND operation result. On the other hand, when the signal LD1 is 1, all bits of the data obtained by inverting the signal LD1 are represented by 0, and data representing 0 is output to the output terminal Y as an AND operation result.

【0145】加算器3704は、入力端子A,Bおよび
出力端子Yを有する。入力端子Aは、正数変換器370
2の出力端子に電気的に接続され、入力端子Bは、論理
積演算器3703の出力端子Yに電気的に接続される。
出力端子Yは、第1フリップフロップ3705の入力端
子iに電気的に接続される。加算器3704は、入力端
子Aを通して入力されたデータと入力端子Bを通して入
力されたデータを加算して出力端子Yから出力する。
The adder 3704 has input terminals A and B and an output terminal Y. The input terminal A is a positive number converter 370
2, and the input terminal B is electrically connected to the output terminal Y of the AND operator 3703.
The output terminal Y is electrically connected to the input terminal i of the first flip-flop 3705. Adder 3704 adds the data input through input terminal A and the data input through input terminal B, and outputs the result from output terminal Y.

【0146】第1フリップフロップ3705は、Dフリ
ップフロップからなり、入力端子s,iおよび出力端子
oを有する。入力端子sは、信号出力ユニット7000
の出力端子P1に電気的に接続され、入力端子i、は加
算器3704の出力端子Yに電気的に接続され、出力端
子oは、第2フリップフロップ3706の入力端子iに
電気的に接続される。
The first flip-flop 3705 is composed of a D flip-flop, and has input terminals s and i and an output terminal o. The input terminal s is a signal output unit 7000
, The input terminal i is electrically connected to the output terminal Y of the adder 3704, and the output terminal o is electrically connected to the input terminal i of the second flip-flop 3706. You.

【0147】第1フリップフロップ3705は、信号出
力ユニット7000から出力されたクロックパルス信号
CK1を入力端子sを通して入力し、入力されたクロッ
クパルス信号CK1の各パルスの立ち上がりに同期し
て、入力端子iに入力されたデータを出力端子oにラッ
チする。第2フリップフロップ3706は、Dフリップ
フロップからなり、入力端子s,iおよび出力端子oを
有する。入力端子sは、信号出力ユニット7000の出
力端子P1に電気的に接続され、入力端子i、は第1フ
リップフロップ3705の出力端子oに電気的に接続さ
れ、出力端子oは、ディストーション転送部3800の
セレクタ3801の入力端子Bに電気的に接続されると
ともに、論理積演算器3703の入力端子Bに電気的に
接続される。
The first flip-flop 3705 inputs the clock pulse signal CK1 output from the signal output unit 7000 through the input terminal s, and synchronizes with the rising of each pulse of the input clock pulse signal CK1 to input terminal i. Is latched at the output terminal o. The second flip-flop 3706 is formed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is electrically connected to the output terminal P1 of the signal output unit 7000, the input terminal i is electrically connected to the output terminal o of the first flip-flop 3705, and the output terminal o is connected to the distortion transfer unit 3800. Are electrically connected to the input terminal B of the selector 3801 and to the input terminal B of the AND operator 3703.

【0148】第2フリップフロップ3706は、信号出
力ユニット7000から出力されたクロックパルス信号
CK1の各パルスの立ち上りに同期して、入力端子iに
入力されたデータを出力端子oにラッチする。ディスト
ーション転送部3800は、さらに、セレクタ380
1、第1フリップフロップ3802および第2フリップ
フロップ3803から構成される。
The second flip-flop 3706 latches the data input to the input terminal i to the output terminal o in synchronization with the rise of each pulse of the clock pulse signal CK1 output from the signal output unit 7000. The distortion transfer unit 3800 further includes a selector 380
1, a first flip-flop 3802 and a second flip-flop 3803.

【0149】セレクタ3801は、入力端子S,A,B
および出力端子Yを有する。入力端子Sは、信号出力ユ
ニット7000の出力端子P5に電気的に接続され、入
力端子Aは、入力端子Diを介してプロセッサエレメン
トPE(x+1,y)の出力端子Doに電気的に接続さ
れ、入力端子Bは、ディストーション算出部3700の
第2フリップフロップ3706出力端子oに電気的に接
続される。出力端子Yは、第1フリップフロップ380
2の入力端子iに電気的に接続される。
The selector 3801 has input terminals S, A, B
And an output terminal Y. The input terminal S is electrically connected to the output terminal P5 of the signal output unit 7000, and the input terminal A is electrically connected to the output terminal Do of the processor element PE (x + 1, y) via the input terminal Di. The input terminal B is electrically connected to the output terminal o of the second flip-flop 3706 of the distortion calculator 3700. The output terminal Y is connected to the first flip-flop 380
2 is electrically connected to the input terminal i.

【0150】セレクタ3801は、信号出力ユニット7
000から出力されたパルス信号LD1を入力端子Sを
通して入力し、入力された信号LD1に基づいて入力端
子A,Bの何れか一方の入力端子と出力端子Yを電気的
に接続する切換器であり、入力されたパルス信号LD1
が0のとき、入力端子Aと出力端子Yを電気的に接続
し、入力端子Sに入力された信号LDが1のとき、入力
端子Bと出力端子Yを電気的に接続する。
The selector 3801 is connected to the signal output unit 7
000 is a switch that inputs the pulse signal LD1 output from the input terminal S through an input terminal S, and electrically connects one of the input terminals A and B to the output terminal Y based on the input signal LD1. , The input pulse signal LD1
Is 0, the input terminal A is electrically connected to the output terminal Y, and when the signal LD input to the input terminal S is 1, the input terminal B is electrically connected to the output terminal Y.

【0151】第1フリップフロップ3802は、Dフリ
ップフロップからなり、入力端子s,iおよび出力端子
oを有する。入力端子sは、信号出力ユニット7000
の出力端子P2に電気的に接続され、入力端子iは、セ
レクタ3801の出力端子Yと電気的に接続され、出力
端子oは、第2フリップフロップ3803の入力端子i
に電気的に接続される。
The first flip-flop 3802 is composed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is a signal output unit 7000
, The input terminal i is electrically connected to the output terminal Y of the selector 3801, and the output terminal o is connected to the input terminal i of the second flip-flop 3803.
Is electrically connected to

【0152】第1フリップフロップ3802は、信号出
力ユニット7000から出力されたパルス信号CK2の
各パルスの立ち上りに同期して、入力端子iに入力され
たデータを出力端子oにラッチする。第2フリップフロ
ップ3803は、Dフリップフロップからなり、入力端
子s,iおよび出力端子oを有する。入力端子sは、信
号出力ユニット7000の出力端子P2に電気的に接続
され、入力端子iは、第1フリップフロップ3802の
出力端子oと電気的に接続され、出力端子oは、プロセ
ッサエレメントPE(x−1,y)のディストーション
転送部3800のセレクタ3801の入力端子Aに電気
的に接続される。
The first flip-flop 3802 latches the data input to the input terminal i to the output terminal o in synchronization with the rise of each pulse of the pulse signal CK2 output from the signal output unit 7000. The second flip-flop 3803 is formed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is electrically connected to the output terminal P2 of the signal output unit 7000, the input terminal i is electrically connected to the output terminal o of the first flip-flop 3802, and the output terminal o is connected to the processor element PE ( (x-1, y) is electrically connected to the input terminal A of the selector 3801 of the distortion transfer unit 3800.

【0153】第2フリップフロップ3803は、信号出
力ユニット7000から出力されたパルス信号CK2の
各パルスの立ち上りに同期して、入力端子iに入力され
たデータを出力端子oにラッチする。また、プロセッサ
エレメントPE(0,0)の出力端子Doは、後述する
セグメントブロック特定ユニット4000の比較器41
01の入力端子A0およびフィールドブロックディスト
ーション算出ユニット5000の入力端子A0に電気的
に接続され、プロセッサエレメントPE(0,1)の出
力端子Doは、後述するセグメント候補ブロック特定ユ
ニット4000の比較器4101の入力端子A1および
フィールドブロックディストーション算出ユニット50
00の入力端子A1に電気的に接続され、プロセッサエ
レメントPE(0,2)の出力端子Doは、後述するセ
グメント候補ブロック特定ユニット4000の比較器4
101の入力端子A2およびフィールドブロックディス
トーション算出ユニット5000の入力端子A2に電気
的に接続される。
The second flip-flop 3803 latches the data input to the input terminal i to the output terminal o in synchronization with the rise of each pulse of the pulse signal CK2 output from the signal output unit 7000. The output terminal Do of the processor element PE (0,0) is connected to a comparator 41 of a segment block specifying unit 4000 described later.
01 and an input terminal A0 of the field block distortion calculation unit 5000, and an output terminal Do of the processor element PE (0, 1) is connected to a comparator 4101 of a segment candidate block identification unit 4000 to be described later. Input terminal A1 and field block distortion calculation unit 50
00, the output terminal Do of the processor element PE (0, 2) is connected to the comparator 4 of the segment candidate block identification unit 4000 described later.
101 and an input terminal A2 of the field block distortion calculation unit 5000.

【0154】次に、入力レジスタIR(3,1)の端子
配置およびブロック図を説明する。図15に示すよう
に、入力レジスタIR(3,1)は、入力端子YUi,
YDiおよび出力端子YUo,YDo,YLoを有し、
さらに、図6に示された信号出力ユニット7000の出
力端子P1,P3に電気的に接続された図示しない入力
端子を有している。また、図16に示すように、入力レ
ジスタIR(3,1)は、転送方向選択部3610によ
って構成され、転送方向選択部3610は、さらに、セ
レクタ3611、第1フリップフロップ3612および
第2フリップフロップ3613から構成される。
Next, the terminal arrangement and block diagram of input register IR (3, 1) will be described. As shown in FIG. 15, the input register IR (3,1) has input terminals YUi,
YDi and output terminals YUo, YDo, YLo,
Further, it has an input terminal (not shown) electrically connected to the output terminals P1 and P3 of the signal output unit 7000 shown in FIG. As shown in FIG. 16, the input register IR (3, 1) is configured by a transfer direction selection unit 3610. The transfer direction selection unit 3610 further includes a selector 3611, a first flip-flop 3612, and a second flip-flop. 3613.

【0155】セレクタ3611は、入力端子S,A,B
および出力端子Yを有する。入力端子Sは、信号出力ユ
ニット7000の出力端子P3に電気的に接続される。
入力端子Aは、入力端子YDiを介して入力レジスタI
R(3,0)の出力端子YDoに電気的に接続される。
入力端子Bは、入力端子をYUiを介して入力レジスタ
IR(3,2)の出力端子YUoに電気的に接続され
る。
The selector 3611 has input terminals S, A, B
And an output terminal Y. Input terminal S is electrically connected to output terminal P3 of signal output unit 7000.
Input terminal A is connected to input register I via input terminal YDi.
It is electrically connected to the output terminal YDo of R (3,0).
The input terminal B is electrically connected to the output terminal YUo of the input register IR (3, 2) via the input terminal YUi.

【0156】セレクタ3611は、信号出力ユニット7
000から出力された信号SUを入力端子Sを通して入
力し、入力された信号SUに基づいて入力端子A,Bの
何れか一方の入力端子と出力端子Yを電気的に接続する
切換器であり、信号SUが0のときには、入力端子Aと
出力端子Yを電気的に接続し、信号SUが1のときに
は、入力端子Bと出力端子Yを電気的に接続する。
The selector 3611 is connected to the signal output unit 7
000 is a switch that inputs the signal SU output from the input terminal S through an input terminal S, and electrically connects one of the input terminals A and B to the output terminal Y based on the input signal SU; When the signal SU is 0, the input terminal A is electrically connected to the output terminal Y. When the signal SU is 1, the input terminal B is electrically connected to the output terminal Y.

【0157】第1フリップフロップ3612は、Dフリ
ップフロップからなり、入力端子s,iおよび出力端子
oを有する。入力端子sは、信号出力ユニット7000
の出力端子P1に電気的に接続される。入力端子iは、
セレクタ3611の出力端子Yに電気的に接続され、出
力端子oは、第2フリップフロップ3613の入力端子
iに電気的に接続される。
The first flip-flop 3612 is composed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is a signal output unit 7000
Is electrically connected to the output terminal P1. The input terminal i is
The output terminal Y of the selector 3611 is electrically connected, and the output terminal o is electrically connected to the input terminal i of the second flip-flop 3613.

【0158】第1フリップフロップ3612は、信号出
力ユニット7000から出力されたクロックパルス信号
CK1を入力端子sを通して入力し、入力されたクロッ
クパルス信号CK1の各パルスの立ち上がりに同期し
て、入力端子iに入力されたデータを出力端子oにラッ
チする。第2フリップフロップ3613は、Dフリップ
フロップからなり、入力端子s,iおよび出力端子oを
有する。入力端子sは、信号出力ユニット7000の出
力端子P1に電気的に接続され、入力端子iは、第1フ
リップフロップ3612の出力端子oに電気的に接続さ
れる。また、出力端子oは、出力端子YUoを介して入
力レジスタIR(3,0)の入力端子YUiに電気的に
接続され、出力端子YDoを介して入力レジスタIR
(3,2)の入力端子YDiに電気的に接続され、出力
端子YLoを介してプロセッサエレメントPE(2,
1)の入力端子YLiに電気的に接続される。
The first flip-flop 3612 inputs the clock pulse signal CK1 output from the signal output unit 7000 through an input terminal s, and synchronizes with the rising of each pulse of the input clock pulse signal CK1 to input terminal i. Is latched at the output terminal o. The second flip-flop 3613 is formed of a D flip-flop, and has input terminals s and i and an output terminal o. The input terminal s is electrically connected to the output terminal P1 of the signal output unit 7000, and the input terminal i is electrically connected to the output terminal o of the first flip-flop 3612. The output terminal o is electrically connected to the input terminal YUi of the input register IR (3,0) via the output terminal YUo, and is connected to the input register IR via the output terminal YDo.
(3, 2) is electrically connected to the input terminal YDi, and the processor element PE (2,
1) is electrically connected to the input terminal YLi.

【0159】第2フリップフロップ3613は、信号出
力ユニット7000から出力されたクロックパルス信号
CK1を入力端子sを通して入力し、入力されたクロッ
クパルス信号CK1の各パルスの立ち上がりに同期し
て、入力端子iに入力されたデータを出力端子oにラッ
チする。次に、入力レジスタIR(3,0)および入力
レジスタIR(3,2)の端子配置およびブロック図を
説明する。図17に示すように、入力レジスタIR
(3,0)および入力レジスタIR(3,2)は、入力
端子YLiおよび出力端子YUo,YDo,YLoを有
し、さらに、図6に示された信号出力ユニット7000
の出力端子P1に接続された図示しない入力端子を有す
る。
The second flip-flop 3613 inputs the clock pulse signal CK1 output from the signal output unit 7000 through an input terminal s, and synchronizes with the rising of each pulse of the input clock pulse signal CK1 to input terminal i. Is latched at the output terminal o. Next, a terminal arrangement and a block diagram of the input register IR (3,0) and the input register IR (3,2) will be described. As shown in FIG.
(3, 0) and input register IR (3, 2) have input terminal YLi and output terminals YUo, YDo, YLo, and further have signal output unit 7000 shown in FIG.
Has an input terminal (not shown) connected to the output terminal P1.

【0160】また、図18に示すように、入力レジスタ
IR(3,0)および入力レジスタIR(3,2)は、
第1フリップフロップ3612および第2フリップフロ
ップ3613によって構成される。ここで、入力レジス
タIR(3,0)の第1フリップフロップ3612の入
力端子iは、入力端子YLiを介してサーチウィンドウ
データ出力ユニット2000の出力端子S0に電気的に
接続される。入力レジスタIR(3,0)の第2フリッ
プフロップ3613の出力端子oは、出力端子YUoを
介して後述する第1サイドレジスタSR(3,−1)の
入力端子YUiに電気的に接続され、出力端子YDoを
介して入力レジスタIR(3,1)の入力端子YUiに
電気的に接続され、出力端子YLoを介してプロセッサ
エレメントPE(2,0)の入力端子YLiに電気的に
接続される。
As shown in FIG. 18, input register IR (3,0) and input register IR (3,2)
A first flip-flop 3612 and a second flip-flop 3613 are provided. Here, the input terminal i of the first flip-flop 3612 of the input register IR (3,0) is electrically connected to the output terminal S0 of the search window data output unit 2000 via the input terminal YLi. An output terminal o of the second flip-flop 3613 of the input register IR (3,0) is electrically connected to an input terminal YUi of a first side register SR (3, -1) described later via an output terminal YUo, It is electrically connected to the input terminal YUi of the input register IR (3,1) via the output terminal YDo, and is electrically connected to the input terminal YLi of the processor element PE (2,0) via the output terminal YLo. .

【0161】また、入力レジスタIR(3,2)の第1
フリップフロップ3612の入力端子iは、入力端子Y
Liを介してサーチウィンドウデータ出力ユニット20
00の出力端子S1に電気的に接続される。入力レジス
タIR(3,2)の第2フリップフロップの出力端子o
は、出力端子YUoを介して入力レジスタIR(3,
1)の入力端子YUiに電気的に接続され、出力端子Y
Doを介して第2サイドレジスタSR(3,3)の入力
端子YDiに電気的に接続され、出力端子YLoを介し
てプロセッサエレメントPE(2,2)の入力端子YL
iに電気的に接続される。
The first input register IR (3,2)
The input terminal i of the flip-flop 3612 is connected to the input terminal Y
Search window data output unit 20 via Li
00 is electrically connected to the output terminal S1. Output terminal o of the second flip-flop of input register IR (3,2)
Is connected to the input register IR (3,3) through the output terminal YUo.
1) is electrically connected to the input terminal YUi and the output terminal Y
Do is electrically connected to the input terminal YDi of the second side register SR (3,3) via Do, and the input terminal YL of the processor element PE (2,2) via the output terminal YLo.
i.

【0162】次に、各第1サイドレジスタSR(x,−
1)の端子配置およびブロック図を説明する。図19に
示すように、各第1サイドレジスタSR(x,−1)
は、入力端子YUi,YLiおよび出力端子YDo,Y
Loを有し、さらに、図6に示された信号出力ユニット
7000の出力端子P1,P4に電気的に接続された図
示しない入力端子を有している。また、図20に示すよ
うに、各第1サイドレジスタSR(x,−1)は、転送
方向選択部3620によって構成され、転送方向選択部
3620は、さらに、セレクタ3621、第1フリップ
フロップ3622および第2フリップフロップ3623
から構成される。
Next, each first side register SR (x,-
The terminal arrangement and block diagram of 1) will be described. As shown in FIG. 19, each first side register SR (x, -1)
Are input terminals YUi, YLi and output terminals YDo, Y
Lo, and further has an input terminal (not shown) electrically connected to the output terminals P1 and P4 of the signal output unit 7000 shown in FIG. Also, as shown in FIG. 20, each first side register SR (x, -1) is configured by a transfer direction selection unit 3620, and the transfer direction selection unit 3620 further includes a selector 3621, a first flip-flop 3622, Second flip-flop 3623
Consists of

【0163】セレクタ3621は、入力端子S,A,B
および出力端子Yを有する。入力端子Sは、信号出力ユ
ニット7000の出力端子P4に電気的に接続される。
入力端子Aは、入力端子YUiを介して同列のプロセッ
サエレメントPE(x,0)の出力端子YUoに電気的
に接続される。入力端子Bは、入力端子をYLiを介し
て第1サイドレジスタSR(x+1,−1)の出力端子
YLoに電気的に接続される。
The selector 3621 has input terminals S, A, B
And an output terminal Y. Input terminal S is electrically connected to output terminal P4 of signal output unit 7000.
The input terminal A is electrically connected to the output terminal YUo of the same processor element PE (x, 0) via the input terminal YUi. The input terminal B is electrically connected to the output terminal YLo of the first side register SR (x + 1, -1) via the input terminal YLi.

【0164】セレクタ3621は、信号出力ユニット7
000から出力された信号SLを入力端子Sを通して入
力し、入力された信号SLに基づいて入力端子A,Bの
何れか一方の入力端子と出力端子Yを電気的に接続する
切換器であり、信号SLが0のときには、入力端子Aと
出力端子Yを電気的に接続し、信号SLが1のときに
は、入力端子Bと出力端子Yを電気的に接続する。
The selector 3621 is connected to the signal output unit 7
000 is input to the input terminal S through the input terminal S, and based on the input signal SL, the switch electrically connects one of the input terminals A and B to the output terminal Y; When the signal SL is 0, the input terminal A is electrically connected to the output terminal Y. When the signal SL is 1, the input terminal B is electrically connected to the output terminal Y.

【0165】第1フリップフロップ3622は、Dフリ
ップフロップからなり、入力端子s,iおよび出力端子
oを有する。入力端子sは、信号出力ユニット7000
の出力端子P1に電気的に接続される。入力端子iは、
セレクタ3621の出力端子Yに電気的に接続され、出
力端子oは、第2フリップフロップ3623の入力端子
iに電気的に接続される。
The first flip-flop 3622 is formed of a D flip-flop, and has input terminals s and i and an output terminal o. The input terminal s is a signal output unit 7000
Is electrically connected to the output terminal P1. The input terminal i is
The output terminal Y of the selector 3621 is electrically connected to the output terminal Y, and the output terminal o is electrically connected to the input terminal i of the second flip-flop 3623.

【0166】第1フリップフロップ3622は、信号出
力ユニット7000から出力されたクロックパルス信号
CK1を入力端子sを通して入力し、入力されたクロッ
クパルス信号CK1の各パルスの立ち上がりに同期し
て、入力端子iに入力されたデータを出力端子oにラッ
チする。第2フリップフロップ3623は、Dフリップ
フロップからなり、入力端子s,iおよび出力端子oを
有する。入力端子sは、信号出力ユニット7000の出
力端子P1に電気的に接続され、入力端子iは、第1フ
リップフロップ3622の出力端子oに電気的に接続さ
れる。また、出力端子oは、出力端子YDoを介して同
列のプロセッサエレメントPE(x,0)の入力端子Y
Diに電気的に接続され、出力端子YLoを介して第1
サイドレジスタSR(x−1,−1)の入力端子YLi
に電気的に接続される。
The first flip-flop 3622 inputs the clock pulse signal CK1 output from the signal output unit 7000 through the input terminal s, and synchronizes with the rising of each pulse of the input clock pulse signal CK1 to input terminal i. Is latched at the output terminal o. The second flip-flop 3623 includes a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is electrically connected to the output terminal P1 of the signal output unit 7000, and the input terminal i is electrically connected to the output terminal o of the first flip-flop 3622. The output terminal o is connected to the input terminal Y of the processor element PE (x, 0) in the same row via the output terminal YDo.
Di and is electrically connected to the first terminal via an output terminal YLo.
Input terminal YLi of side register SR (x-1, -1)
Is electrically connected to

【0167】第2フリップフロップ3623は、信号出
力ユニット7000から出力されたクロックパルス信号
CK1を入力端子sを通して入力し、入力されたクロッ
クパルス信号CK1の各パルスの立ち上がりに同期し
て、入力端子iに入力されたデータを出力端子oにラッ
チする。次に、各第2サイドレジスタSR(x,3)の
端子配置およびブロック図を説明する。図21に示すよ
うに、各第2サイドレジスタSR(x,3)は、入力端
子YDi,YLiおよび出力端子YUo,YLoを有
し、さらに、図6に示された信号出力ユニット7000
の出力端子P1,P4に電気的に接続された図示しない
入力端子を有している。また、図22に示すように、各
第1サイドレジスタSR(x,3)は、転送方向選択部
3630によって構成され、転送方向選択部3630
は、さらに、セレクタ3631、第1フリップフロップ
3632および第2フリップフロップ3633から構成
される。
The second flip-flop 3623 inputs the clock pulse signal CK1 output from the signal output unit 7000 through an input terminal s, and synchronizes with the rising of each pulse of the input clock pulse signal CK1 to input terminal i. Is latched at the output terminal o. Next, a terminal arrangement and a block diagram of each second side register SR (x, 3) will be described. As shown in FIG. 21, each second side register SR (x, 3) has input terminals YDi, YLi and output terminals YUo, YLo, and further has a signal output unit 7000 shown in FIG.
(Not shown) electrically connected to the output terminals P1 and P4. Also, as shown in FIG. 22, each first side register SR (x, 3) is configured by a transfer direction selecting unit 3630, and the transfer direction selecting unit 3630
Further includes a selector 3631, a first flip-flop 3632, and a second flip-flop 3633.

【0168】セレクタ3631は、入力端子S,A,B
および出力端子Yを有する。入力端子Sは、信号出力ユ
ニット7000の出力端子P4に電気的に接続される。
入力端子Aは、入力端子YDiを介して同列のプロセッ
サエレメントPE(x,2)の出力端子YDoに電気的
に接続される。入力端子Bは、入力端子をYLiを介し
て第2サイドレジスタSR(x+1,3)の出力端子Y
Loに電気的に接続される。
The selector 3631 has input terminals S, A, B
And an output terminal Y. Input terminal S is electrically connected to output terminal P4 of signal output unit 7000.
The input terminal A is electrically connected to the output terminal YDo of the processor element PE (x, 2) in the same row via the input terminal YDi. The input terminal B is connected to the output terminal Y of the second side register SR (x + 1,3) via the input terminal YLi.
It is electrically connected to Lo.

【0169】セレクタ3631は、信号出力ユニット7
000から出力された信号SLを入力端子Sを通して入
力し、入力された信号SLに基づいて入力端子A,Bの
何れか一方の入力端子と出力端子Yを電気的に接続する
切換器であり、信号SLが0のときには、入力端子Aと
出力端子Yを電気的に接続し、信号SLが1のときに
は、入力端子Bと出力端子Yを電気的に接続する。
The selector 3631 is connected to the signal output unit 7
000 is input to the input terminal S through the input terminal S, and based on the input signal SL, the switch electrically connects one of the input terminals A and B to the output terminal Y; When the signal SL is 0, the input terminal A is electrically connected to the output terminal Y. When the signal SL is 1, the input terminal B is electrically connected to the output terminal Y.

【0170】第1フリップフロップ3632は、Dフリ
ップフロップからなり、入力端子s,iおよび出力端子
oを有する。入力端子sは、信号出力ユニット7000
の出力端子P1に電気的に接続される。入力端子iは、
セレクタ3631の出力端子Yに電気的に接続され、出
力端子oは、第2フリップフロップ3633の入力端子
iに電気的に接続される。
The first flip-flop 3632 is formed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is a signal output unit 7000
Is electrically connected to the output terminal P1. The input terminal i is
The output terminal O of the selector 3631 is electrically connected to the output terminal O, and the output terminal o is electrically connected to the input terminal i of the second flip-flop 3633.

【0171】第1フリップフロップ3632は、信号出
力ユニット7000から出力されたクロックパルス信号
CK1を入力端子sを通して入力し、入力されたクロッ
クパルス信号CK1の各パルスの立ち上がりに同期し
て、入力端子iに入力されたデータを出力端子oにラッ
チする。第2フリップフロップ3633は、Dフリップ
フロップからなり、入力端子s,iおよび出力端子oを
有する。入力端子sは、信号出力ユニット7000の出
力端子P1に電気的に接続され、入力端子iは、第1フ
リップフロップ3632の出力端子oに電気的に接続さ
れる。また、出力端子oは、出力端子YUoを介して同
列のプロセッサエレメントPE(x,2)の入力端子Y
Uiに電気的に接続され、出力端子YLoを介して第1
サイドレジスタSR(x−1,3)の入力端子YLiに
電気的に接続される。
The first flip-flop 3632 inputs the clock pulse signal CK1 output from the signal output unit 7000 through an input terminal s, and synchronizes with the rising of each pulse of the input clock pulse signal CK1 to input terminal i. Is latched at the output terminal o. The second flip-flop 3633 is formed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is electrically connected to the output terminal P1 of the signal output unit 7000, and the input terminal i is electrically connected to the output terminal o of the first flip-flop 3632. The output terminal o is connected to the input terminal Y of the processor element PE (x, 2) in the same row via the output terminal YUo.
Ui, and is electrically connected to the first terminal via an output terminal YLo.
It is electrically connected to the input terminal YLi of the side register SR (x-1,3).

【0172】第2フリップフロップ3633は、信号出
力ユニット7000から出力されたクロックパルス信号
CK1を入力端子sを通して入力し、入力されたクロッ
クパルス信号CK1の各パルスの立ち上がりに同期し
て、入力端子iに入力されたデータを出力端子oにラッ
チする。次に、セグメントブロック特定ユニット400
0のブロック図を説明する。図23に示すように、セグ
メントブロック特定ユニット4000は、最小セグメン
トブロックディストーション検出ユニット4100、セ
グメント動きベクトル垂直成分検出ユニット4200お
よびセグメント動きベクトル水平成分検出ユニット43
00によって構成される。
The second flip-flop 3633 inputs the clock pulse signal CK1 output from the signal output unit 7000 through an input terminal s, and synchronizes with the rising of each pulse of the input clock pulse signal CK1 to input terminal i. Is latched at the output terminal o. Next, the segment block specifying unit 400
0 will be described. As shown in FIG. 23, the segment block specifying unit 4000 includes a minimum segment block distortion detecting unit 4100, a segment motion vector vertical component detecting unit 4200, and a segment motion vector horizontal component detecting unit 43.
00.

【0173】最小セグメントブロックディストーション
検出ユニット4100は、セグメントブロックディスト
ーション算出ユニット3000で算出された複数の第1
セグメントブロックディストーションおよび複数の第2
セグメントブロックディストーションを入力し、入力さ
れた第1セグメントブロックディストーションの中から
最小の値をもつ第1セグメントブロックディストーショ
ンを検出するとともに、入力された複数の第2セグメン
トブロックディストーションの中から最小の値をもつ第
2セグメントブロックディストーションを検出する。
The minimum segment block distortion detecting unit 4100 includes a plurality of first segment block distortion calculating units 3000 calculated by the segment block distortion calculating unit 3000.
Segment block distortion and multiple secondary
A segment block distortion is input, a first segment block distortion having a minimum value is detected from the input first segment block distortions, and a minimum value is detected from a plurality of the input second segment block distortions. The second segment block distortion having the same is detected.

【0174】セグメント動きベクトル垂直成分検出ユニ
ット4200は、最小セグメントブロックディストーシ
ョン検出ユニット4100で検出された最小の第1セグ
メントブロックディストーションが算出されたプロセッ
サエレメントPE(x,y)の配置位置(行位置)に基
づいて上側サーチウィンドウ410内の第1セグメント
候補ブロックを特定し、特定された第1セグメント候補
ブロックによって現画像第1セグメントブロックの第1
セグメント動きベクトル垂直成分MVSg1yを検出す
るとともに、最小セグメントブロックディストーション
検出ユニット4100で検出された最小の第2セグメン
トブロックディストーションが算出されたプロセッサエ
レメントPE(x,y)の配置位置(行位置)に基づい
て下側サーチウィンドウ420内の第2セグメント候補
ブロックを特定し、特定された第2セグメント候補ブロ
ックによって現画像第2セグメントブロックの第2セグ
メント動きベクトル垂直成分MVSg2yを特定する。
The segment motion vector vertical component detection unit 4200 determines the arrangement position (row position) of the processor element PE (x, y) for which the minimum first segment block distortion detected by the minimum segment block distortion detection unit 4100 has been calculated. , A first segment candidate block in the upper search window 410 is identified based on the first segment candidate block of the current image first segment block.
The segment motion vector vertical component MVSg1y is detected, and the minimum second segment block distortion detected by the minimum segment block distortion detection unit 4100 is calculated based on the arrangement position (row position) of the processor element PE (x, y). Then, the second segment candidate block in the lower search window 420 is specified, and the second segment motion vector vertical component MVSg2y of the current image second segment block is specified by the specified second segment candidate block.

【0175】セグメント動きベクトル水平成分検出ユニ
ット4300は、最小セグメントブロックディストーシ
ョン検出ユニット4100で検出された最小の第1セグ
メントブロックディストーションが算出されたプロセッ
サエレメントPE(x,y)の配置位置(列位置)に基
づいて上側サーチウィンドウ410内の第1セグメント
候補ブロックを特定し、特定された第1セグメント候補
ブロックによって現画像第1セグメントブロックの第1
セグメント動きベクトル水平成分MVSg1xを検出す
るとともに、最小セグメントブロックディストーション
検出ユニット4100で検出された最小の第2セグメン
トブロックディストーションが算出されたプロセッサエ
レメントPE(x,y)の配置位置(列位置)に基づい
て下側サーチウィンドウ420内の第2セグメント候補
ブロックを特定し、特定された第2セグメント候補ブロ
ックによって現画像第2セグメントブロックの第2セグ
メント動きベクトル水平成分MVSg2xを特定する。
以下、上記各ユニットの構成を説明する。
The segment motion vector horizontal component detection unit 4300 calculates the arrangement position (column position) of the processor element PE (x, y) for which the minimum first segment block distortion detected by the minimum segment block distortion detection unit 4100 has been calculated. , A first segment candidate block in the upper search window 410 is identified based on the first segment candidate block of the current image first segment block.
The segment motion vector horizontal component MVSg1x is detected, and the minimum second segment block distortion detected by the minimum segment block distortion detection unit 4100 is calculated based on the arrangement position (column position) of the processor element PE (x, y). Then, the second segment candidate block in the lower search window 420 is specified, and the second segment motion vector horizontal component MVSg2x of the current image second segment block is specified by the specified second segment candidate block.
Hereinafter, the configuration of each unit will be described.

【0176】最小セグメントブロックディストーション
検出ユニット4100は、さらに、比較器4101、論
理和演算器4102、比較器4103、セレクタ410
4、第1フリップフロップ4105、第2フリップフロ
ップ4106、第1セレクタ付きフリップフロップ41
07および第2セレクタ付きフリップフロップ4108
によって構成される。
The minimum segment block distortion detecting unit 4100 further includes a comparator 4101, an OR operation unit 4102, a comparator 4103, and a selector 410.
4, first flip-flop 4105, second flip-flop 4106, first flip-flop with selector 41
07 and flip-flop 4108 with second selector
Composed of

【0177】比較器4101は、入力端子A0,A1,
A2および出力端子M,Yを有する。入力端子A0は、
プロセッサエレエントPE(0,0)の出力端子Doに
電気的に接続され、入力端子A1は、プロセッサエレエ
ントPE(0,1)の出力端子Doに電気的に接続さ
れ、入力端子A2は、プロセッサエレエントPE(0,
2)の出力端子Doに電気的に接続される。出力端子Y
は、比較器4103の入力端子Aおよびセレクタ410
4の入力端子Bに電気的に接続される。出力端子Mは、
セグメント動きベクトル垂直成分検出ユニット4200
のセレクタ4201の入力端子Bに電気的に接続され
る。
The comparator 4101 has input terminals A0, A1,
A2 and output terminals M and Y. The input terminal A0 is
The input terminal A1 is electrically connected to the output terminal Do of the processor element PE (0, 1), and the input terminal A2 is electrically connected to the output terminal Do of the processor element PE (0, 1). Processor Elent PE (0,
2) is electrically connected to the output terminal Do. Output terminal Y
Is the input terminal A of the comparator 4103 and the selector 410
4 is electrically connected to the input terminal B. The output terminal M is
Segment motion vector vertical component detection unit 4200
Is electrically connected to the input terminal B of the selector 4201.

【0178】比較器4101は、プロセッサエレエント
PE(0,0)、プロセッサエレエントPE(0,1)
およびプロセッサエレエントPE(0,2)のそれぞれ
のディストーション転送部3800の第2フリップフロ
ップ3803から出力端子Doを通して同時に出力され
た第1セグメントブロックディストーションまたは第2
セグメントブロックディストーションを、それぞれ入力
端子A0,A1,A2を通して入力し、入力された3つ
のセグメントブロックディストーションを比較し、これ
らのセグメントブロックディストーションの中で最小の
セグメントブロックディストーションを出力端子Yから
出力する。また、最小のセグメントブロックディストー
ションが入力された入力端子を示すデータLMVyを出
力端子Mから出力する。ここで、出力端子Mから出力さ
れるデータLMVyは、最小のセグメントブロックディ
ストーションが入力された入力端子が入力端子A0のと
きには0、A1のときには1、A2のときには2を表
す。
The comparator 4101 includes a processor element PE (0, 0) and a processor element PE (0, 1).
And the first segment block distortion or the second segment block simultaneously output from the second flip-flop 3803 of each distortion transfer unit 3800 of the processor element PE (0, 2) through the output terminal Do.
The segment block distortion is input through input terminals A0, A1, and A2, respectively, and the input three segment block distortions are compared, and the minimum segment block distortion among these segment block distortions is output from an output terminal Y. Further, data LMVy indicating the input terminal to which the minimum segment block distortion is input is output from the output terminal M. Here, the data LMVy output from the output terminal M indicates 0 when the input terminal to which the minimum segment block distortion is input is the input terminal A0, 1 when the input terminal is A1, and 2 when the input terminal is A2.

【0179】論理和演算器4102は、入力端子A,B
および出力端子Yを有する。入力端子Aは、信号出力ユ
ニット7000の出力端子P6に電気的に接続され、入
力端子Bは、第2フリップフロップ4106の出力端子
oに電気的に接続される。出力端子Yは、比較器410
3の入力端子Bに電気的に接続される。論理和演算器4
102は、信号出力ユニット7000から出力されたパ
ルス信号LD2を入力端子Aを通して入力するととも
に、第2フリップフロップ4106から出力されたデー
タを入力端子Bを通して入力し、入力された信号LD2
をビット列で表したデータと入力端子Bから入力された
データとの論理和を演算し、その演算結果を出力端子Y
にする。ここで、信号LD2が0のときには、信号LD
2に対応するデータは、すべてのビットが0で表され、
入力端子Bを通して入力されたデータが論理和の演算結
果として出力される。一方、信号LD2が1のときに
は、信号LD2に対応するデータは、すべてのビットが
1で表され、そのままこのデータが最大値として出力端
子Yを通して出力される。
The OR operation unit 4102 has input terminals A and B
And an output terminal Y. The input terminal A is electrically connected to the output terminal P6 of the signal output unit 7000, and the input terminal B is electrically connected to the output terminal o of the second flip-flop 4106. The output terminal Y is a comparator 410
3 is electrically connected to the input terminal B. OR operator 4
102 inputs the pulse signal LD2 output from the signal output unit 7000 through the input terminal A, inputs the data output from the second flip-flop 4106 through the input terminal B, and inputs the input signal LD2.
Is calculated as a bit string and the data input from the input terminal B are ORed, and the calculation result is output to the output terminal Y
To Here, when the signal LD2 is 0, the signal LD2
In the data corresponding to 2, all bits are represented by 0,
The data input through the input terminal B is output as a logical sum operation result. On the other hand, when the signal LD2 is 1, all bits of the data corresponding to the signal LD2 are represented by 1, and this data is output as it is through the output terminal Y as the maximum value.

【0180】比較器4103は、入力端子A,Bおよび
出力端子Yを有する。入力端子Aは、比較器4101の
出力端子Yに電気的に接続され、入力端子Bは、論理和
演算器4102の出力端子Yに電気的に接続され、出力
端子Yは、セレクタ4104の入力端子S、セグメント
動きベクトル垂直成分検出ユニット4200のセレクタ
4201の入力端子Sおよびセグメント動きベクトル水
平成分検出ユニット4300のセレクタ4302の入力
端子Sに電気的に接続される。
The comparator 4103 has input terminals A and B and an output terminal Y. The input terminal A is electrically connected to the output terminal Y of the comparator 4101, the input terminal B is electrically connected to the output terminal Y of the OR operation unit 4102, and the output terminal Y is connected to the input terminal of the selector 4104. S, the input terminal S of the selector 4201 of the segment motion vector vertical component detection unit 4200 and the input terminal S of the selector 4302 of the segment motion vector horizontal component detection unit 4300 are electrically connected.

【0181】比較器4103は、比較器4101から出
力されたセグメントブロックディストーションを入力端
子Aを通して入力するとともに、論理和演算器4102
から出力されたデータを入力端子Bを通して入力し、入
力端子Aを通して入力されたセグメントブロックディス
トーションが入力端子Bを通して入力されたデータ以上
の大きさである場合には、出力端子Yから0を表すデー
タMinを出力し、入力端子Aを通して入力されたセグ
メントブロックディストーションが入力端子Bを通して
入力されたデータより小さい場合には、出力端子Yから
1を表すデータMinを出力する。
The comparator 4103 receives the segment block distortion output from the comparator 4101 through an input terminal A, and performs a logical sum operation 4102
Is input through an input terminal B. If the segment block distortion input through the input terminal A is greater than the data input through the input terminal B, the data representing the output from the output terminals Y to 0 Min is output, and when the segment block distortion input through the input terminal A is smaller than the data input through the input terminal B, the data Min representing 1 is output from the output terminal Y.

【0182】セレクタ4104は、入力端子S,A,B
および出力端子Yを有する。入力端子Sは、比較器41
03の出力端子Yに電気的に接続され、入力端子Aは、
第2フリップフロップ4106の出力端子oに電気的に
接続され、入力端子Bは、比較器4101の出力端子Y
に電気的に接続される。出力端子Yは、第1フリップフ
ロップ4105の入力端子iに電気的に接続される。
The selector 4104 has input terminals S, A, B
And an output terminal Y. The input terminal S is connected to the comparator 41
03 is electrically connected to the output terminal Y, and the input terminal A is
The input terminal B is electrically connected to the output terminal o of the second flip-flop 4106, and the output terminal Y of the comparator 4101.
Is electrically connected to The output terminal Y is electrically connected to the input terminal i of the first flip-flop 4105.

【0183】セレクタ4104は、比較器4103から
出力されたデータMinを入力端子Sを通して入力し、
入力されたデータMinに基づいて入力端子A,Bの何
れか一方の入力端子と出力端子Yを電気的に接続する切
換器であり、データMinが0のときには、入力端子A
と出力端子Yを電気的に接続し、データMinが1のと
きには、入力端子Bと出力端子Yを電気的に接続する。
The selector 4104 inputs the data Min output from the comparator 4103 through the input terminal S,
A switch for electrically connecting one of the input terminals A and B to the output terminal Y based on the input data Min. When the data Min is 0, the input terminal A
And the output terminal Y is electrically connected. When the data Min is 1, the input terminal B and the output terminal Y are electrically connected.

【0184】第1フリップフロップ4105は、Dフリ
ップフロップからなり、入力端子s,iおよび出力端子
oを有する。入力端子sは、信号出力ユニット7000
の出力端子P2に電気的に接続され、入力端子iは、セ
レクタ4104の出力端子Yに電気的に接続され、出力
端子oは、第2フリップフロップ4106の入力端子i
に電気的に接続される。
The first flip-flop 4105 is composed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is a signal output unit 7000
, The input terminal i is electrically connected to the output terminal Y of the selector 4104, and the output terminal o is connected to the input terminal i of the second flip-flop 4106.
Is electrically connected to

【0185】第1フリップフロップ4105は、信号出
力ユニット7000から出力されたパルス信号CK2を
入力端子sを通して入力し、入力されたパルス信号CK
2の各パルスの立ち上りに同期して入力端子iに入力さ
れたデータを出力端子oにラッチする。第2フリップフ
ロップ4106は、Dフリップフロップからなり、入力
端子s,iおよび出力端子oを有する。入力端子sは、
信号出力ユニット7000の出力端子P2に電気的に接
続され、入力端子iは、第1フリップフロップ4105
の出力端子oに電気的に接続される。出力端子oは、セ
レクタ4104の入力端子A、論理和演算器4102の
入力端子B、第1セレクタ付きフリップフロップ410
7の入力端子Iおよび第2セレクタ付きフリップフロッ
プ4108の入力端子Iに電気的に接続される。
The first flip-flop 4105 inputs the pulse signal CK2 output from the signal output unit 7000 through the input terminal s, and inputs the input pulse signal CK.
The data input to the input terminal i is latched to the output terminal o in synchronization with the rise of each pulse of No. 2. The second flip-flop 4106 includes a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s
The signal output unit 7000 is electrically connected to the output terminal P2, and the input terminal i is connected to the first flip-flop 4105
Is electrically connected to the output terminal o. The output terminal o is an input terminal A of the selector 4104, an input terminal B of the OR calculator 4102, and a flip-flop 410 with the first selector.
7 and the input terminal I of the flip-flop 4108 with the second selector.

【0186】第2フリップフロップ4106は、信号出
力ユニット7000から出力されたパルス信号CK2を
入力端子sを通して入力し、入力されたパルス信号CK
2の各パルスの立ち上りに同期して入力端子iに入力さ
れたデータを出力端子oを通して出力する。第1セレク
タ付きフリップフロップ4107は、図24に示された
セレクタ付きフリップフロップ4400によって構成さ
れる。ここで、図24に示すように、セレクタ付きフリ
ップフロップ4400は、入力端子E,F,Iおよび出
力端子Oを有し、さらに、セレクタ4401およびフリ
ップフロップ4402から構成される。入力端子Fは、
信号出力ユニット7000の出力端子P2に電気的に接
続される。
The second flip-flop 4106 inputs the pulse signal CK2 output from the signal output unit 7000 through an input terminal s, and inputs the input pulse signal CK.
The data input to the input terminal i is output through the output terminal o in synchronization with the rise of each pulse of No. 2. The first flip-flop with selector 4107 includes the flip-flop with selector 4400 shown in FIG. Here, as shown in FIG. 24, the flip-flop with selector 4400 has input terminals E, F, and I and an output terminal O, and further includes a selector 4401 and a flip-flop 4402. The input terminal F is
It is electrically connected to output terminal P2 of signal output unit 7000.

【0187】セレクタ4401は、入力端子S,A,B
および出力端子Yを有し、入力端子Sは、入力端子Eと
電気的に接続され、入力端子Aは、フリップフロップ4
402の出力端子oと電気的に接続され、入力端子B
は、入力端子Iと電気的に接続される。セレクタ440
1は、入力端子Sを通して入力された信号に基づいて入
力端子Aおよび入力端子Bの何れか一方の入力端子と出
力端子Yを電気的に接続する切換器であり、入力端子S
を通して入力された信号が0のときには、入力端子Aと
出力端子Yを電気的に接続し、入力端子Sを通して入力
された信号が1のときには、入力端子Bと出力端子Yを
電気的に接続する。
The selector 4401 has input terminals S, A, B
And an output terminal Y, the input terminal S is electrically connected to the input terminal E, and the input terminal A is connected to the flip-flop 4.
402 is electrically connected to the output terminal o, and the input terminal B
Are electrically connected to the input terminal I. Selector 440
Reference numeral 1 denotes a switch for electrically connecting one of the input terminals A and B to the output terminal Y based on a signal input through the input terminal S.
When the signal input through the input terminal 0 is 0, the input terminal A is electrically connected to the output terminal Y. When the signal input through the input terminal S is 1, the input terminal B is electrically connected to the output terminal Y. .

【0188】フリップフロップ4402は、Dフリップ
フロップからなり、入力端子s,iおよび出力端子oを
有する。入力端子sは、入力端子Fと電気的に接続さ
れ、入力端子iは、セレクタ4401の出力端子Yに電
気的に接続され、出力端子oは、出力端子Oと電気的に
接続されるとともに、セレクタ4401の入力端子Aに
電気的に接続される。
The flip-flop 4402 is composed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is electrically connected to the input terminal F, the input terminal i is electrically connected to the output terminal Y of the selector 4401, the output terminal o is electrically connected to the output terminal O, The input terminal A of the selector 4401 is electrically connected.

【0189】フリップフロップ4402は、信号出力ユ
ニット7000から出力されたパルス信号CK2を入力
端子Fおよび入力端子sを通して入力し、入力されたパ
ルス信号CK2の各パルスの立ち上りに同期して入力端
子iに入力されたデータを出力端子oにラッチする。第
1セレクタ付きフリップフロップ4107の入力端子E
は、信号出力ユニット7000の出力端子P9に電気的
に接続され、入力端子Iは、第2フリップフロップ41
06の出力端子oに電気的に接続される。第1セレクタ
付きフリップフロップ4107は、信号出力ユニット7
000から出力された信号SMV1を入力端子Eを通し
て入力し、入力された信号SMV1に基づいてセレクタ
4401の入力端子と出力端子の接続を切換え、入力端
子Iから選択的に入力したデータを出力端子Oを通して
出力する。
The flip-flop 4402 inputs the pulse signal CK2 output from the signal output unit 7000 through the input terminal F and the input terminal s, and inputs the pulse signal CK2 to the input terminal i in synchronization with the rise of each pulse of the input pulse signal CK2. The input data is latched at the output terminal o. Input terminal E of flip-flop 4107 with first selector
Is electrically connected to the output terminal P9 of the signal output unit 7000, and the input terminal I is connected to the second flip-flop 41.
06 is electrically connected to the output terminal o. The first selector-equipped flip-flop 4107 is connected to the signal output unit 7.
The signal SMV1 output from the input terminal I is input through the input terminal E, the connection between the input terminal and the output terminal of the selector 4401 is switched based on the input signal SMV1, and the data selectively input from the input terminal I is output to the output terminal O. Output through

【0190】第2セレクタ付きフリップフロップ410
8は、セレクタ付きフリップフロップ4400によって
構成される。入力端子Eは、信号出力ユニット7000
の出力端子P10に電気的に接続され、入力端子Iは、
第2フリップフロップ4106の出力端子oに電気的に
接続される。第2セレクタ付きフリップフロップ410
8は、信号出力ユニット7000から出力された信号S
MV2を入力端子Eを通して入力し、入力された信号S
MV2に基づいてセレクタ4401の入力端子と出力端
子の接続を切換え、入力端子Iから選択的に入力したデ
ータを出力端子Oを通して出力する。
Flip-flop 410 with second selector
8 comprises a flip-flop 4400 with a selector. The input terminal E is a signal output unit 7000
Is electrically connected to the output terminal P10, and the input terminal I is
The second flip-flop 4106 is electrically connected to the output terminal o. Flip-flop 410 with second selector
8 is a signal S output from the signal output unit 7000
MV2 is input through the input terminal E, and the input signal S
The connection between the input terminal and the output terminal of the selector 4401 is switched based on MV2, and data selectively input from the input terminal I is output through the output terminal O.

【0191】次に、セグメント動きベクトル垂直成分検
出ユニット4200は、さらに、セレクタ4201、第
1フリップフロップ4202、第2フリップフロップ4
203、換算テーブル4204、第1セレクタ付きフリ
ップフロップ4205および第2セレクタ付きフリップ
フロップ4206によって構成される。セレクタ420
1は、入力端子S,A,Bおよび出力端子Yを有する。
入力端子Sは、最小セグメントブロックディストーショ
ン検出ユニット4100の比較器4103の出力端子Y
に電気的に接続され、入力端子Aは、第2フリップフロ
ップ4203の出力端子oに電気的に接続され、入力端
子Bは、最小セグメントブロックディストーション検出
ユニット4100の比較器4101の出力端子Mに電気
的に接続される。出力端子Yは、第1フリップフロップ
4202の入力端子iに電気的に接続される。
Next, the segment motion vector vertical component detection unit 4200 further includes a selector 4201, a first flip-flop 4202, and a second flip-flop
203, a conversion table 4204, a flip-flop with a first selector 4205, and a flip-flop with a second selector 4206. Selector 420
1 has input terminals S, A, B and an output terminal Y.
The input terminal S is the output terminal Y of the comparator 4103 of the minimum segment block distortion detection unit 4100.
The input terminal A is electrically connected to the output terminal o of the second flip-flop 4203, and the input terminal B is electrically connected to the output terminal M of the comparator 4101 of the minimum segment block distortion detection unit 4100. Connected. The output terminal Y is electrically connected to the input terminal i of the first flip-flop 4202.

【0192】セレクタ4201は、比較器4103から
出力されたデータMinを入力端子Sを通して入力し、
入力されたデータMinに基づいて入力端子A,Bの何
れか一方の入力端子と出力端子Yを電気的に接続する切
換器であり、データMinが0のときには、入力端子A
と出力端子Yを電気的に接続し、データMinが1のと
きには、入力端子Bと出力端子Yを電気的に接続する。
The selector 4201 inputs the data Min output from the comparator 4103 through the input terminal S,
A switch for electrically connecting one of the input terminals A and B to the output terminal Y based on the input data Min. When the data Min is 0, the input terminal A
And the output terminal Y is electrically connected. When the data Min is 1, the input terminal B and the output terminal Y are electrically connected.

【0193】第1フリップフロップ4202は、Dフリ
ップフロップからなり、入力端子s,iおよび出力端子
oを有する。入力端子sは、信号出力ユニット7000
の出力端子P2に電気的に接続され、入力端子iは、セ
レクタ4201の出力端子Yに電気的に接続され、出力
端子oは、第2フリップフロップ4203の入力端子i
に電気的に接続される。
The first flip-flop 4202 is formed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is a signal output unit 7000
, The input terminal i is electrically connected to the output terminal Y of the selector 4201, and the output terminal o is connected to the input terminal i of the second flip-flop 4203.
Is electrically connected to

【0194】第1フリップフロップ4202は、信号出
力ユニット7000から出力されたパルス信号CK2を
入力端子sを通して入力し、入力されたパルス信号CK
2の各パルスの立ち上りに同期して入力端子iに入力さ
れたデータを出力端子oにラッチする。第2フリップフ
ロップ4203は、Dフリップフロップからなり、入力
端子s,iおよび出力端子oを有する。入力端子sは、
信号出力ユニット7000の出力端子P2に電気的に接
続され、入力端子iは、第1フリップフロップ4203
の出力端子oに電気的に接続され、出力端子oは、換算
テーブル4204の入力端子およびセレクタ4201の
入力端子Aに電気的に接続される。
The first flip-flop 4202 inputs the pulse signal CK2 output from the signal output unit 7000 through an input terminal s, and inputs the input pulse signal CK.
The data input to the input terminal i is latched to the output terminal o in synchronization with the rise of each pulse of No. 2. The second flip-flop 4203 includes a D flip-flop, and has input terminals s and i and an output terminal o. The input terminal s
The input terminal i is electrically connected to the output terminal P2 of the signal output unit 7000, and is connected to the first flip-flop 4203.
, And the output terminal o is electrically connected to the input terminal of the conversion table 4204 and the input terminal A of the selector 4201.

【0195】第2フリップフロップ4203は、信号出
力ユニット7000から出力されたパルス信号CK2を
入力端子sを通して入力し、入力されたパルス信号CK
2の各パルスの立ち上りに同期して入力端子iに入力さ
れたデータを出力端子oにラッチする。換算テーブル4
204は、入力端子および出力端子を有し、入力端子
は、第2フリップフロップ4203の出力端子oに電気
的に接続され、出力端子は、第1セレクタ付きフリップ
フロップ4205の入力端子Iおよび第2セレクタ付き
フリップフロップ4206の入力端子Iに電気的に接続
される。
The second flip-flop 4203 inputs the pulse signal CK2 output from the signal output unit 7000 through the input terminal s, and inputs the input pulse signal CK.
The data input to the input terminal i is latched to the output terminal o in synchronization with the rise of each pulse of No. 2. Conversion table 4
204 has an input terminal and an output terminal, the input terminal is electrically connected to the output terminal o of the second flip-flop 4203, and the output terminal is connected to the input terminal I and the second terminal of the flip-flop 4205 with the first selector. The flip-flop with selector 4206 is electrically connected to the input terminal I.

【0196】換算テーブル4204は、入力端子に入力
されたデータMyを垂直方向の動きベクトルMVyを表
すデータに換算して出力端子に出力する。第1セレクタ
付きフリップフロップ4205は、セレクタ付きフリッ
プフロップ4400によって構成される。入力端子E
は、信号出力ユニット7000の出力端子P9に電気的
に接続され、入力端子Iは、換算テーブル4204の出
力端子に電気的に接続される。第1セレクタ付きフリッ
プフロップ4205は、信号出力ユニット7000から
出力された信号SMV1を入力端子Eを通して入力し、
入力された信号SMV1に基づいてセレクタ4401の
入力端子と出力端子の接続を切換え、入力端子Iから選
択的に入力したデータを出力端子Oから出力する。
The conversion table 4204 converts the data My input to the input terminal into data representing a vertical motion vector MVy and outputs the data to the output terminal. The first flip-flop with selector 4205 includes a flip-flop with selector 4400. Input terminal E
Is electrically connected to the output terminal P9 of the signal output unit 7000, and the input terminal I is electrically connected to the output terminal of the conversion table 4204. The first selector-equipped flip-flop 4205 inputs the signal SMV1 output from the signal output unit 7000 through the input terminal E,
The connection between the input terminal and the output terminal of the selector 4401 is switched based on the input signal SMV1, and data selectively input from the input terminal I is output from the output terminal O.

【0197】第2セレクタ付きフリップフロップ420
6は、セレクタ付きフリップフロップ4400によって
構成される。入力端子Eは、信号出力ユニット7000
の出力端子P10に電気的に接続され、入力端子Iは、
換算テーブル4204の出力端子に電気的に接続され
る。第2セレクタ付きフリップフロップ4206は、信
号出力ユニット7000から出力された信号SMV2を
入力端子Eを通して入力し、入力された信号SMV2に
基づいてセレクタ4401入力端子と出力端子の接続を
切換え、入力端子Iから選択的に入力したデータを出力
端子Oから出力する。
Flip-flop with second selector 420
6 is constituted by a flip-flop 4400 with a selector. The input terminal E is a signal output unit 7000
Is electrically connected to the output terminal P10, and the input terminal I is
The output terminal of the conversion table 4204 is electrically connected. The flip-flop 4206 with the second selector inputs the signal SMV2 output from the signal output unit 7000 through the input terminal E, switches the connection between the input terminal and the output terminal of the selector 4401 based on the input signal SMV2, and Is output from an output terminal O.

【0198】次に、セグメント動きベクトル水平成分検
出ユニット4300は、さらに、カウンタ4301、セ
レクタ4302、第1フリップフロップ4303、第2
フリップフロップ4304、換算テーブル4305、第
1セレクタ付きフリップフロップ4306および第2セ
レクタ付きフリップフロップ4307によって構成され
る。
Next, the segment motion vector horizontal component detection unit 4300 further includes a counter 4301, a selector 4302, a first flip-flop 4303, and a second
It is configured by a flip-flop 4304, a conversion table 4305, a flip-flop 4306 with a first selector, and a flip-flop 4307 with a second selector.

【0199】カウンタ4301は、入力端子CL,E
N,CKおよび出力端子Qnを有する。入力端子CL
は、信号出力ユニット7000の出力端子P5に電気的
に接続され、入力端子ENは、信号出力ユニット700
0の出力端子P8に電気的に接続され、入力端子CK
は、信号出力ユニット7000の出力端子P2に電気的
に接続され、出力端子Qnは、セレクタ4302の入力
端子Bに電気的に接続される。
The counter 4301 has input terminals CL and E
N, CK and an output terminal Qn. Input terminal CL
Is electrically connected to the output terminal P5 of the signal output unit 7000, and the input terminal EN is connected to the signal output unit 700.
0, which is electrically connected to the output terminal P8 and the input terminal CK.
Is electrically connected to the output terminal P2 of the signal output unit 7000, and the output terminal Qn is electrically connected to the input terminal B of the selector 4302.

【0200】カウンタ4301は、予め内部に数値を表
すデータLMVxをもち、信号出力ユニット7000か
ら出力されたパルス信号LD1,CTE,CK2をそれ
ぞれ入力端子CL,EN,CKを通して入力し、入力端
子CLを通して入力されたパルス信号LD1が0から1
に立ち上がるタイミングに同期してこの内部データLM
Vxを0にリセットするとともに、入力端子ENを通し
て入力されたパルス信号CTEが1であり、入力端子C
Kを通して入力されたパルス信号CK2が0から1に立
ち上るタイミングに同期してこの内部データLMVxを
0,1,2,・・・の順にカウントアップして出力端子
Qnから出力する。
The counter 4301 has data LMVx representing a numerical value therein in advance, receives the pulse signals LD1, CTE, and CK2 output from the signal output unit 7000 through input terminals CL, EN, and CK, respectively. When the input pulse signal LD1 changes from 0 to 1
The internal data LM is synchronized with the
Vx is reset to 0, the pulse signal CTE input through the input terminal EN is 1, and the input terminal C
The internal data LMVx is counted up in the order of 0, 1, 2,... In synchronization with the timing when the pulse signal CK2 input through K rises from 0 to 1, and output from the output terminal Qn.

【0201】セレクタ4302は、入力端子S,A,B
および出力端子Yを有する。入力端子Sは、最小セグメ
ントブロックディストーション検出ユニット4100の
比較器4103の出力端子Yに電気的に接続され、入力
端子Aは、第2フリップフロップ4304の出力端子o
に電気的に接続され、入力端子Bは、カウンタ4301
の出力端子Qnに電気的に接続される。出力端子Yは、
第1フリップフロップ4303の入力端子iに電気的に
接続される。
The selector 4302 has input terminals S, A, B
And an output terminal Y. The input terminal S is electrically connected to the output terminal Y of the comparator 4103 of the minimum segment block distortion detection unit 4100, and the input terminal A is the output terminal o of the second flip-flop 4304.
The input terminal B is connected to the counter 4301
Are electrically connected to the output terminal Qn. The output terminal Y is
It is electrically connected to the input terminal i of the first flip-flop 4303.

【0202】セレクタ4302は、比較器4103から
出力されたデータMinを入力端子Sを通して入力し、
入力されたデータMinに基づいて入力端子A,Bの何
れか一方の入力端子と出力端子Yを電気的に接続する切
換器であり、データMinが0のときには、入力端子A
と出力端子Yを電気的に接続し、データMinが1のと
きには、入力端子Bと出力端子Yを電気的に接続する。
The selector 4302 inputs the data Min output from the comparator 4103 through the input terminal S,
A switch for electrically connecting one of the input terminals A and B to the output terminal Y based on the input data Min. When the data Min is 0, the input terminal A
And the output terminal Y is electrically connected. When the data Min is 1, the input terminal B and the output terminal Y are electrically connected.

【0203】第1フリップフロップ4303は、Dフリ
ップフロップからなり、入力端子s,iおよび出力端子
oを有する。入力端子sは、信号出力ユニット7000
の出力端子P2に電気的に接続され、入力端子iは、セ
レクタ4302の出力端子Yに電気的に接続され、出力
端子oは、第2フリップフロップ4304の入力端子i
に電気的に接続される。
The first flip-flop 4303 is composed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is a signal output unit 7000
, The input terminal i is electrically connected to the output terminal Y of the selector 4302, and the output terminal o is connected to the input terminal i of the second flip-flop 4304.
Is electrically connected to

【0204】第1フリップフロップ4303は、信号出
力ユニット7000から出力されたパルス信号CK2を
入力端子sを通して入力し、入力されたパルス信号CK
2の各パルスの立ち上りに同期して入力端子iに入力さ
れたデータを出力端子oにラッチする。第2フリップフ
ロップ4304は、Dフリップフロップからなり、入力
端子s,iおよび出力端子oを有する。入力端子sは、
信号出力ユニット7000の出力端子P2に電気的に接
続され、入力端子iは、第1フリップフロップ4303
の出力端子oに電気的に接続され、出力端子oは、換算
テーブル4305の入力端子およびセレクタ4302の
入力端子Aに電気的に接続される。
The first flip-flop 4303 inputs the pulse signal CK2 output from the signal output unit 7000 through the input terminal s, and inputs the input pulse signal CK.
The data input to the input terminal i is latched to the output terminal o in synchronization with the rise of each pulse of No. 2. The second flip-flop 4304 is formed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s
The signal output unit 7000 is electrically connected to the output terminal P2, and the input terminal i is connected to the first flip-flop 4303.
, And the output terminal o is electrically connected to the input terminal of the conversion table 4305 and the input terminal A of the selector 4302.

【0205】第2フリップフロップ4304は、信号出
力ユニット7000から出力されたパルス信号CK2を
入力端子sを通して入力し、入力されたパルス信号CK
2の各パルスの立ち上りに同期して入力端子iに入力さ
れたデータを出力端子oにラッチする。換算テーブル4
305は、入力端子および出力端子を有し、入力端子
は、第2フリップフロップ4304の出力端子oに電気
的に接続され、出力端子は、第1セレクタ付きフリップ
フロップ4306の入力端子Iおよび第2セレクタ付き
フリップフロップ4307の入力端子Iに電気的に接続
される。
The second flip-flop 4304 inputs the pulse signal CK2 output from the signal output unit 7000 through an input terminal s, and inputs the input pulse signal CK.
The data input to the input terminal i is latched to the output terminal o in synchronization with the rise of each pulse of No. 2. Conversion table 4
305 has an input terminal and an output terminal, the input terminal is electrically connected to the output terminal o of the second flip-flop 4304, and the output terminal is connected to the input terminal I and the second terminal of the first flip-flop with selector 4306. The flip-flop with selector 4307 is electrically connected to the input terminal I.

【0206】換算テーブル4305は、入力端子に入力
されたデータMxを水平方向の動きベクトルMVxを表
すデータに換算して出力端子に出力する。第1セレクタ
付きフリップフロップ4306は、セレクタ付きフリッ
プフロップ4400によって構成される。入力端子E
は、信号出力ユニット7000の出力端子P9に電気的
に接続され、入力端子Iは、換算テーブル4305の出
力端子に電気的に接続される。第1セレクタ付きフリッ
プフロップ4306は、信号出力ユニット7000から
出力された信号SMV1を入力端子Eを通して入力し、
入力された信号SMV1に基づいてセレクタ4401の
入力端子と出力端子の接続を切換え、入力端子Iから選
択的に入力したデータを出力端子Oから出力する。
The conversion table 4305 converts the data Mx input to the input terminal into data representing a horizontal motion vector MVx and outputs the converted data to the output terminal. The first flip-flop with selector 4306 includes a flip-flop with selector 4400. Input terminal E
Is electrically connected to the output terminal P9 of the signal output unit 7000, and the input terminal I is electrically connected to the output terminal of the conversion table 4305. The first selector-equipped flip-flop 4306 inputs the signal SMV1 output from the signal output unit 7000 through the input terminal E,
The connection between the input terminal and the output terminal of the selector 4401 is switched based on the input signal SMV1, and data selectively input from the input terminal I is output from the output terminal O.

【0207】第2セレクタ付きフリップフロップ430
7は、セレクタ付きフリップフロップ4400によって
構成される。入力端子Eは、信号出力ユニット7000
の出力端子P10に電気的に接続され、入力端子Iは、
換算テーブル4305の出力端子に電気的に接続され
る。第2セレクタ付きフリップフロップ4307は、信
号出力ユニット7000から出力された信号SMV2を
入力端子Eを通して入力し、入力された信号SMV2に
基づいてセレクタ4401の入力端子と出力端子の接続
を切換え、入力端子Iから選択的に入力したデータを出
力端子Oから出力する。
Flip-flop with second selector 430
7 comprises a flip-flop 4400 with a selector. The input terminal E is a signal output unit 7000
Is electrically connected to the output terminal P10, and the input terminal I is
It is electrically connected to the output terminal of conversion table 4305. The flip-flop 4307 with the second selector inputs the signal SMV2 output from the signal output unit 7000 through the input terminal E, and switches the connection between the input terminal and the output terminal of the selector 4401 based on the input signal SMV2. Data selectively input from I is output from an output terminal O.

【0208】次に、フィールドブロックディストーショ
ン算出ユニット5000について説明する。図25に示
すように、フィールドブロックディストーション算出ユ
ニット5000は、第1フィールドブロックディストー
ション算出ユニット5100、第2フィールドブロック
ディストーション算出ユニット5200および第3フィ
ールドブロックディストーション算出ユニット5300
によって構成されている。
Next, the field block distortion calculating unit 5000 will be described. As shown in FIG. 25, the field block distortion calculation unit 5000 includes a first field block distortion calculation unit 5100, a second field block distortion calculation unit 5200, and a third field block distortion calculation unit 5300.
It is constituted by.

【0209】第1フィールドブロックディストーション
算出ユニット5100は、入力端子A0および出力端子
Y0を有し、さらに、フリップフロップ5001、加算
器5002およびセレクタ付きフリップフロップ500
3によって構成される。入力端子A0は、セグメントブ
ロックディストーション算出ユニット3000のプロセ
ッサエレメントPE(0,0)の出力端子Doに電気的
に接続され、出力端子Y0は、後述するフィールドブロ
ック特定ユニット6000の比較器6101の入力端子
A0に電気的に接続される。
The first field block distortion calculating unit 5100 has an input terminal A0 and an output terminal Y0, and further includes a flip-flop 5001, an adder 5002, and a flip-flop 500 with a selector.
3 The input terminal A0 is electrically connected to the output terminal Do of the processor element PE (0,0) of the segment block distortion calculation unit 3000, and the output terminal Y0 is the input terminal of the comparator 6101 of the field block specifying unit 6000 described later. It is electrically connected to A0.

【0210】第1フィールドブロックディストーション
算出ユニット5100は、プロセッサエレメントPE
(0,0)から出力された第1セグメントブロックディ
ストーションおよび第2セグメントブロックディストー
ションを入力端子A0を通して入力し、入力された第1
セグメントブロックディストーションと第2セグメント
ブロックディストーションを加算してフィールドブロッ
クディストーションを算出し、算出されたフィールドブ
ロックディストーションを出力端子B0を通して出力す
る。
The first field block distortion calculating unit 5100 includes a processor element PE
The first segment block distortion and the second segment block distortion output from (0,0) are input through an input terminal A0, and the input first
A field block distortion is calculated by adding the segment block distortion and the second segment block distortion, and the calculated field block distortion is output through an output terminal B0.

【0211】フリップフロップ5001は、Dフリップ
フロップからなり、入力端子s,iおよび出力端子oを
有する。入力端子sは、信号出力ユニット7000の出
力端子P2に電気的に接続され、入力端子iは、入力端
子A0に電気的に接続され、出力端子oは、加算器50
02の入力端子Aに電気的に接続される。フリップフロ
ップ5001は、信号出力ユニット7000から出力さ
れたパルス信号CK2を入力端子sを通して入力し、入
力されたパルス信号CK2の各パルスの立ち上りに同期
して入力端子iに入力されたデータを出力端子oにラッ
チする。
The flip-flop 5001 is composed of a D flip-flop, and has input terminals s and i and an output terminal o. The input terminal s is electrically connected to the output terminal P2 of the signal output unit 7000, the input terminal i is electrically connected to the input terminal A0, and the output terminal o is connected to the adder 50.
02 is electrically connected to the input terminal A. The flip-flop 5001 inputs the pulse signal CK2 output from the signal output unit 7000 through the input terminal s, and outputs the data input to the input terminal i in synchronization with the rise of each pulse of the input pulse signal CK2. latch to o.

【0212】加算器5002は、入力端子A,Bおよび
出力端子Yを有し、入力端子Aは、フリップフロップ5
001の出力端子oに電気的に接続され、入力端子B
は、入力端子A0に電気的に接続され、出力端子Yは、
セレクタ付きフリップフロップ5003の入力端子Iに
電気的に接続される。加算器5002は、入力端子Aを
通して入力されたデータと入力端子Bを通して入力され
たデータとを加算して、出力端子Yから出力する。
The adder 5002 has input terminals A and B and an output terminal Y.
001 is electrically connected to the output terminal o, and the input terminal B
Is electrically connected to the input terminal A0, and the output terminal Y is
The flip-flop with selector 5003 is electrically connected to the input terminal I. Adder 5002 adds the data input through input terminal A and the data input through input terminal B, and outputs the result from output terminal Y.

【0213】セレクタ付きフリップフロップ5003
は、セレクタ付きフリップフロップ4400によって構
成される。入力端子Eは、信号出力ユニット7000の
出力端子P8に電気的に接続され、入力端子Iは、加算
器5002の出力端子Yに電気的に接続される。セレク
タ付きフリップフロップ5003は、信号出力ユニット
7000から出力された信号CTEを入力端子Eを通し
て入力し、入力された信号CTEに基づいてセレクタ4
401の入力端子と出力端子の接続を切換え、入力端子
Iから選択的に入力したデータを出力端子Oから出力す
る。
Flip-flop with selector 5003
Is constituted by a flip-flop 4400 with a selector. The input terminal E is electrically connected to the output terminal P8 of the signal output unit 7000, and the input terminal I is electrically connected to the output terminal Y of the adder 5002. The flip-flop with selector 5003 inputs the signal CTE output from the signal output unit 7000 through the input terminal E, and selects the selector 4 based on the input signal CTE.
The connection between the input terminal and the output terminal of 401 is switched, and data selectively input from the input terminal I is output from the output terminal O.

【0214】次に、第2フィールドブロックディストー
ション算出ユニット5200は、入力端子A1および出
力端子Y1を有し、同様に、フリップフロップ500
1、加算器5002およびセレクタ付きフリップフロッ
プ5003によって構成される。入力端子A1は、セグ
メントブロックディストーション算出ユニット3000
のプロセッサエレメントPE(0,1)の出力端子Do
に電気的に接続され、出力端子Y1は、後述するフィー
ルドブロック特定ユニット6000の比較器6101の
入力端子A1に電気的に接続される。
Next, the second field block distortion calculating unit 5200 has an input terminal A1 and an output terminal Y1.
1, an adder 5002 and a flip-flop 5003 with a selector. The input terminal A1 is connected to the segment block distortion calculating unit 3000.
Output terminal Do of the processor element PE (0, 1)
The output terminal Y1 is electrically connected to an input terminal A1 of a comparator 6101 of a field block specifying unit 6000 described later.

【0215】第2フィールドブロックディストーション
算出ユニット5200は、プロセッサエレメントPE
(0,1)から出力された第1セグメントブロックディ
ストーションおよび第2セグメントブロックディストー
ションを入力端子B1を通して入力し、入力された第1
セグメントブロックディストーションと第2セグメント
ブロックディストーションを加算して、フィールドブロ
ックディストーションを出力端子Y1を通して出力す
る。
The second field block distortion calculating unit 5200 includes a processor element PE
The first segment block distortion and the second segment block distortion output from (0, 1) are input through an input terminal B1, and the input first
The segment block distortion and the second segment block distortion are added, and the field block distortion is output through the output terminal Y1.

【0216】次に、第3フィールドブロックディストー
ション算出ユニット5300は、入力端子A2および出
力端子B2を有し、同様に、フリップフロップ500
1、加算器5002およびセレクタ付きフリップフロッ
プ5003によって構成される。入力端子A2は、セグ
メントブロックディストーション算出ユニット3000
のプロセッサエレメントPE(0,2)の出力端子Do
に電気的に接続され、出力端子Y2は、後述するフィー
ルドブロック特定ユニット6000の比較器6101の
入力端子A2に電気的に接続される。
Next, the third field block distortion calculating unit 5300 has an input terminal A2 and an output terminal B2.
1, an adder 5002 and a flip-flop 5003 with a selector. The input terminal A2 is connected to the segment block distortion calculating unit 3000.
Output terminal Do of the processor element PE (0, 2)
The output terminal Y2 is electrically connected to an input terminal A2 of a comparator 6101 of the field block specifying unit 6000 described later.

【0217】第3フィールドブロックディストーション
算出ユニット5300は、プロセッサエレメントPE
(0,2)から出力された第1セグメントブロックディ
ストーションおよび第2セグメントブロックディストー
ションを入力端子A2を通して入力し、入力された第1
セグメントブロックディストーションと第2セグメント
ブロックディストーションを加算して、フィールドブロ
ックディストーションを出力端子Y2を通して出力す
る。
The third field block distortion calculating unit 5300 includes a processor element PE
The first segment block distortion and the second segment block distortion output from (0, 2) are input through an input terminal A2, and the input first
The segment block distortion and the second segment block distortion are added, and the field block distortion is output through the output terminal Y2.

【0218】次に、フィールドブロック特定ユニット6
000のブロック図を説明する。図26に示すように、
フィールドブロック特定ユニット6000は、最小フィ
ールドブロックディストーション検出ユニット610
0、フィールド動きベクトル垂直成分検出ユニット62
00およびフィールド動きベクトル水平成分検出ユニッ
ト6300によって構成される。
Next, the field block specifying unit 6
000 will be described. As shown in FIG.
The field block specifying unit 6000 includes a minimum field block distortion detecting unit 610.
0, field motion vector vertical component detection unit 62
00 and a field motion vector horizontal component detection unit 6300.

【0219】最小フィールドブロックディストーション
検出ユニット6100は、フィールドブロックディスト
ーション算出ユニット5000で算出された複数のフィ
ールドブロックディストーションを入力し、入力された
フィールドブロックディストーションの中から最小の値
をもつフィールドブロックディストーションを検出す
る。
The minimum field block distortion detection unit 6100 receives a plurality of field block distortions calculated by the field block distortion calculation unit 5000 and detects a field block distortion having the minimum value from the input field block distortions. I do.

【0220】フィールド動きベクトル垂直成分検出ユニ
ット6200は、最小フィールドブロックディストーシ
ョン検出ユニット6100で検出された最小のフィール
ドブロックディストーションが算出されたプロセッサエ
レメントPE(x,y)の配置位置(行位置)に基づい
てサーチウィンドウ400内のフィールド候補ブロック
を特定し、特定されたフィールド候補ブロックによって
現画像フィールドブロック200のフィールド動きベク
トルの垂直成分MVFiyを特定する。
The field motion vector vertical component detection unit 6200 is based on the arrangement position (row position) of the processor element PE (x, y) for which the minimum field block distortion detected by the minimum field block distortion detection unit 6100 has been calculated. Then, the field candidate block in the search window 400 is specified, and the vertical component MVFiy of the field motion vector of the current image field block 200 is specified by the specified field candidate block.

【0221】フィールド動きベクトル水平成分検出ユニ
ット6300は、最小フィールドブロックディストーシ
ョン検出ユニット6100で検出された最小のフィール
ドブロックディストーションが算出されたプロセッサエ
レメントPE(x,y)の配置位置(列位置)に基づい
てサーチウィンドウ400内のフィールド候補ブロック
を特定し、特定されたフィールド候補ブロックによって
現画像フィールドブロック200のフィールド動きベク
トルの水平成分MVFixを特定する。
The field motion vector horizontal component detection unit 6300 is based on the arrangement position (column position) of the processor element PE (x, y) for which the minimum field block distortion detected by the minimum field block distortion detection unit 6100 has been calculated. Then, the field candidate block in the search window 400 is specified, and the horizontal component MVFix of the field motion vector of the current image field block 200 is specified by the specified field candidate block.

【0222】最小フィールドブロックディストーション
検出ユニット6100は、さらに、比較器6101、論
理和演算器6102、比較器6103、セレクタ610
4、フリップフロップ6105、セレクタ付きフリップ
フロップ6106によって構成される。比較器6101
は、入力端子A0,A1,A2および出力端子M,Yを
有する。入力端子A0,A1,A2は、それぞれフィー
ルドブロックディストーション算出ユニット5000の
出力端子Y0,Y1,Y2に電気的に接続される。出力
端子Yは、比較器6103の入力端子Aおよびセレクタ
6104の入力端子Bに電気的に接続される。出力端子
Mは、フィールド動きベクトル垂直成分検出ユニット6
200のセレクタ6201の入力端子Bに電気的に接続
される。
The minimum field block distortion detection unit 6100 further includes a comparator 6101, a logical sum operation unit 6102, a comparator 6103, and a selector 610.
4, a flip-flop 6105, and a flip-flop with selector 6106. Comparator 6101
Has input terminals A0, A1, A2 and output terminals M, Y. The input terminals A0, A1, A2 are electrically connected to the output terminals Y0, Y1, Y2 of the field block distortion calculation unit 5000, respectively. The output terminal Y is electrically connected to the input terminal A of the comparator 6103 and the input terminal B of the selector 6104. The output terminal M is connected to the field motion vector vertical component detection unit 6.
200 is electrically connected to the input terminal B of the selector 6201.

【0223】比較器6101は、フィールドブロックデ
ィストーション算出ユニット5000から出力端子Y
0,Y1,Y2を通して同時に出力されたフィールドブ
ロックディストーションを、それぞれ入力端子A0,A
1,A2を通して入力し、入力された3つのフィールド
ブロックディストーションを比較し、これらのフィール
ドブロックディストーションの中で最小のフィールドブ
ロックディストーションを出力端子Yから出力する。ま
た、最小のフィールドブロックディストーションが入力
された入力端子を示すデータLMVyを出力端子Mから
出力する。ここで、出力端子Mから出力されるデータL
MVyは、最小のフィールドブロックディストーション
が入力された入力端子が入力端子A0のときには0、A
1のときには1、A2のときには2を表す。
The comparator 6101 outputs the output terminal Y from the field block distortion calculating unit 5000.
0, Y1, and Y2, the field block distortions output simultaneously are input to input terminals A0, A, respectively.
1 and A2, the input three field block distortions are compared, and the minimum field block distortion among these field block distortions is output from the output terminal Y. Further, data LMVy indicating the input terminal to which the minimum field block distortion has been input is output from the output terminal M. Here, the data L output from the output terminal M
MVy is 0, A when the input terminal to which the minimum field block distortion is input is the input terminal A0.
1 indicates 1 and A2 indicates 2.

【0224】論理和演算器6102は、入力端子A,B
および出力端子Yを有する。入力端子Aは、信号出力ユ
ニット7000の出力端子P7に電気的に接続され、入
力端子Bは、フリップフロップ6105の出力端子oに
電気的に接続される。出力端子Yは、比較器6103の
入力端子Bに電気的に接続される。論理和演算器610
2は、信号出力ユニット7000から出力されたパルス
信号LD3を入力端子Aを通して入力するとともに、フ
リップフロップ6105から出力されたデータを入力端
子Bを通して入力し、入力された信号LD3をビット列
で表したデータと入力端子Bから入力されたデータとの
論理和を演算し、その演算結果を出力端子Yにする。こ
こで、信号LD3が0のときには、信号LD3に対応す
るデータは、すべてのビットが0で表され、入力端子B
から入力されたデータが論理和の演算結果として出力さ
れる。一方、信号LD3が1のときには、信号LD3に
対応するデータは、すべてのビットが1で表され、その
ままこのデータが最大値として出力端子Yを通して出力
される。
The OR operation unit 6102 has input terminals A and B
And an output terminal Y. Input terminal A is electrically connected to output terminal P7 of signal output unit 7000, and input terminal B is electrically connected to output terminal o of flip-flop 6105. The output terminal Y is electrically connected to the input terminal B of the comparator 6103. OR operation unit 610
Reference numeral 2 denotes a pulse signal LD3 output from the signal output unit 7000 input through an input terminal A, data input from a flip-flop 6105 input via an input terminal B, and data representing the input signal LD3 in a bit string. And the logical sum of the data inputted from the input terminal B is calculated, and the calculation result is output to the output terminal Y. Here, when the signal LD3 is 0, all bits of the data corresponding to the signal LD3 are represented by 0, and the input terminal B
Is output as an OR operation result. On the other hand, when the signal LD3 is 1, all bits of the data corresponding to the signal LD3 are represented by 1, and this data is output as it is through the output terminal Y as the maximum value.

【0225】比較器6103は、入力端子A,Bおよび
出力端子Yを有する。入力端子Aは、比較器6101の
出力端子Yに電気的に接続され、入力端子Bは、論理和
演算器6102の出力端子Yに電気的に接続され、出力
端子Yは、セレクタ6104の入力端子S、フィールド
動きベクトル垂直成分検出ユニット6200のセレクタ
6201の入力端子Sおよびフィールド動きベクトル水
平成分検出ユニット6300のセレクタ6302の入力
端子Sに電気的に接続される。
Comparator 6103 has input terminals A and B and output terminal Y. The input terminal A is electrically connected to the output terminal Y of the comparator 6101, the input terminal B is electrically connected to the output terminal Y of the OR calculator 6102, and the output terminal Y is connected to the input terminal of the selector 6104. S, the input terminal S of the selector 6201 of the field motion vector vertical component detection unit 6200 and the input terminal S of the selector 6302 of the field motion vector horizontal component detection unit 6300 are electrically connected.

【0226】比較器6103は、比較器6101から出
力されたフィールドブロックディストーションを入力端
子Aを通して入力するとともに、論理和演算器6102
から出力されたデータを入力端子Bを通して入力し、入
力端子Aを通して入力されたフィールドブロックディス
トーションが入力端子Bを通して入力されたデータ以上
の大きさである場合には、出力端子Yから0を表すデー
タMinを出力し、入力端子Aを通して入力されたフィ
ールドブロックディストーションが入力端子Bを通して
入力されたデータより小さい場合には、出力端子Yから
1を表すデータMinを出力する。
The comparator 6103 receives the field block distortion output from the comparator 6101 through the input terminal A, and performs a logical OR operation 6102
Is input through an input terminal B. If the field block distortion input through the input terminal A is greater than the data input through the input terminal B, the data representing the output from the output terminals Y to 0 Min is output, and when the field block distortion input through the input terminal A is smaller than the data input through the input terminal B, data Min representing 1 is output from the output terminal Y.

【0227】セレクタ6104は、入力端子S,A,B
および出力端子Yを有する。入力端子Sは、比較器61
03の出力端子Yに電気的に接続され、入力端子Aは、
フリップフロップ6105の出力端子oに電気的に接続
され、入力端子Bは、比較器6101の出力端子Yに電
気的に接続される。出力端子Yは、フリップフロップ6
105の入力端子iに電気的に接続される。
The selector 6104 has input terminals S, A, B
And an output terminal Y. The input terminal S is connected to the comparator 61
03 is electrically connected to the output terminal Y, and the input terminal A is
The output terminal o of the flip-flop 6105 is electrically connected, and the input terminal B is electrically connected to the output terminal Y of the comparator 6101. The output terminal Y is a flip-flop 6
105 is electrically connected to the input terminal i.

【0228】セレクタ6104は、比較器6103から
出力されたデータMinを入力端子Sを通して入力し、
入力されたデータMinに基づいて入力端子A,Bの何
れか一方の入力端子と出力端子Yを電気的に接続する切
換器であり、データMinが0のときには、入力端子A
と出力端子Yを電気的に接続し、データMinが1のと
きには、入力端子Bと出力端子Yを電気的に接続する。
The selector 6104 inputs the data Min output from the comparator 6103 through the input terminal S,
A switch for electrically connecting one of the input terminals A and B to the output terminal Y based on the input data Min. When the data Min is 0, the input terminal A
And the output terminal Y is electrically connected. When the data Min is 1, the input terminal B and the output terminal Y are electrically connected.

【0229】フリップフロップ6105は、Dフリップ
フロップからなり、入力端子s,iおよび出力端子oを
有する。入力端子sは、信号出力ユニット7000の出
力端子P2に電気的に接続され、入力端子iは、セレク
タ6104の出力端子Yに電気的に接続され、出力端子
oは、セレクタ6104の入力端子A、論理和演算器6
102の入力端子Bおよびセレクタ付きフリップフロッ
プ6106の入力端子Iに電気的に接続される。
Flip-flop 6105 is formed of a D flip-flop, and has input terminals s and i and output terminal o. Input terminal s is electrically connected to output terminal P2 of signal output unit 7000, input terminal i is electrically connected to output terminal Y of selector 6104, and output terminal o is input terminal A of selector 6104. OR operator 6
102 and the input terminal I of the flip-flop with selector 6106.

【0230】フリップフロップ6105は、信号出力ユ
ニット7000から出力されたパルス信号CK2を入力
端子sを通して入力し、入力されたパルス信号CK2の
各パルスの立ち上りに同期して入力端子iに入力された
データを出力端子oにラッチする。セレクタ付きフリッ
プフロップ6106は、セレクタ付きフリップフロップ
4400によって構成される。入力端子Eは、信号出力
ユニット7000の出力端子P10に電気的に接続さ
れ、入力端子Iは、フリップフロップ6105の出力端
子oに電気的に接続される。セレクタ付きフリップフロ
ップ6106は、信号出力ユニット7000から出力さ
れた信号SMV2を入力端子Eを通して入力し、入力さ
れた信号SMV2に基づいてセレクタ4401の入力端
子と出力端子の接続を切換え、入力端子Iから選択的に
入力したデータを出力端子Oから出力する。
The flip-flop 6105 inputs the pulse signal CK2 output from the signal output unit 7000 through the input terminal s, and synchronizes the data input to the input terminal i in synchronization with the rise of each pulse of the input pulse signal CK2. At the output terminal o. The flip-flop with selector 6106 includes a flip-flop with selector 4400. Input terminal E is electrically connected to output terminal P10 of signal output unit 7000, and input terminal I is electrically connected to output terminal o of flip-flop 6105. The flip-flop with selector 6106 inputs the signal SMV2 output from the signal output unit 7000 through the input terminal E, switches the connection between the input terminal and the output terminal of the selector 4401 based on the input signal SMV2, The selectively input data is output from the output terminal O.

【0231】次に、フィールド動きベクトル垂直成分検
出ユニット6200は、さらに、セレクタ6201、フ
リップフロップ6202、換算テーブル6203および
セレクタ付きフリップフロップ6204によって構成さ
れる。セレクタ6201は、入力端子S,A,Bおよび
出力端子Yを有する。入力端子Sは、最小フィールドブ
ロックディストーション検出ユニット6100の比較器
6103の出力端子Yに電気的に接続され、入力端子A
は、フリップフロップ6202の出力端子oに電気的に
接続され、入力端子Bは、最小フィールドブロックディ
ストーション検出ユニット6100の比較器6101の
出力端子Mに電気的に接続される。出力端子Yは、フリ
ップフロップ6202の入力端子iに電気的に接続され
る。
Next, the field motion vector vertical component detection unit 6200 further includes a selector 6201, a flip-flop 6202, a conversion table 6203, and a flip-flop with selector 6204. The selector 6201 has input terminals S, A, B and an output terminal Y. The input terminal S is electrically connected to the output terminal Y of the comparator 6103 of the minimum field block distortion detection unit 6100, and the input terminal A
Is electrically connected to the output terminal o of the flip-flop 6202, and the input terminal B is electrically connected to the output terminal M of the comparator 6101 of the minimum field block distortion detection unit 6100. Output terminal Y is electrically connected to input terminal i of flip-flop 6202.

【0232】セレクタ6201は、比較器6103から
出力されたデータMinを入力端子Sを通して入力し、
入力されたデータMinに基づいて入力端子A,Bの何
れか一方の入力端子と出力端子Yを電気的に接続する切
換器であり、データMinが0のときには、入力端子A
と出力端子Yを電気的に接続し、データMinが1のと
きには、入力端子Bと出力端子Yを電気的に接続する。
The selector 6201 inputs the data Min output from the comparator 6103 through the input terminal S,
A switch for electrically connecting one of the input terminals A and B to the output terminal Y based on the input data Min. When the data Min is 0, the input terminal A
And the output terminal Y is electrically connected. When the data Min is 1, the input terminal B and the output terminal Y are electrically connected.

【0233】フリップフロップ6202は、Dフリップ
フロップからなり、入力端子s,iおよび出力端子oを
有する。入力端子sは、信号出力ユニット7000の出
力端子P2に電気的に接続され、入力端子iは、セレク
タ6201の出力端子Yに電気的に接続され、出力端子
oは、換算テーブル6203の入力端子およびセレクタ
6201の入力端子Aに電気的に接続される。
The flip-flop 6202 is composed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is electrically connected to the output terminal P2 of the signal output unit 7000, the input terminal i is electrically connected to the output terminal Y of the selector 6201, and the output terminal o is the input terminal of the conversion table 6203. It is electrically connected to the input terminal A of the selector 6201.

【0234】フリップフロップ6202は、信号出力ユ
ニット7000から出力されたパルス信号CK2を入力
端子sを通して入力し、入力されたパルス信号CK2の
各パルスの立ち上りに同期して入力端子iに入力された
データを出力端子oにラッチする。換算テーブル620
3は、入力端子および出力端子を有し、入力端子は、フ
リップフロップ6202の出力端子oに電気的に接続さ
れ、出力端子は、セレクタ付きフリップフロップ620
4の入力端子Iに電気的に接続される。換算テーブル6
203は、入力端子に入力されたデータを垂直方向の動
きベクトルMVyを表すデータに換算して出力端子に出
力する。
The flip-flop 6202 inputs the pulse signal CK2 output from the signal output unit 7000 through the input terminal s, and synchronizes the data input to the input terminal i in synchronization with the rise of each pulse of the input pulse signal CK2. At the output terminal o. Conversion table 620
3 has an input terminal and an output terminal, the input terminal is electrically connected to the output terminal o of the flip-flop 6202, and the output terminal is connected to the flip-flop 620 with a selector.
4 is electrically connected to the input terminal I. Conversion table 6
203 converts the data input to the input terminal into data representing a vertical motion vector MVy, and outputs the data to the output terminal.

【0235】セレクタ付きフリップフロップ6204
は、セレクタ付きフリップフロップ4400によって構
成される。入力端子Eは、信号出力ユニット7000の
出力端子P10に電気的に接続され、入力端子Iは、換
算テーブル6203の出力端子に電気的に接続される。
セレクタ付きフリップフロップ6204は、信号出力ユ
ニット7000から出力された信号SMV2を入力端子
Eを通して入力し、入力された信号SMV2に基づいて
セレクタ4401の入力端子と出力端子の接続を切換
え、入力端子Iから選択的に入力したデータを出力端子
Oから出力する。
Flip-flop with selector 6204
Is constituted by a flip-flop 4400 with a selector. Input terminal E is electrically connected to output terminal P10 of signal output unit 7000, and input terminal I is electrically connected to the output terminal of conversion table 6203.
The flip-flop with selector 6204 inputs the signal SMV2 output from the signal output unit 7000 through the input terminal E, and switches the connection between the input terminal and the output terminal of the selector 4401 based on the input signal SMV2. The selectively input data is output from the output terminal O.

【0236】次に、フィールド動きベクトル水平成分検
出ユニット6300は、さらに、カウンタ6301、セ
レクタ6302、フリップフロップ6303、換算テー
ブル6304およびセレクタ付きフリップフロップ63
05によって構成される。カウンタ6301は、入力端
子CL,EN,CKおよび出力端子Qnを有する。入力
端子CLは、信号出力ユニット7000の出力端子P6
に電気的に接続され、入力端子ENは、信号出力ユニッ
ト7000の出力端子P8に電気的に接続され、入力端
子CKは、信号出力ユニット7000の出力端子P2に
電気的に接続され、出力端子Qnは、セレクタ6302
の入力端子Bに電気的に接続される。
Next, the field motion vector horizontal component detection unit 6300 further includes a counter 6301, a selector 6302, a flip-flop 6303, a conversion table 6304, and a flip-flop 63 with a selector.
05. The counter 6301 has input terminals CL, EN, CK and an output terminal Qn. The input terminal CL is connected to the output terminal P6 of the signal output unit 7000.
The input terminal EN is electrically connected to the output terminal P8 of the signal output unit 7000, the input terminal CK is electrically connected to the output terminal P2 of the signal output unit 7000, and the output terminal Qn Is the selector 6302
Is electrically connected to the input terminal B.

【0237】カウンタ6301は、予め内部に数値を表
すデータLMVxを有し、信号出力ユニット7000か
ら出力されたパルス信号LD2,CTE,CK2をそれ
ぞれ入力端子CL,EN,CKを通して入力し、入力端
子CLを通して入力されたパルス信号LD2の立ち上り
に同期して、この内部データLMVxを0にリセットす
るとともに、入力端子ENを通して入力されたパルス信
号CTEが1であり、入力端子CKを通して入力された
パルス信号CK2がともに0から1に立ち上るタイミン
グに同期して順次この内部データLMVxを0,1,
2,・・・の順にカウントアップして出力端子Qnから
出力する。
The counter 6301 has data LMVx representing a numerical value in advance, and receives the pulse signals LD2, CTE, and CK2 output from the signal output unit 7000 through input terminals CL, EN, and CK, respectively. The internal data LMVx is reset to 0 in synchronization with the rise of the pulse signal LD2 input through the input terminal EN, the pulse signal CTE input through the input terminal EN is 1, and the pulse signal CK2 input through the input terminal CK is input. In synchronization with the timing when both rise from 0 to 1, the internal data LMVx is sequentially changed to 0, 1,
, And output from the output terminal Qn.

【0238】セレクタ6302は、入力端子S,A,B
および出力端子Yを有する。入力端子Sは、最小フィー
ルドブロックディストーション検出ユニット6100の
比較器6103の出力端子Yに電気的に接続され、入力
端子Aは、フリップフロップ6303の出力端子oに電
気的に接続され、入力端子Bは、カウンタ6301の出
力端子Qnに電気的に接続される。出力端子Yは、フリ
ップフロップ6303の入力端子iに電気的に接続され
る。
The selector 6302 has input terminals S, A, B
And an output terminal Y. The input terminal S is electrically connected to the output terminal Y of the comparator 6103 of the minimum field block distortion detection unit 6100, the input terminal A is electrically connected to the output terminal o of the flip-flop 6303, and the input terminal B is , And the output terminal Qn of the counter 6301. The output terminal Y is electrically connected to the input terminal i of the flip-flop 6303.

【0239】セレクタ6302は、比較器6103から
出力されたデータMinを入力端子Sを通して入力し、
入力されたデータMinに基づいて入力端子A,Bの何
れか一方の入力端子と出力端子Yを電気的に接続する切
換器であり、データMinが0のときには、入力端子A
と出力端子Yを電気的に接続し、データMinが1のと
きには、入力端子Bと出力端子Yを電気的に接続する。
The selector 6302 inputs the data Min output from the comparator 6103 through the input terminal S.
A switch for electrically connecting one of the input terminals A and B to the output terminal Y based on the input data Min. When the data Min is 0, the input terminal A
And the output terminal Y is electrically connected. When the data Min is 1, the input terminal B and the output terminal Y are electrically connected.

【0240】フリップフロップ6303は、Dフリップ
フロップからなり、入力端子s,iおよび出力端子oを
有する。入力端子sは、信号出力ユニット7000の出
力端子P2に電気的に接続され、入力端子iは、セレク
タ6302の出力端子Yに電気的に接続され、出力端子
oは、換算テーブル6304の入力端子およびセレクタ
6302の入力端子Aに電気的に接続される。
Flip-flop 6303 is a D flip-flop and has input terminals s and i and output terminal o. The input terminal s is electrically connected to the output terminal P2 of the signal output unit 7000, the input terminal i is electrically connected to the output terminal Y of the selector 6302, and the output terminal o is the input terminal of the conversion table 6304 and The input terminal A of the selector 6302 is electrically connected.

【0241】フリップフロップ6303は、信号出力ユ
ニット7000から出力されたパルス信号CK2を入力
端子sを通して入力し、入力されたパルス信号CK2の
各パルスの立ち上りに同期して入力端子iに入力された
データを出力端子oにラッチする。換算テーブル630
4は、入力端子および出力端子を有し、入力端子は、フ
リップフロップ6303の出力端子oに電気的に接続さ
れ、出力端子は、セレクタ付きフリップフロップ630
5の入力端子Iに電気的に接続される。換算テーブル6
304は、入力端子に入力されたデータを水平方向の動
きベクトルMVxを表すデータに換算して出力端子に出
力する。
The flip-flop 6303 inputs the pulse signal CK2 output from the signal output unit 7000 through the input terminal s, and synchronizes the data input to the input terminal i in synchronization with the rise of each pulse of the input pulse signal CK2. At the output terminal o. Conversion table 630
4 has an input terminal and an output terminal, the input terminal is electrically connected to the output terminal o of the flip-flop 6303, and the output terminal is connected to the flip-flop with selector 630.
5 is electrically connected to the input terminal I. Conversion table 6
Reference numeral 304 converts the data input to the input terminal into data representing a horizontal motion vector MVx and outputs the converted data to an output terminal.

【0242】セレクタ付きフリップフロップ6305
は、セレクタ付きフリップフロップ4400によって構
成される。入力端子Eは、信号出力ユニット7000の
出力端子P10に電気的に接続され、入力端子Iは、換
算テーブル6305の出力端子に電気的に接続される。
セレクタ付きフリップフロップ6305は、信号出力ユ
ニット7000から出力された信号SMV2を入力端子
Eを通して入力し、入力された信号SMV2に基づいて
セレクタ4401の入力端子と出力端子の接続を切換
え、入力端子Iから選択的に入力したデータを出力端子
Oから出力する。
Flip-flop with selector 6305
Is constituted by a flip-flop 4400 with a selector. Input terminal E is electrically connected to output terminal P10 of signal output unit 7000, and input terminal I is electrically connected to the output terminal of conversion table 6305.
The flip-flop with selector 6305 inputs the signal SMV2 output from the signal output unit 7000 through the input terminal E, switches the connection between the input terminal and the output terminal of the selector 4401 based on the input signal SMV2, The selectively input data is output from the output terminal O.

【0243】次に、作用を説明する。図7〜図11に示
されたタイムチャートに基づいて動きベクトルを探索す
る動作を説明する。始めに、図7および図8のタイムチ
ャートに基づいてセグメントブロックディストーション
算出ユニット3000の各プロセッサエレメントPE
(x,y)において、プロセッサエレメントPE(x,
y)と位置的に対応する第1セグメント候補ブロック5
10と現画像第1セグメントブロック210とのそれぞ
れの第1セグメントブロックディストーション、並び
に、プロセッサエレメントPE(x,y)と位置的に対
応する第2セグメント候補ブロック520と現画像第2
セグメントブロック220とのそれぞれの第2セグメン
トブロックディストーションを時分割で求める動作を説
明する。
Next, the operation will be described. The operation of searching for a motion vector based on the time charts shown in FIGS. 7 to 11 will be described. First, each processor element PE of the segment block distortion calculation unit 3000 will be described based on the time charts of FIGS.
In (x, y), the processor element PE (x, y)
First segment candidate block 5 corresponding in position to y)
10 and the first segment block distortion of the current image first segment block 210, and the second segment candidate block 520 and the current image second
The operation of obtaining the respective second segment block distortions with the segment block 220 by time division will be described.

【0244】各プロセッサエレメントPE(x,y)お
よび各レジスタ(x,y)は、行方向および列方向に隣
接する他の各プロセッサエレメントPE(x,y)およ
び各レジスタ(x,y)間でサーチウィンドウ400の
画素データを転送する。また、以下に示す図27〜図4
3は、クロックパルス信号CK1の各パルスの立ち上が
りに同期して各プロセッサエレメントPE(x,y)お
よび各レジスタ(x,y)の第1フリップフロップ36
02,3612,3622,3632および第2フリッ
プフロップ3603,3613,3623,3633に
ラッチされたサーチウィンドウ400の画素データを示
しており、右側が第1フリップフロップ3602にラッ
チされた画素データを示し、左側が第2フリップフロッ
プ3603にラッチされた画素データを示している。
Each processor element PE (x, y) and each register (x, y) are connected between each other processor element PE (x, y) and each register (x, y) adjacent in the row and column directions. Transfer the pixel data of the search window 400. 27 to 4 shown below.
3 is a first flip-flop 36 of each processor element PE (x, y) and each register (x, y) in synchronization with the rise of each pulse of the clock pulse signal CK1.
02, 3612, 3622, 3632 and the pixel data of the search window 400 latched by the second flip-flops 3603, 3613, 3623, 3633, the right side shows the pixel data latched by the first flip-flop 3602, The left side shows the pixel data latched by the second flip-flop 3603.

【0245】まず、クロックパルス信号CK1の1クロ
ック目に同期して、図27に示すように、画素データb
(0,1)がサーチウィンドウデータ出力ユニット20
00の出力端子S0から入力レジスタIR(3,0)の
第1フリップフロップ3612にラッチされ、同時に、
画素データb(0,3)がサーチウィンドウデータ出力
ユニット2000の出力端子S1から入力レジスタIR
(3,2)の第1フリップフロップ3612にラッチさ
れる。
First, in synchronization with the first clock of the clock pulse signal CK1, as shown in FIG.
(0, 1) is the search window data output unit 20
00 from the output terminal S0 of the input register IR (3,0) and latched in the first flip-flop 3612,
Pixel data b (0,3) is input from output terminal S1 of search window data output unit 2000 to input register IR.
(3, 2) is latched by the first flip-flop 3612.

【0246】このとき、各プロセッサエレメントPE
(x,y)の転送方向選択部3600のセレクタ360
1の出力端子Yは、入力端子Cと電気的に接続されてい
る。入力レジスタIR(3,1)の転送方向選択部36
10のセレクタ3611の出力端子Yは、入力端子Aと
電気的に接続されている。各第1サイドレジスタSR
(x,−1)の転送方向選択部3620のセレクタ36
21の出力端子Yは、入力端子Bと電気的に接続されて
いる。各第2サイドレジスタSR(x,3)の転送方向
選択部3630のセレクタ3631の出力端子Yは、入
力端子Bと電気的に接続されている。
At this time, each processor element PE
The selector 360 of the (x, y) transfer direction selector 3600
One output terminal Y is electrically connected to the input terminal C. Transfer direction selector 36 of input register IR (3,1)
The output terminal Y of the ten selectors 3611 is electrically connected to the input terminal A. Each first side register SR
The selector 36 of the (x, -1) transfer direction selector 3620
The output terminal Y of 21 is electrically connected to the input terminal B. The output terminal Y of the selector 3631 of the transfer direction selection unit 3630 of each second side register SR (x, 3) is electrically connected to the input terminal B.

【0247】次に、クロックパルス信号CK1の2クロ
ック目では、各プロセッサエレメントPE(x,y)の
転送方向選択部3600のセレクタ3601、入力レジ
スタIR(3,1)の転送方向選択部3610のセレク
タ3611、各第1サイドレジスタSR(x,y)の転
送方向選択部3620のセレクタ3621のそれぞれの
出力端子Yは、クロックパルス信号CK1の1クロック
目と同様に電気的に接続されている。
Next, at the second clock of the clock pulse signal CK1, the selector 3601 of the transfer direction selector 3600 of each processor element PE (x, y) and the transfer direction selector 3610 of the input register IR (3, 1). The output terminals Y of the selector 3611 and the selector 3621 of the transfer direction selector 3620 of each first side register SR (x, y) are electrically connected in the same manner as the first clock of the clock pulse signal CK1.

【0248】このため、図28に示すように、画素デー
タb(0,1)およびb(0,3)は、それぞれ入力レ
ジスタIR(3,y)の第1フリップフロップ3612
から同じ入力レジスタIR(3,y)の第2フリップフ
ロップ3613にラッチされる。また、同時に、画素デ
ータb(0,3)がサーチウィンドウデータ出力ユニッ
ト2000の出力端子S0から入力レジスタIR(3,
0)の第1フリップフロップ3612にラッチされ、同
時に、画素データb(0,5)がサーチウィンドウデー
タ出力ユニット2000の出力端子S1から入力レジス
タIR(3,2)の第1フリップフロップ3612にラ
ッチされる。
Therefore, as shown in FIG. 28, the pixel data b (0,1) and b (0,3) are respectively stored in the first flip-flop 3612 of the input register IR (3, y).
Are latched by the second flip-flop 3613 of the same input register IR (3, y). At the same time, the pixel data b (0,3) is supplied from the output terminal S0 of the search window data output unit 2000 to the input register IR (3,3).
0), and at the same time, the pixel data b (0,5) is latched from the output terminal S1 of the search window data output unit 2000 to the first flip-flop 3612 of the input register IR (3,2). Is done.

【0249】次に、クロックパルス信号CK1の3クロ
ック目では、各プロセッサエレメントPE(x,y)の
転送方向選択部3600のセレクタ3601の出力端子
Yは、入力端子Aと電気的に接続されており、入力レジ
スタIR(3,1)の転送方向選択部3610のセレク
タ3611の出力端子Yは、入力端子Aと電気的に接続
されており、各第1サイドレジスタSR(x,−1)の
転送方向選択部3620のセレクタ3621の出力端子
Yは、入力端子Aと電気的に接続されおり、各第2サイ
ドレジスタSR(x,3)の転送方向選択部3630の
セレクタ3631の出力端子Yは、入力端子Aと電気的
に接続されいる。
Next, at the third clock of the clock pulse signal CK1, the output terminal Y of the selector 3601 of the transfer direction selector 3600 of each processor element PE (x, y) is electrically connected to the input terminal A. The output terminal Y of the selector 3611 of the transfer direction selector 3610 of the input register IR (3, 1) is electrically connected to the input terminal A, and the output terminal Y of each first side register SR (x, -1) The output terminal Y of the selector 3621 of the transfer direction selector 3620 is electrically connected to the input terminal A, and the output terminal Y of the selector 3631 of the transfer direction selector 3630 of each second side register SR (x, 3) is , And the input terminal A.

【0250】このため、図29に示すように、画素デー
タb(0,1)は、入力レジスタIR(3,0)の第2
フリップフロップ3613から入力レジスタIR(3,
1)の第1フリップフロップ3612にラッチされ、同
時に、画素データb(0,3)は、入力レジスタIR
(3,2)の第2フリップフロップ3613から第2サ
イドレジスタSR(3,3)の第1フリップフロップ3
632にラッチされる。
Therefore, as shown in FIG. 29, the pixel data b (0,1) is stored in the second register IR (3,0).
From the flip-flop 3613, the input register IR (3,
1) is latched by the first flip-flop 3612, and at the same time, the pixel data b (0,3) is input to the input register IR.
From the second flip-flop 3613 of (3,2) to the first flip-flop 3 of the second side register SR (3,3)
632.

【0251】また、同時に、画素データb(0,3)お
よびb(0,5)は、それぞれ入力レジスタIR(3,
y)の第1フリップフロップ3612から同じ入力レジ
スタIR(3,y)の第2フリップフロップ3613に
ラッチされる。同時に、画素データb(0,0)がサー
チウィンドウデータ出力ユニット2000の出力端子S
0から入力レジスタIR(3,0)の第1フリップフロ
ップ3612にラッチされ、同時に、画素データb
(0,2)がサーチウィンドウデータ出力ユニット20
00の出力端子S1から入力レジスタIR(3,2)の
第1フリップフロップ3612にラッチされる。
At the same time, pixel data b (0,3) and b (0,5) are input to input registers IR (3,3), respectively.
The signal is latched from the first flip-flop 3612 of y) to the second flip-flop 3613 of the same input register IR (3, y). At the same time, the pixel data b (0,0) is output from the output terminal S of the search window data output unit 2000.
From 0 to the first flip-flop 3612 of the input register IR (3,0), and at the same time, the pixel data b
(0, 2) is the search window data output unit 20
00 to the first flip-flop 3612 of the input register IR (3,2).

【0252】次に、クロックパルス信号CK1の4クロ
ック目では、各プロセッサエレメントPE(x,y)の
転送方向選択部3600のセレクタ3601、入力レジ
スタIR(3,1)の転送方向選択部3610のセレク
タ3611、各第1サイドレジスタSR(x,y)の転
送方向選択部3620のセレクタ3621のそれぞれの
出力端子Yは、クロックパルス信号CK1の3クロック
目と同様に電気的に接続されている。
Next, at the fourth clock of the clock pulse signal CK1, the selector 3601 of the transfer direction selector 3600 of each processor element PE (x, y) and the transfer direction selector 3610 of the input register IR (3,1). The output terminals Y of the selector 3611 and the selector 3621 of the transfer direction selection unit 3620 of each first side register SR (x, y) are electrically connected similarly to the third clock of the clock pulse signal CK1.

【0253】このため、図30に示すように、画素デー
タb(0,1)は、入力レジスタIR(3,1)の第1
フリップフロップ3612から同じ入力レジスタIR
(3,1)の第2フリップフロップ3613にラッチさ
れ、同時に、画素データb(0,3)は、第2サイドレ
ジスタSR(3,3)の第1フリップフロップ3632
から同じ第2サイドレジスタSR(3,3)の第2フリ
ップフロップ3633にラッチされる。
For this reason, as shown in FIG. 30, the pixel data b (0,1) is stored in the first register IR (3,1).
The same input register IR from flip-flop 3612
The pixel data b (0,3) is latched by the second flip-flop 3613 of (3,1), and at the same time, the first flip-flop 3632 of the second side register SR (3,3).
Are latched by the second flip-flop 3633 of the same second side register SR (3, 3).

【0254】また、同時に、画素データb(0,3)
は、入力レジスタIR(3,0)の第2フリップフロッ
プ3613から入力レジスタIR(3,1)の第1フリ
ップフロップ3612にラッチされ、同時に、画素デー
タb(0,5)は、入力レジスタIR(3,2)の第2
フリップフロップ3613から第2サイドレジスタSR
(3,3)の第1フリップフロップ3632にラッチさ
れ、同時に、画素データb(0,0)およびb(0,
2)は、それぞれ入力レジスタIR(3,y)の第1フ
リップフロップ3612から同じ入力レジスタIR
(3,y)の第2フリップフロップ3613にラッチさ
れる。
At the same time, the pixel data b (0,3)
Is latched from the second flip-flop 3613 of the input register IR (3,0) to the first flip-flop 3612 of the input register IR (3,1), and at the same time, the pixel data b (0,5) is The second of (3,2)
From flip-flop 3613 to second side register SR
(3, 3) is latched by the first flip-flop 3632, and at the same time, the pixel data b (0,0) and b (0,0,
2) are input from the first flip-flop 3612 of the input register IR (3, y) to the same input register IR
(3, y) is latched by the second flip-flop 3613.

【0255】また、同時に、画素データb(0,2)が
サーチウィンドウデータ出力ユニット2000の出力端
子S0から入力レジスタIR(3,0)の第1フリップ
フロップ3612にラッチされ、同時に、画素データb
(0,4)がサーチウィンドウデータ出力ユニット20
00の出力端子S1から入力レジスタIR(3,2)の
第1フリップフロップ3612にラッチされる。
At the same time, the pixel data b (0,2) is latched from the output terminal S0 of the search window data output unit 2000 into the first flip-flop 3612 of the input register IR (3,0).
(0, 4) is the search window data output unit 20
00 to the first flip-flop 3612 of the input register IR (3,2).

【0256】次に、クロックパルス信号CK1の5クロ
ック目では、各プロセッサエレメントPE(x,y)の
転送方向選択部3600のセレクタ3601の出力端子
Yは、入力端子Cと電気的に接続されている。入力レジ
スタIR(3,1)の転送方向選択部3610のセレク
タ3611の出力端子Yは、入力端子Bと電気的に接続
されている。各第1サイドレジスタSR(x,−1)の
転送方向選択部3620のセレクタ3621の出力端子
Yは、入力端子Bと電気的に接続されている。各第2サ
イドレジスタSR(x,3)の転送方向選択部3630
のセレクタ3631の出力端子Yは、入力端子Bと電気
的に接続されている。
Next, at the fifth clock of the clock pulse signal CK1, the output terminal Y of the selector 3601 of the transfer direction selector 3600 of each processor element PE (x, y) is electrically connected to the input terminal C. I have. The output terminal Y of the selector 3611 of the transfer direction selector 3610 of the input register IR (3, 1) is electrically connected to the input terminal B. The output terminal Y of the selector 3621 of the transfer direction selector 3620 of each first side register SR (x, -1) is electrically connected to the input terminal B. Transfer direction selector 3630 of each second side register SR (x, 3)
The output terminal Y of the selector 3631 is electrically connected to the input terminal B.

【0257】このため、図31に示すように、各入力レ
ジスタIR(3,y)の第2フリップフロップ3613
の画素データは、それぞれ4列目の各入力レジスタIR
(3,y)から3列目の同行のプロセッサエレメントP
E(2,y)の第1フリップフロップ3602にラッチ
される。また、同時に、第2サイドレジスタSR(3,
3)の第2フリップフロップ3633の画素データは、
第2サイドレジスタSR(3,3)から第2サイドレジ
スタSR(2,3)の第1フリップフロップ3632に
ラッチされ、同時に、各入力レジスタIR(3,y)の
第1フリップフロップ3612の画素データは同じ入力
レジスタIR(3,y)の第2フリップフロップ361
3にラッチされ、同時に、第2サイドレジスタSR
(3,3)の第1フリップフロップ3632の画素デー
タは同じ第2サイドレジスタSR(3,3)の第2フリ
ップフロップ3633にラッチされる。
Therefore, as shown in FIG. 31, the second flip-flop 3613 of each input register IR (3, y)
Is stored in each input register IR of the fourth column.
Processor element P on the same row in the third column from (3, y)
The data is latched by the first flip-flop 3602 of E (2, y). At the same time, the second side register SR (3,
The pixel data of the second flip-flop 3633 in 3) is
From the second side register SR (3,3), it is latched by the first flip-flop 3632 of the second side register SR (2,3), and at the same time, the pixel of the first flip-flop 3612 of each input register IR (3, y). The data is stored in the second flip-flop 361 of the same input register IR (3, y).
3 and at the same time, the second side register SR
The pixel data of the first flip-flop 3632 of (3, 3) is latched by the second flip-flop 3633 of the same second side register SR (3, 3).

【0258】また、同時に、画素データb(1,0)が
サーチウィンドウデータ出力ユニット2000の出力端
子S0から入力レジスタIR(3,0)の第1フリップ
フロップ3612にラッチされ、同時に、画素データb
(1,2)がサーチウィンドウデータ出力ユニット20
00の出力端子S1から入力レジスタIR(3,2)の
第1フリップフロップ3612にラッチされる。
At the same time, the pixel data b (1,0) is latched from the output terminal S0 of the search window data output unit 2000 to the first flip-flop 3612 of the input register IR (3,0).
(1, 2) is the search window data output unit 20
00 to the first flip-flop 3612 of the input register IR (3,2).

【0259】次に、クロックパルス信号CK1の6クロ
ック目では、各プロセッサエレメントPE(x,y)の
転送方向選択部3600のセレクタ3601、入力レジ
スタIR(3,1)の転送方向選択部3610のセレク
タ3611、各第1サイドレジスタSR(x,y)の転
送方向選択部3620のセレクタ3621のそれぞれの
出力端子Yは、クロックパルス信号CK1の5クロック
目と同様に電気的に接続されている。
Next, at the sixth clock of the clock pulse signal CK1, the selector 3601 of the transfer direction selector 3600 of each processor element PE (x, y) and the transfer direction selector 3610 of the input register IR (3,1). The output terminals Y of the selector 3611 and the selector 3621 of the transfer direction selector 3620 of each first side register SR (x, y) are electrically connected in the same manner as the fifth clock of the clock pulse signal CK1.

【0260】このため、図32に示すように、各プロセ
ッサエレメントPE(x,y)の第1フリップフロップ
3602の画素データは同じプロセッサエレメントPE
(x,y)の第2フリップフロップ3603にラッチさ
れる。また、同時に、第2サイドレジスタSR(2,
3)の第1フリップフロップ3632の画素データは同
じ第2サイドレジスタSR(2,3)の第2フリップフ
ロップ3633にラッチされ、同時に、各入力レジスタ
IR(3,y)の第2フリップフロップ3613の画素
データは、それぞれ4列目の各入力レジスタIR(3,
y)から3列目の同行のプロセッサエレメントPE
(2,y)の第1フリップフロップ3602にラッチさ
れ、同時に、第2サイドレジスタSR(3,3)の第2
フリップフロップ3633の画素データは、第2サイド
レジスタSR(2,3)の第1フリップフロップ363
2にラッチされ、同時に、各入力レジスタIR(3,
y)の第1フリップフロップ3612の画素データは同
じ入力レジスタIR(3,y)の第2フリップフロップ
3613にラッチされる。
Therefore, as shown in FIG. 32, the pixel data of the first flip-flop 3602 of each processor element PE (x, y) is the same as that of the same processor element PE.
(X, y) is latched by the second flip-flop 3603. At the same time, the second side register SR (2,
3) The pixel data of the first flip-flop 3632 is latched by the second flip-flop 3633 of the same second side register SR (2, 3), and at the same time, the second flip-flop 3613 of each input register IR (3, y). Is stored in each input register IR (3, 3
the processor element PE in the same row in the third column from y)
(2, y) is latched by the first flip-flop 3602 and at the same time, the second flip-flop 3602 of the second side register SR (3, 3)
The pixel data of the flip-flop 3633 is stored in the first flip-flop 363 of the second side register SR (2, 3).
2 and at the same time, each input register IR (3,
The pixel data of the first flip-flop 3612 of y) is latched by the second flip-flop 3613 of the same input register IR (3, y).

【0261】また、同時に、画素データb(1,2)が
サーチウィンドウデータ出力ユニット2000の出力端
子S0から入力レジスタIR(3,0)の第1フリップ
フロップ3612にラッチされ、同時に、画素データb
(1,4)がサーチウィンドウデータ出力ユニット20
00の出力端子S1から入力レジスタIR(3,2)の
第1フリップフロップ3612にラッチされる。
At the same time, the pixel data b (1,2) is latched from the output terminal S0 of the search window data output unit 2000 into the first flip-flop 3612 of the input register IR (3,0).
(1, 4) is the search window data output unit 20
00 to the first flip-flop 3612 of the input register IR (3,2).

【0262】次に、クロックパルス信号CK1の7クロ
ック目では、各プロセッサエレメントPE(x,y)の
転送方向選択部3600のセレクタ3601の出力端子
Yは、入力端子Bと電気的に接続されている。入力レジ
スタIR(3,1)の転送方向選択部3610のセレク
タ3611の出力端子Yは、入力端子Bと電気的に接続
されている。各第1サイドレジスタSR(x,−1)の
転送方向選択部3620のセレクタ3621の出力端子
Yは、入力端子Aと電気的に接続されている。各第2サ
イドレジスタSR(x,3)の転送方向選択部3630
のセレクタ3631の出力端子Yは、入力端子Aと電気
的に接続されている。
Next, at the seventh clock of the clock pulse signal CK1, the output terminal Y of the selector 3601 of the transfer direction selector 3600 of each processor element PE (x, y) is electrically connected to the input terminal B. I have. The output terminal Y of the selector 3611 of the transfer direction selector 3610 of the input register IR (3, 1) is electrically connected to the input terminal B. The output terminal Y of the selector 3621 of the transfer direction selector 3620 of each first side register SR (x, -1) is electrically connected to the input terminal A. Transfer direction selector 3630 of each second side register SR (x, 3)
The output terminal Y of the selector 3631 is electrically connected to the input terminal A.

【0263】このため、図33に示すように、各プロセ
ッサエレメントPE(x,y)の第2フリップフロップ
3603の画素データはプロセッサエレメントPE
(x,y−1)の第1フリップフロップ3602または
第1サイドレジスタSR(x,−1)の第1フリップフ
ロップ3622にラッチされる。また、同時に、第2サ
イドレジスタSR(2,3)の第2フリップフロップ3
633の画素データはプロセッサエレメントPE(2,
2)の第1フリップフロップ3602にラッチされ、同
時に、各プロセッサエレメントPE(x,y)の第1フ
リップフロップ3602の画素データは同じプロセッサ
エレメントPE(x,y)の第2フリップフロップ36
03にラッチされ、同時に、第2サイドレジスタSR
(2,3)の第1フリップフロップ3632の画素デー
タは同じ第2サイドレジスタSR(2,3)の第2フリ
ップフロップ3633にラッチされ、同時に、各入力レ
ジスタIR(3,y)の第2フリップフロップ3613
の画素データは、それぞれ入力レジスタIR(3,y−
1)の第1フリップフロップ3612または第1サイド
レジスタSR(3,−1)の第1フリップフロップ36
22にラッチされ、同時に、各入力レジスタIR(3,
y)の第1フリップフロップ3612の画素データは同
じ入力レジスタIR(3,y)の第2フリップフロップ
3613にラッチされる。
Therefore, as shown in FIG. 33, the pixel data of the second flip-flop 3603 of each processor element PE (x, y) is
The first flip-flop 3602 of (x, y-1) or the first flip-flop 3622 of the first side register SR (x, -1) is latched. At the same time, the second flip-flop 3 of the second side register SR (2, 3)
The pixel data of 633 is the processor element PE (2,
2), the pixel data of the first flip-flop 3602 of each processor element PE (x, y) is simultaneously latched by the second flip-flop 362 of the same processor element PE (x, y).
03, and at the same time, the second side register SR
The pixel data of the first flip-flop 3632 of (2,3) is latched by the second flip-flop 3633 of the same second side register SR (2,3), and at the same time, the second data of each input register IR (3, y). Flip-flop 3613
Pixel data are input registers IR (3, y-
1) the first flip-flop 3612 or the first flip-flop 36 of the first side register SR (3, -1)
22 and at the same time, each input register IR (3,
The pixel data of the first flip-flop 3612 of y) is latched by the second flip-flop 3613 of the same input register IR (3, y).

【0264】また、同時に、画素データb(1,1)が
サーチウィンドウデータ出力ユニット2000の出力端
子S0から入力レジスタIR(3,0)の第1フリップ
フロップ3612にラッチされ、同時に、画素データb
(1,3)がサーチウィンドウデータ出力ユニット20
00の出力端子S1から入力レジスタIR(3,2)の
第1フリップフロップ3612にラッチされる。
At the same time, the pixel data b (1,1) is latched from the output terminal S0 of the search window data output unit 2000 into the first flip-flop 3612 of the input register IR (3,0).
(1, 3) is the search window data output unit 20
00 to the first flip-flop 3612 of the input register IR (3,2).

【0265】次に、クロックパルス信号CK1の8クロ
ック目では、各プロセッサエレメントPE(x,y)の
転送方向選択部3600のセレクタ3601、入力レジ
スタIR(3,1)の転送方向選択部3610のセレク
タ3611、各第1サイドレジスタSR(x,y)の転
送方向選択部3620のセレクタ3621のそれぞれの
出力端子Yは、クロックパルス信号CK1の7クロック
目と同様に電気的に接続されている。
Next, at the eighth clock of the clock pulse signal CK1, the selector 3601 of the transfer direction selector 3600 of each processor element PE (x, y) and the transfer direction selector 3610 of the input register IR (3, 1). The output terminals Y of the selector 3611 and the selector 3621 of the transfer direction selector 3620 of each first side register SR (x, y) are electrically connected in the same manner as the seventh clock of the clock pulse signal CK1.

【0266】このため、図33に示すように、各プロセ
ッサエレメントPE(x,y)の第2フリップフロップ
3603の画素データはプロセッサエレメントPE
(x,y−1)の第1フリップフロップ3602または
第1サイドレジスタSR(x,−1)の第1フリップフ
ロップ3622にラッチされる。また、同時に、第2サ
イドレジスタSR(2,3)の第2フリップフロップ3
633の画素データはプロセッサエレメントPE(2,
2)の第1フリップフロップ3602にラッチされ、同
時に、各プロセッサエレメントPE(x,y)の第1フ
リップフロップ3602の画素データは同じプロセッサ
エレメントPE(x,y)の第2フリップフロップ36
03にラッチされ、同時に、第1サイドレジスタSR
(x,−1)の第1フリップフロップ3622の画素デ
ータは同じ第1サイドレジスタSR(x,−1)の第2
フリップフロップ3623にラッチされ、同時に、各入
力レジスタIR(3,y)の第2フリップフロップ36
13の画素データは、それぞれ入力レジスタIR(3,
y)から入力レジスタIR(3,y−1)の第1フリッ
プフロップ3612または第1サイドレジスタSR
(3,y−1)の第1フリップフロップ3622にラッ
チされ、同時に、各入力レジスタIR(3,y)の第1
フリップフロップ3612の画素データは同じ入力レジ
スタIR(3,y)の第2フリップフロップ3613に
ラッチされる。
Therefore, as shown in FIG. 33, the pixel data of the second flip-flop 3603 of each processor element PE (x, y) is
The first flip-flop 3602 of (x, y-1) or the first flip-flop 3622 of the first side register SR (x, -1) is latched. At the same time, the second flip-flop 3 of the second side register SR (2, 3)
The pixel data of 633 is the processor element PE (2,
2), the pixel data of the first flip-flop 3602 of each processor element PE (x, y) is simultaneously latched by the second flip-flop 362 of the same processor element PE (x, y).
03, and at the same time, the first side register SR
The pixel data of the first flip-flop 3622 of (x, -1) is stored in the second flip-flop 3622 of the same first side register SR (x, -1).
Latched by the flip-flop 3623, at the same time, the second flip-flop 36 of each input register IR (3, y)
Thirteen pixel data are input to the input registers IR (3,
y) to the first flip-flop 3612 of the input register IR (3, y-1) or the first side register SR
(3, y-1) is latched by the first flip-flop 3622, and at the same time, the first flip-flop of each input register IR (3, y) is
The pixel data of the flip-flop 3612 is latched by the second flip-flop 3613 of the same input register IR (3, y).

【0267】また、同時に、画素データb(1,3)が
サーチウィンドウデータ出力ユニット2000の出力端
子S0から入力レジスタIR(3,0)の第1フリップ
フロップ3612にラッチされ、同時に、画素データb
(1,5)がサーチウィンドウデータ出力ユニット20
00の出力端子S1から入力レジスタIR(3,2)の
第1フリップフロップ3612にラッチされる。
At the same time, the pixel data b (1, 3) is latched from the output terminal S0 of the search window data output unit 2000 into the first flip-flop 3612 of the input register IR (3, 0).
(1, 5) is the search window data output unit 20
00 to the first flip-flop 3612 of the input register IR (3,2).

【0268】すなわち、クロックパルス信号CK1の2
クロック毎に、各プロセッサエレメントPE(x,y)
のセレクタ3601の出力端子Yは、信号SU,SLに
基づいて入力端子C、入力端子A、入力端子C、入力端
子Bの順に順次に切り換えられる。同様に、入力レジス
タIR(3,1)の転送方向選択部3610のセレクタ
3611の出力端子Yは、入力端子A、入力端子A、入
力端子B、入力端子Bの順に順次切換えられる。各第1
サイドレジスタSR(x,−1)の転送方向選択部36
20のセレクタ3621の出力端子Yは、入力端子B、
入力端子A、入力端子B、入力端子Aの順に順次切換え
られ、各第2サイドレジスタSR(x,3)の転送方向
選択部3630のセレクタ3631の出力端子Yは、入
力端子B、入力端子A、入力端子B、入力端子Aの順に
順次切換えられる。
That is, 2 of the clock pulse signal CK1
For each clock, each processor element PE (x, y)
The output terminal Y of the selector 3601 is sequentially switched in the order of the input terminal C, the input terminal A, the input terminal C, and the input terminal B based on the signals SU and SL. Similarly, the output terminal Y of the selector 3611 of the transfer direction selection unit 3610 of the input register IR (3, 1) is sequentially switched in the order of the input terminal A, the input terminal A, the input terminal B, and the input terminal B. Each first
Transfer direction selector 36 of side register SR (x, -1)
The output terminal Y of the 20 selectors 3621 is the input terminal B,
The input terminal A, the input terminal B, and the input terminal A are sequentially switched in this order. , Input terminal B, and input terminal A are sequentially switched.

【0269】このため、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)に保持されたす
べての画素データは、以降クロックパルス信号CK1の
2クロック毎に、図12における左方向、下方向、左方
向、上方向の各プロセッサエレメントPEまたは各レジ
スタに順次に転送される。また、クロックパルス信号の
それぞれのパルスに同期してサーチウィンドウ400の
画素データが、サーチウィンドウデータ出力ユニット2
000から入力レジスタIR(3,0),IR(3,
2)にラッチされる。
For this reason, each processor element PE
(X, y) and all the pixel data held in each register (x, y) are hereinafter referred to as left, lower, left, and upper in FIG. 12 every two clocks of the clock pulse signal CK1. The data is sequentially transferred to the processor element PE or each register. Further, the pixel data of the search window 400 is synchronized with each pulse of the clock pulse signal by the search window data output unit 2.
000 to the input registers IR (3,0), IR (3,3)
Latched in 2).

【0270】次に、クロックパルス信号CK1の14ク
ロック目では、図35に示すように、1列目の各プロセ
ッサエレメントPE(x,y)および各レジスタ(x,
y)のそれぞれの第2フリップフロップ3603,36
13,3623,3633に初めて上側サーチウィンド
ウ410の画素データb(x,y)がラッチされ、同時
に、現画像ブロックデータ出力ユニット1000から各
プロセッサエレメントPE(x,y)に画素データa
(0,0)が転送される。
Next, at the 14th clock of the clock pulse signal CK1, as shown in FIG. 35, each processor element PE (x, y) and each register (x, y) in the first column
y) each second flip-flop 3603, 36
The pixel data b (x, y) of the upper search window 410 is latched for the first time at 13, 3623, 3633. At the same time, the pixel data a from the current image block data output unit 1000 to each processor element PE (x, y).
(0,0) is transferred.

【0271】このとき、各プロセッサエレメントPE
(x,y)では、以下の演算処理が行われる。各プロセ
ッサエレメントPE(x,y)では、まず、画素データ
b(x,y)が第2フリップフロップ3603にラッチ
され、さらに、ディストーション算出部3700の減算
器3701の入力端子Aに入力される。一方、画素デー
タa(0,0)が現画像ブロックデータ出力ユニット1
000から減算器3701の入力端子Bに入力される。
At this time, each processor element PE
In (x, y), the following arithmetic processing is performed. In each processor element PE (x, y), first, the pixel data b (x, y) is latched by the second flip-flop 3603 and further input to the input terminal A of the subtractor 3701 of the distortion calculator 3700. On the other hand, the pixel data a (0,0) is the current image block data output unit 1
000 to the input terminal B of the subtractor 3701.

【0272】次いで、減算器3701では、 b(x,y)−a(0,0) が算出され、さらに、正数変換器3702により正数に
変換され、加算器3704の入力端子Aに入力される。
一方、加算器3704の入力端子Bには、論理積演算器
3703の演算結果が入力されるが、クロックパルス信
号CK1の14クロック目のダウンエッジに同期して立
ち上ったパルス信号LD1が、論理積演算器3703の
入力端子Aを通して入力され、論理積演算器3703の
出力端子Yから0を表すデータが出力されるので、加算
器3704の入力端子Bに0を表すデータが入力され
る。次いで、加算器3704で |b(x,y)−a(0,0)| が算出される。
Next, b (x, y) −a (0,0) is calculated in the subtractor 3701, further converted to a positive number by the positive number converter 3702, and input to the input terminal A of the adder 3704. Is done.
On the other hand, the operation result of the AND operation unit 3703 is input to the input terminal B of the adder 3704, and the pulse signal LD1 rising in synchronization with the 14th clock falling edge of the clock pulse signal CK1 is ANDed. Data representing 0 is output from the input terminal A of the arithmetic unit 3703 and data representing 0 is output from the output terminal Y of the AND operator 3703. Data representing 0 is input to the input terminal B of the adder 3704. Next, | b (x, y) −a (0, 0) | is calculated by the adder 3704.

【0273】次に、クロックパルス信号CK1の15ク
ロック目では、各プロセッサエレメントPE(x,y)
の加算器3704で算出された |b(x,y)−a(0,0)| が第1フリップフロップ3705にラッチされる。ま
た、図36に示すように、1列目の各プロセッサエレメ
ントPE(x,y)および各レジスタ(x,y)のそれ
ぞれの第2フリップフロップ3603,3613,36
23,3633に初めて下側サーチウィンドウ420の
画素データb(x,y+2)がラッチされ、同時に、現
画像ブロックデータ出力ユニット1000から各プロセ
ッサエレメントPE(x,y)に画素データa(0,
2)が転送される。
Next, at the 15th clock of the clock pulse signal CK1, each processor element PE (x, y)
| B (x, y) −a (0,0) | calculated by the adder 3704 of the above is latched by the first flip-flop 3705. Also, as shown in FIG. 36, the second flip-flops 3603, 3613, and 36 of each processor element PE (x, y) and each register (x, y) in the first column.
23, 3633, the pixel data b (x, y + 2) of the lower search window 420 is latched for the first time, and at the same time, the pixel data a (0,
2) is transferred.

【0274】このとき、各プロセッサエレメントPE
(x,y)では、以下の演算処理が行われる。各プロセ
ッサエレメントPE(x,y)では、まず、画素データ
b(x,y+2)が第2フリップフロップ3603にラ
ッチされ、さらに、ディストーション算出部3700の
減算器3701の入力端子Aに入力される。一方、画素
データa(0,2)が現画像ブロックデータ出力ユニッ
ト1000から減算器3701の入力端子Bに入力され
る。
At this time, each processor element PE
In (x, y), the following arithmetic processing is performed. In each processor element PE (x, y), first, the pixel data b (x, y + 2) is latched by the second flip-flop 3603 and further input to the input terminal A of the subtractor 3701 of the distortion calculator 3700. On the other hand, the pixel data a (0, 2) is input from the current image block data output unit 1000 to the input terminal B of the subtractor 3701.

【0275】次いで、減算器3701では、 b(x,y+2)−a(0,2) が算出され、さらに、正数変換器3702により正数に
変換され、加算器3704の入力端子Aに入力される。
一方、加算器3704の入力端子Bには、論理積演算器
3703の演算結果が入力され、ハイレベルを示すパル
ス信号LD1が論理積演算器3703の入力端子Aを通
して入力され、出力端子Yから0を表すデータが出力さ
れており、加算器3704の入力端子Bに0を表すデー
タが入力される。次いで、加算器3704で |b(x,y+2)−a(0,2)| が算出される。
Next, b (x, y + 2) −a (0, 2) is calculated in the subtractor 3701, further converted to a positive number by the positive number converter 3702, and input to the input terminal A of the adder 3704. Is done.
On the other hand, to the input terminal B of the adder 3704, the operation result of the AND operation unit 3703 is input, a pulse signal LD1 indicating a high level is input through the input terminal A of the AND operation unit 3703, and 0 is output from the output terminal Y. Is output, and data indicating 0 is input to the input terminal B of the adder 3704. Next, | b (x, y + 2) −a (0, 2) | is calculated by the adder 3704.

【0276】次に、クロックパルス信号CK1の16ク
ロック目では、 |b(x,y)−a(0,0)| が各プロセッサエレメントPE(x,y)の第1フリッ
プフロップ3705から第2フリップフロップ3706
にラッチされ、加算器3704で算出された |b(x,y+2)−a(0,2)| が第1フリップフロップ3705にラッチされ、また、
図37に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)のそれぞれ第2
フリップフロップ3603,3613,3623,36
33に画素データb(x,y+1)がラッチされ、同時
に、現画像ブロックデータ出力ユニット1000から各
プロセッサエレメントPE(x,y)に画素データa
(0,1)が転送される。
Next, at the 16th clock of the clock pulse signal CK1, | b (x, y) -a (0,0) | Flip-flop 3706
| B (x, y + 2) −a (0, 2) | calculated by the adder 3704 is latched by the first flip-flop 3705, and
As shown in FIG. 37, each processor element PE
(X, y) and the second of each register (x, y)
Flip-flops 3603, 3613, 3623, 36
33, the pixel data b (x, y + 1) is latched. At the same time, the pixel data a (x, y) is output from the current image block data output unit 1000 to each processor element PE (x, y).
(0,1) is transferred.

【0277】このとき、各プロセッサエレメントPE
(x,y)では、まず、画素データb(x,y+1)が
第2フリップフロップ3603にラッチされ、次いで、
画素データb(x,y+1)は、ディストーション算出
部3700の減算器3701の入力端子Aに入力され
る。一方、画素データa(0,1)が現画像ブロックデ
ータ出力ユニット1000から減算器3701の入力端
子Bに入力される。
At this time, each processor element PE
In (x, y), first, the pixel data b (x, y + 1) is latched by the second flip-flop 3603, and then,
The pixel data b (x, y + 1) is input to the input terminal A of the subtractor 3701 of the distortion calculator 3700. On the other hand, the pixel data a (0, 1) is input from the current image block data output unit 1000 to the input terminal B of the subtractor 3701.

【0278】次いで、減算器3701では、 b(x,y+1)−a(0,1) が算出され、さらに、正数変換器3702により正数に
変換され、加算器3704の入力端子Aに入力される。
一方、加算器3704の入力端子Bには、論理積演算器
3703の演算結果が入力されるが、論理積演算器37
03では、パルス信号LD1が1から0にダウンするた
め、第2フリップフロップ3706にラッチされた |b(x,y)−a(0,0)| が入力端子Bを通して出力端子Yから出力され、次い
で、加算器3704で、 |b(x,y)−a(0,0)|+|b(x,y+1)
−a(0,1)| が算出される。
Next, in the subtractor 3701, b (x, y + 1) -a (0, 1) is calculated, further converted to a positive number by the positive number converter 3702, and input to the input terminal A of the adder 3704. Is done.
On the other hand, the operation result of the AND operation unit 3703 is input to the input terminal B of the adder 3704.
At 03, since the pulse signal LD1 falls from 1 to 0, | b (x, y) -a (0, 0) | latched by the second flip-flop 3706 is output from the output terminal Y through the input terminal B. Then, in the adder 3704, | b (x, y) -a (0, 0) | + | b (x, y + 1)
−a (0, 1) | is calculated.

【0279】次に、クロックパルス信号CK1の17ク
ロック目では、 |b(x,y+2)−a(0,2)| が各プロセッサエレメントPE(x,y)の第1フリッ
プフロップ3705から第2フリップフロップ3706
にラッチされ、加算器3704で算出された |b(x,y)−a(0,0)|+|b(x,y+1)
−a(0,1)| が第1フリップフロップ3705にラッチされ、また、
図38に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)のそれぞれ第2
フリップフロップ3603,3613,3623,36
33に画素データb(x,y+3)がラッチされ、同時
に、現画像ブロックデータ出力ユニット1000から各
プロセッサエレメントPE(x,y)に画素データa
(0,3)が転送される。
Next, at the 17th clock of the clock pulse signal CK1, | b (x, y + 2) -a (0,2) | is output from the first flip-flop 3705 of each processor element PE (x, y) to the second. Flip-flop 3706
| B (x, y) −a (0, 0) | + | b (x, y + 1) calculated by the adder 3704
−a (0,1) | is latched in the first flip-flop 3705, and
As shown in FIG. 38, each processor element PE
(X, y) and the second of each register (x, y)
Flip-flops 3603, 3613, 3623, 36
33, the pixel data b (x, y + 3) is latched. At the same time, the pixel data a (x, y) is output from the current image block data output unit 1000 to each processor element PE (x, y).
(0,3) is transferred.

【0280】このとき、各プロセッサエレメントPE
(x,y)では、まず、画素データb(x,y+3)が
第2フリップフロップ3603にラッチされ、次いで、
画素データb(x,y+3)は、ディストーション算出
部3700の減算器3701の入力端子Aに入力され
る。一方、画素データa(0,3)が現画像ブロックデ
ータ出力ユニット1000から減算器3701の入力端
子Bに入力される。
At this time, each processor element PE
In (x, y), first, the pixel data b (x, y + 3) is latched by the second flip-flop 3603, and then,
The pixel data b (x, y + 3) is input to the input terminal A of the subtractor 3701 of the distortion calculator 3700. On the other hand, the pixel data a (0,3) is input from the current image block data output unit 1000 to the input terminal B of the subtractor 3701.

【0281】次いで、減算器3701では、 b(x,y+3)−a(0,3) が算出され、さらに、正数変換器3702により正数に
変換され、加算器3704の入力端子Aに入力される。
一方、加算器3704の入力端子Bには、論理積演算器
3703の演算結果が入力されるが、論理積演算器37
03では、すでにパルス信号LD1が0であるため、第
2フリップフロップ3706にラッチされた |b(x,y+2)−a(0,2)| が入力端子Bを通して出力端子Yから出力され、次い
で、加算器3704で、 |b(x,y+2)−a(0,2)|+|b(x,y+
3)−a(0,3)| が算出される。
Next, b (x, y + 3) −a (0, 3) is calculated in the subtractor 3701, further converted to a positive number by the positive number converter 3702, and input to the input terminal A of the adder 3704. Is done.
On the other hand, the operation result of the AND operation unit 3703 is input to the input terminal B of the adder 3704.
03, since the pulse signal LD1 is already 0, | b (x, y + 2) -a (0, 2) | latched by the second flip-flop 3706 is output from the output terminal Y through the input terminal B, and then | B (x, y + 2) −a (0, 2) | + | b (x, y +
3) -a (0,3) | is calculated.

【0282】次に、クロックパルス信号CK1の18ク
ロック目では、 |b(x,y)−a(0,0)|+|b(x,y+1)
−a(0,1)| が各プロセッサエレメントPE(x,y)の第1フリッ
プフロップ3705から第2フリップフロップ3706
にラッチされ、加算器3704で算出された |b(x,y+2)−a(0,2)|+|b(x,y+
3)−a(0,3)| が第1フリップフロップ3705にラッチされ、また、
図39に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)の第2フリップ
フロップ3603,3613,3623,3633に画
素データb(x+1,y+1)がラッチされ、同時に、
現画像ブロックデータ出力ユニット1000から各プロ
セッサエレメントPE(x,y)に画素データa(1,
1)が転送される。
Next, at the 18th clock of the clock pulse signal CK1, | b (x, y) -a (0,0) | + | b (x, y + 1)
−a (0, 1) | is the first flip-flop 3705 to the second flip-flop 3706 of each processor element PE (x, y).
| B (x, y + 2) −a (0, 2) | + | b (x, y +
3) -a (0,3) | is latched in the first flip-flop 3705, and
As shown in FIG. 39, each processor element PE
The pixel data b (x + 1, y + 1) is latched in (x, y) and the second flip-flops 3603, 3613, 3623, 3633 of each register (x, y), and at the same time,
From the current image block data output unit 1000 to each processor element PE (x, y), pixel data a (1,
1) is transferred.

【0283】このとき、各プロセッサエレメントPE
(x,y)では、画素データb(x+1,y+1)が第
2フリップフロップ3603にラッチされ、画素データ
a(1,1)が現画像ブロックデータ出力ユニット10
00から減算器3701の入力端子Bに入力され、この
結果、 |b(x,y)−a(0,0)|+|b(x,y+1)
−a(0,1)|+|b(x+1,y+1)−a(1,
1)| が算出される。
At this time, each processor element PE
In (x, y), the pixel data b (x + 1, y + 1) is latched by the second flip-flop 3603, and the pixel data a (1, 1) is output to the current image block data output unit 10.
00 to the input terminal B of the subtractor 3701. As a result, | b (x, y) −a (0, 0) | + | b (x, y + 1)
−a (0,1) | + | b (x + 1, y + 1) −a (1,
1) | is calculated.

【0284】次に、クロックパルス信号CK1の19ク
ロック目では、 |b(x,y+2)−a(0,2)|+|b(x,y+
3)−a(0,3)| が各プロセッサエレメントPE(x,y)の第1フリッ
プフロップ3705から第2フリップフロップ3706
にラッチされ、加算器3704で算出された |b(x,y)−a(0,0)|+|b(x,y+1)
−a(0,1)|+|b(x+1,y+1)−a(1,
1)| が第1フリップフロップ3705にラッチされ、また、
図40に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)の第2フリップ
フロップ3603,3613,3623,3633に画
素データb(x+1,y+3)がラッチされ、同時に、
現画像ブロックデータ出力ユニット1000から各プロ
セッサエレメントPE(x,y)に画素データa(1,
3)が転送される。
Next, at the 19th clock of the clock pulse signal CK1, | b (x, y + 2) -a (0, 2) | + | b (x, y +
3) -a (0,3) | is converted from the first flip-flop 3705 to the second flip-flop 3706 of each processor element PE (x, y).
| B (x, y) −a (0, 0) | + | b (x, y + 1) calculated by the adder 3704
−a (0,1) | + | b (x + 1, y + 1) −a (1,
1) | is latched in the first flip-flop 3705, and
As shown in FIG. 40, each processor element PE
The pixel data b (x + 1, y + 3) is latched in (x, y) and the second flip-flops 3603, 3613, 3623, 3633 of each register (x, y), and at the same time,
From the current image block data output unit 1000 to each processor element PE (x, y), pixel data a (1,
3) is transferred.

【0285】このとき、各プロセッサエレメントPE
(x,y)では、画素データa(x+1,y+3)が第
2フリップフロップ3603にラッチされ、画素データ
a(1,3)が現画像ブロックデータ出力ユニット10
00から減算器3701の入力端子Bに入力され、この
結果、 |b(x,y+2)−a(0,2)|+|b(x,y+
3)−a(0,3)|+|b(x+1,y+3)−a
(1,3)| が算出される。
At this time, each processor element PE
In (x, y), the pixel data a (x + 1, y + 3) is latched by the second flip-flop 3603, and the pixel data a (1, 3) is output to the current image block data output unit 10
00 to the input terminal B of the subtractor 3701. As a result, | b (x, y + 2) −a (0, 2) | + | b (x, y +
3) -a (0,3) | + | b (x + 1, y + 3) -a
(1,3) | is calculated.

【0286】次に、クロックパルス信号CK1の20ク
ロック目では、 |b(x,y)−a(0,0)|+|b(x,y+1)
−a(0,1)|+|b(x+1,y+1)−a(1,
1)| が各プロセッサエレメントPE(x,y)の第1フリッ
プフロップ3705から第2フリップフロップ3706
にラッチされ、加算器3704で算出された |b(x,y+2)−a(0,2)|+|b(x,y+
3)−a(0,3)|+|b(x+1,y+3)−a
(1,3)| が第1フリップフロップ3705にラッチされ、また、
図41に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)の第2フリップ
フロップ3603,3613,3623,3633に画
素データb(x+1,y)がラッチされ、同時に、現画
像ブロックデータ出力ユニット1000から各プロセッ
サエレメントPE(x,y)に画素データa(1,0)
が転送される。
Next, at the 20th clock of the clock pulse signal CK1, | b (x, y) -a (0,0) | + | b (x, y + 1)
−a (0,1) | + | b (x + 1, y + 1) −a (1,
1) | is the first flip-flop 3705 to the second flip-flop 3706 of each processor element PE (x, y).
| B (x, y + 2) −a (0, 2) | + | b (x, y +
3) -a (0,3) | + | b (x + 1, y + 3) -a
(1,3) | is latched in the first flip-flop 3705, and
As shown in FIG. 41, each processor element PE
(X, y) and the pixel data b (x + 1, y) are latched in the second flip-flops 3603, 3613, 3623, 3633 of each register (x, y). Pixel data a (1,0) is added to element PE (x, y).
Is transferred.

【0287】このとき、各プロセッサエレメントPE
(x,y)では、画素データb(x+1,y)が第2フ
リップフロップ3603にラッチされ、画素データa
(0,1)が現画像ブロックデータ出力ユニット100
0から減算器3701の入力端子Bに入力され、この結
果、 |b(x,y)−a(0,0)|+|b(x,y+1)
−a(0,1)|+|b(x+1,y+1)−a(1,
1)|+|b(x+1,y)−a(1,0)| が算出される。
At this time, each processor element PE
At (x, y), the pixel data b (x + 1, y) is latched by the second flip-flop 3603 and the pixel data a
(0, 1) is the current image block data output unit 100
0 is input to the input terminal B of the subtractor 3701. As a result, | b (x, y) −a (0, 0) | + | b (x, y + 1)
−a (0,1) | + | b (x + 1, y + 1) −a (1,
1) | + | b (x + 1, y) -a (1, 0) | is calculated.

【0288】次に、クロックパルス信号CK1の21ク
ロック目では、 |b(x,y+2)−a(0,2)|+|b(x,y+
3)−a(0,3)|+|b(x+1,y+3)−a
(1,3)| が第1フリップフロップ3705から第2フリップフロ
ップ3706にラッチされ、加算器3704で算出され
た |b(x,y)−a(0,0)|+|b(x,y+1)
−a(0,1)|+|b(x+1,y+1)−a(1,
1)|+|b(x+1,y)−a(1,0)| が第1フリップフロップ3705にラッチされ、また、
図42に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)の第2フリップ
フロップ3603,3613,3623,3633に画
素データb(x+1,y+2)がラッチされ、同時に、
現画像ブロックデータ出力ユニット1000から各プロ
セッサエレメントPE(x,y)に画素データa(1,
2)が転送される。
Next, at the 21st clock of the clock pulse signal CK1, | b (x, y + 2) -a (0, 2) | + | b (x, y +
3) -a (0,3) | + | b (x + 1, y + 3) -a
(1,3) | is latched from the first flip-flop 3705 to the second flip-flop 3706, and | b (x, y) -a (0,0) | + | b (x, y + 1)
−a (0,1) | + | b (x + 1, y + 1) −a (1,
1) | + | b (x + 1, y) -a (1,0) | is latched in the first flip-flop 3705, and
As shown in FIG. 42, each processor element PE
The pixel data b (x + 1, y + 2) is latched by (x, y) and the second flip-flops 3603, 3613, 3623, 3633 of each register (x, y), and at the same time,
From the current image block data output unit 1000 to each processor element PE (x, y), pixel data a (1,
2) is transferred.

【0289】このとき、各プロセッサエレメントPE
(x,y)では、画素データb(x+1,y+2)が第
2フリップフロップ3603にラッチされ、画素データ
a(1,2)が現画像ブロックデータ出力ユニット10
00から減算器3701の入力端子Bに入力され、この
結果、 |b(x,y+2)−a(0,2)|+|b(x,y+
3)−a(0,3)|+|b(x+1,y+3)−a
(1,3)|+|b(x+1,y+2)−a(1,2)
| が算出される。
At this time, each processor element PE
In (x, y), the pixel data b (x + 1, y + 2) is latched by the second flip-flop 3603, and the pixel data a (1, 2) is output to the current image block data output unit 10
00 to the input terminal B of the subtractor 3701. As a result, | b (x, y + 2) −a (0, 2) | + | b (x, y +
3) -a (0,3) | + | b (x + 1, y + 3) -a
(1,3) | + | b (x + 1, y + 2) -a (1,2)
| Is calculated.

【0290】すなわち、各プロセッサエレメントPE
(x,y)では、それぞれのプロセッサエレメントPE
(x,y)と位置的に対応する第1セグメント候補ブロ
ックと現画像第1セグメントブロックとの間の第1セグ
メントブロックディストーションが求められ、次いで、
クロックパルス信号CK1の1クロック後に、それぞれ
のプロセッサエレメントPE(x,y)と位置的に対応
する第2セグメント候補ブロックと現画像第2セグメン
トブロックとの間の第2セグメントブロックディストー
ションが求められたことになる。
That is, each processor element PE
In (x, y), each processor element PE
A first segment block distortion between a first segment candidate block positionally corresponding to (x, y) and the current image first segment block is determined, and then
One clock after the clock pulse signal CK1, a second segment block distortion between the current image second segment block and the second segment candidate block that physically corresponds to each processor element PE (x, y) is obtained. Will be.

【0291】以下、各プロセッサエレメントPE(x,
y)で算出された第1セグメントブロックディストーシ
ョンをD1(x,y)で表し、各プロセッサエレメント
PE(x,y)で算出された第2セグメントブロックデ
ィストーションをD2(x,y)で表すことにする。次
に、クロックパルス信号CK1の22クロック目では、
パルス信号CK1の立ち上りに同期して各プロセッサエ
レメントPE(x,y)の第1フリップフロップ370
5に保持されたそれぞれのD1(x,y)が第2フリッ
プフロップ3706にラッチされる。また、各プロセッ
サエレメントPE(x,y)の加算器3704で算出さ
れたそれぞれのD2(x,y)が第1フリップフロップ
3705にラッチされる。また、クロックパルス信号C
K1の22クロック目のダウンエッジに同期してパルス
信号LD1が立ち上り、各プロセッサエレメントPE
(0,0)のディストーション転送部3800のセレク
タ3801の入力端子Bと出力端子Yが電気的に接続さ
れる。
Hereinafter, each processor element PE (x,
The first segment block distortion calculated by y) is represented by D1 (x, y), and the second segment block distortion calculated by each processor element PE (x, y) is represented by D2 (x, y). I do. Next, at the 22nd clock of the clock pulse signal CK1,
The first flip-flop 370 of each processor element PE (x, y) is synchronized with the rise of the pulse signal CK1.
5 is latched by the second flip-flop 3706. Further, each D2 (x, y) calculated by the adder 3704 of each processor element PE (x, y) is latched by the first flip-flop 3705. The clock pulse signal C
The pulse signal LD1 rises in synchronization with the falling edge of the 22nd clock of K1, and each processor element PE
The input terminal B and the output terminal Y of the selector 3801 of the (0, 0) distortion transfer unit 3800 are electrically connected.

【0292】次に、クロックパルス信号CK1の23ク
ロック目では、パルス信号CK2の立ち上りに同期して
各プロセッサエレメントPE(x,y)の第2フリップ
フロップ3706に保持されたそれぞれのD1(x,
y)がディストーション転送部3800の第1フリップ
フロップ3802にラッチされる。また、各プロセッサ
エレメントPE(x,y)の第1フリップフロップ37
05に保持されたそれぞれのD2(x,y)が第2フリ
ップフロップ3706にラッチされる。
Next, at the 23rd clock of the clock pulse signal CK1, each of the D1 (x, x) held in the second flip-flop 3706 of each processor element PE (x, y) in synchronization with the rise of the pulse signal CK2.
y) is latched in the first flip-flop 3802 of the distortion transfer unit 3800. Also, the first flip-flop 37 of each processor element PE (x, y)
Each D2 (x, y) held at 05 is latched by the second flip-flop 3706.

【0293】次に、クロックパルス信号CK1の24ク
ロック目では、パルス信号CK2に同期してD1(0,
0)が、プロセッサエレメントPE(0,0)の第1フ
リップフロップ3802から第2フリップフロップ38
03にラッチされ、出力端子Doを通してセグメントブ
ロック特定ユニット4000の比較器4101の入力端
子A0およびフィールドブロックディストーション算出
ユニット5000の入力端子A0に出力される。
Next, at the 24th clock of the clock pulse signal CK1, D1 (0, 0, 1) is synchronized with the pulse signal CK2.
0) from the first flip-flop 3802 of the processor element PE (0,0) to the second flip-flop 38
03, and is output to the input terminal A0 of the comparator 4101 of the segment block specifying unit 4000 and the input terminal A0 of the field block distortion calculation unit 5000 through the output terminal Do.

【0294】同時に、D1(0,1)がプロセッサエレ
メントPE(0,1)の第1フリップフロップ3802
から第2フリップフロップ3803にラッチされ、出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A1およびフィールド
ブロックディストーション算出ユニット5000の入力
端子A1に出力される。
At the same time, D1 (0,1) is the first flip-flop 3802 of processor element PE (0,1).
Is latched by the second flip-flop 3803 and the segment block specifying unit 40 is output through the output terminal Do.
00 and the input terminal A1 of the field block distortion calculation unit 5000.

【0295】同時に、D1(0,2)がプロセッサエレ
メントPE(0,2)の第1フリップフロップ3802
から第2フリップフロップ3803にラッチされ、出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A2およびフィールド
ブロックディストーション算出ユニット5000の入力
端子A2に出力される。
At the same time, D1 (0,2) is the first flip-flop 3802 of processor element PE (0,2).
Is latched by the second flip-flop 3803 and the segment block specifying unit 40 is output through the output terminal Do.
00 and the input terminal A2 of the field block distortion calculation unit 5000.

【0296】また、同時に、他のプロセッサエレメント
PE(x,y)に保持されたD1(x,y)は、同行の
プロセッサエレメントPE(x−1,y)のディストー
ション転送部3800に転送される。また、各プロセッ
サエレメントPE(x,y)の第2フリップフロップ3
706に保持されたD2(x,y)がそれぞれ第1フリ
ップフロップ3802にラッチされる。
At the same time, D1 (x, y) held in another processor element PE (x, y) is transferred to the distortion transfer section 3800 of the same processor element PE (x-1, y). . Also, the second flip-flop 3 of each processor element PE (x, y)
D2 (x, y) held in 706 is latched by the first flip-flop 3802, respectively.

【0297】次に、クロックパルス信号CK1の25ク
ロック目では、パルス信号CK2に同期してD2(0,
0)が、プロセッサエレメントPE(0,0)の第1フ
リップフロップ3802から第2フリップフロップ38
03にラッチされ、出力端子Doを通してセグメントブ
ロック特定ユニット4000の比較器4101の入力端
子A0およびフィールドブロックディストーション算出
ユニット5000の入力端子A0に出力される。
Next, at the 25th clock of the clock pulse signal CK1, D2 (0,
0) from the first flip-flop 3802 of the processor element PE (0,0) to the second flip-flop 38
03, and is output to the input terminal A0 of the comparator 4101 of the segment block specifying unit 4000 and the input terminal A0 of the field block distortion calculation unit 5000 through the output terminal Do.

【0298】同時に、D2(0,1)がプロセッサエレ
メントPE(0,1)の第1フリップフロップ3802
から第2フリップフロップ3803にラッチされ、出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A1およびフィールド
ブロックディストーション算出ユニット5000の入力
端子A1に出力される。
At the same time, D2 (0,1) is the first flip-flop 3802 of processor element PE (0,1).
Is latched by the second flip-flop 3803 and the segment block specifying unit 40 is output through the output terminal Do.
00 and the input terminal A1 of the field block distortion calculation unit 5000.

【0299】同時に、D2(0,2)がプロセッサエレ
メントPE(0,2)の第1フリップフロップ3802
から第2フリップフロップ3803にラッチされ、出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A2およびフィールド
ブロックディストーション算出ユニット5000の入力
端子A2に出力される。
At the same time, D2 (0,2) is the first flip-flop 3802 of processor element PE (0,2).
Is latched by the second flip-flop 3803 and the segment block specifying unit 40 is output through the output terminal Do.
00 and the input terminal A2 of the field block distortion calculation unit 5000.

【0300】また、同時に、他のプロセッサエレメント
PE(x,y)に保持されたD2(x,y)は、同行の
プロセッサエレメントPE(x−1,y)のディストー
ション転送部3800に転送される。また、各プロセッ
サエレメントPE(x,y)の第2フリップフロップ3
706に保持されたD1(x,y)がそれぞれ第1フリ
ップフロップ3802にラッチされる。
At the same time, D2 (x, y) held in another processor element PE (x, y) is transferred to the distortion transfer unit 3800 of the same processor element PE (x-1, y). . Also, the second flip-flop 3 of each processor element PE (x, y)
D1 (x, y) held in 706 is latched by the first flip-flop 3802, respectively.

【0301】次に、クロックパルス信号CK1の26ク
ロック目では、パルス信号CK2に同期してD1(1,
0)、D1(1,1)およびD1(1,2)が、それぞ
れプロセッサエレメントPE(0,0)、プロセッサエ
レメントPE(0,1)およびプロセッサエレメントP
E(0,2)の第1フリップフロップ3802から第2
フリップフロップ3803にラッチされ、それぞれ出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A0,A1,A2およ
びフィールドブロックディストーション算出ユニット5
000の入力端子A0,A1,A2に出力される。
Next, at the 26th clock of the clock pulse signal CK1, D1 (1,1) is synchronized with the pulse signal CK2.
0), D1 (1, 1) and D1 (1, 2) are the processor element PE (0, 0), the processor element PE (0, 1), and the processor element P, respectively.
From the first flip-flop 3802 of E (0,2) to the second
The segment block specifying unit 40 is latched by the flip-flop 3803, and is output through the output terminal Do.
00 input terminals A0, A1, A2 of the comparator 4101 and the field block distortion calculation unit 5
000 input terminals A0, A1, A2.

【0302】また、同時に、他のプロセッサエレメント
PE(1,y)に保持されたD1(2,y)は、同行の
プロセッサエレメントPE(0,y)のディストーショ
ン転送部3800に転送される。また、各プロセッサエ
レメントPE(x,y)の第2フリップフロップ370
6に保持されたD2(x+1,y)がそれぞれ第1フリ
ップフロップ3802にラッチされる。
At the same time, D1 (2, y) held in another processor element PE (1, y) is transferred to the distortion transfer section 3800 of the processor element PE (0, y) in the same row. Also, the second flip-flop 370 of each processor element PE (x, y)
6 are latched by the first flip-flop 3802, respectively.

【0303】次に、クロックパルス信号CK1の27ク
ロック目では、パルス信号CK2に同期してD2(1,
0)、D2(1,1)およびD2(1,2)が、それぞ
れプロセッサエレメントPE(0,0)、プロセッサエ
レメントPE(0,1)およびプロセッサエレメントP
E(0,2)の第1フリップフロップ3802から第2
フリップフロップ3803にラッチされ、それぞれ出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A0,A1,A2およ
びフィールドブロックディストーション算出ユニット5
000の入力端子A0,A1,A2に出力される。
Next, at the 27th clock of the clock pulse signal CK1, D2 (1,1) is synchronized with the pulse signal CK2.
0), D2 (1,1) and D2 (1,2) are processor elements PE (0,0), PE (0,1) and processor element P, respectively.
From the first flip-flop 3802 of E (0,2) to the second
The segment block specifying unit 40 is latched by the flip-flop 3803, and is output through the output terminal Do.
00 input terminals A0, A1, A2 of the comparator 4101 and the field block distortion calculation unit 5
000 input terminals A0, A1, A2.

【0304】また、同時に、他のプロセッサエレメント
PE(1,y)に保持されたD2(2,y)は、同行の
プロセッサエレメントPE(0,y)のディストーショ
ン転送部3800に転送される。また、各プロセッサエ
レメントPE(0,y)の第2フリップフロップ370
6に保持されたD1(2,y)がそれぞれ第1フリップ
フロップ3802にラッチされる。
At the same time, D2 (2, y) held in another processor element PE (1, y) is transferred to the distortion transfer section 3800 of the processor element PE (0, y) in the same row. Also, the second flip-flop 370 of each processor element PE (0, y)
6 are latched by the first flip-flop 3802, respectively.

【0305】次に、クロックパルス信号CK1の28ク
ロック目では、パルス信号CK2に同期してD1(2,
0)、D1(2,1)およびD1(2,2)が、それぞ
れプロセッサエレメントPE(0,0)、プロセッサエ
レメントPE(0,1)およびプロセッサエレメントP
E(0,2)の第1フリップフロップ3802から第2
フリップフロップ3803にラッチされ、それぞれ出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A0,A1,A2およ
びフィールドブロックディストーション算出ユニット5
000の入力端子A0,A1,A2に出力される。
Next, at the 28th clock of the clock pulse signal CK1, D1 (2,2) is synchronized with the pulse signal CK2.
0), D1 (2,1) and D1 (2,2) are processor elements PE (0,0), processor element PE (0,1) and processor element P, respectively.
From the first flip-flop 3802 of E (0,2) to the second
The segment block specifying unit 40 is latched by the flip-flop 3803, and is output through the output terminal Do.
00 input terminals A0, A1, A2 of the comparator 4101 and the field block distortion calculation unit 5
000 input terminals A0, A1, A2.

【0306】また、各プロセッサエレメントPE(0,
y)の第2フリップフロップ3706に保持されたD2
(2,y)がそれぞれ第1フリップフロップ3802に
ラッチされる。次に、クロックパルス信号CK1の29
クロック目では、パルス信号CK2に同期してD2
(2,0)、D2(2,1)およびD2(2,2)が、
それぞれプロセッサエレメントPE(0,0)、プロセ
ッサエレメントPE(0,1)およびプロセッサエレメ
ントPE(0,2)の第1フリップフロップ3802か
ら第2フリップフロップ3803にラッチされ、それぞ
れ出力端子Doを通してセグメントブロック特定ユニッ
ト4000の比較器4101の入力端子A0,A1,A
2およびフィールドブロックディストーション算出ユニ
ット5000の入力端子A0,A1,A2に出力され
る。
Each processor element PE (0,
y) D2 held in the second flip-flop 3706
(2, y) are respectively latched by the first flip-flop 3802. Next, 29 of the clock pulse signal CK1
At the clock, D2 is synchronized with the pulse signal CK2.
(2,0), D2 (2,1) and D2 (2,2)
The first and second flip-flops 3802 and 3803 of the processor elements PE (0,0), PE (0,1) and PE (0,2) respectively latch the segment blocks through the output terminals Do. Input terminals A0, A1, A of comparator 4101 of specific unit 4000
2 and input to the input terminals A0, A1, A2 of the field block distortion calculation unit 5000.

【0307】すなわち、すべての第1セグメントブロッ
クディストーションD1(x,y)およびすべての第2
セグメントブロックディストーションD2(x,y)が
セグメントブロックディストーション算出ユニット30
00からセグメントブロック特定ユニット4000およ
びフィールドブロックディストーション算出ユニット5
000に転送されたことになる。
That is, all the first segment block distortions D1 (x, y) and all the second
The segment block distortion D2 (x, y) is calculated by the segment block distortion calculating unit 30.
From 00, a segment block specifying unit 4000 and a field block distortion calculating unit 5
000.

【0308】次に、セグメントブロック特定ユニット4
000において、セグメントブロックディストーション
算出ユニット3000で算出された各D1(x,y)の
中から最小の第1セグメントブロックディストーション
を検出し、この最小第1セグメントブロックディストー
ションが算出されたプロセッサエレメントPE(x,
y)の配置位置に基づいて第1セグメント動きベクトル
MVSg1を求めるとともに、セグメントブロックディ
ストーション算出ユニット3000で算出された各D2
(x,y)の中から最小の第2セグメントブロックディ
ストーションを検出し、この最小第2セグメントブロッ
クディストーションが算出されたプロセッサエレメント
PE(x,y)の配置位置に基づいて第2セグメント動
きベクトルMVSg2を求める動作を図9に示されたタ
イムチャートに基づいて説明する。
Next, the segment block specifying unit 4
000, a minimum first segment block distortion is detected from among the D1 (x, y) calculated by the segment block distortion calculation unit 3000, and the processor element PE (x) for which the minimum first segment block distortion is calculated is detected. ,
y), the first segment motion vector MVSg1 is obtained based on the arrangement position, and each D2 calculated by the segment block distortion calculation unit 3000 is obtained.
A minimum second segment block distortion is detected from (x, y), and the second segment motion vector MVSg2 is determined based on the arrangement position of the processor element PE (x, y) for which the minimum second segment block distortion has been calculated. Will be described with reference to a time chart shown in FIG.

【0309】なお、図9におけるPE(0,0)は、プ
ロセッサエレメントPE(0,0)の第2フリップフロ
ップ3803にラッチされた第1セグメントブロックデ
ィストーションD1(x,y)および第2セグメントブ
ロックディストーションD2(x,y)を表し、Myは
セグメント動きベクトル垂直成分検出ユニット4200
の第2フリップフロップ4203にラッチされたデータ
を表し、Mxはセグメント動きベクトル水平成分検出ユ
ニット4300の第2フリップフロップ4304にラッ
チされたデータを表す。
Note that PE (0,0) in FIG. 9 is the first segment block distortion D1 (x, y) and the second segment block latched by the second flip-flop 3803 of the processor element PE (0,0). Represents distortion D2 (x, y), where My is the segment motion vector vertical component detection unit 4200
Mx represents data latched in the second flip-flop 4304 of the segment motion vector horizontal component detection unit 4300.

【0310】まず、クロックパルス信号CK1の24ク
ロック目では、最小セグメントブロックディストーショ
ン検出ユニット4100においては、パルス信号CK2
に同期して、セグメントブロックディストーション算出
ユニット3000で算出されたD1(0,0),D1
(0,1),D1(0,2)がそれぞれ比較器4101
の入力端子A0,A1,A2に入力される。
First, at the 24th clock of the clock pulse signal CK1, the minimum segment block distortion detection unit 4100 outputs the pulse signal CK2.
D1 (0,0), D1 calculated by the segment block distortion calculation unit 3000 in synchronization with
(0,1) and D1 (0,2) are the comparators 4101 respectively.
Are input to the input terminals A0, A1, and A2.

【0311】次いで、比較器4101では、これらの第
1セグメントブロックディストーションが比較され、最
小値の第1セグメントブロックディストーションが出力
端子Yから出力され、比較器4103の入力端子Aおよ
びセレクタ4104の入力端子Bに入力される。また、
比較器4101では、最小第1セグメントブロックディ
ストーションが入力された入力端子を表すデータLMV
yが出力端子Mから出力され、セグメント動きベクトル
垂直成分検出ユニット4200のセレクタ4201の入
力端子Bに入力される。ここで、最小セグメントブロッ
クディストーションは、D1(0,0)であり、データ
LMVyは、0を表すデータとなる。
Next, the comparator 4101 compares these first segment block distortions, outputs the minimum value of the first segment block distortion from the output terminal Y, and inputs the input terminal A of the comparator 4103 and the input terminal of the selector 4104. B is input. Also,
In the comparator 4101, the data LMV representing the input terminal to which the minimum first segment block distortion is input
y is output from the output terminal M and input to the input terminal B of the selector 4201 of the segment motion vector vertical component detection unit 4200. Here, the minimum segment block distortion is D1 (0,0), and the data LMVy is data representing 0.

【0312】次いで、比較器4103では、入力端子A
を通して入力されたD1(0,0)と入力端子Bを通し
て入力されたデータとを比較する。ここで、比較器41
03では、入力端子Bを通して論理和演算器4102の
演算結果が入力されるが、論理和演算器4102では、
クロックパルス信号CK1の24クロック目のダウンエ
ッジに同期してパルス信号LD2が入力端子Aを通して
入力され、出力端子Yからすべてのビットが1であるデ
ータが最大値として出力されるので、比較器4103で
は、最大値を示すデータが入力端子Bを通して入力され
る。すなわち、比較器4103では、D1(0,0)の
ほうが小さい値となるため、出力端子から1を表すデー
タMinが出力される。次いで、セレクタ4104で
は、入力端子Sに入力されたデータMinが1のため、
入力端子Bと出力端子Yが電気的に接続され、入力端子
Bから入力されたD1(0,0)が出力端子Yから出力
される。
Next, in the comparator 4103, the input terminal A
D1 (0,0) input through the input terminal B and the data input through the input terminal B are compared. Here, the comparator 41
03, the operation result of the OR operation unit 4102 is input through the input terminal B, but in the OR operation unit 4102,
The pulse signal LD2 is input through the input terminal A in synchronization with the 24th clock falling edge of the clock pulse signal CK1, and data in which all bits are 1 is output from the output terminal Y as the maximum value. Then, data indicating the maximum value is input through the input terminal B. That is, in the comparator 4103, since D1 (0,0) has a smaller value, data Min representing 1 is output from the output terminal. Next, in the selector 4104, since the data Min input to the input terminal S is 1,
The input terminal B and the output terminal Y are electrically connected, and D1 (0,0) input from the input terminal B is output from the output terminal Y.

【0313】一方、クロックパルス信号CK1の24ク
ロック目のセグメント動きベクトル垂直成分検出ユニッ
ト4200においては、セレクタ4201では、最小セ
グメントブロックディストーション検出ユニット410
0の比較器4103から出力されたデータMinが入力
端子Sを通して入力され、比較器4101から出力され
たデータLMVyが入力端子Bを通して入力される。こ
こで、セレクタ4201では、入力端子Sを通して入力
されたデータMinが1を表すので、入力端子Bと出力
端子Yとが電気的に接続され、入力端子Bを通して入力
された0を表すデータLMVyが出力端子Yを通して出
力される。
On the other hand, in the segment motion vector vertical component detection unit 4200 at the 24th clock of the clock pulse signal CK1, the selector 4201 sets the minimum segment block distortion detection unit 410
The data Min output from the comparator 4103 of 0 is input through the input terminal S, and the data LMVy output from the comparator 4101 is input through the input terminal B. Here, in the selector 4201, since the data Min inputted through the input terminal S represents 1, the input terminal B and the output terminal Y are electrically connected, and the data LMVy representing 0 inputted through the input terminal B is inputted. It is output through the output terminal Y.

【0314】さらに、クロックパルス信号CK1の24
クロック目のセグメント動きベクトル水平成分検出ユニ
ット4300においては、カウンタ4301では、すで
にクロックパルス信号CK1の22クロック目のダウン
エッジに同期して、パルス信号LD1が入力端子CLに
入力され、カウンタ4301が0にリセットされてお
り、パルス信号CTEが1であり、かつ、パルス信号C
K2が0から1に立ち上るタイミングに同期して、出力
端子Qnから0を表すデータが出力される。
Further, 24 of the clock pulse signal CK1
In the segment motion vector horizontal component detection unit 4300 at the clock, the counter 4301 already inputs the pulse signal LD1 to the input terminal CL in synchronization with the falling edge of the clock pulse signal CK1 at the 22nd clock, and sets the counter 4301 to 0. And the pulse signal CTE is 1 and the pulse signal CTE
The data representing 0 is output from the output terminal Qn in synchronization with the timing when K2 rises from 0 to 1.

【0315】次いで、セレクタ4302では、最小セグ
メントブロックディストーション検出ユニット4100
の比較器4103から出力されたデータMinが入力端
子Sを通して入力され、カウンタ4301から出力され
たデータが入力端子Bを通して入力される。ここで、セ
レクタ4302では、入力端子Sを通して入力されたデ
ータMinが1を表すので、入力端子Bと出力端子Yと
が電気的に接続され、入力端子を通して入力された0を
表すデータLMVxが出力端子Yを通して出力される。
Next, in the selector 4302, the minimum segment block distortion detecting unit 4100
Are output through an input terminal S, and data output from a counter 4301 is input through an input terminal B. Here, in the selector 4302, since the data Min inputted through the input terminal S represents 1, the input terminal B and the output terminal Y are electrically connected, and the data LMVx representing 0 inputted through the input terminal is outputted. Output through terminal Y.

【0316】次に、クロックパルス信号CK1の25ク
ロック目では、最小セグメントブロックディストーショ
ン検出ユニット4100においては、パルス信号CK2
に同期して、セレクタ4104から出力されたD1
(0,0)が第1フリップフロップ4105にラッチさ
れる。また、同時に、パルス信号CK2に同期して、セ
グメントブロックディストーション算出ユニット300
0で算出されたD2(0,0),D2(0,1)D2
(0,2)がそれぞれ比較器4101の入力端子A0,
A1,A2に入力される。
Next, at the 25th clock of the clock pulse signal CK1, the minimum segment block distortion detecting unit 4100 outputs the pulse signal CK2.
D1 output from the selector 4104 in synchronization with
(0, 0) is latched in the first flip-flop 4105. At the same time, in synchronization with the pulse signal CK2, the segment block distortion calculating unit 300
D2 (0,0), D2 (0,1) D2 calculated with 0
(0, 2) are input terminals A0, A0,
A1 and A2 are input.

【0317】次いで、比較器4101では、これらの第
2セグメントブロックディストーションが比較され、最
小値の第2セグメントブロックディストーションD2
(0,2)が出力端子Yを通して出力され、比較器41
03の入力端子Aおよびセレクタ4104の入力端子B
に入力される。また、比較器4101では、最小第2セ
グメントブロックディストーションD2(0,2)が入
力された入力端子を表し、2を表すデータLMVyが出
力端子Mから出力され、セグメント動きベクトル垂直成
分検出ユニット4200のセレクタ4201の入力端子
Bに入力される。
Next, in the comparator 4101, these second segment block distortions are compared, and the minimum value of the second segment block distortion D2
(0, 2) is output through the output terminal Y, and the comparator 41
03 input terminal A and selector 4104 input terminal B
Is input to In the comparator 4101, the input terminal to which the minimum second segment block distortion D <b> 2 (0, 2) is input, data LMVy representing 2 is output from the output terminal M, and the segment motion vector vertical component detection unit 4200 The signal is input to the input terminal B of the selector 4201.

【0318】次いで、比較器4103では、入力端子A
を通して入力されたD2(0,2)と入力端子Bを通し
て入力されたデータとを比較する。ここで、比較器41
03では、入力端子Bを通して論理和演算器4102の
演算結果が入力されるが、論理和演算器4102では、
1を表すパルス信号LD2が入力端子Aを通して入力さ
れ、出力端子Yからすべてのビットが1であるデータが
最大値として出力されているので、比較器4103で
は、最大値を示すデータが入力端子Bを通して入力され
る。すなわち、比較器4103では、D2(0,2)の
ほうが小さい値となるため、出力端子Yからは1を表す
データMinが出力される。次いで、セレクタ4104
では、入力端子Sを通して入力されたデータMinが1
のため、入力端子Bを通して入力されたD2(0,2)
が出力端子Yを通して出力される。
Next, in the comparator 4103, the input terminal A
D2 (0, 2) input through the input terminal B and the data input through the input terminal B. Here, the comparator 41
03, the operation result of the OR operation unit 4102 is input through the input terminal B, but in the OR operation unit 4102,
Since the pulse signal LD2 representing 1 is input through the input terminal A, and the data in which all the bits are 1 are output as the maximum value from the output terminal Y, the comparator 4103 outputs the data indicating the maximum value to the input terminal B. Is entered through That is, in the comparator 4103, since D2 (0, 2) has a smaller value, data Min representing 1 is output from the output terminal Y. Next, the selector 4104
Then, the data Min input through the input terminal S is 1
Therefore, D2 (0,2) input through the input terminal B
Is output through the output terminal Y.

【0319】一方、クロックパルス信号CK1の25ク
ロック目のセグメント動きベクトル垂直成分検出ユニッ
ト4200においては、パルス信号CK2に同期してセ
レクタ4201から出力された0を表すデータLMVy
が第1フリップフロップ4202にラッチされる。ま
た、セレクタ4201では、入力端子Sを通して入力さ
れたデータMinが1を表すので、入力端子Bと出力端
子Yとが電気的に接続され、入力端子Bを通して入力さ
れた2を表すデータLMVyが出力端子Yを通して出力
される。
On the other hand, in the segment motion vector vertical component detection unit 4200 at the 25th clock of the clock pulse signal CK1, the data LMVy representing 0 output from the selector 4201 in synchronization with the pulse signal CK2.
Are latched by the first flip-flop 4202. In the selector 4201, since the data Min input through the input terminal S indicates 1, the input terminal B and the output terminal Y are electrically connected, and the data LMVy indicating 2 input through the input terminal B is output. Output through terminal Y.

【0320】さらに、クロックパルス信号CK1の25
クロック目のセグメント動きベクトル水平成分検出ユニ
ット4300においては、パルス信号CK2に同期して
セレクタ4302から出力された0を表すデータLMV
xが第1フリップフロップ4303にラッチされる。ま
た、カウンタ4301では、出力端子Qnから0を表す
データが出力されており、セレクタ4302では、最小
セグメントブロックディストーション検出ユニット41
00の比較器4103から出力されたデータMinが1
を表すので、入力端子Bと出力端子Yとが電気的に接続
され、入力端子Bを通して入力された0を表すデータL
MVxが出力端子Yを通して出力される。
Further, 25 of clock pulse signal CK1
In the segment motion vector horizontal component detection unit 4300 at the clock, the data LMV representing 0 output from the selector 4302 in synchronization with the pulse signal CK2 is output.
x is latched in the first flip-flop 4303. The counter 4301 outputs data representing 0 from the output terminal Qn, and the selector 4302 outputs the minimum segment block distortion detection unit 41
00 data Min output from the comparator 4103 is 1
, The input terminal B is electrically connected to the output terminal Y, and the data L representing 0 input through the input terminal B is
MVx is output through the output terminal Y.

【0321】次に、クロックパルス信号CK1の26ク
ロック目では、最小セグメントブロックディストーショ
ン検出ユニット4100においては、パルス信号CK2
に同期して、第1フリップフロップ4105に保持され
たD1(0,0)が第2フリップフロップ4106にラ
ッチされ、セレクタ4104から出力されたD2(0,
2)が第1フリップフロップ4105にラッチされる。
Next, at the 26th clock of the clock pulse signal CK1, the minimum segment block distortion detecting unit 4100 outputs the pulse signal CK2.
In synchronization with D1, D1 (0, 0) held in the first flip-flop 4105 is latched by the second flip-flop 4106, and D2 (0, 0) output from the selector 4104 is output.
2) is latched by the first flip-flop 4105.

【0322】また、同時に、比較器4101では、パル
ス信号CK2に同期して、セグメントブロックディスト
ーション算出ユニット3000で算出されたD1(1,
0),D1(1,1),D1(1,2)がそれぞれ比較
器4101の入力端子A0,A1,A2を通して入力さ
れ、この結果、D1(1,2)が出力端子Yを通して出
力されるとともに、2を表すデータLMVyが出力端子
Mを通して出力される。
At the same time, the comparator 4101 synchronizes with the pulse signal CK2 and calculates D1 (1,1) calculated by the segment block distortion calculation unit 3000.
0), D1 (1, 1), and D1 (1, 2) are input through the input terminals A0, A1, and A2 of the comparator 4101, respectively. As a result, D1 (1, 2) is output through the output terminal Y. At the same time, data LMVy representing 2 is output through the output terminal M.

【0323】次いで、比較器4103では、入力端子A
を通して入力されたD1(1,2)と入力端子Bを通し
て入力されたデータとを比較する。ここで、比較器41
03では、入力端子Bを通して論理和演算器4102の
演算結果が入力されるが、論理和演算器4102では、
クロックパルス信号CK1の26クロック目のダウンエ
ッジに同期してパルス信号LD2が1から0にダウンす
るため、入力端子Bと出力端子Yが電気的に接続され、
第2フリップフロップ4106にラッチされたD1
(0,0)が入力端子Bを通して入力され出力端子Yを
通して出力され、比較器4103の入力端子Bに入力さ
れる。比較器4103では、入力端子Aを通して入力さ
れたD1(1,2)と入力端子Bを通して入力されたD
1(0,0)とが比較され、D1(0,0)の値が小さ
い値となったため、出力端子からは0を表すデータMi
nが出力される。次いで、セレクタ4104では、入力
端子Sを通して入力されたデータMinが0のため、入
力端子Aを通して入力されたD1(0,0)が出力端子
Yを通して出力される。
Next, in the comparator 4103, the input terminal A
(1, 2) input through the input terminal B and the data input through the input terminal B are compared. Here, the comparator 41
03, the operation result of the OR operation unit 4102 is input through the input terminal B, but in the OR operation unit 4102,
Since the pulse signal LD2 falls from 1 to 0 in synchronization with the 26th clock falling edge of the clock pulse signal CK1, the input terminal B and the output terminal Y are electrically connected,
D1 latched by the second flip-flop 4106
(0, 0) is input through the input terminal B, output through the output terminal Y, and input into the input terminal B of the comparator 4103. In comparator 4103, D1 (1,2) input through input terminal A and D1 (1,2) input through input terminal B
1 (0, 0) is compared, and the value of D1 (0, 0) becomes a small value.
n is output. Next, in the selector 4104, since the data Min input through the input terminal S is 0, D1 (0,0) input through the input terminal A is output through the output terminal Y.

【0324】一方、クロックパルス信号CK1の26ク
ロック目のセグメント動きベクトル垂直成分検出ユニッ
ト4200においては、パルス信号CK2に同期して、
第1フリップフロップ4202に保持された0を表すデ
ータLMVyが第2フリップフロップ4203にラッチ
され、セレクタ4201から出力された2を表すデータ
LMVyが第1フリップフロップ4202にラッチされ
る。
On the other hand, the segment motion vector vertical component detection unit 4200 at the 26th clock of the clock pulse signal CK1 synchronizes with the pulse signal CK2,
The data LMVy representing 0 held in the first flip-flop 4202 is latched in the second flip-flop 4203, and the data LMVy representing 2 output from the selector 4201 is latched in the first flip-flop 4202.

【0325】また、セレクタ4201では、入力端子S
を通して入力されたデータMinが0を表すので、入力
端子Aと出力端子Yとが電気的に接続され、第2フリッ
プフロップ4203から出力された0を表すデータLM
Vyが入力端子Aを通して入力され出力端子Yを通して
出力される。また、第2フリップフロップ4203から
出力された0を表すデータLMVy(My)は、換算テ
ーブル4204に入力され、次いで、換算テーブル42
04では、入力されたデータLMVy(My)が垂直方
向の動きベクトルMVyに換算され、出力端子を通して
出力される。ここで、データLMVyは0なので、−1
がセグメント動きベクトル垂直成分MVSgyとして出
力される。
In the selector 4201, the input terminal S
Is input, the input terminal A is electrically connected to the output terminal Y, and the data LM indicating 0 output from the second flip-flop 4203 is input.
Vy is input through the input terminal A and output through the output terminal Y. The data LMVy (My) representing 0 output from the second flip-flop 4203 is input to the conversion table 4204, and then the conversion table 42
In 04, the input data LMVy (My) is converted into a vertical motion vector MVy, and is output through an output terminal. Here, since the data LMVy is 0, -1
Is output as the segment motion vector vertical component MVSgy.

【0326】さらに、クロックパルス信号CK1の26
クロック目のセグメント動きベクトル水平成分検出ユニ
ット4300においては、パルス信号CK2に同期し
て、第1フリップフロップ4303に保持された0を表
すデータLMVxが第2フリップフロップ4304にラ
ッチされ、セレクタ4302から出力された0を表すデ
ータLMVxが第1フリップフロップ4303にラッチ
される。
Further, 26 of the clock pulse signal CK1
In the clock segment motion vector horizontal component detection unit 4300, the data LMVx representing 0 held in the first flip-flop 4303 is latched by the second flip-flop 4304 in synchronization with the pulse signal CK2, and output from the selector 4302. The data LMVx indicating 0 is latched in the first flip-flop 4303.

【0327】また、カウンタ4301では、出力端子Q
nから1を表すデータが出力される。次いで、セレクタ
4302では、最小セグメントブロックディストーショ
ン検出ユニット4100の比較器4103から出力され
たデータMinが0を表すので、入力端子Aと出力端子
Yが電気的に接続され、第2フリップフロップ4304
から出力された0を表すデータLMVxが入力端子Aを
通して入力され出力端子Yを通して出力される。
In the counter 4301, the output terminal Q
Data representing 1 is output from n. Next, in the selector 4302, since the data Min output from the comparator 4103 of the minimum segment block distortion detection unit 4100 represents 0, the input terminal A and the output terminal Y are electrically connected, and the second flip-flop 4304
Are output through an input terminal A and output through an output terminal Y.

【0328】また、第2フリップフロップ4304から
出力された0を表すデータLMVx(Mx)は、換算テ
ーブル4305に入力され、次いで、換算テーブル43
05では、入力されたデータLMVx(Mx)がセグメ
ント動きベクトル水平成分MVFixに換算され、出力
端子を通して出力される。ここで、データLMVxは0
なので、−1がセグメント動きベクトル水平成分MVS
gxとして出力される。
The data LMVx (Mx) representing 0 output from the second flip-flop 4304 is input to the conversion table 4305, and then the conversion table 43
At 05, the input data LMVx (Mx) is converted into a segment motion vector horizontal component MVFix and output via an output terminal. Here, the data LMVx is 0
Therefore, -1 is the segment motion vector horizontal component MVS
Output as gx.

【0329】次に、クロックパルス信号CK1の27ク
ロック目では、最小セグメントブロックディストーショ
ン検出ユニット4100においては、パルス信号CK2
に同期して、第1フリップフロップ4105に保持され
たD2(0,2)が第2フリップフロップ4106にラ
ッチされ、セレクタ4104から出力されたD1(0,
0)が第1フリップフロップ4105にラッチされる。
Next, at the 27th clock of the clock pulse signal CK1, the minimum segment block distortion detecting unit 4100 outputs the pulse signal CK2.
, D2 (0, 2) held in the first flip-flop 4105 is latched by the second flip-flop 4106, and D1 (0, 2) output from the selector 4104 is output.
0) is latched in the first flip-flop 4105.

【0330】また、同時に、比較器4101では、パル
ス信号CK2に同期して、セグメントブロックディスト
ーション算出ユニット3000で算出されたD2(1,
0),D2(1,1),D2(1,2)がそれぞれ比較
器4101の入力端子A0,A1,A2を通して入力さ
れ、この結果、D2(1,1)が出力端子Yを通して出
力されるとともに、1を表すデータLMVyが出力端子
Mを通して出力される。
At the same time, in the comparator 4101, in synchronization with the pulse signal CK2, D2 (1,1) calculated by the segment block distortion calculation unit 3000
0), D2 (1, 1), and D2 (1, 2) are input through the input terminals A0, A1, and A2 of the comparator 4101, respectively. As a result, D2 (1, 1) is output through the output terminal Y. At the same time, data LMVy representing 1 is output through the output terminal M.

【0331】次いで、比較器4103では、入力端子A
を通して入力されたD2(1,1)と入力端子Bを通し
て入力されたデータとを比較する。ここで、比較器41
03の入力端子Bには、論理和演算器4102の演算結
果が入力されるが、論理和演算器4102では、0を表
すパルス信号LD2が入力端子Aを通して入力されてい
るため、第2フリップフロップ4106にラッチされた
D2(0,2)が入力端子Bを通して入力され出力端子
Yを通して出力され、比較器4103の入力端子Bに入
力される。比較器4103では、入力端子を通して入力
されたD2(1,1)と入力端子Bを通して入力された
D2(0,2)とが比較され、D2(1,1)の値が小
さい値となったため、出力端子からは1を表すデータM
inが出力される。次いで、セレクタ4104では、入
力端子Sを通して入力されたデータMinが1のため、
入力端子Bを通して入力されたD2(1,1)が出力端
子Yを通して出力される。
Next, in the comparator 4103, the input terminal A
Is compared with D2 (1, 1) input through the input terminal B and data input through the input terminal B. Here, the comparator 41
03, the operation result of the OR operation unit 4102 is input to the input terminal B. However, since the pulse signal LD2 representing 0 is input through the input terminal A to the OR operation unit 4102, the second flip-flop D2 (0, 2) latched by 4106 is input through input terminal B, output through output terminal Y, and input into input terminal B of comparator 4103. In the comparator 4103, D2 (1,1) input through the input terminal is compared with D2 (0,2) input through the input terminal B, and the value of D2 (1,1) becomes small. From the output terminal, data M representing 1
in is output. Next, in the selector 4104, since the data Min input through the input terminal S is 1,
D2 (1, 1) input through the input terminal B is output through the output terminal Y.

【0332】一方、クロックパルス信号CK1の27ク
ロック目のセグメント動きベクトル垂直成分検出ユニッ
ト4200においては、パルス信号CK2に同期して、
第1フリップフロップ4202に保持された2を表すデ
ータLMVyが第2フリップフロップ4203にラッチ
され、セレクタ4201から出力された0を表すデータ
LMVyが第1フリップフロップ4202にラッチされ
る。
On the other hand, in the segment motion vector vertical component detection unit 4200 at the 27th clock of the clock pulse signal CK1, in synchronization with the pulse signal CK2,
The data LMVy representing 2 held in the first flip-flop 4202 is latched in the second flip-flop 4203, and the data LMVy representing 0 output from the selector 4201 is latched in the first flip-flop 4202.

【0333】また、セレクタ4201では、入力端子S
を通して入力されたデータMinが1を表すので、入力
端子Bと出力端子Yとが電気的に接続され、比較器41
01から出力された1を表すデータLMVyが入力端子
Bを通して入力され出力端子Yを通して出力される。ま
た、第2フリップフロップ4203から出力された2を
表すデータLMVy(My)は、換算テーブル4204
に入力され、次いで、換算テーブル4204では、入力
されたデータLMVy(My)がセグメント動きベクト
ル垂直成分MVFiyに換算され、出力端子を通して出
力される。ここで、データLMVyは2なので、1がセ
グメント動きベクトルMVSgyとして出力される。
In the selector 4201, the input terminal S
Since the data Min input through the terminal represents 1, the input terminal B and the output terminal Y are electrically connected, and the comparator 41
Data LMVy representing 1 output from 01 is input through input terminal B and output through output terminal Y. The data LMVy (My) representing 2 output from the second flip-flop 4203 is converted into the conversion table 4204.
Then, in the conversion table 4204, the input data LMVy (My) is converted into the segment motion vector vertical component MVFiy, and is output through the output terminal. Here, since the data LMVy is 2, 1 is output as the segment motion vector MVSgy.

【0334】さらに、クロックパルス信号CK1の27
クロック目のセグメント動きベクトル水平成分検出ユニ
ット4300においては、パルス信号CK2に同期し
て、第1フリップフロップ4303に保持された0を表
すデータLMVxが第2フリップフロップ4304にラ
ッチされ、セレクタ4302から出力された0を表すデ
ータLMVxが第1フリップフロップ4303にラッチ
される。
Further, the clock pulse signal CK1
In the clock segment motion vector horizontal component detection unit 4300, the data LMVx representing 0 held in the first flip-flop 4303 is latched by the second flip-flop 4304 in synchronization with the pulse signal CK2, and output from the selector 4302. The data LMVx indicating 0 is latched in the first flip-flop 4303.

【0335】また、カウンタ4301では、出力端子Q
nから1を表すデータが出力されている。次いで、セレ
クタ4302では、最小セグメントブロックディストー
ション検出ユニット4100の比較器4103から出力
されたデータMinが1を表すので、入力端子Bと出力
端子Yとが電気的に接続され、カウンタ4301から出
力された1を表すデータLMVxが入力端子を通して入
力され出力端子Yを通して出力される。
In the counter 4301, the output terminal Q
Data representing 1 from n is output. Next, in the selector 4302, since the data Min output from the comparator 4103 of the minimum segment block distortion detection unit 4100 represents 1, the input terminal B and the output terminal Y are electrically connected and output from the counter 4301. Data LMVx representing 1 is input through an input terminal and output through an output terminal Y.

【0336】また、第2フリップフロップ4304から
出力された0を表すデータLMVxは、換算テーブル4
305に入力され、次いで、換算テーブル4305で
は、入力されたデータLMVxがセグメント動きベクト
ル水平成分MVFixに換算され、出力端子を通して出
力される。ここで、データLMVxは0なので、−1が
セグメント動きベクトル水平成分MVSgxとして出力
される。
The data LMVx representing 0 output from the second flip-flop 4304 is stored in the conversion table 4
Then, in the conversion table 4305, the input data LMVx is converted into a segment motion vector horizontal component MVFix and output through an output terminal. Here, since the data LMVx is 0, -1 is output as the segment motion vector horizontal component MVSgx.

【0337】以降パルス信号CK1の各パルスでは、比
較器4101から出力された第1および第2セグメント
ブロックディストーションと第2フリップフロップ41
06にラッチされた同じセグメントのセグメントブロッ
クディストーションとが比較されるので、それまでに入
力された第1セグメントブロックディストーションの中
から最小の第1セグメントブロックディストーションD
1(x,y)およびそのセグメント動きベクトルMVS
gy,MVSgx、並びに、それまでに入力された第2
セグメントブロックディストーションの中から最小の第
2セグメントブロックディストーションD2(x,y)
およびそのセグメント動きベクトルMVSgy,MVS
gxが、パルス信号CK1の1クロック毎に交互に求め
られる。
Thereafter, in each pulse of the pulse signal CK1, the first and second segment block distortions output from the comparator 4101 and the second flip-flop 41 are output.
06 is compared with the segment block distortion of the same segment latched at 06, the smallest first segment block distortion D among the first segment block distortions input so far is compared.
1 (x, y) and its segment motion vector MVS
gy, MVSgx, and the second input
Minimum second segment block distortion D2 (x, y) among segment block distortions
And its segment motion vectors MVSgy, MVS
gx is obtained alternately every clock of the pulse signal CK1.

【0338】次に、クロックパルス信号CK1の30ク
ロック目では、最小セグメントブロックディストーショ
ン検出ユニット4100の第1セレクタ付きフリップフ
ロップ4107、セグメント動きベクトル垂直成分検出
ユニット4200の第1セレクタ付きフリップフロップ
4205およびセグメント動きベクトル水平成分検出ユ
ニット4300の第1セレクタ付きフリップフロップ4
306では、パルス信号CK2のダウンエッジに同期し
て立上がったパルス信号SMV1によって、それぞれの
セレクタ4401の入力端子Bと出力端子Yが電気的に
接続される。
Next, at the 30th clock of the clock pulse signal CK1, the flip-flop 4107 with the first selector of the minimum segment block distortion detecting unit 4100, the flip-flop 4205 with the first selector of the segment motion vector vertical component detecting unit 4200 and the segment Flip-flop 4 with first selector of motion vector horizontal component detection unit 4300
At 306, the input terminal B and the output terminal Y of each selector 4401 are electrically connected by the pulse signal SMV1 rising in synchronization with the down edge of the pulse signal CK2.

【0339】次に、クロックパルス信号CK1の31ク
ロック目では、最小セグメントブロックディストーショ
ン検出ユニット4100の第1セレクタ付きフリップフ
ロップ4107においては、第2フリップフロップ41
06に保持されたD1(2,1)がフリップフロップ4
402にラッチされ、出力端子Oを通して最小第1セグ
メントブロックディストーションとして出力される。
Next, at the 31st clock of the clock pulse signal CK1, in the flip-flop 4107 with the first selector of the minimum segment block distortion detecting unit 4100, the second flip-flop 41
D1 (2,1) held at 06 is flip-flop 4
The signal is latched at 402 and output as the minimum first segment block distortion through the output terminal O.

【0340】同時に、セグメント動きベクトル垂直成分
検出ユニット4200の第1セレクタ付きフリップフロ
ップ4205においては、換算テーブル4204から出
力された1を表すセグメント動きベクトル垂直成分MV
Fiyがフリップフロップ4402にラッチされ、出力
端子Oを通して第1セグメント動きベクトル垂直成分M
VSg1yとして出力される。
At the same time, in the flip-flop 4205 with the first selector of the segment motion vector vertical component detection unit 4200, the segment motion vector vertical component MV representing 1 output from the conversion table 4204
Fiy is latched by the flip-flop 4402 and the first segment motion vector vertical component M
It is output as VSg1y.

【0341】同時に、セグメント動きベクトル水平成分
検出ユニット4300の第1セレクタ付きフリップフロ
ップ4306においては、換算テーブル4305から出
力された1を表すセグメント動きベクトル水平成分MV
Fixがフリップフロップ4402にラッチされ、出力
端子Oを通して第1セグメント動きベクトル水平成分M
VSg1xとして出力される。
At the same time, in the flip-flop 4306 with the first selector of the segment motion vector horizontal component detection unit 4300, the segment motion vector horizontal component MV representing 1 outputted from the conversion table 4305
Fix is latched by the flip-flop 4402 and the first segment motion vector horizontal component M
It is output as VSg1x.

【0342】すなわち、現画像第1セグメントブロック
に対する最小第1セグメントブロックディストーション
D1(2,1)および第1セグメント動きベクトルMV
Sg1(1,0)が求められたことになる。また、クロ
ックパルス信号CK1の31クロック目では、最小セグ
メントブロックディストーション検出ユニット4100
の第2セレクタ付きフリップフロップ4108、セグメ
ント動きベクトル垂直成分検出ユニット4200の第2
セレクタ付きフリップフロップ4206およびセグメン
ト動きベクトル水平成分検出ユニット4300の第2セ
レクタ付きフリップフロップ4307では、パルス信号
CK2のダウンエッジに同期して立上がったパルス信号
SMV2によって、それぞれのセレクタ4401の入力
端子Bと出力端子Yが電気的に接続される。
That is, the minimum first segment block distortion D1 (2,1) for the current image first segment block and the first segment motion vector MV
This means that Sg1 (1,0) has been obtained. In the 31st clock of the clock pulse signal CK1, the minimum segment block distortion detection unit 4100
Of the second vertical selector 4200 of the segment motion vector detection unit 4200
In the flip-flop with selector 4206 and the flip-flop with second selector 4307 of the segment motion vector horizontal component detection unit 4300, the input terminal B of each selector 4401 is supplied by the pulse signal SMV2 rising in synchronization with the down edge of the pulse signal CK2. And the output terminal Y are electrically connected.

【0343】次に、クロックパルス信号CK1の32ク
ロック目では、最小セグメントブロックディストーショ
ン検出ユニット4100の第2セレクタ付きフリップフ
ロップ4108においては、第2フリップフロップ41
06に保持されたD2(1,1)がフリップフロップ4
402にラッチされ、出力端子Oを通して最小第2セグ
メントブロックディストーションとして出力される。
Next, at the 32nd clock of the clock pulse signal CK1, in the flip-flop 4108 with the second selector of the minimum segment block distortion detecting unit 4100, the second flip-flop 41
D2 (1,1) held at 06 is flip-flop 4
The signal is latched at 402 and output as the minimum second segment block distortion through the output terminal O.

【0344】同時に、セグメント動きベクトル垂直成分
検出ユニット4200の第2セレクタ付きフリップフロ
ップ4206においては、換算テーブル4204から出
力された0を表すセグメント動きベクトル垂直成分MV
Fiyがフリップフロップ4402にラッチされ、出力
端子Oを通して第2セグメント動きベクトル垂直成分M
VSg2yとして出力される。
At the same time, in the flip-flop 4206 with the second selector of the segment motion vector vertical component detection unit 4200, the segment motion vector vertical component MV representing 0 output from the conversion table 4204.
Fiy is latched by the flip-flop 4402 and the second segment motion vector vertical component M
Output as VSg2y.

【0345】同時に、セグメント動きベクトル水平成分
検出ユニット4300の第2セレクタ付きフリップフロ
ップ4307においては、換算テーブル4305から出
力された0を表すセグメント動きベクトル水平成分MV
Fixがフリップフロップ4402にラッチされ、出力
端子Oを通して第2セグメント動きベクトル水平成分M
VSg2xとして出力される。
At the same time, in the flip-flop 4307 with the second selector of the segment motion vector horizontal component detection unit 4300, the segment motion vector horizontal component MV representing 0 outputted from the conversion table 4305
Fix is latched by the flip-flop 4402, and the second segment motion vector horizontal component M
Output as VSg2x.

【0346】すなわち、現画像第2セグメントブロック
に対する最小第2セグメントブロックディストーション
D2(1,1)および第2セグメント動きベクトルMV
Sg2(0,0)が求められたことになる。次に、フィ
ールドブロックディストーション算出ユニット5000
において、セグメントブロックディストーション算出ユ
ニット3000の同じプロセッサエレメントPE(x,
y)で算出された各第1セグメントブロックディストー
ションD1(x,y)と各第2セグメントブロックディ
ストーションD2(x,y)を加算して現画像フィール
ドブロック200および複数のフィールド候補ブロック
500に対応するフィールドブロックディストーション
Dis(x,y)を算出する動作を図10に示されたタ
イムチャートに基づいて説明する。
That is, the minimum second segment block distortion D2 (1,1) for the current image second segment block and the second segment motion vector MV
This means that Sg2 (0,0) has been obtained. Next, the field block distortion calculation unit 5000
, The same processor element PE (x, x) of the segment block distortion calculation unit 3000
Each of the first segment block distortions D1 (x, y) calculated in y) and each of the second segment block distortions D2 (x, y) are added to correspond to the current image field block 200 and the plurality of field candidate blocks 500. The operation of calculating the field block distortion Dis (x, y) will be described based on the time chart shown in FIG.

【0347】ここで、第1フィールドブロックディスト
ーション算出ユニット5100、第2フィールドブロッ
クディストーション算出ユニット5200および第3フ
ィールドブロックディストーション算出ユニット530
0は同じ動作をするので、第1フィールドブロックディ
ストーション算出ユニット5100の動作を例に説明す
る。
Here, the first field block distortion calculation unit 5100, the second field block distortion calculation unit 5200, and the third field block distortion calculation unit 530
Since 0 performs the same operation, the operation of the first field block distortion calculation unit 5100 will be described as an example.

【0348】なお、図10におけるYOは、第1フィー
ルドブロックディストーション算出ユニット5100の
出力端子Y0から出力されたフィールドブロックディス
トーションDis(x,y)を表す。まず、クロックパ
ルス信号CK1の24クロック目では、パルス信号CK
2に同期して、セグメントブロックディストーション算
出ユニット3000で算出されたD1(0,0)が入力
端子A0を通して入力され、加算器5002の入力端子
Bに入力される。次いで、加算器5002では、入力端
子A0を通して入力されたD1(0,0)が出力端子Y
を通して出力される。
Note that YO in FIG. 10 represents the field block distortion Dis (x, y) output from the output terminal Y0 of the first field block distortion calculation unit 5100. First, in the 24th clock of the clock pulse signal CK1, the pulse signal CK
In synchronization with 2, the D1 (0,0) calculated by the segment block distortion calculation unit 3000 is input through the input terminal A0 and input to the input terminal B of the adder 5002. Next, in the adder 5002, D1 (0,0) input through the input terminal A0 is output to the output terminal Y.
Is output through

【0349】次に、クロックパルス信号CK1の25ク
ロック目では、パルス信号CK2に同期して、フリップ
フロップ5001では、D1(0,0)がラッチされ、
加算器5002の入力端子Aに入力される。同時に、セ
グメントブロックディストーション算出ユニット300
0で算出されたD2(0,0)が入力端子A0を通して
入力され、加算器5002の入力端子Bに入力される。
Next, at the 25th clock of the clock pulse signal CK1, the flip-flop 5001 latches D1 (0,0) in synchronization with the pulse signal CK2.
The signal is input to the input terminal A of the adder 5002. At the same time, the segment block distortion calculating unit 300
D2 (0,0) calculated at 0 is input through the input terminal A0 and input to the input terminal B of the adder 5002.

【0350】次いで、加算器5002では、入力端子A
を通して入力されたD1(0,0)と入力端子Bを通し
て入力されたD2(0,0)とが加算され、フィールド
ブロックディストーションDis(0,0)が出力端子
Yを通して出力される。また、セレクタ付きフリップフ
ロップ5003では、パルス信号CTEの立ち上りに同
期して、セレクタ4401の入力端子Bと出力端子Yが
電気的に接続される。
Next, in the adder 5002, the input terminal A
D1 (0,0) inputted through the input terminal B and D2 (0,0) inputted through the input terminal B are added, and the field block distortion Dis (0,0) is outputted through the output terminal Y. In the flip-flop with selector 5003, the input terminal B and the output terminal Y of the selector 4401 are electrically connected in synchronization with the rise of the pulse signal CTE.

【0351】次に、クロックパルス信号CK1の26ク
ロック目では、セレクタ付きフリップフロップ5003
では、パルス信号CK2に同期して、加算器5002か
ら出力されたDis(0,0)がフリップフロップ44
02にラッチされ、出力端子Y0を通して出力される。
同時に、フリップフロップ5001では、D2(0,
0)がラッチされ、加算器5002の入力端子Aに入力
される。同時に、セグメントブロックディストーション
算出ユニット3000で算出されたD1(1,0)が入
力端子A0を通して入力され、加算器5002の入力端
子Bに入力される。
Next, at the 26th clock of the clock pulse signal CK1, the flip-flop with selector 5003
Then, in synchronization with the pulse signal CK2, the Dis (0,0) output from the adder 5002 is
02 and is output through the output terminal Y0.
At the same time, D2 (0,
0) is latched and input to the input terminal A of the adder 5002. At the same time, D1 (1,0) calculated by the segment block distortion calculation unit 3000 is input through the input terminal A0 and input to the input terminal B of the adder 5002.

【0352】次いで、加算器5002では、入力端子A
を通して入力されたD2(0,0)と入力端子Bを通し
て入力されたD1(1,0)とが加算され、出力端子Y
を通して出力される。また、セレクタ付きフリップフロ
ップ5003では、パルス信号CTEのダウンエッジに
同期して、セレクタ4401の入力端子Aと出力端子Y
が電気的に接続される。
Next, in the adder 5002, the input terminal A
D2 (0,0) input through the input terminal and D1 (1,0) input through the input terminal B are added, and the output terminal Y
Is output through In the flip-flop with selector 5003, the input terminal A and the output terminal Y of the selector 4401 are synchronized with the down edge of the pulse signal CTE.
Are electrically connected.

【0353】次に、クロックパルス信号CK1の27ク
ロック目では、セレクタ付きフリップフロップ5003
では、パルス信号CK2に同期して、フリップフロップ
4402に保持されたDis(0,0)がフリップフロ
ップ4402にラッチされ、出力端子Y0を通して出力
される。同時に、フリップフロップ5001では、D1
(1,0)がラッチされ、加算器5002の入力端子A
に入力される。同時に、セグメントブロックディストー
ション算出ユニット3000で算出されたD2(1,
0)が入力端子A0を通して入力され、加算器5002
の入力端子Bに入力される。
Next, at the 27th clock of the clock pulse signal CK1, the flip-flop with selector 5003
Then, in synchronization with the pulse signal CK2, Dis (0,0) held in the flip-flop 4402 is latched in the flip-flop 4402 and output through the output terminal Y0. At the same time, in flip-flop 5001, D1
(1, 0) is latched and the input terminal A of the adder 5002 is
Is input to At the same time, D2 (1,1) calculated by the segment block distortion calculation unit 3000
0) is input through the input terminal A0 and the adder 5002
Is input to the input terminal B.

【0354】次いで、加算器5002では、入力端子A
を通して入力されたD1(1,0)と入力端子Bを通し
て入力されたD2(1,0)とが加算され、フィールド
ブロックディストーションDis(1,0)が出力端子
Yを通して出力される。また、セレクタ付きフリップフ
ロップ5003では、パルス信号CTEの立ち上りに同
期して、セレクタ4401の入力端子Bと出力端子Yが
電気的に接続される。
Next, in the adder 5002, the input terminal A
(1, 0) input through the input terminal B and D2 (1, 0) input through the input terminal B are added, and the field block distortion Dis (1, 0) is output through the output terminal Y. In the flip-flop with selector 5003, the input terminal B and the output terminal Y of the selector 4401 are electrically connected in synchronization with the rise of the pulse signal CTE.

【0355】以降2クロック毎に順次DiS(x,y)
が加算器5002で算出されるとともに、セレクタ付き
フリップフロップ5003のフリップフロップ4402
にラッチされ、クロックパルス信号CK1の28クロッ
ク目および29クロック目では、Dis(1,0)が出
力端子Oを通して出力され、次いで、クロックパルス信
号CK1の30クロック目および31クロック目では、
Dis(2,0)が出力端子Oを通して出力される。
Thereafter, DiS (x, y) is sequentially set every two clocks.
Is calculated by the adder 5002 and the flip-flop 4402 of the flip-flop 5003 with the selector.
At the 28th clock and the 29th clock of the clock pulse signal CK1, Dis (1,0) is output through the output terminal O. Then, at the 30th clock and the 31st clock of the clock pulse signal CK1,
Dis (2,0) is output through the output terminal O.

【0356】次に、フィールドブロック特定ユニット6
000において、フィールドブロックディストーション
算出ユニット5000で算出された各フィールドブロッ
クディストーションDis(x,y)の中から最小のフ
ィールドブロックディストーションDis(x,y)を
検出し、この最小フィールドブロックディストーション
Dis(x,y)の第1セグメントブロックディストー
ションD1(x,y)および第2セグメントブロックデ
ィストーションD2(x,y)が算出されたプロセッサ
エレメントPE(x,y)の配置位置に基づいてフィー
ルド動きベクトルMVFiを求める動作を図10に示さ
れたタイムチャートに基づいて説明する。
Next, the field block specifying unit 6
000, a minimum field block distortion Dis (x, y) is detected from among the field block distortions Dis (x, y) calculated by the field block distortion calculation unit 5000, and the minimum field block distortion Dis (x, y) is detected. The field motion vector MVFi is obtained based on the arrangement position of the processor element PE (x, y) in which the first segment block distortion D1 (x, y) and the second segment block distortion D2 (x, y) of y) are calculated. The operation will be described based on the time chart shown in FIG.

【0357】なお、図10におけるPE(0,0)は、
プロセッサエレメントPE(0,0)の第2フリップフ
ロップ3803にラッチされた第1セグメントブロック
ディストーションD1(x,y)および第2セグメント
ブロックディストーションD2(x,y)を表し、YO
は、第1フィールドブロックディストーション算出ユニ
ット5100の出力端子Y0から出力されたフィールド
ブロックディストーションDis(x,y)を表す。ま
た、Myはフィールド動きベクトル垂直成分検出ユニッ
ト6200のフリップフロップ6202にラッチされた
データを表し、Mxはフィールド動きベクトル水平成分
検出ユニット6300のフリップフロップ6303にラ
ッチされたデータを表す。
The PE (0,0) in FIG.
The first segment block distortion D1 (x, y) and the second segment block distortion D2 (x, y) latched by the second flip-flop 3803 of the processor element PE (0,0) are represented by YO.
Represents the field block distortion Dis (x, y) output from the output terminal Y0 of the first field block distortion calculation unit 5100. In addition, My represents data latched in the flip-flop 6202 of the field motion vector vertical component detection unit 6200, and Mx represents data latched in the flip-flop 6303 of the field motion vector horizontal component detection unit 6300.

【0358】まず、クロックパルス信号CK1の24ク
ロック目および25クロック目では、フィールド動きベ
クトル水平成分検出ユニット6300のカウンタ630
1では、クロックパルス信号CK1の24クロック目の
ダウンエッジに同期して立ち上がったパルス信号LD2
がカウンタ6301の入力端子CLに入力され、カウン
タ6301では、内部データが0にリセットされる。
First, at the 24th clock and the 25th clock of the clock pulse signal CK1, the counter 630 of the field motion vector horizontal component detecting unit 6300 is used.
1, the pulse signal LD2 that rises in synchronization with the 24th clock's down edge of the clock pulse signal CK1
Is input to the input terminal CL of the counter 6301, and the internal data is reset to 0 in the counter 6301.

【0359】次に、クロックパルス信号CK1の26ク
ロック目では、最小フィールドブロックディストーショ
ン検出ユニット6100においては、パルス信号CK2
に同期して、フィールドブロックディストーション算出
ユニット5000で算出されたDis(0,0),Di
s(0,1),Dis(0,2)がそれぞれ比較器61
01の入力端子A0,A1,A2に入力される。
Next, at the 26th clock of the clock pulse signal CK1, the minimum field block distortion detection unit 6100 outputs the pulse signal CK2.
In synchronization with the above, Dis (0,0), Di calculated by the field block distortion calculation unit 5000
s (0,1) and Dis (0,2) are output from the comparator 61, respectively.
01 are input to input terminals A0, A1, and A2.

【0360】次いで、比較器6101では、これらのフ
ィールドブロックディストーションが比較され、最小値
のフィールドブロックディストーションが出力端子Yか
ら出力され、比較器6103の入力端子Aおよびセレク
タ6104の入力端子Bに入力される。また、比較器6
101では、最小フィールドブロックディストーション
が入力された入力端子を表すデータLMVyが出力端子
Mから出力され、フィールド動きベクトル垂直成分検出
ユニット6200のセレクタ6201の入力端子Bに入
力される。ここで、最小フィールドブロックディストー
ションは、Dis(0,0)であり、データLMVy
は、0を表すデータとなる。
Next, the comparator 6101 compares these field block distortions, outputs the minimum value field block distortion from the output terminal Y, and inputs it to the input terminal A of the comparator 6103 and the input terminal B of the selector 6104. You. Also, the comparator 6
At 101, data LMVy representing the input terminal to which the minimum field block distortion is input is output from the output terminal M, and is input to the input terminal B of the selector 6201 of the field motion vector vertical component detection unit 6200. Here, the minimum field block distortion is Dis (0,0) and the data LMVy
Is data representing 0.

【0361】次いで、比較器6103では、入力端子A
を通して入力されたDis(0,0)と入力端子Bから
入力されたデータとが比較される。ここで、比較器61
03では、入力端子Bを通して論理和演算器6102の
演算結果が入力されるが、論理和演算器6102では、
クロックパルス信号CK1の26クロック目のダウンエ
ッジに同期してパルス信号LD3が入力端子Aを通して
入力され、出力端子Yから最大値としてすべてのビット
が1であるデータが出力されるので、比較器6103で
は、この最大値を示すデータが入力端子Bを通して入力
される。すなわち、比較器6103では、Dis(0,
0)のほうが小さい値となるため、出力端子から1を表
すデータMinが出力される。次いで、セレクタ610
4では、入力端子Sに入力されたデータMinが1のた
め、入力端子Bと出力端子Yが電気的に接続され、入力
端子Bから入力されたDis(0,0)が出力端子Yか
ら出力される。
Next, in the comparator 6103, the input terminal A
Is compared with the data input from the input terminal B. Here, the comparator 61
03, the operation result of the OR operation unit 6102 is input through the input terminal B, but in the OR operation unit 6102,
The pulse signal LD3 is input through the input terminal A in synchronization with the 26th clock falling edge of the clock pulse signal CK1, and data in which all bits are 1 as the maximum value is output from the output terminal Y. In this case, data indicating the maximum value is input through the input terminal B. That is, in the comparator 6103, Dis (0,
Since 0) has a smaller value, data Min representing 1 is output from the output terminal. Next, the selector 610
In No. 4, since the data Min input to the input terminal S is 1, the input terminal B and the output terminal Y are electrically connected, and Dis (0, 0) input from the input terminal B is output from the output terminal Y. Is done.

【0362】一方、クロックパルス信号CK1の26ク
ロック目のフィールド動きベクトル垂直成分検出ユニッ
ト6200においては、セレクタ6201では、最小セ
グメントブロックディストーション検出ユニット610
0の比較器6103から出力されたデータMinが入力
端子Sを通して入力され、比較器6101から出力され
たデータLMVyが入力端子Bを通して入力される。こ
こで、セレクタ6201では、入力端子Sを通して入力
されたデータMinが1を表すので、入力端子Bと出力
端子Yとが電気的に接続され、入力端子Bを通して入力
された0を表すデータLMVyが出力端子Yを通して出
力される。
On the other hand, in the field motion vector vertical component detection unit 6200 at the 26th clock of the clock pulse signal CK1, the selector 6201 selects the minimum segment block distortion detection unit 610.
Data Min output from the comparator 6103 of 0 is input through the input terminal S, and data LMVy output from the comparator 6101 is input through the input terminal B. Here, in the selector 6201, since the data Min inputted through the input terminal S represents 1, the input terminal B and the output terminal Y are electrically connected, and the data LMVy representing 0 inputted through the input terminal B is It is output through the output terminal Y.

【0363】さらに、クロックパルス信号CK1の26
クロック目のフィールド動きベクトル水平成分検出ユニ
ット6300においては、カウンタ6301では、クロ
ックパルス信号CK1の24クロック目および25クロ
ック目で0にリセットされた内部データが、パルス信号
CTEが1であり、パルス信号CK2おから1に立上が
るタイミングに同期して、出力端子Qnを通して出力さ
れる。
Further, the clock pulse signal CK1
In the field motion vector horizontal component detection unit 6300 at the clock, in the counter 6301, the internal data reset to 0 at the 24th clock and the 25th clock of the clock pulse signal CK1, the pulse signal CTE is 1, The signal is output through the output terminal Qn in synchronization with the timing of rising from CK2 to 1.

【0364】次いで、セレクタ6302では、最小フィ
ールドブロックディストーション検出ユニット6100
の比較器6103から出力されたデータMinが入力端
子Sを通して入力され、カウンタ6301から出力され
たデータが入力端子Bを通して入力される。ここで、セ
レクタ6302では、入力端子Sを通して入力されたデ
ータMinが1を表すので、入力端子Bと出力端子Yと
が電気的に接続され、入力端子Bを通して入力された0
を表すデータLMVxが出力端子を通して出力される。
Next, in the selector 6302, the minimum field block distortion detecting unit 6100
Of the comparator 6103 is input through the input terminal S, and the data output from the counter 6301 is input through the input terminal B. Here, in the selector 6302, since the data Min inputted through the input terminal S represents 1, the input terminal B and the output terminal Y are electrically connected, and the 0 inputted through the input terminal B is 0.
Is output through the output terminal.

【0365】次に、クロックパルス信号CK1の27ク
ロック目では、最小フィールドブロックディストーショ
ン検出ユニット6100においては、パルス信号CK2
に同期して、セレクタ6104から出力されたDis
(0,0)がフリップフロップ6105にラッチされ
る。同時に、フィールドブロックディストーション算出
ユニット5000で算出されたDis(0,0),Di
s(0,1),Dis(0,2)がそれぞれ比較器61
01の入力端子A0,A1,A2に再度入力される。
Next, at the 27th clock of the clock pulse signal CK1, the minimum field block distortion detection unit 6100 outputs the pulse signal CK2.
, And the Dis output from the selector 6104
(0, 0) is latched by the flip-flop 6105. At the same time, Dis (0,0), Di calculated by the field block distortion calculation unit 5000.
s (0,1) and Dis (0,2) are output from the comparator 61, respectively.
01 are again input to the input terminals A0, A1, and A2.

【0366】次いで、比較器6101では、これらのフ
ィールドブロックディストーションが比較され、Dis
(0,0)が出力端子Yから出力され、比較器6103
の入力端子Aおよびセレクタ6104の入力端子Bに入
力される。また、比較器6101では、入力端子A0を
表し、0を表すデータLMVyが出力端子Mから出力さ
れ、フィールド動きベクトル垂直成分検出ユニット62
00のセレクタ6201の入力端子Bに入力される。
Next, the comparator 6101 compares these field block distortions, and
(0, 0) is output from the output terminal Y, and the comparator 6103
And the input terminal B of the selector 6104. In the comparator 6101, data LMVy representing the input terminal A0 and representing 0 is output from the output terminal M, and the field motion vector vertical component detection unit 62
00 is input to the input terminal B of the selector 6201.

【0367】次いで、比較器6103では、入力端子A
を通して入力されたDis(0,0)と入力端子Bから
入力されたデータとを比較する。ここで、比較器610
3では、入力端子Bを通して論理和演算器6102の演
算結果が入力されるが、論理和演算器6102では、1
を表すパルス信号LD3が入力端子Aを通して入力され
ており、出力端子Yから最大値としてすべてのビットが
1であるデータが出力されるので、比較器6103で
は、この最大値を示すデータが入力端子Bを通して入力
される。すなわち、比較器6103では、Dis(0,
0)のほうが小さい値となるため、出力端子から1を表
すデータMinが出力される。次いで、セレクタ610
4では、入力端子Sに入力されたデータMinが1のた
め、入力端子Bと出力端子Yが電気的に接続され、入力
端子Bから入力されたDis(0,0)が出力端子Yか
ら出力される。
Next, in the comparator 6103, the input terminal A
Is compared with the data input from input terminal B. Here, the comparator 610
3, the operation result of the logical sum operation unit 6102 is input through the input terminal B.
Is input through the input terminal A, and data in which all the bits are 1 is output from the output terminal Y as a maximum value. Input through B. That is, in the comparator 6103, Dis (0,
Since 0) has a smaller value, data Min representing 1 is output from the output terminal. Next, the selector 610
In No. 4, since the data Min input to the input terminal S is 1, the input terminal B and the output terminal Y are electrically connected, and Dis (0, 0) input from the input terminal B is output from the output terminal Y. Is done.

【0368】一方、クロックパルス信号CK1の27ク
ロック目のフィールド動きベクトル垂直成分検出ユニッ
ト6200においては、パルス信号CK2に同期して、
セレクタ6201から出力された0を表すデータLMV
yがフリップフロップ6202にラッチされる。同時
に、セレクタ6201では、最小フィールドブロックデ
ィストーション検出ユニット6100の比較器6103
から出力されたデータMinが入力端子Sを通して入力
され、フリップフロップ6202から出力された0を表
すデータLMVy(My)が入力端子Aを通して入力さ
れ、比較器6101から出力されたデータLMVyが入
力端子Bを通して入力される。ここで、セレクタ620
1では、入力端子Sを通して入力されたデータMinが
1を表すので、入力端子Bと出力端子Yとが電気的に接
続され、入力端子Bを通して入力された0を表すデータ
LMVyが出力端子Yを通して出力される。
On the other hand, in the field motion vector vertical component detection unit 6200 at the 27th clock of the clock pulse signal CK1, in synchronization with the pulse signal CK2,
Data LMV representing 0 output from selector 6201
y is latched in flip-flop 6202. At the same time, in the selector 6201, the comparator 6103 of the minimum field block distortion detection unit 6100
Is output through an input terminal S, data LMVy (My) representing 0 output from a flip-flop 6202 is input through an input terminal A, and data LMVy output from a comparator 6101 is input through an input terminal B. Is entered through Here, the selector 620
In the case of 1, since the data Min inputted through the input terminal S represents 1, the input terminal B and the output terminal Y are electrically connected, and the data LMVy representing 0 inputted through the input terminal B passes through the output terminal Y. Is output.

【0369】また、フリップフロップ6202から出力
された0を表すデータLMVy(My)は、換算テーブ
ル6203に入力され、次いで、換算テーブル6203
では、入力されたデータLMVy(My)がフィールド
動きベクトル垂直成分MVFiyに換算され、出力端子
を通して出力される。ここで、データLMVyは0なの
で、−1がフィールド動きベクトル垂直成分MVFiy
として出力される さらに、クロックパルス信号CK1の27クロック目の
フィールド動きベクトル水平成分検出ユニット6300
においては、パルス信号CK2に同期して、セレクタ6
302から出力された0を表すデータLMVxがフリッ
プフロップ6303にラッチされる。同時に、カウンタ
6301では、0を表す内部データが出力端子Qnを通
して出力されている。
The data LMVy (My) representing 0 output from the flip-flop 6202 is input to the conversion table 6203, and then the conversion table 6203
In this example, the input data LMVy (My) is converted into a field motion vector vertical component MVFiy and output through an output terminal. Here, since the data LMVy is 0, -1 is the field motion vector vertical component MVFiy.
Further, the field motion vector horizontal component detection unit 6300 at the 27th clock of the clock pulse signal CK1
, The selector 6 is synchronized with the pulse signal CK2.
Data LMVx representing 0 output from 302 is latched by flip-flop 6303. At the same time, in the counter 6301, internal data representing 0 is output through the output terminal Qn.

【0370】次いで、セレクタ6302では、最小フィ
ールドブロックディストーション検出ユニット6100
の比較器6103から出力されたデータMinが入力端
子Sを通して入力され、フリップフロップ6303から
出力された0を表すデータLMVx(Mx)が入力端子
Aを通して入力され、カウンタ6301から出力された
データが入力端子Bを通して入力される。ここで、セレ
クタ6302では、入力端子Sを通して入力されたデー
タMinが1を表すので、入力端子Bと出力端子Yとが
電気的に接続され、入力端子Bを通して入力された0を
表すデータLMVxが出力端子を通して出力される。
Next, in the selector 6302, the minimum field block distortion detecting unit 6100
Is input through an input terminal S, data LMVx (Mx) representing 0 output from a flip-flop 6303 is input through an input terminal A, and data output from a counter 6301 is input through the input terminal S. Input through terminal B. Here, in the selector 6302, since the data Min inputted through the input terminal S represents 1, the input terminal B and the output terminal Y are electrically connected, and the data LMVx representing 0 inputted through the input terminal B becomes Output through the output terminal.

【0371】また、フリップフロップ6303から出力
された0を表すデータLMVx(Mx)は、換算テーブ
ル6304に入力され、次いで、換算テーブル6304
では、入力されたデータLMVx(Mx)がフィールド
動きベクトル水平成分MVFixに換算され、出力端子
を通して出力される。ここで、データLMVxは0なの
で、−1がフィールド動きベクトル水平成分MVFix
として出力される 次に、クロックパルス信号CK1の28クロック目で
は、最小フィールドブロックディストーション検出ユニ
ット6100においては、パルス信号CK2に同期し
て、セレクタ6104から出力されたDis(0,0)
がフリップフロップ6105にラッチされる。同時に、
フィールドブロックディストーション算出ユニット50
00で算出されたDis(1,0),Dis(1,
1),Dis(1,2)がそれぞれ比較器6101の入
力端子A0,A1,A2に入力される。
The data LMVx (Mx) representing 0 output from the flip-flop 6303 is input to the conversion table 6304, and then the conversion table 6304
In this example, the input data LMVx (Mx) is converted into a field motion vector horizontal component MVFix and output through an output terminal. Here, since the data LMVx is 0, −1 is the field motion vector horizontal component MVFix.
Next, at the 28th clock of the clock pulse signal CK1, the minimum field block distortion detection unit 6100 synchronizes with the pulse signal CK2 and outputs Dis (0, 0) output from the selector 6104.
Is latched by the flip-flop 6105. at the same time,
Field block distortion calculation unit 50
Dis (1,0), Dis (1,0) calculated in 00
1) and Dis (1, 2) are input to input terminals A0, A1, A2 of the comparator 6101, respectively.

【0372】次いで、比較器6101では、これらのフ
ィールドブロックディストーションが比較され、Dis
(1,2)が出力端子Yから出力され、比較器6103
の入力端子Aおよびセレクタ6104の入力端子Bに入
力される。また、比較器6101では、入力端子A2を
表し、2を表すデータLMVyが出力端子Mから出力さ
れ、フィールド動きベクトル垂直成分検出ユニット62
00のセレクタ6201の入力端子Bに入力される。
Next, the comparator 6101 compares these field block distortions, and
(1, 2) is output from the output terminal Y and the comparator 6103
And the input terminal B of the selector 6104. In the comparator 6101, data LMVy representing the input terminal A2 and representing 2 is output from the output terminal M, and the field motion vector vertical component detection unit 62
00 is input to the input terminal B of the selector 6201.

【0373】次いで、比較器6103では、入力端子A
を通して入力されたDis(1,2)と入力端子Bから
入力されたデータとを比較する。ここで、比較器610
3では、入力端子Bを通して論理和演算器6102の演
算結果が入力されるが、論理和演算器6102では、パ
ルス信号CK2のダウンエッジに同期してパルス信号L
D3が1から0にダウンして、フリップフロップ610
5にラッチされたDis(0,0)が入力端子Bを通し
て入力され出力端子Yを通して出力されるので、比較器
6103では、入力端子Bを通してDis(0,0)が
入力される。すなわち、比較器6103では、入力端子
Aを通して入力されたDis(1,2)と入力端子Bを
通して入力されたDis(0,0)が比較され、Dis
(0,0)のほうが小さい値となるため、出力端子から
0を表すデータMinが出力される。次いで、セレクタ
6104では、入力端子Sに入力されたデータMinが
0のため、入力端子Aと出力端子Yが電気的に接続さ
れ、フリップフロップ6105にラッチされたDis
(0,0)が入力端子Aを通して入力され、出力端子Y
を通して出力される。
Next, in the comparator 6103, the input terminal A
Is compared with the data input from the input terminal B. Here, the comparator 610
3, the operation result of the OR operation unit 6102 is input through the input terminal B, but the OR operation unit 6102 outputs the pulse signal L in synchronization with the down edge of the pulse signal CK2.
D3 goes from 1 to 0 and flip-flop 610
Since Dis (0,0) latched at 5 is input through the input terminal B and output through the output terminal Y, the comparator 6103 receives Dis (0,0) through the input terminal B. That is, in the comparator 6103, Dis (1,2) input through the input terminal A and Dis (0,0) input through the input terminal B are compared.
Since (0, 0) has a smaller value, data Min representing 0 is output from the output terminal. Next, in the selector 6104, since the data Min input to the input terminal S is 0, the input terminal A and the output terminal Y are electrically connected, and the Dis latched by the flip-flop 6105
(0,0) is input through the input terminal A and the output terminal Y
Is output through

【0374】一方、クロックパルス信号CK1の28ク
ロック目のフィールド動きベクトル垂直成分検出ユニッ
ト6200においては、パルス信号CK2に同期して、
セレクタ6201から出力された0を表すデータLMV
yがフリップフロップ6202にラッチされる。同時
に、セレクタ6201では、最小フィールドブロックデ
ィストーション検出ユニット6100の比較器6103
から出力されたデータMinが入力端子Sを通して入力
され、フリップフロップ6202から出力された0を表
すデータLMVy(My)が入力端子Aを通して入力さ
れ、比較器6101から出力されたデータLMVyが入
力端子Bを通して入力される。ここで、セレクタ620
1では、入力端子Sを通して入力されたデータMinが
0を表すので、入力端子Aと出力端子Yとが電気的に接
続され、フリップフロップ6202にラッチされた0を
表すデータLMVyが入力端子を通して入力され、出力
端子Yを通して出力される。
On the other hand, the field motion vector vertical component detection unit 6200 at the 28th clock of the clock pulse signal CK1 synchronizes with the pulse signal CK2 to
Data LMV representing 0 output from selector 6201
y is latched in flip-flop 6202. At the same time, in the selector 6201, the comparator 6103 of the minimum field block distortion detection unit 6100
Is output through an input terminal S, data LMVy (My) representing 0 output from a flip-flop 6202 is input through an input terminal A, and data LMVy output from a comparator 6101 is input through an input terminal B. Is entered through Here, the selector 620
In the case of 1, since the data Min inputted through the input terminal S represents 0, the input terminal A and the output terminal Y are electrically connected, and the data LMVy representing 0 latched by the flip-flop 6202 is inputted through the input terminal. And output through an output terminal Y.

【0375】また、フリップフロップ6202から出力
された0を表すデータLMVy(My)は、換算テーブ
ル6203に入力され、次いで、換算テーブル6203
では、入力されたデータLMVy(My)がフィールド
動きベクトル垂直成分MVFiyに換算され、出力端子
を通して出力される。ここで、データLMVxは0なの
で、−1がフィールド動きベクトル垂直成分MVFiy
として出力される さらに、クロックパルス信号CK1の28クロック目の
フィールド動きベクトル水平成分検出ユニット6300
においては、パルス信号CK2に同期して、セレクタ6
302から出力された0を表すデータLMVxがフリッ
プフロップ6303にラッチされる。同時に、カウンタ
6301では、1を表す内部データが出力端子Qnを通
して出力される。
The data LMVy (My) representing 0 output from the flip-flop 6202 is input to the conversion table 6203, and then the conversion table 6203
In this example, the input data LMVy (My) is converted into a field motion vector vertical component MVFiy and output through an output terminal. Here, since the data LMVx is 0, -1 is the field motion vector vertical component MVFiy.
Further, the field motion vector horizontal component detection unit 6300 at the 28th clock of the clock pulse signal CK1
, The selector 6 is synchronized with the pulse signal CK2.
Data LMVx representing 0 output from 302 is latched by flip-flop 6303. At the same time, in the counter 6301, internal data representing 1 is output through the output terminal Qn.

【0376】次いで、セレクタ6302では、最小フィ
ールドブロックディストーション検出ユニット6100
の比較器6103から出力されたデータMinが入力端
子Sを通して入力され、フリップフロップ6303から
出力された0を表すデータLMVx(Mx)が入力端子
Aを通して入力され、カウンタ6301から出力された
データが入力端子Bを通して入力される。ここで、セレ
クタ6302では、入力端子Sを通して入力されたデー
タMinが0を表すので、入力端子Aと出力端子Yとが
電気的に接続され、フリップフロップ6303にラッチ
された0を表すデータLMVx(Mx)が入力端子Aを
通して入力され、出力端子Yを通して出力される。
Next, in the selector 6302, the minimum field block distortion detecting unit 6100
Is input through an input terminal S, data LMVx (Mx) representing 0 output from a flip-flop 6303 is input through an input terminal A, and data output from a counter 6301 is input through the input terminal S. Input through terminal B. Here, in the selector 6302, since the data Min input through the input terminal S represents 0, the input terminal A and the output terminal Y are electrically connected, and the data LMVx ( Mx) is input through the input terminal A and output through the output terminal Y.

【0377】また、フリップフロップ6303から出力
された0を表すデータLMVx(Mx)は、換算テーブ
ル6304に入力され、次いで、換算テーブル6304
では、入力されたデータLMVx(Mx)がフィールド
動きベクトル水平成分MVFixに換算され、出力端子
を通して出力される。ここで、データLMVxは0なの
で、−1がフィールド動きベクトル水平成分MVFix
として出力される。
The data LMVx (Mx) representing 0 output from the flip-flop 6303 is input to the conversion table 6304, and then the conversion table 6304
In this example, the input data LMVx (Mx) is converted into a field motion vector horizontal component MVFix and output through an output terminal. Here, since the data LMVx is 0, −1 is the field motion vector horizontal component MVFix.
Is output as

【0378】次に、クロックパルス信号CK1の29ク
ロック目では、パルス信号CK2に同期して、再度、フ
ィールドブロックディストーション算出ユニット500
0で算出されたDis(1,0),Dis(1,1),
Dis(1,2)がそれぞれ最小フィールドブロックデ
ィストーション検出ユニット6100の比較器6101
の入力端子A0,A1,A2に入力される。
Next, at the 29th clock of the clock pulse signal CK1, the field block distortion calculating unit 500 is again synchronized with the pulse signal CK2.
Dis (1,0), Dis (1,1) calculated at 0,
Dis (1,2) is the comparator 6101 of the minimum field block distortion detection unit 6100, respectively.
Are input to the input terminals A0, A1, and A2.

【0379】28クロック目と同様に、最小フィールド
ブロックディストーション検出ユニット6100におい
ては、セレクタ6104から出力されたDis(0,
0)がフリップフロップ6105にラッチされ、セレク
タ6104では、フリップフロップ6105にラッチさ
れたDis(0,0)が入力端子Aを通して入力され、
出力端子Yを通して出力される。
As in the case of the 28th clock, in the minimum field block distortion detection unit 6100, Dis (0,
0) is latched by the flip-flop 6105, and in the selector 6104, Dis (0, 0) latched by the flip-flop 6105 is input through the input terminal A.
It is output through the output terminal Y.

【0380】一方、フィールド動きベクトル垂直成分検
出ユニット6200においては、同様に、セレクタ62
01から出力された0を表すデータLMVyがフリップ
フロップ6202にラッチされ、セレクタ6201で
は、フリップフロップ6202にラッチされた0を表す
データLMVy(My)が入力端子Aを通して入力さ
れ、出力端子Yを通して出力される。また、換算テーブ
ル6203では、−1がフィールド動きベクトル垂直成
分MVFiyとして出力される。
On the other hand, in the field motion vector vertical component detection unit 6200, the selector 62
The data LMVy representing 0 output from 01 is latched by the flip-flop 6202. In the selector 6201, the data LMVy (My) representing 0 latched by the flip-flop 6202 is input through the input terminal A and output through the output terminal Y. Is done. In the conversion table 6203, -1 is output as the field motion vector vertical component MVFiy.

【0381】さらに、フィールド動きベクトル水平成分
検出ユニット6300においては、同様に、セレクタ6
302から出力された0を表すデータLMVxがフリッ
プフロップ6303にラッチされ、セレクタ6302で
は、フリップフロップ6303にラッチされた0を表す
データLMVxが入力端子Aを通して入力され、出力端
子Yを通して出力される。また、換算テーブル6304
では、−1がフィールド動きベクトル水平成分MVFi
xとして出力される。
In the field motion vector horizontal component detection unit 6300, the selector 6
The data LMVx representing 0 output from 302 is latched by the flip-flop 6303. In the selector 6302, the data LMVx representing 0 latched by the flip-flop 6303 is input through the input terminal A and output through the output terminal Y. Also, conversion table 6304
Then, -1 is the field motion vector horizontal component MVFi
Output as x.

【0382】次に、クロックパルス信号CK1の30ク
ロック目では、最小フィールドブロックディストーショ
ン検出ユニット6100においては、パルス信号CK2
に同期して、セレクタ6104から出力されたDis
(0,0)がフリップフロップ6105にラッチされ
る。同時に、フィールドブロックディストーション算出
ユニット5000で算出されたDis(2,0),Di
s(2,1),Dis(2,2)がそれぞれ比較器61
01の入力端子A0,A1,A2に入力される。
Next, at the 30th clock of the clock pulse signal CK1, the minimum field block distortion detection unit 6100 outputs the pulse signal CK2.
, And the Dis output from the selector 6104
(0, 0) is latched by the flip-flop 6105. At the same time, Dis (2,0), Di calculated by the field block distortion calculating unit 5000.
s (2,1) and Dis (2,2) are the comparators 61, respectively.
01 are input to input terminals A0, A1, and A2.

【0383】次いで、比較器6101では、これらのフ
ィールドブロックディストーションが比較され、Dis
(2,1)が出力端子Yから出力され、比較器6103
の入力端子Aおよびセレクタ6104の入力端子Bに入
力される。また、比較器6101では、入力端子D1を
表し、1を表すデータLMVyが出力端子Mから出力さ
れ、フィールド動きベクトル垂直成分検出ユニット62
00のセレクタ6201の入力端子Bに入力される。
Next, the comparator 6101 compares these field block distortions, and
(2, 1) is output from the output terminal Y and the comparator 6103
And the input terminal B of the selector 6104. In the comparator 6101, data LMVy representing the input terminal D1 and representing 1 is output from the output terminal M, and the field motion vector vertical component detection unit 62
00 is input to the input terminal B of the selector 6201.

【0384】次いで、比較器6103では、入力端子A
を通して入力されたDis(2,1)と入力端子Bから
入力されたデータとを比較する。ここで、比較器610
3では、入力端子Bを通して論理和演算器6102の演
算結果が入力されるが、論理和演算器6102では、0
を表すパルス信号LD3が入力され、フリップフロップ
6105にラッチされたDis(0,0)が入力端子A
を通して入力され出力端子Yを通して出力されるので、
比較器6103では、入力端子Bを通してDis(0,
0)が入力される。すなわち、比較器6103では、入
力端子Aを通して入力されたDis(2,1)と入力端
子Bを通して入力されたDis(0,0)が比較され、
Dis(2,1)のほうが小さい値となるため、出力端
子から1を表すデータMinが出力される。次いで、セ
レクタ6104では、入力端子Sに入力されたデータM
inが1のため、入力端子Bと出力端子Yが電気的に接
続され、比較器6101から出力されたDis(2,
1)が入力端子Bを通して入力され、出力端子Yを通し
て出力される。
Next, in the comparator 6103, the input terminal A
Is compared with the data input from the input terminal B. Here, the comparator 610
In 3, the operation result of the logical sum operation unit 6102 is input through the input terminal B.
Is input, and Dis (0,0) latched by the flip-flop 6105 is connected to the input terminal A.
And output through the output terminal Y,
In the comparator 6103, Dis (0,
0) is input. That is, the comparator 6103 compares Dis (2,1) input through the input terminal A with Dis (0,0) input through the input terminal B,
Since Dis (2, 1) has a smaller value, data Min representing 1 is output from the output terminal. Next, in the selector 6104, the data M input to the input terminal S is output.
Since in is 1, the input terminal B and the output terminal Y are electrically connected, and Dis (2, 2) output from the comparator 6101 is output.
1) is input through the input terminal B and output through the output terminal Y.

【0385】一方、クロックパルス信号CK1の30ク
ロック目のフィールド動きベクトル垂直成分検出ユニッ
ト6200においては、パルス信号CK2に同期して、
セレクタ6201から出力された0を表すデータLMV
yがフリップフロップ6202にラッチされる。同時
に、セレクタ6201では、最小フィールドブロックデ
ィストーション検出ユニット6100の比較器6103
から出力されたデータMinが入力端子Sを通して入力
され、フリップフロップ6202から出力された0を表
すデータLMVy(My)が入力端子Aを通して入力さ
れ、比較器6101から出力されたデータLMVyが入
力端子Bを通して入力される。ここで、セレクタ620
1では、入力端子Sを通して入力されたデータMinが
1を表すので、入力端子Bと出力端子Yとが電気的に接
続され、比較器6101から出力された1を表すデータ
LMVyが入力端子を通して入力され、出力端子Yを通
して出力される。
On the other hand, in the field motion vector vertical component detection unit 6200 at the 30th clock of the clock pulse signal CK1, in synchronization with the pulse signal CK2,
Data LMV representing 0 output from selector 6201
y is latched in flip-flop 6202. At the same time, in the selector 6201, the comparator 6103 of the minimum field block distortion detection unit 6100
Is output through an input terminal S, data LMVy (My) representing 0 output from a flip-flop 6202 is input through an input terminal A, and data LMVy output from a comparator 6101 is input through an input terminal B. Is entered through Here, the selector 620
In the case of 1, since the data Min inputted through the input terminal S represents 1, the input terminal B and the output terminal Y are electrically connected, and the data LMVy representing 1 outputted from the comparator 6101 is inputted through the input terminal. And output through an output terminal Y.

【0386】また、フリップフロップ6202から出力
された0を表すデータLMVy(My)は、換算テーブ
ル6203に入力され、次いで、換算テーブル6203
では、入力されたデータLMVy(My)がフィールド
動きベクトル垂直成分MVFiyに換算され、出力端子
を通して出力される。ここで、データLMVyは0なの
で、−1がフィールド動きベクトル垂直成分MVFiy
として出力される さらに、クロックパルス信号CK1の30クロック目の
フィールド動きベクトル水平成分検出ユニット6300
においては、パルス信号CK2に同期して、セレクタ6
302から出力された0を表すデータLMVxがフリッ
プフロップ6303にラッチされる。同時に、カウンタ
6301では、2を表す内部データが出力端子Qnを通
して出力される。
The data LMVy (My) representing 0 output from the flip-flop 6202 is input to the conversion table 6203, and then the conversion table 6203
In this example, the input data LMVy (My) is converted into a field motion vector vertical component MVFiy and output through an output terminal. Here, since the data LMVy is 0, -1 is the field motion vector vertical component MVFiy.
Further, the field motion vector horizontal component detection unit 6300 at the 30th clock of the clock pulse signal CK1
, The selector 6 is synchronized with the pulse signal CK2.
Data LMVx representing 0 output from 302 is latched by flip-flop 6303. At the same time, in the counter 6301, internal data representing 2 is output through the output terminal Qn.

【0387】次いで、セレクタ6302では、最小フィ
ールドブロックディストーション検出ユニット6100
の比較器6103から出力されたデータMinが入力端
子Sを通して入力され、フリップフロップ6303から
出力された0を表すデータLMVx(Mx)が入力端子
Aを通して入力され、カウンタ6301から出力された
データが入力端子Bを通して入力される。ここで、セレ
クタ6302では、入力端子Sを通して入力されたデー
タMinが1を表すので、入力端子Bと出力端子Yとが
電気的に接続され、カウンタ6301から出力された2
を表すデータLMVxが入力端子Bを通して入力され、
出力端子を通して出力される。
Next, in the selector 6302, the minimum field block distortion detecting unit 6100
Is input through an input terminal S, data LMVx (Mx) representing 0 output from a flip-flop 6303 is input through an input terminal A, and data output from a counter 6301 is input through the input terminal S. Input through terminal B. Here, in the selector 6302, since the data Min input through the input terminal S represents 1, the input terminal B and the output terminal Y are electrically connected, and the output 2 from the counter 6301 is output.
Is input through an input terminal B,
Output through the output terminal.

【0388】また、フリップフロップ6303から出力
された0を表すデータLMVx(Mx)は、換算テーブ
ル6304に入力され、次いで、換算テーブル6304
では、入力されたデータLMVx(Mx)がフィールド
動きベクトル水平成分MVFixに換算され、出力端子
を通して出力される。ここで、データLMVxは0なの
で、−1がフィールド動きベクトル水平成分MVFix
として出力される。
The data LMVx (Mx) representing 0 output from the flip-flop 6303 is input to the conversion table 6304, and then the conversion table 6304
In this example, the input data LMVx (Mx) is converted into a field motion vector horizontal component MVFix and output through an output terminal. Here, since the data LMVx is 0, −1 is the field motion vector horizontal component MVFix.
Is output as

【0389】次に、クロックパルス信号CK1の31ク
ロック目では、パルス信号CK2に同期して、再度、フ
ィールドブロックディストーション算出ユニット500
0で算出されたDis(2,0),Dis(2,1),
Dis(2,2)がそれぞれ最小フィールドブロックデ
ィストーション検出ユニット6100の比較器6101
の入力端子A0,A1,A2に入力される。
Next, at the 31st clock of the clock pulse signal CK1, the field block distortion calculating unit 500 is again synchronized with the pulse signal CK2.
Dis (2,0), Dis (2,1) calculated at 0,
Dis (2, 2) is the comparator 6101 of the minimum field block distortion detection unit 6100, respectively.
Are input to the input terminals A0, A1, and A2.

【0390】30クロック目と同様に、最小フィールド
ブロックディストーション検出ユニット6100におい
ては、セレクタ6104から出力されたDis(2,
1)がフリップフロップ6105にラッチされ、セレク
タ6104では、フリップフロップ6105にラッチさ
れたDis(2,1)が入力端子Aを通して入力され、
出力端子Yを通して出力される。
As in the case of the 30th clock, in the minimum field block distortion detection unit 6100, Dis (2,
1) is latched by the flip-flop 6105, and in the selector 6104, Dis (2, 1) latched by the flip-flop 6105 is input through the input terminal A,
It is output through the output terminal Y.

【0391】一方、フィールド動きベクトル垂直成分検
出ユニット6200においては、同様に、セレクタ62
01から出力された1を表すデータLMVyがフリップ
フロップ6202にラッチされ、セレクタ6201で
は、フリップフロップ6202にラッチされた1を表す
データLMVy(My)が入力端子Aを通して入力さ
れ、出力端子Yを通して出力される。また、換算テーブ
ル6203では、0がフィールド動きベクトル垂直成分
MVFiyとして出力される。
On the other hand, in the field motion vector vertical component detection unit 6200, the selector 62
The data LMVy representing 1 output from 01 is latched by the flip-flop 6202. In the selector 6201, the data LMVy (My) representing 1 latched by the flip-flop 6202 is input through the input terminal A and output through the output terminal Y. Is done. In the conversion table 6203, 0 is output as the field motion vector vertical component MVFiy.

【0392】さらに、フィールド動きベクトル水平成分
検出ユニット6300においては、同様に、セレクタ6
302から出力された2を表すデータLMVxがフリッ
プフロップ6303にラッチされ、セレクタ6302で
は、フリップフロップ6303にラッチされた2を表す
データLMVxが入力端子Aを通して入力され、出力端
子Yを通して出力される。また、換算テーブル6203
では、1がフィールド動きベクトル水平成分MVFix
として出力される。
In the field motion vector horizontal component detection unit 6300, the selector 6
Data LMVx representing 2 output from 302 is latched by flip-flop 6303. In selector 6302, data LMVx representing 2 latched by flip-flop 6303 is input through input terminal A and output through output terminal Y. Also, conversion table 6203
Where 1 is the field motion vector horizontal component MVFix
Is output as

【0393】また、クロックパルス信号CK1の31ク
ロック目では、最小フィールドブロックディストーショ
ン検出ユニット6100のセレクタ付きフリップフロッ
プ6106、フィールド動きベクトル垂直成分検出ユニ
ット6200のセレクタ付きフリップフロップ6204
およびフィールド動きベクトル水平成分検出ユニット6
300のセレクタ付きフリップフロップ6305では、
パルス信号CK2のダウンエッジに同期して立上がった
パルス信号SMV2によって、それぞれのセレクタ44
01の入力端子Bと出力端子Yが電気的に接続される。
At the 31st clock of the clock pulse signal CK1, the flip-flop 6106 with selector of the minimum field block distortion detection unit 6100 and the flip-flop 6204 with selector of the field motion vector vertical component detection unit 6200 are used.
And field motion vector horizontal component detection unit 6
In the 300 flip-flops with selector 6305,
The pulse signal SMV2 rising in synchronization with the down edge of the pulse signal CK2 causes each selector 44
01 is electrically connected to the input terminal B and the output terminal Y.

【0394】次に、クロックパルス信号CK1の32ク
ロック目では、最小フィールドブロックディストーショ
ン検出ユニット6100のセレクタ付きフリップフロッ
プ6106においては、フリップフロップ6105に保
持されたDis(2,1)がフリップフロップ4402
にラッチされ、出力端子Oを通して最小フィールドブロ
ックディストーションとして出力される。
Next, at the 32nd clock of the clock pulse signal CK1, in the flip-flop 6106 with the selector of the minimum field block distortion detecting unit 6100, the Dis (2,1) held in the flip-flop 6105 is flip-flop 4402.
And output as the minimum field block distortion through the output terminal O.

【0395】同時に、フィールド動きベクトル垂直成分
検出ユニット6200のセレクタ付きフリップフロップ
6204おいては、換算テーブル6203から出力され
た0を表すフィールド動きベクトル垂直成分MVFiy
がフリップフロップ4402にラッチされ、出力端子O
を通してフィールド動きベクトル垂直成分MVFiyと
して出力される。
At the same time, in the flip-flop with selector 6204 of the field motion vector vertical component detection unit 6200, the field motion vector vertical component MVFiy representing 0 output from the conversion table 6203.
Is latched by the flip-flop 4402 and the output terminal O
As a field motion vector vertical component MVFiy.

【0396】同時に、セグメント動きベクトル水平成分
検出ユニット6300のセレクタ付きフリップフロップ
6305においては、換算テーブル6304から出力さ
れた1を表すセグメント動きベクトル水平成分MVFi
xがフリップフロップ4402にラッチされ、出力端子
Oを通してフィールド動きベクトル水平成分MVFix
として出力される。
At the same time, in the flip-flop with selector 6305 of the segment motion vector horizontal component detection unit 6300, the segment motion vector horizontal component MVFi representing 1 output from the conversion table 6304
x is latched by the flip-flop 4402 and the field motion vector horizontal component MVFix is output through the output terminal O.
Is output as

【0397】すなわち、現画像フィールドブロック20
0に対する最小フィールドブロックディストーションD
is(2,1)およびフィールド動きベクトルMVFi
(1,0)が求められたことになる。次に、22クロッ
ク目以降のセグメントブロックディストーション算出ユ
ニット3000の動作を説明する。
That is, the current image field block 20
Minimum field block distortion D for 0
is (2,1) and the field motion vector MVFi
(1, 0) is obtained. Next, the operation of the segment block distortion calculation unit 3000 after the 22nd clock will be described.

【0398】クロックパルス信号CK1の22クロック
目では、図43に示すように、1列目の各プロセッサエ
レメントPE(x,y)および各レジスタ(x,y)の
それぞれの第2フリップフロップ3603に初めて画素
データb(x+2,y)がラッチされ、同時に、現画像
ブロックデータ出力ユニット1000から各プロセッサ
エレメントPE(x,y)に画素データa(2,0)が
転送される。
At the 22nd clock of the clock pulse signal CK1, as shown in FIG. 43, the second flip-flop 3603 of each processor element PE (x, y) and each register (x, y) in the first column is provided. For the first time, the pixel data b (x + 2, y) is latched, and at the same time, the pixel data a (2, 0) is transferred from the current image block data output unit 1000 to each processor element PE (x, y).

【0399】ここで、図43に注目すると、各プロセッ
サエレメントPE(x,y)では、図44に示すよう
に、とサーチウィンドウ400に対して水平方向に2画
素分シフトしたサーチウィンドウ401の画素データb
(x+2,y)がそれぞれ第2フリップフロップ360
3に転送されている。また、画素データa(2,0)
は、現画像フィールドブロック200に対して水平方向
に隣接する現画像フィールドブロック201の最初の画
素データである。
Attention is now directed to FIG. 43. In each processor element PE (x, y), as shown in FIG. Data b
(X + 2, y) is the second flip-flop 360
3 has been transferred. Also, pixel data a (2,0)
Is the first pixel data of the current image field block 201 horizontally adjacent to the current image field block 200.

【0400】すなわち、22クロック目以降は、図44
に示された現画像フィールドブロック201の画素デー
タが現画像ブロックデータ出力ユニット1000から順
次出力され、サーチウィンドウ401の画素データのう
ち、サーチウィンドウ400の画素データと共通する画
素データを除いた残りの画素データがサーチウィンドウ
データ出力ユニット2000から列毎に順次出力され、
14クロック目〜21クロック目と同様に8クロック毎
に水平方向に隣接する現画像フィールドブロックに対応
する第1セグメントブロックディストーションおよび第
2セグメントブロックディストーションが順次求められ
ることになる。
In other words, after the 22nd clock, FIG.
Are output sequentially from the current image block data output unit 1000, and the remaining pixel data of the search window 401 excluding the pixel data common to the pixel data of the search window 400 are output from the current image block data output unit 1000. Pixel data is sequentially output from the search window data output unit 2000 for each column,
Similarly to the 14th to 21st clocks, the first segment block distortion and the second segment block distortion corresponding to the current image field block adjacent in the horizontal direction are obtained sequentially every 8 clocks.

【0401】また、図45に示すように、セグメントブ
ロック特定ユニット4000では、ディストーション算
出ユニット3000で算出された第1セグメントブロッ
クディストーションおよび第2セグメントブロックディ
ストーションがそれぞれ8クロック毎に入力され、第1
セグメント動きベクトルMVSg1および第2セグメン
ト動きベクトルMVSg2が特定される。
As shown in FIG. 45, in the segment block specifying unit 4000, the first segment block distortion and the second segment block distortion calculated by the distortion calculation unit 3000 are input every eight clocks, and
The segment motion vector MVSg1 and the second segment motion vector MVSg2 are specified.

【0402】さらに、フィールドブロックディストーシ
ョン算出ユニット5000では、8クロック毎にフィー
ルドブロックディストーションが算出され、フィールド
ブロック特定ユニットでは、8クロック毎にフィールド
動きベクトルMVFiが特定される。すなわち、第1お
よび第2セグメントブロックディストーション算出処
理、第1および第2セグメント動きベクトルMVSg
1,MVSg2特定処理、フィールドブロックディスト
ーション算出処理、並びに、フィールド動きベクトルM
VFi特定処理のパイプライン化が実現されている。
Further, the field block distortion calculating unit 5000 calculates the field block distortion every eight clocks, and the field block specifying unit specifies the field motion vector MVFi every eight clocks. That is, the first and second segment block distortion calculation processing, the first and second segment motion vectors MVSg
1, MVSg2 specifying process, field block distortion calculating process, and field motion vector M
Pipelining of the VFi specific processing is realized.

【0403】なお、上記実施例では、現画像フィールド
ブロック200を4行2列の画素からなるとしたため、
クロックパルス信号CK1の8パルス毎に動きベクトル
が求められることになるが、図46および図47に示す
ように、現画像フィールドブロック200を(N×2)
行M列の画素からなる現画像フィールドブロック202
で表し、サーチウィンドウ400を(H+N)行L列の
画素からなるサーチウィンドウ402で表した場合に
は、水平方向に隣接した現画像フィールドブロックとこ
の現画像フィールドブロックに対応するM画素分水平方
向にシフトしたサーチウィンドウから求められる動きベ
クトルは、クロックパルス信号CK1の M×N×2 クロックを1サイクルとして順次求められることにな
る。
In the above embodiment, since the current image field block 200 is composed of pixels of 4 rows and 2 columns,
A motion vector is obtained for every eight pulses of the clock pulse signal CK1, but as shown in FIGS. 46 and 47, the current image field block 200 is (N × 2).
Current image field block 202 composed of pixels in row M columns
When the search window 400 is represented by a search window 402 including (H + N) rows and L columns of pixels, a current image field block adjacent in the horizontal direction and M pixels corresponding to the current image field block in the horizontal direction Are obtained sequentially from M × N × 2 clocks of the clock pulse signal CK1 as one cycle.

【0404】また、上記実施例のセグメントブロックデ
ィストーション算出ユニット3000の第1サイドレジ
スタグループ3300は、列毎に一つの第1サイドレジ
スタSR(x,y)によって構成され、第2サイドレジ
スタグループ3400は、列毎に一つの第2サイドレジ
スタSR(x,y)によって構成されているが、現画像
フィールドブロック200を(N×2)行M列の画素か
らなる現画像フィールドブロック202で表し、サーチ
ウィンドウ400を(H+N)行L列の画素からなるサ
ーチウィンドウ402で表した場合には、図48に示す
ように、第1サイドレジスタグループ3301は、列毎
に互いに直列に電気的に接続された(N−1)個の第1
サイドレジスタSR(x,y)によって構成され、第2
サイドレジスタグループ3401は、列毎にそれぞれ互
いに直列に電気的に接続された(N−1)個の第2サイ
ドレジスタSR(x,y)によって構成される。また、
それぞれの第1および第2サイドレジスタSR(x,
y)は、それぞれ隣接する同行の第1および第2サイド
レジスタSR(x,y)と電気的に接続される。 (実施例2)図49〜図70は本発明に係る実施例2の
動きベクトル探索装置を示す図である。本実施例では、
本発明の特徴部分を具体的に説明する。
Also, the first side register group 3300 of the segment block distortion calculation unit 3000 of the above embodiment is constituted by one first side register SR (x, y) for each column, and the second side register group 3400 , One second side register SR (x, y) is provided for each column. When the window 400 is represented by a search window 402 including (H + N) rows and L columns of pixels, as shown in FIG. 48, the first side register groups 3301 are electrically connected to each other in series for each column. (N-1) first
The second register is constituted by a side register SR (x, y).
The side register group 3401 includes (N-1) second side registers SR (x, y) electrically connected in series with each other for each column. Also,
The respective first and second side registers SR (x,
y) are electrically connected to the adjacent first and second side registers SR (x, y) in the same row, respectively. (Embodiment 2) FIGS. 49 to 70 show a motion vector search apparatus according to Embodiment 2 of the present invention. In this embodiment,
The features of the present invention will be specifically described.

【0405】図49に示すように、動きベクトル探索装
置は、現画像ブロックデータ出力ユニット1010、サ
ーチウィンドウデータ出力ユニット2010、セグメン
トブロックディストーション算出ユニット3010、セ
グメントブロック特定ユニット4000、フィールドブ
ロックディストーション算出ユニット5000、フィー
ルドブロック特定ユニット6000および信号出力ユニ
ット7010によって構成されている。
As shown in FIG. 49, the motion vector search apparatus includes a current image block data output unit 1010, a search window data output unit 2010, a segment block distortion calculation unit 3010, a segment block identification unit 4000, and a field block distortion calculation unit 5000. , A field block specifying unit 6000 and a signal output unit 7010.

【0406】ここで、セグメントブロック特定ユニット
4000、フィールドブロックディストーション算出ユ
ニット5000およびフィールドブロック特定ユニット
6000は、実施例1と同じユニットである。現画像ブ
ロックデータ出力ユニット1010は、図50に示すよ
うに、実施例1と同様に、出力端子Rを有し、現画像1
00を部分的に構成する一つの現画像フィールドブロッ
ク200に含まれる現画像第1セグメントブロック21
0の画素データおよび現画像第2セグメントブロック2
20の画素データを時分割でそれぞれ画素毎に出力端子
Rを通してセグメントブロックディストーション算出ユ
ニット3010に出力する。
Here, the segment block specifying unit 4000, the field block distortion calculating unit 5000 and the field block specifying unit 6000 are the same units as in the first embodiment. As shown in FIG. 50, the current image block data output unit 1010 has an output terminal R, as shown in FIG.
00, the current image first segment block 21 included in one current image field block 200 partially constituting
0 pixel data and the current image second segment block 2
The 20 pixel data are output to the segment block distortion calculation unit 3010 through the output terminal R for each pixel in a time-division manner.

【0407】また、現画像フィールドブロック200
は、実施例1と同様に、現画像フィールドブロック20
0が4行2列の画素データによって構成されるものと
し、現画像第1セグメントブロックを2行2列の画素デ
ータ a(0,0),a(0,1),a(1,0),a(1,1) によって表し、現画像第2セグメントブロックを2行2
列の画素データ a(0,3),a(0,4),a(1,3),a(1,4) によって表す。
The current image field block 200
Is the current image field block 20 as in the first embodiment.
0 is composed of pixel data of 4 rows and 2 columns, and the first segment block of the current image is defined as pixel data of 2 rows and 2 columns a (0,0), a (0,1), a (1,0) , a (1,1), and the second segment block of the current image is 2 rows 2
The pixel data of the column is represented by a (0,3), a (0,4), a (1,3), a (1,4).

【0408】サーチウィンドウデータ出力ユニット20
10は、出力端子S0,S1,S2を有し、図50に示
された前符号化画像300上のサーチウィンドウ403
内の画素データを画素毎にそれぞれの端子を通してセグ
メントブロックディストーション算出ユニット3010
に出力する。ここで、サーチウィンドウ403は、図5
0に示すように、現画像フィールドブロック200に対
して水平方向に−2〜+2画素、垂直方向に−2〜+2
画素広げた8行6列の画素データから構成されるものと
し、現画像第1セグメントブロック210の第1セグメ
ント候補ブロックは、6行6列の画素データ c(0,0),c(1,0),c(2,0),c(3,0),c(4,0),c(5,0) ,c(0,1),c(1,1),c(2,1),c(3,1),c(4,1),c(5,1) ,c(0,2),c(1,2),c(2,2),c(3,2),c(4,2),c(5,2) ,c(0,3),c(1,3),c(2,3),c(3,3),c(4,3),c(5,3) ,c(0,4),c(1,4),c(2,4),c(3,4),c(4,4),c(5,4) ,c(0,5),c(1,5),c(2,5),c(3,5),c(4,5),c(5,5) によって構成される図示しない上側サーチウィンドウ内
に存在し、現画像第2セグメントブロック220の第2
セグメント候補ブロックは、6行6列の画素データ c(0,2),c(1,2),c(2,2),c(3,2),c(4,2),c(5,2) ,c(0,3),c(1,3),c(2,3),c(3,3),c(4,3),c(5,3) ,c(0,4),c(1,4),c(2,4),c(3,4),c(4,4),c(5,4) ,c(0,5),c(1,5),c(2,5),c(3,5),c(4,5),c(5,5) ,c(0,6),c(1,6),c(2,6),c(3,6),c(4,6),c(5,6) ,c(0,7),c(1,7),c(2,7),c(3,7),c(4,7),c(5,7) によって構成される図示しない下側サーチウィンドウ内
に存在する。
Search window data output unit 20
10 has output terminals S0, S1, S2, and has a search window 403 on the pre-encoded image 300 shown in FIG.
The block data in the segment block distortion calculation unit 3010 through the pixel data for each pixel through the respective terminals
Output to Here, the search window 403 is shown in FIG.
0, the current image field block 200 is -2 to +2 pixels in the horizontal direction and -2 to +2 pixels in the vertical direction.
The first segment candidate block of the current image first segment block 210 is composed of pixel data c (0,0), c (1, 0), c (2,0), c (3,0), c (4,0), c (5,0), c (0,1), c (1,1), c (2,1 ), c (3,1), c (4,1), c (5,1), c (0,2), c (1,2), c (2,2), c (3,2) , c (4,2), c (5,2), c (0,3), c (1,3), c (2,3), c (3,3), c (4,3), c (5,3), c (0,4), c (1,4), c (2,4), c (3,4), c (4,4), c (5,4), c Upper search window (not shown) composed of (0,5), c (1,5), c (2,5), c (3,5), c (4,5), c (5,5) In the second segment block 220 of the current image.
The segment candidate block is composed of 6 rows and 6 columns of pixel data c (0,2), c (1,2), c (2,2), c (3,2), c (4,2), c (5 , 2), c (0,3), c (1,3), c (2,3), c (3,3), c (4,3), c (5,3), c (0, 4), c (1,4), c (2,4), c (3,4), c (4,4), c (5,4), c (0,5), c (1,5 ), c (2,5), c (3,5), c (4,5), c (5,5), c (0,6), c (1,6), c (2,6) , c (3,6), c (4,6), c (5,6), c (0,7), c (1,7), c (2,7), c (3,7), It exists in a lower search window (not shown) constituted by c (4,7) and c (5,7).

【0409】セグメントブロックディストーション算出
ユニット3010は、図49に示された9個のプロセッ
サエレメントPEにおいて、実施例1と同様に、サーチ
ウィンドウ403内の画素データと現画像フィールドブ
ロック200の画素データに基づいて9個の第1セグメ
ントブロックディストーションおよび9個の第2セグメ
ントブロックディストーションを時分割で算出する。
The segment block distortion calculation unit 3010 is based on the pixel data in the search window 403 and the pixel data of the current image field block 200 in the nine processor elements PE shown in FIG. Then, nine first segment block distortions and nine second segment block distortions are calculated by time division.

【0410】信号出力ユニット7010は、現画像ブロ
ックデータ出力ユニット1010、サーチウィンドウデ
ータ出力ユニット2010、セグメントブロックディス
トーション算出ユニット3010、セグメントブロック
特定ユニット4000、フィールドブロックディストー
ション算出ユニット5000およびフィールドブロック
特定ユニット6000の動作を制御する。
The signal output unit 7010 includes a current image block data output unit 1010, a search window data output unit 2010, a segment block distortion calculation unit 3010, a segment block identification unit 4000, a field block distortion calculation unit 5000, and a field block identification unit 6000. Control behavior.

【0411】本実施例2の動きベクトル探索装置は、現
画像第1セグメントブロックの画素データとサーチウィ
ンドウ403内の9個の第1セグメント候補ブロックの
画素データに基づいて9個の第1セグメントブロックデ
ィストーションを算出するとともに、現画像第2セグメ
ントブロックの画素データとサーチウィンドウ403内
の9個の第2セグメント候補ブロックの画素データに基
づいて第2セグメントブロックディストーションを算出
し、次いで、算出された各第1セグメントブロックディ
ストーションと各第2セグメントブロックディストーシ
ョンを加算して、現画像フィールドブロック210の画
素データとサーチウィンドウ403内の9個のフィール
ド候補ブロック500の画素データとの間のフィールド
ブロックディストーションを算出し、それぞれ実施例1
の全点探索法に対して簡略的な探索方法で第1セグメン
ト動きベクトルMVSg1、第2セグメント動きベクト
ルMVSg2およびフィールド動きベクトルMVFiを
求めるものである。
[0411] The motion vector search apparatus according to the second embodiment uses nine first segment blocks based on the pixel data of the first segment block of the current image and the pixel data of the nine first segment candidate blocks in the search window 403. In addition to calculating the distortion, the second segment block distortion is calculated based on the pixel data of the second segment block of the current image and the pixel data of the nine second segment candidate blocks in the search window 403. The first segment block distortion and each of the second segment block distortions are added to form a field block distortion between the pixel data of the current image field block 210 and the pixel data of the nine field candidate blocks 500 in the search window 403. Deployment is calculated, Example 1
The first segment motion vector MVSg1, the second segment motion vector MVSg2, and the field motion vector MVFi are obtained by a simple search method with respect to the all-points search method.

【0412】次に、信号出力ユニット7010について
説明する。図51に示すように、信号出力ユニット70
10は、出力端子P1〜P10を有し、これらの出力端
子P1〜P10から出力されるそれぞれの信号によって
上記各ユニットを制御する。また、これらの信号は、2
値のパルス信号であり、ローレベルのときは0を表し、
ハイレベルのときは1を表す。以下、図52〜図55に
示されたタイムチャートに基づいてこれらの信号を説明
する。
[0412] Next, the signal output unit 7010 will be described. As shown in FIG. 51, the signal output unit 70
Reference numeral 10 has output terminals P1 to P10, and controls each of the above units by signals output from these output terminals P1 to P10. Also, these signals are 2
It is a pulse signal of a value, and represents 0 when it is at a low level,
When it is at the high level, it represents 1. Hereinafter, these signals will be described based on the time charts shown in FIGS.

【0413】ここで、図52および図53に示されたR
は、現画像ブロックデータ出力ユニット1010から出
力端子Rを通して出力された現画像フィールドブロック
200の画素データを示し、S0,S1およびS2は、
サーチウィンドウデータ出力ユニット2010から出力
端子S0,S1およびS2を通して出力されたそれぞれ
のサーチウィンドウ403の画素データを示す。
Here, R shown in FIG. 52 and FIG.
Indicates pixel data of the current image field block 200 output from the current image block data output unit 1010 through the output terminal R, and S0, S1, and S2 are:
The pixel data of each search window 403 output from the search window data output unit 2010 through the output terminals S0, S1, and S2 is shown.

【0414】出力端子P1から出力されるクロックパル
ス信号CK1は、周期の1/2のパルス幅をもつ信号で
あり、現画像ブロックデータ出力ユニット1010、サ
ーチウィンドウデータ出力ユニット2010およびセグ
メントブロックディストーション算出ユニット3010
に出力される。現画像ブロックデータ出力ユニット10
10およびサーチウィンドウデータ出力ユニット201
0は、このクロックパルス信号CK1のダウンエッジに
同期してセグメントブロックディストーション算出ユニ
ット3010にそれぞれの画素データを出力する。ま
た、セグメントブロックディストーション算出ユニット
3010は、このクロックパルス信号CK1の立ち上り
に同期して現画像ブロックデータ出力ユニット1010
およびサーチウィンドウデータ出力ユニット2010か
ら出力された画素データを入力する。
The clock pulse signal CK1 output from the output terminal P1 is a signal having a pulse width of 周期 of the cycle, and includes the current image block data output unit 1010, search window data output unit 2010, and segment block distortion calculation unit. 3010
Is output to Current image block data output unit 10
10 and search window data output unit 201
0 outputs each pixel data to the segment block distortion calculation unit 3010 in synchronization with the down edge of the clock pulse signal CK1. The segment block distortion calculating unit 3010 outputs the current image block data output unit 1010 in synchronization with the rising of the clock pulse signal CK1.
And the pixel data output from the search window data output unit 2010.

【0415】また、図52に示すように、サーチウィン
ドウデータ出力ユニット2010から出力された最初の
画素データがセグメントブロックディストーション算出
ユニット3010に入力されるクロックパルス信号CK
1のパルスを1クロック目(C1)として数えることに
する。出力端子P2から出力されるパルス信号CK2
は、クロックパルス信号CK1と同じ動作を行う信号で
あり、セグメントブロックディストーション算出ユニッ
ト3010、セグメントブロック特定ユニット400
0、フィールドブロックディストーション算出ユニット
5000およびフィールドブロック特定ユニット600
0に出力される。
As shown in FIG. 52, the first pixel data output from search window data output unit 2010 receives clock pulse signal CK input to segment block distortion calculation unit 3010.
One pulse is counted as the first clock (C1). Pulse signal CK2 output from output terminal P2
Is a signal that performs the same operation as the clock pulse signal CK1. The segment block distortion calculation unit 3010
0, field block distortion calculating unit 5000 and field block specifying unit 600
Output to 0.

【0416】出力端子P3から出力されるパルス信号S
Uは、クロックパルス信号CK1の8倍の周期、8倍の
パルス幅をもち、クロックパルス信号CK1の4クロッ
ク目(C4)のダウンエッジに同期してローレベルから
ハイレベルに立ち上がるように出力され、以後クロック
パルス信号CK1の8パルス毎に出力される。パルス信
号SUは、セグメントブロックディストーション算出ユ
ニット3010に出力される。
The pulse signal S output from the output terminal P3
U has eight times the cycle and eight times the pulse width of the clock pulse signal CK1, and is output so as to rise from a low level to a high level in synchronization with the falling edge of the fourth clock (C4) of the clock pulse signal CK1. Thereafter, the clock pulse signal CK1 is output every eight pulses. The pulse signal SU is output to the segment block distortion calculation unit 3010.

【0417】出力端子P4から出力されるパルス信号S
Lは、クロックパルス信号CK1の4倍の周期、4倍の
パルス幅をもち、パルス信号SLは、初期状態がハイレ
ベルであり、クロックパルス信号CK1の2クロック目
(C2)のダウンエッジに同期してハイレベルからロー
レベルにダウンし、クロックパルス信号CK1の4クロ
ック目(C4)のダウンエッジに同期してローレベルか
らハイレベルに立ち上がるように出力され、以後クロッ
クパルス信号CK1の4パルス毎に出力される。パルス
信号SLは、セグメントブロックディストーション算出
ユニット3010に出力される。
The pulse signal S output from the output terminal P4
L has a period four times as long as the clock pulse signal CK1 and a pulse width four times as large as the clock pulse signal CK1, and the pulse signal SL is initially at the high level and is synchronized with the falling edge of the second clock (C2) of the clock pulse signal CK1. The clock pulse signal CK1 is output so as to rise from the low level to the high level in synchronization with the falling edge of the fourth clock (C4) of the clock pulse signal CK1. Is output to The pulse signal SL is output to the segment block distortion calculation unit 3010.

【0418】出力端子P5から出力されるパルス信号L
D1は、クロックパルス信号CK1のパルス幅の4倍の
パルス幅をもち、クロックパルス信号CK1の22クロ
ック目(C22)のダウンエッジに同期して出力され、
以後クロックパルス信号CK1の8パルス毎に出力され
る。パルス信号LD1は、セグメントブロックディスト
ーション算出ユニット3010およびセグメントブロッ
ク特定ユニット4000に出力される。
A pulse signal L output from the output terminal P5
D1 has a pulse width four times the pulse width of the clock pulse signal CK1, and is output in synchronization with the falling edge of the 22nd clock (C22) of the clock pulse signal CK1.
Thereafter, the clock pulse signal CK1 is output every eight pulses. The pulse signal LD1 is output to the segment block distortion calculating unit 3010 and the segment block specifying unit 4000.

【0419】出力端子P6から出力されるパルス信号L
D2は、パルス信号LD1のパルス幅と同じパルス幅を
もち、クロックパルス信号CK1の32クロック目(C
32)のダウンエッジに同期して出力され、以後クロッ
クパルス信号CK1の8パルス毎にパルス信号LD1の
ダウンエッジに同期するように出力される。パルス信号
LD2は、セグメントブロック特定ユニット4000お
よびフィールドブロック特定ユニット6000に出力さ
れる。
[0419] The pulse signal L output from the output terminal P6
D2 has the same pulse width as the pulse width of the pulse signal LD1, and the 32nd clock of the clock pulse signal CK1 (C
32) is output in synchronization with the down edge of the clock signal CK1, and thereafter, output every eight pulses of the clock pulse signal CK1 so as to be synchronized with the down edge of the pulse signal LD1. The pulse signal LD2 is output to the segment block specifying unit 4000 and the field block specifying unit 6000.

【0420】出力端子P7から出力されるパルス信号L
D3は、パルス信号LD1のパルス幅と同じパルス幅を
もち、クロックパルス信号CK1の34クロック目(C
34)のダウンエッジに同期して出力され、以後クロッ
クパルス信号CK1の8パルス毎にパルス信号LD2の
ダウンエッジに同期するように出力される。パルス信号
LD3は、フィールドブロック特定ユニット6000に
出力される。
The pulse signal L output from the output terminal P7
D3 has the same pulse width as the pulse width of the pulse signal LD1, and the 34th clock of the clock pulse signal CK1 (C
34) is output in synchronization with the down edge of the clock pulse signal CK1, and thereafter output in synchronization with the down edge of the pulse signal LD2 every eight pulses of the clock pulse signal CK1. The pulse signal LD3 is output to the field block specifying unit 6000.

【0421】出力端子P8から出力されるパルス信号C
TEは、クロックパルス信号CK1の2倍の周期、2倍
のパルス幅をもち、パルス信号CTEは、クロックパル
ス信号CK1の1クロック目(C1)のダウンエッジに
同期してローレベルからハイレベルに立ち上がるように
出力され、以後クロックパルス信号CK1の2パルス毎
に出力される。パルス信号CTEは、セグメントブロッ
ク特定ユニット4000、フィールドブロックディスト
ーション算出ユニット5000およびフィールドブロッ
ク特定ユニット6000に出力される。
The pulse signal C output from the output terminal P8
TE has twice the period and twice the pulse width of the clock pulse signal CK1, and the pulse signal CTE changes from a low level to a high level in synchronization with the falling edge of the first clock (C1) of the clock pulse signal CK1. The signal is output so as to rise, and thereafter output every two pulses of the clock pulse signal CK1. The pulse signal CTE is output to the segment block specifying unit 4000, the field block distortion calculating unit 5000, and the field block specifying unit 6000.

【0422】出力端子P9から出力されるパルス信号S
MV1は、クロックパルス信号CK1の2倍のパルス幅
をもち、パルス信号SMV1は、クロックパルス信号C
K1の38クロック目(C38)のダウンエッジに同期
して立ち上がるように出力され、以後クロックパルス信
号CK1の8パルス毎に出力される。パルス信号SMV
1は、セグメントブロック特定ユニット4000に出力
される。
The pulse signal S output from the output terminal P9
MV1 has a pulse width twice that of the clock pulse signal CK1, and the pulse signal SMV1 is
The signal is output so as to rise in synchronization with the down edge of the 38th clock (C38) of K1 and thereafter output every 8 pulses of the clock pulse signal CK1. Pulse signal SMV
1 is output to the segment block specifying unit 4000.

【0423】出力端子P10から出力されるパルス信号
SMV2は、クロックパルス信号CK1の2倍のパルス
幅をもち、クロックパルス信号CK1の39クロック目
(C39)のダウンエッジに同期して立ち上がるように
出力され、以後クロックパルス信号CK1の8パルス毎
にパルス信号SMV1のダウンエッジに同期するように
出力される。パルス信号SMV2は、セグメントブロッ
ク特定ユニット4000およびフィールドブロック特定
ユニット6000に出力される。
The pulse signal SMV2 output from the output terminal P10 has a pulse width twice that of the clock pulse signal CK1, and is output so as to rise in synchronization with the 39th clock (C39) down edge of the clock pulse signal CK1. Thereafter, every eight pulses of the clock pulse signal CK1 are output in synchronization with the down edge of the pulse signal SMV1. The pulse signal SMV2 is output to the segment block specifying unit 4000 and the field block specifying unit 6000.

【0424】また、図52および図53に示すように、
現画像ブロックデータ出力ユニット1010は、クロッ
クパルス信号CK1の21クロック目(C21)のダウ
ンエッジから1パルス毎にそれぞれのパルスのダウンエ
ッジに同期して現画像フィールドブロック210の画素
データを a(0,0),a(0,2),a(0,1),a(0,3) ,a(1,1),a(1,3),a(1,0),a(1,2) の順に出力する。
As shown in FIGS. 52 and 53,
The current image block data output unit 1010 synchronizes the pixel data of the current image field block 210 with a (0 , 0), a (0,2), a (0,1), a (0,3), a (1,1), a (1,3), a (1,0), a (1, Output in the order of 2).

【0425】また、サーチウィンドウデータ出力ユニッ
ト2010は、クロックパルス信号CK1の1パルス毎
にそれぞれのパルスのダウンエッジに同期して出力端子
S0,S1およびS2から出力される。すなわち、サー
チウィンドウ403の画素データは、出力端子S0から c(0,1),c(0,3),c(0,0),c(0,2) ,c(1,0),c(1,2),c(1,1),c(1,3) ,c(2,1),c(2,3),c(2,0),c(2,2) ,c(3,0),c(3,2),c(3,1),c(3,3),・・・ の順に出力され、同時に、出力端子S1から c(0,3),c(0,5),c(0,2),c(0,4) ,c(1,2),c(1,4),c(1,3),c(1,5) ,c(2,3),c(2,5),c(2,2),c(2,4) ,c(3,2),c(3,4),c(3,3),c(3,5),・・・ の順に出力され、同時に、出力端子S2から c(0,5),c(0,7),c(0,4),c(0,6) ,c(1,4),c(1,6),c(1,5),c(1,7) ,c(2,5),c(2,7),c(2,4),c(2,6) ,c(3,4),c(3,6),c(3,5),c(3,7),・・・ の順に出力される。
The search window data output unit 2010 is output from the output terminals S0, S1 and S2 in synchronization with the down edge of each pulse of the clock pulse signal CK1. That is, the pixel data of the search window 403 is output from the output terminal S0 through c (0,1), c (0,3), c (0,0), c (0,2), c (1,0), c (1,2), c (1,1), c (1,3), c (2,1), c (2,3), c (2,0), c (2,2), c ( 3,0), c (3,2), c (3,1), c (3,3),..., And at the same time, c (0,3), c (0 , 5), c (0,2), c (0,4), c (1,2), c (1,4), c (1,3), c (1,5), c (2, 3), c (2,5), c (2,2), c (2,4), c (3,2), c (3,4), c (3,3), c (3,5 ),..., And at the same time, c (0,5), c (0,7), c (0,4), c (0,6), c (1,4) from the output terminal S2. , c (1,6), c (1,5), c (1,7), c (2,5), c (2,7), c (2,4), c (2,6), c (3,4), c (3,6), c (3,5), c (3,7),...

【0426】次に、動きベクトル探索装置のさらに具体
的な構成を説明する。セグメントブロックディストーシ
ョン算出ユニット3010は、図56に示すように、2
次元配列プロセッサグループ3110、入力レジスタグ
ループ3210、第1サイドレジスタグループ331
0、第2サイドレジスタグループ3410から構成され
ている。
Next, a more specific configuration of the motion vector search device will be described. As shown in FIG. 56, the segment block distortion calculation unit 3010
Dimensional array processor group 3110, input register group 3210, first side register group 331
0, the second side register group 3410.

【0427】2次元配列プロセッサグループ3110
は、さらに、9個のプロセッサエレメント PE(0,0),PE(2,0),PE(4,0) ,PE(0,2),PE(2,2),PE(4,2) ,PE(0,4),PE(2,4),PE(4,4) および16個の中間レジスタ IP(1,0),IP(3,0) ,IP(0,1),IP(1,1),IP(2,1),IP(3,1),IP(4,1) ,IP(1,2),IP(3,2) ,IP(0,3),IP(1,3),IP(2,3),IP(3,3),IP(4,3) ,IP(1,4),IP(3,4) から構成され、入力レジスタグループ3210は、さら
に、5個の入力レジスタ IR(5,0),IR(5,1),IR(5,2),IR(5,3),IR(5,4) から構成され、第1サイドレジスタグループ3310
は、さらに、6個の第1サイドレジスタ SR(0,-1),SR(1,-1),SR(2,-1),SR(3,-1) ,SR(4,-1),SR(5,-1) から構成され、第2サイドレジスタグループ3410
は、さらに、6個の第2サイドレジスタ SR(0,5),SR(1,5),SR(2,5),SR(3,5),SR(4,5) ,SR(5,5) から構成されている。
A two-dimensional array processor group 3110
Further comprises nine processor elements PE (0,0), PE (2,0), PE (4,0), PE (0,2), PE (2,2), PE (4,2) , PE (0,4), PE (2,4), PE (4,4) and 16 intermediate registers IP (1,0), IP (3,0), IP (0,1), IP ( 1,1), IP (2,1), IP (3,1), IP (4,1), IP (1,2), IP (3,2), IP (0,3), IP (1 , 3), IP (2,3), IP (3,3), IP (4,3), IP (1,4), IP (3,4), and the input register group 3210 further includes The first side register group 3310 includes five input registers IR (5,0), IR (5,1), IR (5,2), IR (5,3), IR (5,4).
Are further divided into six first side registers SR (0, -1), SR (1, -1), SR (2, -1), SR (3, -1), SR (4, -1) , SR (5, -1), and the second side register group 3410
Further includes six second side registers SR (0,5), SR (1,5), SR (2,5), SR (3,5), SR (4,5), SR (5, 5).

【0428】ここで、プロセッサエレメントPE(x,
y)、入力レジスタIR(x,y)、第1サイドレジス
タSR(x,y)および第2サイドレジスタSR(x,
y)のx,yは、PE(0,0)を原点とする各プロセ
ッサエレメントPE(x,y)および各レジスタ(x,
y)の位置を表す。図56における水平方向の位置が x=0,1,2,3,4,5 で表され、図56における垂直方向の位置が、PE
(0,0)を原点に下方向をプラスとして、 y=−1,0,1,2,3,4,5 で表されている。
Here, the processor element PE (x,
y), an input register IR (x, y), a first side register SR (x, y), and a second side register SR (x, y).
y), x and y are each processor element PE (x, y) and each register (x, y) having PE (0, 0) as the origin.
represents the position of y). The horizontal position in FIG. 56 is represented by x = 0, 1, 2, 3, 4, 5 and the vertical position in FIG.
It is represented by y = -1,0,1,2,3,4,5 with (0,0) as the origin and the downward direction as a plus.

【0429】各プロセッサエレメントPE(x,y)、
入力レジスタIR(x,y)、第1サイドレジスタSR
(x,y)および第2サイドレジスタSR(x,y)の
端子配置およびブロック図は、実施例1と同様である。
ただし、入力レジスタIR(5,0)は、サーチウィン
ドウデータ出力ユニット2010の出力端子S0と電気
的に接続され、入力レジスタIR(5,2)は、サーチ
ウィンドウデータ出力ユニット2010の出力端子S1
と電気的に接続され、入力レジスタIR(5,4)は、
サーチウィンドウデータ出力ユニット2010の出力端
子S2と電気的に接続される。
Each processor element PE (x, y),
Input register IR (x, y), first side register SR
The terminal arrangement and block diagram of (x, y) and the second side register SR (x, y) are the same as in the first embodiment.
However, input register IR (5,0) is electrically connected to output terminal S0 of search window data output unit 2010, and input register IR (5,2) is connected to output terminal S1 of search window data output unit 2010.
And the input registers IR (5, 4) are
It is electrically connected to output terminal S2 of search window data output unit 2010.

【0430】次に、中間レジスタIP(x,y)につい
て説明する。中間レジスタIP(x,y)は、サーチウ
ィンドウ403の画素データを保持して転送するバッフ
ァであり、全点探索法によりサーチウィンドウ403内
に設定可能な25点のフィールド候補ブロックに対し
て、探索点を削減して簡略的な探索を行うために、プロ
セッサエレメントPE(x,y)の代りに設けられる。
Next, the intermediate register IP (x, y) will be described. The intermediate register IP (x, y) is a buffer that holds and transfers the pixel data of the search window 403, and searches for 25 field candidate blocks that can be set in the search window 403 by the all point search method. In order to reduce the number of points and perform a simple search, it is provided instead of the processor element PE (x, y).

【0431】次に、各中間レジスタIP(x,y)の端
子配置およびブロック図を説明する。図57に示すよう
に、各中間レジスタIP(x,y)は、入力端子YU
i,YDi,YLiおよび出力端子YUo,YDo,Y
Loを有し、さらに、図6に示された信号出力ユニット
7010の出力端子P1,P3,P4に接続された図示
しない入力端子を有している。また、図58に示すよう
に、各中間レジスタIP(x,y)は、転送方向選択部
3640によって構成され、転送方向選択部3640
は、セレクタ3641、第1フリップフロップ3642
および第2フリップフロップ3643から構成される。
Next, the terminal arrangement and block diagram of each intermediate register IP (x, y) will be described. As shown in FIG. 57, each intermediate register IP (x, y) has an input terminal YU
i, YDi, YLi and output terminals YUo, YDo, Y
It has Lo and further has an input terminal (not shown) connected to the output terminals P1, P3, and P4 of the signal output unit 7010 shown in FIG. Further, as shown in FIG. 58, each intermediate register IP (x, y) is configured by a transfer direction selecting unit 3640, and the transfer direction selecting unit 3640
Is a selector 3641, a first flip-flop 3642
And a second flip-flop 3643.

【0432】セレクタ3641は、入力端子S0,S
1,A,B,Cおよび出力端子Yを有する。入力端子S
0は、信号出力ユニット7010の出力端子P3に電気
的に接続され、入力端子S1は、信号出力ユニット70
10の出力端子P4に電気的に接続される。入力端子A
は、入力端子YDiを介してプロセッサエレメントPE
(x,y−1)、中間レジスタIP(x,y−1)また
は第1サイドレジスタSR(x,−1)の出力端子YD
oに電気的に接続される。入力端子Bは、入力端子をY
Uiを介してプロセッサエレメントPE(x,y+
1)、中間レジスタIP(x,y+1)または第2サイ
ドレジスタSR(x,3)の出力端子YDoに電気的に
接続される。入力端子Cは、入力端子YLiを介してプ
ロセッサエレメントPE(x+1,y)、中間レジスタ
IP(x+1,y)または入力レジスタIR(3,y)
の出力端子YLoに電気的に接続される。出力端子Y
は、第1フリップフロップ3642の入力端子iに電気
的に接続される。
The selector 3641 has input terminals S0, S
1, A, B, C and an output terminal Y. Input terminal S
0 is electrically connected to the output terminal P3 of the signal output unit 7010, and the input terminal S1 is
10 is electrically connected to the output terminal P4. Input terminal A
Is connected to the processor element PE via the input terminal YDi.
(X, y-1), the output terminal YD of the intermediate register IP (x, y-1) or the first side register SR (x, -1)
o is electrically connected. Input terminal B is input terminal Y
Via Ui, the processor element PE (x, y +
1), it is electrically connected to the output terminal YDo of the intermediate register IP (x, y + 1) or the second side register SR (x, 3). The input terminal C is connected to the processor element PE (x + 1, y), the intermediate register IP (x + 1, y) or the input register IR (3, y) via the input terminal YLi.
Is electrically connected to the output terminal YLo. Output terminal Y
Is electrically connected to the input terminal i of the first flip-flop 3642.

【0433】セレクタ3601は、信号出力ユニット7
010から出力された信号SU,SLをそれぞれ入力端
子S0,S1を通して入力し、入力された信号SU,S
Lに基づいて入力端子A,B,Cの何れか一つの入力端
子と出力端子Yを電気的に接続する切換器であり、信号
SU,SLが、それぞれ0,0のときには、入力端子A
と出力端子Yを電気的に接続し、1,0のときには、入
力端子Bと出力端子Yを電気的に接続し、0,1および
1,1のときには、入力端子Cと出力端子Yを電気的に
接続する。
The selector 3601 is connected to the signal output unit 7
010 are input through input terminals S0 and S1, respectively, and the input signals SU and S
A switch that electrically connects any one of the input terminals A, B, and C to the output terminal Y based on L. When the signals SU and SL are 0 and 0, respectively, the input terminal A
And the output terminal Y is electrically connected. When 1, 0, the input terminal B and the output terminal Y are electrically connected. When 0, 1, and 1, 1, the input terminal C and the output terminal Y are electrically connected. Connection.

【0434】第1フリップフロップ3642は、Dフリ
ップフロップからなり、入力端子s,iおよび出力端子
oを有する。入力端子sは、信号出力ユニット7010
の出力端子P1に電気的に接続される。入力端子iは、
セレクタ3641の出力端子Yに電気的に接続され、出
力端子oは、第2フリップフロップ3643の入力端子
iに電気的に接続される。
[0434] The first flip-flop 3642 is formed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is connected to the signal output unit 7010
Is electrically connected to the output terminal P1. The input terminal i is
The output terminal Y of the selector 3641 is electrically connected to the output terminal O, and the output terminal o is electrically connected to the input terminal i of the second flip-flop 3643.

【0435】第1フリップフロップ3642は、信号出
力ユニット7010から出力されたクロックパルス信号
CK1を入力端子sを通して入力し、入力されたクロッ
クパルス信号CK1の各パルスの立ち上がりに同期し
て、入力端子iに入力されたデータを出力端子oにラッ
チする。第2フリップフロップ3643は、Dフリップ
フロップからなり、入力端子s,iおよび出力端子oを
有する。入力端子sは、信号出力ユニット7010の出
力端子P1に電気的に接続され、入力端子iは、第1フ
リップフロップ3642の出力端子oに電気的に接続さ
れる。また、出力端子oは、出力端子YUoを介してプ
ロセッサエレメントPE(x,y−1)、中間レジスタ
IP(x,y−1)または第1サイドレジスタSR
(x,−1)の入力端子YUiに電気的に接続され、出
力端子YDoを介してプロセッサエレメントPE(x,
y+1)、中間レジスタIP(x,y+1)または第2
サイドレジスタSR(x,3)の入力端子YDiに電気
的に接続され、出力端子YLoを介してプロセッサエレ
メントPE(x−1,y)または中間レジスタIP(x
−1,y)の入力端子YLiに電気的に接続される。
The first flip-flop 3642 inputs the clock pulse signal CK1 output from the signal output unit 7010 through the input terminal s, and synchronizes with the rising of each pulse of the input clock pulse signal CK1 to input terminal i. Is latched at the output terminal o. The second flip-flop 3643 is formed of a D flip-flop and has input terminals s and i and an output terminal o. The input terminal s is electrically connected to the output terminal P1 of the signal output unit 7010, and the input terminal i is electrically connected to the output terminal o of the first flip-flop 3642. The output terminal o is connected to the processor element PE (x, y-1), the intermediate register IP (x, y-1) or the first side register SR via the output terminal YUo.
It is electrically connected to the input terminal YUi of (x, -1), and the processor element PE (x,
y + 1), the intermediate register IP (x, y + 1) or the second
It is electrically connected to the input terminal YDi of the side register SR (x, 3), and the processor element PE (x-1, y) or the intermediate register IP (x) via the output terminal YLo.
−1, y).

【0436】第2フリップフロップ3643は、信号出
力ユニット7010から出力されたクロックパルス信号
CK1を入力端子sを通して入力し、入力されたクロッ
クパルス信号CK1の各パルスの立ち上がりに同期し
て、入力端子iに入力されたデータを出力端子oにラッ
チする。次に、作用を説明する。
The second flip-flop 3643 inputs the clock pulse signal CK1 output from the signal output unit 7010 through an input terminal s, and synchronizes with the rising of each pulse of the input clock pulse signal CK1 to input terminal i. Is latched at the output terminal o. Next, the operation will be described.

【0437】図52〜図55に示されたタイムチャート
に基づいて動きベクトルを探索する動作を説明する。始
めに、図52および図53のタイムチャートに基づいて
セグメントブロックディストーション算出ユニット30
10の各プロセッサエレメントPE(x,y)におい
て、プロセッサエレメントPE(x,y)と位置的に対
応する第1セグメント候補ブロックと現画像第1セグメ
ントブロック210とのそれぞれの第1セグメントブロ
ックディストーション、並びに、プロセッサエレメント
PE(x,y)と位置的に対応する第2セグメント候補
ブロックと現画像第2セグメントブロック210とのそ
れぞれの第2セグメントブロックディストーションを時
分割で求める動作を説明する。
The operation of searching for a motion vector based on the time charts shown in FIGS. 52 to 55 will be described. First, the segment block distortion calculation unit 30 based on the time charts of FIGS.
In each of the ten processor elements PE (x, y), the first segment block distortion of the current image first segment block 210 and the first segment candidate block that corresponds in position to the processor element PE (x, y), In addition, an operation of obtaining the second segment block distortion of each of the second segment candidate block and the current image second segment block 210 corresponding to the processor element PE (x, y) in a time-division manner will be described.

【0438】各プロセッサエレメントPE(x,y)お
よび各レジスタ(x,y)は、行方向および列方向に隣
接する他の各プロセッサエレメントPE(x,y)およ
び各レジスタ(x,y)間でサーチウィンドウ403の
画素データを転送する。また、以下に示す図59〜図6
9は、クロックパルス信号CK1の各パルスの立ち上が
りに同期して各プロセッサエレメントPE(x,y)お
よび各レジスタ(x,y)の第1フリップフロップ36
02,3612,3622,3632および第2フリッ
プフロップ3603,3613,3623,3633に
ラッチされたサーチウィンドウ403の画素データを示
しており、右側が第1フリップフロップ3602にラッ
チされた画素データを示し、左側が第2フリップフロッ
プ3603にラッチされた画素データを示している。
Each processor element PE (x, y) and each register (x, y) are connected between each other processor element PE (x, y) and each register (x, y) adjacent in the row and column directions. To transfer the pixel data of the search window 403. 59 to 6 shown below.
9 is a first flip-flop 36 of each processor element PE (x, y) and each register (x, y) in synchronization with the rise of each pulse of the clock pulse signal CK1.
02, 3612, 3622, 3632 and the pixel data of the search window 403 latched by the second flip-flops 3603, 3613, 3623, 3633, the right side shows the pixel data latched by the first flip-flop 3602, The left side shows the pixel data latched by the second flip-flop 3603.

【0439】まず、クロックパルス信号CK1の1クロ
ック目に同期して、図59に示すように、画素データc
(0,1)がサーチウィンドウデータ出力ユニット20
10の出力端子S0から入力レジスタIR(5,0)の
第1フリップフロップ3612にラッチされ、同時に、
画素データc(0,3)がサーチウィンドウデータ出力
ユニット2010の出力端子S1から入力レジスタIR
(5,2)の第1フリップフロップ3612にラッチさ
れ、同時に、画素データc(0,5)がサーチウィンド
ウデータ出力ユニット2010の出力端子S2から入力
レジスタIR(5,4)の第1フリップフロップ361
2にラッチされる。
First, in synchronization with the first clock of the clock pulse signal CK1, as shown in FIG.
(0, 1) is the search window data output unit 20
10 from the output terminal S0 to the first flip-flop 3612 of the input register IR (5,0).
Pixel data c (0,3) is input from output terminal S1 of search window data output unit 2010 to input register IR.
The pixel data c (0,5) is simultaneously latched by the first flip-flop 3612 of (5,2) from the output terminal S2 of the search window data output unit 2010 to the first flip-flop of the input register IR (5,4). 361
2 latched.

【0440】このとき、各プロセッサエレメントPE
(x,y)の転送方向選択部3600のセレクタ360
1の出力端子Yは、入力端子Cと電気的に接続されてい
る。各中間レジスタIP(x,y)の転送方向選択部3
640のセレクタ3641の出力端子Yは、入力端子C
と電気的に接続されている。入力レジスタIR(5,
1)および入力レジスタIR(5,3)の転送方向選択
部3610のセレクタ3611の出力端子Yは、入力端
子Aと電気的に接続されている。各第1サイドレジスタ
SR(x,−1)の転送方向選択部3620のセレクタ
3621の出力端子Yは、入力端子Bと電気的に接続さ
れている。各第2サイドレジスタSR(x,3)の転送
方向選択部3630のセレクタ3631の出力端子Y
は、入力端子Bと電気的に接続されている。
At this time, each processor element PE
The selector 360 of the (x, y) transfer direction selector 3600
One output terminal Y is electrically connected to the input terminal C. Transfer direction selector 3 of each intermediate register IP (x, y)
The output terminal Y of the selector 364 of the 640 is connected to the input terminal C
Is electrically connected to The input register IR (5,
1) and the output terminal Y of the selector 3611 of the transfer direction selection unit 3610 of the input register IR (5, 3) is electrically connected to the input terminal A. The output terminal Y of the selector 3621 of the transfer direction selector 3620 of each first side register SR (x, -1) is electrically connected to the input terminal B. Output terminal Y of selector 3631 of transfer direction selector 3630 of each second side register SR (x, 3)
Are electrically connected to the input terminal B.

【0441】次に、クロックパルス信号CK1の2クロ
ック目では、各プロセッサエレメントPE(x,y)の
転送方向選択部3600のセレクタ3601、各中間レ
ジスタIP(x,y)の転送方向選択部3640のセレ
クタ3641、入力レジスタIR(5,1)および入力
レジスタIR(5,3)の転送方向選択部3610のセ
レクタ3611、各第1サイドレジスタSR(x,y)
の転送方向選択部3620のセレクタ3621のそれぞ
れの出力端子Yは、クロックパルス信号CK1の1クロ
ック目と同様に電気的に接続されている。
Next, in the second clock of the clock pulse signal CK1, the selector 3601 of the transfer direction selector 3600 of each processor element PE (x, y) and the transfer direction selector 3640 of each intermediate register IP (x, y). Selector 3641, the input register IR (5, 1) and the selector 3611 of the transfer direction selection unit 3610 of the input register IR (5, 3), and each first side register SR (x, y)
The output terminal Y of the selector 3621 of the transfer direction selecting unit 3620 is electrically connected in the same manner as the first clock of the clock pulse signal CK1.

【0442】このため、図60に示すように、画素デー
タc(0,1),c(0,3)およびc(0,5)は、
それぞれ入力レジスタIR(5,y)の第1フリップフ
ロップ3612から同じ入力レジスタIR(5,y)の
第2フリップフロップ3613にラッチされる。また、
同時に、画素データc(0,3)がサーチウィンドウデ
ータ出力ユニット2010の出力端子S0から入力レジ
スタIR(5,0)の第1フリップフロップ3612に
ラッチされ、同時に、画素データc(0,5)がサーチ
ウィンドウデータ出力ユニット2010の出力端子S1
から入力レジスタIR(5,2)の第1フリップフロッ
プ3612にラッチされる、同時に、画素データc
(0,7)がサーチウィンドウデータ出力ユニット20
10の出力端子S2から入力レジスタIR(5,4)の
第1フリップフロップ3612にラッチされる。
Thus, as shown in FIG. 60, pixel data c (0,1), c (0,3) and c (0,5) are
Each is latched from the first flip-flop 3612 of the input register IR (5, y) to the second flip-flop 3613 of the same input register IR (5, y). Also,
At the same time, the pixel data c (0,3) is latched from the output terminal S0 of the search window data output unit 2010 into the first flip-flop 3612 of the input register IR (5,0), and at the same time, the pixel data c (0,5) Is the output terminal S1 of the search window data output unit 2010.
Are latched by the first flip-flop 3612 of the input register IR (5, 2), and at the same time, the pixel data c
(0, 7) is the search window data output unit 20
The data is latched from the ten output terminals S2 to the first flip-flop 3612 of the input register IR (5, 4).

【0443】すなわち、実施例1と同様に、クロックパ
ルス信号CK1の2クロック毎に、各プロセッサエレメ
ントPE(x,y)のセレクタ3601の出力端子Y
は、信号SU,SLに基づいて入力端子C、入力端子
A、入力端子C、入力端子Bの順に順次に切り換えられ
る。また、各中間レジスタIP(x,y)のセレクタ3
641の出力端子Yは、信号SU,SLに基づいて入力
端子C、入力端子A、入力端子C、入力端子Bの順に順
次に切り換えられる。入力レジスタIR(5,1)およ
び入力レジスタIR(5,3)の転送方向選択部361
0のセレクタ3611の出力端子Yは、入力端子A、入
力端子A、入力端子B、入力端子Bの順に順次切換えら
れる。各第1サイドレジスタSR(x,−1)の転送方
向選択部3620のセレクタ3621の出力端子Yは、
入力端子B、入力端子A、入力端子B、入力端子Aの順
に順次切換えられ、各第2サイドレジスタSR(x,
3)の転送方向選択部3630のセレクタ3631の出
力端子Yは、入力端子B、入力端子A、入力端子B、入
力端子Aの順に順次切換えられる。
That is, as in the first embodiment, the output terminal Y of the selector 3601 of each processor element PE (x, y) is output every two clocks of the clock pulse signal CK1.
Are sequentially switched in the order of the input terminal C, the input terminal A, the input terminal C, and the input terminal B based on the signals SU and SL. The selector 3 of each intermediate register IP (x, y)
The output terminal Y 641 is sequentially switched in the order of the input terminal C, the input terminal A, the input terminal C, and the input terminal B based on the signals SU and SL. Transfer direction selector 361 of input register IR (5,1) and input register IR (5,3)
The output terminal Y of the selector 3611 of 0 is sequentially switched in the order of the input terminal A, the input terminal A, the input terminal B, and the input terminal B. The output terminal Y of the selector 3621 of the transfer direction selector 3620 of each first side register SR (x, -1) is
The input terminal B, the input terminal A, the input terminal B, and the input terminal A are sequentially switched in this order, and each of the second side registers SR (x,
The output terminal Y of the selector 3631 of the transfer direction selection unit 3630 of 3) is sequentially switched in the order of the input terminal B, the input terminal A, the input terminal B, and the input terminal A.

【0444】このため、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)に保持されたす
べての画素データは、以降クロックパルス信号CK1の
2クロック毎に、図56における左方向、下方向、左方
向、上方向の各プロセッサエレメントPEまたは各レジ
スタに順次転送される。また、クロックパルス信号CK
1のそれぞれのパルスに同期してサーチウィンドウデー
タ出力ユニット2010から出力されたサーチウィンド
ウ403の画素データが入力レジスタIR(5,0),
IR(5,2)、IR(5,4)に転送される。
Therefore, each processor element PE
The (x, y) and all the pixel data held in each register (x, y) are hereinafter referred to as left, lower, left, and upper in FIG. 56 every two clocks of the clock pulse signal CK1. The data is sequentially transferred to the processor element PE or each register. Also, the clock pulse signal CK
1, the pixel data of the search window 403 output from the search window data output unit 2010 in synchronization with the respective pulses of the input registers IR (5, 0),
Transferred to IR (5,2), IR (5,4).

【0445】次に、クロックパルス信号CK1の22ク
ロック目では、図61に示すように、1列目の各プロセ
ッサエレメントPE(x,y)および各レジスタ(x,
y)のそれぞれの第2フリップフロップ3603,36
13,3623,3633に初めて画素データc(x,
y)がラッチされ、同時に、現画像ブロックデータ出力
ユニット1010から各プロセッサエレメントPE
(x,y)に画素データa(0,0)が転送される。
Next, at the 22nd clock of the clock pulse signal CK1, as shown in FIG. 61, each processor element PE (x, y) and each register (x, y) in the first column
y) each second flip-flop 3603, 36
13, 3623, 3633 for the first time with pixel data c (x,
y) is latched, and at the same time, each processor element PE is output from the current image block data output unit 1010.
Pixel data a (0,0) is transferred to (x, y).

【0446】このとき、各プロセッサエレメントPE
(x,y)では、以下の演算処理が行われる。各プロセ
ッサエレメントPE(x,y)では、まず、画素データ
c(x,y)が第2フリップフロップ3603にラッチ
され、さらに、ディストーション算出部3700の減算
器3701の入力端子Aに入力される。一方、画素デー
タa(0,0)が現画像ブロックデータ出力ユニット1
010から減算器3701の入力端子Bに入力される。
At this time, each processor element PE
In (x, y), the following arithmetic processing is performed. In each processor element PE (x, y), first, the pixel data c (x, y) is latched by the second flip-flop 3603 and further input to the input terminal A of the subtractor 3701 of the distortion calculator 3700. On the other hand, the pixel data a (0,0) is the current image block data output unit 1
010 is input to the input terminal B of the subtractor 3701.

【0447】次いで、減算器3701では、 c(x,y)−a(0,0) が算出され、さらに、正数変換器3702により正数に
変換され、加算器3704の入力端子Aに入力される。
一方、加算器3704の入力端子Bには、論理積演算器
3703の演算結果が入力されるが、クロックパルス信
号CK1の22クロック目のダウンエッジに同期して立
ち上ったパルス信号LD1が、論理積演算器3703の
入力端子Aを通して入力され、論理積演算器3703の
出力端子Yから0を表すデータが出力されるので、加算
器3704の入力端子Bに0を表すデータが入力され
る。次いで、加算器3704で |c(x,y)−a(0,0)| が算出される。
Next, c (x, y) −a (0,0) is calculated in the subtractor 3701, further converted to a positive number by the positive number converter 3702, and input to the input terminal A of the adder 3704. Is done.
On the other hand, the operation result of the AND operation unit 3703 is input to the input terminal B of the adder 3704. The pulse signal LD1 rising in synchronization with the falling edge of the 22nd clock of the clock pulse signal CK1 is ANDed. Since the data is input through the input terminal A of the arithmetic unit 3703 and the data representing 0 is output from the output terminal Y of the AND operator 3703, the data representing 0 is input to the input terminal B of the adder 3704. Next, | c (x, y) −a (0,0) | is calculated by the adder 3704.

【0448】次に、クロックパルス信号CK1の23ク
ロック目では、加算器3704で算出された |c(x,y)−a(0,0)| が第1フリップフロップ3705にラッチされる。ま
た、図62に示すように、1列目の各プロセッサエレメ
ントPE(x,y)および各レジスタ(x,y)のそれ
ぞれの第2フリップフロップ3603,3613,36
23,3633に初めて画素データc(x,y+2)が
ラッチされ、同時に、現画像ブロックデータ出力ユニッ
ト1010から各プロセッサエレメントPE(x,y)
に画素データa(0,2)が転送される。
Next, at the 23rd clock of the clock pulse signal CK1, | c (x, y) −a (0,0) | calculated by the adder 3704 is latched by the first flip-flop 3705. As shown in FIG. 62, the second flip-flops 3603, 3613, 36 of the processor elements PE (x, y) and the registers (x, y) in the first column, respectively.
23, 3633, the pixel data c (x, y + 2) is latched for the first time, and at the same time, each processor element PE (x, y) is output from the current image block data output unit 1010.
Is transferred to the pixel data a (0, 2).

【0449】このとき、各プロセッサエレメントPE
(x,y)では、以下の演算処理が行われる。各プロセ
ッサエレメントPE(x,y)では、まず、画素データ
c(x,y+2)が第2フリップフロップ3603にラ
ッチされ、さらに、ディストーション算出部3700の
減算器3701の入力端子Aに入力される。一方、画素
データa(0,2)が現画像ブロックデータ出力ユニッ
ト1010から減算器3701の入力端子Bに入力され
る。
At this time, each processor element PE
In (x, y), the following arithmetic processing is performed. In each processor element PE (x, y), first, the pixel data c (x, y + 2) is latched by the second flip-flop 3603 and further input to the input terminal A of the subtractor 3701 of the distortion calculator 3700. On the other hand, the pixel data a (0, 2) is input from the current image block data output unit 1010 to the input terminal B of the subtractor 3701.

【0450】次いで、減算器3701では、 c(x,y+2)−a(0,2) が算出され、さらに、正数変換器3702により正数に
変換され、加算器3704の入力端子Aに入力される。
一方、加算器3704の入力端子Bには、論理積演算器
3703の演算結果が入力され、ハイレベルを示すパル
ス信号LD1が論理積演算器3703の入力端子Aを通
して入力され、出力端子Yから0を表すデータが出力さ
れており、加算器3704の入力端子Bに0を表すデー
タが入力される。次いで、加算器3704で |c(x,y+2)−a(0,2)| が算出される。
Next, in the subtractor 3701, c (x, y + 2) -a (0, 2) is calculated, further converted into a positive number by the positive number converter 3702, Is done.
On the other hand, to the input terminal B of the adder 3704, the operation result of the AND operation unit 3703 is input, a pulse signal LD1 indicating a high level is input through the input terminal A of the AND operation unit 3703, and 0 is output from the output terminal Y. Is output, and data indicating 0 is input to the input terminal B of the adder 3704. Next, | c (x, y + 2) −a (0, 2) | is calculated by the adder 3704.

【0451】次に、クロックパルス信号CK1の24ク
ロック目では、 |c(x,y)−a(0,0)| が第1フリップフロップ3705から第2フリップフロ
ップ3706にラッチされ、加算器3704で算出され
た |c(x,y+2)−a(0,2)| が第1フリップフロップ3705にラッチされ、また、
図63に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)のそれぞれ第2
フリップフロップ3603,3613,3623,36
33に画素データc(x,y+1)がラッチされ、同時
に、現画像ブロックデータ出力ユニット1010から各
プロセッサエレメントPE(x,y)に画素データa
(0,1)が転送される。
Next, at the 24th clock of the clock pulse signal CK1, | c (x, y) −a (0,0) | is latched from the first flip-flop 3705 to the second flip-flop 3706, and the adder 3704 | C (x, y + 2) −a (0, 2) | calculated by the above is latched in the first flip-flop 3705, and
As shown in FIG. 63, each processor element PE
(X, y) and the second of each register (x, y)
Flip-flops 3603, 3613, 3623, 36
33, the pixel data c (x, y + 1) is latched. At the same time, the pixel data a (x, y) is output from the current image block data output unit 1010 to each processor element PE (x, y).
(0,1) is transferred.

【0452】このとき、各プロセッサエレメントPE
(x,y)では、まず、画素データc(x,y+1)が
第2フリップフロップ3603にラッチされ、次いで、
画素データc(x,y+1)は、ディストーション算出
部3700の減算器3701の入力端子Aに入力され
る。一方、画素データa(0,1)が現画像ブロックデ
ータ出力ユニット1010から減算器3701の入力端
子Bに入力される。
At this time, each processor element PE
In (x, y), first, the pixel data c (x, y + 1) is latched by the second flip-flop 3603,
The pixel data c (x, y + 1) is input to the input terminal A of the subtractor 3701 of the distortion calculator 3700. On the other hand, the pixel data a (0, 1) is input from the current image block data output unit 1010 to the input terminal B of the subtractor 3701.

【0453】次いで、減算器3701では、 c(x,y+1)−a(0,1) が算出され、さらに、正数変換器3702により正数に
変換され、加算器3704の入力端子Aに入力される。
一方、加算器3704の入力端子Bには、論理積演算器
3703の演算結果が入力されるが、論理積演算器37
03では、パルス信号LD1がローレベルにダウンする
ため、第2フリップフロップ3706にラッチされた |c(x,y)−a(0,0)| が入力端子Bを通して出力端子Yから出力され、次い
で、加算器3704で、 |c(x,y)−a(0,0)|+|c(x,y+1)
−a(0,1)| が算出される。
Next, the subtractor 3701 calculates c (x, y + 1) −a (0, 1), converts the value into a positive number by the positive number converter 3702, and inputs the result to the input terminal A of the adder 3704. Is done.
On the other hand, the operation result of the AND operation unit 3703 is input to the input terminal B of the adder 3704.
In 03, since the pulse signal LD1 falls to the low level, | c (x, y) -a (0,0) | latched by the second flip-flop 3706 is output from the output terminal Y through the input terminal B, Next, in an adder 3704, | c (x, y) −a (0, 0) | + | c (x, y + 1)
−a (0, 1) | is calculated.

【0454】次に、クロックパルス信号CK1の25ク
ロック目では、 |c(x,y+2)−a(0,2)| が第1フリップフロップ3705から第2フリップフロ
ップ3706にラッチされ、加算器3704で算出され
た |c(x,y)−a(0,0)|+|c(x,y+1)
−a(0,1)| が第1フリップフロップ3705にラッチされ、また、
図64に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)のそれぞれ第2
フリップフロップ3603,3613,3623,36
33に画素データc(x,y+3)がラッチされ、同時
に、現画像ブロックデータ出力ユニット1010から各
プロセッサエレメントPE(x,y)に画素データa
(0,3)が転送される。
Next, at the 25th clock of the clock pulse signal CK1, | c (x, y + 2) −a (0, 2) | is latched from the first flip-flop 3705 to the second flip-flop 3706, and the adder 3704 | C (x, y) −a (0,0) | + | c (x, y + 1)
−a (0,1) | is latched in the first flip-flop 3705, and
As shown in FIG. 64, each processor element PE
(X, y) and the second of each register (x, y)
Flip-flops 3603, 3613, 3623, 36
33, the pixel data c (x, y + 3) is latched. At the same time, the pixel data a from the current image block data output unit
(0,3) is transferred.

【0455】このとき、各プロセッサエレメントPE
(x,y)では、まず、画素データc(x,y+3)が
第2フリップフロップ3603にラッチされ、次いで、
画素データc(x,y+3)は、ディストーション算出
部3700の減算器3701の入力端子Aに入力され
る。一方、画素データa(0,3)が現画像ブロックデ
ータ出力ユニット1010から減算器3701の入力端
子Bに入力される。
At this time, each processor element PE
In (x, y), first, the pixel data c (x, y + 3) is latched by the second flip-flop 3603, and then,
The pixel data c (x, y + 3) is input to the input terminal A of the subtractor 3701 of the distortion calculator 3700. On the other hand, the pixel data a (0, 3) is input from the current image block data output unit 1010 to the input terminal B of the subtractor 3701.

【0456】次いで、減算器3701では、 c(x,y+3)−a(0,3) が算出され、さらに、正数変換器3702により正数に
変換され、加算器3704の入力端子Aに入力される。
一方、加算器3704の入力端子Bには、論理積演算器
3703の演算結果が入力されるが、論理積演算器37
03では、すでにパルス信号LD1が0であるため、第
2フリップフロップ3706にラッチされた |c(x,y+2)−a(0,2)| が入力端子Bを通して出力端子Yから出力され、次い
で、加算器3704で、 |c(x,y+2)−a(0,2)|+|c(x,y+
3)−a(0,3)| が算出される。
Next, c (x, y + 3) −a (0, 3) is calculated in the subtractor 3701, further converted to a positive number by the positive number converter 3702, and input to the input terminal A of the adder 3704. Is done.
On the other hand, the operation result of the AND operation unit 3703 is input to the input terminal B of the adder 3704.
03, since the pulse signal LD1 is already 0, | c (x, y + 2) −a (0, 2) | latched by the second flip-flop 3706 is output from the output terminal Y through the input terminal B, and then | C (x, y + 2) −a (0, 2) | + | c (x, y +
3) -a (0,3) | is calculated.

【0457】次に、クロックパルス信号CK1の26ク
ロック目では、 |c(x,y)−a(0,0)|+|c(x,y+1)
−a(0,1)| が第1フリップフロップ3705から第2フリップフロ
ップ3706にラッチされ、加算器3704で算出され
た |c(x,y+2)−a(0,2)|+|c(x,y+
3)−a(0,3)| が第1フリップフロップ3705にラッチされ、また、
図65に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)の第2フリップ
フロップ3603,3613,3623,3633に画
素データc(x+1,y+1)がラッチされ、同時に、
現画像ブロックデータ出力ユニット1010から各プロ
セッサエレメントPE(x,y)に画素データa(1,
1)が転送される。
Next, at the 26th clock of the clock pulse signal CK1, | c (x, y) -a (0,0) | + | c (x, y + 1)
−a (0,1) | is latched from the first flip-flop 3705 to the second flip-flop 3706, and | c (x, y + 2) −a (0, 2) | + | c ( x, y +
3) -a (0,3) | is latched in the first flip-flop 3705, and
As shown in FIG. 65, each processor element PE
The pixel data c (x + 1, y + 1) is latched in (x, y) and the second flip-flops 3603, 3613, 3623, 3633 of each register (x, y).
From the current image block data output unit 1010 to each processor element PE (x, y), pixel data a (1,
1) is transferred.

【0458】このとき、各プロセッサエレメントPE
(x,y)では、画素データc(x+1,y+1)が第
2フリップフロップ3603にラッチされ、画素データ
a(1,1)が現画像ブロックデータ出力ユニット10
10から減算器3701の入力端子Bに入力され、この
結果、 |c(x,y)−a(0,0)|+|c(x,y+1)
−a(0,1)|+|c(x+1,y+1)−a(1,
1)| が算出される。
At this time, each processor element PE
In (x, y), the pixel data c (x + 1, y + 1) is latched by the second flip-flop 3603, and the pixel data a (1, 1) is output to the current image block data output unit 10
10 is input to the input terminal B of the subtractor 3701. As a result, | c (x, y) −a (0, 0) | + | c (x, y + 1)
−a (0,1) | + | c (x + 1, y + 1) −a (1,
1) | is calculated.

【0459】次に、クロックパルス信号CK1の27ク
ロック目では、 |c(x,y+2)−a(0,2)|+|c(x,y+
3)−a(0,3)| が第1フリップフロップ3705から第2フリップフロ
ップ3706にラッチされ、加算器3704で算出され
た |c(x,y)−a(0,0)|+|c(x,y+1)
−a(0,1)|+|c(x+1,y+1)−a(1,
1)| が第1フリップフロップ3705にラッチされ、また、
図66に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)の第2フリップ
フロップ3603,3613,3623,3633に画
素データc(x+1,y+3)がラッチされ、同時に、
現画像ブロックデータ出力ユニット1010から各プロ
セッサエレメントPE(x,y)に画素データa(1,
3)が転送される。
Next, at the 27th clock of the clock pulse signal CK1, | c (x, y + 2) -a (0,2) | + | c (x, y +
3) -a (0,3) | is latched from the first flip-flop 3705 to the second flip-flop 3706, and | c (x, y) -a (0,0) | + | c (x, y + 1)
−a (0,1) | + | c (x + 1, y + 1) −a (1,
1) | is latched in the first flip-flop 3705, and
As shown in FIG. 66, each processor element PE
The pixel data c (x + 1, y + 3) is latched in (x, y) and the second flip-flops 3603, 3613, 3623, 3633 of each register (x, y), and at the same time,
From the current image block data output unit 1010 to each processor element PE (x, y), pixel data a (1,
3) is transferred.

【0460】このとき、各プロセッサエレメントPE
(x,y)では、画素データc(x+1,y+3)が第
2フリップフロップ3603にラッチされ、画素データ
a(1,3)が現画像ブロックデータ出力ユニット10
10から減算器3701の入力端子Bに入力され、この
結果、 |c(x,y+2)−a(0,2)|+|c(x,y+
3)−a(0,3)|+|c(x+1,y+3)−a
(1,3)| が算出される。
At this time, each processor element PE
In (x, y), the pixel data c (x + 1, y + 3) is latched by the second flip-flop 3603, and the pixel data a (1, 3) is output to the current image block data output unit 10
10 is input to the input terminal B of the subtractor 3701. As a result, | c (x, y + 2) −a (0, 2) | + | c (x, y +
3) -a (0,3) | + | c (x + 1, y + 3) -a
(1,3) | is calculated.

【0461】次に、クロックパルス信号CK1の28ク
ロック目では、 |c(x,y)−a(0,0)|+|c(x,y+1)
−a(0,1)|+|c(x+1,y+1)−a(1,
1)| が第1フリップフロップ3705から第2フリップフロ
ップ3706にラッチされ、加算器3704で算出され
た |c(x,y+2)−a(0,2)|+|c(x,y+
3)−a(0,3)|+|c(x+1,y+3)−a
(1,3)| が第1フリップフロップ3705にラッチされ、また、
図67に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)の第2フリップ
フロップ3603,3613,3623,3633に画
素データc(x+1,y)がラッチされ、同時に、現画
像ブロックデータ出力ユニット1010から各プロセッ
サエレメントPE(x,y)に画素データa(1,0)
が転送される。
Next, at the 28th clock of the clock pulse signal CK1, | c (x, y) -a (0,0) | + | c (x, y + 1)
−a (0,1) | + | c (x + 1, y + 1) −a (1,
1) | is latched from the first flip-flop 3705 to the second flip-flop 3706, and | c (x, y + 2) -a (0, 2) | + | c (x, y +) calculated by the adder 3704.
3) -a (0,3) | + | c (x + 1, y + 3) -a
(1,3) | is latched in the first flip-flop 3705, and
As shown in FIG. 67, each processor element PE
The pixel data c (x + 1, y) is latched by (x, y) and the second flip-flops 3603, 3613, 3623, 3633 of each register (x, y). Pixel data a (1,0) is added to element PE (x, y).
Is transferred.

【0462】このとき、各プロセッサエレメントPE
(x,y)では、画素データc(x+1,y)が第2フ
リップフロップ3603にラッチされ、画素データa
(1,0)が現画像ブロックデータ出力ユニット101
0から減算器3701の入力端子Bに入力され、この結
果、 |c(x,y)−a(0,0)|+|c(x,y+1)
−a(0,1)|+|c(x+1,y+1)−a(1,
1)|+|c(x+1,y)−a(1,0)| が算出される。
At this time, each processor element PE
In (x, y), the pixel data c (x + 1, y) is latched by the second flip-flop 3603, and the pixel data a
(1, 0) is the current image block data output unit 101
0 is input to the input terminal B of the subtractor 3701. As a result, | c (x, y) −a (0, 0) | + | c (x, y + 1)
−a (0,1) | + | c (x + 1, y + 1) −a (1,
1) | + | c (x + 1, y) -a (1, 0) | is calculated.

【0463】次に、クロックパルス信号CK1の29ク
ロック目では、 |c(x,y+2)−a(0,2)|+|c(x,y+
3)−a(0,3)|+|c(x+1,y+3)−a
(1,3)| が第1フリップフロップ3705から第2フリップフロ
ップ3706にラッチされ、加算器3704で算出され
た |c(x,y)−a(0,0)|+|c(x,y+1)
−a(0,1)|+|c(x+1,y+1)−a(1,
1)|+|c(x+1,y)−a(1,0)| が第1フリップフロップ3705にラッチされ、また、
図68に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)の第2フリップ
フロップ3603,3613,3623,3633に画
素データc(x+1,y+2)がラッチされ、同時に、
現画像ブロックデータ出力ユニット1010から各プロ
セッサエレメントPE(x,y)に画素データa(1,
2)が転送される。
Next, at the 29th clock of the clock pulse signal CK1, | c (x, y + 2) -a (0, 2) | + | c (x, y +
3) -a (0,3) | + | c (x + 1, y + 3) -a
(1,3) | is latched from the first flip-flop 3705 to the second flip-flop 3706, and | c (x, y) -a (0, 0) | + | c (x, y + 1)
−a (0,1) | + | c (x + 1, y + 1) −a (1,
1) | + | c (x + 1, y) -a (1,0) | is latched in the first flip-flop 3705, and
As shown in FIG. 68, each processor element PE
The pixel data c (x + 1, y + 2) is latched in (x, y) and the second flip-flops 3603, 3613, 3623, 3633 of each register (x, y), and at the same time,
From the current image block data output unit 1010 to each processor element PE (x, y), pixel data a (1,
2) is transferred.

【0464】このとき、各プロセッサエレメントPE
(x,y)では、画素データc(x+1,y+2)が第
2フリップフロップ3603にラッチされ、画素データ
a(1,2)が現画像ブロックデータ出力ユニット10
10から減算器3701の入力端子Bに入力され、この
結果、 |c(x,y+2)−a(0,2)|+|c(x,y+
3)−a(0,3)|+|c(x+1,y+3)−a
(1,3)|+|c(x+1,y+2)−a(1,2)
| が算出される。
At this time, each processor element PE
In (x, y), the pixel data c (x + 1, y + 2) is latched by the second flip-flop 3603, and the pixel data a (1, 2) is output to the current image block data output unit 10
10 is input to the input terminal B of the subtractor 3701. As a result, | c (x, y + 2) −a (0, 2) | + | c (x, y +
3) -a (0,3) | + | c (x + 1, y + 3) -a
(1,3) | + | c (x + 1, y + 2) -a (1,2)
| Is calculated.

【0465】すなわち、各プロセッサエレメントPE
(x,y)では、それぞれのプロセッサエレメントPE
(x,y)と位置的に対応する第1セグメント候補ブロ
ックと現画像第1セグメントブロックとの間の第1セグ
メントブロックディストーションが求められ、次いで、
クロックパルス信号CK1の1クロック後に、それぞれ
のプロセッサエレメントPE(x,y)と位置的に対応
する第2セグメント候補ブロックと現画像第2セグメン
トブロックとの間の第2セグメントブロックディストー
ションが求められたことになる。
That is, each processor element PE
In (x, y), each processor element PE
A first segment block distortion between a first segment candidate block positionally corresponding to (x, y) and the current image first segment block is determined, and then
One clock after the clock pulse signal CK1, a second segment block distortion between the current image second segment block and the second segment candidate block that physically corresponds to each processor element PE (x, y) is obtained. Will be.

【0466】以下、各プロセッサエレメントPE(x,
y)で算出された第1セグメントブロックディストーシ
ョンをD1(x,y)で表し、各プロセッサエレメント
PE(x,y)で算出された第2セグメントブロックデ
ィストーションをD2(x,y)で表すことにする。次
に、クロックパルス信号CK1の30クロック目では、
パルス信号CK2の立ち上りに同期して各プロセッサエ
レメントPE(x,y)の第1フリップフロップ370
5に保持されたそれぞれのD1(x,y)が第2フリッ
プフロップ3706にラッチされる。また、各プロセッ
サエレメントPE(x,y)の加算器3704で算出さ
れたそれぞれのD2(x,y)が第1フリップフロップ
3705にラッチされる。また、クロックパルス信号C
K1の30クロック目のダウンエッジに同期してパルス
信号LD1が立ち上り、各プロセッサエレメントPE
(0,0)のディストーション転送部3800のセレク
タ3801の入力端子Bと出力端子Yが電気的に接続さ
れる。
[0466] Hereinafter, each processor element PE (x,
The first segment block distortion calculated by y) is represented by D1 (x, y), and the second segment block distortion calculated by each processor element PE (x, y) is represented by D2 (x, y). I do. Next, at the 30th clock of the clock pulse signal CK1,
The first flip-flop 370 of each processor element PE (x, y) is synchronized with the rise of the pulse signal CK2.
5 is latched by the second flip-flop 3706. Further, each D2 (x, y) calculated by the adder 3704 of each processor element PE (x, y) is latched by the first flip-flop 3705. The clock pulse signal C
The pulse signal LD1 rises in synchronization with the 30th clock falling edge of K1, and each processor element PE
The input terminal B and the output terminal Y of the selector 3801 of the (0, 0) distortion transfer unit 3800 are electrically connected.

【0467】次に、クロックパルス信号CK1の31ク
ロック目では、パルス信号CK2の立ち上りに同期して
各プロセッサエレメントPE(x,y)の第2フリップ
フロップ3706に保持されたそれぞれのD1(x,
y)がディストーション転送部3800の第1フリップ
フロップ3802にラッチされる。また、各プロセッサ
エレメントPE(x,y)の第1フリップフロップ37
05に保持されたそれぞれのD2(x,y)が第2フリ
ップフロップ3706にラッチされる。
Next, at the 31st clock of the clock pulse signal CK1, each of the D1 (x,
y) is latched in the first flip-flop 3802 of the distortion transfer unit 3800. Also, the first flip-flop 37 of each processor element PE (x, y)
Each D2 (x, y) held at 05 is latched by the second flip-flop 3706.

【0468】次に、クロックパルス信号CK1の32ク
ロック目では、パルス信号CK2に同期してD1(0,
0)が、プロセッサエレメントPE(0,0)の第1フ
リップフロップ3802から第2フリップフロップ38
03にラッチされ、出力端子Doを通してセグメントブ
ロック特定ユニット4000の比較器4101の入力端
子A0およびフィールドブロックディストーション算出
ユニット5000の入力端子A0に出力される。
Next, at the 32nd clock of the clock pulse signal CK1, D1 (0, 0, 1) is synchronized with the pulse signal CK2.
0) from the first flip-flop 3802 of the processor element PE (0,0) to the second flip-flop 38
03, and is output to the input terminal A0 of the comparator 4101 of the segment block specifying unit 4000 and the input terminal A0 of the field block distortion calculation unit 5000 through the output terminal Do.

【0469】同時に、D1(0,2)がプロセッサエレ
メントPE(0,2)の第1フリップフロップ3802
から第2フリップフロップ3803にラッチされ、出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A1およびフィールド
ブロックディストーション算出ユニット5000の入力
端子A1に出力される。
At the same time, D1 (0,2) is the first flip-flop 3802 of processor element PE (0,2).
Is latched by the second flip-flop 3803 and the segment block specifying unit 40 is output through the output terminal Do.
00 and the input terminal A1 of the field block distortion calculation unit 5000.

【0470】同時に、D1(0,4)がプロセッサエレ
メントPE(0,4)の第1フリップフロップ3802
から第2フリップフロップ3803にラッチされ、出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A2およびフィールド
ブロックディストーション算出ユニット5000の入力
端子A2に出力される。
At the same time, D1 (0,4) sets the first flip-flop 3802 of processor element PE (0,4).
Is latched by the second flip-flop 3803 and the segment block specifying unit 40 is output through the output terminal Do.
00 and the input terminal A2 of the field block distortion calculation unit 5000.

【0471】また、同時に、他のプロセッサエレメント
PE(x,y)のに保持されたD1(x,y)は、同行
のプロセッサエレメントPE(x−2,y)のディスト
ーション転送部3800に転送される。また、各プロセ
ッサエレメントPE(x,y)の第2フリップフロップ
3706に保持されたD2(x,y)がそれぞれ第1フ
リップフロップ3802にラッチされる。
At the same time, D1 (x, y) held in another processor element PE (x, y) is transferred to the distortion transfer section 3800 of the same processor element PE (x-2, y). You. Further, D2 (x, y) held in the second flip-flop 3706 of each processor element PE (x, y) is latched by the first flip-flop 3802, respectively.

【0472】次に、クロックパルス信号CK1の33ク
ロック目では、パルス信号CK2に同期してD2(0,
0)が、プロセッサエレメントPE(0,0)の第1フ
リップフロップ3802から第2フリップフロップ38
03にラッチされ、出力端子Doを通してセグメントブ
ロック特定ユニット4000の比較器4101の入力端
子A0およびフィールドブロックディストーション算出
ユニット5000の入力端子A0に出力される。
Next, at the 33rd clock of the clock pulse signal CK1, D2 (0,
0) from the first flip-flop 3802 of the processor element PE (0,0) to the second flip-flop 38
03, and is output to the input terminal A0 of the comparator 4101 of the segment block specifying unit 4000 and the input terminal A0 of the field block distortion calculation unit 5000 through the output terminal Do.

【0473】同時に、D2(0,2)がプロセッサエレ
メントPE(0,2)の第1フリップフロップ3802
から第2フリップフロップ3803にラッチされ、出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A1およびフィールド
ブロックディストーション算出ユニット5000の入力
端子A1に出力される。
At the same time, D2 (0,2) is the first flip-flop 3802 of processor element PE (0,2).
Is latched by the second flip-flop 3803 and the segment block specifying unit 40 is output through the output terminal Do.
00 and the input terminal A1 of the field block distortion calculation unit 5000.

【0474】同時に、D2(0,4)がプロセッサエレ
メントPE(0,4)の第1フリップフロップ3802
から第2フリップフロップ3803にラッチされ、出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A2およびフィールド
ブロックディストーション算出ユニット5000の入力
端子A2に出力される。
At the same time, D2 (0,4) sets the first flip-flop 3802 of the processor element PE (0,4).
Is latched by the second flip-flop 3803 and the segment block specifying unit 40 is output through the output terminal Do.
00 and the input terminal A2 of the field block distortion calculation unit 5000.

【0475】また、同時に、他のプロセッサエレメント
PE(x,y)に保持されたD2(x,y)は、同行の
プロセッサエレメントPE(x−2,y)のディストー
ション転送部3800に転送される。また、各プロセッ
サエレメントPE(x,y)の第2フリップフロップ3
706に保持されたD1(x,y)がそれぞれ第1フリ
ップフロップ3802にラッチされる。
At the same time, D2 (x, y) held in another processor element PE (x, y) is transferred to the distortion transfer unit 3800 of the same processor element PE (x-2, y). . Also, the second flip-flop 3 of each processor element PE (x, y)
D1 (x, y) held in 706 is latched by the first flip-flop 3802, respectively.

【0476】次に、クロックパルス信号CK1の34ク
ロック目では、パルス信号CK2に同期してD1(2,
0)、D1(2,2)およびD1(2,4)が、それぞ
れプロセッサエレメントPE(0,0)、プロセッサエ
レメントPE(0,2)およびプロセッサエレメントP
E(0,4)の第1フリップフロップ3802から第2
フリップフロップ3803にラッチされ、それぞれ出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A0,A1,A2およ
びフィールドブロックディストーション算出ユニット5
000の入力端子A0,A1,A2に出力される。
Next, at the 34th clock of the clock pulse signal CK1, D1 (2,2) is synchronized with the pulse signal CK2.
0), D1 (2,2) and D1 (2,4) are the processor element PE (0,0), processor element PE (0,2) and processor element P, respectively.
From the first flip-flop 3802 of E (0,4) to the second
The segment block specifying unit 40 is latched by the flip-flop 3803, and is output through the output terminal Do.
00 input terminals A0, A1, A2 of the comparator 4101 and the field block distortion calculation unit 5
000 input terminals A0, A1, A2.

【0477】また、同時に、他のプロセッサエレメント
PE(2,y)に保持されたD1(2,y)は、同行の
プロセッサエレメントPE(0,y)のディストーショ
ン転送部3800に転送される。また、各プロセッサエ
レメントPE(x,y)の第2フリップフロップ370
6に保持されたD2(x+2,y)がそれぞれ第1フリ
ップフロップ3802にラッチされる。
At the same time, D1 (2, y) held in another processor element PE (2, y) is transferred to the distortion transfer section 3800 of the processor element PE (0, y) in the same row. Also, the second flip-flop 370 of each processor element PE (x, y)
6 are latched by the first flip-flop 3802, respectively.

【0478】次に、クロックパルス信号CK1の35ク
ロック目では、パルス信号CK2に同期してD2(2,
0)、D2(2,2)およびD2(2,4)が、それぞ
れプロセッサエレメントPE(0,0)、プロセッサエ
レメントPE(0,2)およびプロセッサエレメントP
E(0,4)の第1フリップフロップ3802から第2
フリップフロップ3803にラッチされ、それぞれ出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A0,A1,A2およ
びフィールドブロックディストーション算出ユニット5
000の入力端子A0,A1,A2に出力される。
Next, at the 35th clock of the clock pulse signal CK1, D2 (2, 2) is synchronized with the pulse signal CK2.
0), D2 (2,2) and D2 (2,4) are processor elements PE (0,0), processor element PE (0,2) and processor element P, respectively.
From the first flip-flop 3802 of E (0,4) to the second
The segment block specifying unit 40 is latched by the flip-flop 3803, and is output through the output terminal Do.
00 input terminals A0, A1, A2 of the comparator 4101 and the field block distortion calculation unit 5
000 input terminals A0, A1, A2.

【0479】また、同時に、他のプロセッサエレメント
PE(2,y)に保持されたD2(4,y)は、同行の
プロセッサエレメントPE(0,y)のディストーショ
ン転送部3800に転送される。また、各プロセッサエ
レメントPE(0,y)の第2フリップフロップ370
6に保持されたD1(4,y)がそれぞれ第1フリップ
フロップ3802にラッチされる。
At the same time, D2 (4, y) held in another processor element PE (2, y) is transferred to the distortion transfer section 3800 of the processor element PE (0, y) in the same row. Also, the second flip-flop 370 of each processor element PE (0, y)
6 are latched by the first flip-flop 3802, respectively.

【0480】次に、クロックパルス信号CK1の36ク
ロック目では、パルス信号CK2に同期してD1(4,
0)、D1(4,2)およびD1(4,4)が、それぞ
れプロセッサエレメントPE(0,0)、プロセッサエ
レメントPE(0,2)およびプロセッサエレメントP
E(0,4)の第1フリップフロップ3802から第2
フリップフロップ3803にラッチされ、それぞれ出力
端子Doを通してセグメントブロック特定ユニット40
00の比較器4101の入力端子A0,A1,A2およ
びフィールドブロックディストーション算出ユニット5
000の入力端子A0,A1,A2に出力される。
Next, at the 36th clock of the clock pulse signal CK1, D1 (4, 4) is synchronized with the pulse signal CK2.
0), D1 (4,2) and D1 (4,4) are processor elements PE (0,0), processor element PE (0,2) and processor element P, respectively.
From the first flip-flop 3802 of E (0,4) to the second
The segment block specifying unit 40 is latched by the flip-flop 3803, and is output through the output terminal Do.
00 input terminals A0, A1, A2 of the comparator 4101 and the field block distortion calculation unit 5
000 input terminals A0, A1, A2.

【0481】また、各プロセッサエレメントPE(0,
y)の第2フリップフロップ3706に保持されたD2
(4,y)がそれぞれ第1フリップフロップ3802に
ラッチされる。次に、クロックパルス信号CK1の37
クロック目では、パルス信号CK2に同期してD2
(4,0)、D2(4,2)およびD2(4,4)が、
それぞれプロセッサエレメントPE(0,0)、プロセ
ッサエレメントPE(0,2)およびプロセッサエレメ
ントPE(0,4)の第1フリップフロップ3802か
ら第2フリップフロップ3803にラッチされ、それぞ
れ出力端子Doを通してセグメントブロック特定ユニッ
ト4000の比較器4101の入力端子A0,A1,A
2およびフィールドブロックディストーション算出ユニ
ット5000の入力端子A0,A1,A2に出力され
る。
Also, each processor element PE (0,
y) D2 held in the second flip-flop 3706
(4, y) are respectively latched by the first flip-flop 3802. Next, 37 of the clock pulse signal CK1
At the clock, D2 is synchronized with the pulse signal CK2.
(4,0), D2 (4,2) and D2 (4,4)
The first and second flip-flops 3802 and 3803 of the processor elements PE (0,0), PE (0,2) and PE (0,4) respectively latch the segment blocks through the output terminals Do. Input terminals A0, A1, A of comparator 4101 of specific unit 4000
2 and input to the input terminals A0, A1, A2 of the field block distortion calculation unit 5000.

【0482】すなわち、すべての第1セグメントブロッ
クディストーションD1(x,y)およびすべての第2
セグメントブロックディストーションD2(x,y)が
セグメントブロックディストーション算出ユニット30
10からセグメントブロック特定ユニット4000およ
びフィールドブロックディストーション算出ユニット5
000に転送されたことになる。
That is, all the first segment block distortions D1 (x, y) and all the second
The segment block distortion D2 (x, y) is calculated by the segment block distortion calculating unit 30.
10 to segment block specifying unit 4000 and field block distortion calculating unit 5
000.

【0483】次に、図54に示されたタイムチャートに
基づいて、実施例1と同様に、セグメントブロック特定
ユニット4000において、セグメントブロックディス
トーション算出ユニット3010で算出された各D1
(x,y)の中から最小の第1セグメントブロックディ
ストーションが検出され、この最小第1セグメントブロ
ックディストーションが算出されたプロセッサエレメン
トPE(x,y)の配置位置に基づいて第1セグメント
動きベクトルMVSg1が求められるとともに、セグメ
ントブロックディストーション算出ユニット3010で
算出された各D2(x,y)の中から最小の第2セグメ
ントブロックディストーションが検出され、この最小第
2セグメントブロックディストーションが算出されたプ
ロセッサエレメントPE(x,y)の配置位置に基づい
て第2セグメント動きベクトルMVSg2が求められ
る。
Next, based on the time chart shown in FIG. 54, similarly to the first embodiment, in the segment block specifying unit 4000, each D1 calculated by the segment block distortion calculating unit 3010 is calculated.
A minimum first segment block distortion is detected from (x, y), and the first segment motion vector MVSg1 is determined based on the arrangement position of the processor element PE (x, y) for which the minimum first segment block distortion has been calculated. Is calculated, and a minimum second segment block distortion is detected from each of the D2 (x, y) calculated by the segment block distortion calculation unit 3010, and the processor element PE for which the minimum second segment block distortion is calculated is obtained. The second segment motion vector MVSg2 is obtained based on the arrangement position of (x, y).

【0484】また、図55に示されたタイムチャートに
基づいて、実施例1と同様に、フィールドブロックディ
ストーション算出ユニット5000において、セグメン
トブロックディストーション算出ユニット3010の同
じプロセッサエレメントPE(x,y)で算出された各
第1セグメントブロックディストーションD1(x,
y)と各第2セグメントブロックディストーションD2
(x,y)を加算して現画像フィールドブロック210
および複数のフィールド候補ブロックに対応するフィー
ルドブロックディストーションDis(x,y)が算出
され、フィールドブロック特定ユニット6000におい
て、フィールドブロックディストーション算出ユニット
5000で算出された各フィールドブロックディストー
ションDis(x,y)の中から最小のフィールドブロ
ックディストーションDis(x,y)が検出され、こ
の最小フィールドブロックディストーションDis
(x,y)の第1セグメントブロックディストーション
D1(x,y)および第2セグメントブロックディスト
ーションD2(x,y)が算出されたプロセッサエレメ
ントPE(x,y)の配置位置に基づいてフィールド動
きベクトルMVFiが求められる。
Also, based on the time chart shown in FIG. 55, in the same manner as in the first embodiment, the field block distortion calculating unit 5000 calculates the same processor element PE (x, y) of the segment block distortion calculating unit 3010. Each of the first segment block distortions D1 (x,
y) and each second segment block distortion D2
(X, y) is added to the current image field block 210
And a field block distortion Dis (x, y) corresponding to a plurality of field candidate blocks is calculated. In the field block specifying unit 6000, the field block distortion Dis (x, y) calculated by the field block distortion calculating unit 5000 is calculated. A minimum field block distortion Dis (x, y) is detected from the inside, and this minimum field block distortion Dis is detected.
A field motion vector based on the arrangement position of the processor element PE (x, y) for which the first segment block distortion D1 (x, y) and the second segment block distortion D2 (x, y) of (x, y) are calculated MVFi is required.

【0485】また、クロックパルス信号CK1の30ク
ロック目では、図69に示すように、1列目の各プロセ
ッサエレメントPE(x,y)および各レジスタ(x,
y)のそれぞれの第2フリップフロップ3603に初め
て画素データc(x+2,y)がラッチされ、同時に、
現画像ブロックデータ出力ユニット1010から各プロ
セッサエレメントPE(x,y)に画素データa(2,
0)が転送される。
At the 30th clock of the clock pulse signal CK1, as shown in FIG. 69, each processor element PE (x, y) and each register (x,
The pixel data c (x + 2, y) is latched for the first time in each second flip-flop 3603 of FIG.
From the current image block data output unit 1010 to each processor element PE (x, y), pixel data a (2,
0) is transferred.

【0486】ここで、各プロセッサエレメントPE
(x,y)では、図70に示すように、とサーチウィン
ドウ403に対して水平方向に2画素分シフトしたサー
チウィンドウ404の画素データc(x+2,y)がそ
れぞれ22クロック目のc(x,y)と同様にそれぞれ
の第2フリップフロップ3603に転送されている。画
素データa(2,0)は、現画像フィールドブロック2
00に対して水平方向に隣接する現画像フィールドブロ
ック201の最初の画素データであり、22クロック目
のa(0,0)と同様に、それぞれのプロセッサエレメ
ントPE(x,y)に転送される。
Here, each processor element PE
At (x, y), as shown in FIG. 70, the pixel data c (x + 2, y) of the search window 404 shifted horizontally by two pixels with respect to the search window 403 are c (x, y) of the 22nd clock, respectively. , Y) are transferred to the respective second flip-flops 3603. Pixel data a (2,0) is the current image field block 2
This is the first pixel data of the current image field block 201 horizontally adjacent to 00, and is transferred to the respective processor elements PE (x, y), similarly to a (0,0) at the 22nd clock. .

【0487】すなわち、30クロック目以降は、図70
に示された現画像フィールドブロック201の画素デー
タが現画像ブロックデータ出力ユニット1010から順
次出力され、サーチウィンドウ404の画素データのう
ち、サーチウィンドウ403の画素データと共通するデ
ータを除いた残りの画素データがサーチウィンドウデー
タ出力ユニット2010から列毎に順次出力され、22
クロック目〜29クロック目と同様に8クロック毎に水
平方向に隣接する現画像フィールドブロックに対応する
第1セグメントブロックディストーションおよび第2セ
グメントブロックディストーションが順次求められるこ
とになる。
In other words, after the 30th clock, FIG.
Are sequentially output from the current image block data output unit 1010, and the remaining pixels of the pixel data of the search window 404 excluding data common to the pixel data of the search window 403 are displayed. Data is sequentially output from the search window data output unit 2010 for each column.
As in the case of the clocks 29 to 29, the first segment block distortion and the second segment block distortion corresponding to the current image field block horizontally adjacent every eight clocks are sequentially obtained.

【0488】また、セグメントブロック特定ユニット4
000においては、ディストーション算出ユニット30
10で算出された第1セグメントブロックディストーシ
ョンおよび第2セグメントブロックディストーションが
それぞれ8クロック毎に入力され、第1セグメント動き
ベクトルMVSg1および第2セグメント動きベクトル
MVSg2が出力される。
The segment block specifying unit 4
000, the distortion calculation unit 30
The first segment block distortion and the second segment block distortion calculated in 10 are input every eight clocks, and the first segment motion vector MVSg1 and the second segment motion vector MVSg2 are output.

【0489】さらに、フィールドブロックディストーシ
ョン算出ユニット5000においても、8クロック毎に
フィールドブロックディストーションが算出され、フィ
ールドブロック特定ユニット6000においても、8ク
ロック毎にフィールド動きベクトルMVFiが求められ
る。すなわち、実施例1と同様に、第1および第2セグ
メントブロックディストーション算出処理、第1および
第2動きベクトルMVSg1,MVSg2特定処理、フ
ィールドブロックディストーション算出処理、並びに、
フィールド動きベクトルMVFi特定処理のパイプライ
ン化が実現されている。
Further, the field block distortion calculating unit 5000 also calculates the field block distortion every eight clocks, and the field block specifying unit 6000 also obtains the field motion vector MVFi every eight clocks. That is, similarly to the first embodiment, the first and second segment block distortion calculation processing, the first and second motion vectors MVSg1 and MVSg2 identification processing, the field block distortion calculation processing, and
Pipelining of the field motion vector MVFi identification processing is realized.

【0490】なお、本実施例2においても、図46およ
び図47に示すように、現画像フィールドブロック20
0を(N×2)行M列の画素からなる現画像フィールド
ブロック202で表し、サーチウィンドウ403を(H
+N)行L列の画素からなるサーチウィンドウ402で
表した場合には、水平方向に隣接した現画像フィールド
ブロックとこの現画像フィールドブロックに対応するM
画素分水平方向にシフトしたサーチウィンドウから求め
られる動きベクトルは、クロックパルス信号CK1の M×N×2 クロックを1サイクルとして順次求められることは言う
までもない。
In the second embodiment as well, as shown in FIG. 46 and FIG.
0 is represented by a current image field block 202 composed of pixels in (N × 2) rows and M columns, and the search window 403 is represented by (H
+ N) When represented by a search window 402 composed of pixels in rows and L columns, a current image field block adjacent in the horizontal direction and an M corresponding to the current image field block are displayed.
It goes without saying that the motion vector obtained from the search window shifted in the horizontal direction by the number of pixels can be sequentially obtained using M × N × 2 clocks of the clock pulse signal CK1 as one cycle.

【0491】また、本実施例2のセグメントブロックデ
ィストーション算出ユニット3010の第1サイドレジ
スタグループ3310は、現画像フィールドブロック2
10を(N×2)行M列の画素からなる現画像フィール
ドブロック202で表し、サーチウィンドウ403を
(H+N)行L列の画素からなるサーチウィンドウ40
2で表した場合には、図48に示すように、第1サイド
レジスタグループ3310は、列毎にそれぞれ(N−
1)個の第1サイドレジスタSR(x,y)が互いに直
列に電気的に接続されて構成され、第2サイドレジスタ
グループ3410は、列毎にそれぞれ(N−1)個の第
2サイドレジスタSR(x,y)が互いに直列に電気的
に接続されて構成される。また、それぞれの第1および
第2サイドレジスタSR(x,y)は、それぞれ隣接す
る同行の第1および第2サイドレジスタSR(x,y)
と電気的に接続される。
Also, the first side register group 3310 of the segment block distortion calculation unit 3010 according to the second embodiment includes the current image field block 2
10 is represented by a current image field block 202 composed of (N × 2) rows and M columns of pixels, and a search window 403 is represented by a search window 40 composed of (H + N) rows and L columns of pixels.
48, the first side register group 3310 includes (N-
1) first side registers SR (x, y) are electrically connected to each other in series, and the second side register group 3410 includes (N−1) second side registers SR for each column. SR (x, y) are electrically connected to each other in series. The first and second side registers SR (x, y) are respectively adjacent to the first and second side registers SR (x, y) on the same row.
Is electrically connected to

【0492】(実施例3)図71〜図73は本発明に係
る実施例3の動きベクトル探索装置を示す図である。本
実施例では、本発明の特徴部分を具体的に説明する。図
71に示すように、セグメントブロックディストーショ
ン算出ユニット3020は、実施例1のセグメントブロ
ックディストーション算出ユニット3000における第
1サイドレジスタグループ3300と第2サイドレジス
タグループ3400を第3サイドレジスタグループ35
00により構成したものである。
(Embodiment 3) FIGS. 71 to 73 show a motion vector search apparatus according to Embodiment 3 of the present invention. In this embodiment, a characteristic portion of the present invention will be specifically described. As shown in FIG. 71, the segment block distortion calculation unit 3020 converts the first side register group 3300 and the second side register group 3400 in the segment block distortion calculation unit 3000 of the first embodiment into the third side register group 35.
00.

【0493】第3サイドレジスタグループ3500は、
図71に示すように、4個の第3サイドレジスタ SR(0,3),SR(1,3),SR(2,3),SR(3,3) により構成されている。次に、第3サイドレジスタSR
(x,3)の端子配置およびブロック図を説明する。第
3サイドレジスタSR(x,3)の端子配置は、図57
に示された中間レジスタ(x,y)の端子配置と同じで
あり、第3サイドレジスタSR(x,5)の基本的なブ
ロック図は、図58に示された中間レジスタIP(x,
y)のブロック図と同じになる。
The third side register group 3500 is composed of
As shown in FIG. 71, it is composed of four third side registers SR (0,3), SR (1,3), SR (2,3), SR (3,3). Next, the third side register SR
The terminal arrangement and the block diagram of (x, 3) will be described. The terminal arrangement of the third side register SR (x, 3) is shown in FIG.
Is the same as the terminal arrangement of the intermediate register (x, y) shown in FIG. 58, and the basic block diagram of the third side register SR (x, 5) is
It becomes the same as the block diagram of y).

【0494】ここで、転送方向選択部3600のセレク
タ3601の入力端子Aは、入力端子YDiを介して同
列のプロセッサエレメントPE(x,2)または入力レ
ジスタIR(3,2)の出力端子YDoに電気的に接続
される。セレクタ3601の入力端子Bは、入力端子Y
Uiを介して同列のプロセッサエレメントPE(x,
0)または入力レジスタIR(3,0)の出力端子YU
oに電気的に接続される。セレクタ3601の入力端子
Cは、入力端子YLiを介して同行の第3サイドレジス
タSR(x+1,3)の出力端子YLoに電気的に接続
される。
Here, the input terminal A of the selector 3601 of the transfer direction selector 3600 is connected to the processor element PE (x, 2) of the same column or the output terminal YDo of the input register IR (3,2) via the input terminal YDi. Electrically connected. The input terminal B of the selector 3601 is connected to the input terminal Y
Through the Ui, the same processor element PE (x,
0) or the output terminal YU of the input register IR (3,0).
o is electrically connected. The input terminal C of the selector 3601 is electrically connected via the input terminal YLi to the output terminal YLo of the third side register SR (x + 1,3) in the same row.

【0495】また、出力端子YUoは、同列のプロセッ
サエレメントPE(x,2)または入力レジスタIR
(3,2)の入力端子YUiに電気的に接続される。出
力端子YDoは、同列のプロセッサエレメントPE
(x,0)または入力レジスタIR(3,0)の入力端
子YDiに電気的に接続される。出力端子YLoは、同
行の第3サイドレジスタSR(x−1,3)の入力端子
YLiに電気的に接続される。
The output terminal YUo is connected to the processor element PE (x, 2) in the same row or the input register IR.
(3, 2) is electrically connected to the input terminal YUi. The output terminal YDo is connected to the same processor element PE.
(X, 0) or the input terminal YDi of the input register IR (3, 0). The output terminal YLo is electrically connected to the input terminal YLi of the third side register SR (x-1,3) in the same row.

【0496】すなわち、各第3サイドレジスタSR
(x,3)は、1行目および3行目の同列のプロセッサ
エレメントPE(x,y)または入力レジスタIR
(3,y)と電気的に接続され、列毎に配線がリング状
に形成される。各第3サイドレジスタSR(x,3)
は、1行目の同列のプロセッサエレメントPE(x,
0)または入力レジスタIR(3,0)との間でサーチ
ウィンドウの画素データを転送するとともに、3行目の
同列のプロセッサエレメントPE(x,2)または入力
レジスタIR(3,2)との間でサーチウィンドウの画
素データを転送する。
That is, each third side register SR
(X, 3) is the processor element PE (x, y) or input register IR of the same column in the first and third rows.
(3, y), and wiring is formed in a ring shape for each column. Each third side register SR (x, 3)
Is the processor element PE (x,
0) or the input register IR (3, 0) to transfer the pixel data of the search window, and to the third row in the same column of the processor element PE (x, 2) or the input register IR (3, 2). The pixel data of the search window is transferred between them.

【0497】このため、実施例1では、図12における
上方向に画素データを転送する場合には、第1サイドレ
ジスタグループ3300が画素データを一時的に記憶す
るバッファとなり、図12における下方向に画素データ
を転送する場合には、第2サイドレジスタグループ34
00が画素データを一時的に記憶するバッファとなるよ
うに、プロセッサエレメントPE(x,y)からなる2
次元配列プロセッサグループ3100の両側に各サイド
レジスタSR(x,y)を配置したが、本実施例3で
は、2次元配列プロセッサグループ3100の片側に各
第3サイドレジスタSR(x,3)を配置すればよく、
回路規模を半減することができる。
For this reason, in the first embodiment, when pixel data is transferred in the upward direction in FIG. 12, the first side register group 3300 serves as a buffer for temporarily storing pixel data, and When transferring pixel data, the second side register group 34
2 comprising processor elements PE (x, y) so that 00 is a buffer for temporarily storing pixel data.
Each side register SR (x, y) is arranged on both sides of the two-dimensional array processor group 3100. In the third embodiment, each third register SR (x, 3) is arranged on one side of the two-dimensional array processor group 3100. Just do
The circuit scale can be halved.

【0498】なお、本実施例3における動きベクトルを
求める動作は、図7〜図11に示されたタイムチャート
に基づいて実施例1と同様に行われることはいうまでも
ない。また、本実施例3の第3サイドレジスタSR
(x,y)は、実施例2のセグメントブロックディスト
ーション算出ユニット3010にも適用され、図72に
示すように、現画像フィールドブロック200を(N×
2)行M列で表すと、第3サイドレジスタグループ35
01は、列毎に直列に電気的に接続された(N−1)個
の第3サイドレジスタSR(x,y)によって構成され
る。また、それぞれの行の第3サイドレジスタSR
(x,y)は、同行の第3サイドレジスタSR(x,
y)と電気的に接続される。
It is needless to say that the operation of obtaining the motion vector in the third embodiment is performed in the same manner as in the first embodiment based on the time charts shown in FIGS. Further, the third side register SR of the third embodiment
(X, y) is also applied to the segment block distortion calculation unit 3010 of the second embodiment, and as shown in FIG.
2) The third side register group 35 is represented by a row M column.
01 is composed of (N-1) third side registers SR (x, y) electrically connected in series for each column. Further, the third side register SR of each row
(X, y) is the third side register SR (x, y) in the same row.
y).

【0499】さらに、実際に回路を構成する場合には、
例えば、図71に示すように、2次元配列プロセッサグ
ループ3101のそれぞれの列の間に列毎に各プロセッ
サエレメントPE(x,y)、各中間レジスタIP
(x,y)および各第3サイドレジスタSR(x,y)
間の距離を均一に配置することで、短い転送バスを形成
することできるので、誤りの少ない安定した回路を構成
することができるとともに、回路規模を小さくすること
ができる。
Further, when actually configuring a circuit,
For example, as shown in FIG. 71, between each column of the two-dimensional array processor group 3101, each processor element PE (x, y), each intermediate register IP
(X, y) and each third side register SR (x, y)
By arranging the distances uniformly, a short transfer bus can be formed, so that a stable circuit with few errors can be configured and the circuit scale can be reduced.

【0500】(実施例4)図74および図75は本発明
に係る実施例4の動きベクトル探索装置を示す図であ
る。本実施例4では、本発明の特徴部分を具体的に説明
する。実施例2においては、セグメントブロックディス
トーション算出ユニット3010の中間レジスタIP
(x,y)は、1行置きに、かつ、1列置きに配置され
たが、これらの配置は不均等に分散して配置してもよ
い。
(Embodiment 4) FIGS. 74 and 75 show a motion vector search apparatus according to Embodiment 4 of the present invention. Fourth Embodiment In a fourth embodiment, a characteristic portion of the present invention will be specifically described. In the second embodiment, the intermediate register IP of the segment block distortion calculation unit 3010 is used.
(X, y) are arranged every other row and every other column, but these arrangements may be arranged unequally.

【0501】例えば、図74に示すように、セグメント
ブロックディストーション算出ユニット3030は、2
次元配列プロセッサグループ3130をプロセッサエレ
メントPE(x,y)および中間レジスタIP(x,
y)からなる13行13列のマトリックス状に配置し、
さらに、2次元配列プロセッサグループ3130の右側
に13個の入力レジスタIR(x,y)からなる入力レ
ジスタグループ3230を配置し、2次元配列プロセッ
サグループ3130の上下にそれぞれ14個の第1また
は第2サイドレジスタSR(x,y)からなる第1サイ
ドレジスタグループ3330および第2サイドレジスタ
グループ3430を配置したものである。ここで、プロ
セッサエレメントPE(x,y)は斜線で示されてお
り、また、各レジスタ(x,y)は無地で示されてい
る。
For example, as shown in FIG. 74, the segment block distortion calculating unit 3030
The three-dimensional array processor group 3130 is divided into a processor element PE (x, y) and an intermediate register IP (x, y).
y) arranged in a matrix of 13 rows and 13 columns,
Further, an input register group 3230 including 13 input registers IR (x, y) is arranged on the right side of the two-dimensional array processor group 3130, and fourteen first or second input registers are arranged above and below the two-dimensional array processor group 3130, respectively. A first side register group 3330 and a second side register group 3430 including side registers SR (x, y) are arranged. Here, the processor element PE (x, y) is indicated by oblique lines, and each register (x, y) is indicated by solid color.

【0502】また、図75に示すように、セグメントブ
ロックディストーション算出ユニット3040は、2次
元配列プロセッサグループ3140をプロセッサエレメ
ントPE(x,y)および中間レジスタIP(x,y)
からなる13行13列のマトリックス状に配置し、さら
に、2次元配列プロセッサグループ3140の右側に1
3個の入力レジスタIR(x,y)からなる入力レジス
タグループ3240を配置し、2次元配列プロセッサグ
ループ3140の下側に14個の第3サイドレジスタS
R(x,y)からなる第3サイドレジスタグループ35
40を配置したものである。ここで、プロセッサエレメ
ントPE(x,y)は斜線で示されており、また、各レ
ジスタ(x,y)は無地で示されている。
As shown in FIG. 75, the segment block distortion calculating unit 3040 stores the two-dimensional array processor group 3140 in the processor element PE (x, y) and the intermediate register IP (x, y).
Are arranged in a matrix of 13 rows and 13 columns consisting of
An input register group 3240 consisting of three input registers IR (x, y) is arranged, and 14 third side registers S are arranged below the two-dimensional array processor group 3140.
Third side register group 35 consisting of R (x, y)
40 are arranged. Here, the processor element PE (x, y) is indicated by oblique lines, and each register (x, y) is indicated by solid color.

【0503】2次元配列プロセッサグループ3130お
よび3140は、動きベクトルが(0,0)となる位置
を中心にプロセッサエレメントPE(x,y)を密に配
置し、この中心から離れるに従ってプロセッサエレメン
トPE(x,y)の密度を減らしている。このため、動
きの大きい画像に対しては、広い探索範囲から動きベク
トルを求めることができるとともに、動きの小さい画像
に対しては、予測精度の高い動きベクトルを求めること
ができる。
The two-dimensional array processor groups 3130 and 3140 arrange the processor elements PE (x, y) densely around the position where the motion vector is (0, 0), and as the distance from the center increases, the processor elements PE ( x, y). Thus, a motion vector can be obtained from a wide search range for an image with a large motion, and a motion vector with a high prediction accuracy can be obtained for an image with a small motion.

【0504】[0504]

【効果】請求項1記載の発明によれば、セグメントブロ
ックディストーション算出手段によって、フィールド候
補ブロックの数と同数の演算器によって第1セグメント
ブロックディストーションおよび第2セグメントブロッ
クディストーションを時分割演算で算出することができ
るので、回路規模を小さくすることができる。また、演
算器の数を(H−N+1)×(LーM+1)個よりも少
なくすることができるので、演算器の数を削減すること
により、回路規模を小さくすることができ、かつ、広い
範囲で簡略的な探索方法で動きベクトルを求めることが
できる。
According to the first aspect of the present invention, the segment block distortion calculating means calculates the first segment block distortion and the second segment block distortion by a time-division operation using the same number of arithmetic units as the number of field candidate blocks. Therefore, the circuit scale can be reduced. Further, since the number of arithmetic units can be made smaller than (H−N + 1) × (LM−1), the circuit scale can be reduced by reducing the number of arithmetic units, and the circuit size can be widened. A motion vector can be obtained by a simple search method within the range.

【0505】請求項2記載の発明によれば、(H−N+
1)×(L−M+1)個の候補ブロックに対応したディ
ストーションを算出することができるので、確実に全点
探索法により予測精度の高い第1および第2セグメント
動きベクトル、並びに、フィールド動きベクトルを求め
ることができる。請求項3記載の発明によれば、サーチ
ウィンドウデータ転送手段の各レジスタおよびセグメン
トブロックディストーション算出手段の各演算器を共通
制御信号によって同一時刻に同一動作を行うように制御
することができるので、演算処理の並列化による高速処
理を行うことができる。
According to the invention of claim 2, (H-N +
1) Since distortions corresponding to × (L−M + 1) candidate blocks can be calculated, the first and second segment motion vectors and the field motion vector having high prediction accuracy can be reliably obtained by the all-point search method. You can ask. According to the third aspect of the present invention, each register of the search window data transfer means and each arithmetic unit of the segment block distortion calculating means can be controlled by the common control signal so as to perform the same operation at the same time. High-speed processing can be performed by parallel processing.

【0506】請求項4記載の発明によれば、サイドレジ
スタユニットを、セグメントブロックディストーション
算出手段と同じレジスタで構成することができるので、
回路を容易に構成することができる。請求項5記載の発
明によれば、サイドレジスタユニットを、セグメントブ
ロックディストーション算出手段と同じレジスタで構成
することができるので、回路を容易に構成することがで
きる。また、セグメントブロックディストーション算出
手段の各レジスタおよび入力レジスタユニットの各レジ
スタとサイドレジスタユニットのレジスタを列毎にリン
グ状に電気的に接続することができるので、請求項4記
載のサイドレジスタユニットの半数のレジスタでサイド
レジスタユニットを構成することができる。さらに、各
列毎にリング状に接続された各レジスタ間の距離を均一
に配置することができるので、各レジスタ間に短い転送
バスを形成することができるとともに、各レジスタ間の
転送時間を均一にすることができる。従って、誤りの少
ない安定した回路を形成することができるとともに、回
路規模を小さくすることができる。
According to the present invention, the side register unit can be constituted by the same register as the segment block distortion calculating means.
The circuit can be easily configured. According to the fifth aspect of the present invention, the side register unit can be constituted by the same register as the segment block distortion calculating means, so that the circuit can be easily constituted. Further, since each register of the segment block distortion calculating means and each register of the input register unit and the register of the side register unit can be electrically connected in a ring shape for each column, half of the side register units according to claim 4 can be obtained. Can constitute a side register unit. Further, since the distance between the registers connected in a ring shape can be arranged uniformly for each column, a short transfer bus can be formed between the registers, and the transfer time between the registers can be made uniform. Can be Therefore, a stable circuit with few errors can be formed, and the circuit scale can be reduced.

【0507】請求項6記載の発明によれば、レジスタの
第2フリップフロップにラッチされたサーチウィンドウ
の画素データと現画像ブロックデータ出力手段によって
出力された現画像フィールドブロックの画素データに基
づいて局所ディストーション算出ユニットで算出された
局所ディストーションと局所ディストーション総和ユニ
ットの第2フリップフロップにラッチされたデータとの
累積演算を加算器によって行うことができるので、レジ
スタの第1フリップフロップおよび局所ディストーショ
ン総和ユニットの第1フリップフロップでは、同一の現
画像セグメントブロックに対応するデータを保持すると
ともに、レジスタの第2フリップフロップおよび局所デ
ィストーション総和ユニットの第2フリップフロップに
おいても、それぞれ第1フリップフロップと異なる同一
の現画像セグメントブロックに対応するデータを保持す
ることができる。このため、第1セグメントブロックデ
ィストーションおよび第2セグメントブロックディスト
ーションをそれぞれ時分割で算出することができる。ま
た、直列に電気的に接続された2つのフリップフロップ
によってレジスタおよび局所ディストーション総和ユニ
ットを構成することができるので、容易に回路を構成す
ることができる。
[0507] According to the invention of claim 6, the local data is based on the pixel data of the search window latched by the second flip-flop of the register and the pixel data of the current image field block output by the current image block data output means. The accumulator of the local distortion calculated by the distortion calculation unit and the data latched in the second flip-flop of the local distortion summation unit can be performed by the adder, so that the first flip-flop of the register and the local distortion summation unit In the first flip-flop, data corresponding to the same current image segment block is held, and in the second flip-flop of the register and the second flip-flop of the local distortion summation unit, respectively. It can hold data corresponding to the same current image segment block different from the first flip-flop. Therefore, the first segment block distortion and the second segment block distortion can be calculated in a time-division manner. Further, since the register and the local distortion summation unit can be constituted by two flip-flops electrically connected in series, a circuit can be easily constituted.

【0508】請求項7記載の発明によれば、レジスタ、
局所ディストーション総和ユニットおよびディストーシ
ョン転送ユニットのそれぞれの第1フリップフロップで
は、同一の現画像セグメントブロックに対応するデータ
を保持するとともに、レジスタ、局所ディストーション
総和ユニットおよびディストーション転送ユニットのそ
れぞれの第2フリップフロップにおいても、それぞれ第
1フリップフロップに保持されたデータと異なる同一の
現画像セグメントブロックに対応するデータを保持する
ことができる。このため、第1セグメントブロックディ
ストーションおよび第2セグメントブロックディストー
ションをそれぞれ時分割で出力することができる。ま
た、直列に電気的に接続された2つのフリップフロップ
によってディストーション転送ユニットを構成すること
ができるので、容易に回路を構成することができる。
According to the seventh aspect of the present invention, a register,
The first flip-flop of each of the local distortion summation unit and the distortion transfer unit holds data corresponding to the same current image segment block, and the second flip-flop of each of the register, the local distortion summation unit, and the distortion transfer unit. Can also hold data corresponding to the same current image segment block different from the data held in the first flip-flop. Therefore, the first segment block distortion and the second segment block distortion can be output in a time division manner. Further, since the distortion transfer unit can be formed by two flip-flops electrically connected in series, a circuit can be easily formed.

【0509】請求項8記載の発明によれば、サーチウィ
ンドウ内で垂直方向に並んだフィールド候補ブロックと
同数のフリップフロップおよび加算器によって、それぞ
れの行に対応する演算器で算出された第1および第2セ
グメントブロックディストーションから順次フィールド
ブロックディストーションを算出することができるの
で、レジスタと演算器が想像上配置されたマトリックス
状にセグメントブロックディストーション算出手段の演
算器と同数のフリップフロップおよび加算器を設ける必
要がなく、セグメントブロックディストーション算出手
段と別のエリアにフィールドブロックディストーション
算出手段をユニットとして配置することができる。従っ
て、フィールドブロックディストーションを算出する回
路の規模を小さくすることができる。
[0509] According to the invention of claim 8, the same number of flip-flops and adders as the field candidate blocks vertically arranged in the search window are used to calculate the first and the second calculated by the arithmetic units corresponding to the respective rows. Since the field block distortion can be sequentially calculated from the second segment block distortion, it is necessary to provide the same number of flip-flops and adders as the arithmetic units of the segment block distortion calculating means in a matrix in which registers and arithmetic units are imaginarily arranged. Therefore, the field block distortion calculating means can be arranged as a unit in a different area from the segment block distortion calculating means. Therefore, the scale of the circuit for calculating the field block distortion can be reduced.

【0510】請求項9記載の発明によれば、サーチウィ
ンドウ内で水平方向に並んだフィールド候補ブロックと
同数のフリップフロップおよび加算器によって、それぞ
れの列に対応する演算器で算出された第1および第2セ
グメントブロックディストーションから順次フィールド
ブロックディストーションを算出することができるの
で、レジスタと演算器が想像上配置されたマトリックス
状にセグメントブロックディストーション算出手段の演
算器と同数のフリップフロップおよび加算器を設ける必
要がなく、セグメントブロックディストーション算出手
段と別のエリアにフィールドブロックディストーション
算出手段をユニットとして配置することができる。従っ
て、フィールドブロックディストーションを算出する回
路の規模を小さくすることができる。
[0510] According to the ninth aspect of the present invention, the same number of flip-flops and adders as the field candidate blocks arranged in the horizontal direction in the search window are used to calculate the first and the second calculated by the arithmetic units corresponding to the respective columns. Since the field block distortion can be sequentially calculated from the second segment block distortion, it is necessary to provide the same number of flip-flops and adders as the arithmetic units of the segment block distortion calculating means in a matrix in which registers and arithmetic units are imaginarily arranged. Therefore, the field block distortion calculating means can be arranged as a unit in a different area from the segment block distortion calculating means. Therefore, the scale of the circuit for calculating the field block distortion can be reduced.

【0511】請求項10記載の発明によれば、同時に入
力された第1または第2セグメントブロックディストー
ションに基づいて、セグメントブロックディストーショ
ン算出手段の各演算器の配置位置に対応する第1または
第2セグメント候補ブロックの垂直方向の位置を特定す
ることができるとともに、第1または第2セグメントブ
ロックディストーションがセグメントブロック特定手段
に入力された順番に基づいて、セグメントブロックディ
ストーション算出手段の各演算器の配置位置に対応する
第1または第2セグメント候補ブロックの水平方向の位
置を特定することができる。従って、最小の第1および
第2セグメントブロックディストーションが検出された
演算器の配置位置に基づいて、それぞれ第1セグメント
動きベクトルおよび第2セグメント動きベクトルを容易
に特定することができる。
[0511] According to the tenth aspect, based on the first or second segment block distortion inputted simultaneously, the first or second segment corresponding to the arrangement position of each operation unit of the segment block distortion calculating means. The position of the candidate block in the vertical direction can be specified, and based on the order in which the first or second segment block distortion is input to the segment block specifying unit, the position of each computing unit of the segment block distortion calculating unit is determined. The horizontal position of the corresponding first or second segment candidate block can be specified. Therefore, it is possible to easily specify the first segment motion vector and the second segment motion vector, respectively, based on the arrangement positions of the computing units where the minimum first and second segment block distortions are detected.

【0512】請求項11記載の発明によれば、同時に入
力された第1または第2セグメントブロックディストー
ションに基づいて、セグメントブロックディストーショ
ン算出手段の各演算器の配置位置に対応する第1または
第2セグメント候補ブロックの水平方向の位置を特定す
ることができるとともに、第1または第2セグメントブ
ロックディストーションがセグメントブロック特定手段
に入力された順番に基づいて、セグメントブロックディ
ストーション算出手段の各演算器の配置位置に対応する
第1または第2セグメント候補ブロックの垂直方向の位
置を特定することができる。従って、最小の第1および
第2セグメントブロックディストーションが検出された
演算器の配置位置に基づいてそれぞれ第1セグメント動
きベクトルおよび第2セグメント動きベクトルを容易に
特定することができる。
[0512] According to the eleventh aspect, based on the first or second segment block distortion input simultaneously, the first or second segment corresponding to the arrangement position of each operation unit of the segment block distortion calculating means. The position of the candidate block in the horizontal direction can be specified, and based on the order in which the first or second segment block distortion is input to the segment block specifying unit, the position of each computing unit of the segment block distortion calculating unit is determined. The vertical position of the corresponding first or second segment candidate block can be specified. Therefore, it is possible to easily specify the first segment motion vector and the second segment motion vector, respectively, based on the arrangement positions of the computing units where the minimum first and second segment block distortions are detected.

【0513】請求項12記載の発明によれば、同一行の
演算器で算出されたそれぞれの第1および第2セグメン
トブロックディストーションを順次各演算器のディスト
ーション転送ユニットを介して一方向に転送し、同一行
の一端の演算器のディストーション転送ユニットからフ
ィールドブロックディストーション算出手段およびセグ
メントブロック特定手段にそれぞれ第1および第2セグ
メントブロックディストーションを転送することができ
るので、第1および第2セグメントブロックディストー
ションを転送する方向にフィールドブロックディストー
ション算出手段およびセグメントブロック特定手段をユ
ニットとして容易に配置することができる。
According to the twelfth aspect of the present invention, the first and second segment block distortions calculated by the arithmetic units on the same row are sequentially transferred in one direction via the distortion transfer unit of each arithmetic unit. Since the first and second segment block distortions can be transferred from the distortion transfer unit of the arithmetic unit at one end of the same row to the field block distortion calculating means and the segment block specifying means, respectively, the first and second segment block distortions are transferred. In this case, the field block distortion calculating means and the segment block specifying means can be easily arranged as a unit.

【0514】また、一端の演算器のディストーション転
送ユニットからフィールドブロックディストーション算
出手段およびセグメントブロック特定手段へ第1および
第2セグメントブロックディストーションを出力する転
送バスを演算器の存在する行数に削減することができる
とともに、短い転送バスを形成することができる。さら
に、同一行の各演算器のディストーション転送ユニット
の間にも短い転送バスを形成することができるので、各
演算器間の転送時間を均一にすることができる。従っ
て、誤りの少ない安定した回路を形成することができ
る。
[0514] Further, the transfer bus for outputting the first and second segment block distortions from the distortion transfer unit of the computing unit at one end to the field block distortion calculating means and the segment block specifying means is reduced to the number of rows in which the computing units are present. And a short transfer bus can be formed. Further, since a short transfer bus can be formed between the distortion transfer units of the arithmetic units in the same row, the transfer time between the arithmetic units can be made uniform. Therefore, a stable circuit with few errors can be formed.

【0515】請求項13記載の発明によれば、同一列の
演算器で算出されたそれぞれの第1および第2セグメン
トブロックディストーションを順次各演算器のディスト
ーション転送ユニットを介して一方向に転送し、同一列
の一端の演算器のディストーション転送ユニットからフ
ィールドブロックディストーション算出手段およびセグ
メントブロック特定手段にそれぞれ第1および第2セグ
メントブロックディストーションを転送することができ
るので、第1および第2セグメントブロックディストー
ションを転送する方向にフィールドブロックディストー
ション算出手段およびセグメントブロック特定手段をユ
ニットとして容易に配置することができる。
According to the thirteenth aspect, the first and second segment block distortions calculated by the arithmetic units in the same column are sequentially transferred in one direction through the distortion transfer unit of each arithmetic unit, Since the first and second segment block distortions can be transferred from the distortion transfer unit of the arithmetic unit at one end of the same column to the field block distortion calculating means and the segment block specifying means, respectively, the first and second segment block distortions are transferred. In this case, the field block distortion calculating means and the segment block specifying means can be easily arranged as a unit.

【0516】また、一端の演算器のディストーション転
送ユニットからフィールドブロックディストーション算
出手段およびセグメントブロック特定手段へ第1および
第2セグメントブロックディストーションを出力する転
送バスを演算器の存在する列数に削減することができる
とともに、短い転送バスを形成することができる。さら
に、同一列の各演算器のディストーション転送ユニット
の間にも短い転送バスを形成することができるので、各
演算器間の転送時間を均一にすることができる。従っ
て、誤りの少ない安定した回路を形成することができ
る。
Further, the number of transfer buses for outputting the first and second segment block distortions from the distortion transfer unit of the computing unit at one end to the field block distortion calculating unit and the segment block specifying unit is reduced to the number of columns in which the computing unit exists. And a short transfer bus can be formed. Furthermore, since a short transfer bus can be formed between the distortion transfer units of the arithmetic units in the same column, the transfer time between the arithmetic units can be made uniform. Therefore, a stable circuit with few errors can be formed.

【0517】請求項14記載の発明によれば、セグメン
トブロックディストーション算出手段によって、第1現
画像フィールドブロックに隣接する第2現画像フィール
ドブロックの第1および第2セグメントブロックディス
トーションを前記第4転送制御手段の1サイクルの動作
毎に順次求めることができる。また、第1サーチウィン
ドウと第2サーチウィンドウとで共通する画素データを
重複することなく第2サーチウィンドウの画素データを
サーチウィンドウデータ出力手段から出力することがで
きるので、第2サーチウィンドウのデータを始めから出
力し直す必要がなく、処理効率を大幅に向上させること
ができる。
According to the fourteenth aspect, the first and second segment block distortions of the second current image field block adjacent to the first current image field block are calculated by the fourth transfer control by the segment block distortion calculating means. It can be obtained sequentially for each one-cycle operation of the means. Further, since the pixel data of the second search window can be output from the search window data output unit without overlapping the pixel data common to the first search window and the second search window, the data of the second search window can be output. There is no need to output again from the beginning, and processing efficiency can be greatly improved.

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

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

【図2】現画像100上および前符号化画像300の構
成を示す図である。
FIG. 2 is a diagram showing a configuration of a current image 100 and a pre-encoded image 300.

【図3】現画像フィールドブロック200およびサーチ
ウィンドウ400を示す図である。
FIG. 3 is a diagram showing a current image field block 200 and a search window 400.

【図4】現画像第1セグメントブロック210および上
側サーチウィンドウ410を示す図である。
FIG. 4 is a diagram showing a current image first segment block 210 and an upper search window 410.

【図5】現画像第2セグメントブロック220および下
側サーチウィンドウ420を示す図である。
5 is a diagram showing a current image second segment block 220 and a lower search window 420. FIG.

【図6】信号出力ユニット7000から各ユニットに出
力される信号を示すブロック図である。
FIG. 6 is a block diagram showing signals output from the signal output unit 7000 to each unit.

【図7】セグメントブロックディストーション算出ユニ
ット3000において第1および第2セグメントブロッ
クディストーションを算出するタイムチャートを示す図
である。
FIG. 7 is a diagram showing a time chart for calculating first and second segment block distortions in a segment block distortion calculation unit 3000.

【図8】セグメントブロックディストーション算出ユニ
ット3000において第1および第2セグメントブロッ
クディストーションを算出するタイムチャートを示す図
である。
FIG. 8 is a diagram showing a time chart for calculating first and second segment block distortions in a segment block distortion calculation unit 3000.

【図9】セグメントブロック特定ユニット4000にお
いて最小の第1および第2セグメントブロックディスト
ーション並びに第1および第2セグメント動きベクトル
を特定するタイムチャートを示す図である。
FIG. 9 is a diagram showing a time chart for specifying minimum first and second segment block distortions and first and second segment motion vectors in the segment block specifying unit 4000;

【図10】フィールドブロックディストーション算出ユ
ニット5000においてフィールドブロックディストー
ションを求めるとともに、フィールドブロック特定ユニ
ット6000において最小のフィールドブロックディス
トーションおよびフィールド動きベクトルを特定するタ
イムチャートを示す図である。
FIG. 10 is a diagram showing a time chart in which a field block distortion is calculated in a field block distortion calculating unit 5000 and a minimum field block distortion and a field motion vector are specified in a field block specifying unit 6000.

【図11】セグメントブロックディストーション算出ユ
ニット3000において第1および第2セグメントブロ
ックディストーションを算出するタイムチャートを示す
図である。
FIG. 11 is a diagram showing a time chart for calculating first and second segment block distortions in a segment block distortion calculation unit 3000.

【図12】セグメントブロックディストーション算出ユ
ニット3000の構成を示す図である。
FIG. 12 is a diagram showing a configuration of a segment block distortion calculation unit 3000.

【図13】プロセッサエレメントPE(x,y)の端子
配置を示す図である。
FIG. 13 is a diagram showing a terminal arrangement of a processor element PE (x, y).

【図14】プロセッサエレメントPE(x,y)の構成
を示すブロック図である。
FIG. 14 is a block diagram illustrating a configuration of a processor element PE (x, y).

【図15】入力レジスタIR(3,1)の端子配置を示
す図である。
FIG. 15 is a diagram showing a terminal arrangement of an input register IR (3, 1).

【図16】入力レジスタIR(3,1)の構成を示すブ
ロック図である。
FIG. 16 is a block diagram showing a configuration of an input register IR (3, 1).

【図17】入力レジスタIR(3,0)および入力レジ
スタIR(3,2)の端子配置を示す図である。
FIG. 17 is a diagram showing terminal arrangements of an input register IR (3,0) and an input register IR (3,2).

【図18】入力レジスタIR(3,0)および入力レジ
スタIR(3,2)の構成を示すブロック図である。
FIG. 18 is a block diagram showing a configuration of an input register IR (3,0) and an input register IR (3,2).

【図19】第1サイドレジスタSR(x,−1)の端子
配置を示す図である。
FIG. 19 is a diagram showing a terminal arrangement of a first side register SR (x, -1).

【図20】第1サイドレジスタSR(x,−1)の構成
を示すブロック図である。
FIG. 20 is a block diagram showing a configuration of a first side register SR (x, -1).

【図21】第2サイドレジスタSR(x,3)の端子配
置を示す図である。
FIG. 21 is a diagram showing a terminal arrangement of a second side register SR (x, 3).

【図22】第2サイドレジスタSR(x,3)の構成を
示すブロック図である。
FIG. 22 is a block diagram showing a configuration of a second side register SR (x, 3).

【図23】セグメントブロック特定ユニット4000の
構成を示すブロック図である。
FIG. 23 is a block diagram showing a configuration of a segment block specifying unit 4000.

【図24】セレクタ付きフリップフロップ4400の構
成を示すブロック図である。
FIG. 24 is a block diagram showing a configuration of a flip-flop with selector 4400.

【図25】フィールドブロックディストーション算出ユ
ニット5000の構成を示すブロック図である。
FIG. 25 is a block diagram showing a configuration of a field block distortion calculation unit 5000.

【図26】フィールドブロック特定ユニット6000の
構成を示すブロック図である。
FIG. 26 is a block diagram showing a configuration of a field block specifying unit 6000.

【図27】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の1クロック目のセグメントブ
ロックディストーション算出ユニット3000における
サーチウィンドウ400の画素データの転送状態を示す
図である。
FIG. 27 is a diagram showing a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 of the first clock of the clock pulse signal CK1 in the time charts shown in FIGS.

【図28】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の2クロック目のセグメントブ
ロックディストーション算出ユニット3000における
サーチウィンドウ400の画素データの転送状態を示す
図である。
28 is a diagram showing a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the second clock of the clock pulse signal CK1 in the time charts shown in FIGS. 7 to 11. FIG.

【図29】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の3クロック目のセグメントブ
ロックディストーション算出ユニット3000における
サーチウィンドウ400の画素データの転送状態を示す
図である。
29 is a diagram showing a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the third clock of the clock pulse signal CK1 in the time charts shown in FIGS. 7 to 11. FIG.

【図30】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の4クロック目のセグメントブ
ロックディストーション算出ユニット3000における
サーチウィンドウ400の画素データの転送状態を示す
図である。
30 is a diagram showing a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the fourth clock of the clock pulse signal CK1 in the time charts shown in FIGS. 7 to 11. FIG.

【図31】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の5クロック目のセグメントブ
ロックディストーション算出ユニット3000における
サーチウィンドウ400の画素データの転送状態を示す
図である。
31 is a diagram showing a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the fifth clock of the clock pulse signal CK1 in the time charts shown in FIGS. 7 to 11. FIG.

【図32】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の6クロック目のセグメントブ
ロックディストーション算出ユニット3000における
サーチウィンドウ400の画素データの転送状態を示す
図である。
32 is a diagram showing a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the sixth clock of the clock pulse signal CK1 in the time charts shown in FIGS. 7 to 11. FIG.

【図33】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の7クロック目のセグメントブ
ロックディストーション算出ユニット3000における
サーチウィンドウ400の画素データの転送状態を示す
図である。
33 is a diagram showing a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the seventh clock of the clock pulse signal CK1 in the time charts shown in FIGS. 7 to 11. FIG.

【図34】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の8クロック目のセグメントブ
ロックディストーション算出ユニット3000における
サーチウィンドウ400の画素データの転送状態を示す
図である。
34 is a diagram showing a transfer state of pixel data in a search window 400 in the segment block distortion calculation unit 3000 at the eighth clock of the clock pulse signal CK1 in the time charts shown in FIGS. 7 to 11. FIG.

【図35】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の14クロック目のセグメント
ブロックディストーション算出ユニット3000におけ
るサーチウィンドウ400の画素データの転送状態を示
す図である。
FIG. 35 is a diagram showing a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the 14th clock of the clock pulse signal CK1 in the time charts shown in FIGS.

【図36】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の15クロック目のセグメント
ブロックディストーション算出ユニット3000におけ
るサーチウィンドウ400の画素データの転送状態を示
す図である。
36 is a diagram illustrating a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the 15th clock of the clock pulse signal CK1 in the time charts illustrated in FIGS. 7 to 11. FIG.

【図37】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の16クロック目のセグメント
ブロックディストーション算出ユニット3000におけ
るサーチウィンドウ400の画素データの転送状態を示
す図である。
FIG. 37 is a diagram showing a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the 16th clock of the clock pulse signal CK1 in the time charts shown in FIGS.

【図38】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の17クロック目のセグメント
ブロックディストーション算出ユニット3000におけ
るサーチウィンドウ400の画素データの転送状態を示
す図である。
38 is a diagram showing a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the 17th clock of the clock pulse signal CK1 in the time charts shown in FIGS. 7 to 11. FIG.

【図39】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の18クロック目のセグメント
ブロックディストーション算出ユニット3000におけ
るサーチウィンドウ400の画素データの転送状態を示
す図である。
39 is a diagram illustrating a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the 18th clock of the clock pulse signal CK1 in the time charts illustrated in FIGS. 7 to 11. FIG.

【図40】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の19クロック目のセグメント
ブロックディストーション算出ユニット3000におけ
るサーチウィンドウ400の画素データの転送状態を示
す図である。
40 is a diagram showing a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the 19th clock of the clock pulse signal CK1 in the time charts shown in FIGS. 7 to 11. FIG.

【図41】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の20クロック目のセグメント
ブロックディストーション算出ユニット3000におけ
るサーチウィンドウ400の画素データの転送状態を示
す図である。
41 is a diagram showing a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the 20th clock of the clock pulse signal CK1 in the time charts shown in FIGS. 7 to 11. FIG.

【図42】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の21クロック目のセグメント
ブロックディストーション算出ユニット3000におけ
るサーチウィンドウ400の画素データの転送状態を示
す図である。
42 is a diagram illustrating a transfer state of pixel data of a search window 400 in the segment block distortion calculation unit 3000 at the 21st clock of the clock pulse signal CK1 in the time charts illustrated in FIGS. 7 to 11. FIG.

【図43】図7〜図11に示されたタイムチャートのク
ロックパルス信号CK1の22クロック目のセグメント
ブロックディストーション算出ユニット3000におけ
るサーチウィンドウ401の画素データの転送状態を示
す図である。
43 is a diagram showing a transfer state of pixel data of a search window 401 in the segment block distortion calculation unit 3000 at the 22nd clock of the clock pulse signal CK1 in the time charts shown in FIGS. 7 to 11. FIG.

【図44】現画像フィールドブロック200に対して水
平方向に隣接する現画像フィールドブロック201とサ
ーチウィンドウ400に対して水平方向に2画素分シフ
トしたサーチウィンドウ401を示す図である。
44 shows a current image field block 201 horizontally adjacent to the current image field block 200 and a search window 401 shifted horizontally by two pixels with respect to the search window 400. FIG.

【図45】第1および第2セグメントブロックディスト
ーション算出処理、第1および第2セグメント動きベク
トル特定処理、並びに、フィールドブロックディストー
ション算出処理およびフィールド動きベクトル特定処理
のパイプライン化を示す図である。
FIG. 45 is a diagram illustrating first and second segment block distortion calculation processing, first and second segment motion vector identification processing, and pipelining of field block distortion calculation processing and field motion vector identification processing.

【図46】(N×2)行M列の現画像フィールドブロッ
ク202に対して水平方向に隣接する現画像フィールド
ブロックを示す図である。
FIG. 46 is a diagram showing a current image field block horizontally adjacent to a current image field block 202 of (N × 2) rows and M columns.

【図47】(N×2)行M列の現画像フィールドブロッ
ク202に対して水平方向に隣接する現画像フィールド
ブロックおよびこれらの現画像フィールドブロックに対
応して列方向にM画素毎にシフトした(H+N)行L列
のサーチウィンドウを示す図である。
FIG. 47 shows a current image field block horizontally adjacent to a current image field block 202 of (N × 2) rows and M columns, and shifted by M pixels in the column direction corresponding to these current image field blocks. It is a figure which shows the search window of (H + N) row L column.

【図48】(N×2)行M列の現画像フィールドブロッ
ク202に対応する第1サイドレジスタグループ330
1および第2サイドレジスタグループ3401の構成を
示す図である。
48. First side register group 330 corresponding to current image field block 202 in (N × 2) rows and M columns
FIG. 3 is a diagram showing a configuration of a first and second side register group 3401.

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

【図50】現画像100上の現画像フィールドブロック
210および前符号化画像300上のサーチウィンドウ
403を示す図である。
50 shows a current image field block 210 on the current image 100 and a search window 403 on the pre-encoded image 300. FIG.

【図51】信号出力ユニット7010から各ユニットに
出力される信号を示すブロック図である。
FIG. 51 is a block diagram showing signals output from the signal output unit 7010 to each unit.

【図52】セグメントブロックディストーション算出ユ
ニット3010において第1および第2セグメントブロ
ックディストーションを算出するタイムチャートを示す
図である。
FIG. 52 is a diagram showing a time chart for calculating first and second segment block distortions in a segment block distortion calculation unit 3010.

【図53】セグメントブロックディストーション算出ユ
ニット3010において第1および第2セグメントブロ
ックディストーションを算出するタイムチャートを示す
図である。
FIG. 53 is a diagram showing a time chart for calculating first and second segment block distortions in a segment block distortion calculation unit 3010.

【図54】セグメントブロック特定ユニット4000に
おいて最小の第1および第2セグメントブロックディス
トーション並びに第1および第2セグメント動きベクト
ルを特定するタイムチャートを示す図である。
FIG. 54 is a diagram showing a time chart for specifying the minimum first and second segment block distortions and the first and second segment motion vectors in the segment block specifying unit 4000;

【図55】フィールドブロックディストーション算出ユ
ニット5000においてフィールドブロックディストー
ションを求めるとともに、フィールドブロック特定ユニ
ット6000において最小のフィールドブロックディス
トーションおよびフィールド動きベクトルを特定するタ
イムチャートを示す図である。
FIG. 55 is a diagram showing a time chart for obtaining a field block distortion in a field block distortion calculation unit 5000 and specifying a minimum field block distortion and a field motion vector in a field block specifying unit 6000.

【図56】セグメントブロックディストーション算出ユ
ニット3010の構成を示す図である。
FIG. 56 is a diagram showing a configuration of a segment block distortion calculation unit 3010.

【図57】中間レジスタIP(x,y)の端子配置を示
す図である。
FIG. 57 is a diagram showing a terminal arrangement of an intermediate register IP (x, y).

【図58】中間レジスタIP(x,y)の構成を示すブ
ロック図である。
FIG. 58 is a block diagram showing a configuration of an intermediate register IP (x, y).

【図59】図52〜図55に示されたタイムチャートの
クロックパルス信号CK1の1クロック目のセグメント
ブロックディストーション算出ユニット3010におけ
るサーチウィンドウ403の画素データの転送状態を示
す図である。
59 is a diagram illustrating a transfer state of pixel data of a search window 403 in the segment block distortion calculation unit 3010 at the first clock of the clock pulse signal CK1 in the time charts illustrated in FIGS. 52 to 55. FIG.

【図60】図52〜図55に示されたタイムチャートの
クロックパルス信号CK1の2クロック目のセグメント
ブロックディストーション算出ユニット3010におけ
るサーチウィンドウ403の画素データの転送状態を示
す図である。
60 is a diagram showing a transfer state of pixel data of a search window 403 in the segment block distortion calculation unit 3010 at the second clock of the clock pulse signal CK1 in the time charts shown in FIGS. 52 to 55. FIG.

【図61】図52〜図55に示されたタイムチャートの
クロックパルス信号CK1の22クロック目のセグメン
トブロックディストーション算出ユニット3010にお
けるサーチウィンドウ403の画素データの転送状態を
示す図である。
FIG. 61 is a diagram illustrating a transfer state of pixel data of a search window 403 in the segment block distortion calculation unit 3010 at the 22nd clock of the clock pulse signal CK1 in the time charts illustrated in FIGS. 52 to 55.

【図62】図52〜図55に示されたタイムチャートの
クロックパルス信号CK1の23クロック目のセグメン
トブロックディストーション算出ユニット3010にお
けるサーチウィンドウ403の画素データの転送状態を
示す図である。
62 is a diagram illustrating a transfer state of pixel data in a search window 403 in the segment block distortion calculation unit 3010 at the 23rd clock of the clock pulse signal CK1 in the time charts illustrated in FIGS. 52 to 55. FIG.

【図63】図52〜図55に示されたタイムチャートの
クロックパルス信号CK1の24クロック目のセグメン
トブロックディストーション算出ユニット3010にお
けるサーチウィンドウ403の画素データの転送状態を
示す図である。
63 is a diagram showing a transfer state of pixel data of a search window 403 in the segment block distortion calculation unit 3010 at the 24th clock of the clock pulse signal CK1 in the time charts shown in FIGS. 52 to 55. FIG.

【図64】図52〜図55に示されたタイムチャートの
クロックパルス信号CK1の25クロック目のセグメン
トブロックディストーション算出ユニット3010にお
けるサーチウィンドウ403の画素データの転送状態を
示す図である。
FIG. 64 is a diagram showing a transfer state of pixel data in a search window 403 in the segment block distortion calculation unit 3010 at the 25th clock of the clock pulse signal CK1 in the time charts shown in FIGS. 52 to 55.

【図65】図52〜図55に示されたタイムチャートの
クロックパルス信号CK1の26クロック目のセグメン
トブロックディストーション算出ユニット3010にお
けるサーチウィンドウ403の画素データの転送状態を
示す図である。
FIG. 65 is a diagram illustrating a transfer state of pixel data of a search window 403 in the segment block distortion calculation unit 3010 at the 26th clock of the clock pulse signal CK1 in the time charts illustrated in FIGS. 52 to 55.

【図66】図52〜図55に示されたタイムチャートの
クロックパルス信号CK1の27クロック目のセグメン
トブロックディストーション算出ユニット3010にお
けるサーチウィンドウ403の画素データの転送状態を
示す図である。
FIG. 66 is a diagram illustrating a transfer state of pixel data of a search window 403 in the segment block distortion calculation unit 3010 at the 27th clock of the clock pulse signal CK1 in the time charts illustrated in FIGS. 52 to 55.

【図67】図52〜図55に示されたタイムチャートの
クロックパルス信号CK1の28クロック目のセグメン
トブロックディストーション算出ユニット3010にお
けるサーチウィンドウ403の画素データの転送状態を
示す図である。
FIG. 67 is a diagram illustrating a transfer state of pixel data of a search window 403 in the segment block distortion calculation unit 3010 at the 28th clock of the clock pulse signal CK1 in the time charts illustrated in FIGS. 52 to 55.

【図68】図52〜図55に示されたタイムチャートの
クロックパルス信号CK1の29クロック目のセグメン
トブロックディストーション算出ユニット3010にお
けるサーチウィンドウ403の画素データの転送状態を
示す図である。
FIG. 68 is a diagram showing a transfer state of pixel data of a search window 403 in the segment block distortion calculation unit 3010 at the 29th clock of the clock pulse signal CK1 in the time charts shown in FIGS. 52 to 55.

【図69】図52〜図55に示されたタイムチャートの
クロックパルス信号CK1の30クロック目のセグメン
トブロックディストーション算出ユニット3010にお
けるサーチウィンドウ404の画素データの転送状態を
示す図である。
69 is a diagram illustrating a transfer state of pixel data of a search window 404 in the segment block distortion calculation unit 3010 at the 30th clock of the clock pulse signal CK1 in the time charts illustrated in FIGS. 52 to 55. FIG.

【図70】現画像フィールドブロック200に対して水
平方向に隣接する現画像フィールドブロック201とサ
ーチウィンドウ403に対して水平方向に2画素分シフ
トしたサーチウィンドウ404を示す図である。
FIG. 70 is a diagram showing a current image field block 201 horizontally adjacent to a current image field block 200 and a search window 404 horizontally shifted by two pixels with respect to a search window 403.

【図71】本発明に係る実施例3のセグメントブロック
ディストーション算出ユニット3020の構成を示す図
である。
FIG. 71 is a diagram illustrating a configuration of a segment block distortion calculation unit 3020 according to the third embodiment of the present invention.

【図72】(N×2)行M列の現画像フィールドブロッ
クに対応する第3サイドレジスタグループ3501の構
成を示す図である。
FIG. 72 is a diagram showing a configuration of a third side register group 3501 corresponding to a current image field block of (N × 2) rows and M columns.

【図73】列毎にリング状に電気的に接続された各プロ
セッサエレメントPE(x,y)および各第3サイドレ
ジスタSR(x,y)を互いに間隔が等しくなるように
配置した図である。
FIG. 73 is a view in which each processor element PE (x, y) and each third side register SR (x, y) electrically connected in a ring shape for each column are arranged so as to be equal in interval to each other. .

【図74】本発明に係る実施例4のセグメントブロック
ディストーション算出ユニット3030の構成を示す図
である。
FIG. 74 is a diagram illustrating a configuration of a segment block distortion calculation unit 3030 according to the fourth embodiment of the present invention.

【図75】本発明に係る実施例4のセグメントブロック
ディストーション算出ユニット3040の構成を示す図
である。
FIG. 75 is a diagram illustrating a configuration of a segment block distortion calculation unit 3040 according to the fourth embodiment of the present invention.

【図76】単純フレーム間予測符号化方式を示す図であ
る。
FIG. 76 is a diagram illustrating a simple inter-frame prediction encoding method.

【図77】動き補償フレーム間予測符号化方式を示す図
である。
Fig. 77 is a diagram illustrating a motion-compensated inter-frame predictive coding scheme.

【図78】現画像102上の現符号化ブロック230お
よび前符号化画像302上のサーチウィンドウ405お
よび候補ブロック530を示す図である。
FIG. 78 is a diagram showing a current coded block 230 on the current image 102 and a search window 405 and a candidate block 530 on the previous coded image 302.

【図79】現符号化ブロック230、サーチウィンドウ
405、候補ブロック530の関係を示す図である。
FIG. 79 is a diagram illustrating a relationship among a current coding block 230, a search window 405, and a candidate block 530.

【図80】現符号化ブロック230内の画素データと各
候補ブロック530内の画素データとの位置的な対応関
係を示す図である。
FIG. 80 is a diagram showing a positional correspondence between pixel data in the current encoding block 230 and pixel data in each candidate block 530.

【図81】現符号化ブロックの画素データと各候補ブロ
ックの画素データに基づいて各プロセッサエレメントに
おいてそれぞれのディストーションを算出する方法を示
す図である。
FIG. 81 is a diagram illustrating a method of calculating each distortion in each processor element based on pixel data of a current coding block and pixel data of each candidate block.

【図82】現符号化ブロックの画素データと各候補ブロ
ックの画素データに基づいて各プロセッサエレメントに
おいてそれぞれのディストーションを算出する方法を示
す図である。
FIG. 82 is a diagram illustrating a method of calculating each distortion in each processor element based on pixel data of a current coding block and pixel data of each candidate block.

【図83】フィールド構造におけるフィールド予測符号
化方式を示す図である。
Fig. 83 is a diagram illustrating a field prediction encoding method in a field structure.

【図84】フィールド構造における16×8フィールド
予測方式を示す図である。
FIG. 84 is a diagram illustrating a 16 × 8 field prediction scheme in a field structure.

【図85】フィールド構造における16×8フィールド
予測方式を示す図である。
FIG. 85 is a diagram illustrating a 16 × 8 field prediction scheme in a field structure.

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

10,11 人物像 20,21 有意画素領域 100,101,102 現画像 200,201,202,700 現画像フィールドブ
ロック 210,710 現画像第1セグメントブロック 220,720 現画像第2セグメントブロック 230 現符号化ブロック 300,301,302 前符号化画像 400,401,402,403,404,405 サ
ーチウィンドウ 410 上側サーチウィンドウ 420 下側サーチウィンドウ 500,800,801 フィールド候補ブロック 510,810,811 第1セグメント候補ブロック 520,820,821 第2セグメント候補ブロック 530 候補ブロック 601 第1フィールド 602 第2フィールド 603 第3フィールド 1000,1010 現画像ブロックデータ出力ユニッ
ト 2000,2010 サーチウィンドウデータ出力ユニ
ット 3000,3001,3010,3020,3021,
3030,3040セグメントブロックディストーショ
ン算出ユニット 3100,3101,3110,3130,3140
2次元配列プロセッサグループ 3200,3201,3210,3230,3240
入力レジスタグループ 3300,3301,3310,3330 第1サイド
レジスタグループ 3400,3401,3410,3430 第2サイド
レジスタグループ 3500,3501,3540 第3サイドレジスタグ
ループ 3600,3610,3620,3630,3640
転送方向選択部 3601,3611,3621,3631,3641
セレクタ 3602,3612,3622,3632,3642
第1フリップフロップ 3603,3613,3623,3633,3643
第2フリップフロップ 3700 ディストーション算出部 3701 減算器 3702 正数変換器 3703 論理積演算器 3704 加算器 3705 第1フリップフロップ 3706 第2フリップフロップ 3800 ディストーション転送部 3801 セレクタ 3802 第1フリップフロップ 3803 第2フリップフロップ 4000 セグメントブロック特定ユニット 4100 最小セグメントブロックディストーション検
出ユニット 4101 比較器 4102 論理和演算器 4103 比較器 4104 セレクタ 4105 第1フリップフロップ 4106 第2フリップフロップ 4107 第1セレクタ付きフリップフロップ 4108 第2セレクタ付きフリップフロップ 4200 セグメント動きベクトル垂直成分検出ユニッ
ト 4201 セレクタ 4202 第1フリップフロップ 4203 第2フリップフロップ 4204 換算テーブル 4205 第1セレクタ付きフリップフロップ 4206 第2セレクタ付きフリップフロップ 4300 セグメント動きベクトル水平成分検出ユニッ
ト 4301 カウンタ 4302 セレクタ 4303 第1フリップフロップ 4304 第2フリップフロップ 4305 換算テーブル 4306 第1セレクタ付きフリップフロップ 4307 第2セレクタ付きフリップフロップ 4400 セレクタ付きフリップフロップ 4401 セレクタ 4402 フリップフロップ 5000 フィールドブロックディストーション算出ユ
ニット 5001 フリップフロップ 5002 加算器 5003 セレクタ付きフリップフロップ 5100 第1フィールドブロックディストーション算
出ユニット 5200 第2フィールドブロックディストーション算
出ユニット 5300 第3フィールドブロックディストーション算
出ユニット 6000 フィールドブロック特定ユニット 6100 最小フィールドブロックディストーション検
出ユニット 6101 比較器 6102 論理和演算器 6103 比較器 6104 セレクタ 6105 フリップフロップ 6106 セレクタ付きフリップフロップ 6200 フィールド動きベクトル垂直成分検出ユニッ
ト 6201 セレクタ 6202 フリップフロップ 6203 換算テーブル 6204 セレクタ付きフリップフロップ 6300 フィールド動きベクトル水平成分検出ユニッ
ト 6301 カウンタ 6302 セレクタ 6303 フリップフロップ 6304 換算テーブル 6305 セレクタ付きフリップフロップ 7000,7010 信号出力ユニット
10, 11 person image 20, 21 significant pixel area 100, 101, 102 current image 200, 201, 202, 700 current image field block 210, 710 current image first segment block 220, 720 current image second segment block 230 current code Blocks 300, 301, 302 Pre-encoded images 400, 401, 402, 403, 404, 405 Search window 410 Upper search window 420 Lower search window 500, 800, 801 Field candidate blocks 510, 810, 811 First segment candidate Block 520, 820, 821 Second segment candidate block 530 Candidate block 601 First field 602 Second field 603 Third field 1000, 1010 Current image block data output unit 2000, 2010 Search window data output unit 3000, 3001, 3010, 3020, 3021
3030, 3040 segment block distortion calculation unit 3100, 3101, 3110, 3130, 3140
2D array processor group 3200,3201,3210,3230,3240
Input register group 3300, 3301, 3310, 3330 First side register group 3400, 3401, 3410, 3430 Second side register group 3500, 3501, 3540 Third side register group 3600, 3610, 3620, 3630, 3640
Transfer direction selector 3601, 3611, 3621, 3631, 3641
Selector 3602, 3612, 3622, 3632, 3642
First flip-flop 3603, 3613, 3623, 3633, 3643
Second flip-flop 3700 Distortion calculator 3701 Subtractor 3702 Positive number converter 3703 Logical product operator 3704 Adder 3705 First flip-flop 3706 Second flip-flop 3800 Distortion transfer unit 3801 Selector 3802 First flip-flop 3803 Second flip-flop 4000 Segment block specifying unit 4100 Minimum segment block distortion detection unit 4101 Comparator 4102 OR operation unit 4103 Comparator 4104 Selector 4105 First flip-flop 4106 Second flip-flop 4107 First flip-flop with selector 4108 Second flip-flop with selector 4200 Segment motion vector vertical component detection unit 4201 selector 4202 first flip-flop 4203 second flip-flop 4204 conversion table 4205 first flip-flop with selector 4206 second flip-flop with selector 4300 segment motion vector horizontal component detection unit 4301 counter 4302 selector 4303 first flip-flop 4304 second flip-flop 4305 Conversion table 4306 First flip-flop with selector 4307 Second flip-flop with selector 4400 Flip-flop with selector 4401 Selector 4402 Flip-flop 5000 Field block distortion calculation unit 5001 Flip-flop 5002 Adder 5003 Flip-flop with selector 5100 First field block distortion 5200 2nd field block distortion calculation unit 5300 3rd field block distortion calculation unit 6000 field block identification unit 6100 minimum field block distortion detection unit 6101 comparator 6102 OR operation unit 6103 comparator 6104 selector 6105 flip-flop 6106 selector With flip-flop 6200 field motion vector vertical component detection unit 6201 selector 6202 flip-flop 6203 conversion table 6204 flip-flop with selector 6300 field motion vector horizontal component detection unit 6301 counter 6302 selector 6303 flip-flop 6304 conversion table 6305 select Data with a flip-flop 7000,7010 signal output unit

Claims (14)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】動画像を部分的に構成する現画像フィール
ドを、前記動画像を部分的に構成する参照画像フィール
ドに基づいて予測するのに用いられる複数の動きベクト
ルを探索する動きベクトル探索装置であり、H,L,N
およびMを整数とするとき、 前記現画像フィールドが、(N×2)行M列の画素から
なる現画像フィールドブロックを含み、該現画像フィー
ルドブロックが、現画像フィールドブロックの上半分の
ブロックを構成するN行M列の画素からなる現画像第1
セグメントブロックおよび現画像フィールドブロックの
下半分のブロックを構成するN行M列の画素からなる現
画像第2セグメントブロックからなり、前記参照画像フ
ィールドが、画素データをそれぞれ有する複数の画素に
よって表される(H+N)行L列の画素からなるサーチ
ウィンドウを含み、該サーチウィンドウが、該サーチウ
ィンドウを部分的に構成するH行L列の画素からなる上
側サーチウィンドウおよび該サーチウィンドウを部分的
に構成するH行L列の画素からなる下側サーチウィンド
ウを含み、前記サーチウィンドウが、複数のフィールド
候補ブロックを含み、前記上側サーチウィンドウが、前
記フィールド候補ブロックを部分的に構成する第1セグ
メント候補ブロックを含み、前記下側サーチウィンドウ
が、前記フィールド候補ブロックを部分的に構成する第
2セグメント候補ブロックを含み、現画像フィールドブ
ロックと各フィールド候補ブロックが同一サイズであ
り、現画像フィールドブロックの現画像第1セグメント
ブロックおよび現画像第2セグメントブロックのそれぞ
れが、各フィールド候補ブロックの第1セグメント候補
ブロックおよび第2セグメント候補ブロックのそれぞれ
と同一サイズであり、前記複数の動きベクトルが、前記
現画像フィールドブロックと該現画像フィールドブロッ
クに最も類似したフィールド候補ブロックとの変位を表
すフィールド動きベクトルと、現画像第1セグメントブ
ロックと該現画像第1セグメントブロックに最も類似し
た第1セグメント候補ブロックとの変位を表す第1セグ
メント動きベクトルと、現画像第2セグメントブロック
と該現画像第2セグメントブロックに最も類似した第2
セグメント候補ブロックとの変位を表す第2セグメント
動きベクトルと、を含む動きベクトル探索装置であっ
て、 前記現画像フィールドブロックの画素データを出力する
現画像ブロックデータ出力手段と、 前記サーチウィンドウの画素データを出力するサーチウ
ィンドウデータ出力手段と、 (H−N+1)×(L−M+1)個のレジスタを有し、
前記サーチウィンドウデータ出力手段から出力されたサ
ーチウィンドウの画素データを入力し、入力された画素
データを前記レジスタ間で繰り返し転送させて各レジス
タに保持させるサーチウィンドウデータ転送保持手段
と、 (H−N+1)×(L−M+1)個以下の演算器を有
し、サーチウィンドウデータ転送手段の各レジスタのそ
れぞれに保持されたサーチウィンドウの画素データを入
力するとともに、現画像ブロックデータ出力手段から現
画像フィールドブロックの画素データを各演算器に入力
し、各演算器に、現画像第1セグメントブロックと各第
1セグメント候補ブロックとの差を表す第1セグメント
ブロックディストーションおよび現画像第2セグメント
ブロックと各第2セグメント候補ブロックとの差を表す
第2セグメントブロックディストーションを時分割演算
させるセグメントブロックディストーション算出手段
と、 前記サーチウィンドウデータ出力手段から出力されたサ
ーチウィンドウの画素データを入力し、入力された画素
データを保持して出力する(H−N+1)個の前記レジ
スタからなる入力レジスタユニットと、 前記サーチウィンドウデータ出力手段から出力されたサ
ーチウィンドウの画素データを入力し、入力された画素
データを保持して出力する(L−M+2)個のサイドレ
ジスタデバイスからなるサイドレジスタユニットと、を
有し、 前記サーチウィンドウ転送保持手段の各レジスタが前記
セグメントブロックディストーション算出手段の各演算
器とともにそれぞれ(H−N+1)行(L−M+1)列
のマトリックス状に想像上配置されるものとするとき、
nを(H−N+1)以下の自然数とし、mを(L−M+
2)以下の自然数とし、前記入力レジスタユニットの各
レジスタは、それぞれ(L−M+1)列目のレジスタに
電気的に接続され、(L−M+1)列目のn行目のレジ
スタに電気的に接続された入力レジスタユニットのレジ
スタを、(L−M+2)列目のn行目のレジスタと呼ぶ
とし、前記サイドレジスタユニットの各サイドレジスタ
デバイスは、それぞれ1行目および(H−N+1)行目
のレジスタに電気的に接続され、m列目の1行目および
(H−N+1)行目のレジスタに電気的に接続されたサ
イドレジスタデバイスを、m列目のサイドレジスタデバ
イスと呼ぶとするとき、2行目以降のn行目の各レジス
タが、それぞれ同列のn−1行目のレジスタに電気的に
接続され、2列目以降のm列目の各レジスタが、それぞ
れ同行のm−1列目のレジスタに電気的に接続され、2
列目以降のm列目のサイドレジスタデバイスが、m−1
列目のサイドレジスタデバイスに電気的に接続され、 さらに、前記サーチウィンドウデータ転送保持手段が、 前記サーチウィンドウデータ出力手段からサーチウィン
ドウの画素データが転送されるタイミングに同期して、
前記第1セグメント候補ブロックの画素データおよび前
記第2セグメント候補ブロックの画素データを、時分割
で各サイドレジスタデバイスからそれぞれ同列の1行目
のレジスタに転送し、同時に、1行目から(H−N)行
目までのn行目の各レジスタからそれぞれ同列のn+1
行目のレジスタに転送し、同時に、(H−N+1)行目
の各レジスタからそれぞれ同列のサイドレジスタデバイ
スに転送する第1転送制御手段と、 前記サーチウィンドウデータ出力手段からサーチウィン
ドウの画素データが転送されるタイミングに同期して、
前記第1セグメント候補ブロックの画素データおよび第
2セグメント候補ブロックの画素データを、時分割で2
列目以降(L−M+2)列目までのm列目の各レジスタ
からそれぞれ同行のm−1列目のレジスタに転送し、同
時に、2列目以降(L−M+2)列目までのm列目の各
サイドレジスタデバイスからそれぞれm−1列目のサイ
ドレジスタデバイスに転送する第2転送制御手段と、 前記サーチウィンドウデータ出力手段からサーチウィン
ドウの画素データが転送されるタイミングに同期して、
第1セグメント候補ブロックの画素データおよび第2セ
グメント候補ブロックの画素データを、時分割で1行目
の各レジスタからそれぞれ同列のサイドレジスタデバイ
スに転送し、同時に、2行目から(H−N+1)行目ま
でのn行目の各レジスタからそれぞれ同列のn−1行目
の各レジスタに転送し、同時に、各サイドレジスタデバ
イスからそれぞれ同列の(H−N+1)行目のレジスタ
に転送する第3転送制御手段と、 前記第1転送制御手段による転送動作を(N−1)回行
い、次いで、第2転送制御手段による転送動作を1回行
い、次いで、第3転送制御手段による転送動作を(N−
1)回行い、次いで、第2転送制御手段による転送動作
を1回行い、以降、これらの転送動作を順次繰り返す第
4転送制御手段と、を有し、 前記セグメントブロックディストーション算出手段が、 1列目の演算器に前記第1セグメント候補ブロックの画
素データが初めて入力されるタイミングに同期して、各
演算器に現画像第1セグメントブロックの1画素分の画
素データを現画像ブロックデータ出力手段から入力する
とともに、1列目の演算器に前記第2セグメント候補ブ
ロックの画素データが初めて入力されるタイミングに同
期して、各演算器に現画像第2セグメントブロックの1
画素分の画素データを現画像ブロックデータ出力手段か
ら入力し、以後、前記第4転送制御手段のそれぞれの転
送動作に同期して、前記演算器に現画像フィールドブロ
ックの全ての画素データが入力されるまで、画素データ
の入力を繰り返す第5転送制御手段と、 該第5転送制御手段によって各演算器に入力されたサー
チウィンドウ内の各第1セグメント候補ブロックの画素
データと現画像第1セグメントブロックの画素データに
基づいて各演算器に第1セグメントブロックディストー
ションを算出させるとともに、前記第5転送制御手段に
より各演算器に入力されたサーチウィンドウ内の各第2
セグメント候補ブロックの画素データと現画像第2セグ
メントブロックの画素データに基づいて、各演算器に第
2セグメントブロックディストーションを算出させるデ
ィストーション算出制御手段と、を有し、 さらに、前記セグメントブロックディストーション算出
手段によって算出された各第1セグメントブロックディ
ストーションおよび各第2セグメントブロックディスト
ーションを加算することによって、現画像フィールドブ
ロックと各フィールド候補ブロックとの差を表すフィー
ルドブロックディストーションを算出するフィールドブ
ロックディストーション算出手段と、 前記セグメントブロックディストーション算出手段によ
って算出された第1セグメントブロックディストーショ
ンのうちの最小の第1セグメントブロックディストーシ
ョンを検出し、該最小の第1セグメントブロックディス
トーションに対応する第1セグメント候補ブロックを特
定するとともに、前記セグメントブロックディストーシ
ョン算出手段によって算出された第2セグメントブロッ
クディストーションのうちの最小の第2セグメントブロ
ックディストーションを検出し、該最小の第2セグメン
トブロックディストーションに対応する第2セグメント
候補ブロックを特定するセグメントブロック特定手段
と、 前記フィールドブロックディストーション算出手段によ
って算出されたフィールドブロックディストーションの
うちの最小のフィールドブロックディストーションを検
出し、該最小のフィールドブロックディストーションに
対応するフィールド候補ブロックを特定するフィールド
ブロック特定手段と、を有することを特徴とする動きベ
クトル探索装置。
A motion vector search apparatus for searching for a plurality of motion vectors used to predict a current image field partially forming a moving image based on a reference image field partially forming the moving image. And H, L, N
Where M and M are integers, the current image field includes a current image field block consisting of (N × 2) rows and M columns of pixels, and the current image field block is an upper half block of the current image field block. The first image of the current image composed of pixels in N rows and M columns
A current image second segment block including N rows and M columns of pixels forming a lower half block of a segment block and a current image field block, wherein the reference image field is represented by a plurality of pixels each having pixel data. A search window including (H + N) rows and L columns of pixels is included, and the search window partially configures an upper search window including H rows and L columns of pixels partially configuring the search window and the search window. The search window includes a lower search window including pixels in H rows and L columns, the search window includes a plurality of field candidate blocks, and the upper search window includes a first segment candidate block partially constituting the field candidate block. The lower search window includes the field The current image field block and each field candidate block have the same size, including a second segment candidate block partially constituting the candidate block, and a current image first segment block and a current image second segment block of the current image field block. Each having the same size as each of the first segment candidate block and the second segment candidate block of each field candidate block, and wherein the plurality of motion vectors are the same as the current image field block and the field most similar to the current image field block. A field motion vector representing a displacement from a candidate block, a first segment motion vector representing a displacement between a current image first segment block and a first segment candidate block most similar to the current image first segment block, 2 se The most similar to the instrument block and the developing image second segment block 2
A second segment motion vector representing displacement with respect to a segment candidate block, a current image block data output means for outputting pixel data of the current image field block, and pixel data of the search window And (H−N + 1) × (L−M + 1) registers,
Search window data transfer holding means for inputting the pixel data of the search window output from the search window data output means, repeatedly transferring the input pixel data between the registers, and holding each of the registers, (H-N + 1) ) × (L−M + 1) or less arithmetic units, input the pixel data of the search window held in each register of the search window data transfer means, and output the current image field from the current image block data output means. The pixel data of the block is input to each computing unit, and each computing unit supplies a first segment block distortion representing the difference between the current image first segment block and each first segment candidate block, and a current image second segment block and each second segment block. Second segment block representing the difference from the two-segment candidate block A segment block distortion calculating means for performing time-division calculation of the block distortion, and inputting the pixel data of the search window output from the search window data output means, and holding and outputting the input pixel data (H-N + 1) An input register unit composed of a plurality of registers; and (LM + 2) side registers for inputting pixel data of a search window output from the search window data output means and holding and outputting the input pixel data. A side register unit comprising a device, wherein each register of the search window transfer holding means is arranged in a matrix of (H-N + 1) rows and (LM- + 1) columns together with each operation unit of the segment block distortion calculating means. Imaginatively placed When you and,
Let n be a natural number less than or equal to (H−N + 1), and m be (L−M +
2) Each of the registers of the input register unit is electrically connected to the register of the (LM + 1) column, and electrically connected to the register of the n-th row of the (LM + 1) column. Let the register of the connected input register unit be referred to as the register of the n-th row in the (LM + 2) column, and each side register device of the side register unit has the first row and the (H-N + 1) -th row, respectively. , And the side register device electrically connected to the first row of the m-th column and the register of the (H−N + 1) -th row is referred to as a m-th column side register device. Each of the registers in the n-th row from the second row is electrically connected to the registers in the (n-1) -th row in the same column, and each of the registers in the m-th row in the second and subsequent columns is respectively connected to the m-1 in the same row. Column Been register electrically connected, 2
The side register device in the mth column after the column is m-1
Electrically connected to the side register device of the column, further, the search window data transfer holding means, in synchronization with the timing at which the search window pixel data is transferred from the search window data output means,
The pixel data of the first segment candidate block and the pixel data of the second segment candidate block are time-divisionally transferred from each side register device to the first row of registers in the same column. N) n + 1 in the same column from each register in the nth row up to the row
First transfer control means for transferring to the register in the row and simultaneously transferring from each register in the (H-N + 1) th row to the side register device in the same column; and pixel data of the search window from the search window data output means. Synchronized with the transfer timing,
The pixel data of the first segment candidate block and the pixel data of the second segment candidate block are
Each of the registers in the m-th column up to the (LM + 2) th column is transferred to the register in the (m-1) -th column of the same row, and at the same time, the m-th column up to the (LM + 2) th column Second transfer control means for transferring from each of the side register devices to the (m-1) th side register device, and in synchronization with the timing at which pixel data of the search window is transferred from the search window data output means.
The pixel data of the first segment candidate block and the pixel data of the second segment candidate block are time-divisionally transferred from each register in the first row to the side register device in the same column, and at the same time, from the second row, (H−N + 1) Third transfer from each register in the n-th row up to the row to each register in the (n-1) -th row in the same column, and simultaneously, transfer from each side register device to the register in the (H-N + 1) -th row in the same column. The transfer operation by the transfer control means and the first transfer control means is performed (N-1) times, the transfer operation by the second transfer control means is performed once, and then the transfer operation by the third transfer control means is performed by (N-1). N-
1) times, and then a transfer operation by the second transfer control unit is performed once, and thereafter, the transfer operation is sequentially repeated. The fourth block includes a fourth transfer control unit. In synchronization with the timing at which the pixel data of the first segment candidate block is first input to the first arithmetic unit, the pixel data for one pixel of the current image first segment block is output from the current image block data output unit to each arithmetic unit. At the same time as the pixel data of the second segment candidate block is first input to the arithmetic unit in the first column, the first image of the second segment block of the current image is input to each arithmetic unit.
The pixel data for the pixels is input from the current image block data output unit, and thereafter, in synchronization with the respective transfer operations of the fourth transfer control unit, all the pixel data of the current image field block are input to the arithmetic unit. A fifth transfer control unit that repeats input of pixel data until the first segment candidate block in the search window input to each arithmetic unit by the fifth transfer control unit and the current image first segment block Each of the arithmetic units calculates the first segment block distortion based on the pixel data of the second and the second transfer control means in the search window input to each of the arithmetic units by the fifth transfer control means.
A distortion calculation control unit for causing each arithmetic unit to calculate a second segment block distortion based on the pixel data of the segment candidate block and the pixel data of the second segment block of the current image, further comprising the segment block distortion calculation unit A field block distortion calculating means for calculating a field block distortion representing a difference between a current image field block and each field candidate block by adding each of the first segment block distortion and each second segment block distortion calculated by: The smallest first segment block distortion among the first segment block distortions calculated by the segment block distortion calculating means; Detecting torsion, identifying a first segment candidate block corresponding to the minimum first segment block distortion, and selecting a minimum second segment block among the second segment block distortions calculated by the segment block distortion calculating means. A segment block specifying unit that detects distortion and specifies a second segment candidate block corresponding to the minimum second segment block distortion; a minimum field block of the field block distortion calculated by the field block distortion calculating unit A field block that detects distortion and specifies a field candidate block corresponding to the minimum field block distortion. Motion vector search apparatus characterized by having a specific unit.
【請求項2】請求項1記載の動きベクトル探索装置にお
いて、 前記セグメントブロックディストーション算出手段が
(H−N+1)×(L−M+1)個の演算器を有するこ
とを特徴とする動きベクトル探索装置。
2. The motion vector search device according to claim 1, wherein said segment block distortion calculation means has (H−N + 1) × (L−M + 1) arithmetic units.
【請求項3】請求項1記載の動きベクトル探索装置にお
いて、 前記マトリックス状に配置された同行同列の前記セグメ
ントブロックディストーション算出手段の各演算器と前
記サーチウィンドウデータ転送手段の各レジスタとによ
って、それぞれプロセッサエレメントが構成されること
を特徴とする動きベクトル探索装置。
3. The motion vector search device according to claim 1, wherein each of the arithmetic units of the segment block distortion calculating means arranged in the same matrix and in the same row and each register of the search window data transfer means are respectively provided. A motion vector search device comprising a processor element.
【請求項4】請求項1記載の動きベクトル探索装置にお
いて、 前記サイドレジスタユニットの各サイドレジスタデバイ
スが、それぞれ同列の1行目のレジスタに電気的に接続
された第1サイドレジスタデバイスと、それぞれ同列の
(H−N+1)行目のレジスタに電気的に接続された第
2サイドレジスタデバイスとから構成され、該第1サイ
ドレジスタデバイスが、直列に電気的に接続された(N
−1)個の前記レジスタを有し、一端のレジスタが同列
の1行目のレジスタに電気的に接続され、前記第2サイ
ドレジスタデバイスが、直列に電気的に接続された(N
−1)個の前記レジスタを有し、一端のレジスタが同列
の(H−N+1)行目のレジスタに電気的に接続される
ことを特徴とする動きベクトル探索装置。
4. The motion vector search device according to claim 1, wherein each side register device of the side register unit is a first side register device electrically connected to a register in a first row of the same column, respectively. A second side register device electrically connected to a register on the (H-N + 1) th row in the same column, and the first side register device is electrically connected in series to the (N-N + 1) th row.
-1) registers, one end of which is electrically connected to the first row of registers in the same column, and the second side register device is electrically connected in series (N
(1) A motion vector search device comprising: (1) the registers, wherein one end of the register is electrically connected to a register in the (H-N + 1) -th row in the same column.
【請求項5】請求項1記載の動きベクトル探索装置にお
いて、 前記サイドレジスタユニットの各サイドレジスタデバイ
スが、それぞれ直列に電気的に接続された(N−1)個
の前記レジスタを有し、一端のレジスタが同列の1行目
のレジスタに電気的に接続され、他端のレジスタが同列
の(H−N+1)行目のレジスタに電気的に接続される
ことを特徴とする動きベクトル探索装置。
5. The motion vector search device according to claim 1, wherein each of the side register devices of the side register unit has (N−1) number of the registers electrically connected in series. A register of the same row is electrically connected to a register of a first row of the same column, and a register of the other end is electrically connected to a register of a (H−N + 1) th row of the same column.
【請求項6】請求項1記載の動きベクトル探索装置にお
いて、 前記サーチウィンドウデータ転送保持手段の各レジスタ
が、入力端子および出力端子を有し、他のレジスタから
画素データを入力端子を通して入力して出力端子を通し
て出力する第1フリップフロップと、入力端子および出
力端子を有し、第1フリップフロップから画素データを
入力端子を通して入力して出力端子を通して出力する第
2フリップフロップと、からなり、 前記セグメントブロックディストーション算出手段の各
演算器が、 前記レジスタの第2フリップフロップから画素データを
入力して、互いに位置的に対応する現画像第1セグメン
トブロックの画素データと第1セグメント候補ブロック
の画素データとの差を表す第1局所ディストーションを
算出するとともに、互いに位置的に対応する現画像第2
セグメントブロックの画素データと第2セグメント候補
ブロックの画素データとの差を表す第2局所ディストー
ションを算出する局所ディストーション算出ユニット
と、 局所ディストーション算出ユニットによって算出された
第1セグメント候補ブロックに対応する第1局所ディス
トーションの総和を算出して前記第1セグメントブロッ
クディストーションを算出するとともに、局所ディスト
ーション算出ユニットによって算出された第2セグメン
ト候補ブロックに対応する第2局所ディストーションの
総和を算出して前記第2セグメントブロックディストー
ションを算出する局所ディストーション総和ユニット
と、を有し、 該局所ディストーション総和ユニットが、第1,第2入
力端子および出力端子を有し、第1入力端子および第2
入力端子に入力されたデータを加算して出力端子を通し
て出力する加算器と、入力端子および出力端子を有し、
加算器からデータを入力端子を通して入力して出力端子
を通して出力する第1フリップフロップと、入力端子お
よび出力端子を有し、第1フリップフロップからデータ
を入力端子を通して入力して出力端子を通して出力する
第2フリップフロップと、を有し、 局所ディストーション総和ユニットの各加算器が、局所
ディストーション算出ユニットから第1局所ディストー
ションおよび第2局所ディストーションを第1入力端子
を通して入力するとともに、局所ディストーション総和
ユニットの第2フリップフロップからデータを第2入力
端子を通して入力し、 全ての前記レジスタの第1および第2フリップフロッ
プ、並びに、全ての前記局所ディストーション総和ユニ
ットの第1および第2フリップフロップが、同じクロッ
クパルス信号によって動作することを特徴とする動きベ
クトル探索装置。
6. The motion vector search device according to claim 1, wherein each register of said search window data transfer holding means has an input terminal and an output terminal, and receives pixel data from another register through an input terminal. A segment comprising: a first flip-flop that outputs through an output terminal; and a second flip-flop that has an input terminal and an output terminal, inputs pixel data from the first flip-flop through an input terminal, and outputs through an output terminal. Each computing unit of the block distortion calculating means inputs pixel data from the second flip-flop of the register, and calculates pixel data of the current image first segment block and pixel data of the first segment candidate block corresponding to each other in position. Calculate the first local distortion representing the difference between Current image second positionally correspond to each other
A local distortion calculation unit for calculating a second local distortion representing a difference between the pixel data of the segment block and the pixel data of the second segment candidate block, and a first distortion corresponding to the first segment candidate block calculated by the local distortion calculation unit Calculating the sum of local distortions to calculate the first segment block distortion, and calculating the sum of second local distortions corresponding to the second segment candidate blocks calculated by the local distortion calculation unit to calculate the second segment block A local distortion summation unit for calculating distortion, wherein the local distortion summation unit has first and second input terminals and an output terminal, and has a first input terminal and a second input terminal.
An adder that adds data input to the input terminal and outputs the data through an output terminal, and an input terminal and an output terminal;
A first flip-flop that inputs data from the adder through an input terminal and outputs the data through an output terminal; and a second flip-flop that has an input terminal and an output terminal, and that inputs data from the first flip-flop through an input terminal and outputs the data through an output terminal. 2 flip-flops, wherein each adder of the local distortion sum unit inputs the first local distortion and the second local distortion from the local distortion calculation unit through a first input terminal, and the second adder of the local distortion sum unit Data is input from the flip-flop through a second input terminal, and the first and second flip-flops of all the registers and the first and second flip-flops of all of the local distortion summation units receive the same clock pulse signal. Motion vector search apparatus characterized by work I.
【請求項7】請求項6記載の動きベクトル探索装置にお
いて、 前記セグメントブロックディストーション算出手段の各
演算器が、 前記局所ディストーション総和ユニットによって算出さ
れた第1および第2セグメントブロックディストーショ
ンを前記セグメントブロック特定手段に転送するととも
に、前記フィールドブロックディストーション算出手段
に転送するディストーション転送ユニットを有し、 該ディストーション転送ユニットが、入力端子および出
力端子を有し、前記局所ディストーション総和ユニット
によって算出された第1および第2セグメントブロック
ディストーションを入力端子を通して入力して出力端子
を通して出力する第1フリップフロップと、入力端子お
よび出力端子を有し、第1フリップフロップから第1お
よび第2セグメントブロックディストーションを入力端
子を通して入力して前記セグメントブロック特定手段お
よびフィールドブロックディストーション算出手段に出
力端子を通して出力する第2フリップフロップと、を有
し、 全ての前記レジスタの第1および第2フリップフロッ
プ、全ての前記ディストーション総和ユニットの第1お
よび第2フリップフロップ、並びに、全ての前記ディス
トーション転送ユニットの第1および第2フリップフロ
ップが、同じクロックパルス信号によって動作すること
を特徴とする動きベクトル探索装置。
7. The motion vector search device according to claim 6, wherein each of the arithmetic units of the segment block distortion calculating means determines the first and second segment block distortions calculated by the local distortion summation unit as the segment block identification. And a distortion transfer unit for transferring to the field block distortion calculation means, the distortion transfer unit having an input terminal and an output terminal, the first and the second calculated by the local distortion summation unit. A first flip-flop for inputting a two-segment block distortion through an input terminal and outputting it through an output terminal; an input terminal and an output terminal; A second flip-flop that inputs a second segment block distortion through an input terminal and outputs the second segment block distortion through an output terminal to the segment block specifying means and the field block distortion calculating means, wherein the first and second flip-flops of all the registers are provided. Motion vector search, wherein the first and second flip-flops of all of the distortion summation units and the first and second flip-flops of all of the distortion transfer units are operated by the same clock pulse signal. apparatus.
【請求項8】請求項1記載の動きベクトル探索装置にお
いて、 前記フィールドブロックディストーション算出手段が、 前記サーチウィンドウ内で垂直方向に並んだフィールド
候補ブロックと同数設けられ、セグメントブロックディ
ストーション算出手段から該フィールド候補ブロックの
第1セグメント候補ブロックに対応する第1セグメント
ブロックディストーションをそれぞれ同時に入力して保
持するフリップフロップと、 該フリップフロップと同数設けられ、サーチウィンドウ
内で垂直方向に並んだフィールド候補ブロックの第2セ
グメント候補ブロックに対応する第2セグメントブロッ
クディストーションをそれぞれ同時に入力するととも
に、セグメントブロックディストーション算出手段の各
フリップフロップに保持された第1セグメントブロック
ディストーションを入力し、入力された第1セグメント
ブロックディストーションと第2セグメントブロックデ
ィストーションとを加算してフィールドブロックディス
トーションを算出する加算器と、を有することを特徴と
する動きベクトル探索装置。
8. The motion vector search device according to claim 1, wherein the field block distortion calculating means is provided in the same number as the field candidate blocks vertically arranged in the search window, and the segment block distortion calculating means calculates Flip-flops for simultaneously inputting and holding the first segment block distortions respectively corresponding to the first segment candidate blocks of the candidate blocks; and the same number of flip-flops as the number of the flip-flops and of the field candidate blocks vertically arranged in the search window. The second segment block distortions corresponding to the two-segment candidate blocks are simultaneously inputted, respectively, and the first segment blocks held in the flip-flops of the segment block distortion calculating means are simultaneously inputted. Enter the instrument block distortion, a motion vector search apparatus characterized by having an adder for calculating a field block distortion by adding the first segment block distortion and the second segment block distortion input.
【請求項9】請求項1記載の動きベクトル探索装置にお
いて、 前記フィールドブロックディストーション算出手段が、 前記サーチウィンドウ内で水平方向に並んだフィールド
候補ブロックと同数設けられ、セグメントブロックディ
ストーション算出手段から該フィールド候補ブロックの
第1セグメント候補ブロックに対応する第1セグメント
ブロックディストーションをそれぞれ同時に入力して保
持するフリップフロップと、 該フリップフロップと同数設けられ、サーチウィンドウ
内で水平方向に並んだフィールド候補ブロックの第2セ
グメント候補ブロックに対応する第2セグメントブロッ
クディストーションをそれぞれ同時に入力するととも
に、セグメントブロックディストーション算出手段の各
フリップフロップに保持された第1セグメントブロック
ディストーションを入力し、入力された第1セグメント
ブロックディストーションと第2セグメントブロックデ
ィストーションとを加算してフィールドブロックディス
トーションを算出する加算器と、を有することを特徴と
する動きベクトル探索装置。
9. The motion vector search device according to claim 1, wherein the field block distortion calculating means is provided in the same number as the field candidate blocks arranged in the horizontal direction in the search window, and the segment block distortion calculating means sets Flip-flops for simultaneously inputting and holding the first segment block distortions respectively corresponding to the first segment candidate blocks of the candidate blocks; and the flip-flops provided in the same number as the flip-flops and arranged horizontally in the search window. The second segment block distortions corresponding to the two-segment candidate blocks are simultaneously inputted, respectively, and the first segment blocks held in the flip-flops of the segment block distortion calculating means are simultaneously inputted. Enter the instrument block distortion, a motion vector search apparatus characterized by having an adder for calculating a field block distortion by adding the first segment block distortion and the second segment block distortion input.
【請求項10】請求項1記載の動きベクトル探索装置に
おいて、 前記セグメントブロック特定手段が、 セグメントブロックディストーション算出手段から、前
記サーチウィンドウ内で垂直方向に一列に並んだ第1セ
グメント候補ブロックに対応する第1セグメントブロッ
クディストーションに対して、最も外側の列の第1セグ
メントブロックディストーションをそれぞれ同時に入力
するとともに、前記サーチウィンドウ内で垂直方向に一
列に並んだ第2セグメント候補ブロックに対応する第2
セグメントブロックディストーションに対して、最も外
側の列の第2セグメントブロックディストーションをそ
れぞれ同時に入力し、前記サーチウィンドウ内の全ての
第1および第2セグメントブロックディストーションが
入力されるまで、前記サーチウィンドウの外側の列から
順次列毎に第1セグメントブロックディストーションお
よび第2セグメントブロックディストーションを時分割
で入力し、入力された全ての第1セグメントブロックデ
ィストーションの中から最小の第1セグメントブロック
ディストーションを検出するとともに、入力された全て
の第2セグメントブロックディストーションの中から最
小の第2セグメントブロックディストーションを検出す
ることを特徴とする動きベクトル探索装置。
10. The motion vector search device according to claim 1, wherein the segment block specifying means corresponds to the first segment candidate block vertically aligned in the search window from the segment block distortion calculating means. With respect to the first segment block distortion, the first segment block distortions in the outermost row are simultaneously inputted, respectively, and the second segment corresponding to the second segment candidate blocks vertically aligned in the search window.
For the segment block distortions, the second segment block distortions in the outermost row are simultaneously input, respectively, until the first and second segment block distortions in the search window are all input. A first segment block distortion and a second segment block distortion are input in a time-division manner for each column sequentially from a column, and a minimum first segment block distortion is detected from all the input first segment block distortions. A motion vector search device for detecting a minimum second segment block distortion from all the second segment block distortions obtained.
【請求項11】請求項1記載の動きベクトル探索装置に
おいて、 前記セグメントブロック特定手段が、 セグメントブロックディストーション算出手段から、前
記サーチウィンドウ内で水平方向に一列に並んだ第1セ
グメント候補ブロックに対応する第1セグメントブロッ
クディストーションに対して、最も外側の行の第1セグ
メントブロックディストーションをそれぞれ同時に入力
するとともに、前記サーチウィンドウ内で水平方向に一
行に並んだ第2セグメント候補ブロックに対応する第2
セグメントブロックディストーションに対して、最も外
側の行の第2セグメントブロックディストーションをそ
れぞれ同時に入力し、前記サーチウィンドウ内の全ての
第1および第2セグメントブロックディストーションが
入力されるまで、前記サーチウィンドウの外側の行から
順次行毎に第1セグメントブロックディストーションお
よび第2セグメントブロックディストーションを時分割
で入力し、入力された全ての第1セグメントブロックデ
ィストーションの中から最小の第1セグメントブロック
ディストーションを検出するとともに、入力された全て
の第2セグメントブロックディストーションの中から最
小の第2セグメントブロックディストーションを検出す
ることを特徴とする動きベクトル探索装置。
11. The motion vector search device according to claim 1, wherein the segment block specifying means corresponds to a first segment candidate block arranged in a horizontal line in the search window from the segment block distortion calculating means. With respect to the first segment block distortion, the first segment block distortions of the outermost row are simultaneously input, and the second segment block distortions corresponding to the second segment candidate blocks arranged in one row in the search window in the horizontal direction are simultaneously input.
For the segment block distortion, the second segment block distortions of the outermost row are simultaneously input, respectively, and the outer and outer segments of the search window are input until all the first and second segment block distortions in the search window are input. A first segment block distortion and a second segment block distortion are input in a time-division manner for each row sequentially from a row, and a minimum first segment block distortion is detected from all the input first segment block distortions. A motion vector search device for detecting a minimum second segment block distortion from all the second segment block distortions obtained.
【請求項12】請求項7記載の動きベクトル探索装置に
おいて、 少なくともひとつの前記演算器を有する演算器およびレ
ジスタからなる行のそれぞれの行の一端に位置する演算
器の前記ディストーション転送ユニットが、前記フィー
ルドブロックディストーション算出手段およびセグメン
トブロック特定手段に電気的に接続され、 該ディストーション転送ユニットが、前記フィールドブ
ロックディストーション算出手段およびセグメントブロ
ック特定手段に電気的に接続されたそれぞれのディスト
ーション転送ユニットから前記フィールドブロックディ
ストーション算出手段およびセグメントブロック特定手
段にそれぞれの第1および第2セグメントブロックディ
ストーションを転送するとともに、前記フィールドブロ
ックディストーション算出手段およびセグメントブロッ
ク特定手段に向けて他の演算器のディストーション転送
ユニットから同行の隣の演算器のディストーション転送
ユニットに順次第1および第2セグメントブロックディ
ストーションを転送することを特徴とする動きベクトル
探索装置。
12. The motion vector search device according to claim 7, wherein the distortion transfer unit of the arithmetic unit located at one end of each of the rows of the arithmetic unit having at least one of the arithmetic units and the register includes: The field block distortion calculating unit and the segment block specifying unit are electrically connected to each other, and the distortion transfer unit is connected to the field block distortion calculating unit and the segment block specifying unit from each of the distortion transfer units electrically connected to the field block. The first and second segment block distortions are transferred to a distortion calculating unit and a segment block specifying unit, and the field block distortion is transmitted. A motion vector search for sequentially transferring first and second segment block distortions from a distortion transfer unit of another arithmetic unit to a distortion transfer unit of an adjacent arithmetic unit on the same row toward a calculation unit and a segment block specifying unit. apparatus.
【請求項13】請求項7記載の動きベクトル探索装置に
おいて、 少なくともひとつの前記演算器を有する演算器およびレ
ジスタからなる列のそれぞれの列の一端に位置する演算
器の前記ディストーション転送ユニットが、前記フィー
ルドブロックディストーション算出手段およびセグメン
トブロック特定手段に電気的に接続され、 該ディストーション転送ユニットが、前記フィールドブ
ロックディストーション算出手段およびセグメントブロ
ック特定手段に電気的に接続されたそれぞれのディスト
ーション転送ユニットから前記フィールドブロックディ
ストーション算出手段およびセグメントブロック特定手
段にそれぞれの第1および第2セグメントブロックディ
ストーションを転送するとともに、前記フィールドブロ
ックディストーション算出手段およびセグメントブロッ
ク特定手段に向けて他の演算器のディストーション転送
ユニットから同列の隣の演算器のディストーション転送
ユニットに順次第1および第2セグメントブロックディ
ストーションを転送することを特徴とする動きベクトル
探索装置。
13. The motion vector search device according to claim 7, wherein the distortion transfer unit of the operation unit located at one end of each of the columns of the operation unit having at least one of the operation units and the register includes: The field block distortion calculating unit and the segment block specifying unit are electrically connected to each other, and the distortion transfer unit is connected to the field block distortion calculating unit and the segment block specifying unit from each of the distortion transfer units electrically connected to the field block. The first and second segment block distortions are transferred to a distortion calculating unit and a segment block specifying unit, and the field block distortion is transmitted. A motion vector search for sequentially transferring first and second segment block distortions from a distortion transfer unit of another arithmetic unit to a distortion transfer unit of an adjacent arithmetic unit in the same column toward a calculation unit and a segment block specifying unit. apparatus.
【請求項14】請求項7記載の動きベクトル探索装置に
おいて、 前記現画像フィールドブロックを第1現画像フィールド
ブロックと呼ぶとともに、前記サーチウィンドウを第1
サーチウィンドウと呼び、該第1現画像フィールドブロ
ックの水平方向に隣接する現画像フィールドブロックを
第2現画像フィールドブロックと呼ぶとともに、前記第
2現画像フィールドブロックに対応するように該第1サ
ーチウィンドウをM画素分水平方向にシフトしたサーチ
ウィンドウを第2サーチウィンドウと呼ぶとするとき、 前記サーチウィンドウデータ出力手段が、第2サーチウ
ィンドウの画素データのうち、第1サーチウィンドウと
第2サーチウィンドウとで共通する画素データを除いた
残りの画素データを、第1サーチウィンドウの画素デー
タに続けて順次出力するとともに、前記現画像ブロック
データ出力手段が、前記第5転送制御手段の転送動作に
基づいて第2現画像フィールドブロックの画素データを
第1現画像フィールドブロックの画素データに続けて順
次出力し、 前記第2サーチウィンドウの画素データと第2現画像フ
ィールドブロックの画素データに基づいて前記セグメン
トブロックディストーション算出制御手段による第1お
よび第2セグメントブロックディストーションの算出が
終了する前に、前記第1サーチウィンドウの画素データ
と前記第1現画像フィールドブロックの画素データに基
づいて算出された全ての第1および第2セグメントブロ
ックディストーションが前記セグメントブロックディス
トーション算出手段によって前記フィールドブロックデ
ィストーション算出手段およびセグメントブロック特定
手段に転送されることを特徴とする動きベクトル探索装
置。
14. The motion vector search device according to claim 7, wherein said current image field block is referred to as a first current image field block, and said search window is defined as a first current image field block.
A current image field block horizontally adjacent to the first current image field block is called a second current image field block, and the first search window is defined so as to correspond to the second current image field block. Is referred to as a second search window, the search window data output means outputs the first search window, the second search window and the second search window among the pixel data of the second search window. The remaining pixel data excluding the pixel data common to the first and second search windows is sequentially output following the pixel data of the first search window, and the current image block data output unit is configured to output the current image block data based on the transfer operation of the fifth transfer control unit. The pixel data of the second current image field block is transferred to the first current image field. And sequentially outputs the pixel data of the second block and the first and second segment block distortions by the segment block distortion calculation control means based on the pixel data of the second search window and the pixel data of the second current image field block. Before the calculation is completed, all the first and second segment block distortions calculated based on the pixel data of the first search window and the pixel data of the first current image field block are calculated by the segment block distortion calculating means. A motion vector search device, which is transferred to the field block distortion calculating means and the segment block specifying means.
JP19937195A 1995-08-04 1995-08-04 Motion vector search device Expired - Lifetime JP2866326B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19937195A JP2866326B2 (en) 1995-08-04 1995-08-04 Motion vector search device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19937195A JP2866326B2 (en) 1995-08-04 1995-08-04 Motion vector search device

Publications (2)

Publication Number Publication Date
JPH0951535A JPH0951535A (en) 1997-02-18
JP2866326B2 true JP2866326B2 (en) 1999-03-08

Family

ID=16406651

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19937195A Expired - Lifetime JP2866326B2 (en) 1995-08-04 1995-08-04 Motion vector search device

Country Status (1)

Country Link
JP (1) JP2866326B2 (en)

Also Published As

Publication number Publication date
JPH0951535A (en) 1997-02-18

Similar Documents

Publication Publication Date Title
US4937666A (en) Circuit implementation of block matching algorithm with fractional precision
JP3009674B2 (en) Motion detector
JP2834640B2 (en) Motion estimation apparatus and method
US6516031B1 (en) Motion vector detecting device
US5844631A (en) Motion estimation method and apparatus for calculating a motion vector
JP2768646B2 (en) Motion vector search method and search device
JP2866326B2 (en) Motion vector search device
JP2866325B2 (en) Motion vector search device
JP2866324B2 (en) Motion vector search device
JP2963369B2 (en) Motion vector search device
JP2868457B2 (en) Motion vector search device
JP2866321B2 (en) Motion vector search method and apparatus
JPWO2004012460A1 (en) Motion vector detection apparatus and motion vector detection method
JP2934146B2 (en) Block matching method and apparatus in video compression
JP2868441B2 (en) Motion vector search method and search device
JP2868440B2 (en) Motion vector search method and search device
JP2931783B2 (en) Motion vector search device
JP2868444B2 (en) Motion vector search method and search device
JP2872105B2 (en) Distortion calculator
JP3115511B2 (en) Motion vector search device
JP2983170B2 (en) Motion vector search method and search device
JP3698501B2 (en) Motion vector detection device
JP2003023638A (en) Motion vector detector and self-test method for the motion vector detector
JP2968233B2 (en) Motion vector search method and search device
JPH08340537A (en) Motion vector retrieval method and device therefor