JPH09247683A - Motion vector retrieval method and retrieval device - Google Patents

Motion vector retrieval method and retrieval device

Info

Publication number
JPH09247683A
JPH09247683A JP5268896A JP5268896A JPH09247683A JP H09247683 A JPH09247683 A JP H09247683A JP 5268896 A JP5268896 A JP 5268896A JP 5268896 A JP5268896 A JP 5268896A JP H09247683 A JPH09247683 A JP H09247683A
Authority
JP
Japan
Prior art keywords
block
pixel data
current image
field
distortion
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP5268896A
Other languages
Japanese (ja)
Other versions
JP2983170B2 (en
Inventor
Takayuki Kobayashi
孝之 小林
Deibitsuto Wateru
デイビット ワテル
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.)
GRAPHICS COMMUN LAB KK
Original Assignee
GRAPHICS COMMUN LAB 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 GRAPHICS COMMUN LAB KK filed Critical GRAPHICS COMMUN LAB KK
Priority to JP5268896A priority Critical patent/JP2983170B2/en
Publication of JPH09247683A publication Critical patent/JPH09247683A/en
Application granted granted Critical
Publication of JP2983170B2 publication Critical patent/JP2983170B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To calculate distortion with respect to plural current image blocks simultaneously by adopting the configuration such that part of each distortion calculation unit uses in common part of any of the other distortion calculation unit. SOLUTION: A distortion calculation means 3000 has an input register group, 1st-3rd side register group and 1st and 2nd processor element group and calculates respectively plural sets of distortion each denoting a difference of image between a current image block and each of plural object blocks based on picture element data of a current image block outputted from an active image data output unit 1000 and picture element data of a search window outputted from a reference image data output unit 2000. Furthermore, a block specification unit 6000 detects a motion vector form a specified object block. In this case, part of each distortion calculation unit uses in common part of any of the other distortion calculation unit.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

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

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

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

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

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

【0009】動き補償フレーム間予測符号化方式では、
図47に示されるように、参照画像200の人物像1が
移動した場合、図47に示される動きベクトルMVを算
出する。動きベクトルMVは、人物像1の移動方向およ
び移動距離を表し、この動きベクトルMVと参照画像2
00の人物像1を形成する画素データとによって、現画
像100上の人物像1を予測する。この場合、有意画素
領域は領域2となる。したがって、動き補償フレーム間
予測符号化方式では、有意画素数を大幅に少なくするこ
とができるので、画像情報の圧縮効率を大幅に向上する
ことができる。
In the motion compensation interframe predictive coding system,
When the person image 1 of the reference image 200 moves as shown in FIG. 47, the motion vector MV shown in FIG. 47 is calculated. The motion vector MV indicates the moving direction and the moving distance of the person image 1, and the motion vector MV and the reference image 2
The human image 1 on the current image 100 is predicted based on the pixel data forming the human image 1 of 00. In this case, the significant pixel area is the area 2. Therefore, in the motion-compensated inter-frame predictive coding method, the number of significant pixels can be significantly reduced, and the compression efficiency of image information can be greatly improved.

【0010】ところで、国際標準方式であるITU−T
(International telecommunication Union-Telecommun
ication Standardization Sector)H.261による動
き補償フレーム間予測方式では、まず、図48に示すよ
うに、現画像100を複数のブロックに分割し、その一
つのブロック(以下、現画像ブロックと呼ぶ)110に
類似した同一サイズの複数のブロック310(以下、候
補ブロックと呼ぶ)を含むサーチウィンドウ210を参
照画像200上で特定し、サーチウィンドウ210内に
含まれる複数の候補ブロック310と現画像ブロック1
10とのディストーションを算出する。
Incidentally, the ITU-T which is an international standard system
(International telecommunication Union-Telecommun
ication Standardization Sector) H. In the motion compensation inter-frame prediction method according to H.261, first, as shown in FIG. 48, the current image 100 is divided into a plurality of blocks, and one block (hereinafter, referred to as a current image block) 110 having the same size is used. A search window 210 including a plurality of blocks 310 (hereinafter referred to as candidate blocks) is specified on the reference image 200, and the plurality of candidate blocks 310 and the current image block 1 included in the search window 210 are identified.
Calculate the distortion with 10.

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

【0012】さらに、現画像ブロック110、サーチウ
ィンドウ210、候補ブロック310の関係について説
明する。図49(b)に示すように、現画像ブロック1
10がN行M列の画素から構成され、図49(a)に示
すように、サーチウィンドウ210がH行L列の画素か
ら構成されるとすると、現画像ブロック110に類似し
た候補ブロック310は、サーチウィンドウ210内に
(H−N+1)×(L−M+1)個存在する。
Next, the relationship between the current image block 110, the search window 210, and the candidate block 310 will be described. As shown in FIG. 49B, the current image block 1
If 10 is composed of N rows and M columns of pixels and the search window 210 is composed of H rows and L columns of pixels as shown in FIG. 49A, a candidate block 310 similar to the current image block 110 is obtained. , (H−N + 1) × (L−M + 1) pieces exist in the search window 210.

【0013】また、現画像ブロック110の左上角の画
素データをa(0,0)で表わすとすると、サーチウィ
ンドウ210内でこの画素データa(0,0)に位置的
に対応する各候補ブロック310の画素の取り得る範囲
は、図49(a)の斜線領域で示される。現画像ブロッ
ク110内の画素データと各候補ブロック310内の画
素データとの位置的な対応関係を図50に示す。図50
に示すように、現画像ブロック110内の画素データa
(m,n)に位置的に対応する各候補ブロック310内
の画素データは、サーチウィンドウ210内の画素デー
タb(l+m,h+n)で表される。ここで、hおよび
lはサーチウィンドウ210内の各候補ブロック310
を特定する値であり、サーチウィンドウ210内の画素
データb(l,h)は候補ブロック310の左上角の画
素データであり、現画像ブロック110の左上角の画素
データa(0,0)に位置的に対応する。
If the upper left corner pixel data of the current image block 110 is represented by a (0,0), each candidate block positionally corresponding to this pixel data a (0,0) in the search window 210. The range that can be taken by the pixel 310 is indicated by the hatched area in FIG. FIG. 50 shows the positional correspondence between the pixel data in the current image block 110 and the pixel data in each candidate block 310. Figure 50
As shown in, the pixel data a in the current image block 110
The pixel data in each candidate block 310 corresponding to the position (m, n) is represented by the pixel data b (l + m, h + n) in the search window 210. Here, h and l represent each candidate block 310 in the search window 210.
, And the pixel data b (l, h) in the search window 210 is the pixel data at the upper left corner of the candidate block 310, and the pixel data b (l, h) is Correspond in position.

【0014】図49および図50に示された現画像ブロ
ック110、サーチウィンドウ210および複数の候補
ブロック310において、現画像ブロック110と各候
補ブロック310とのディストーションをD(l,h)
とすると、D(l,h)は以下の式により表される。
In the current image block 110, the search window 210 and the plurality of candidate blocks 310 shown in FIGS. 49 and 50, the distortion between the current image block 110 and each candidate block 310 is D (l, h).
Then, 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) で表され、現画像ブロック110の画素データおよび位
置的に対応する各候補ブロック310の画素データの差
分値である局所ディストーションを示している。ノルム
演算は、一般に、絶対値演算および二乗演算が用いられ
るが、計算の複雑さと効率の点で絶対値演算が最も頻繁
に用いられる。
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). A local distortion which is a difference value between the pixel data of the image block 110 and the pixel data of each candidate block 310 corresponding to the position is shown. The norm operation generally uses an absolute value operation and a square operation, but the absolute value operation is most frequently used in terms of computational complexity and efficiency.

【0017】なお、動き補償フレーム間予測方式におい
て、現画像と参照画像をブロック単位で比較する方法
は、ブロック・マッチング法と呼ばれており、さらに、
サーチウィンドウ内に含まれる全ての候補ブロックと現
画像ブロックとを比較する場合には、フル・サーチ・ブ
ロック・マッチング法(全点探索法)と呼ばれている。
この全点探索法を用いて動きベクトルを求める方法およ
び装置として、例えば、特開平2−213291号公報
の二次元アニメート画像の連続画像を表すデータ信号を
処理するための方法および回路が知られている。この方
法および回路においては、演算時間を短縮するため、候
補ブロックの数だけプロセッサエレメントを配置して、
プロセッサエレメントに供給されたサーチエリアのデー
タを全体として上方向、下方向および左方向に切り換え
てスキャニングを行うことでディストーションを求めて
いる。
In the motion-compensated inter-frame prediction method, a method of comparing a current image and a reference image on a block basis is called a block matching method.
When all the candidate blocks included in the search window are compared with the current image block, it is called a full search block matching method (all-point search method).
As a method and an apparatus for obtaining a motion vector using the all-points search method, for example, a method and a circuit for processing a data signal representing a continuous image of a two-dimensional animated image disclosed in Japanese Patent Application Laid-Open No. Hei 2-213291 are known. I have. In this method and circuit, in order to reduce the operation time, processor elements are arranged by the number of candidate blocks,
Distortion is obtained by performing scanning by switching the data of the search area supplied to the processor element as a whole in the upward, downward, and left directions.

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

【0019】次のサイクル1では、サーチウィンドウの
各画素データを全体として上に移動するとともに、現画
像ブロックの画素データa(0,1)が入力されること
で局所ディストーション |b(l,h+1)−a(0,1)| の計算が行われ、さらに、サイクル0で計算された局所
ディストーションに加算されてストアされる。
In the next cycle 1, each pixel data of the search window is moved upward as a whole, and the pixel data a (0, 1) of the current image 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.

【0020】次いで、サイクル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 image block, the local distortion | b (l + 1, h + 1) -a (1,1) | is calculated, and the calculation result in cycle 1 It is added and stored.

【0021】次いで、サイクル3では、サーチウィンド
ウの各画素データを全体として下に移動するとともに、
現画像ブロックの画素データa(1,0)が入力される
ことで局所ディストーション |b(l+1,h)−a(1,0)| の計算が行われ、さらに、サイクル2での演算結果に加
算されてストアされ、結果として9個の候補ブロックに
対応する各候補ブロックと現画像ブロックとのディスト
ーションが計算される。
Next, in cycle 3, while moving each pixel data of the search window as a whole,
By inputting the pixel data a (1,0) of the current image block, the local distortion | b (l + 1, h) -a (1,0) | is calculated. The result is added and stored, and as a result, the distortion between each candidate block corresponding to the nine candidate blocks and the current image block is calculated.

【0022】次いで、この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 in an interlaced scanning system.

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

【0024】インタレース走査方式の画像には、フレー
ムを符号化の単位とするフレーム構造とフィールドを符
号化の単位とするフィールド構造との両方が提供され、
さらに、予測方式には、フレーム予測方式とフィールド
予測方式とがある。ただし、フィールド構造の場合に
は、フレーム予測方式は使えない。以下、フレーム構造
におけるそれぞれの予測方式の例を説明する。
The interlaced scanning image 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.
Further, the prediction methods include a frame prediction method and a field prediction method. However, in the case of the field structure, the frame prediction method cannot be used. Hereinafter, examples of each prediction method in the frame structure will be described.

【0025】ここで、図53に示すように、現画像フレ
ーム600が奇数走査ラインからなる第1フィールド6
01および偶数走査ラインからなる第2フィールド60
2から構成され、参照画像フレーム700が奇数走査ラ
インからなる第1フィールド701および偶数走査ライ
ンからなる第2フィールド702から構成され、参照画
像フレーム700から現画像フレーム600を予測する
とする。また、図53に示すように、斜線で示された人
物像3が画面の左下から右上の方向に移動しているとす
る。
Here, as shown in FIG. 53, the current image frame 600 includes the first field 6 consisting of odd scan lines.
01 and second field 60 consisting of even scan lines
2, a reference image frame 700 is composed of a first field 701 composed of odd-numbered scan lines and a second field 702 composed of even-numbered scan lines, and the current image frame 600 is predicted from the reference image frame 700. Further, as shown in FIG. 53, it is assumed that the person image 3 shown by diagonal lines is moving from the lower left to the upper right of the screen.

【0026】フレーム構造におけるフィールド予測方式
は、参照画像フレーム700の第1フィールド701ま
たは第2フィールド702から現画像フレーム600の
第1フィールド601を動きベクトルMV1によって予
測し、参照画像フレーム700の第1フィールド701
または第2フィールド702から現画像フレーム600
の第2フィールド602を動きベクトルMV2によって
予測し、この予測された2つのフィールドを合成するこ
とによって参照画像フレーム700から現画像フレーム
600を予測する。
In the field prediction method in the frame structure, the first field 601 of the current image frame 600 is predicted from the first field 701 or the second field 702 of the reference image frame 700 by using the motion vector MV1. Field 701
Or from the second field 702 to the current image frame 600
Is predicted by the motion vector MV2, and the current image frame 600 is predicted from the reference image frame 700 by combining the predicted two fields.

【0027】フレーム構造におけるフレーム予測方式
は、参照画像フレーム700から現画像フレーム600
を動きベクトルMVによって予測する。結局、フレーム
構造では、フィールド予測方式による2本の動きベクト
ルMV1,MV2とフレーム予測方式による1本の動き
ベクトルMVが求められる。すなわち、図54に示すよ
うに、現画像を時間n、参照画像を時間(n−1)と
し、現画像および参照画像の奇数走査ラインの各画素を
白丸で表し、現画像および参照画像の偶数走査ラインの
各画素を黒丸で表し、垂直8画素の現画像フレームブロ
ック800が垂直4画素の現画像第1フィールドブロッ
ク801と垂直4画素の現画像第2フィールドブロック
802からなるとすると、動きベクトルMV1は、現画
像第1フィールドブロック801を現画像ブロックと
し、この現画像第1フィールドブロック801の画素デ
ータと参照画像の第1フィールドまたは第2フィールド
の複数の第1フィールド候補ブロック901の画素デー
タに基づいて求められ、動きベクトルMV2は、現画像
第2フィールドブロック802を現画像ブロックとし、
この現画像第2フィールドブロック802の画素データ
と参照画像の第1フィールドまたは第2フィールドの複
数の第2フィールド候補ブロック902の画素データに
基づいて求められ、動きベクトルMVは、現画像フレー
ムブロック800を現画像ブロックとし、現画像フレー
ムブロック800の画素データと参照画像の複数のフレ
ーム候補ブロック900の画素データに基づいて求めら
れる。
The frame prediction method in the frame structure is as follows.
Is predicted by the motion vector MV. After all, in the frame structure, two motion vectors MV1 and MV2 according to the field prediction method and one motion vector MV according to the frame prediction method are obtained. That is, as shown in FIG. 54, the current image is time n, the reference image is time (n−1), each pixel of the odd scan lines of the current image and the reference image is represented by a white circle, and the even number of the current image and the reference image is represented. Each pixel of the scanning line is represented by a black circle, and if the current image frame block 800 of vertical 8 pixels is composed of a current image first field block 801 of vertical 4 pixels and a current image second field block 802 of vertical 4 pixels, the motion vector MV1 Uses the current image first field block 801 as the current image block, and sets the pixel data of the current image first field block 801 and the pixel data of the plurality of first field candidate blocks 901 of the first field or the second field of the reference image. The motion vector MV2 is calculated based on the current image second field block 802 as the current image block. ,
The motion vector MV is obtained based on the pixel data of the current image second field block 802 and the pixel data of a plurality of second field candidate blocks 902 of the first field or the second field of the reference image. Is the current image block, and is obtained based on the pixel data of the current image frame block 800 and the pixel data of the plurality of frame candidate blocks 900 of the reference image.

【0028】さらに、動きベクトルを求める方法は、現
画像フレームブロック800内の現画像第1フィールド
ブロック801および第2フィールドブロック802に
対して、参照画像上の候補ブロックの取り方によって同
一パリティーフェーズおよび異パリティーフェーズに分
けられる。図55に示すように、現画像を時間n、参照
画像を時間(n−1)とし、現画像および参照画像の奇
数走査ラインの各画素を白丸で表し、現画像および参照
画像の偶数走査ラインの各画素を黒丸で表し、垂直8画
素の現画像フレームブロック810が垂直4画素の現画
像第1フィールドブロック811と垂直4画素の第2フ
ィールドブロック812からなるとすると、同一パリテ
ィーフェーズは、現画像第1フィールドブロック811
の画素データと参照画像の第1フィールドの複数の候補
ブロック911の画素データに基づいて動きベクトルM
V11を求めるとともに、現画像第2フィールドブロッ
ク812の画素データと参照画像の第2フィールドの複
数の候補ブロック912の画素データに基づいて動きベ
クトルMV22を求め、現画像フレームブロック810
の画素データと第1フィールド候補ブロック911およ
び第2フィールド候補ブロック912を含む複数のフレ
ーム候補ブロック910の画素データに基づいて動きベ
クトルを求めるものである。
Further, a method of obtaining a motion vector is as follows. For the first field block 801 and the second field block 802 of the current image in the current image frame block 800, the same parity phase and the same It is divided into different parity phases. As shown in FIG. 55, the current image is time n, the reference image is time (n-1), each pixel of the odd scan lines of the current image and the reference image is represented by a white circle, and the even scan line of the current image and the reference image is represented. , Each pixel is represented by a black circle, and a current image frame block 810 of vertical 8 pixels is composed of a current image first field block 811 of vertical 4 pixels and a second field block 812 of vertical 4 pixels, the same parity phase is First field block 811
Of the motion vector M based on the pixel data of the plurality of candidate blocks 911 in the first field of the reference image
V11 and the motion vector MV22 based on the pixel data of the second field block 812 of the current image and the pixel data of the plurality of candidate blocks 912 of the second field of the reference image.
A motion vector is obtained based on the pixel data of a plurality of frame candidate blocks 910 including the first field candidate block 911 and the second field candidate block 912.

【0029】一方、異パリティーフェーズは、現画像第
1フィールドブロック811の画素データと参照画像の
第2フィールドの複数の第2フィールド候補ブロック9
22の画素データに基づいて動きベクトルMV12を求
めるとともに、現画像第2フィールドブロック812の
画素データと参照画像の第1フィールドの複数の第1フ
ィールド候補ブロック921の画素データに基づいて動
きベクトルMV21を求め、現画像フレームブロック8
10の画素データと第1フィールド候補ブロック921
および第2フィールド候補ブロック922を含む複数の
フレーム候補ブロック920の画素データに基づいて動
きベクトルを求めるものである。
On the other hand, in the different parity phase, the pixel data of the current image first field block 811 and the plurality of second field candidate blocks 9 of the second field of the reference image are set.
The motion vector MV12 is determined based on the pixel data of the current image 22 and the motion vector MV21 is determined based on the pixel data of the current image second field block 812 and the pixel data of the plurality of first field candidate blocks 921 of the first field of the reference image. Find the current image frame block 8
10 pixel data and the first field candidate block 921
And a motion vector is obtained based on pixel data of a plurality of frame candidate blocks 920 including the second field candidate block 922.

【0030】最終的には、これらの動きベクトルの中か
らフィールド予測方式による2本の動きベクトルMV
1,MV2とフレーム予測方式による1本の動きベクト
ルMVから最適な動きベクトルが選択される。
Eventually, two motion vectors MV from these motion vectors by the field prediction method are obtained.
The optimum motion vector is selected from 1, MV2 and one motion vector MV based on the frame prediction method.

【0031】[0031]

【発明が解決しようとする課題】しかしながら、従来の
動きベクトル探索装置にあっては、フレームブロックに
おけるディストーションと二つのフィールドブロックに
おけるディストーションとを求めようとすると、一つの
装置にそれぞれの画素データを三回通すことになり、処
理時間がかかってしまうといった問題があった。さら
に、フィールドブロックと同じ範囲のフレームブロック
は、1つのフィールドブロックの二倍の画素数を含んで
いる。したがって、一つの動きベクトル探索装置によっ
て、それぞれのディストーションを求めると、フレーム
ブロックとフィールドブロックの探索範囲が異なってし
まう。
However, in the conventional motion vector search device, when the distortion in the frame block and the distortion in the two field blocks are to be obtained, one device can obtain the respective pixel data. There was a problem that it took a lot of time to process it, and it took a lot of processing time. Further, a frame block in the same range as a field block includes twice as many pixels as one field block. Therefore, if each distortion is obtained by one motion vector search device, the search ranges of the frame block and the field block will be different.

【0032】また、フレームブロックと二つのフィール
ドブロックのディストーションをそれぞれ別の装置で求
めようとすると、全体の装置規模が大きくなってしま
う。そこで、本発明は、二つのフィールドブロックのデ
ィストーションを同時に求め、上記ディストーション算
出時に使用したそれぞれのプロセッサエレメントをフレ
ームブロックのディストーションを求めるときにも、双
方使用することにより、同じ範囲の探索領域内に、フィ
ールドブロックの二倍の画素数を持つフレームブロック
をプロセッサエレメントの数を増やすことなく、動きベ
クトルを探索することができる動きベクトル探索装置を
提供することを課題とする。
Further, if the distortion of the frame block and the distortion of the two field blocks are to be obtained by different devices, the size of the entire device becomes large. Therefore, the present invention obtains the distortion of two field blocks at the same time, and when each processor element used at the time of the above distortion calculation is also used to obtain the distortion of a frame block, by using both of them, a search area within the same range can be obtained. An object of the present invention is to provide a motion vector search device capable of searching a motion vector for a frame block having twice the number of pixels as a field block without increasing the number of processor elements.

【0033】また、二つのフィールドブロックのディス
トーションを求めるときに、双方のサイドレジスタを共
用することにより、回路規模を小さくすることができ
る。さらに、ディストーション算出の際に、画素データ
の転送方向を上下両方向に行なっていたものを、プロセ
ッサエレメントの列に応じて上方向または下方向のどち
らかに決定することにより、転送バスの数を削減するこ
とを課題とする。
Further, when the distortion of the two field blocks is obtained, the circuit scale can be reduced by sharing both side registers. Furthermore, the number of transfer buses is reduced by determining whether pixel data is transferred in both the upper and lower directions when calculating distortion, in either the upper or lower direction according to the row of processor elements. The task is to

【0034】[0034]

【課題を解決するための手段】請求項1記載の発明は、
上記課題を解決するため、動画像を部分的に構成する現
画像を、前記動画像を部分的に構成する参照画像に基づ
いて予測する動きベクトルを探索する動きベクトル探索
方法であり、前記現画像が、画素データをそれぞれ有す
る複数の画素により表わされる現画像ブロックを含み、
前記参照画像が、画素データをそれぞれ有する複数の画
素により表わされるサーチウインドウを含み、該サーチ
ウインドウが複数の候補ブロックを含み、該現画像ブロ
ックと該各候補ブロックが同一サイズであり、前記現画
像ブロックのブロック位置と該現画像ブロックに最も類
似した候補ブロックのブロック位置とによって特定され
る動きベクトルを探索する動きベクトル探索方法であっ
て、前記現画像ブロックの画素データと、前記サーチウ
ィンドウ内の候補ブロックの画素データと、を準備する
工程と、前記サーチウィンドウ内の各候補ブロックの画
素データと、前記現画像ブロックの画素データと、に基
づいて、前記現画像ブロックに対し、該現画像ブロック
と前記各候補ブロックとの間の画像の差を表わす複数の
ディストーションを算出させるディストーション算出手
段と、前記ディストーション算出手段によって算出され
た現画像ブロックに対応する各ディストーションのうち
の最小のディストーションを検出して、該最小のディス
トーションに対応する候補ブロックを特定させるブロッ
ク特定手段と、前記現画像ブロックの画素データを前記
ディストーション算出手段に入力する現画像データ入力
工程と、前記サーチウィンドウの候補ブロックの画素デ
ータを前記ディストーション算出手段に入力するウィン
ドウデータ入力工程と、前記ディストーション算出手段
によって算出された前記ディストーションを前記ブロッ
ク特定手段に入力するディストーション入力工程と、を
備え、前記ディストーション算出手段が、それぞれひと
つの前記現画像ブロックと、該現画像ブロックに対応す
る前記各候補ブロックとのディストーションを算出する
複数のディストーション算出ユニットを有し、前記各デ
ィストーション算出ユニットの一部が、他の一つのディ
ストーション算出ユニットの一部を共有することを特徴
とする。
According to the first aspect of the present invention,
To solve the above problem, a motion vector search method for searching for a motion vector predicting a current image partially forming a moving image based on a reference image partially forming the moving image, wherein the current image Includes a current image block represented by a plurality of pixels each having pixel data,
The reference image includes a search window represented by a plurality of pixels each having pixel data, the search window includes a plurality of candidate blocks, and the current image block and each of the candidate blocks have the same size. A motion vector search method for searching for a motion vector specified by a block position of a block and a block position of a candidate block most similar to the current image block, the pixel data of the current image block, and The current image block for the current image block based on the step of preparing the pixel data of the candidate block, the pixel data of each candidate block in the search window, and the pixel data of the current image block. Distortions representing image differences between the candidate block and each of the candidate blocks Distortion calculating means for calculating, and block specifying means for detecting the minimum distortion among the distortions corresponding to the current image block calculated by the distortion calculating means, and specifying a candidate block corresponding to the minimum distortion. A current image data input step of inputting pixel data of the current image block to the distortion calculation means, a window data input step of inputting pixel data of candidate blocks of the search window to the distortion calculation means, and the distortion calculation means A distortion input step of inputting the distortion calculated by the above into the block specifying means, wherein the distortion calculating means has one current image block and one current image block, respectively. It has a plurality of distortion calculation units for calculating the distortion with each of the candidate blocks corresponding to the block, characterized in that a part of each distortion calculation unit shares a part of another one distortion calculation unit. To do.

【0035】請求項2記載の発明は、上記課題を解決す
るため、インタレース走査方式の動画像を部分的に構成
する現画像を、前記動画像を部分的に構成する参照画像
に基づいて予測するのに用いられる複数の動きベクトル
を探索する動きベクトル探索方法であり、前記現画像が
現画像フレームからなり、該現画像フレームが、現画像
第1フィールドおよび現画像第2フィールドを含むとと
もに、画素データをそれぞれ有する複数の画素により表
わされる現画像フレームブロックを含み、前記現画像第
1フィールドおよび前記現画像第2フィールドが、画素
データをそれぞれ有する複数の画素により表わされる現
画像フィールドブロックを含み、前記参照画像が参照画
像フレームからなり、該参照画像フレームが、参照画像
第1フィールドおよび参照画像第2フィールドを含むと
ともに、画素データをそれぞれ有する複数の画素により
表わされるサーチウインドウを含み、該サーチウインド
ウが、複数のフレーム候補ブロックを含み、前記参照画
像第1フィールドおよび前記参照画像第2フィールド
が、画素データをそれぞれ有する複数の画素により表わ
されるサーチウインドウを含み、該サーチウィンドウ
が、複数のフィールド候補ブロックを含み、前記現画像
フレームブロックと前記各フレーム候補ブロックが同一
サイズであり、前記現画像フィールドブロックのそれぞ
れが、前記各フィールド候補ブロックのそれぞれと同一
サイズであり、前記複数の動きベクトルを探索する動き
ベクトル探索方法であって、前記現画像フィールドブロ
ックの画素データと、前記サーチウィンドウ内のフィー
ルド候補ブロックの画素データと、を準備する工程と、
前記現画像フィールドブロックの画素データと、前記サ
ーチウィンドウ内の各フィールド候補ブロックの画素デ
ータと、に基づいて、前記現画像フィールドブロックに
対し、該現画像フィールドブロックと前記各フィールド
候補ブロックとの間の画像の差を表わす複数のディスト
ーションを算出させるディストーション算出手段と、該
ディストーション算出手段によって算出された各現画像
フィールドブロックに対応するそれぞれのディストーシ
ョンのうちの最小のディストーションを検出して、該最
小のディストーションに対応するフィールド候補ブロッ
クを特定させるブロック特定手段と、前記現画像フィー
ルドブロックの画素データを前記ディストーション算出
手段に入力する現画像データ入力工程と、前記サーチウ
ィンドウのフィールド候補ブロックの画素データを前記
ディストーション算出手段に入力するウィンドウデータ
入力工程と、前記ディストーション算出手段によって算
出された前記ディストーションを前記ブロック特定手段
に入力するディストーション入力工程と、前記サーチウ
ィンドウ内の各フィールド候補ブロックの画素データ
を、前記ディストーション算出手段内で転送するウィン
ドウデータ転送工程と、を備え、前記ディストーション
算出手段が、前記サーチウィンドウ内の各フィールド候
補ブロックの画素データの一部を入力して保持するとと
もに、該保持したデータをそれぞれ転送する第1画素デ
ータ転送保持ユニット、第2画素データ転送保持ユニッ
トおよび第3画素データ転送保持ユニットと、前記サー
チウィンドウ内の各フィールド候補ブロックの画素デー
タの一部を入力して保持するとともに、該保持したデー
タをそれぞれ転送し、前記現画像データ出力手段から入
力される前記現画像フィールドブロックの画素データ
と、前記参照画像データ出力手段から入力される前記サ
ーチウィンドウ内の各フィールド候補ブロックの画素デ
ータと、に基づいて、前記現画像フィールドブロックに
対し、該現画像フィールドブロックと前記各フィールド
候補ブロックとの間の画像の差を表わす複数のディスト
ーションをそれぞれ算出する第1ディストーション算出
ユニットおよび第2ディストーション算出ユニットと、
前記各フィールド候補ブロックの画素データを、前記第
1画素データ転送保持ユニット、前記第1ディストーシ
ョン算出ユニットおよび前記第2画素データ転送保持ユ
ニットの間で転送させる第1転送経路と、前記各フィー
ルド候補ブロックの画素データを、前記第2画素データ
転送保持ユニット、前記第2ディストーション算出ユニ
ットおよび前記第3画素データ転送保持ユニットの間で
転送させる第2転送経路と、を有することを特徴とす
る。
In order to solve the above-mentioned problems, the present invention according to claim 2 predicts a current image partially forming a moving image of the interlaced scanning system based on a reference image partially forming the moving image. Is a motion vector search method for searching a plurality of motion vectors used for performing the current image, wherein the current image includes a current image frame, and the current image frame includes a current image first field and a current image second field, A current image frame block represented by a plurality of pixels each having pixel data, wherein the current image first field and the current image second field include a current image field block represented by a plurality of pixels each having pixel data. , The reference image includes a reference image frame, and the reference image frame is a reference image first field and a reference image frame. And a reference image second field, and a search window represented by a plurality of pixels each having pixel data, the search window including a plurality of frame candidate blocks, the reference image first field and the reference image first field. The two fields include a search window represented by a plurality of pixels each having pixel data, the search window includes a plurality of field candidate blocks, and the current image frame block and each of the frame candidate blocks have the same size, A motion vector search method for searching each of the plurality of motion vectors, wherein each of the current image field blocks has the same size as each of the field candidate blocks, the pixel data of the current image field block, and the search win And pixel data in the field a candidate block within the window, a step of preparing a,
Between the current image field block and each of the field candidate blocks for the current image field block based on the pixel data of the current image field block and the pixel data of each field candidate block in the search window Distortion calculation means for calculating a plurality of distortions that represent differences in images, and a minimum distortion of the distortions corresponding to each current image field block calculated by the distortion calculation means is detected, and the minimum distortion is detected. Block specifying means for specifying a field candidate block corresponding to distortion, a current image data input step for inputting pixel data of the current image field block to the distortion calculating means, and a search window fee Window data input step of inputting pixel data of a candidate block to the distortion calculating means, a distortion input step of inputting the distortion calculated by the distortion calculating means to the block specifying means, and each field in the search window. Window data transfer step of transferring pixel data of a candidate block in the distortion calculating means, wherein the distortion calculating means inputs and holds a part of pixel data of each field candidate block in the search window. In addition, a first pixel data transfer holding unit, a second pixel data transfer holding unit, and a third pixel data transfer holding unit for respectively transferring the held data, and field candidate blocks in the search window. Of the pixel data of the current image field block input from the current image data output means and the reference image data output. The pixel data of each field candidate block in the search window inputted from the means, the difference of the image between the current image field block and each of the field candidate blocks is calculated for the current image field block. A first distortion calculation unit and a second distortion calculation unit that respectively calculate a plurality of represented distortions;
A first transfer path for transferring pixel data of each field candidate block among the first pixel data transfer holding unit, the first distortion calculation unit, and the second pixel data transfer holding unit, and each field candidate block Second pixel data transfer and holding unit, the second distortion calculation unit, and the third pixel data transfer and holding unit.

【0036】請求項3記載の発明は、上記課題を解決す
るため、請求項2記載の動きベクトル探索方法におい
て、前記画素データの転送経路を切り換えるモード切り
換え手段を備え、前記ディストーション算出手段が、前
記各フィールド候補ブロックの画素データを、前記第1
画素データ転送保持ユニット、前記第1ディストーショ
ン算出ユニット、前記第2ディストーション算出ユニッ
トおよび前記第3画素データ転送保持ユニットの間で転
送させる第3転送経路を有し、前記モード切り換え手段
が、前記第1転送経路および前記第2転送経路を選択す
る第1転送モードと、前記第3転送経路を選択する第2
転送モードと、を切り換えることを特徴とする。
In order to solve the above-mentioned problems, the invention according to claim 3 is the motion vector search method according to claim 2, further comprising mode switching means for switching the transfer path of the pixel data, wherein the distortion calculation means The pixel data of each field candidate block is set to the first
A pixel data transfer / holding unit, a first distortion calculation unit, a second distortion calculation unit, and a third transfer path for transferring between the third pixel data transfer / holding unit; A first transfer mode for selecting a transfer path and the second transfer path, and a second for selecting the third transfer path
It is characterized by switching between the transfer mode and.

【0037】請求項4記載の発明は、上記課題を解決す
るため、請求項3記載の動きベクトル探索方法におい
て、前記現画像フレームブロックの画素データと、前記
サーチウィンドウ内のフレーム候補ブロックの画素デー
タと、を準備する工程を備え、前記モード切り換え手段
によって、第2転送モードが選択されたとき、前記現画
像データ入力工程が、前記現画像フレームブロックの画
素データを前記ディストーション算出手段に入力し、前
記ウィンドウデータ入力工程が、前記サーチウィンドウ
のフレーム候補ブロックの画素データを前記ディストー
ション算出手段に入力し、前記ウィンドウデータ転送工
程が、前記サーチウィンドウ内の各フレーム候補ブロッ
クの画素データを、前記第3転送経路に沿って転送し、
前記ディストーション算出手段が、前記現画像フレーム
ブロックの画素データと、前記サーチウィンドウ内の各
フレーム候補ブロックの画素データと、に基づいて、前
記現画像フレームブロックに対し、該現画像フレームブ
ロックと前記各フレーム候補ブロックとの間の画像の差
を表わす複数のディストーションを算出させることを特
徴とする。
In order to solve the above-mentioned problems, the invention according to claim 4 is the motion vector search method according to claim 3, wherein the pixel data of the current image frame block and the pixel data of the frame candidate block in the search window are used. And, when the second transfer mode is selected by the mode switching means, the current image data input step inputs pixel data of the current image frame block to the distortion calculation means, The window data inputting step inputs pixel data of a frame candidate block of the search window to the distortion calculating means, and the window data transferring step sets pixel data of each frame candidate block in the search window to the third Transfer along the transfer route,
The distortion calculation means, based on the pixel data of the current image frame block and the pixel data of each frame candidate block in the search window, with respect to the current image frame block, the current image frame block and each of the current image frame blocks. It is characterized in that a plurality of distortions representing the difference between the image and the frame candidate block are calculated.

【0038】請求項5記載の発明は、上記課題を解決す
るため、請求項4記載の動きベクトル探索方法におい
て、H,L,NおよびMをそれぞれ整数とし、前記現画
像フレームブロックが、(N×2)行M列の画素からな
り、前記現画像第1フィールドブロックが、N行M列の
画素からなり、前記現画像第2フィールドブロックが、
N行M列の画素からなるとともに、前記参照画像フレー
ムのサーチウインドウが、(H×2)行L列の画素から
なり、前記参照画像第1フィールドのサーチウインドウ
が、H行L列の画素からなり、前記参照画像第2フィー
ルドのサーチウインドウが、H行L列の画素からなる動
きベクトル探索方法であって、前記第1ディストーショ
ン算出ユニットおよび前記第2ディストーション算出ユ
ニットが、それぞれ(H−N+1)×(L−M+1)個
のプロセッサエレメントからなり、前記第1画素データ
転送保持ユニットが、(N×2−1)×(L−M+1)
個のサイドレジスタからなり、前記第2画素データ転送
保持ユニットが、(N−1)×(L−M+1)個のサイ
ドレジスタからなり、前記第3画素データ転送保持ユニ
ットが、2×(N−1)×(L−M+1)個のサイドレ
ジスタからなることを特徴とする。
In order to solve the above-mentioned problems, the invention according to claim 5 is the motion vector search method according to claim 4, wherein H, L, N and M are integers, and the current image frame block is (N X2) row M columns of pixels, the current image first field block consists of N rows M columns of pixels, the current image second field block,
The search window of the reference image frame is composed of pixels of (H × 2) rows L columns, and the search window of the first field of the reference image is composed of pixels of H rows L columns. In a motion vector search method in which the search window of the second field of the reference image is composed of pixels of H rows and L columns, the first distortion calculation unit and the second distortion calculation unit are (H−N + 1), respectively. X (L-M + 1) processor elements, and the first pixel data transfer / holding unit is (Nx2-1) x (L-M + 1).
Number of side registers, the second pixel data transfer holding unit includes (N−1) × (L−M + 1) side registers, and the third pixel data transfer holding unit includes 2 × (N−). 1) × (L−M + 1) side registers.

【0039】請求項6記載の発明は、上記課題を解決す
るため、請求項4記載の動きベクトル探索方法におい
て、H,L,NおよびMをそれぞれ整数とし、前記現画
像フレームブロックが、(N×2)行M列の画素からな
り、前記現画像第1フィールドブロックが、N行M列の
画素からなり、前記現画像第2フィールドブロックが、
N行M列の画素からなるとともに、前記参照画像フレー
ムのサーチウインドウが、(H×2+1)行L列の画素
からなり、前記参照画像第1フィールドのサーチウイン
ドウが、H行L列の画素からなり、前記参照画像第2フ
ィールドのサーチウインドウが、H行L列の画素からな
る動きベクトル探索方法であって、前記第1ディストー
ション算出ユニットおよび前記第2ディストーション算
出ユニットが、それぞれ(H−N+1)×(L−M+
1)個のプロセッサエレメントからなり、前記第2画素
データ転送保持ユニットが、(N−1)×(L−M+
1)個のサイドレジスタからなり、前記第1画素データ
転送保持ユニットおよび前記第3画素データ転送保持ユ
ニットが、それぞれ(N×2−1)×(L−M+1)個
のサイドレジスタからなることを特徴とする。
In order to solve the above-mentioned problems, the invention according to claim 6 is the motion vector search method according to claim 4, wherein H, L, N and M are each an integer, and the current image frame block is (N X2) row M columns of pixels, the current image first field block consists of N rows M columns of pixels, the current image second field block,
The search window of the reference image frame is composed of pixels of (H × 2 + 1) rows L columns, and the search window of the reference image first field is composed of pixels of H rows L columns. In a motion vector search method in which the search window of the second field of the reference image is composed of pixels of H rows and L columns, the first distortion calculation unit and the second distortion calculation unit are (H−N + 1), respectively. X (L-M +
1) consists of processor elements, and the second pixel data transfer holding unit is (N-1) * (L-M +).
1) Number of side registers, wherein the first pixel data transfer / holding unit and the third pixel data transfer / holding unit each include (N × 2-1) × (L−M + 1) side registers. Characterize.

【0040】請求項7記載の発明は、上記課題を解決す
るため、請求項5および6記載の動きベクトル探索方法
において、前記ウィンドウデータ転送工程が、前記サー
チウィンドウ内で隣り合う2つの画素列の画素データを
互いに列方向で逆方向に転送するよう、前記第1ディス
トーション算出ユニットおよび前記第2ディストーショ
ン算出ユニット内で入力画素データを列方向に往復移動
させながら前記転送経路に沿って転送することを特徴と
する。
In order to solve the above-mentioned problems, the invention according to claim 7 is the motion vector search method according to claims 5 and 6, wherein the window data transfer step includes two pixel columns adjacent to each other in the search window. Transferring the input pixel data along the transfer path while reciprocating in the column direction in the first distortion calculation unit and the second distortion calculation unit so that the pixel data are transferred in the column direction and in the opposite direction. Characterize.

【0041】請求項8記載の発明は、上記課題を解決す
るため、インタレース走査方式の動画像を部分的に構成
する現画像を、前記動画像を部分的に構成する参照画像
に基づいて予測するのに用いられる複数の動きベクトル
を探索する動きベクトル探索方法であり、前記現画像が
現画像フレームからなり、該現画像フレームが、現画像
第1フィールドおよび現画像第2フィールドを含むとと
もに、画素データをそれぞれ有する複数の画素により表
わされる現画像フレームブロックを含み、前記現画像第
1フィールドおよび前記現画像第2フィールドが、画素
データをそれぞれ有する複数の画素により表わされる現
画像フィールドブロックを含み、前記参照画像が参照画
像フレームからなり、該参照画像フレームが、参照画像
第1フィールドおよび参照画像第2フィールドを含むと
ともに、画素データをそれぞれ有する複数の画素により
表わされるサーチウインドウを含み、該サーチウインド
ウが、複数のフレーム候補ブロックを含み、前記参照画
像第1フィールドおよび前記参照画像第2フィールド
が、画素データをそれぞれ有する複数の画素により表わ
されるサーチウインドウを含み、該サーチウインドウ
が、複数のフィールド候補ブロックを含み、前記現画像
フレームブロックと前記各フレーム候補ブロックが同一
サイズであり、前記現画像フィールドブロックのそれぞ
れが、前記各フィールド候補ブロックのそれぞれと同一
サイズであり、前記複数の動きベクトルを探索する動き
ベクトル探索方法であって、前記現画像フィールドブロ
ックの画素データと、前記サーチウィンドウ内のフィー
ルド候補ブロックの画素データと、を準備する工程と、
前記現画像フィールドブロックの画素データと、前記サ
ーチウィンドウ内の各フィールド候補ブロックの画素デ
ータと、に基づいて、前記現画像フィールドブロックに
対し、該現画像フィールドブロックと前記各フィールド
候補ブロックとの間の画像の差を表わす複数のディスト
ーションを算出させるディストーション算出手段と、該
ディストーション算出手段によって算出された各現画像
フィールドブロックに対応するそれぞれのディストーシ
ョンのうちの最小のディストーションを検出して、該最
小のディストーションに対応するフィールド候補ブロッ
クを特定させるブロック特定手段と、前記現画像フィー
ルドブロックの画素データを前記ディストーション算出
手段に入力する現画像データ入力工程と、前記サーチウ
ィンドウのフィールド候補ブロックの画素データを前記
ディストーション算出手段に入力するウィンドウデータ
入力工程と、前記ディストーション算出手段によって算
出された前記ディストーションを前記ブロック特定手段
に入力するディストーション入力工程と、前記サーチウ
ィンドウ内の各フィールド候補ブロックの画素データ
を、前記ディストーション算出手段内で転送するウィン
ドウデータ転送工程と、を備え、前記ディストーション
算出手段が、前記サーチウィンドウ内の各フィールド候
補ブロックの画素データの一部を入力して保持するとと
もに、該保持したデータをそれぞれ転送する第1画素デ
ータ転送保持ユニットおよび第2画素データ転送保持ユ
ニットと、前記サーチウィンドウ内の各フィールド候補
ブロックの画素データの一部を入力して保持するととも
に、該保持したデータをそれぞれ転送し、前記現画像デ
ータ出力手段から入力される前記現画像フィールドブロ
ックの画素データと、前記参照画像データ出力手段から
入力される前記サーチウィンドウ内の各フィールド候補
ブロックの画素データと、に基づいて、前記現画像フィ
ールドブロックに対し、該現画像フィールドブロックと
前記各フィールド候補ブロックとの間の画像の差を表わ
す複数のディストーションをそれぞれ算出する第1ディ
ストーション算出ユニットおよび第2ディストーション
算出ユニットと、前記各フィールド候補ブロックの画素
データを、前記第1画素データ転送保持ユニット、前記
第1ディストーション算出ユニットおよび前記第2画素
データ転送保持ユニットの間で転送させる第1転送経路
と、前記各フィールド候補ブロックの画素データを、前
記第2画素データ転送保持ユニット、前記第2ディスト
ーション算出ユニットおよび前記第1画素データ転送保
持ユニットの間で転送させる第2転送経路と、を有する
ことを特徴とする。
In order to solve the above-mentioned problems, the present invention according to claim 8 predicts a current image partially forming a moving image of an interlace scanning system based on a reference image partially forming the moving image. Is a motion vector search method for searching a plurality of motion vectors used for performing the current image, wherein the current image includes a current image frame, and the current image frame includes a current image first field and a current image second field, A current image frame block represented by a plurality of pixels each having pixel data, wherein the current image first field and the current image second field include a current image field block represented by a plurality of pixels each having pixel data. , The reference image includes a reference image frame, and the reference image frame is a reference image first field and a reference image frame. And a reference image second field, and a search window represented by a plurality of pixels each having pixel data, the search window including a plurality of frame candidate blocks, the reference image first field and the reference image first field. The two fields include a search window represented by a plurality of pixels each having pixel data, the search window includes a plurality of field candidate blocks, and the current image frame block and each of the frame candidate blocks have the same size, A motion vector search method for searching each of the plurality of motion vectors, wherein each of the current image field blocks has the same size as each of the field candidate blocks, the pixel data of the current image field block, and the search win And pixel data in the field a candidate block within the window, a step of preparing a,
Between the current image field block and each of the field candidate blocks for the current image field block based on the pixel data of the current image field block and the pixel data of each field candidate block in the search window Distortion calculation means for calculating a plurality of distortions that represent differences in images, and a minimum distortion of the distortions corresponding to each current image field block calculated by the distortion calculation means is detected, and the minimum distortion is detected. Block specifying means for specifying a field candidate block corresponding to distortion, a current image data input step for inputting pixel data of the current image field block to the distortion calculating means, and a search window fee Window data input step of inputting pixel data of a candidate block to the distortion calculating means, a distortion input step of inputting the distortion calculated by the distortion calculating means to the block specifying means, and each field in the search window. Window data transfer step of transferring pixel data of a candidate block in the distortion calculating means, wherein the distortion calculating means inputs and holds a part of pixel data of each field candidate block in the search window. At the same time, the first pixel data transfer holding unit and the second pixel data transfer holding unit for transferring the held data respectively, and a part of the pixel data of each field candidate block in the search window are input. Pixel data of the current image field block input from the current image data output means and each field in the search window input from the reference image data output means A first distortion calculation for calculating, for each of the current image field blocks, a plurality of distortions representing image differences between the current image field block and each of the field candidate blocks based on pixel data of the candidate blocks. A unit and a second distortion calculating unit, and a pixel data of each of the field candidate blocks is transferred between the first pixel data transfer holding unit, the first distortion calculating unit and the second pixel data transfer holding unit. Transfer route and A second transfer path for transferring the pixel data of each of the field candidate blocks between the second pixel data transfer holding unit, the second distortion calculation unit, and the first pixel data transfer holding unit. Characterize.

【0042】請求項9記載の発明は、上記課題を解決す
るため、請求項8記載の動きベクトル探索方法におい
て、前記画素データの転送経路を切り換えるモード切り
換え手段を備え、前記ディストーション算出手段が、前
記各フィールド候補ブロックの画素データを、前記第1
画素データ転送保持ユニット、前記第1ディストーショ
ン算出ユニットおよび前記第2ディストーション算出ユ
ニットの間で転送させる第3転送経路を有し、前記モー
ド切り換え手段が、前記第1転送経路および前記第2転
送経路を選択する第1転送モードと、前記第3転送経路
を選択する第2転送モードと、を切り換えることを特徴
とする。
In order to solve the above-mentioned problems, the invention according to claim 9 is the motion vector search method according to claim 8, further comprising mode switching means for switching the transfer path of the pixel data, wherein the distortion calculation means The pixel data of each field candidate block is set to the first
It has a third transfer path for transferring between the pixel data transfer holding unit, the first distortion calculation unit and the second distortion calculation unit, and the mode switching means sets the first transfer path and the second transfer path. It is characterized in that a first transfer mode to be selected and a second transfer mode to select the third transfer path are switched.

【0043】請求項10記載の発明は、上記課題を解決
するため、請求項9記載の動きベクトル探索方法におい
て、前記現画像フレームブロックの画素データと、前記
サーチウィンドウ内のフレーム候補ブロックの画素デー
タと、を準備する工程を備え、前記モード切り換え手段
によって、第2転送モードが選択されたとき、前記現画
像データ入力工程が、前記現画像フレームブロックの画
素データを前記ディストーション算出手段に入力し、前
記ウィンドウデータ入力工程が、前記サーチウィンドウ
のフレーム候補ブロックの画素データを前記ディストー
ション算出手段に入力し、前記ウィンドウデータ転送工
程が、前記サーチウィンドウ内の各フレーム候補ブロッ
クの画素データを、前記第3転送経路に沿って転送し、
前記ディストーション算出手段が、前記現画像フレーム
ブロックの画素データと、前記サーチウィンドウ内の各
フレーム候補ブロックの画素データと、に基づいて、前
記現画像フレームブロックに対し、該現画像フレームブ
ロックと前記各フレーム候補ブロックとの間の画像の差
を表わす複数のディストーションを算出させることを特
徴とする。
In order to solve the above-mentioned problems, the invention according to claim 10 is the motion vector search method according to claim 9, wherein the pixel data of the current image frame block and the pixel data of the frame candidate block in the search window are used. And, when the second transfer mode is selected by the mode switching means, the current image data input step inputs pixel data of the current image frame block to the distortion calculation means, The window data input step inputs pixel data of a frame candidate block of the search window to the distortion calculating means, and the window data transfer step sets pixel data of each frame candidate block in the search window to the third Transfer along the transfer route,
The distortion calculation means, based on the pixel data of the current image frame block and the pixel data of each frame candidate block in the search window, with respect to the current image frame block, the current image frame block and each of the current image frame blocks. It is characterized in that a plurality of distortions representing the difference between the image and the frame candidate block are calculated.

【0044】請求項11記載の発明は、上記課題を解決
するため、請求項10記載の動きベクトル探索方法にお
いて、H,L,NおよびMをそれぞれ整数とし、前記現
画像フレームブロックが、(N×2)行M列の画素から
なり、前記現画像第1フィールドブロックが、N行M列
の画素からなり、前記現画像第2フィールドブロック
が、N行M列の画素からなるとともに、前記参照画像フ
レームのサーチウインドウが、(H×2)行L列の画素
からなり、前記参照画像第1フィールドのサーチウイン
ドウが、H行L列の画素からなり、前記参照画像第2フ
ィールドのサーチウインドウが、H行L列の画素からな
る動きベクトル探索方法であって、前記第1ディストー
ション算出ユニットおよび前記第2ディストーション算
出ユニットが、それぞれ(H−N+1)×(L−M+
1)個のプロセッサエレメントからなり、前記第1画素
データ転送保持ユニットが、2×(N−1)×(L−M
+1)個のサイドレジスタからなり、前記第2画素デー
タ転送保持ユニットが、(N−1)×(L−M+1)個
のサイドレジスタからなることを特徴とする。
In order to solve the above-mentioned problems, the invention according to claim 11 is the motion vector search method according to claim 10, wherein H, L, N and M are integers, and the current image frame block is (N X2) consists of pixels of row M columns, the current image first field block consists of pixels of N rows M columns, the current image second field block consists of pixels of N rows M columns, and the reference The search window of the image frame is composed of pixels of (H × 2) rows and L columns, the search window of the reference image first field is composed of pixels of H rows and L columns, and the search window of the reference image second field is , H rows and L columns of pixels, wherein the first distortion calculation unit and the second distortion calculation unit are respectively (H-N + 1) x (L-M +
1) number of processor elements, and the first pixel data transfer holding unit is 2 × (N−1) × (L−M
+1) side registers, and the second pixel data transfer holding unit is (N-1) * (L-M + 1) side registers.

【0045】請求項12記載の発明は、上記課題を解決
するため、請求項10記載の動きベクトル探索方法にお
いて、H,L,NおよびMをそれぞれ整数とし、前記現
画像フレームブロックが、(N×2)行M列の画素から
なり、前記現画像第1フィールドブロックが、N行M列
の画素からなり、前記現画像第2フィールドブロック
が、N行M列の画素からなるとともに、前記参照画像フ
レームのサーチウインドウが、(H×2+1)行L列の
画素からなり、前記参照画像第1フィールドのサーチウ
インドウが、H行L列の画素からなり、前記参照画像第
2フィールドのサーチウインドウが、H行L列の画素か
らなる動きベクトル探索方法であって、前記第1ディス
トーション算出ユニットおよび前記第2ディストーショ
ン算出ユニットが、それぞれ(H−N+1)×(L−M
+1)個のプロセッサエレメントからなり、前記第1画
素データ転送保持ユニットが、(N×2−1)×(L−
M+1)個のサイドレジスタからなり、前記第2画素デ
ータ転送保持ユニットが、(N−1)×(L−M+1)
個のサイドレジスタからなることを特徴とする。
In order to solve the above-mentioned problems, the invention according to claim 12 is the motion vector search method according to claim 10, wherein H, L, N and M are each an integer, and the current image frame block is (N X2) consists of pixels of row M columns, the current image first field block consists of pixels of N rows M columns, the current image second field block consists of pixels of N rows M columns, and the reference The search window of the image frame is composed of pixels of (H × 2 + 1) rows and L columns, the search window of the reference image first field is composed of pixels of H rows and L columns, and the search window of the reference image second field is , H rows and L columns of pixels, wherein the first distortion calculation unit and the second distortion calculation unit are Each (H-N + 1) x (L-M
+1) processor elements, and the first pixel data transfer holding unit is (N × 2-1) × (L−
M + 1) side registers, and the second pixel data transfer holding unit is (N−1) × (L−M + 1).
It is characterized by comprising side registers.

【0046】請求項13記載の発明は、上記課題を解決
するため、請求項11および12記載の動きベクトル探
索方法において、前記ウィンドウデータ転送工程が、前
記サーチウィンドウ内で隣り合う2つの画素列の画素デ
ータを互いに列方向で逆方向に転送させるよう、前記第
1ディストーション算出ユニットおよび前記第2ディス
トーション算出ユニット内で入力画素データを列方向に
往復移動させながら前記転送経路に沿って転送させるこ
とを特徴とする。
In order to solve the above-mentioned problems, the thirteenth aspect of the present invention is directed to the motion vector search method according to the eleventh and twelfth aspects, wherein the window data transfer step includes two pixel columns adjacent to each other in the search window. In order to transfer the pixel data in the column direction and in the opposite direction to each other, the input pixel data are transferred along the transfer path while reciprocating in the column direction in the first distortion calculation unit and the second distortion calculation unit. Characterize.

【0047】請求項14記載の発明は、上記課題を解決
するため、動画像を部分的に構成する現画像を、前記動
画像を部分的に構成する参照画像に基づいて予測する動
きベクトルを探索する動きベクトル探索装置であり、前
記現画像が、画素データをそれぞれ有する複数の画素に
より表わされる現画像ブロックを含み、前記参照画像
が、画素データをそれぞれ有する複数の画素により表わ
されるサーチウインドウを含み、該サーチウインドウが
複数の候補ブロックを含み、該現画像ブロックと該各候
補ブロックが同一サイズであり、前記現画像ブロックの
ブロック位置と該現画像ブロックに最も類似した候補ブ
ロックのブロック位置とによって特定される動きベクト
ルを探索する動きベクトル探索装置であって、前記現画
像ブロックの画素データを出力させる現画像データ出力
手段と、前記サーチウィンドウ内の候補ブロックの画素
データを出力させる参照画像データ出力手段と、前記参
照画像データ出力手段から入力される前記サーチウィン
ドウ内の各候補ブロックの画素データと、前記現画像デ
ータ出力手段から入力される前記現画像ブロックの画素
データと、に基づいて、前記現画像ブロックに対し、該
現画像ブロックと前記各候補ブロックとの間の画像の差
を表わす複数のディストーションを算出させるディスト
ーション算出手段と、前記ディストーション算出手段に
よって算出された現画像ブロックに対応する各ディスト
ーションのうちの最小のディストーションを検出して、
該最小のディストーションに対応する候補ブロックを特
定させるブロック特定手段と、前記現画像データ出力手
段から出力される前記現画像ブロックの画素データを前
記ディストーション算出手段に入力させる現画像データ
入力制御手段と、前記参照画像データ出力手段から出力
される前記サーチウィンドウの候補ブロックの画素デー
タを前記ディストーション算出手段に入力させるウィン
ドウデータ入力制御手段と、前記ディストーション算出
手段によって算出された前記ディストーションを前記ブ
ロック特定手段に入力させるディストーション入力制御
手段と、を備え、前記ディストーション算出手段が、そ
れぞれひとつの前記現画像ブロックと、該現画像ブロッ
クに対応する前記各候補ブロックとのディストーション
を算出する複数のディストーション算出ユニットを有
し、前記各ディストーション算出ユニットの一部が、他
の一つのディストーション算出ユニットの一部を共有す
ることを特徴とする。
In order to solve the above-mentioned problems, the present invention according to claim 14 searches for a motion vector for predicting a current image partially forming a moving image based on a reference image partially forming the moving image. In the motion vector search device, the current image includes a current image block represented by a plurality of pixels each having pixel data, and the reference image includes a search window represented by a plurality of pixels each having pixel data. , The search window includes a plurality of candidate blocks, the current image block and each of the candidate blocks have the same size, and the block position of the current image block and the block position of the candidate block most similar to the current image block A motion vector search device for searching for a specified motion vector, wherein the pixel data of the current image block is searched. Image data output means for outputting a pixel data of a candidate block in the search window, reference image data output means for outputting pixel data of the candidate block in the search window, and each candidate block in the search window input from the reference image data output means. An image difference between the current image block and each of the candidate blocks based on the pixel data and the pixel data of the current image block input from the current image data output means. And a distortion calculating means for calculating a plurality of distortions, and a minimum distortion among the distortions corresponding to the current image block calculated by the distortion calculating means is detected,
Block specifying means for specifying a candidate block corresponding to the minimum distortion, current image data input control means for inputting pixel data of the current image block output from the current image data output means to the distortion calculating means, Window data input control means for inputting pixel data of candidate blocks of the search window output from the reference image data output means to the distortion calculation means, and the distortion calculated by the distortion calculation means to the block identification means. Distortion input control means for inputting, and the distortion calculation means calculates the distortion between each of the one current image block and each of the candidate blocks corresponding to the current image block. It has Isutoshon calculation unit, wherein a portion of each distortion calculation unit, characterized by sharing some of the other one of the distortion calculating unit.

【0048】請求項15記載の発明は、上記課題を解決
するため、インタレース走査方式の動画像を部分的に構
成する現画像を、前記動画像を部分的に構成する参照画
像に基づいて予測するのに用いられる複数の動きベクト
ルを探索する動きベクトル探索装置であり、前記現画像
が現画像フレームからなり、該現画像フレームが、現画
像第1フィールドおよび現画像第2フィールドを含むと
ともに、画素データをそれぞれ有する複数の画素により
表わされる現画像フレームブロックを含み、前記現画像
第1フィールドおよび前記現画像第2フィールドが、画
素データをそれぞれ有する複数の画素により表わされる
現画像フィールドブロックを含み、前記参照画像が参照
画像フレームからなり、該参照画像フレームが、参照画
像第1フィールドおよび参照画像第2フィールドを含む
とともに、画素データをそれぞれ有する複数の画素によ
り表わされるサーチウインドウを含み、該サーチウイン
ドウが、複数のフレーム候補ブロックを含み、前記参照
画像第1フィールドおよび前記参照画像第2フィールド
が、画素データをそれぞれ有する複数の画素により表わ
されるサーチウインドウを含み、該サーチウインドウ
が、複数のフィールド候補ブロックを含み、前記現画像
フレームブロックと前記各フレーム候補ブロックが同一
サイズであり、前記現画像フィールドブロックのそれぞ
れが、前記各フィールド候補ブロックのそれぞれと同一
サイズであり、前記複数の動きベクトルを探索する動き
ベクトル探索装置であって、前記現画像フィールドブロ
ックの画素データを出力させる現画像データ出力手段
と、前記サーチウィンドウ内のフィールド候補ブロック
の画素データを出力させる参照画像データ出力手段と、
前記現画像データ出力手段から入力される前記現画像フ
ィールドブロックの画素データと、前記参照画像データ
出力手段から入力される前記サーチウィンドウ内の各フ
ィールド候補ブロックの画素データと、に基づいて、前
記現画像フィールドブロックに対し、該現画像フィール
ドブロックと前記各フィールド候補ブロックとの間の画
像の差を表わす複数のディストーションを算出させるデ
ィストーション算出手段と、該ディストーション算出手
段によって算出された各現画像フィールドブロックに対
応するそれぞれのディストーションのうちの最小のディ
ストーションを検出して、該最小のディストーションに
対応するフィールド候補ブロックを特定させるブロック
特定手段と、前記現画像データ出力手段から出力される
前記現画像フィールドブロックの画素データを前記ディ
ストーション算出手段に入力させる現画像データ入力制
御手段と、前記参照画像データ出力手段から出力される
前記サーチウィンドウのフィールド候補ブロックの画素
データを前記ディストーション算出手段に入力させるウ
ィンドウデータ入力制御手段と、前記ディストーション
算出手段によって算出された前記ディストーションを前
記ブロック特定手段に入力させるディストーション入力
制御手段と、前記サーチウィンドウ内の各フィールド候
補ブロックの画素データを、前記ディストーション算出
手段内で転送させるウィンドウデータ転送制御手段と、
を備え、前記ディストーション算出手段が、前記サーチ
ウィンドウ内の各フィールド候補ブロックの画素データ
の一部を入力して保持するとともに、該保持したデータ
をそれぞれ転送する第1画素データ転送保持ユニット、
第2画素データ転送保持ユニットおよび第3画素データ
転送保持ユニットと、前記サーチウィンドウ内の各フィ
ールド候補ブロックの画素データの一部を入力して保持
するとともに、該保持したデータをそれぞれ転送し、前
記現画像データ出力手段から入力される前記現画像フィ
ールドブロックの画素データと、前記参照画像データ出
力手段から入力される前記サーチウィンドウ内の各フィ
ールド候補ブロックの画素データと、に基づいて、前記
現画像フィールドブロックに対し、該現画像フィールド
ブロックと前記各フィールド候補ブロックとの間の画像
の差を表わす複数のディストーションをそれぞれ算出す
る第1ディストーション算出ユニットおよび第2ディス
トーション算出ユニットと、前記各フィールド候補ブロ
ックの画素データを、前記第1画素データ転送保持ユニ
ット、前記第1ディストーション算出ユニットおよび前
記第2画素データ転送保持ユニットの間で転送させる第
1転送経路と、前記各フィールド候補ブロックの画素デ
ータを、前記第2画素データ転送保持ユニット、前記第
2ディストーション算出ユニットおよび前記第3画素デ
ータ転送保持ユニットの間で転送させる第2転送経路
と、を有することを特徴とする。
According to a fifteenth aspect of the present invention, in order to solve the above problems, a current image partially forming a moving image of the interlaced scanning system is predicted based on a reference image partially forming the moving image. A motion vector search device for searching for a plurality of motion vectors used to perform the current image, wherein the current image includes a current image frame, and the current image frame includes a current image first field and a current image second field, A current image frame block represented by a plurality of pixels each having pixel data, wherein the current image first field and the current image second field include a current image field block represented by a plurality of pixels each having pixel data. , The reference image includes a reference image frame, and the reference image frame is a reference image first field. And a reference image second field, and a search window represented by a plurality of pixels each having pixel data, the search window including a plurality of frame candidate blocks, the reference image first field and the reference image first field. The two fields include a search window represented by a plurality of pixels each having pixel data, the search window includes a plurality of field candidate blocks, and the current image frame block and each of the frame candidate blocks have the same size, Each of the current image field blocks has the same size as each of the field candidate blocks, and is a motion vector search device that searches for the plurality of motion vectors, and outputs the pixel data of the current image field block. image And over data output means, the reference image data output means for outputting the pixel data in the field candidate block within the search window,
Based on the pixel data of the current image field block input from the current image data output means and the pixel data of each field candidate block in the search window input from the reference image data output means, For an image field block, distortion calculation means for calculating a plurality of distortions representing image differences between the current image field block and each field candidate block, and each current image field block calculated by the distortion calculation means Block identifying means for detecting the minimum distortion of the respective distortions corresponding to, and specifying the field candidate block corresponding to the minimum distortion, and the current image data output from the current image data output means. Current image data input control means for inputting pixel data of a pixel block to the distortion calculation means, and a window for inputting pixel data of field candidate blocks of the search window output from the reference image data output means to the distortion calculation means. Data input control means, distortion input control means for inputting the distortion calculated by the distortion calculation means to the block specifying means, and pixel data of each field candidate block in the search window are stored in the distortion calculation means. Window data transfer control means for transferring,
A first pixel data transfer holding unit for inputting and holding a part of pixel data of each field candidate block in the search window and transferring the held data, respectively.
The second pixel data transfer holding unit and the third pixel data transfer holding unit input and hold a part of the pixel data of each field candidate block in the search window, and transfer the held data respectively, The current image based on the pixel data of the current image field block input from the current image data output means and the pixel data of each field candidate block in the search window input from the reference image data output means. A first distortion calculating unit and a second distortion calculating unit for calculating a plurality of distortions representing image differences between the current image field block and each of the field candidate blocks, and each of the field candidate blocks Pixel data of A first transfer path for transferring between the first pixel data transfer / holding unit, the first distortion calculation unit and the second pixel data transfer / holding unit, and the pixel data of each field candidate block to the second pixel. A second transfer path for transferring between the data transfer holding unit, the second distortion calculation unit and the third pixel data transfer holding unit.

【0049】請求項16記載の発明は、上記課題を解決
するため、請求項15記載の動きベクトル探索装置にお
いて、前記画素データの転送経路を切り換えるモード切
り換え手段を備え、前記ディストーション算出手段が、
前記各フィールド候補ブロックの画素データを、前記第
1画素データ転送保持ユニット、前記第1ディストーシ
ョン算出ユニット、前記第2ディストーション算出ユニ
ットおよび前記第3画素データ転送保持ユニットの間で
転送させる第3転送経路を有し、前記モード切り換え手
段が、前記第1転送経路および前記第2転送経路を選択
する第1転送モードと、前記第3転送経路を選択する第
2転送モードと、を切り換えることを特徴とする。
In order to solve the above problems, the sixteenth aspect of the present invention provides a motion vector search apparatus according to the fifteenth aspect, further comprising mode switching means for switching the transfer path of the pixel data, and the distortion calculating means,
A third transfer path for transferring the pixel data of each field candidate block between the first pixel data transfer holding unit, the first distortion calculation unit, the second distortion calculation unit, and the third pixel data transfer holding unit. Wherein the mode switching means switches between a first transfer mode for selecting the first transfer path and the second transfer path and a second transfer mode for selecting the third transfer path. To do.

【0050】請求項17記載の発明は、上記課題を解決
するため、請求項16記載の動きベクトル探索装置にお
いて、前記モード切り換え手段によって、第2転送モー
ドが選択されたとき、前記現画像データ出力手段が、前
記現画像フレームブロックの画素データを出力させ、前
記参照画像データ出力手段が、前記サーチウィンドウ内
のフレーム候補ブロックの画素データを出力させ、前記
現画像データ入力制御手段が、前記現画像データ出力手
段から出力される前記現画像フレームブロックの画素デ
ータを前記ディストーション算出手段に入力させ、前記
ウィンドウデータ入力制御手段が、前記参照画像データ
出力手段から出力される前記サーチウィンドウのフレー
ム候補ブロックの画素データを前記ディストーション算
出手段に入力させ、前記ウィンドウデータ転送制御手段
が、前記サーチウィンドウ内の各フレーム候補ブロック
の画素データを、前記第3転送経路に沿って転送させ、
前記ディストーション算出手段が、前記現画像データ出
力手段から入力される前記現画像フレームブロックの画
素データと、前記参照画像データ出力手段から入力され
る前記サーチウィンドウ内の各フレーム候補ブロックの
画素データと、に基づいて、前記現画像フレームブロッ
クに対し、該現画像フレームブロックと前記各フレーム
候補ブロックとの間の画像の差を表わす複数のディスト
ーションを算出させることを特徴とする。
According to a seventeenth aspect of the present invention, in order to solve the above-mentioned problems, in the motion vector search device according to the sixteenth aspect, when the second transfer mode is selected by the mode switching means, the current image data output is performed. Means outputs the pixel data of the current image frame block, the reference image data output means outputs the pixel data of the frame candidate block in the search window, and the current image data input control means causes the current image to be output. Pixel data of the current image frame block output from the data output unit is input to the distortion calculation unit, and the window data input control unit outputs the frame candidate block of the search window output from the reference image data output unit. Input the pixel data to the distortion calculation means. The window data transfer control means, the pixel data of each frame candidate block within the search window, is transferred along the third transfer path,
The distortion calculation means, pixel data of the current image frame block input from the current image data output means, and pixel data of each frame candidate block in the search window input from the reference image data output means, A plurality of distortions representing the image difference between the current image frame block and the frame candidate blocks are calculated for the current image frame block.

【0051】請求項18記載の発明は、上記課題を解決
するため、請求項17記載の動きベクトル探索装置にお
いて、H,L,NおよびMをそれぞれ整数とし、前記現
画像フレームブロックが、(N×2)行M列の画素から
なり、前記現画像第1フィールドブロックが、N行M列
の画素からなり、前記現画像第2フィールドブロック
が、N行M列の画素からなるとともに、前記参照画像フ
レームのサーチウインドウが、(H×2)行L列の画素
からなり、前記参照画像第1フィールドのサーチウィン
ドウが、H行L列の画素からなり、前記参照画像第2フ
ィールドのサーチウィンドウが、H行L列の画素からな
る動きベクトル探索装置であって、前記第1ディストー
ション算出ユニットおよび前記第2ディストーション算
出ユニットが、それぞれ(H−N+1)×(L−M+
1)個のプロセッサエレメントからなり、前記第1画素
データ転送保持ユニットが、(N×2−1)×(L−M
+1)個のサイドレジスタからなり、前記第2画素デー
タ転送保持ユニットが、(N−1)×(L−M+1)個
のサイドレジスタからなり、前記第3画素データ転送保
持ユニットが、2×(N−1)×(L−M+1)個のサ
イドレジスタからなることを特徴とする。
In order to solve the above problems, the eighteenth aspect of the present invention provides a motion vector search apparatus according to the seventeenth aspect, wherein H, L, N and M are integers, and the current image frame block is (N X2) consists of pixels of row M columns, the current image first field block consists of pixels of N rows M columns, the current image second field block consists of pixels of N rows M columns, and the reference The search window of the image frame is composed of pixels of (H × 2) rows and L columns, the search window of the reference image first field is composed of pixels of H rows and L columns, and the search window of the reference image second field is , H rows and L columns of pixels, wherein the first distortion calculation unit and the second distortion calculation unit are respectively (H-N + 1) x (L-M +
1) number of processor elements, wherein the first pixel data transfer holding unit is (N × 2-1) × (LM)
+1) side registers, the second pixel data transfer holding unit is (N-1) × (L-M + 1) side registers, and the third pixel data transfer holding unit is 2 × ( It is characterized by comprising N−1) × (L−M + 1) side registers.

【0052】請求項19記載の発明は、上記課題を解決
するため、請求項17記載の動きベクトル探索装置にお
いて、H,L,NおよびMをそれぞれ整数とし、前記現
画像フレームブロックが、(N×2)行M列の画素から
なり、前記現画像第1フィールドブロックが、N行M列
の画素からなり、前記現画像第2フィールドブロック
が、N行M列の画素からなるとともに、前記参照画像フ
レームのサーチウインドウが、(H×2+1)行L列の
画素からなり、前記参照画像第1フィールドのサーチウ
ィンドウが、H行L列の画素からなり、前記参照画像第
2フィールドのサーチウィンドウが、H行L列の画素か
らなる動きベクトル探索装置であって、前記第1ディス
トーション算出ユニットおよび前記第2ディストーショ
ン算出ユニットが、それぞれ(H−N+1)×(L−M
+1)個のプロセッサエレメントからなり、前記第2画
素データ転送保持ユニットが、(N−1)×(L−M+
1)個のサイドレジスタからなり、前記第1画素データ
転送保持ユニットおよび前記第3画素データ転送保持ユ
ニットが、それぞれ(N×2−1)×(L−M+1)個
のサイドレジスタからなることを特徴とする。
In order to solve the above problems, the nineteenth aspect of the present invention provides a motion vector search apparatus according to the seventeenth aspect, wherein H, L, N and M are integers and the current image frame block is (N X2) consists of pixels of row M columns, the current image first field block consists of pixels of N rows M columns, the current image second field block consists of pixels of N rows M columns, and the reference The search window of the image frame is composed of pixels of (H × 2 + 1) rows and L columns, the search window of the reference image first field is composed of pixels of H rows and L columns, and the search window of the reference image second field is , H rows and L columns of pixels, wherein the first distortion calculation unit and the second distortion calculation unit are Each (H-N + 1) x (L-M
+1) processor elements, and the second pixel data transfer holding unit is (N−1) × (L−M +
1) Number of side registers, wherein the first pixel data transfer / holding unit and the third pixel data transfer / holding unit each include (N × 2-1) × (L−M + 1) side registers. Characterize.

【0053】請求項20記載の発明は、上記課題を解決
するため、請求項18および19記載の動きベクトル探
索装置において、前記ウィンドウデータ転送制御手段
が、前記サーチウィンドウ内で隣り合う2つの画素列の
画素データを互いに列方向で逆方向に転送させるよう、
前記第1ディストーション算出ユニットおよび前記第2
ディストーション算出ユニット内で入力画素データを列
方向に往復移動させながら前記転送経路に沿って転送さ
せることを特徴とする。
In order to solve the above-mentioned problems, the invention according to claim 20 is the motion vector search device according to claims 18 and 19, wherein the window data transfer control means has two pixel columns adjacent to each other in the search window. So that the pixel data of is transferred in the opposite direction in the column direction,
The first distortion calculation unit and the second
It is characterized in that the input pixel data is transferred along the transfer path while reciprocating in the column direction in the distortion calculation unit.

【0054】請求項21記載の発明は、上記課題を解決
するため、請求項18および19記載の動きベクトル探
索装置において、前記ディストーション算出ユニットの
前記プロセッサエレメントが、二次元的に配列されたシ
ストリックアレー構造の演算回路によって構成されるこ
とを特徴とする。
The invention described in claim 21 is to solve the above-mentioned problems. In the motion vector search device according to claims 18 and 19, the processor elements of the distortion calculation unit are two-dimensionally arranged systolic. It is characterized by being configured by an arithmetic circuit having an array structure.

【0055】請求項22記載の発明は、上記課題を解決
するため、インタレース走査方式の動画像を部分的に構
成する現画像を、前記動画像を部分的に構成する参照画
像に基づいて予測するのに用いられる複数の動きベクト
ルを探索する動きベクトル探索装置であり、前記現画像
が現画像フレームからなり、該現画像フレームが、現画
像第1フィールドおよび現画像第2フィールドを含むと
ともに、画素データをそれぞれ有する複数の画素により
表わされる現画像フレームブロックを含み、前記現画像
第1フィールドおよび前記現画像第2フィールドが、画
素データをそれぞれ有する複数の画素により表わされる
現画像フィールドブロックを含み、前記参照画像が参照
画像フレームからなり、該参照画像フレームが、参照画
像第1フィールドおよび参照画像第2フィールドを含む
とともに、画素データをそれぞれ有する複数の画素によ
り表わされるサーチウインドウを含み、該サーチウイン
ドウが、複数のフレーム候補ブロックを含み、前記参照
画像第1フィールドおよび前記参照画像第2フィールド
が、画素データをそれぞれ有する複数の画素により表わ
されるサーチウィンドウを含み、該サーチウインドウ
が、複数のフィールド候補ブロックを含み、前記現画像
フレームブロックと前記各フレーム候補ブロックが同一
サイズであり、前記現画像フィールドブロックのそれぞ
れが、前記各フィールド候補ブロックのそれぞれと同一
サイズであり、前記複数の動きベクトルを探索する動き
ベクトル探索装置であって、前記現画像フィールドブロ
ックの画素データを出力させる現画像データ出力手段
と、前記サーチウィンドウ内のフィールド候補ブロック
の画素データを出力させる参照画像データ出力手段と、
前記現画像データ出力手段から入力される前記現画像フ
ィールドブロックの画素データと、前記参照画像データ
出力手段から入力される前記サーチウィンドウ内の各フ
ィールド候補ブロックの画素データと、に基づいて、前
記現画像フィールドブロックに対し、該現画像フィール
ドブロックと前記各フィールド候補ブロックとの間の画
像の差を表わす複数のディストーションを算出させるデ
ィストーション算出手段と、該ディストーション算出手
段によって算出された各現画像フィールドブロックに対
応するそれぞれのディストーションのうちの最小のディ
ストーションを検出して、該最小のディストーションに
対応するフィールド候補ブロックを特定させるブロック
特定手段と、前記現画像データ出力手段から出力される
前記現画像フィールドブロックの画素データを前記ディ
ストーション算出手段に入力させる現画像データ入力制
御手段と、前記参照画像データ出力手段から出力される
前記サーチウィンドウのフィールド候補ブロックの画素
データを前記ディストーション算出手段に入力させるウ
ィンドウデータ入力制御手段と、前記ディストーション
算出手段によって算出された前記ディストーションを前
記ブロック特定手段に入力させるディストーション入力
制御手段と、前記サーチウィンドウ内の各フィールド候
補ブロックの画素データを、前記ディストーション算出
手段内で転送させるウィンドウデータ転送制御手段と、
を備え、前記ディストーション算出手段が、前記サーチ
ウィンドウ内の各フィールド候補ブロックの画素データ
の一部を入力して保持するとともに、該保持したデータ
をそれぞれ転送する第1画素データ転送保持ユニットお
よび第2画素データ転送保持ユニットと、前記サーチウ
ィンドウ内の各フィールド候補ブロックの画素データの
一部を入力して保持するとともに、該保持したデータを
それぞれ転送し、前記現画像データ出力手段から入力さ
れる前記現画像フィールドブロックの画素データと、前
記参照画像データ出力手段から入力される前記サーチウ
ィンドウ内の各フィールド候補ブロックの画素データ
と、に基づいて、前記現画像フィールドブロックに対
し、該現画像フィールドブロックと前記各フィールド候
補ブロックとの間の画像の差を表わす複数のディストー
ションをそれぞれ算出する第1ディストーション算出ユ
ニットおよび第2ディストーション算出ユニットと、前
記各フィールド候補ブロックの画素データを、前記第1
画素データ転送保持ユニット、前記第1ディストーショ
ン算出ユニットおよび前記第2画素データ転送保持ユニ
ットの間で転送させる第1転送経路と、前記各フィール
ド候補ブロックの画素データを、前記第2画素データ転
送保持ユニット、前記第2ディストーション算出ユニッ
トおよび前記第1画素データ転送保持ユニットの間で転
送させる第2転送経路と、を有することを特徴とする。
In order to solve the above-mentioned problems, the present invention according to claim 22 predicts a current image partially forming a moving image of an interlaced scanning system based on a reference image partially forming the moving image. A motion vector search device for searching for a plurality of motion vectors used to perform the current image, wherein the current image includes a current image frame, and the current image frame includes a current image first field and a current image second field, A current image frame block represented by a plurality of pixels each having pixel data, wherein the current image first field and the current image second field include a current image field block represented by a plurality of pixels each having pixel data. , The reference image includes a reference image frame, and the reference image frame is a reference image first field. And a reference image second field, and a search window represented by a plurality of pixels each having pixel data, the search window including a plurality of frame candidate blocks, the reference image first field and the reference image first field. The two fields include a search window represented by a plurality of pixels each having pixel data, the search window includes a plurality of field candidate blocks, and the current image frame block and each of the frame candidate blocks have the same size, Each of the current image field blocks has the same size as each of the field candidate blocks, and is a motion vector search device that searches for the plurality of motion vectors, and outputs the pixel data of the current image field block. image And over data output means, the reference image data output means for outputting the pixel data in the field candidate block within the search window,
Based on the pixel data of the current image field block input from the current image data output means and the pixel data of each field candidate block in the search window input from the reference image data output means, For an image field block, distortion calculation means for calculating a plurality of distortions representing image differences between the current image field block and each field candidate block, and each current image field block calculated by the distortion calculation means Block identifying means for detecting the minimum distortion of the respective distortions corresponding to, and specifying the field candidate block corresponding to the minimum distortion, and the current image data output from the current image data output means. Current image data input control means for inputting pixel data of a pixel block to the distortion calculation means, and a window for inputting pixel data of field candidate blocks of the search window output from the reference image data output means to the distortion calculation means. Data input control means, distortion input control means for inputting the distortion calculated by the distortion calculation means to the block specifying means, and pixel data of each field candidate block in the search window are stored in the distortion calculation means. Window data transfer control means for transferring,
The distortion calculating means inputs and holds a part of the pixel data of each field candidate block in the search window, and transfers the held data respectively; a first pixel data transfer holding unit and a second pixel data transfer holding unit. The pixel data transfer holding unit inputs and holds a part of the pixel data of each field candidate block in the search window, transfers the held data, and inputs the current image data output unit. On the basis of the pixel data of the current image field block and the pixel data of each field candidate block in the search window input from the reference image data output means, the current image field block is compared with the current image field block. Between each field candidate block and A first distortion calculating unit and the second distortion calculating unit for calculating a plurality of distortion of representing the difference between the pixel data of each field candidate block, the first
A first transfer path for transferring between the pixel data transfer holding unit, the first distortion calculation unit, and the second pixel data transfer holding unit, and the pixel data of each field candidate block, the second pixel data transfer holding unit. A second transfer path for transferring between the second distortion calculation unit and the first pixel data transfer holding unit.

【0056】請求項23記載の発明は、上記課題を解決
するため、請求項22記載の動きベクトル探索装置にお
いて、前記画素データの転送経路を切り換えるモード切
り換え手段を備え、前記ディストーション算出手段が、
前記各フィールド候補ブロックの画素データを、前記第
1画素データ転送保持ユニット、前記第1ディストーシ
ョン算出ユニットおよび前記第2ディストーション算出
ユニットの間で転送させる第3転送経路を有し、前記モ
ード切り換え手段が、前記第1転送経路および前記第2
転送経路を選択する第1転送モードと、前記第3転送経
路を選択する第2転送モードと、を切り換えることを特
徴とする。
In order to solve the above-mentioned problems, the twenty-third aspect of the present invention is a motion vector search apparatus according to the twenty-second aspect, further comprising mode switching means for switching the transfer path of the pixel data, and the distortion calculation means,
The mode switching means has a third transfer path for transferring the pixel data of each field candidate block between the first pixel data transfer holding unit, the first distortion calculation unit, and the second distortion calculation unit. , The first transfer path and the second
It is characterized in that a first transfer mode for selecting a transfer path and a second transfer mode for selecting the third transfer path are switched.

【0057】請求項24記載の発明は、上記課題を解決
するため、請求項23記載の動きベクトル探索装置にお
いて、前記モード切り換え手段によって、第2転送モー
ドが選択されたとき、前記現画像データ出力手段が、前
記現画像フレームブロックの画素データを出力させ、前
記参照画像データ出力手段が、前記サーチウィンドウ内
のフレーム候補ブロックの画素データを出力させ、前記
現画像データ入力制御手段が、前記現画像データ出力手
段から出力される前記現画像フレームブロックの画素デ
ータを前記ディストーション算出手段に入力させ、前記
ウィンドウデータ入力制御手段が、前記参照画像データ
出力手段から出力される前記サーチウィンドウのフレー
ム候補ブロックの画素データを前記ディストーション算
出手段に入力させ、前記ウィンドウデータ転送制御手段
が、前記サーチウィンドウ内の各フレーム候補ブロック
の画素データを、前記第3転送経路に沿って転送させ、
前記ディストーション算出手段が、前記現画像データ出
力手段から入力される前記現画像フレームブロックの画
素データと、前記参照画像データ出力手段から入力され
る前記サーチウィンドウ内の各フレーム候補ブロックの
画素データと、に基づいて、前記現画像フレームブロッ
クに対し、該現画像フレームブロックと前記各フレーム
候補ブロックとの間の画像の差を表わす複数のディスト
ーションを算出させることを特徴とする。
According to a twenty-fourth aspect of the present invention, in order to solve the above-mentioned problems, in the motion vector search apparatus according to the twenty-third aspect, when the second transfer mode is selected by the mode switching means, the current image data output is performed. Means outputs the pixel data of the current image frame block, the reference image data output means outputs the pixel data of the frame candidate block in the search window, and the current image data input control means causes the current image to be output. Pixel data of the current image frame block output from the data output unit is input to the distortion calculation unit, and the window data input control unit outputs the frame candidate block of the search window output from the reference image data output unit. Input the pixel data to the distortion calculation means. The window data transfer control means, the pixel data of each frame candidate block within the search window, is transferred along the third transfer path,
The distortion calculation means, pixel data of the current image frame block input from the current image data output means, and pixel data of each frame candidate block in the search window input from the reference image data output means, A plurality of distortions representing the image difference between the current image frame block and the frame candidate blocks are calculated for the current image frame block.

【0058】請求項25記載の発明は、上記課題を解決
するため、請求項24記載の動きベクトル探索装置にお
いて、H,L,NおよびMをそれぞれ整数とし、前記現
画像フレームブロックが、(N×2)行M列の画素から
なり、前記現画像第1フィールドブロックが、N行M列
の画素からなり、前記現画像第2フィールドブロック
が、N行M列の画素からなるとともに、前記参照画像フ
レームのサーチウインドウが、(H×2)行L列の画素
からなり、前記参照画像第1フィールドのサーチウイン
ドウが、H行L列の画素からなり、前記参照画像第2フ
ィールドのサーチウインドウが、H行L列の画素からな
る動きベクトル探索装置であって、前記第1ディストー
ション算出ユニットおよび前記第2ディストーション算
出ユニットが、それぞれ(H−N+1)×(L−M+
1)個のプロセッサエレメントからなり、前記第1画素
データ転送保持ユニットが、2×(N−1)×(L−M
+1)個のサイドレジスタからなり、前記第2画素デー
タ転送保持ユニットが、(N−1)×(L−M+1)個
のサイドレジスタからなることを特徴とする。
In order to solve the above-mentioned problems, the twenty-fifth aspect of the present invention provides a motion vector search apparatus according to the twenty-fourth aspect, wherein H, L, N and M are integers, and the current image frame block is (N X2) consists of pixels of row M columns, the current image first field block consists of pixels of N rows M columns, the current image second field block consists of pixels of N rows M columns, and the reference The search window of the image frame is composed of pixels of (H × 2) rows and L columns, the search window of the reference image first field is composed of pixels of H rows and L columns, and the search window of the reference image second field is , H rows and L columns of pixels, wherein the first distortion calculation unit and the second distortion calculation unit are respectively (H-N + 1) x (L-M +
1) number of processor elements, and the first pixel data transfer holding unit is 2 × (N−1) × (L−M
+1) side registers, and the second pixel data transfer holding unit is (N-1) * (L-M + 1) side registers.

【0059】請求項26記載の発明は、上記課題を解決
するため、請求項24記載の動きベクトル探索装置にお
いて、H,L,NおよびMをそれぞれ整数とし、前記現
画像フレームブロックが、(N×2)行M列の画素から
なり、前記現画像第1フィールドブロックが、N行M列
の画素からなり、前記現画像第2フィールドブロック
が、N行M列の画素からなるとともに、前記参照画像フ
レームのサーチウインドウが、(H×2+1)行L列の
画素からなり、前記参照画像第1フィールドのサーチウ
インドウが、H行L列の画素からなり、前記参照画像第
2フィールドのサーチウインドウが、H行L列の画素か
らなる動きベクトル探索装置であって、前記第1ディス
トーション算出ユニットおよび前記第2ディストーショ
ン算出ユニットが、それぞれ(H−N+1)×(L−M
+1)個のプロセッサエレメントからなり、前記第1画
素データ転送保持ユニットが、(N×2−1)×(L−
M+1)個のサイドレジスタからなり、前記第2画素デ
ータ転送保持ユニットが、(N−1)×(L−M+1)
個のサイドレジスタからなることを特徴とする。
In order to solve the above-mentioned problems, the twenty-sixth aspect of the present invention is, in the motion vector search apparatus of the twenty-fourth aspect, H, L, N and M are integers, respectively, and the current image frame block is (N X2) consists of pixels of row M columns, the current image first field block consists of pixels of N rows M columns, the current image second field block consists of pixels of N rows M columns, and the reference The search window of the image frame is composed of pixels of (H × 2 + 1) rows and L columns, the search window of the reference image first field is composed of pixels of H rows and L columns, and the search window of the reference image second field is , H rows and L columns of pixels, wherein the first distortion calculation unit and the second distortion calculation unit are Each (H-N + 1) x (L-M
+1) processor elements, and the first pixel data transfer holding unit is (N × 2-1) × (L−
M + 1) side registers, and the second pixel data transfer holding unit is (N−1) × (L−M + 1).
It is characterized by comprising side registers.

【0060】請求項27記載の発明は、上記課題を解決
するため、請求項25および26記載の動きベクトル探
索装置において、前記ウィンドウデータ転送制御手段
が、前記サーチウィンドウ内で隣り合う2つの画素列の
画素データを互いに列方向で逆方向に転送させるよう、
前記第1ディストーション算出ユニットおよび前記第2
ディストーション算出ユニット内で入力画素データを列
方向に往復移動させながら前記転送経路に沿って転送さ
せることを特徴とする。
The invention described in Item 27 is to solve the above-mentioned problems. In the motion vector search device according to Items 25 and 26, the window data transfer control means has two pixel columns adjacent to each other in the search window. So that the pixel data of is transferred in the opposite direction in the column direction,
The first distortion calculation unit and the second
It is characterized in that the input pixel data is transferred along the transfer path while reciprocating in the column direction in the distortion calculation unit.

【0061】請求項28記載の発明は、上記課題を解決
するため、請求項25および26記載の動きベクトル探
索装置において、前記ディストーション算出ユニットの
前記プロセッサエレメントが、二次元的に配列されたシ
ストリックアレー構造の演算回路によって構成されるこ
とを特徴とする動きベクトル探索装置。
The invention described in Item 28 is to solve the above-mentioned problems. A motion vector search device comprising an arithmetic circuit having an array structure.

【0062】[0062]

【発明の実施の形態】本発明に係る動きベクトル探索装
置は、図1に示すように、現画像データ出力手段10、
参照画像データ出力手段20、ディストーション算出手
段30、ブロック特定手段60、現画像データ入力制御
手段81、ウィンドウデータ入力制御手段82、ウィン
ドウデータ転送制御手段83、ディストーション入力制
御手段84およびモード切り換え手段85を備えてい
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A motion vector search device according to the present invention, as shown in FIG.
Reference image data output means 20, distortion calculation means 30, block identification means 60, current image data input control means 81, window data input control means 82, window data transfer control means 83, distortion input control means 84, and mode switching means 85 Have.

【0063】現画像データ出力手段10は、現画像ブロ
ックの画素データを出力させるものである。参照画像デ
ータ出力手段20は、サーチウィンドウの画素データを
出力させるものである。ディストーション算出手段30
は、第1ディストーション算出ユニット32、第2ディ
ストーション算出ユニット34、第1画素データ転送保
持ユニット31、第2画素データ転送保持ユニット33
および第3画素データ転送保持ユニット35を有し、現
画像データ出力手段10から出力された現画像ブロック
の画素データと参照画像データ出力手段20から出力さ
れたサーチウィンドウの画素データとに基づいて、現画
像ブロックと複数の候補ブロックとの間の画像の差を表
わすディストーションをそれぞれ算出させるものであ
る。
The current image data output means 10 outputs the pixel data of the current image block. The reference image data output means 20 outputs the pixel data of the search window. Distortion calculating means 30
Are a first distortion calculation unit 32, a second distortion calculation unit 34, a first pixel data transfer holding unit 31, and a second pixel data transfer holding unit 33
And a third pixel data transfer holding unit 35, and based on the pixel data of the current image block output from the current image data output means 10 and the pixel data of the search window output from the reference image data output means 20, Distortions representing image differences between the current image block and a plurality of candidate blocks are calculated.

【0064】現画像データ入力制御手段81は、現画像
データ出力手段10から出力される現画像ブロックの画
素データをディストーション算出手段30に入力させる
ものである。ウィンドウデータ入力制御手段82は、参
照画像データ出力手段20から出力されたサーチウィン
ドウの画素データをディストーション算出手段30に入
力させるものである。
The current image data input control means 81 causes the pixel data of the current image block output from the current image data output means 10 to be input to the distortion calculation means 30. The window data input control means 82 causes the pixel data of the search window output from the reference image data output means 20 to be input to the distortion calculation means 30.

【0065】ウィンドウデータ転送制御手段83は、サ
ーチウィンドウの画素データをディストーション算出手
段30内で転送経路に沿って転送させるものである。デ
ィストーション入力制御手段84は、ディストーション
算出手段30によって算出された各ディストーションを
ブロック特定手段60に入力させるものである。
The window data transfer control means 83 transfers the pixel data of the search window in the distortion calculating means 30 along the transfer path. The distortion input control means 84 causes each of the distortions calculated by the distortion calculation means 30 to be input to the block specifying means 60.

【0066】モード切り換え手段85は、参照画像デー
タ出力手段20から入力されるサーチウィンドウデータ
の画素データの転送経路を、第1転送経路および第2転
送経路を選択する第1転送モードと、第3転送経路を選
択する第2転送モードと、を選択して切り換えるもので
ある。ここで、第1転送経路とは、第1画素データ転送
保持ユニット31、第1ディストーション算出ユニット
32および第2画素データ転送保持ユニット33の間で
サーチウィンドウの画素データを転送する経路であり、
第2転送経路とは、第2画素データ転送保持ユニット3
3、第2ディストーション算出ユニット34および第3
画素データ転送保持ユニット35の間でサーチウィンド
ウの画素データを転送する経路であり、第3転送経路と
は、第1画素データ転送保持ユニット31、第1ディス
トーション算出ユニット32、第2ディストーション算
出ユニット34および第3画素データ転送保持ユニット
35の間でサーチウィンドウの画素データを転送する経
路である。
The mode switching means 85 selects the first transfer path and the second transfer path as the transfer path of the pixel data of the search window data input from the reference image data output means 20, and the third transfer mode. A second transfer mode for selecting a transfer path is selected and switched. Here, the first transfer path is a path for transferring the pixel data of the search window among the first pixel data transfer holding unit 31, the first distortion calculation unit 32, and the second pixel data transfer holding unit 33.
The second transfer path is the second pixel data transfer holding unit 3
3, the second distortion calculating unit 34 and the third
The path for transferring the pixel data of the search window between the pixel data transfer and holding units 35 is a third transfer path. The first transfer path includes the first pixel data transfer and holding unit 31, the first distortion calculation unit 32, and the second distortion calculation unit 34. And a path for transferring the pixel data of the search window between the third pixel data transfer and holding unit 35.

【0067】ブロック特定手段60は、各現画像ブロッ
クに対し算出された複数のディストーションの値のうち
の最小値をそれぞれ検出して、現画像ブロックに対して
最も類似する1つの候補ブロックを特定するものであ
る。ここで、図2に、動きベクトル探索の対象となる現
画像ブロックとフィールド候補ブロックの関係を示す。
参照画像200は、現画像100よりも先に符号化され
たものである。現画像100は、現画像ブロック110
を含み、参照画像200は、サーチウィンドウ210を
含み、さらに、候補ブロック310を含む。動きベクト
ル探索装置は、現画像ブロック110と、サーチウィン
ドウ210内の任意の候補ブロック310とを比較し、
画像の差を表すディストーションをそれぞれ算出する。
上記のディストーションの中で、最も小さいディストー
ションを求め、そのディストーションを持つ候補ブロッ
ク310の位置と、現画像ブロック110の位置とによ
って動きベクトルを求める。
The block specifying means 60 detects the minimum value among the plurality of distortion values calculated for each current image block, and specifies one candidate block that is most similar to the current image block. It is a thing. Here, FIG. 2 shows the relationship between the current image block that is the target of the motion vector search and the field candidate block.
The reference image 200 has been encoded earlier than the current image 100. The current image 100 is the current image block 110.
, The reference image 200 includes a search window 210, and further includes a candidate block 310. The motion vector search device compares the current image block 110 with any candidate block 310 in the search window 210,
Distortions representing image differences are calculated respectively.
Among the above distortions, the smallest distortion is obtained, and the motion vector is obtained from the position of the candidate block 310 having that distortion and the position of the current image block 110.

【0068】以下、図3に示す現画像ブロックと参照画
像ブロックについての動きベクトル探索について説明す
る。図3に示すa1(x,y)は現画像第1フィールド
の画素データを表し、a2(x,y)は現画像第2フィ
ールドの画素データを表し、a1(x,y)とa2
(x,y)を合わせて現画像フレームの画素データを表
す。b1(x,y)は参照画像第1フィールドの画素デ
ータを表し、b2(x,y)は参照画像第2フィールド
の画素データを表し、b1(x,y)とb2(x,y)
を合わせて参照画像フレームの画素データを表す。
The motion vector search for the current image block and the reference image block shown in FIG. 3 will be described below. In FIG. 3, a1 (x, y) represents pixel data of the first field of the current image, a2 (x, y) represents pixel data of the second field of the current image, and a1 (x, y) and a2
(X, y) together represents the pixel data of the current image frame. b1 (x, y) represents pixel data of the first field of the reference image, b2 (x, y) represents pixel data of the second field of the reference image, and b1 (x, y) and b2 (x, y).
Together represent pixel data of the reference image frame.

【0069】動きベクトル探索装置は、モード切り換え
手段85によって第1モードが選択されたとき、ウィン
ドウデータ入力制御手段82によって、参照画像第1フ
ィールドおよび参照画像第2フィールドのフィールド候
補ブロックの画素データは、参照画像データ出力手段2
0から出力され、ディストーション算出手段30に入力
される。また、現画像データ入力制御手段81によっ
て、現画像第1フィールドおよび現画像第2フィールド
の現画像フィールドブロックの画素データは、現画像デ
ータ出力手段10から出力され、ディストーション算出
手段30に入力される。
In the motion vector search apparatus, when the first mode is selected by the mode switching means 85, the pixel data of the field candidate blocks of the reference image first field and the reference image second field are controlled by the window data input control means 82. , Reference image data output means 2
It is output from 0 and input to the distortion calculating means 30. Further, the current image data input control means 81 outputs the pixel data of the current image field block of the current image first field and the current image second field from the current image data output means 10 and the distortion calculation means 30. .

【0070】ディストーション算出手段30に入力され
た参照画像第1フィールドのフィールド候補ブロックの
画素データは、ウィンドウデータ転送制御手段83によ
って第1転送経路に沿って転送され、第1ディストーシ
ョン算出ユニット32によってフィールド候補ブロック
ごとに現画像第1フィールドの現画像フィールドブロッ
クとのディストーションが算出される。ディストーショ
ン算出手段30に入力された参照画像第2フィールドの
フィールド候補ブロックの画素データは、ウィンドウデ
ータ転送制御手段83によって第2転送経路に沿って転
送され、第2ディストーション算出ユニット34によっ
てフィールド候補ブロックごとに現画像第2フィールド
の現画像フィールドブロックとのディストーションが算
出される。
The pixel data of the field candidate block of the first field of the reference image input to the distortion calculation means 30 is transferred along the first transfer path by the window data transfer control means 83, and the field data is transferred by the first distortion calculation unit 32. The distortion of the first field of the current image with respect to the current image field block is calculated for each candidate block. The pixel data of the field candidate block of the second field of the reference image input to the distortion calculation means 30 is transferred along the second transfer path by the window data transfer control means 83, and each field candidate block is transferred by the second distortion calculation unit 34. Then, the distortion of the second field of the current image with the current image field block is calculated.

【0071】第1ディストーション算出ユニット32お
よび第2ディストーション算出ユニット34によって算
出されたディストーションは、ディストーション入力制
御手段84によってブロック特定手段60に入力され
る。ディストーション入力制御手段84によって入力さ
れたディストーションは、ブロック特定手段60によっ
て現画像フィールドブロックの対象ごとに最小値が検出
され、ディストーションが最小値となるフィールド候補
ブロックが特定され、特定されたフィールド候補ブロッ
クの位置と、現画像フィールドブロックの位置とによっ
て動きベクトルが算出される。
The distortion calculated by the first distortion calculating unit 32 and the second distortion calculating unit 34 is input to the block specifying unit 60 by the distortion input control unit 84. The minimum value of the distortion input by the distortion input control unit 84 is detected by the block specifying unit 60 for each target of the current image field block, the field candidate block having the minimum distortion is specified, and the specified field candidate block is specified. And the position of the current image field block, the motion vector is calculated.

【0072】モード切り換え手段85によって第2モー
ドが選択されたとき、ウィンドウデータ入力制御手段8
2によって、参照画像フレームのフレーム候補ブロック
の画素データは、参照画像データ出力手段20から出力
され、ディストーション算出手段30に入力される。ま
た、現画像データ入力制御手段81によって、現画像フ
レームの現画像フレームブロックの画素データは、現画
像データ出力手段10から出力され、ディストーション
算出手段30に入力される。
When the second mode is selected by the mode switching means 85, the window data input control means 8
According to 2, the pixel data of the frame candidate block of the reference image frame is output from the reference image data output unit 20 and input to the distortion calculation unit 30. Further, the pixel data of the current image frame block of the current image frame is output from the current image data output unit 10 and input to the distortion calculation unit 30 by the current image data input control unit 81.

【0073】ディストーション算出手段30に入力され
た参照画像フレームのフレーム候補ブロックの画素デー
タは、ウィンドウデータ転送制御手段83によって第3
転送経路に沿って転送され、第1ディストーション算出
ユニット32および第2ディストーション算出ユニット
34によってフレーム候補ブロックごとに現画像フレー
ムの現画像フレームブロックとのディストーションが算
出される。
The pixel data of the frame candidate block of the reference image frame input to the distortion calculation means 30 is processed by the window data transfer control means 83 into the third pixel data.
The image data is transferred along the transfer path, and the distortion of the current image frame with respect to the current image frame block is calculated for each frame candidate block by the first distortion calculation unit 32 and the second distortion calculation unit 34.

【0074】第1ディストーション算出ユニット32お
よび第2ディストーション算出ユニット34によって算
出されたディストーションは、ディストーション入力制
御手段84によってブロック特定手段60に入力され
る。ディストーション入力制御手段84によって入力さ
れたディストーションは、ブロック特定手段60によっ
て最小値が検出され、ディストーションが最小値となる
フレーム候補ブロックが特定され、特定されたフレーム
候補ブロックの位置と、現画像フレームブロックの位置
とによって動きベクトルが算出される。
The distortion calculated by the first distortion calculating unit 32 and the second distortion calculating unit 34 is input to the block specifying unit 60 by the distortion input control unit 84. The minimum value of the distortion input by the distortion input control unit 84 is detected by the block specifying unit 60, the frame candidate block having the minimum distortion is specified, and the position of the specified frame candidate block and the current image frame block A motion vector is calculated according to the position of the motion vector.

【0075】[0075]

【実施例】以下、本発明ついて詳細に説明する。図4に
示すように、動きベクトル探索装置は、現画像データ出
力ユニット1000、参照画像データ出力ユニット20
00、ディストーション算出手段3000、ブロック特
定ユニット6000および信号出力ユニット8000か
ら構成される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below in detail. As shown in FIG. 4, the motion vector search device includes a current image data output unit 1000, a reference image data output unit 20.
00, a distortion calculating unit 3000, a block specifying unit 6000, and a signal output unit 8000.

【0076】現画像データ出力ユニット1000は、現
画像ブロックの画素データをディストーション算出手段
3000に出力させるものである。参照画像データ出力
ユニット2000は、サーチウィンドウの画素データを
ディストーション算出手段3000に出力させるもので
ある。ディストーション算出手段3000は、入力レジ
スタグループ、第1、第2、第3サイドレジスタグルー
プおよび第1、第2プロセッサエレメントグループを有
し、現画像データ出力ユニット1000から出力された
現画像ブロックの画素データと参照画像データ出力ユニ
ット2000から出力されたサーチウィンドウの画素デ
ータとに基づいて、現画像ブロックと複数の候補ブロッ
クとの間の画像の差を表わす複数のディストーションを
それぞれ算出させるものである。
The current image data output unit 1000 outputs the pixel data of the current image block to the distortion calculating means 3000. The reference image data output unit 2000 causes the distortion calculation means 3000 to output the pixel data of the search window. The distortion calculating means 3000 has an input register group, first, second and third side register groups and first and second processor element groups, and pixel data of the current image block output from the current image data output unit 1000. Based on the search window pixel data output from the reference image data output unit 2000, a plurality of distortions representing image differences between the current image block and the plurality of candidate blocks are calculated.

【0077】ブロック特定ユニット6000は、各現画
像ブロックに対し算出された複数のディストーションの
値のうちそれぞれ最小値を検出して、候補ブロックの中
で現画像ブロックに最も類似する1つの候補ブロックを
特定し、特定された候補ブロックから動きベクトルを検
出するものである。信号出力ユニット8000は、各ユ
ニットおよび手段に対して制御信号を出力し、各ユニッ
トおよび手段の動作を制御するものである。
The block specifying unit 6000 detects the minimum value among the plurality of distortion values calculated for each current image block, and selects one candidate block that is the most similar to the current image block among the candidate blocks. The motion vector is specified and the motion vector is detected from the specified candidate block. The signal output unit 8000 outputs a control signal to each unit and means, and controls the operation of each unit and means.

【0078】図5に示すように、信号出力ユニット80
00は、第1〜第7信号出力端子P1〜P7を有し、各
信号出力端子P1〜P7から出力される信号は、現画像
データ出力ユニット1000、参照画像データ出力ユニ
ット2000、ディストーション算出手段3000、ブ
ロック特定ユニット6000に出力され、各ユニットお
よび手段の動作を制御するものである。
As shown in FIG. 5, the signal output unit 80
Reference numeral 00 denotes first to seventh signal output terminals P1 to P7, and the signals output from each of the signal output terminals P1 to P7 output the current image data output unit 1000, the reference image data output unit 2000, and the distortion calculating means 3000. Are output to the block specifying unit 6000 to control the operation of each unit and means.

【0079】信号出力ユニット8000の各信号出力端
子P1〜P7から出力される信号を図6〜図12に示
す。第1信号出力端子P1から出力される信号は、クロ
ックパルス信号CK1である。クロックパルス信号CK
1は、本装置の基本クロックで、この信号を基準にして
他のパルス信号を形成し、すべての動作を制御するもの
である。
The signals output from the signal output terminals P1 to P7 of the signal output unit 8000 are shown in FIGS. The signal output from the first signal output terminal P1 is the clock pulse signal CK1. Clock pulse signal CK
Reference numeral 1 denotes a basic clock of the present apparatus, which forms another pulse signal based on this signal and controls all operations.

【0080】クロックパルス信号CK1は2値パルス信
号であり、ハイレベル信号を1としローレベル信号を0
として表すことにする。また、クロックパルス信号CK
1の1周期を単位時間とし、処理の流れを表し、クロッ
クパルス信号CK1の1クロック目の立ち上がりから2
クロック目の立ち上がりまでを期間c1とし、以後、期
間c2、c3、c4・・・とする。
The clock pulse signal CK1 is a binary pulse signal, and the high level signal is 1 and the low level signal is 0.
Will be expressed as Also, the clock pulse signal CK
1 is defined as a unit time, and the flow of processing is represented by two cycles from the rising edge of the first clock of the clock pulse signal CK1.
The period up to the rise of the clock is referred to as a period c1, and thereafter, referred to as periods c2, c3, c4,.

【0081】第2信号出力端子P2から出力される信号
は、パルス信号CK2であり、クロックパルス信号CK
1と同じパルス幅および同じ周期をもち、クロックパル
ス信号CK1の1クロック目に同期して出力される。パ
ルス信号CK2は、ディストーション算出後のブロック
特定および動きベクトルを検出するための信号である。
The signal output from the second signal output terminal P2 is the pulse signal CK2, and the clock pulse signal CK
It has the same pulse width and the same cycle as 1 and is output in synchronization with the first clock of the clock pulse signal CK1. The pulse signal CK2 is a signal for detecting a block after calculating the distortion and detecting a motion vector.

【0082】第3信号出力端子P3から出力される信号
は、パルス信号SLである。パルス信号SLは、ディス
トーション算出手段3000の各素子間を転送する画素
データの転送方向を制御するための信号である。第4信
号出力端子P4から出力される信号は、パルス信号LD
1である。パルス信号LD1は、ディストーション算出
手段3000においてディストーション積算値の初期化
およびディストーションの転送タイミングを制御するた
めの信号である。
The signal output from the third signal output terminal P3 is the pulse signal SL. The pulse signal SL is a signal for controlling the transfer direction of the pixel data transferred between the elements of the distortion calculation unit 3000. The signal output from the fourth signal output terminal P4 is a pulse signal LD.
It is one. The pulse signal LD1 is a signal for controlling the initialization of the distortion integrated value and the transfer timing of the distortion in the distortion calculating means 3000.

【0083】第5信号出力端子P5から出力される信号
は、パルス信号LD2である。パルス信号LD2は、ブ
ロック特定処理の開始タイミングを制御するための信号
である。第6信号出力端子P6から出力される信号は、
パルス信号SMVである。パルス信号SMVは、検出さ
れた最小ディストーションおよび動きベクトルの出力タ
イミングを制御するための信号である。
The signal output from the fifth signal output terminal P5 is the pulse signal LD2. The pulse signal LD2 is a signal for controlling the start timing of the block specifying process. The signal output from the sixth signal output terminal P6 is
It is a pulse signal SMV. The pulse signal SMV is a signal for controlling the output timing of the detected minimum distortion and motion vector.

【0084】第7信号出力端子P7から出力される信号
は、パルス信号SJである。パルス信号SJは、動きベ
クトルの検出モードを切り換えるものである。各信号の
タイミングチャートを、図6〜図12に示す。図6〜図
8は、第1選択モードを選択したときのタイミングチャ
ートであり、図9〜図12は、第2選択モードを選択し
たときのタイミングチャートである。
The signal output from the seventh signal output terminal P7 is the pulse signal SJ. The pulse signal SJ is for switching the motion vector detection mode. Timing charts of each signal are shown in FIGS. 6 to 8 are timing charts when the first selection mode is selected, and FIGS. 9 to 12 are timing charts when the second selection mode is selected.

【0085】ディストーション算出手段3000の詳細
構成を図13に示す。ディストーション算出手段300
0は、18個のプロセッサエレメントPE、31個のサ
イドレジスタSRおよび13個の入力レジスタIRを有
する。ここで、x=0〜3、y=−5〜12とし、左上
のプロセッサエレメントをPE(0,0)として、上述
の各プロセッサエレメントPEをPE(x,y)、各サ
イドレジスタSRをSR(x,y)、各入力レジスタI
RをIR(x,y)とする。
FIG. 13 shows the detailed configuration of the distortion calculation means 3000. Distortion calculating means 300
0 has 18 processor elements PE, 31 side registers SR and 13 input registers IR. Here, x = 0 to 3, y = −5 to 12, the upper left processor element is PE (0,0), each processor element PE is PE (x, y), and each side register SR is SR. (X, y), each input register I
Let R be IR (x, y).

【0086】図14は、各PE(x,y)、SR(x,
y)、IR(x,y)を簡略化して、示したものであ
る。ディストーション算出手段3000の入力レジスタ
IR(3,0)、IR(3,3)、IR(3,5)、I
R(3,8)は、参照画像データ出力ユニット2000
の出力端子に接続される。ディストーション算出手段3
000の各プロセッサエレメントPE(x,y)は、現
画像データ出力ユニット1000の出力端子に接続され
る。プロセッサエレメントPE(0,0)、PE(0,
1)、PE(0,2)、PE(0,5)、PE(0,
6)、PE(0,7)はブロック特定ユニット6000
の入力端子に接続される。
FIG. 14 shows each PE (x, y), SR (x,
y) and IR (x, y) are shown in a simplified manner. Input registers IR (3,0), IR (3,3), IR (3,5), I of distortion calculating means 3000
R (3,8) is the reference image data output unit 2000
Output terminal. Distortion calculating means 3
000 are connected to the output terminals of the current image data output unit 1000. Processor elements PE (0,0), PE (0,
1), PE (0,2), PE (0,5), PE (0,
6) and PE (0,7) are block specific units 6000
Is connected to the input terminal.

【0087】また、プロセッサエレメントPE(0,
y)およびPE(2,y)を奇数列のプロセッサエレメ
ント、PE(1,y)を偶数列のプロセッサエレメン
ト、サイドレジスタSR(0,y)およびSR(2,
y)を奇数列のサイドレジスタ、SR(1,y)を偶数
列のサイドレジスタと呼ぶ。図15および図16は、プ
ロセッサエレメントの入出力端子を表したものであり、
図16(a)は、特に、PE(0,2)、PE(2,
2)の入出力端子を表したものであり、図16(b)
は、PE(1,5)の入出力端子を表したものである。
また、図15は、その他のプロセッサエレメントの入出
力端子を表し、図15(a)は、奇数列のプロセッサエ
レメントの入出力端子を表したものであり、図15
(b)は、偶数列のプロセッサエレメントの入出力端子
を表したものである。
Further, the processor element PE (0,
y) and PE (2, y) are processor elements in odd columns, PE (1, y) are processor elements in even columns, and side registers SR (0, y) and SR (2,
y) is called an odd-numbered column side register, and SR (1, y) is called an even-numbered column side register. 15 and 16 show input / output terminals of the processor element.
FIG. 16A particularly shows PE (0, 2), PE (2,
FIG. 16B shows the input / output terminals of FIG.
Represents input / output terminals of PE (1,5).
FIG. 15 shows input / output terminals of other processor elements, and FIG. 15 (a) shows input / output terminals of odd-numbered processor elements.
(B) shows the input / output terminals of the processor elements in the even-numbered columns.

【0088】図15(a)に示すように、奇数列の各プ
ロセッサエレメントPE(x,y)は、入力端子X、D
i、YLiおよびYUi、並びに、出力端子YUo、Y
LoおよびDoを有し、さらに信号出力ユニット800
0の各信号出力端子に接続された入力端子(図示省略)
を有している。また、図15(b)に示すように、偶数
列の各PE(x,y)は、入力端子X、YDi、Diお
よびYLi、並びに、出力端子YDo、YLoおよびD
oを有し、さらに信号出力ユニット8000の各信号出
力端子に接続された入力端子(図示省略)を有してい
る。
As shown in FIG. 15A, each processor element PE (x, y) in the odd-numbered column has an input terminal X, D.
i, YLi and YUi, and output terminals YUo and Y
Signal output unit 800 having Lo and Do
Input terminal connected to each signal output terminal of 0 (not shown)
have. Further, as shown in FIG. 15B, each PE (x, y) in the even column has input terminals X, YDi, Di and YLi, and output terminals YDo, YLo and D.
and an input terminal (not shown) connected to each signal output terminal of the signal output unit 8000.

【0089】図16(a)に示すプロセッサエレメント
PE(0,2)、PE(2,2)は、図15(a)に示
すPE(x,y)に入力端子YUJiを加えたものであ
り、図16(b)に示すPE(1,5)は、図15
(b)に示すPE(x,y)に入力端子YDJiを加え
たものである。プロセッサエレメントPE(0,2)、
PE(1,5)、PE(2,2)の詳細構成を、図18
に示し、その他のプロセッサエレメントの詳細構成を、
図17に示す。
The processor elements PE (0,2) and PE (2,2) shown in FIG. 16 (a) are obtained by adding the input terminal YUJi to the PE (x, y) shown in FIG. 15 (a). , PE (1,5) shown in FIG.
The input terminal YDJi is added to PE (x, y) shown in FIG. Processor element PE (0, 2),
The detailed configuration of PE (1, 5) and PE (2, 2) is shown in FIG.
The detailed configuration of other processor elements is shown in
As shown in FIG.

【0090】プロセッサエレメントは、画素データ転送
部3100、ディストーション算出部3200およびデ
ィストーション転送部3300を有し、図17に示すプ
ロセッサエレメントは、セレクタ3110、フリップフ
ロップ3120、減算器3210、正数変換器322
0、加算器3230、フリップフロップ3240、反転
器3250、論理積演算器3260、セレクタ3310
およびフリップフロップ3320からなり、図18に示
すプロセッサエレメントは、図17に示すプロセッサエ
レメントにセレクタ3410を追加したものである。
The processor element has a pixel data transfer section 3100, a distortion calculation section 3200, and a distortion transfer section 3300. The processor element shown in FIG.
0, adder 3230, flip-flop 3240, inverter 3250, AND operator 3260, selector 3310
The processor element shown in FIG. 18 is obtained by adding a selector 3410 to the processor element shown in FIG.

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

【0092】フリップフロップ3120は、Dフリップ
フロップからなり、データ入力端子A、信号入力端子S
およびデータ出力端子Yを有し、信号入力端子Sに入力
された信号のパルスに同期して、データ入力端子Aに入
力されているデータをデータ出力端子Yにラッチするも
のである。減算器3210は、第1データ入力端子A、
第2データ入力端子Bおよびデータ出力端子Yを有し、
第1データ入力端子Aに入力されたデータから第2デー
タ入力端子Bに入力されたデータを減算してデータ出力
端子Yから出力するものである。
The flip-flop 3120 is a D flip-flop, and has a data input terminal A and a signal input terminal S.
And a data output terminal Y, and latches data input to the data input terminal A to the data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S. The subtractor 3210 has a first data input terminal A,
A second data input terminal B and a data output terminal Y,
The data input to the second data input terminal B is subtracted from the data input to the first data input terminal A and output from the data output terminal Y.

【0093】正数変換器3220は、データ入力端子A
およびデータ出力端子Yを有し、データ入力端子Aに入
力されたデータを絶対値演算または二乗演算により正数
データに変換してデータ出力端子Yから出力するもので
ある。加算器3230は、第1データ入力端子A、第2
データ入力端子Bおよびデータ出力端子Yを有し、第1
データ入力端子Aに入力されたデータと第2データ入力
端子Bに入力されたデータを加算してデータ出力端子Y
から出力するものである。
The positive number converter 3220 has a data input terminal A
And a data output terminal Y, and the data input to the data input terminal A is converted into positive number data by absolute value calculation or square calculation and is output from the data output terminal Y. The adder 3230 has a first data input terminal A and a second data input terminal A.
A data input terminal B and a data output terminal Y,
The data input terminal A and the data input to the second data input terminal B are added to obtain a data output terminal Y
Is output from.

【0094】フリップフロップ3240は、Dフリップ
フロップからなり、データ入力端子A、信号入力端子S
およびデータ出力端子Yを有し、信号入力端子Sに入力
された信号のパルスに同期して、データ入力端子Aに入
力されているデータをデータ出力端子Yにラッチするも
のである。反転器3250は、信号入力端子Sおよび信
号出力端子Yを有し、信号入力端子Sに入力された信号
が0を表わす信号である場合には、信号出力端子Yに1
を表わす信号を出力し、信号入力端子Sに入力された信
号が1を表わす信号である場合には、信号出力端子Yに
0を表わす信号を出力するものである。
The flip-flop 3240 comprises a D flip-flop, and has a data input terminal A and a signal input terminal S.
And a data output terminal Y, and latches data input to the data input terminal A to the data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S. The inverter 3250 has a signal input terminal S and a signal output terminal Y. When the signal input to the signal input terminal S is a signal representing 0, the inverter 3250 outputs 1 to the signal output terminal Y.
When the signal input to the signal input terminal S is a signal representing 1, a signal representing 0 is output to the signal output terminal Y.

【0095】論理積演算器3260は、信号入力端子
A、データ入力端子Bおよびデータ出力端子Yを有し、
信号入力端子Aおよびデータ入力端子Bに入力された信
号およびデータが共に1を表わすときのみ1を表わすデ
ータをデータ出力端子Yに出力し、どちらか一方でも0
を表わす信号またはデータが入力された場合には、0を
表わすデータをデータ出力端子Yに出力するものであ
る。言い換えれば、信号入力端子Aに入力された信号が
0を表わす信号の場合には、データ出力端子Yに0を表
わすデータを出力し、信号入力端子Aに入力された信号
が1を表わす信号の場合には、データ出力端子Yにデー
タ入力端子Bに入力されたデータを出力するものであ
る。
The logical product operator 3260 has a signal input terminal A, a data input terminal B and a data output terminal Y,
Data representing 1 is output to the data output terminal Y only when the signals and data input to the signal input terminal A and the data input terminal B both represent 1, and one of them outputs 0.
When a signal or data representing "0" is input, the data representing 0 is output to the data output terminal Y. In other words, when the signal input to signal input terminal A is a signal representing 0, data representing 0 is output to data output terminal Y, and the signal input to signal input terminal A is a signal representing 1 In this case, the data input to the data input terminal B is output to the data output terminal Y.

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

【0097】フリップフロップ3320は、Dフリップ
フロップからなり、データ入力端子A、信号入力端子S
およびデータ出力端子Yを有し、信号入力端子Sに入力
された信号のパルスに同期して、データ入力端子Aに入
力されているデータをデータ出力端子Yにラッチするも
のである。セレクタ3410は、第1データ入力端子
A、第2データ入力端子B、信号入力端子Sおよびデー
タ出力端子Yを有し、信号入力端子Sに入力された信号
が0のとき第1データ入力端子Aに入力されているデー
タをデータ出力端子Yから出力し、信号入力端子Sに入
力された信号が1のとき第2データ入力端子Bに入力さ
れているデータをデータ出力端子Yから出力するもので
ある。
The flip-flop 3320 is composed of a D flip-flop and has a data input terminal A and a signal input terminal S.
And a data output terminal Y, and latches data input to the data input terminal A to the data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S. The selector 3410 has a first data input terminal A, a second data input terminal B, a signal input terminal S and a data output terminal Y, and when the signal input to the signal input terminal S is 0, the first data input terminal A The data input to the second data input terminal B is output from the data output terminal Y when the signal input to the signal input terminal S is 1. is there.

【0098】各プロセッサエレメントPE(x,y)の
セレクタ3410の第1データ入力端子Aは、奇数列の
PE(x,y)では、サイドレジスタSR(x,y+
1)のデータ出力端子に入力端子YUiを介して電気的
に接続され、偶数列のPE(x,y)では、SR(x,
y−1)のデータ出力端子に入力端子YDiを介して電
気的に接続され、セレクタ3410の第2データ入力端
子Bは、奇数列のPE(x,y)では、PE(x,y+
3)のフリップフロップ3120のデータ出力端子Yに
入力端子YUJiを介して電気的に接続され、偶数列の
PE(x,y)では、PE(x,y−3)のフリップフ
ロップ3120のデータ出力端子Yに入力端子YDJi
を介して電気的に接続されている。
The first data input terminal A of the selector 3410 of each processor element PE (x, y) has a side register SR (x, y +) in the odd-numbered column PE (x, y).
1 () is electrically connected to the data output terminal via the input terminal YUi, and in the even-numbered PE (x, y), SR (x,
y-1) is electrically connected to the data output terminal of y-1) via the input terminal YDi, and the second data input terminal B of the selector 3410 is PE (x, y +) in the odd-numbered PE (x, y).
3) is electrically connected to the data output terminal Y of the flip-flop 3120 via the input terminal YUJi, and in the even-numbered column PE (x, y), the data output of the flip-flop 3120 of PE (x, y-3). Input terminal YDJi to terminal Y
Are electrically connected via

【0099】また、セレクタ3410の信号入力端子S
は、信号出力ユニット8000の信号出力端子に電気的
に接続され、パルス信号SJが入力される。各PE
(x,y)のセレクタ3110の第1データ入力端子A
は、PE(0,2)、PE(1,5)およびPE(2,
2)では、セレクタ3410のデータ出力端子Yに電気
的に接続され、その他のPE(x,y)は、奇数列のP
E(x,y)では、PE(x,y+1)のフリップフロ
ップ3120のデータ出力端子YまたはSR(x,y+
1)の出力端子に入力端子YUiを介して電気的に接続
され、偶数列のPE(x,y)では、PE(x,y−
1)のフリップフロップ3120のデータ出力端子Yま
たはSR(x,y−1)のデータ出力端子に入力端子Y
Diを介して電気的に接続されている。
Also, the signal input terminal S of the selector 3410
Is electrically connected to the signal output terminal of the signal output unit 8000, and receives the pulse signal SJ. Each PE
First data input terminal A of (x, y) selector 3110
Are PE (0,2), PE (1,5) and PE (2,
2) is electrically connected to the data output terminal Y of the selector 3410, and the other PEs (x, y) are P in odd columns.
At E (x, y), the data output terminal Y of the flip-flop 3120 of PE (x, y + 1) or SR (x, y +) is used.
1 () is electrically connected to the output terminal via the input terminal YUi, and PE (x, y−) is connected to PE (x, y−) in the even-numbered PE (x, y).
The data output terminal Y of the flip-flop 3120 of 1) or the data output terminal of SR (x, y-1) is connected to the input terminal Y.
It is electrically connected via Di.

【0100】セレクタ3110の第2データ入力端子B
は、PE(x+1,y)のフリップフロップ3120の
データ出力端子YまたはIR(x+1,y)の出力端子
に入力端子YLiを介して電気的に接続されている。ま
た、セレクタ3110の信号入力端子Sは、信号出力ユ
ニット8000の信号出力端子に電気的に接続され、パ
ルス信号SLが入力される。
Second data input terminal B of selector 3110
Is electrically connected to the data output terminal Y of the flip-flop 3120 of PE (x + 1, y) or the output terminal of IR (x + 1, y) via the input terminal YLi. The signal input terminal S of the selector 3110 is electrically connected to the signal output terminal of the signal output unit 8000, and receives the pulse signal SL.

【0101】各PE(x,y)のフリップフロップ31
20のデータ入力端子Aは、同じPE(x,y)のセレ
クタ3110のデータ出力端子Yに電気的に接続されて
いる。また、フリップフロップ3120の信号入力端子
Sは、信号出力ユニット8000の信号出力端子に電気
的に接続され、パルス信号CK1が入力される。各PE
(x,y)の減算器3210の第1データ入力端子A
は、同じPE(x,y)のフリップフロップ3120の
データ出力端子Yに電気的に接続され、減算器3210
の第2データ入力端子Bは、現画像データ出力ユニット
1000のデータ出力端子に電気的に接続されている。
Flip-flop 31 of each PE (x, y)
The data input terminal A of 20 is electrically connected to the data output terminal Y of the selector 3110 of the same PE (x, y). The signal input terminal S of the flip-flop 3120 is electrically connected to the signal output terminal of the signal output unit 8000, and receives the pulse signal CK1. Each PE
First data input terminal A of (x, y) subtractor 3210
Is electrically connected to the data output terminal Y of the flip-flop 3120 of the same PE (x, y),
The second data input terminal B is electrically connected to the data output terminal of the current image data output unit 1000.

【0102】各PE(x,y)の正数変換器3220の
データ入力端子Aは、同じPE(x,y)の減算器32
10のデータ出力端子Yに電気的に接続されている。各
PE(x,y)の加算器3230の第1データ入力端子
Aは、同じPE(x,y)の正数変換器3220のデー
タ出力端子Yに電気的に接続され、加算器3230の第
2データ入力端子Bは、同じPE(x,y)の論理積演
算器3260のデータ出力端子Yに電気的に接続されて
いる。
The data input terminal A of the positive number converter 3220 of each PE (x, y) is the subtractor 32 of the same PE (x, y).
It is electrically connected to ten data output terminals Y. The first data input terminal A of the adder 3230 of each PE (x, y) is electrically connected to the data output terminal Y of the positive number converter 3220 of the same PE (x, y), and the first data input terminal A of the adder 3230 is The 2-data input terminal B is electrically connected to the data output terminal Y of the logical product operator 3260 of the same PE (x, y).

【0103】各PE(x,y)のフリップフロップ32
40のデータ入力端子Aは、同じPE(x,y)の加算
器3230のデータ出力端子Yに電気的に接続されてい
る。また、フリップフロップ3240の信号入力端子S
は、信号出力ユニット8000の信号出力端子に電気的
に接続され、パルス信号CK1が入力される。各PE
(x,y)の反転器3250の信号入力端子Sは、信号
出力ユニット8000の信号出力端子に電気的に接続さ
れ、パルス信号LD1が入力される。
Flip-flop 32 of each PE (x, y)
The data input terminal A of 40 is electrically connected to the data output terminal Y of the adder 3230 of the same PE (x, y). Also, the signal input terminal S of the flip-flop 3240
Is electrically connected to the signal output terminal of the signal output unit 8000 and receives the pulse signal CK1. Each PE
The signal input terminal S of the (x, y) inverter 3250 is electrically connected to the signal output terminal of the signal output unit 8000, and the pulse signal LD1 is input.

【0104】各PE(x,y)の論理積演算器3260
の信号入力端子Aは、同じPE(x,y)の反転器32
50の信号出力端子Yに電気的に接続され、論理積演算
器3260のデータ入力端子Bは、同じPE(x,y)
のフリップフロップ3240のデータ出力端子Yに電気
的に接続されている。各PE(x,y)のセレクタ33
10の第1データ入力端子Aは、別のPE(x+1,
y)のフリップフロップ3320のデータ出力端子Yに
入力端子Diを介して電気的に接続され、セレクタ33
10の第2データ入力端子Bは、同じPE(x,y)の
フリップフロップ3240のデータ出力端子Yに電気的
に接続されている。
Logical product operator 3260 of each PE (x, y)
Signal input terminal A is connected to the inverter 32 of the same PE (x, y).
50 is electrically connected to the signal output terminal Y of 50, and the data input terminal B of the logical product operator 3260 has the same PE (x, y).
Are electrically connected to the data output terminal Y of the flip-flop 3240 of the. Selector 33 for each PE (x, y)
The first data input terminal A of 10 is connected to another PE (x + 1,
y) electrically connected to the data output terminal Y of the flip-flop 3320 via the input terminal Di, and the selector 33
The second data input terminal B of 10 is electrically connected to the data output terminal Y of the flip-flop 3240 of the same PE (x, y).

【0105】また、セレクタ3310の信号入力端子S
は、信号出力ユニット8000の信号出力端子に電気的
に接続され、パルス信号LD1が入力される。各PE
(x,y)のフリップフロップ3320のデータ入力端
子Aは、同じPE(x,y)のセレクタ3310のデー
タ出力端子Yに電気的に接続されている。また、フリッ
プフロップ3320の信号入力端子Sは、信号出力ユニ
ット8000の信号出力端子に電気的に接続され、パル
ス信号CK2が入力される。
Also, the signal input terminal S of the selector 3310
Is electrically connected to the signal output terminal of the signal output unit 8000, and receives the pulse signal LD1. Each PE
The data input terminal A of the (x, y) flip-flop 3320 is electrically connected to the data output terminal Y of the selector 3310 of the same PE (x, y). The signal input terminal S of the flip-flop 3320 is electrically connected to the signal output terminal of the signal output unit 8000, and receives the pulse signal CK2.

【0106】図19に各サイドレジスタSR(x,y)
の入出力端子および詳細構成を示す。図19に示すサイ
ドレジスタSR(x,y)は、奇数列のSR(x,y)
では、データ入力端子YUi、YLiおよびデータ出力
端子YUo、YLoを有し、偶数列のSR(x,y)で
は、データ入力端子YDi、YLiおよびデータ出力端
子YDo、YLoを有し、各SR(x,y)は、セレク
タ4210およびフリップフロップ4220からなる。
FIG. 19 shows each side register SR (x, y).
2 shows input / output terminals and a detailed configuration. The side register SR (x, y) shown in FIG. 19 is an odd-numbered column SR (x, y).
Has data input terminals YUi, YLi and data output terminals YUo, YLo, and SR (x, y) in even columns has data input terminals YDi, YLi and data output terminals YDo, YLo, and each SR ( x, y) is composed of a selector 4210 and a flip-flop 4220.

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

【0108】フリップフロップ4220は、Dフリップ
フロップからなり、データ入力端子A、信号入力端子S
およびデータ出力端子Yを有し、信号入力端子Sに入力
された信号のパルスに同期して、データ入力端子Aに入
力されているデータをデータ出力端子Yにラッチするも
のである。各サイドレジスタSR(x,y)のセレクタ
4210の第1データ入力端子Aは、奇数列のSR
(x,y)では、別のSR(x,y+1)のフリップフ
ロップ4220のデータ出力端子Yまたは別のPE
(x,y+1)のフリップフロップ3120のデータ出
力端子Yに、入力端子YUiを介して電気的に接続さ
れ、偶数列のSR(x,y)では、別のSR(x,y−
1)のフリップフロップ4220のデータ出力端子また
は別のPE(x,y−1)のフリップフロップ3120
のデータ出力端子Yに、入力端子YDiを介して電気的
に接続されている。
The flip-flop 4220 is a D flip-flop, and has a data input terminal A and a signal input terminal S.
And a data output terminal Y, and latches data input to the data input terminal A to the data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S. The first data input terminal A of the selector 4210 of each side register SR (x, y) is
At (x, y), the data output terminal Y of another flip-flop 4220 of another SR (x, y + 1) or another PE
It is electrically connected to the data output terminal Y of the (x, y + 1) flip-flop 3120 via the input terminal YUi.
1) The data output terminal of the flip-flop 4220 or the flip-flop 3120 of another PE (x, y-1)
Is electrically connected to the data output terminal Y through the input terminal YDi.

【0109】セレクタ4210の第2データ入力端子B
は、第3列のSR(x,y)では、IR(x+1,y)
のデータ出力端子Yに入力端子YLiを介して電気的に
接続され、第1、第2列のSR(x,y)では、別のS
R(x+1,y)のフリップフロップ4220のデータ
出力端子Yに、入力端子YLiを介して電気的に接続さ
れている。
Second data input terminal B of selector 4210
Is SR (x, y) in the third column, IR (x + 1, y)
Is electrically connected to the data output terminal Y of the input terminal YLi via the input terminal YLi.
It is electrically connected to the data output terminal Y of the R (x + 1, y) flip-flop 4220 via the input terminal YLi.

【0110】また、セレクタ4210の信号入力端子S
は、信号出力ユニット8000の信号出力端子に電気的
に接続され、パルス信号SLが入力される。各SR
(x,y)のフリップフロップ4220のデータ入力端
子Aは、同じSR(x,y)のセレクタ4210のデー
タ出力端子Yに電気的に接続されている。また、フリッ
プフロップ4220の信号入力端子Sは信号出力ユニッ
ト8000の信号出力端子に電気的に接続され、パルス
信号CK1が入力される。
Also, the signal input terminal S of the selector 4210
Is electrically connected to the signal output terminal of the signal output unit 8000 and receives the pulse signal SL. Each SR
The data input terminal A of the (x, y) flip-flop 4220 is electrically connected to the data output terminal Y of the same SR (x, y) selector 4210. The signal input terminal S of the flip-flop 4220 is electrically connected to the signal output terminal of the signal output unit 8000, and the pulse signal CK1 is input.

【0111】図20に各入力レジスタIR(x,y)の
入出力端子および詳細構成を示す。図20に示す入力レ
ジスタIR(x,y)は、入力端子YDiおよび出力端
子YDo、YLoを有し、各IR(x,y)は、フリッ
プフロップ4120からなる。フリップフロップ412
0は、Dフリップフロップからなり、データ入力端子
A、信号入力端子Sおよびデータ出力端子Yを有し、信
号入力端子Sに入力された信号のパルスに同期して、デ
ータ入力端子Aに入力されているデータをデータ出力端
子Yにラッチするものである。
FIG. 20 shows the input / output terminals and detailed configuration of each input register IR (x, y). The input register IR (x, y) shown in FIG. 20 has an input terminal YDi and output terminals YDo, YLo, and each IR (x, y) is composed of a flip-flop 4120. Flip-flop 412
0 is a D flip-flop, has a data input terminal A, a signal input terminal S, and a data output terminal Y, and is input to the data input terminal A in synchronization with the pulse of the signal input to the signal input terminal S. The data is latched at the data output terminal Y.

【0112】各入力レジスタIR(x,y)のフリップ
フロップ4120のデータ入力端子Aは、別の入力レジ
スタIR(x,y−1)のフリップフロップ4120の
データ出力端子Yに電気的に接続され、IR(3,
0)、IR(3,3)、IR(3,5)およびIR
(3,8)のフリップフロップ4120のデータ入力端
子Aは、参照画像データ出力ユニット2000の出力端
子に電気的に接続されている。
The data input terminal A of the flip-flop 4120 of each input register IR (x, y) is electrically connected to the data output terminal Y of the flip-flop 4120 of another input register IR (x, y-1). , IR (3
0), IR (3,3), IR (3,5) and IR
The data input terminal A of the (3, 8) flip-flop 4120 is electrically connected to the output terminal of the reference image data output unit 2000.

【0113】また、フリップフロップ4120の信号入
力端子Sは、信号出力ユニット8000の信号出力端子
に電気的に接続され、パルス信号CK1が入力される。
図21に入力レジスタIR(3,5)の入出力端子およ
び詳細構成を示す。図21に示す入力レジスタIR
(3,5)は、上記IR(x,y)の入出力端子に加
え、入力端子YDJiを有し、セレクタ4110を追加
したものである。
The signal input terminal S of the flip-flop 4120 is electrically connected to the signal output terminal of the signal output unit 8000 and receives the pulse signal CK1.
FIG. 21 shows the input / output terminals and the detailed configuration of the input register IR (3,5). Input register IR shown in FIG.
(3, 5) has an input terminal YDJi in addition to the input / output terminal of the IR (x, y), and has a selector 4110 added.

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

【0115】入力レジスタIR(3,5)のセレクタ4
110の第1データ入力端子Aは、参照画像データ出力
ユニット2000の出力端子に、入力端子YDiを介し
て電気的に接続され、セレクタ4110の第2データ入
力端子Bは、IR(3,2)のフリップフロップ412
0のデータ出力端子Yに、入力端子YDJiを介して電
気的に接続されている。
Selector 4 of input register IR (3,5)
The first data input terminal A of 110 is electrically connected to the output terminal of the reference image data output unit 2000 via the input terminal YDi, and the second data input terminal B of the selector 4110 is connected to IR (3,2). Flip-flop 412
0 is electrically connected to the data output terminal Y via the input terminal YDJi.

【0116】また、セレクタ4110の信号入力端子S
は、信号出力ユニット8000の信号出力端子に電気的
に接続され、パルス信号SJが入力される。SR(3,
5)のフリップフロップ4120については、上記IR
(x,y)のフリップフロップ4120と同様である。
次に、ブロック特定ユニット6000の詳細なブロック
構成図を示す。
Further, the signal input terminal S of the selector 4110
Is electrically connected to the signal output terminal of the signal output unit 8000, and receives the pulse signal SJ. SR (3,
Regarding the flip-flop 4120 of 5), the above IR
This is similar to the (x, y) flip-flop 4120.
Next, a detailed block configuration diagram of the block identification unit 6000 is shown.

【0117】図22は、第1選択モード選択時、上部の
プロセッサエレメントPE(0,0)〜PE(2,2)
において算出されたディストーションから最小ディスト
ーションおよび動きベクトルを検出するブロック特定ユ
ニット6000の詳細なブロック構成図である。同図に
おいて、ブロック特定ユニット6000は、最小ディス
トーション検出ユニット6100、動きベクトル垂直成
分検出ユニット6200および動きベクトル水平成分検
出ユニット6300からなり、最小ディストーション検
出ユニット6100は、比較器6110、比較器612
0、セレクタ6130、フリップフロップ6140、論
理和演算器6150およびフリップフロップ6180か
らなる。
FIG. 22 shows the upper processor elements PE (0,0) to PE (2,2) when the first selection mode is selected.
6 is a detailed block configuration diagram of a block identification unit 6000 that detects a minimum distortion and a motion vector from the distortion calculated in FIG. In the figure, the block identification unit 6000 includes a minimum distortion detection unit 6100, a motion vector vertical component detection unit 6200, and a motion vector horizontal component detection unit 6300. The minimum distortion detection unit 6100 includes a comparator 6110 and a comparator 612.
0, a selector 6130, a flip-flop 6140, a logical sum operator 6150, and a flip-flop 6180.

【0118】また、動きベクトル垂直成分検出ユニット
6200は、セレクタ6220、フリップフロップ62
30、換算テーブル6240およびフリップフロップ6
280からなり、動きベクトル水平成分検出ユニット6
300は、カウンタ6310、セレクタ6320、フリ
ップフロップ6330、換算テーブル6340およびフ
リップフロップ6380からなる。
Further, the motion vector vertical component detection unit 6200 includes a selector 6220 and a flip-flop 62.
30, conversion table 6240 and flip-flop 6
280, which is a motion vector horizontal component detection unit 6
300 includes a counter 6310, a selector 6320, a flip-flop 6330, a conversion table 6340, and a flip-flop 6380.

【0119】比較器6110は、データ入力端子A0、
A1、A2、データ出力端子MおよびYを有し、データ
入力端子A0、A1およびA2に入力されたデータの中
で最小の値を持つデータをデータ出力端子Yから出力
し、最小の値を持つデータの入力されたデータ入力端子
がA0ならば0を、A1ならば1を、A2ならば2をデ
ータ出力端子Mから出力するものである。
The comparator 6110 has a data input terminal A0,
It has A1, A2 and data output terminals M and Y, and outputs the data having the minimum value among the data input to the data input terminals A0, A1 and A2 from the data output terminal Y and has the minimum value. If the data input terminal to which data is input is A0, 0 is output, if A1 is 1, 1 is output, and if A2, 2 is output from the data output terminal M.

【0120】比較器6120は、第1データ入力端子
A、第2データ入力端子Bおよび信号出力端子Yを有
し、データ入力端子Aに入力されたデータがデータ入力
端子Bに入力されたデータ以上の大きさであるとき、0
を表わす信号を信号出力端子Yから出力し、データ入力
端子Aに入力されたデータがデータ入力端子Bに入力さ
れたデータより小さいとき、1を表わす信号を信号出力
端子Yから出力するものである。
The comparator 6120 has a first data input terminal A, a second data input terminal B and a signal output terminal Y, and the data input to the data input terminal A is equal to or more than the data input to the data input terminal B. 0 when the size of
Is output from the signal output terminal Y, and when the data input to the data input terminal A is smaller than the data input to the data input terminal B, a signal indicating 1 is output from the signal output terminal Y. .

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

【0122】フリップフロップ6140は、Dフリップ
フロップからなり、データ入力端子A、信号入力端子S
およびデータ出力端子Yを有し、信号入力端子Sに入力
された信号のパルスに同期して、データ入力端子Aに入
力されているデータをデータ出力端子Yにラッチするも
のである。論理和演算器6150は、信号入力端子S、
データ入力端子Bおよびデータ出力端子Yを有し、信号
入力端子Sおよびデータ入力端子Bのいずれか一方に1
を表わす信号またはデータが入力された場合には、デー
タ出力端子Yに1を表わすデータを出力し、信号入力端
子Sおよびデータ入力端子Bの両入力端子に0を表わす
信号およびデータが入力された場合のみ、データ出力端
子Yに0を表わすデータを出力するものである。言い換
えれば、信号入力端子Sに入力された信号が1を表わす
信号の場合には、1を表わす信号をデータ出力端子Yに
出力し、信号入力端子Sに入力された信号が0である場
合には、データ入力端子Bに入力されているデータをデ
ータ出力端子Yに出力するものである。
The flip-flop 6140 is a D flip-flop, and has a data input terminal A and a signal input terminal S.
And a data output terminal Y, and latches data input to the data input terminal A to the data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S. The logical sum operator 6150 has a signal input terminal S,
It has a data input terminal B and a data output terminal Y, and one of the signal input terminal S and the data input terminal B
Is input, data representing 1 is output to data output terminal Y, and signal and data representing 0 are inputted to both input terminals of signal input terminal S and data input terminal B. Only in this case, data representing 0 is output to the data output terminal Y. In other words, when the signal input to the signal input terminal S is a signal representing 1, a signal representing 1 is output to the data output terminal Y, and when the signal input to the signal input terminal S is 0, Outputs data input to the data input terminal B to the data output terminal Y.

【0123】フリップフロップ6180は、Dフリップ
フロップからなり、データ入力端子A、信号入力端子S
およびデータ出力端子Yを有し、信号入力端子Sに入力
された信号のパルスに同期して、データ入力端子Aに入
力されているデータをデータ出力端子Yにラッチするも
のである。セレクタ6220は、第1データ入力端子
A、第2データ入力端子B、信号入力端子Sおよびデー
タ出力端子Yを有し、信号入力端子Sに入力された信号
が0を表わす信号のとき、データ入力端子Aに入力され
ているデータをデータ出力端子Yから出力し、信号入力
端子Sに入力された信号が1を表わす信号のとき、デー
タ入力端子Bに入力されているデータをデータ出力端子
Yから出力するものである。
The flip-flop 6180 is a D flip-flop, and has a data input terminal A and a signal input terminal S.
And a data output terminal Y, and latches data input to the data input terminal A to the data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S. The selector 6220 has a first data input terminal A, a second data input terminal B, a signal input terminal S and a data output terminal Y. When the signal input to the signal input terminal S is a signal indicating 0, data input is performed. When the data input to the terminal A is output from the data output terminal Y and the signal input to the signal input terminal S is a signal representing 1, the data input to the data input terminal B is output from the data output terminal Y. It is what is output.

【0124】フリップフロップ6230は、Dフリップ
フロップからなり、データ入力端子A、信号入力端子S
およびデータ出力端子Yを有し、信号入力端子Sに入力
された信号のパルスに同期して、データ入力端子Aに入
力されているデータをデータ出力端子Yにラッチするも
のである。換算テーブル6240は、データ入力端子A
およびデータ出力端子Yを有し、データ入力端子Aに入
力されたデータを動きベクトルデータに換算し、データ
出力端子Yから出力するものである。
The flip-flop 6230 comprises a D flip-flop, and has a data input terminal A and a signal input terminal S.
And a data output terminal Y, and latches data input to the data input terminal A to the data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S. The conversion table 6240 has a data input terminal A.
And a data output terminal Y, and the data input to the data input terminal A is converted into motion vector data and output from the data output terminal Y.

【0125】フリップフロップ6280は、Dフリップ
フロップからなり、データ入力端子A、信号入力端子S
およびデータ出力端子Yを有し、信号入力端子Sに入力
された信号のパルスに同期して、データ入力端子Aに入
力されているデータをデータ出力端子Yにラッチするも
のである。カウンタ6310は、信号入力端子CK、C
Lおよびカウント出力端子Qnを有し、信号入力端子C
Lに入力された信号のパルスに同期してカウント出力端
子Qnの出力を0にリセットし、信号入力端子CKに入
力された信号のパルスに同期して、カウント出力端子Q
nの出力カウントをカウントアップして出力するもので
ある。
The flip-flop 6280 is composed of a D flip-flop and has a data input terminal A and a signal input terminal S.
And a data output terminal Y, and latches data input to the data input terminal A to the data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S. The counter 6310 has signal input terminals CK and C.
L and count output terminal Qn, and signal input terminal C
The output of the count output terminal Qn is reset to 0 in synchronization with the pulse of the signal input to L, and the count output terminal Qn is synchronized with the pulse of the signal input to the signal input terminal CK.
The output count of n is counted up and output.

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

【0127】フリップフロップ6330は、Dフリップ
フロップからなり、データ入力端子A、信号入力端子S
およびデータ出力端子Yを有し、信号入力端子Sに入力
された信号のパルスに同期して、データ入力端子Aに入
力されているデータをデータ出力端子Yにラッチするも
のである。換算テーブル6340は、データ入力端子A
およびデータ出力端子Yを有し、データ入力端子Aに入
力されたデータを動きベクトルデータに換算し、データ
出力端子Yから出力するものである。
The flip-flop 6330 is a D flip-flop, and has a data input terminal A and a signal input terminal S.
And a data output terminal Y, and latches data input to the data input terminal A to the data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S. Conversion table 6340 has data input terminal A
And a data output terminal Y, and the data input to the data input terminal A is converted into motion vector data and output from the data output terminal Y.

【0128】フリップフロップ6380は、Dフリップ
フロップからなり、データ入力端子A、信号入力端子S
およびデータ出力端子Yを有し、信号入力端子Sに入力
された信号のパルスに同期して、データ入力端子Aに入
力されているデータをデータ出力端子Yにラッチするも
のである。つぎに、ブロック特定ユニット6000の各
構成機器間の接続について説明する。
The flip-flop 6380 is a D flip-flop, and has a data input terminal A and a signal input terminal S.
And a data output terminal Y, and latches data input to the data input terminal A to the data output terminal Y in synchronization with a pulse of a signal input to the signal input terminal S. Next, the connection between each component of the block identification unit 6000 will be described.

【0129】比較器6110のデータ入力端子A0は、
プロセッサエレメントPE(0,0)のフリップフロッ
プ3320のデータ出力端子Yに、PE(0,0)のデ
ータ出力端子Doを介して電気的に接続され、データ入
力端子A1は、PE(0,1)のフリップフロップ33
20のデータ出力端子Yに、PE(0,1)のデータ出
力端子Doを介して電気的に接続され、データ入力端子
A2は、PE(0,2)のフリップフロップ3320の
データ出力端子Yに、PE(0,2)のデータ出力端子
Doを介して電気的に接続されている。
The data input terminal A0 of the comparator 6110 is
The data output terminal Y of the flip-flop 3320 of the processor element PE (0,0) is electrically connected via the data output terminal Do of PE (0,0), and the data input terminal A1 is PE (0,1). ) Flip-flop 33
20 is electrically connected to the data output terminal Y of the PE (0,1) via the data output terminal Do of the PE (0,1), and the data input terminal A2 is connected to the data output terminal Y of the flip-flop 3320 of the PE (0,2). , PE (0,2) are electrically connected via the data output terminals Do.

【0130】比較器6120の第1データ入力端子A
は、比較器6110のデータ出力端子Yに電気的に接続
され、第2データ入力端子Bは、論理和演算器6150
のデータ出力端子Yに電気的に接続されている。セレク
タ6130の第1データ入力端子Aは、比較器6110
のデータ出力端子Yに電気的に接続され、第2データ入
力端子Bは、論理和演算器6150のデータ出力端子Y
に電気的に接続され、信号入力端子Sは、比較器612
0の信号出力端子Yに電気的に接続されている。
First data input terminal A of comparator 6120
Is electrically connected to the data output terminal Y of the comparator 6110, and the second data input terminal B is connected to the logical sum operator 6150.
Are electrically connected to the data output terminal Y. The first data input terminal A of the selector 6130 is connected to the comparator 6110.
Of the logical sum operator 6150. The second data input terminal B is electrically connected to the data output terminal Y of
And a signal input terminal S is connected to the comparator 612.
It is electrically connected to the signal output terminal Y of 0.

【0131】フリップフロップ6140のデータ入力端
子Aは、セレクタ6130のデータ出力端子Yに電気的
に接続されている。また、信号入力端子Sは、信号出力
ユニット8000の信号出力端子に電気的に接続され、
パルス信号CK2が入力される。論理和演算器6150
の信号入力端子Sは、信号出力ユニット8000の信号
出力端子に電気的に接続され、パルス信号LD2が入力
され、データ入力端子Bは、フリップフロップ6140
のデータ出力端子Yに電気的に接続されている。
The data input terminal A of the flip-flop 6140 is electrically connected to the data output terminal Y of the selector 6130. Further, the signal input terminal S is electrically connected to the signal output terminal of the signal output unit 8000,
The pulse signal CK2 is input. OR calculator 6150
Signal input terminal S is electrically connected to the signal output terminal of the signal output unit 8000, the pulse signal LD2 is input, and the data input terminal B is a flip-flop 6140.
Are electrically connected to the data output terminal Y.

【0132】フリップフロップ6180のデータ入力端
子Aは、フリップフロップ6140のデータ出力端子Y
に電気的に接続されている。また、信号入力端子Sは、
信号出力ユニット8000の信号出力端子に電気的に接
続され、パルス信号SMVが入力される。セレクタ62
20の第1データ入力端子Aは、フリップフロップ62
30のデータ出力端子Yに電気的に接続され、第2デー
タ入力端子Bは、最小ディストーション検出ユニット6
100の比較器6110のデータ出力端子Mに電気的に
接続され、信号入力端子Sは、最小ディストーション検
出ユニット6100の比較器6120の信号出力端子Y
に電気的に接続されている。
The data input terminal A of the flip-flop 6180 is connected to the data output terminal Y of the flip-flop 6140.
Is electrically connected to Further, the signal input terminal S is
It is electrically connected to the signal output terminal of the signal output unit 8000 and receives the pulse signal SMV. Selector 62
The first data input terminal A of 20 is connected to the flip-flop 62.
The second data input terminal B is electrically connected to the data output terminal Y of the minimum distortion detection unit 6.
100 is electrically connected to the data output terminal M of the comparator 6110, and the signal input terminal S is the signal output terminal Y of the comparator 6120 of the minimum distortion detection unit 6100.
Is electrically connected to

【0133】フリップフロップ6230のデータ入力端
子Aは、セレクタ6220のデータ出力端子Yに電気的
に接続されている。また、信号入力端子Sは、信号出力
ユニット8000の信号出力端子に電気的に接続され、
パルス信号CK2が入力される。換算テーブル6240
のデータ入力端子Aは、フリップフロップ6230のデ
ータ出力端子Yに電気的に接続されている。
The data input terminal A of the flip-flop 6230 is electrically connected to the data output terminal Y of the selector 6220. Further, the signal input terminal S is electrically connected to the signal output terminal of the signal output unit 8000,
The pulse signal CK2 is input. Conversion table 6240
The data input terminal A of is electrically connected to the data output terminal Y of the flip-flop 6230.

【0134】フリップフロップ6280のデータ入力端
子Aは、換算テーブル6240のデータ出力端子Yに電
気的に出力されている。また、信号入力端子Sは、信号
出力ユニット8000の信号出力端子に電気的に接続さ
れ、パルス信号SMVが入力される。カウンタ6310
の信号入力端子CLは、信号出力ユニット8000の信
号出力端子に電気的に接続され、パルス信号LD2が入
力され、信号入力端子CKは、信号出力ユニット800
0の信号出力端子に電気的に接続され、パルス信号CK
2が入力される。
The data input terminal A of the flip-flop 6280 is electrically output to the data output terminal Y of the conversion table 6240. Further, the signal input terminal S is electrically connected to the signal output terminal of the signal output unit 8000, and the pulse signal SMV is input. Counter 6310
Signal input terminal CL is electrically connected to the signal output terminal of the signal output unit 8000, the pulse signal LD2 is input thereto, and the signal input terminal CK is connected to the signal output unit 800.
Pulse signal CK electrically connected to the signal output terminal of 0
2 is input.

【0135】セレクタ6320の第1データ入力端子A
は、フリップフロップ6330のデータ出力端子Yに電
気的に接続され、第2データ入力端子Bは、カウンタ6
310のデータ出力端子Qnに電気的に接続され、信号
入力端子Sは、最小ディストーション検出ユニット61
00の比較器6120の信号出力端子Yに電気的に接続
されている。
First data input terminal A of selector 6320
Is electrically connected to the data output terminal Y of the flip-flop 6330, and the second data input terminal B is connected to the counter 6
The signal input terminal S is electrically connected to the data output terminal Qn of the 310, and the signal input terminal S has a minimum distortion detection unit 61.
00 is electrically connected to the signal output terminal Y of the comparator 6120.

【0136】フリップフロップ6330のデータ入力端
子Aは、セレクタ6320のデータ出力端子Yに電気的
に接続されている。また、信号入力端子Sは、信号出力
ユニット8000の信号出力端子に電気的に接続され、
パルス信号CK2が入力される。換算テーブル6340
のデータ入力端子Aは、フリップフロップ6330のデ
ータ出力端子Yに電気的に接続されている。
The data input terminal A of the flip-flop 6330 is electrically connected to the data output terminal Y of the selector 6320. Further, the signal input terminal S is electrically connected to the signal output terminal of the signal output unit 8000,
The pulse signal CK2 is input. Conversion table 6340
The data input terminal A of is electrically connected to the data output terminal Y of the flip-flop 6330.

【0137】フリップフロップ6380のデータ入力端
子Aは、換算テーブル6340のデータ出力端子Yに電
気的に出力されている。また、信号入力端子Sは、信号
出力ユニット8000の信号出力端子に電気的に接続さ
れ、パルス信号SMVが入力される。次に、本装置の動
作の概要を説明する。
The data input terminal A of the flip-flop 6380 is electrically output to the data output terminal Y of the conversion table 6340. Further, the signal input terminal S is electrically connected to the signal output terminal of the signal output unit 8000, and the pulse signal SMV is input. Next, an outline of the operation of this device will be described.

【0138】まず、参照画像データ出力ユニット200
0から出力されたフィールド候補ブロックの画素データ
を入力レジスタへ入力し、各レジスタおよびプロセッサ
エレメント間の接続を切り替え、ディストーション算出
手段3000へサーチウィンドウ内の画素データを入力
し、転送しながら参照画像フォーマットに配置する。次
に、現画像データ出力ユニット1000から出力された
現画像フィールドブロックの画素データを各プロセッサ
エレメントに入力する。各プロセッサエレメントでは、
現画像フィールドブロックの画素データとフィールド候
補ブロックの画素データからディストーションの算出を
行う。各プロセッサエレメントで算出されたディストー
ションは、各プロセッサエレメント間で転送され、ブロ
ック特定ユニット6000へ出力される。
First, the reference image data output unit 200
The pixel data of the field candidate block output from 0 is input to the input register, the connection between each register and the processor element is switched, the pixel data in the search window is input to the distortion calculation means 3000, and the reference image format is transferred. To place. Next, the pixel data of the current image field block output from the current image data output unit 1000 is input to each processor element. In each processor element,
The distortion is calculated from the pixel data of the current image field block and the pixel data of the field candidate block. The distortion calculated by each processor element is transferred between the processor elements and output to the block specifying unit 6000.

【0139】次に、ブロック特定ユニット6000で
は、入力された各ディストーションの中から現画像フィ
ールドブロックごとに、最小ディストーションを検出す
るとともに動きベクトルを求める。また、参照画像デー
タ出力ユニット2000から出力されたフレーム候補ブ
ロックの画素データを入力レジスタへ入力し、各レジス
タおよびプロセッサエレメント間の接続を切り替え、デ
ィストーション算出手段3000へサーチウィンドウ内
の画素データを入力し、転送しながら参照画像フォーマ
ットに配置する。
Next, the block identification unit 6000 detects the minimum distortion for each current image field block from the input distortions and obtains the motion vector. Further, the pixel data of the frame candidate block output from the reference image data output unit 2000 is input to the input register, the connection between each register and the processor element is switched, and the pixel data in the search window is input to the distortion calculation means 3000. , Place it in the reference image format while transferring.

【0140】次に、現画像データ出力ユニット1000
から出力された現画像フレームブロックの画素データを
各プロセッサエレメントに入力する。各プロセッサエレ
メントでは、現画像フレームブロックの画素データとフ
レーム候補ブロックの画素データからディストーション
の算出を行う。各プロセッサエレメントで算出されたデ
ィストーションは、各プロセッサエレメント間で転送さ
れ、ブロック特定ユニット6000へ出力される。
Next, the current image data output unit 1000
The pixel data of the current image frame block output from is input to each processor element. Each processor element calculates a distortion from the pixel data of the current image frame block and the pixel data of the frame candidate block. The distortion calculated by each processor element is transferred between the processor elements and output to the block specifying unit 6000.

【0141】次に、ブロック特定ユニット6000で
は、入力された各ディストーションの中から現画像フレ
ームブロックごとに、最小ディストーションを検出する
とともに動きベクトルを求める。以下に、画素データの
流れに基づきながら動作の詳細について説明をする。ま
ず、サーチウィンドウの画素データの入力について説明
する。
Next, the block identifying unit 6000 detects the minimum distortion for each current image frame block from the input distortions and obtains a motion vector. The details of the operation will be described below based on the flow of pixel data. First, input of pixel data in the search window will be described.

【0142】参照画像データ出力ユニット2000から
出力されたサーチウィンドウの画素データは、入力レジ
スタIR(3,0),IR(3,3),IR(3,
5),IR(3,8)のデータ入力端子YDiを介して
それぞれ入力される。参照画像データ出力ユニット20
00からの画素データの出力は、期間c1の前から開始
され、IR(x,y)のフリップフロップ4120にデ
ータ入力端子Aを介して入力され、クロックパルス信号
CK1に同期してラッチされる。以後、IR(x,y)
へのデータの入力は、このフリップフロップ4120へ
の画素データのラッチ時を意味するものとする。
The pixel data of the search window output from the reference image data output unit 2000 are input registers IR (3,0), IR (3,3), IR (3,3).
5) and IR (3, 8) are input via data input terminals YDi. Reference image data output unit 20
The output of the pixel data from 00 starts before the period c1, is input to the IR (x, y) flip-flop 4120 via the data input terminal A, and is latched in synchronization with the clock pulse signal CK1. Hereafter, IR (x, y)
The input of data into the flip-flop 4120 means that the pixel data is latched into the flip-flop 4120.

【0143】本実施例では、サーチウィンドウは11行
×5列の画素からなり、画素データb1(x,y)、b
2(x,y)と座標で表す。ここで、x=0〜4,y=
0〜5である。順次、IR(x,y)に入力された画素
データは、1列毎にIR(x,y)からプロセッサエレ
メントPE(x,y)およびサイドレジスタSR(x,
y)へ出力され、転送される。
In this embodiment, the search window consists of pixels of 11 rows × 5 columns, and the pixel data b1 (x, y), b
2 (x, y) and coordinates. Here, x = 0 to 4, y =
It is 0-5. The pixel data sequentially input to IR (x, y) is obtained from IR (x, y) and processor element PE (x, y) and side register SR (x, y) for each column.
y) and forwarded.

【0144】入力レジスタIR(x,y)への画素デー
タの入力および転送について、詳しく説明すると、クロ
ックパルス信号CK1の1クロック目に同期して、図2
3に示すように、IR(3,0),IR(3,5)へ画
素データb1(0,2),b2(0,2)がそれぞれ入
力される。次いで、クロックパルス信号CK1の2クロ
ック目に同期して、図24に示すように、入力レジスタ
IR(3,0)、IR(3,5)から1つ下の入力レジ
スタIR(3,1)、IR(3,6)へ画素データb1
(0,2)、b2(0,2)が転送され、さらに、入力
レジスタIR(3,0)、IR(3,3)、IR(3,
5)、IR(3,8)へ画素データb1(0,1)、b
1(0,4)、b2(0,1)、b2(0,4)がそれ
ぞれ入力される。
The input and transfer of pixel data to the input register IR (x, y) will be described in detail. In synchronization with the first clock of the clock pulse signal CK1, FIG.
As shown in 3, the pixel data b1 (0,2) and b2 (0,2) are input to IR (3,0) and IR (3,5), respectively. Next, in synchronization with the second clock of the clock pulse signal CK1, as shown in FIG. 24, the input register IR (3,1) one level below the input registers IR (3,0), IR (3,5). , IR (3,6) to pixel data b1
(0,2) and b2 (0,2) are transferred, and the input registers IR (3,0), IR (3,3), IR (3,3)
5), pixel data b1 (0, 1), b to IR (3, 8)
1 (0, 4), b2 (0, 1), and b2 (0, 4) are input, respectively.

【0145】次いで、クロックパルス信号CK1の3ク
ロック目に同期して、図25に示すように、入力レジス
タIR(3,0)、IR(3,1)、IR(3,3)、
IR(3,5)、IR(3,6)、IR(3,8)から
1つ下の入力レジスタIR(3,1)、IR(3,
2)、IR(3,4)、IR(3,6)、IR(3,
7)、IR(3,9)へ画素データb1(0,1)、b
1(0,2)、b1(0,4)、b2(0,1)、b2
(0,2)、b2(0,4)が転送され、さらに、入力
レジスタIR(3,0)、IR(3,3)、IR(3,
5)、IR(3,8)へ画素データb1(0,0)、b
1(0,3)、b2(0,0)、b2(0,3)がそれ
ぞれ入力される。ここまでで、サーチウィンドウの1列
目の画素データb1(0,y)、b2(0,y)が全
て、参照画像データ出力ユニット2000から、入力レ
ジスタへ入力されたことになる。
Then, in synchronization with the third clock of the clock pulse signal CK1, as shown in FIG. 25, the input registers IR (3,0), IR (3,1), IR (3,3),
IR (3,5), IR (3,6), input register IR (3,1), IR (3,
2), IR (3,4), IR (3,6), IR (3,3)
7), pixel data b1 (0, 1), b to IR (3, 9)
1 (0, 2), b1 (0, 4), b2 (0, 1), b2
(0,2) and b2 (0,4) are transferred, and the input registers IR (3,0), IR (3,3), IR (3,3)
5), pixel data b1 (0,0), b to IR (3,8)
1 (0, 3), b2 (0, 0), and b2 (0, 3) are input, respectively. Up to this point, all pixel data b1 (0, y) and b2 (0, y) in the first column of the search window have been input from the reference image data output unit 2000 to the input register.

【0146】以後、参照画像データ出力ユニット200
0および入力レジスタIR(x,y)は、上記の処理を
サーチウィンドウの各列毎にクロックパルス信号CK1
の3クロック毎に繰り返していく。つまり、nを整数と
するとき、クロックパルス信号CK1の(3n+1)ク
ロック目に同期して、IR(3,0)、IR(3,5)
へ画素データb1(n,2)、b2(n,2)がそれぞ
れ入力され、次いで、クロックパルス信号CK1の(3
n+2)クロック目に同期して、入力レジスタIR
(3,0)、IR(3,5)から1つ下の入力レジスタ
IR(3,1)、IR(3,6)へ画素データb1
(n,2)、b2(n,2)が転送され、さらに、入力
レジスタIR(3,0)、IR(3,3)、IR(3,
5)、IR(3,8)へ画素データb1(n,1)、b
1(n,4)、b2(n,1)、b2(n,4)がそれ
ぞれ入力され、次いで、クロックパルス信号CK1の
(3n+3)クロック目に同期して、入力レジスタIR
(3,0)、IR(3,1)、IR(3,3)、IR
(3,5)、IR(3,6)、IR(3,8)から1つ
下の入力レジスタIR(3,1)、IR(3,2)、I
R(3,4)、IR(3,6)、IR(3,7)、IR
(3,9)へ画素データb1(n,1)、b1(n,
2)、b1(n,4)、b2(n,1)、b2(n,
2)、b2(n,4)が転送され、さらに、入力レジス
タIR(3,0)、IR(3,3)、IR(3,5)、
IR(3,8)へ画素データb1(n,0)、b1
(n,3)、b2(n,0)、b2(n,3)がそれぞ
れ入力され、サーチウィンドウの(n+1)列目の画素
データb1(n,y)、b2(n,y)が全て参照画像
データ出力ユニット2000から入力レジスタIR
(x,y)へ入力される。以上の動作は、サーチウィン
ドウの画素データが全て入力されるまでを1セットとし
て続けられる。
Thereafter, the reference image data output unit 200
0 and the input register IR (x, y) execute the above processing for each column of the search window by the clock pulse signal CK1.
Is repeated every three clocks. That is, when n is an integer, IR (3,0) and IR (3,5) are synchronized with the (3n + 1) th clock of the clock pulse signal CK1.
The pixel data b1 (n, 2) and b2 (n, 2) are respectively input to the clock pulse signal CK1 and (3) of the clock pulse signal CK1.
n + 2) In synchronization with the clock, the input register IR
(3,0), the pixel data b1 to the input registers IR (3,1) and IR (3,6) one level below IR (3,5)
(N, 2) and b2 (n, 2) are transferred, and the input registers IR (3, 0), IR (3, 3), IR (3, 3)
5), pixel data b1 (n, 1), b to IR (3,8)
1 (n, 4), b2 (n, 1) and b2 (n, 4) are input, respectively, and then in synchronization with the (3n + 3) th clock of the clock pulse signal CK1, the input register IR
(3,0), IR (3,1), IR (3,3), IR
Input registers IR (3,1), IR (3,2), I one level below (3,5), IR (3,6), IR (3,8)
R (3,4), IR (3,6), IR (3,7), IR
The pixel data b1 (n, 1), b1 (n,
2), b1 (n, 4), b2 (n, 1), b2 (n,
2) and b2 (n, 4) are transferred, and the input registers IR (3,0), IR (3,3), IR (3,5),
Pixel data b1 (n, 0), b1 to IR (3, 8)
(N, 3), b2 (n, 0), and b2 (n, 3) are input, and all pixel data b1 (n, y) and b2 (n, y) in the (n + 1) th column of the search window are input. Input register IR from reference image data output unit 2000
(X, y). The above operation is continued as one set until all the pixel data of the search window is input.

【0147】次に、入力レジスタへ入力保持されたサー
チウィンドウの画素データをプロセッサエレメントおよ
びサイドレジスタへ転送し、プロセッサエレメントおよ
びサイドレジスタ内を繰り返し転送しながら、サーチウ
ィンドウの画素データを参照画像フォーマット通りに入
力し配置する動作について説明する。プロセッサエレメ
ントおよびサイドレジスタ内の画素データの転送処理
は、各PE(x,y)およびSR(x,y)内のセレク
タ3410、セレクタ3110およびセレクタ4210
が選択するデータ入力端子の切り替えによって実現され
る。
Next, the pixel data of the search window input and held in the input register is transferred to the processor element and the side register, and the pixel data of the search window is transferred according to the reference image format while repeatedly transferring in the processor element and the side register. The operation of inputting and arranging in will be described. The transfer processing of the pixel data in the processor element and the side register is performed by the selector 3410, the selector 3110, and the selector 4210 in each PE (x, y) and SR (x, y).
Is realized by switching of the data input terminal selected by.

【0148】セレクタ3410、セレクタ3110およ
びセレクタ4210のデータ入力端子の切り替えは、信
号入力端子Sを介して入力されるパルス信号SJおよび
SLにより制御される。フィールドブロックのディスト
ーションを算出する場合には、パルス信号SJは、プロ
セッサエレメントPE(x,y)およびサイドレジスタ
SR(x,y)へ常時0が入力される。以下、画素デー
タの転送処理を、順を追って説明する。
Switching of the data input terminals of selector 3410, selector 3110 and selector 4210 is controlled by pulse signals SJ and SL input through signal input terminal S. When calculating the distortion of the field block, 0 is always input to the processor element PE (x, y) and the side register SR (x, y) as the pulse signal SJ. Hereinafter, the transfer process of the pixel data will be described step by step.

【0149】まず、プロセッサエレメントPE(x,
y)のセレクタ3110およびサイドレジスタSR
(x,y)のセレクタ4210の信号入力端子Sには、
サーチウィンドウの1列分の画素データが全て入力され
るまでは0が入力されていて、信号入力端子Sに入力さ
れる信号が1に変わると転送方向が変更される。詳しく
説明すると、期間c3において、パルス信号SLは1と
なり、各セレクタに信号入力端子Sを介して信号1が入
力される。このため、各セレクタではデータ入力端子B
とデータ出力端子Yが電気的に接続され、各レジスタお
よびプロセッサエレメントのデータ入力端子YLiを介
して画素データが入力され、フリップフロップに保持さ
れ、クロックパルス信号CK1の4クロック目に同期し
て、各フリップフロップのデータ出力端子Yを介して出
力される。
First, the processor element PE (x,
y) Selector 3110 and side register SR
The signal input terminal S of the (x, y) selector 4210 has:
0 is input until all pixel data for one column of the search window is input, and when the signal input to the signal input terminal S changes to 1, the transfer direction is changed. More specifically, in the period c3, the pulse signal SL becomes 1, and the signal 1 is input to each selector via the signal input terminal S. Therefore, each selector has a data input terminal B
And the data output terminal Y are electrically connected, pixel data is input via the data input terminal YLi of each register and the processor element, held in the flip-flop, and synchronized with the fourth clock of the clock pulse signal CK1, It is output via the data output terminal Y of each flip-flop.

【0150】このようにして、図26に示すように、画
素データb1(0,y)およびb2(0,y)が入力レ
ジスタIR(3,y)から、それぞれ左側の各PE
(2,y)またはSR(2,y)へ転送される。次い
で、期間c4において、パルス信号SLは0となり、各
セレクタに信号入力端子Sを介して信号0が入力され、
このため、各セレクタではデータ入力端子Aとデータ出
力端子Yが電気的に接続され、奇数列の各PE(2,
y)およびSR(2,y)のデータ入力端子YUiを介
して画素データが入力され、フリップフロップに保持さ
れ、クロックパルス信号CK1の5クロック目に同期し
て、各フリップフロップのデータ出力端子Yを介して出
力される。
Thus, as shown in FIG. 26, the pixel data b1 (0, y) and b2 (0, y) are transferred from the input register IR (3, y) to the left PEs.
(2, y) or SR (2, y). Next, in the period c4, the pulse signal SL becomes 0, and the signal 0 is input to each selector via the signal input terminal S.
For this reason, in each selector, the data input terminal A and the data output terminal Y are electrically connected, and the PEs (2,
y) and SR (2, y), pixel data is input via the data input terminal YUi, held in the flip-flop, and synchronized with the fifth clock of the clock pulse signal CK1, the data output terminal Y of each flip-flop. Is output via.

【0151】このようにして、図27に示すように、画
素データb1(0,y)およびb2(0,y)が各PE
(2,y)およびSR(2,y)から、それぞれ一つ上
側の各PE(2,y−1)またはSR(2,y−1)へ
転送される。同様にして、図28に示すように、クロッ
クパルス信号CK1の6クロック目に同期して、画素デ
ータb1(0,y)およびb2(0,y)が、各PE
(2,y−1)またはSR(2,y−1)から、それぞ
れ上側の各PE(2,y−2)またはSR(2,y−
2)へ転送される。
In this way, as shown in FIG. 27, the pixel data b1 (0, y) and b2 (0, y) are stored in each PE.
From (2, y) and SR (2, y), the data is transferred to each upper PE (2, y-1) or SR (2, y-1). Similarly, as shown in FIG. 28, the pixel data b1 (0, y) and b2 (0, y) are synchronized with each PE in synchronization with the sixth clock of the clock pulse signal CK1.
From (2, y-1) or SR (2, y-1), each PE (2, y-2) or SR (2, y-) on the upper side, respectively.
Transferred to 2).

【0152】次いで、期間c6において、パルス信号S
Lが1となり、各セレクタに信号入力端子Sを介して信
号1が入力される。このため、各セレクタではデータ入
力端子Bとデータ出力端子Yが電気的に接続され、各プ
ロセッサエレメントおよびサイドレジスタのデータ入力
端子YLiを介して画素データが入力され、フリップフ
ロップに保持され、クロックパルス信号CK1の7クロ
ック目に同期して、各フリップフロップのデータ出力端
子Yを介して出力される。
Next, in the period c6, the pulse signal S
L becomes 1, and the signal 1 is input to each selector via the signal input terminal S. Therefore, in each selector, the data input terminal B and the data output terminal Y are electrically connected, the pixel data is input through the data input terminal YLi of each processor element and the side register, and the pixel data is held in the flip-flop and the clock pulse is input. It is output via the data output terminal Y of each flip-flop in synchronization with the 7th clock of the signal CK1.

【0153】このようにして、図29に示すように、画
素データb1(1,y)およびb2(1,y)が、入力
レジスタIR(3,y)から、それぞれ左側の各PE
(2,y)またはSR(2,y)へ転送され、画素デー
タb1(0,y)およびb2(0,y)が、各PE
(2,y−2)またはSR(2,y−2)から、それぞ
れ左側の各PE(1,y−2)またはSR(1,y−
2)へ転送される。
Thus, as shown in FIG. 29, the pixel data b1 (1, y) and b2 (1, y) are transferred from the input register IR (3, y) to the left PEs.
(2, y) or SR (2, y) and pixel data b1 (0, y) and b2 (0, y) are transferred to each PE.
From (2, y-2) or SR (2, y-2), PE (1, y-2) or SR (1, y-) on the left side, respectively.
Transferred to 2).

【0154】次いで、期間c7において、パルス信号S
Lが0となり、クロックパルス信号CK1の8クロック
目に同期して、画素データb1(1,y)およびb2
(1,y)が、各PE(2,y)またはSR(2,y)
から、それぞれ上側の各PE(2,y+1)またはSR
(2,y+1)へ転送され、画素データb1(0,y)
およびb2(0,y)が、各PE(1,y−2)または
SR(1,y−2)から、それぞれ下側の各PE(1,
y−1)またはSR(1,y−1)へ転送される。
Next, in the period c7, the pulse signal S
L becomes 0, and the pixel data b1 (1, y) and b2 are synchronized with the eighth clock of the clock pulse signal CK1.
(1, y) is each PE (2, y) or SR (2, y)
From each PE (2, y + 1) or SR on the upper side
(2, y + 1) and the pixel data b1 (0, y)
And b2 (0, y) are lower PEs (1, y-2) or SR (1, y-2), respectively.
y-1) or SR (1, y-1).

【0155】同様にして、クロックパルス信号CK1の
9クロック目に同期して、画素データb1(1,y)お
よびb2(1,y)が、各PE(2,y−1)またはS
R(2,y−1)から、それぞれ上側の各PE(2,y
−2)またはSR(2,y−2)へ転送され、画素デー
タb1(0,y)およびb2(0,y)が、各PE
(1,y−1)またはSR(1,y−1)から、それぞ
れ下側の各PE(1,y)またはSR(1,y)へ転送
される。
Similarly, in synchronization with the 9th clock of the clock pulse signal CK1, the pixel data b1 (1, y) and b2 (1, y) are transferred to PE (2, y-1) or S.
From R (2, y-1), each upper PE (2, y
-2) or SR (2, y-2) and pixel data b1 (0, y) and b2 (0, y) are transferred to each PE.
The data is transferred from (1, y-1) or SR (1, y-1) to each PE (1, y) or SR (1, y) on the lower side.

【0156】次いで、期間c9において、パルス信号S
Lが1となり、図30に示すように、クロックパルス信
号CK1の10クロック目に同期して、画素データb1
(2,y)およびb2(2,y)が、入力レジスタIR
(3,y)から、それぞれ左側の各PE(2,y)また
はSR(2,y)へ転送され、画素データb1(1,
y)およびb2(1,y)が、各PE(2,y−2)ま
たはSR(2,y−2)から、それぞれ左側の各PE
(1,y−2)またはSR(1,y−2)へ転送され、
画素データb1(0,y)およびb2(0,y)が、各
PE(1,y)またはSR(1,y)から、それぞれ左
側の各PE(0,y)またはSR(0,y)へ転送され
る。
Next, in the period c9, the pulse signal S
L becomes 1, and as shown in FIG. 30, the pixel data b1 is synchronized with the 10th clock of the clock pulse signal CK1.
(2, y) and b2 (2, y) are input registers IR
(3, y) is transferred to each PE (2, y) or SR (2, y) on the left side, and pixel data b1 (1,
y) and b2 (1, y) are PEs on the left side of each PE (2, y-2) or SR (2, y-2).
(1, y-2) or SR (1, y-2),
Pixel data b1 (0, y) and b2 (0, y) are each left PE (0, y) or SR (0, y) from each PE (1, y) or SR (1, y). Transferred to.

【0157】以上の様にして、プロセッサエレメントお
よびサイドレジスタ内の画素データは、nを整数とし
て、クロックパルス信号CK1の(3n+4)クロック
目に同期して、各プロセッサエレメントおよびサイドレ
ジスタ間を右から左へ水平方向に転送され、クロックパ
ルス信号CK1の(3n+6)クロック目までは奇数列
の各プロセッサエレメントおよびサイドレジスタでは一
つずつ上へ転送され、偶数列の各プロセッサエレメント
およびサイドレジスタでは一つずつ下へ転送され、以
後、上記動作を繰り返す。
As described above, the pixel data in the processor element and the side register are synchronized from the right between each processor element and the side register in synchronization with the (3n + 4) th clock of the clock pulse signal CK1 where n is an integer. It is transferred horizontally to the left, and is transferred upward one by one in each processor element and side register in the odd column up to the (3n + 6) th clock of the clock pulse signal CK1, and one in each processor element and side register in the even column. One by one, the above operation is repeated thereafter.

【0158】以上により、図30に示すように、クロッ
クパルス信号CK1の10クロック目において、全ての
プロセッサエレメント内にサーチウィンドウの画素デー
タb1(x,y)およびb2(x,y)が入力保持され
る。このようにして、サーチウィンドウ内の画素データ
が、プロセッサエレメント内に参照画像フォーマット通
りに配置されると、各プロセッサエレメントでは、信号
出力ユニット8000から出力されるパルス信号LD1
に同期してディストーションの算出処理が開始される。
なお、以後、クロックパルス信号CK1の10クロック
目から18クロック目までの間、各プロセッサエレメン
トではディストーションの算出が実行されるが、その間
も、プロセッサエレメントおよびサイドレジスタ内の画
素データの転送処理は引き続き行われ、全てのサーチウ
ィンドウの画素データが入力される。
As described above, as shown in FIG. 30, at the tenth clock of the clock pulse signal CK1, the pixel data b1 (x, y) and b2 (x, y) of the search window are input and held in all the processor elements. To be done. In this way, when the pixel data in the search window is arranged in the processor element according to the reference image format, the pulse signal LD1 output from the signal output unit 8000 is output in each processor element.
The distortion calculation process is started in synchronization with.
Note that, thereafter, the distortion calculation is executed in each processor element from the 10th clock to the 18th clock of the clock pulse signal CK1, but during that time, the transfer processing of the pixel data in the processor element and the side register continues. Then, the pixel data of all search windows are input.

【0159】次に、ディストーション算出処理について
説明する。ディストーション算出処理は、各プロセッサ
エレメントにて行われる。また、プロセッサエレメント
は、ディストーション算出手段3000内の配置位置に
より、奇数列と、偶数列に大別されるが、これは各列毎
の画素データのディストーション算出処理を行う画素デ
ータの順序が異なるだけで、処理の方法および対応する
現画像ブロックの画素データは同じである。
Next, the distortion calculation process will be described. The distortion calculation process is performed by each processor element. Further, the processor elements are roughly classified into an odd column and an even column depending on the arrangement position in the distortion calculation means 3000, but this is different only in the order of the pixel data for performing the distortion calculation process of the pixel data for each column. Therefore, the processing method and the pixel data of the corresponding current image block are the same.

【0160】つまり、奇数列のプロセッサエレメントP
E(x,y)においては、候補ブロックの画素データが
b1(x,y),b1(x,y+1),b1(x,y+
2),b1(x+1,y),...および、画素データ
b2(x,y),b2(x,y+1),b2(x,y+
2),b2(x+1,y),...の順に入力され、偶
数列のPE(x,y)においては、画素データb1
(x,y+2),b1(x,y+1),b1(x,
y),b1(x+1,y+2),...および、画素デ
ータb2(x,y+2),b2(x,y+1),b2
(x,y),b2(x+1,y+2),...の順に入
力され、現画像データ出力ユニット1000からPE
(x,y)に入力される現画像ブロックの画素データ
は、奇数列のプロセッサエレメントPE(x,y)へ
は、画素データa1(x,y),a1(x,y+1),
a1(x,y+2),a1(x+1,y),...およ
び、画素データa2(x,y),a2(x,y+1),
a2(x,y+2),a2(x+1,y),...の順
に入力され、偶数列のPE(x,y)へは、画素データ
a1(x,y+2),a1(x,y+1),a1(x,
y),a1(x+1,y+2),...および、画素デ
ータa2(x,y+2),a2(x,y+1),a2
(x,y),a2(x+1,y+2),...の順に入
力され、ディストーションの算出が行われる。
That is, the odd-numbered column processor elements P
In E (x, y), the pixel data of the candidate block is b1 (x, y), b1 (x, y + 1), b1 (x, y +
2), b1 (x + 1, y),. . . And pixel data b2 (x, y), b2 (x, y + 1), b2 (x, y +
2), b2 (x + 1, y),. . . Are input in the order of, and in the even-numbered PE (x, y), the pixel data b1
(X, y + 2), b1 (x, y + 1), b1 (x,
y), b1 (x + 1, y + 2),. . . And pixel data b2 (x, y + 2), b2 (x, y + 1), b2
(X, y), b2 (x + 1, y + 2),. . . , And the current image data output unit 1000
The pixel data of the current image block input to (x, y) is transferred to the pixel elements a1 (x, y), a1 (x, y + 1), a1 (x, y + 1), to the processor elements PE (x, y) in the odd columns.
a1 (x, y + 2), a1 (x + 1, y),. . . And pixel data a2 (x, y), a2 (x, y + 1),
a2 (x, y + 2), a2 (x + 1, y),. . . Are input in this order, and pixel data a1 (x, y + 2), a1 (x, y + 1), a1 (x, PE (x, y) to even-numbered columns are input.
y), a1 (x + 1, y + 2) ,. . . And pixel data a2 (x, y + 2), a2 (x, y + 1), a2
(X, y), a2 (x + 1, y + 2) ,. . . , And the distortion is calculated.

【0161】ディストーション算出処理は、各プロセッ
サエレメントのディストーション算出部3200におい
て行われる。期間c9において、パルス信号LD1が1
となり、反転器3250に信号入力端子Sを介して入力
され、信号出力端子Yから信号0が出力される。論理和
演算器3260では、信号入力端子Aに0が入力され、
データ出力端子Yからデータ0が出力される。これによ
り、加算器3230の第2データ入力端子Bの値が0と
される。これで、加算器3230の積算値がクリアさ
れ、クロックパルス信号CK1の10クロック目からデ
ィストーション算出処理が開始される。
The distortion calculation process is performed in the distortion calculation section 3200 of each processor element. In the period c9, the pulse signal LD1 is 1
Then, the signal is input to the inverter 3250 via the signal input terminal S, and the signal 0 is output from the signal output terminal Y. In the OR calculator 3260, 0 is input to the signal input terminal A,
Data 0 is output from the data output terminal Y. As a result, the value of the second data input terminal B of the adder 3230 is set to 0. Thus, the integrated value of the adder 3230 is cleared, and the distortion calculation process is started from the tenth clock of the clock pulse signal CK1.

【0162】まず、奇数列のプロセッサエレメントPE
(x,y)における演算処理について説明する。クロッ
クパルス信号CK1の10クロック目に同期して、奇数
列のプロセッサエレメントPE(x,y)では、画素デ
ータb1(x,y)およびb2(x,y)が、フリップ
フロップ3120からデータ出力端子Yを介して出力さ
れ、減算器3210に、第1データ入力端子Aを介して
入力される。同時に、減算器3210の第2データ入力
端子Bを介して、現画像データ出力ユニット1000か
ら画素データa1(x,y)およびa2(x,y)が入
力され、 b1(x,y)-a1(x,y) および b2(x,y)-a2(x,y) が演算され、データ出力端子Yから出力される。正数変
換器3220では、上記データがデータ入力端子Aから
入力され、正数変換され、 |b1(x,y)-a1(x,y)| および |b2(x,y)-a2(x,y)| が、データ出力端子Yから出力される。加算器3230
では、第1データ入力端子Aから上記データが入力さ
れ、第2データ入力端子Bから入力されるデータ0と加
算され、 |b1(x,y)-a1(x,y)| および |b2(x,y)-a2(x,y)| が、データ出力端子Yから出力され、フリップフロップ
3240のデータ入力端子Aを介して、フリップフロッ
プ3240に入力保持される。
First, odd-numbered processor elements PE
The calculation processing at (x, y) will be described. In synchronization with the tenth clock of the clock pulse signal CK1, the pixel data b1 (x, y) and b2 (x, y) are output from the flip-flop 3120 to the data output terminal in the odd-numbered processor elements PE (x, y). The signal is output via Y and input to the subtractor 3210 via the first data input terminal A. At the same time, the pixel data a1 (x, y) and a2 (x, y) are input from the current image data output unit 1000 via the second data input terminal B of the subtractor 3210, and b1 (x, y) -a1 (x, y) and b2 (x, y) -a2 (x, y) are calculated and output from the data output terminal Y. In the positive number converter 3220, the above data is input from the data input terminal A, positively converted, and | b1 (x, y) -a1 (x, y) | and | b2 (x, y) -a2 (x , y) | is output from the data output terminal Y. Adder 3230
Then, the above data is input from the first data input terminal A, added with the data 0 input from the second data input terminal B, and | b1 (x, y) -a1 (x, y) | and | b2 ( x, y) -a2 (x, y) | is output from the data output terminal Y and is input and held in the flip-flop 3240 via the data input terminal A of the flip-flop 3240.

【0163】次いで、クロックパルス信号CK1の11
クロック目に同期して、画素データb1(x,y+1)
およびb2(x,y+1)が、フリップフロップ312
0からデータ出力端子Yを介して出力され、減算器32
10に第1データ入力端子Aを介して入力される。同時
に、減算器3210の第2データ入力端子Bを介して、
現画像データ出力ユニット1000から画素データa1
(x,y+1)およびa2(x,y+1)が入力され、 b1(x,y+1)-a1(x,y+1) および b2(x,y+1)-a2(x,y+1) が演算され、データ出力端子Yから出力される。正数変
換器3220では、上記データがデータ入力端子Aから
入力され、正数変換され、 |b1(x,y+1)-a1(x,y+1)| および |b2(x,y+1)-a2(x,y+1)| が、データ出力端子Yから出力され、加算器3230の
第1データ入力端子Aを介して入力される。また、前ク
ロックで計算され、フリップフロップ3240に保持さ
れたデータが、データ出力端子Yを介して出力され、論
理積演算器3260を通して、加算器3230の第2デ
ータ入力端子Bを介して入力される。加算器3230で
は、上記二つのデータが加算され、 |b1(x,y) -a1(x,y)|+|b1(x,y+1)-a1(x,y+1)| および |b2(x,y) -a2(x,y)|+|b2(x,y+1)-a2(x,y+1)| が算出されて、データ出力端子Yから出力され、フリッ
プフロップ3240のデータ入力端子Aを介して、フリ
ップフロップ3240に入力保持される。
Next, 11 of the clock pulse signal CK1
In synchronization with the clock, the pixel data b1 (x, y + 1)
And b2 (x, y + 1) are the flip-flop 312
0 through the data output terminal Y,
10 through a first data input terminal A. At the same time, via the second data input terminal B of the subtractor 3210,
Pixel data a1 from the current image data output unit 1000
(X, y + 1) and a2 (x, y + 1) are input and b1 (x, y + 1) -a1 (x, y + 1) and b2 (x, y + 1) -a2 (x, y + 1) ) Is calculated and output from the data output terminal Y. In the positive number converter 3220, the above data is input from the data input terminal A, positive number conversion is performed, and | b1 (x, y + 1) -a1 (x, y + 1) | and | b2 (x, y + 1) -a2 (x, y + 1) | is output from the data output terminal Y and input via the first data input terminal A of the adder 3230. In addition, the data calculated by the previous clock and held in the flip-flop 3240 is output through the data output terminal Y, is input through the AND operator 3260 and is input through the second data input terminal B of the adder 3230. It In the adder 3230, the above two data are added, and | b1 (x, y) -a1 (x, y) | + | b1 (x, y + 1) -a1 (x, y + 1) | and | b2 (x, y) -a2 (x, y) | + | b2 (x, y + 1) -a2 (x, y + 1) | is calculated and output from the data output terminal Y, and the flip-flop 3240 The data is input and held in the flip-flop 3240 via the data input terminal A.

【0164】同様にして、処理を続け、最終的にクロッ
クパルス信号CK1の18クロック目に同期して、加算
器3230により および が算出されて、データ出力端子Yから出力され、フリッ
プフロップ3240のデータ入力端子Aを介して、フリ
ップフロップ3240に入力保持される。上記式(e
1)、(e2)をディストーションD(x,y)とす
る。
Similarly, the processing is continued, and finally, in synchronization with the 18th clock of the clock pulse signal CK1, the adder 3230 is used. and Is calculated, is output from the data output terminal Y, and is input and held in the flip-flop 3240 via the data input terminal A of the flip-flop 3240. The above formula (e
Let 1) and (e2) be distortion D (x, y).

【0165】また、偶数列のプロセッサエレメントPE
(x,y)においても同様に、クロックパルス信号CK
1の18クロック目に同期して、加算器3230により および が算出されて、データ出力端子Yから出力され、フリッ
プフロップ3240のデータ入力端子Aを介して、フリ
ップフロップ3240に入力保持される。上記式(e
3)、(e4)は、式(e1)、(e2)と同値であ
る。よって、全てのプロセッサエレメントPE(x,
y)において、対応するディストーションD(x,y)
が求められたことになる。
Further, the processor elements PE in even columns
Similarly, in (x, y), the clock pulse signal CK
In synchronization with the 18th clock of 1, by the adder 3230 and Is calculated, is output from the data output terminal Y, and is input and held in the flip-flop 3240 via the data input terminal A of the flip-flop 3240. The above formula (e
3) and (e4) have the same values as the expressions (e1) and (e2). Therefore, all processor elements PE (x,
In y), the corresponding distortion D (x, y)
Is required.

【0166】次に、期間c18において、パルス信号L
D1が1となり、セレクタ3310に信号入力端子Sを
介して入力される。これにより、セレクタ3310では
データ入力端子Bとデータ出力端子Yが電気的に接続さ
れる。次いで、クロックパルス信号CK1の19クロッ
ク目に同期して、上記ディストーションD(x,y)
が、フリップフロップ3240のデータ出力端子Yを介
して出力され、セレクタ3310に第2データ入力端子
Bを介して入力される。セレクタ3310の第2データ
入力端子Bを介して入力されたD(x,y)は、データ
出力端子Yを介して出力され、フリップフロップ332
0にデータ入力端子Aを介して入力保持される。
Next, in the period c18, the pulse signal L
D1 becomes 1 and is input to the selector 3310 via the signal input terminal S. Thus, in the selector 3310, the data input terminal B and the data output terminal Y are electrically connected. Next, in synchronization with the 19th clock of the clock pulse signal CK1, the distortion D (x, y)
Is output via the data output terminal Y of the flip-flop 3240 and input to the selector 3310 via the second data input terminal B. D (x, y) input via the second data input terminal B of the selector 3310 is output via the data output terminal Y, and the flip-flop 332
The input is held at 0 via the data input terminal A.

【0167】次いで、期間c19において、パルス信号
LD1は0となるため、セレクタ3310では、第1デ
ータ入力端子Aとデータ出力端子Yが電気的に接続さ
れ、以後パルス信号LD1が変更されるまでセレクタ3
310では、第1データ入力端子Aを介して入力される
データが選択される。さらに、クロックパルス信号CK
1の20クロック目に同期して、ディストーションD
(x,y)は、PE(x,y)のフリップフロップ33
20のデータ出力端子Yを介して出力され、PE(x,
y)のデータ出力端子Doを介して、ブロック特定ユニ
ット6000または別のPE(x−1,y)へ転送され
る。ここで、PE(0,y)からブロック特定ユニット
6000へD(0,y)が出力される。また、D(1,
y)は、PE(0,y)に入力端子Diを介して入力さ
れ、PE(0,y)のセレクタ3310に第1データ入
力端子Aを介して入力される。セレクタ3310に入力
されたD(1,y)は、データ出力端子Yを介して出力
され、フリップフロップ3320にデータ入力端子Aを
介して入力保持される。また、D(2,y)は、PE
(1,y)に入力端子Diを介して入力され、PE
(1,y)のセレクタ3310に第1データ入力端子A
を介して入力される。セレクタ3310に入力されたD
(2,y)は、データ出力端子Yを介して出力され、フ
リップフロップ3320にデータ入力端子Aを介して入
力保持される。
Next, since the pulse signal LD1 becomes 0 in the period c19, the selector 3310 causes the first data input terminal A and the data output terminal Y to be electrically connected to each other until the pulse signal LD1 is changed thereafter. Three
At 310, data input via the first data input terminal A is selected. In addition, the clock pulse signal CK
In synchronization with the 20th clock of 1, distortion D
(X, y) is the flip-flop 33 of PE (x, y)
20 through a data output terminal Y of PE, and PE (x,
It is transferred to the block identification unit 6000 or another PE (x-1, y) via the data output terminal Do of y). Here, D (0, y) is output from PE (0, y) to the block identification unit 6000. Also, D (1,
y) is input to PE (0, y) via the input terminal Di and is input to the selector 3310 of PE (0, y) via the first data input terminal A. D (1, y) input to the selector 3310 is output via the data output terminal Y, and input / held to the flip-flop 3320 via the data input terminal A. In addition, D (2, y) is PE
Input to (1, y) via input terminal Di, PE
The (1, y) selector 3310 is connected to the first data input terminal A.
Be entered via. D input to the selector 3310
(2, y) is output via the data output terminal Y and is input and held in the flip-flop 3320 via the data input terminal A.

【0168】さらに、クロックパルス信号CK1の21
クロック目に同期して、ディストーションD(x,y)
は、PE(x−1,y)のフリップフロップ3320の
データ出力端子Yを介して出力され、PE(x−1,
y)のデータ出力端子Doを介して、ブロック特定ユニ
ット6000または別のPE(x−2,y)へ転送され
る。ここで、PE(0,y)からブロック特定ユニット
6000へD(1,y)が出力される。また、D(2,
y)は、PE(0,y)に入力端子Diを介して入力さ
れ、PE(0,y)のセレクタ3310に第1データ入
力端子Aを介して入力される。セレクタ3310に入力
されたD(2,y)は、データ出力端子Yを介して出力
され、フリップフロップ3320にデータ入力端子Aを
介して入力保持される。
Further, the clock pulse signal CK1 21
In synchronization with the clock, the distortion D (x, y)
Is output via the data output terminal Y of the flip-flop 3320 of PE (x−1, y), and PE (x−1, y) is output.
It is transferred to the block identification unit 6000 or another PE (x-2, y) via the data output terminal Do of y). Here, D (1, y) is output from PE (0, y) to the block identification unit 6000. Also, D (2,
y) is input to PE (0, y) via the input terminal Di and is input to the selector 3310 of PE (0, y) via the first data input terminal A. D (2, y) input to the selector 3310 is output via the data output terminal Y and is input and held in the flip-flop 3320 via the data input terminal A.

【0169】さらに、クロックパルス信号CK1の22
クロック目に同期して、ディストーションD(x,y)
は、PE(x−2,y)のフリップフロップ3320の
データ出力端子Yを介して出力され、PE(x−2,
y)のデータ出力端子Doを介して、ブロック特定ユニ
ット6000へ転送される。ここで、PE(0,y)か
らブロック特定ユニット6000へD(2,y)が出力
される。
Furthermore, 22 of the clock pulse signal CK1
In synchronization with the clock, the distortion D (x, y)
Is output via the data output terminal Y of the flip-flop 3320 of PE (x−2, y), and PE (x−2, y) is output.
It is transferred to the block specifying unit 6000 via the data output terminal Do of y). Here, D (2, y) is output from PE (0, y) to the block specifying unit 6000.

【0170】以上の動作により、全てのプロセッサエレ
メントPE(x,y)で算出されたディストーションD
(x,y)が転送されながら、ブロック特定ユニット6
000に出力される。次に、ブロック特定ユニット60
00における動きベクトル検出処理について説明する。
Through the above operation, the distortion D calculated by all the processor elements PE (x, y)
While (x, y) is being transferred, the block identification unit 6
Output to 000. Next, the block identification unit 60
The motion vector detection process in 00 will be described.

【0171】ブロック特定ユニット6000では、比較
器6110に各データ入力端子A0,A1,A2を介し
て、各プロセッサエレメントPE(x,y)によって求
められたそれぞれのディストーションD(x,y)が入
力される。まず、期間c19において、パルス信号LD
2に同期して、論理和演算器6150に信号入力端子S
を介して信号1が入力される。また、カウンタ6310
に信号入力端子CLを介して信号1が入力され、カウン
タ6310の内部データのカウントCTxが0にリセッ
トされる。
In the block specifying unit 6000, the distortion D (x, y) obtained by each processor element PE (x, y) is input to the comparator 6110 via each data input terminal A0, A1, A2. To be done. First, in the period c19, the pulse signal LD
In synchronism with 2, the signal input terminal S
The signal 1 is input through. Also, the counter 6310
The signal 1 is input to the signal via the signal input terminal CL, and the count CTx of the internal data of the counter 6310 is reset to 0.

【0172】次いで、パルス信号CK2の20クロック
目に同期して、D(0,0),D(0,1),D(0,
2)が、ブロック特定ユニット6000の最小ディスト
ーション検出ユニット6100の比較器6110にデー
タ入力端子A0,A1,A2を介してそれぞれ入力され
る。本実施例では、最小ディストーションLMDis=
D(0,0)とし、比較器6110では、データ入力端
子A0,A1,A2を介してそれぞれ入力されたデータ
が比較され、その中から最も小さいD(0,0)が選択
されて、データ出力端子Yを介してLMDis=D
(0,0)が出力され、最小ディストーションに対応す
るデータ入力端子A0によりLMVy=0がデータ出力
端子Mを介して出力される。
Then, in synchronization with the 20th clock of the pulse signal CK2, D (0,0), D (0,1), D (0,
2) is input to the comparator 6110 of the minimum distortion detection unit 6100 of the block identification unit 6000 via the data input terminals A0, A1 and A2, respectively. In this embodiment, the minimum distortion LMDis =
D (0,0), the comparator 6110 compares the data input via the data input terminals A0, A1, A2, selects the smallest D (0,0) from the data, and selects the data LMDis = D via output terminal Y
(0,0) is output, and LMVy = 0 is output via the data output terminal M by the data input terminal A0 corresponding to the minimum distortion.

【0173】論理和演算器6150では、信号入力端子
Sを介して信号1が入力されているので、データ入力端
子Bを介して入力されているデータ、すなわち、フリッ
プフロップ6140のデータ出力端子Yから出力され、
入力されているデータに関わらず、データ出力端子Yを
介してすべてのビットが1のデータ、すなわち、最大値
のデータが出力される。比較器6120では、データ入
力端子Aを介して入力されたLMDis=D(0,0)
と、データ入力端子Bを介して入力された上記最大値の
データを比較し、D(0,0)の方が小さいため信号出
力端子Yを介してMin=1が出力される。セレクタ6
130では、信号入力端子Sを介して信号1が入力され
るため、データ入力端子Aを介して入力されているD
(0,0)がデータ出力端子Yを介してフリップフロッ
プ6140に出力される。
In the logical OR calculator 6150, since the signal 1 is input through the signal input terminal S, the data input through the data input terminal B, that is, the data output terminal Y of the flip-flop 6140 is input. Is output,
Regardless of the input data, data with all the bits being 1, that is, the maximum value data is output via the data output terminal Y. In the comparator 6120, LMDis = D (0,0) input via the data input terminal A.
And the maximum value data input via the data input terminal B are compared. Since D (0,0) is smaller, Min = 1 is output via the signal output terminal Y. Selector 6
At 130, since the signal 1 is input via the signal input terminal S, D input via the data input terminal A is input.
(0,0) is output to the flip-flop 6140 via the data output terminal Y.

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

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

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

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

【0178】論理和演算器6150では、信号入力端子
Sを介して信号0が入力されているので、データ入力端
子Bを介して入力されているデータ、すなわち、フリッ
プフロップ6140のデータ出力端子Yから出力され、
入力されている前回最小ディストーションのD(0,
0)がデータ出力端子Yを介して出力される。比較器6
120では、データ入力端子Aを介して入力された上記
今回最小ディストーションLMDis=D(1,2)
と、データ入力端子Bを介して入力された上記前回最小
ディストーションのD(0,0)とを比較し、本実施例
ではD(0,0)の方が小さいとし、このため信号出力
端子Yを介してMin=0が出力される。セレクタ61
30では、信号入力端子Sを介して信号0が入力される
ため、データ入力端子Bを介して入力されているD
(0,0)がデータ出力端子Yを介してフリップフロッ
プ6140に出力される。
In the logical OR calculator 6150, the signal 0 is input through the signal input terminal S, so the data input through the data input terminal B, that is, the data output terminal Y of the flip-flop 6140 is input. Is output,
The previous minimum distortion D (0,
0) is output via the data output terminal Y. Comparator 6
At 120, the current minimum distortion LMDis = D (1,2) input via the data input terminal A.
And D (0,0) of the previous minimum distortion input via the data input terminal B are compared, and in this embodiment, D (0,0) is smaller, and therefore the signal output terminal Y Min = 0 is output via. Selector 61
In FIG. 30, since the signal 0 is input via the signal input terminal S, D input via the data input terminal B
(0,0) is output to the flip-flop 6140 via the data output terminal Y.

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

【0180】また、ブロック特定ユニット6000の動
きベクトル水平成分検出ユニット6300のカウンタ6
310では、CK2のパルス信号に同期して、カウント
アップされた出力カウントCTx=1が、カウント出力
端子Qnを介して出力される。セレクタ6320では、
信号入力端子Sを介して信号0が入力されるため、デー
タ入力端子Aがデータ出力端子Yと電気的に接続され、
前回データMx=0を入力し、データ出力端子Yを介し
てフリップフロップ6330に出力される。
Further, the counter 6 of the motion vector horizontal component detection unit 6300 of the block identification unit 6000
At 310, the counted-up output count CTx = 1 is output via the count output terminal Qn in synchronization with the pulse signal of CK2. In the selector 6320,
Since the signal 0 is input through the signal input terminal S, the data input terminal A is electrically connected to the data output terminal Y,
The previous data Mx = 0 is input and is output to the flip-flop 6330 via the data output terminal Y.

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

【0182】つまり、前回までに求められたディストー
ションおよびベクトル換算値が、それぞれフリップフロ
ップ6180、6280および6380に保持されたこ
とになる。以下、同様にして、パルス信号CK2の22
クロック目までに、全てのプロセッサエレメントPE
(x,y)で算出されたディストーションD(x,y)
がブロック特定ユニット6000へ入力され、パルス信
号CK2の23クロック目に同期して、ブロック特定ユ
ニット6000のフリップフロップ6140では、D
(2,1)がラッチされ、データ出力端子Yを介してフ
リップフロップ6180に出力される。ブロック特定ユ
ニット6000の換算テーブル6240では、データ入
力端子Aを介して入力されたデータMyが動きベクトル
に換算され、データ出力端子Yを介して換算データがフ
リップフロップ6280に出力される。ブロック特定ユ
ニット6000の換算テーブル6340では、データ入
力端子Aを介して入力されたデータMxが動きベクトル
に換算され、データ出力端子Yを介して換算データがフ
リップフロップ6380に出力される。
That is, the distortion and the vector conversion value obtained up to the previous time are held in the flip-flops 6180, 6280 and 6380, respectively. In the same manner, 22 of the pulse signal CK2
By the clock, all processor elements PE
Distortion D (x, y) calculated by (x, y)
Is input to the block specifying unit 6000, and in synchronization with the 23rd clock of the pulse signal CK2, in the flip-flop 6140 of the block specifying unit 6000,
(2, 1) is latched and output to the flip-flop 6180 via the data output terminal Y. In the conversion table 6240 of the block identification unit 6000, the data My input via the data input terminal A is converted into a motion vector, and the converted data is output to the flip-flop 6280 via the data output terminal Y. In the conversion table 6340 of the block identification unit 6000, the data Mx input via the data input terminal A is converted into a motion vector, and the converted data is output to the flip-flop 6380 via the data output terminal Y.

【0183】次いで、期間c23において、パルス信号
CK2のダウンエッヂに同期して、パルス信号SMVが
1となるため、ブロック特定ユニット6000のフリッ
プフロップ6180では、信号入力端子Sに信号1が入
力されるため、データ入力端子Aを介して入力されてい
るD(2,1)が、データ出力端子Yを介して出力され
る。ブロック特定ユニット6000のフリップフロップ
6280では、信号入力端子Sに信号1が入力されるた
め、データ入力端子Aを介して入力されている、動きベ
クトル垂直成分MVyとして換算テーブル6240で求
められたデータ0が、データ出力端子Yを介して出力さ
れる。ブロック特定ユニット6000のフリップフロッ
プ6380では、信号入力端子Sに信号1が入力される
ため、データ入力端子Aを介して入力されている、動き
ベクトル水平成分MVxとして換算テーブル6340で
求められたデータ1が、データ出力端子Yを介して出力
される。
Next, in the period c23, the pulse signal SMV becomes 1 in synchronization with the down edge of the pulse signal CK2, so that in the flip-flop 6180 of the block specifying unit 6000, the signal 1 is input to the signal input terminal S. Therefore, D (2,1) input via the data input terminal A is output via the data output terminal Y. In the flip-flop 6280 of the block specifying unit 6000, since the signal 1 is input to the signal input terminal S, the data 0 obtained from the conversion table 6240 as the motion vector vertical component MVy is input via the data input terminal A. Is output via the data output terminal Y. In the flip-flop 6380 of the block specifying unit 6000, since the signal 1 is input to the signal input terminal S, the data 1 obtained through the conversion table 6340 as the motion vector horizontal component MVx input via the data input terminal A. Is output via the data output terminal Y.

【0184】一方、プロセッサエレメントPE(0,
5),PE(0,6),PE(0,7),PE(1,
5),PE(1,6),PE(1,7),PE(2,
5),PE(2,6),PE(2,7)において算出さ
れたディストーションについても、同様に最小ディスト
ーションが検出され、動きベクトルが検出される。以上
により、2つの現画像フィールドブロック110に対応
する最小ディストーションMinDisと動きベクトル
MVx,yが求まる。
On the other hand, the processor element PE (0,
5), PE (0,6), PE (0,7), PE (1,
5), PE (1,6), PE (1,7), PE (2,
5), PE (2,6), and PE (2,7), the minimum distortion is similarly detected and the motion vector is detected. From the above, the minimum distortion MinDis and the motion vector MVx, y corresponding to the two current image field blocks 110 are obtained.

【0185】このようにして、ブロック特定ユニット6
000により、サーチウインドウ211および212内
の全ての候補ブロック311および312と現画像ブロ
ック111および112との間の最小ディストーション
MinDisおよび最小ディストーションに対応する動
きベクトルMVx,yが算出される。また、フレームブ
ロックのディストーションを算出する場合には、パルス
信号SJは、プロセッサエレメントPE(x,y)およ
びサイドレジスタSR(x,y)へ常時1が入力され
る。以下、画素データの転送処理を、順を追って説明す
る。
In this way, the block specifying unit 6
000 calculates the minimum distortion MinDis between all candidate blocks 311 and 312 and the current image blocks 111 and 112 in the search windows 211 and 212 and the motion vector MVx, y corresponding to the minimum distortion. When calculating the distortion of the frame block, 1 is always input to the processor element PE (x, y) and the side register SR (x, y) as the pulse signal SJ. Hereinafter, the transfer process of the pixel data will be described step by step.

【0186】まず、プロセッサエレメントPE(x,
y)のセレクタ3110およびサイドレジスタSR
(x,y)のセレクタ4210の信号入力端子Sには、
サーチウィンドウの1列分の画素データが全て入力され
るまでは0が入力されていて、信号入力端子Sに入力さ
れるパルス信号SLにより各セレクタの制御が行われ
る。以下に、画素データの流れに基づきながら動作の詳
細について説明をする。
First, the processor element PE (x,
y) Selector 3110 and side register SR
The signal input terminal S of the (x, y) selector 4210 has:
Until all pixel data for one column of the search window is input, 0 is input, and each selector is controlled by the pulse signal SL input to the signal input terminal S. The details of the operation will be described below based on the flow of pixel data.

【0187】まず、サーチウィンドウの画素データの入
力について説明する。参照画像データ出力ユニット20
00から出力されたサーチウィンドウの画素データは、
入力レジスタIR(3,0)、IR(3,8)のデータ
入力端子YDiを介してそれぞれ入力される。参照画像
データ出力ユニット2000からの画素データの出力
は、期間c1の前から開始され、IR(x,y)のフリ
ップフロップ4120にデータ入力端子Aを介して入力
され、クロックパルス信号CK1に同期してラッチされ
る。以後、入力レジスタIR(x,y)へのデータの入
力は、このフリップフロップ4120の画素データのラ
ッチ時を意味するものとする。
First, input of pixel data in the search window will be described. Reference image data output unit 20
The pixel data of the search window output from 00 is
The data is input via data input terminals YDi of input registers IR (3,0) and IR (3,8). The output of the pixel data from the reference image data output unit 2000 starts before the period c1, is input to the flip-flop 4120 of IR (x, y) via the data input terminal A, and is synchronized with the clock pulse signal CK1. Latched. Hereinafter, the input of data to the input register IR (x, y) means that the flip-flop 4120 latches the pixel data.

【0188】順次、入力レジスタに入力された画素デー
タは、1列毎に入力レジスタIR(x,y)からプロセ
ッサエレメントPE(x,y)およびサイドレジスタS
R(x,y)へ出力され、転送される。入力レジスタI
R(x,y)への画素データの入力および転送につい
て、詳しく説明すると、クロックパルス信号CK1の1
クロック目に同期して、図33に示すように、IR
(3,0)へ画素データb2(0,2)が入力される。
Pixel data sequentially input to the input register is input from the input register IR (x, y) to the processor element PE (x, y) and the side register S for each column.
Output to R (x, y) and transferred. Input register I
The input and transfer of pixel data to R (x, y) will be described in detail.
As shown in FIG. 33, the IR is synchronized with the clock
Pixel data b2 (0, 2) is input to (3, 0).

【0189】次いで、クロックパルス信号CK1の2ク
ロック目に同期して、図34に示すように、入力レジス
タIR(3,0)から1つ下のIR(3,1)へ画素デ
ータb2(0,2)が転送され、さらに、IR(3,
0)、IR(3,8)へ画素データb1(0,2)、b
1(0,5)が入力される。次いで、クロックパルス信
号CK1の3クロック目に同期して、図35に示すよう
に、入力レジスタIR(3,0)、IR(3,1)、I
R(3,8)から1つ下のIR(3,1)、IR(3,
2)、IR(3,9)へ画素データb1(0,2)、b
2(0,2)、b1(0,5)が転送され、さらに、I
R(3,0)、IR(3,8)へ画素データb2(0,
1)、b2(0,4)が入力される。
Then, in synchronism with the second clock of the clock pulse signal CK1, as shown in FIG. 34, the pixel data b2 (0 , 2) is transferred, and further IR (3,
0), IR (3, 8) to pixel data b1 (0, 2), b
1 (0, 5) is input. Then, in synchronization with the third clock of the clock pulse signal CK1, as shown in FIG. 35, input registers IR (3,0), IR (3,1), I
IR (3,1), IR (3,1), one below R (3,8)
2), pixel data b1 (0,2), b to IR (3,9)
2 (0,2), b1 (0,5) are transferred, and further I
R (3,0), IR (3,8) pixel data b2 (0,
1) and b2 (0,4) are input.

【0190】次いで、クロックパルス信号CK1の4ク
ロック目に同期して、図36に示すように、入力レジス
タIR(3,0)、IR(3,1)、IR(3,2)、
IR(3,8)、IR(3,9)から1つ下のIR
(3,1)、IR(3,2)、IR(3,5)、IR
(3,9)、IR(3,10)へ画素データb2(0,
1)、b1(0,2)、b2(0,2)、b2(0,
4)、b1(0,5)が転送され、さらに、IR(3,
0)、IR(3,8)へ画素データb1(0,1)、b
1(0,4)がそれぞれ入力される。
Then, in synchronization with the fourth clock of the clock pulse signal CK1, as shown in FIG. 36, the input registers IR (3,0), IR (3,1), IR (3,2),
IR (3,8), IR one below IR (3,9)
(3,1), IR (3,2), IR (3,5), IR
(3,9), IR (3,10) to pixel data b2 (0,
1), b1 (0,2), b2 (0,2), b2 (0,
4), b1 (0,5) are transferred, and IR (3,3)
0), IR (3, 8) to pixel data b1 (0, 1), b
1 (0, 4) is input.

【0191】ここで、フレームブロックディストーショ
ン算出時、IR(3,5)のセレクタ4110の信号入
力端子Sには、常に1が入力されるので、データ入力
は、IR(3,2)からの入力となる。よって、特にこ
とわらない限り、フレームブロックディストーション算
出時には、IR(3,2)からIR(3,5)への転送
を便宜上ひとつ下への転送と呼ぶ。
Here, when calculating the frame block distortion, 1 is always input to the signal input terminal S of the selector 4110 of IR (3,5), so the data input is from IR (3,2). Becomes Therefore, unless otherwise specified, when calculating the frame block distortion, the transfer from IR (3,2) to IR (3,5) is referred to as a downward transfer for convenience.

【0192】次いで、クロックパルス信号CK1の5ク
ロック目に同期して、図37に示すように、入力レジス
タIR(3,0)、IR(3,1)、IR(3,2)、
IR(3,5)、IR(3,8)、IR(3,9)、I
R(3,10)から1つ下のIR(3,1)、IR
(3,2)、IR(3,5)、IR(3,6)、IR
(3,9)、IR(3,10)、IR(3,11)へ画
素データb1(0,1)、b2(0,1)、b1(0,
2)、b2(0,2)、b1(0,4)、b2(0,
4)、b1(0,5)が転送され、さらに、IR(3,
0)、IR(3,8)へ画素データb2(0,0)、b
2(0,3)がそれぞれ入力される。
Then, in synchronization with the fifth clock of the clock pulse signal CK1, as shown in FIG. 37, the input registers IR (3,0), IR (3,1), IR (3,2),
IR (3,5), IR (3,8), IR (3,9), I
IR (3,1), IR one level below R (3,10)
(3,2), IR (3,5), IR (3,6), IR
Pixel data b1 (0,1), b2 (0,1), b1 (0,) to (3,9), IR (3,10), IR (3,11)
2), b2 (0,2), b1 (0,4), b2 (0,
4), b1 (0,5) are transferred, and IR (3,3)
0), IR (3,8) to pixel data b2 (0,0), b
2 (0, 3) is input respectively.

【0193】次いで、クロックパルス信号CK1の6ク
ロック目に同期して、図38に示すように、入力レジス
タIR(3,0)、IR(3,1)、IR(3,2)、
IR(3,5)、IR(3,6)、IR(3,8)、I
R(3,9)、IR(3,10)、IR(3,11)か
ら1つ下のIR(3,1)、IR(3,2)、IR
(3,5)、IR(3,6)、IR(3,7)、IR
(3,9)、IR(3,10)、IR(3,11)、I
R(3,12)へ画素データb2(0,0)、b1
(0,1)、b2(0,1)、b1(0,2)、b2
(0,2)、b2(0,3)、b1(0,4)、b2
(0,4)、b1(0,5)が転送され、さらに、IR
(3,0)、IR(3,8)へ画素データb1(0,
0)、b1(0,3)がそれぞれ入力される。
Then, in synchronization with the sixth clock of the clock pulse signal CK1, as shown in FIG. 38, the input registers IR (3,0), IR (3,1), IR (3,2),
IR (3,5), IR (3,6), IR (3,8), I
IR (3,1), IR (3,2), IR, which is one lower than R (3,9), IR (3,10), IR (3,11)
(3,5), IR (3,6), IR (3,7), IR
(3,9), IR (3,10), IR (3,11), I
Pixel data b2 (0,0), b1 to R (3,12)
(0,1), b2 (0,1), b1 (0,2), b2
(0,2), b2 (0,3), b1 (0,4), b2
(0,4) and b1 (0,5) are transferred, and IR
(3, 0) and pixel data b1 (0,
0) and b1 (0, 3) are input.

【0194】ここまでで、サーチウィンドウの1列目の
画素データb1(0,y)、b2(0,y)が全て、参
照画像データ出力ユニット2000から、入力レジスタ
IR(x,y)へ入力されたことになる。以後、参照画
像データ出力ユニット2000および入力レジスタIR
(x,y)は、上記の処理をサーチウィンドウの各列毎
にクロックパルス信号CK1の6クロック毎に繰り返し
ていく。
Up to this point, all the pixel data b1 (0, y), b2 (0, y) in the first column of the search window are input from the reference image data output unit 2000 to the input register IR (x, y). It was done. Thereafter, the reference image data output unit 2000 and the input register IR
In (x, y), the above processing is repeated for each column of the search window for every six clocks of the clock pulse signal CK1.

【0195】つまり、nを整数とするとき、クロックパ
ルス信号CK1の(6n+1)クロック目に同期して、
IR(3,0)へ画素データb2(n,2)が入力さ
れ、次いで、クロックパルス信号CK1の(6n+2)
クロック目に同期して、入力レジスタIR(3,0)か
ら1つ下のIR(3,1)へ画素データb2(n,2)
が転送され、さらに、IR(3,0)、IR(3,8)
へ画素データb1(n,2)、b1(n,5)がそれぞ
れ入力される。
In other words, when n is an integer, in synchronization with the (6n + 1) th clock of the clock pulse signal CK1,
Pixel data b2 (n, 2) is input to IR (3,0), and then (6n + 2) of clock pulse signal CK1
In synchronization with the clock, the pixel data b2 (n, 2) is transferred from the input register IR (3, 0) to the next lower IR (3, 1).
Are transferred, and IR (3,0), IR (3,8)
The pixel data b1 (n, 2) and b1 (n, 5) are input to the pixel data.

【0196】次いで、クロックパルス信号CK1の(6
n+3)クロック目に同期して、入力レジスタIR
(3,0)、IR(3,1)、IR(3,8)から1つ
下のIR(3,1)、IR(3,2)、IR(3,9)
へ画素データb1(n,2)、b2(n,2)、b1
(n,5)が転送され、さらに、IR(3,0)、IR
(3,8)へ画素データb2(n,1)、b2(n,
4)がそれぞれ入力される。
Next, the clock pulse signal CK1 (6
n + 3) In synchronization with the clock, the input register IR
IR (3,1), IR (3,2), IR (3,9), which is one lower than (3,0), IR (3,1), IR (3,8).
Pixel data b1 (n, 2), b2 (n, 2), b1
(N, 5) is transferred, and further IR (3,0), IR
Pixel data b2 (n, 1) and b2 (n, to (3, 8)
4) is input.

【0197】次いで、クロックパルス信号CK1の(6
n+4)クロック目に同期して、入力レジスタIR
(3,0)、IR(3,1)、IR(3,2)、IR
(3,8)、IR(3,9)から1つ下のIR(3,
1)、IR(3,2)、IR(3,5)、IR(3,
9)、IR(3,10)へ画素データb2(n,1)、
b1(n,2)、b2(n,2)、b2(n,4)、b
1(n,5)が転送され、さらに、IR(3,0)、I
R(3,8)へ画素データb1(n,1)、b1(n,
4)がそれぞれ入力される。
Next, the clock pulse signal CK1 (6
n + 4) In synchronization with the clock, the input register IR
(3,0), IR (3,1), IR (3,2), IR
(3,8), IR (3,9), one lower IR (3,8)
1), IR (3,2), IR (3,5), IR (3,3)
9), pixel data b2 (n, 1) to IR (3,10),
b1 (n, 2), b2 (n, 2), b2 (n, 4), b
1 (n, 5) is transferred, and further IR (3,0), I
Pixel data b1 (n, 1), b1 (n, to R (3, 8)
4) is input.

【0198】次いで、クロックパルス信号CK1の(6
n+5)クロック目に同期して、入力レジスタIR
(3,0)、IR(3,1)、IR(3,2)、IR
(3,5)、IR(3,8)、IR(3,9)、IR
(3,10)から1つ下のIR(3,1)、IR(3,
2)、IR(3,5)、IR(3,6)、IR(3,
9)、IR(3,10)、IR(3,11)へ画素デー
タb1(n,1)、b2(n,1)、b1(n,2)、
b2(n,2)、b1(n,4)、b2(n,4)、b
1(n,5)が転送され、さらに、IR(3,0)、I
R(3,8)へ画素データb2(n,0)、b2(n,
3)がそれぞれ入力される。
Then, the clock pulse signal CK1 ((6
n + 5) In synchronization with the clock, the input register IR
(3,0), IR (3,1), IR (3,2), IR
(3,5), IR (3,8), IR (3,9), IR
IR (3,1), IR (3,1) one level below (3,10)
2), IR (3,5), IR (3,6), IR (3,
9), IR (3,10), IR (3,11) to pixel data b1 (n, 1), b2 (n, 1), b1 (n, 2),
b2 (n, 2), b1 (n, 4), b2 (n, 4), b
1 (n, 5) is transferred, and further IR (3,0), I
Pixel data b2 (n, 0), b2 (n, to R (3, 8)
3) is input.

【0199】次いで、クロックパルス信号CK1の(6
n+6)クロック目に同期して、入力レジスタIR
(3,0)、IR(3,1)、IR(3,2)、IR
(3,5)、IR(3,6)、IR(3,8)、IR
(3,9)、IR(3,10)、IR(3,11)から
1つ下のIR(3,1)、IR(3,2)、IR(3,
5)、IR(3,6)、IR(3,7)、IR(3,
9)、IR(3,10)、IR(3,11)、IR
(3,12)へ画素データb2(n,0)、b1(n,
1)、b2(n,1)、b1(n,2)、b2(n,
2)、b2(n,3)、b1(n,4)、b2(n,
4)、b1(n,5)が転送され、さらに、IR(3,
0)、IR(3,8)へ画素データb1(n,0)、b
1(n,3)がそれぞれ入力され、サーチウィンドウの
(n+1)列目の画素データb1(n,y)、b2
(n,y)が全て参照画像データ出力ユニット2000
から入力レジスタへ入力される。
Then, the clock pulse signal CK1 (6
n + 6) In synchronization with the clock, the input register IR
(3,0), IR (3,1), IR (3,2), IR
(3,5), IR (3,6), IR (3,8), IR
IR (3,1), IR (3,2), IR (3,9), IR (3,10), IR (3,10), and IR (3,2)
5), IR (3,6), IR (3,7), IR (3,
9), IR (3,10), IR (3,11), IR
Pixel data b2 (n, 0), b1 (n,
1), b2 (n, 1), b1 (n, 2), b2 (n,
2), b2 (n, 3), b1 (n, 4), b2 (n,
4), b1 (n, 5) are transferred, and IR (3,5)
0), IR (3, 8) to pixel data b1 (n, 0), b
1 (n, 3) are input respectively, and the pixel data b1 (n, y) and b2 of the (n + 1) th column of the search window are input.
(N, y) are all reference image data output units 2000
Input to the input register.

【0200】以上の動作はサーチウィンドウの画素デー
タが全て入力されるまでを1セットとして続けられる。
次に、入力レジスタIR(x,y)へ入力保持されたサ
ーチウィンドウの画素データをプロセッサエレメントP
E(x,y)およびサイドレジスタSR(x,y)へ転
送させ、PE(x,y)およびSR(x,y)内を繰り
返し転送させながら、サーチウィンドウの画素データを
参照画像フォーマット通りに入力させ、配置させる動作
について説明する。
The above operation is continued with one set until all the pixel data of the search window are input.
Next, the pixel data of the search window input and held in the input register IR (x, y) is processed by the processor element P.
E (x, y) and side register SR (x, y) are transferred to PE (x, y) and SR (x, y) repeatedly, while the pixel data of the search window is transferred according to the reference image format. The operation of inputting and placing will be described.

【0201】プロセッサエレメントPE(x,y)およ
びサイドレジスタSR(x,y)での画素データの転送
処理は、各PE(x,y)およびSR(x,y)内のセ
レクタ3410、セレクタ3110およびセレクタ42
10が選択するデータ入力端子の切り替えによって実現
される。セレクタ3410、セレクタ3110およびセ
レクタ4210のデータ入力端子の切り替えは、信号入
力端子Sを介して入力されるパルス信号SJ、SLによ
り制御される。
Pixel data transfer processing by the processor element PE (x, y) and the side register SR (x, y) is performed by the selector 3410 and selector 3110 in each PE (x, y) and SR (x, y). And selector 42
This is realized by switching of the data input terminal selected by 10. Switching between the data input terminals of the selector 3410, the selector 3110, and the selector 4210 is controlled by pulse signals SJ and SL input through the signal input terminal S.

【0202】上述したように、フレームブロックのディ
ストーションを算出する場合には、パルス信号SJは、
プロセッサエレメントPE(x,y)へ常時1が入力さ
れる。以下、画素データの転送処理を順を追って説明す
る。まず、プロセッサエレメントPE(x,y)のセレ
クタ3110およびサイドレジスタSR(x,y)のセ
レクタ4210の信号入力端子Sには、サーチウィンド
ウの1列分の画素データが全て入力されるまでは0が入
力されていて、信号入力端子Sに入力されるパルス信号
SLが1に変わると、転送方向が変更される。
As described above, when calculating the distortion of the frame block, the pulse signal SJ is
1 is always input to the processor element PE (x, y). Hereinafter, the transfer processing of the pixel data will be described step by step. First, 0 is applied to the signal input terminal S of the selector 3110 of the processor element PE (x, y) and the signal input terminal S of the selector 4210 of the side register SR (x, y) until all the pixel data of one column of the search window is input. Is input, and when the pulse signal SL input to the signal input terminal S changes to 1, the transfer direction is changed.

【0203】詳しく説明すると、期間c6において、パ
ルス信号SLは1となり、各セレクタに信号入力端子S
を介して信号1が入力される。このため、各セレクタで
は、データ入力端子Bとデータ出力端子Yが電気的に接
続される。各サイドレジスタSR(x,y)およびプロ
セッサエレメントPE(x,y)では、クロックパルス
信号CK1の7クロック目に同期して、データ入力端子
YLiを介して画素データが入力され、各セレクタから
データ出力端子Yを介して、各フリップフロップへ画素
データが出力される。
More specifically, in the period c6, the pulse signal SL becomes 1 and the signal input terminal S is supplied to each selector.
The signal 1 is input through. Therefore, in each selector, the data input terminal B and the data output terminal Y are electrically connected. In each of the side registers SR (x, y) and the processor element PE (x, y), pixel data is input via the data input terminal YLi in synchronization with the seventh clock of the clock pulse signal CK1, and data is output from each selector. Pixel data is output to each flip-flop via the output terminal Y.

【0204】このようにして、図39に示すように、画
素データb1(0,y)およびb2(0,y)が、入力
レジスタIR(3,y)から、それぞれ左側の各サイド
レジスタSR(2,y)またはプロセッサエレメントP
E(2,y)へ転送される。次いで、期間c7におい
て、パルス信号SLは0となり、各セレクタに信号入力
端子Sを介して信号0が入力され、このため、各セレク
タではデータ入力端子Aとデータ出力端子Yが電気的に
接続される。各サイドレジスタSR(2,y)およびプ
ロセッサエレメントPE(2,y)では、クロックパル
ス信号CK1の8クロック目に同期して、データ入力端
子YUiを介して画素データが入力され、各セレクタか
らデータ出力端子Yを介して、各フリップフロップへ画
素データが出力される。
In this way, as shown in FIG. 39, the pixel data b1 (0, y) and b2 (0, y) are transferred from the input register IR (3, y) to the left side registers SR (respectively). 2, y) or processor element P
E (2, y). Next, in the period c7, the pulse signal SL becomes 0, and the signal 0 is input to each selector via the signal input terminal S. Therefore, in each selector, the data input terminal A and the data output terminal Y are electrically connected. You. In each of the side registers SR (2, y) and the processor element PE (2, y), pixel data is input via the data input terminal YUi in synchronization with the eighth clock of the clock pulse signal CK1, and data is output from each selector. Pixel data is output to each flip-flop via the output terminal Y.

【0205】このようにして、図40に示すように、画
素データb1(0,y)およびb2(0,y)が、各サ
イドレジスタSR(2,y)またはプロセッサエレメン
トPE(2,y)から、それぞれ一つ上側の各SR
(2,y−1)またはPE(2,y−1)へ転送され
る。ただし、プロセッサエレメントPE(2,5)から
の転送は、PE(2,2)へ転送される。以下の説明で
も、特にことわらない限りPE(2,5)から一つ上へ
の転送は、PE(2,2)への転送とする。また、PE
(1,2)から一つ下への転送は、PE(1,5)への
転送とし、PE(0,5)から一つ上への転送は、PE
(0,2)への転送とする。
Thus, as shown in FIG. 40, the pixel data b1 (0, y) and b2 (0, y) are transferred to the side registers SR (2, y) or the processor elements PE (2, y). From each one on the upper SR
(2, y-1) or PE (2, y-1). However, the transfer from the processor element PE (2, 5) is transferred to PE (2, 2). Also in the following description, the transfer from PE (2, 5) to the next higher level is a transfer to PE (2, 2) unless otherwise specified. Also, PE
The transfer from (1, 2) to the next lower position is a transfer to PE (1, 5), and the transfer from PE (0, 5) to the upper position is PE (1, 5).
Transfer to (0, 2).

【0206】同様にして、クロックパルス信号CK1の
9クロック目には、画素データb1(0,y)およびb
2(0,y)は、各サイドレジスタSR(2,y−1)
またはプロセッサエレメントPE(2,y−1)から、
それぞれクロックパルス信号CK1に同期して同様に転
送処理を繰り返し、1つ上の各SR(2,y−2)また
はPE(2,y−2)へ転送される。
Similarly, at the ninth clock of the clock pulse signal CK1, pixel data b1 (0, y) and b
2 (0, y) is the value of each side register SR (2, y-1)
Or from the processor element PE (2, y-1),
Similarly, the transfer process is repeated in synchronization with the clock pulse signal CK1 and transferred to the next higher SR (2, y-2) or PE (2, y-2).

【0207】以下、クロックパルス信号CK1の10、
11、12クロック目にも、画素データb1(0,y)
またはb2(0,y)は、同様に転送され、各サイドレ
ジスタSR(2,y−5)およびプロセッサエレメント
PE(2,y−5)へ転送される。次いで、期間c12
において、パルス信号SLが1となり、各セレクタに信
号入力端子Sを介して信号1が入力される。このため、
各セレクタではデータ入力端子Bとデータ出力端子Yが
電気的に接続され、各サイドレジスタSR(x,y)お
よびプロセッサエレメントPE(x,y)のデータ入力
端子YLiを介して画素データが入力され、クロックパ
ルス信号CK1の13クロック目に同期して、各フリッ
プフロップに画素データがラッチされ、データ出力端子
Yを介して出力される。
Hereinafter, the clock pulse signal CK1 of 10,
At the eleventh and twelfth clocks, the pixel data b1 (0, y)
Alternatively, b2 (0, y) is similarly transferred and transferred to each side register SR (2, y-5) and processor element PE (2, y-5). Next, period c12
, The pulse signal SL becomes 1, and the signal 1 is input to each selector via the signal input terminal S. For this reason,
In each selector, a data input terminal B and a data output terminal Y are electrically connected, and pixel data is input via the data input terminals YLi of each side register SR (x, y) and the processor element PE (x, y). In synchronization with the thirteenth clock of the clock pulse signal CK1, pixel data is latched in each flip-flop and output via the data output terminal Y.

【0208】このようにして、図41に示すように、画
素データb1(1,y)およびb2(1,y)が、入力
レジスタIR(3,y)から、それぞれ左側の各サイド
レジスタSR(2,y)またはプロセッサエレメントP
E(2,y)へ転送され、画素データb1(0,y)お
よびb2(0,y)が、各SR(2,y−5)またはP
E(2,y−5)から、それぞれ左側の各SR(1,y
−5)またはPE(1,y−5)へ転送される。
Thus, as shown in FIG. 41, the pixel data b1 (1, y) and b2 (1, y) are transferred from the input register IR (3, y) to the left side register SR (). 2, y) or processor element P
The pixel data b1 (0, y) and b2 (0, y) transferred to E (2, y) are transferred to SR (2, y-5) or P, respectively.
From E (2, y-5), each SR (1, y
-5) or PE (1, y-5).

【0209】次いで、クロックパルス信号CK1の14
クロック目に同期して、パルス信号SLは既に0となっ
ているため、各セレクタに信号入力端子Sを介して信号
0が入力され、このため、各セレクタではデータ入力端
子Aとデータ出力端子Yが電気的に接続され、各サイド
レジスタSR(x,y)およびプロセッサエレメントP
E(x,y)のデータ入力端子YUi,YDiを介して
画素データが入力され、各フリップフロップに画素デー
タがラッチされ、データ出力端子Yを介して出力され
る。
Then, the clock pulse signal CK1 of 14
Since the pulse signal SL has already become 0 in synchronization with the clock, the signal 0 is input to each selector via the signal input terminal S. Therefore, each selector has a data input terminal A and a data output terminal Y. Are electrically connected, and each side register SR (x, y) and the processor element P
Pixel data is input via data input terminals YUi, YDi of E (x, y), pixel data is latched by each flip-flop, and output via a data output terminal Y.

【0210】以下、フィールドブロックの画素データの
転送と同様にして、クロックパルス信号CK1の19ク
ロック目において、図42に示すように、全てのプロセ
ッサエレメントPE(x,y)およびサイドレジスタS
R(x,y)内に、サーチウィンドウの画素データb1
(x,y)およびb2(x,y)が入力保持される。以
上のようにして、サーチウィンドウ内の画素データが、
プロセッサエレメントPE(x,y)内に参照画像フォ
ーマット通りに配置されると、各PE(x,y)では、
信号出力ユニット8000から出力されるパルス信号L
D1を入力後に、ディストーションの算出処理が開始さ
れる。
Thereafter, similarly to the transfer of the pixel data of the field block, at the 19th clock of the clock pulse signal CK1, as shown in FIG. 42, all processor elements PE (x, y) and side registers S
Pixel data b1 of the search window in R (x, y)
(X, y) and b2 (x, y) are input and held. As described above, the pixel data in the search window is
When arranged according to the reference image format in the processor element PE (x, y), in each PE (x, y),
The pulse signal L output from the signal output unit 8000
After inputting D1, the distortion calculation process is started.

【0211】以後、クロックパルス信号CK1の19ク
ロック目から36クロック目までの間、各プロセッサエ
レメントPE(x,y)では、ディストーションの算出
が実行されるが、その間も、PE(x,y)およびSR
(x,y)内の画素データの転送処理は引き続き行わ
れ、全てのサーチウィンドウの画素データが入力され
る。
After that, distortion is calculated in each processor element PE (x, y) from the 19th clock to the 36th clock of the clock pulse signal CK1, and PE (x, y) is also calculated during that period. And SR
The transfer processing of the pixel data in (x, y) is continuously performed, and the pixel data of all search windows is input.

【0212】次いで、期間c36において、パルス信号
LD1が1となり、各プロセッサエレメントPE(x,
y)のセレクタ3310が、入力データを切り換えて、
クロックパルス信号CK1の37クロック目に同期し
て、フリップフロップ3240からディストーションD
(x,y)をフリップフロップ3320へ入力させる。
以降、クロックパルス信号CK1の38、39、40ク
ロック目に同期して、全てのプロセッサエレメントPE
(x,y)で算出されたディストーションD(x,y)
が、フリップフロップ3320からブロック特定ユニッ
ト6000に出力される。
Next, in the period c36, the pulse signal LD1 becomes 1 and each processor element PE (x,
y) the selector 3310 switches the input data,
The distortion D from the flip-flop 3240 is synchronized with the 37th clock of the clock pulse signal CK1.
Input (x, y) to the flip-flop 3320.
Thereafter, in synchronization with the 38th, 39th and 40th clocks of the clock pulse signal CK1, all processor elements PE are synchronized.
Distortion D (x, y) calculated by (x, y)
Is output from the flip-flop 3320 to the block identification unit 6000.

【0213】ブロック特定ユニット6000における動
きベクトル検出処理については、フィールドブロックに
おける動きベクトル検出の処理と同様にできるので、説
明は省略する。以上により、本装置によって、フィール
ドブロックにおける動きベクトルとフレームブロックに
おける動きベクトルを求めることができる。
The motion vector detecting process in the block specifying unit 6000 can be performed in the same manner as the motion vector detecting process in the field block, and therefore the description thereof will be omitted. As described above, the present apparatus can obtain the motion vector in the field block and the motion vector in the frame block.

【0214】図43、図44は、本発明の別の実施対応
を示したものである。図43に示す装置は、図4に示す
ディストーション算出手段3000の第1、第3サイド
レジスタグループをひとつにし、第2プロセッサエレメ
ントグループと第1サイドレジスタグループを接続し
て、第2プロセッサエレメントグループからあふれる画
素データを第1サイドレジスタグループに転送するもの
である。
43 and 44 show another implementation of the present invention. In the device shown in FIG. 43, the first and third side register groups of the distortion calculation means 3000 shown in FIG. 4 are unified, the second processor element group and the first side register group are connected, and the second processor element group is connected. The overflowing pixel data is transferred to the first side register group.

【0215】図44は、図43に示すディストーション
算出手段3000を具体的に示したものである。これに
より、第1実施例よりも少ない数のサイドレジスタで動
きベクトル探索ができるようになる。図45は、第1、
第3サイドレジスタグループの数を第2サイドレジスタ
グループの数と同じにし、第1サイドレジスタグループ
と第3サイドレジスタグループとを接続したものであ
り、図44の第1サイドレジスタグループのサイドレジ
スタ数を第2サイドレジスタグループのサイドレジスタ
数の2倍にしたものともいえる。
FIG. 44 specifically shows the distortion calculating means 3000 shown in FIG. As a result, a motion vector search can be performed with a smaller number of side registers than in the first embodiment. FIG. 45 shows the first,
The number of the third side register groups is the same as the number of the second side register groups, and the first side register group and the third side register group are connected to each other. Can be said to be twice the number of side registers in the second side register group.

【0216】図45に示すディストーション算出手段
は、フレームブロックのディストーションを算出すると
きに、第2プロセッサエレメントグループの最下行のプ
ロセッサエレメントが、サイドレジスタの代用をするこ
とにより、上記ディストーション算出手段よりさらにサ
イドレジスタ数を削減でき、しかも、フィールドブロッ
クのディストーションを探索時と同じ探索領域を探索す
ることができる。
In the distortion calculating means shown in FIG. 45, when the distortion of a frame block is calculated, the processor element in the bottom row of the second processor element group substitutes the side register, so that the distortion calculating means is further improved. The number of side registers can be reduced, and moreover, the same search area as when searching for the distortion of the field block can be searched.

【0217】[0219]

【発明の効果】請求項1記載の発明によれば、ディスト
ーション算出手段が、それぞれひとつの現画像ブロック
と、該現画像ブロックに対応する各候補ブロックとのデ
ィストーションを算出する複数のディストーション算出
ユニットを有し、各ディストーション算出ユニットの一
部が、他の一つのディストーション算出ユニットの一部
を共有するので、複数の現画像ブロックに対するディス
トーションが同時に算出でき、しかも、ディストーショ
ン算出ユニットの素子数を削減することができる。
According to the invention described in claim 1, the distortion calculating means includes a plurality of distortion calculating units for calculating the distortion between each one current image block and each candidate block corresponding to the current image block. Since, a part of each distortion calculation unit shares a part of the other one distortion calculation unit, it is possible to simultaneously calculate distortions for a plurality of current image blocks, and further reduce the number of elements of the distortion calculation unit. be able to.

【0218】請求項2記載の発明によれば、ディストー
ションを算出させるときの各候補ブロックの画素データ
を転送する経路が、第1画素データ転送保持ユニット、
第1ディストーション算出ユニットおよび第2画素デー
タ転送保持ユニットの間で転送させる第1転送経路と、
第2画素データ転送保持ユニット、第2ディストーショ
ン算出ユニットおよび第3画素データ転送保持ユニット
の間で転送させる第2転送経路と、を有しているので、
それぞれ別の現画像ブロックに対して同時にディストー
ションを求めることができ、また、第2画素データ転送
保持ユニットを共用しているので、第2画素データ転送
保持ユニットの分、少ない装置構成でそれぞれ別の現画
像ブロックに対してディストーションを求めることがで
きる。
According to the second aspect of the invention, the path for transferring the pixel data of each candidate block when calculating the distortion is the first pixel data transfer holding unit,
A first transfer path for transferring between the first distortion calculation unit and the second pixel data transfer holding unit;
And a second transfer path for transferring between the second pixel data transfer holding unit, the second distortion calculation unit, and the third pixel data transfer holding unit.
Distortions can be simultaneously obtained for different current image blocks, and since the second pixel data transfer / holding unit is shared, different second pixel data transfer / holding units can be used for different device configurations. The distortion can be calculated for the current image block.

【0219】請求項3記載の発明によれば、請求項2記
載の動きベクトル探索方法に加え、各フィールド候補ブ
ロックの画素データを、第1画素データ転送保持ユニッ
ト、第1ディストーション算出ユニット、第2ディスト
ーション算出ユニットおよび第3画素データ転送保持ユ
ニットの間で転送させる第3転送経路を有するので、第
1転送経路または第2転送経路によるディストーション
算出の探索領域よりも、広い探索領域を探索することが
できる。
According to the invention of claim 3, in addition to the motion vector search method of claim 2, the pixel data of each field candidate block is converted into a first pixel data transfer holding unit, a first distortion calculation unit, and a second distortion calculation unit. Since the third transfer path for transferring between the distortion calculation unit and the third pixel data transfer holding unit is provided, it is possible to search a wider search area than the search area for distortion calculation by the first transfer path or the second transfer path. it can.

【0220】請求項4記載の発明によれば、請求項3記
載の動きベクトル探索方法に加え、第2転送モードが選
択されたとき、ディストーション算出手段が、現画像フ
レームブロックに対し、該現画像フレームブロックと各
フレーム候補ブロックとの間の画像の差を表わす複数の
ディストーションを算出させるので、フィールドブロッ
クに対するディストーションとフレームブロックに対す
るディストーションとをそれぞれ求めることができる。
According to the invention described in claim 4, in addition to the motion vector search method according to claim 3, when the second transfer mode is selected, the distortion calculation means causes the current image frame block to present the current image. Since the plurality of distortions representing the image difference between the frame block and each frame candidate block are calculated, the distortion for the field block and the distortion for the frame block can be obtained respectively.

【0221】請求項5記載の発明によれば、請求項4記
載の動きベクトル探索方法に加え、第1ディストーショ
ン算出ユニットおよび第2ディストーション算出ユニッ
トが、それぞれ(H−N+1)×(L−M+1)個のプ
ロセッサエレメントを有するので、二つのH行L列のサ
ーチウィンドウ内の全てのN行M列の候補ブロックに対
して同時にディストーションを探索することができる。
According to the invention of claim 5, in addition to the motion vector search method of claim 4, each of the first distortion calculation unit and the second distortion calculation unit is (H-N + 1) × (L-M + 1). Since it has the processor elements, the distortion can be simultaneously searched for all the N-row and M-column candidate blocks in the two H-row and L-column search windows.

【0222】さらに、(L−M+1)個のプロセッサエ
レメントが、サイドレジスタの代用をするため、第3画
素データ転送保持ユニットの2×(N−1)×(L−M
+1)個のサイドレジスタと合わせ、(N×2−1)×
(L−M+1)個のサイドレジスタの機能を持ち、第1
ディストーション算出ユニットおよび第2ディストーシ
ョン算出ユニットは、合計で2×(H−N+1)×(L
−M+1)−(L−M+1)、すなわち、(H×2−N
×2+1)×(L−M+1)個のプロセッサエレメント
を持つため、(H×2−N×2+1)×(L−M+1)
個のプロセッサエレメントの両側に(N×2−1)×
(L−M+1)個のサイドレジスタを持っているのと同
等である。したがって、(H×2)行L列のサーチウィ
ンドウ内の全ての(N×2)行M列の候補ブロックに対
してディストーションを探索することができる。
Furthermore, since (L−M + 1) processor elements substitute for the side register, 2 × (N−1) × (L−M) of the third pixel data transfer holding unit.
+1) side registers, (N × 2-1) ×
It has the function of (L-M + 1) side registers,
The total of the distortion calculation unit and the second distortion calculation unit is 2 × (H−N + 1) × (L
-M + 1)-(L-M + 1), that is, (Hx2-N
Since it has × 2 + 1) × (L-M + 1) processor elements, (H × 2-N × 2 + 1) × (L-M + 1)
(N × 2-1) × on both sides of each processor element
It is equivalent to having (L−M + 1) side registers. Therefore, the distortion can be searched for for all candidate blocks of (N × 2) rows and M columns in the search window of (H × 2) rows and L columns.

【0223】また、フレームは同じ大きさの領域にフィ
ールドの2倍の画素数を持つので、上記により、同じ大
きさのフィールドとフレームのディストーションを探索
することができる。請求項6記載の発明によれば、請求
項4記載の動きベクトル探索方法に加え、第2画素デー
タ転送保持ユニットの(N−1)×(L−M+1)個の
サイドレジスタを共用することにより、第1ディストー
ション算出ユニット、第1画素データ転送保持ユニット
および第2画素データ転送保持ユニットが、(H−N+
1)×(L−M+1)個のプロセッサエレメントおよび
両側に(N−1)×(L−M+1)個のサイドレジスタ
を有し、第2ディストーション算出ユニット、第2画素
データ転送保持ユニットおよび第3画素データ転送保持
ユニットが、(H−N+1)×(L−M+1)個のプロ
セッサエレメントおよび両側に(N−1)×(L−M+
1)個のサイドレジスタを有するので、二つのH行L列
のサーチウィンドウ内の全てのN行M列の候補ブロック
に対して同時にディストーションを探索することができ
る。
Since the frame has twice as many pixels as the field in the area of the same size, the distortion of the field and the frame of the same size can be searched for by the above. According to the invention described in claim 6, in addition to the motion vector search method according to claim 4, by sharing (N-1) * (L-M + 1) side registers of the second pixel data transfer holding unit. , The first distortion calculation unit, the first pixel data transfer holding unit, and the second pixel data transfer holding unit are (H−N +
1) × (L−M + 1) processor elements and (N−1) × (L−M + 1) side registers on both sides, and a second distortion calculation unit, a second pixel data transfer holding unit and a third The pixel data transfer / hold unit has (H−N + 1) × (L−M + 1) processor elements and (N−1) × (L−M +) on both sides.
1) Since it has the side registers, it is possible to simultaneously search the distortion for all the N-row and M-column candidate blocks in the two H-row and L-column search windows.

【0224】さらに、第1ディストーション算出ユニッ
ト、第2ディストーション算出ユニット、第1画素デー
タ転送保持ユニットおよび第3画素データ転送保持ユニ
ットが、2×(H−N+1)×(L−M+1)個、すな
わち、{(H×2+1)−N×2+1}×(L−M+
1)個のプロセッサエレメントおよび両側に(N×2−
1)×(L−M+1)個のサイドレジスタを有するの
で、全てのプロセッサエレメントを有効に活用して、
(H×2+1)行L列のサーチウィンドウ内の全ての
(N×2)行M列の候補ブロックに対してディストーシ
ョンを探索することができる。
Furthermore, the first distortion calculation unit, the second distortion calculation unit, the first pixel data transfer holding unit and the third pixel data transfer holding unit are 2 × (H−N + 1) × (L−M + 1), that is, , {(H × 2 + 1) −N × 2 + 1} × (L−M +
1) processor elements and (N × 2-
1) Since it has × (L−M + 1) side registers, all processor elements are effectively utilized,
It is possible to search for distortion in all candidate blocks of (N × 2) rows and M columns in the search window of (H × 2 + 1) rows and L columns.

【0225】請求項7記載の発明によれば、請求項5お
よび6記載の動きベクトル探索方法に加え、サーチウィ
ンドウ内で隣り合う2つの画素列の画素データを互いに
列方向で逆方向に転送するよう、第1ディストーション
算出ユニットおよび第2ディストーション算出ユニット
内で入力画素データを列方向に往復移動させながら転送
経路に沿って転送するので、第1ディストーション算出
ユニットおよび第2ディストーション算出ユニット内の
列毎に転送方向を一方向にできるので、第1ディストー
ション算出ユニットおよび第2ディストーション算出ユ
ニット内の列方向の転送バスを削減することができる。
According to the invention described in claim 7, in addition to the motion vector search method according to claims 5 and 6, pixel data of two pixel columns adjacent in the search window are transferred in opposite directions in the column direction. As described above, since the input pixel data is transferred along the transfer path while reciprocating in the column direction in the first distortion calculation unit and the second distortion calculation unit, each column in the first distortion calculation unit and the second distortion calculation unit is transferred. Since the transfer direction can be made unidirectional, the transfer buses in the column direction in the first distortion calculation unit and the second distortion calculation unit can be reduced.

【0226】請求項8記載の発明によれば、ディストー
ションを算出させるときの各候補ブロックの画素データ
を転送する経路が、第1画素データ転送保持ユニット、
第1ディストーション算出ユニットおよび第2画素デー
タ転送保持ユニットの間で転送させる第1転送経路と、
第2画素データ転送保持ユニット、第2ディストーショ
ン算出ユニットおよび第1画素データ転送保持ユニット
の間で転送させる第2転送経路と、を有しているので、
それぞれ別の現画像ブロックに対して同時にディストー
ションを求めることができ、また、第1画素データ転送
保持ユニットおよび第2画素データ転送保持ユニットを
共用しているので、画素データ転送保持ユニットの数を
1/2にすることができる。
According to the invention described in claim 8, the path for transferring the pixel data of each candidate block when calculating the distortion is the first pixel data transfer holding unit,
A first transfer path for transferring between the first distortion calculation unit and the second pixel data transfer holding unit;
And a second transfer path for transferring between the second pixel data transfer holding unit, the second distortion calculation unit, and the first pixel data transfer holding unit.
Distortion can be simultaneously obtained for different current image blocks, and since the first pixel data transfer holding unit and the second pixel data transfer holding unit are shared, the number of pixel data transfer holding units is set to 1 It can be / 2.

【0227】請求項9記載の発明によれば、請求項8記
載の動きベクトル探索方法に加え、各フィールド候補ブ
ロックの画素データを、第1画素データ転送保持ユニッ
ト、第1ディストーション算出ユニットおよび第2ディ
ストーション算出ユニットの間で転送させる第3転送経
路を有するので、第1転送経路または第2転送経路によ
るディストーション算出の探索領域よりも、広い探索領
域を探索することができる。
According to the invention of claim 9, in addition to the motion vector search method of claim 8, the pixel data of each field candidate block is converted into a first pixel data transfer holding unit, a first distortion calculation unit and a second distortion calculation unit. Since the third transfer path for transferring between the distortion calculation units is included, it is possible to search a wider search area than the search area for distortion calculation by the first transfer path or the second transfer path.

【0228】請求項10記載の発明によれば、請求項9
記載の動きベクトル探索方法に加え、第2転送モードが
選択されたとき、ディストーション算出手段が、現画像
フレームブロックに対し、該現画像フレームブロックと
各フレーム候補ブロックとの間の画像の差を表わす複数
のディストーションを算出させるので、フィールドブロ
ックに対するディストーションとフレームブロックに対
するディストーションとをそれぞれ求めることができ
る。
According to the invention of claim 10, claim 9 is provided.
In addition to the described motion vector search method, when the second transfer mode is selected, the distortion calculation means represents the difference between the current image frame block and the image between the current image frame block and each frame candidate block. Since a plurality of distortions are calculated, it is possible to obtain the distortion for the field block and the distortion for the frame block, respectively.

【0229】請求項11記載の発明によれば、請求項1
0記載の動きベクトル探索方法に加え、第1ディストー
ション算出ユニットおよび第2ディストーション算出ユ
ニットが、それぞれ(H−N+1)×(L−M+1)個
のプロセッサエレメントを有するので、二つのH行L列
のサーチウィンドウ内の全てのN行M列の候補ブロック
に対して同時にディストーションを探索することができ
る。
According to the invention of claim 11, claim 1
In addition to the motion vector search method described in 0, since the first distortion calculation unit and the second distortion calculation unit each have (H−N + 1) × (L−M + 1) processor elements, there are two H rows and two L columns. It is possible to simultaneously search for distortion for all N-row and M-column candidate blocks in the search window.

【0230】さらに、(L−M+1)個のプロセッサエ
レメントが、サイドレジスタの代用をするため、第1画
素データ転送保持ユニットの2×(N−1)×(L−M
+1)個のサイドレジスタと合わせ、(N×2−1)×
(L−M+1)個のサイドレジスタの機能を持ち、第1
ディストーション算出ユニットおよび第2ディストーシ
ョン算出ユニットは、合計で2×(H−N+1)×(L
−M+1)−(L−M+1)、すなわち、(H×2−N
×2+1)×(L−M+1)個のプロセッサエレメント
を持つため、(H×2−N×2+1)×(L−M+1)
個のプロセッサエレメントと(N×2−1)×(L−M
+1)個のサイドレジスタを持っているのと同等であ
る。したがって、(H×2)行L列のサーチウィンドウ
内の全ての(N×2)行M列の候補ブロックに対してデ
ィストーションを探索することができる。
Further, since (L−M + 1) processor elements substitute for the side register, 2 × (N−1) × (L−M) of the first pixel data transfer holding unit.
+1) side registers, (N × 2-1) ×
It has the function of (L-M + 1) side registers,
The total of the distortion calculation unit and the second distortion calculation unit is 2 × (H−N + 1) × (L
-M + 1)-(L-M + 1), that is, (Hx2-N
Since it has × 2 + 1) × (L-M + 1) processor elements, (H × 2-N × 2 + 1) × (L-M + 1)
Number of processor elements and (N × 2-1) × (LM
It is equivalent to having +1) side registers. Therefore, the distortion can be searched for for all candidate blocks of (N × 2) rows and M columns in the search window of (H × 2) rows and L columns.

【0231】また、フレームは同じ大きさの領域にフィ
ールドの2倍の画素数を持つので、上記により、同じ大
きさのフィールドとフレームのディストーションを探索
することができる。請求項12記載の発明によれば、請
求項10記載の動きベクトル探索方法に加え、第2画素
データ転送保持ユニットの(N−1)×(L−M+1)
個のサイドレジスタを共用することにより、第1ディス
トーション算出ユニット、第1画素データ転送保持ユニ
ットおよび第2画素データ転送保持ユニットが、(H−
N+1)×(L−M+1)個のプロセッサエレメントお
よび両側に(N−1)×(L−M+1)個のサイドレジ
スタを有し、第2ディストーション算出ユニット、第2
画素データ転送保持ユニットおよび第1画素データ転送
保持ユニットが、(H−N+1)×(L−M+1)個の
プロセッサエレメントおよび両側に(N−1)×(L−
M+1)個のサイドレジスタを有するので、二つのH行
L列のサーチウィンドウ内の全てのN行M列の候補ブロ
ックに対して同時にディストーションを探索することが
できる。
Since the frame has twice as many pixels as the field in the area of the same size, the distortion of the field and the frame of the same size can be searched for by the above. According to the invention described in claim 12, in addition to the motion vector search method according to claim 10, (N−1) × (L−M + 1) of the second pixel data transfer holding unit.
By sharing the number of side registers, the first distortion calculation unit, the first pixel data transfer holding unit, and the second pixel data transfer holding unit (H−
N + 1) × (L−M + 1) processor elements and (N−1) × (L−M + 1) side registers on each side, and a second distortion calculation unit, a second
The pixel data transfer holding unit and the first pixel data transfer holding unit are (H−N + 1) × (L−M + 1) processor elements and (N−1) × (L−) on both sides.
Since it has M + 1) side registers, it is possible to simultaneously search for distortion in all N-row and M-column candidate blocks in two H-row and L-column search windows.

【0232】さらに、第1ディストーション算出ユニッ
ト、第2ディストーション算出ユニットおよび第1画素
データ転送保持ユニットが、2×(H−N+1)×(L
−M+1)個、すなわち、{(H×2+1)−N×2+
1}×(L−M+1)個のプロセッサエレメントおよび
(N×2−1)×(L−M+1)個のサイドレジスタを
有するので、全てのプロセッサエレメントを有効に活用
して、(H×2+1)行L列のサーチウィンドウ内の全
ての(N×2)行M列の候補ブロックに対してディスト
ーションを探索することができる。
Furthermore, the first distortion calculation unit, the second distortion calculation unit and the first pixel data transfer holding unit are 2 × (H−N + 1) × (L
-M + 1), that is, {(Hx2 + 1) -Nx2 +
Since it has 1} × (L−M + 1) processor elements and (N × 2-1) × (L−M + 1) side registers, all the processor elements are effectively utilized to obtain (H × 2 + 1). The distortion can be searched for for all (N × 2) row and M column candidate blocks in the row L column search window.

【0233】請求項13記載の発明によれば、請求項1
1および12記載の動きベクトル探索方法に加え、サー
チウィンドウ内で隣り合う2つの画素列の画素データを
互いに列方向で逆方向に転送するよう、第1ディストー
ション算出ユニットおよび第2ディストーション算出ユ
ニット内で入力画素データを列方向に往復移動させなが
ら転送経路に沿って転送するので、第1ディストーショ
ン算出ユニットおよび第2ディストーション算出ユニッ
ト内の列毎に転送方向を一方向にできるので、第1ディ
ストーション算出ユニットおよび第2ディストーション
算出ユニット内の列方向の転送バスを削減することがで
きる。
According to the invention of claim 13, claim 1
In addition to the motion vector search methods described in 1 and 12, in the first distortion calculation unit and the second distortion calculation unit, the pixel data of two adjacent pixel columns in the search window are transferred in opposite directions in the column direction. Since the input pixel data is transferred along the transfer path while reciprocating in the column direction, the transfer direction can be set to one direction for each column in the first distortion calculation unit and the second distortion calculation unit. Further, it is possible to reduce the transfer bus in the column direction in the second distortion calculation unit.

【0234】請求項14記載の発明によれば、ディスト
ーション算出手段が、それぞれひとつの現画像ブロック
と、該現画像ブロックに対応する各候補ブロックとのデ
ィストーションを算出する複数のディストーション算出
ユニットを有し、各ディストーション算出ユニットの一
部が、他の一つのディストーション算出ユニットの一部
を共有するので、複数の現画像ブロックに対するディス
トーションが同時に算出でき、しかも、ディストーショ
ン算出ユニットの素子数を削減することができる。
According to the fourteenth aspect of the present invention, the distortion calculating means has a plurality of distortion calculating units for calculating the distortion between each one current image block and each candidate block corresponding to the current image block. , A part of each distortion calculation unit shares a part of another distortion calculation unit, so that distortions for a plurality of current image blocks can be calculated at the same time, and the number of elements of the distortion calculation unit can be reduced. it can.

【0235】請求項15記載の発明によれば、ディスト
ーションを算出させるときの各候補ブロックの画素デー
タを転送する経路が、第1画素データ転送保持ユニッ
ト、第1ディストーション算出ユニットおよび第2画素
データ転送保持ユニットの間で転送させる第1転送経路
と、第2画素データ転送保持ユニット、第2ディストー
ション算出ユニットおよび第3画素データ転送保持ユニ
ットの間で転送させる第2転送経路と、を有しているの
で、それぞれ別の現画像ブロックに対して同時にディス
トーションを求めることができ、また、第2画素データ
転送保持ユニットを共用しているので、第2画素データ
転送保持ユニットの分、少ない装置構成でそれぞれ別の
現画像ブロックに対してディストーションを求めること
ができる。
According to the fifteenth aspect of the invention, the path for transferring the pixel data of each candidate block when calculating the distortion is such that the first pixel data transfer holding unit, the first distortion calculation unit and the second pixel data transfer. It has a first transfer path for transferring between the holding units and a second transfer path for transferring between the second pixel data transfer and holding unit, the second distortion calculation unit and the third pixel data transfer and holding unit. Therefore, it is possible to simultaneously obtain distortions for different current image blocks, and since the second pixel data transfer / holding unit is shared, the number of second pixel data transfer / holding units can be reduced and the number of devices can be reduced. The distortion can be determined for another current image block.

【0236】請求項16記載の発明によれば、請求項1
5記載の動きベクトル探索装置に加え、各フィールド候
補ブロックの画素データを、第1画素データ転送保持ユ
ニット、第1ディストーション算出ユニット、第2ディ
ストーション算出ユニットおよび第3画素データ転送保
持ユニットの間で転送させる第3転送経路を有するの
で、第1転送経路または第2転送経路によるディストー
ション算出の探索領域よりも、広い探索領域を探索する
ことができる。
According to the invention of claim 16, claim 1
In addition to the motion vector search device described in 5, the pixel data of each field candidate block is transferred between the first pixel data transfer holding unit, the first distortion calculation unit, the second distortion calculation unit, and the third pixel data transfer holding unit. Since the third transfer path is provided, a search area wider than the search area for distortion calculation by the first transfer path or the second transfer path can be searched.

【0237】請求項17記載の発明によれば、請求項1
6記載の動きベクトル探索装置に加え、第2転送モード
が選択されたとき、ディストーション算出手段が、現画
像フレームブロックに対し、該現画像フレームブロック
と各フレーム候補ブロックとの間の画像の差を表わす複
数のディストーションを算出させるので、フィールドブ
ロックに対するディストーションとフレームブロックに
対するディストーションとをそれぞれ求めることができ
る。
According to the invention of claim 17, claim 1
In addition to the motion vector search device described in No. 6, when the second transfer mode is selected, the distortion calculation means calculates the difference between the current image frame block and the image difference between the current image frame block and each frame candidate block. Since a plurality of represented distortions are calculated, the distortion for the field block and the distortion for the frame block can be obtained respectively.

【0238】請求項18記載の発明によれば、請求項1
7記載の動きベクトル探索装置に加え、第1ディストー
ション算出ユニットおよび第2ディストーション算出ユ
ニットが、それぞれ(H−N+1)×(L−M+1)個
のプロセッサエレメントを有するので、二つのH行L列
のサーチウィンドウ内の全てのN行M列の候補ブロック
に対して同時にディストーションを探索することができ
る。
According to the invention of claim 18, claim 1
In addition to the motion vector search device described in Section 7, since the first distortion calculation unit and the second distortion calculation unit each have (H−N + 1) × (L−M + 1) processor elements, there are two H rows and L columns. It is possible to simultaneously search for distortion for all N-row and M-column candidate blocks in the search window.

【0239】さらに、(L−M+1)個のプロセッサエ
レメントが、サイドレジスタの代用をするため、第3画
素データ転送保持ユニットの2×(N−1)×(L−M
+1)個のサイドレジスタと合わせ、(N×2−1)×
(L−M+1)個のサイドレジスタの機能を持ち、第1
ディストーション算出ユニットおよび第2ディストーシ
ョン算出ユニットは、合計で2×(H−N+1)×(L
−M+1)−(L−M+1)、すなわち、(H×2−N
×2+1)×(L−M+1)個のプロセッサエレメント
を持つため、(H×2−N×2+1)×(L−M+1)
個のプロセッサエレメントの両側に(N×2−1)×
(L−M+1)個のサイドレジスタを持っているのと同
等である。したがって、(H×2)行L列のサーチウィ
ンドウ内の全ての(N×2)行M列の候補ブロックに対
してディストーションを探索することができる。
Furthermore, since (L−M + 1) processor elements substitute for the side register, 2 × (N−1) × (L−M) of the third pixel data transfer holding unit.
+1) side registers, (N × 2-1) ×
It has the function of (L-M + 1) side registers,
The total of the distortion calculation unit and the second distortion calculation unit is 2 × (H−N + 1) × (L
-M + 1)-(L-M + 1), that is, (Hx2-N
Since it has × 2 + 1) × (L-M + 1) processor elements, (H × 2-N × 2 + 1) × (L-M + 1)
(N × 2-1) × on both sides of each processor element
It is equivalent to having (L−M + 1) side registers. Therefore, the distortion can be searched for for all candidate blocks of (N × 2) rows and M columns in the search window of (H × 2) rows and L columns.

【0240】また、フレームは同じ大きさの領域にフィ
ールドの2倍の画素数を持つので、上記により、同じ大
きさのフィールドとフレームのディストーションを探索
することができる。請求項19記載の発明によれば、請
求項17記載の動きベクトル探索装置に加え、第2画素
データ転送保持ユニットの(N−1)×(L−M+1)
個のサイドレジスタを共用することにより、第1ディス
トーション算出ユニット、第1画素データ転送保持ユニ
ットおよび第2画素データ転送保持ユニットが、(H−
N+1)×(L−M+1)個のプロセッサエレメントお
よび両側に(N−1)×(L−M+1)個のサイドレジ
スタを有し、第2ディストーション算出ユニット、第2
画素データ転送保持ユニットおよび第3画素データ転送
保持ユニットが、(H−N+1)×(L−M+1)個の
プロセッサエレメントおよび両側に(N−1)×(L−
M+1)個のサイドレジスタを有するので、二つのH行
L列のサーチウィンドウ内の全てのN行M列の候補ブロ
ックに対して同時にディストーションを探索することが
できる。
Further, since the frame has twice the number of pixels in the same size area as the field, the distortion of the same size field and frame can be searched for by the above. According to the invention of claim 19, in addition to the motion vector search device of claim 17, (N-1) * (L-M + 1) of the second pixel data transfer holding unit.
By sharing the number of side registers, the first distortion calculation unit, the first pixel data transfer holding unit, and the second pixel data transfer holding unit (H−
N + 1) × (L−M + 1) processor elements and (N−1) × (L−M + 1) side registers on each side, and a second distortion calculation unit, a second
The pixel data transfer holding unit and the third pixel data transfer holding unit are (H−N + 1) × (L−M + 1) processor elements and (N−1) × (L−) on both sides.
Since it has M + 1) side registers, it is possible to simultaneously search for distortion in all N-row and M-column candidate blocks in two H-row and L-column search windows.

【0241】さらに、第1ディストーション算出ユニッ
ト、第2ディストーション算出ユニット、第1画素デー
タ転送保持ユニットおよび第3画素データ転送保持ユニ
ットが、2×(H−N+1)×(L−M+1)個、すな
わち、{(H×2+1)−N×2+1}×(L−M+
1)個のプロセッサエレメントおよび両側に(N×2−
1)×(L−M+1)個のサイドレジスタを有するの
で、全てのプロセッサエレメントを有効に活用して、
(H×2+1)行L列のサーチウィンドウ内の全ての
(N×2)行M列の候補ブロックに対してディストーシ
ョンを探索することができる。
Furthermore, the first distortion calculation unit, the second distortion calculation unit, the first pixel data transfer holding unit and the third pixel data transfer holding unit are 2 × (H−N + 1) × (L−M + 1), that is, , {(H × 2 + 1) −N × 2 + 1} × (L−M +
1) processor elements and (N × 2-
1) Since it has × (L−M + 1) side registers, all processor elements are effectively utilized,
It is possible to search for distortion in all candidate blocks of (N × 2) rows and M columns in the search window of (H × 2 + 1) rows and L columns.

【0242】請求項20記載の発明によれば、請求項1
8および19記載の動きベクトル探索装置に加え、サー
チウィンドウ内で隣り合う2つの画素列の画素データを
互いに列方向で逆方向に転送するよう、第1ディストー
ション算出ユニットおよび第2ディストーション算出ユ
ニット内で入力画素データを列方向に往復移動させなが
ら転送経路に沿って転送するので、第1ディストーショ
ン算出ユニットおよび第2ディストーション算出ユニッ
ト内の列毎に転送方向を一方向にできるので、第1ディ
ストーション算出ユニットおよび第2ディストーション
算出ユニット内の列方向の転送バスを削減することがで
きる。
According to the invention of claim 20, claim 1
In addition to the motion vector search device described in 8 and 19, in the first distortion calculation unit and the second distortion calculation unit so that pixel data of two adjacent pixel columns in the search window are transferred in opposite directions in the column direction. Since the input pixel data is transferred along the transfer path while reciprocating in the column direction, the transfer direction can be set to one direction for each column in the first distortion calculation unit and the second distortion calculation unit. Further, it is possible to reduce the transfer bus in the column direction in the second distortion calculation unit.

【0243】請求項21記載の発明によれば、請求項1
8および19記載の動きベクトル探索装置に加え、ディ
ストーションを算出するプロセッサエレメントを、二次
元的に配列できるので、回路設計が容易にでき、安定し
た回路を構成することができる。請求項22記載の発明
によれば、ディストーションを算出させるときの各候補
ブロックの画素データを転送する経路が、第1画素デー
タ転送保持ユニット、第1ディストーション算出ユニッ
トおよび第2画素データ転送保持ユニットの間で転送さ
せる第1転送経路と、第2画素データ転送保持ユニッ
ト、第2ディストーション算出ユニットおよび第1画素
データ転送保持ユニットの間で転送させる第2転送経路
と、を有しているので、それぞれ別の現画像ブロックに
対して同時にディストーションを求めることができ、ま
た、第1画素データ転送保持ユニットおよび第2画素デ
ータ転送保持ユニットを共用しているので、画素データ
転送保持ユニットの数を1/2にすることができる。
According to the invention of claim 21, claim 1
In addition to the motion vector search device described in 8 and 19, the processor elements for calculating the distortion can be arranged two-dimensionally, so that the circuit design can be facilitated and a stable circuit can be configured. According to the twenty-second aspect of the present invention, the path for transferring the pixel data of each candidate block when calculating the distortion includes the first pixel data transfer holding unit, the first distortion calculation unit, and the second pixel data transfer holding unit. And a second transfer path for transferring between the second pixel data transfer holding unit, the second distortion calculation unit, and the first pixel data transfer holding unit, respectively. Distortion can be obtained simultaneously for different current image blocks, and since the first pixel data transfer holding unit and the second pixel data transfer holding unit are shared, the number of pixel data transfer holding units can be reduced to 1 / It can be 2.

【0244】請求項23記載の発明によれば、請求項2
2記載の動きベクトル探索装置に加え、各フィールド候
補ブロックの画素データを、第1画素データ転送保持ユ
ニット、第1ディストーション算出ユニットおよび第2
ディストーション算出ユニットの間で転送させる第3転
送経路を有するので、第1転送経路または第2転送経路
によるディストーション算出の探索領域よりも、広い探
索領域を探索することができる。
According to the invention of claim 23, claim 2
In addition to the motion vector search device described in 2, the pixel data of each field candidate block is stored in a first pixel data transfer holding unit, a first distortion calculation unit, and a second distortion calculation unit.
Since the third transfer path for transferring between the distortion calculation units is provided, it is possible to search a wider search area than the search area for distortion calculation by the first transfer path or the second transfer path.

【0245】請求項24記載の発明によれば、請求項2
3記載の動きベクトル探索装置に加え、第2転送モード
が選択されたとき、ディストーション算出手段が、現画
像フレームブロックに対し、該現画像フレームブロック
と各フレーム候補ブロックとの間の画像の差を表わす複
数のディストーションを算出させるので、フレームブロ
ックに対するディストーションと該フレームブロック内
に含まれる2つのフィールドブロックに対するディスト
ーションをそれぞれ求めることができる。
According to the invention of claim 24, claim 2
In addition to the motion vector search device described in No. 3, when the second transfer mode is selected, the distortion calculating means calculates the difference between the current image frame block and the image between the current image frame block and each frame candidate block. Since the plurality of represented distortions are calculated, the distortion for the frame block and the distortions for the two field blocks included in the frame block can be obtained.

【0246】請求項25記載の発明によれば、請求項2
4記載の動きベクトル探索装置に加え、第1ディストー
ション算出ユニットおよび第2ディストーション算出ユ
ニットが、それぞれ(H−N+1)×(L−M+1)個
のプロセッサエレメントを有するので、二つのH行L列
のサーチウィンドウ内の全てのN行M列の候補ブロック
に対して同時にディストーションを探索することができ
る。
According to the invention of claim 25, claim 2
In addition to the motion vector search device described in Section 4, since the first distortion calculation unit and the second distortion calculation unit each have (H−N + 1) × (L−M + 1) processor elements, there are two H rows and L columns. It is possible to simultaneously search for distortion for all N-row and M-column candidate blocks in the search window.

【0247】さらに、(L−M+1)個のプロセッサエ
レメントが、サイドレジスタの代用をするため、第1画
素データ転送保持ユニットの2×(N−1)×(L−M
+1)個のサイドレジスタと合わせ、(N×2−1)×
(L−M+1)個のサイドレジスタの機能を持ち、第1
ディストーション算出ユニットおよび第2ディストーシ
ョン算出ユニットは、合計で2×(H−N+1)×(L
−M+1)−(L−M+1)、すなわち、(H×2−N
×2+1)×(L−M+1)個のプロセッサエレメント
を持つため、(H×2−N×2+1)×(L−M+1)
個のプロセッサエレメントと(N×2−1)×(L−M
+1)個のサイドレジスタを持っているのと同等であ
る。したがって、(H×2)行L列のサーチウィンドウ
内の全ての(N×2)行M列の候補ブロックに対してデ
ィストーションを探索することができる。
Further, since (L−M + 1) processor elements substitute for the side register, 2 × (N−1) × (L−M) of the first pixel data transfer holding unit.
+1) side registers, (N × 2-1) ×
It has the function of (L-M + 1) side registers,
The total of the distortion calculation unit and the second distortion calculation unit is 2 × (H−N + 1) × (L
-M + 1)-(L-M + 1), that is, (Hx2-N
Since it has × 2 + 1) × (L-M + 1) processor elements, (H × 2-N × 2 + 1) × (L-M + 1)
Number of processor elements and (N × 2-1) × (LM
It is equivalent to having +1) side registers. Therefore, the distortion can be searched for for all candidate blocks of (N × 2) rows and M columns in the search window of (H × 2) rows and L columns.

【0248】また、フレームは同じ大きさの領域にフィ
ールドの2倍の画素数を持つので、上記により、同じ大
きさのフィールドとフレームのディストーションを探索
することができる。請求項26記載の発明によれば、請
求項24記載の動きベクトル探索装置に加え、第2画素
データ転送保持ユニットの(N−1)×(L−M+1)
個のサイドレジスタを共用することにより、第1ディス
トーション算出ユニット、第1画素データ転送保持ユニ
ットおよび第2画素データ転送保持ユニットが、(H−
N+1)×(L−M+1)個のプロセッサエレメントお
よび両側に(N−1)×(L−M+1)個のサイドレジ
スタを有し、第2ディストーション算出ユニット、第2
画素データ転送保持ユニットおよび第1画素データ転送
保持ユニットが、(H−N+1)×(L−M+1)個の
プロセッサエレメントおよび両側に(N−1)×(L−
M+1)個のサイドレジスタを有するので、二つのH行
L列のサーチウィンドウ内の全てのN行M列の候補ブロ
ックに対して同時にディストーションを探索することが
できる。
Since a frame has twice the number of pixels in a region of the same size as the field, the distortion of the field and the frame of the same size can be searched for by the above. According to the invention of claim 26, in addition to the motion vector search device according to claim 24, (N-1) * (L-M + 1) of the second pixel data transfer holding unit.
By sharing the number of side registers, the first distortion calculation unit, the first pixel data transfer holding unit, and the second pixel data transfer holding unit (H−
N + 1) × (L−M + 1) processor elements and (N−1) × (L−M + 1) side registers on each side, and a second distortion calculation unit, a second
The pixel data transfer holding unit and the first pixel data transfer holding unit are (H−N + 1) × (L−M + 1) processor elements and (N−1) × (L−) on both sides.
Since it has M + 1) side registers, it is possible to simultaneously search for distortion in all N-row and M-column candidate blocks in two H-row and L-column search windows.

【0249】さらに、第1ディストーション算出ユニッ
ト、第2ディストーション算出ユニットおよび第1画素
データ転送保持ユニットが、2×(H−N+1)×(L
−M+1)個、すなわち、{(H×2+1)−N×2+
1}×(L−M+1)個のプロセッサエレメントおよび
(N×2−1)×(L−M+1)個のサイドレジスタを
有するので、全てのプロセッサエレメントを有効に活用
して、(H×2+1)行L列のサーチウィンドウ内の全
ての(N×2)行M列の候補ブロックに対してディスト
ーションを探索することができる。
Furthermore, the first distortion calculation unit, the second distortion calculation unit and the first pixel data transfer holding unit are 2 × (H−N + 1) × (L
-M + 1), that is, {(Hx2 + 1) -Nx2 +
Since it has 1} × (L−M + 1) processor elements and (N × 2-1) × (L−M + 1) side registers, all the processor elements are effectively utilized to obtain (H × 2 + 1). The distortion can be searched for for all (N × 2) row and M column candidate blocks in the row L column search window.

【0250】請求項27記載の発明によれば、請求項2
5および26記載の動きベクトル探索装置に加え、サー
チウィンドウ内で隣り合う2つの画素列の画素データを
互いに列方向で逆方向に転送するよう、第1ディストー
ション算出ユニットおよび第2ディストーション算出ユ
ニット内で入力画素データを列方向に往復移動させなが
ら転送経路に沿って転送するので、第1ディストーショ
ン算出ユニットおよび第2ディストーション算出ユニッ
ト内の列毎に転送方向を一方向にできるので、第1ディ
ストーション算出ユニットおよび第2ディストーション
算出ユニット内の列方向の転送バスを削減することがで
きる。
According to the invention described in Item 27, Item 2
In addition to the motion vector search device described in 5 and 26, in the first distortion calculation unit and the second distortion calculation unit, the pixel data of two adjacent pixel columns in the search window are transferred in the opposite directions in the column direction. Since the input pixel data is transferred along the transfer path while reciprocating in the column direction, the transfer direction can be set to one direction for each column in the first distortion calculation unit and the second distortion calculation unit. Further, it is possible to reduce the transfer bus in the column direction in the second distortion calculation unit.

【0251】請求項28記載の発明によれば、請求項2
5および26記載の動きベクトル探索装置に加え、ディ
ストーションを算出するプロセッサエレメントを、二次
元的に配列できるので、回路設計が容易にでき、安定し
た回路を構成することができる。
According to the invention of claim 28, claim 2
In addition to the motion vector search device described in 5 and 26, the processor elements for calculating the distortion can be arranged two-dimensionally, so that the circuit design can be facilitated and a stable circuit can be configured.

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

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

【図2】本発明に係わる現画像ブロックと候補ブロック
を説明する図である。
FIG. 2 is a diagram illustrating a current image block and a candidate block according to the present invention.

【図3】本発明に係わる現画像ブロックと候補ブロック
の対応例を説明する図である。
FIG. 3 is a diagram illustrating an example of a correspondence between a current image block and a candidate block according to the present invention.

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

【図5】信号出力ユニットから各ユニットおよび手段へ
出力される制御信号を示す図である。
FIG. 5 is a diagram showing control signals output from the signal output unit to each unit and means.

【図6】信号出力ユニットから出力される各信号のタイ
ミングチャートである。
FIG. 6 is a timing chart of each signal output from the signal output unit.

【図7】信号出力ユニットから出力される各信号のタイ
ミングチャートである。
FIG. 7 is a timing chart of each signal output from the signal output unit.

【図8】信号出力ユニットから出力される各信号のタイ
ミングチャートである。
FIG. 8 is a timing chart of each signal output from the signal output unit.

【図9】信号出力ユニットから出力される各信号のタイ
ミングチャートである。
FIG. 9 is a timing chart of each signal output from the signal output unit.

【図10】信号出力ユニットから出力される各信号のタ
イミングチャートである。
FIG. 10 is a timing chart of each signal output from the signal output unit.

【図11】信号出力ユニットから出力される各信号のタ
イミングチャートである。
FIG. 11 is a timing chart of each signal output from the signal output unit.

【図12】信号出力ユニットから出力される各信号のタ
イミングチャートである。
FIG. 12 is a timing chart of each signal output from the signal output unit.

【図13】図4に示すディストーション算出手段の詳細
構成を示す図である。
FIG. 13 is a diagram illustrating a detailed configuration of a distortion calculating unit illustrated in FIG. 4;

【図14】図13に示すディストーション算出手段を簡
略化して示す図である。
FIG. 14 is a simplified diagram showing the distortion calculating means shown in FIG. 13;

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

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

【図17】プロセッサエレメントPEのブロック図であ
る。
FIG. 17 is a block diagram of a processor element PE.

【図18】プロセッサエレメントPEのブロック図であ
る。
FIG. 18 is a block diagram of a processor element PE.

【図19】サイドレジスタSRの端子配置を示す図およ
びサイドレジスタSRのブロック図である。
FIG. 19 is a diagram showing a terminal arrangement of a side register SR and a block diagram of the side register SR.

【図20】入力レジスタIRの端子配置を示す図および
入力レジスタIRのブロック図である。
FIG. 20 is a diagram showing a terminal arrangement of the input register IR and a block diagram of the input register IR.

【図21】入力レジスタIRの端子配置を示す図および
入力レジスタIRのブロック図である。
FIG. 21 is a diagram showing a terminal arrangement of an input register IR and a block diagram of the input register IR.

【図22】ブロック特定ユニットのブロック図である。FIG. 22 is a block diagram of a block identification unit.

【図23】フィールドブロックディストーション算出時
のクロックパルス信号CK1の1クロック目におけるデ
ィストーション算出手段における画素データの配置を示
す図である。
FIG. 23 is a diagram showing the arrangement of pixel data in the distortion calculating means at the first clock of the clock pulse signal CK1 when calculating the field block distortion.

【図24】フィールドブロックディストーション算出時
のクロックパルス信号CK1の2クロック目におけるデ
ィストーション算出手段における画素データの配置を示
す図である。
FIG. 24 is a diagram showing the arrangement of pixel data in the distortion calculating means at the second clock of the clock pulse signal CK1 when calculating the field block distortion.

【図25】フィールドブロックディストーション算出時
のクロックパルス信号CK1の3クロック目におけるデ
ィストーション算出手段における画素データの配置を示
す図である。
FIG. 25 is a diagram showing the arrangement of pixel data in the distortion calculating means at the third clock of the clock pulse signal CK1 at the time of calculating the field block distortion.

【図26】フィールドブロックディストーション算出時
のクロックパルス信号CK1の4クロック目におけるデ
ィストーション算出手段における画素データの配置を示
す図である。
FIG. 26 is a diagram showing the arrangement of pixel data in the distortion calculating means at the fourth clock of the clock pulse signal CK1 when calculating the field block distortion.

【図27】フィールドブロックディストーション算出時
のクロックパルス信号CK1の5クロック目におけるデ
ィストーション算出手段における画素データの配置を示
す図である。
FIG. 27 is a diagram showing the arrangement of pixel data in the distortion calculating means at the fifth clock of the clock pulse signal CK1 when calculating the field block distortion.

【図28】フィールドブロックディストーション算出時
のクロックパルス信号CK1の6クロック目におけるデ
ィストーション算出手段における画素データの配置を示
す図である。
FIG. 28 is a diagram showing the arrangement of pixel data in the distortion calculating means at the 6th clock of the clock pulse signal CK1 at the time of calculating the field block distortion.

【図29】フィールドブロックディストーション算出時
のクロックパルス信号CK1の7クロック目におけるデ
ィストーション算出手段における画素データの配置を示
す図である。
FIG. 29 is a diagram showing the arrangement of pixel data in the distortion calculating means at the 7th clock of the clock pulse signal CK1 when calculating the field block distortion.

【図30】フィールドブロックディストーション算出時
のクロックパルス信号CK1の10クロック目における
ディストーション算出手段における画素データの配置を
示す図である。
FIG. 30 is a diagram showing the arrangement of pixel data in the distortion calculating means at the 10th clock of the clock pulse signal CK1 at the time of calculating the field block distortion.

【図31】フィールドブロックディストーション算出時
のクロックパルス信号CK1の11クロック目における
ディストーション算出手段における画素データの配置を
示す図である。
FIG. 31 is a diagram showing the arrangement of pixel data in the distortion calculating means at the 11th clock of the clock pulse signal CK1 when calculating the field block distortion.

【図32】フィールドブロックディストーション算出時
のクロックパルス信号CK1の18クロック目における
ディストーション算出手段における画素データの配置を
示す図である。
FIG. 32 is a diagram showing the arrangement of pixel data in the distortion calculating means at the 18th clock of the clock pulse signal CK1 when calculating the field block distortion.

【図33】フレームブロックディストーション算出時の
クロックパルス信号CK1の1クロック目におけるディ
ストーション算出手段における画素データの配置を示す
図である。
FIG. 33 is a diagram showing an arrangement of pixel data in the distortion calculating means at the first clock of the clock pulse signal CK1 at the time of frame block distortion calculation.

【図34】フレームブロックディストーション算出時の
クロックパルス信号CK1の2クロック目におけるディ
ストーション算出手段における画素データの配置を示す
図である。
FIG. 34 is a diagram showing an arrangement of pixel data in the distortion calculating means at the second clock of the clock pulse signal CK1 at the time of frame block distortion calculation.

【図35】フレームブロックディストーション算出時の
クロックパルス信号CK1の3クロック目におけるディ
ストーション算出手段における画素データの配置を示す
図である。
FIG. 35 is a diagram showing the arrangement of pixel data in the distortion calculating means at the third clock of the clock pulse signal CK1 when calculating the frame block distortion.

【図36】フレームブロックディストーション算出時の
クロックパルス信号CK1の4クロック目におけるディ
ストーション算出手段における画素データの配置を示す
図である。
FIG. 36 is a diagram showing the arrangement of pixel data in the distortion calculating means at the fourth clock of the clock pulse signal CK1 when calculating the frame block distortion.

【図37】フレームブロックディストーション算出時の
クロックパルス信号CK1の5クロック目におけるディ
ストーション算出手段における画素データの配置を示す
図である。
FIG. 37 is a diagram showing the arrangement of pixel data in the distortion calculation means at the fifth clock of the clock pulse signal CK1 when calculating the frame block distortion.

【図38】フレームブロックディストーション算出時の
クロックパルス信号CK1の6クロック目におけるディ
ストーション算出手段における画素データの配置を示す
図である。
FIG. 38 is a diagram showing the arrangement of pixel data in the distortion calculating means at the sixth clock of the clock pulse signal CK1 when calculating the frame block distortion.

【図39】フレームブロックディストーション算出時の
クロックパルス信号CK1の7クロック目におけるディ
ストーション算出手段における画素データの配置を示す
図である。
FIG. 39 is a diagram showing the arrangement of pixel data in the distortion calculating means at the 7th clock of the clock pulse signal CK1 at the time of frame block distortion calculation.

【図40】フレームブロックディストーション算出時の
クロックパルス信号CK1の8クロック目におけるディ
ストーション算出手段における画素データの配置を示す
図である。
FIG. 40 is a diagram showing the arrangement of pixel data in the distortion calculating means at the eighth clock of the clock pulse signal CK1 at the time of frame block distortion calculation.

【図41】フレームブロックディストーション算出時の
クロックパルス信号CK1の13クロック目におけるデ
ィストーション算出手段における画素データの配置を示
す図である。
FIG. 41 is a diagram showing the arrangement of pixel data in the distortion calculating means at the 13th clock of the clock pulse signal CK1 at the time of frame block distortion calculation.

【図42】フレームブロックディストーション算出時の
クロックパルス信号CK1の19クロック目におけるデ
ィストーション算出手段における画素データの配置を示
す図である。
FIG. 42 is a diagram showing an arrangement of pixel data in the distortion calculating means at the 19th clock of the clock pulse signal CK1 at the time of calculating the frame block distortion.

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

【図44】図43に示すディストーション算出手段の詳
細構成を示す図である。
FIG. 44 is a diagram showing a detailed configuration of the distortion calculation means shown in FIG. 43.

【図45】図43に示すディストーション算出手段の詳
細構成を示す図である。
45 is a diagram showing a detailed configuration of the distortion calculation means shown in FIG. 43.

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

【図47】従来の動き補償フレーム間予測を説明する図
である。
[Fig. 47] Fig. 47 is a diagram for describing conventional motion-compensated inter-frame prediction.

【図48】従来の現画像ブロックとサーチウィンドウを
説明する図である。
FIG. 48 is a diagram illustrating a conventional current image block and a search window.

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

【図50】従来の現画像ブロック内の画素と候補ブロッ
ク内の画素との位置関係を説明する図である。
FIG. 50 is a diagram illustrating a positional relationship between pixels in a current image block and pixels in a candidate block according to the related art.

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

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

【図53】従来のフレーム構造における予測方式を説明
する図である。
[Fig. 53] Fig. 53 is a diagram for describing a prediction method in a conventional frame structure.

【図54】従来のフレーム構造における予測方式を説明
する図である。
[Fig. 54] Fig. 54 is a diagram for describing a prediction method in a conventional frame structure.

【図55】従来のフレーム構造における同一パリティフ
ェーズおよび異パリティフェーズを説明する図である。
FIG. 55 is a diagram illustrating the same parity phase and different parity phase in the conventional frame structure.

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

1、3 人物像 2、2a 有意画素領域 10 現画像データ出力手段 20 参照画像データ出力手段 30 ディストーション算出手段 31 第1画素データ転送保持ユニット 32 第1ディストーション算出ユニット 33 第2画素データ転送保持ユニット 34 第2ディストーション算出ユニット 35 第3画素データ転送保持ユニット 60 ブロック特定手段 81 現画像データ入力制御手段 82 ウィンドウデータ入力制御手段 83 ウィンドウデータ転送制御手段 84 ディストーション入力制御手段 85 モード切り換え手段 100 現画像 110、111、112、113 現画像ブロック 200 参照画像 210、211、212、213 サーチウィンドウ 310 候補ブロック 600 現画像フレーム 601 第1フィールド 602 第2フィールド 700 参照画像フレーム 701 第1フィールド 702 第2フィールド 800、810 現画像フレームブロック 801、811 現画像第1フィールドブロック 802、812 現画像第2フィールドブロック 900、910、920 フレーム候補ブロック 901、911、921 第1フィールド候補ブロック 902、912、922 第2フィールド候補ブロック 1000 現画像データ出力ユニット 2000 参照画像データ出力ユニット 3000 ディストーション算出手段 3100 画素データ転送部 3110 セレクタ 3120 フリップフロップ 3200 ディストーション算出部 3210 減算器 3220 正数変換器 3230 加算機 3240 フリップフロップ 3250 反転器 3260 論理積演算器 3300 ディストーション転送部 3310 セレクタ 3320 フリップフロップ 3410 セレクタ 4110 セレクタ 4120 フリップフロップ 4210 セレクタ 4220 フリップフロップ 6000 ブロック特定ユニット 6100 最小ディストーション検出ユニット 6110 比較器 6120 比較器 6130 セレクタ 6140 フリップフロップ 6150 論理和演算器 6180 フリップフロップ 6200 動きベクトル垂直成分検出ユニット 6220 セレクタ 6230 フリップフロップ 6240 換算テーブル 6280 フリップフロップ 6300 動きベクトル水平成分検出ユニット 6310 カウンタ 6320 セレクタ 6330 フリップフロップ 6340 換算テーブル 6380 フリップフロップ 8000 信号出力ユニット 1 and 3 person image 2 and 2a significant pixel area 10 current image data output means 20 reference image data output means 30 distortion calculation means 31 first pixel data transfer holding unit 32 first distortion calculation unit 33 second pixel data transfer holding unit 34 Second distortion calculation unit 35 Third pixel data transfer / holding unit 60 Block specifying means 81 Current image data input control means 82 Window data input control means 83 Window data transfer control means 84 Distortion input control means 85 Mode switching means 100 Current image 110, 111, 112, 113 Current image block 200 Reference image 210, 211, 212, 213 Search window 310 Candidate block 600 Current image frame 601 First field 602 Second Field 700 Reference image frame 701 First field 702 Second field 800, 810 Current image frame block 801, 811 Current image first field block 802, 812 Current image second field block 900, 910, 920 Frame candidate block 901, 911, 921 First field candidate block 902, 912, 922 Second field candidate block 1000 Current image data output unit 2000 Reference image data output unit 3000 Distortion calculation means 3100 Pixel data transfer unit 3110 Selector 3120 Flip-flop 3200 Distortion calculation unit 3210 Subtractor 3220 Positive number converter 3230 Adder 3240 Flip-flop 3250 Inverter 3260 Logical product operator 3300 de Torsion transfer unit 3310 Selector 3320 Flip-flop 3410 Selector 4110 Selector 4120 Flip-flop 4210 Selector 4220 Flip-flop 6000 Block specific unit 6100 Minimum distortion detection unit 6110 Comparator 6120 Comparator 6130 Selector 6140 Flip-flop 6150 Logical sum calculator 6200 Flip-flop 6180 Motion vector vertical component detection unit 6220 selector 6230 flip-flop 6240 conversion table 6280 flip-flop 6300 motion vector horizontal component detection unit 6310 counter 6320 selector 6330 flip-flop 6340 conversion table 6380 flip-flop 8000 signal output unit

Claims (28)

【特許請求の範囲】[Claims] 【請求項1】動画像を部分的に構成する現画像を、前記
動画像を部分的に構成する参照画像に基づいて予測する
動きベクトルを探索する動きベクトル探索方法であり、
前記現画像が、画素データをそれぞれ有する複数の画素
により表わされる現画像ブロックを含み、前記参照画像
が、画素データをそれぞれ有する複数の画素により表わ
されるサーチウインドウを含み、該サーチウインドウが
複数の候補ブロックを含み、該現画像ブロックと該各候
補ブロックが同一サイズであり、前記現画像ブロックの
ブロック位置と該現画像ブロックに最も類似した候補ブ
ロックのブロック位置とによって特定される動きベクト
ルを探索する動きベクトル探索方法であって、 前記現画像ブロックの画素データと、前記サーチウィン
ドウ内の候補ブロックの画素データと、を準備する工程
と、 前記サーチウィンドウ内の各候補ブロックの画素データ
と、前記現画像ブロックの画素データと、に基づいて、
前記現画像ブロックに対し、該現画像ブロックと前記各
候補ブロックとの間の画像の差を表わす複数のディスト
ーションを算出させるディストーション算出手段と、 前記ディストーション算出手段によって算出された現画
像ブロックに対応する各ディストーションのうちの最小
のディストーションを検出して、該最小のディストーシ
ョンに対応する候補ブロックを特定させるブロック特定
手段と、 前記現画像ブロックの画素データを前記ディストーショ
ン算出手段に入力する現画像データ入力工程と、 前記サーチウィンドウの候補ブロックの画素データを前
記ディストーション算出手段に入力するウィンドウデー
タ入力工程と、 前記ディストーション算出手段によって算出された前記
ディストーションを前記ブロック特定手段に入力するデ
ィストーション入力工程と、 を備え、 前記ディストーション算出手段が、それぞれひとつの前
記現画像ブロックと、該現画像ブロックに対応する前記
各候補ブロックとのディストーションを算出する複数の
ディストーション算出ユニットを有し、 前記各ディストーション算出ユニットの一部が、他の一
つのディストーション算出ユニットの一部を共有するこ
とを特徴とする動きベクトル探索方法。
1. A motion vector search method for searching a motion vector for predicting a current image partially forming a moving image based on a reference image partially forming the moving image,
The current image includes a current image block represented by a plurality of pixels each having pixel data, the reference image includes a search window represented by a plurality of pixels each having pixel data, and the search window includes a plurality of candidates. Searching for a motion vector including a block, the current image block and each of the candidate blocks having the same size, and specified by the block position of the current image block and the block position of the candidate block most similar to the current image block A motion vector search method, comprising: preparing pixel data of the current image block and pixel data of candidate blocks in the search window; pixel data of each candidate block in the search window; Based on the pixel data of the image block,
Corresponding to the current image block calculated by the distortion calculation unit, the distortion calculation unit calculating a plurality of distortions representing the image difference between the current image block and each of the candidate blocks. Block specifying means for detecting a minimum distortion of the distortions and specifying a candidate block corresponding to the minimum distortion, and a current image data input step of inputting pixel data of the current image block to the distortion calculating means. A window data inputting step of inputting pixel data of candidate blocks of the search window to the distortion calculating means; and a distortion data inputting step of inputting the distortion calculated by the distortion calculating means to the block specifying means. A distortion inputting step, wherein the distortion calculating means has a plurality of distortion calculating units for calculating the distortion of each of the one current image block and each of the candidate blocks corresponding to the current image block, A motion vector search method, wherein a part of each distortion calculation unit shares a part of another distortion calculation unit.
【請求項2】インタレース走査方式の動画像を部分的に
構成する現画像を、前記動画像を部分的に構成する参照
画像に基づいて予測するのに用いられる複数の動きベク
トルを探索する動きベクトル探索方法であり、前記現画
像が現画像フレームからなり、該現画像フレームが、現
画像第1フィールドおよび現画像第2フィールドを含む
とともに、画素データをそれぞれ有する複数の画素によ
り表わされる現画像フレームブロックを含み、前記現画
像第1フィールドおよび前記現画像第2フィールドが、
画素データをそれぞれ有する複数の画素により表わされ
る現画像フィールドブロックを含み、前記参照画像が参
照画像フレームからなり、該参照画像フレームが、参照
画像第1フィールドおよび参照画像第2フィールドを含
むとともに、画素データをそれぞれ有する複数の画素に
より表わされるサーチウインドウを含み、該サーチウイ
ンドウが、複数のフレーム候補ブロックを含み、前記参
照画像第1フィールドおよび前記参照画像第2フィール
ドが、画素データをそれぞれ有する複数の画素により表
わされるサーチウインドウを含み、該サーチウインドウ
が、複数のフィールド候補ブロックを含み、前記現画像
フレームブロックと前記各フレーム候補ブロックが同一
サイズであり、前記現画像フィールドブロックのそれぞ
れが、前記各フィールド候補ブロックのそれぞれと同一
サイズであり、前記複数の動きベクトルを探索する動き
ベクトル探索方法であって、 前記現画像フィールドブロックの画素データと、前記サ
ーチウィンドウ内のフィールド候補ブロックの画素デー
タと、を準備する工程と、 前記現画像フィールドブロックの画素データと、前記サ
ーチウィンドウ内の各フィールド候補ブロックの画素デ
ータと、に基づいて、前記現画像フィールドブロックに
対し、該現画像フィールドブロックと前記各フィールド
候補ブロックとの間の画像の差を表わす複数のディスト
ーションを算出させるディストーション算出手段と、 該ディストーション算出手段によって算出された各現画
像フィールドブロックに対応するそれぞれのディストー
ションのうちの最小のディストーションを検出して、該
最小のディストーションに対応するフィールド候補ブロ
ックを特定させるブロック特定手段と、 前記現画像フィールドブロックの画素データを前記ディ
ストーション算出手段に入力する現画像データ入力工程
と、 前記サーチウィンドウのフィールド候補ブロックの画素
データを前記ディストーション算出手段に入力するウィ
ンドウデータ入力工程と、 前記ディストーション算出手段によって算出された前記
ディストーションを前記ブロック特定手段に入力するデ
ィストーション入力工程と、 前記サーチウィンドウ内の各フィールド候補ブロックの
画素データを、前記ディストーション算出手段内で転送
するウィンドウデータ転送工程と、 を備え、 前記ディストーション算出手段が、 前記サーチウィンドウ内の各フィールド候補ブロックの
画素データの一部を入力して保持するとともに、該保持
したデータをそれぞれ転送する第1画素データ転送保持
ユニット、第2画素データ転送保持ユニットおよび第3
画素データ転送保持ユニットと、 前記サーチウィンドウ内の各フィールド候補ブロックの
画素データの一部を入力して保持するとともに、該保持
したデータをそれぞれ転送し、前記現画像データ出力手
段から入力される前記現画像フィールドブロックの画素
データと、前記参照画像データ出力手段から入力される
前記サーチウィンドウ内の各フィールド候補ブロックの
画素データと、に基づいて、前記現画像フィールドブロ
ックに対し、該現画像フィールドブロックと前記各フィ
ールド候補ブロックとの間の画像の差を表わす複数のデ
ィストーションをそれぞれ算出する第1ディストーショ
ン算出ユニットおよび第2ディストーション算出ユニッ
トと、 前記各フィールド候補ブロックの画素データを、前記第
1画素データ転送保持ユニット、前記第1ディストーシ
ョン算出ユニットおよび前記第2画素データ転送保持ユ
ニットの間で転送させる第1転送経路と、 前記各フィールド候補ブロックの画素データを、前記第
2画素データ転送保持ユニット、前記第2ディストーシ
ョン算出ユニットおよび前記第3画素データ転送保持ユ
ニットの間で転送させる第2転送経路と、 を有することを特徴とする動きベクトル探索方法。
2. A motion for searching a plurality of motion vectors used for predicting a current image partially forming an interlaced scanning type moving image based on a reference image partially forming the moving image. A vector search method, wherein the current image comprises a current image frame, and the current image frame includes a current image first field and a current image second field, and is represented by a plurality of pixels each having pixel data. A current image first field and a current image second field, including a frame block;
A current image field block represented by a plurality of pixels each having pixel data, wherein the reference image comprises a reference image frame, the reference image frame including a reference image first field and a reference image second field, and A search window represented by a plurality of pixels each having data, the search window including a plurality of frame candidate blocks, and the reference image first field and the reference image second field each having a plurality of pixel data; A search window represented by pixels, the search window including a plurality of field candidate blocks, wherein the current image frame block and each of the frame candidate blocks are of the same size, and each of the current image field blocks comprises Phil Field candidate block, which is the same size as each of the candidate blocks, is a motion vector search method for searching the plurality of motion vectors, the pixel data of the current image field block, the pixel data of the field candidate block in the search window, And the pixel data of the current image field block and the pixel data of each field candidate block in the search window, based on the current image field block and the current image field block. Distortion calculating means for calculating a plurality of distortions representing image differences between the field candidate block and the minimum distortion among the distortions corresponding to each current image field block calculated by the distortion calculating means. Block detection means for detecting a pixel and specifying a field candidate block corresponding to the minimum distortion, a current image data input step of inputting pixel data of the current image field block to the distortion calculation means, and the search window Window data input step of inputting the pixel data of the field candidate block to the distortion calculating means, a distortion input step of inputting the distortion calculated by the distortion calculating means to the block specifying means, and each in the search window A window data transfer step of transferring pixel data of a field candidate block in the distortion calculation means, wherein the distortion calculation means is provided in each of the fields in the search window. Holds by entering part of the pixel data of the de candidate block, the first pixel data transfer holding unit for transferring the held data, respectively, the second pixel data transferred to and held unit and the third
A pixel data transfer / holding unit, and a part of the pixel data of each field candidate block in the search window is input and held, and the held data is transferred respectively, and is input from the current image data output means. On the basis of the pixel data of the current image field block and the pixel data of each field candidate block in the search window input from the reference image data output means, the current image field block is compared with the current image field block. A first distortion calculation unit and a second distortion calculation unit that respectively calculate a plurality of distortions representing image differences between the field candidate blocks and the field candidate blocks, and pixel data of the field candidate blocks as the first pixel data. Transfer holding unit A first transfer path for transferring between the first distortion calculation unit and the second pixel data transfer holding unit, and pixel data of each of the field candidate blocks, the second pixel data transfer holding unit, the second distortion calculation A second transfer path for transferring between a unit and the third pixel data transfer / holding unit, and a motion vector search method.
【請求項3】請求項2記載の動きベクトル探索方法にお
いて、 前記画素データの転送経路を切り換えるモード切り換え
手段を備え、 前記ディストーション算出手段が、前記各フィールド候
補ブロックの画素データを、前記第1画素データ転送保
持ユニット、前記第1ディストーション算出ユニット、
前記第2ディストーション算出ユニットおよび前記第3
画素データ転送保持ユニットの間で転送させる第3転送
経路を有し、 前記モード切り換え手段が、前記第1転送経路および前
記第2転送経路を選択する第1転送モードと、前記第3
転送経路を選択する第2転送モードと、を切り換えるこ
とを特徴とする動きベクトル探索方法。
3. The motion vector search method according to claim 2, further comprising a mode switching unit that switches a transfer path of the pixel data, wherein the distortion calculation unit sets the pixel data of each field candidate block to the first pixel. A data transfer holding unit, the first distortion calculation unit,
The second distortion calculation unit and the third
A third transfer path for transferring between the pixel data transfer holding units, wherein the mode switching means selects the first transfer path and the second transfer path; and the third transfer path.
A motion vector search method characterized by switching between a second transfer mode for selecting a transfer path and a second transfer mode.
【請求項4】請求項3記載の動きベクトル探索方法にお
いて、 前記現画像フレームブロックの画素データと、前記サー
チウィンドウ内のフレーム候補ブロックの画素データ
と、を準備する工程を備え、 前記モード切り換え手段によって、第2転送モードが選
択されたとき、 前記現画像データ入力工程が、前記現画像フレームブロ
ックの画素データを前記ディストーション算出手段に入
力し、 前記ウィンドウデータ入力工程が、前記サーチウィンド
ウのフレーム候補ブロックの画素データを前記ディスト
ーション算出手段に入力し、 前記ウィンドウデータ転送工程が、前記サーチウィンド
ウ内の各フレーム候補ブロックの画素データを、前記第
3転送経路に沿って転送し、 前記ディストーション算出手段が、前記現画像フレーム
ブロックの画素データと、前記サーチウィンドウ内の各
フレーム候補ブロックの画素データと、に基づいて、前
記現画像フレームブロックに対し、該現画像フレームブ
ロックと前記各フレーム候補ブロックとの間の画像の差
を表わす複数のディストーションを算出させることを特
徴とする動きベクトル探索方法。
4. The motion vector search method according to claim 3, further comprising a step of preparing pixel data of the current image frame block and pixel data of a frame candidate block in the search window. When the second transfer mode is selected by, the current image data input step inputs the pixel data of the current image frame block to the distortion calculation means, and the window data input step causes the search window frame candidate. Pixel data of a block is input to the distortion calculation means, the window data transfer step transfers pixel data of each frame candidate block in the search window along the third transfer path, and the distortion calculation means , Of the current image frame block Represents an image difference between the current image frame block and each of the frame candidate blocks for the current image frame block based on the raw data and the pixel data of each frame candidate block in the search window. A motion vector search method characterized by calculating a plurality of distortions.
【請求項5】請求項4記載の動きベクトル探索方法にお
いて、 H,L,NおよびMをそれぞれ整数とし、前記現画像フ
レームブロックが、(N×2)行M列の画素からなり、
前記現画像第1フィールドブロックが、N行M列の画素
からなり、前記現画像第2フィールドブロックが、N行
M列の画素からなるとともに、前記参照画像フレームの
サーチウインドウが、(H×2)行L列の画素からな
り、前記参照画像第1フィールドのサーチウインドウ
が、H行L列の画素からなり、前記参照画像第2フィー
ルドのサーチウインドウが、H行L列の画素からなる動
きベクトル探索方法であって、 前記第1ディストーション算出ユニットおよび前記第2
ディストーション算出ユニットが、それぞれ(H−N+
1)×(L−M+1)個のプロセッサエレメントからな
り、 前記第1画素データ転送保持ユニットが、(N×2−
1)×(L−M+1)個のサイドレジスタからなり、 前記第2画素データ転送保持ユニットが、(N−1)×
(L−M+1)個のサイドレジスタからなり、 前記第3画素データ転送保持ユニットが、2×(N−
1)×(L−M+1)個のサイドレジスタからなること
を特徴とする動きベクトル探索方法。
5. The motion vector search method according to claim 4, wherein H, L, N and M are integers, and the current image frame block is composed of pixels in (N × 2) rows and M columns.
The current image first field block consists of pixels in N rows and M columns, the current image second field block consists of pixels in N rows and M columns, and the search window of the reference image frame is (H × 2). ) A motion vector composed of pixels of row L columns, the search window of the first field of the reference image composed of pixels of H rows L columns, and a search window of the second field of the reference image composed of pixels of H rows L columns A search method, comprising: the first distortion calculation unit and the second distortion calculation unit.
The distortion calculation units are (H-N +
1) × (L−M + 1) processor elements, and the first pixel data transfer holding unit is (N × 2−).
1) × (L−M + 1) side registers, and the second pixel data transfer holding unit is (N−1) ×
The third pixel data transfer / holding unit is composed of (L−M + 1) side registers, and 2 × (N−
1) A motion vector search method characterized by comprising (x) (L-M + 1) side registers.
【請求項6】請求項4記載の動きベクトル探索方法にお
いて、 H,L,NおよびMをそれぞれ整数とし、前記現画像フ
レームブロックが、(N×2)行M列の画素からなり、
前記現画像第1フィールドブロックが、N行M列の画素
からなり、前記現画像第2フィールドブロックが、N行
M列の画素からなるとともに、前記参照画像フレームの
サーチウインドウが、(H×2+1)行L列の画素から
なり、前記参照画像第1フィールドのサーチウインドウ
が、H行L列の画素からなり、前記参照画像第2フィー
ルドのサーチウインドウが、H行L列の画素からなる動
きベクトル探索方法であって、 前記第1ディストーション算出ユニットおよび前記第2
ディストーション算出ユニットが、それぞれ(H−N+
1)×(L−M+1)個のプロセッサエレメントからな
り、 前記第2画素データ転送保持ユニットが、(N−1)×
(L−M+1)個のサイドレジスタからなり、 前記第1画素データ転送保持ユニットおよび前記第3画
素データ転送保持ユニットが、それぞれ(N×2−1)
×(L−M+1)個のサイドレジスタからなることを特
徴とする動きベクトル探索方法。
6. The motion vector search method according to claim 4, wherein H, L, N, and M are integers, and the current image frame block is composed of pixels in (N × 2) rows and M columns.
The first field block of the current image is composed of pixels of N rows and M columns, the second field block of the current image is composed of pixels of N rows and M columns, and the search window of the reference image frame is (H × 2 + 1). ) A motion vector composed of pixels of row L columns, the search window of the first field of the reference image composed of pixels of H rows L columns, and a search window of the second field of the reference image composed of pixels of H rows L columns A search method, comprising: the first distortion calculation unit and the second distortion calculation unit.
The distortion calculation units are (H-N +
1) × (L−M + 1) processor elements, and the second pixel data transfer holding unit is (N−1) ×
Each of the first pixel data transfer holding unit and the third pixel data transfer holding unit is (N × 2-1).
A motion vector search method comprising x (L-M + 1) side registers.
【請求項7】請求項5および6記載の動きベクトル探索
方法において、 前記ウィンドウデータ転送工程が、前記サーチウィンド
ウ内で隣り合う2つの画素列の画素データを互いに列方
向で逆方向に転送するよう、前記第1ディストーション
算出ユニットおよび前記第2ディストーション算出ユニ
ット内で入力画素データを列方向に往復移動させながら
前記転送経路に沿って転送することを特徴とする動きベ
クトル探索方法。
7. The motion vector search method according to claim 5, wherein the window data transfer step transfers pixel data of two adjacent pixel columns in the search window in opposite column directions. A motion vector search method, wherein input pixel data is transferred along the transfer path while reciprocating in the column direction in the first distortion calculation unit and the second distortion calculation unit.
【請求項8】インタレース走査方式の動画像を部分的に
構成する現画像を、前記動画像を部分的に構成する参照
画像に基づいて予測するのに用いられる複数の動きベク
トルを探索する動きベクトル探索方法であり、前記現画
像が現画像フレームからなり、該現画像フレームが、現
画像第1フィールドおよび現画像第2フィールドを含む
とともに、画素データをそれぞれ有する複数の画素によ
り表わされる現画像フレームブロックを含み、前記現画
像第1フィールドおよび前記現画像第2フィールドが、
画素データをそれぞれ有する複数の画素により表わされ
る現画像フィールドブロックを含み、前記参照画像が参
照画像フレームからなり、該参照画像フレームが、参照
画像第1フィールドおよび参照画像第2フィールドを含
むとともに、画素データをそれぞれ有する複数の画素に
より表わされるサーチウインドウを含み、該サーチウイ
ンドウが、複数のフレーム候補ブロックを含み、前記参
照画像第1フィールドおよび前記参照画像第2フィール
ドが、画素データをそれぞれ有する複数の画素により表
わされるサーチウインドウを含み、該サーチウインドウ
が、複数のフィールド候補ブロックを含み、前記現画像
フレームブロックと前記各フレーム候補ブロックが同一
サイズであり、前記現画像フィールドブロックのそれぞ
れが、前記各フィールド候補ブロックのそれぞれと同一
サイズであり、前記複数の動きベクトルを探索する動き
ベクトル探索方法であって、 前記現画像フィールドブロックの画素データと、前記サ
ーチウィンドウ内のフィールド候補ブロックの画素デー
タと、を準備する工程と、 前記現画像フィールドブロックの画素データと、前記サ
ーチウィンドウ内の各フィールド候補ブロックの画素デ
ータと、に基づいて、前記現画像フィールドブロックに
対し、該現画像フィールドブロックと前記各フィールド
候補ブロックとの間の画像の差を表わす複数のディスト
ーションを算出させるディストーション算出手段と、 該ディストーション算出手段によって算出された各現画
像フィールドブロックに対応するそれぞれのディストー
ションのうちの最小のディストーションを検出して、該
最小のディストーションに対応するフィールド候補ブロ
ックを特定させるブロック特定手段と、 前記現画像フィールドブロックの画素データを前記ディ
ストーション算出手段に入力する現画像データ入力工程
と、 前記サーチウィンドウのフィールド候補ブロックの画素
データを前記ディストーション算出手段に入力するウィ
ンドウデータ入力工程と、 前記ディストーション算出手段によって算出された前記
ディストーションを前記ブロック特定手段に入力するデ
ィストーション入力工程と、 前記サーチウィンドウ内の各フィールド候補ブロックの
画素データを、前記ディストーション算出手段内で転送
するウィンドウデータ転送工程と、 を備え、 前記ディストーション算出手段が、 前記サーチウィンドウ内の各フィールド候補ブロックの
画素データの一部を入力して保持するとともに、該保持
したデータをそれぞれ転送する第1画素データ転送保持
ユニットおよび第2画素データ転送保持ユニットと、 前記サーチウィンドウ内の各フィールド候補ブロックの
画素データの一部を入力して保持するとともに、該保持
したデータをそれぞれ転送し、前記現画像データ出力手
段から入力される前記現画像フィールドブロックの画素
データと、前記参照画像データ出力手段から入力される
前記サーチウィンドウ内の各フィールド候補ブロックの
画素データと、に基づいて、前記現画像フィールドブロ
ックに対し、該現画像フィールドブロックと前記各フィ
ールド候補ブロックとの間の画像の差を表わす複数のデ
ィストーションをそれぞれ算出する第1ディストーショ
ン算出ユニットおよび第2ディストーション算出ユニッ
トと、 前記各フィールド候補ブロックの画素データを、前記第
1画素データ転送保持ユニット、前記第1ディストーシ
ョン算出ユニットおよび前記第2画素データ転送保持ユ
ニットの間で転送させる第1転送経路と、 前記各フィールド候補ブロックの画素データを、前記第
2画素データ転送保持ユニット、前記第2ディストーシ
ョン算出ユニットおよび前記第1画素データ転送保持ユ
ニットの間で転送させる第2転送経路と、 を有することを特徴とする動きベクトル探索方法。
8. A motion for searching a plurality of motion vectors used for predicting a current image partially forming an interlaced scanning type moving image based on a reference image partially forming the moving image. A vector search method, wherein the current image comprises a current image frame, and the current image frame includes a current image first field and a current image second field, and is represented by a plurality of pixels each having pixel data. A current image first field and a current image second field, including a frame block;
A current image field block represented by a plurality of pixels each having pixel data, wherein the reference image comprises a reference image frame, the reference image frame including a reference image first field and a reference image second field, and A search window represented by a plurality of pixels each having data, the search window including a plurality of frame candidate blocks, and the reference image first field and the reference image second field each having a plurality of pixel data; A search window represented by pixels, the search window including a plurality of field candidate blocks, wherein the current image frame block and each of the frame candidate blocks are of the same size, and each of the current image field blocks comprises Phil Field candidate block, which is the same size as each of the candidate blocks, is a motion vector search method for searching the plurality of motion vectors, the pixel data of the current image field block, the pixel data of the field candidate block in the search window, And the pixel data of the current image field block and the pixel data of each field candidate block in the search window, based on the current image field block and the current image field block. Distortion calculating means for calculating a plurality of distortions representing image differences between the field candidate block and the minimum distortion among the distortions corresponding to each current image field block calculated by the distortion calculating means. Block detection means for detecting a pixel and specifying a field candidate block corresponding to the minimum distortion, a current image data input step of inputting pixel data of the current image field block to the distortion calculation means, and the search window Window data input step of inputting the pixel data of the field candidate block to the distortion calculating means, a distortion input step of inputting the distortion calculated by the distortion calculating means to the block specifying means, and each in the search window A window data transfer step of transferring pixel data of a field candidate block in the distortion calculation means, wherein the distortion calculation means is provided in each of the fields in the search window. First pixel data transfer holding unit and second pixel data transfer holding unit for inputting and holding a part of the pixel data of the candidate block and transferring the held data respectively, and each field candidate in the search window Part of the pixel data of the block is input and held, and the held data is transferred respectively, and the pixel data of the current image field block input from the current image data output means and the reference image data output means The image data between the current image field block and each of the field candidate blocks, based on the pixel data of each field candidate block in the search window input from First distortion that calculates multiple distortions respectively A calculation unit and a second distortion calculation unit, and pixel data of each field candidate block is transferred between the first pixel data transfer holding unit, the first distortion calculation unit, and the second pixel data transfer holding unit. One transfer path, and a second transfer path for transferring the pixel data of each field candidate block between the second pixel data transfer holding unit, the second distortion calculation unit, and the first pixel data transfer holding unit A motion vector search method comprising:
【請求項9】請求項8記載の動きベクトル探索方法にお
いて、 前記画素データの転送経路を切り換えるモード切り換え
手段を備え、 前記ディストーション算出手段が、前記各フィールド候
補ブロックの画素データを、前記第1画素データ転送保
持ユニット、前記第1ディストーション算出ユニットお
よび前記第2ディストーション算出ユニットの間で転送
させる第3転送経路を有し、 前記モード切り換え手段が、前記第1転送経路および前
記第2転送経路を選択する第1転送モードと、前記第3
転送経路を選択する第2転送モードと、を切り換えるこ
とを特徴とする動きベクトル探索方法。
9. The motion vector search method according to claim 8, further comprising a mode switching unit that switches a transfer path of the pixel data, wherein the distortion calculation unit sets the pixel data of each field candidate block to the first pixel. A data transfer holding unit, a third transfer path for transferring between the first distortion calculation unit and the second distortion calculation unit, wherein the mode switching means selects the first transfer path and the second transfer path. The first transfer mode, and the third
A motion vector search method characterized by switching between a second transfer mode for selecting a transfer path and a second transfer mode.
【請求項10】請求項9記載の動きベクトル探索方法に
おいて、 前記現画像フレームブロックの画素データと、前記サー
チウィンドウ内のフレーム候補ブロックの画素データ
と、を準備する工程を備え、 前記モード切り換え手段によって、第2転送モードが選
択されたとき、 前記現画像データ入力工程が、前記現画像フレームブロ
ックの画素データを前記ディストーション算出手段に入
力し、 前記ウィンドウデータ入力工程が、前記サーチウィンド
ウのフレーム候補ブロックの画素データを前記ディスト
ーション算出手段に入力し、 前記ウィンドウデータ転送工程が、前記サーチウィンド
ウ内の各フレーム候補ブロックの画素データを、前記第
3転送経路に沿って転送し、 前記ディストーション算出手段が、前記現画像フレーム
ブロックの画素データと、前記サーチウィンドウ内の各
フレーム候補ブロックの画素データと、に基づいて、前
記現画像フレームブロックに対し、該現画像フレームブ
ロックと前記各フレーム候補ブロックとの間の画像の差
を表わす複数のディストーションを算出させることを特
徴とする動きベクトル探索方法。
10. The motion vector search method according to claim 9, further comprising a step of preparing pixel data of the current image frame block and pixel data of a frame candidate block in the search window, the mode switching means. When the second transfer mode is selected by, the current image data input step inputs the pixel data of the current image frame block to the distortion calculation means, and the window data input step causes the search window frame candidate. Pixel data of a block is input to the distortion calculation means, the window data transfer step transfers pixel data of each frame candidate block in the search window along the third transfer path, and the distortion calculation means , The current image frame block Represents an image difference between the current image frame block and each frame candidate block for the current image frame block based on the pixel data and the pixel data of each frame candidate block in the search window. A motion vector search method characterized by calculating a plurality of distortions.
【請求項11】請求項10記載の動きベクトル探索方法
において、 H,L,NおよびMをそれぞれ整数とし、前記現画像フ
レームブロックが、(N×2)行M列の画素からなり、
前記現画像第1フィールドブロックが、N行M列の画素
からなり、前記現画像第2フィールドブロックが、N行
M列の画素からなるとともに、前記参照画像フレームの
サーチウインドウが、(H×2)行L列の画素からな
り、前記参照画像第1フィールドのサーチウィンドウ
が、H行L列の画素からなり、前記参照画像第2フィー
ルドのサーチウィンドウが、H行L列の画素からなる動
きベクトル探索方法であって、 前記第1ディストーション算出ユニットおよび前記第2
ディストーション算出ユニットが、それぞれ(H−N+
1)×(L−M+1)個のプロセッサエレメントからな
り、 前記第1画素データ転送保持ユニットが、2×(N−
1)×(L−M+1)個のサイドレジスタからなり、 前記第2画素データ転送保持ユニットが、(N−1)×
(L−M+1)個のサイドレジスタからなることを特徴
とする動きベクトル探索方法。
11. The motion vector search method according to claim 10, wherein H, L, N, and M are integers, and the current image frame block is composed of pixels in (N × 2) rows and M columns.
The current image first field block consists of pixels in N rows and M columns, the current image second field block consists of pixels in N rows and M columns, and the search window of the reference image frame is (H × 2). ) A motion vector composed of pixels of row L columns, the search window of the first field of the reference image composed of pixels of H rows L columns, and a search window of the second field of the reference image composed of pixels of H rows L columns A search method, comprising: the first distortion calculation unit and the second distortion calculation unit.
The distortion calculation units are (H-N +
1) × (L−M + 1) processor elements, and the first pixel data transfer holding unit is 2 × (N−
1) × (L−M + 1) side registers, and the second pixel data transfer holding unit is (N−1) ×
A motion vector search method comprising (L-M + 1) side registers.
【請求項12】請求項10記載の動きベクトル探索方法
において、 H,L,NおよびMをそれぞれ整数とし、前記現画像フ
レームブロックが、(N×2)行M列の画素からなり、
前記現画像第1フィールドブロックが、N行M列の画素
からなり、前記現画像第2フィールドブロックが、N行
M列の画素からなるとともに、前記参照画像フレームの
サーチウインドウが、(H×2+1)行L列の画素から
なり、前記参照画像第1フィールドのサーチウィンドウ
が、H行L列の画素からなり、前記参照画像第2フィー
ルドのサーチウィンドウが、H行L列の画素からなる動
きベクトル探索方法であって、 前記第1ディストーション算出ユニットおよび前記第2
ディストーション算出ユニットが、それぞれ(H−N+
1)×(L−M+1)個のプロセッサエレメントからな
り、 前記第1画素データ転送保持ユニットが、(N×2−
1)×(L−M+1)個のサイドレジスタからなり、 前記第2画素データ転送保持ユニットが、(N−1)×
(L−M+1)個のサイドレジスタからなることを特徴
とする動きベクトル探索方法。
12. The motion vector search method according to claim 10, wherein H, L, N, and M are integers, and the current image frame block is composed of pixels in (N × 2) rows and M columns.
The first field block of the current image is composed of pixels of N rows and M columns, the second field block of the current image is composed of pixels of N rows and M columns, and the search window of the reference image frame is (H × 2 + 1). ) A motion vector composed of pixels of row L columns, the search window of the first field of the reference image composed of pixels of H rows L columns, and a search window of the second field of the reference image composed of pixels of H rows L columns A search method, comprising: the first distortion calculation unit and the second distortion calculation unit.
The distortion calculation units are (H-N +
1) × (L−M + 1) processor elements, and the first pixel data transfer holding unit is (N × 2−).
1) × (L−M + 1) side registers, and the second pixel data transfer holding unit is (N−1) ×
A motion vector search method comprising (L-M + 1) side registers.
【請求項13】請求項11および12記載の動きベクト
ル探索方法において、 前記ウィンドウデータ転送工程が、前記サーチウィンド
ウ内で隣り合う2つの画素列の画素データを互いに列方
向で逆方向に転送するよう、前記第1ディストーション
算出ユニットおよび前記第2ディストーション算出ユニ
ット内で入力画素データを列方向に往復移動させながら
前記転送経路に沿って転送することを特徴とする動きベ
クトル探索方法。
13. The motion vector search method according to claim 11, wherein said window data transfer step transfers pixel data of two adjacent pixel columns in said search window in opposite column directions. A motion vector search method, wherein input pixel data is transferred along the transfer path while reciprocating in the column direction in the first distortion calculation unit and the second distortion calculation unit.
【請求項14】動画像を部分的に構成する現画像を、前
記動画像を部分的に構成する参照画像に基づいて予測す
る動きベクトルを探索する動きベクトル探索装置であ
り、前記現画像が、画素データをそれぞれ有する複数の
画素により表わされる現画像ブロックを含み、前記参照
画像が、画素データをそれぞれ有する複数の画素により
表わされるサーチウインドウを含み、該サーチウインド
ウが複数の候補ブロックを含み、該現画像ブロックと該
各候補ブロックが同一サイズであり、前記現画像ブロッ
クのブロック位置と該現画像ブロックに最も類似した候
補ブロックのブロック位置とによって特定される動きベ
クトルを探索する動きベクトル探索装置であって、 前記現画像ブロックの画素データを出力させる現画像デ
ータ出力手段と、 前記サーチウィンドウ内の候補ブロックの画素データを
出力させる参照画像データ出力手段と、 前記参照画像データ出力手段から入力される前記サーチ
ウィンドウ内の各候補ブロックの画素データと、前記現
画像データ出力手段から入力される前記現画像ブロック
の画素データと、に基づいて、前記現画像ブロックに対
し、該現画像ブロックと前記各候補ブロックとの間の画
像の差を表わす複数のディストーションを算出させるデ
ィストーション算出手段と、 前記ディストーション算出手段によって算出された現画
像ブロックに対応する各ディストーションのうちの最小
のディストーションを検出して、該最小のディストーシ
ョンに対応する候補ブロックを特定させるブロック特定
手段と、 前記現画像データ出力手段から出力される前記現画像ブ
ロックの画素データを前記ディストーション算出手段に
入力させる現画像データ入力制御手段と、 前記参照画像データ出力手段から出力される前記サーチ
ウィンドウの候補ブロックの画素データを前記ディスト
ーション算出手段に入力させるウィンドウデータ入力制
御手段と、 前記ディストーション算出手段によって算出された前記
ディストーションを前記ブロック特定手段に入力させる
ディストーション入力制御手段と、 を備え、 前記ディストーション算出手段が、それぞれひとつの前
記現画像ブロックと、該現画像ブロックに対応する前記
各候補ブロックとのディストーションを算出する複数の
ディストーション算出ユニットを有し、 前記各ディストーション算出ユニットの一部が、他の一
つのディストーション算出ユニットの一部を共有するこ
とを特徴とする動きベクトル探索装置。
14. A motion vector search device for searching a motion vector for predicting a current image partially forming a moving image based on a reference image partially forming the moving image, wherein the current image is A current image block represented by a plurality of pixels each having pixel data, the reference image comprising a search window represented by a plurality of pixels each having pixel data, the search window comprising a plurality of candidate blocks; A motion vector search device that searches a motion vector specified by a block position of the current image block and a block position of a candidate block most similar to the current image block, in which the current image block and each of the candidate blocks have the same size. A current image data output means for outputting pixel data of the current image block; Reference image data output means for outputting pixel data of candidate blocks in the search window, pixel data of each candidate block in the search window input from the reference image data output means, and input from the current image data output means. Distortion calculation means for calculating, for the current image block, a plurality of distortions representing image differences between the current image block and each of the candidate blocks, based on pixel data of the current image block. Block specifying means for detecting a minimum distortion among the distortions corresponding to the current image block calculated by the distortion calculating means, and specifying a candidate block corresponding to the minimum distortion; and the current image data output means. The current image output from Current image data input control means for inputting lock pixel data to the distortion calculation means, and window data input for inputting pixel data of candidate blocks of the search window output from the reference image data output means to the distortion calculation means. And a distortion input control means for inputting the distortion calculated by the distortion calculation means to the block specifying means, wherein the distortion calculation means has one current image block and one current image block, respectively. Has a plurality of distortion calculation units for calculating the distortion with each of the candidate blocks, and a part of each distortion calculation unit is a part of another distortion calculation unit. Motion vector search apparatus characterized by sharing.
【請求項15】インタレース走査方式の動画像を部分的
に構成する現画像を、前記動画像を部分的に構成する参
照画像に基づいて予測するのに用いられる複数の動きベ
クトルを探索する動きベクトル探索装置であり、前記現
画像が現画像フレームからなり、該現画像フレームが、
現画像第1フィールドおよび現画像第2フィールドを含
むとともに、画素データをそれぞれ有する複数の画素に
より表わされる現画像フレームブロックを含み、前記現
画像第1フィールドおよび前記現画像第2フィールド
が、画素データをそれぞれ有する複数の画素により表わ
される現画像フィールドブロックを含み、前記参照画像
が参照画像フレームからなり、該参照画像フレームが、
参照画像第1フィールドおよび参照画像第2フィールド
を含むとともに、画素データをそれぞれ有する複数の画
素により表わされるサーチウインドウを含み、該サーチ
ウインドウが、複数のフレーム候補ブロックを含み、前
記参照画像第1フィールドおよび前記参照画像第2フィ
ールドが、画素データをそれぞれ有する複数の画素によ
り表わされるサーチウインドウを含み、該サーチウイン
ドウが、複数のフィールド候補ブロックを含み、前記現
画像フレームブロックと前記各フレーム候補ブロックが
同一サイズであり、前記現画像フィールドブロックのそ
れぞれが、前記各フィールド候補ブロックのそれぞれと
同一サイズであり、前記複数の動きベクトルを探索する
動きベクトル探索装置であって、 前記現画像フィールドブロックの画素データを出力させ
る現画像データ出力手段と、 前記サーチウィンドウ内のフィールド候補ブロックの画
素データを出力させる参照画像データ出力手段と、 前記現画像データ出力手段から入力される前記現画像フ
ィールドブロックの画素データと、前記参照画像データ
出力手段から入力される前記サーチウィンドウ内の各フ
ィールド候補ブロックの画素データと、に基づいて、前
記現画像フィールドブロックに対し、該現画像フィール
ドブロックと前記各フィールド候補ブロックとの間の画
像の差を表わす複数のディストーションを算出させるデ
ィストーション算出手段と、 該ディストーション算出手段によって算出された各現画
像フィールドブロックに対応するそれぞれのディストー
ションのうちの最小のディストーションを検出して、該
最小のディストーションに対応するフィールド候補ブロ
ックを特定させるブロック特定手段と、 前記現画像データ出力手段から出力される前記現画像フ
ィールドブロックの画素データを前記ディストーション
算出手段に入力させる現画像データ入力制御手段と、 前記参照画像データ出力手段から出力される前記サーチ
ウィンドウのフィールド候補ブロックの画素データを前
記ディストーション算出手段に入力させるウィンドウデ
ータ入力制御手段と、 前記ディストーション算出手段によって算出された前記
ディストーションを前記ブロック特定手段に入力させる
ディストーション入力制御手段と、 前記サーチウィンドウ内の各フィールド候補ブロックの
画素データを、前記ディストーション算出手段内で転送
させるウィンドウデータ転送制御手段と、 を備え、 前記ディストーション算出手段が、 前記サーチウィンドウ内の各フィールド候補ブロックの
画素データの一部を入力して保持するとともに、該保持
したデータをそれぞれ転送する第1画素データ転送保持
ユニット、第2画素データ転送保持ユニットおよび第3
画素データ転送保持ユニットと、 前記サーチウィンドウ内の各フィールド候補ブロックの
画素データの一部を入力して保持するとともに、該保持
したデータをそれぞれ転送し、前記現画像データ出力手
段から入力される前記現画像フィールドブロックの画素
データと、前記参照画像データ出力手段から入力される
前記サーチウィンドウ内の各フィールド候補ブロックの
画素データと、に基づいて、前記現画像フィールドブロ
ックに対し、該現画像フィールドブロックと前記各フィ
ールド候補ブロックとの間の画像の差を表わす複数のデ
ィストーションをそれぞれ算出する第1ディストーショ
ン算出ユニットおよび第2ディストーション算出ユニッ
トと、 前記各フィールド候補ブロックの画素データを、前記第
1画素データ転送保持ユニット、前記第1ディストーシ
ョン算出ユニットおよび前記第2画素データ転送保持ユ
ニットの間で転送させる第1転送経路と、 前記各フィールド候補ブロックの画素データを、前記第
2画素データ転送保持ユニット、前記第2ディストーシ
ョン算出ユニットおよび前記第3画素データ転送保持ユ
ニットの間で転送させる第2転送経路と、 を有することを特徴とする動きベクトル探索装置。
15. A motion for searching a plurality of motion vectors used for predicting a current image partially forming an interlaced scanning type moving image based on a reference image partially forming the moving image. A vector search device, wherein the current image is a current image frame, and the current image frame is
A current image frame block including a current image first field and a current image second field and represented by a plurality of pixels each having pixel data, wherein the current image first field and the current image second field include pixel data; Including a current image field block represented by a plurality of pixels each having a reference image frame, wherein the reference image comprises a reference image frame,
The reference image first field and the reference image second field are included, and a search window represented by a plurality of pixels each having pixel data is included, and the search window includes a plurality of frame candidate blocks. And the second field of the reference image includes a search window represented by a plurality of pixels each having pixel data, the search window includes a plurality of field candidate blocks, and the current image frame block and each of the frame candidate blocks are A motion vector search device for searching the plurality of motion vectors, the pixels having the same size, each of the current image field blocks having the same size as each of the field candidate blocks, De Current image data output means for outputting data, reference image data output means for outputting pixel data of field candidate blocks in the search window, and pixels of the current image field block input from the current image data output means Based on the data and the pixel data of each field candidate block in the search window input from the reference image data output means, for the current image field block, the current image field block and each field candidate block Between the distortion calculation means for calculating a plurality of distortions representing the difference between the images and the minimum distortion among the distortions corresponding to each current image field block calculated by the distortion calculation means, The most Block specifying means for specifying a field candidate block corresponding to the distortion, current image data input control means for inputting pixel data of the current image field block output from the current image data output means to the distortion calculating means, Window data input control means for inputting pixel data of field candidate blocks of the search window output from the reference image data output means to the distortion calculation means, and the distortion calculated by the distortion calculation means by the block identification means. And a window data transfer control for transferring pixel data of each field candidate block in the search window in the distortion calculation means. A first pixel data transfer holding unit for inputting and holding a part of pixel data of each field candidate block in the search window and transferring the held data, respectively. A second pixel data transfer holding unit and a third
A pixel data transfer / holding unit, and a part of the pixel data of each field candidate block in the search window is input and held, and the held data is transferred respectively, and is input from the current image data output means. On the basis of the pixel data of the current image field block and the pixel data of each field candidate block in the search window input from the reference image data output means, the current image field block is compared with the current image field block. A first distortion calculation unit and a second distortion calculation unit that respectively calculate a plurality of distortions representing image differences between the field candidate blocks and the field candidate blocks, and pixel data of the field candidate blocks as the first pixel data. Transfer holding unit A first transfer path for transferring between the first distortion calculation unit and the second pixel data transfer holding unit, and pixel data of each of the field candidate blocks, the second pixel data transfer holding unit, the second distortion calculation A second transfer path for transferring between a unit and the third pixel data transfer holding unit, and a motion vector searching device.
【請求項16】請求項15記載の動きベクトル探索装置
において、 前記画素データの転送経路を切り換えるモード切り換え
手段を備え、 前記ディストーション算出手段が、前記各フィールド候
補ブロックの画素データを、前記第1画素データ転送保
持ユニット、前記第1ディストーション算出ユニット、
前記第2ディストーション算出ユニットおよび前記第3
画素データ転送保持ユニットの間で転送させる第3転送
経路を有し、 前記モード切り換え手段が、前記第1転送経路および前
記第2転送経路を選択する第1転送モードと、前記第3
転送経路を選択する第2転送モードと、を切り換えるこ
とを特徴とする動きベクトル探索装置。
16. The motion vector search device according to claim 15, further comprising a mode switching unit that switches a transfer path of the pixel data, wherein the distortion calculation unit sets the pixel data of each field candidate block to the first pixel. A data transfer holding unit, the first distortion calculation unit,
The second distortion calculation unit and the third
A third transfer path for transferring between the pixel data transfer holding units, wherein the mode switching means selects the first transfer path and the second transfer path; and the third transfer path.
A motion vector search device characterized by switching between a second transfer mode for selecting a transfer path and a second transfer mode.
【請求項17】請求項16記載の動きベクトル探索装置
において、 前記モード切り換え手段によって、第2転送モードが選
択されたとき、 前記現画像データ出力手段が、前記現画像フレームブロ
ックの画素データを出力させ、 前記参照画像データ出力手段が、前記サーチウィンドウ
内のフレーム候補ブロックの画素データを出力させ、 前記現画像データ入力制御手段が、前記現画像データ出
力手段から出力される前記現画像フレームブロックの画
素データを前記ディストーション算出手段に入力させ、 前記ウィンドウデータ入力制御手段が、前記参照画像デ
ータ出力手段から出力される前記サーチウィンドウのフ
レーム候補ブロックの画素データを前記ディストーショ
ン算出手段に入力させ、 前記ウィンドウデータ転送制御手段が、前記サーチウィ
ンドウ内の各フレーム候補ブロックの画素データを、前
記第3転送経路に沿って転送させ、 前記ディストーション算出手段が、前記現画像データ出
力手段から入力される前記現画像フレームブロックの画
素データと、前記参照画像データ出力手段から入力され
る前記サーチウィンドウ内の各フレーム候補ブロックの
画素データと、に基づいて、前記現画像フレームブロッ
クに対し、該現画像フレームブロックと前記各フレーム
候補ブロックとの間の画像の差を表わす複数のディスト
ーションを算出させることを特徴とする動きベクトル探
索装置。
17. The motion vector search device according to claim 16, wherein when the second transfer mode is selected by the mode switching unit, the current image data output unit outputs pixel data of the current image frame block. The reference image data output means outputs the pixel data of the frame candidate block in the search window, and the current image data input control means controls the current image frame block output from the current image data output means. Pixel data is input to the distortion calculation means, the window data input control means is made to input the pixel data of the frame candidate block of the search window output from the reference image data output means to the distortion calculation means, and the window is input. The data transfer control means is Pixel data of each frame candidate block in the search window is transferred along the third transfer path, and the distortion calculation unit is configured to transmit the pixel data of the current image frame block input from the current image data output unit, Based on the pixel data of each frame candidate block in the search window input from the reference image data output means, for the current image frame block, between the current image frame block and each of the frame candidate blocks, A motion vector search device characterized in that a plurality of distortions representing image differences are calculated.
【請求項18】請求項17記載の動きベクトル探索装置
において、 H,L,NおよびMをそれぞれ整数とし、前記現画像フ
レームブロックが、(N×2)行M列の画素からなり、
前記現画像第1フィールドブロックが、N行M列の画素
からなり、前記現画像第2フィールドブロックが、N行
M列の画素からなるとともに、前記参照画像フレームの
サーチウインドウが、(H×2)行L列の画素からな
り、前記参照画像第1フィールドのサーチウィンドウ
が、H行L列の画素からなり、前記参照画像第2フィー
ルドのサーチウィンドウが、H行L列の画素からなる動
きベクトル探索装置であって、 前記第1ディストーション算出ユニットおよび前記第2
ディストーション算出ユニットが、それぞれ(H−N+
1)×(L−M+1)個のプロセッサエレメントからな
り、 前記第1画素データ転送保持ユニットが、(N×2−
1)×(L−M+1)個のサイドレジスタからなり、 前記第2画素データ転送保持ユニットが、(N−1)×
(L−M+1)個のサイドレジスタからなり、 前記第3画素データ転送保持ユニットが、2×(N−
1)×(L−M+1)個のサイドレジスタからなること
を特徴とする動きベクトル探索装置。
18. The motion vector search device according to claim 17, wherein H, L, N, and M are integers, and the current image frame block is composed of pixels in (N × 2) rows and M columns.
The current image first field block consists of pixels in N rows and M columns, the current image second field block consists of pixels in N rows and M columns, and the search window of the reference image frame is (H × 2). ) A motion vector composed of pixels of row L columns, the search window of the first field of the reference image composed of pixels of H rows L columns, and a search window of the second field of the reference image composed of pixels of H rows L columns It is a search device, Comprising: The 1st distortion calculation unit and the 2nd
The distortion calculation units are (H-N +
1) × (L−M + 1) processor elements, and the first pixel data transfer holding unit is (N × 2−).
1) × (L−M + 1) side registers, and the second pixel data transfer holding unit is (N−1) ×
The third pixel data transfer / holding unit is composed of (L−M + 1) side registers, and 2 × (N−
1) A motion vector search device comprising: (L-M + 1) side registers.
【請求項19】請求項17記載の動きベクトル探索装置
において、 H,L,NおよびMをそれぞれ整数とし、前記現画像フ
レームブロックが、(N×2)行M列の画素からなり、
前記現画像第1フィールドブロックが、N行M列の画素
からなり、前記現画像第2フィールドブロックが、N行
M列の画素からなるとともに、前記参照画像フレームの
サーチウインドウが、(H×2+1)行L列の画素から
なり、前記参照画像第1フィールドのサーチウィンドウ
が、H行L列の画素からなり、前記参照画像第2フィー
ルドのサーチウィンドウが、H行L列の画素からなる動
きベクトル探索装置であって、 前記第1ディストーション算出ユニットおよび前記第2
ディストーション算出ユニットが、それぞれ(H−N+
1)×(L−M+1)個のプロセッサエレメントからな
り、 前記第2画素データ転送保持ユニットが、(N−1)×
(L−M+1)個のサイドレジスタからなり、 前記第1画素データ転送保持ユニットおよび前記第3画
素データ転送保持ユニットが、それぞれ(N×2−1)
×(L−M+1)個のサイドレジスタからなることを特
徴とする動きベクトル探索装置。
19. The motion vector search device according to claim 17, wherein H, L, N, and M are integers, and the current image frame block is composed of pixels in (N × 2) rows and M columns.
The first field block of the current image is composed of pixels of N rows and M columns, the second field block of the current image is composed of pixels of N rows and M columns, and the search window of the reference image frame is (H × 2 + 1). ) A motion vector composed of pixels of row L columns, the search window of the first field of the reference image composed of pixels of H rows L columns, and a search window of the second field of the reference image composed of pixels of H rows L columns It is a search device, Comprising: The 1st distortion calculation unit and the 2nd
The distortion calculation units are (H-N +
1) × (L−M + 1) processor elements, and the second pixel data transfer holding unit is (N−1) ×
Each of the first pixel data transfer holding unit and the third pixel data transfer holding unit is (N × 2-1).
A motion vector search device comprising x (L-M + 1) side registers.
【請求項20】請求項18および19記載の動きベクト
ル探索装置において、 前記ウィンドウデータ転送制御手段が、前記サーチウィ
ンドウ内で隣り合う2つの画素列の画素データを互いに
列方向で逆方向に転送させるよう、前記第1ディストー
ション算出ユニットおよび前記第2ディストーション算
出ユニット内で入力画素データを列方向に往復移動させ
ながら前記転送経路に沿って転送させることを特徴とす
る動きベクトル探索装置。
20. The motion vector search device according to claim 18, wherein the window data transfer control means transfers pixel data of two adjacent pixel columns in the search window in opposite column directions. As described above, the motion vector search device characterized in that the input pixel data is transferred along the transfer path while reciprocating in the column direction in the first distortion calculating unit and the second distortion calculating unit.
【請求項21】請求項18および19記載の動きベクト
ル探索装置において、 前記ディストーション算出ユニットの前記プロセッサエ
レメントが、二次元的に配列されたシストリックアレー
構造の演算回路によって構成されることを特徴とする動
きベクトル探索装置。
21. The motion vector search device according to claim 18, wherein the processor element of the distortion calculation unit is composed of a two-dimensionally arranged arithmetic circuit having a systolic array structure. Motion vector search device.
【請求項22】インタレース走査方式の動画像を部分的
に構成する現画像を、前記動画像を部分的に構成する参
照画像に基づいて予測するのに用いられる複数の動きベ
クトルを探索する動きベクトル探索装置であり、前記現
画像が現画像フレームからなり、該現画像フレームが、
現画像第1フィールドおよび現画像第2フィールドを含
むとともに、画素データをそれぞれ有する複数の画素に
より表わされる現画像フレームブロックを含み、前記現
画像第1フィールドおよび前記現画像第2フィールド
が、画素データをそれぞれ有する複数の画素により表わ
される現画像フィールドブロックを含み、前記参照画像
が参照画像フレームからなり、該参照画像フレームが、
参照画像第1フィールドおよび参照画像第2フィールド
を含むとともに、画素データをそれぞれ有する複数の画
素により表わされるサーチウインドウを含み、該サーチ
ウインドウが、複数のフレーム候補ブロックを含み、前
記参照画像第1フィールドおよび前記参照画像第2フィ
ールドが、画素データをそれぞれ有する複数の画素によ
り表わされるサーチウインドウを含み、該サーチウイン
ドウが、複数のフィールド候補ブロックを含み、前記現
画像フレームブロックと前記各フレーム候補ブロックが
同一サイズであり、前記現画像フィールドブロックのそ
れぞれが、前記各フィールド候補ブロックのそれぞれと
同一サイズであり、前記複数の動きベクトルを探索する
動きベクトル探索装置であって、 前記現画像フィールドブロックの画素データを出力させ
る現画像データ出力手段と、 前記サーチウィンドウ内のフィールド候補ブロックの画
素データを出力させる参照画像データ出力手段と、 前記現画像データ出力手段から入力される前記現画像フ
ィールドブロックの画素データと、前記参照画像データ
出力手段から入力される前記サーチウィンドウ内の各フ
ィールド候補ブロックの画素データと、に基づいて、前
記現画像フィールドブロックに対し、該現画像フィール
ドブロックと前記各フィールド候補ブロックとの間の画
像の差を表わす複数のディストーションを算出させるデ
ィストーション算出手段と、 該ディストーション算出手段によって算出された各現画
像フィールドブロックに対応するそれぞれのディストー
ションのうちの最小のディストーションを検出して、該
最小のディストーションに対応するフィールド候補ブロ
ックを特定させるブロック特定手段と、 前記現画像データ出力手段から出力される前記現画像フ
ィールドブロックの画素データを前記ディストーション
算出手段に入力させる現画像データ入力制御手段と、 前記参照画像データ出力手段から出力される前記サーチ
ウィンドウのフィールド候補ブロックの画素データを前
記ディストーション算出手段に入力させるウィンドウデ
ータ入力制御手段と、 前記ディストーション算出手段によって算出された前記
ディストーションを前記ブロック特定手段に入力させる
ディストーション入力制御手段と、 前記サーチウィンドウ内の各フィールド候補ブロックの
画素データを、前記ディストーション算出手段内で転送
させるウィンドウデータ転送制御手段と、 を備え、 前記ディストーション算出手段が、 前記サーチウィンドウ内の各フィールド候補ブロックの
画素データの一部を入力して保持するとともに、該保持
したデータをそれぞれ転送する第1画素データ転送保持
ユニットおよび第2画素データ転送保持ユニットと、 前記サーチウィンドウ内の各フィールド候補ブロックの
画素データの一部を入力して保持するとともに、該保持
したデータをそれぞれ転送し、前記現画像データ出力手
段から入力される前記現画像フィールドブロックの画素
データと、前記参照画像データ出力手段から入力される
前記サーチウィンドウ内の各フィールド候補ブロックの
画素データと、に基づいて、前記現画像フィールドブロ
ックに対し、該現画像フィールドブロックと前記各フィ
ールド候補ブロックとの間の画像の差を表わす複数のデ
ィストーションをそれぞれ算出する第1ディストーショ
ン算出ユニットおよび第2ディストーション算出ユニッ
トと、 前記各フィールド候補ブロックの画素データを、前記第
1画素データ転送保持ユニット、前記第1ディストーシ
ョン算出ユニットおよび前記第2画素データ転送保持ユ
ニットの間で転送させる第1転送経路と、 前記各フィールド候補ブロックの画素データを、前記第
2画素データ転送保持ユニット、前記第2ディストーシ
ョン算出ユニットおよび前記第1画素データ転送保持ユ
ニットの間で転送させる第2転送経路と、 を有することを特徴とする動きベクトル探索装置。
22. Motion for searching a plurality of motion vectors used for predicting a current image partially forming an interlaced scanning moving image based on a reference image partially forming the moving image. A vector search device, wherein the current image is a current image frame, and the current image frame is
A current image frame block including a current image first field and a current image second field and represented by a plurality of pixels each having pixel data, wherein the current image first field and the current image second field include pixel data; Including a current image field block represented by a plurality of pixels each having a reference image frame, wherein the reference image comprises a reference image frame,
The reference image first field and the reference image second field are included, and a search window represented by a plurality of pixels each having pixel data is included, and the search window includes a plurality of frame candidate blocks. And the second field of the reference image includes a search window represented by a plurality of pixels each having pixel data, the search window includes a plurality of field candidate blocks, and the current image frame block and each of the frame candidate blocks are A motion vector search device for searching the plurality of motion vectors, the pixels having the same size, each of the current image field blocks having the same size as each of the field candidate blocks, De Current image data output means for outputting data, reference image data output means for outputting pixel data of field candidate blocks in the search window, and pixels of the current image field block input from the current image data output means Based on the data and the pixel data of each field candidate block in the search window input from the reference image data output means, for the current image field block, the current image field block and each field candidate block Between the distortion calculation means for calculating a plurality of distortions representing the difference between the images and the minimum distortion among the distortions corresponding to each current image field block calculated by the distortion calculation means, The most Block specifying means for specifying a field candidate block corresponding to the distortion, current image data input control means for inputting pixel data of the current image field block output from the current image data output means to the distortion calculating means, Window data input control means for inputting pixel data of field candidate blocks of the search window output from the reference image data output means to the distortion calculation means, and the distortion calculated by the distortion calculation means by the block identification means. And a window data transfer control for transferring pixel data of each field candidate block in the search window in the distortion calculation means. A first pixel data transfer holding unit for inputting and holding a part of pixel data of each field candidate block in the search window and transferring the held data, respectively. And a second pixel data transfer / holding unit, which inputs and holds a part of the pixel data of each field candidate block in the search window, transfers the held data respectively, and inputs from the current image data output means. Based on the pixel data of the current image field block and the pixel data of each field candidate block in the search window input from the reference image data output means, Image field block and each field candidate block A first distortion calculation unit and a second distortion calculation unit that respectively calculate a plurality of distortions that represent image differences between the first and second field candidate blocks, and the first pixel data transfer holding unit and the first pixel data transfer holding unit. A first transfer path for transferring between the distortion calculation unit and the second pixel data transfer holding unit, and pixel data of each of the field candidate blocks, the second pixel data transfer holding unit, the second distortion calculation unit, and the A second transfer path for transferring between the first pixel data transfer holding unit, and a motion vector search device.
【請求項23】請求項22記載の動きベクトル探索装置
において、 前記画素データの転送経路を切り換えるモード切り換え
手段を備え、 前記ディストーション算出手段が、前記各フィールド候
補ブロックの画素データを、前記第1画素データ転送保
持ユニット、前記第1ディストーション算出ユニットお
よび前記第2ディストーション算出ユニットの間で転送
させる第3転送経路を有し、 前記モード切り換え手段が、前記第1転送経路および前
記第2転送経路を選択する第1転送モードと、前記第3
転送経路を選択する第2転送モードと、を切り換えるこ
とを特徴とする動きベクトル探索装置。
23. The motion vector search device according to claim 22, further comprising a mode switching unit that switches a transfer path of the pixel data, wherein the distortion calculation unit sets the pixel data of each field candidate block to the first pixel. A data transfer holding unit, a third transfer path for transferring between the first distortion calculation unit and the second distortion calculation unit, wherein the mode switching means selects the first transfer path and the second transfer path. The first transfer mode, and the third
A motion vector search device characterized by switching between a second transfer mode for selecting a transfer path and a second transfer mode.
【請求項24】請求項23記載の動きベクトル探索装置
において、 前記モード切り換え手段によって、第2転送モードが選
択されたとき、 前記現画像データ出力手段が、前記現画像フレームブロ
ックの画素データを出力させ、 前記参照画像データ出力手段が、前記サーチウィンドウ
内のフレーム候補ブロックの画素データを出力させ、 前記現画像データ入力制御手段が、前記現画像データ出
力手段から出力される前記現画像フレームブロックの画
素データを前記ディストーション算出手段に入力させ、 前記ウィンドウデータ入力制御手段が、前記参照画像デ
ータ出力手段から出力される前記サーチウィンドウのフ
レーム候補ブロックの画素データを前記ディストーショ
ン算出手段に入力させ、 前記ウィンドウデータ転送制御手段が、前記サーチウィ
ンドウ内の各フレーム候補ブロックの画素データを、前
記第3転送経路に沿って転送させ、 前記ディストーション算出手段が、前記現画像データ出
力手段から入力される前記現画像フレームブロックの画
素データと、前記参照画像データ出力手段から入力され
る前記サーチウィンドウ内の各フレーム候補ブロックの
画素データと、に基づいて、前記現画像フレームブロッ
クに対し、該現画像フレームブロックと前記各フレーム
候補ブロックとの間の画像の差を表わす複数のディスト
ーションを算出させることを特徴とする動きベクトル探
索装置。
24. The motion vector search device according to claim 23, wherein when the second transfer mode is selected by the mode switching unit, the current image data output unit outputs pixel data of the current image frame block. The reference image data output means outputs the pixel data of the frame candidate block in the search window, and the current image data input control means controls the current image frame block output from the current image data output means. Pixel data is input to the distortion calculation means, the window data input control means is made to input the pixel data of the frame candidate block of the search window output from the reference image data output means to the distortion calculation means, and the window is input. The data transfer control means is Pixel data of each frame candidate block in the search window is transferred along the third transfer path, and the distortion calculation unit is configured to transmit the pixel data of the current image frame block input from the current image data output unit, Based on the pixel data of each frame candidate block in the search window input from the reference image data output means, for the current image frame block, between the current image frame block and each of the frame candidate blocks, A motion vector search device characterized in that a plurality of distortions representing image differences are calculated.
【請求項25】請求項24記載の動きベクトル探索装置
において、 H,L,NおよびMをそれぞれ整数とし、前記現画像フ
レームブロックが、(N×2)行M列の画素からなり、
前記現画像第1フィールドブロックが、N行M列の画素
からなり、前記現画像第2フィールドブロックが、N行
M列の画素からなるとともに、前記参照画像フレームの
サーチウインドウが、(H×2)行L列の画素からな
り、前記参照画像第1フィールドのサーチウィンドウ
が、H行L列の画素からなり、前記参照画像第2フィー
ルドのサーチウィンドウが、H行L列の画素からなる動
きベクトル探索装置であって、 前記第1ディストーション算出ユニットおよび前記第2
ディストーション算出ユニットが、それぞれ(H−N+
1)×(L−M+1)個のプロセッサエレメントからな
り、 前記第1画素データ転送保持ユニットが、2×(N−
1)×(L−M+1)個のサイドレジスタからなり、 前記第2画素データ転送保持ユニットが、(N−1)×
(L−M+1)個のサイドレジスタからなることを特徴
とする動きベクトル探索装置。
25. The motion vector search device according to claim 24, wherein H, L, N, and M are integers, and the current image frame block is composed of pixels of (N × 2) rows and M columns.
The current image first field block consists of pixels in N rows and M columns, the current image second field block consists of pixels in N rows and M columns, and the search window of the reference image frame is (H × 2). ) A motion vector composed of pixels of row L columns, the search window of the first field of the reference image composed of pixels of H rows L columns, and a search window of the second field of the reference image composed of pixels of H rows L columns It is a search device, Comprising: The 1st distortion calculation unit and the 2nd
The distortion calculation units are (H-N +
1) × (L−M + 1) processor elements, and the first pixel data transfer holding unit is 2 × (N−
1) × (L−M + 1) side registers, and the second pixel data transfer holding unit is (N−1) ×
A motion vector search device comprising (L-M + 1) side registers.
【請求項26】請求項24記載の動きベクトル探索装置
において、 H,L,NおよびMをそれぞれ整数とし、前記現画像フ
レームブロックが、(N×2)行M列の画素からなり、
前記現画像第1フィールドブロックが、N行M列の画素
からなり、前記現画像第2フィールドブロックが、N行
M列の画素からなるとともに、前記参照画像フレームの
サーチウインドウが、(H×2+1)行L列の画素から
なり、前記参照画像第1フィールドのサーチウィンドウ
が、H行L列の画素からなり、前記参照画像第2フィー
ルドのサーチウィンドウが、H行L列の画素からなる動
きベクトル探索装置であって、 前記第1ディストーション算出ユニットおよび前記第2
ディストーション算出ユニットが、それぞれ(H−N+
1)×(L−M+1)個のプロセッサエレメントからな
り、 前記第1画素データ転送保持ユニットが、(N×2−
1)×(L−M+1)個のサイドレジスタからなり、 前記第2画素データ転送保持ユニットが、(N−1)×
(L−M+1)個のサイドレジスタからなることを特徴
とする動きベクトル探索装置。
26. The motion vector search device according to claim 24, wherein H, L, N, and M are integers, and the current image frame block is composed of pixels in (N × 2) rows and M columns.
The first field block of the current image is composed of pixels of N rows and M columns, the second field block of the current image is composed of pixels of N rows and M columns, and the search window of the reference image frame is (H × 2 + 1). ) A motion vector composed of pixels of row L columns, the search window of the first field of the reference image composed of pixels of H rows L columns, and a search window of the second field of the reference image composed of pixels of H rows L columns It is a search device, Comprising: The 1st distortion calculation unit and the 2nd
The distortion calculation units are (H-N +
1) × (L−M + 1) processor elements, and the first pixel data transfer holding unit is (N × 2−).
1) × (L−M + 1) side registers, and the second pixel data transfer holding unit is (N−1) ×
A motion vector search device comprising (L-M + 1) side registers.
【請求項27】請求項25および26記載の動きベクト
ル探索装置において、 前記ウィンドウデータ転送制御手段が、前記サーチウィ
ンドウ内で隣り合う2つの画素列の画素データを互いに
列方向で逆方向に転送させるよう、前記第1ディストー
ション算出ユニットおよび前記第2ディストーション算
出ユニット内で入力画素データを列方向に往復移動させ
ながら前記転送経路に沿って転送させることを特徴とす
る動きベクトル探索装置。
27. The motion vector search device according to claim 25 or 26, wherein the window data transfer control means transfers pixel data of two adjacent pixel columns in the search window in opposite column directions. As described above, the motion vector search device characterized in that the input pixel data is transferred along the transfer path while reciprocating in the column direction in the first distortion calculating unit and the second distortion calculating unit.
【請求項28】請求項25および26記載の動きベクト
ル探索装置において、 前記ディストーション算出ユニットの前記プロセッサエ
レメントが、二次元的に配列されたシストリックアレー
構造の演算回路によって構成されることを特徴とする動
きベクトル探索装置。
28. The motion vector search device according to claim 25, wherein the processor element of the distortion calculation unit is composed of a two-dimensionally arranged arithmetic circuit having a systolic array structure. Motion vector search device.
JP5268896A 1996-03-11 1996-03-11 Motion vector search method and search device Expired - Fee Related JP2983170B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5268896A JP2983170B2 (en) 1996-03-11 1996-03-11 Motion vector search method and search device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5268896A JP2983170B2 (en) 1996-03-11 1996-03-11 Motion vector search method and search device

Publications (2)

Publication Number Publication Date
JPH09247683A true JPH09247683A (en) 1997-09-19
JP2983170B2 JP2983170B2 (en) 1999-11-29

Family

ID=12921838

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5268896A Expired - Fee Related JP2983170B2 (en) 1996-03-11 1996-03-11 Motion vector search method and search device

Country Status (1)

Country Link
JP (1) JP2983170B2 (en)

Also Published As

Publication number Publication date
JP2983170B2 (en) 1999-11-29

Similar Documents

Publication Publication Date Title
KR100203913B1 (en) Motion vector generator
JP2636674B2 (en) Video motion vector detection device
EP0840982B1 (en) Motion estimation
JP3009674B2 (en) Motion detector
JP3101691B2 (en) Method and circuit for processing a data signal representing successive pixels of a two-dimensional video
US6516031B1 (en) Motion vector detecting device
JPH08140094A (en) Motion vector search device
JP2983170B2 (en) Motion vector search method and search device
JPWO2004012460A1 (en) Motion vector detection apparatus and motion vector detection method
JP2934146B2 (en) Block matching method and apparatus in video compression
JP2931783B2 (en) Motion vector search device
JP2866325B2 (en) Motion vector search device
JP2866326B2 (en) Motion vector search device
JP2963369B2 (en) Motion vector search device
JP4101645B2 (en) Motion vector detection device, motion vector detection method, program, and recording medium
JP2868441B2 (en) Motion vector search method and search device
JP2866324B2 (en) Motion vector search device
JP2868444B2 (en) Motion vector search method and search device
JP2968233B2 (en) Motion vector search method and search device
US20030086497A1 (en) Motion vector detecting device improved in detection speed of motion vectors and system employing the same devices
KR100926440B1 (en) Block matching motion estimation apparatus for picture coding
JP3115511B2 (en) Motion vector search device
JP2868457B2 (en) Motion vector search device
JP2868440B2 (en) Motion vector search method and search device
JP2866321B2 (en) Motion vector search method and apparatus

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees