JP2866321B2 - Motion vector search method and apparatus - Google Patents

Motion vector search method and apparatus

Info

Publication number
JP2866321B2
JP2866321B2 JP14705095A JP14705095A JP2866321B2 JP 2866321 B2 JP2866321 B2 JP 2866321B2 JP 14705095 A JP14705095 A JP 14705095A JP 14705095 A JP14705095 A JP 14705095A JP 2866321 B2 JP2866321 B2 JP 2866321B2
Authority
JP
Japan
Prior art keywords
pixel data
row
search window
register
processor element
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP14705095A
Other languages
Japanese (ja)
Other versions
JPH08340538A (en
Inventor
孝之 小林
デイビット ワテル
豊 岡田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GURAFUITSUKUSU KOMYUNIKEESHON RABORATORIIZU KK
Original Assignee
GURAFUITSUKUSU KOMYUNIKEESHON RABORATORIIZU KK
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GURAFUITSUKUSU KOMYUNIKEESHON RABORATORIIZU KK filed Critical GURAFUITSUKUSU KOMYUNIKEESHON RABORATORIIZU KK
Priority to JP14705095A priority Critical patent/JP2866321B2/en
Publication of JPH08340538A publication Critical patent/JPH08340538A/en
Application granted granted Critical
Publication of JP2866321B2 publication Critical patent/JP2866321B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ディジタル動画像のデ
ータ圧縮に適用される動きベクトル探索方法および装置
に係り、特に、現画像の一部を構成する現符号化ブロッ
クと前符号化画像上のサーチウィンドウ内の複数の候補
ブロックとの間で算出されたそれぞれのディストーショ
ンに基づいて動きベクトルを探索する動きベクトル探索
方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for searching for a motion vector applied to data compression of a digital moving image, and more particularly to a method for searching a current coded block and a previously coded image which constitute a part of a current image. A motion vector search method and apparatus for searching for a motion vector based on each distortion calculated between a plurality of candidate blocks in a search window of the motion vector.

【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 large amounts of information. It is possible to do.

【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枚の画面を表し、走査方
式によって順次走査方式およびインタレース走査方式が
ある。インタレース走査方式の場合には、例えば、1枚
のフレームを奇数走査ラインからなる第1フィールドと
偶数走査ラインからなる第2フィールドとの2枚のフィ
ールドで構成する走査方式であり、上記予測符号化方式
は、どちらの走査方式においても適用される。以下、単
純フレーム間予測符号化方式および動き補償フレーム間
予測符号化方式について説明する。
As one of the compression methods for moving image information, there is known a method for compressing information based on a temporal correlation between two screens constituting a part of a moving image. This compression method includes, for example, a simple inter-frame prediction coding method and a motion compensation inter-frame prediction coding method. Here, a frame represents one screen constituting a moving image, and there are a sequential scanning method and an interlaced scanning method depending on the scanning method. In the case of the interlaced scanning method, for example, a scanning method in which one frame is composed of two fields of a first field composed of odd-numbered scanning lines and a second field composed of even-numbered scanning lines. The conversion method is applied to both of the scanning methods. Hereinafter, the simple inter-frame prediction coding method and the motion compensation inter-frame prediction coding method will be described.

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

【0006】なお、前符号化画像201は、現画像10
1よりも過去の画像であっても、未来の画像であっても
よいが、現画像101よりも時間的に先に符号化される
画像である。例えば、図69に示すように、前符号化画
像201における人物像120が現画像101において
右方向に移動してる場合、有意画素データを示す領域
は、2つの有意画素領域121および122によって示
される。有意画素領域121に位置的に対応する現画像
101上の画素データは、この画素データと有意画素領
域121との差分値および有意画素領域121によって
表すことができ、有意画素領域122に位置的に対応す
る現画像101上の画素データは、この画素データと有
意画素領域122との差分値および有意画素領域122
によって表すことができる。残りの非有意画素領域は、
この非有意画素領域と位置的に対応する前符号化画像2
01の画素データそのものによって表すことができる。
The pre-encoded image 201 is the same as the current image 10
Although the image may be a past image or a future image, it is an image that is coded temporally earlier than the current image 101. For example, as shown in FIG. 69, when the human image 120 in the pre-encoded image 201 moves rightward in the current image 101, the area indicating significant pixel data is indicated by two significant pixel areas 121 and 122. . Pixel data on the current image 101 corresponding to the significant pixel area 121 can be represented by a difference value between the pixel data and the significant pixel area 121 and the significant pixel area 121. The corresponding pixel data on the current image 101 is a difference value between the pixel data and the significant pixel area 122 and the significant pixel area 122.
Can be represented by The remaining insignificant pixel area is
The pre-encoded image 2 corresponding in position to this insignificant pixel area
01 can be represented by the pixel data itself.

【0007】単純フレーム間予測符号化方式では、有意
画素数が少ないほど予測の際に必要な差分値のデータ量
を少なくすることができ、圧縮効率を向上することがで
きる。また、閾値を高く設定することによって有意画素
の数を少なくして圧縮効率をさらに向上することもでき
るが、閾値を高くしすぎると、画像の動きがぎくしゃく
して不自然になったり、動くべき画像の一部が残像とし
て現れたりするため、画像品質が著しく劣化するといっ
た不具合が発生する。
In the simple inter-frame predictive coding method, the smaller the number of significant pixels, the smaller the amount of difference value data required for prediction, and the higher the compression efficiency. 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 motion of the image becomes jerky and unnatural or should move. Since a part of the image appears as an afterimage, a problem occurs that the image quality is significantly deteriorated.

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

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

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

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

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

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

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

【0015】[0015]

【数1】 (Equation 1)

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

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

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

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

【0020】次のサイクル1では、サーチウィンドウの
各画素データを全体として上に移動するとともに、現符
号化ブロックの画素データa(0,1)が入力されるこ
とで局所ディストーション |b(l+1,h)−a(1,0)| の計算が行われ、さらに、サイクル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 coding block is inputted, so that the local distortion | b (l + 1, h) −a (1,0) | is further calculated, and is added to the local distortion calculated in cycle 0 and stored.

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

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

【0023】次いで、この9個のディストーションの中
から検出された最小ディストーシションに基づいて動き
ベクトルが求められる。さらに、国際標準方式であるI
SO/IEC11172−2および暫定標準方式ISO
/IEC13818−2では、上記方式に加えて、図7
6に示す双方向予測符号化方式がある。この双方向予測
符号化方式は、時間的に過去の画像から現画像を予測す
る順方向予測符号化方式と時間的に未来の画像から現画
像を予測する逆方向予測符号化方式の中から最適な予測
符号化方式を選択することで、さらに予測効率を高める
方式である。
Next, a motion vector is obtained based on the minimum distortion detected from the nine distortions. In addition, the international standard I
SO / IEC117172-2 and provisional standard ISO
In / IEC13818-2, in addition to the above method, FIG.
6 is a bidirectional predictive coding method. This bidirectional predictive coding method is optimal among forward predictive coding methods that predict the current image from temporally past images and backward predictive coding methods that predict the current image from temporally future images. This is a method for further improving the prediction efficiency by selecting a suitable prediction coding method.

【0024】図76には3種類のピクチャタイプが示さ
れている。ここで、ピクチャーは符号化された1枚の画
像を表す。Iピクチャーは、現画像の情報だけから符号
化されたフレーム内予測符号化画像であり、Pピクチャ
ーは、IピクチャーまたはPピクチャーから予測された
順方向フレーム間予測符号化画像であり、Bピクチャ
は、IピクチャーまたはPピクチャーから予測された双
方向予測符号化画像である。IピクチャーおよびPピク
チャーは、現画像と同じ順序で符号化されるが、Bピク
チャーは、IピクチャーおよびPピクチャーが先に符号
化された後に符号化されてIピクチャまたはPピクチャ
およびPピクチャーの間に挿入される。なお、Mは、I
ピクチャまたはPピクチャーからPピクチャーを予測す
る周期を表し、Fdは、前符号化画像から現符号化画像
へのピクチャー数を示すフレーム間距離を表す。 図7
6(a)では、周期M=2であり、Iピクチャーに対し
て、2枚目置きにPピクチャーが生成され、生成された
PピクチャーまたはIピクチャーおよびPピクチャーか
ら1枚のBピクチャーが生成されている。
FIG. 76 shows three types of pictures. Here, the picture represents one encoded image. The I picture is an intra-frame prediction coded image coded only from information of the current image, the P picture is a forward inter-frame prediction coded image predicted from the I picture or P picture, and the B picture is , I-picture or P-picture. The I picture and P picture are coded in the same order as the current picture, but the B picture is coded after the I picture and P picture have been coded before and between the I picture or P picture and P picture. Is inserted into. Note that M is I
Fd represents a cycle of predicting a P picture from a picture or a P picture, and Fd represents an inter-frame distance indicating the number of pictures from a previous coded image to a current coded image. FIG.
In 6 (a), the cycle M = 2, a P picture is generated every other picture for an I picture, and one B picture is generated from the generated P picture or I picture and P picture. ing.

【0025】図76(b)では、周期M=3であり、I
ピクチャに対して、3枚目置きにPピクチャが生成さ
れ、生成されたPピクチャーまたはIピクチャーおよび
Pピクチャーから2枚のBピクチャーが生成されてい
る。この双方向予測符号化方式では、現画像と前符号化
画像との間の時間間隔が各画像毎に異なることになる。
一般に、動画像においては、現画像と前符号化画像との
間の時間間隔が大きくなるほど画像の動きも大きくなる
ので、動きベクトルを探索する範囲、すなわち、サーチ
ウィンドウのサイズも大きくする必要がある。
In FIG. 76 (b), the period M = 3, and I
For every third picture, a P picture is generated, and two B pictures are generated from the generated P picture or I picture and P picture. In this bidirectional predictive coding method, the time interval between the current picture and the previous coded picture differs for each picture.
In general, in a moving image, as the time interval between the current image and the previous encoded image increases, the motion of the image also increases. Therefore, the search range of the motion vector, that is, the size of the search window needs to be increased. .

【0026】[0026]

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

【0027】また、この全点探索法に対して、探索点を
分散させて探索点を削減することにより演算量を減らす
試みが行われてきたが、並列処理をうまく行うことがで
きず処理時間がかかってしまうといった問題があった。
さらに、従来の全点探索法を適用した動きベクトル探索
方法および装置にあっては、サーチウィンドウのサイズ
に応じて動きベクトルを探索する回路の規模が決定され
るので、例えば、広い探索範囲を必要としない場合で
も、広い探索範囲に適用された回路で動きベクトルを探
索するため、処理効率が低下してしまい、一方、処理効
率を上げるには、広い探索範囲に応じた回路と狭い探索
範囲に応じた回路との2つ以上の回路を構成し、サーチ
ウィンドウのサイズに応じて何れか一方の回路を選択す
る必要があるので、回路規模が膨大になってしまうとい
った問題があった。
In this all-points search method, attempts have been made to reduce the amount of calculation by dispersing the search points and reducing the number of search points. Problem.
Furthermore, in the conventional motion vector search method and apparatus to which the all-point search method is applied, the size of the circuit for searching for a motion vector is determined according to the size of the search window. Even if it is not, the motion vector is searched by the circuit applied to the wide search range, so the processing efficiency is reduced. Since it is necessary to configure two or more circuits with the corresponding circuit and to select one of the circuits according to the size of the search window, there is a problem that the circuit scale becomes enormous.

【0028】そこで、本発明は、図74および図75に
示された上方向、下方向および左方向にサーチウィンド
ウ内の画素データを一時的に記憶して転送する画素デー
タ記憶転送機能および転送されたサーチウィンドウの画
素データと現符号化ブロックの画素データとに基づいて
ディストーションを算出するディストーション算出機能
の2つの機能を有するプロセッサエレメントに対して、
画素データ記憶転送機能のみを有する中間レジスタを設
け、プロセッサエレメントおよび中間レジスタの総数が
サーチウィンドウの画素数に対応するように中間レジス
タを各プロセッサエレメントの間に配置することで、プ
ロセッサエレメントの数を増やすことなく、簡略的探索
により探索範囲を広くすることができる動きベクトル探
索方法および装置を提供することを目的とする。
Accordingly, the present invention provides a pixel data storage and transfer function for temporarily storing and transferring pixel data in a search window in the upward, downward and left directions shown in FIGS. 74 and 75. Processor element having two functions of a distortion calculation function of calculating a distortion based on the pixel data of the search window and the pixel data of the current coding block,
An intermediate register having only a pixel data storage transfer function is provided, and the number of processor elements is reduced by arranging the intermediate registers between the processor elements so that the total number of processor elements and intermediate registers corresponds to the number of pixels of the search window. It is an object of the present invention to provide a motion vector search method and apparatus capable of widening a search range by a simple search without increasing the number.

【0029】また、本発明は、広い探索範囲を取りたい
場合には、回路上に配置されたすべてのプロセッサエレ
メントおよび中間レジスタ間で広い探索範囲に対応する
サーチウィンドウのデータを転送させて簡略的な探索を
行うとともに、狭い探索範囲を取りたい場合には、回路
上に配置された一部のプロセッサエレメントおよび中間
レジスタ間で狭い探索範囲に対応した別のサーチウィン
ドウのデータを転送させて全点探索または全点探索に近
い探索を行い、サーチウィンドウのサイズに応じてプロ
セッサエレメントおよび中間レジスタを共有すること
で、回路規模が膨大になることを防止するとともに、処
理効率を低下させることなく、複数サイズの探索範囲か
ら動きベクトルを探索することができる動きベクトル探
索方法および装置を提供することを目的とする。
Further, according to the present invention, when a wide search range is desired, the data of the search window corresponding to the wide search range is transferred between all the processor elements and the intermediate registers arranged on the circuit. When a narrow search range is desired while performing a simple search, data of another search window corresponding to the narrow search range is transferred between some of the processor elements and the intermediate registers arranged on the circuit and all points are searched. By performing a search close to a search or an all-point search and sharing processor elements and intermediate registers according to the size of the search window, it is possible to prevent the circuit scale from becoming enormous and to reduce the processing efficiency without reducing the processing efficiency. A motion vector search method and apparatus capable of searching for a motion vector from a search range of a size. Aims to provide.

【0030】[0030]

【課題を解決するための手段】請求項1の発明は、上記
課題を解決するため、H1,L1,H2,L2,Nおよ
びMを整数とし、H2をH1以下の整数、L2をL1以
下の整数とするとき、動画像を構成する現画像の符号化
情報を現画像より先に符号化された前符号化画像の符号
化情報に基づいて生成するよう、前記現画像の一部を構
成するN行M列の画素からなる現符号化ブロックと前記
前符号化画像上のH1行L1列の画素からなる第1サー
チウィンドウ内のN行M列の画素からなる複数の候補ブ
ロックとをそれぞれ比較し、これらの候補ブロックから
前記現符号化ブロックに類似する1つの候補ブロックを
選択し、前記現符号化ブロックの現画像上の位置と選択
された候補ブロックの前符号化画像上の位置との変位に
より特定される動きベクトルを探索する第1動作モード
と、前記現符号化ブロックと前記前符号化画像上のH2
行L2列の画素からなる第2サーチウィンドウ内のN行
M列の画素からなる複数の候補ブロックとをそれぞれ比
較し、これらの候補ブロックから前記現符号化ブロック
に類似する1つの候補ブロックを選択し、前記現符号化
ブロックの現画像上の位置と選択された候補ブロックの
前符号化画像上の位置との変位により特定される動きベ
クトルを探索する第2動作モードと、前記第1動作モー
ドと第2動作モードの何れか一方を選択し、選択された
動作モードにおいて前記現符号化ブロックの動きベクト
ルを探索する動きベクトル探索方法において、前記第1
動作モードと第2動作モードの何れか一方を選択する動
作モード選択手段と、該動作モード選択手段で選択され
たサーチウィンドウ内の各候補ブロックの画素データと
前記現符号化ブロックの画素データとに基づいて、各候
補ブロックと現符号化ブロックとのそれぞれのディスト
ーションを算出するディストーション算出ユニットと、
該ディストーション算出ユニットに現符号化ブロックの
画素データを供給する現符号化ブロックデータ供給ユニ
ットと、前記ディストーション算出ユニットに前記動作
モード選択手段で選択されたサーチウィンドウ内の画素
データを供給するサーチウィンドウデータ供給ユニット
と、を準備する第1ステップを有し、さらに、前記ディ
ストーション算出ユニットは、前記サーチウィンドウデ
ータ供給ユニットから供給されたサーチウィンドウの画
素データを入力し、入力された画素データを一時的に保
持して出力する記憶転送器と前記現符号化ブロック供給
ユニットから前記現符号化ブロックのそれぞれの画素デ
ータを入力するとともに、前記記憶転送器から現符号化
ブロックのそれぞれの画素位置に対応する候補ブロック
の画素データを入力し、入力された現符号化ブロックの
画素データと候補ブロックの画素データとに基づいてデ
ィストーションを算出する演算器とから構成される(H
2−N+1)×(L2−M+1)個以下のプロセッサエ
レメントと、前記記憶転送器からなり、前記プロセッサ
エレメントを含む総数が(H1−N+1)×(L1−M
+1)個となる複数の中間レジスタと、前記サーチウィ
ンドウデータ供給ユニットから供給されたサーチウィン
ドウの画素データを入力し、入力された画素データを一
時的に保持して出力する(H1−N+1)個の入力レジ
スタからなる入力レジスタユニットと、前記サーチウィ
ンドウデータ供給ユニットから供給されたサーチウィン
ドウの画素データを入力し、入力された画素データを一
時的に保持して出力する(L1−M+2)個のサイドレ
ジスタデバイスからなるサイドレジスタユニットと、を
含み、前記プロセッサエレメントが前記中間レジスタと
ともに(H1−N+1)行(L1−M+1)列のマトリ
ックス状に想像上配置されるものとするとき、nを(H
1−N+1)以下の自然数とし、mを(L1−M+2)
以下の自然数とし、前記入力レジスタユニットの各入力
レジスタは、それぞれ(L1−M+1)列目のプロセッ
サエレメントまたは中間レジスタに電気的に接続され、
n行目の(L1−M+1)列目のプロセッサエレメント
または中間レジスタに電気的に接続された入力レジスタ
を、n行目の入力レジスタと呼ぶとし、前記サイドレジ
スタユニットの各サイドレジスタデバイスは、それぞれ
1行目および(H1−N+1)行目のプロセッサエレメ
ント、中間レジスタまたは入力レジスタに電気的に接続
され、m列目の1行目および(H1−N+1)行目のプ
ロセッサエレメントまたは中間レジスタに電気的に接続
されたサイドレジスタデバイスを、m列目のサイドレジ
スタデバイスと呼ぶとともに、1行目および(H1−N
+1)行目の入力レジスタに電気的に接続されたサイド
レジスタデバイスを(L1−M+2)列目のサイドレジ
スタデバイスと呼ぶとするとき、2行目以降のn行目の
入力レジスタが、n−1行目の入力レジスタに電気的に
接続され、2列目以降のm列目のサイドレジスタデバイ
スが、m−1列目のサイドレジスタデバイスに電気的に
接続され、iを(H2−N+1)以下の自然数とし、j
を(L2−M+1)以下の自然数とし、前記動作モード
選択手段で第2動作モードが選択された場合、前記第2
サーチウィンドウの探索範囲を示す(H2−N+1)行
に対応するよう1行目から(H1−N+1)行目までの
(H1−N+1)個の行から少なくとも1つのプロセッ
サエレメントを含むプロセッサエレメントおよび中間レ
ジスタからなる(H2−N+1)個の行をマトリックス
の行数としてカウントし、かつ、前記第2サーチウィン
ドウの探索範囲を示す(L2−M+1)列に対応するよ
う1列目から(L1−M+1)列目までの(L1−N+
1)個の列から少なくとも1つのプロセッサエレメント
を含むプロセッサエレメントおよび中間レジスタからな
る(L2−M+1)個の列をマトリックスの列数として
カウントし、それぞれの行をi行、それぞれの列をj列
で表すとき、さらに、前記動作モード選択手段で第1動
作モードが選択された場合、前記サーチウィンドウデー
タ供給ユニットから前記入力レジスタユニットまたは前
記(L1−M+2)列目のサイドレジスタデバイスに第
1サーチウィンドウの画素データを順次供給する一方、
前記動作モード選択手段で第2動作モードが選択された
場合、前記サーチウィンドウデータ供給ユニットから前
記入力レジスタユニットまたは前記(L1−M+2)列
目のサイドレジスタデバイスに第2サーチウィンドウの
画素データを順次供給する第2ステップと、前記動作モ
ード選択手段で第1動作モードが選択された場合、第2
ステップにおいて、前記サーチウィンドウデータ供給ユ
ニットから第1サーチウィンドウの画素データが転送さ
れるタイミングに同期して、各サイドレジスタデバイス
から同列の1行目の各プロセッサエレメント、各中間レ
ジスタまたは入力レジスタに画素データを転送し、同時
に、1行目から(H1−N)行目までのn行目の各プロ
セッサエレメントから同列のn+1行目の各プロセッサ
エレメントまたは各中間レジスタに画素データを転送
し、同時に、1行目から(H1−N)行目までのn行目
の各中間レジスタから同列のn+1行目の各プロセッサ
エレメントまたは各中間レジスタに画素データを転送
し、同時に、1行目から(H1−N)行目までのn行目
の入力レジスタから同列のn+1行目の入力レジスタに
画素データを転送し、同時に、(H1−N+1)行目の
各プロセッサエレメント、各中間レジスタおよび入力レ
ジスタから同列のサイドレジスタデバイスに画素データ
を転送する一方、前記動作モード選択手段で第2動作モ
ードが選択された場合、前記第2ステップにおいて、前
記サーチウィンドウデータ供給ユニットから第2サーチ
ウィンドウの画素データが転送されるタイミングに同期
して、各サイドレジスタデバイスから同列の1行目の各
プロセッサエレメント、各中間レジスタまたは入力レジ
スタに画素データを転送し、同時に、1行目から(H1
−N)行目までのi行目の各プロセッサエレメントから
同列のi+1行目の各プロセッサエレメントまたは各中
間レジスタに画素データを転送し、同時に、1行目から
(H1−N)行目までのi行目の各中間レジスタから同
列のi+1行目の各プロセッサエレメントまたは各中間
レジスタに画素データを転送し、同時に、1行目から
(H1−N)行目までのi行目の入力レジスタから同列
のi+1行目の入力レジスタに画素データを転送し、同
時に、(H1−N+1)行目の各プロセッサエレメン
ト、中間レジスタおよび入力レジスタから同列のサイド
レジスタデバイスに画素データを転送する第3ステップ
と、前記動作モード選択手段で第1動作モードが選択さ
れた場合、第3ステップの後、前記サーチウィンドウデ
ータ供給ユニットから第1サーチウィンドウの画素デー
タが転送されるタイミングに同期して、2列目以降(L
1−M+1)列目までのm列目の各プロセッサエレメン
トから同行のm−1列目の各プロセッサエレメントまた
は各中間レジスタに画素データを転送し、同時に、2列
目以降(L1−M+1)列目までのm列目の各中間レジ
スタから同行のm−1列目の各プロセッサエレメントま
たは各中間レジスタに画素データを転送し、同時に、2
列目以降(L1−M+2)列目までのm列目の各サイド
レジスタデバイスから同行のm−1列目の各サイドレジ
スタデバイスに画素データを転送し、同時に、各入力レ
ジスタから同行の(L1−M+1)列目の各プロセッサ
エレメントまたは各中間レジスタに画素データを転送す
る一方、前記動作モード選択手段で第2動作モードが選
択された場合、前記第3ステップの後、前記サーチウィ
ンドウデータ供給ユニットから第2サーチウィンドウの
画素データが転送されるタイミングに同期して、2列目
以降(L1−M+1)列目までのj列目の各プロセッサ
エレメントから同行のj−1列目の各プロセッサエレメ
ントまたは各中間レジスタに画素データを転送し、同時
に、2列目以降(L1−M+1)列目までのj列目の各
中間レジスタから同行のj−1列目の各プロセッサエレ
メントまたは各中間レジスタに画素データを転送し、同
時に、2列目以降(L1−M+2)列目までのj列目の
各サイドレジスタデバイスから同行のj−1列目の各サ
イドレジスタデバイスに画素データを転送し、同時に、
各入力レジスタから同行の(L1−M+1)列目の各プ
ロセッサエレメントまたは各中間レジスタ画素データを
転送する第4ステップと、前記動作モード選択手段で第
1動作モードが選択された場合、第4ステップの後、前
記サーチウィンドウデータ供給ユニットから第1サーチ
ウィンドウの画素データが転送されるタイミングに同期
して、1行目の各プロセッサエレメント、各中間レジス
タおよび入力レジスタから同列のサイドレジスタデバイ
スに画素データを転送し、同時に、2行目から(H1−
N+1)行目までのn行目の各プロセッサエレメントか
ら同列のn−1行目の各プロセッサエレメントまたは各
中間レジスタに画素データを転送し、同時に、2行目か
ら(H1−N+1)行目までのn行目の各中間レジスタ
から同列のn−1行目の各プロセッサエレメントまたは
各中間レジスタに画素データを転送し、同時に、2行目
から(H1−N+1)行目までのn行目の入力レジスタ
から同列のn−1行目の入力レジスタに画素データを転
送し、同時に、各サイドレジスタデバイスから同列の
(H1−N+1)行目の各プロセッサエレメント、各中
間レジスタまたは入力レジスタに画素データを転送する
一方、前記動作モード選択手段で第2動作モードが選択
された場合、前記第4ステップの後、前記サーチウィン
ドウデータ供給ユニットから第2サーチウィンドウの画
素データが転送されるタイミングに同期して、1行目の
各プロセッサエレメント、各中間レジスタおよび入力レ
ジスタから同列のサイドレジスタデバイスに画素データ
を転送し、同時に、2行目から(H1−N+1)行目ま
でのi行目の各プロセッサエレメントから同列のi−1
行目の各プロセッサエレメントまたは各中間レジスタに
画素データを転送し、同時に、2行目から(H1−N+
1)行目までのi行目の各中間レジスタから同列のi−
1行目の各プロセッサエレメントまたは各中間レジスタ
に画素データを転送し、同時に、2行目から(H1−N
+1)行目までのi行目の入力レジスタから同列のi−
1行目の入力レジスタに画素データを転送し、同時に、
サイドレジスタデバイスから同列の(H1−N+1)行
目の各プロセッサエレメント、各中間レジスタまたは入
力レジスタに画素データを転送する第5ステップと、前
記第3ステップを(N−1)回繰り返し、次いで、前記
第4ステップを1回行い、次いで、前記第5ステップを
(N−1)回繰り返し、次いで、前記第4ステップを1
回行う工程を1サイクルとして、順次このサイクルを繰
り返す第6ステップと、前記動作モード選択手段で第1
動作モードが選択された場合、1列目のプロセッサエレ
メントに前記第1サーチウィンドウの画像データが初め
て転送されたとき、各プロセッサエレメントに前記現符
号化ブロックの1画素分の画素データを現符号化ブロッ
クデータ供給ユニットから入力し、以後、前記第6ステ
ップの画素データの転送タイミングに同期して、各プロ
セッサエレメントに現符号化ブロックの全ての画素デー
タが画素毎に入力されるまで、画素データの入力を繰り
返す一方、前記動作モード選択手段で第2動作モードが
選択された場合、1列目のプロセッサエレメントに前記
第2サーチウィンドウの画像データが初めて転送された
とき、各プロセッサエレメントに前記現符号化ブロック
の1画素分の画素データを現符号化ブロックデータ供給
ユニットから入力し、以後、前記第6ステップの画素デ
ータの転送タイミングに同期して、各プロセッサエレメ
ントに現符号化ブロックの全ての画素データが画素毎に
入力されるまで、画素データの入力を繰り返す第7ステ
ップと、前記動作モード選択手段で第1動作モードが選
択された場合、前記第7ステップで各プロセッサエレメ
ントに入力された第1サーチウィンドウ内の各候補ブロ
ックの画素データと現符号化ブロックの画素データに基
づいて、各プロセッサエレメントでディストーションを
算出する一方、さらに、前記動作モード選択手段で第2
動作モードが選択された場合、前記第7ステップで各プ
ロセッサエレメントに入力された第2サーチウィンドウ
内の各候補ブロックの画素データと現符号化ブロックの
画素データに基づいて、各プロセッサエレメントがディ
ストーションを算出することを特徴とする。
According to the first aspect of the present invention, H1, L1, H2, L2, N and M are integers, H2 is an integer of H1 or less, and L2 is an integer of L1 or less. When an integer, a part of the current image is configured to generate coding information of a current image forming a moving image based on coding information of a previous coded image that is coded earlier than the current image. A current coded block composed of N rows and M columns of pixels is compared with a plurality of candidate blocks composed of N rows and M columns of pixels in a first search window composed of H1 rows and L1 columns of pixels in the previous coded image. Then, one candidate block similar to the current coded block is selected from these candidate blocks, and the position of the current coded block on the current image and the position of the selected candidate block on the previous coded image are selected. Motion specified by displacement A first operation mode for searching for a vector, on the current coding block and the previous encoded image H2
A plurality of candidate blocks consisting of pixels in N rows and M columns in a second search window consisting of pixels in row L2 are compared with each other, and one candidate block similar to the current coded block is selected from these candidate blocks. A second operation mode for searching for a motion vector specified by a displacement between the position of the current coded block on the current image and the position of the selected candidate block on the previous coded image; and the first operation mode And a second operation mode, and a motion vector search method for searching for a motion vector of the current coded block in the selected operation mode.
An operation mode selection unit for selecting one of the operation mode and the second operation mode; and a pixel data of each candidate block in the search window selected by the operation mode selection unit and a pixel data of the current encoding block. A distortion calculation unit that calculates a distortion of each of the candidate blocks and the current coding block based on the
A current coded block data supply unit for supplying pixel data of a current coded block to the distortion calculation unit, and search window data for supplying pixel data in a search window selected by the operation mode selection means to the distortion calculation unit And a supply unit. The distortion calculation unit further inputs the pixel data of the search window supplied from the search window data supply unit, and temporarily stores the input pixel data. The storage and transfer unit that holds and outputs the pixel data of the current coded block from the current coded block supply unit and the candidate corresponding to each pixel position of the current coded block from the storage and transfer unit Enter pixel data of block Was constituted by a calculator for calculating the distortion based on the pixel data of the pixel data and the candidate block of the current coded block input (H
It is composed of (2-N + 1) × (L2-M + 1) or less processor elements and the storage transfer unit, and the total number including the processor elements is (H1-N + 1) × (L1-M
+1) plural intermediate registers and the search window pixel data supplied from the search window data supply unit are input, and the input pixel data is temporarily held and output (H1-N + 1) And (L1-M + 2) input register units, each of which has input registers, and pixel data of a search window supplied from the search window data supply unit, and temporarily holds and outputs the input pixel data. And a side register unit comprising a side register device, wherein the processor elements are imaginarily arranged together with the intermediate registers in a matrix of (H1-N + 1) rows (L1-M + 1) columns, where n is ( H
1-N + 1) or less and m is (L1-M + 2)
Each of the input registers of the input register unit is electrically connected to a processor element or an intermediate register in the (L1-M + 1) -th column.
An input register electrically connected to the processor element or the intermediate register in the (L1-M + 1) -th column of the n-th row is referred to as an n-th row input register. The processor element in the first row and the (H1-N + 1) -th row is electrically connected to the intermediate register or the input register, and the processor element or the intermediate register in the first row and the (H1-N + 1) -th row in the m-th column is electrically connected. The side register devices connected in series are referred to as the m-th column side register device, and the first row and (H1-N)
When the side register device electrically connected to the (+1) th row input register is referred to as the (L1-M + 2) th column side register device, the nth row input register in the second and subsequent rows is n− The side register device of the mth column after the second column is electrically connected to the side register device of the (m-1) th column, and i is set to (H2-N + 1). J is the following natural number
Is a natural number equal to or less than (L2−M + 1), and when the second operation mode is selected by the operation mode selection means,
A processor element including at least one processor element from (H1-N + 1) rows from the first row to the (H1-N + 1) row corresponding to the (H2-N + 1) row indicating the search range of the search window, and the intermediate The (H2-N + 1) rows of registers are counted as the number of rows in the matrix, and (L1-M + 1) from the first column corresponds to the (L2-M + 1) column indicating the search range of the second search window. ) To the (L1-N +)
(L2-M + 1) columns consisting of a processor element including at least one processor element and an intermediate register from 1) columns are counted as the number of columns of a matrix, each row is i rows, and each column is j columns. In addition, when the first operation mode is selected by the operation mode selection means, a first search is performed from the search window data supply unit to the input register unit or the side register device in the (L1-M + 2) th column. While sequentially supplying the pixel data of the window,
When the second operation mode is selected by the operation mode selection means, the pixel data of the second search window is sequentially transferred from the search window data supply unit to the input register unit or the side register device of the (L1-M + 2) th column. A second step of supplying, and when the first operation mode is selected by the operation mode selection means,
In the step, in synchronization with the timing at which the pixel data of the first search window is transferred from the search window data supply unit, the pixel is transferred from each side register device to each processor element, each intermediate register or the input register in the first row in the same column. At the same time, pixel data is transferred from each processor element in the nth row from the first row to the (H1-N) th row to each processor element in the (n + 1) th row or each intermediate register in the same column. Pixel data is transferred from each intermediate register in the nth row from the first row to the (H1-N) th row to each processor element or each intermediate register in the (n + 1) th row in the same column, and at the same time, from the first row to the (H1-N) N) transferring the pixel data from the input register on the nth row up to the row to the input register on the (n + 1) th row in the same column; At the same time, when the pixel data is transferred from each processor element in the (H1-N + 1) th row, each intermediate register, and the input register to the side register device in the same column, while the second operation mode is selected by the operation mode selection means, In the second step, in synchronization with the timing at which the pixel data of the second search window is transferred from the search window data supply unit, each processor element, each intermediate register or input signal of the first row in the same column from each side register device. The pixel data is transferred to the register, and at the same time, (H1
-N) Pixel data is transferred from each processor element in the i-th row up to the row to each processor element in the (i + 1) -th row or each intermediate register in the same column, and at the same time, from the first row to the (H1-N) th row. The pixel data is transferred from each intermediate register on the i-th row to each processor element or each intermediate register on the (i + 1) -th row in the same column, and at the same time, from the input registers on the i-th row from the first row to the (H1-N) th row. A third step of transferring the pixel data to the input register of the (i + 1) th row in the same column and simultaneously transferring the pixel data from each processor element, intermediate register and input register of the (H1-N + 1) th row to the side register device in the same column; When the first operation mode is selected by the operation mode selection means, after the third step, the search window data supply unit 1 in synchronism with the timing of the search window pixel data is transferred, the second column or later (L
Pixel data is transferred from each processor element in the m-th column up to the (1-M + 1) th column to each processor element in the (m-1) -th column or each intermediate register in the same row, and at the same time, in the second and subsequent columns (L1-M + 1) The pixel data is transferred from each intermediate register in the m-th column to each processor element or each intermediate register in the (m-1) -th column in the same row.
The pixel data is transferred from each of the m-th side register devices in the mth column up to the (L1-M + 2) th column to each of the m-1th column side register devices in the same row. -M + 1) While the pixel data is transferred to each processor element or each intermediate register in the column, if the second operation mode is selected by the operation mode selection means, after the third step, the search window data supply unit , In synchronization with the timing at which the pixel data of the second search window is transferred, each processor element in the jth column from the second column to the (L1-M + 1) th column and each processor element in the j-1th column in the same row Alternatively, pixel data is transferred to each intermediate register, and at the same time, from each intermediate register of the j-th column from the second column to the (L1-M + 1) th column. The pixel data is transferred to each processor element or each intermediate register in the j-1th column of the row, and at the same time, from each side register device in the jth column from the second column to the (L1-M + 2) th column, the j- The pixel data is transferred to each side register device in the first column, and at the same time,
A fourth step of transferring each processor element or each intermediate register pixel data in the (L1-M + 1) column of the same row from each input register; and a fourth step when the first operation mode is selected by the operation mode selection means. Then, in synchronization with the timing at which the pixel data of the first search window is transferred from the search window data supply unit, the pixel data is transferred from each processor element, each intermediate register and the input register of the first row to the side register device in the same column. At the same time, (H1-
The pixel data is transferred from each processor element in the nth row up to the (N + 1) th row to each processor element in the (n-1) th row or each intermediate register in the same column, and simultaneously, from the second row to the (H1-N + 1) th row. , Pixel data is transferred from each intermediate register on the nth row to each processor element or each intermediate register on the (n-1) th row in the same column, and at the same time, on the nth row from the second row to the (H1-N + 1) th row The pixel data is transferred from the input register to the input register on the (n-1) th row in the same column, and at the same time, the pixel data is transferred from each side register device to each processor element, each intermediate register or the input register in the (H1-N + 1) th row in the same column. If the second operation mode is selected by the operation mode selecting means, the search window data supply unit is transferred after the fourth step. The pixel data is transferred from each processor element, each intermediate register and the input register in the first row to the same side register device in synchronization with the timing at which the pixel data of the second search window is transferred from the second search window. From each processor element in the i-th row from the (h1-N + 1) th row to the i-th row in the same column
The pixel data is transferred to each processor element or each intermediate register on the line, and at the same time, from the second line, (H1-N +
1) From each intermediate register on the i-th row up to the row, i-
The pixel data is transferred to each processor element or each intermediate register in the first row, and at the same time, (H1-N
+1) From the input register of the i-th row up to the row, i-
The pixel data is transferred to the input register on the first row,
A fifth step of transferring pixel data from the side register device to each processor element, each intermediate register, or an input register in the (H1-N + 1) -th row in the same column; and repeating the third step (N-1) times. The fourth step is performed once, and then the fifth step is repeated (N-1) times.
A process to be repeated one time as one cycle, and a sixth step of sequentially repeating this cycle;
When the operation mode is selected, when the image data of the first search window is transferred to the processor element in the first column for the first time, the pixel data of one pixel of the current encoding block is encoded into each processor element by the current encoding. Input from the block data supply unit, and thereafter, in synchronization with the transfer timing of the pixel data in the sixth step, until all the pixel data of the current encoding block are input to each processor element for each pixel, When the input is repeated and the second operation mode is selected by the operation mode selection means, when the image data of the second search window is transferred to the processor element in the first column for the first time, the current code is applied to each processor element. Pixel data of one pixel of the encoded block is input from the current encoded block data supply unit A seventh step of repeating the input of the pixel data until all the pixel data of the current coding block are input to each processor element for each pixel in synchronization with the transfer timing of the pixel data in the sixth step. When the first operation mode is selected by the operation mode selection means, the pixel data of each candidate block and the pixel data of the current coding block in the first search window input to each processor element in the seventh step are While each processor element calculates the distortion based on the
When the operation mode is selected, each processor element performs distortion based on the pixel data of each candidate block and the pixel data of the current coding block in the second search window input to each processor element in the seventh step. It is characterized in that it is calculated.

【0031】請求項2の発明は、上記課題を解決するた
め、前記動作モード選択手段は、現画像と前符号化画像
との時間的隔たりが所定値より大きい場合、第1動作モ
ードを選択し、現画像と前符号化画像との時間的隔たり
が所定値以下の場合、第2動作モードを選択することを
特徴とする。請求項3の発明は、上記課題を解決するた
め、前記ディストーション算出ユニットは、1行目から
(H1−N+1)行目までの(H1−N+1)個の行の
中の(H2−N+1)個の行と1列目から(L1−M+
1)行目までの(L1−M+1)個の列の中の(L2−
M+1)個の列とが前記マトリックス状で交差する位置
に(H2−N+1)×(L2−M+1)個のプロセッサ
エレメントが配置され、前記動作モード選択手段で第2
動作モードが選択された場合、これらの(H2−N+
1)×(L2−M+1)個のプロセッサエレメントに前
記第2〜第7ステップによって第2サーチウィンドウ内
の各候補ブロックの画素データと現符号化ブロックの画
素データを入力し、入力された画素データに基づいてこ
れらの(H2−N+1)×(L2−M+1)個のプロセ
ッサエレメントでディストーションを算出することを特
徴とする。
According to a second aspect of the present invention, in order to solve the above-mentioned problem, the operation mode selecting means selects the first operation mode when a time difference between a current image and a previous encoded image is larger than a predetermined value. The second operation mode is selected when the time difference between the current image and the previous encoded image is equal to or less than a predetermined value. According to a third aspect of the present invention, in order to solve the above-mentioned problem, the distortion calculation unit includes (H2-N + 1) of (H1-N + 1) rows from the first row to the (H1-N + 1) th row. From the row and the first column of (L1-M +
1) (L2-M + 1) in (L1-M + 1) columns up to the row
(H2−N + 1) × (L2−M + 1) processor elements are arranged at positions where the (M + 1) columns intersect in the matrix, and
When the operation mode is selected, these (H2-N +
1) The pixel data of each candidate block in the second search window and the pixel data of the current coded block are input to the (L2−M + 1) processor elements in the second to seventh steps, and the input pixel data The distortion is calculated with these (H2-N + 1) × (L2-M + 1) processor elements based on

【0032】請求項4の発明は、上記課題を解決するた
め、前記第1ステップは、前記ディストーション算出ユ
ニットで算出されたすべてのディストーションの中から
最小の値を示すディストーションを検出するとともに、
最小ディストーションが算出されたプロセッサエレメン
トのマトリックス状の配置位置に基づいて、最小ディス
トーションが算出されたプロセッサエレメントに対応す
る候補ブロックから現符号化ブロックへの動きベクトル
を特定する候補ブロック特定ユニットを準備する第8ス
テップを有し、該候補ブロック特定ユニットは、少なく
とも1つのプロセッサエレメントを含むプロセッサエレ
メントおよび中間レジスタからなる(H2−N+1)行
のそれぞれの行の一端に位置するプロセッサエレメント
に電気的に接続され、さらに、前記ディストーション算
出ユニットで算出されたすべてのディストーションを候
補ブロック特定ユニットに転送する第9ステップを有
し、該第9ステップは、前記候補ブロック特定ユニット
に電気的に接続されたそれぞれのプロセッサエレメント
から前記候補ブロック特定ユニットにそれぞれのディス
トーションを転送するとともに、候補ブロック特定ユニ
ットに向けて各プロセッサエレメントから同行のプロセ
ッサエレメントに順次ディストーションを転送すること
を特徴とする。
According to a fourth aspect of the present invention, in order to solve the above problem, the first step includes detecting a distortion having a minimum value from all the distortions calculated by the distortion calculation unit,
A candidate block specifying unit for specifying a motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coded block is prepared based on the matrix arrangement positions of the processor elements for which the minimum distortion has been calculated. Eighth step, wherein the candidate block identification unit is electrically connected to a processor element located at one end of each of the (H2-N + 1) rows including a processor element including at least one processor element and an intermediate register. A ninth step of transferring all distortions calculated by the distortion calculation unit to the candidate block specifying unit, wherein the ninth step is electrically connected to the candidate block specifying unit. It transfers the respective distortion to the candidate block identification unit from the respective processor element, characterized in that sequentially transfers distortion processor element of the bank from the processor elements towards the candidate block specifying unit.

【0033】請求項5の発明は、上記課題を解決するた
め、前記動作モード選択手段によって第1動作モードが
選択された場合、前記サーチウィンドウデータ供給ユニ
ットは、第1サーチウィンドウをM画素分列方向にシフ
トした第3サーチウィンドウの画素データで、第1サー
チウィンドウと第3サーチウィンドウで共通する画素デ
ータを除いた残りの画素データを、第1サーチウィンド
ウの画素データに続けて供給することで、前記第6ステ
ップを繰り返す一方、前記動作モード選択手段によって
第2動作モードが選択された場合、前記サーチウィンド
ウデータ供給ユニットは、第2サーチウィンドウをM画
素分列方向にシフトした第4サーチウィンドウの画素デ
ータで、第2サーチウィンドウと第4サーチウィンドウ
で共通する画素データを除いた残りの画素データを、第
2サーチウィンドウの画素データに続けて供給すること
で、前記第6ステップを繰り返す第10ステップと、前
記動作モード選択手段によって第1動作モードが選択さ
れた場合、前記現符号化ブロックデータ供給ユニット
は、前記現符号化ブロックの列方向に隣接し、前記第3
サーチウィンドウに対応するもうひとつの現符号化ブロ
ックの画素データを第1サーチウィンドウの現符号化ブ
ロックに続けて供給することで、前記第7ステップを繰
り返す一方、前記動作モード選択手段によって第2動作
モードが選択された場合、前記現符号化ブロックデータ
供給ユニットは、前記現符号化ブロックの列方向に隣接
し、前記第4サーチウィンドウに対応するもうひとつの
現符号化ブロックの画素データを第2サーチウィンドウ
の現符号化ブロックに続けて供給することで、前記第7
ステップを繰り返す第11ステップと、を有し、前記第
11ステップが終了する前に、前記第9ステップが終了
することを特徴とする。
According to a fifth aspect of the present invention, in order to solve the above-mentioned problem, when the first operation mode is selected by the operation mode selection means, the search window data supply unit sets the first search window to M pixels. By supplying the pixel data of the third search window shifted in the direction, except for the pixel data common to the first search window and the third search window, to the pixel data of the first search window, When the sixth operation is repeated and the second operation mode is selected by the operation mode selection means, the search window data supply unit shifts the second search window by M pixels in the column direction. Pixel data common to the second search window and the fourth search window. By supplying the remaining pixel data excluding the data to the pixel data of the second search window, the tenth step of repeating the sixth step, and the first operation mode is selected by the operation mode selection means. In this case, the current coded block data supply unit is adjacent to the current coded block in the column direction, and
The seventh step is repeated by supplying pixel data of another current coded block corresponding to the search window to the current coded block of the first search window, while the second operation is performed by the operation mode selecting means. When a mode is selected, the current coded block data supply unit is configured to transmit pixel data of another current coded block adjacent to the current coded block in the column direction and corresponding to the fourth search window to the second coded block. By continuously supplying the current coded block of the search window,
An eleventh step of repeating the steps, wherein the ninth step ends before the eleventh step ends.

【0034】請求項6の発明は、上記課題を解決するた
め、前記第1ステップは、前記ディストーション算出ユ
ニットで算出されたすべてのディストーションの中から
最小の値を示すディストーションを検出するとともに、
最小ディストーションが算出されたプロセッサエレメン
トのマトリックス状の配置位置に基づいて、最小ディス
トーションが算出されたプロセッサエレメントに対応す
る候補ブロックから現符号化ブロックへの動きベクトル
を特定する候補ブロック特定ユニットを準備する第8ス
テップを有し、該候補ブロック特定ユニットは、少なく
とも1つのプロセッサエレメントを含むプロセッサエレ
メントおよび中間レジスタからなる(L2−M+1)列
のそれぞれの列の一端に位置するプロセッサエレメント
に電気的に接続され、さらに、前記ディストーション算
出ユニットで算出されたすべてのディストーションを候
補ブロック特定ユニットに転送する第9ステップを有
し、該第9ステップは、前記候補ブロック特定ユニット
に電気的に接続されたそれぞれのプロセッサエレメント
から前記候補ブロック特定ユニットにそれぞれのディス
トーションを転送するとともに、候補ブロック特定ユニ
ットに向けて各プロセッサエレメントから同列のプロセ
ッサエレメントに順次ディストーションを転送すること
を特徴とする。
According to a sixth aspect of the present invention, in order to solve the above-mentioned problem, the first step detects a distortion having a minimum value from all the distortions calculated by the distortion calculating unit,
A candidate block specifying unit for specifying a motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coded block is prepared based on the matrix arrangement positions of the processor elements for which the minimum distortion has been calculated. Eighth step, wherein the candidate block identification unit is electrically connected to a processor element located at one end of each of the (L2-M + 1) columns including a processor element including at least one processor element and an intermediate register. A ninth step of transferring all distortions calculated by the distortion calculation unit to the candidate block specifying unit, wherein the ninth step is electrically connected to the candidate block specifying unit. It transfers the respective distortion to the candidate block identification unit from the respective processor element, characterized in that sequentially transfers distortion on the same level of the processor elements from each processor element toward the candidate block specifying unit.

【0035】請求項7の発明は、上記課題を解決するた
め、前記動作モード選択手段によって第1動作モードが
選択された場合、前記サーチウィンドウデータ供給ユニ
ットは、第1サーチウィンドウをM画素分列方向にシフ
トした第3サーチウィンドウの画素データで、第1サー
チウィンドウと第3サーチウィンドウで共通する画素デ
ータを除いた残りの画素データを、第1サーチウィンド
ウの画素データに続けて供給することで、前記第6ステ
ップを繰り返す一方、前記動作モード選択手段によって
第2動作モードが選択された場合、前記サーチウィンド
ウデータ供給ユニットは、第2サーチウィンドウをM画
素分列方向にシフトした第4サーチウィンドウの画素デ
ータで、第2サーチウィンドウと第4サーチウィンドウ
で共通する画素データを除いた残りの画素データを、第
2サーチウィンドウの画素データに続けて供給すること
で、前記第6ステップを繰り返す第10ステップと、前
記動作モード選択手段によって第1動作モードが選択さ
れた場合、前記現符号化ブロックデータ供給ユニット
は、前記現符号化ブロックの列方向に隣接し、前記第3
サーチウィンドウに対応するもうひとつの現符号化ブロ
ックの画素データを第1サーチウィンドウの現符号化ブ
ロックに続けて供給することで、前記第7ステップを繰
り返す一方、前記動作モード選択手段によって第2動作
モードが選択された場合、前記現符号化ブロックデータ
供給ユニットは、前記現符号化ブロックの列方向に隣接
し、前記第4サーチウィンドウに対応するもうひとつの
現符号化ブロックの画素データを第2サーチウィンドウ
の現符号化ブロックに続けて供給することで、前記第7
ステップを繰り返す第11ステップと、を有し、前記第
11ステップが終了する前に、前記第9ステップが終了
することを特徴とする。
According to a seventh aspect of the present invention, when the first operation mode is selected by the operation mode selection means, the search window data supply unit sets the first search window to M pixels. By supplying the pixel data of the third search window shifted in the direction, except for the pixel data common to the first search window and the third search window, to the pixel data of the first search window, When the sixth operation is repeated and the second operation mode is selected by the operation mode selection means, the search window data supply unit shifts the second search window by M pixels in the column direction. Pixel data common to the second search window and the fourth search window. By supplying the remaining pixel data excluding the data to the pixel data of the second search window, the tenth step of repeating the sixth step, and the first operation mode is selected by the operation mode selection means. In this case, the current coded block data supply unit is adjacent to the current coded block in the column direction, and
The seventh step is repeated by supplying pixel data of another current coded block corresponding to the search window to the current coded block of the first search window, while the second operation is performed by the operation mode selecting means. When a mode is selected, the current coded block data supply unit is configured to transmit pixel data of another current coded block adjacent to the current coded block in the column direction and corresponding to the fourth search window to the second coded block. By continuously supplying the current coded block of the search window,
An eleventh step of repeating the steps, wherein the ninth step ends before the eleventh step ends.

【0036】請求項8の発明は、上記課題を解決するた
め、H1,L1,H2,L2,NおよびMを整数とし、
H2をH1以下の整数、L2をL1以下の整数とすると
き、動画像を構成する現画像の符号化情報を現画像より
先に符号化された前符号化画像の符号化情報に基づいて
生成するよう、前記現画像の一部を構成するN行M列の
画素からなる現符号化ブロックと前記前符号化画像上の
H1行L1列の画素からなる第1サーチウィンドウ内の
N行M列の画素からなる複数の候補ブロックとをそれぞ
れ比較し、これらの候補ブロックから前記現符号化ブロ
ックに類似する1つの候補ブロックを選択し、前記現符
号化ブロックの現画像上の位置と選択された候補ブロッ
クの前符号化画像上の位置との変位により特定される動
きベクトルを探索する第1動作モードと、前記現符号化
ブロックと前記前符号化画像上のH2行L2列の画素か
らなる第2サーチウィンドウ内のN行M列の画素からな
る複数の候補ブロックとをそれぞれ比較し、これらの候
補ブロックから前記現符号化ブロックに類似する1つの
候補ブロックを選択し、前記現符号化ブロックの現画像
上の位置と選択された候補ブロックの前符号化画像上の
位置との変位により特定される動きベクトルを探索する
第2動作モードと、前記第1動作モードと第2動作モー
ドの何れか一方を選択し、選択された動作モードにおい
て前記現符号化ブロックの動きベクトルを探索する動き
ベクトル探索装置において、前記第1動作モードと第2
動作モードの何れか一方を選択する動作モード選択手段
と、該動作モード選択手段で選択されたサーチウィンド
ウ内の各候補ブロックの画素データと前記現符号化ブロ
ックの画素データとに基づいて、各候補ブロックと現符
号化ブロックとのそれぞれのディストーションを算出す
るディストーション算出ユニットと、該ディストーショ
ン算出ユニットに現符号化ブロックの画素データを供給
する現符号化ブロックデータ供給ユニットと、前記ディ
ストーション算出ユニットに前記動作モード選択手段で
選択されたサーチウィンドウ内の画素データを供給する
サーチウィンドウデータ供給ユニットと、を有し、さら
に、前記ディストーション算出ユニットは、前記サーチ
ウィンドウデータ供給ユニットから供給されたサーチウ
ィンドウの画素データを入力し、入力された画素データ
を一時的に保持して出力する記憶転送器と前記現符号化
ブロック供給ユニットから前記現符号化ブロックのそれ
ぞれの画素データを入力するとともに、前記記憶転送器
から現符号化ブロックのそれぞれの画素位置に対応する
候補ブロックの画素データを入力し、入力された現符号
化ブロックの画素データと候補ブロックの画素データと
に基づいてディストーションを算出する演算器とから構
成される(H2−N+1)×(L2−M+1)個以下の
プロセッサエレメントと、前記記憶転送器からなり、前
記プロセッサエレメントを含む総数が(H1−N+1)
×(L1−M+1)個となる複数の中間レジスタと、前
記サーチウィンドウデータ供給ユニットから供給された
サーチウィンドウの画素データを入力し、入力された画
素データを一時的に保持して出力する(H1−N+1)
個の入力レジスタからなる入力レジスタユニットと、前
記サーチウィンドウデータ供給ユニットから供給された
サーチウィンドウの画素データを入力し、入力された画
素データを一時的に保持して出力する(L1−M+2)
個のサイドレジスタデバイスからなるサイドレジスタユ
ニットと、を有し、前記プロセッサエレメントが前記中
間レジスタとともに(H1−N+1)行(L1−M+
1)列のマトリックス状に想像上配置されるものとする
とき、nを(H1−N+1)以下の自然数とし、mを
(L1−M+2)以下の自然数とし、前記入力レジスタ
ユニットの各入力レジスタは、それぞれ(L1−M+
1)列目のプロセッサエレメントまたは中間レジスタに
電気的に接続され、n行目の(L1−M+1)列目のプ
ロセッサエレメントまたは中間レジスタに電気的に接続
された入力レジスタを、n行目の入力レジスタと呼ぶと
し、前記サイドレジスタユニットの各サイドレジスタデ
バイスは、それぞれ1行目および(H1−N+1)行目
のプロセッサエレメント、中間レジスタまたは入力レジ
スタに電気的に接続され、m列目の1行目および(H1
−N+1)行目のプロセッサエレメントまたは中間レジ
スタに電気的に接続されたサイドレジスタデバイスを、
m列目のサイドレジスタデバイスと呼ぶとともに、1行
目および(H1−N+1)行目の入力レジスタに電気的
に接続されたサイドレジスタデバイスを(L1−M+
2)列目のサイドレジスタデバイスと呼ぶとするとき、
2行目以降のn行目の入力レジスタが、n−1行目の入
力レジスタに電気的に接続され、2列目以降のm列目の
サイドレジスタデバイスが、m−1列目のサイドレジス
タデバイスに電気的に接続され、iを(H2−N+1)
以下の自然数とし、jを(L2−M+1)以下の自然数
とし、前記動作モード選択手段で第2動作モードが選択
された場合、前記第2サーチウィンドウの探索範囲を示
す(H2−N+1)行に対応するよう1行目から(H1
−N+1)行目までの(H1−N+1)個の行から少な
くとも1つのプロセッサエレメントを含むプロセッサエ
レメントおよび中間レジスタからなる(H2−N+1)
個の行をマトリックスの行数としてカウントし、かつ、
前記第2サーチウィンドウの探索範囲を示す(L2−M
+1)列に対応するよう1列目から(L1−M+1)列
目までの(L1−M+1)個の列から少なくとも1つの
プロセッサエレメントを含むプロセッサエレメントおよ
び中間レジスタからなる(L2−M+1)個の列をマト
リックスの列数としてカウントし、それぞれの行をi
行、それぞれの列をj列で表すとき、前記動作モード選
択手段で第1動作モードが選択された場合、前記サーチ
ウィンドウデータ供給ユニットから第1サーチウィンド
ウの画素データが転送されるタイミングに同期して、各
サイドレジスタデバイスから同列の1行目の各プロセッ
サエレメント、各中間レジスタまたは入力レジスタに画
素データを転送し、同時に、1行目から(H1−N)行
目までのn行目の各プロセッサエレメントから同列のn
+1行目の各プロセッサエレメントまたは各中間レジス
タに画素データを転送し、同時に、1行目から(H1−
N)行目までのn行目の各中間レジスタから同列のn+
1行目の各プロセッサエレメントまたは各中間レジスタ
に画素データを転送し、同時に、1行目から(H1−
N)行目までのn行目の入力レジスタから同列のn+1
行目の入力レジスタに画素データを転送し、同時に、
(H1−N+1)行目の各プロセッサエレメント、各中
間レジスタおよび入力レジスタから同列のサイドレジス
タデバイスに画素データを転送する一方、前記動作モー
ド選択手段で第2動作モードが選択された場合、前記サ
ーチウィンドウデータ供給ユニットから第2サーチウィ
ンドウの画素データが転送されるタイミングに同期し
て、各サイドレジスタデバイスから同列の1行目の各プ
ロセッサエレメント、各中間レジスタまたは入力レジス
タに画素データを転送し、同時に、1行目から(H1−
N)行目までのi行目の各プロセッサエレメントから同
列のi+1行目の各プロセッサエレメントまたは各中間
レジスタに画素データを転送し、同時に、1行目から
(H1−N)行目までのi行目の各中間レジスタから同
列のi+1行目の各プロセッサエレメントまたは各中間
レジスタに画素データを転送し、同時に、1行目から
(H1−N)行目までのi行目の入力レジスタから同列
のi+1行目の入力レジスタに画素データを転送し、同
時に、(H1−N+1)行目の各プロセッサエレメン
ト、中間レジスタおよび入力レジスタから同列のサイド
レジスタデバイスに画素データを転送する第1転送制御
手段と、前記動作モード選択手段で第1動作モードが選
択された場合、前記第1転送手段により画素データを転
送した後、前記サーチウィンドウデータ供給ユニットか
ら第1サーチウィンドウの画素データが転送されるタイ
ミングに同期して、2列目以降(L1−M+1)列目ま
でのm列目の各プロセッサエレメントから同行のm−1
列目の各プロセッサエレメントまたは各中間レジスタに
画素データを転送し、同時に、2列目以降(L1−M+
1)列目までのm列目の各中間レジスタから同行のm−
1列目の各プロセッサエレメントまたは各中間レジスタ
に画素データを転送し、同時に、2列目以降(L1−M
+2)列目までのm列目の各サイドレジスタデバイスか
ら同行のm−1列目の各サイドレジスタデバイスに画素
データを転送し、同時に、各入力レジスタから同行の
(L1−M+1)列目の各プロセッサエレメントまたは
各中間レジスタに画素データを転送する一方、前記動作
モード選択手段で第2動作モードが選択された場合、前
記第1転送手段により画素データを転送した後、前記サ
ーチウィンドウデータ供給ユニットから第2サーチウィ
ンドウの画素データが転送されるタイミングに同期し
て、2列目以降(L1−M+1)列目までのj列目の各
プロセッサエレメントから同行のj−1列目の各プロセ
ッサエレメントまたは各中間レジスタに画素データを転
送し、同時に、2列目以降(L1−M+1)列目までの
j列目の各中間レジスタから同行のj−1列目の各プロ
セッサエレメントまたは各中間レジスタに画素データを
転送し、同時に、2列目以降(L1−M+2)列目まで
のj列目の各サイドレジスタデバイスから同行のj−1
列目の各サイドレジスタデバイスに画素データを転送
し、同時に、各入力レジスタから同行の(L1−M+
1)列目の各プロセッサエレメントまたは各中間レジス
タ画素データを転送する第2転送制御手段と、前記動作
モード選択手段で第1動作モードが選択された場合、前
記第2転送手段により画素データを転送した後、前記サ
ーチウィンドウデータ供給ユニットから第1サーチウィ
ンドウの画素データが転送されるタイミングに同期し
て、1行目の各プロセッサエレメント、各中間レジスタ
および入力レジスタから同列のサイドレジスタデバイス
に画素データを転送し、同時に、2行目から(H1−N
+1)行目までのn行目の各プロセッサエレメントから
同列のn−1行目の各プロセッサエレメントまたは各中
間レジスタに画素データを転送し、同時に、2行目から
(H1−N+1)行目までのn行目の各中間レジスタか
ら同列のn−1行目の各プロセッサエレメントまたは各
中間レジスタに画素データを転送し、同時に、2行目か
ら(H1−N+1)行目までのn行目の入力レジスタか
ら同列のn−1行目の入力レジスタに画素データを転送
し、同時に、各サイドレジスタデバイスから同列の(H
1−N+1)行目の各プロセッサエレメント、各中間レ
ジスタまたは入力レジスタに画素データを転送する一
方、前記動作モード選択手段で第2動作モードが選択さ
れた場合、前記第2転送手段により画素データを転送し
た後、前記サーチウィンドウデータ供給ユニットから第
2サーチウィンドウの画素データが転送されるタイミン
グに同期して、1行目の各プロセッサエレメント、各中
間レジスタおよび入力レジスタから同列のサイドレジス
タデバイスに画素データを転送し、同時に、2行目から
(H1−N+1)行目までのi行目の各プロセッサエレ
メントから同列のi−1行目の各プロセッサエレメント
または各中間レジスタに画素データを転送し、同時に、
2行目から(H1−N+1)行目までのi行目の各中間
レジスタから同列のi−1行目の各プロセッサエレメン
トまたは各中間レジスタに画素データを転送し、同時
に、2行目から(H1−N+1)行目までのi行目の入
力レジスタから同列のi−1行目の入力レジスタに画素
データを転送し、同時に、サイドレジスタデバイスから
同列の(H1−N+1)行目の各プロセッサエレメン
ト、各中間レジスタまたは入力レジスタに画素データを
転送する第3転送制御手段と、第1転送制御手段による
転送動作を(N−1)回繰り返し、次いで、第2転送制
御手段による転送動作を1回行い、次いで、第3転送制
御手段による転送動作を(N−1)回繰り返し、次い
で、第2転送制御手段による転送動作を1回行う転送動
作を1サイクルとして、順次このサイクルを繰り返す第
4転送制御手段と、前記動作モード選択手段で第1動作
モードが選択された場合、1列目のプロセッサエレメン
トに前記第1サーチウィンドウの画像データが初めて転
送されたとき、各プロセッサエレメントに前記現符号化
ブロックの1画素分の画素データを現符号化ブロックデ
ータ供給ユニットから入力し、以後、第4転送制御手段
の転送動作に同期して、各プロセッサエレメントに現符
号化ブロックの全ての画素データが画素毎に入力される
まで、画素データの入力を繰り返す一方、前記動作モー
ド選択手段で第2動作モードが選択された場合、1列目
のプロセッサエレメントに前記第2サーチウィンドウの
画像データが初めて転送されたとき、各プロセッサエレ
メントに前記現符号化ブロックの1画素分の画素データ
を現符号化ブロックデータ供給ユニットから入力し、以
後、第4転送制御手段の転送動作に同期して、各プロセ
ッサエレメントに現符号化ブロックの全ての画素データ
が画素毎に入力されるまで、画素データの入力を繰り返
す第5転送制御手段と、前記動作モード選択手段で第1
動作モードが選択された場合、前記第5転送制御手段に
より各プロセッサエレメントに入力された第1サーチウ
ィンドウ内の各候補ブロックの画素データと現符号化ブ
ロックの画素データに基づいて、各プロセッサエレメン
トにディストーションを算出させる一方、前記動作モー
ド選択手段で第2動作モードが選択された場合、前記第
5転送制御手段により各プロセッサエレメントに入力さ
れた第2サーチウィンドウ内の各候補ブロックの画素デ
ータと現符号化ブロックの画素データに基づいて、各プ
ロセッサエレメントにディストーションを算出させるデ
ィストーション算出制御手段と、を有することを特徴と
する。
According to an eighth aspect of the present invention, in order to solve the above problems, H1, L1, H2, L2, N and M are integers,
When H2 is an integer equal to or less than H1, and L2 is an integer equal to or less than L1, encoding information of a current image forming a moving image is generated based on encoding information of a previous encoded image that is encoded earlier than the current image. The current coded block including N rows and M columns of pixels constituting a part of the current image and the N rows and M columns in a first search window including the H1 rows and L1 columns of pixels in the previous coded image Are compared with a plurality of candidate blocks composed of pixels of each of the above, one candidate block similar to the current coding block is selected from these candidate blocks, and the position of the current coding block on the current image is selected. A first operation mode for searching for a motion vector specified by a displacement of the candidate block from the position on the pre-encoded image, and a first operation mode including pixels of the current encoded block and H2 rows and L2 columns on the pre-encoded image. 2 search A plurality of candidate blocks each including N rows and M columns of pixels in the window are compared, and one candidate block similar to the current coded block is selected from these candidate blocks, and a current image of the current coded block is selected. A second operation mode for searching for a motion vector specified by a displacement between the upper position and the position of the selected candidate block on the pre-encoded image, and one of the first operation mode and the second operation mode A motion vector search device for selecting and searching for a motion vector of the current coded block in the selected operation mode;
An operation mode selection unit for selecting one of the operation modes; and a candidate for each candidate block based on the pixel data of each candidate block and the pixel data of the current encoding block in the search window selected by the operation mode selection unit. A distortion calculating unit for calculating respective distortions of the block and the current coded block, a current coded block data supply unit for supplying pixel data of the current coded block to the distortion calculation unit, and the operation performed by the distortion calculation unit. A search window data supply unit that supplies pixel data in the search window selected by the mode selection means. The distortion calculation unit further includes a search window pixel data supply unit that supplies the search window pixel data supplied from the search window data supply unit. And a memory transfer unit for temporarily holding and outputting the input pixel data and inputting the respective pixel data of the current coded block from the current coded block supply unit, From the arithmetic unit that inputs the pixel data of the candidate block corresponding to each pixel position of the current coding block and calculates the distortion based on the input pixel data of the current coding block and the pixel data of the candidate block. It comprises (H2-N + 1) * (L2-M + 1) or less processor elements and the storage transfer unit, and the total number including the processor elements is (H1-N + 1)
A plurality of (L1-M + 1) intermediate registers and pixel data of a search window supplied from the search window data supply unit are input, and the input pixel data is temporarily held and output (H1 −N + 1)
An input register unit composed of a plurality of input registers and pixel data of a search window supplied from the search window data supply unit are input, and the input pixel data is temporarily held and output (L1-M + 2).
And a side register unit comprising a plurality of side register devices, wherein the processor element together with the intermediate register has (H1-N + 1) rows (L1-M +
1) When imaginarily arranged in a matrix of columns, n is a natural number of (H1-N + 1) or less, m is a natural number of (L1-M + 2) or less, and each input register of the input register unit is , Respectively (L1-M +
1) An input register electrically connected to the processor element or the intermediate register in the column and electrically connected to the processor element or the intermediate register in the (L1-M + 1) th column in the n-th row is connected to the input in the n-th row. Each side register device of the side register unit is electrically connected to a processor element, an intermediate register, or an input register in the first row and the (H1-N + 1) th row, and is connected to the first row in the mth column. Eyes and (H1
−N + 1) A side register device electrically connected to the processor element or the intermediate register in the row,
The side register device which is referred to as the m-th column side register device and which is electrically connected to the input registers on the first and (H1-N + 1) th rows is referred to as (L1-M +
2) When it is called the side register device in the column,
The input register of the n-th row from the second row is electrically connected to the input register of the (n-1) -th row, and the side register device of the m-th column after the second column is a side register of the (m-1) -th column. Electrically connected to the device and i is (H2-N + 1)
When the second operation mode is selected by the operation mode selection means, j is a natural number equal to or less than (L2−M + 1), and j is a natural number equal to or less than (L2−M + 1). From the first line to correspond (H1
A processor element including at least one processor element from (H1-N + 1) rows up to (-N + 1) th row and an intermediate register (H2-N + 1)
Is counted as the number of rows in the matrix, and
The search range of the second search window is shown (L2-M
(L2−M + 1) of processor elements including at least one processor element and an intermediate register from (L1-M + 1) columns from the first column to the (L1-M + 1) th column corresponding to the (+1) th column. Count the columns as the number of columns in the matrix, and replace each row with i
When the first operation mode is selected by the operation mode selection means when each row and each column is represented by j columns, the timing is synchronized with the timing at which the pixel data of the first search window is transferred from the search window data supply unit. Then, the pixel data is transferred from each side register device to each processor element, each intermediate register or the input register in the first row in the same column, and at the same time, each pixel data in the nth row from the first row to the (H1-N) th row is transferred. N from the processor element
The pixel data is transferred to each processor element or each intermediate register in the (+1) th row, and at the same time, (H1-
N) From each intermediate register in the n-th row up to the row, n +
The pixel data is transferred to each processor element or each intermediate register in the first row, and at the same time, (H1-
N) From the input register of the n-th row up to the row, n + 1 of the same column
The pixel data is transferred to the input register of the row,
While pixel data is transferred from each processor element, each intermediate register, and the input register in the (H1-N + 1) th row to a side register device in the same column, when the second operation mode is selected by the operation mode selection means, the search is performed. In synchronization with the timing at which the pixel data of the second search window is transferred from the window data supply unit, the pixel data is transferred from each side register device to each processor element, each intermediate register or the input register in the first row in the same column, At the same time, from the first line (H1-
N) The pixel data is transferred from each processor element in the i-th row up to the row to each processor element in the (i + 1) th row or each intermediate register in the same column, and at the same time, i in the first row to the (H1-N) th row. The pixel data is transferred from each intermediate register in the row to each processor element or each intermediate register in the (i + 1) th row in the same column, and at the same time, from the input registers in the i-th row from the first row to the (H1-N) th row in the same column. A first transfer control means for transferring pixel data to the input register on the (i + 1) th row and simultaneously transferring pixel data from each processor element, intermediate register and input register on the (H1-N + 1) th row to a side register device in the same column And when the first operation mode is selected by the operation mode selection unit, the pixel data is transferred by the first transfer unit. From Ndoudeta supply unit pixel data of the first search window is synchronized with the timing to be transferred, the second column and subsequent (L1-M + 1) of the bank from each processor element of the m-th column up th column m-1
The pixel data is transferred to each processor element or each intermediate register in the column, and at the same time, from the second column onward (L1-M +
1) From each intermediate register in the m-th column up to the column, the m-
The pixel data is transferred to each processor element or each intermediate register in the first column, and at the same time, from the second column onward (L1-M
+2) The pixel data is transferred from each mth side register device up to the mth column to each m-1st side register device in the same row, and at the same time, from each input register, the (L1-M + 1) th column in the same row. While the pixel data is transferred to each processor element or each intermediate register, if the second operation mode is selected by the operation mode selection means, the search window data supply unit is transferred after the first transfer means transfers the pixel data. , In synchronization with the timing at which the pixel data of the second search window is transferred, each processor element in the jth column from the second column to the (L1-M + 1) th column and each processor element in the j-1th column in the same row Alternatively, the pixel data is transferred to each intermediate register, and at the same time, each intermediate register in the j-th column from the second column to the (L1-M + 1) -th column , The pixel data is transferred to each processor element or each intermediate register in the j-1st column on the same row, and at the same time, from each side register device in the jth column from the second column to the (L1-M + 2) th column, j -1
The pixel data is transferred to each side register device in the column, and at the same time, (L1-M +
1) Second transfer control means for transferring each processor element or each intermediate register pixel data in the column, and when the first operation mode is selected by the operation mode selection means, pixel data is transferred by the second transfer means. Then, in synchronization with the timing at which the pixel data of the first search window is transferred from the search window data supply unit, the pixel data is transferred from each processor element, each intermediate register and the input register of the first row to the side register device in the same column. And at the same time, from the second line (H1-N
+1) Pixel data is transferred from each processor element in the n-th row up to the first row to each processor element in the (n-1) -th row or each intermediate register in the same column, and simultaneously, from the second row to the (H1-N + 1) -th row. , Pixel data is transferred from each intermediate register on the nth row to each processor element or each intermediate register on the (n-1) th row in the same column, and at the same time, on the nth row from the second row to the (H1-N + 1) th row The pixel data is transferred from the input register to the input register on the (n−1) th row in the same column, and at the same time, (H
1-N + 1) While the pixel data is transferred to each processor element, each intermediate register, or the input register in the row, when the second operation mode is selected by the operation mode selection means, the pixel data is transferred by the second transfer means. After the transfer, in synchronization with the timing at which the pixel data of the second search window is transferred from the search window data supply unit, the pixel is transferred from each processor element, each intermediate register and the input register in the first row to the side register device in the same column. At the same time, pixel data is transferred from each processor element on the i-th row from the second row to the (H1-N + 1) th row to each processor element on the (i-1) -th row in the same column or each intermediate register, at the same time,
Pixel data is transferred from each intermediate register in the i-th row from the second row to the (H1-N + 1) th row to each processor element or each intermediate register in the i-1th row in the same column, and at the same time, from the second row to (H1-N + 1). The pixel data is transferred from the i-th row input register up to the (H1-N + 1) th row to the (i-1) th row input register in the same row, and at the same time, each processor in the same row (H1-N + 1) -row from the side register device The transfer operation by the third transfer control means for transferring the pixel data to the element, each intermediate register or the input register and the transfer operation by the first transfer control means are repeated (N-1) times, and then the transfer operation by the second transfer control means is repeated by one. The transfer operation by the third transfer control means is repeated (N-1) times, and then the transfer operation of performing the transfer operation once by the second transfer control means is defined as one cycle. Next, when the first operation mode is selected by the fourth transfer control means that repeats this cycle and the operation mode selection means, when the image data of the first search window is first transferred to the processor element in the first column, Pixel data of one pixel of the current coded block is input to each processor element from the current coded block data supply unit, and thereafter, the current coded block is supplied to each processor element in synchronization with the transfer operation of the fourth transfer control means. The input of the pixel data is repeated until all the pixel data of the block is input for each pixel. On the other hand, when the second operation mode is selected by the operation mode selection means, the second search is performed by the processor element in the first column. When the image data of the window is transferred for the first time, one pixel of the current coding block is added to each processor element. Pixel data is input from the current coded block data supply unit, and thereafter, in synchronization with the transfer operation of the fourth transfer control means, until all pixel data of the current coded block is input to each processor element for each pixel. A fifth transfer control means for repeating input of pixel data, and a first transfer control means
When the operation mode is selected, each processor element is selected based on the pixel data of each candidate block and the pixel data of the current coded block in the first search window input to each processor element by the fifth transfer control means. While calculating the distortion, if the second operation mode is selected by the operation mode selection means, the pixel data of each candidate block in the second search window input to each processor element by the fifth transfer control means and the current data are calculated. Distortion calculation control means for causing each processor element to calculate distortion based on the pixel data of the coding block.

【0037】請求項9の発明は、上記課題を解決するた
め、前記動作モード選択手段は、現画像と前符号化画像
との時間的隔たりが所定値より大きい場合、第1動作モ
ードを選択し、現画像と前符号化画像との時間的隔たり
が所定値以下の場合、第2動作モードを選択することを
特徴とする。請求項10の発明は、上記課題を解決する
ため、前記ディストーション算出ユニットは、1行目か
ら(H1−N+1)行目までの(H1−N+1)個の行
の中の(H2−N+1)個の行と1列目から(L1−M
+1)行目までの(L1−M+1)個の列の中の(L2
−M+1)個の列とが前記マトリックス状で交差する位
置に(H2−N+1)×(L2−M+1)個のプロセッ
サエレメントが配置され、前記動作モード選択手段で第
2動作モードが選択された場合、これらの(H2−N+
1)×(L2−M+1)個のプロセッサエレメントに前
記第1〜第5の転送制御手段によって第2サーチウィン
ドウ内の各候補ブロックの画素データと現符号化ブロッ
クの画素データを入力し、入力された画素データに基づ
いてこれらの(H2−N+1)×(L2−M+1)個の
プロセッサエレメントで前記ディストーション算出制御
手段によりディストーションを算出することを特徴とす
る。
According to a ninth aspect of the present invention, in order to solve the above-mentioned problem, the operation mode selection means selects the first operation mode when the time difference between the current image and the previous encoded image is larger than a predetermined value. The second operation mode is selected when the time difference between the current image and the previous encoded image is equal to or less than a predetermined value. According to a tenth aspect of the present invention, in order to solve the above-mentioned problem, the distortion calculation unit includes (H2-N + 1) of (H1-N + 1) rows from the first row to the (H1-N + 1) th row. From the first row and the first column (L1-M
(L2) in (L1-M + 1) columns up to the (+1) th row
(H2-N + 1) .times. (L2-M + 1) processor elements are arranged at positions where the (-M + 1) columns intersect in the matrix form, and the second operation mode is selected by the operation mode selection means. , These (H2-N +
1) The pixel data of each candidate block in the second search window and the pixel data of the current coded block are input to the (L2−M + 1) processor elements by the first to fifth transfer control means, and are input. The distortion is calculated by the (H2−N + 1) × (L2−M + 1) processor elements based on the obtained pixel data by the distortion calculation control unit.

【0038】請求項11の発明は、上記課題を解決する
ため、前記サイドレジスタユニットの各サイドレジスタ
デバイスは、それぞれ同列の1行目のプロセッサエレメ
ント、中間レジスタまたは入力レジスタに電気的に接続
された第1サイドレジスタデバイスと、それぞれ同列の
(H1−N+1)行目のプロセッサエレメント、中間レ
ジスタまたは入力レジスタに電気的に接続された第2サ
イドレジスタデバイスと、から構成され、該第1サイド
レジスタデバイスは、互いに直列に電気的に接続された
(N−1)個の前記記憶転送器を有し、一端の記憶転送
器が同列の1行目のプロセッサエレメントまたは中間レ
ジスタに電気的に接続され、前記第2サイドレジスタデ
バイスは、互いに直列に電気的に接続された(N−1)
個の前記記憶転送器を有し、一端の記憶転送器が同列の
(H1−N+1)行目のプロセッサエレメントまたは中
間レジスタに電気的に接続されることを特徴とする。
According to an eleventh aspect of the present invention, in order to solve the above problem, each side register device of the side register unit is electrically connected to a processor element, an intermediate register or an input register in a first row in the same column. A first side register device, and a second side register device electrically connected to a processor element in the (H1-N + 1) th row, an intermediate register or an input register in the same column. Has (N-1) storage transfer units electrically connected in series with each other, and one end of the storage transfer unit is electrically connected to the first row of processor elements or intermediate registers in the same column; The second side register devices are electrically connected in series with each other (N-1)
, And one of the storage transfer devices is electrically connected to a processor element or an intermediate register in the (H1-N + 1) th row in the same column.

【0039】請求項12の発明は、上記課題を解決する
ため、前記サイドレジスタユニットの各サイドレジスタ
デバイスは、互いに直列に電気的に接続された(N−
1)個の前記記憶転送器を有し、一端の記憶転送器が同
列の1行目のプロセッサエレメント、中間レジスタまた
は入力レジスタに電気的に接続され、他端の記憶転送器
が同列の(H1−N+1)行目のプロセッサエレメン
ト、中間レジスタまたは入力レジスタに電気的に接続さ
れることを特徴とする。
According to a twelfth aspect of the present invention, each side register device of the side register unit is electrically connected to each other in series (N-
1) storage transfer units, one end of the storage transfer unit is electrically connected to the first row of processor elements, intermediate registers or input registers in the same column, and the other end of the storage transfer unit (N + 1) -th row is electrically connected to a processor element, an intermediate register or an input register.

【0040】請求項13の発明は、上記課題を解決する
ため、前記ディストーション算出ユニットで算出された
すべてのディストーションの中から最小の値を示すディ
ストーションを検出するとともに、最小ディストーショ
ンが算出されたプロセッサエレメントのマトリックス状
の配置位置に基づいて、最小ディストーションが算出さ
れたプロセッサエレメントに対応する候補ブロックから
現符号化ブロックへの動きベクトルを特定する候補ブロ
ック特定ユニットを有し、該候補ブロック特定ユニット
は、少なくとも1つのプロセッサエレメントを含むプロ
セッサエレメントおよび中間レジスタからなる(H2−
N+1)行のそれぞれの行の一端に位置するプロセッサ
エレメントに電気的に接続され、さらに、前記ディスト
ーション算出ユニットで算出されたすべてのディストー
ションを候補ブロック特定ユニットに転送するディスト
ーション転送手段を有し、該最小ディストーション転送
手段は、前記候補ブロック特定ユニットに電気的に接続
されたそれぞれのプロセッサエレメントから前記候補ブ
ロック特定ユニットにそれぞれのディストーションを転
送するとともに、候補ブロック特定ユニットに向けて各
プロセッサエレメントから同行のプロセッサエレメント
に順次ディストーションを転送することを特徴とする。
According to a thirteenth aspect of the present invention, in order to solve the above-mentioned problem, a distortion having a minimum value is detected from all the distortions calculated by the distortion calculation unit, and the processor element having the minimum distortion is calculated. A candidate block specifying unit for specifying a motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coding block based on the matrix-like arrangement position of the candidate block specifying unit, A processor element including at least one processor element and an intermediate register (H2-
(N + 1) -th row, which is electrically connected to a processor element located at one end of each row, and further includes distortion transfer means for transferring all distortions calculated by the distortion calculation unit to a candidate block specifying unit, The minimum distortion transfer means transfers the respective distortions from the respective processor elements electrically connected to the candidate block specifying unit to the candidate block specifying unit, and transfers the respective distortions from the respective processor elements to the candidate block specifying unit. The distortion is sequentially transferred to the processor element.

【0041】請求項14の発明は、上記課題を解決する
ため、前記サーチウィンドウデータ供給ユニットは、前
記動作モード選択手段によって第1動作モードが選択さ
れた場合、第1サーチウィンドウをM画素分列方向にシ
フトした第3サーチウィンドウの範囲の画素データで、
第1サーチウィンドウと第3サーチウィンドウで共通す
る画素データを除いた残りの画素データを、第1サーチ
ウィンドウの画素データに続けて順次前記ディストーシ
ョン算出ユニットに供給する一方、前記動作モード選択
手段によって第2動作モードが選択された場合、第2サ
ーチウィンドウをM画素分列方向にシフトした第4サー
チウィンドウの範囲の画素データで、第2サーチウィン
ドウと第4サーチウィンドウで共通する画素データを除
いた残りの画素データを、第2サーチウィンドウの画素
データに続けて順次前記ディストーション算出ユニット
に供給し、前記現符号化ブロックデータ供給ユニット
は、前記動作モード選択手段によって第1動作モードが
選択された場合、前記現符号化ブロックの列方向に隣接
し、前記第3サーチウィンドウに対応するもうひとつの
現符号化ブロックの画素データを前記第5転送制御手段
の転送動作に基づいて第1サーチウィンドウの現符号化
ブロックに続けて順次前記ディストーション算出ユニッ
トに供給する一方、前記動作モード選択手段によって第
2動作モードが選択された場合、前記現符号化ブロック
の列方向に隣接し、前記第4サーチウィンドウに対応す
るもうひとつの現符号化ブロックの画素データを前記第
5転送制御手段の転送動作に基づいて第2サーチウィン
ドウの現符号化ブロックに続けて順次前記ディストーシ
ョン算出ユニットに供給し、前記動作モード選択手段に
よって第1動作モードが選択された場合、前記ディスト
ーション算出制御手段により前記第3サーチウィンドウ
と第3サーチウィンドウに対応する現符号化ブロックと
のディストーションの算出が終了する前に、前記ディス
トーション転送手段による前記第1サーチウィンドウと
第1サーチウィンドウに対応する現符号化ブロックとで
算出されたディストーションの転送動作が終了する一
方、前記動作モード選択手段によって第2動作モードが
選択された場合、前記ディストーション算出制御手段に
より前記第4サーチウィンドウと第4サーチウィンドウ
に対応する現符号化ブロックとのディストーションの算
出が終了する前に、前記ディストーション転送手段によ
る前記第2サーチウィンドウと第2サーチウィンドウに
対応する現符号化ブロックとで算出されたディストーシ
ョンの転送動作が終了することを特徴とする。
According to a fourteenth aspect of the present invention, when the first operation mode is selected by the operation mode selecting means, the search window data supply unit sets the first search window to M pixels. Pixel data in the range of the third search window shifted in the direction
The remaining pixel data excluding the pixel data common to the first search window and the third search window is sequentially supplied to the distortion calculation unit following the pixel data of the first search window, while the pixel data of the first search window is supplied to the distortion calculation unit. When the two operation mode is selected, pixel data in the range of the fourth search window obtained by shifting the second search window by M pixels in the column direction, excluding pixel data common to the second search window and the fourth search window. The remaining pixel data is sequentially supplied to the distortion calculation unit following the pixel data of the second search window, and the current coded block data supply unit determines whether the first operation mode is selected by the operation mode selection unit. , Adjacent to the current coded block in the column direction, and the third search The pixel data of another current coding block corresponding to the window is sequentially supplied to the distortion calculation unit following the current coding block of the first search window based on the transfer operation of the fifth transfer control means. When the second operation mode is selected by the operation mode selection means, pixel data of another current coding block adjacent to the current coding block in the column direction and corresponding to the fourth search window is transferred to the fifth transfer mode. The distortion calculation unit supplies the current operation block of the second search window to the distortion calculation unit in succession based on the transfer operation of the control unit, and the first operation mode is selected by the operation mode selection unit. To the third search window and the current corresponding to the third search window. Before the calculation of the distortion with the coding block is completed, the transfer operation of the distortion calculated by the first search window and the current coding block corresponding to the first search window by the distortion transfer unit ends, When the second operation mode is selected by the operation mode selection means, before the distortion calculation control means completes the calculation of the distortion between the fourth search window and the current coding block corresponding to the fourth search window, The transfer operation of the distortion calculated by the distortion transfer means in the second search window and the current coded block corresponding to the second search window ends.

【0042】請求項15の発明は、上記課題を解決する
ため、前記ディストーション算出ユニットで算出された
すべてのディストーションの中から最小の値を示すディ
ストーションを検出するとともに、最小ディストーショ
ンが算出されたプロセッサエレメントのマトリックス状
の配置位置に基づいて、最小ディストーションが算出さ
れたプロセッサエレメントに対応する候補ブロックから
現符号化ブロックへの動きベクトルを特定する候補ブロ
ック特定ユニットを有し、該候補ブロック特定ユニット
は、少なくとも1つのプロセッサエレメントを含むプロ
セッサエレメントおよび中間レジスタからなる(L2−
M+1)列のそれぞれの列の一端に位置するプロセッサ
エレメントに電気的に接続され、さらに、前記ディスト
ーション算出ユニットで算出されたすべてのディストー
ションを候補ブロック特定ユニットに転送するディスト
ーション転送手段を有し、該最小ディストーション転送
手段は、前記候補ブロック特定ユニットに電気的に接続
されたそれぞれのプロセッサエレメントから前記候補ブ
ロック特定ユニットにそれぞれのディストーションを転
送するとともに、候補ブロック特定ユニットに向けて各
プロセッサエレメントから同列のプロセッサエレメント
に順次ディストーションを転送することを特徴とする。
According to a fifteenth aspect of the present invention, in order to solve the above-mentioned problem, a distortion having a minimum value is detected from all the distortions calculated by the distortion calculation unit, and the processor element having the minimum distortion calculated is detected. A candidate block specifying unit for specifying a motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coding block based on the matrix-like arrangement position of the candidate block specifying unit, A processor element including at least one processor element and an intermediate register (L2-
And (M + 1) a distortion transfer unit electrically connected to the processor element located at one end of each of the columns, and further configured to transfer all distortions calculated by the distortion calculation unit to the candidate block specifying unit. The minimum distortion transfer means transfers each distortion from each processor element electrically connected to the candidate block specifying unit to the candidate block specifying unit, and transfers the same distortion from each processor element toward the candidate block specifying unit. The distortion is sequentially transferred to the processor element.

【0043】請求項16の発明は、上記課題を解決する
ため、前記サーチウィンドウデータ供給ユニットは、前
記動作モード選択手段によって第1動作モードが選択さ
れた場合、第1サーチウィンドウをM画素分列方向にシ
フトした第3サーチウィンドウの範囲の画素データで、
第1サーチウィンドウと第3サーチウィンドウで共通す
る画素データを除いた残りの画素データを、第1サーチ
ウィンドウの画素データに続けて順次前記ディストーシ
ョン算出ユニットに供給する一方、前記動作モード選択
手段によって第2動作モードが選択された場合、第2サ
ーチウィンドウをM画素分列方向にシフトした第4サー
チウィンドウの範囲の画素データで、第2サーチウィン
ドウと第4サーチウィンドウで共通する画素データを除
いた残りの画素データを、第2サーチウィンドウの画素
データに続けて順次前記ディストーション算出ユニット
に供給し、前記現符号化ブロックデータ供給ユニット
は、前記動作モード選択手段によって第1動作モードが
選択された場合、前記現符号化ブロックの列方向に隣接
し、前記第3サーチウィンドウに対応するもうひとつの
現符号化ブロックの画素データを前記第5転送制御手段
の転送動作に基づいて第1サーチウィンドウの現符号化
ブロックに続けて順次前記ディストーション算出ユニッ
トに供給する一方、前記動作モード選択手段によって第
2動作モードが選択された場合、前記現符号化ブロック
の列方向に隣接し、前記第4サーチウィンドウに対応す
るもうひとつの現符号化ブロックの画素データを前記第
5転送制御手段の転送動作に基づいて第2サーチウィン
ドウの現符号化ブロックに続けて順次前記ディストーシ
ョン算出ユニットに供給し、前記動作モード選択手段に
よって第1動作モードが選択された場合、前記ディスト
ーション算出制御手段により前記第3サーチウィンドウ
と第3サーチウィンドウに対応する現符号化ブロックと
のディストーションの算出が終了する前に、前記ディス
トーション転送手段による前記第1サーチウィンドウと
第1サーチウィンドウに対応する現符号化ブロックとで
算出されたディストーションの転送動作が終了する一
方、前記動作モード選択手段によって第2動作モードが
選択された場合、前記ディストーション算出制御手段に
より前記第4サーチウィンドウと第4サーチウィンドウ
に対応する現符号化ブロックとのディストーションの算
出が終了する前に、前記ディストーション転送手段によ
る前記第2サーチウィンドウと第2サーチウィンドウに
対応する現符号化ブロックとで算出されたディストーシ
ョンの転送動作が終了することを特徴とする。
According to a sixteenth aspect of the present invention, in order to solve the above-mentioned problem, when the first operation mode is selected by the operation mode selecting means, the search window data supply unit arranges the first search window by M pixels. Pixel data in the range of the third search window shifted in the direction
The remaining pixel data excluding the pixel data common to the first search window and the third search window is sequentially supplied to the distortion calculation unit following the pixel data of the first search window, while the pixel data of the first search window is supplied to the distortion calculation unit. When the two operation mode is selected, pixel data in the range of the fourth search window obtained by shifting the second search window by M pixels in the column direction, excluding pixel data common to the second search window and the fourth search window. The remaining pixel data is sequentially supplied to the distortion calculation unit following the pixel data of the second search window, and the current coded block data supply unit determines whether the first operation mode is selected by the operation mode selection unit. , Adjacent to the current coded block in the column direction, and the third search The pixel data of another current coding block corresponding to the window is sequentially supplied to the distortion calculation unit following the current coding block of the first search window based on the transfer operation of the fifth transfer control means. When the second operation mode is selected by the operation mode selection means, pixel data of another current coding block adjacent to the current coding block in the column direction and corresponding to the fourth search window is transferred to the fifth transfer mode. The distortion calculation unit supplies the current operation block of the second search window to the distortion calculation unit in succession based on the transfer operation of the control unit, and the first operation mode is selected by the operation mode selection unit. To the third search window and the current corresponding to the third search window. Before the calculation of the distortion with the coding block is completed, the transfer operation of the distortion calculated by the first search window and the current coding block corresponding to the first search window by the distortion transfer unit ends, When the second operation mode is selected by the operation mode selection means, before the distortion calculation control means completes the calculation of the distortion between the fourth search window and the current coding block corresponding to the fourth search window, The transfer operation of the distortion calculated by the distortion transfer means in the second search window and the current coded block corresponding to the second search window ends.

【0044】[0044]

【作用】請求項1記載の発明では、動作モード選択手段
と、ディストーション算出ユニットと、現符号化ブロッ
クデータ供給ユニットと、サーチウィンドウデータ供給
ユニットと、を第1ステップで準備し、次に、第2ステ
ップで、前記動作モード選択手段で第1動作モードが選
択された場合、前記サーチウィンドウデータ供給ユニッ
トから前記入力レジスタユニットおよび前記(L1−M
+2)列目のサイドレジスタデバイスに第1サーチウィ
ンドウの画素データを供給する一方、前記動作モード選
択手段で第2動作モードが選択された場合、前記サーチ
ウィンドウデータ供給ユニットから前記入力レジスタユ
ニットおよび前記(L1−M+2)列目のサイドレジス
タデバイスに第2サーチウィンドウの画素データを供給
する。
According to the first aspect of the present invention, the operation mode selection means, the distortion calculation unit, the current coded block data supply unit, and the search window data supply unit are prepared in the first step. When the first operation mode is selected by the operation mode selection means in two steps, the input register unit and the (L1-M) are supplied from the search window data supply unit.
+2) While the pixel data of the first search window is supplied to the side register device of the column, if the second operation mode is selected by the operation mode selection means, the input register unit and the input register unit are supplied from the search window data supply unit. The pixel data of the second search window is supplied to the side register device in the (L1-M + 2) th column.

【0045】次に、第3ステップで、前記動作モード選
択手段で第1動作モードが選択された場合、前記サーチ
ウィンドウデータ供給ユニットから第1サーチウィンド
ウの画素データが転送されるタイミングに同期して、各
サイドレジスタデバイスから同列の1行目の各プロセッ
サエレメント、各中間レジスタまたは入力レジスタに画
素データを転送し、同時に、1行目から(H1−N)行
目までのn行目の各プロセッサエレメントから同列のn
+1行目の各プロセッサエレメントまたは各中間レジス
タに画素データを転送し、同時に、1行目から(H1−
N)行目までのn行目の各中間レジスタから同列のn+
1行目の各プロセッサエレメントまたは各中間レジスタ
に画素データを転送し、同時に、1行目から(H1−
N)行目までのn行目の入力レジスタから同列のn+1
行目の入力レジスタに画素データを転送し、同時に、
(H1−N+1)行目の各プロセッサエレメント、各中
間レジスタおよび入力レジスタから同列のサイドレジス
タデバイスに画素データを転送する。
Next, in the third step, when the first operation mode is selected by the operation mode selection means, in synchronization with the timing at which the pixel data of the first search window is transferred from the search window data supply unit. , Pixel data is transferred from each side register device to each processor element in the first row, each intermediate register, or the input register in the same column, and simultaneously, each processor in the nth row from the first row to the (H1-N) th row is transferred. N from the element
The pixel data is transferred to each processor element or each intermediate register in the (+1) th row, and at the same time, (H1-
N) From each intermediate register in the n-th row up to the row, n +
The pixel data is transferred to each processor element or each intermediate register in the first row, and at the same time, (H1-
N) From the input register of the n-th row up to the row, n + 1 of the same column
The pixel data is transferred to the input register of the row,
The pixel data is transferred from each processor element, each intermediate register, and the input register on the (H1-N + 1) th row to the side register device in the same column.

【0046】一方、第3ステップで、前記動作モード選
択手段で第2動作モードが選択された場合、前記サーチ
ウィンドウデータ供給ユニットから第2サーチウィンド
ウの画素データが転送されるタイミングに同期して、各
サイドレジスタデバイスから同列の1行目の各プロセッ
サエレメント、各中間レジスタまたは入力レジスタに画
素データを転送し、同時に、1行目から(H1−N)行
目までのi行目の各プロセッサエレメントから同列のi
+1行目の各プロセッサエレメントまたは各中間レジス
タに画素データを転送し、同時に、1行目から(H1−
N)行目までのi行目の各中間レジスタから同列のi+
1行目の各プロセッサエレメントまたは各中間レジスタ
に画素データを転送し、同時に、1行目から(H1−
N)行目までのi行目の入力レジスタから同列のi+1
行目の入力レジスタに画素データを転送し、同時に、
(H1−N+1)行目の各プロセッサエレメント、中間
レジスタおよび入力レジスタから同列のサイドレジスタ
デバイスに画素データを転送する。
On the other hand, in the third step, when the second operation mode is selected by the operation mode selection means, in synchronization with the timing at which the pixel data of the second search window is transferred from the search window data supply unit, The pixel data is transferred from each side register device to each processor element in the first row, each intermediate register, or the input register in the same column, and simultaneously, each processor element in the i-th row from the first row to the (H1-N) th row. From i
The pixel data is transferred to each processor element or each intermediate register in the (+1) th row, and at the same time, (H1-
N) From each intermediate register on the i-th row up to the row, i +
The pixel data is transferred to each processor element or each intermediate register in the first row, and at the same time, (H1-
N) i + 1 of the same column from the input register of the i-th row up to the row
The pixel data is transferred to the input register of the row,
The pixel data is transferred from each processor element, intermediate register, and input register on the (H1-N + 1) th row to the side register device in the same column.

【0047】次に、第4ステップで、前記動作モード選
択手段で第1動作モードが選択された場合、前記サーチ
ウィンドウデータ供給ユニットから第1サーチウィンド
ウの画素データが転送されるタイミングに同期して、2
列目以降(L1−M+1)列目までのm列目の各プロセ
ッサエレメントから同行のm−1列目の各プロセッサエ
レメントまたは各中間レジスタに画素データを転送し、
同時に、2列目以降(L1−M+1)列目までのm列目
の各中間レジスタから同行のm−1列目の各プロセッサ
エレメントまたは各中間レジスタに画素データを転送
し、同時に、2列目以降(L1−M+2)列目までのm
列目の各サイドレジスタデバイスから同行のm−1列目
の各サイドレジスタデバイスに画素データを転送し、同
時に、各入力レジスタから同行の(L1−M+1)列目
の各プロセッサエレメントまたは各中間レジスタに画素
データを転送する。
Next, in the fourth step, when the first operation mode is selected by the operation mode selection means, in synchronization with the timing at which the pixel data of the first search window is transferred from the search window data supply unit. , 2
Pixel data is transferred from each processor element in the m-th column up to the (L1-M + 1) -th column to each processor element in the (m-1) -th column or each intermediate register in the same row,
At the same time, pixel data is transferred from each of the m-th intermediate registers in the second and subsequent columns to the (L1-M + 1) -th column to each processor element or each intermediate register in the (m-1) -th column in the same row. Thereafter, m up to the (L1-M + 2) th column
Pixel data is transferred from each side register device in the column to each side register device in the (m-1) th column in the same row, and simultaneously, each processor element or each intermediate register in the (L1-M + 1) th column in the same row from each input register. To transfer the pixel data.

【0048】一方、第4ステップで、前記動作モード選
択手段で第2動作モードが選択された場合、前記サーチ
ウィンドウデータ供給ユニットから第2サーチウィンド
ウの画素データが転送されるタイミングに同期して、2
列目以降(L1−M+1)列目までのj列目の各プロセ
ッサエレメントから同行のj−1列目の各プロセッサエ
レメントまたは各中間レジスタに画素データを転送し、
同時に、2列目以降(L1−M+1)列目までのj列目
の各中間レジスタから同行のj−1列目の各プロセッサ
エレメントまたは各中間レジスタに画素データを転送
し、同時に、2列目以降(L1−M+2)列目までのj
列目の各サイドレジスタデバイスから同行のj−1列目
の各サイドレジスタデバイスに画素データを転送し、同
時に、各入力レジスタから同行の(L1−M+1)列目
の各プロセッサエレメントまたは各中間レジスタ画素デ
ータを転送する。
On the other hand, in the fourth step, when the second operation mode is selected by the operation mode selection means, in synchronization with the timing at which the pixel data of the second search window is transferred from the search window data supply unit, 2
Pixel data is transferred from each processor element in the jth column up to the (L1-M + 1) th column to each processor element in the j-1th column or each intermediate register in the same row,
At the same time, pixel data is transferred from each j-th intermediate register in the second and subsequent columns to the (L1-M + 1) th column to each processor element or each intermediate register in the j-1st column in the same row, and at the same time, in the second column J after (L1-M + 2) th column
The pixel data is transferred from each side register device in the column to each side register device in the j-1st column in the same row, and at the same time, each processor element or each intermediate register in the (L1-M + 1) th column in the same row from each input register. Transfer pixel data.

【0049】次に、第5ステップで、前記動作モード選
択手段で第1動作モードが選択された場合、前記サーチ
ウィンドウデータ供給ユニットから第1サーチウィンド
ウの画素データが転送されるタイミングに同期して、1
行目の各プロセッサエレメント、各中間レジスタおよび
入力レジスタから同列のサイドレジスタデバイスに画素
データを転送し、同時に、2行目から(H1−N+1)
行目までのn行目の各プロセッサエレメントから同列の
n−1行目の各プロセッサエレメントまたは各中間レジ
スタに画素データを転送し、同時に、2行目から(H1
−N+1)行目までのn行目の各中間レジスタから同列
のn−1行目の各プロセッサエレメントまたは各中間レ
ジスタに画素データを転送し、同時に、2行目から(H
1−N+1)行目までのn行目の入力レジスタから同列
のn−1行目の入力レジスタに画素データを転送し、同
時に、各サイドレジスタデバイスから同列の(H1−N
+1)行目の各プロセッサエレメント、各中間レジスタ
または入力レジスタに画素データを転送する。
Next, in the fifth step, when the first operation mode is selected by the operation mode selecting means, the search window data supply unit is synchronized with the timing at which the pixel data of the first search window is transferred. , 1
The pixel data is transferred from each processor element, each intermediate register, and the input register in the row to the side register device in the same column, and at the same time, from the second row, (H1-N + 1)
The pixel data is transferred from each processor element in the nth row up to the row to each processor element in the (n-1) th row or each intermediate register in the same column, and at the same time, from the second row to (H1
−N + 1) The pixel data is transferred from each of the intermediate registers in the n-th row to the (n−1) th row to each processor element or each intermediate register in the (n−1) -th row in the same column.
1-N + 1) The pixel data is transferred from the input registers on the nth row up to the (n) th row to the input registers on the (n-1) th row in the same column, and at the same time, the (H1-N)
+1) The pixel data is transferred to each processor element, each intermediate register or the input register in the row.

【0050】一方、第5ステップで、前記動作モード選
択手段で第2動作モードが選択された場合、前記サーチ
ウィンドウデータ供給ユニットから第2サーチウィンド
ウの画素データが転送されるタイミングに同期して、1
行目の各プロセッサエレメント、各中間レジスタおよび
入力レジスタから同列のサイドレジスタデバイスに画素
データを転送し、同時に、2行目から(H1−N+1)
行目までのi行目の各プロセッサエレメントから同列の
i−1行目の各プロセッサエレメントまたは各中間レジ
スタに画素データを転送し、同時に、2行目から(H1
−N+1)行目までのi行目の各中間レジスタから同列
のi−1行目の各プロセッサエレメントまたは各中間レ
ジスタに画素データを転送し、同時に、2行目から(H
1−N+1)行目までのi行目の入力レジスタから同列
のi−1行目の入力レジスタに画素データを転送し、同
時に、サイドレジスタデバイスから同列の(H1−N+
1)行目の各プロセッサエレメント、各中間レジスタま
たは入力レジスタに画素データを転送する。
On the other hand, in the fifth step, when the second operation mode is selected by the operation mode selection means, in synchronization with the timing at which the pixel data of the second search window is transferred from the search window data supply unit, 1
The pixel data is transferred from each processor element, each intermediate register, and the input register in the row to the side register device in the same column, and at the same time, from the second row, (H1-N + 1)
The pixel data is transferred from each processor element in the i-th row up to the row to each processor element in the (i-1) th row in the same column or each intermediate register, and at the same time, from the second row to (H1
-N + 1) The pixel data is transferred from each intermediate register on the i-th row up to the (i) -th row to each processor element or each intermediate register on the (i-1) -th row in the same column.
The pixel data is transferred from the i-th input register up to the (1-N + 1) th row to the (i-1) -th input register in the same row, and at the same time, the (H1-N +)
1) The pixel data is transferred to each processor element, each intermediate register or the input register in the row.

【0051】次に、第6ステップで、前記第2ステップ
を(N−1)回繰り返し、次いで、前記第3ステップを
1回行い、次いで、前記第4ステップを(N−1)回繰
り返し、次いで、前記第3ステップを1回行う工程を1
サイクルとして、順次このサイクルを繰り返す。次に、
第7ステップで、前記動作モード選択手段で第1動作モ
ードが選択された場合、1列目のプロセッサエレメント
に前記第1サーチウィンドウの画像データが初めて転送
されたとき、各プロセッサエレメントに前記現符号化ブ
ロックの1画素分の画素データを現符号化ブロックデー
タ供給ユニットから入力し、以後、前記第6ステップの
画素データの転送タイミングに同期して、各プロセッサ
エレメントに現符号化ブロックの全ての画素データが画
素毎に入力されるまで、画素データの入力を繰り返す。
Next, in a sixth step, the second step is repeated (N-1) times, then the third step is performed once, and then the fourth step is repeated (N-1) times, Then, the step of performing the third step once is performed in one step.
This cycle is sequentially repeated as a cycle. next,
In a seventh step, when the first operation mode is selected by the operation mode selection means, when the image data of the first search window is transferred to the processor element in the first column for the first time, the current code is assigned to each processor element. The pixel data of one pixel of the encoding block is input from the current encoding block data supply unit, and thereafter, all the pixels of the current encoding block are supplied to each processor element in synchronization with the transfer timing of the pixel data in the sixth step. The input of pixel data is repeated until data is input for each pixel.

【0052】一方、第7ステップで、前記動作モード選
択手段で第2動作モードが選択された場合、1列目のプ
ロセッサエレメントに前記第2サーチウィンドウの画像
データが初めて転送されたとき、各プロセッサエレメン
トに前記現符号化ブロックの1画素分の画素データを現
符号化ブロックデータ供給ユニットから入力し、以後、
前記第6ステップの画素データの転送タイミングに同期
して、各プロセッサエレメントに現符号化ブロックの全
ての画素データが画素毎に入力されるまで、画素データ
の入力を繰り返す。
On the other hand, in the seventh step, when the second operation mode is selected by the operation mode selection means, when the image data of the second search window is transferred to the processor element in the first column for the first time, each processor The pixel data of one pixel of the current coding block is input to the element from the current coding block data supply unit.
In synchronization with the transfer timing of the pixel data in the sixth step, the input of the pixel data is repeated until all the pixel data of the current coding block is input to each processor element for each pixel.

【0053】次に、前記動作モード選択手段で第1動作
モードが選択された場合、前記第7ステップで各プロセ
ッサエレメントに入力された第1サーチウィンドウ内の
各候補ブロックの画素データと現符号化ブロックの画素
データに基づいて、各プロセッサエレメントがディスト
ーションを算出する。一方、前記動作モード選択手段で
第2動作モードが選択された場合、前記第7ステップで
各プロセッサエレメントに入力された第2サーチウィン
ドウ内の各候補ブロックの画素データと現符号化ブロッ
クの画素データに基づいて、各プロセッサエレメントが
ディストーションを算出する。
Next, when the first operation mode is selected by the operation mode selection means, the pixel data of each candidate block in the first search window input to each processor element in the seventh step and the current coding Each processor element calculates distortion based on the pixel data of the block. On the other hand, when the second operation mode is selected by the operation mode selection means, the pixel data of each candidate block and the pixel data of the current coded block in the second search window input to each processor element in the seventh step , Each processor element calculates the distortion.

【0054】このため、中間レジスタを配置すること
で、プロセッサエレメントの数を増やすことなく、簡略
的探索方法により広い探索範囲から動きベクトルを探索
することができる。また、サーチウィンドウのサイズに
応じてプロセッサエレメントおよび中間レジスタを共有
することにより、広い探索範囲を取りたい場合には、回
路上に配置されたすべてのプロセッサエレメントおよび
中間レジスタ間で広い探索範囲に対応するサーチウィン
ドウのデータを転送させて簡略的な探索方法で動きベク
トルを求めることができるとともに、狭い探索範囲を取
りたい場合には、回路上に配置された一部のプロセッサ
エレメントおよび中間レジスタ間で狭い探索範囲に対応
した別のサーチウィンドウのデータを転送させて全点探
索法または全点探索法に近い探索方法で予測精度の高い
動きベクトルを求めることができる。
Therefore, by arranging the intermediate registers, a motion vector can be searched from a wide search range by a simple search method without increasing the number of processor elements. Also, by sharing the processor elements and intermediate registers according to the size of the search window, if a wide search range is desired, a wide search range can be supported among all processor elements and intermediate registers arranged on the circuit. When a simple search method is used to transfer the data of the search window to obtain a motion vector and a narrow search range is desired, some processor elements and intermediate registers arranged on the circuit may be used. By transferring data of another search window corresponding to a narrow search range, a motion vector with high prediction accuracy can be obtained by the all point search method or a search method close to the all point search method.

【0055】従って、回路規模が膨大になることを防止
するとともに、処理効率を低下させることなく、複数サ
イズの探索範囲から動きベクトルを求めることができ
る。請求項2記載の発明では、請求項1記載の発明にお
いて、前記動作モード選択手段は、現画像と前符号化画
像との時間的隔たりが所定値より大きい場合、第1動作
モードを選択し、現画像と前符号化画像との時間的隔た
りが所定値以下の場合、第2動作モードを選択する。
Therefore, it is possible to prevent the circuit scale from becoming enormous and to obtain the motion vector from the search range of a plurality of sizes without lowering the processing efficiency. According to a second aspect of the present invention, in the first aspect of the present invention, the operation mode selecting means selects the first operation mode when a time difference between the current image and the previous encoded image is larger than a predetermined value; When the time difference between the current image and the previous encoded image is equal to or less than a predetermined value, the second operation mode is selected.

【0056】このため、前符号化画像から現画像への時
間的な隔たりに基づいて動きベクトルを探索する動作モ
ードを選択することができるので、時間間隔が小さい場
合には、狭い探索範囲で予測精度の高い動きベクトルの
探索を行うことができるとともに、時間間隔が大きい場
合には、広い探索範囲で動きベクトルの簡略的な探索を
行うことができる。
For this reason, it is possible to select an operation mode for searching for a motion vector based on the time difference from the previous coded image to the current image. A highly accurate search for a motion vector can be performed, and when the time interval is large, a simple search for a motion vector can be performed in a wide search range.

【0057】さらに、時間間隔が大きい場合には、広い
探索範囲で簡略的探索を行った後、最小ディストーショ
ンが検出された候補ブロックの近傍に、再度、狭い探索
範囲のサーチウィンドウを設定し、設定された狭い探索
範囲で予測精度の高い動きベクトルの探索を行うことも
できる。請求項3記載の発明では、請求項1記載の発明
において、前記ディストーション算出ユニットは、(H
2−N+1)×(L2−M+1)個のプロセッサエレメ
ントが、1行目から(H1−N+1)行目までの(H1
−N+1)個の行の中の(H2−N+1)個の行と1列
目から(L1−M+1)行目までの(L1−M+1)個
の列の中の(L2−M+1)個の列とが前記マトリック
ス状で交差する位置に配置され、前記動作モード選択手
段で第2動作モードが選択された場合、(H2−N+
1)×(L2−M+1)個のプロセッサエレメントに、
前記第2〜第7ステップで、第2サーチウィンドウ内の
各候補ブロックの画素データと現符号化ブロックの画素
データを入力し、入力された画素データに基づいてディ
ストーションを算出させるように構成される。
Further, when the time interval is large, a simple search is performed in a wide search range, and a search window with a narrow search range is set again near the candidate block in which the minimum distortion is detected. It is also possible to search for a motion vector with high prediction accuracy in the narrow search range thus set. According to a third aspect of the present invention, in the first aspect of the present invention, the distortion calculation unit includes (H
(2-N + 1) × (L2-M + 1) processor elements correspond to (H1) from the first row to the (H1-N + 1) th row.
(H2-N + 1) rows in (-N + 1) rows and (L2-M + 1) columns in (L1-M + 1) columns from the first column to the (L1-M + 1) th row Are arranged at positions where they intersect in the matrix, and when the second operation mode is selected by the operation mode selection means, (H2-N +
1) × (L2−M + 1) processor elements
In the second to seventh steps, the pixel data of each candidate block and the pixel data of the current coded block in the second search window are input, and the distortion is calculated based on the input pixel data. .

【0058】このため、第2動作モードが選択された場
合には、プロセッサエレメント間で狭い探索範囲に対応
したサーチウィンドウのデータを転送させて確実に全点
探索法により動きベクトルを探索することができるの
で、予測精度の高い動きベクトルの探索を確実に行うこ
とができる。請求項4記載の発明では、請求項1〜3記
載の発明において、まず、前記第1ステップは、少なく
とも1つのプロセッサエレメントを含むプロセッサエレ
メントおよび中間レジスタからなる(H2−N+1)行
のそれぞれの行の一端に位置するプロセッサエレメント
に電気的に接続される候補ブロック特定ユニットを第8
ステップで準備する。
For this reason, when the second operation mode is selected, the data of the search window corresponding to the narrow search range is transferred between the processor elements, and the motion vector can be reliably searched by the all-point search method. Therefore, it is possible to reliably search for a motion vector with high prediction accuracy. According to a fourth aspect of the present invention, in the first to third aspects, first, each of the (H2-N + 1) rows consisting of a processor element including at least one processor element and an intermediate register is performed. The candidate block specifying unit electrically connected to the processor element located at one end of the
Prepare in steps.

【0059】次に、第9ステップで、前記候補ブロック
特定ユニットに電気的に接続されたそれぞれのプロセッ
サエレメントから前記候補ブロック特定ユニットにそれ
ぞれのディストーションを転送するとともに、候補ブロ
ック特定ユニットに向けて各プロセッサエレメントから
同行のプロセッサエレメントに順次ディストーションを
転送することで、前記ディストーション算出ユニットで
算出されたすべてのディストーションを候補ブロック特
定ユニットに転送する。
Next, in a ninth step, each distortion is transferred from each processor element electrically connected to the candidate block specifying unit to the candidate block specifying unit, and each distortion is transferred to the candidate block specifying unit. By sequentially transferring the distortion from the processor element to the processor element on the same row, all the distortions calculated by the distortion calculation unit are transferred to the candidate block specifying unit.

【0060】次に、候補ブロック特定ユニットによっ
て、前記ディストーション算出ユニットで算出されたす
べてのディストーションの中から最小の値を示すディス
トーションを検出し、最小ディストーションが算出され
たプロセッサエレメントのマトリックス状の配置位置に
基づいて、最小ディストーションが算出されたプロセッ
サエレメントに対応する候補ブロックから現符号化ブロ
ックへの動きベクトルを特定する。
Next, the candidate block specifying unit detects the distortion having the minimum value from all the distortions calculated by the distortion calculating unit, and arranges the matrix-like arrangement positions of the processor elements for which the minimum distortion has been calculated. , A motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coded block is specified.

【0061】このため、同一行のプロセッサエレメント
で算出されたそれぞれのディストーションを順次各プロ
セッサエレメントを介して一方向に転送し、同一行の一
端のプロセッサエレメントから候補ブロック特定ユニッ
トに各ディストーションを転送することができるので、
ディストーションを転送する方向に候補ブロック特定ユ
ニットを容易に配置することができる。
For this reason, the respective distortions calculated by the processor elements in the same row are sequentially transferred in one direction via the respective processor elements, and the respective distortions are transferred from one end of the same row to the candidate block specifying unit. So you can
The candidate block specifying unit can be easily arranged in the direction in which the distortion is transferred.

【0062】また、ディストーション算出ユニットから
候補ブロック特定ユニットへの転送バスをプロセッサエ
レメントの存在する行数に削減するとともに、短い転送
バスを形成することができ、さらに、同一行の各プロセ
ッサエレメントの間にも短い転送バスを形成することが
できるので、各プロセッサエレメント間の転送時間を均
一にすることができる。
Further, the number of transfer buses from the distortion calculation unit to the candidate block specifying unit can be reduced to the number of rows in which processor elements exist, and a short transfer bus can be formed. Since a transfer bus as short as possible can be formed, the transfer time between the processor elements can be made uniform.

【0063】従って、誤りの少ない安定した画素データ
の転送を行うことができる安定した回路を形成すること
ができる。請求項5記載の発明では、請求項4記載の発
明において、前記動作モード選択手段によって第1動作
モードが選択された場合、第10ステップで、前記サー
チウィンドウデータ供給ユニットによって、第1サーチ
ウィンドウをM画素分列方向にシフトした第3サーチウ
ィンドウの画素データで、第1サーチウィンドウと第3
サーチウィンドウで共通する画素データを除いた残りの
画素データを、第1サーチウィンドウの画素データに続
けて供給することで、前記第6ステップを繰り返す。同
時に、第11ステップで、前記現符号化ブロックデータ
供給ユニットによって、前記現符号化ブロックの列方向
に隣接して前記第3サーチウィンドウに対応するもうひ
とつの現符号化ブロックの画素データを第1サーチウィ
ンドウの現符号化ブロックに続けて供給することで、前
記第7ステップを繰り返す。さらに、前記第11ステッ
プが終了する前に、前記第9ステップが終了する。
Therefore, it is possible to form a stable circuit capable of performing stable transfer of pixel data with few errors. In the invention according to claim 5, in the invention according to claim 4, when the first operation mode is selected by the operation mode selection means, the first search window is set by the search window data supply unit in a tenth step. The pixel data of the third search window shifted in the column direction by M pixels includes the first search window and the third search window.
The sixth step is repeated by supplying the remaining pixel data excluding the pixel data common to the search window after the pixel data of the first search window. At the same time, in the eleventh step, the current coded block data supply unit converts pixel data of another current coded block adjacent to the current coded block in the column direction and corresponding to the third search window into the first coded block. The seventh step is repeated by continuously supplying the current coded block of the search window. Further, the ninth step ends before the eleventh step ends.

【0064】一方、前記動作モード選択手段によって第
2動作モードが選択された場合、第10ステップで、前
記サーチウィンドウデータ供給ユニットによって、第2
サーチウィンドウをM画素分列方向にシフトした第4サ
ーチウィンドウの画素データで、第2サーチウィンドウ
と第4サーチウィンドウで共通する画素データを除いた
残りの画素データを、第2サーチウィンドウの画素デー
タに続けて供給することで、前記第6ステップを繰り返
す。同時に、第11ステップで、前記現符号化ブロック
データ供給ユニットによって、前記現符号化ブロックの
列方向に隣接して前記第4サーチウィンドウに対応する
もうひとつの現符号化ブロックの画素データを第2サー
チウィンドウの現符号化ブロックに続けて供給すること
で、前記第7ステップを繰り返す。さらに、前記第11
ステップが終了する前に、前記第9ステップが終了す
る。
On the other hand, when the second operation mode is selected by the operation mode selection means, in a tenth step, the second operation mode is selected by the search window data supply unit.
Pixel data of a fourth search window obtained by shifting the search window by M pixels in the column direction, and excluding the pixel data common to the second search window and the fourth search window, and the pixel data of the second search window , The sixth step is repeated. At the same time, in the eleventh step, the pixel data of another current coded block corresponding to the fourth search window adjacent to the current coded block in the column direction is converted into the second coded data by the current coded block data supply unit. The seventh step is repeated by continuously supplying the current coded block of the search window. Further, the eleventh
Before the step ends, the ninth step ends.

【0065】このため、動作モードの変更がない場合に
は、列方向に隣接する現符号化ブロックの最小ディスト
ーションおよび動きベクトルを第6ステップでの1サイ
クルの動作毎に順次求めることができる。また、第1動
作モードにおいては、第1サーチウィンドウと第3サー
チウィンドウで共通する画素データを重複することなく
ディストーション算出ユニットに供給することができる
ので、列方向に隣接する現符号ブロックの場合には、第
3サーチウィンドウの画素データを始めからディストー
ション算出ユニットに供給し直す必要がなく、処理効率
を大幅に向上することができる。
Therefore, when there is no change in the operation mode, the minimum distortion and the motion vector of the current coded block adjacent in the column direction can be sequentially obtained for each one-cycle operation in the sixth step. In addition, in the first operation mode, pixel data common to the first search window and the third search window can be supplied to the distortion calculation unit without overlapping, so that in the case of the current code block adjacent in the column direction, Does not require the pixel data of the third search window to be supplied to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0066】また、第2動作モードにおいても、第2サ
ーチウィンドウと第4サーチウィンドウで共通する画素
データを重複することなくディストーション算出ユニッ
トに供給することができるので、列方向に隣接する現符
号ブロックの場合には、第4サーチウィンドウの画素デ
ータを始めからディストーション算出ユニットに供給し
直す必要がなく、処理効率を大幅に向上することができ
る。
Also in the second operation mode, pixel data common to the second search window and the fourth search window can be supplied to the distortion calculation unit without duplication, so that the current code block adjacent in the column direction can be supplied. In the case of, there is no need to supply the pixel data of the fourth search window to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0067】従って、動きベクトルを探索する処理効率
を大幅に向上させることができる。請求項6記載の発明
では、請求項1〜3記載の発明において、前記第1ステ
ップは、少なくとも1つのプロセッサエレメントを含む
プロセッサエレメントおよび中間レジスタからなる(L
2−M+1)列のそれぞれの列の一端に位置するプロセ
ッサエレメントに電気的に接続される候補ブロック特定
ユニットを第8ステップで準備する。
Therefore, the processing efficiency of searching for a motion vector can be greatly improved. In the invention described in claim 6, in the invention described in claims 1 to 3, the first step comprises a processor element including at least one processor element and an intermediate register (L
In the eighth step, a candidate block specifying unit electrically connected to the processor element located at one end of each of the (2-M + 1) columns is prepared.

【0068】次に、第9ステップで、前記候補ブロック
特定ユニットに電気的に接続されたそれぞれのプロセッ
サエレメントから前記候補ブロック特定ユニットにそれ
ぞれのディストーションを転送するとともに、候補ブロ
ック特定ユニットに向けて各プロセッサエレメントから
同列のプロセッサエレメントに順次ディストーションを
転送することで、前記ディストーション算出ユニットで
算出されたすべてのディストーションを候補ブロック特
定ユニットに転送する。
Next, in a ninth step, each distortion is transferred from each processor element electrically connected to the candidate block specifying unit to the candidate block specifying unit, and each distortion is transferred to the candidate block specifying unit. By sequentially transferring the distortion from the processor element to the same processor element, all the distortions calculated by the distortion calculation unit are transferred to the candidate block specifying unit.

【0069】次に、候補ブロック特定ユニットによっ
て、前記ディストーション算出ユニットで算出されたす
べてのディストーションの中から最小の値を示すディス
トーションを検出し、最小ディストーションが算出され
たプロセッサエレメントのマトリックス状の配置位置に
基づいて、最小ディストーションが算出されたプロセッ
サエレメントに対応する候補ブロックから現符号化ブロ
ックへの動きベクトルを特定する。
Next, the candidate block specifying unit detects the distortion having the minimum value from all the distortions calculated by the distortion calculating unit, and arranges the matrix-like arrangement positions of the processor elements for which the minimum distortion has been calculated. , A motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coded block is specified.

【0070】このため、同一列のプロセッサエレメント
で算出されたそれぞれのディストーションを順次各プロ
セッサエレメントを介して一方向に転送し、同一列の一
端のプロセッサエレメントから候補ブロック特定ユニッ
トに各ディストーションを転送することができるので、
ディストーションを転送する方向に候補ブロック特定ユ
ニットを容易に配置することができる。
For this reason, the respective distortions calculated by the processor elements in the same column are sequentially transferred in one direction via the respective processor elements, and the respective distortions are transferred from one end of the same column to the candidate block specifying unit. So you can
The candidate block specifying unit can be easily arranged in the direction in which the distortion is transferred.

【0071】また、ディストーション算出ユニットから
候補ブロック特定ユニットへの転送バスをプロセッサエ
レメントの存在する列数に削減するとともに、転送バス
を短くすることができ、さらに、同一列の各プロセッサ
エレメントの間にも短い転送バスを形成することができ
るので、各プロセッサエレメント間の転送時間を均一に
することができる。
Further, the transfer bus from the distortion calculation unit to the candidate block specifying unit can be reduced to the number of columns in which the processor elements exist, and the transfer bus can be shortened. Since a short transfer bus can be formed, the transfer time between the processor elements can be made uniform.

【0072】従って、誤りの少ない安定した画素データ
の転送を行うことができる安定した回路を形成すること
ができる。請求項7記載の発明では、請求項6記載の発
明において、前記動作モード選択手段によって第1動作
モードが選択された場合、第10ステップで、前記サー
チウィンドウデータ供給ユニットによって、第1サーチ
ウィンドウをM画素分列方向にシフトした第3サーチウ
ィンドウの画素データで、第1サーチウィンドウと第3
サーチウィンドウで共通する画素データを除いた残りの
画素データを、第1サーチウィンドウの画素データに続
けて供給することで、前記第6ステップを繰り返す。同
時に、第11ステップで、前記現符号化ブロックデータ
供給ユニットによって、前記現符号化ブロックの列方向
に隣接して前記第3サーチウィンドウに対応するもうひ
とつの現符号化ブロックの画素データを第1サーチウィ
ンドウの現符号化ブロックに続けて供給することで、前
記第7ステップを繰り返す。さらに、前記第11ステッ
プが終了する前に、前記第9ステップが終了する。
Therefore, it is possible to form a stable circuit capable of performing stable transfer of pixel data with few errors. In the invention according to claim 7, in the invention according to claim 6, when the first operation mode is selected by the operation mode selection means, in a tenth step, the first search window is set by the search window data supply unit. The pixel data of the third search window shifted in the column direction by M pixels includes the first search window and the third search window.
The sixth step is repeated by supplying the remaining pixel data excluding the pixel data common to the search window after the pixel data of the first search window. At the same time, in the eleventh step, the current coded block data supply unit converts pixel data of another current coded block adjacent to the current coded block in the column direction and corresponding to the third search window into the first coded block. The seventh step is repeated by continuously supplying the current coded block of the search window. Further, the ninth step ends before the eleventh step ends.

【0073】一方、前記動作モード選択手段によって第
2動作モードが選択された場合、第10ステップで、前
記サーチウィンドウデータ供給ユニットによって、第2
サーチウィンドウをM画素分列方向にシフトした第4サ
ーチウィンドウの画素データを、第2サーチウィンドウ
と第4サーチウィンドウで共通する画素データを重複す
ることなく第2サーチウィンドウの画素データに続けて
供給することで、前記第6ステップを繰り返す。同時
に、第11ステップで、前記現符号化ブロックデータ供
給ユニットによって、前記現符号化ブロックの列方向に
隣接して前記第4サーチウィンドウに対応するもうひと
つの現符号化ブロックの画素データを第2サーチウィン
ドウの現符号化ブロックに続けて供給することで、前記
第7ステップを繰り返す。さらに、前記第11ステップ
が終了する前に、前記第9ステップが終了する。
On the other hand, when the second operation mode is selected by the operation mode selection means, in the tenth step, the second operation mode is selected by the search window data supply unit.
The pixel data of the fourth search window in which the search window is shifted by M pixels in the column direction is supplied continuously to the pixel data of the second search window without overlapping the pixel data common to the second search window and the fourth search window. Then, the sixth step is repeated. At the same time, in the eleventh step, the pixel data of another current coded block corresponding to the fourth search window adjacent to the current coded block in the column direction is converted into the second coded data by the current coded block data supply unit. The seventh step is repeated by continuously supplying the current coded block of the search window. Further, the ninth step ends before the eleventh step ends.

【0074】このため、動作モードの変更がない場合に
は、列方向に隣接する現符号化ブロックの最小ディスト
ーションおよび動きベクトルを第6ステップでの1サイ
クルの動作毎に順次求めることができる。また、第1動
作モードにおいては、第1サーチウィンドウと第3サー
チウィンドウで共通する画素データを重複することなく
ディストーション算出ユニットに供給することができる
ので、列方向に隣接する現符号ブロックの場合には、第
3サーチウィンドウの画素データを始めからディストー
ション算出ユニットに供給し直す必要がなく、処理効率
を大幅に向上することができる。
Therefore, when there is no change in the operation mode, the minimum distortion and the motion vector of the current coded block adjacent in the column direction can be sequentially obtained for each one-cycle operation in the sixth step. In addition, in the first operation mode, pixel data common to the first search window and the third search window can be supplied to the distortion calculation unit without overlapping, so that in the case of the current code block adjacent in the column direction, Does not require the pixel data of the third search window to be supplied to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0075】また、第2動作モードにおいても、第2サ
ーチウィンドウと第4サーチウィンドウで共通する画素
データを重複することなくディストーション算出ユニッ
トに供給することができるので、列方向に隣接する現符
号ブロックの場合には、第4サーチウィンドウの画素デ
ータを始めからディストーション算出ユニットに供給し
直す必要がなく、処理効率を大幅に向上することができ
る。
Also in the second operation mode, pixel data common to the second search window and the fourth search window can be supplied to the distortion calculation unit without duplication, so that the current code block adjacent in the column direction can be supplied. In the case of (1), there is no need to supply the pixel data of the fourth search window to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0076】従って、動きベクトルを探索する処理効率
を大幅に向上させることができる。請求項8記載の発明
では、動作モード選択手段と、ディストーション算出ユ
ニットと、現符号化ブロックデータ供給ユニットと、サ
ーチウィンドウデータ供給ユニットと、を有し、さら
に、前記ディストーション算出ユニットは、記憶転送器
と演算器とから構成される(H2−N+1)×(L2−
M+1)個以下のプロセッサエレメントが、記憶転送器
からなる複数の中間レジスタととともに(H1−N+
1)行(L1−M+1)列のマトリックス状に想像上配
置され、さらに、(H1−N+1)個の入力レジスタか
らなる入力レジスタユニットと、(L1−M+2)個の
サイドレジスタデバイスからなるサイドレジスタユニッ
トと、を有する。
Therefore, the processing efficiency for searching for a motion vector can be greatly improved. According to an eighth aspect of the present invention, there is provided an operation mode selection means, a distortion calculation unit, a current coded block data supply unit, and a search window data supply unit, and the distortion calculation unit further comprises a storage transfer unit. (H2-N + 1) × (L2-
M + 1) or less processor elements, together with a plurality of intermediate registers consisting of storage and transfer units, (H1-N +
1) An input register unit composed of (H1-N + 1) input registers and a side register composed of (L1-M + 2) side register devices imaginarily arranged in a matrix of rows (L1-M + 1) columns And a unit.

【0077】まず、前記動作モード選択手段で第1動作
モードが選択された場合、第1転送制御手段によって、
前記サーチウィンドウデータ供給ユニットから第1サー
チウィンドウの画素データが転送されるタイミングに同
期して、各サイドレジスタデバイスから同列の1行目の
各プロセッサエレメント、各中間レジスタまたは入力レ
ジスタに画素データを転送し、同時に、1行目から(H
1−N)行目までのn行目の各プロセッサエレメントか
ら同列のn+1行目の各プロセッサエレメントまたは各
中間レジスタに画素データを転送し、同時に、1行目か
ら(H1−N)行目までのn行目の各中間レジスタから
同列のn+1行目の各プロセッサエレメントまたは各中
間レジスタに画素データを転送し、同時に、1行目から
(H1−N)行目までのn行目の入力レジスタから同列
のn+1行目の入力レジスタに画素データを転送し、同
時に、(H1−N+1)行目の各プロセッサエレメン
ト、各中間レジスタおよび入力レジスタから同列のサイ
ドレジスタデバイスに画素データを転送する。
First, when the first operation mode is selected by the operation mode selection means, the first transfer control means
In synchronization with the timing at which the pixel data of the first search window is transferred from the search window data supply unit, the pixel data is transferred from each side register device to each processor element, each intermediate register, or the input register in the first row in the same column. At the same time, from the first line (H
1-N) Pixel data is transferred from each processor element in the nth row up to the (n) th row to each processor element in the (n + 1) th row or each intermediate register in the same column, and at the same time, from the first row to the (H1-N) th row , The pixel data is transferred from each intermediate register on the nth row to each processor element or each intermediate register on the (n + 1) th row in the same column, and at the same time, the input registers on the nth row from the first row to the (H1-N) th row , The pixel data is transferred to the input register of the (n + 1) th row in the same column, and at the same time, the pixel data is transferred from each processor element, each intermediate register, and the input register in the (H1-N + 1) th row to the side register device in the same column.

【0078】一方、前記動作モード選択手段で第2動作
モードが選択された場合、第1転送制御手段によって、
前記サーチウィンドウデータ供給ユニットから第2サー
チウィンドウの画素データが転送されるタイミングに同
期して、各サイドレジスタデバイスから同列の1行目の
各プロセッサエレメント、各中間レジスタまたは入力レ
ジスタに画素データを転送し、同時に、1行目から(H
1−N)行目までのi行目の各プロセッサエレメントか
ら同列のi+1行目の各プロセッサエレメントまたは各
中間レジスタに画素データを転送し、同時に、1行目か
ら(H1−N)行目までのi行目の各中間レジスタから
同列のi+1行目の各プロセッサエレメントまたは各中
間レジスタに画素データを転送し、同時に、1行目から
(H1−N)行目までのi行目の入力レジスタから同列
のi+1行目の入力レジスタに画素データを転送し、同
時に、(H1−N+1)行目の各プロセッサエレメン
ト、中間レジスタおよび入力レジスタから同列のサイド
レジスタデバイスに画素データを転送する。
On the other hand, when the second operation mode is selected by the operation mode selection means, the first transfer control means
In synchronization with the timing at which the pixel data of the second search window is transferred from the search window data supply unit, the pixel data is transferred from each side register device to each processor element, each intermediate register or the input register in the first row in the same column. At the same time, from the first line (H
1-N) Transfer pixel data from each processor element in the i-th row up to the row to each processor element in the (i + 1) -th row or each intermediate register in the same column, and simultaneously, from the first row to the (H1-N) th row , The pixel data is transferred from each intermediate register on the i-th row to each processor element or each intermediate register on the i + 1-th row in the same column, and at the same time, the input registers on the i-th row from the first row to the (H1-N) th row , The pixel data is transferred to the input register on the (i + 1) th row in the same column, and at the same time, the pixel data is transferred from each processor element, intermediate register, and input register on the (H1-N + 1) th row to the side register device in the same column.

【0079】次に、前記動作モード選択手段で第1動作
モードが選択された場合、第2転送制御手段によって、
前記サーチウィンドウデータ供給ユニットから第1サー
チウィンドウの画素データが転送されるタイミングに同
期して、2列目以降(L1−M+1)列目までのm列目
の各プロセッサエレメントから同行のm−1列目の各プ
ロセッサエレメントまたは各中間レジスタに画素データ
を転送し、同時に、2列目以降(L1−M+1)列目ま
でのm列目の各中間レジスタから同行のm−1列目の各
プロセッサエレメントまたは各中間レジスタに画素デー
タを転送し、同時に、2列目以降(L1−M+2)列目
までのm列目の各サイドレジスタデバイスから同行のm
−1列目の各サイドレジスタデバイスに画素データを転
送し、同時に、各入力レジスタから同行の(L1−M+
1)列目の各プロセッサエレメントまたは各中間レジス
タに画素データを転送する。
Next, when the first operation mode is selected by the operation mode selection means, the second transfer control means
In synchronization with the timing at which the pixel data of the first search window is transferred from the search window data supply unit, each processor element in the m th column from the second column to the (L 1 -M + 1) th column is used to execute m−1 in the same row. The pixel data is transferred to each processor element in the column or each intermediate register, and at the same time, each processor in the m-1st column in the same row from the mth intermediate register in the second and subsequent columns up to the (L1-M + 1) th column The pixel data is transferred to the element or each intermediate register, and at the same time, from each side register device in the mth column from the second column to the (L1-M + 2) th column, m
The pixel data is transferred to each side register device in the -1st column, and at the same time, from each input register, (L1-M +
1) The pixel data is transferred to each processor element or each intermediate register in the column.

【0080】一方、前記動作モード選択手段で第2動作
モードが選択された場合、第2転送制御手段によって、
前記サーチウィンドウデータ供給ユニットから第2サー
チウィンドウの画素データが転送されるタイミングに同
期して、2列目以降(L1−M+1)列目までのj列目
の各プロセッサエレメントから同行のj−1列目の各プ
ロセッサエレメントまたは各中間レジスタに画素データ
を転送し、同時に、2列目以降(L1−M+1)列目ま
でのj列目の各中間レジスタから同行のj−1列目の各
プロセッサエレメントまたは各中間レジスタに画素デー
タを転送し、同時に、2列目以降(L1−M+2)列目
までのj列目の各サイドレジスタデバイスから同行のj
−1列目の各サイドレジスタデバイスに画素データを転
送し、同時に、各入力レジスタから同行の(L1−M+
1)列目の各プロセッサエレメントまたは各中間レジス
タ画素データを転送する。
On the other hand, when the second operation mode is selected by the operation mode selection means, the second transfer control means
In synchronization with the timing at which the pixel data of the second search window is transferred from the search window data supply unit, the processor elements in the j-th column from the second column to the (L1-M + 1) -th column are used to j-1 in the same row. The pixel data is transferred to each processor element in the column or each intermediate register, and at the same time, each processor in the j-th column from the j-th column in the j-th column to the (L1-M + 1) -th column from the second column. The pixel data is transferred to the element or each intermediate register, and at the same time, from each of the side register devices in the j-th column up to the (L1-M + 2) -th column and j in the same row
The pixel data is transferred to each side register device in the -1st column, and at the same time, from each input register, (L1-M +
1) Transfer each processor element in the column or each intermediate register pixel data.

【0081】次に、前記動作モード選択手段で第1動作
モードが選択された場合、第3転送制御手段によって、
前記サーチウィンドウデータ供給ユニットから第1サー
チウィンドウの画素データが転送されるタイミングに同
期して、1行目の各プロセッサエレメント、各中間レジ
スタおよび入力レジスタから同列のサイドレジスタデバ
イスに画素データを転送し、同時に、2行目から(H1
−N+1)行目までのn行目の各プロセッサエレメント
から同列のn−1行目の各プロセッサエレメントまたは
各中間レジスタに画素データを転送し、同時に、2行目
から(H1−N+1)行目までのn行目の各中間レジス
タから同列のn−1行目の各プロセッサエレメントまた
は各中間レジスタに画素データを転送し、同時に、2行
目から(H1−N+1)行目までのn行目の入力レジス
タから同列のn−1行目の入力レジスタに画素データを
転送し、同時に、各サイドレジスタデバイスから同列の
(H1−N+1)行目の各プロセッサエレメント、各中
間レジスタまたは入力レジスタに画素データを転送す
る。
Next, when the first operation mode is selected by the operation mode selection means, the third transfer control means
In synchronization with the timing at which the pixel data of the first search window is transferred from the search window data supply unit, the pixel data is transferred from each processor element, each intermediate register and the input register in the first row to the side register device in the same column. At the same time, from the second line (H1
−N + 1) The pixel data is transferred from each processor element in the nth row up to the (n−1) th row to each processor element in the (n−1) th row or each intermediate register in the same column, and at the same time, from the second row to the (H1-N + 1) th row. The pixel data is transferred from each of the intermediate registers in the nth row to each processor element or each intermediate register in the (n-1) th row in the same column, and at the same time, the nth row from the second row to the (H1-N + 1) th row , The pixel data is transferred from the input register to the input register on the (n−1) th row in the same column, and simultaneously, the pixel data is transferred from each side register device to each processor element, each intermediate register, or the input register in the (H1-N + 1) th row in the same column. Transfer data.

【0082】一方、前記動作モード選択手段で第2動作
モードが選択された場合、第3転送制御手段によって、
前記サーチウィンドウデータ供給ユニットから第2サー
チウィンドウの画素データが転送されるタイミングに同
期して、1行目の各プロセッサエレメント、各中間レジ
スタいよび入力レジスタから同列のサイドレジスタデバ
イスに画素データを転送し、同時に、2行目から(H1
−N+1)行目までのi行目の各プロセッサエレメント
から同列のi−1行目の各プロセッサエレメントまたは
各中間レジスタに画素データを転送し、同時に、2行目
から(H1−N+1)行目までのi行目の各中間レジス
タから同列のi−1行目の各プロセッサエレメントまた
は各中間レジスタに画素データを転送し、同時に、2行
目から(H1−N+1)行目までのi行目の入力レジス
タから同列のi−1行目の入力レジスタに画素データを
転送し、同時に、サイドレジスタデバイスから同列の
(H1−N+1)行目の各プロセッサエレメント、各中
間レジスタまたは入力レジスタに画素データを転送す
る。
On the other hand, when the second operation mode is selected by the operation mode selection means, the third transfer control means
In synchronization with the timing at which the pixel data of the second search window is transferred from the search window data supply unit, the pixel data is transferred from each processor element in the first row, each intermediate register and the input register to the side register device in the same column. At the same time, from the second line (H1
−N + 1) The pixel data is transferred from each processor element in the i-th row up to the row to each processor element in the (i−1) -th row or each intermediate register in the same column, and at the same time, from the second row to the (H1-N + 1) -th row The pixel data is transferred from each intermediate register of the i-th row to each processor element or each intermediate register of the i-1st row in the same column, and at the same time, the i-th row from the second row to the (H1-N + 1) th row , The pixel data is transferred from the side register device to each processor element, each intermediate register or the input register in the (H1-N + 1) th row in the same column from the input register in the i-1th row in the same column. To transfer.

【0083】次に、第4転送制御手段によって、第1転
送制御手段による転送動作を(N−1)回繰り返し、次
いで、第2転送制御手段による転送動作を1回行い、次
いで、第3転送制御手段による転送動作を(N−1)回
繰り返し、次いで、第2転送制御手段による転送動作を
1回行う転送動作を1サイクルとして、順次このサイク
ルを繰り返す。
Next, the transfer operation by the first transfer control means is repeated (N-1) times by the fourth transfer control means, then the transfer operation by the second transfer control means is performed once, and then the third transfer control means is performed. The transfer operation by the control means is repeated (N-1) times, and then the transfer operation in which the transfer operation by the second transfer control means is performed once is defined as one cycle, and this cycle is sequentially repeated.

【0084】次に、前記動作モード選択手段で第1動作
モードが選択された場合、第5転送制御手段によって、
1列目のプロセッサエレメントに前記第1サーチウィン
ドウの画像データが初めて転送されたとき、各プロセッ
サエレメントに前記現符号化ブロックの1画素分の画素
データを現符号化ブロックデータ供給ユニットから入力
し、以後、第4転送制御手段の転送動作に同期して、各
プロセッサエレメントに現符号化ブロックの全ての画素
データが画素毎に入力されるまで、画素データの入力を
繰り返す。
Next, when the first operation mode is selected by the operation mode selection means, the fifth transfer control means
When the image data of the first search window is transferred to the processor element in the first column for the first time, pixel data for one pixel of the current encoding block is input to each processor element from the current encoding block data supply unit, Thereafter, in synchronization with the transfer operation of the fourth transfer control means, the input of the pixel data is repeated until all the pixel data of the current coding block is input to each processor element for each pixel.

【0085】一方、前記動作モード選択手段で第2動作
モードが選択された場合、第5転送制御手段によって、
1列目のプロセッサエレメントに前記第2サーチウィン
ドウの画像データが初めて転送されたとき、各プロセッ
サエレメントに前記現符号化ブロックの1画素分の画素
データを現符号化ブロックデータ供給ユニットから入力
し、以後、第4転送制御手段の転送動作に同期して、各
プロセッサエレメントに現符号化ブロックの全ての画素
データが画素毎に入力されるまで、画素データの入力を
繰り返す。
On the other hand, when the second operation mode is selected by the operation mode selection means, the fifth transfer control means
When the image data of the second search window is transferred to the processor element in the first column for the first time, pixel data for one pixel of the current coding block is input to each processor element from the current coding block data supply unit, Thereafter, in synchronization with the transfer operation of the fourth transfer control means, the input of the pixel data is repeated until all the pixel data of the current coding block is input to each processor element for each pixel.

【0086】次に、前記動作モード選択手段で第1動作
モードが選択された場合、ディストーション算出制御手
段によって、前記第5転送制御手段により各プロセッサ
エレメントに入力された第1サーチウィンドウ内の各候
補ブロックの画素データと現符号化ブロックの画素デー
タに基づいて各プロセッサエレメントにディストーショ
ンを算出させる。
Next, when the first operation mode is selected by the operation mode selection means, each candidate in the first search window input to each processor element by the fifth transfer control means is output by the distortion calculation control means. Each processor element calculates a distortion based on the pixel data of the block and the pixel data of the current coding block.

【0087】一方、前記動作モード選択手段で第2動作
モードが選択された場合、ディストーション算出制御手
段によって、前記第5転送制御手段により各プロセッサ
エレメントに入力された第2サーチウィンドウ内の各候
補ブロックの画素データと現符号化ブロックの画素デー
タに基づいて各プロセッサエレメントにディストーショ
ンを算出させる。
On the other hand, when the second operation mode is selected by the operation mode selection means, each candidate block in the second search window input to each processor element by the fifth transfer control means is output by the distortion calculation control means. Each processor element calculates a distortion based on the pixel data of the current block and the pixel data of the current coding block.

【0088】このため、中間レジスタを配置すること
で、プロセッサエレメントの数を増やすことなく、簡略
的探索方法により広い探索範囲から動きベクトルを探索
することができる。また、サーチウィンドウのサイズに
応じてプロセッサエレメントおよび中間レジスタを共有
することにより、広い探索範囲を取りたい場合には、回
路上に配置されたすべてのプロセッサエレメントおよび
中間レジスタ間で広い探索範囲に対応するサーチウィン
ドウのデータを転送させて簡略的な探索方法で動きベク
トルを求めることができるとともに、狭い探索範囲を取
りたい場合には、回路上に配置された一部のプロセッサ
エレメントおよび中間レジスタ間で狭い探索範囲に対応
した別のサーチウィンドウのデータを転送させて全点探
索法または全点探索法に近い探索方法で予測精度の高い
動きベクトルを求めることができる。
For this reason, by arranging the intermediate registers, a motion vector can be searched from a wide search range by a simple search method without increasing the number of processor elements. Also, by sharing the processor elements and intermediate registers according to the size of the search window, if a wide search range is desired, a wide search range can be supported among all processor elements and intermediate registers arranged on the circuit. When a simple search method is used to transfer the data of the search window to obtain a motion vector and a narrow search range is desired, some processor elements and intermediate registers arranged on the circuit may be used. By transferring data of another search window corresponding to a narrow search range, a motion vector with high prediction accuracy can be obtained by the all point search method or a search method close to the all point search method.

【0089】従って、回路規模が膨大になることを防止
するとともに、処理効率を低下させることなく、複数サ
イズの探索範囲から動きベクトルを求めることができ
る。請求項9記載の発明では、請求項8記載の発明にお
いて、前記動作モード選択手段は、現画像と前符号化画
像との時間的隔たりが所定値より大きい場合、第1動作
モードを選択し、現画像と前符号化画像との時間的隔た
りが所定値以下の場合、第2動作モードを選択するよう
に構成される。
Therefore, it is possible to prevent the circuit scale from becoming enormous and to obtain a motion vector from a search range of a plurality of sizes without lowering the processing efficiency. According to a ninth aspect of the present invention, in the invention according to the eighth aspect, the operation mode selecting means selects the first operation mode when a time difference between the current image and the previous encoded image is larger than a predetermined value, When the time difference between the current image and the previous encoded image is equal to or smaller than a predetermined value, the second operation mode is selected.

【0090】このため、前符号化画像から現画像への時
間的な隔たりに基づいて動きベクトルを探索する動作モ
ードを選択することができるので、時間間隔が小さい場
合には、狭い探索範囲で予測精度の高い動きベクトルの
探索を行うことができるとともに、時間間隔が大きい場
合には、広い探索範囲で動きベクトルの簡略的な探索を
行うことができる。
For this reason, it is possible to select an operation mode for searching for a motion vector based on a time interval from the previous coded image to the current image. A highly accurate search for a motion vector can be performed, and when the time interval is large, a simple search for a motion vector can be performed in a wide search range.

【0091】さらに、時間間隔が大きい場合には、広い
探索範囲で簡略的探索を行った後、最小ディストーショ
ンが検出された候補ブロックの近傍に、再度、狭い探索
範囲のサーチウィンドウを設定し、設定された狭い探索
範囲で予測精度の高い動きベクトルの探索を行うことも
できる。請求項10記載の発明では、請求項8記載の発
明において、前記ディストーション算出ユニットには、
(H2−N+1)×(L2−M+1)個のプロセッサエ
レメントが、1行目から(H1−N+1)行目までの
(H1−N+1)個の行の中の(H2−N+1)個の行
と1列目から(L1−M+1)行目までの(L1−M+
1)個の列の中の(L2−M+1)個の列とが前記マト
リックス状で交差する位置に配置され、前記動作モード
選択手段で第2動作モードが選択された場合、(H2−
N+1)×(L2−M+1)個のプロセッサエレメント
に、前記第1〜第5の転送制御手段によって第2サーチ
ウィンドウ内の各候補ブロックの画素データと現符号化
ブロックの画素データを入力し、入力された画素データ
に基づいて前記ディストーション算出制御手段によりデ
ィストーションを算出させるように構成される。
Further, when the time interval is large, after performing a simple search in a wide search range, a search window of a narrow search range is set again near the candidate block where the minimum distortion is detected, and the setting window is set. It is also possible to search for a motion vector with high prediction accuracy in the narrow search range thus set. In the invention according to claim 10, in the invention according to claim 8, the distortion calculation unit includes:
(H2−N + 1) × (L2−M + 1) processor elements correspond to (H2−N + 1) rows of (H1−N + 1) rows from the first row to the (H1−N + 1) th row. (L1-M +) from the first column to the (L1-M + 1) th row
When (L2-M + 1) columns of the 1) columns are arranged at positions where they intersect in the matrix, and when the second operation mode is selected by the operation mode selection means, (H2-M1)
The pixel data of each candidate block in the second search window and the pixel data of the current coded block are input to the (N + 1) × (L2-M + 1) processor elements by the first to fifth transfer control means. The distortion calculation control means calculates distortion based on the obtained pixel data.

【0092】このため、第2動作モードが選択された場
合には、回路上に配置されたすべてのプロセッサエレメ
ント間で狭い探索範囲に対応したサーチウィンドウのデ
ータを転送させて確実に全点探索法により動きベクトル
を探索することができるので、予測精度の高い動きベク
トルの探索を確実に行うことができる。請求項11記載
の発明では、請求項8〜10記載の発明において、前記
サイドレジスタユニットの各サイドレジスタデバイス
は、互いに直列に電気的に接続された(N−1)個の前
記記憶転送器を有し、一端の記憶転送器が同列の1行目
のプロセッサエレメントまたは中間レジスタに電気的に
接続された第1サイドレジスタデバイスと、直列に電気
的に接続された(N−1)個の前記記憶転送器を有し、
一端の記憶転送器が同列の(H1−N+1)行目のプロ
セッサエレメントまたは中間レジスタに電気的に接続さ
れた第2サイドレジスタデバイスとから構成される。
Therefore, when the second operation mode is selected, the data of the search window corresponding to the narrow search range is transferred between all the processor elements arranged on the circuit, and the all-point search method is surely performed. Therefore, a motion vector can be searched for, so that a motion vector with high prediction accuracy can be reliably searched. According to an eleventh aspect of the present invention, in the invention of the eighth to tenth aspects, each side register device of the side register unit includes (N-1) storage transfer units electrically connected to each other in series. And a first side register device electrically connected to a processor element or an intermediate register in a first row in the same column, and (N-1) number of the first side register devices electrically connected in series. Having a memory transfer device,
The storage transfer device at one end includes a processor element in the (H1-N + 1) th row in the same column or a second side register device electrically connected to the intermediate register.

【0093】このため、1行目のプロセッサエレメン
ト、中間レジスタおよび入力レジスタ並びに(H1−N
+1)行目のプロセッサエレメント、中間レジスタおよ
び入力レジスタにそれぞれ(N−1)個の中間レジスタ
と同じ前記記憶転送器からなる第1サイドレジスタデバ
イスおよび第2サイドレジスタデバイスを配置すること
ができるので、回路を容易に構成することができる。
Therefore, the processor elements, intermediate registers and input registers in the first row and (H1-N)
The first side register device and the second side register device including the same storage transfer device as the (N-1) intermediate registers can be arranged in the processor element, the intermediate register, and the input register on the (+1) th row, respectively. The circuit can be easily configured.

【0094】請求項12記載の発明では、請求項8〜1
0記載の発明において、前記サイドレジスタユニットの
各サイドレジスタデバイスは、互いに直列に電気的に接
続された(N−1)個の前記記憶転送器を有し、一端の
記憶転送器が同列の1行目のプロセッサエレメント、中
間レジスタまたは入力レジスタに電気的に接続され、他
端の記憶転送器が同列の(H1−N+1)行目のプロセ
ッサエレメント、中間レジスタまたは入力レジスタに電
気的に接続される。
According to the twelfth aspect of the present invention, the eighth to the first aspects are provided.
0, each side register device of the side register unit has (N-1) storage transfer units electrically connected in series with each other, and one end of the storage transfer units in the same row. The storage transfer device at the other end is electrically connected to the processor element, the intermediate register, or the input register on the (H1-N + 1) th row in the same row. .

【0095】このため、列毎に各プロセサエレメント、
各中間レジスタまたは各入力レジスタとともにサイドレ
ジスタデバイスの記憶転送器をリング状に電気的に接続
することができるので、請求項8記載のサイドレジスタ
ユニットが有する記憶転送器の半数の記憶転送器でサイ
ドレジスタユニットを構成することができる。また、各
列毎にリング状に接続された各プロセッサエレメント、
各中間レジスタ、各入力レジスタまたはサイドレジスタ
デバイスの各記憶転送器の距離を均一に配置することが
できるので、短い転送バスを形成することができるとと
もに、各プロセッサエレメント、各中間レジスタ、各入
力レジスタまたはサイドレジスタデバイスの各記憶転送
器間の画素データの転送時間を均一にすることができ
る。従って、誤りの少ない安定した回路を形成すること
ができる。
Therefore, each processor element for each column,
9. The storage transfer device of the side register device can be electrically connected in a ring shape together with each intermediate register or each input register, so that the side register unit has half of the storage transfer devices of the side register unit. A register unit can be configured. Also, each processor element connected in a ring shape for each column,
Since the distance between each intermediate register, each input register or each storage transfer device of the side register device can be uniformly arranged, a short transfer bus can be formed, and each processor element, each intermediate register, and each input register can be formed. Alternatively, the transfer time of pixel data between the storage transfer units of the side register device can be made uniform. Therefore, a stable circuit with few errors can be formed.

【0096】請求項13記載の発明では、請求項8〜1
0記載の発明において、少なくとも1つのプロセッサエ
レメントを含むプロセッサエレメントおよび中間レジス
タからなる(H2−N+1)行のそれぞれの行の一端に
位置するプロセッサエレメントに電気的に接続される候
補ブロック特定ユニットを有する。まず、ディストーシ
ョン転送手段によって、前記候補ブロック特定ユニット
に電気的に接続されたそれぞれのプロセッサエレメント
から前記候補ブロック特定ユニットにそれぞれのディス
トーションを転送するとともに、候補ブロック特定ユニ
ットに向けて各プロセッサエレメントから同行のプロセ
ッサエレメントに順次ディストーションを転送すること
で、前記ディストーション算出ユニットで算出されたす
べてのディストーションを候補ブロック特定ユニットに
転送する。
According to the thirteenth aspect of the present invention, the eighth to first aspects are provided.
0, the processor block including at least one processor element and a candidate block specifying unit electrically connected to the processor element located at one end of each of the (H2-N + 1) rows including the intermediate register. . First, the respective distortions are transferred to the candidate block specifying unit from the respective processor elements electrically connected to the candidate block specifying unit by the distortion transfer unit, and the respective processor elements accompany the candidate block specifying unit. By sequentially transferring the distortions to the processor elements, all the distortions calculated by the distortion calculation unit are transferred to the candidate block specifying unit.

【0097】次に、候補ブロック特定ユニットによっ
て、前記ディストーション算出ユニットで算出されたす
べてのディストーションの中から最小の値を示すディス
トーションを検出し、最小ディストーションが算出され
たプロセッサエレメントのマトリックス状の配置位置に
基づいて、最小ディストーションが算出されたプロセッ
サエレメントに対応する候補ブロックから現符号化ブロ
ックへの動きベクトルを特定する。
Next, the candidate block specifying unit detects the distortion having the minimum value from all the distortions calculated by the distortion calculating unit, and arranges the matrix-like arrangement positions of the processor elements for which the minimum distortion has been calculated. , A motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coded block is specified.

【0098】このため、同一行のプロセッサエレメント
で算出されたそれぞれのディストーションを順次各プロ
セッサエレメントを介して一方向に転送し、同一行の一
端のプロセッサエレメントから候補ブロック特定ユニッ
トに各ディストーションを転送することができるので、
ディストーションを転送する方向に候補ブロック特定ユ
ニットを容易に配置することができる。
For this reason, the respective distortions calculated by the processor elements in the same row are sequentially transferred in one direction via the respective processor elements, and the respective distortions are transferred from one end of the same row to the candidate block specifying unit. So you can
The candidate block specifying unit can be easily arranged in the direction in which the distortion is transferred.

【0099】また、ディストーション算出ユニットから
候補ブロック特定ユニットへの転送バスをプロセッサエ
レメントの存在する行数に削減するとともに、短い転送
バスを形成することができ、さらに、同一行の各プロセ
ッサエレメントの間にも短い転送バスを形成することが
できるので、各プロセッサエレメント間の転送時間を均
一にすることができる。
Further, the number of transfer buses from the distortion calculation unit to the candidate block specifying unit can be reduced to the number of rows in which processor elements exist, and a short transfer bus can be formed. Since a transfer bus as short as possible can be formed, the transfer time between the processor elements can be made uniform.

【0100】従って、誤りの少ない安定した画素データ
の転送を行うことができる安定した回路を形成すること
ができる。請求項14記載の発明では、請求項13記載
の発明において、前記動作モード選択手段によって第1
動作モードが選択された場合、前記サーチウィンドウデ
ータ供給ユニットによって、第1サーチウィンドウをM
画素分列方向にシフトした第3サーチウィンドウの範囲
の画素データで、第1サーチウィンドウと第3サーチウ
ィンドウで共通する画素データを除いた残りの画素デー
タを、第1サーチウィンドウの画素データに続けて順次
前記ディストーション算出ユニットに供給する。同時
に、前記現符号化ブロックデータ供給ユニットによっ
て、前記現符号化ブロックの列方向に隣接し、前記第3
サーチウィンドウに対応するもうひとつの現符号化ブロ
ックの画素データを前記第5転送制御手段の転送動作に
基づいて第1サーチウィンドウの現符号化ブロックに続
けて順次前記ディストーション算出ユニットに供給す
る。さらに、前記ディストーション算出制御手段により
前記第3サーチウィンドウと第3サーチウィンドウに対
応する現符号化ブロックとのディストーションの算出が
終了する前に、前記ディストーション転送手段による前
記第1サーチウィンドウと第1サーチウィンドウに対応
する現符号化ブロックとで算出されたディストーション
の転送動作が終了する。
Therefore, it is possible to form a stable circuit capable of performing stable transfer of pixel data with few errors. According to a fourteenth aspect, in the thirteenth aspect, the first operation mode is selected by the operation mode selection means.
When the operation mode is selected, the first search window is set to M by the search window data supply unit.
In the pixel data in the range of the third search window shifted in the pixel segment direction, the remaining pixel data excluding the pixel data common to the first search window and the third search window are added to the pixel data of the first search window. To the distortion calculation unit. At the same time, the current coded block data supply unit adjoins the current coded block in the column direction,
Pixel data of another current coded block corresponding to a search window is supplied to the distortion calculation unit sequentially following the current coded block of the first search window based on the transfer operation of the fifth transfer control means. Further, before the distortion calculation control means completes the calculation of the distortion between the third search window and the current coded block corresponding to the third search window, the distortion search means sets the first search window and the first search window. The operation of transferring the distortion calculated with the current coding block corresponding to the window ends.

【0101】一方、前記動作モード選択手段によって第
2動作モードが選択された場合、前記サーチウィンドウ
データ供給ユニットによって、第2サーチウィンドウを
M画素分列方向にシフトした第4サーチウィンドウの範
囲の画素データで、第2サーチウィンドウと第4サーチ
ウィンドウで共通する画素データを除いた残りの画素デ
ータを、第2サーチウィンドウの画素データに続けて順
次前記ディストーション算出ユニットに供給する。同時
に、前記現符号化ブロックデータ供給ユニットによっ
て、前記現符号化ブロックの列方向に隣接し、前記第4
サーチウィンドウに対応するもうひとつの現符号化ブロ
ックの画素データを前記第5転送制御手段の転送動作に
基づいて第2サーチウィンドウの現符号化ブロックに続
けて順次前記ディストーション算出ユニットに供給す
る。さらに、前記ディストーション算出制御手段により
前記第4サーチウィンドウと第4サーチウィンドウに対
応する現符号化ブロックとのディストーションの算出が
終了する前に、前記ディストーション転送手段による前
記第2サーチウィンドウと第2サーチウィンドウに対応
する現符号化ブロックとで算出されたディストーション
の転送動作が終了するように構成される。
On the other hand, when the second operation mode is selected by the operation mode selection means, the search window data supply unit shifts the second search window in the column direction by M pixels in the range of the fourth search window. The remaining pixel data excluding the pixel data common to the second search window and the fourth search window is sequentially supplied to the distortion calculation unit following the pixel data of the second search window. At the same time, the current coded block data supply unit adjoins the current coded block in the column direction,
The pixel data of another current coded block corresponding to the search window is supplied to the distortion calculation unit sequentially following the current coded block of the second search window based on the transfer operation of the fifth transfer control means. Further, before the distortion calculation control means completes the calculation of the distortion between the fourth search window and the current coded block corresponding to the fourth search window, the distortion transfer means sets the second search window and the second search window. The transfer operation of the distortion calculated with the current coding block corresponding to the window is configured to end.

【0102】このため、動作モードの変更がない場合に
は、列方向に隣接する現符号化ブロックの最小ディスト
ーションおよび動きベクトルを第4転送制御手段による
1サイクルの動作毎に順次求めることができる。また、
第1動作モードにおいては、第1サーチウィンドウと第
3サーチウィンドウで共通する画素データを重複するこ
となくディストーション算出ユニットに供給することが
できるので、列方向に隣接する現符号ブロックの場合に
は、第3サーチウィンドウの画素データを始めからディ
ストーション算出ユニットに供給し直す必要がなく、処
理効率を大幅に向上することができる。
Therefore, when there is no change in the operation mode, the minimum distortion and the motion vector of the current coded block adjacent in the column direction can be sequentially obtained for each one-cycle operation by the fourth transfer control means. Also,
In the first operation mode, pixel data common to the first search window and the third search window can be supplied to the distortion calculation unit without duplication, so that in the case of the current code block adjacent in the column direction, There is no need to supply the pixel data of the third search window to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0103】また、第2動作モードにおいても、第2サ
ーチウィンドウと第4サーチウィンドウで共通する画素
データを重複することなくディストーション算出ユニッ
トに供給することができるので、列方向に隣接する現符
号ブロックの場合には、第4サーチウィンドウの画素デ
ータを始めからディストーション算出ユニットに供給し
直す必要がなく、処理効率を大幅に向上することができ
る。
In the second operation mode, pixel data common to the second search window and the fourth search window can be supplied to the distortion calculation unit without duplication, so that the current code block adjacent in the column direction can be supplied. In the case of, there is no need to supply the pixel data of the fourth search window to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0104】従って、動きベクトルを探索する処理効率
を大幅に向上させることができる。請求項15記載の発
明では、請求項8〜10記載の発明において、少なくと
も1つのプロセッサエレメントを含むプロセッサエレメ
ントおよび中間レジスタからなる(L2−M+1)列の
それぞれの列の一端に位置するプロセッサエレメントに
電気的に接続される候補ブロック特定ユニットを有す
る。
Therefore, the processing efficiency of searching for a motion vector can be greatly improved. According to a fifteenth aspect of the present invention, in the invention of the eighth to tenth aspects, the processor element located at one end of each of the (L2-M + 1) columns including the processor element including at least one processor element and the intermediate register is provided. It has a candidate block specifying unit that is electrically connected.

【0105】まず、ディストーション転送手段によっ
て、前記候補ブロック特定ユニットに電気的に接続され
たそれぞれのプロセッサエレメントから前記候補ブロッ
ク特定ユニットにそれぞれのディストーションを転送す
るとともに、候補ブロック特定ユニットに向けて各プロ
セッサエレメントから同列のプロセッサエレメントに順
次ディストーションを転送することで、前記ディストー
ション算出ユニットで算出されたすべてのディストーシ
ョンを候補ブロック特定ユニットに転送する。
First, the respective distortions are transferred from the respective processor elements electrically connected to the candidate block specifying unit to the candidate block specifying unit by the distortion transfer means, and each processor is transferred to the candidate block specifying unit. By sequentially transferring the distortion from the element to the processor element in the same row, all the distortions calculated by the distortion calculation unit are transferred to the candidate block specifying unit.

【0106】次に、候補ブロック特定ユニットによっ
て、前記ディストーション算出ユニットで算出されたす
べてのディストーションの中から最小の値を示すディス
トーションを検出し、最小ディストーションが算出され
たプロセッサエレメントのマトリックス状の配置位置に
基づいて、最小ディストーションが算出されたプロセッ
サエレメントに対応する候補ブロックから現符号化ブロ
ックへの動きベクトルを特定する。
Next, the candidate block specifying unit detects the distortion having the minimum value from all the distortions calculated by the distortion calculating unit, and arranges the matrix-like arrangement positions of the processor elements for which the minimum distortion has been calculated. , A motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coded block is specified.

【0107】このため、同一列のプロセッサエレメント
で算出されたそれぞれのディストーションを順次各プロ
セッサエレメントを介して一方向に転送し、同一列の一
端のプロセッサエレメントから最小ディストーションユ
ニットに各ディストーションを転送することができるの
で、ディストーションを転送する方向に候補ブロック特
定ユニットを容易に配置することができる。
Therefore, the respective distortions calculated by the processor elements in the same column are sequentially transferred in one direction via the respective processor elements, and each distortion is transferred from the processor element at one end of the same column to the minimum distortion unit. Therefore, the candidate block specifying unit can be easily arranged in the direction in which the distortion is transferred.

【0108】また、ディストーション算出ユニットから
候補ブロック特定ユニットへの転送バスをプロセッサエ
レメントの存在する列数に削減するとともに、短い転送
バスを形成することができ、さらに、同一列の各プロセ
ッサエレメントの間にも短い転送バスを形成することが
できるので、各プロセッサエレメント間の転送時間を均
一にすることができる。
Further, the number of transfer buses from the distortion calculation unit to the candidate block specifying unit can be reduced to the number of columns in which processor elements exist, and a short transfer bus can be formed. Since a transfer bus as short as possible can be formed, the transfer time between the processor elements can be made uniform.

【0109】従って、誤りの少ない安定した画素データ
の転送を行うことができる安定した回路を形成すること
ができる。請求項16記載の発明では、請求項15記載
の発明において、前記動作モード選択手段によって第1
動作モードが選択された場合、前記サーチウィンドウデ
ータ供給ユニットによって、第1サーチウィンドウをM
画素分列方向にシフトした第3サーチウィンドウの範囲
の画素データで、第1サーチウィンドウと第3サーチウ
ィンドウで共通する画素データを除いた残りの画素デー
タを、第1サーチウィンドウの画素データに続けて順次
前記ディストーション算出ユニットに供給する。同時
に、前記現符号化ブロックデータ供給ユニットによっ
て、前記現符号化ブロックの列方向に隣接し、前記第3
サーチウィンドウに対応するもうひとつの現符号化ブロ
ックの画素データを前記第5転送制御手段の転送動作に
基づいて第1サーチウィンドウの現符号化ブロックに続
けて順次前記ディストーション算出ユニットに供給す
る。さらに、前記ディストーション算出制御手段により
前記第3サーチウィンドウと第3サーチウィンドウに対
応する現符号化ブロックとのディストーションの算出が
終了する前に、前記ディストーション転送手段による前
記第1サーチウィンドウと第1サーチウィンドウに対応
する現符号化ブロックとで算出されたディストーション
の転送動作が終了する。
Therefore, it is possible to form a stable circuit capable of performing stable transfer of pixel data with few errors. According to a sixteenth aspect of the present invention, in the invention according to the fifteenth aspect, the first operation mode is selected by the operation mode selecting means.
When the operation mode is selected, the first search window is set to M by the search window data supply unit.
In the pixel data in the range of the third search window shifted in the pixel segment direction, the remaining pixel data excluding the pixel data common to the first search window and the third search window are added to the pixel data of the first search window. To the distortion calculation unit. At the same time, the current coded block data supply unit adjoins the current coded block in the column direction,
Pixel data of another current coded block corresponding to a search window is supplied to the distortion calculation unit sequentially following the current coded block of the first search window based on the transfer operation of the fifth transfer control means. Further, before the distortion calculation control means completes the calculation of the distortion between the third search window and the current coded block corresponding to the third search window, the distortion search means sets the first search window and the first search window. The operation of transferring the distortion calculated with the current coding block corresponding to the window ends.

【0110】一方、前記動作モード選択手段によって第
2動作モードが選択された場合、前記サーチウィンドウ
データ供給ユニットによって、第2サーチウィンドウを
M画素分列方向にシフトした第4サーチウィンドウの範
囲の画素データで、第2サーチウィンドウと第4サーチ
ウィンドウで共通する画素データを除いた残りの画素デ
ータを、第2サーチウィンドウの画素データに続けて順
次前記ディストーション算出ユニットに供給する。同時
に、前記現符号化ブロックデータ供給ユニットは、前記
現符号化ブロックの列方向に隣接し、前記第4サーチウ
ィンドウに対応するもうひとつの現符号化ブロックの画
素データを前記第5転送制御手段の転送動作に基づいて
第2サーチウィンドウの現符号化ブロックに続けて順次
前記ディストーション算出ユニットに供給する。さら
に、前記ディストーション算出制御手段により前記第4
サーチウィンドウと第4サーチウィンドウに対応する現
符号化ブロックとのディストーションが算出が終了する
前に、前記ディストーション転送手段による前記第2サ
ーチウィンドウと第2サーチウィンドウに対応する現符
号化ブロックとで算出されたディストーションの転送動
作が終了するように構成される。
On the other hand, when the second operation mode is selected by the operation mode selection means, the search window data supply unit shifts the second search window by M pixels in the column direction in the range of the fourth search window. The remaining pixel data excluding the pixel data common to the second search window and the fourth search window is sequentially supplied to the distortion calculation unit following the pixel data of the second search window. At the same time, the current coded block data supply unit is adjacent to the current coded block in the column direction, and transmits pixel data of another current coded block corresponding to the fourth search window to the fifth transfer control means. Based on the transfer operation, the data is supplied to the distortion calculation unit sequentially following the current coded block of the second search window. Further, the distortion calculation control means controls the fourth
Before the calculation of the distortion between the search window and the current coded block corresponding to the fourth search window is completed, the calculation is performed by the distortion transfer means using the second search window and the current coded block corresponding to the second search window. The transfer operation of the distortion that has been performed is configured to end.

【0111】このため、動作モードの変更がない場合に
は、列方向に隣接する現符号化ブロックの最小ディスト
ーションおよび動きベクトルを第4転送制御手段による
1サイクルの動作毎に順次求めることができる。また、
第1動作モードにおいては、第1サーチウィンドウと第
3サーチウィンドウで共通する画素データを重複するこ
となくディストーション算出ユニットに供給することが
できるので、列方向に隣接する現符号ブロックの場合に
は、第3サーチウィンドウの画素データを始めからディ
ストーション算出ユニットに供給し直す必要がなく、処
理効率を大幅に向上することができる。
Therefore, when there is no change in the operation mode, the minimum distortion and the motion vector of the current coded block adjacent in the column direction can be sequentially obtained every one cycle of operation by the fourth transfer control means. Also,
In the first operation mode, pixel data common to the first search window and the third search window can be supplied to the distortion calculation unit without duplication, so that in the case of the current code block adjacent in the column direction, There is no need to supply the pixel data of the third search window to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0112】また、第2動作モードにおいても、第2サ
ーチウィンドウと第4サーチウィンドウで共通する画素
データを重複することなくディストーション算出ユニッ
トに供給することができるので、列方向に隣接する現符
号ブロックの場合には、第4サーチウィンドウの画素デ
ータを始めからディストーション算出ユニットに供給し
直す必要がなく、処理効率を大幅に向上することができ
る。
Also in the second operation mode, pixel data common to the second search window and the fourth search window can be supplied to the distortion calculation unit without duplication, so that the current code block adjacent in the column direction can be supplied. In the case of (1), there is no need to supply the pixel data of the fourth search window to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0113】従って、動きベクトルを探索する処理効率
を大幅に向上させることができる。
Therefore, the processing efficiency for searching for a motion vector can be greatly improved.

【0114】[0114]

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

【0115】図1に示すように、動きベクトル探索装置
は、現符号化ブロックデータ供給ユニット1000、サ
ーチウィンドウデータ供給ユニット2000、ディスト
ーション算出ユニット3000、候補ブロック特定ユニ
ット4000、信号出力ユニット5000、動作モード
選択ユニット6000から構成されている。現符号化ブ
ロックデータ供給ユニット1000は、図2(a)に示
された現画像100を部分的に構成する一つの現符号化
ブロック110の画素データを画素毎にディストーショ
ン算出ユニット3000に出力する。
As shown in FIG. 1, the motion vector search apparatus includes a current coded block data supply unit 1000, a search window data supply unit 2000, a distortion calculation unit 3000, a candidate block identification unit 4000, a signal output unit 5000, an operation mode It comprises a selection unit 6000. The current coded block data supply unit 1000 outputs pixel data of one current coded block 110 that partially constitutes the current image 100 shown in FIG. 2A to the distortion calculation unit 3000 for each pixel.

【0116】サーチウィンドウデータ供給ユニット20
00は、図2(b)に示された前符号化画像200上の
サーチウィンドウ210内の画素データを画素毎にディ
ストーション算出ユニット3000に出力する。ディス
トーション算出ユニット3000は、サーチウィンドウ
210内の複数の候補ブロック220に対して、各候補
ブロック220毎に現符号化ブロック110内の画素デ
ータと位置的に対応する各候補ブロック220内の画素
データから現符号化ブロック110内の画素データを減
算し、減算した結果をさらに正数変換することで、各画
素毎の局所ディストーションを求め、各候補ブロック2
20毎に候補ブロック220内のすべての局所ディスト
ーションを加算することにより、現画像100上の現符
号化ブロック110と前符号化画像200上の各候補ブ
ロック220との間のそれぞれのディストーションを算
出する。
Search window data supply unit 20
00 outputs pixel data in the search window 210 on the pre-encoded image 200 shown in FIG. 2B to the distortion calculation unit 3000 for each pixel. The distortion calculation unit 3000 calculates, for each of the plurality of candidate blocks 220 in the search window 210, the pixel data in each of the candidate blocks 220 corresponding to the pixel data in the current coding block 110 for each of the candidate blocks 220. The pixel data in the current encoding block 110 is subtracted, and the result of the subtraction is further converted to a positive number to obtain a local distortion for each pixel.
The respective distortion between the current coded block 110 on the current image 100 and each candidate block 220 on the previous coded image 200 is calculated by adding all the local distortions in the candidate block 220 for each 20. .

【0117】候補ブロック特定ユニット4000は、デ
ィストーション算出ユニット3000で算出された各デ
ィストーションの中から最小のディストーションを検出
し、検出された最小のディストーションが算出された候
補ブロック220の位置情報に基づいて動きベクトルを
特定する。信号出力ユニット5000は、現符号化ブロ
ックデータ供給ユニット1000、サーチウィンドウデ
ータ供給ユニット2000、ディストーション算出ユニ
ット3000および候補ブロック特定ユニット4000
の動作を制御する。
The candidate block specifying unit 4000 detects the minimum distortion from among the distortions calculated by the distortion calculation unit 3000, and moves based on the position information of the candidate block 220 for which the detected minimum distortion has been calculated. Identify the vector. The signal output unit 5000 includes a current coded block data supply unit 1000, a search window data supply unit 2000, a distortion calculation unit 3000, and a candidate block identification unit 4000.
Control the operation of.

【0118】動作モード選択ユニット6000は、現画
像100と前符号化画像200とのフレーム間距離Fd
に基づいて後述する動作モードを選択し、選択された動
作モードを表す信号をサーチウィンドウデータ供給ユニ
ット2000、ディストーション算出ユニット3000
および信号出力ユニット5000に出力する。ここで、
動作モードについて説明する。まず、現符号化ブロック
110のサイズは、任意のサイズであってよいが、本実
施例では説明を容易にするため、図2(a)に示すよう
に、現符号化ブロック110を2行2列の画素データa
(0,0),a(0,1),a(1,0),a(1,1)からなるブロックとする。
The operation mode selection unit 6000 determines an inter-frame distance Fd between the current image 100 and the previous encoded image 200.
And an operation mode to be described later is selected on the basis of the search window data supply unit 2000 and the distortion calculation unit 3000.
And to the signal output unit 5000. here,
The operation mode will be described. First, the size of the current coding block 110 may be any size. However, in this embodiment, as shown in FIG. Column pixel data a
Let it be a block consisting of (0,0), a (0,1), a (1,0), a (1,1).

【0119】次に、サーチウィンドウ210のサイズ
は、現符号化ブロック110より大きければ任意のサイ
ズでよいが、一般に、動画像においては、現画像100
と前符号化画像200との間の時間間隔が大きくなるほ
ど画像の動きも大きくなる傾向があるので、サーチウィ
ンドウ210のサイズも大きくする必要がある。このた
め、図3および図4に示すように、本実施例の動きベク
トル探索装置は、現画像100と前符号化画像200と
のフレーム間距離Fdに基づいてサイズの異なるサーチ
ウィンドウを選択し、フレーム間距離FdがFd=2の
場合には、第1サーチウィンドウ230から動きベクト
ルを探索し、フレーム間距離FdがFd=1の場合に
は、第2サーチウィンドウ240から動きベクトルを探
索するものとする。
The size of the search window 210 may be any size as long as it is larger than the current coding block 110.
Since the motion of the image tends to increase as the time interval between the image and the pre-encoded image 200 increases, the size of the search window 210 also needs to be increased. Therefore, as shown in FIGS. 3 and 4, the motion vector search device according to the present embodiment selects search windows having different sizes based on the inter-frame distance Fd between the current image 100 and the pre-encoded image 200. When the interframe distance Fd is Fd = 2, a motion vector is searched from the first search window 230. When the interframe distance Fd is Fd = 1, a motion vector is searched from the second search window 240. And

【0120】図3に示された第1サーチウィンドウ23
0は、現符号化ブロック110に対して水平・垂直方向
ともに−2〜+2画素広げた6行6列の画素データb(0,
0),b(1,0),b(2,0),b(3,0),b(4,0),b(5,0),b(0,1),b(1,
1),b(2,1),b(3,1),b(4,1),b(5,1),b(0,2),b(1,2),b(2,
2),b(3,2),b(4,2),b(5,2),b(0,3),b(1,3),b(2,3),b(3,
3),b(4,3),b(5,3),b(0,4),b(1,4),b(2,4),b(3,4),b(4,
4),b(5,4),b(0,5),b(1,5),b(2,5),b(3,5),b(4,5),b(5,
5)から構成されるものとし、この第1サーチウィンドウ
230から動きベクトルを探索する動作モードを第1動
作モードと呼ぶものとする。
The first search window 23 shown in FIG.
0 is pixel data b (0, 6) of 6 rows and 6 columns, which is expanded by −2 to +2 pixels in the horizontal and vertical directions with respect to the current coding block 110.
0), b (1,0), b (2,0), b (3,0), b (4,0), b (5,0), b (0,1), b (1,
1), b (2,1), b (3,1), b (4,1), b (5,1), b (0,2), b (1,2), b (2,
2), b (3,2), b (4,2), b (5,2), b (0,3), b (1,3), b (2,3), b (3,
3), b (4,3), b (5,3), b (0,4), b (1,4), b (2,4), b (3,4), b (4,4
4), b (5,4), b (0,5), b (1,5), b (2,5), b (3,5), b (4,5), b (5,
5), and an operation mode for searching for a motion vector from the first search window 230 is referred to as a first operation mode.

【0121】このとき、動きベクトル探索装置は、第1
サーチウィンドウ230内の9個の候補ブロックに基づ
いてディストーションを探索し、簡略的な探索を行う。
一方、図4に示された第2サーチウィンドウ240は、
現符号化ブロック110に対して水平・垂直方向ともに
−1〜+1画素広げた4行4列の画素データc(0,0),c
(1,0),c(2,0),c(3,0),c(0,1),c(1,1),c(2,1),c(3,1),c
(0,2),c(1,2),c(2,2),c(3,2),c(0,3),c(1,3),c(2,3),c
(3,3)から構成されるものとし、この第2サーチウィン
ドウ240から動きベクトルを探索する動作モードを第
2動作モードと呼ぶものとする。
At this time, the motion vector search device
A simple search is performed by searching for distortion based on the nine candidate blocks in the search window 230.
On the other hand, the second search window 240 shown in FIG.
Four rows and four columns of pixel data c (0,0), c expanded by -1 to +1 pixel in both the horizontal and vertical directions with respect to the current coding block 110
(1,0), c (2,0), c (3,0), c (0,1), c (1,1), c (2,1), c (3,1), c
(0,2), c (1,2), c (2,2), c (3,2), c (0,3), c (1,3), c (2,3), c
(3, 3), and an operation mode for searching for a motion vector from the second search window 240 is referred to as a second operation mode.

【0122】このとき、動きベクトル探索装置は、第2
サーチウィンドウ240内の9個の候補ブロックに基づ
いてディストーションを探索し、全点探索を行う。次
に、動作モード選択ユニット6000について説明す
る。図5に示すように、動作モード選択ユニット600
0は、出力端子P61,P62を有し、現画像100と
前符号化画像200とのフレーム間距離Fdに基づいて
選択すべき動作モードを表す信号SVおよび信号SHを
サーチウィンドウデータ供給ユニット2000、ディス
トーション算出ユニット3000、候補ブロック特定ユ
ニット4000および信号出力ユニット5000に出力
する。
At this time, the motion vector search device
A distortion is searched for based on the nine candidate blocks in the search window 240, and an all point search is performed. Next, the operation mode selection unit 6000 will be described. As shown in FIG. 5, the operation mode selection unit 600
0 has output terminals P61 and P62, and outputs a signal SV and a signal SH indicating an operation mode to be selected based on the inter-frame distance Fd between the current image 100 and the previous encoded image 200, by using the search window data supply unit 2000, The signal is output to the distortion calculating unit 3000, the candidate block specifying unit 4000, and the signal output unit 5000.

【0123】ここで、信号出力端子P61から出力され
る信号SVは、サーチウィンドウの垂直方向の画素サイ
ズを表し、フレーム間距離Fdが、Fd=2の場合に
は、「0」を表し、Fd=1の場合には、「1」を表
す。一方、信号出力端子P62から出力される信号SH
は、サーチウィンドウの水平方向の画素サイズを表し、
フレーム間距離Fdが、Fd=2の場合には、「0」を
表し、Fd=1の場合には、「1」を表す。
Here, the signal SV output from the signal output terminal P61 indicates the pixel size in the vertical direction of the search window. When the interframe distance Fd is Fd = 2, it indicates "0", If = 1, it represents "1". On the other hand, the signal SH output from the signal output terminal P62
Represents the horizontal pixel size of the search window,
When the inter-frame distance Fd is Fd = 2, it represents “0”, and when Fd = 1, it represents “1”.

【0124】すなわち、信号SV,SHがともに0の場
合には、第1動作モードが選択され、6行6列の画素デ
ータからなる第1サーチウィンドウ230が特定され、
信号SV,SHがともに1の場合には、第2動作モード
が選択され、4行4列の画素データからなる第2サーチ
ウィンドウ240が特定される。次に、信号出力ユニッ
ト5000について説明する。図5に示すように、信号
出力ユニット5000は、入力端子S51,S52およ
び出力端子P51〜P57を有し、入力端子S51を通
して入力された信号SVおよび入力端子S52を通して
入力された信号SHに基づいて動作モードを選択し、選
択された動作モードに対応する制御信号を出力端子P5
1〜P57から出力する。
That is, when the signals SV and SH are both 0, the first operation mode is selected, and the first search window 230 including the pixel data of 6 rows and 6 columns is specified.
When the signals SV and SH are both 1, the second operation mode is selected, and the second search window 240 including the pixel data of 4 rows and 4 columns is specified. Next, the signal output unit 5000 will be described. As shown in FIG. 5, the signal output unit 5000 has input terminals S51 and S52 and output terminals P51 to P57, and is based on the signal SV input through the input terminal S51 and the signal SH input through the input terminal S52. An operation mode is selected, and a control signal corresponding to the selected operation mode is output to the output terminal P5.
1 to P57.

【0125】以下、図6〜9に示されたタイムチャート
に基づいて信号出力ユニット5000から各ユニットに
出力されるそれぞれの信号を説明する。図6および図7
は、第1動作モードのタイムチャートであり、図8およ
び図9は、第2動作モードのタイムチャートである。出
力端子P51から出力されるクロックパルス信号CK1
は、現符号化ブロックデータ供給ユニット1000、サ
ーチウィンドウデータ供給ユニット2000およびディ
ストーション算出ユニット3000において、画素デー
タを転送する動作を制御する信号である。クロックパル
ス信号CK1は、周期の1/2のパルス幅をもつ。
The signals output from the signal output unit 5000 to each unit will be described below with reference to the time charts shown in FIGS. 6 and 7
Is a time chart of the first operation mode, and FIGS. 8 and 9 are time charts of the second operation mode. Clock pulse signal CK1 output from output terminal P51
Is a signal that controls the operation of transferring pixel data in the current coded block data supply unit 1000, search window data supply unit 2000, and distortion calculation unit 3000. The clock pulse signal CK1 has a pulse width of 周期 of the cycle.

【0126】出力端子P52から出力されるパルス信号
CK2は、ディストーション算出ユニット3000で算
出された複数のディストーションを候補ブロック特定ユ
ニット4000に転送する動作を制御するとともに、候
補ブロック特定ユニット4000で動きベクトルを特定
する動作を制御する信号である。ここで、動作モード選
択ユニット6000で第1動作モードが選択された場合
には、パルス信号CK2は、クロックパルス信号CK1
の15パルス目に同期して出力され、以後クロックパル
ス信号CK1と同じ周期、同じパルス幅で出力される。
The pulse signal CK2 output from the output terminal P52 controls the operation of transferring the plurality of distortions calculated by the distortion calculation unit 3000 to the candidate block specifying unit 4000, and the motion vector is calculated by the candidate block specifying unit 4000. This signal controls an operation to be specified. Here, when the first operation mode is selected by the operation mode selection unit 6000, the pulse signal CK2 becomes the clock pulse signal CK1.
Are output in synchronism with the 15th pulse, and are thereafter output at the same cycle and the same pulse width as the clock pulse signal CK1.

【0127】一方、動作モード選択ユニット6000で
第2動作モードが選択された場合には、パルス信号CK
2は、クロックパルス信号CK1の11パルス目に同期
して出力され、以後クロックパルス信号CK1と同じ周
期、同じパルス幅で出力される。出力端子P53から出
力されるパルス信号SUは、クロックパルス信号CK1
の4倍の周期、4倍のパルス幅をもち、パルス信号SU
は、クロックパルス信号CK1の2パルス目のダウンエ
ッジに同期してローレベルからハイレベルに立ち上がる
ように出力され、以後クロックパルス信号CK1の4パ
ルス毎に出力される。
On the other hand, when the second operation mode is selected by operation mode selection unit 6000, pulse signal CK is output.
2 is output in synchronization with the eleventh pulse of the clock pulse signal CK1, and thereafter is output with the same cycle and the same pulse width as the clock pulse signal CK1. The pulse signal SU output from the output terminal P53 is the clock pulse signal CK1
Has four times the period and four times the pulse width of the pulse signal SU.
Is output so as to rise from a low level to a high level in synchronization with the falling edge of the second pulse of the clock pulse signal CK1, and thereafter output every four pulses of the clock pulse signal CK1.

【0128】出力端子P54から出力されるパルス信号
SLは、クロックパルス信号CK1の2倍の周期、2倍
のパルス幅をもち、パルス信号SLは、初期状態がハイ
レベルであり、クロックパルス信号CK1の1パルス目
のダウンエッジに同期してハイレベルからローレベルに
ダウンするように出力され、クロックパルス信号CK1
の2パルス目のダウンエッジに同期してローレベルから
ハイレベルに立ち上がるように出力され、以後クロック
パルス信号CK1の2パルス毎に出力される。
The pulse signal SL output from the output terminal P54 has twice the period and twice the pulse width of the clock pulse signal CK1, and the pulse signal SL is initially at the high level, Are output from the high level to the low level in synchronization with the falling edge of the first pulse of
Is output so as to rise from the low level to the high level in synchronization with the down edge of the second pulse of the clock pulse signal CK1, and thereafter output every two pulses of the clock pulse signal CK1.

【0129】出力端子P55から出力されるパルス信号
CLは、クロックパルス信号CK1のパルス幅の2倍の
パルス幅をもつ。ここで、動作モード選択ユニット60
00で第1動作モードが選択された場合には、パルス信
号CLは、クロックパルス信号CK1の10パルス目の
ダウンエッジに同期して出力され、以後クロックパルス
信号CK1の4パルス毎に出力される。
The pulse signal CL output from the output terminal P55 has a pulse width twice the pulse width of the clock pulse signal CK1. Here, the operation mode selection unit 60
When the first operation mode is selected at 00, the pulse signal CL is output in synchronization with the 10th pulse down edge of the clock pulse signal CK1, and thereafter is output every four pulses of the clock pulse signal CK1. .

【0130】一方、動作モード選択ユニット6000で
第2動作モードが選択された場合には、パルス信号CL
は、クロックパルス信号CK1の6パルス目のダウンエ
ッジに同期して出力され、以後クロックパルス信号CK
1の4パルス毎に出力される。出力端子P56から出力
されるパルス信号LDは、パルス信号CLと同じ動作を
行う。
On the other hand, when the second operation mode is selected by operation mode selection unit 6000, pulse signal CL
Is output in synchronization with the falling edge of the sixth pulse of the clock pulse signal CK1.
It is output every four pulses of one. The pulse signal LD output from the output terminal P56 performs the same operation as the pulse signal CL.

【0131】出力端子P57から出力されるパルス信号
CK3は、候補ブロック特定ユニット4000において
最小ディストーションを検出するとともに、動きベクト
ルを特定する動作を制御する信号であり、クロックパル
ス信号CK1と同じパルス幅をもつ。ここで、動作モー
ド選択ユニット6000で第1動作モードが選択された
場合には、パルス信号CK3は、クロックパルス信号C
K1の18パルス目に同期して出力され、以後クロック
パルス信号CK1の4パルス毎に出力される。
The pulse signal CK3 output from the output terminal P57 is a signal for detecting the minimum distortion in the candidate block specifying unit 4000 and controlling the operation for specifying the motion vector, and has the same pulse width as the clock pulse signal CK1. Have. Here, when the first operation mode is selected by the operation mode selection unit 6000, the pulse signal CK3 becomes the clock pulse signal C
The signal is output in synchronization with the 18th pulse of K1, and thereafter is output every four pulses of the clock pulse signal CK1.

【0132】一方、動作モード選択ユニット6000で
第2動作モードが選択された場合には、パルス信号CK
3は、クロックパルス信号CK1の14パルス目に同期
して出力され、以後クロックパルス信号CK1の4パル
ス毎に出力される。次に、動きベクトル探索装置のさら
に具体的な全体構成を図10に示す。現符号化ブロック
データ供給ユニット1000は、信号出力ユニット50
00から送出された信号CK1に基づいて現符号化ブロ
ック110の画素データをディストーション算出ユニッ
ト3000に出力する。
On the other hand, when the second operation mode is selected by operation mode selection unit 6000, pulse signal CK
No. 3 is output in synchronization with the 14th pulse of the clock pulse signal CK1, and thereafter is output every 4 pulses of the clock pulse signal CK1. Next, a more specific overall configuration of the motion vector search device is shown in FIG. The current coded block data supply unit 1000 includes the signal output unit 50
The pixel data of the current encoding block 110 is output to the distortion calculation unit 3000 based on the signal CK1 transmitted from the signal 00.

【0133】ここで、動作モード選択ユニット6000
で第1動作モードが選択された場合には、図6および図
7に示すように、現符号化ブロック110の画素データ
は、a(0,1),a(0,0),a(1,0),a(1,1),a(2,1),a(2,0),a(3,
0),a(3,1),・・・の順にクロックパルス信号CK1の11
パルス目からそれぞれのパルスに同期して出力される。
Here, the operation mode selection unit 6000
When the first operation mode is selected in FIG. 6, the pixel data of the current encoding block 110 includes a (0,1), a (0,0), a (1 , 0), a (1,1), a (2,1), a (2,0), a (3,
0), a (3, 1),... In the order of 11 of the clock pulse signal CK1.
The pulse is output in synchronization with each pulse.

【0134】一方、動作モード選択ユニット6000で
第2動作モードが選択された場合には、図8および図9
に示すように、現符号化ブロック110の画素データ
は、同じ順序でクロックパルス信号CK1の7パルス目
からそれぞれのパルスに同期して出力される。サーチウ
ィンドウデータ供給ユニット2000は、動作モード選
択ユニット6000から送出された信号SV,SHに基
づいて第1サーチウィンドウ230および第2サーチウ
ィンドウ240の何れか一方のサーチウィンドウを前符
号化画像200上に特定し、特定されたサーチウィンド
ウ内の画素データを信号出力ユニット5000から送出
された信号CK1に基づいてディストーション算出ユニ
ット3000に出力する。
On the other hand, when the second operation mode is selected by operation mode selection unit 6000, FIGS.
, The pixel data of the current encoding block 110 is output in the same order in synchronization with each pulse from the seventh pulse of the clock pulse signal CK1. The search window data supply unit 2000 places one of the first search window 230 and the second search window 240 on the pre-encoded image 200 based on the signals SV and SH transmitted from the operation mode selection unit 6000. The specified pixel data in the search window is output to the distortion calculating unit 3000 based on the signal CK1 sent from the signal output unit 5000.

【0135】ここで、動作モード選択ユニット6000
で第1動作モードが選択された場合には、第1サーチウ
ィンドウ230内の画素データが、図6および図7に示
すように、クロックパルス信号CK1の1パルス毎にそ
れぞれのパルスに同期して出力端子S0,S1およびS
2から出力される。すなわち、第1サーチウィンドウ2
30の画素データは、出力端子S0からb(0,1),b(0,0),
b(1,0),b(1,1),b(2,1),b(2,0),b(3,0),b(3,1),・・・の順
に出力され、同時に、出力端子S1からb(0,3),b(0,2),
b(1,2),b(1,3),b(2,3),b(2,2),b(3,2),b(3,3),・・・の順
に出力され、同時に、出力端子S2からb(0,5),b(0,4),
b(1,4),b(1,5),b(2,5),b(2,4),b(3,4),b(3,5),・・・の順
に出力される。
Here, the operation mode selection unit 6000
When the first operation mode is selected, the pixel data in the first search window 230 is synchronized with each pulse of the clock pulse signal CK1 for each pulse as shown in FIGS. Output terminals S0, S1 and S
2 output. That is, the first search window 2
The 30 pixel data are output from the output terminal S0 to b (0,1), b (0,0),
b (1,0), b (1,1), b (2,1), b (2,0), b (3,0), b (3,1), ... At the same time, b (0,3), b (0,2),
b (1,2), b (1,3), b (2,3), b (2,2), b (3,2), b (3,3), ... At the same time, b (0,5), b (0,4),
b (1,4), b (1,5), b (2,5), b (2,4), b (3,4), b (3,5), ... .

【0136】一方、動作モード選択ユニット6000で
第2動作モードが選択された場合には、第2サーチウィ
ンドウ240内の画素データが、図8および図9に示す
ように、クロックパルス信号CK1の1パルス毎にそれ
ぞれのパルスに同期して出力端子S0およびS2から出
力される。すなわち、第2サーチウィンドウ240の画
素データは、出力端子S0からc(0,1),c(0,0),c(1,0),c
(1,1),c(2,1),c(2,0),c(3,0),c(3,1),・・・の順に出力さ
れ、同時に、出力端子S2からc(0,3),c(0,2),c(1,2),c
(1,3),c(2,3),c(2,2),c(3,2),c(3,3),・・・の順に出力さ
れる。
On the other hand, when the second operation mode is selected by operation mode selection unit 6000, as shown in FIGS. 8 and 9, pixel data in second search window 240 is changed to one of clock pulse signal CK1. Each pulse is output from the output terminals S0 and S2 in synchronization with each pulse. That is, the pixel data of the second search window 240 is output from the output terminal S0 through c (0,1), c (0,0), c (1,0), c
(1,1), c (2,1), c (2,0), c (3,0), c (3,1),..., And at the same time, c ( 0,3), c (0,2), c (1,2), c
(1,3), c (2,3), c (2,2), c (3,2), c (3,3),...

【0137】ディストーション算出ユニット3000
は、図11に示すように、2次元配列プロセッサグルー
プ3800、入力レジスタグループ3900、第1サイ
ドレジスタグループ3910、第2サイドレジスタグル
ープ3920から構成されている。2次元配列プロセッ
サグループ3800は、さらに、9個のプロセッサエレ
メントPE(0,0),PE(2,0),PE(4,0),PE(0,2),PE(2,2),PE
(4,2),PE(0,4),PE(2,4),PE(4,4)および16個の中間レ
ジスタIP(1,0),IP(3,0),IP(0,1),IP(1,1),IP(2,1),IP
(3,1),IP(4,1),IP(1,2),IP(3,2),IP(0,3),IP(1,3),IP
(2,3),IP(3,3),IP(4,3),IP(1,4),IP(3,4)から構成さ
れ、入力レジスタグループ3900は、さらに、5個の
入力レジスタIR(5,0),IR(5,1),IR(5,2),IR(5,3),IR(5,
4)から構成され、第1サイドレジスタグループ3910
は、さらに、6個の第1サイドレジスタSR(0,ー1),SR(1,
-1),SR(2,-1),SR(3,-1),SR(4,-1),SR(5,-1)から構成さ
れ、第2サイドレジスタグループ3920は、さらに、
6個の第2サイドレジスタ,SR(0,5),SR(1,5),SR(2,5),S
R(3,5),SR(4,5),SR(5, 5)から構成されている。
The distortion calculation unit 3000
As shown in FIG. 11, the device includes a two-dimensional array processor group 3800, an input register group 3900, a first side register group 3910, and a second side register group 3920. The two-dimensional array processor group 3800 further includes nine processor elements PE (0,0), PE (2,0), PE (4,0), PE (0,2), PE (2,2), PE
(4,2), PE (0,4), PE (2,4), PE (4,4) and 16 intermediate registers IP (1,0), IP (3,0), IP (0, 1), IP (1,1), IP (2,1), IP
(3,1), IP (4,1), IP (1,2), IP (3,2), IP (0,3), IP (1,3), IP
(2,3), IP (3,3), IP (4,3), IP (1,4), IP (3,4), and the input register group 3900 further comprises five input registers. IR (5,0), IR (5,1), IR (5,2), IR (5,3), IR (5,
4), the first side register group 3910
Further comprises six first side registers SR (0, −1), SR (1,
-1), SR (2, -1), SR (3, -1), SR (4, -1), SR (5, -1), and the second side register group 3920 further includes:
Six second side registers, SR (0,5), SR (1,5), SR (2,5), S
R (3,5), SR (4,5), SR (5,5).

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

【0139】各プロセッサエレメントPE(x,y)並
びに入力レジスタIR(x,y)、中間レジスタIP
(x,y)、第1サイドレジスタSR(x,y)および
第2サイドレジスタSR(x,y)の各レジスタ(x,
y)は、まず、動作モード選択ユニット6000から送
出された信号SV,SHに基づいて第1動作モードおよ
び第2動作モードの何れか一方の動作モードを選択す
る。
Each processor element PE (x, y), input register IR (x, y), intermediate register IP
(X, y), each register (x, y) of the first side register SR (x, y) and the second side register SR (x, y).
In (y), first, one of the first operation mode and the second operation mode is selected based on the signals SV and SH sent from the operation mode selection unit 6000.

【0140】次に、選択された動作モードにおいて、信
号出力ユニット5000から送出された信号CK1に基
づいてサーチウィンドウデータ供給ユニット2000か
ら出力された第1サーチウィンドウ230または第2サ
ーチウィンドウ240の画素データを入力レジスタIR
(x,y)に入力し、入力された画素データを信号出力
ユニット5000から送出された信号SV,SHおよび
信号CK1に基づいて各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)間で図11にお
ける上方向、下方向および左方向に転送する。
Next, in the selected operation mode, pixel data of first search window 230 or second search window 240 output from search window data supply unit 2000 based on signal CK1 transmitted from signal output unit 5000. To the input register IR
(X, y), and inputs the input pixel data to each processor element PE based on the signals SV, SH and the signal CK1 sent from the signal output unit 5000.
The data is transferred between (x, y) and each register (x, y) in the upward, downward, and left directions in FIG.

【0141】各プロセッサエレメントPE(x,y)
は、サーチウィンドウの画像データを一時的に記憶して
転送するとともに、現符号化ブロックデータ供給ユニッ
ト1000から出力された現符号化ブロック110の画
素データを入力し、入力された現符号化ブロック110
の画素データおよび現符号化ブロック110の画素デー
タと位置的に対応する各候補ブロックの画素データとに
基づいてディストーションを算出し、算出されたそれぞ
れのディストーションを候補ブロック特定ユニット40
00に出力する。
Each processor element PE (x, y)
Is used to temporarily store and transfer the image data of the search window, and to input the pixel data of the current coded block 110 output from the current coded block data supply unit 1000 and to input the input current coded block 110
Is calculated based on the pixel data of the current encoding block 110 and the pixel data of each candidate block corresponding to the position of the current coding block 110, and the calculated distortion is used as the candidate block specifying unit 40.
Output to 00.

【0142】各中間レジスタIP(x,y)は、サーチ
ウィンドウの画像データを一時的に記憶して転送するバ
ッファであり、第1動作モード、すなわち第1サーチウ
ィンドウの25点の候補ブロックから全点探索で動きベ
クトルを求める場合に必要となるプロセッサエレメント
PE(x,y)の代わりに設けられている。ここで、動
作モード選択ユニット6000で第1動作モードが選択
された場合には、9個のプロセッサエレメントPE
(x,y)に位置的に対応する第1サーチウィンドウ2
30の各候補ブロックから簡略的な探索方法で動きベク
トルが求められる。
Each intermediate register IP (x, y) is a buffer for temporarily storing and transferring the image data of the search window. It is provided in place of the processor element PE (x, y) necessary for obtaining a motion vector by a point search. Here, when the first operation mode is selected by the operation mode selection unit 6000, the nine processor elements PE
First search window 2 positionally corresponding to (x, y)
A motion vector is obtained from each of the 30 candidate blocks by a simple search method.

【0143】一方、動作モード選択ユニット6000で
第2動作モードが選択された場合には、これらの中間レ
ジスタIP(x,y)は無視され、9個のプロセッサエ
レメントPE(x,y)に位置的に対応する第2サーチ
ウィンドウ240の各候補ブロックから全点探索法によ
り動きベクトルが求められる。各入力レジスタIR
(x,y)は、サーチウィンドウの画素データを一時的
に記憶して転送するバッファであり、現符号化ブロック
供給データユニット1000から送出された現符号化ブ
ロック110の画素データとサーチウィンドウデータ供
給ユニット2000から送出された各候補ブロックの画
素データとが各プロセッサエレメントPE(x,y)に
おいて位置的に対応するように他のレジスタ(x,y)
とともに設けられている。
On the other hand, when the second operation mode is selected by the operation mode selection unit 6000, these intermediate registers IP (x, y) are ignored and the positions of the nine processor elements PE (x, y) are ignored. A motion vector is obtained from each candidate block of the second search window 240 corresponding to the target by the all-points search method. Each input register IR
(X, y) is a buffer for temporarily storing and transferring the pixel data of the search window, and supplies the pixel data of the current coded block 110 sent from the current coded block supply data unit 1000 and the search window data supply. Other registers (x, y) such that the pixel data of each candidate block sent from the unit 2000 corresponds in position in each processor element PE (x, y).
It is provided with.

【0144】また、入力レジスタIR(5,0)は、サ
ーチウィンドウデータ供給ユニット2000の出力端子
S0と電気的に接続され、入力レジスタIR(5,2)
は、サーチウィンドウデータ供給ユニット2000の出
力端子S1と電気的に接続され、入力レジスタIR
(5,4)は、サーチウィンドウデータ供給ユニット2
000の出力端子S1と電気的に接続される。
The input register IR (5,0) is electrically connected to the output terminal S0 of the search window data supply unit 2000, and the input register IR (5,2)
Is electrically connected to the output terminal S1 of the search window data supply unit 2000, and the input register IR
(5, 4) is the search window data supply unit 2
000 output terminal S1.

【0145】ここで、動作モード選択ユニット6000
で第1動作モードが選択された場合には、サーチウィン
ドウデータ供給ユニット2000の出力端子S0,S
1,S2から出力された画素データが、それぞれ入力レ
ジスタIR(5,0),IR(5,2)およびにIR
(5,4)に入力される。一方、動作モード選択ユニッ
ト6000で第2動作モードが選択された場合には、サ
ーチウィンドウデータ供給ユニット2000の出力端子
S0,S2から出力された画素データが、それぞれ入力
レジスタIR(5,0),IR(5,4)に入力され
る。
Here, the operation mode selection unit 6000
In the case where the first operation mode is selected, the output terminals S0 and S0 of the search window data supply unit 2000 are selected.
1 and S2 are applied to input registers IR (5,0), IR (5,2) and IR (5,2), respectively.
Input to (5, 4). On the other hand, when the second operation mode is selected by the operation mode selection unit 6000, the pixel data output from the output terminals S0 and S2 of the search window data supply unit 2000 are input to the input registers IR (5,0) and Input to IR (5,4).

【0146】各第1サイドレジスタSR(x,y)およ
び第2サイドレジスタSR(x,y)は、サーチウィン
ドウの画素データを一時的に記憶して転送するバッファ
であり、各プロセッサエレメントPE(x,y)および
レジスタ(x,y)に入力された各画素データを全体と
して図11における上下方向に転送するように設けられ
ている。
Each of the first side register SR (x, y) and the second side register SR (x, y) is a buffer for temporarily storing and transferring the pixel data of the search window, and each processor element PE ( x, y) and each pixel data input to the register (x, y) are transferred in the vertical direction in FIG. 11 as a whole.

【0147】次に、各プロセッサエレメントPE(x,
y)の基本的な端子配置および基本的なブロック図を説
明する。図12に示すように、各プロセッサエレメント
PE(x,y)は、入力端子YUi1,YUi2,YD
i1,YDi2,YHi1,YHi2,DiおよびX並
びに出力端子YUo,YDo,YHoおよびDoを有
し、さらに、図5に示された信号出力ユニット5000
の出力端子に接続された図示しない入力端子および動作
モード選択ユニット6000の出力端子P61,62に
接続された図示しない入力端子を有している。
Next, each processor element PE (x,
The basic terminal arrangement and the basic block diagram of y) will be described. As shown in FIG. 12, each processor element PE (x, y) has input terminals YUi1, YUi2, YD
i1, YDi2, YHi1, YHi2, Di and X and output terminals YUo, YDo, YHo and Do, and a signal output unit 5000 shown in FIG.
And an input terminal (not shown) connected to the output terminals P61 and 62 of the operation mode selection unit 6000.

【0148】図13に示すように、各プロセッサエレメ
ントPE(x,y)は、動作モード選択部3100、転
送方向選択部3200、ディストーション算出部330
0およびディストーション転送部3400から構成され
ている。動作モード選択部3100は、さらに、第1セ
レクタ3101、第2セレクタ3102、第3セレクタ
3103によって構成される。
As shown in FIG. 13, each processor element PE (x, y) includes an operation mode selector 3100, a transfer direction selector 3200, and a distortion calculator 330.
0 and a distortion transfer unit 3400. The operation mode selection unit 3100 further includes a first selector 3101, a second selector 3102, and a third selector 3103.

【0149】第1セレクタ3101、第2セレクタ31
02および第3セレクタ3103は、それぞれ入力端子
S,A,Bおよび出力端子Yを有する。第1セレクタ3
101および第2セレクタ3102の入力端子Sは、動
作モード選択ユニット6000の出力端子P61に電気
的に接続され、第1セレクタ3101および第2セレク
タ3102は、この入力端子Sを通して動作モード選択
ユニット6000から出力された信号SVを入力する。
第3セレクタ3103の入力端子Sは、動作モード選択
ユニット6000の出力端子P62に電気的に接続さ
れ、第3セレクタ3103は、この入力端子Sを通して
動作モード選択ユニット6000から出力された信号S
Hを入力する。
First selector 3101, second selector 31
02 and the third selector 3103 have input terminals S, A, B and an output terminal Y, respectively. First selector 3
101 and the input terminal S of the second selector 3102 are electrically connected to the output terminal P61 of the operation mode selection unit 6000. The first selector 3101 and the second selector 3102 are connected to the operation mode selection unit 6000 through the input terminal S. The output signal SV is input.
The input terminal S of the third selector 3103 is electrically connected to the output terminal P62 of the operation mode selection unit 6000, and the third selector 3103 outputs the signal S output from the operation mode selection unit 6000 through the input terminal S.
Enter H.

【0150】各セレクタは、入力端子Sを通して入力さ
れた信号SVまたは信号SHに基づいて入力端子Aおよ
び入力端子Bの何れか一方の入力端子と出力端子Yを電
気的に接続する切換器であり、入力端子Sを通して入力
された信号SVまたは信号SHが0のとき、入力端子A
と出力端子Yを電気的に接続し、入力端子Sを通して入
力された信号SVまたは信号SHが1のとき、入力端子
Bと出力端子Yを電気的に接続する。
Each selector is a switch for electrically connecting one of the input terminals A and B to the output terminal Y based on the signal SV or the signal SH input through the input terminal S. When the signal SV or the signal SH input through the input terminal S is 0, the input terminal A
And the output terminal Y is electrically connected. When the signal SV or the signal SH input through the input terminal S is 1, the input terminal B and the output terminal Y are electrically connected.

【0151】第1セレクタ3101の入力端子Aは、入
力端子YUi1を介して後述する中間レジスタIP
(x,y+1)のデ−タ出力端子YUoに電気的に接続
される。第1セレクタ3101の入力端子Bは、入力端
子YUi2を介してプロセッサエレメントPE(x,y
+2)のデ−タ出力端子YUoに電気的に接続される。
第1セレクタ3101の出力端子Yは、転送方向選択部
3200の第4セレクタ3201の入力端子Aに電気的
に接続される。
An input terminal A of the first selector 3101 is connected to an intermediate register IP described later via an input terminal YUi1.
It is electrically connected to the (x, y + 1) data output terminal YUo. The input terminal B of the first selector 3101 is connected to the processor element PE (x, y) via the input terminal YUi2.
+2) is electrically connected to the data output terminal YUo.
The output terminal Y of the first selector 3101 is electrically connected to the input terminal A of the fourth selector 3201 of the transfer direction selector 3200.

【0152】第2セレクタ3102の入力端子Aは、入
力端子YDi1を介して後述する中間レジスタIP
(x,y−1)のデ−タ出力端子YDoに電気的に接続
される。第2セレクタ3102の入力端子Bは、入力端
子YDi2を介してプロセッサエレメントPE(x,y
−2)のデ−タ出力端子YDoに電気的に接続される。
第2セレクタ3102の出力端子Yは、第4セレクタ3
201の入力端子Bに電気的に接続される。
The input terminal A of the second selector 3102 is connected to an intermediate register IP via an input terminal YDi1.
It is electrically connected to the (x, y-1) data output terminal YDo. The input terminal B of the second selector 3102 is connected to the processor element PE (x, y) via the input terminal YDi2.
-2) is electrically connected to the data output terminal YDo.
The output terminal Y of the second selector 3102 is connected to the fourth selector 3
201 is electrically connected to the input terminal B.

【0153】第3セレクタ3103の入力端子Aは、入
力端子YHi1を介して後述する中間レジスタIP(x
+1,y)のデ−タ出力端子YHoに電気的に接続され
る。第3セレクタ3103の入力端子Bは、入力端子Y
Hi2を介してプロセッサエレメントPE(x+2,
y)のデ−タ出力端子YHoに電気的に接続される。第
3セレクタ3103の出力端子Yは、第4セレクタ32
01の入力端子Cに電気的に接続される。
The input terminal A of the third selector 3103 is connected to an intermediate register IP (x
(+1, y) data output terminal YHo. The input terminal B of the third selector 3103 is the input terminal Y
Via Hi2, the processor element PE (x + 2,
y) is electrically connected to the data output terminal YHo. The output terminal Y of the third selector 3103 is connected to the fourth selector 32
01 is electrically connected to the input terminal C.

【0154】次に、転送方向選択部3200は、第4セ
レクタ3201および第1フリップフロップ3202か
ら構成される。第4セレクタ3201は、入力端子S
0,S1,A,B,Cおよび出力端子Yを有する。入力
端子S0は、信号出力ユニット5000の出力端子P5
3に電気的に接続され、入力端子S1は、信号出力ユニ
ット5000の出力端子P54に電気的に接続される。
また、入力端子Aは、第1セレクタ3101の出力端子
Yに電気的に接続され、入力端子Bは、第2セレクタ3
102の出力端子Yに電気的に接続され、入力端子C
は、第3セレクタ3103の出力端子Yに電気的に接続
され、出力端子Yは、第1フリップフロップ3202の
入力端子aに接続される。
Next, the transfer direction selecting section 3200 includes a fourth selector 3201 and a first flip-flop 3202. The fourth selector 3201 has an input terminal S
0, S1, A, B, C and an output terminal Y. The input terminal S0 is connected to the output terminal P5 of the signal output unit 5000.
3 and the input terminal S1 is electrically connected to the output terminal P54 of the signal output unit 5000.
The input terminal A is electrically connected to the output terminal Y of the first selector 3101, and the input terminal B is connected to the second selector 3101.
102 is electrically connected to the output terminal Y, and the input terminal C
Is electrically connected to the output terminal Y of the third selector 3103, and the output terminal Y is connected to the input terminal a of the first flip-flop 3202.

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

【0156】第1フリップフロップ3202は、Dフリ
ップフロップからなり、入力端子s,aおよび出力端子
bを有する。入力端子sは、信号出力ユニット5000
の出力端子P51に電気的に接続される。第1フリップ
フロップ3202は、信号出力ユニット5000から出
力されたクロックパルス信号CK1を入力端子sを通し
て入力し、入力されたクロックパルス信号CK1の1パ
ルス毎に同期して、入力端子aに入力されたデータを出
力端子bにラッチする。
The first flip-flop 3202 is composed of a D flip-flop, and has input terminals s and a and an output terminal b. The input terminal s is a signal output unit 5000
Is electrically connected to the output terminal P51. The first flip-flop 3202 inputs the clock pulse signal CK1 output from the signal output unit 5000 through the input terminal s, and is input to the input terminal a in synchronization with each pulse of the input clock pulse signal CK1. The data is latched at the output terminal b.

【0157】この入力端子aは、第4セレクタ3201
の出力端子Yに電気的に接続される。また、出力端子b
は、ディストーション算出部3300の減算器3301
の入力端子Aに電気的に接続されるとともに、出力端子
YUoを介して後述する中間レジスタIP(x,y−
1)の入力端子YUi1およびプロセッサエレメントP
E(x,y−2)の入力端子YUi2に電気的に接続さ
れ、出力端子YDoを介して後述する中間レジスタIP
(x,y+1)の入力端子YDi1およびプロセッサエ
レメントPE(x,y+2)の入力端子YDi2に電気
的に接続され、出力端子YHoを介して後述する中間レ
ジスタIP(x−1,y)の入力端子YHi1およびプ
ロセッサエレメントPE(x−2,y)の入力端子YH
i2に電気的に接続される。
The input terminal a is connected to the fourth selector 3201
Is electrically connected to the output terminal Y. Also, the output terminal b
Is the subtractor 3301 of the distortion calculator 3300
And an intermediate register IP (x, y-) to be described later via an output terminal YUo.
1) Input terminal YUi1 and processor element P
E (x, y-2) is electrically connected to an input terminal YUi2, and an intermediate register IP described later via an output terminal YDo.
An input terminal YDi1 of (x, y + 1) and an input terminal YDi2 of the processor element PE (x, y + 2), and an input terminal of an intermediate register IP (x-1, y) to be described later via an output terminal YHo. YHi1 and input terminal YH of processor element PE (x-2, y)
i2.

【0158】ディストーション算出部3300は、さら
に、減算器3301、正数変換器3302、論理積演算
器3303、加算器3304および第2フリップフロッ
プ3305から構成される。減算器3301は、入力端
子A,Bおよび出力端子Yを有する。入力端子Aは、転
送方向選択部3200の第1フリップフロップ3202
の出力端子bに電気的に接続され、入力端子Bは、入力
端子Xを介して現符号化ブロックデータ供給ユニット1
000の出力端子Rに電気的に接続される。
The distortion calculator 3300 further comprises a subtractor 3301, a positive number converter 3302, an AND operator 3303, an adder 3304, and a second flip-flop 3305. The subtractor 3301 has input terminals A and B and an output terminal Y. The input terminal A is connected to the first flip-flop 3202 of the transfer direction selection unit 3200.
Is electrically connected to an output terminal b of the current coded block data supply unit 1 via an input terminal X.
000 output terminal R.

【0159】減算器3301は、入力端子Aを通して入
力されたサーチウィンドウの画素データから入力端子B
を通して入力された現符号化ブロックの画素データを減
算して出力端子Yから出力するものである。正数変換器
3302は、入力端子および出力端子を有する。入力端
子は、減算器3301の出力端子Yに電気的に接続さ
れ、出力端子は、加算器3304の入力端子Aに電気的
に接続される。正数変換器3302は、入力端子から入
力されたデータを絶対値演算または二乗演算により正数
データに変換して出力端子から出力する。
The subtractor 3301 calculates the input terminal B from the pixel data of the search window input through the input terminal A.
And subtracts the pixel data of the current coded block input through the sub-block and outputs it from the output terminal Y. Positive number converter 3302 has an input terminal and an output terminal. The input terminal is electrically connected to the output terminal Y of the subtractor 3301, and the output terminal is electrically connected to the input terminal A of the adder 3304. The positive number converter 3302 converts data input from the input terminal into positive number data by an absolute value operation or a square operation, and outputs the data from the output terminal.

【0160】論理積演算器3303は、入力端子A,B
および出力端子Yを有する。入力端子Aは、信号出力ユ
ニット5000の出力端子P55に電気的に接続され、
入力端子Bは、第2フリップフロップ3305の出力端
子bに電気的に接続され、出力端子Yは、加算器330
4の入力端子Bに電気的に接続される。論理積演算器3
303は、入力端子Aを介して信号出力ユニット500
0から出力されたパルス信号CLを入力し、入力端子B
を介して第2フリップフロップ3305の出力端子bか
ら出力されたデータを入力し、入力されたパルス信号C
Lを反転したデータと入力端子Bから入力されたデータ
との論理積を演算し、その演算結果を出力端子Yに出力
する。ここで、信号CLが0のときには、信号CLを反
転したデータは、すべてのビットが1で表され、入力端
子Bから入力されたデータが論理積の演算結果として出
力端子Yに出力され、信号CLが1のときには、信号C
Lを反転したデータは、すべてのビットが0で表され、
そのままこのデータが論理積の演算結果として出力端子
Yに出力される。
AND operator 3303 has input terminals A and B
And an output terminal Y. The input terminal A is electrically connected to the output terminal P55 of the signal output unit 5000,
The input terminal B is electrically connected to the output terminal b of the second flip-flop 3305, and the output terminal Y is connected to the adder 330
4 is electrically connected to the input terminal B. AND operator 3
303 is a signal output unit 500 via the input terminal A.
0, the pulse signal CL output from the
, The data output from the output terminal b of the second flip-flop 3305 is input, and the input pulse signal C
The logical product of the data obtained by inverting L and the data input from the input terminal B is calculated, and the calculation result is output to the output terminal Y. Here, when the signal CL is 0, in the data obtained by inverting the signal CL, all the bits are represented by 1, and the data input from the input terminal B is output to the output terminal Y as an AND operation result. When CL is 1, the signal C
In the data obtained by inverting L, all bits are represented by 0,
This data is output to the output terminal Y as it is as the result of the AND operation.

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

【0162】第2フリップフロップ3305は、Dフリ
ップフロップからなり、入力端子s,aおよび出力端子
bを有する。入力端子sは、信号出力ユニット5000
の出力端子P51に電気的に接続され、入力端子a、は
加算器3304の出力端子Yに電気的に接続され、出力
端子bは、ディストーション転送部3400の第5セレ
クタ3401の入力端子Bに電気的に接続されるととも
に、論理積演算器3303の入力端子Bに電気的に接続
される。
The second flip-flop 3305 is formed of a D flip-flop, and has input terminals s, a and an output terminal b. The input terminal s is a signal output unit 5000
The input terminal a is electrically connected to the output terminal Y of the adder 3304, and the output terminal b is electrically connected to the input terminal B of the fifth selector 3401 of the distortion transfer unit 3400. And is electrically connected to the input terminal B of the AND operator 3303.

【0163】第2フリップフロップ3305は、信号出
力ユニット5000から送出されたクロックパルス信号
CK1のパルス毎に同期して、入力端子aに入力されて
いるデータを出力端子bにラッチする。ディストーショ
ン転送部3400は、さらに、第5セレクタ3401お
よび第3フリップフロップ3402から構成される。
The second flip-flop 3305 latches the data input to the input terminal a to the output terminal b in synchronization with each pulse of the clock pulse signal CK1 sent from the signal output unit 5000. The distortion transfer unit 3400 further includes a fifth selector 3401 and a third flip-flop 3402.

【0164】第5セレクタ3401は、入力端子S,
A,Bおよび出力端子Yを有する。入力端子Sは、信号
出力ユニット5000の出力端子P56に電気的に接続
され、入力端子Aは、入力端子Diを介してプロセッサ
エレメントPE(x+2,y)の出力端子Doに電気的
に接続される。入力端子Bは、ディストーション算出部
3300の第2フリップフロップ3302出力端子bに
電気的に接続され、出力端子Yは、第3フリップフロッ
プ3402の入力端子aに電気的に接続される。
The fifth selector 3401 has input terminals S,
A and B and an output terminal Y are provided. The input terminal S is electrically connected to the output terminal P56 of the signal output unit 5000, and the input terminal A is electrically connected to the output terminal Do of the processor element PE (x + 2, y) via the input terminal Di. . The input terminal B is electrically connected to the output terminal b of the second flip-flop 3302 of the distortion calculator 3300, and the output terminal Y is electrically connected to the input terminal a of the third flip-flop 3402.

【0165】第5セレクタ3401は、信号出力ユニッ
ト5000から出力されたパルス信号LDを入力端子S
を通して入力し、入力された信号LDに基づいて入力端
子A,Bの何れか一方の入力端子と出力端子Yを電気的
に接続する切換器であり、入力された信号LDが0のと
き、入力端子Aと出力端子Yを電気的に接続し、入力端
子Sに入力された信号LDが1のとき、入力端子Bと出
力端子Yを電気的に接続する。
The fifth selector 3401 outputs the pulse signal LD output from the signal output unit 5000 to the input terminal S.
And a switch for electrically connecting one of the input terminals A and B to the output terminal Y based on the input signal LD. When the input signal LD is 0, the input is switched. The terminal A is electrically connected to the output terminal Y. When the signal LD input to the input terminal S is 1, the input terminal B is electrically connected to the output terminal Y.

【0166】第3フリップフロップ3402は、Dフリ
ップフロップからなり、入力端子s,aおよび出力端子
bを有する。入力端子sは、信号出力ユニット5000
の出力端子P52に電気的に接続され、入力端子aは、
第4セレクタ3401の出力端子Yと電気的に接続さ
れ、出力端子bは、出力端子Doを介してプロセッサエ
レメントPE(x−2,y)の入力端子Diに電気的に
接続される。
The third flip-flop 3402 is formed of a D flip-flop, and has input terminals s, a and an output terminal b. The input terminal s is a signal output unit 5000
Is electrically connected to the output terminal P52 of the
The output terminal Y of the fourth selector 3401 is electrically connected, and the output terminal b is electrically connected to the input terminal Di of the processor element PE (x−2, y) via the output terminal Do.

【0167】第3フリップフロップ3402は、信号出
力ユニット5000から出力されたパルス信号CK2を
入力端子sを通して入力し、入力されたパルス信号CK
2のパルス毎に同期して、入力端子aに入力されている
データを出力端子bにラッチする。次に、プロセッサエ
レメントPE(x,y)の端子配置およびブロック図の
特殊なケースを説明する。プロセッサエレメントPE
(x,y)は、図11に示された配置位置の違いによ
り、端子配置およびブロック図が異なる。以下、その違
いを説明する。
The third flip-flop 3402 inputs the pulse signal CK2 output from the signal output unit 5000 through the input terminal s, and inputs the input pulse signal CK.
The data input to the input terminal a is latched to the output terminal b in synchronization with every two pulses. Next, the terminal arrangement of the processor element PE (x, y) and a special case of the block diagram will be described. Processor element PE
(X, y) differs in terminal arrangement and block diagram depending on the arrangement position shown in FIG. Hereinafter, the difference will be described.

【0168】まず、後述する入力レジスタIR(5,
y)に隣接した各プロセッサエレメントPE(4,y)
の端子配置は、図12示されたプロセッサエレメントP
E(x,y)の端子配置からYHi2を除いたものであ
る。また、各プロセッサエレメントPE(4,y)のブ
ロック図は、図13に示されたプロセッサエレメント
(x,y)のブロック図から動作モード選択部3100
の第3セレクタ3103を除いたものである。
First, an input register IR (5, described later)
each processor element PE (4, y) adjacent to y)
Are arranged in the processor element P shown in FIG.
This is obtained by removing YHi2 from the terminal arrangement of E (x, y). The block diagram of each processor element PE (4, y) is based on the block diagram of the processor element (x, y) shown in FIG.
The third selector 3103 is omitted.

【0169】ここで、転送方向選択部3200の第4セ
レクタ3201の入力端子Cは、入力端子YHi1を介
して同行の入力レジスタIR(5,y)の出力端子YH
oに電気的に接続される。次に、後述する第1サイドレ
ジスタSR(x,−1)に面した各プロセッサエレメン
トPE(x,0)の端子配置は、図12に示されたプロ
セッサエレメントPE(x,y)の端子配置からYDi
2を除いたものである。また、各プロセッサエレメント
PE(x,0)ブロック図は、図13に示されたプロセ
ッサエレメントPE(x,y)のブロック図から動作モ
ード選択部3100の第2セレクタ3102を除いたも
のである。
Here, the input terminal C of the fourth selector 3201 of the transfer direction selector 3200 is connected to the output terminal YH of the input register IR (5, y) in the same row via the input terminal YHi1.
o is electrically connected. Next, the terminal arrangement of each processor element PE (x, 0) facing the first side register SR (x, -1) described later is the terminal arrangement of the processor element PE (x, y) shown in FIG. From YDi
2 is excluded. The block diagram of each processor element PE (x, 0) is obtained by removing the second selector 3102 of the operation mode selection unit 3100 from the block diagram of the processor element PE (x, y) shown in FIG.

【0170】ここで、転送方向選択部3200の第4セ
レクタ3201の入力端子Bは、入力端子YDi1を介
して同列の第1サイドレジスタSR(x,−1)の出力
端子YDoに電気的に接続される。出力端子YUoは、
同列の第1サイドレジスタSR(x,−1)の入力端子
YUi1に電気的に接続される。次に、後述する第2サ
イドレジスタSR(x,5)に面した各プロセッサエレ
メントPE(x,4)の端子配置は、図12に示された
プロセッサエレメントPE(x,y)の端子配置からY
Ui2を除いたものである。また、各プロセッサエレメ
ントPE(x,4)のブロック図は、図13に示された
プロセッサエレメントPE(x,y)のブロック図から
動作モード選択部3100の第1セレクタ3101を除
いたものである。
Here, the input terminal B of the fourth selector 3201 of the transfer direction selector 3200 is electrically connected to the output terminal YDo of the first side register SR (x, -1) in the same column via the input terminal YDi1. Is done. The output terminal YUo is
It is electrically connected to the input terminal YUi1 of the first side register SR (x, -1) in the same column. Next, the terminal arrangement of each processor element PE (x, 4) facing the second side register SR (x, 5) described later is based on the terminal arrangement of the processor element PE (x, y) shown in FIG. Y
Ui2 is excluded. The block diagram of each processor element PE (x, 4) is obtained by removing the first selector 3101 of the operation mode selection unit 3100 from the block diagram of the processor element PE (x, y) shown in FIG. .

【0171】ここで、転送方向選択部3200の第4セ
レクタ3201の入力端子Aは、入力端子YUi1を介
して同列の第2サイドレジスタSR(x,5)の出力端
子YUoに電気的に接続される。出力端子YDoは、同
列の第2サイドレジスタSR(x,5)の入力端子YD
i1に電気的に接続される。さらに、プロセッサエレメ
ントPE(0,0),PE(0,2),PE(0,4)
の出力端子YHoは、後述する最小ディストーション検
出部4000の入力端子D0,D1,D2にそれぞれ電
気的に接続される。
Here, the input terminal A of the fourth selector 3201 of the transfer direction selector 3200 is electrically connected to the output terminal YUo of the second side register SR (x, 5) in the same column via the input terminal YUi1. You. The output terminal YDo is connected to the input terminal YD of the second side register SR (x, 5) in the same column.
It is electrically connected to i1. Further, the processor elements PE (0,0), PE (0,2), PE (0,4)
Are electrically connected to input terminals D0, D1, and D2 of a minimum distortion detection unit 4000 described later.

【0172】次に、中間レジスタIP(x,y)の基本
的な端子配置およびブロック図を説明する。図14に示
すように、各中間レジスタIP(x,y)は、入力端子
YUi1,YUi2,YDi1,YDi2,YHi1お
よびYHi2並びに出力端子YUo,YDoおよびYH
oを有し、さらに、図5に示された信号出力ユニット5
000の出力端子に接続された図示しない入力端子およ
び動作モード選択ユニット6000の出力端子P61,
62に接続された図示しない入力端子を有している。
Next, the basic terminal arrangement and block diagram of the intermediate register IP (x, y) will be described. As shown in FIG. 14, each intermediate register IP (x, y) has input terminals YUi1, YUi2, YDi1, YDi2, YHi1 and YHi2 and output terminals YUo, YDo and YH.
o and the signal output unit 5 shown in FIG.
000, and an output terminal P61 of the operation mode selection unit 6000.
62 has an input terminal (not shown) connected thereto.

【0173】図15に示すように、各中間レジスタIP
(x,y)は、動作モード選択部3110および転送方
向選択部3210から構成されている。動作モード選択
部3110は、さらに、第1セレクタ3111、第2セ
レクタ3112、第3セレクタ3113によって構成さ
れる。第1セレクタ3111、第2セレクタ3112お
よび第3セレクタ3113は、それぞれ入力端子S,
A,Bおよび出力端子Yを有する。第1セレクタ311
1および第2セレクタ3112の入力端子Sは、動作モ
ード選択ユニット6000の出力端子P61に電気的に
接続され、第1セレクタ3111および第2セレクタ3
112は、この入力端子Sを通して動作モード選択ユニ
ット6000から出力された信号SVを入力する。第3
セレクタ3113の入力端子Sは、動作モード選択ユニ
ット6000の出力端子P62に電気的に接続され、第
3セレクタ3113は、この入力端子Sを通して動作モ
ード選択ユニット6000から出力され信号SHを入力
する。
As shown in FIG. 15, each intermediate register IP
(X, y) includes an operation mode selection unit 3110 and a transfer direction selection unit 3210. The operation mode selection unit 3110 further includes a first selector 3111, a second selector 3112, and a third selector 3113. The first selector 3111, the second selector 3112, and the third selector 3113 have input terminals S,
A and B and an output terminal Y are provided. First selector 311
The input terminals S of the first and second selectors 3112 are electrically connected to the output terminal P61 of the operation mode selection unit 6000, and the first selector 3111 and the second selector 3112
112 inputs the signal SV output from the operation mode selection unit 6000 through this input terminal S. Third
The input terminal S of the selector 3113 is electrically connected to the output terminal P62 of the operation mode selection unit 6000, and the third selector 3113 receives the signal SH output from the operation mode selection unit 6000 through the input terminal S.

【0174】各セレクタは、入力端子Sを通して入力さ
れた信号SVまたは信号SHに基づいて入力端子Aおよ
び入力端子Bの何れか一方の入力端子と出力端子Yを電
気的に接続する切換器であり、入力端子Sを通して入力
された信号SVまたは信号SHが0のとき、入力端子A
と出力端子Yを電気的に接続し、入力端子Sを通して入
力された信号SVまたは信号SHが1のとき、入力端子
Bと出力端子Yを電気的に接続する。
Each selector is a switch for electrically connecting one of the input terminals A and B to the output terminal Y based on the signal SV or the signal SH input through the input terminal S. When the signal SV or the signal SH input through the input terminal S is 0, the input terminal A
And the output terminal Y is electrically connected. When the signal SV or the signal SH input through the input terminal S is 1, the input terminal B and the output terminal Y are electrically connected.

【0175】第1セレクタ3111の入力端子Aは、入
力端子YUi1を介してプロセッサエレメントPE
(x,y+1)または中間レジスタIP(x,y+1)
のデ−タ出力端子YUoに電気的に接続される。第1セ
レクタ3111の入力端子Bは、入力端子YUi2を介
してプロセッサエレメントPE(x,y+2)または中
間レジスタIP(x,y+2)のデ−タ出力端子YUo
に電気的に接続される。第1セレクタ3111の出力端
子Yは、転送方向選択部3210の第4セレクタ321
1の入力端子Aに電気的に接続される。
The input terminal A of the first selector 3111 is connected to the processor element PE via the input terminal YUi1.
(X, y + 1) or intermediate register IP (x, y + 1)
Is electrically connected to the data output terminal YUo. The input terminal B of the first selector 3111 is connected to the data output terminal YUo of the processor element PE (x, y + 2) or the intermediate register IP (x, y + 2) via the input terminal YUi2.
Is electrically connected to The output terminal Y of the first selector 3111 is connected to the fourth selector 321 of the transfer direction selector 3210.
1 is electrically connected to one input terminal A.

【0176】第2セレクタ3112の入力端子Aは、入
力端子YDi1を介してプロセッサエレメントPE
(x,y−1)または中間レジスタIP(x,y−1)
のデ−タ出力端子YDoに電気的に接続される。第2セ
レクタ3102の入力端子Bは、入力端子YDi2を介
してプロセッサエレメントPE(x,y−2)または中
間レジスタIP(x,y−2)のデ−タ出力端子YDo
に電気的に接続される。第2セレクタ3102の出力端
子Yは、第4セレクタ3211の入力端子Bに電気的に
接続される。
The input terminal A of the second selector 3112 is connected to the processor element PE via the input terminal YDi1.
(X, y-1) or intermediate register IP (x, y-1)
Is electrically connected to the data output terminal YDo. The input terminal B of the second selector 3102 is connected to the data output terminal YDo of the processor element PE (x, y-2) or the intermediate register IP (x, y-2) via the input terminal YDi2.
Is electrically connected to The output terminal Y of the second selector 3102 is electrically connected to the input terminal B of the fourth selector 3211.

【0177】第3セレクタ3113の入力端子Aは、入
力端子YHi1を介してプロセッサエレメントPE(x
+1,y)または中間レジスタIP(x+1,y)のデ
−タ出力端子YHoに電気的に接続される。第3セレク
タ3113の入力端子Bは、入力端子YHi2を介して
プロセッサエレメントPE(x+2,y)または中間レ
ジスタIP(x+2,y)のデ−タ出力端子YHoに電
気的に接続される。第3セレクタ3113の出力端子Y
は、第4セレクタ3211の入力端子Cに電気的に接続
される。
The input terminal A of the third selector 3113 is connected to the processor element PE (x
+1, y) or the data output terminal YHo of the intermediate register IP (x + 1, y). The input terminal B of the third selector 3113 is electrically connected to the processor element PE (x + 2, y) or the data output terminal YHo of the intermediate register IP (x + 2, y) via the input terminal YHi2. Output terminal Y of third selector 3113
Are electrically connected to the input terminal C of the fourth selector 3211.

【0178】次に、転送方向選択部3210は、第4セ
レクタ3211および第1フリップフロップ3212か
ら構成される。第4セレクタ3211は、入力端子S
0,S1,A,B,Cおよび出力端子Yを有する。入力
端子S0は、信号出力ユニット5000の出力端子P5
3に電気的に接続され、入力端子S1は、信号出力ユニ
ット5000の出力端子P54に電気的に接続される。
また、入力端子Aは、第1セレクタ3111の出力端子
Yに電気的に接続され、入力端子Bは、第2セレクタ3
112の出力端子Yに電気的に接続され、入力端子C
は、第3セレクタ3113の出力端子Yに電気的に接続
され、出力端子Yは、第1フリップフロップ3212の
入力端子aに接続される。
Next, the transfer direction selector 3210 is composed of a fourth selector 3211 and a first flip-flop 3212. The fourth selector 3211 has an input terminal S
0, S1, A, B, C and an output terminal Y. The input terminal S0 is connected to the output terminal P5 of the signal output unit 5000.
3 and the input terminal S1 is electrically connected to the output terminal P54 of the signal output unit 5000.
The input terminal A is electrically connected to the output terminal Y of the first selector 3111, and the input terminal B is connected to the second selector 3111.
112 is electrically connected to the output terminal Y and the input terminal C
Is electrically connected to the output terminal Y of the third selector 3113, and the output terminal Y is connected to the input terminal a of the first flip-flop 3212.

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

【0180】第1フリップフロップ3212は、Dフリ
ップフロップからなり、入力端子s,aおよび出力端子
bを有する。入力端子sは、信号出力ユニット5000
の出力端子P51に電気的に接続される。第1フリップ
フロップ3212は、信号出力ユニット5000から出
力されたクロックパルス信号CK1を入力端子sを通し
て入力し、入力されたクロックパルス信号CK1の1パ
ルス毎に同期して、入力端子aに入力されたデータを出
力端子bにラッチする。
The first flip-flop 3212 is composed of a D flip-flop and has input terminals s, a and an output terminal b. The input terminal s is a signal output unit 5000
Is electrically connected to the output terminal P51. The first flip-flop 3212 inputs the clock pulse signal CK1 output from the signal output unit 5000 through the input terminal s, and is input to the input terminal a in synchronization with each pulse of the input clock pulse signal CK1. The data is latched at the output terminal b.

【0181】各中間レジスタIP(x,y)もプロセッ
サエレメントPE(x,y)と同様に図11に示された
配置位置の違いにより、端子配置およびブロック図が異
なる。以下、その違いを説明する。各中間レジスタIP
(1,y)および 各中間レジスタIP(3,y)の端
子配置は、図14に示された中間レジスタIP(x,
y)の端子配置からYHi2を除いたものである。ま
た、各中間レジスタIP(1,y)および 各中間レジ
スタIP(3,y)のブロック図は、図15に示された
中間レジスタIP(x,y)のブロック図から動作モー
ド選択部3110の第3セレクタ3113を除いたもの
である。
Each of the intermediate registers IP (x, y) differs from the processor element PE (x, y) in the terminal arrangement and the block diagram depending on the arrangement position shown in FIG. Hereinafter, the difference will be described. Each intermediate register IP
The terminal arrangement of (1, y) and each intermediate register IP (3, y) is as shown in FIG.
This is obtained by removing YHi2 from the terminal arrangement of y). The block diagram of each intermediate register IP (1, y) and each intermediate register IP (3, y) is based on the block diagram of the intermediate register IP (x, y) shown in FIG. The third selector 3113 is excluded.

【0182】ここで、転送方向選択部3210の第4セ
レクタ3211の入力端子Cは、入力端子YHi1を介
して同行のプロセッサエレメントPE(x+1,y)、
中間レジスタIP(x+1,y)または入力レジスタI
R(x+1,y)の出力端子YHoに電気的に接続され
る。出力端子YHoは、同行のプロセッサエレメントP
E(x−1,y)または中間レジスタIP(x−1,
y)の入力端子YHi1に電気的に接続される。
Here, the input terminal C of the fourth selector 3211 of the transfer direction selector 3210 is connected to the processor element PE (x + 1, y) in the same row via the input terminal YHi1.
Intermediate register IP (x + 1, y) or input register I
It is electrically connected to the output terminal YHo of R (x + 1, y). The output terminal YHo is connected to the processor element P
E (x-1, y) or the intermediate register IP (x-1,
y) is electrically connected to the input terminal YHi1.

【0183】次に、各中間レジスタIP(x,1)およ
び各中間レジスタIP(X,3)の端子配置は、図14
に示された中間レジスタIP(x,y)の端子配置から
YUi2およびYDi2を除いたものである。また、各
中間レジスタIP(x,1)および各中間レジスタIP
(X,3)のブロック図は、図15に示された中間レジ
スタIP(x,y)のブロック図から動作モード選択部
3110の第1セレクタ3111および第2セレクタ3
112を除いたものである。
Next, the terminal arrangement of each intermediate register IP (x, 1) and each intermediate register IP (X, 3) is shown in FIG.
Are obtained by removing YUi2 and YDi2 from the terminal arrangement of the intermediate register IP (x, y) shown in FIG. Each intermediate register IP (x, 1) and each intermediate register IP (x, 1)
The block diagram of (X, 3) is based on the block diagram of the intermediate register IP (x, y) shown in FIG.
112 is excluded.

【0184】ここで、転送方向選択部3210の第4セ
レクタの3211入力端子Aは、入力端子YUi1を介
して同列のプロセッサエレメントPE(x,y+1)ま
たは中間レジスタIP(x,y+1)の出力端子YUo
に電気的に接続される。出力端子YUoは、同列のプロ
セッサエレメントPE(x,y−1)または中間レジス
タIP(x,y−1)の入力端子YUi1に電気的に接
続される。第4セレクタ3211の入力端子Bは、入力
端子YDi1を介して同列のプロセッサエレメントPE
(x,y−1)または中間レジスタIP(x,y−1)
の出力端子YDoに電気的に接続される。出力端子YD
oは、同列のプロセッサエレメントPE(x,y+1)
または中間レジスタIP(x,y+1)の入力端子YD
i1に電気的に接続される。
Here, the input terminal 3211 of the fourth selector of the transfer direction selector 3210 is connected to the output terminal of the processor element PE (x, y + 1) or the intermediate register IP (x, y + 1) of the same column via the input terminal YUi1. YUo
Is electrically connected to The output terminal YUo is electrically connected to the input terminal YUi1 of the same processor element PE (x, y-1) or the intermediate register IP (x, y-1). The input terminal B of the fourth selector 3211 is connected to the processor element PE in the same row through the input terminal YDi1.
(X, y-1) or intermediate register IP (x, y-1)
Is electrically connected to the output terminal YDo. Output terminal YD
o is the same processor element PE (x, y + 1)
Alternatively, the input terminal YD of the intermediate register IP (x, y + 1)
It is electrically connected to i1.

【0185】さらに、中間レジスタIP(0,1)およ
び中間レジスタIP(0,3)の場合には、図15に示
された出力端子YHoがない。次に、各入力レジスタI
R(x,y)の端子配置およびブロック図を説明する。
まず、図16に示すように、入力レジスタIR(5,
0)および入力レジスタIR(5,4)は、入力端子Y
Hi1並びに出力端子YUo,YDoおよびYHoを有
し、さらに、図5に示された信号出力ユニット5000
の出力端子に接続された図示しない入力端子を有してい
る。
Further, in the case of the intermediate register IP (0,1) and the intermediate register IP (0,3), there is no output terminal YHo shown in FIG. Next, each input register I
The terminal arrangement and block diagram of R (x, y) will be described.
First, as shown in FIG. 16, the input registers IR (5,
0) and the input register IR (5, 4)
Hi1 and output terminals YUo, YDo and YHo, and a signal output unit 5000 shown in FIG.
Has an input terminal (not shown) connected to the output terminal.

【0186】また、図17に示すように、入力レジスタ
IR(5,0)および入力レジスタIR(5,4)は、
第1フリップフロップ3222によって構成されてい
る。第1フリップフロップ3222は、Dフリップフロ
ップからなり、入力端子s,aおよび出力端子bを有す
る。入力端子sは、信号出力ユニット5000の出力端
子P51に電気的に接続される。第1フリップフロップ
3222は、信号出力ユニット5000から出力された
クロックパルス信号CK1を入力端子sを通して入力
し、入力されたクロックパルス信号CK1の1パルス毎
に同期して、入力端子aに入力されたデータを出力端子
bにラッチする。
As shown in FIG. 17, input register IR (5,0) and input register IR (5,4)
It is constituted by a first flip-flop 3222. The first flip-flop 3222 includes a D flip-flop and has input terminals s and a and an output terminal b. The input terminal s is electrically connected to the output terminal P51 of the signal output unit 5000. The first flip-flop 3222 inputs the clock pulse signal CK1 output from the signal output unit 5000 through the input terminal s, and is input to the input terminal a in synchronization with each pulse of the input clock pulse signal CK1. The data is latched at the output terminal b.

【0187】ここで、入力レジスタIR(5,0)の第
1フリップフロップ3222の入力端子aは、入力端子
YHi1を介してサーチウィンドウデータ供給ユニット
2000の出力端子S0に電気的に接続される。出力端
子YUoは、第1サイドレジスタSR(5,−1)の入
力端子YUi1に電気的に接続される。出力端子YDo
は、入力レジスタIR(5,1)の入力端子YDi1お
よび入力レジスタIR(5,2)の入力端子YDi2に
電気的に接続される。出力端子YHoは、プロセッサエ
レメントPE(4,0)の入力端子YHi1に電気的に
接続される。
Here, the input terminal a of the first flip-flop 3222 of the input register IR (5,0) is electrically connected to the output terminal S0 of the search window data supply unit 2000 via the input terminal YHi1. Output terminal YUo is electrically connected to input terminal YUi1 of first side register SR (5, -1). Output terminal YDo
Is electrically connected to the input terminal YDi1 of the input register IR (5, 1) and the input terminal YDi2 of the input register IR (5, 2). Output terminal YHo is electrically connected to input terminal YHi1 of processor element PE (4,0).

【0188】また、入力レジスタIR(5,4)の第1
フリップフロップ3222の入力端子aは、入力端子Y
Hi1を介してサーチウィンドウブロックデータ供給ユ
ニット2000の出力端子S2に電気的に接続される。
出力端子YUoは、入力レジスタIR(5,3)の入力
端子YUi1および入力レジスタIR(5,2)の入力
端子YUi2に電気的に接続される。出力端子YDo
は、第2サイドレジスタSR(5,5)の入力端子YD
i1に電気的に接続される。出力端子YHoは、プロセ
ッサエレメントPE(4,4)の入力端子YHi1に電
気的に接続される。
Further, the first of the input registers IR (5, 4)
The input terminal a of the flip-flop 3222 is connected to the input terminal Y
It is electrically connected to the output terminal S2 of the search window block data supply unit 2000 via Hi1.
Output terminal YUo is electrically connected to input terminal YUi1 of input register IR (5, 3) and input terminal YUi2 of input register IR (5, 2). Output terminal YDo
Is the input terminal YD of the second side register SR (5, 5).
It is electrically connected to i1. The output terminal YHo is electrically connected to the input terminal YHi1 of the processor element PE (4, 4).

【0189】次に、図18に示すように、入力レジスタ
IR(5,1)および入力レジスタIR(5,3)は、
入力端子YUi1,YDi1および出力端子YHoを有
し、さらに、図5に示された信号出力ユニット5000
の出力端子に接続された図示しない入力端子を有してい
る。また、図19に示すように、入力レジスタIR
(5,1)および入力レジスタIR(5,3)は、転送
方向選択部3230によって構成され、転送方向選択部
3230は、さらに、第4セレクタ3231および第1
フリップフロップ3232から構成される。
Next, as shown in FIG. 18, the input registers IR (5, 1) and IR (5, 3)
It has input terminals YUi1, YDi1 and output terminal YHo, and further has a signal output unit 5000 shown in FIG.
Has an input terminal (not shown) connected to the output terminal. Further, as shown in FIG.
(5, 1) and the input register IR (5, 3) are configured by a transfer direction selection unit 3230. The transfer direction selection unit 3230 further includes a fourth selector 3231 and a first selector 3231.
It comprises a flip-flop 3232.

【0190】第4セレクタ3231は、入力端子S,
A,Bおよび出力端子Yを有する。入力端子Sは、信号
出力ユニット5000の出力端子P54に電気的に接続
される。入力端子Aは、入力端子YUi1を通して入力
レジスタIR(5,y+1)の出力端子YUoに電気的
に接続され、入力端子Bは、入力端子YDi1を通して
入力レジスタIR(5,y−1)の出力端子YDoに電
気的に接続される。出力端子Yは、第1フリップフロッ
プ3232の入力端子aに電気的に接続される。
The fourth selector 3231 has an input terminal S,
A and B and an output terminal Y are provided. Input terminal S is electrically connected to output terminal P54 of signal output unit 5000. The input terminal A is electrically connected to the output terminal YUo of the input register IR (5, y + 1) through the input terminal YUi1, and the input terminal B is the output terminal of the input register IR (5, y-1) through the input terminal YDi1. It is electrically connected to YDo. The output terminal Y is electrically connected to the input terminal a of the first flip-flop 3232.

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

【0192】第1フリップフロップ3232は、Dフリ
ップフロップからなり、入力端子s,aおよび出力端子
bを有する。入力端子sは、信号出力ユニット5000
の出力端子P51に電気的に接続される。入力端子a
は、第4セレクタ3231の出力端子Yに電気的に接続
される。出力端子bは、出力端子YHoを介して同行の
中間レジスタIP(4、y)の入力端子YHi1に電気
的に接続される。
The first flip-flop 3232 is formed of a D flip-flop and has input terminals s, a and an output terminal b. The input terminal s is a signal output unit 5000
Is electrically connected to the output terminal P51. Input terminal a
Are electrically connected to the output terminal Y of the fourth selector 3231. The output terminal b is electrically connected to the input terminal YHi1 of the intermediate register IP (4, y) in the same row via the output terminal YHo.

【0193】第1フリップフロップ3232は、信号出
力ユニット5000から出力されたクロックパルス信号
CK1を入力端子sを通して入力し、入力されたクロッ
クパルス信号CK1の1パルス毎に同期して、入力端子
aに入力されたデータを出力端子bにラッチする。次
に、図20に示すように、入力レジスタIR(5,2)
は、入力端子YUi1,YUi2,YDi1,YDi
2,YHi1および出力端子YUo,YDo,YHoを
有し、さらに、図5に示された信号出力ユニット500
0の出力端子に接続された図示しない入力端子および動
作モード選択ユニット6000の出力端子P61,62
に接続された図示しない入力端子を有している。
The first flip-flop 3232 inputs the clock pulse signal CK1 output from the signal output unit 5000 through the input terminal s, and synchronizes with the input terminal a for each pulse of the input clock pulse signal CK1. The input data is latched at the output terminal b. Next, as shown in FIG. 20, the input register IR (5, 2)
Are input terminals YUi1, YUi2, YDi1, YDi
2, YHi1, and output terminals YUo, YDo, YHo, and further, a signal output unit 500 shown in FIG.
0 and output terminals P61, 62 of the operation mode selection unit 6000, which are connected to the output terminal
Has an input terminal (not shown) connected thereto.

【0194】また、図21に示すように、入力レジスタ
IR(5,2)は、動作モード選択部3120および転
送方向選択部3240から構成されている。動作モード
選択部3120は、さらに、第1セレクタ3121およ
び第2セレクタ3122によって構成される。第1セレ
クタ3121および第2セレクタ3122は、それぞれ
入力端子S,A,Bおよび出力端子Yを有し、それぞれ
の入力端子Sは、動作モード選択ユニット6000の出
力端子P61に電気的に接続される。
As shown in FIG. 21, the input register IR (5, 2) includes an operation mode selection unit 3120 and a transfer direction selection unit 3240. The operation mode selection unit 3120 further includes a first selector 3121 and a second selector 3122. The first selector 3121 and the second selector 3122 have input terminals S, A, B and an output terminal Y, respectively, and each input terminal S is electrically connected to the output terminal P61 of the operation mode selection unit 6000. .

【0195】第1セレクタ3111および第2セレクタ
3112は、動作モード選択ユニット6000から出力
された信号SVを入力端子Sを通して入力し、入力され
た信号SVまたは信号SHに基づいて入力端子Aおよび
入力端子Bの何れか一方の入力端子と出力端子Yを電気
的に接続する切換器であり、入力端子Sを通して入力さ
れた信号SVが0のとき、入力端子Aと出力端子Yを電
気的に接続し、信号SVが1のとき、入力端子Bと出力
端子Yを電気的に接続する。
The first selector 3111 and the second selector 3112 receive the signal SV output from the operation mode selection unit 6000 through the input terminal S, and based on the input signal SV or signal SH, input terminal A and input terminal A. B is a switch for electrically connecting any one of the input terminals B and the output terminal Y. When the signal SV input through the input terminal S is 0, the input terminal A is electrically connected to the output terminal Y. When the signal SV is 1, the input terminal B and the output terminal Y are electrically connected.

【0196】第1セレクタ3121の入力端子Aは、入
力端子YUi1を通して入力レジスタIR(5,3)出
力端子YUoに電気的に接続される。入力端子Bは、入
力端子YUi2を介して入力レジスタIR(5,4)の
出力端子YUoに電気的に接続される。出力端子Yは、
転送方向選択部3240の第4セレクタ3241の入力
端子Aに電気的に接続される。
The input terminal A of the first selector 3121 is electrically connected to the input register IR (5,3) output terminal YUo through the input terminal YUi1. The input terminal B is electrically connected to the output terminal YUo of the input register IR (5, 4) via the input terminal YUi2. The output terminal Y is
The transfer direction selection unit 3240 is electrically connected to the input terminal A of the fourth selector 3241.

【0197】第2セレクタ3122の入力端子Aは、入
力端子YDi1を介して入力レジスタIR(5,1)の
出力端子YDoに電気的に接続される。入力端子Bは、
入力端子YDi2を介して入力レジスタIR(5,0)
の出力端子YDoに電気的に接続される。出力端子Y
は、第4セレクタ3241の入力端子Bに電気的に接続
される。
The input terminal A of the second selector 3122 is electrically connected to the output terminal YDo of the input register IR (5, 1) via the input terminal YDi1. The input terminal B is
Input register IR (5,0) via input terminal YDi2
Is electrically connected to the output terminal YDo. Output terminal Y
Are electrically connected to the input terminal B of the fourth selector 3241.

【0198】次に、転送方向選択部3210は、第4セ
レクタ3241および第1フリップフロップ3242か
ら構成される。第4セレクタ3241は、入力端子S
0,S1,A,B,Cおよび出力端子Yを有する。入力
端子S0は、信号出力ユニット5000の出力端子P5
3に電気的に接続され、入力端子S1は、信号出力ユニ
ット5000の出力端子P54に電気的に接続される。
また、入力端子Aは、第1セレクタ3121の出力端子
Yに電気的に接続され、入力端子Bは、第2セレクタ3
122の出力端子Yに電気的に接続される。入力端子C
は、入力端子YHi1を介してサーチウィンドウデータ
供給ユニット2000の出力端子S1に電気的に接続さ
れる。出力端子Yは、第1フリップフロップ3242の
入力端子aに接続される。
Next, the transfer direction selector 3210 is composed of a fourth selector 3241 and a first flip-flop 3242. The fourth selector 3241 has an input terminal S
0, S1, A, B, C and an output terminal Y. The input terminal S0 is connected to the output terminal P5 of the signal output unit 5000.
3 and the input terminal S1 is electrically connected to the output terminal P54 of the signal output unit 5000.
The input terminal A is electrically connected to the output terminal Y of the first selector 3121, and the input terminal B is connected to the second selector 3121.
122 is electrically connected to the output terminal Y. Input terminal C
Is electrically connected to the output terminal S1 of the search window data supply unit 2000 via the input terminal YHi1. The output terminal Y is connected to the input terminal a of the first flip-flop 3242.

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

【0200】第1フリップフロップ3242は、Dフリ
ップフロップからなり、入力端子s,aおよび出力端子
bを有する。入力端子sは、信号出力ユニット5000
の出力端子P51に電気的に接続される。第1フリップ
フロップ3212は、信号出力ユニット5000から出
力されたクロックパルス信号CK1を入力端子sを通し
て入力し、入力されたクロックパルス信号CK1の1パ
ルス毎に同期して、入力端子aに入力されたデータを出
力端子bにラッチする。
The first flip-flop 3242 is formed of a D flip-flop and has input terminals s, a and an output terminal b. The input terminal s is a signal output unit 5000
Is electrically connected to the output terminal P51. The first flip-flop 3212 inputs the clock pulse signal CK1 output from the signal output unit 5000 through the input terminal s, and is input to the input terminal a in synchronization with each pulse of the input clock pulse signal CK1. The data is latched at the output terminal b.

【0201】入力端子aは、第4セレクタ3241の出
力端子と電気的に接続される。入力端子bは、出力端子
YUoを介して入力レジスタIR(5,1)の入力端子
YUi1に電気的に接続され、出力端子YDoを介して
入力レジスタIR(5、3)の入力端子YDi1に電気
的に接続され、出力端子YHoを介してプロセッサエレ
メントPE(4,2)の入力端子YHi1に電気的に接
続される。
The input terminal a is electrically connected to the output terminal of the fourth selector 3241. The input terminal b is electrically connected to the input terminal YUi1 of the input register IR (5, 1) via the output terminal YUo, and electrically connected to the input terminal YDi1 of the input register IR (5, 3) via the output terminal YDo. And is electrically connected to the input terminal YHi1 of the processor element PE (4, 2) via the output terminal YHo.

【0202】次に、各第1サイドレジスタSR(x,−
1)の基本的な端子配置およびブロック図を説明する。
図22に示すように、各第1サイドレジスタSR(x,
−1)は、入力端子YUi1,YHi1,YHi2およ
び出力端子YDo,YHoを有し、さらに、図5に示さ
れた信号出力ユニット5000の出力端子に接続された
図示しない入力端子および動作モード選択ユニット60
00の出力端子P62に接続された図示しない入力端子
を有している。
Next, each first side register SR (x,-
The basic terminal arrangement and block diagram of 1) will be described.
As shown in FIG. 22, each first side register SR (x,
-1) has input terminals YUi1, YHi1, YHi2 and output terminals YDo, YHo, and further has an input terminal (not shown) connected to the output terminal of the signal output unit 5000 shown in FIG. 60
It has an input terminal (not shown) connected to the 00 output terminal P62.

【0203】また、図23に示すように、各第1サイド
レジスタSR(x,−1)は、動作モード選択部313
0および転送方向選択部3250から構成されている。
動作モード選択部3130は、第3セレクタ3133に
よって構成される。第3セレクタ3133は、入力端子
S,A,Bおよび出力端子Yを有する。入力端子Sは、
動作モード選択ユニット6000の出力端子P62に電
気的に接続される。
As shown in FIG. 23, each first side register SR (x, -1) includes an operation mode selection section 313
0 and a transfer direction selection unit 3250.
The operation mode selection unit 3130 includes a third selector 3133. The third selector 3133 has input terminals S, A, B and an output terminal Y. The input terminal S is
It is electrically connected to the output terminal P62 of the operation mode selection unit 6000.

【0204】第3セレクタ3133は、入力端子Sを通
して動作モード選択ユニット6000から出力され信号
SHを入力し、入力された信号SHに基づいて入力端子
Aおよび入力端子Bの何れか一方の入力端子と出力端子
Yを電気的に接続する切換器であり、信号SHが0のと
き、入力端子Aと出力端子Yを電気的に接続し、信号S
Hが1のとき、入力端子Bと出力端子Yを電気的に接続
する。
The third selector 3133 receives the signal SH output from the operation mode selection unit 6000 through the input terminal S, and receives one of the input terminals A and B based on the input signal SH. A switch for electrically connecting the output terminal Y. When the signal SH is 0, the input terminal A is electrically connected to the output terminal Y,
When H is 1, the input terminal B and the output terminal Y are electrically connected.

【0205】第3セレクタ3113の入力端子Aは、入
力端子YHi1を介して第1サイドレジスタSR(x+
1,y)の出力端子YHoに電気的に接続される。入力
端子Bは、入力端子YHi2を介して第1サイドレジス
タSR(x+2,y)出力端子YHoに電気的に接続さ
れる。出力端子Yは、第4セレクタ3251の入力端子
Cに電気的に接続される。
The input terminal A of the third selector 3113 is connected via the input terminal YHi1 to the first side register SR (x +
1, y) is electrically connected to the output terminal YHo. The input terminal B is electrically connected to the first side register SR (x + 2, y) output terminal YHo via the input terminal YHi2. The output terminal Y is electrically connected to the input terminal C of the fourth selector 3251.

【0206】次に、転送方向選択部3250は、第4セ
レクタ3251および第1フリップフロップ3252か
ら構成される。第4セレクタ3251は、入力端子S,
A,Bおよび出力端子Yを有する。入力端子Sは、信号
出力ユニット5000の出力端子P54に電気的に接続
される。入力端子Aは、入力端子YUi1を介してプロ
セッサエレメントPE(x,0)または中間レジスタI
P(x,0)の出力端子YUoに電気的に接続される。
入力端子Bは、第3セレクタ3133の出力端子Yに電
気的に接続される。出力端子Yは、第1フリップフロッ
プ3252の入力端子aに接続される。
Next, the transfer direction selection unit 3250 includes a fourth selector 3251 and a first flip-flop 3252. The fourth selector 3251 has an input terminal S,
A and B and an output terminal Y are provided. Input terminal S is electrically connected to output terminal P54 of signal output unit 5000. The input terminal A is connected to the processor element PE (x, 0) or the intermediate register I via the input terminal YUi1.
It is electrically connected to the output terminal YUo of P (x, 0).
The input terminal B is electrically connected to the output terminal Y of the third selector 3133. The output terminal Y is connected to the input terminal a of the first flip-flop 3252.

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

【0208】第1フリップフロップ3252は、Dフリ
ップフロップからなり、入力端子s,aおよび出力端子
bを有する。入力端子sは、信号出力ユニット5000
の出力端子P51に電気的に接続される。第1フリップ
フロップ3212は、信号出力ユニット5000から出
力されたクロックパルス信号CK1を入力端子sを通し
て入力し、入力されたクロックパルス信号CK1の1パ
ルス毎に同期して、入力端子aに入力されたデータを出
力端子bにラッチする。
The first flip-flop 3252 comprises a D flip-flop and has input terminals s, a and an output terminal b. The input terminal s is a signal output unit 5000
Is electrically connected to the output terminal P51. The first flip-flop 3212 inputs the clock pulse signal CK1 output from the signal output unit 5000 through the input terminal s, and is input to the input terminal a in synchronization with each pulse of the input clock pulse signal CK1. The data is latched at the output terminal b.

【0209】第1フリップフロップの出力端子bは、出
力端子YDoを介して同列のプロセッサエレメントPE
(x,0)または中間レジスタIP(x,0)の入力端
子YDi1と電気的に接続され、出力端子YHoを介し
て第1サイドレジスタSR(x−1,−1)の入力端子
YHi1および第1サイドレジスタSR(x−2,−
1)の入力端子YHi2に電気的に接続される。
The output terminal b of the first flip-flop is connected to the processor element PE in the same column through the output terminal YDo.
(X, 0) or the input terminal YDi1 of the intermediate register IP (x, 0), and the input terminal YHi1 of the first side register SR (x-1, -1) and the input terminal YHi1 of the first side register SR (x-1, -1) via the output terminal YHo. 1-side register SR (x-2,-
1) is electrically connected to the input terminal YHi2.

【0210】各第1サイドレジスタSR(x,−1)も
プロセッサエレメントPE(x,y)と同様に図11に
示された配置位置の違いにより、端子配置およびブロッ
ク図が異なる。以下、その違いを説明する。まず、第1
サイドレジスタSR(0,−1)は、図22に示された
出力端子YHoをもたない。
Each of the first side registers SR (x, -1) has a different terminal arrangement and block diagram due to the difference in the arrangement position shown in FIG. 11, similarly to the processor element PE (x, y). Hereinafter, the difference will be described. First, the first
The side register SR (0, -1) does not have the output terminal YHo shown in FIG.

【0211】次に、第1サイドレジスタSR(1,−
1)およびSR(3,−1)は、図22に示された入力
端子YHi2をもたない。また、第1サイドレジスタS
R(1,−1)およびSR(3,−1)のブロック図
は、図23に示された動作モード選択部3130をもた
ない。ここで、転送方向選択部3250の第4セレクタ
3251の入力端子Bは、入力端子YHi1を介して第
1サイドレジスタSR(x+1,−1)の出力端子YH
oに電気的に接続される。出力端子YHoは、第1サイ
ドレジスタSR(x−1,−1)の入力端子YHi1に
電気的に接続される。
Next, the first side register SR (1,-
1) and SR (3, -1) do not have the input terminal YHi2 shown in FIG. Also, the first side register S
The block diagram of R (1, -1) and SR (3, -1) does not have the operation mode selection unit 3130 shown in FIG. Here, the input terminal B of the fourth selector 3251 of the transfer direction selector 3250 is connected to the output terminal YH of the first side register SR (x + 1, -1) via the input terminal YHi1.
o is electrically connected. The output terminal YHo is electrically connected to the input terminal YHi1 of the first side register SR (x-1, -1).

【0212】次に、第1サイドレジスタSR(5,−
1)は、図22に示された入力端子YHi1,YHi2
をもたない。また、第1サイドレジスタ SR(5,−
1)は、第1フリップフロップ3252によって構成さ
れ、入力端子aは、YUi1を介して入力レジスタIR
(5,0)の出力端子YUoに電気的に接続される。次
に、各第2サイドレジスタSR(x,5)の基本的な端
子配置およびブロック図を説明する。図24に示すよう
に、各第2サイドレジスタSR(x,5)は、入力端子
YDi1,YHi1,YHi2および出力端子YUo,
YHoを有し、さらに、図5に示された信号出力ユニッ
ト5000の出力端子に接続された図示しない入力端子
および動作モード選択ユニット6000の出力端子P6
2に接続された図示しない入力端子を有している。
Next, the first side register SR (5,-
1) are input terminals YHi1, YHi2 shown in FIG.
Have no. Also, the first side register SR (5,-
1) is constituted by a first flip-flop 3252, and an input terminal a is connected to an input register IR via YUi1.
(5, 0) is electrically connected to the output terminal YUo. Next, a basic terminal arrangement and a block diagram of each second side register SR (x, 5) will be described. As shown in FIG. 24, each second side register SR (x, 5) has input terminals YDi1, YHi1, YHi2 and output terminals YUo,
5, and an input terminal (not shown) connected to the output terminal of the signal output unit 5000 shown in FIG. 5 and the output terminal P6 of the operation mode selection unit 6000.
2 connected to an input terminal (not shown).

【0213】また、図25に示すように、各第2サイド
レジスタSR(x,5)は、動作モード選択部3140
および転送方向選択部3260から構成されている。動
作モード選択部3140は、第3セレクタ3143によ
って構成される。第3セレクタ3143は、入力端子
S,A,Bおよび出力端子Yを有する。入力端子Sは、
動作モード選択ユニット6000の出力端子P62に電
気的に接続される。
As shown in FIG. 25, each second side register SR (x, 5) includes an operation mode selection unit 3140
And a transfer direction selection unit 3260. The operation mode selection unit 3140 includes a third selector 3143. The third selector 3143 has input terminals S, A, B and an output terminal Y. The input terminal S is
It is electrically connected to the output terminal P62 of the operation mode selection unit 6000.

【0214】第3セレクタ3143は、入力端子Sを通
して動作モード選択ユニット6000から出力され信号
SHを入力し、入力された信号SHに基づいて入力端子
Aおよび入力端子Bの何れか一方の入力端子と出力端子
Yを電気的に接続する切換器であり、信号SHが0のと
き、入力端子Aと出力端子Yを電気的に接続し、信号S
Hが1のとき、入力端子Bと出力端子Yを電気的に接続
する。
The third selector 3143 receives the signal SH output from the operation mode selection unit 6000 through the input terminal S, and receives one of the input terminals A and B based on the input signal SH. A switch for electrically connecting the output terminal Y. When the signal SH is 0, the input terminal A is electrically connected to the output terminal Y,
When H is 1, the input terminal B and the output terminal Y are electrically connected.

【0215】第3セレクタ3143の入力端子Aは、入
力端子YHi1を介して第2サイドレジスタSR(x+
1,y)の出力端子YHoに電気的に接続される。入力
端子Bは、入力端子YHi2を介して第2サイドレジス
タSR(x+2,y)出力端子YHoに電気的に接続さ
れる。出力端子Yは、第4セレクタ3261の入力端子
Cに電気的に接続される。
The input terminal A of the third selector 3143 is connected to the second side register SR (x +
1, y) is electrically connected to the output terminal YHo. The input terminal B is electrically connected to the second side register SR (x + 2, y) output terminal YHo via the input terminal YHi2. The output terminal Y is electrically connected to the input terminal C of the fourth selector 3261.

【0216】次に、転送方向選択部3260は、第4セ
レクタ3261および第1フリップフロップ3262か
ら構成される。第4セレクタ3261は、入力端子S,
A,Bおよび出力端子Yを有する。入力端子Sは、信号
出力ユニット5000の出力端子P54に電気的に接続
される。入力端子Aは、入力端子YDi1を介してプロ
セッサエレメントPE(x,4)または中間レジスタI
P(x,4)の出力端子YDoに電気的に接続される。
入力端子Bは、第3セレクタ3143の出力端子Yに電
気的に接続される。出力端子Yは、第1フリップフロッ
プ3262の入力端子aに接続される。
Next, the transfer direction selecting section 3260 includes a fourth selector 3261 and a first flip-flop 3262. The fourth selector 3261 includes an input terminal S,
A and B and an output terminal Y are provided. Input terminal S is electrically connected to output terminal P54 of signal output unit 5000. The input terminal A is connected to the processor element PE (x, 4) or the intermediate register I via the input terminal YDi1.
It is electrically connected to the output terminal YDo of P (x, 4).
The input terminal B is electrically connected to the output terminal Y of the third selector 3143. The output terminal Y is connected to the input terminal a of the first flip-flop 3262.

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

【0218】第1フリップフロップ3262は、Dフリ
ップフロップからなり、入力端子s,aおよび出力端子
bを有する。入力端子sは、信号出力ユニット5000
の出力端子P51に電気的に接続される。第1フリップ
フロップ3262は、信号出力ユニット5000から出
力されたクロックパルス信号CK1を入力端子sを通し
て入力し、入力されたクロックパルス信号CK1の1パ
ルス毎に同期して、入力端子aに入力されたデータを出
力端子bにラッチする。
The first flip-flop 3262 is formed of a D flip-flop and has input terminals s, a and an output terminal b. The input terminal s is a signal output unit 5000
Is electrically connected to the output terminal P51. The first flip-flop 3262 inputs the clock pulse signal CK1 output from the signal output unit 5000 through the input terminal s, and is input to the input terminal a in synchronization with each pulse of the input clock pulse signal CK1. The data is latched at the output terminal b.

【0219】第1フリップフロップの出力端子bは、出
力端子YUoを介して同列のプロセッサエレメントPE
(x,4)または中間レジスタIP(x,4)の入力端
子YDi1と電気的に接続され、出力端子YHoを介し
て第2サイドレジスタSR(x−1,5)の入力端子Y
Hi1および第2サイドレジスタSR(x−2,5)の
入力端子YHi2に電気的に接続される。
The output terminal b of the first flip-flop is connected to the processor element PE in the same column through the output terminal YUo.
(X, 4) or the input terminal YDi1 of the intermediate register IP (x, 4), and the input terminal Y of the second side register SR (x-1,5) via the output terminal YHo.
Hi1 and the input terminal YHi2 of the second side register SR (x-2,5).

【0220】次に、各第2サイドレジスタSR(x,
5)もプロセッサエレメントPE(x,y)と同様に図
11に示された配置位置の違いにより、端子配置および
ブロック図が異なる。以下、その違いを説明する。ま
ず、第2サイドレジスタSR(0,5)は、図24に示
された出力端子YHoをもたない。
Next, each second side register SR (x,
5) also differs from the processor element PE (x, y) in the terminal arrangement and the block diagram due to the difference in the arrangement position shown in FIG. Hereinafter, the difference will be described. First, the second side register SR (0,5) does not have the output terminal YHo shown in FIG.

【0221】次に、第2サイドレジスタSR(1,5)
およびSR(3,5)は、図24に示された入力端子Y
Hi2をもたない。また、第2サイドレジスタSR
(1,5)および第2サイドレジスタSR(3,5)の
ブロック図は、図25に示された動作モード選択部31
40をもたない。ここで、転送方向選択部3250の第
4セレクタ3251の入力端子Bは、入力端子YHi1
を介して第2サイドレジスタSR(x+1,5)の出力
端子YHoに電気的に接続される。出力端子YHoは、
第2サイドレジスタSR(x−1,5)の入力端子YH
i1に電気的に接続される。
Next, the second side register SR (1, 5)
And SR (3,5) are input terminals Y shown in FIG.
Does not have Hi2. Also, the second side register SR
The block diagram of (1,5) and the second side register SR (3,5) is the operation mode selection unit 31 shown in FIG.
I don't have 40. Here, the input terminal B of the fourth selector 3251 of the transfer direction selection unit 3250 is the input terminal YHi1
Is electrically connected to the output terminal YHo of the second side register SR (x + 1,5) via The output terminal YHo is
Input terminal YH of second side register SR (x-1,5)
It is electrically connected to i1.

【0222】次に、第2サイドレジスタSR(5,5)
は、図22に示された入力端子YHi1,YHi2をも
たない。また、第2サイドレジスタ SR(5,5)
は、第1フリップフロップ3262によって構成され、
入力端子aは、YDi1を介して入力レジスタIR
(5,4)の出力端子YDoに電気的に接続される。次
に、候補ブロック特定ユニット4000のブロック図を
説明する。図26に示すように、候補ブロック特定ユニ
ット4000は、最小ディストーション検出部4100
および動きベクトル特定部4200から構成される。最
小ディストーション検出部4100は、さらに、第1比
較器4101、論理和演算器4102、第2比較器41
03、セレクタ4104、第1フリップフロップ410
5、第2フリップフロップ4106によって構成され
る。
Next, the second side register SR (5, 5)
Does not have the input terminals YHi1 and YHi2 shown in FIG. Also, the second side register SR (5, 5)
Is constituted by a first flip-flop 3262,
The input terminal a is connected to the input register IR via YDi1.
(5, 4) is electrically connected to the output terminal YDo. Next, a block diagram of the candidate block specifying unit 4000 will be described. As shown in FIG. 26, the candidate block identification unit 4000 includes a minimum distortion detection unit 4100
And a motion vector specifying unit 4200. The minimum distortion detection unit 4100 further includes a first comparator 4101, a logical sum operation unit 4102, and a second comparator 41.
03, selector 4104, first flip-flop 410
5, and the second flip-flop 4106.

【0223】第1比較器4101は、入力端子D0,D
1,D2および出力端子M,Yを有する。入力端子D0
は、プロセッサエレエントPE(0,0)の出力端子D
oに電気的に接続され、入力端子D1は、プロセッサエ
レエントPE(0,2)の出力端子Doに電気的に接続
され、入力端子D2は、プロセッサエレエントPE
(0,4)の出力端子Doに電気的に接続される。出力
端子Yは、第2比較器4103の入力端子Aおよびセレ
クタ4104の入力端子Aに電気的に接続される。出力
端子Mは、動きベクトル特定部4200の第3フリップ
フロップ4204の入力端子aに電気的に接続される。
The first comparator 4101 includes input terminals D0, D
1 and D2 and output terminals M and Y. Input terminal D0
Is the output terminal D of the processor element PE (0,0).
o, the input terminal D1 is electrically connected to the output terminal Do of the processor element PE (0, 2), and the input terminal D2 is connected to the processor element PE (0, 2).
It is electrically connected to the output terminal Do of (0, 4). The output terminal Y is electrically connected to the input terminal A of the second comparator 4103 and the input terminal A of the selector 4104. The output terminal M is electrically connected to the input terminal a of the third flip-flop 4204 of the motion vector specifying unit 4200.

【0224】第1比較器4101は、プロセッサエレエ
ントPE(0,0)、プロセッサエレエントPE(0,
2)およびプロセッサエレエントPE(0,4)のそれ
ぞれのディストーション転送部3400の第3フリップ
フロップ3402から出力端子Doを介して同時に出力
され、それぞれ入力端子D0、D1、D2を通して入力
された3つのディストーションを比較し、比較したディ
ストーションの中で最小のディストーションを出力端子
Yから出力するとともに、最小のディストーションが入
力された入力端子に対応する数値を表すデータLMVy
を出力端子Mから出力する。ここで、出力端子Mから出
力されるデータLMVyは、最小のディストーションが
入力された入力端子が入力端子D0のときには0、D1
のときには1、D2のときには2を表すデータとする。
The first comparator 4101 includes a processor element PE (0, 0) and a processor element PE (0, 0).
2) and the three flip-flops 3402 of the distortion transfer units 3400 of the processor elements PE (0, 4), which are simultaneously output via the output terminal Do and input via the input terminals D0, D1, D2, respectively. Data LMVy that compares the distortions, outputs the minimum distortion among the compared distortions from the output terminal Y, and indicates a numerical value corresponding to the input terminal to which the minimum distortion has been input.
Is output from the output terminal M. Here, the data LMVy output from the output terminal M is 0, D1 when the input terminal to which the minimum distortion is input is the input terminal D0.
In this case, the data represents 1 and in the case of D2, the data represents 2.

【0225】論理和演算器4102は、入力端子A,B
および出力端子Yを有する。入力端子Aは、信号出力ユ
ニット5000の出力端子P55に電気的に接続され、
入力端子Bは、第1フリップフロップ4105の出力端
子bに電気的に接続される。出力端子Yは、第2比較器
4103の入力端子Bおよびセレクタ4104の入力端
子Bに電気的に接続される。
The OR operation unit 4102 has input terminals A and B
And an output terminal Y. The input terminal A is electrically connected to the output terminal P55 of the signal output unit 5000,
The input terminal B is electrically connected to the output terminal b of the first flip-flop 4105. The output terminal Y is electrically connected to the input terminal B of the second comparator 4103 and the input terminal B of the selector 4104.

【0226】論理和演算器4102は、信号出力ユニッ
ト5000から送出されたパルス信号CLを入力端子A
を通して入力し、第1フリップフロップ4105から出
力されたデータを入力端子Bを通して入力し、入力され
た信号CLをビット列で表したデータと入力端子Bから
入力されたデータとの論理和を演算し、その演算結果を
出力端子Yにする。ここで、信号CLが0のときには、
信号CLに対応するデータは、すべてのビットが0で表
され、入力端子Bから入力されたデータが論理和の演算
結果として出力される。一方、信号CLが1のときに
は、信号CLに対応するデータは、すべてのビットが1
で表され、その結果、最大値が出力端子Yに出力され
る。
The OR operation unit 4102 converts the pulse signal CL sent from the signal output unit 5000 into an input terminal A
, The data output from the first flip-flop 4105 is input through the input terminal B, and the logical sum of the data representing the input signal CL in a bit string and the data input from the input terminal B is calculated. The result of the calculation is set to the output terminal Y. Here, when the signal CL is 0,
In the data corresponding to the signal CL, all the bits are represented by 0, and the data input from the input terminal B is output as a result of the OR operation. On the other hand, when the signal CL is 1, all the bits of the data corresponding to the signal CL are 1
As a result, the maximum value is output to the output terminal Y.

【0227】第2比較器4103は、入力端子A,Bお
よび出力端子Yを有する。入力端子Aは、第1比較器4
101の出力端子Yに電気的に接続され、入力端子B
は、論理和演算器4102の出力端子Yに電気的に接続
され、出力端子Yは、セレクタ4104の入力端子Sお
よび動きベクトル特定部4200の論理積演算器420
3の入力端子Aに電気的に接続される。
The second comparator 4103 has input terminals A and B and an output terminal Y. The input terminal A is connected to the first comparator 4
101 is electrically connected to the output terminal Y, and the input terminal B
Is electrically connected to the output terminal Y of the OR operation unit 4102, and the output terminal Y is connected to the input terminal S of the selector 4104 and the AND operation unit 420 of the motion vector specifying unit 4200.
3 is electrically connected to the input terminal A.

【0228】第2比較器4103は、第1比較器から送
出されたディストーションと論理和演算器4102から
送出されたデータとを比較し、入力端子Aから入力され
たディストーションが入力端子Bから入力されたデータ
以上の大きさである場合には、出力端子Yから0を表す
データMinを出力し、入力端子Aに入力されたディス
トーションが入力端子Bに入力されたデータより小さい
場合には、出力端子Yから1を表すデータMinを出力
する。
The second comparator 4103 compares the distortion transmitted from the first comparator with the data transmitted from the logical sum operation unit 4102, and the distortion inputted from the input terminal A is inputted from the input terminal B. If the size is equal to or larger than the input data, data Min representing 0 is output from the output terminal Y. If the distortion input to the input terminal A is smaller than the data input to the input terminal B, the output terminal Y outputs the data Min. Data Min representing Y from 1 is output.

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

【0230】セレクタ4104は、第2比較器4103
から送出されたデータMinが0の場合には、入力端子
Bから入力されたデータを出力端子Yから出力し、デー
タMinが1の場合には、入力端子Aからに入力された
ディストーションを出力端子Yから出力する。第1フリ
ップフロップ4105は、Dフリップフロップからな
り、入力端子s,aおよび出力端子bを有する。入力端
子sは、信号出力ユニット5000の出力端子P52に
電気的に接続され、入力端子aは、セレクタ4104の
出力端子Yに電気的に接続され、出力端子bは、論理和
演算器4102の入力端子Bおよび第2フリップフロッ
プ4106の入力端子aに電気的に接続される。
The selector 4104 has a second comparator 4103
When the data Min sent from the input terminal is 0, the data input from the input terminal B is output from the output terminal Y. When the data Min is 1, the distortion input from the input terminal A is output from the output terminal Y. Output from Y. The first flip-flop 4105 includes a D flip-flop and has input terminals s and a and an output terminal b. The input terminal s is electrically connected to the output terminal P52 of the signal output unit 5000, the input terminal a is electrically connected to the output terminal Y of the selector 4104, and the output terminal b is connected to the input of the logical sum operation unit 4102. It is electrically connected to the terminal B and the input terminal a of the second flip-flop 4106.

【0231】第1フリップフロップ4105は、信号出
力ユニット5000から送出されたパルス信号CK2の
パルス毎に同期して入力端子aに入力されているデータ
を出力端子bにラッチする。第2フリップフロップ41
06は、Dフリップフロップからなり、入力端子s,a
および出力端子bを有する。入力端子sは、信号出力ユ
ニット5000の出力端子P57に電気的に接続され、
入力端子aは、第1フリップフロップ4105の出力端
子bに電気的に接続される。
The first flip-flop 4105 latches the data input to the input terminal a to the output terminal b in synchronization with each pulse of the pulse signal CK2 sent from the signal output unit 5000. Second flip-flop 41
06 is composed of D flip-flops and has input terminals s, a
And an output terminal b. The input terminal s is electrically connected to the output terminal P57 of the signal output unit 5000,
The input terminal a is electrically connected to the output terminal b of the first flip-flop 4105.

【0232】第2フリップフロップ4106は、信号出
力ユニット5000から送出されたパルス信号CK3の
パルス毎に同期して入力端子aに入力されているデータ
を出力端子bにラッチする。次に、動きベクトル特定部
4200のブロック図説明する。図26に示すように、
動きベクトル特定部4200は、さらに、カウンタ42
01、反転器4202、論理積演算器4203、第3フ
リップフロップ4204、第4フリップフロップ420
5、第1換算テーブル4206、第2換算テーブル42
07、第5フリップフロップ4208、第6フリップフ
ロップ4209によって構成される。
The second flip-flop 4106 latches the data input to the input terminal a to the output terminal b in synchronization with each pulse of the pulse signal CK3 sent from the signal output unit 5000. Next, a block diagram of the motion vector specifying unit 4200 will be described. As shown in FIG.
The motion vector specifying unit 4200 further includes a counter 42
01, inverter 4202, AND operator 4203, third flip-flop 4204, fourth flip-flop 420
5, first conversion table 4206, second conversion table 42
07, a fifth flip-flop 4208, and a sixth flip-flop 4209.

【0233】カウンタ4201は、入力端子CL,CK
および出力端子Qnを有する。入力端子CLは、信号出
力ユニット5000の出力端子P55に電気的に接続さ
れ、入力端子CKは、信号出力ユニット5000の出力
端子P52に電気的に接続され、出力端子Qnは、第4
フリップフロップ4205の入力端子aに電気的に接続
される。
The counter 4201 has input terminals CL and CK
And an output terminal Qn. The input terminal CL is electrically connected to the output terminal P55 of the signal output unit 5000, the input terminal CK is electrically connected to the output terminal P52 of the signal output unit 5000, and the output terminal Qn is connected to the fourth terminal.
It is electrically connected to the input terminal a of the flip-flop 4205.

【0234】カウンタ4201は、信号出力ユニット5
000から送出されたパルス信号CK2のパルス毎に同
期して出力端子QnからデータCTxを初期状態から
0,1,2,・・・とカウントアップして出力するとと
もに、信号出力ユニット5000から送出されたパルス
信号CLのパルス毎に同期して出力端子Qnの信号CT
xを初期状態にリセットする。
The counter 4201 is connected to the signal output unit 5
.. Are output from the output terminal Qn in increments of 0, 1, 2,... From the initial state in synchronization with each pulse of the pulse signal CK2 transmitted from the signal output unit 5000. The signal CT of the output terminal Qn is synchronized with each pulse of the generated pulse signal CL.
Reset x to its initial state.

【0235】反転器4202は、入力端子および出力端
子を有する。入力端子は、信号出力ユニット5000の
出力端子P52に電気的に接続され、出力端子は、論理
積演算器4203の入力端子Bに電気的に接続される。
反転器4202は、信号出力ユニット5000から送出
されたパルス信号CK2が0のとき、出力端子から1を
表すデータを出力し、パルス信号CK2が1のとき、出
力端子から0を表すデータを出力する。
The inverter 4202 has an input terminal and an output terminal. The input terminal is electrically connected to the output terminal P52 of the signal output unit 5000, and the output terminal is electrically connected to the input terminal B of the AND operator 4203.
The inverter 4202 outputs data representing “1” from the output terminal when the pulse signal CK2 sent from the signal output unit 5000 is “0”, and outputs data representing “0” from the output terminal when the pulse signal CK2 is “1”. .

【0236】論理積演算器4203は、入力端子A,B
および出力端子Yを有する。入力端子Aは、最小ディス
トーション検出部4100の第2比較器4103の出力
端子Yに電気的に接続され、入力端子Bは、反転器42
02の出力端子に電気的に接続され、出力端子Yは、第
3フリップフロップの入力端子sおよび第4フリップフ
ロップの入力端子sに電気的に接続される。
The logical product operator 4203 has input terminals A and B
And an output terminal Y. The input terminal A is electrically connected to the output terminal Y of the second comparator 4103 of the minimum distortion detection unit 4100, and the input terminal B is connected to the inverter 42.
The output terminal Y is electrically connected to the input terminal s of the third flip-flop and the input terminal s of the fourth flip-flop.

【0237】論理積演算器4203は、第2比較器41
03から送出されたデータMinと反転器4202から
送出されたデータとの論理積を演算し、その演算結果を
出力端子Yを通して出力する。すなわち、第2比較器4
103から送出されたデータMinと反転器4202か
ら送出されたデータがともに1を表す場合には、出力端
子Yから1を表すデータを出力し、少なくとも一方のデ
ータが0を表す場合には、出力端子Yから0を表すデー
タを出力する。
The AND operation unit 4203 includes the second comparator 41
The logical product of the data Min sent from the data 03 and the data sent from the inverter 4202 is calculated, and the calculation result is output through the output terminal Y. That is, the second comparator 4
When both the data Min sent from 103 and the data sent from the inverter 4202 represent 1, the data representing 1 is output from the output terminal Y, and if at least one of the data represents 0, the data is outputted. Data representing 0 is output from the terminal Y.

【0238】第3フリップフロップ4204は、Dフリ
ップフロップからなり、入力端子s,aおよび出力端子
bを有する。入力端子sは、論理積演算器4203の出
力端子Yに電気的に接続され、入力端子aは、最小ディ
ストーション検出部4100の第1比較器4101の出
力端子Mに電気的に接続される。出力端子bは、第1換
算テーブル4206の入力端子aに電気的に接続され
る。
The third flip-flop 4204 is formed of a D flip-flop and has input terminals s, a and an output terminal b. The input terminal s is electrically connected to the output terminal Y of the AND operator 4203, and the input terminal a is electrically connected to the output terminal M of the first comparator 4101 of the minimum distortion detector 4100. The output terminal b is electrically connected to the input terminal a of the first conversion table 4206.

【0239】第3フリップフロップ4204は、論理積
演算器4203の出力端子Yから送出されたデータLM
Vyが0から1に変化したとき、入力端子aに入力され
ているデータを出力端子bにラッチする。第4フリップ
フロップ4205は、Dフリップフロップからなり、入
力端子s,aおよび出力端子bを有する。入力端子s
は、論理積演算器4203の出力端子Yに電気的に接続
され、入力端子aは、カウンタ4201の出力端子Qn
に電気的に接続される。出力端子bは、第2換算テーブ
ル4207の入力端子aに電気的に接続される。
The third flip-flop 4204 stores the data LM transmitted from the output terminal Y of the AND operator 4203.
When Vy changes from 0 to 1, the data input to the input terminal a is latched to the output terminal b. The fourth flip-flop 4205 is formed of a D flip-flop and has input terminals s, a and an output terminal b. Input terminal s
Is electrically connected to the output terminal Y of the AND operator 4203, and the input terminal a is connected to the output terminal Qn of the counter 4201.
Is electrically connected to The output terminal b is electrically connected to the input terminal a of the second conversion table 4207.

【0240】第4フリップフロップ4205は、論理積
演算器4203の出力端子Yから送出されたデータLM
Vyが0から1に変化したとき、入力端子aに入力され
ているデータを出力端子bにラッチする。第1換算テー
ブル4206は、入力端子および出力端子を有し、さら
に、動作モード選択ユニット6000から出力された信
号SVを入力する図示しない入力端子を有する。入力端
子は、第3フリップフロップ4204の出力端子bに電
気的に接続され、出力端子は、第5フリップフロップ4
208の入力端子aに電気的に接続される。
The fourth flip-flop 4205 stores the data LM transmitted from the output terminal Y of the AND operator 4203.
When Vy changes from 0 to 1, the data input to the input terminal a is latched to the output terminal b. First conversion table 4206 has an input terminal and an output terminal, and further has an input terminal (not shown) for receiving signal SV output from operation mode selection unit 6000. The input terminal is electrically connected to the output terminal b of the third flip-flop 4204, and the output terminal is connected to the fifth flip-flop 4204.
208 is electrically connected to the input terminal a.

【0241】第1換算テーブル4206は、第1,第2
動作モード用の2つの換算テーブルを有し、図示しない
入力端子を通して入力された信号SVに基づいて何れか
一方の換算テーブルを選択し、選択された換算テーブル
に基づいて入力端子を通して入力されたデータを垂直方
向の動きベクトルMVyを表すデータに換算して出力端
子を通して出力する。
The first conversion table 4206 contains the first and second conversion tables.
It has two conversion tables for the operation mode, selects one of the conversion tables based on the signal SV input through an input terminal (not shown), and outputs the data input through the input terminal based on the selected conversion table. Is converted into data representing a vertical motion vector MVy, and output through an output terminal.

【0242】第2換算テーブル4207は、入力端子お
よび出力端子を有し、さらに、動作モード選択ユニット
6000から出力された信号SHを入力する図示しない
入力端子を有する。入力端子は、第4フリップフロップ
4205の出力端子bに電気的に接続され、出力端子
は、第5フリップフロップ4208の入力端子aに電気
的に接続される。
[0242] The second conversion table 4207 has an input terminal and an output terminal, and further has an input terminal (not shown) for inputting the signal SH output from the operation mode selection unit 6000. The input terminal is electrically connected to the output terminal b of the fourth flip-flop 4205, and the output terminal is electrically connected to the input terminal a of the fifth flip-flop 4208.

【0243】第2換算テーブル4207は、第1,第2
動作モード用の2つの換算テーブルを有し、図示しない
入力端子を通して入力された信号SHに基づいて何れか
一方の換算テーブルの換算テーブルを選択し、選択され
た換算テーブルに基づいて入力端子aを通して入力され
たデータを水平方向の動きベクトルMVxを表すデータ
に換算して出力端子を通して出力する。
The second conversion table 4207 contains the first and second conversion tables.
It has two conversion tables for the operation mode, selects one of the conversion tables based on the signal SH input through an input terminal (not shown), and passes through the input terminal a based on the selected conversion table. The input data is converted into data representing a horizontal motion vector MVx and output through an output terminal.

【0244】第5フリップフロップ4208は、Dフリ
ップフロップからなり、入力端子s,Aおよび出力端子
bを有する。入力端子sは、信号出力ユニット5000
の出力端子P57に電気的に接続され、入力端子aは、
第1換算テーブル4206の出力端子に接続される。第
5フリップフロップ4208は、信号出力ユニット50
00から送出されたパルス信号CK3に同期して入力端
子aに入力されているデータを出力端子bにラッチす
る。
The fifth flip-flop 4208 is composed of a D flip-flop, and has input terminals s and A and an output terminal b. The input terminal s is a signal output unit 5000
Is electrically connected to the output terminal P57 of the
Connected to the output terminal of first conversion table 4206. The fifth flip-flop 4208 is connected to the signal output unit 50.
The data input to the input terminal a is latched to the output terminal b in synchronization with the pulse signal CK3 transmitted from 00.

【0245】第6フリップフロップ4209は、Dフリ
ップフロップからなり、入力端子s,aおよび出力端子
bを有する。入力端子sは、信号出力ユニット5000
の出力端子P57に電気的に接続され、入力端子aは、
第2換算テーブル4207の出力端子に接続される。第
6フリップフロップ4209は、信号出力ユニット50
00から送出されたパルス信号CK3に同期して入力端
子aに入力されているデータを出力端子bにラッチす
る。
The sixth flip-flop 4209 is composed of a D flip-flop and has input terminals s, a and an output terminal b. The input terminal s is a signal output unit 5000
Is electrically connected to the output terminal P57 of the
Connected to the output terminal of second conversion table 4207. The sixth flip-flop 4209 is connected to the signal output unit 50.
The data input to the input terminal a is latched to the output terminal b in synchronization with the pulse signal CK3 transmitted from 00.

【0246】次に、作用を説明する。始めに、動作モー
ド選択ユニット6000で第1動作モードが選択された
場合に、図6および図7に示されたタイムチャートに基
づいて動きベクトルを探索する動作を説明する。まず、
ディストーション算出ユニット3000の各プロセッサ
エレメントPE(x,y)において、プロセッサエレメ
ントPE(x,y)と位置的に対応する候補ブロックと
現符号化ブロック110とのそれぞれのディストーショ
ンを求める動作を説明する。
Next, the operation will be described. First, the operation of searching for a motion vector based on the time charts shown in FIGS. 6 and 7 when the first operation mode is selected by operation mode selection unit 6000 will be described. First,
The operation of each processor element PE (x, y) of the distortion calculation unit 3000 for obtaining the distortion of the candidate block corresponding to the processor element PE (x, y) and the current encoding block 110 will be described.

【0247】ここで、第1動作モードの場合には、各プ
ロセッサエレメントPE(x,y)の第1〜第3セレク
タ3101〜3、各中間レジスタIP(x,y)の第1
〜第3セレクタ3111〜3、入力レジスタIR(5,
2)第1および第2セレクタ3121,3122、各第
1サイドレジスタSR(x,y)の第3セレクタ313
3および各第2サイドレジスタSR(x,y)の第3セ
レクタ3143において、動作モード選択ユニット50
00から出力された信号SV,SHに基づいて入力端子
Aと出力端子Yとが接続されている。このため、各プロ
セッサエレメントPE(x,y)および各レジスタ
(x,y)は、行方向および列方向に隣接する他の各プ
ロセッサエレメントPE(x,y)および各レジスタ
(x,y)に第1サーチウィンドウの画素データを転送
する。
Here, in the case of the first operation mode, the first to third selectors 3101 to 3101 of each processor element PE (x, y) and the first selector of each intermediate register IP (x, y) are used.
To the third selectors 3111 to 3111, the input register IR (5,
2) First and second selectors 3121 and 3122, third selector 313 of each first side register SR (x, y)
3 and the third selector 3143 of each of the second side registers SR (x, y) in the operation mode selection unit 50.
The input terminal A and the output terminal Y are connected based on the signals SV and SH output from 00. Therefore, each processor element PE (x, y) and each register (x, y) are connected to each other processor element PE (x, y) and each register (x, y) adjacent in the row and column directions. The pixel data of the first search window is transferred.

【0248】また、以下に示す図28〜39は、クロッ
クパルス信号CK1およびパルス信号CK2の各パルス
の立ち上がり直後の状態を示している。また、図28〜
39は、図27に示すように、プロセッサエレメントP
E(x,y)および各レジスタ(x,y)の配線等を省
略して示す。まず、クロックパルス信号CK1の1パル
ス目に同期して、図28に示すように、画素データb
(0,1)がサーチウィンドウデータ供給ユニット20
00の出力端子S0から入力レジスタIR(5,0)に
転送され、同時に、画素データb(0,3)がサーチウ
ィンドウデータ供給ユニット2000の出力端子S1か
ら入力レジスタIR(5,2)に転送され、同時に、画
素データb(0,5)がサーチウィンドウデータ供給ユ
ニット2000の出力端子S1から入力レジスタIR
(5,4)に転送される。
FIGS. 28 to 39 show the state immediately after the rise of each pulse of the clock pulse signal CK1 and the pulse signal CK2. Also, FIG.
39 denotes a processor element P as shown in FIG.
E (x, y) and the wiring of each register (x, y) are omitted. First, in synchronization with the first pulse of the clock pulse signal CK1, as shown in FIG.
(0, 1) is the search window data supply unit 20
00 from the output terminal S0 to the input register IR (5, 0), and at the same time, the pixel data b (0, 3) from the output terminal S1 of the search window data supply unit 2000 to the input register IR (5, 2). At the same time, the pixel data b (0,5) is supplied from the output terminal S1 of the search window data supply unit 2000 to the input register IR.
Transferred to (5, 4).

【0249】このとき、各プロセッサエレメントPE
(x,y)の転送方向選択部3200の第4セレクタ3
201の出力端子Yは、入力端子Cと接続されている。
各中間レジスタIP(x,y)の転送方向選択部321
0の第4セレクタ3211の出力端子Yは、入力端子C
と接続されている。入力レジスタIR(5,1)および
入力レジスタIR(5,3)の転送方向選択部3230
の第4セレクタ3231の出力端子Yは、入力端子Bと
接続されている。入力レジスタIR(5,2)の転送方
向選択部3240の第4セレクタ3241の出力端子Y
は、入力端子Cと接続されている。第1サイドレジスタ
SR(x,−1)の転送方向選択部3250の第4セレ
クタ3251の出力端子Yは、入力端子Bと接続されて
いる。第2サイドレジスタSR(x,5)の転送方向選
択部3260の第4セレクタ3261の出力端子Yは、
入力端子Bと接続されている。
At this time, each processor element PE
The fourth selector 3 of the (x, y) transfer direction selector 3200
The output terminal Y of 201 is connected to the input terminal C.
Transfer direction selector 321 of each intermediate register IP (x, y)
0 of the fourth selector 3211 is connected to the input terminal C
Is connected to Input register IR (5,1) and transfer direction selector 3230 of input register IR (5,3)
The output terminal Y of the fourth selector 3231 is connected to the input terminal B. Output terminal Y of fourth selector 3241 of transfer direction selector 3240 of input register IR (5,2)
Are connected to the input terminal C. The output terminal Y of the fourth selector 3251 of the transfer direction selector 3250 of the first side register SR (x, -1) is connected to the input terminal B. The output terminal Y of the fourth selector 3261 of the transfer direction selector 3260 of the second side register SR (x, 5) is
Connected to input terminal B.

【0250】次に、クロックパルス信号CK1の2パル
ス目では、各プロセッサエレメントPE(x,y)の転
送方向選択部3200の第4セレクタ3201の出力端
子Yは、入力端子Bと接続されている。各中間レジスタ
IP(x,y)の転送方向選択部3210の第4セレク
タ3211の出力端子Yは、入力端子Bと接続されてい
る。入力レジスタIR(5,1)および入力レジスタI
R(5,3)の転送方向選択部3230の第4セレクタ
3231の出力端子Yは、入力端子Bと接続されてい
る。入力レジスタIR(5,2)の転送方向選択部32
40の第4セレクタ3241の出力端子Yは、入力端子
Bと接続されている。第1サイドレジスタSR(x,−
1)の転送方向選択部3250の第4セレクタ3251
の出力端子Yは、入力端子Aと接続されている。第2サ
イドレジスタSR(x,5)の転送方向選択部3260
の第4セレクタ3261の出力端子Yは、入力端子Aと
接続されている。
Next, at the second pulse of the clock pulse signal CK1, the output terminal Y of the fourth selector 3201 of the transfer direction selector 3200 of each processor element PE (x, y) is connected to the input terminal B. . The output terminal Y of the fourth selector 3211 of the transfer direction selector 3210 of each intermediate register IP (x, y) is connected to the input terminal B. Input register IR (5,1) and input register I
The output terminal Y of the fourth selector 3231 of the transfer direction selection unit 3230 for R (5, 3) is connected to the input terminal B. Transfer direction selector 32 of input register IR (5,2)
The output terminal Y of the forty fourth selector 3241 is connected to the input terminal B. The first side register SR (x,-
The fourth selector 3251 of the transfer direction selector 3250 of 1)
Is connected to the input terminal A. Transfer direction selector 3260 of second side register SR (x, 5)
The output terminal Y of the fourth selector 3261 is connected to the input terminal A.

【0251】このため、図29に示すように、画素デー
タb(0,1)、b(0,3)、b(0,5)は、それ
ぞれ入力レジスタIR(x,y)から入力レジスタIR
(x,y+1)または第2サイドレジスタ(x,y+
1)に転送され、同時に、画素データb(0,0)がサ
ーチウィンドウデータ供給ユニット2000の出力端子
S0から入力レジスタIR(5,0)に転送され、同時
に、画素データb(0,2)がサーチウィンドウデータ
供給ユニット2000の出力端子S1から入力レジスタ
IR(5,2)に転送され、同時に、画素データb
(0,4)がサーチウィンドウデータ供給ユニット20
00の出力端子S2から入力レジスタIR(5,4)に
転送される。
Therefore, as shown in FIG. 29, the pixel data b (0,1), b (0,3), b (0,5) are converted from the input register IR (x, y) to the input register IR (x, y), respectively.
(X, y + 1) or the second side register (x, y +
1), and at the same time, the pixel data b (0,0) is transferred from the output terminal S0 of the search window data supply unit 2000 to the input register IR (5,0), and at the same time, the pixel data b (0,2) Is transferred from the output terminal S1 of the search window data supply unit 2000 to the input register IR (5, 2), and at the same time, the pixel data b
(0, 4) is the search window data supply unit 20
00 from the output terminal S2 to the input register IR (5, 4).

【0252】次に、クロックパルス信号CK1の3パル
ス目では、各プロセッサエレメントPE(x,y)の転
送方向選択部3200の第4セレクタ3201の出力端
子Yは、入力端子Cと接続されている。各中間レジスタ
IP(x,y)の転送方向選択部3210の第4セレク
タ3211の出力端子Yは、入力端子Cと接続されてい
る。入力レジスタIR(5,1)および入力レジスタI
R(5,3)の転送方向選択部3230の第4セレクタ
3231の出力端子Yは、入力端子Aと接続されてい
る。入力レジスタIR(5,2)の転送方向選択部32
40の第4セレクタ3241の出力端子Yは、入力端子
Cと接続されている。第1サイドレジスタSR(x,−
1)の転送方向選択部3250の第4セレクタ3251
の出力端子Yは、入力端子Bと接続されている。第2サ
イドレジスタSR(x,5)の転送方向選択部3260
の第4セレクタ3261の出力端子Yは、入力端子Bと
接続されている。
Next, at the third pulse of the clock pulse signal CK1, the output terminal Y of the fourth selector 3201 of the transfer direction selector 3200 of each processor element PE (x, y) is connected to the input terminal C. . The output terminal Y of the fourth selector 3211 of the transfer direction selector 3210 of each intermediate register IP (x, y) is connected to the input terminal C. Input register IR (5,1) and input register I
The output terminal Y of the fourth selector 3231 of the transfer direction selector 3230 for R (5, 3) is connected to the input terminal A. Transfer direction selector 32 of input register IR (5,2)
The output terminal Y of the 40th fourth selector 3241 is connected to the input terminal C. The first side register SR (x,-
The fourth selector 3251 of the transfer direction selector 3250 of 1)
Output terminal Y is connected to the input terminal B. Transfer direction selector 3260 of second side register SR (x, 5)
The output terminal Y of the fourth selector 3261 is connected to the input terminal B.

【0253】このため、図30に示すように、各入力レ
ジスタIR(5,y)および第2サイドレジスタSR
(5,5)の画素データは、それぞれ6列目の各入力レ
ジスタIR(5,y)から5列目の同行のプロセッサエ
レメントPE(4,y)または各中間レジスタIP
(4,y)に転送され、同時に、画素データb(1,
0)がサーチウィンドウデータ供給ユニット2000の
出力端子S0から入力レジスタIR(5,0)に転送さ
れ、画素データb(1,2)がサーチウィンドウデータ
供給ユニット2000の出力端子S1から入力レジスタ
IR(5,2)に転送され、画素データb(1,4)が
サーチウィンドウデータ供給ユニット2000の出力端
子S2から入力レジスタIR(5,4)に転送される。
Therefore, as shown in FIG. 30, each input register IR (5, y) and second side register SR
The pixel data of (5, 5) is obtained from the input registers IR (5, y) in the sixth column to the processor elements PE (4, y) or the intermediate registers IP in the same row in the fifth column.
(4, y), and at the same time, pixel data b (1,
0) is transferred from the output terminal S0 of the search window data supply unit 2000 to the input register IR (5,0), and the pixel data b (1,2) is transferred from the output terminal S1 of the search window data supply unit 2000 to the input register IR (5). 5, 2), and the pixel data b (1, 4) is transferred from the output terminal S2 of the search window data supply unit 2000 to the input register IR (5, 4).

【0254】次に、クロックパルス信号CK1の4パル
ス目では、各プロセッサエレメントPE(x,y)の転
送方向選択部3200の第4セレクタ3201の出力端
子Yは、入力端子Aと接続されている。各中間レジスタ
IP(x,y)の転送方向選択部3210の第4セレク
タ3211の出力端子Yは、入力端子Aと接続されてい
る。入力レジスタIR(5,1)および入力レジスタI
R(5,3)の転送方向選択部3230の第4セレクタ
3231の出力端子Yは、入力端子Aと接続されてい
る。入力レジスタIR(5,2)の転送方向選択部32
40の第4セレクタ3241の出力端子Yは、入力端子
Aと接続されている。第1サイドレジスタSR(x,−
1)の転送方向選択部3250の第4セレクタ3251
の出力端子Yは、入力端子Aと接続されている。第2サ
イドレジスタSR(x,5)の転送方向選択部3260
の第4セレクタ3261の出力端子Yは、入力端子Aと
接続されている。
Next, at the fourth pulse of the clock pulse signal CK1, the output terminal Y of the fourth selector 3201 of the transfer direction selector 3200 of each processor element PE (x, y) is connected to the input terminal A. . The output terminal Y of the fourth selector 3211 of the transfer direction selector 3210 of each intermediate register IP (x, y) is connected to the input terminal A. Input register IR (5,1) and input register I
The output terminal Y of the fourth selector 3231 of the transfer direction selector 3230 for R (5, 3) is connected to the input terminal A. Transfer direction selector 32 of input register IR (5,2)
The output terminal Y of the fourth fourth selector 3241 is connected to the input terminal A. The first side register SR (x,-
The fourth selector 3251 of the transfer direction selector 3250 of 1)
Is connected to the input terminal A. Transfer direction selector 3260 of second side register SR (x, 5)
The output terminal Y of the fourth selector 3261 is connected to the input terminal A.

【0255】このため、図31に示すように、各プロセ
ッサエレメントPE(x,y)および各レジスタ(x,
y)の画素データは、それぞれ同列のプロセッサエレメ
ントPE(x,y−1)または各レジスタ(x,y−
1)に転送され、同時に、画素データb(1,1)がサ
ーチウィンドウデータ供給ユニット2000の出力端子
S0から入力レジスタIR(5,0)に転送され、画素
データb(1,3)がサーチウィンドウデータ供給ユニ
ット2000の出力端子S1から入力レジスタIR
(5,2)に転送され、画素データb(1,5)がサー
チウィンドウデータ供給ユニット2000の出力端子S
2から入力レジスタIR(5,4)に転送される。
For this reason, as shown in FIG. 31, each processor element PE (x, y) and each register (x, y)
The pixel data of y) is the same as the processor element PE (x, y-1) or each register (x, y-
1), and at the same time, the pixel data b (1, 1) is transferred from the output terminal S0 of the search window data supply unit 2000 to the input register IR (5, 0), and the pixel data b (1, 3) is searched. From the output terminal S1 of the window data supply unit 2000 to the input register IR
(5, 2), and the pixel data b (1, 5) is output from the output terminal S of the search window data supply unit 2000.
2 to the input register IR (5,4).

【0256】すなわち、クロックパルス信号の1パルス
毎において、各プロセッサエレメントPE(x,y)の
第4セレクタ3201の出力端子Yは、信号SU,SL
に基づいて入力端子C、入力端子B、入力端子C、入力
端子Aの順で順次切り換えられる。各中間レジスタIP
(x,y)の第4セレクタ3201の出力端子Yは、信
号SU,SLに基づいて入力端子C、入力端子B、入力
端子C、入力端子Aの順で順次切り換えられる。入力レ
ジスタIR(5,1)および入力レジスタIR(5,
3)の転送方向選択部3230の第4セレクタ3231
の出力端子Yは、信号SUに基づいて入力端子B、入力
端子B、入力端子A、入力端子Aの順で順次切り換えら
れる。入力レジスタIR(5,2)の転送方向選択部3
240の第4セレクタ3241の出力端子Yは、信号S
U,SLに基づいて入力端子C、入力端子B、入力端子
C、入力端子Aの順で順次切り換えられる。第1サイド
レジスタSR(x,−1)の転送方向選択部3250の
第4セレクタ3251の出力端子Yは、信号SLに基づ
いて入力端子C、入力端子A、入力端子C、入力端子A
の順で順次に切り換えられる。第2サイドレジスタSR
(x,5)の転送方向選択部3260の第4セレクタ3
261の出力端子Yは、信号SLに基づいて入力端子
C、入力端子A、入力端子C、入力端子Aの順で順次に
切り換えられる。
That is, for each one pulse of the clock pulse signal, the output terminal Y of the fourth selector 3201 of each processor element PE (x, y) outputs the signal SU, SL.
, The input terminal C, the input terminal B, the input terminal C, and the input terminal A are sequentially switched in this order. Each intermediate register IP
The output terminal Y of the (x, y) fourth selector 3201 is sequentially switched in the order of the input terminal C, the input terminal B, the input terminal C, and the input terminal A based on the signals SU and SL. The input register IR (5,1) and the input register IR (5,1)
The fourth selector 3231 of the transfer direction selection unit 3230 of 3)
Are sequentially switched in the order of the input terminal B, the input terminal B, the input terminal A, and the input terminal A based on the signal SU. Transfer direction selector 3 of input register IR (5,2)
The output terminal Y of the fourth selector 3241 of the 240
The input terminal C, the input terminal B, the input terminal C, and the input terminal A are sequentially switched based on U and SL. The output terminals Y of the fourth selector 3251 of the transfer direction selector 3250 of the first side register SR (x, -1) are input terminals C, A, C, and A based on the signal SL.
Are sequentially switched. Second side register SR
The fourth selector 3 of the (x, 5) transfer direction selector 3260
The output terminal Y of 261 is sequentially switched in the order of the input terminal C, the input terminal A, the input terminal C, and the input terminal A based on the signal SL.

【0257】このため、各プロセッサエレメントおよび
各レジスタに保持されたすべての画素データは、以降の
クロックパルス信号CK1のそれぞれのパルスに同期し
て、図27における左方向、下方向、左方向、上方向の
各プロセッサエレメントまたは各レジスタに順次に転送
されるとともに、同時に、第1サーチウィンドウ230
の画素データが、サーチウィンドウデータ供給ユニット
2000から入力レジスタIR(5,0),IR(5,
2),IR(5,4)に転送される。
For this reason, all the pixel data held in each processor element and each register are synchronized with the subsequent pulses of the clock pulse signal CK1, and are shifted leftward, downward, leftward, and upward in FIG. To each processor element or each register in the same direction, and at the same time, the first search window 230
Is input from the search window data supply unit 2000 to the input registers IR (5,0), IR (5,
2), transferred to IR (5, 4).

【0258】次に、クロックパルス信号CK1の11パ
ルス目では、図32に示すように、1列目の各プロセッ
サエレメントPE(x,y)および各レジスタ(x,
y)に初めて画素データb(x,y)が転送され、同時
に、現符号化ブロックデータ供給ユニット1000から
各プロセッサエレメントPE(x,y)に画素データa
(0,0)が転送される。
Next, at the eleventh pulse of the clock pulse signal CK1, as shown in FIG. 32, each processor element PE (x, y) and each register (x, y) in the first column
y) for the first time, the pixel data b (x, y) is transferred, and at the same time, the pixel data a (x, y)
(0,0) is transferred.

【0259】このとき、各プロセッサエレメントPE
(x,y)では、以下の演算処理が行われる。各プロセ
ッサエレメントPE(x,y)では、まず、画素データ
b(x,y)が動作モード選択部3100および転送方
向選択部3200の第4セレクタ3201を介して第1
フリップフロップ3202に転送され、さらに、ディス
トーション算出部3300の減算器3301の入力端子
Aに入力される。一方、画素データa(0,1)が現符
号化ブロックデータ供給ユニット1000から減算器3
301の入力端子Bに入力される。
At this time, each processor element PE
In (x, y), the following arithmetic processing is performed. In each processor element PE (x, y), first, the pixel data b (x, y) is converted to the first data via the fourth selector 3201 of the operation mode selection unit 3100 and the transfer direction selection unit 3200.
The signal is transferred to the flip-flop 3202 and further input to the input terminal A of the subtractor 3301 of the distortion calculator 3300. On the other hand, the pixel data a (0, 1) is supplied from the current coded block data supply unit 1000 to the subtracter 3.
The signal is input to an input terminal B 301.

【0260】次いで、減算器3301では、 b(x,y)−a(0,0) が算出され、さらに、正数変換器3302により正数に
変換され、加算器3304の入力端子Aに入力される。
一方、加算器3304の入力端子Bには、論理積演算器
3303の演算結果が入力されるが、論理積演算器33
03の入力端子Aに、すでにクロックパルス信号CK1
の10パルス目のダウンエッジに同期してパルス信号C
Lが立ち上り、出力端子Yから0を表すデータが出力さ
れており、加算器3304の入力端子Bに0を表すデー
タが入力されている。
Next, b (x, y) -a (0,0) is calculated in the subtractor 3301, further converted to a positive number by the positive number converter 3302, and input to the input terminal A of the adder 3304. Is done.
On the other hand, the operation result of the AND operator 3303 is input to the input terminal B of the adder 3304.
03 is already input to the input terminal A of the clock pulse signal CK1.
Pulse signal C in synchronization with the 10th pulse's down edge.
When L rises, data representing 0 is output from the output terminal Y, and data representing 0 is input to the input terminal B of the adder 3304.

【0261】次いで、加算器3304で |b(x,y)−a(0,0)| が算出され、第2フリップフロップ3305に転送され
る。次に、クロックパルス信号CK1の12パルス目で
は、図33に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)に画素データb
(x,y+1)が転送され、同時に、現符号化ブロック
データ供給ユニット1000から各プロセッサエレメン
トPE(x,y)に画素データa(0,1)が転送され
る。
Next, | b (x, y) −a (0,0) | is calculated by the adder 3304 and transferred to the second flip-flop 3305. Next, at the twelfth pulse of the clock pulse signal CK1, as shown in FIG.
(X, y) and pixel data b in each register (x, y).
(X, y + 1) is transferred, and at the same time, the pixel data a (0, 1) is transferred from the current coded block data supply unit 1000 to each processor element PE (x, y).

【0262】このとき、各プロセッサエレメントPE
(x,y)では、まず、画素データb(x,y+1)が
第1フリップフロップ3202に転送され、次いで、画
素データb(x,y+1)は、ディストーション算出部
3300の減算器3301の入力端子Aに入力される。
一方、画素データa(0,1)が現符号化ブロックデー
タ供給ユニット1000から減算器3301の入力端子
Bに入力される。
At this time, each processor element PE
In (x, y), first, the pixel data b (x, y + 1) is transferred to the first flip-flop 3202, and then the pixel data b (x, y + 1) is input to the input terminal of the subtractor 3301 of the distortion calculator 3300. A is input to A.
On the other hand, the pixel data a (0, 1) is input from the current coded block data supply unit 1000 to the input terminal B of the subtractor 3301.

【0263】次いで、減算器3301では、 b(x,y+1)−a(0,1) が算出され、さらに、正数変換器3302により正数に
変換され、加算器3304の入力端子Aに入力される。
一方、加算器3304の入力端子Bには、論理積演算器
3303の演算結果が入力されるが、論理積演算器33
03では、すでにパルス信号CKがローレベルであるた
め、第2フリップフロップに転送された |b(x,y)−a(0,0)| が入力端子Bを介して出力端子Yから出力され、次い
で、加算器3304で、 が算出され、第2フリップフロップ3305に転送され
る。
Next, the subtractor 3301 calculates b (x, y + 1) -a (0, 1), converts it to a positive number by the positive number converter 3302, and inputs the result to the input terminal A of the adder 3304. Is done.
On the other hand, the operation result of the AND operator 3303 is input to the input terminal B of the adder 3304.
In FIG. 03, since the pulse signal CK is already at the low level, the | b (x, y) −a (0, 0) | transferred to the second flip-flop is output from the output terminal Y via the input terminal B. , Then in adder 3304, Is calculated and transferred to the second flip-flop 3305.

【0264】次に、クロックパルス信号CK1の13パ
ルス目では、図34に示すように、各プロセッサエレメ
ントPE(x,y)および各レジスタ(x,y)に画素
データb(x+1,y+1)が転送され、同時に、現符
号化ブロックデータ供給ユニット1000から各プロセ
ッサエレメントPE(x,y)に画素データa(1,
1)が転送される。
Next, at the thirteenth pulse of the clock pulse signal CK1, as shown in FIG. 34, the pixel data b (x + 1, y + 1) is stored in each processor element PE (x, y) and each register (x, y). At the same time, the pixel data a (1,1) is transferred from the current coded block data supply unit 1000 to each processor element PE (x, y).
1) is transferred.

【0265】このとき、各プロセッサエレメントPE
(x,y)では、画素データb(x+1,y+1)が第
1フリップフロップ3202に転送され、画素データa
(1,1)が現符号化ブロックデータ供給ユニット10
00から減算器3301の入力端子Bに入力され、この
結果、 が算出され、第2フリップフロップ3305に転送され
る。
At this time, each processor element PE
In (x, y), the pixel data b (x + 1, y + 1) is transferred to the first flip-flop 3202, and the pixel data a
(1, 1) is the current coded block data supply unit 10
00 is input to the input terminal B of the subtractor 3301. As a result, Is calculated and transferred to the second flip-flop 3305.

【0266】次に、クロックパルス信号CK1の14パ
ルス目では、図35に示すように、各プロセッサエレメ
ントPE(x,y)および各レジスタ(x,y)に画素
データb(x+1,y)が転送され、同時に、現符号化
ブロックデータ供給ユニット1000から各プロセッサ
エレメントPE(x,y)に画素データa(1,0)が
転送される。
Next, at the 14th pulse of the clock pulse signal CK1, as shown in FIG. 35, the pixel data b (x + 1, y) is stored in each processor element PE (x, y) and each register (x, y). The pixel data a (1,0) is transferred from the current coded block data supply unit 1000 to each processor element PE (x, y) at the same time.

【0267】このとき、各プロセッサエレメントPE
(x,y)では、画素データb(x+1,y)が第1フ
リップフロップ3202に転送され、画素データa
(0,1)が現符号化ブロックデータ供給ユニット10
00から減算器3301の入力端子Bに入力され、この
結果、 が算出され、第2フリップフロップ3305に転送され
る。
At this time, each processor element PE
In (x, y), the pixel data b (x + 1, y) is transferred to the first flip-flop 3202, and the pixel data a
(0, 1) is the current coded block data supply unit 10
00 is input to the input terminal B of the subtractor 3301. As a result, Is calculated and transferred to the second flip-flop 3305.

【0268】すなわち、各プロセッサエレメントPE
(x,y)では、それぞれ、プロセッサエレメントPE
(x,y)と位置的に対応する候補ブロックおよび現符
号化ブロックの間のディストーションが求められたこと
になる。以下、各プロセッサエレメントPE(x,y)
で算出されたディストーションをDis(x,y)で表
すことにする。
That is, each processor element PE
In (x, y), the processor element PE
This means that the distortion between the candidate block and the current coded block corresponding to (x, y) is obtained. Hereinafter, each processor element PE (x, y)
Is represented by Dis (x, y).

【0269】次に、クロックパルス信号CK1の14パ
ルス目のダウンエッジでは、パルス信号LDの立ち上り
に同期して各プロセッサエレメントPE(0,0)の第
5セレクタ3401の入力端子Aと出力端子Yが電気的
に接続され、第2フリップフロップ3305に保持され
たそれぞれのDis(x,y)がディストーション転送
部3400の第3フリップフロップ3402に転送され
る。
Next, at the falling edge of the 14th pulse of the clock pulse signal CK1, the input terminal A and the output terminal Y of the fifth selector 3401 of each processor element PE (0, 0) are synchronized with the rising edge of the pulse signal LD. Are electrically connected, and each Dis (x, y) held in the second flip-flop 3305 is transferred to the third flip-flop 3402 of the distortion transfer unit 3400.

【0270】次に、クロックパルス信号CK1の15パ
ルス目では、パルス信号CK2に同期してプロセッサエ
レメントPE(0,0)の第3フリップフロップ340
2に保持されたDis(0,0)が出力端子Doを介し
て候補ブロック特定ユニット4000の第1比較器41
01の入力端子D0に転送され、同時に、プロセッサエ
レメントPE(0,2)に保持されたDis(0,2)
が、出力端子Doを介して第1比較器4101の入力端
子D1に転送され、同時に、プロセッサエレメントPE
(0,4)に保持されたDis(0,4)が、出力端子
Doを介して第1比較器4101の入力端子D2に転送
される。
Next, at the fifteenth pulse of the clock pulse signal CK1, the third flip-flop 340 of the processor element PE (0,0) is synchronized with the pulse signal CK2.
2 is output to the first comparator 41 of the candidate block specifying unit 4000 via the output terminal Do.
01, and transferred to the input terminal D0 of the processor element PE (0, 2) at the same time.
Is transferred to the input terminal D1 of the first comparator 4101 via the output terminal Do, and at the same time, the processor element PE
Dis (0, 4) held at (0, 4) is transferred to the input terminal D2 of the first comparator 4101 via the output terminal Do.

【0271】また、同時に、他のプロセッサエレメント
PE(x,y)に保持されたDis(x,y)は、同行
のプロセッサエレメントPE(x−2,y)の第3フリ
ップフロップ3402に転送される。次に、クロックパ
ルス信号CK1の16パルス目では、パルス信号CK2
に同期して、各Dis(x,y)は、列毎に同様に転送
され、クロックパルス信号CK1の17パルス目では、
すべてのDis(x,y)が候補ブロック特定ユニット
4000に転送される。
At the same time, Dis (x, y) held in another processor element PE (x, y) is transferred to the third flip-flop 3402 of the same processor element PE (x-2, y). You. Next, in the 16th pulse of the clock pulse signal CK1, the pulse signal CK2
, Each Dis (x, y) is similarly transferred for each column, and at the 17th pulse of the clock pulse signal CK1,
All Dis (x, y) are transferred to the candidate block specifying unit 4000.

【0272】次に、候補ブロック特定ユニット4000
において、ディストーション算出ユニット3000で算
出された各Dis(x,y)の中から最小ディストーシ
ョンを検出するとともに、この最小ディストーションを
もつ候補ブロックから現符号化ブロック110へ向かう
動きベクトルを求める動作を説明する。まず、クロック
パルス信号CK1の15パルス目では、最小ディストー
ション検出部4100においては、パルス信号CK2に
同期して、ディストーション算出ユニット3000で算
出されたDis(0,0),Dis(0,2)Dis
(0,4)がそれぞれ最小ディストーション検出部41
00の第1比較器4101の入力端子D0,D1,D2
に入力される。
Next, the candidate block specifying unit 4000
The operation of detecting the minimum distortion from each Dis (x, y) calculated by the distortion calculation unit 3000 and obtaining the motion vector from the candidate block having the minimum distortion toward the current coding block 110 will be described. . First, at the 15th pulse of the clock pulse signal CK1, the minimum distortion detection unit 4100 synchronizes with the pulse signal CK2 and calculates the Dis (0,0), Dis (0,2) Dis calculated by the distortion calculation unit 3000.
(0, 4) are the minimum distortion detectors 41, respectively.
00 first input terminals D0, D1, D2 of the first comparator 4101
Is input to

【0273】次いで、第1比較器4101では、これら
のディストーションが比較され、最小値のディストーシ
ョンが出力端子Yから出力され、第2比較器4103の
入力端子Aおよびセレクタ4104の入力端子に転送さ
れる。また、第1比較器4101では、最小ディストー
ションが入力された入力端子を表すデータLMVyが出
力端子Mから出力され、動きベクトル特定部4200の
第3フリップフロップ4204に転送される。ここで、
最小ディストーションは、Dis(0,0)であり、デ
ータLMVyは、0を表すデータとなる。
Next, the first comparator 4101 compares these distortions, outputs the minimum distortion from the output terminal Y, and transfers it to the input terminal A of the second comparator 4103 and the input terminal of the selector 4104. . In the first comparator 4101, data LMVy representing the input terminal to which the minimum distortion has been input is output from the output terminal M, and is transferred to the third flip-flop 4204 of the motion vector specifying unit 4200. here,
The minimum distortion is Dis (0,0), and the data LMVy is data representing 0.

【0274】次いで、第2比較器4103では、入力端
子Aから入力されたDis(0,0)と入力端子Bから
入力されたデータとを比較する。ここで、第2比較器4
103の入力端子Bには、論理和演算器4102の演算
結果が入力されるが、すでにクロックパルス信号CK1
の14パルス目のダウンエッジに同期して、パルス信号
CLが論理和演算器4102の入力端子Aに入力され、
出力端子Yからすべてのビットが1であるデータが出力
されており、第2比較器4103の入力端子Bには最大
値を示すデータが入力されている。すなわち、第2比較
器4103では、Dis(0,0)のほうが小さい値と
なるため、出力端子からは1を表すデータMinが出力
される。
Next, the second comparator 4103 compares Dis (0,0) input from the input terminal A with data input from the input terminal B. Here, the second comparator 4
The operation result of the logical sum operation unit 4102 is input to the input terminal B of 103, but the clock pulse signal CK1 has already been input.
The pulse signal CL is input to the input terminal A of the logical sum operation unit 4102 in synchronization with the 14th pulse down edge of
Data in which all bits are 1 is output from the output terminal Y, and data indicating the maximum value is input to the input terminal B of the second comparator 4103. That is, in the second comparator 4103, since Dis (0, 0) has a smaller value, data Min representing 1 is output from the output terminal.

【0275】次いで、セレクタ4104では、入力端子
Sに入力されたデータMinが1のため、入力端子Aか
ら入力されたDis(0,0)が出力端子Yから出力さ
れ、次いで、第1フリップフロップ4105に転送され
る。一方、クロックパルス信号CK1の15パルス目の
動きベクトル特定部4200においては、まず、カウン
タ4201では、すでに、クロックパルス信号CK1の
14パルス目のダウンエッジに同期して、パルス信号C
Lが入力端子CLに入力されたためにカウンタ4201
が初期状態にリセットされ、次いで、パルス信号CK2
のパルスの立上がりに同期して、出力端子Qnから0を
表す信号CTxが出力される。
Next, in the selector 4104, since the data Min input to the input terminal S is 1, Dis (0,0) input from the input terminal A is output from the output terminal Y, and then the first flip-flop 4105. On the other hand, in the motion vector specifying unit 4200 at the fifteenth pulse of the clock pulse signal CK1, first, the counter 4201 already synchronizes the pulse signal C with the falling edge of the fourteenth pulse of the clock pulse signal CK1.
Since L is input to the input terminal CL, the counter 4201
Is reset to the initial state, and then the pulse signal CK2
The signal CTx representing 0 is output from the output terminal Qn in synchronization with the rise of the pulse of.

【0276】また、論理積演算器4203には、最小デ
ィストーション検出部4100の第2比較器から送出さ
れたデータMinが入力端子Aを通して入力され、反転
器4202から出力されたパルス信号CK2を反転した
データを入力する。ここで、データMinは1であるの
で、論理積演算器4203では、パルス信号CK2のダ
ウンエッジに同期して反転器4202から出力されるデ
ータがローレベルからハイレベルに変化したとき、論理
積演算器4203の出力端子から1を表すデータが出力
される。
Also, the data Min sent from the second comparator of the minimum distortion detector 4100 is input to the AND operator 4203 through the input terminal A, and the pulse signal CK2 output from the inverter 4202 is inverted. Enter the data. Here, since the data Min is 1, the AND operation unit 4203 performs an AND operation when the data output from the inverter 4202 changes from a low level to a high level in synchronization with the down edge of the pulse signal CK2. Data representing 1 is output from the output terminal of the device 4203.

【0277】次いで、第3フリップフロップ4204で
は、論理積演算器4203から出力された1を表すデー
タが入力され、最小ディストーション検出部4100の
第1比較器4101から出力された0を表すデータLM
Vyがラッチされ、さらに、第1換算テーブル4206
にデータMyとして出力される。同時に、第4フリップ
フロップ4205では、論理積演算器4203から出力
された1を表すデータが入力され、カウンタ4201か
ら出力された0を表すデータCTxがラッチされ、さら
に、第2換算テーブル4207にデータMxとして出力
される。
Next, to the third flip-flop 4204, the data representing 1 outputted from the AND operator 4203 is inputted, and the data LM representing 0 outputted from the first comparator 4101 of the minimum distortion detecting section 4100 is inputted.
Vy is latched, and the first conversion table 4206
Is output as data My. At the same time, the fourth flip-flop 4205 receives the data representing 1 output from the AND operator 4203, latches the data CTx representing 0 output from the counter 4201, and further stores the data CTx in the second conversion table 4207. Output as Mx.

【0278】次いで、第1換算テーブル4206では、
入力されたデータMyが垂直方向の動きベクトルMVy
に換算され、出力端子から出力される。ここで、Myは
0なので、出力端子から−2が出力される。また、第2
換算テーブル4107では、入力されたデータMxが水
平方向の動きベクトルMVxに換算され、出力端子から
出力される。ここで、データMxは0なので、出力端子
から−2が出力される。
Next, in the first conversion table 4206,
The input data My is a vertical motion vector MVy.
And output from the output terminal. Since My is 0, -2 is output from the output terminal. Also, the second
In the conversion table 4107, the input data Mx is converted into a horizontal motion vector MVx and output from an output terminal. Here, since the data Mx is 0, -2 is output from the output terminal.

【0279】次に、クロックパルス信号CK1の16パ
ルス目では、最小ディストーション検出部4100にお
いては、ディストーション算出ユニット3000で算出
されたDis(2,0),Dis(2,2)Dis
(2,4)がそれぞれ最小ディストーション検出部41
00の第1比較器4101の入力端子D0,D1,D2
に入力される。
Next, at the 16th pulse of the clock pulse signal CK1, the minimum distortion detection unit 4100 calculates the Dis (2,0), Dis (2,2) Dis calculated by the distortion calculation unit 3000.
(2, 4) are the minimum distortion detectors 41, respectively.
00 first input terminals D0, D1, D2 of the first comparator 4101
Is input to

【0280】次いで、第1比較器4101では、これら
のディストーションが比較され、最小値のディストーシ
ョンが出力端子Yから出力され、第2比較器4103の
入力端子Aおよびセレクタ4104の入力端子に転送さ
れる。また、第1比較器4101では、最小ディストー
ションが入力された入力端子を表すデータLMVyが出
力端子Mから出力され、動きベクトル特定部4200の
第3フリップフロップ4204に転送される。ここで、
最小ディストーションは、Dis(2,4)であり、デ
ータLMVyは、2を表すデータとなる。
Next, in the first comparator 4101, these distortions are compared, and the minimum distortion is output from the output terminal Y and transferred to the input terminal A of the second comparator 4103 and the input terminal of the selector 4104. . In the first comparator 4101, data LMVy representing the input terminal to which the minimum distortion has been input is output from the output terminal M, and is transferred to the third flip-flop 4204 of the motion vector specifying unit 4200. here,
The minimum distortion is Dis (2, 4), and the data LMVy is data representing 2.

【0281】次いで、第2比較器4103では、入力端
子Aから入力されたDis(2,4)と入力端子Bから
入力されたデータとを比較する。ここで、第2比較器4
103の入力端子Bには、論理和演算器4102の演算
結果が入力されるが、すでにパルス信号CLは0なの
で、クロックパルス信号CK1の14パルス目に第1フ
リップフロップ4105に入力されたDis(0,0)
が出力端子Yから出力され、第2比較器4103の入力
端子Bに入力される。ここでは、Dis(0,0)のほ
うが小さい値となったため、出力端子からは0を表すデ
ータMinが出力される。
Next, the second comparator 4103 compares Dis (2, 4) input from the input terminal A with data input from the input terminal B. Here, the second comparator 4
The operation result of the logical sum operation unit 4102 is input to the input terminal B of 103, but since the pulse signal CL is already 0, the Dis () input to the first flip-flop 4105 at the 14th pulse of the clock pulse signal CK1 is input. 0,0)
Is output from the output terminal Y and input to the input terminal B of the second comparator 4103. Here, since Dis (0, 0) has a smaller value, data Min representing 0 is output from the output terminal.

【0282】次いで、セレクタ4104では、入力端子
Sを通して入力されたデータMinが0のため、入力端
子Bから入力されたDis(0,0)が出力端子Yから
出力され、再度、第1フリップフロップ4105に転送
される。一方、クロックパルス信号CK1の16パルス
目の動きベクトル特定部4200においては、まず、カ
ウンタ4201では、パルス信号CK2の立上がりに同
期して、出力端子Qnからカウントアップされた1を表
す信号CTxが出力される。また、論理積演算器420
3では、第2比較器から送出された信号Minが0なの
で、0を表すデータが出力端子Yから出力される。
Next, in the selector 4104, since the data Min input through the input terminal S is 0, Dis (0,0) input from the input terminal B is output from the output terminal Y, and again the first flip-flop 4105. On the other hand, in the motion vector specifying unit 4200 of the 16th pulse of the clock pulse signal CK1, first, the counter 4201 outputs the signal CTx representing 1 counted up from the output terminal Qn in synchronization with the rising of the pulse signal CK2. Is done. In addition, the logical product operator 420
In 3, since the signal Min sent from the second comparator is 0, data representing 0 is output from the output terminal Y.

【0283】次いで、第3フリップフロップ4204で
は、論理積演算器4203から出力された信号が0なの
で、クロックパルス信号CK1の15パルス目に転送さ
れた0を表すデータLMVyが保持される。同様に、第
4フリップフロップ4205でも、論理積演算器420
3から出力された信号が0なので、クロックパルス信号
CK1の15パルス目に転送された0を表すデータCT
xが保持される。
Next, in the third flip-flop 4204, since the signal output from the AND operator 4203 is 0, the data LMVy representing 0 transferred at the 15th pulse of the clock pulse signal CK1 is held. Similarly, in the fourth flip-flop 4205, the logical product operator 420
3 is 0, the data CT representing 0 transferred at the 15th pulse of the clock pulse signal CK1
x is retained.

【0284】次に、クロックパルス信号CK1の17パ
ルス目では、最小ディストーション検出部4100にお
いては、ディストーション算出ユニット3000で算出
されたDis(4,0),Dis(4,2)Dis
(4,4)がそれぞれ最小ディストーション検出部41
00の第1比較器4101の入力端子D0,D1,D2
に入力される。
Next, at the 17th pulse of the clock pulse signal CK1, the minimum distortion detection unit 4100 calculates the Dis (4,0), Dis (4,2) Dis calculated by the distortion calculation unit 3000.
(4, 4) are the minimum distortion detectors 41, respectively.
00 first input terminals D0, D1, D2 of the first comparator 4101
Is input to

【0285】次いで、第1比較器4101では、これら
のディストーションが比較され、出力端子Yから最小値
のディストーションDis(4,2)が出力され、出力
端子Mから1を表すデータLMVyが出力される。次い
で、第2比較器4103では、入力端子Aから入力され
たDis(4,2)と入力端子Bから入力されたデータ
とを比較する。ここで、第2比較器4103の入力端子
Bには、論理和演算器4102の演算結果が入力される
が、パルス信号CLは0なので、クロックパルス信号C
K1の15パルス目に再び第1フリップフロップに入力
されたDis(0,0)が出力端子Yを通して出力さ
れ、第2比較器4103の入力端子Bに入力される。こ
こでは、Dis(4,2)のほうが小さい値となったた
め、出力端子からは1をデータ信号Minが出力され
る。
Next, the first comparator 4101 compares these distortions, outputs the minimum distortion Dis (4,2) from the output terminal Y, and outputs data LMVy representing 1 from the output terminal M. . Next, the second comparator 4103 compares Dis (4, 2) input from the input terminal A with data input from the input terminal B. Here, the operation result of the logical sum operation unit 4102 is input to the input terminal B of the second comparator 4103, but since the pulse signal CL is 0, the clock pulse signal C
Dis (0, 0) input to the first flip-flop again at the fifteenth pulse of K1 is output through the output terminal Y and input to the input terminal B of the second comparator 4103. Here, since Dis (4, 2) has a smaller value, the data signal Min is output as 1 from the output terminal.

【0286】次いで、セレクタ4104では、入力端子
Sを通して入力されたデータMinが1のため、入力端
子Aから入力されたDis(4,2)が出力端子Yを通
して出力され、次いで、第1フリップフロップ4105
に転送される。一方、クロックパルス信号CK1の17
パルス目の動きベクトル特定部4200においては、ま
ず、カウンタ4201では、パルス信号CK2の立上が
りに同期して、出力端子Qnからカウントアップされた
2を表すデータCTxが出力される。また、論理積演算
器4203では、最小ディストーション検出部4100
の第2比較器4104から出力されたデータMinが1
を表すので、パルス信号CK2のダウンエッジに同期し
て出力端子を通して1を表すデータが出力される。
Next, in the selector 4104, since the data Min input through the input terminal S is 1, the Dis (4,2) input from the input terminal A is output through the output terminal Y, and then the first flip-flop 4105
Is forwarded to On the other hand, 17 of the clock pulse signal CK1
In the pulse motion vector specifying unit 4200, first, the counter 4201 outputs data CTx representing 2 counted up from the output terminal Qn in synchronization with the rise of the pulse signal CK2. In the AND operation unit 4203, the minimum distortion detection unit 4100
The data Min output from the second comparator 4104 is 1
Therefore, data representing 1 is output through the output terminal in synchronization with the down edge of the pulse signal CK2.

【0287】次いで、第3フリップフロップ4204で
は、論理積演算器4203から出力された1を表す信号
に同期して、最小ディストーション検出部4100の第
1比較器4101から出力された1を表すデータLMV
yが転送され、さらに、第1換算テーブル4206にデ
ータMyとして出力される。同時に、第4フリップフロ
ップ4205では、論理積演算器から出力された1を表
すデータが入力され、、カウンタ4201から出力され
た2を表すデータCTxがラッチされ、さらに、第2換
算テーブル4207にデータMxとして出力される。
Next, in the third flip-flop 4204, the data LMV representing 1 output from the first comparator 4101 of the minimum distortion detection unit 4100 is synchronized with the signal representing 1 output from the AND operation unit 4203.
y is transferred and further output to the first conversion table 4206 as data My. At the same time, the fourth flip-flop 4205 receives the data representing 1 output from the AND operator, latches the data CTx representing 2 output from the counter 4201, and further stores the data CTx in the second conversion table 4207. Output as Mx.

【0288】次いで、第1換算テーブル4206では、
入力されたデータMyが垂直方向の動きベクトルMVy
に換算され、出力端子から出力される。ここで、Myは
1なので、出力端子からは0が出力される。また、第2
換算テーブル4107では、入力されたデータMxが水
平方向の動きベクトルMVxに換算され、出力端子から
出力される。ここで、Mxは2なので、出力端子からは
2が出力される。
Next, in the first conversion table 4206,
The input data My is a vertical motion vector MVy.
And output from the output terminal. Here, since My is 1, 0 is output from the output terminal. Also, the second
In the conversion table 4107, the input data Mx is converted into a horizontal motion vector MVx and output from an output terminal. Here, since Mx is 2, 2 is output from the output terminal.

【0289】次に、クロックパルス信号CK1の18パ
ルス目では、最小ディストーション検出部4100にお
いては、第2フリップフロップ4106では、パルス信
号CK3のパルスに同期して、第1フリップフロップ4
105に保持されたDis(4,2)がラッチされ、最
小ディストーションとして出力端子から出力される。一
方、動きベクトル特定部4200においては、第5フリ
ップフロップ4106では、パルス信号CK3のパルス
に同期して、第1換算テーブル4206に保持された動
きベクトルMVyが転送され、最小ディストーションD
is(4,2)に対応する動きベクトルMVyとして出
力端子から出力される。また、第6フリップフロップ4
107では、パルス信号CK3のパルスに同期して、第
2換算テーブル4207に保持された動きベクトルMV
xが転送され、最小ディストーションDis(4,2)
に対応する動きベクトルMVxとして出力端子から出力
される。すなわち、a(0,0),a(0,1),a(1,0),(a1,1)から
なる現符号化ブロック110の最小ディストーションD
is(4,2)および動きベクトルMV(2,0)が求
められたことになる。
Next, at the 18th pulse of the clock pulse signal CK1, in the minimum distortion detection unit 4100, the second flip-flop 4106 synchronizes with the pulse of the pulse signal CK3 to output the first flip-flop 4CK.
Dis (4, 2) held at 105 is latched and output from the output terminal as minimum distortion. On the other hand, in the motion vector specifying unit 4200, in the fifth flip-flop 4106, the motion vector MVy held in the first conversion table 4206 is transferred in synchronization with the pulse of the pulse signal CK3, and the minimum distortion D
The motion vector MVy corresponding to is (4, 2) is output from the output terminal. The sixth flip-flop 4
In 107, the motion vector MV held in the second conversion table 4207 is synchronized with the pulse of the pulse signal CK3.
x is transferred and the minimum distortion Dis (4,2)
Is output from the output terminal as a motion vector MVx corresponding to. That is, the minimum distortion D of the current coding block 110 including a (0,0), a (0,1), a (1,0), (a1,1)
This means that is (4,2) and the motion vector MV (2,0) have been obtained.

【0290】次に、候補ブロック特定ユニット4000
で現符号化ブロック110に対する動きベクトルを求め
ているときのディストーション算出ユニット3000の
動作を説明する。クロックパルス信号CK1の15パル
ス目では、図36に示すように、1列目の各プロセッサ
エレメントPE(x,y)および各レジスタ(x,y)
に初めて画素データb(x+2,y)が転送され、同時
に、現符号化ブロックデータ供給ユニット1000から
各プロセッサエレメントPE(x,y)に画素データa
(2,0)が転送される。
Next, the candidate block specifying unit 4000
The operation of the distortion calculation unit 3000 when a motion vector for the current coded block 110 is obtained will be described. At the fifteenth pulse of the clock pulse signal CK1, as shown in FIG. 36, each processor element PE (x, y) and each register (x, y) in the first column
, The pixel data b (x + 2, y) is transferred for the first time, and at the same time, the pixel data a (x, y) is
(2,0) is transferred.

【0291】このとき、各プロセッサエレメントPE
(x,y)では、以下の演算処理が行われる。各プロセ
ッサエレメントPE(x,y)では、まず、画素データ
b(x+2,y)が動作モード選択部3100および転
送方向選択部3200の第4セレクタ3201を介して
第1フリップフロップ3202に転送され、減算器33
01の入力端子Aに入力される。一方、画素データa
(2,0)が現符号化ブロックデータ供給ユニット10
00から減算器3301の入力端子Bに入力される。
At this time, each processor element PE
In (x, y), the following arithmetic processing is performed. In each processor element PE (x, y), first, the pixel data b (x + 2, y) is transferred to the first flip-flop 3202 via the operation mode selector 3100 and the fourth selector 3201 of the transfer direction selector 3200, Subtracter 33
01 is input to the input terminal A. On the other hand, pixel data a
(2,0) is the current coded block data supply unit 10
00 is input to the input terminal B of the subtractor 3301.

【0292】次いで、減算器3301では、 b(x+2,y)−a(2,0) が算出され、さらに、正数変換器3302により正数に
変換され、加算器3304の入力端子Aに入力される。
一方、加算器3304の入力端子Bには、論理積演算器
3303の演算結果が入力されるが、論理積演算器33
03には、すでに入力端子Aを介してクロックパルス信
号CK1の14パルス目のダウンエッジに同期してパル
ス信号CLが入力され、出力端子Yから0を表す信号が
出力されており、加算器3304の入力端子Bには0を
表すデータが入力されている。
Next, b (x + 2, y) −a (2, 0) is calculated in the subtractor 3301, further converted to a positive number by the positive number converter 3302, and input to the input terminal A of the adder 3304. Is done.
On the other hand, the operation result of the AND operator 3303 is input to the input terminal B of the adder 3304.
03, the pulse signal CL has already been input via the input terminal A in synchronization with the 14th falling edge of the clock pulse signal CK1, and a signal representing 0 has been output from the output terminal Y. Is input to the input terminal B of.

【0293】次いで、加算器3304で |b(x+2,y)−a(2,0)| が算出され、第2フリップフロップ3305に転送され
る。次に、クロックパルス信号CK1の16パルス目で
は、図37に示すように、各プロセッサエレメントPE
(x,y)および各レジスタ(x,y)に画素データb
(x+2,y+1)が転送され、同時に、現符号化ブロ
ックデータ供給ユニット1000から各プロセッサエレ
メントPE(x,y)に画素データa(2,1)が転送
される。
Next, | b (x + 2, y) -a (2, 0) | is calculated by the adder 3304 and transferred to the second flip-flop 3305. Next, at the 16th pulse of the clock pulse signal CK1, as shown in FIG.
(X, y) and pixel data b in each register (x, y).
(X + 2, y + 1) is transferred, and at the same time, the pixel data a (2, 1) is transferred from the current coded block data supply unit 1000 to each processor element PE (x, y).

【0294】このとき、各プロセッサエレメントPE
(x,y)では、まず、画素データb(x+2,y+
1)が第1フリップフロップ3202に転送され、次い
で、画素データb(x+2,y+1)は、ディストーシ
ョン算出部3300の減算器3301の入力端子Aに入
力される。一方、画素データa(2,1)が現符号化ブ
ロックデータ供給ユニット1000から減算器3301
の入力端子Bに入力される。
At this time, each processor element PE
In (x, y), first, pixel data b (x + 2, y +
1) is transferred to the first flip-flop 3202, and then the pixel data b (x + 2, y + 1) is input to the input terminal A of the subtractor 3301 of the distortion calculator 3300. On the other hand, the pixel data a (2,1) is subtracted from the current coded block data supply unit 1000 by the subtractor 3301.
Is input to the input terminal B.

【0295】次いで、減算器3301では、 b(x+2,y+1)−a(2,1) が算出され、さらに、正数変換器3302により正数に
変換され、加算器3304の入力端子Aに入力される。
一方、加算器3304の入力端子Bには、論理積演算器
3303の演算結果が入力されるが、論理積演算器33
03では、すでにパルス信号CLが0であるため、第2
フリップフロップ3305に保持された |b(x+2,y)−a(2,0)| が入力端子Bを介して出力端子Yから出力され、次い
で、加算器3304で、 が算出され、第2フリップフロップ3305に転送され
る。
Then, the subtractor 3301 calculates b (x + 2, y + 1) -a (2, 1), converts it to a positive number by the positive number converter 3302, and inputs the result to the input terminal A of the adder 3304. Is done.
On the other hand, the operation result of the AND operator 3303 is input to the input terminal B of the adder 3304.
03, since the pulse signal CL is already 0, the second
| B (x + 2, y) −a (2, 0) | held in the flip-flop 3305 is output from the output terminal Y via the input terminal B, and then, in the adder 3304, Is calculated and transferred to the second flip-flop 3305.

【0296】次に、クロックパルス信号CK1の17パ
ルス目では、図38に示すように、各プロセッサエレメ
ントPE(x,y)および各レジスタ(x,y)に画素
データb(x+3,y+1)が転送され、同時に、現符
号化ブロックデータ供給ユニット1000から各プロセ
ッサエレメントPE(x,y)に画素データa(3,
1)が転送される。
Next, at the 17th pulse of the clock pulse signal CK1, as shown in FIG. 38, the pixel data b (x + 3, y + 1) is stored in each processor element PE (x, y) and each register (x, y). At the same time, the pixel data a (3,3) is transferred from the current coded block data supply unit 1000 to each processor element PE (x, y).
1) is transferred.

【0297】このとき、各プロセッサエレメントPE
(x,y)では、画素データb(x+3,y+1)が第
1フリップフロップ3202に転送され、画素データa
(3,1)が現符号化ブロックデータ供給ユニット10
00から減算器3301の入力端子Bに入力され、この
結果、 が算出され、第2フリップフロップ3402に転送され
る。
At this time, each processor element PE
In (x, y), the pixel data b (x + 3, y + 1) is transferred to the first flip-flop 3202, and the pixel data a
(3, 1) is the current coded block data supply unit 10
00 is input to the input terminal B of the subtractor 3301. As a result, Is calculated and transferred to the second flip-flop 3402.

【0298】次に、クロックパルス信号CK1の18パ
ルス目では、図39に示すように、各プロセッサエレメ
ントPE(x,y)および各レジスタ(x,y)に画素
データb(x+3,y)が転送され、同時に、現符号化
ブロックデータ供給ユニット1000から各プロセッサ
エレメントPE(x,y)に画素データa(3,1)が
転送される。
Next, at the 18th pulse of the clock pulse signal CK1, as shown in FIG. 39, pixel data b (x + 3, y) is stored in each processor element PE (x, y) and each register (x, y). At the same time, the pixel data a (3,1) is transferred from the current coded block data supply unit 1000 to each processor element PE (x, y).

【0299】このとき、各プロセッサエレメントPE
(x,y)では、画素データb(x+3,y)が第1フ
リップフロップ3202に転送され、画素データa
(3,1)が現符号化ブロックデータ供給ユニット10
00から減算器3301の入力端子Bに入力され、この
結果、 が算出され、第2フリップフロップ3305に転送され
る。
At this time, each processor element PE
In (x, y), the pixel data b (x + 3, y) is transferred to the first flip-flop 3202, and the pixel data a
(3, 1) is the current coded block data supply unit 10
00 is input to the input terminal B of the subtractor 3301. As a result, Is calculated and transferred to the second flip-flop 3305.

【0300】すなわち、各プロセッサエレメントPE
(x,y)では、図40に示すように、現符号化ブロッ
ク110に対して水平方向に隣接する現符号化ブロック
111と現符号化ブロック111に対応する第1サーチ
ウィンドウ231内の9個の候補ブロックとのそれぞれ
のディストーションが求められたことになる。以下、各
プロセッサエレメントPE(x,y)で算出されたディ
ストーションをDis2(x,y)で表すとする。
That is, each processor element PE
In (x, y), as shown in FIG. 40, the current coding block 111 and the nine current search blocks 231 in the first search window 231 corresponding to the current coding block 111 are adjacent to the current coding block 110 in the horizontal direction. That is, the respective distortions with the candidate block are obtained. Hereinafter, the distortion calculated by each processor element PE (x, y) is represented by Dis2 (x, y).

【0301】次に、クロックパルス信号CK1の18パ
ルス目のダウンエッジでは、パルス信号LDの立ち上り
に同期して各プロセッサエレメントPE(x,y)の第
5セレクタ3305に保持されたそれぞれのDis2
(x,y)がディストーション転送部3400の第3フ
リップフロップ3402に転送される。次に、クロック
パルス信号CK1の19パルス目では、パルス信号CK
2に同期してプロセッサエレメントPE(0,0)に第
3フリップフロップ3402に保持されたDis2
(0,0)が出力端子Doを介して候補ブロック特定ユ
ニット4000の第1比較器4101の入力端子D0に
転送され、同時に、PE(0,2)に保持されたDis
2(0,2)が出力端子Doを介して第1比較器410
1の入力端子D1に転送され、同時に、プロセッサエレ
メントPE(0,4)に保持されたDis2(0,4)
が出力端子Doを介して第1比較器4101の入力端子
D2に転送される。また、同時に、他のプロセッサエレ
メントPE(x,y)に保持されたDis2(x,y)
は、プロセッサエレメントPE(x−2,y)の第3フ
リップフロップ3402に転送される。
Next, at the falling edge of the eighteenth pulse of the clock pulse signal CK1, each Dis2 held in the fifth selector 3305 of each processor element PE (x, y) in synchronization with the rise of the pulse signal LD.
(X, y) is transferred to the third flip-flop 3402 of the distortion transfer unit 3400. Next, in the 19th pulse of the clock pulse signal CK1, the pulse signal CK is output.
2, the Dis2 held in the third flip-flop 3402 in the processor element PE (0, 0) in synchronization with
(0, 0) is transferred to the input terminal D0 of the first comparator 4101 of the candidate block identification unit 4000 via the output terminal Do, and at the same time, the Dis held in the PE (0, 2)
2 (0, 2) is connected to the first comparator 410 via the output terminal Do.
Dis2 (0, 4) transferred to the input terminal D1 and simultaneously held in the processor element PE (0, 4).
Is transferred to the input terminal D2 of the first comparator 4101 via the output terminal Do. At the same time, Dis2 (x, y) held in another processor element PE (x, y)
Is transferred to the third flip-flop 3402 of the processor element PE (x−2, y).

【0302】次に、クロックパルス信号CK1の20パ
ルス目では、パルス信号CK2に同期して、各Dis2
(x,y)は、列毎に同様に転送され、クロックパルス
信号CK1の21パルス目では、すべてのDis2
(x,y)が候補ブロック特定ユニット4000に転送
される。次に、候補ブロック特定ユニット4000で
は、ディストーション算出ユニット3000で算出され
た各Dis2(x,y)の中から最小ディストーション
を検出するとともに、この最小ディストーションが算出
されたプロセッサエレメントPE(x,y)に位置的に
対応した候補ブロックから現符号化ブロック111の動
きベクトルMVが求められる。
Next, at the 20th pulse of the clock pulse signal CK1, each Dis2 signal is synchronized with the pulse signal CK2.
(X, y) is similarly transferred for each column, and in the 21st pulse of the clock pulse signal CK1, all Dis2
(X, y) is transferred to the candidate block specifying unit 4000. Next, the candidate block identification unit 4000 detects the minimum distortion from each of the Dis2 (x, y) calculated by the distortion calculation unit 3000, and the processor element PE (x, y) from which the minimum distortion is calculated. Is obtained from the candidate block that corresponds to the position of the current coded block 111.

【0303】すなわち、クロックパルス信号CK1の1
5〜18パルス目では、候補ブロック特定ユニット40
00では、現符号化ブロック110の最小ディストーシ
ョンおよび動きベクトルが求められ、一方、ディストー
ション算出ユニット3000では、図40に示された現
符号化ブロック111の画素データと第1サーチウィン
ドウ231の画素データからディストーションが算出さ
れ、ディストーション算出処理と最小ディストーション
検出処理・動きベクトル特定処理とのパイプライン化が
実現されている。また、第1サーチウィンドウ231の
画素データは、第1サーチウィンドウ230と共通する
画素データを除いた残りの画素データを列毎にサーチウ
ィンドウデータ供給ユニット2000から出力すればよ
い。
That is, 1 of the clock pulse signal CK1
In the 5th to 18th pulses, the candidate block specifying unit 40
00, the minimum distortion and motion vector of the current coding block 110 are obtained, while the distortion calculation unit 3000 calculates the minimum distortion and the motion vector from the pixel data of the current coding block 111 and the pixel data of the first search window 231 shown in FIG. Distortion is calculated, and a pipeline of distortion calculation processing, minimum distortion detection processing, and motion vector identification processing is realized. The pixel data of the first search window 231 may be output from the search window data supply unit 2000 for each column except the pixel data common to the first search window 230.

【0304】次に、動作モード選択ユニット6000で
第2動作モードが選択された場合に、図8および図9に
示されたタイムチャートに基づいて動きベクトルを探索
する動作を説明する。まず、ディストーション算出ユニ
ット3000の各プロセッサエレメントPE(x,y)
において、プロセッサエレメントPE(x,y)と位置
的に対応する第2サーチウィンドウ内240の候補ブロ
ックと現符号化ブロック110とのそれぞれのディスト
ーションを求める動作を説明する。
Next, the operation of searching for a motion vector based on the time charts shown in FIGS. 8 and 9 when the second operation mode is selected by operation mode selection unit 6000 will be described. First, each processor element PE (x, y) of the distortion calculation unit 3000
In the following, an explanation will be given on the operation of obtaining the respective distortions of the candidate block in the second search window 240 and the current coded block 110 that correspond to the position of the processor element PE (x, y).

【0305】ここで、第2動作モードの場合には、各プ
ロセッサエレメントPE(x,y)の第1〜第3セレク
タ3101〜3、各中間レジスタIP(x,y)の第1
〜第3セレクタ3111〜3、入力レジスタIR(5,
2)の第1および第2セレクタ3121,3122、各
第1サイドレジスタSR(x,y)の第3セレクタ31
33および各第2サイドレジスタSR(x,y)の第3
セレクタ3143において、動作モード選択ユニット5
000から出力された信号SV,SHに基づいて入力端
子Bと出力端子Yとが接続されている。
Here, in the case of the second operation mode, the first to third selectors 3101 to 3101 of each processor element PE (x, y) and the first selector 3101 of each intermediate register IP (x, y) are used.
To the third selectors 3111 to 3111, the input register IR (5,
2) the first and second selectors 3121 and 3122, and the third selector 31 of each first side register SR (x, y)
33 and the third of each second side register SR (x, y).
In the selector 3143, the operation mode selection unit 5
The input terminal B and the output terminal Y are connected based on the signals SV and SH output from 000.

【0306】このため、例えば、プロセッサエレメント
PE(2,2)は、隣接する中間レジスタ(x,y)を
バイパスした行方向および列方向の各プロセッサエレメ
ントPE(x,y)との間で第2サーチウィンドウ24
0の画素データを転送する。すなわち、中間レジスタI
P(x,y)の存在する行および列の各レジスタ(x,
y)は、ディストーションの算出には無関係となる。
For this reason, for example, the processor element PE (2,2) is connected between the processor element PE (x, y) in the row direction and column direction bypassing the adjacent intermediate register (x, y). 2 search window 24
The pixel data of 0 is transferred. That is, the intermediate register I
Each register (x, y) in the row and column where P (x, y) exists
y) is irrelevant to the distortion calculation.

【0307】このため、以下に示す図41〜52では、
中間レジスタIP(x,y)の存在する行および列に転
送された画素データを無視している。また、図41〜5
2は、クロックパルス信号CK1およびパルス信号CK
2の各パルスの立ち上がり直後の状態を示しており、図
27に示すように、プロセッサエレメントPE(x,
y)および各レジスタ(x,y)の配線を省略して示
す。
For this reason, in FIGS. 41 to 52 shown below,
The pixel data transferred to the row and column where the intermediate register IP (x, y) exists is ignored. In addition, FIGS.
2 is the clock pulse signal CK1 and the pulse signal CK
2 shows a state immediately after the rise of each pulse, and as shown in FIG. 27, the processor element PE (x,
y) and the wiring of each register (x, y) are omitted.

【0308】まず、クロックパルス信号CK1の1パル
ス目に同期して、図41に示すように、画素データc
(0,1)がサーチウィンドウデータ供給ユニット20
00の出力端子S0から入力レジスタIR(5,0)に
入力され、画素データc(0,3)がサーチウィンドウ
データ供給ユニット2000の出力端子S1から入力レ
ジスタIR(5,4)に入力される。
First, in synchronization with the first pulse of the clock pulse signal CK1, as shown in FIG.
(0, 1) is the search window data supply unit 20
00 is input to the input register IR (5,0) from the output terminal S0, and the pixel data c (0,3) is input to the input register IR (5,4) from the output terminal S1 of the search window data supply unit 2000. .

【0309】このとき、各プロセッサエレメントPE
(x,y)の転送方向選択部3200の第4セレクタ3
201の出力端子Yは、入力端子Cと接続されている。
入力レジスタIR(5,1)および入力レジスタIR
(5,3)の転送方向選択部3230の第4セレクタ3
231の出力端子Yは、入力端子Bと接続されている。
入力レジスタIR(5,2)の転送方向選択部3240
の第4セレクタ3241の出力端子Yは、入力端子Cと
接続されている。第1サイドレジスタSR(x,−1)
の転送方向選択部3250の第4セレクタ3251の出
力端子Yは、入力端子Bと接続されている。第2サイド
レジスタSR(x,5)の転送方向選択部3260の第
4セレクタ3261の出力端子Yは、入力端子Bと接続
されている。
At this time, each processor element PE
The fourth selector 3 of the (x, y) transfer direction selector 3200
The output terminal Y of 201 is connected to the input terminal C.
Input register IR (5,1) and input register IR
The fourth selector 3 of the (5, 3) transfer direction selector 3230
The output terminal Y of 231 is connected to the input terminal B.
Transfer direction selector 3240 of input register IR (5,2)
The output terminal Y of the fourth selector 3241 is connected to the input terminal C. First side register SR (x, -1)
The output terminal Y of the fourth selector 3251 of the transfer direction selector 3250 is connected to the input terminal B. The output terminal Y of the fourth selector 3261 of the transfer direction selector 3260 of the second side register SR (x, 5) is connected to the input terminal B.

【0310】次に、クロックパルス信号CK1の2パル
ス目では、各プロセッサエレメントPE(x,y)の転
送方向選択部3200の第4セレクタ3201の出力端
子Yは、入力端子Bと接続されている。入力レジスタI
R(5,1)および入力レジスタIR(5,3)の転送
方向選択部3230の第4セレクタ3231の出力端子
Yは、入力端子Bと接続されている。入力レジスタIR
(5,2)の転送方向選択部3240の第4セレクタ3
241の出力端子Yは、入力端子Bと接続されている。
第1サイドレジスタSR(x,−1)の転送方向選択部
3250の第4セレクタ3251の出力端子Yは、入力
端子Aと接続されている。第2サイドレジスタSR
(x,5)の転送方向選択部3260の第4セレクタ3
261の出力端子Yは、入力端子Aと接続されている。
Next, at the second pulse of the clock pulse signal CK1, the output terminal Y of the fourth selector 3201 of the transfer direction selector 3200 of each processor element PE (x, y) is connected to the input terminal B. . Input register I
The output terminal Y of the fourth selector 3231 of the transfer direction selector 3230 of R (5, 1) and the input register IR (5, 3) is connected to the input terminal B. Input register IR
Fourth selector 3 of (5, 2) transfer direction selector 3240
The output terminal Y of 241 is connected to the input terminal B.
The output terminal Y of the fourth selector 3251 of the transfer direction selector 3250 of the first side register SR (x, -1) is connected to the input terminal A. Second side register SR
The fourth selector 3 of the (x, 5) transfer direction selector 3260
The output terminal Y of 261 is connected to the input terminal A.

【0311】このため、図42に示すように、画素デー
タc(0,1)は、入力レジスタIR(x,y)から入
力レジスタIR(x,y+2)に転送され、同時に、画
素データc(0,3)は、入力レジスタIR(x,y)
から第2サイドレジスタ(x,y+1)に転送され、同
時に、画素データc(0,0)がサーチウィンドウデー
タ供給ユニット2000の出力端子S0から入力レジス
タIR(5,0)に入力され、同時に、画素データc
(0,2)がサーチウィンドウデータ供給ユニット20
00の出力端子S2から入力レジスタIR(5,4)に
入力される。
For this reason, as shown in FIG. 42, the pixel data c (0,1) is transferred from the input register IR (x, y) to the input register IR (x, y + 2), and at the same time, the pixel data c (0,1). 0,3) are input registers IR (x, y)
To the second side register (x, y + 1), and at the same time, the pixel data c (0, 0) is input from the output terminal S0 of the search window data supply unit 2000 to the input register IR (5, 0). Pixel data c
(0, 2) is the search window data supply unit 20
00 is input to the input register IR (5, 4) from the output terminal S2.

【0312】次に、クロックパルス信号CK1の3パル
ス目では、各プロセッサエレメントPE(x,y)の転
送方向選択部3200の第4セレクタ3201の出力端
子Yは、入力端子Cと接続されている。各中間レジスタ
IP(x,y)の転送方向選択部3210の第4セレク
タ3211の出力端子Yは、入力端子Cと接続されてい
る。入力レジスタIR(5,1)および入力レジスタI
R(5,3)の転送方向選択部3230の第4セレクタ
3231の出力端子Yは、入力端子Aと接続されてい
る。入力レジスタIR(5,2)の転送方向選択部32
40の第4セレクタ3241の出力端子Yは、入力端子
Cと接続されている。第1サイドレジスタSR(x,−
1)の転送方向選択部3250の第4セレクタ3251
の出力端子Yは、入力端子Bと接続されている。第2サ
イドレジスタSR(x,5)の転送方向選択部3260
の第4セレクタ3261の出力端子Yは、入力端子Bと
接続されている。
Next, at the third pulse of the clock pulse signal CK1, the output terminal Y of the fourth selector 3201 of the transfer direction selector 3200 of each processor element PE (x, y) is connected to the input terminal C. . The output terminal Y of the fourth selector 3211 of the transfer direction selector 3210 of each intermediate register IP (x, y) is connected to the input terminal C. Input register IR (5,1) and input register I
The output terminal Y of the fourth selector 3231 of the transfer direction selector 3230 for R (5, 3) is connected to the input terminal A. Transfer direction selector 32 of input register IR (5,2)
The output terminal Y of the 40th fourth selector 3241 is connected to the input terminal C. The first side register SR (x,-
The fourth selector 3251 of the transfer direction selector 3250 of 1)
Output terminal Y is connected to the input terminal B. Transfer direction selector 3260 of second side register SR (x, 5)
The output terminal Y of the fourth selector 3261 is connected to the input terminal B.

【0313】このため、図43に示すように、各レジス
タ(5,y)の画素データは、それぞれ6列目の各レジ
スタ(5,y)から5列目のプロセッサエレメントPE
(4,y)または第2サイドレジスタ(4,y)に転送
され、同時に、画素データc(1,0)がサーチウィン
ドウデータ供給ユニット2000の出力端子S0から入
力レジスタIR(5,0)に入力され、同時に、画素デ
ータc(1,2)がサーチウィンドウデータ供給ユニッ
ト2000の出力端子S2から入力レジスタIR(5,
4)に入力される。
For this reason, as shown in FIG. 43, the pixel data of each register (5, y) is transferred from each register (5, y) in the sixth column to the processor element PE in the fifth column.
(4, y) or the second side register (4, y), and at the same time, the pixel data c (1, 0) is transferred from the output terminal S0 of the search window data supply unit 2000 to the input register IR (5, 0). At the same time, the pixel data c (1,2) is input from the output terminal S2 of the search window data supply unit 2000 to the input register IR (5,
Input to 4).

【0314】次に、クロックパルス信号CK1の4パル
ス目では、各プロセッサエレメントPE(x,y)の転
送方向選択部3200の第4セレクタ3201の出力端
子Yは、入力端子Aと接続されている。各中間レジスタ
IP(x,y)の転送方向選択部3210の第4セレク
タ3211の出力端子Yは、入力端子Aと接続されてい
る。入力レジスタIR(5,1)および入力レジスタI
R(5,3)の転送方向選択部3230の第4セレクタ
3231の出力端子Yは、入力端子Aと接続されてい
る。入力レジスタIR(5,2)の転送方向選択部32
40の第4セレクタ3241の出力端子Yは、入力端子
Aと接続されている。第1サイドレジスタSR(x,−
1)の転送方向選択部3250の第4セレクタ3251
の出力端子Yは、入力端子Aと接続されている。第2サ
イドレジスタSR(x,5)の転送方向選択部3260
の第4セレクタ3261の出力端子Yは、入力端子Aと
接続されている。
Next, at the fourth pulse of the clock pulse signal CK1, the output terminal Y of the fourth selector 3201 of the transfer direction selector 3200 of each processor element PE (x, y) is connected to the input terminal A. . The output terminal Y of the fourth selector 3211 of the transfer direction selector 3210 of each intermediate register IP (x, y) is connected to the input terminal A. Input register IR (5,1) and input register I
The output terminal Y of the fourth selector 3231 of the transfer direction selector 3230 for R (5, 3) is connected to the input terminal A. Transfer direction selector 32 of input register IR (5,2)
The output terminal Y of the fourth fourth selector 3241 is connected to the input terminal A. The first side register SR (x,-
The fourth selector 3251 of the transfer direction selector 3250 of 1)
Is connected to the input terminal A. Transfer direction selector 3260 of second side register SR (x, 5)
The output terminal Y of the fourth selector 3261 is connected to the input terminal A.

【0315】このため、図44に示すように、各プロセ
ッサエレメントPE(x,0)および入力レジスタIR
(x,0)の画素データは、それぞれ第1サイドレジス
タ(x,y−1)に転送され、同時に、他の各プロセッ
サエレメントPE(x,y)の画素データは、それぞれ
プロセッサエレメントPE(x,y−2)に転送され、
同時に、他の各入力レジスタIR(x,y)の画素デー
タは、それぞれ入力レジスタIR(x,y−2)に転送
され、同時に、第2サイドレジスタIR(5,5)の画
素データは、プロセッサエレメントPE(5,4)に転
送され、同時に、画素データc(1,1)がサーチウィ
ンドウデータ供給ユニット2000の出力端子S0から
入力レジスタIR(5,0)に入力され、同時に、画素
データc(1,3)がサーチウィンドウデータ供給ユニ
ット2000の出力端子S2から入力レジスタIR
(5,4)に入力される。
Therefore, as shown in FIG. 44, each processor element PE (x, 0) and input register IR
The pixel data of (x, 0) is respectively transferred to the first side register (x, y-1), and the pixel data of each of the other processor elements PE (x, y) is simultaneously transferred to the processor element PE (x, y). , Y-2),
At the same time, the pixel data of each of the other input registers IR (x, y) is transferred to the input register IR (x, y−2), and at the same time, the pixel data of the second side register IR (5, 5) is The pixel data c (1,1) is transferred to the processor element PE (5,4), and at the same time, is input from the output terminal S0 of the search window data supply unit 2000 to the input register IR (5,0). c (1, 3) is input from the output terminal S2 of the search window data supply unit 2000 to the input register IR.
Input to (5, 4).

【0316】すなわち、クロックパルス信号の1パルス
毎に、各プロセッサエレメントPE(x,y)の第4セ
レクタ3201の出力端子Yは、信号SU,SLに基づ
いて入力端子C、入力端子B、入力端子C、入力端子A
の順で順次切り換えられる。各中間レジスタIP(x,
y)の第4セレクタ3201の出力端子Yは、信号S
U,SLに基づいて入力端子C、入力端子B、入力端子
C、入力端子Aの順で順次切り換えられる。入力レジス
タIR(5,1)および入力レジスタIR(5,3)の
転送方向選択部3230の第4セレクタ3231の出力
端子Yは、信号SUに基づいて入力端子B、入力端子
B、入力端子A、入力端子Aの順で順次切り換えられ
る。入力レジスタIR(5,2)の転送方向選択部32
40の第4セレクタ3241の出力端子Yは、信号S
U,SLに基づいて入力端子C、入力端子B、入力端子
C、入力端子Aの順で順次切り換えられる。第1サイド
レジスタSR(x,−1)の転送方向選択部3250の
第4セレクタ3251の出力端子Yは、信号SLに基づ
いて入力端子C、入力端子A、入力端子C、入力端子A
の順で順次に切り換えられる。第2サイドレジスタSR
(x,5)の転送方向選択部3260の第4セレクタ3
261の出力端子Yは、信号SLに基づいて入力端子
C、入力端子A、入力端子C、入力端子Aの順で順次に
切り換えられる。
That is, for each pulse of the clock pulse signal, the output terminal Y of the fourth selector 3201 of each processor element PE (x, y) is set to the input terminal C, the input terminal B, the input terminal B based on the signals SU and SL. Terminal C, input terminal A
In this order. Each intermediate register IP (x,
The output terminal Y of the fourth selector 3201 in FIG.
The input terminal C, the input terminal B, the input terminal C, and the input terminal A are sequentially switched based on U and SL. The output terminals Y of the fourth selector 3231 of the input register IR (5,1) and the transfer direction selector 3230 of the input register IR (5,3) are input terminals B, B and A based on the signal SU. , Input terminal A in this order. Transfer direction selector 32 of input register IR (5,2)
The output terminal Y of the 40th fourth selector 3241 is connected to the signal S
The input terminal C, the input terminal B, the input terminal C, and the input terminal A are sequentially switched based on U and SL. The output terminals Y of the fourth selector 3251 of the transfer direction selector 3250 of the first side register SR (x, -1) are input terminals C, A, C, and A based on the signal SL.
Are sequentially switched. Second side register SR
The fourth selector 3 of the (x, 5) transfer direction selector 3260
The output terminal Y of 261 is sequentially switched in the order of the input terminal C, the input terminal A, the input terminal C, and the input terminal A based on the signal SL.

【0317】このため、各PEプロセッサエレメント
(x,y)および各レジスタ(x,y)に保持されたす
べての画素データは、以降のクロックパルス信号CK1
のそれぞれのパルスに同期して、図10における左方
向、下方向、左方向、上方向のプロセッサエレメントP
E(x,y)または各レジスタ(x,y)に順次に転送
されるとともに、同時に、第2サーチウィンドウ240
の画素データが、サーチウィンドウデータ供給ユニット
2000から入力レジスタIR(5,0),IR(5,
4)に転送される。
For this reason, all the pixel data held in each PE processor element (x, y) and each register (x, y) are transferred to the subsequent clock pulse signal CK1.
10 in synchronization with the respective pulses of the processor elements P in the left, lower, left, and upper directions in FIG.
E (x, y) or sequentially transferred to each register (x, y), and at the same time, the second search window 240
Is input from the search window data supply unit 2000 to the input registers IR (5,0), IR (5,
Transferred to 4).

【0318】次に、クロックパルス信号CK1の7パル
ス目では、図45に示すように、1列目の各プロセッサ
エレメントPE(x,y)および各レジスタ(x,y)
に初めて画素データc(x,y)が転送され、同時に、
現符号化ブロックデータ供給ユニット1000から各プ
ロセッサエレメントPE(x,y)に画素データa
(0,0)が転送される。
Next, at the seventh pulse of the clock pulse signal CK1, as shown in FIG. 45, each processor element PE (x, y) and each register (x, y) in the first column
For the first time, the pixel data c (x, y) is transferred,
Pixel data a from the current coded block data supply unit 1000 to each processor element PE (x, y).
(0,0) is transferred.

【0319】このとき、例えば、プロセッサエレメント
PE(0,0)では、以下の演算処理が行われる。プロ
セッサエレメントPE(0,0)では、まず、画素デー
タc(0,0)が動作モード選択部3100および転送
方向選択部3200の第4セレクタ3201を介して第
1フリップフロップ3202に転送され、減算器330
1の入力端子Aに入力される。
At this time, for example, in the processor element PE (0, 0), the following arithmetic processing is performed. In the processor element PE (0,0), first, the pixel data c (0,0) is transferred to the first flip-flop 3202 via the operation mode selection unit 3100 and the fourth selector 3201 of the transfer direction selection unit 3200, and the subtraction is performed. Vessel 330
1 input terminal A.

【0320】一方、画素データa(0,1)が現符号化
ブロックデータ供給ユニット1000から減算器330
1の入力端子Bに入力される。次いで、減算器3301
では、 c(0,0)−a(0,0) が算出され、さらに、正数変換器3302により正数に
変換され、加算器3304の入力端子Aに入力される。
一方、加算器3304の入力端子Bには、論理積演算器
3303の演算結果が入力されるが、論理積演算器33
03の入力端子Aに、すでにクロックパルス信号CK1
の6パルス目のダウンエッジに同期してパルス信号CL
が入力され、出力端子Yから0を表す信号が出力されて
おり、加算器3304の入力端子Bには0を表すデータ
が入力されている。
On the other hand, the pixel data a (0, 1) is supplied from the current coded block data supply unit 1000 to the subtractor 330.
1 input terminal B. Next, the subtractor 3301
Then, c (0,0) -a (0,0) is calculated, further converted to a positive number by a positive number converter 3302, and input to the input terminal A of the adder 3304.
On the other hand, the operation result of the AND operator 3303 is input to the input terminal B of the adder 3304.
03 is already input to the input terminal A of the clock pulse signal CK1.
Of the pulse signal CL in synchronization with the falling edge of the sixth pulse
, And a signal representing 0 is outputted from the output terminal Y, and data representing 0 is inputted to the input terminal B of the adder 3304.

【0321】次いで、加算器3304で |c(0,0)−a(0,0)| が算出され、第2フリップフロップ3305に転送され
る。次に、クロックパルス信号CK1の8パルス目で
は、図46に示すように、例えば、プロセッサエレメン
トPE(0,0)に画素データc(0,1)が転送さ
れ、同時に、現符号化ブロックデータ供給ユニット10
00から各プロセッサエレメントPE(0,0)に画素
データa(0,1)が転送される。
Next, | c (0,0) −a (0,0) | is calculated by the adder 3304 and transferred to the second flip-flop 3305. Next, at the eighth pulse of the clock pulse signal CK1, for example, the pixel data c (0,1) is transferred to the processor element PE (0,0) as shown in FIG. Supply unit 10
From 00, the pixel data a (0,1) is transferred to each processor element PE (0,0).

【0322】このとき、プロセッサエレメントPE
(0,0)では、まず、画素データc(0,1)が第1
フリップフロップ3202に転送され、次いで、画素デ
ータc(0,1)は、ディストーション算出部3300
の減算器3301の入力端子Aに入力される。一方、画
素データa(0,1)が現符号化ブロックデータ供給ユ
ニット1000から減算器3301の入力端子Bに入力
される。
At this time, the processor element PE
In (0,0), first, the pixel data c (0,1)
The pixel data c (0,1) is transferred to the flip-flop 3202, and then is supplied to the distortion calculator 3300.
Is input to the input terminal A of the subtractor 3301. On the other hand, the pixel data a (0, 1) is input from the current coded block data supply unit 1000 to the input terminal B of the subtractor 3301.

【0323】次いで、減算器3301では、 c(0,1)−a(0,1) が算出され、正数変換器3302により正数に変換さ
れ、加算器3304の入力端子Aに入力される。一方、
加算器3304の入力端子Bには、論理積演算器330
3の演算結果が入力されるが、論理積演算器3303で
は、すでにパルス信号CKが0であるため、第2フリッ
プフロップ3305に転送された |c(0,0)−a(0,0)| が入力端子Bを介して出力端子Yから出力され、次い
で、加算器3304で、 が算出され、第2フリップフロップ3300に転送され
る。
Next, in the subtractor 3301, c (0,1) -a (0,1) is calculated, converted to a positive number by the positive number converter 3302, and input to the input terminal A of the adder 3304. . on the other hand,
The input terminal B of the adder 3304 has a logical product operator 330
3 is input, but in the AND operator 3303, since the pulse signal CK is already 0, the | c (0,0) −a (0,0) transferred to the second flip-flop 3305 Is output from the output terminal Y via the input terminal B, and then | Is calculated and transferred to the second flip-flop 3300.

【0324】次に、クロックパルス信号CK1の9パル
ス目では、図47に示すように、例えば、プロセッサエ
レメントPE(0,0)に画素データc(1,1)が転
送され、同時に、現符号化ブロックデータ供給ユニット
1000からプロセッサエレメントPE(0,0)に画
素データa(1,1)が転送される。このとき、プロセ
ッサエレメントPE(0,0)では、画素データc
(1,1)が第1フリップフロップ3202に転送さ
れ、画素データa(1,1)が現符号化ブロックデータ
供給ユニット1000から減算器3301の入力端子B
に入力され、この結果、 が算出され、第2フリップフロップ3305に転送され
る。
Next, at the ninth pulse of the clock pulse signal CK1, as shown in FIG. 47, for example, the pixel data c (1,1) is transferred to the processor element PE (0,0), and at the same time, the current code The pixel data a (1,1) is transferred from the conversion block data supply unit 1000 to the processor element PE (0,0). At this time, in the processor element PE (0, 0), the pixel data c
(1,1) is transferred to the first flip-flop 3202, and the pixel data a (1,1) is transferred from the current coded block data supply unit 1000 to the input terminal B of the subtractor 3301.
, Which results in Is calculated and transferred to the second flip-flop 3305.

【0325】次に、クロックパルス信号CK1の10パ
ルス目では、図48に示すように、例えば、プロセッサ
エレメントPE(0,0)に画素データc(1,0)が
転送され、同時に、現符号化ブロックデータ供給ユニッ
ト1000からプロセッサエレメントPE(x,y)に
画素データa(1,1)が転送される。このとき、プロ
セッサエレメントPE(0,0)では、画素データc
(1,0)が第1フリップフロップ3202に転送さ
れ、画素データa(0,1)が現符号化ブロックデータ
供給ユニット1000から減算器3301の入力端子B
に入力され、この結果、 が算出され、第2フリップフロップ3305に転送され
る。
Next, at the tenth pulse of the clock pulse signal CK1, as shown in FIG. 48, for example, the pixel data c (1,0) is transferred to the processor element PE (0,0), and at the same time, the current code The pixel data a (1,1) is transferred from the conversion block data supply unit 1000 to the processor element PE (x, y). At this time, in the processor element PE (0, 0), the pixel data c
(1,0) is transferred to the first flip-flop 3202, and the pixel data a (0,1) is supplied from the current coded block data supply unit 1000 to the input terminal B of the subtractor 3301.
, Which results in Is calculated and transferred to the second flip-flop 3305.

【0326】すなわち、プロセッサエレメントPE
(0,0)では、プロセッサエレメントPE(0,0)
と位置的に対応する第2サーチウィンドウ240内の候
補ブロックと現符号化ブロック110とのディストーシ
ョンが求められたことになる。他の各プロッセサエレメ
ントPE(x,y)においても同様にディストーション
が求められ、第1動作モードと同様に9個のディストー
ションが算出される。
That is, the processor element PE
In (0,0), the processor element PE (0,0)
That is, the distortion between the candidate block in the second search window 240 and the current coded block 110 corresponding to the position is obtained. In each of the other processor elements PE (x, y), a distortion is similarly obtained, and nine distortions are calculated in the same manner as in the first operation mode.

【0327】次に、クロックパルス信号CK1の11パ
ルス目〜14パルス目では、第1動作モードと同様に、
ディストーション算出ユニット3000で算出された9
個のディストーションが列毎に候補ブロック特定ユニッ
ト4000に転送され、候補ブロック特定ユニット40
00では、これら9個のディストーションに基づいて最
小ディストーションが検出されるとともに、動きベクト
ルが特定される。
Next, in the eleventh to fourteenth pulses of the clock pulse signal CK1, as in the first operation mode,
9 calculated by the distortion calculation unit 3000
Are transferred to the candidate block specifying unit 4000 for each column, and the candidate block specifying unit 40
In 00, a minimum distortion is detected based on these nine distortions, and a motion vector is specified.

【0328】また、ディストーション算出ユニット30
00では、図49〜52に示すように、現符号化ブロッ
クデータ供給ユニット1000とサーチウィンドウデー
タ供給ユニット2000からそれぞれ画素データが順次
入力され、図53に示すように、現符号化ブロック11
0に対して水平方向に隣接する現符号化ブロック111
と第2サーチウィンドウ240から2画素分水平方向に
シフトした第2サーチウィンドウ241内の候補ブロッ
クとの9個のディストーションが算出される。
The distortion calculation unit 30
At 00, pixel data is sequentially input from the current coded block data supply unit 1000 and the search window data supply unit 2000, respectively, as shown in FIGS. 49 to 52, and as shown in FIG.
The current coded block 111 horizontally adjacent to 0
Nine distortions are calculated with the candidate block in the second search window 241 shifted horizontally by two pixels from the second search window 240.

【0329】すなわち、第2動作モードにおいても、第
1動作モードと同様に、ディストーション算出処理と最
小ディストーション検出処理・動きベクトル特定処理と
のパイプライン化が実現されている。また、第2サーチ
ウィンドウ241の画素データは、第2サーチウィンド
ウ240と共通する画素データを除いた残りの画素デー
タを列毎にサーチウィンドウデータ供給ユニット200
0から出力すればよい。
That is, in the second operation mode, as in the first operation mode, a pipeline of the distortion calculation processing, the minimum distortion detection processing, and the motion vector identification processing is realized. In addition, the pixel data of the second search window 241 is the same as the pixel data of the second search window 240 except for the pixel data that is common to the second search window 240.
What is necessary is just to output from 0.

【0330】なお、上記実施例では、現符号化ブロック
110を2行2列の画素からなるとしたため、クロック
パルス信号CK1の4パルス毎に動きベクトルが求めら
れることになるが、図54および図55に示すように、
現符号化ブロック112をN行M列で表し、サーチウィ
ンドウ240をH行L列で表した場合には、列方向に隣
接した現符号化ブロックとこの現符号化ブロックに対応
するM画素分水平方向にシフトしたサーチウィンドウか
ら求められる動きベクトルは、クロックパルス信号CK
1のM×Nパルスを1サイクルとして順次求められるこ
とになる。
In the above embodiment, since the current encoding block 110 is composed of pixels in two rows and two columns, a motion vector is obtained for every four pulses of the clock pulse signal CK1. As shown in
When the current coded block 112 is represented by N rows and M columns and the search window 240 is represented by H rows and L columns, the current coded block adjacent in the column direction and the M pixels corresponding to the current coded block are horizontally arranged. The motion vector obtained from the search window shifted in the direction is the clock pulse signal CK.
One M × N pulse is sequentially obtained as one cycle.

【0331】なお、この場合の第1サイドレジスタグル
ープ3910および第2サイドレジスタグループ392
0については、次の実施例2において説明する。また、
上記実施例では、動作モードを第1動作モードおよび第
2動作モードに限って説明したが、動作モード選択ユニ
ット6000の信号SVおよび信号SHを独立に制御す
ることにより、さらに2つの動作モードのサーチウィン
ドウを選択することができる。
Note that, in this case, the first side register group 3910 and the second side register group 392
0 will be described in the second embodiment. Also,
In the above embodiment, the operation mode has been described as being limited to the first operation mode and the second operation mode. However, by independently controlling the signals SV and SH of the operation mode selection unit 6000, the search for two more operation modes is performed. You can select a window.

【0332】すなわち、信号SV,SHがともに0の場
合には、サーチウィンドウは、6行6列の画素データか
らなり(第1動作モード)、信号SV,SHがそれぞれ
0,1の場合には、サーチウィンドウは、6行4列の画
素データからなり、信号SV,SHがそれぞれ1,0の
場合には、サーチウィンドウは、4行6列の画素データ
からなり、信号SV,SHがともに1の場合には、サー
チウィンドウは、4行4列の画素データからなり(第2
動作モード)、4種類のサイズのサーチウィンドウを選
択することができる。
That is, when the signals SV and SH are both 0, the search window consists of pixel data of 6 rows and 6 columns (first operation mode). When the signals SV and SH are 0 and 1, respectively. , The search window is made up of 6 rows and 4 columns of pixel data, and when the signals SV and SH are 1 and 0, respectively, the search window is made up of 4 rows and 6 columns of pixel data, and both the signals SV and SH are set to 1 In the case of (1), the search window consists of pixel data of 4 rows and 4 columns (second
Operation mode) Search windows of four different sizes can be selected.

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

【0334】第3サイドレジスタグループ3930は、
図56に示すように、6個の第3サイドレジスタ,SR(0,
5),SR(1, 5),SR(2, 5),SR(3, 5),SR(4, 5),SR(5, 5)に
より構成されている。
The third side register group 3930 is
As shown in FIG. 56, six third side registers, SR (0,
5), SR (1, 5), SR (2, 5), SR (3, 5), SR (4, 5), SR (5, 5).

【0335】次に、各第3サイドレジスタSR(x,
5)の基本的な端子配置およびブロック図を説明する。
図57に示すように、各第3サイドレジスタSR(x,
5)は、入力端子YUi1,YDi1,YHi1,YH
i2および出力端子YUo,YDo,YHoを有し、さ
らに、図5に示された信号出力ユニット5000の出力
端子に接続された図示しない入力端子および動作モード
選択ユニット6000の出力端子P62に接続された図
示しない入力端子を有している。
Next, each third side register SR (x,
The basic terminal arrangement and block diagram of 5) will be described.
As shown in FIG. 57, each third side register SR (x,
5) are input terminals YUi1, YDi1, YHi1, YH
i2 and output terminals YUo, YDo, YHo, and further connected to an input terminal (not shown) connected to the output terminal of the signal output unit 5000 shown in FIG. 5 and the output terminal P62 of the operation mode selection unit 6000. It has an input terminal not shown.

【0336】また、図58に示すように、各第3サイド
レジスタSR(x,5)は、動作モード選択部3150
および転送方向選択部3270から構成されている。動
作モード選択部3150は、第3セレクタ3153によ
って構成される。第3セレクタ3153は、入力端子
S,A,Bおよび出力端子Yを有する。入力端子Sは、
動作モード選択ユニット6000の出力端子P62に電
気的に接続される。
As shown in FIG. 58, each third side register SR (x, 5) includes an operation mode selection unit 3150
And a transfer direction selection unit 3270. The operation mode selection unit 3150 includes a third selector 3153. The third selector 3153 has input terminals S, A, B and an output terminal Y. The input terminal S is
It is electrically connected to the output terminal P62 of the operation mode selection unit 6000.

【0337】第3セレクタ3153は、動作モード選択
ユニット6000から出力され信号SHを入力端子Sを
通して入力し、入力された信号SHに基づいて入力端子
Aおよび入力端子Bの何れか一方の入力端子と出力端子
Yを電気的に接続する切換器であり、信号SHが0のと
き、入力端子Aと出力端子Yを電気的に接続し、信号S
Hが1のとき、入力端子Bと出力端子Yを電気的に接続
する。
The third selector 3153 inputs the signal SH output from the operation mode selection unit 6000 through the input terminal S, and receives one of the input terminals A and B based on the input signal SH. A switch for electrically connecting the output terminal Y. When the signal SH is 0, the input terminal A is electrically connected to the output terminal Y,
When H is 1, the input terminal B and the output terminal Y are electrically connected.

【0338】第3セレクタ3153の入力端子Aは、入
力端子YHi1を介して第3サイドレジスタSR(x+
1,y)の出力端子YHoに電気的に接続される。入力
端子Bは、入力端子YHi2を介して第3サイドレジス
タSR(x+2,y)出力端子YHoに電気的に接続さ
れる。出力端子Yは、第4セレクタ3271の入力端子
Cに電気的に接続される。
The input terminal A of the third selector 3153 is connected to the third side register SR (x +
1, y) is electrically connected to the output terminal YHo. The input terminal B is electrically connected to the third side register SR (x + 2, y) output terminal YHo via the input terminal YHi2. The output terminal Y is electrically connected to the input terminal C of the fourth selector 3271.

【0339】次に、転送方向選択部3270は、第4セ
レクタ3271および第1フリップフロップ3272か
ら構成される。第4セレクタ3271は、入力端子S
0,S1,A,B,Cおよび出力端子Yを有する。入力
端子S0は、信号出力ユニット5000の出力端子P5
3に電気的に接続される。入力端子S1は、信号出力ユ
ニット5000の出力端子P54に電気的に接続され
る。入力端子Aは、入力端子YUi1を介してプロセッ
サエレメントPE(x,0)または中間レジスタIP
(x,0)の出力端子YUoに電気的に接続される。入
力端子Bは、入力端子YDi1を介してプロセッサエレ
メントPE(x,4)または中間レジスタIP(x,
4)の出力端子YUoに電気的に接続される。入力端子
Cは、第3セレクタ3153の出力端子Yに電気的に接
続される。出力端子Yは、第1フリップフロップ327
2の入力端子aに電気的に接続される。
Next, the transfer direction selecting section 3270 comprises a fourth selector 3271 and a first flip-flop 3272. The fourth selector 3271 has an input terminal S
0, S1, A, B, C and an output terminal Y. The input terminal S0 is connected to the output terminal P5 of the signal output unit 5000.
3 is electrically connected. Input terminal S1 is electrically connected to output terminal P54 of signal output unit 5000. The input terminal A is connected to the processor element PE (x, 0) or the intermediate register IP via the input terminal YUi1.
It is electrically connected to the output terminal YUo of (x, 0). The input terminal B is connected to the processor element PE (x, 4) or the intermediate register IP (x, x) via the input terminal YDi1.
4) is electrically connected to the output terminal YUo. The input terminal C is electrically connected to the output terminal Y of the third selector 3153. The output terminal Y is connected to the first flip-flop 327
2 is electrically connected to the input terminal a.

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

【0341】第1フリップフロップ3272は、Dフリ
ップフロップからなり、入力端子s,aおよび出力端子
bを有する。入力端子sは、信号出力ユニット5000
の出力端子P51に電気的に接続される。第3フリップ
フロップ3212は、信号出力ユニット5000から出
力されたクロックパルス信号CK1を入力端子sを通し
て入力し、入力されたクロックパルス信号CK1の1パ
ルス毎に同期して、入力端子aに入力されたデータを出
力端子bにラッチする。
The first flip-flop 3272 is formed of a D flip-flop and has input terminals s, a and an output terminal b. The input terminal s is a signal output unit 5000
Is electrically connected to the output terminal P51. The third flip-flop 3212 inputs the clock pulse signal CK1 output from the signal output unit 5000 through the input terminal s, and is input to the input terminal a in synchronization with each pulse of the input clock pulse signal CK1. The data is latched at the output terminal b.

【0342】第1フリップフロップ3272の出力端子
bは、出力端子YUoを介して同列のプロセッサエレメ
ントPE(x,4)または中間レジスタIP(x,4)
の入力端子YDi1と電気的に接続され、出力端子YD
oを介して同列のプロセッサエレメントPE(x,0)
または中間レジスタIP(x,0)の入力端子YDi1
と電気的に接続され、出力端子YHoを介して第3サイ
ドレジスタSR(x−1,5)の入力端子YHi1およ
び第3サイドレジスタSR(x−2,5)の入力端子Y
Hi2に電気的に接続される。
The output terminal b of the first flip-flop 3272 is connected to the processor element PE (x, 4) or the intermediate register IP (x, 4) in the same column via the output terminal YUo.
Is electrically connected to the input terminal YDi1 of the
o through the same processor element PE (x, 0)
Alternatively, the input terminal YDi1 of the intermediate register IP (x, 0)
And an input terminal YHi1 of the third side register SR (x-1,5) and an input terminal Y of the third side register SR (x-2,5) via an output terminal YHo.
It is electrically connected to Hi2.

【0343】各第3サイドレジスタSR(x,5)もプ
ロセッサエレメントPE(x,y)と同様に図11に示
された配置位置の違いにより、端子配置およびブロック
図が異なる。以下、その違いを説明する。まず、第3サ
イドレジスタSR(0,5)は、図57に示された出力
端子YHoをもたない。
Each of the third side registers SR (x, 5) has a different terminal arrangement and block diagram due to the difference in arrangement position shown in FIG. 11, similarly to the processor element PE (x, y). Hereinafter, the difference will be described. First, the third side register SR (0,5) does not have the output terminal YHo shown in FIG.

【0344】次に、第3サイドレジスタSR(1,5)
およびSR(3,5)は、図57に示された入力端子Y
Hi2をもたない。また、第3サイドレジスタSR
(1,5)およびSR(3,5)のブロック図は、図5
8に示された動作モード選択部3150をもたない。こ
こで、転送方向選択部3270の第4セレクタ3271
の入力端子Bは、入力端子YHi1を介して第3サイド
レジスタSR(x+1,5)の出力端子YHoに電気的
に接続される。出力端子YHoは、第3サイドレジスタ
SR(x−1,5)の入力端子YHi1に電気的に接続
される。
Next, the third side register SR (1,5)
And SR (3,5) are input terminals Y shown in FIG.
Does not have Hi2. Also, the third side register SR
The block diagrams of (1,5) and SR (3,5) are shown in FIG.
8 does not have the operation mode selection unit 3150 shown in FIG. Here, the fourth selector 3271 of the transfer direction selection unit 3270
Is electrically connected to the output terminal YHo of the third side register SR (x + 1,5) via the input terminal YHi1. The output terminal YHo is electrically connected to the input terminal YHi1 of the third side register SR (x-1,5).

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

【0346】このため、実施例1では、図11における
上方向に画素データを転送する場合には、第1サイドレ
ジスタグループ3910が画素データを一時的に記憶す
るバッファとなり、図11における下方向に画素データ
を転送する場合には、第2サイドレジスタグループ39
20が画素データを一時的に記憶するバッファとなるよ
うに、プロセッサエレメントPE(x,y)および中間
レジスタIP(x,y)からなる2次元配列プロセッサ
グループ3800の両側に各サイドレジスタSR(x,
y)を配置したが、本実施例2では、2次元配列プロセ
ッサグループ3801の片側に各第3サイドレジスタS
R(x,5)を配置すればよく、サイドレジスタグルー
プの回路規模を半減することができる。
For this reason, in the first embodiment, when pixel data is transferred in the upward direction in FIG. 11, the first side register group 3910 serves as a buffer for temporarily storing pixel data, and in the downward direction in FIG. When transferring pixel data, the second side register group 39 is used.
Each side register SR (x) is provided on both sides of a two-dimensional array processor group 3800 including a processor element PE (x, y) and an intermediate register IP (x, y) so that 20 serves as a buffer for temporarily storing pixel data. ,
In the second embodiment, each third side register S is located on one side of the two-dimensional array processor group 3801.
R (x, 5) may be arranged, and the circuit scale of the side register group can be reduced by half.

【0347】なお、本実施例における動きベクトルを求
める動作は、第1動作モードの場合には、図6および図
7に示されたタイムチャートに基づいて、第2動作モー
ドの場合には、図8および図9に示されたタイムチャー
トに基づいて、実施例1と同様に行われることはいうま
でもない。ところで、上記実施例1および実施例2にお
いては、第1サイドレジスタグループ3910、第2サ
イドレジスタグループ3920および第3サイドレジス
タグループ3930は、列毎に一つのサイドレジスタS
R(x,y)によって構成されているが、図59に示す
ように、現符号化ブロックをN行M行で表すと、各サイ
ドレジスタグループは、列毎に互いに直列に電気的に接
続された(Nー1)行のサイドレジスタSR(x,y)
によって構成される。また、それぞれの行のサイドレジ
スタSR(x,y)は、プロセッサエレメントPE
(x,y)、中間レジスタIP(x,y)または入力レ
ジスタIR(x,y)に接続されたサイドレジスタSR
(x,y)と同様に、同行のサイドレジスタSR(x,
y)と電気的に接続される。
The operation for obtaining the motion vector in the present embodiment is based on the time charts shown in FIGS. 6 and 7 in the first operation mode, and is based on the time charts in the second operation mode. Needless to say, the operation is performed in the same manner as in the first embodiment based on the time charts shown in FIGS. By the way, in the first and second embodiments, the first side register group 3910, the second side register group 3920, and the third side register group 3930 include one side register S for each column.
R (x, y). As shown in FIG. 59, when the current coding block is represented by N rows and M rows, the side register groups are electrically connected to each other in series for each column. (N-1) row side register SR (x, y)
Composed of Further, the side register SR (x, y) of each row stores the processor element PE.
(X, y), the side register SR connected to the intermediate register IP (x, y) or the input register IR (x, y)
Similarly to (x, y), the side register SR (x,
y).

【0348】また、実際に回路を構成する場合には、例
えば、図60に示すように、2次元配列プロセッサグル
ープ3801のそれぞれの列の間に列毎に各プロセッサ
エレメントPE(x,y)、各中間レジスタIP(x,
y)および各サイドレジスタSR(x,y)間の距離が
均一になるように配置することで、短い転送バスを形成
することができるので、誤りの少ない安定した回路を構
成することができるとともに、回路規模を小さくするこ
とができる。
When an actual circuit is constructed, for example, as shown in FIG. 60, each processor element PE (x, y), Each intermediate register IP (x,
y) and the side registers SR (x, y) are arranged so that the distance between them becomes uniform, so that a short transfer bus can be formed, so that a stable circuit with few errors can be configured. Thus, the circuit scale can be reduced.

【0349】(実施例3)図61〜68は本発明に係る
実施例3の動きベクトル探索装置を示す図である。本実
施例3では、本発明の特徴部分を具体的に説明する。図
61に示すように、ディストーション算出ユニット30
04は、2次元配列プロセッサグループ3804をプロ
セッサエレメントPE(x,y)および中間レジスタI
P(x,y)からなる9行13列のマトリックス状に配
置し、さらに、2次元配列プロセッサグループ3804
の右側に9個の入力レジスタIR(x,y)からなる入
力レジスタグループ3904を配置し、2次元配列プロ
セッサグループ3804の上下にそれぞれ14個のサイ
ドレジスタSR(x,y)からなる第1サイドレジスタ
グループ3914および第2サイドレジスタグループ3
924を配置したものである。ここで、プロセッサエレ
メントPE(x,y)には、2種類あり、傾斜方向の異
なる斜線で示されており、また、各レジスタ(x,y)
は無地で示されている。
(Embodiment 3) FIGS. 61 to 68 show a motion vector search apparatus according to Embodiment 3 of the present invention. In the third embodiment, a characteristic portion of the present invention will be specifically described. As shown in FIG. 61, the distortion calculation unit 30
04 stores the two-dimensional array processor group 3804 with the processor element PE (x, y) and the intermediate register I
P (x, y) are arranged in a matrix of 9 rows and 13 columns, and a two-dimensional array processor group 3804
An input register group 3904 consisting of nine input registers IR (x, y) is arranged on the right side of the two-dimensional array processor group 3804, and a first side consisting of 14 side registers SR (x, y) respectively above and below the two-dimensional array processor group 3804. Register group 3914 and second side register group 3
924 are arranged. Here, there are two types of processor elements PE (x, y), which are indicated by diagonal lines having different inclination directions, and each register (x, y).
Is shown in solid color.

【0350】まず、2次元配列プロセッサグループ38
04の水平方向の外側に位置しているプロセッサエレメ
ントPE(x,y)の端子配置は、図63に示すよう
に、図12で示されたプロセッサエレメントPE(x,
y)の端子配置からYUi2およびYDi2を除いたも
のである。また、プロセッサエレメントPE(x,y)
のブロック図は、図64に示すように、図13に示され
たプロセッサエレメント(x,y)のブロック図から動
作モード選択部3100の第1セレクタ3101および
第2セレクタ3102を除いたものである。
First, the two-dimensional array processor group 38
As shown in FIG. 63, the terminal arrangement of the processor element PE (x, y) located outside the horizontal direction of the processor element PE 04 is as shown in FIG.
This is the result of removing YUi2 and YDi2 from the terminal arrangement of y). Further, the processor element PE (x, y)
As shown in FIG. 64, the block diagram of FIG. 64 is obtained by removing the first selector 3101 and the second selector 3102 of the operation mode selector 3100 from the block diagram of the processor element (x, y) shown in FIG. .

【0351】ここで、転送方向選択部3200の第4セ
レクタ3201の入力端子Aは、入力端子YUi1を介
してプロセッサエレメントPE(x,y+1)または第
2サイドレジスタSR(x,y+1)の出力端子YUo
に電気的に接続される。第4セレクタ3201の入力端
子Bは、入力端子YDi1を介してプロセッサエレメン
トPE(x,y−1)または第1サイドレジスタSR
(x,y−1)の出力端子YUoに電気的に接続され
る。出力端子YUoは、隣接するプロセッサエレメント
PE(x,y−1)または第1サイドレジスタSR
(x,y−1)の入力端子YUi1に電気的に接続され
る。出力端子YDoは、隣接するプロセッサエレメント
PE(x,y+1)または第2サイドレジスタSR
(x,y+1)の入力端子YDi1に電気的に接続され
る。
Here, the input terminal A of the fourth selector 3201 of the transfer direction selector 3200 is connected to the output terminal of the processor element PE (x, y + 1) or the second side register SR (x, y + 1) via the input terminal YUi1. YUo
Is electrically connected to The input terminal B of the fourth selector 3201 is connected to the processor element PE (x, y-1) or the first side register SR via the input terminal YDi1.
It is electrically connected to the output terminal YUo of (x, y-1). The output terminal YUo is connected to the adjacent processor element PE (x, y-1) or the first side register SR.
It is electrically connected to the input terminal YUi1 of (x, y-1). The output terminal YDo is connected to the adjacent processor element PE (x, y + 1) or the second side register SR.
It is electrically connected to the input terminal YDi1 of (x, y + 1).

【0352】次に、2次元配列プロセッサグループ38
04の列方向の中央に位置しているプロセッサエレメン
トPE(x,y)の端子配置は、図65に示すように、
図12で示されたプロセッサエレメントPE(x,y)
の端子配置からYUi2、YDi2およびYHi2を除
いたものである。また、プロセッサエレメントPE
(x,y)のブロック図は、図65に示すように、図1
3に示されたプロセッサエレメント(x,y)のブロッ
ク図から動作モード選択部3100を除いたものであ
る。
Next, the two-dimensional array processor group 38
As shown in FIG. 65, the terminal arrangement of the processor element PE (x, y) located at the center in the column direction of FIG.
Processor element PE (x, y) shown in FIG.
Are removed from the terminal arrangement of YUi2, YDi2 and YHi2. Also, the processor element PE
The block diagram of (x, y) is, as shown in FIG.
The operation mode selection unit 3100 is removed from the block diagram of the processor element (x, y) shown in FIG.

【0353】ここで、転送方向選択部3200の第4セ
レクタ3201の入力端子Aは、入力端子YUi1を介
してプロセッサエレメントPE(x,y+1)または第
2サイドレジスタSR(x,y+1)の出力端子YUo
に電気的に接続される。第4セレクタ3201の入力端
子Bは、入力端子YDi1を介してプロセッサエレメン
トPE(x,y−1)または第1サイドレジスタSR
(x,y−1)の出力端子YUoに電気的に接続され
る。第4セレクタ3201の入力端子Cは、入力端子Y
Hi1を介してプロセッサエレメントPE(x,y+
1)または中間レジスタIR(x+1,y)の出力端子
YHoに電気的に接続される。
Here, the input terminal A of the fourth selector 3201 of the transfer direction selector 3200 is connected to the output terminal of the processor element PE (x, y + 1) or the second side register SR (x, y + 1) via the input terminal YUi1. YUo
Is electrically connected to The input terminal B of the fourth selector 3201 is connected to the processor element PE (x, y-1) or the first side register SR via the input terminal YDi1.
It is electrically connected to the output terminal YUo of (x, y-1). The input terminal C of the fourth selector 3201 is connected to the input terminal Y
The processor element PE (x, y +
1) or electrically connected to the output terminal YHo of the intermediate register IR (x + 1, y).

【0354】出力端子YUoは、隣接するプロセッサエ
レメントPE(x,y−1)または第1サイドレジスタ
SR(x,y−1)の入力端子YUi1に電気的に接続
される。出力端子YDoは、隣接するプロセッサエレメ
ントPE(x,y+1)または第2サイドレジスタSR
(x,y+1)の入力端子YDi1に電気的に接続され
る。出力端子YHoは、隣接するプロセッサエレメント
PE(x−1,y)または中間レジスタIP(x−1,
y)の入力端子YHi1に電気的に接続される。
The output terminal YUo is electrically connected to the input terminal YUi1 of the adjacent processor element PE (x, y-1) or the first side register SR (x, y-1). The output terminal YDo is connected to the adjacent processor element PE (x, y + 1) or the second side register SR.
It is electrically connected to the input terminal YDi1 of (x, y + 1). The output terminal YHo is connected to the adjacent processor element PE (x-1, y) or the intermediate register IP (x-1,
y) is electrically connected to the input terminal YHi1.

【0355】すなわち、ディストーション算出ユニット
3004では、信号出力ユニット5000から出力され
た信号SHに基づいて水平方向の探索範囲が切り換えら
れる。第1動作モードの場合には、9行13列の2次元
配列プロセッサグループ3804に対応した第1サーチ
ウィンドウの範囲から簡略的な探索方法により動きベク
トルが探索され、第2動作モードの場合には、中間レジ
スタIP(x,y)が無視され、9行9列の2次元配列
プロセッサグループ3804に対応した第2サーチウィ
ンドウの範囲から全点探索法により動きベクトルが探索
される。
That is, in the distortion calculating unit 3004, the search range in the horizontal direction is switched based on the signal SH output from the signal output unit 5000. In the case of the first operation mode, a motion vector is searched by a simple search method from the range of the first search window corresponding to the 9-row, 13-column two-dimensional array processor group 3804. In the case of the second operation mode, , The intermediate register IP (x, y) is ignored, and a motion vector is searched by the all-points search method from the range of the second search window corresponding to the two-dimensional array processor group 3804 of 9 rows and 9 columns.

【0356】次に、図62に示されたディストーション
算出ユニット3005を説明する。ディストーション算
出ユニット3005は、2次元配列プロセッサグループ
3805をプロセッサエレメントPE(x,y)および
中間レジスタIP(x,y)からなる13行9列のマト
リックス状に配置し、さらに、2次元配列プロセッサグ
ループ3805の右側に13個の入力レジスタIR
(x,y)からなる入力レジスタグループ3905を配
置し、2次元配列プロセッサグループ3805の上下に
それぞれ10個のサイドレジスタSR(x,y)からな
る第1サイドレジスタグループ3915および第2サイ
ドレジスタグループ3925を配置したものである。こ
こで、プロセッサエレメントPE(x,y)には、2種
類あり、傾斜方向の異なる斜線で示されており、また、
各レジスタ(x,y)は無地で示されている。
Next, the distortion calculating unit 3005 shown in FIG. 62 will be described. The distortion calculation unit 3005 arranges the two-dimensional array processor group 3805 in a matrix of 13 rows and 9 columns including the processor elements PE (x, y) and the intermediate register IP (x, y). 13 input registers IR on the right side of 3805
An input register group 3905 consisting of (x, y) is arranged, and a first side register group 3915 and a second side register group consisting of ten side registers SR (x, y) respectively above and below the two-dimensional array processor group 3805. 3925 are arranged. Here, there are two types of processor elements PE (x, y), which are indicated by diagonal lines having different inclination directions.
Each register (x, y) is shown in solid color.

【0357】まず、2次元配列プロセッサグループ38
05の垂直方向の外側に位置しているプロセッサエレメ
ントPE(x,y)の端子配置は、図67に示すよう
に、図12で示されたプロセッサエレメントPE(x,
y)の端子配置からYHi2を除いたものである。ま
た、プロセッサエレメントPE(x,y)のブロック図
は、図68に示すように、図13に示されたプロセッサ
エレメント(x,y)のブロック図から動作モード選択
部3100の第3セレクタ3103を除いたものであ
る。
First, the two-dimensional array processor group 38
As shown in FIG. 67, the terminal arrangement of the processor element PE (x, y) located on the outside in the vertical direction of FIG.
This is obtained by removing YHi2 from the terminal arrangement of y). As shown in FIG. 68, the block diagram of the processor element PE (x, y) is obtained by adding the third selector 3103 of the operation mode selection unit 3100 to the block diagram of the processor element (x, y) shown in FIG. Excluded.

【0358】ここで、転送方向選択部3200の第4セ
レクタ3201の入力端子Cは、入力端子YHi1を介
して隣接するプロセッサエレメントPE(x+1,y)
または入力レジスタIR(x+1,y)の出力端子YU
oに電気的に接続される。出力端子YHoは、隣接する
プロセッサエレメントPE(x−1,y)の入力端子Y
Hi1に電気的に接続される。
Here, the input terminal C of the fourth selector 3201 of the transfer direction selector 3200 is connected to the adjacent processor element PE (x + 1, y) via the input terminal YHi1.
Alternatively, the output terminal YU of the input register IR (x + 1, y)
o is electrically connected. The output terminal YHo is connected to the input terminal Y of the adjacent processor element PE (x-1, y).
It is electrically connected to Hi1.

【0359】次に、2次元配列プロセッサグループ38
05の行方向の中央に位置しているプロセッサエレメン
トPE(x,y)の端子配置は、図65に示されたプロ
セッサエレメントPE(x,y)の端子配置と同じであ
り、また、プロセッサエレメントPE(x,y)のブロ
ック図は、図66に示されたプロセッサエレメント
(x,y)のブロック図と同じである。
Next, the two-dimensional array processor group 38
The terminal arrangement of the processor element PE (x, y) located at the center of the row direction 05 in the row direction is the same as the terminal arrangement of the processor element PE (x, y) shown in FIG. The block diagram of the PE (x, y) is the same as the block diagram of the processor element (x, y) shown in FIG.

【0360】ここで、転送方向選択部3200の第4セ
レクタ3201の入力端子Aは、入力端子YUi1を介
してプロセッサエレメントPE(x,y+1)、中間レ
ジスタIP(x,y)または第2サイドレジスタSR
(x,y+1)の出力端子YUoに電気的に接続され
る。第4セレクタ3201の入力端子Bは、入力端子Y
Di1を介してプロセッサエレメントPE(x,y−
1)、中間レジスタIP(x,y−1)または第1サイ
ドレジスタSR(x,y−1)の出力端子YUoに電気
的に接続される。第4セレクタ3201の入力端子C
は、入力端子YHi1を介してプロセッサエレメントP
E(x,y+1)または入力レジスタIR(x+1,
y)の出力端子YHoに電気的に接続される。
Here, the input terminal A of the fourth selector 3201 of the transfer direction selector 3200 is connected to the processor element PE (x, y + 1), the intermediate register IP (x, y) or the second side register via the input terminal YUi1. SR
It is electrically connected to the output terminal YUo of (x, y + 1). The input terminal B of the fourth selector 3201 is connected to the input terminal Y
The processor element PE (x, y-
1), it is electrically connected to the output terminal YUo of the intermediate register IP (x, y-1) or the first side register SR (x, y-1). Input terminal C of fourth selector 3201
Is connected to the processor element P via the input terminal YHi1.
E (x, y + 1) or input register IR (x + 1,
y) is electrically connected to the output terminal YHo.

【0361】出力端子YUoは、隣接するプロセッサエ
レメントPE(x,y−1)、中間レジスタIP(x,
y−1)または第1サイドレジスタSR(x,y−1)
の入力端子YUi1に電気的に接続される。出力端子Y
Doは、隣接するプロセッサエレメントPE(x,y+
1)、中間レジスタ(x,y+1)または第2サイドレ
ジスタSR(x,y+1)の入力端子YDi1に電気的
に接続される。出力端子YHoは、隣接するプロセッサ
エレメントPE(x−1,y)または中間レジスタIP
(x−1,y)の入力端子YHi1に電気的に接続され
る。
The output terminal YUo is connected to the adjacent processor element PE (x, y-1) and the intermediate register IP (x, y).
y-1) or the first side register SR (x, y-1)
Is electrically connected to the input terminal YUi1. Output terminal Y
Do is an adjacent processor element PE (x, y +
1), is electrically connected to the input terminal YDi1 of the intermediate register (x, y + 1) or the second side register SR (x, y + 1). The output terminal YHo is connected to the adjacent processor element PE (x-1, y) or the intermediate register IP.
(X-1, y) is electrically connected to the input terminal YHi1.

【0362】すなわち、ディストーション算出ユニット
3005では、信号出力ユニット5000から出力され
た信号SVに基づいて垂直方向の探索範囲が切り換えら
れる。第1動作モードの場合には、13行9列の2次元
配列プロセッサグループ3805に対応した第1サーチ
ウィンドウの範囲から簡略的な探索方法により動きベク
トルが探索され、第2動作モードの場合には、中間レジ
スタIP(x,y)が無視され、9行9列の2次元配列
プロセッサグループ3805に対応した第2サーチウィ
ンドウの範囲から全点探索法により動きベクトルが探索
される。
That is, the distortion calculation unit 3005 switches the search range in the vertical direction based on the signal SV output from the signal output unit 5000. In the case of the first operation mode, a motion vector is searched by a simple search method from the range of the first search window corresponding to the 13-row / 9-column two-dimensional array processor group 3805. In the case of the second operation mode, , The intermediate register IP (x, y) is ignored, and a motion vector is searched for from the range of the second search window corresponding to the two-dimensional array processor group 3805 having nine rows and nine columns by the all-points search method.

【0363】2次元配置プロセッサ3804および38
05は、ともに中央近辺ににプロセッサエレメントPE
(x,y)を密度高く配置して、中心から離れるにした
がって中間レジスタIP(x,y)を配置してプロッセ
ッサエレメントPE(x,y)の密度を減らしている。
これは、動きの激しい画像に対しては、第1動作モード
を選択し、広い探索範囲から動きベクトルを求めるとと
もに、それほど動きが激しくない画像に対しては、第2
動作モードを選択し、予測精度を落さずに動きベクトル
を求めるように配慮したものである。
Two-dimensional placement processors 3804 and 38
05 is a processor element PE near the center.
(X, y) is arranged at a high density, and the intermediate register IP (x, y) is arranged at a position away from the center to reduce the density of the processor element PE (x, y).
This is because the first operation mode is selected for an image with a sharp movement and a motion vector is obtained from a wide search range, and the second operation mode is selected for an image with a small movement.
Consideration is given to selecting an operation mode and obtaining a motion vector without lowering the prediction accuracy.

【0364】また、一般に動画像では、画像の動きは、
垂直方向の動きよりも水平方向の動きのほうが激しい傾
向にある。このため、動きベクトルも水平方向に広い探
索範囲において求める必要がある。従って、プロセッサ
エレメントPE(x,y)および中間レジスタIP
(x,y)が同数であっても、図62に示されたディス
トーション算出ユニット3005の配置よりも図61に
示されたディストーション算出ユニット3004の配置
のほうが実用上採用される場合が多い。
In general, in a moving image, the motion of the image is
Horizontal movements tend to be more intense than vertical movements. Therefore, it is necessary to obtain a motion vector in a wide search range in the horizontal direction. Therefore, the processor element PE (x, y) and the intermediate register IP
Even if (x, y) is the same, the arrangement of the distortion calculation unit 3004 shown in FIG. 61 is often adopted practically more than the arrangement of the distortion calculation unit 3005 shown in FIG.

【0365】[0365]

【発明の効果】請求項1記載の発明によれば、前記動作
モード選択手段で第1動作モードが選択された場合、前
記サーチウィンドウデータ供給ユニットから供給された
第1サーチウィンドウの画素データと現符号化ブロック
データ供給ユニットから供給された現符号化ブロックの
画素データに基づいてディストーション算出ユニットの
複数のプロセッサエレメントによりそれぞれのディスト
ーションが算出される。
According to the first aspect of the present invention, when the first operation mode is selected by the operation mode selection means, the pixel data of the first search window supplied from the search window data supply unit and the current data are output. Each distortion is calculated by a plurality of processor elements of the distortion calculation unit based on the pixel data of the current coded block supplied from the coded block data supply unit.

【0366】一方、前記動作モード選択手段で第2動作
モードが選択された場合、前記サーチウィンドウデータ
供給ユニットから供給された第2サーチウィンドウの画
素データと現符号化ブロックデータ供給ユニットから供
給された現符号化ブロックの画素データに基づいてディ
ストーション算出ユニットの複数のプロセッサエレメン
トによりそれぞれのディストーションが算出される。
On the other hand, when the second operation mode is selected by the operation mode selecting means, the pixel data of the second search window supplied from the search window data supply unit and the pixel data supplied from the current coded block data supply unit are supplied. Each distortion is calculated by a plurality of processor elements of the distortion calculation unit based on the pixel data of the current coding block.

【0367】このため、中間レジスタを配置すること
で、プロセッサエレメントの数を増やすことなく、簡略
的探索方法により広い探索範囲から動きベクトルを探索
することができる。また、サーチウィンドウのサイズに
応じてプロセッサエレメントおよび中間レジスタを共有
することにより、広い探索範囲を取りたい場合には、回
路上に配置されたすべてのプロセッサエレメントおよび
中間レジスタ間で広い探索範囲に対応するサーチウィン
ドウのデータを転送させて簡略的な探索方法で動きベク
トルを求めることができるとともに、狭い探索範囲を取
りたい場合には、回路上に配置された一部のプロセッサ
エレメントおよび中間レジスタ間で狭い探索範囲に対応
した別のサーチウィンドウのデータを転送させて全点探
索法または全点探索法に近い探索方法で予測精度の高い
動きベクトルを求めることができる。
Therefore, by arranging the intermediate registers, a motion vector can be searched from a wide search range by a simple search method without increasing the number of processor elements. Also, by sharing the processor elements and intermediate registers according to the size of the search window, if a wide search range is desired, a wide search range can be supported among all processor elements and intermediate registers arranged on the circuit. When a simple search method is used to transfer the data of the search window to obtain a motion vector and a narrow search range is desired, some processor elements and intermediate registers arranged on the circuit may be used. By transferring data of another search window corresponding to a narrow search range, a motion vector with high prediction accuracy can be obtained by the all point search method or a search method close to the all point search method.

【0368】従って、回路規模が膨大になることを防止
するとともに、処理効率を低下させることなく、複数サ
イズの探索範囲から動きベクトルを探索することができ
る。請求項2記載の発明によれば、前記動作モード選択
手段は、現画像と前符号化画像との時間的隔たりが所定
値より大きい場合、第1動作モードを選択し、現画像と
前符号化画像との時間的隔たりが所定値以下の場合、第
2動作モードを選択する。
Therefore, it is possible to prevent the circuit scale from becoming enormous and to search for a motion vector from a search range of a plurality of sizes without lowering the processing efficiency. According to the second aspect of the present invention, the operation mode selection means selects the first operation mode when the time difference between the current image and the previous encoded image is larger than a predetermined value, and selects the current image and the previous encoded image. If the time difference from the image is equal to or less than the predetermined value, the second operation mode is selected.

【0369】このため、前符号化画像から現画像への時
間的な隔たりに基づいて動きベクトルを探索する動作モ
ードを選択することができるので、時間間隔が小さい場
合には、狭い探索範囲で予測精度の高い動きベクトルの
探索を行うことができるとともに、時間間隔が大きい場
合には、広い探索範囲で動きベクトルの簡略的な探索を
行うことができる。
For this reason, it is possible to select an operation mode for searching for a motion vector based on the time interval from the previous coded image to the current image. A highly accurate motion vector search can be performed, and when the time interval is large, a simple search for the motion vector can be performed in a wide search range.

【0370】さらに、時間間隔が大きい場合には、広い
探索範囲で簡略的探索を行った後、最小ディストーショ
ンが検出された候補ブロックの近傍に、再度、狭い探索
範囲のサーチウィンドウを設定し、設定された狭い探索
範囲で予測精度の高い動きベクトルの探索を行うことも
できる。請求項3記載の発明によれば、前記動作モード
選択手段で第2動作モードが選択された場合、前記ディ
ストーション算出ユニットは、第2サーチウィンドウ内
の各候補ブロックの画素データと現符号化ブロックの画
素データに基づいて(H2−N+1)×(L2−M+
1)個のプロセッサエレメントでディストーションを算
出する。
If the time interval is large, a simple search is performed in a wide search range, and a search window with a narrow search range is set again near the candidate block where the minimum distortion is detected. It is also possible to search for a motion vector with high prediction accuracy in the narrow search range thus set. According to the third aspect of the present invention, when the second operation mode is selected by the operation mode selection means, the distortion calculation unit sets the pixel data of each candidate block in the second search window and the pixel data of the current coded block. Based on the pixel data, (H2-N + 1) × (L2-M +
1) The distortion is calculated by the number of processor elements.

【0371】このため、第2動作モードが選択された場
合には、プロセッサエレメント間で狭い探索範囲に対応
したサーチウィンドウのデータを転送させて確実に全点
探索法により動きベクトルを探索することができるの
で、予測精度の高い動きベクトルの探索を確実に行うこ
とができる。請求項4記載の発明によれば、前記候補ブ
ロック特定ユニットに電気的に接続されたそれぞれのプ
ロセッサエレメントから前記候補ブロック特定ユニット
にそれぞれのディストーションを転送するとともに、候
補ブロック特定ユニットに向けて各プロセッサエレメン
トから同行のプロセッサエレメントに順次ディストーシ
ョンを転送することで、前記ディストーション算出ユニ
ットで算出されたすべてのディストーションを候補ブロ
ック特定ユニットに転送する。次に、候補ブロック特定
ユニットによって、前記ディストーション算出ユニット
で算出されたすべてのディストーションの中から最小の
値を示すディストーションを検出し、最小ディストーシ
ョンが算出されたプロセッサエレメントのマトリックス
状の配置位置に基づいて、最小ディストーションが算出
されたプロセッサエレメントに対応する候補ブロックか
ら現符号化ブロックへの動きベクトルを特定する。
For this reason, when the second operation mode is selected, it is possible to transfer the data of the search window corresponding to the narrow search range between the processor elements and reliably search for the motion vector by the all-points search method. Therefore, it is possible to reliably search for a motion vector with high prediction accuracy. According to the invention of claim 4, each distortion is transferred from each processor element electrically connected to the candidate block specifying unit to the candidate block specifying unit, and each processor is transferred to the candidate block specifying unit. By sequentially transferring the distortion from the element to the processor element in the same row, all the distortions calculated by the distortion calculation unit are transferred to the candidate block specifying unit. Next, the candidate block specifying unit detects a distortion indicating a minimum value among all the distortions calculated by the distortion calculation unit, based on a matrix-like arrangement position of the processor elements for which the minimum distortion has been calculated. , Specify a motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coded block.

【0372】このため、同一行のプロセッサエレメント
で算出されたそれぞれのディストーションを順次各プロ
セッサエレメントを介して一方向に転送し、同一行の一
端のプロセッサエレメントから最小ディストーションユ
ニットに各ディストーションを転送することができるの
で、ディストーションを転送する方向に候補ブロック特
定ユニットを容易に配置することができる。
For this reason, the respective distortions calculated by the processor elements in the same row are sequentially transferred in one direction via the respective processor elements, and the respective distortions are transferred from the processor element at one end of the same row to the minimum distortion unit. Therefore, the candidate block specifying unit can be easily arranged in the direction in which the distortion is transferred.

【0373】また、ディストーション算出ユニットから
候補ブロック特定ユニットへの転送バスをプロセッサエ
レメントの存在する行数に削減するとともに、短い転送
バスを形成することができ、さらに、同一行の各プロセ
ッサエレメントの間にも短い転送バスを形成することが
できるので、各プロセッサエレメント間の転送時間を均
一にすることができる。
In addition, the number of transfer buses from the distortion calculation unit to the candidate block specifying unit can be reduced to the number of rows in which processor elements are present, and a short transfer bus can be formed. Since a transfer bus as short as possible can be formed, the transfer time between the processor elements can be made uniform.

【0374】従って、誤りの少ない安定した画素データ
の転送を行うことができる安定した回路を形成すること
ができる。請求項5記載の発明によれば、前記動作モー
ド選択手段によって選択されたそれぞれの動作モードに
おいて、サーチウィンドウデータ供給ユニットによって
始めに供給されたサーチウィンドウをM画素分列方向に
シフトしたもう一つのサーチウィンドウの画素データ
と、現符号化ブロックデータ供給ユニットによって始め
に供給された現符号化ブロックの列方向に隣接し、もう
一つのサーチウィンドウに対応する現符号化ブロックの
画素データとに基づいてディストーション算出ユニット
によってディストーションを算出する。さらに、このデ
ィストーションの算出が終了する前に、始めにディスト
ーション算出ユニットに供給されたサーチウィンドウの
画素データと現符号化ブロックに基づいてディストーシ
ョン算出ユニットで算出されたディストーションが候補
ブロック特定ユニットに転送される。
Therefore, a stable circuit capable of performing stable transfer of pixel data with few errors can be formed. According to the fifth aspect of the present invention, in each of the operation modes selected by the operation mode selection means, another search window which is firstly supplied by the search window data supply unit and shifted in the column direction by M pixels. Based on the pixel data of the search window and the pixel data of the current coded block that is adjacent to the current coded block supplied in the column direction by the current coded block data supply unit and corresponds to another search window. The distortion is calculated by the distortion calculating unit. Further, before the distortion calculation is completed, the distortion calculated by the distortion calculation unit based on the pixel data of the search window supplied to the distortion calculation unit and the current coding block is transferred to the candidate block specifying unit. You.

【0375】このため、動作モードの変更がない場合に
は、列方向に隣接する現符号化ブロックの最小ディスト
ーションおよび動きベクトルを第6ステップでの1サイ
クルの動作毎に順次求めることができる。また、第1動
作モードにおいては、第1サーチウィンドウと第3サー
チウィンドウで共通する画素データを重複することなく
ディストーション算出ユニットに供給することができる
ので、列方向に隣接する現符号ブロックの場合には、第
3サーチウィンドウの画素データを始めからディストー
ション算出ユニットに供給し直す必要がなく、処理効率
を大幅に向上することができる。
Therefore, when there is no change in the operation mode, the minimum distortion and the motion vector of the current coded block adjacent in the column direction can be sequentially obtained for each one-cycle operation in the sixth step. In addition, in the first operation mode, pixel data common to the first search window and the third search window can be supplied to the distortion calculation unit without overlapping, so that in the case of the current code block adjacent in the column direction, Does not require the pixel data of the third search window to be supplied to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0376】また、第2動作モードにおいても、第2サ
ーチウィンドウと第4サーチウィンドウで共通する画素
データを重複することなくディストーション算出ユニッ
トに供給することができるので、列方向に隣接する現符
号ブロックの場合には、第4サーチウィンドウの画素デ
ータを始めからディストーション算出ユニットに供給し
直す必要がなく、処理効率を大幅に向上することができ
る。
Also, in the second operation mode, pixel data common to the second search window and the fourth search window can be supplied to the distortion calculation unit without duplication, so that the current code block adjacent in the column direction can be supplied. In the case of, there is no need to supply the pixel data of the fourth search window to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0377】従って、動きベクトルを探索する処理効率
を大幅に向上させることができる。請求項6記載の発明
によれば、前記候補ブロック特定ユニットに電気的に接
続されたそれぞれのプロセッサエレメントから前記候補
ブロック特定ユニットにそれぞれのディストーションを
転送するとともに、候補ブロック特定ユニットに向けて
各プロセッサエレメントから同列のプロセッサエレメン
トに順次ディストーションを転送することで、前記ディ
ストーション算出ユニットで算出されたすべてのディス
トーションを候補ブロック特定ユニットに転送する。次
に、候補ブロック特定ユニットによって、前記ディスト
ーション算出ユニットで算出されたすべてのディストー
ションの中から最小の値を示すディストーションを検出
し、最小ディストーションが算出されたプロセッサエレ
メントのマトリックス状の配置位置に基づいて、最小デ
ィストーションが算出されたプロセッサエレメントに対
応する候補ブロックから現符号化ブロックへの動きベク
トルを特定する。
Therefore, the processing efficiency of searching for a motion vector can be greatly improved. According to the invention of claim 6, each distortion is transferred from each processor element electrically connected to the candidate block specifying unit to the candidate block specifying unit, and each processor is transferred to the candidate block specifying unit. By sequentially transferring the distortion from the element to the processor element in the same row, all the distortions calculated by the distortion calculation unit are transferred to the candidate block specifying unit. Next, the candidate block specifying unit detects a distortion indicating a minimum value among all the distortions calculated by the distortion calculation unit, based on a matrix-like arrangement position of the processor elements for which the minimum distortion has been calculated. , Specify a motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coded block.

【0378】このため、同一列のプロセッサエレメント
で算出されたそれぞれのディストーションを順次各プロ
セッサエレメントを介して一方向に転送し、同一列の一
端のプロセッサエレメントから最小ディストーションユ
ニットに各ディストーションを転送することができるの
で、ディストーションを転送する方向に候補ブロック特
定ユニットを容易に配置することができる。
For this reason, the respective distortions calculated by the processor elements in the same column are sequentially transferred in one direction via the respective processor elements, and the respective distortions are transferred from the processor element at one end of the same column to the minimum distortion unit. Therefore, the candidate block specifying unit can be easily arranged in the direction in which the distortion is transferred.

【0379】また、ディストーション算出ユニットから
候補ブロック特定ユニットへの転送バスをプロセッサエ
レメントの存在する列数に削減するとともに、転送バス
を短くすることができ、さらに、同一列の各プロセッサ
エレメントの間にも短い転送バスを形成することができ
るので、各プロセッサエレメント間の転送時間を均一に
することができる。
Further, the transfer bus from the distortion calculation unit to the candidate block specifying unit can be reduced to the number of columns in which the processor elements exist, and the transfer bus can be shortened. Since a short transfer bus can be formed, the transfer time between the processor elements can be made uniform.

【0380】従って、誤りの少ない安定した画素データ
の転送を行うことができる安定した回路を形成すること
ができる。請求項7記載の発明によれば、前記動作モー
ド選択手段によって選択されたそれぞれの動作モードに
おいて、サーチウィンドウデータ供給ユニットによって
始めに供給されたサーチウィンドウをM画素分列方向に
シフトしたもう一つのサーチウィンドウの画素データ
と、現符号化ブロックデータ供給ユニットによって始め
に供給された現符号化ブロックの列方向に隣接してもう
一つのサーチウィンドウに対応する現符号化ブロックの
画素データとに基づいてディストーション算出ユニット
によってディストーションを算出するとともに、このデ
ィストーションの算出が終了する前に、始めにディスト
ーション算出ユニットに供給されたサーチウィンドウの
画素データと現符号化ブロックに基づいて算出されたデ
ィストーションが候補ブロック特定ユニットに転送され
る。
Therefore, it is possible to form a stable circuit capable of performing stable transfer of pixel data with few errors. According to the seventh aspect of the present invention, in each of the operation modes selected by the operation mode selection means, another search window obtained by shifting the search window first supplied by the search window data supply unit in the column direction by M pixels. Based on the pixel data of the search window and the pixel data of the current coded block corresponding to another search window adjacent in the column direction of the current coded block initially supplied by the current coded block data supply unit. The distortion is calculated by the distortion calculation unit, and before the calculation of the distortion is completed, the distortion calculated based on the pixel data of the search window initially supplied to the distortion calculation unit and the current coding block is a candidate block. It is transferred to a constant unit.

【0381】このため、動作モードに変更がない場合に
は、列方向に隣接する現符号化ブロックの最小ディスト
ーションおよび動きベクトルを第6ステップでの1サイ
クルの動作毎に順次求めることができる。また、第1動
作モードにおいては、第1サーチウィンドウと第3サー
チウィンドウで共通する画素データを重複することなく
ディストーション算出ユニットに供給することができる
ので、列方向に隣接する現符号ブロックの場合には、第
3サーチウィンドウの画素データを始めからディストー
ション算出ユニットに供給し直す必要がなく、処理効率
を大幅に向上することができる。
Therefore, when there is no change in the operation mode, the minimum distortion and the motion vector of the current coded block adjacent in the column direction can be sequentially obtained for each one-cycle operation in the sixth step. In addition, in the first operation mode, pixel data common to the first search window and the third search window can be supplied to the distortion calculation unit without overlapping, so that in the case of the current code block adjacent in the column direction, Does not require the pixel data of the third search window to be supplied to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0382】また、第2動作モードにおいても、第2サ
ーチウィンドウと第4サーチウィンドウで共通する画素
データを重複することなくディストーション算出ユニッ
トに供給することができるので、列方向に隣接する現符
号ブロックの場合には、第4サーチウィンドウの画素デ
ータを始めからディストーション算出ユニットに供給し
直す必要がなく、処理効率を大幅に向上することができ
る。
Also in the second operation mode, pixel data common to the second search window and the fourth search window can be supplied to the distortion calculation unit without duplication, so that the current code block adjacent in the column direction can be supplied. In the case of, there is no need to supply the pixel data of the fourth search window to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0383】従って、動きベクトルを探索する処理効率
を大幅に向上させることができる。請求項8記載の発明
によれば、前記動作モード選択手段で第1動作モードが
選択された場合、前記サーチウィンドウデータ供給ユニ
ットから供給された第1サーチウィンドウの画素データ
と現符号化ブロックデータ供給ユニットから供給された
現符号化ブロックの画素データに基づいてディストーシ
ョン算出ユニットの複数のプロセッサエレメントにより
それぞれのディストーションが算出される。
Accordingly, the processing efficiency for searching for a motion vector can be greatly improved. According to the invention described in claim 8, when the first operation mode is selected by the operation mode selection means, the pixel data of the first search window supplied from the search window data supply unit and the current coded block data supply are supplied. Each distortion is calculated by a plurality of processor elements of the distortion calculation unit based on the pixel data of the current coding block supplied from the unit.

【0384】一方、前記動作モード選択手段で第2動作
モードが選択された場合、前記サーチウィンドウデータ
供給ユニットから供給された第2サーチウィンドウの画
素データと現符号化ブロックデータ供給ユニットから供
給された現符号化ブロックの画素データに基づいてディ
ストーション算出ユニットの複数のプロセッサエレメン
トによりそれぞれのディストーションが算出される。
On the other hand, when the second operation mode is selected by the operation mode selection means, the pixel data of the second search window supplied from the search window data supply unit and the pixel data supplied from the current coded block data supply unit are supplied. Each distortion is calculated by a plurality of processor elements of the distortion calculation unit based on the pixel data of the current coding block.

【0385】このため、中間レジスタを配置すること
で、プロセッサエレメントの数を増やすことなく、簡略
的探索方法により広い探索範囲から動きベクトルを探索
することができる。また、サーチウィンドウのサイズに
応じてプロセッサエレメントおよび中間レジスタを共有
することにより、広い探索範囲を取りたい場合には、回
路上に配置されたすべてのプロセッサエレメントおよび
中間レジスタ間で広い探索範囲に対応するサーチウィン
ドウのデータを転送させて簡略的な探索方法で動きベク
トルを求めることができるとともに、狭い探索範囲を取
りたい場合には、回路上に配置された一部のプロセッサ
エレメントおよび中間レジスタ間で狭い探索範囲に対応
した別のサーチウィンドウのデータを転送させて全点探
索法または全点探索法に近い探索方法で予測精度の高い
動きベクトルを求めることができる。
For this reason, by arranging the intermediate registers, it is possible to search for a motion vector from a wide search range by a simple search method without increasing the number of processor elements. Also, by sharing the processor elements and intermediate registers according to the size of the search window, if a wide search range is desired, a wide search range can be supported among all processor elements and intermediate registers arranged on the circuit. When a simple search method is used to transfer the data of the search window to obtain a motion vector and a narrow search range is desired, some processor elements and intermediate registers arranged on the circuit may be used. By transferring data of another search window corresponding to a narrow search range, a motion vector with high prediction accuracy can be obtained by the all point search method or a search method close to the all point search method.

【0386】従って、回路規模が膨大になることを防止
するとともに、処理効率を低下させることなく、複数サ
イズの探索範囲から動きベクトルを探索することができ
る。請求項9記載の発明によれば、前記動作モード選択
手段は、現画像と前符号化画像との時間的隔たりが所定
値より大きい場合、第1動作モードを選択し、現画像と
前符号化画像との時間的隔たりが所定値以下の場合、第
2動作モードを選択する。
Therefore, it is possible to prevent the circuit scale from becoming enormous and to search for a motion vector from a search range of a plurality of sizes without lowering the processing efficiency. According to the ninth aspect of the present invention, the operation mode selection means selects the first operation mode when the time difference between the current image and the previous encoded image is larger than a predetermined value, and selects the current image and the previous encoded image. If the time difference from the image is equal to or less than the predetermined value, the second operation mode is selected.

【0387】このため、前符号化画像から現画像への時
間的な隔たりに基づいて動きベクトルを探索する動作モ
ードを選択することができるので、時間間隔が小さい場
合には、狭い探索範囲で予測精度の高い動きベクトルの
探索を行うことができるとともに、時間間隔が大きい場
合には、広い探索範囲で動きベクトルの簡略的な探索を
行うことができる。
[0387] Therefore, it is possible to select an operation mode for searching for a motion vector based on the time interval from the previous coded image to the current image. Therefore, when the time interval is small, prediction is performed in a narrow search range. A highly accurate motion vector search can be performed, and when the time interval is large, a simple search for the motion vector can be performed in a wide search range.

【0388】さらに、時間間隔が大きい場合には、広い
探索範囲で簡略的探索を行った後、最小ディストーショ
ンが検出された候補ブロックの近傍に、再度、狭い探索
範囲のサーチウィンドウを設定し、設定された狭い探索
範囲で予測精度の高い動きベクトルの探索を行うことも
できる。請求項10記載の発明によれば、前記動作モー
ド選択手段で第2動作モードが選択された場合、前記デ
ィストーション算出ユニットは、第2サーチウィンドウ
内の各候補ブロックの画素データと現符号化ブロックの
画素データに基づいて(H2−N+1)×(L2−M+
1)個のプロセッサエレメントでディストーションを算
出する。
If the time interval is large, a simple search is performed in a wide search range, and a search window with a narrow search range is set again near the candidate block in which the minimum distortion is detected. It is also possible to search for a motion vector with high prediction accuracy in the narrow search range thus set. According to the tenth aspect, when the second operation mode is selected by the operation mode selection unit, the distortion calculation unit sets the pixel data of each candidate block in the second search window and the pixel data of the current coded block. Based on the pixel data, (H2-N + 1) × (L2-M +
1) The distortion is calculated by the number of processor elements.

【0389】このため、第2動作モードが選択された場
合には、プロセッサエレメント間で狭い探索範囲に対応
したサーチウィンドウのデータを転送させて確実に全点
探索法により動きベクトルを探索することができるの
で、予測精度の高い動きベクトルの探索を確実に行うこ
とができる。請求項11記載の発明によれば、前記サイ
ドレジスタユニットの各サイドレジスタデバイスは、互
いに直列に電気的に接続された(N−1)個の前記記憶
転送器を有し、一端の記憶転送器が同列の1行目のプロ
セッサエレメントまたは中間レジスタに電気的に接続さ
れた第1サイドレジスタデバイスと、直列に電気的に接
続された(N−1)個の前記記憶転送器を有し、一端の
記憶転送器が同列の(H1−N+1)行目のプロセッサ
エレメントまたは中間レジスタに電気的に接続された第
2サイドレジスタデバイスから構成される。
For this reason, when the second operation mode is selected, it is possible to transfer the data of the search window corresponding to the narrow search range between the processor elements and reliably search for the motion vector by the all-point search method. Therefore, it is possible to reliably search for a motion vector with high prediction accuracy. According to the eleventh aspect of the present invention, each side register device of the side register unit has (N-1) storage transfer units electrically connected in series with each other, and one end of the storage transfer unit. Has a first side register device electrically connected to a processor element or an intermediate register in the first row in the same column, and (N-1) storage transfer devices electrically connected in series, Is composed of a second side register device electrically connected to the processor element or the intermediate register in the (H1-N + 1) th row in the same column.

【0390】このため、1行目のプロセッサエレメン
ト、中間レジスタおよび入力レジスタ並びに(H1−N
+1)行目のプロセッサエレメント、中間レジスタおよ
び入力レジスタにそれぞれ(N−1)個の中間レジスタ
と同じ前記記憶転送器からなる第1サイドレジスタデバ
イスおよび第2サイドレジスタデバイスを配置すること
ができるので、回路を容易に構成することができる。
Therefore, the processor elements, intermediate registers and input registers in the first row and (H1-N)
The first side register device and the second side register device including the same storage transfer device as the (N-1) intermediate registers can be arranged in the processor element, the intermediate register, and the input register on the (+1) th row, respectively. The circuit can be easily configured.

【0391】請求項12記載の発明によれば、前記サイ
ドレジスタユニットの各サイドレジスタデバイスは、互
いに直列に電気的に接続された(N−1)個の前記記憶
転送器を有し、一端の記憶転送器が同列の1行目のプロ
セッサエレメント、中間レジスタまたは入力レジスタに
電気的に接続され、他端の記憶転送器が同列の(H1−
N+1)行目のプロセッサエレメント、中間レジスタま
たは入力レジスタに電気的に接続される。
According to the twelfth aspect of the present invention, each side register device of the side register unit has (N-1) storage transfer devices electrically connected in series with each other, and one side register device has one end. The storage transfer device is electrically connected to the first row of processor elements, intermediate registers, or input registers in the same column, and the storage transfer device at the other end is connected to the same column (H1-
It is electrically connected to the (N + 1) th row processor element, intermediate register or input register.

【0392】このため、列毎に各プロセサエレメント、
各中間レジスタまたは各入力レジスタとともにサイドレ
ジスタデバイスの記憶転送器をリング状に電気的に接続
することができるので、請求項8記載のサイドレジスタ
ユニットが有する記憶転送器の半数の記憶転送器でサイ
ドレジスタユニットを構成することができる。また、各
列毎にリング状に接続された各プロセッサエレメント、
各中間レジスタ、各入力レジスタおよびサイドレジスタ
デバイスの各記憶転送器の間の距離を均一に配置するこ
とができるので、短い転送バスを形成することができる
とともに、各プロセッサエレメント、各中間レジスタ、
各入力レジスタまたはサイドレジスタデバイスの各記憶
転送器間の画素データの転送時間を均一にすることがで
きる。従って、誤りの少ない安定した回路を形成するこ
とができる。
For this reason, each processor element,
9. The storage transfer device of the side register device can be electrically connected in a ring shape together with each intermediate register or each input register, so that the side register unit has half of the storage transfer devices of the side register unit. A register unit can be configured. Also, each processor element connected in a ring shape for each column,
Since the distance between each intermediate register, each input register and each storage transfer device of the side register device can be arranged uniformly, a short transfer bus can be formed, and each processor element, each intermediate register,
The transfer time of pixel data between the storage transfer units of each input register or side register device can be made uniform. Therefore, a stable circuit with few errors can be formed.

【0393】請求項13記載の発明によれば、前記候補
ブロック特定ユニットに電気的に接続されたそれぞれの
プロセッサエレメントから前記候補ブロック特定ユニッ
トにそれぞれのディストーションを転送するとともに、
候補ブロック特定ユニットに向けて各プロセッサエレメ
ントから同行のプロセッサエレメントに順次ディストー
ションを転送することで、前記ディストーション算出ユ
ニットで算出されたすべてのディストーションを候補ブ
ロック特定ユニットに転送する。次に、候補ブロック特
定ユニットによって、前記ディストーション算出ユニッ
トで算出されたすべてのディストーションの中から最小
の値を示すディストーションを検出し、最小ディストー
ションが算出されたプロセッサエレメントのマトリック
ス状の配置位置に基づいて、最小ディストーションが算
出されたプロセッサエレメントに対応する候補ブロック
から現符号化ブロックへの動きベクトルを特定する。
According to the thirteenth aspect, each distortion is transferred from each processor element electrically connected to the candidate block specifying unit to the candidate block specifying unit, and
By sequentially transferring the distortion from each processor element to the candidate processor element to the candidate block specifying unit, all distortions calculated by the distortion calculating unit are transferred to the candidate block specifying unit. Next, the candidate block specifying unit detects a distortion indicating a minimum value among all the distortions calculated by the distortion calculation unit, based on a matrix-like arrangement position of the processor elements for which the minimum distortion has been calculated. , Specify a motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coded block.

【0394】このため、同一行のプロセッサエレメント
で算出されたそれぞれのディストーションを順次各プロ
セッサエレメントを介して一方向に転送し、同一行の一
端のプロセッサエレメントから最小ディストーションユ
ニットに各ディストーションを転送することができるの
で、ディストーションを転送する方向に候補ブロック特
定ユニットを容易に配置することができる。
For this reason, the respective distortions calculated by the processor elements on the same row are sequentially transferred in one direction via the respective processor elements, and the respective distortions are transferred from the processor element at one end of the same row to the minimum distortion unit. Therefore, the candidate block specifying unit can be easily arranged in the direction in which the distortion is transferred.

【0395】また、ディストーション算出ユニットから
候補ブロック特定ユニットへの転送バスをプロセッサエ
レメントの存在する行数に削減するとともに、短い転送
バスを形成することができ、さらに、同一行の各プロセ
ッサエレメントの間にも短い転送バスを形成することが
できるので、各プロセッサエレメント間の転送時間を均
一にすることができる。
In addition, the number of transfer buses from the distortion calculation unit to the candidate block specifying unit can be reduced to the number of rows in which processor elements are present, and a short transfer bus can be formed. Since a transfer bus as short as possible can be formed, the transfer time between the processor elements can be made uniform.

【0396】従って、誤りの少ない安定した画素データ
の転送を行うことができる安定した回路を形成すること
ができる。請求項14記載の発明によれば、前記動作モ
ード選択手段によって選択されたそれぞれの動作モード
において、サーチウィンドウデータ供給ユニットによっ
て始めに供給されたサーチウィンドウをM画素分列方向
にシフトしたもう一つのサーチウィンドウの画素データ
と、現符号化ブロックデータ供給ユニットによって始め
に供給された現符号化ブロックの列方向に隣接し、もう
一つのサーチウィンドウに対応する現符号化ブロックの
画素データとに基づいてディストーション算出ユニット
によってディストーションを算出するとともに、このデ
ィストーションの算出が終了する前に、始めにディスト
ーション算出ユニットに供給されたサーチウィンドウの
画素データと現符号化ブロックに基づいてディストーシ
ョン算出ユニットによって算出されたディストーション
が候補ブロック特定ユニットに転送される。
Therefore, it is possible to form a stable circuit capable of performing stable transfer of pixel data with few errors. According to the fourteenth aspect of the present invention, in each of the operation modes selected by the operation mode selection means, the search window first supplied by the search window data supply unit is shifted in the column direction by M pixels. Based on the pixel data of the search window and the pixel data of the current coded block that is adjacent to the current coded block supplied in the column direction by the current coded block data supply unit and corresponds to another search window. The distortion is calculated by the distortion calculating unit, and before the calculation of the distortion is completed, the distortion is calculated by the distortion calculating unit based on the pixel data of the search window initially supplied to the distortion calculating unit and the current coding block. Been distortion is transferred to the candidate block specifying unit.

【0397】このため、動作モードの変更がない場合に
は、列方向に隣接する現符号化ブロックの最小ディスト
ーションおよび動きベクトルを第4転送制御手段による
1サイクルの動作毎に順次求めることができる。また、
第1動作モードにおいては、第1サーチウィンドウと第
3サーチウィンドウで共通する画素データを重複するこ
となくディストーション算出ユニットに供給することが
できるので、列方向に隣接する現符号ブロックの場合に
は、第3サーチウィンドウの画素データを始めからディ
ストーション算出ユニットに供給し直す必要がなく、処
理効率を大幅に向上することができる。
[0397] Therefore, when the operation mode is not changed, the minimum distortion and the motion vector of the current coded block adjacent in the column direction can be sequentially obtained for each one-cycle operation by the fourth transfer control means. Also,
In the first operation mode, pixel data common to the first search window and the third search window can be supplied to the distortion calculation unit without duplication, so that in the case of the current code block adjacent in the column direction, There is no need to supply the pixel data of the third search window to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0398】また、第2動作モードにおいても、第2サ
ーチウィンドウと第4サーチウィンドウで共通する画素
データを重複することなくディストーション算出ユニッ
トに供給することができるので、列方向に隣接する現符
号ブロックの場合には、第4サーチウィンドウの画素デ
ータを始めからディストーション算出ユニットに供給し
直す必要がなく、処理効率を大幅に向上することができ
る。
Also in the second operation mode, pixel data common to the second search window and the fourth search window can be supplied to the distortion calculation unit without duplication, so that the current code block adjacent in the column direction can be supplied. In the case of, there is no need to supply the pixel data of the fourth search window to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0399】従って、動きベクトルを探索する処理効率
を大幅に向上させることができる。請求項15記載の発
明によれば、前記候補ブロック特定ユニットに電気的に
接続されたそれぞれのプロセッサエレメントから前記候
補ブロック特定ユニットにそれぞれのディストーション
を転送するとともに、候補ブロック特定ユニットに向け
て各プロセッサエレメントから同列のプロセッサエレメ
ントに順次ディストーションを転送することで、前記デ
ィストーション算出ユニットで算出されたすべてのディ
ストーションを候補ブロック特定ユニットに転送する。
次に、候補ブロック特定ユニットによって、前記ディス
トーション算出ユニットで算出されたすべてのディスト
ーションの中から最小の値を示すディストーションを検
出し、最小ディストーションが算出されたプロセッサエ
レメントのマトリックス状の配置位置に基づいて、最小
ディストーションが算出されたプロセッサエレメントに
対応する候補ブロックから現符号化ブロックへの動きベ
クトルを特定する。
Therefore, the processing efficiency of searching for a motion vector can be greatly improved. According to the invention described in claim 15, each distortion is transferred from each processor element electrically connected to the candidate block specifying unit to the candidate block specifying unit, and each processor is transferred to the candidate block specifying unit. By sequentially transferring the distortion from the element to the processor element in the same row, all the distortions calculated by the distortion calculation unit are transferred to the candidate block specifying unit.
Next, the candidate block specifying unit detects a distortion indicating a minimum value among all the distortions calculated by the distortion calculation unit, based on a matrix-like arrangement position of the processor elements for which the minimum distortion has been calculated. , Specify a motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coded block.

【0400】このため、同一列のプロセッサエレメント
で算出されたそれぞれのディストーションを順次各プロ
セッサエレメントを介して一方向に転送し、同一列の一
端のプロセッサエレメントから最小ディストーションユ
ニットに各ディストーションを転送することができるの
で、ディストーションを転送する方向に候補ブロック特
定ユニットを容易に配置することができる。
For this reason, the respective distortions calculated by the processor elements in the same column are sequentially transferred in one direction via the respective processor elements, and the respective distortions are transferred from the processor element at one end of the same column to the minimum distortion unit. Therefore, the candidate block specifying unit can be easily arranged in the direction in which the distortion is transferred.

【0401】また、ディストーション算出ユニットから
候補ブロック特定ユニットへの転送バスをプロセッサエ
レメントの存在する列数に削減するとともに、短い転送
バスを形成することができ、さらに、同一列の各プロセ
ッサエレメントの間にも短い転送バスを形成することが
できるので、各プロセッサエレメント間の転送時間を均
一にすることができる。従って、誤りの少ない安定した
画素データの転送を行うことができる安定した回路を形
成することができる。
Further, the number of transfer buses from the distortion calculation unit to the candidate block specifying unit can be reduced to the number of columns in which processor elements exist, and a short transfer bus can be formed. Since a transfer bus as short as possible can be formed, the transfer time between the processor elements can be made uniform. Therefore, a stable circuit capable of performing stable transfer of pixel data with few errors can be formed.

【0402】請求項16記載の発明によれば、前記動作
モード選択手段によって選択されたそれぞれの動作モー
ドにおいて、サーチウィンドウデータ供給ユニットによ
って始めに供給されたサーチウィンドウをM画素分列方
向にシフトしたもう一つのサーチウィンドウの画素デー
タと、現符号化ブロックデータ供給ユニットによって始
めに供給された現符号化ブロックの列方向に隣接し、も
う一つのサーチウィンドウに対応する現符号化ブロック
の画素データとに基づいてディストーション算出ユニッ
トによってディストーションを算出するとともに、この
ディストーションの算出が終了する前に、始めにディス
トーション算出ユニットに供給されたサーチウィンドウ
の画素データと現符号化ブロックに基づいて算出された
ディストーションが候補ブロック特定ユニットに転送さ
れる。
[0402] According to the sixteenth aspect, in each of the operation modes selected by the operation mode selection means, the search window first supplied by the search window data supply unit is shifted in the column direction by M pixels. The pixel data of another search window and the pixel data of the current coded block that is adjacent in the column direction of the current coded block initially supplied by the current coded block data supply unit and corresponds to another search window are The distortion is calculated by the distortion calculating unit based on the pixel data of the search window first supplied to the distortion calculating unit and the distortion calculated before the calculation of the distortion is completed. It is forwarded to the candidate block specifying unit.

【0403】このため、動作モードの変更がない場合に
は、列方向に隣接する現符号化ブロックの最小ディスト
ーションおよび動きベクトルを第4転送制御手段による
1サイクルの動作毎に順次求めることができる。また、
第1動作モードにおいては、第1サーチウィンドウと第
3サーチウィンドウで共通する画素データを重複するこ
となくディストーション算出ユニットに供給することが
できるので、列方向に隣接する現符号ブロックの場合に
は、第3サーチウィンドウの画素データを始めからディ
ストーション算出ユニットに供給し直す必要がなく、処
理効率を大幅に向上することができる。
Therefore, when there is no change in the operation mode, the minimum distortion and the motion vector of the current coded block adjacent in the column direction can be sequentially obtained for each one-cycle operation by the fourth transfer control means. Also,
In the first operation mode, pixel data common to the first search window and the third search window can be supplied to the distortion calculation unit without duplication, so that in the case of the current code block adjacent in the column direction, There is no need to supply the pixel data of the third search window to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0404】また、第2動作モードにおいても、第2サ
ーチウィンドウと第4サーチウィンドウで共通する画素
データを重複することなくディストーション算出ユニッ
トに供給することができるので、列方向に隣接する現符
号ブロックの場合には、第4サーチウィンドウの画素デ
ータを始めからディストーション算出ユニットに供給し
直す必要がなく、処理効率を大幅に向上することができ
る。
Also in the second operation mode, pixel data common to the second search window and the fourth search window can be supplied to the distortion calculation unit without duplication, so that the current code block adjacent in the column direction can be supplied. In the case of, there is no need to supply the pixel data of the fourth search window to the distortion calculation unit from the beginning, and the processing efficiency can be greatly improved.

【0405】従って、動きベクトルを探索する処理効率
を大幅に向上させることができる。
Accordingly, the processing efficiency for searching for a motion vector can be greatly improved.

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

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

【図2】現画像100上の現符号化ブロック110およ
び前符号化画像200上のサーチウィンドウ210を示
す図である。
2 is a diagram showing a current coded block 110 on a current image 100 and a search window 210 on a previously coded image 200. FIG.

【図3】現画像100上の現符号化ブロック110およ
び前符号化画像200上の第1サーチウィンドウ230
を示す図である。
FIG. 3 shows a current coded block 110 on a current image 100 and a first search window 230 on a previously coded image 200.
FIG.

【図4】現画像100上の現符号化ブロック110およ
び前符号化画像200上の第2サーチウィンドウ240
を示す図である。
FIG. 4 shows a current coded block 110 on the current image 100 and a second search window 240 on the previous coded image 200
FIG.

【図5】信号出力ユニット5000および動作モード選
択ユニット6000から各ユニットに出力されるそれぞ
れの信号を示すブロック図である。
FIG. 5 is a block diagram showing respective signals output from the signal output unit 5000 and the operation mode selection unit 6000 to each unit.

【図6】第1動作モードが選択された場合に、信号出力
ユニット5000から各ユニット出力されるそれぞれの
信号の動作を示すタイムチャートである。
FIG. 6 is a time chart showing the operation of each signal output from each signal output unit 5000 when the first operation mode is selected.

【図7】第1動作モードが選択された場合に、信号出力
ユニット5000から各ユニットに出力されるそれぞれ
の信号の動作を示すタイムチャートである。
FIG. 7 is a time chart showing the operation of each signal output from the signal output unit 5000 to each unit when the first operation mode is selected.

【図8】第2動作モードが選択された場合に、信号出力
ユニット5000から各ユニットに出力されるそれぞれ
の信号の動作を示すタイムチャートである。
FIG. 8 is a time chart showing the operation of each signal output from the signal output unit 5000 to each unit when the second operation mode is selected.

【図9】第2動作モードが選択された場合に、信号出力
ユニット5000から各ユニットに出力されるそれぞれ
の信号の動作を示すタイムチャートである。
FIG. 9 is a time chart showing the operation of each signal output from the signal output unit 5000 to each unit when the second operation mode is selected.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

【図26】候補ブロック特定ユニット4000の構成を
示すブロック図である。
FIG. 26 is a block diagram showing a configuration of a candidate block specifying unit 4000.

【図27】各プロセッサエレメントPE(x,y)およ
び各レジスタ(x,y)の配線を省略して示した図であ
る。
FIG. 27 is a diagram omitting wiring of each processor element PE (x, y) and each register (x, y).

【図28】第1動作モードのクロックパルス信号CK1
の1パルス目におけるディストーション算出ユニット3
000内の第1サーチウィンドウ230の画素データの
転送状態を示す図である。
FIG. 28 shows a clock pulse signal CK1 in the first operation mode.
Distortion calculation unit 3 at the first pulse
FIG. 9 is a diagram showing a transfer state of pixel data in a first search window 230 in a 000.

【図29】第1動作モードのクロックパルス信号CK1
の2パルス目におけるディストーション算出ユニット3
000内の第1サーチウィンドウ230の画素データの
転送状態を示す図である。
FIG. 29 shows a clock pulse signal CK1 in the first operation mode.
Calculation unit 3 for the second pulse
FIG. 9 is a diagram showing a transfer state of pixel data in a first search window 230 in a 000.

【図30】第1動作モードのクロックパルス信号CK1
の3パルス目におけるディストーション算出ユニット3
000内の第1サーチウィンドウ230の画素データの
転送状態を示す図である。
FIG. 30 shows a clock pulse signal CK1 in the first operation mode.
Distortion calculation unit 3 at the third pulse
FIG. 9 is a diagram showing a transfer state of pixel data in a first search window 230 in a 000.

【図31】第1動作モードのクロックパルス信号CK1
の4パルス目におけるディストーション算出ユニット3
000内の第1サーチウィンドウ230の画素データの
転送状態を示す図である。
FIG. 31 shows a clock pulse signal CK1 in the first operation mode.
Distortion calculation unit 3 at the 4th pulse
FIG. 9 is a diagram showing a transfer state of pixel data in a first search window 230 in a 000.

【図32】第1動作モードのクロックパルス信号CK1
の11パルス目におけるディストーション算出ユニット
3000内の第1サーチウィンドウ230の画素データ
の転送状態を示す図である。
FIG. 32 shows a clock pulse signal CK1 in the first operation mode.
FIG. 11 is a diagram showing a transfer state of pixel data in a first search window 230 in the distortion calculation unit 3000 at the 11th pulse of FIG.

【図33】第1動作モードのクロックパルス信号CK1
の12パルス目におけるディストーション算出ユニット
3000内の第1サーチウィンドウ230の画素データ
の転送状態を示す図である。
FIG. 33 shows a clock pulse signal CK1 in the first operation mode.
FIG. 14 is a diagram illustrating a transfer state of pixel data in a first search window 230 in the distortion calculation unit 3000 at the 12th pulse of FIG.

【図34】第1動作モードのクロックパルス信号CK1
の13パルス目におけるディストーション算出ユニット
3000内の第1サーチウィンドウ230の画素データ
の転送状態を示す図である。
FIG. 34 shows a clock pulse signal CK1 in the first operation mode.
FIG. 14 is a diagram showing a transfer state of pixel data in a first search window 230 in the distortion calculation unit 3000 at the 13th pulse.

【図35】第1動作モードのクロックパルス信号CK1
の14パルス目におけるディストーション算出ユニット
3000内の第1サーチウィンドウ230の画素データ
の転送状態を示す図である。
FIG. 35 shows a clock pulse signal CK1 in the first operation mode.
FIG. 14 is a diagram illustrating a transfer state of pixel data in a first search window 230 in the distortion calculation unit 3000 at the 14th pulse of FIG.

【図36】第1動作モードのクロックパルス信号CK1
の15パルス目におけるディストーション算出ユニット
3000内の第1サーチウィンドウ231の画素データ
の転送状態を示す図である。
FIG. 36 shows a clock pulse signal CK1 in the first operation mode.
FIG. 18 is a diagram illustrating a transfer state of pixel data in a first search window 231 in the distortion calculation unit 3000 at the 15th pulse of FIG.

【図37】第1動作モードのクロックパルス信号CK1
の16パルス目におけるディストーション算出ユニット
3000内の第1サーチウィンドウ231の画素データ
の転送状態を示す図である。
FIG. 37 shows a clock pulse signal CK1 in the first operation mode.
FIG. 17 is a diagram showing a transfer state of pixel data in a first search window 231 in the distortion calculation unit 3000 at the 16th pulse of FIG.

【図38】第1動作モードのクロックパルス信号CK1
の17パルス目におけるディストーション算出ユニット
3000内の第1サーチウィンドウ231の画素データ
の転送状態を示す図である。
FIG. 38 shows a clock pulse signal CK1 in the first operation mode.
FIG. 21 is a diagram illustrating a transfer state of pixel data in a first search window 231 in the distortion calculation unit 3000 at the 17th pulse of FIG.

【図39】第1動作モードのクロックパルス信号CK1
の18パルス目におけるディストーション算出ユニット
3000内の第1サーチウィンドウ231の画素データ
の転送状態を示す図である。
FIG. 39 shows a clock pulse signal CK1 in the first operation mode.
FIG. 18 is a diagram illustrating a transfer state of pixel data in a first search window 231 in the distortion calculation unit 3000 at the 18th pulse of FIG.

【図40】現符号化ブロック110に対して水平方向に
隣接する現符号化ブロック111と第1サーチウィンド
ウ230に水平方向に2画素分シフトした第1サーチウ
ィンドウ231を示す図である。
FIG. 40 is a diagram illustrating the current coding block 111 horizontally adjacent to the current coding block 110 and a first search window 231 shifted horizontally by two pixels to the first search window 230;

【図41】第2動作モードのクロックパルス信号CK1
の1パルス目におけるディストーション算出ユニット3
000内の第2サーチウィンドウ240の画素データの
転送状態を示す図である。
FIG. 41 shows a clock pulse signal CK1 in the second operation mode.
Distortion calculation unit 3 at the first pulse
FIG. 14 is a diagram illustrating a transfer state of pixel data in a second search window 240 in 000.

【図42】第2動作モードのクロックパルス信号CK1
の2パルス目におけるディストーション算出ユニット3
000内の第2サーチウィンドウ240の画素データの
転送状態を示す図である。
FIG. 42 shows a clock pulse signal CK1 in the second operation mode.
Calculation unit 3 for the second pulse
FIG. 14 is a diagram illustrating a transfer state of pixel data in a second search window 240 in 000.

【図43】第2動作モードのクロックパルス信号CK1
の3パルス目におけるディストーション算出ユニット3
000内の第2サーチウィンドウ240の画素データの
転送状態を示す図である。
FIG. 43 shows a clock pulse signal CK1 in the second operation mode.
Distortion calculation unit 3 at the third pulse
FIG. 14 is a diagram illustrating a transfer state of pixel data in a second search window 240 in 000.

【図44】第2動作モードのクロックパルス信号CK1
の4パルス目におけるディストーション算出ユニット3
000内の第2サーチウィンドウ240の画素データの
転送状態を示す図である。
FIG. 44 shows a clock pulse signal CK1 in the second operation mode.
Distortion calculation unit 3 at the 4th pulse
FIG. 14 is a diagram illustrating a transfer state of pixel data in a second search window 240 in 000.

【図45】第2動作モードのクロックパルス信号CK1
の7パルス目におけるディストーション算出ユニット3
000内の第2サーチウィンドウ240の画素データの
転送状態を示す図である。
FIG. 45 shows a clock pulse signal CK1 in the second operation mode.
Calculation unit 3 for 7th pulse
FIG. 14 is a diagram illustrating a transfer state of pixel data in a second search window 240 in 000.

【図46】第2動作モードのクロックパルス信号CK1
の8パルス目におけるディストーション算出ユニット3
000内の第2サーチウィンドウ240の画素データの
転送状態を示す図である。
FIG. 46 shows a clock pulse signal CK1 in the second operation mode.
Calculation unit 3 for the 8th pulse
FIG. 14 is a diagram illustrating a transfer state of pixel data in a second search window 240 in 000.

【図47】第2動作モードのクロックパルス信号CK1
の9パルス目におけるディストーション算出ユニット3
000内の第2サーチウィンドウ240の画素データの
転送状態を示す図である。
FIG. 47 shows a clock pulse signal CK1 in the second operation mode.
Calculation unit 3 at the 9th pulse
FIG. 14 is a diagram illustrating a transfer state of pixel data in a second search window 240 in 000.

【図48】第2動作モードのクロックパルス信号CK1
の10パルス目におけるディストーション算出ユニット
3000内の第2サーチウィンドウ240の画素データ
の転送状態を示す図である。
FIG. 48 shows a clock pulse signal CK1 in the second operation mode.
FIG. 10 is a diagram showing a transfer state of pixel data in a second search window 240 in the distortion calculation unit 3000 at the tenth pulse of FIG.

【図49】第2動作モードのクロックパルス信号CK1
の11パルス目におけるディストーション算出ユニット
3000内の第2サーチウィンドウ241の画素データ
の転送状態を示す図である。
FIG. 49 shows a clock pulse signal CK1 in the second operation mode.
FIG. 18 is a diagram showing a transfer state of pixel data in a second search window 241 in the distortion calculation unit 3000 at the eleventh pulse of FIG.

【図50】第2動作モードのクロックパルス信号CK1
の12パルス目におけるディストーション算出ユニット
3000内の第2サーチウィンドウ241の画素データ
の転送状態を示す図である。
FIG. 50 shows a clock pulse signal CK1 in the second operation mode.
FIG. 15 is a diagram illustrating a transfer state of pixel data in a second search window 241 in the distortion calculation unit 3000 at the 12th pulse of FIG.

【図51】第2動作モードのクロックパルス信号CK1
の13パルス目におけるディストーション算出ユニット
3000内の第2サーチウィンドウ241の画素データ
の転送状態を示す図である。
FIG. 51 shows a clock pulse signal CK1 in the second operation mode.
FIG. 14 is a diagram illustrating a transfer state of pixel data in a second search window 241 in the distortion calculation unit 3000 at the 13th pulse of FIG.

【図52】第2動作モードのクロックパルス信号CK1
の14パルス目におけるディストーション算出ユニット
3000内の第2サーチウィンドウ241の画素データ
の転送状態を示す図である。
FIG. 52 shows a clock pulse signal CK1 in the second operation mode.
FIG. 14 is a diagram showing a transfer state of pixel data in a second search window 241 in the distortion calculation unit 3000 at the 14th pulse of FIG.

【図53】現符号化ブロック110に対して水平方向に
隣接する現符号化ブロック111と第2サーチウィンド
ウ240に水平方向に2画素分シフトした第2サーチウ
ィンドウ241を示す図である。
FIG. 53 is a diagram showing the current coding block 111 horizontally adjacent to the current coding block 110 and a second search window 241 horizontally shifted by two pixels to a second search window 240;

【図54】N行M列の現符号化ブロックに対して水平方
向に隣接する現符号化ブロックを示す図である。
FIG. 54 is a diagram illustrating a current coded block horizontally adjacent to a current coded block of N rows and M columns.

【図55】N行M列の現符号化ブロックに対して水平方
向に隣接する現符号化ブロックおよびこの現符号化ブロ
ックに対応して水平方向にM画素分シフトしたH行L列
のサーチウィンドウを示す図である。
55. A current coded block horizontally adjacent to a current coded block of N rows and M columns, and a search window of H rows and L columns shifted by M pixels in the horizontal direction corresponding to the current coded block FIG.

【図56】本発明に係る実施例2の動きベクトル探索装
置のディストーション算出ユニット3001を示す図で
ある。
FIG. 56 is a diagram illustrating a distortion calculation unit 3001 of the motion vector search device according to the second embodiment of the present invention.

【図57】第3サイドレジスタSR(x,5)の基本的
な端子配置を示す図である。
FIG. 57 is a diagram showing a basic terminal arrangement of a third side register SR (x, 5).

【図58】第3サイドレジスタSR(x,5)の基本的
な構成を示すブロック図である。
FIG. 58 is a block diagram showing a basic configuration of a third side register SR (x, 5).

【図59】N行M列の現符号化ブロックに対するサイド
レジスタグループの構成を示す図である。
FIG. 59 is a diagram illustrating a configuration of a side register group for a current coded block of N rows and M columns.

【図60】2次元配列プロセッサグループ3800にお
いて、各列毎に各プロセッサエレメントPE(x,
y)、各中間レジスタIP(x,y)および各第3サイ
ドレジスタSR(x,y)の間の距離を均等に配置した
ことを示す図である。
60. In the two-dimensional array processor group 3800, each processor element PE (x,
FIG. 6Y is a diagram showing that the distances between the intermediate registers IP (x, y) and the third side registers SR (x, y) are evenly arranged.

【図61】本発明に係る実施例3の動きベクトル探索装
置のディストーション算出ユニット3004を示す図で
ある。
FIG. 61 is a diagram illustrating a distortion calculation unit 3004 of the motion vector search device according to the third embodiment of the present invention.

【図62】本発明に係る実施例3の動きベクトル探索装
置のディストーション算出ユニット3005を示す図で
ある。
FIG. 62 is a diagram illustrating a distortion calculation unit 3005 of the motion vector search device according to the third embodiment of the present invention.

【図63】図61における水平方向の外側に位置してい
るプロセッサエレメントPE(x,y)の端子配置を示
す図である。
63 is a diagram showing a terminal arrangement of a processor element PE (x, y) located outside in the horizontal direction in FIG. 61;

【図64】図61における水平方向の外側に位置してい
るプロセッサエレメントPE(x,y)の構成を示すブ
ロック図である。
FIG. 64 is a block diagram showing a configuration of a processor element PE (x, y) located outside in the horizontal direction in FIG. 61;

【図65】図61における水平方向の中央に位置してい
るプロセッサエレメントPE(x,y)の端子配置を示
す図である。
FIG. 65 is a diagram showing a terminal arrangement of a processor element PE (x, y) located at the center in the horizontal direction in FIG. 61;

【図66】図61における水平方向の中央に位置してい
るプロセッサエレメントPE(x,y)の構成を示すブ
ロック図である。
FIG. 66 is a block diagram showing a configuration of a processor element PE (x, y) located at the center in the horizontal direction in FIG. 61;

【図67】図62における垂直方向の外側に位置してい
るプロセッサエレメントPE(x,y)の端子配置を示
す図である。
FIG. 67 is a diagram showing a terminal arrangement of a processor element PE (x, y) located outside in the vertical direction in FIG. 62;

【図68】図62における垂直方向の外側に位置してい
るプロセッサエレメントPE(x,y)の構成を示すブ
ロック図である。
FIG. 68 is a block diagram showing a configuration of a processor element PE (x, y) located outside in the vertical direction in FIG. 62;

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

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

【図71】現画像102上の現符号化ブロック112お
よび前符号化画像202上のサーチウィンドウ212を
示す図である。
71 is a diagram showing a current coding block 112 on the current image 102 and a search window 212 on the previous coding image 202. FIG.

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

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

【図74】現符号化ブロックと各候補ブロックとのそれ
ぞれのディストーションを算出する方法を示す図であ
る。
FIG. 74 is a diagram illustrating a method of calculating respective distortions of a current coding block and each candidate block.

【図75】現符号化ブロックと各候補ブロックとのそれ
ぞれのディストーションを算出する方法を示す図であ
る。
FIG. 75 is a diagram illustrating a method of calculating respective distortions of a current coded block and each candidate block.

【図76】双方向予測符号化方式を示す図である。FIG. 76 is a diagram illustrating a bidirectional predictive encoding method.

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

100,101,102 現画像 110,111,112 現符号化ブロック 120 人物像 121,122 有意画素領域 200,201,202 前符号化画像 210,212 サーチウィンドウ 230,231 第1サーチウィンドウ 240,241 第2サーチウィンドウ 220,222 候補ブロック 1000 現符号化ブロックデータ供給ユニット 2000 サーチウィンドウデータ供給ユニット 3000,3001,3002,3003,3004,
3005 ディストーション算出ユニット 3100,3110,3120,3130,3140,
3150,3160,3170 動作モード選択部 3101,3111,3121 第1セレクタ 3102,3112,3122 第2セレクタ 3103,3113,3133,3143,3153,
3163 第3セレクタ 3200,3210,3230,3240,3250,
3260,3270転送方向選択部 3201,3211,3231,3241,3251,
3261,3271第4セレクタ 3202,3212,3222,3232,3242,
3252,3262,3272 第1フリップフロップ 3300 ディストーション算出部 3301 減算器 3302 正数変換器 3303 論理積演算器 3304 加算器 3305 第2フリップフロップ 3400 ディストーション転送部 3401 第5セレクタ 3402 第3フリップフロップ 3800,3801,3802,3803,3804,
3805 2次元配列プロセッサグループ 3900,3901,3902,3903,3904,
3905 入力レジスタグループ 3910,3911,3912,3914,3915
第1サイドレジスタグループ 3920,3921,3922,3924,3925
第2サイドレジスタグループ 3930,3933 第3サイドレジスタグループ 4000 候補ブロック特定ユニット 4100 最小ディストーション検出部 4101 第1比較器 4102 論理和演算器 4103 第2比較器 4104 セレクタ 4105 第1フリップフロップ 4106 第2フリップフロップ 4200 動きベクトル特定部 4201 カウンタ 4202 反転器 4203 論理積演算器 4204 第3フリップフロップ 4205 第4フリップフロップ 4206 第1換算テーブル 4207 第2換算テーブル 4208 第5フリップフロップ 4209 第6フリップフロップ 5000 信号出力ユニット 6000 動作モード選択ユニット
100, 101, 102 Current image 110, 111, 112 Current coded block 120 Human image 121, 122 Significant pixel area 200, 201, 202 Pre-coded image 210, 212 Search window 230, 231 First search window 240, 241 2 Search window 220,222 Candidate block 1000 Current coded block data supply unit 2000 Search window data supply unit 3000,3001,3002,3003,3004
3005 distortion calculation unit 3100, 3110, 3120, 3130, 3140,
3150, 3160, 3170 Operation mode selection units 3101, 3111, 3121 First selectors 3102, 3112, 3122 Second selectors 3103, 3113, 3133, 3143, 3153
3163 Third selector 3200, 3210, 3230, 3240, 3250,
3260, 3270 transfer direction selectors 3201, 3211, 3231, 3241, 3251,
3261, 3271 Fourth selectors 3202, 3212, 3222, 3232, 3242,
3252, 3262, 3272 First flip-flop 3300 Distortion calculating unit 3301 Subtractor 3302 Positive number converter 3303 Logical product operator 3304 Adder 3305 Second flip-flop 3400 Distortion transfer unit 3401 Fifth selector 3402 Third flip-flop 3800, 3801 , 3802, 3803, 3804,
3805 Two-dimensional array processor group 3900, 3901, 3902, 3903, 3904
3905 Input register group 3910, 3911, 3912, 3914, 3915
First side register group 3920, 3921, 3922, 3924, 3925
Second side register group 3930, 3933 Third side register group 4000 Candidate block specifying unit 4100 Minimum distortion detector 4101 First comparator 4102 OR operator 4103 Second comparator 4104 Selector 4105 First flip-flop 4106 Second flip-flop 4200 motion vector specifying unit 4201 counter 4202 inverter 4203 AND operator 4204 third flip-flop 4205 fourth flip-flop 4206 first conversion table 4207 second conversion table 4208 fifth flip-flop 4209 sixth flip-flop 5000 signal output unit 6000 Operation mode selection unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 岡田 豊 東京都渋谷区代々木4丁目36番19号 株 式会社グラフィックス・コミュニケーシ ョン・ラボラトリーズ内 (56)参考文献 特開 平5−37922(JP,A) 特開 平6−113290(JP,A) 特開 平8−140094(JP,A) 特開 平8−195955(JP,A) 特開 平8−280023(JP,A) 特開 平8−322049(JP,A) (58)調査した分野(Int.Cl.6,DB名) H04N 7/24 - 7/68──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Yutaka Okada 4-36-19 Yoyogi, Shibuya-ku, Tokyo Inside Graphics Communication Laboratories Co., Ltd. (56) References JP-A-5-37922 ( JP, A) JP-A-6-113290 (JP, A) JP-A-8-140094 (JP, A) JP-A-8-195955 (JP, A) JP-A-8-280023 (JP, A) JP Hei 8-322049 (JP, A) (58) Fields investigated (Int. Cl. 6 , DB name) H04N 7/ 24-7/68

Claims (16)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】H1,L1,H2,L2,NおよびMを整
数とし、H2をH1以下の整数、L2をL1以下の整数
とするとき、動画像を構成する現画像の符号化情報を現
画像より先に符号化された前符号化画像の符号化情報に
基づいて生成するよう、前記現画像の一部を構成するN
行M列の画素からなる現符号化ブロックと前記前符号化
画像上のH1行L1列の画素からなる第1サーチウィン
ドウ内のN行M列の画素からなる複数の候補ブロックと
をそれぞれ比較し、これらの候補ブロックから前記現符
号化ブロックに類似する1つの候補ブロックを選択し、
前記現符号化ブロックの現画像上の位置と選択された候
補ブロックの前符号化画像上の位置との変位により特定
される動きベクトルを探索する第1動作モードと、前記
現符号化ブロックと前記前符号化画像上のH2行L2列
の画素からなる第2サーチウィンドウ内のN行M列の画
素からなる複数の候補ブロックとをそれぞれ比較し、こ
れらの候補ブロックから前記現符号化ブロックに類似す
る1つの候補ブロックを選択し、前記現符号化ブロック
の現画像上の位置と選択された候補ブロックの前符号化
画像上の位置との変位により特定される動きベクトルを
探索する第2動作モードと、前記第1動作モードと第2
動作モードの何れか一方を選択し、選択された動作モー
ドにおいて前記現符号化ブロックの動きベクトルを探索
する動きベクトル探索方法において、 前記第1動作モードと第2動作モードの何れか一方を選
択する動作モード選択手段と、該動作モード選択手段で
選択されたサーチウィンドウ内の各候補ブロックの画素
データと前記現符号化ブロックの画素データとに基づい
て、各候補ブロックと現符号化ブロックとのそれぞれの
ディストーションを算出するディストーション算出ユニ
ットと、該ディストーション算出ユニットに現符号化ブ
ロックの画素データを供給する現符号化ブロックデータ
供給ユニットと、前記ディストーション算出ユニットに
前記動作モード選択手段で選択されたサーチウィンドウ
内の画素データを供給するサーチウィンドウデータ供給
ユニットと、を準備する第1ステップを有し、 さらに、前記ディストーション算出ユニットは、前記サ
ーチウィンドウデータ供給ユニットから供給されたサー
チウィンドウの画素データを入力し、入力された画素デ
ータを一時的に保持して出力する記憶転送器と前記現符
号化ブロック供給ユニットから前記現符号化ブロックの
それぞれの画素データを入力するとともに、前記記憶転
送器から現符号化ブロックのそれぞれの画素位置に対応
する候補ブロックの画素データを入力し、入力された現
符号化ブロックの画素データと候補ブロックの画素デー
タとに基づいてディストーションを算出する演算器とか
ら構成される(H2−N+1)×(L2−M+1)個以
下のプロセッサエレメントと、前記記憶転送器からな
り、前記プロセッサエレメントを含む総数が(H1−N
+1)×(L1−M+1)個となる複数の中間レジスタ
と、前記サーチウィンドウデータ供給ユニットから供給
されたサーチウィンドウの画素データを入力し、入力さ
れた画素データを一時的に保持して出力する(H1−N
+1)個の入力レジスタからなる入力レジスタユニット
と、前記サーチウィンドウデータ供給ユニットから供給
されたサーチウィンドウの画素データを入力し、入力さ
れた画素データを一時的に保持して出力する(L1−M
+2)個のサイドレジスタデバイスからなるサイドレジ
スタユニットと、を含み、前記プロセッサエレメントが
前記中間レジスタとともに(H1−N+1)行(L1−
M+1)列のマトリックス状に想像上配置されるものと
するとき、 nを(H1−N+1)以下の自然数とし、mを(L1−
M+2)以下の自然数とし、前記入力レジスタユニット
の各入力レジスタは、それぞれ(L1−M+1)列目の
プロセッサエレメントまたは中間レジスタに電気的に接
続され、n行目の(L1−M+1)列目のプロセッサエ
レメントまたは中間レジスタに電気的に接続された入力
レジスタを、n行目の入力レジスタと呼ぶとし、前記サ
イドレジスタユニットの各サイドレジスタデバイスは、
それぞれ1行目および(H1−N+1)行目のプロセッ
サエレメント、中間レジスタまたは入力レジスタに電気
的に接続され、m列目の1行目および(H1−N+1)
行目のプロセッサエレメントまたは中間レジスタに電気
的に接続されたサイドレジスタデバイスを、m列目のサ
イドレジスタデバイスと呼ぶとともに、1行目および
(H1−N+1)行目の入力レジスタに電気的に接続さ
れたサイドレジスタデバイスを(L1−M+2)列目の
サイドレジスタデバイスと呼ぶとするとき、2行目以降
のn行目の入力レジスタが、n−1行目の入力レジスタ
に電気的に接続され、2列目以降のm列目のサイドレジ
スタデバイスが、m−1列目のサイドレジスタデバイス
に電気的に接続され、 iを(H2−N+1)以下の自然数とし、jを(L2−
M+1)以下の自然数とし、前記動作モード選択手段で
第2動作モードが選択された場合、前記第2サーチウィ
ンドウの探索範囲を示す(H2−N+1)行に対応する
よう1行目から(H1−N+1)行目までの(H1−N
+1)個の行から少なくとも1つのプロセッサエレメン
トを含むプロセッサエレメントおよび中間レジスタから
なる(H2−N+1)個の行をマトリックスの行数とし
てカウントし、かつ、前記第2サーチウィンドウの探索
範囲を示す(L2−M+1)列に対応するよう1列目か
ら(L1−M+1)列目までの(L1−N+1)個の列
から少なくとも1つのプロセッサエレメントを含むプロ
セッサエレメントおよび中間レジスタからなる(L2−
M+1)個の列をマトリックスの列数としてカウント
し、それぞれの行をi行、それぞれの列をj列で表すと
き、 さらに、前記動作モード選択手段で第1動作モードが選
択された場合、前記サーチウィンドウデータ供給ユニッ
トから前記入力レジスタユニットおよび前記(L1−M
+2)列目のサイドレジスタデバイスに第1サーチウィ
ンドウの画素データを順次供給する一方、 前記動作モード選択手段で第2動作モードが選択された
場合、前記サーチウィンドウデータ供給ユニットから前
記入力レジスタユニットおよび前記(L1−M+2)列
目のサイドレジスタデバイスに第2サーチウィンドウの
画素データを順次供給する第2ステップと、 前記動作モード選択手段で第1動作モードが選択された
場合、第2ステップにおいて、前記サーチウィンドウデ
ータ供給ユニットから第1サーチウィンドウの画素デー
タが転送されるタイミングに同期して、各サイドレジス
タデバイスから同列の1行目の各プロセッサエレメン
ト、各中間レジスタまたは入力レジスタに画素データを
転送し、同時に、1行目から(H1−N)行目までのn
行目の各プロセッサエレメントから同列のn+1行目の
各プロセッサエレメントまたは各中間レジスタに画素デ
ータを転送し、同時に、1行目から(H1−N)行目ま
でのn行目の各中間レジスタから同列のn+1行目の各
プロセッサエレメントまたは各中間レジスタに画素デー
タを転送し、同時に、1行目から(H1−N)行目まで
のn行目の入力レジスタから同列のn+1行目の入力レ
ジスタに画素データを転送し、同時に、(H1−N+
1)行目の各プロセッサエレメント、各中間レジスタお
よび入力レジスタから同列のサイドレジスタデバイスに
画素データを転送する一方、 前記動作モード選択手段で第2動作モードが選択された
場合、前記第2ステップにおいて、前記サーチウィンド
ウデータ供給ユニットから第2サーチウィンドウの画素
データが転送されるタイミングに同期して、各サイドレ
ジスタデバイスから同列の1行目の各プロセッサエレメ
ント、各中間レジスタまたは入力レジスタに画素データ
を転送し、同時に、1行目から(H1−N)行目までの
i行目の各プロセッサエレメントから同列のi+1行目
の各プロセッサエレメントまたは各中間レジスタに画素
データを転送し、同時に、1行目から(H1−N)行目
までのi行目の各中間レジスタから同列のi+1行目の
各プロセッサエレメントまたは各中間レジスタに画素デ
ータを転送し、同時に、1行目から(H1−N)行目ま
でのi行目の入力レジスタから同列のi+1行目の入力
レジスタに画素データを転送し、同時に、(H1−N+
1)行目の各プロセッサエレメント、中間レジスタおよ
び入力レジスタから同列のサイドレジスタデバイスに画
素データを転送する第3ステップと、 前記動作モード選択手段で第1動作モードが選択された
場合、第3ステップの後、前記サーチウィンドウデータ
供給ユニットから第1サーチウィンドウの画素データが
転送されるタイミングに同期して、2列目以降(L1−
M+1)列目までのm列目の各プロセッサエレメントか
ら同行のm−1列目の各プロセッサエレメントまたは各
中間レジスタに画素データを転送し、同時に、2列目以
降(L1−M+1)列目までのm列目の各中間レジスタ
から同行のm−1列目の各プロセッサエレメントまたは
各中間レジスタに画素データを転送し、同時に、2列目
以降(L1−M+2)列目までのm列目の各サイドレジ
スタデバイスから同行のm−1列目の各サイドレジスタ
デバイスに画素データを転送し、同時に、各入力レジス
タから同行の(L1−M+1)列目の各プロセッサエレ
メントまたは各中間レジスタに画素データを転送する一
方、 前記動作モード選択手段で第2動作モードが選択された
場合、前記第3ステップの後、前記サーチウィンドウデ
ータ供給ユニットから第2サーチウィンドウの画素デー
タが転送されるタイミングに同期して、2列目以降(L
1−M+1)列目までのj列目の各プロセッサエレメン
トから同行のj−1列目の各プロセッサエレメントまた
は各中間レジスタに画素データを転送し、同時に、2列
目以降(L1−M+1)列目までのj列目の各中間レジ
スタから同行のj−1列目の各プロセッサエレメントま
たは各中間レジスタに画素データを転送し、同時に、2
列目以降(L1−M+2)列目までのj列目の各サイド
レジスタデバイスから同行のj−1列目の各サイドレジ
スタデバイスに画素データを転送し、同時に、各入力レ
ジスタから同行の(L1−M+1)列目の各プロセッサ
エレメントまたは各中間レジスタ画素データを転送する
第4ステップと、 前記動作モード選択手段で第1動作モードが選択された
場合、第4ステップの後、前記サーチウィンドウデータ
供給ユニットから第1サーチウィンドウの画素データが
転送されるタイミングに同期して、1行目の各プロセッ
サエレメント、各中間レジスタおよび入力レジスタから
同列のサイドレジスタデバイスに画素データを転送し、
同時に、2行目から(H1−N+1)行目までのn行目
の各プロセッサエレメントから同列のn−1行目の各プ
ロセッサエレメントまたは各中間レジスタに画素データ
を転送し、同時に、2行目から(H1−N+1)行目ま
でのn行目の各中間レジスタから同列のn−1行目の各
プロセッサエレメントまたは各中間レジスタに画素デー
タを転送し、同時に、2行目から(H1−N+1)行目
までのn行目の入力レジスタから同列のn−1行目の入
力レジスタに画素データを転送し、同時に、各サイドレ
ジスタデバイスから同列の(H1−N+1)行目の各プ
ロセッサエレメント、各中間レジスタまたは入力レジス
タに画素データを転送する一方、 前記動作モード選択手段で第2動作モードが選択された
場合、前記第4ステップの後、前記サーチウィンドウデ
ータ供給ユニットから第2サーチウィンドウの画素デー
タが転送されるタイミングに同期して、1行目の各プロ
セッサエレメント、各中間レジスタおよび入力レジスタ
から同列のサイドレジスタデバイスに画素データを転送
し、同時に、2行目から(H1−N+1)行目までのi
行目の各プロセッサエレメントから同列のi−1行目の
各プロセッサエレメントまたは各中間レジスタに画素デ
ータを転送し、同時に、2行目から(H1−N+1)行
目までのi行目の各中間レジスタから同列のi−1行目
の各プロセッサエレメントまたは各中間レジスタに画素
データを転送し、同時に、2行目から(H1−N+1)
行目までのi行目の入力レジスタから同列のi−1行目
の入力レジスタに画素データを転送し、同時に、サイド
レジスタデバイスから同列の(H1−N+1)行目の各
プロセッサエレメント、各中間レジスタまたは入力レジ
スタに画素データを転送する第5ステップと、 前記第3ステップを(N−1)回繰り返し、次いで、前
記第4ステップを1回行い、次いで、前記第5ステップ
を(N−1)回繰り返し、次いで、前記第4ステップを
1回行う工程を1サイクルとして、順次このサイクルを
繰り返す第6ステップと、 前記動作モード選択手段で第1動作モードが選択された
場合、1列目のプロセッサエレメントに前記第1サーチ
ウィンドウの画像データが初めて転送されたとき、各プ
ロセッサエレメントに前記現符号化ブロックの1画素分
の画素データを現符号化ブロックデータ供給ユニットか
ら入力し、以後、前記第6ステップの画素データの転送
タイミングに同期して、各プロセッサエレメントに現符
号化ブロックの全ての画素データが画素毎に入力される
まで、画素データの入力を繰り返す一方、 前記動作モード選択手段で第2動作モードが選択された
場合、1列目のプロセッサエレメントに前記第2サーチ
ウィンドウの画像データが初めて転送されたとき、各プ
ロセッサエレメントに前記現符号化ブロックの1画素分
の画素データを現符号化ブロックデータ供給ユニットか
ら入力し、以後、前記第6ステップの画素データの転送
タイミングに同期して、各プロセッサエレメントに現符
号化ブロックの全ての画素データが画素毎に入力される
まで、画素データの入力を繰り返す第7ステップと、 前記動作モード選択手段で第1動作モードが選択された
場合、前記第7ステップで各プロセッサエレメントに入
力された第1サーチウィンドウ内の各候補ブロックの画
素データと現符号化ブロックの画素データに基づいて、
各プロセッサエレメントでディストーションを算出する
一方、 さらに、前記動作モード選択手段で第2動作モードが選
択された場合、前記第7ステップで各プロセッサエレメ
ントに入力された第2サーチウィンドウ内の各候補ブロ
ックの画素データと現符号化ブロックの画素データに基
づいて、各プロセッサエレメントがディストーションを
算出することを特徴とする動きベクトル探索方法。
When H1, L1, H2, L2, N, and M are integers, H2 is an integer equal to or less than H1, and L2 is an integer equal to or less than L1, coding information of a current image forming a moving image is represented by a current value. N which forms a part of the current image so as to be generated based on coding information of a pre-coded image which is coded earlier than the image.
A current coded block consisting of pixels in row M and columns are compared with a plurality of candidate blocks consisting of pixels in row N and column M in a first search window consisting of pixels in row H1 and column L1 on the preceding coded image. , Selecting one candidate block similar to the current coded block from these candidate blocks,
A first operation mode for searching for a motion vector specified by a displacement between a position on the current image of the current coded block and a position on the previous coded image of the selected candidate block; A plurality of candidate blocks consisting of pixels of N rows and M columns in a second search window consisting of pixels of H2 rows and L2 columns on the pre-encoded image are respectively compared, and these candidate blocks are similar to the current encoded block. A second operation mode in which one candidate block to be selected is selected, and a motion vector specified by a displacement between the position of the current coded block on the current image and the position of the selected candidate block on the previous coded image is searched. And the first operation mode and the second operation mode.
In a motion vector search method for selecting one of operation modes and searching for a motion vector of the current coded block in the selected operation mode, selecting one of the first operation mode and the second operation mode Operation mode selection means, and based on the pixel data of each candidate block and the pixel data of the current coding block in the search window selected by the operation mode selection means, each of the candidate block and the current coding block. A current calculating block data supply unit for supplying the distortion calculating unit with the pixel data of the current coding block, and a search window selected by the operation mode selecting means for the distortion calculating unit. To supply pixel data in the And a window data supply unit. The distortion calculation unit further receives the search window pixel data supplied from the search window data supply unit, and temporarily stores the input pixel data. The respective pixel data of the current coded block is input from the storage coder and the current coded block supply unit, and the pixel data corresponding to each pixel position of the current coded block from the storage coder. (H2−N + 1) × (L2−) that receives pixel data of the candidate block to be input and calculates a distortion based on the input pixel data of the current coding block and the pixel data of the candidate block. M + 1) or less processor elements and the storage transfer device, The total number including Russia processor elements (H1-N
+1) × (L1−M + 1) intermediate registers and the pixel data of the search window supplied from the search window data supply unit are input, and the input pixel data is temporarily held and output. (H1-N
+1) An input register unit composed of input registers and the pixel data of the search window supplied from the search window data supply unit are input, and the input pixel data is temporarily held and output (L1-M).
+2) side register units comprising side register devices, wherein the processor element together with the intermediate register has (H1-N + 1) rows (L1-
When imaginarily arranged in a matrix of (M + 1) columns, n is a natural number equal to or smaller than (H1-N + 1), and m is (L1-
(M + 2) or less, and each input register of the input register unit is electrically connected to a processor element or an intermediate register in the (L1-M + 1) th column, and is connected to the (L1-M + 1) th column in the nth row. An input register electrically connected to the processor element or the intermediate register is referred to as an n-th row input register, and each side register device of the side register unit includes:
The first row and the (H1-N + 1) -th row are electrically connected to the processor element, the intermediate register, or the input register, respectively.
The side register device electrically connected to the processor element or the intermediate register in the row is referred to as the m-th column side register device, and is electrically connected to the input registers in the first and (H1-N + 1) th rows. When the obtained side register device is referred to as a (L1-M + 2) -th column side register device, the input registers in the nth and subsequent rows are electrically connected to the input registers in the (n-1) th row. The side register devices in the m th and subsequent columns are electrically connected to the side register devices in the (m−1) th column, i is a natural number equal to or less than (H 2 −N + 1), and j is (L 2 −
(M + 1) or less, and when the second operation mode is selected by the operation mode selection means, from the first line (H1-N1) to correspond to the (H2-N + 1) line indicating the search range of the second search window. (H1-N) up to the (N + 1) th line
(H2-N + 1) rows consisting of a processor element including at least one processor element and an intermediate register from (+1) rows are counted as the number of rows of the matrix, and indicate a search range of the second search window ( A processor element including at least one processor element and an intermediate register from (L1-N + 1) columns from the first column to the (L1-M + 1) column corresponding to the (L2-M + 1) column (L2-
When (M + 1) columns are counted as the number of columns of the matrix, each row is represented by i rows, and each column is represented by j columns. Further, when the first operation mode is selected by the operation mode selecting means, From the search window data supply unit to the input register unit and the (L1-M
+2) While sequentially supplying the pixel data of the first search window to the side register device in the column, if the second operation mode is selected by the operation mode selecting means, the search window data supply unit supplies the input register unit and A second step of sequentially supplying pixel data of a second search window to the side register device in the (L1-M + 2) th column; and a second step when the first operation mode is selected by the operation mode selection means. In synchronization with the timing at which the pixel data of the first search window is transferred from the search window data supply unit, the pixel data is transferred from each side register device to each processor element, each intermediate register or the input register in the first row in the same column. At the same time, from the first row, (H1-N) n up to eye
The pixel data is transferred from each processor element in the row to each processor element in the (n + 1) th row or each intermediate register in the same column, and simultaneously, from each intermediate register in the nth row from the first row to the (H1-N) th row. The pixel data is transferred to each processor element or each intermediate register in the (n + 1) th row in the same column, and at the same time, from the nth row input register in the first row to the (H1-N) th row to the (n + 1) th row input register in the same row. At the same time as (H1-N +
1) While transferring pixel data from each processor element, each intermediate register, and the input register in the row to the side register device in the same column, if the second operation mode is selected by the operation mode selecting means, In synchronization with the timing at which the pixel data of the second search window is transferred from the search window data supply unit, the pixel data is transferred from each side register device to each processor element, each intermediate register, or the input register in the first row in the same column. At the same time, pixel data is transferred from each processor element in the i-th row from the first row to the (H1-N) th row to each processor element in the (i + 1) -th row or each intermediate register in the same column. From each intermediate register in the i-th row from the (h1-N) th row to the i-th row The pixel data is transferred to each processor element or each intermediate register in the (+1) th row, and simultaneously, the pixel data is transferred from the i-th input register in the first to (H1-N) th rows to the (i + 1) th input register in the same column. Transfer the data and at the same time, (H1-N +
1) a third step of transferring pixel data from each processor element, intermediate register and input register in the row to a side register device in the same column; and a third step when the first operation mode is selected by the operation mode selection means. Thereafter, in synchronization with the timing at which the pixel data of the first search window is transferred from the search window data supply unit, the second and subsequent columns (L1-
Pixel data is transferred from each processor element in the mth column up to the (M + 1) th column to each processor element in the (m-1) th column or each intermediate register in the same row, and at the same time, from the second column to the (L1-M + 1) th column The pixel data is transferred from each intermediate register in the m-th column to each processor element or each intermediate register in the (m-1) -th column in the same row, and at the same time, the m-th column from the second column to the (L1-M + 2) -th column Pixel data is transferred from each side register device to each side register device in the m-1st column of the same row, and simultaneously, pixel data is transferred from each input register to each processor element or each intermediate register in the (L1-M + 1) th column of the same row. When the second operation mode is selected by the operation mode selection means, after the third step, the search window data supply unit is transferred. In synchronization with the timing at which pixel data of the second search window is transferred from the
The pixel data is transferred from each processor element in the j-th column up to the (1-M + 1) th column to each processor element in the j-1th column or each intermediate register in the same row, and at the same time, the second and subsequent columns (L1-M + 1) The pixel data is transferred from each intermediate register in the j-th column to each processor element or each intermediate register in the j-1st column in the same row.
The pixel data is transferred from each of the side register devices in the j-th column up to the (L1-M + 2) th column to each of the side register devices in the j-1st column in the same row, and at the same time, from each input register in the (L1 -M + 1) a fourth step of transferring each processor element or each intermediate register pixel data in the column, and if the first operation mode is selected by the operation mode selection means, after the fourth step, supply of the search window data In synchronization with the timing at which the pixel data of the first search window is transferred from the unit, the pixel data is transferred from each processor element in the first row, each intermediate register and the input register to the side register device in the same column,
At the same time, pixel data is transferred from each processor element in the nth row from the second row to the (H1-N + 1) th row to each processor element in the (n-1) th row or each intermediate register in the same column. , The pixel data is transferred from each intermediate register in the n-th row from the (H1-N + 1) th row to each processor element or each intermediate register in the (n-1) -th row in the same column, and at the same time, from the second row to (H1-N + 1) ) The pixel data is transferred from the input register of the n-th row up to the row to the input register of the (n-1) -th row in the same column, and simultaneously, each processor element in the (H1-N + 1) -th row in the same column from each side register device; While transferring pixel data to each intermediate register or input register, if the second operation mode is selected by the operation mode selection means, after the fourth step, the In synchronization with the timing at which the pixel data of the second search window is transferred from the window data supply unit, the pixel data is transferred from each processor element in the first row, each intermediate register and the input register to the side register device in the same column, At the same time, i from the second line to the (H1-N + 1) th line
The pixel data is transferred from each processor element in the row to each processor element in the (i-1) th row or each intermediate register in the same column, and at the same time, each intermediate data in the i-th row from the second row to the (H1-N + 1) th row. The pixel data is transferred from the register to each processor element or each intermediate register on the (i-1) th row in the same column, and at the same time, from the second row, (H1-N + 1)
The pixel data is transferred from the input register of the i-th row up to the row to the input register of the (i-1) -th row in the same column, and at the same time, each processor element and each intermediate element in the (H1-N + 1) -th row in the same column from the side register device. A fifth step of transferring pixel data to a register or an input register; and repeating the third step (N-1) times, then performing the fourth step once, and then performing the fifth step (N-1). A) repeating the fourth step once as one cycle, and repeating this cycle sequentially. A sixth step, wherein when the first operation mode is selected by the operation mode selecting means, When the image data of the first search window is transferred to the processor elements for the first time, one pixel of the current coding block is assigned to each processor element. From the current coded block data supply unit, and thereafter, in synchronization with the transfer timing of the pixel data in the sixth step, all the pixel data of the current coded block are input to each processor element for each pixel. Until the second operation mode is selected by the operation mode selection means, when the image data of the second search window is transferred to the processor element in the first column for the first time, Pixel data for one pixel of the current coding block is input to each processor element from the current coding block data supply unit, and thereafter, the current pixel data is supplied to each processor element in synchronization with the transfer timing of the pixel data in the sixth step. The input of pixel data is repeated until all pixel data of the coding block is input for each pixel. Returning a seventh step, and when the first operation mode is selected by the operation mode selecting means, the pixel data of each candidate block in the first search window input to each processor element in the seventh step and the current encoding Based on the pixel data of the block,
While the distortion is calculated by each processor element, when the second operation mode is selected by the operation mode selecting means, each candidate block in the second search window input to each processor element in the seventh step is calculated. A motion vector search method, wherein each processor element calculates a distortion based on pixel data and pixel data of a current coding block.
【請求項2】前記動作モード選択手段は、現画像と前符
号化画像との時間的隔たりが所定値より大きい場合、第
1動作モードを選択し、現画像と前符号化画像との時間
的隔たりが所定値以下の場合、第2動作モードを選択す
ることを特徴とする請求項1記載の動きベクトル探索方
法。
2. The operation mode selection means selects a first operation mode when a temporal difference between a current image and a previous encoded image is larger than a predetermined value, and selects a first operation mode between the current image and the previous encoded image. The method according to claim 1, wherein the second operation mode is selected when the distance is equal to or less than a predetermined value.
【請求項3】前記ディストーション算出ユニットは、1
行目から(H1−N+1)行目までの(H1−N+1)
個の行の中の(H2−N+1)個の行と1列目から(L
1−M+1)行目までの(L1−M+1)個の列の中の
(L2−M+1)個の列とが前記マトリックス状で交差
する位置に(H2−N+1)×(L2−M+1)個のプ
ロセッサエレメントが配置され、前記動作モード選択手
段で第2動作モードが選択された場合、これらの(H2
−N+1)×(L2−M+1)個のプロセッサエレメン
トに前記第2〜第7ステップによって第2サーチウィン
ドウ内の各候補ブロックの画素データと現符号化ブロッ
クの画素データを入力し、入力された画素データに基づ
いてこれらの(H2−N+1)×(L2−M+1)個の
プロセッサエレメントでディストーションを算出するこ
とを特徴とする請求項1記載の動きベクトル探索方法。
3. The distortion calculating unit according to claim 1, wherein:
(H1-N + 1) from the line to the (H1-N + 1) th line
(H2-N + 1) rows and (L)
(H2-N + 1) .times. (L2-M + 1) at positions where (L2-M + 1) columns in (L1-M + 1) columns up to the (1-M + 1) th row intersect in the matrix form. When the processor element is arranged and the second operation mode is selected by the operation mode selection means, these (H2
The pixel data of each candidate block and the pixel data of the current coded block in the second search window are input to the (N + 1) × (L2-M + 1) processor elements by the second to seventh steps, and the input pixels 2. The motion vector search method according to claim 1, wherein the distortion is calculated by the (H2-N + 1) * (L2-M + 1) processor elements based on the data.
【請求項4】前記第1ステップは、前記ディストーショ
ン算出ユニットで算出されたすべてのディストーション
の中から最小の値を示すディストーションを検出すると
ともに、最小ディストーションが算出されたプロセッサ
エレメントのマトリックス状の配置位置に基づいて、最
小ディストーションが算出されたプロセッサエレメント
に対応する候補ブロックから現符号化ブロックへの動き
ベクトルを特定する候補ブロック特定ユニットを準備す
る第8ステップを有し、該候補ブロック特定ユニット
は、少なくとも1つのプロセッサエレメントを含むプロ
セッサエレメントおよび中間レジスタからなる(H2−
N+1)行のそれぞれの行の一端に位置するプロセッサ
エレメントに電気的に接続され、 さらに、前記ディストーション算出ユニットで算出され
たすべてのディストーションを候補ブロック特定ユニッ
トに転送する第9ステップを有し、該第9ステップは、
前記候補ブロック特定ユニットに電気的に接続されたそ
れぞれのプロセッサエレメントから前記候補ブロック特
定ユニットにそれぞれのディストーションを転送すると
ともに、候補ブロック特定ユニットに向けて各プロセッ
サエレメントから同行のプロセッサエレメントに順次デ
ィストーションを転送することを特徴とする請求項1〜
3記載の動きベクトル探索方法。
4. The method according to claim 1, wherein the first step detects a distortion having a minimum value among all the distortions calculated by the distortion calculation unit, and arranges the processor elements in which a minimum distortion is calculated in a matrix. An eighth step of preparing a candidate block specifying unit for specifying a motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coded block, based on the candidate block specifying unit, A processor element including at least one processor element and an intermediate register (H2-
A ninth step of electrically connecting a processor element located at one end of each of the (N + 1) rows to transferring all distortions calculated by the distortion calculation unit to a candidate block specifying unit; The ninth step is
Transferring each distortion from each processor element electrically connected to the candidate block specifying unit to the candidate block specifying unit, and sequentially distorting each processor element to the same processor element in the same row toward the candidate block specifying unit. The method according to claim 1, wherein the transfer is performed.
3. The motion vector search method according to 3.
【請求項5】前記動作モード選択手段によって第1動作
モードが選択された場合、前記サーチウィンドウデータ
供給ユニットは、第1サーチウィンドウをM画素分列方
向にシフトした第3サーチウィンドウの画素データで、
第1サーチウィンドウと第3サーチウィンドウで共通す
る画素データを除いた残りの画素データを、第1サーチ
ウィンドウの画素データに続けて供給することで、前記
第6ステップを繰り返す一方、 前記動作モード選択手段によって第2動作モードが選択
された場合、前記サーチウィンドウデータ供給ユニット
は、第2サーチウィンドウをM画素分列方向にシフトし
た第4サーチウィンドウの画素データで、第2サーチウ
ィンドウと第4サーチウィンドウで共通する画素データ
を除いた残りの画素データを、第2サーチウィンドウの
画素データに続けて供給することで、前記第6ステップ
を繰り返す第10ステップと、 前記動作モード選択手段によって第1動作モードが選択
された場合、前記現符号化ブロックデータ供給ユニット
は、前記現符号化ブロックの列方向に隣接し、前記第3
サーチウィンドウに対応するもうひとつの現符号化ブロ
ックの画素データを第1サーチウィンドウの現符号化ブ
ロックに続けて供給することで、前記第7ステップを繰
り返す一方、 前記動作モード選択手段によって第2動作モードが選択
された場合、前記現符号化ブロックデータ供給ユニット
は、前記現符号化ブロックの列方向に隣接し、前記第4
サーチウィンドウに対応するもうひとつの現符号化ブロ
ックの画素データを第2サーチウィンドウの現符号化ブ
ロックに続けて供給することで、前記第7ステップを繰
り返す第11ステップと、を有し、 前記第11ステップが終了する前に、前記第9ステップ
が終了することを特徴とする請求項4記載の動きベクト
ル探索方法。
5. When the first operation mode is selected by the operation mode selection means, the search window data supply unit uses the pixel data of the third search window obtained by shifting the first search window by M pixels in the column direction. ,
The sixth step is repeated by supplying the remaining pixel data except for the pixel data common to the first search window and the third search window to the pixel data of the first search window, while repeating the operation mode selection. When the second operation mode is selected by the means, the search window data supply unit uses the pixel data of the fourth search window obtained by shifting the second search window by M pixels in the column direction, and outputs the second search window and the fourth search window. A tenth step of repeating the sixth step by supplying the remaining pixel data excluding the pixel data common to the windows following the pixel data of the second search window; and a first operation by the operation mode selecting means. If a mode is selected, the current coded block data supply unit Adjacent in the column direction of the coding block, the third
The seventh step is repeated by continuously supplying the pixel data of another current coded block corresponding to the search window to the current coded block of the first search window, while the second operation is performed by the operation mode selecting means. When the mode is selected, the current coded block data supply unit is adjacent to the current coded block in the column direction, and
An eleventh step of repeating the seventh step by continuously supplying pixel data of another current coding block corresponding to a search window to the current coding block of the second search window; The method according to claim 4, wherein the ninth step is completed before the eleventh step is completed.
【請求項6】前記第1ステップは、前記ディストーショ
ン算出ユニットで算出されたすべてのディストーション
の中から最小の値を示すディストーションを検出すると
ともに、最小ディストーションが算出されたプロセッサ
エレメントのマトリックス状の配置位置に基づいて、最
小ディストーションが算出されたプロセッサエレメント
に対応する候補ブロックから現符号化ブロックへの動き
ベクトルを特定する候補ブロック特定ユニットを準備す
る第8ステップを有し、該候補ブロック特定ユニット
は、少なくとも1つのプロセッサエレメントを含むプロ
セッサエレメントおよび中間レジスタからなる(L2−
M+1)列のそれぞれの列の一端に位置するプロセッサ
エレメントに電気的に接続され、 さらに、前記ディストーション算出ユニットで算出され
たすべてのディストーションを候補ブロック特定ユニッ
トに転送する第9ステップを有し、該第9ステップは、
前記候補ブロック特定ユニットに電気的に接続されたそ
れぞれのプロセッサエレメントから前記候補ブロック特
定ユニットにそれぞれのディストーションを転送すると
ともに、候補ブロック特定ユニットに向けて各プロセッ
サエレメントから同列のプロセッサエレメントに順次デ
ィストーションを転送することを特徴とする請求項1〜
3記載の動きベクトル探索方法。
6. The first step includes detecting a distortion having a minimum value among all the distortions calculated by the distortion calculation unit, and arranging a matrix-like arrangement position of the processor element for which the minimum distortion is calculated. An eighth step of preparing a candidate block specifying unit for specifying a motion vector from the candidate block corresponding to the processor element for which the minimum distortion has been calculated to the current coded block, based on the candidate block specifying unit, A processor element including at least one processor element and an intermediate register (L2-
A ninth step of electrically connecting all distortions calculated by the distortion calculating unit to the candidate block specifying unit, the ninth step being electrically connected to a processor element located at one end of each of the (M + 1) columns. The ninth step is
Transferring each distortion from each processor element electrically connected to the candidate block specifying unit to the candidate block specifying unit, and sequentially distorting from each processor element to the same processor element toward the candidate block specifying unit. The method according to claim 1, wherein the transfer is performed.
3. The motion vector search method according to 3.
【請求項7】前記動作モード選択手段によって第1動作
モードが選択された場合、前記サーチウィンドウデータ
供給ユニットは、第1サーチウィンドウをM画素分列方
向にシフトした第3サーチウィンドウの画素データで、
第1サーチウィンドウと第3サーチウィンドウで共通す
る画素データを除いた残りの画素データを、第1サーチ
ウィンドウの画素データに続けて供給することで、前記
第6ステップを繰り返す一方、 前記動作モード選択手段によって第2動作モードが選択
された場合、前記サーチウィンドウデータ供給ユニット
は、第2サーチウィンドウをM画素分列方向にシフトし
た第4サーチウィンドウの画素データで、第2サーチウ
ィンドウと第4サーチウィンドウで共通する画素データ
を除いた残りの画素データを、第2サーチウィンドウの
画素データに続けて供給することで、前記第6ステップ
を繰り返す第10ステップと、 前記動作モード選択手段によって第1動作モードが選択
された場合、前記現符号化ブロックデータ供給ユニット
は、前記現符号化ブロックの列方向に隣接し、前記第3
サーチウィンドウに対応するもうひとつの現符号化ブロ
ックの画素データを第1サーチウィンドウの現符号化ブ
ロックに続けて供給することで、前記第7ステップを繰
り返す一方、 前記動作モード選択手段によって第2動作モードが選択
された場合、前記現符号化ブロックデータ供給ユニット
は、前記現符号化ブロックの列方向に隣接し、前記第4
サーチウィンドウに対応するもうひとつの現符号化ブロ
ックの画素データを第2サーチウィンドウの現符号化ブ
ロックに続けて供給することで、前記第7ステップを繰
り返す第11ステップと、を有し、 前記第11ステップが終了する前に、前記第9ステップ
が終了することを特徴とする請求項4記載の動きベクト
ル探索方法。
7. When the first operation mode is selected by the operation mode selection means, the search window data supply unit uses the pixel data of the third search window obtained by shifting the first search window by M pixels in the column direction. ,
The sixth step is repeated by supplying the remaining pixel data except for the pixel data common to the first search window and the third search window to the pixel data of the first search window, while repeating the operation mode selection. When the second operation mode is selected by the means, the search window data supply unit uses the pixel data of the fourth search window obtained by shifting the second search window by M pixels in the column direction, and outputs the second search window and the fourth search window. A tenth step of repeating the sixth step by supplying the remaining pixel data excluding the pixel data common to the windows following the pixel data of the second search window; and a first operation by the operation mode selecting means. If a mode is selected, the current coded block data supply unit Adjacent in the column direction of the coding block, the third
The seventh step is repeated by continuously supplying the pixel data of another current coded block corresponding to the search window to the current coded block of the first search window, while the second operation is performed by the operation mode selecting means. When the mode is selected, the current coded block data supply unit is adjacent to the current coded block in the column direction, and
An eleventh step of repeating the seventh step by continuously supplying pixel data of another current coding block corresponding to a search window to the current coding block of the second search window; The method according to claim 4, wherein the ninth step is completed before the eleventh step is completed.
【請求項8】H1,L1,H2,L2,NおよびMを整
数とし、H2をH1以下の整数、L2をL1以下の整数
とするとき、動画像を構成する現画像の符号化情報を現
画像より先に符号化された前符号化画像の符号化情報に
基づいて生成するよう、前記現画像の一部を構成するN
行M列の画素からなる現符号化ブロックと前記前符号化
画像上のH1行L1列の画素からなる第1サーチウィン
ドウ内のN行M列の画素からなる複数の候補ブロックと
をそれぞれ比較し、これらの候補ブロックから前記現符
号化ブロックに類似する1つの候補ブロックを選択し、
前記現符号化ブロックの現画像上の位置と選択された候
補ブロックの前符号化画像上の位置との変位により特定
される動きベクトルを探索する第1動作モードと、前記
現符号化ブロックと前記前符号化画像上のH2行L2列
の画素からなる第2サーチウィンドウ内のN行M列の画
素からなる複数の候補ブロックとをそれぞれ比較し、こ
れらの候補ブロックから前記現符号化ブロックに類似す
る1つの候補ブロックを選択し、前記現符号化ブロック
の現画像上の位置と選択された候補ブロックの前符号化
画像上の位置との変位により特定される動きベクトルを
探索する第2動作モードと、前記第1動作モードと第2
動作モードの何れか一方を選択し、選択された動作モー
ドにおいて前記現符号化ブロックの動きベクトルを探索
する動きベクトル探索装置において、 前記第1動作モードと第2動作モードの何れか一方を選
択する動作モード選択手段と、該動作モード選択手段で
選択されたサーチウィンドウ内の各候補ブロックの画素
データと前記現符号化ブロックの画素データとに基づい
て、各候補ブロックと現符号化ブロックとのそれぞれの
ディストーションを算出するディストーション算出ユニ
ットと、該ディストーション算出ユニットに現符号化ブ
ロックの画素データを供給する現符号化ブロックデータ
供給ユニットと、前記ディストーション算出ユニットに
前記動作モード選択手段で選択されたサーチウィンドウ
内の画素データを供給するサーチウィンドウデータ供給
ユニットと、を有し、 さらに、前記ディストーション算出ユニットは、前記サ
ーチウィンドウデータ供給ユニットから供給されたサー
チウィンドウの画素データを入力し、入力された画素デ
ータを一時的に保持して出力する記憶転送器と前記現符
号化ブロック供給ユニットから前記現符号化ブロックの
それぞれの画素データを入力するとともに、前記記憶転
送器から現符号化ブロックのそれぞれの画素位置に対応
する候補ブロックの画素データを入力し、入力された現
符号化ブロックの画素データと候補ブロックの画素デー
タとに基づいてディストーションを算出する演算器とか
ら構成される(H2−N+1)×(L2−M+1)個以
下のプロセッサエレメントと、前記記憶転送器からな
り、前記プロセッサエレメントを含む総数が(H1−N
+1)×(L1−M+1)個となる複数の中間レジスタ
と、前記サーチウィンドウデータ供給ユニットから供給
されたサーチウィンドウの画素データを入力し、入力さ
れた画素データを一時的に保持して出力する(H1−N
+1)個の入力レジスタからなる入力レジスタユニット
と、前記サーチウィンドウデータ供給ユニットから供給
されたサーチウィンドウの画素データを入力し、入力さ
れた画素データを一時的に保持して出力する(L1−M
+2)個のサイドレジスタデバイスからなるサイドレジ
スタユニットと、を有し、前記プロセッサエレメントが
前記中間レジスタとともに(H1−N+1)行(L1−
M+1)列のマトリックス状に想像上配置されるものと
するとき、 nを(H1−N+1)以下の自然数とし、mを(L1−
M+2)以下の自然数とし、前記入力レジスタユニット
の各入力レジスタは、それぞれ(L1−M+1)列目の
プロセッサエレメントまたは中間レジスタに電気的に接
続され、n行目の(L1−M+1)列目のプロセッサエ
レメントまたは中間レジスタに電気的に接続された入力
レジスタを、n行目の入力レジスタと呼ぶとし、前記サ
イドレジスタユニットの各サイドレジスタデバイスは、
それぞれ1行目および(H1−N+1)行目のプロセッ
サエレメント、中間レジスタまたは入力レジスタに電気
的に接続され、m列目の1行目および(H1−N+1)
行目のプロセッサエレメントまたは中間レジスタに電気
的に接続されたサイドレジスタデバイスを、m列目のサ
イドレジスタデバイスと呼ぶとともに、1行目および
(H1−N+1)行目の入力レジスタに電気的に接続さ
れたサイドレジスタデバイスを(L1−M+2)列目の
サイドレジスタデバイスと呼ぶとするとき、2行目以降
のn行目の入力レジスタが、n−1行目の入力レジスタ
に電気的に接続され、2列目以降のm列目のサイドレジ
スタデバイスが、m−1列目のサイドレジスタデバイス
に電気的に接続され、 iを(H2−N+1)以下の自然数とし、jを(L2−
M+1)以下の自然数とし、前記動作モード選択手段で
第2動作モードが選択された場合、前記第2サーチウィ
ンドウの探索範囲を示す(H2−N+1)行に対応する
よう1行目から(H1−N+1)行目までの(H1−N
+1)個の行から少なくとも1つのプロセッサエレメン
トを含むプロセッサエレメントおよび中間レジスタから
なる(H2−N+1)個の行をマトリックスの行数とし
てカウントし、かつ、前記第2サーチウィンドウの探索
範囲を示す(L2−M+1)列に対応するよう1列目か
ら(L1−M+1)列目までの(L1−M+1)個の列
から少なくとも1つのプロセッサエレメントを含むプロ
セッサエレメントおよび中間レジスタからなる(L2−
M+1)個の列をマトリックスの列数としてカウント
し、それぞれの行をi行、それぞれの列をj列で表すと
き、 前記動作モード選択手段で第1動作モードが選択された
場合、前記サーチウィンドウデータ供給ユニットから第
1サーチウィンドウの画素データが転送されるタイミン
グに同期して、各サイドレジスタデバイスから同列の1
行目の各プロセッサエレメント、各中間レジスタまたは
入力レジスタに画素データを転送し、同時に、1行目か
ら(H1−N)行目までのn行目の各プロセッサエレメ
ントから同列のn+1行目の各プロセッサエレメントま
たは各中間レジスタに画素データを転送し、同時に、1
行目から(H1−N)行目までのn行目の各中間レジス
タから同列のn+1行目の各プロセッサエレメントまた
は各中間レジスタに画素データを転送し、同時に、1行
目から(H1−N)行目までのn行目の入力レジスタか
ら同列のn+1行目の入力レジスタに画素データを転送
し、同時に、(H1−N+1)行目の各プロセッサエレ
メント、各中間レジスタおよび入力レジスタから同列の
サイドレジスタデバイスに画素データを転送する一方、 前記動作モード選択手段で第2動作モードが選択された
場合、前記サーチウィンドウデータ供給ユニットから第
2サーチウィンドウの画素データが転送されるタイミン
グに同期して、各サイドレジスタデバイスから同列の1
行目の各プロセッサエレメント、各中間レジスタまたは
入力レジスタに画素データを転送し、同時に、1行目か
ら(H1−N)行目までのi行目の各プロセッサエレメ
ントから同列のi+1行目の各プロセッサエレメントま
たは各中間レジスタに画素データを転送し、同時に、1
行目から(H1−N)行目までのi行目の各中間レジス
タから同列のi+1行目の各プロセッサエレメントまた
は各中間レジスタに画素データを転送し、同時に、1行
目から(H1−N)行目までのi行目の入力レジスタか
ら同列のi+1行目の入力レジスタに画素データを転送
し、同時に、(H1−N+1)行目の各プロセッサエレ
メント、中間レジスタおよび入力レジスタから同列のサ
イドレジスタデバイスに画素データを転送する第1転送
制御手段と、 前記動作モード選択手段で第1動作モードが選択された
場合、前記第1転送手段により画素データを転送した
後、前記サーチウィンドウデータ供給ユニットから第1
サーチウィンドウの画素データが転送されるタイミング
に同期して、2列目以降(L1−M+1)列目までのm
列目の各プロセッサエレメントから同行のm−1列目の
各プロセッサエレメントまたは各中間レジスタに画素デ
ータを転送し、同時に、2列目以降(L1−M+1)列
目までのm列目の各中間レジスタから同行のm−1列目
の各プロセッサエレメントまたは各中間レジスタに画素
データを転送し、同時に、2列目以降(L1−M+2)
列目までのm列目の各サイドレジスタデバイスから同行
のm−1列目の各サイドレジスタデバイスに画素データ
を転送し、同時に、各入力レジスタから同行の(L1−
M+1)列目の各プロセッサエレメントまたは各中間レ
ジスタに画素データを転送する一方、 前記動作モード選択手段で第2動作モードが選択された
場合、前記第1転送手段により画素データを転送した
後、前記サーチウィンドウデータ供給ユニットから第2
サーチウィンドウの画素データが転送されるタイミング
に同期して、2列目以降(L1−M+1)列目までのj
列目の各プロセッサエレメントから同行のj−1列目の
各プロセッサエレメントまたは各中間レジスタに画素デ
ータを転送し、同時に、2列目以降(L1−M+1)列
目までのj列目の各中間レジスタから同行のj−1列目
の各プロセッサエレメントまたは各中間レジスタに画素
データを転送し、同時に、2列目以降(L1−M+2)
列目までのj列目の各サイドレジスタデバイスから同行
のj−1列目の各サイドレジスタデバイスに画素データ
を転送し、同時に、各入力レジスタから同行の(L1−
M+1)列目の各プロセッサエレメントまたは各中間レ
ジスタ画素データを転送する第2転送制御手段と、 前記動作モード選択手段で第1動作モードが選択された
場合、前記第2転送手段により画素データを転送した
後、前記サーチウィンドウデータ供給ユニットから第1
サーチウィンドウの画素データが転送されるタイミング
に同期して、1行目の各プロセッサエレメント、各中間
レジスタおよび入力レジスタから同列のサイドレジスタ
デバイスに画素データを転送し、同時に、2行目から
(H1−N+1)行目までのn行目の各プロセッサエレ
メントから同列のn−1行目の各プロセッサエレメント
または各中間レジスタに画素データを転送し、同時に、
2行目から(H1−N+1)行目までのn行目の各中間
レジスタから同列のn−1行目の各プロセッサエレメン
トまたは各中間レジスタに画素データを転送し、同時
に、2行目から(H1−N+1)行目までのn行目の入
力レジスタから同列のn−1行目の入力レジスタに画素
データを転送し、同時に、各サイドレジスタデバイスか
ら同列の(H1−N+1)行目の各プロセッサエレメン
ト、各中間レジスタまたは入力レジスタに画素データを
転送する一方、 前記動作モード選択手段で第2動作モードが選択された
場合、前記第2転送手段により画素データを転送した
後、前記サーチウィンドウデータ供給ユニットから第2
サーチウィンドウの画素データが転送されるタイミング
に同期して、1行目の各プロセッサエレメント、各中間
レジスタおよび入力レジスタから同列のサイドレジスタ
デバイスに画素データを転送し、同時に、2行目から
(H1−N+1)行目までのi行目の各プロセッサエレ
メントから同列のi−1行目の各プロセッサエレメント
または各中間レジスタに画素データを転送し、同時に、
2行目から(H1−N+1)行目までのi行目の各中間
レジスタから同列のi−1行目の各プロセッサエレメン
トまたは各中間レジスタに画素データを転送し、同時
に、2行目から(H1−N+1)行目までのi行目の入
力レジスタから同列のi−1行目の入力レジスタに画素
データを転送し、同時に、サイドレジスタデバイスから
同列の(H1−N+1)行目の各プロセッサエレメン
ト、各中間レジスタまたは入力レジスタに画素データを
転送する第3転送制御手段と、 第1転送制御手段による転送動作を(N−1)回繰り返
し、次いで、第2転送制御手段による転送動作を1回行
い、次いで、第3転送制御手段による転送動作を(N−
1)回繰り返し、次いで、第2転送制御手段による転送
動作を1回行う転送動作を1サイクルとして、順次この
サイクルを繰り返す第4転送制御手段と、 前記動作モード選択手段で第1動作モードが選択された
場合、1列目のプロセッサエレメントに前記第1サーチ
ウィンドウの画像データが初めて転送されたとき、各プ
ロセッサエレメントに前記現符号化ブロックの1画素分
の画素データを現符号化ブロックデータ供給ユニットか
ら入力し、以後、第4転送制御手段の転送動作に同期し
て、各プロセッサエレメントに現符号化ブロックの全て
の画素データが画素毎に入力されるまで、画素データの
入力を繰り返す一方、 前記動作モード選択手段で第2動作モードが選択された
場合、1列目のプロセッサエレメントに前記第2サーチ
ウィンドウの画像データが初めて転送されたとき、各プ
ロセッサエレメントに前記現符号化ブロックの1画素分
の画素データを現符号化ブロックデータ供給ユニットか
ら入力し、以後、第4転送制御手段の転送動作に同期し
て、各プロセッサエレメントに現符号化ブロックの全て
の画素データが画素毎に入力されるまで、画素データの
入力を繰り返す第5転送制御手段と、 前記動作モード選択手段で第1動作モードが選択された
場合、前記第5転送制御手段により各プロセッサエレメ
ントに入力された第1サーチウィンドウ内の各候補ブロ
ックの画素データと現符号化ブロックの画素データに基
づいて、各プロセッサエレメントにディストーションを
算出させる一方、 前記動作モード選択手段で第2動作モードが選択された
場合、前記第5転送制御手段により各プロセッサエレメ
ントに入力された第2サーチウィンドウ内の各候補ブロ
ックの画素データと現符号化ブロックの画素データに基
づいて、各プロセッサエレメントにディストーションを
算出させるディストーション算出制御手段と、を有する
ことを特徴とする動きベクトル探索装置。
8. When H1, L1, H2, L2, N, and M are integers, H2 is an integer equal to or less than H1, and L2 is an integer equal to or less than L1, encoding information of a current image forming a moving image is represented by the current value. N which forms a part of the current image so as to be generated based on coding information of a pre-coded image which is coded earlier than the image.
A current coded block consisting of pixels in row M and columns are compared with a plurality of candidate blocks consisting of pixels in row N and column M in a first search window consisting of pixels in row H1 and column L1 on the preceding coded image. , Selecting one candidate block similar to the current coded block from these candidate blocks,
A first operation mode for searching for a motion vector specified by a displacement between a position on the current image of the current coded block and a position on the previous coded image of the selected candidate block; A plurality of candidate blocks consisting of pixels of N rows and M columns in a second search window consisting of pixels of H2 rows and L2 columns on the pre-encoded image are respectively compared, and these candidate blocks are similar to the current encoded block. A second operation mode in which one candidate block to be selected is selected, and a motion vector specified by a displacement between the position of the current coded block on the current image and the position of the selected candidate block on the previous coded image is searched. And the first operation mode and the second operation mode.
In the motion vector search device for selecting one of the operation modes and searching for the motion vector of the current coded block in the selected operation mode, one of the first operation mode and the second operation mode is selected. Operation mode selection means, and based on the pixel data of each candidate block and the pixel data of the current coding block in the search window selected by the operation mode selection means, each of the candidate block and the current coding block. A current calculating block data supply unit for supplying the distortion calculating unit with the pixel data of the current coding block, and a search window selected by the operation mode selecting means for the distortion calculating unit. To supply pixel data in the And a window data supply unit. Further, the distortion calculation unit receives the pixel data of the search window supplied from the search window data supply unit, and temporarily holds and outputs the input pixel data. The pixel data of the candidate block corresponding to each pixel position of the current coded block from the storage transfer unit while inputting the respective pixel data of the current coded block from the storage coder and the current coded block supply unit. And (H2-N + 1) * (L2-M + 1) or less processors, which are configured to calculate the distortion based on the input pixel data of the current coding block and the input pixel data of the candidate block. An element and the storage transfer device, wherein the processor element No total number (H1-N
+1) × (L1−M + 1) intermediate registers and the pixel data of the search window supplied from the search window data supply unit are input, and the input pixel data is temporarily held and output. (H1-N
+1) An input register unit composed of input registers and the pixel data of the search window supplied from the search window data supply unit are input, and the input pixel data is temporarily held and output (L1-M).
+2) side register units, each of which includes (H1-N + 1) rows (L1-
When imaginarily arranged in a matrix of (M + 1) columns, n is a natural number equal to or smaller than (H1-N + 1), and m is (L1-
(M + 2) or less, and each input register of the input register unit is electrically connected to a processor element or an intermediate register in the (L1-M + 1) th column, and is connected to the (L1-M + 1) th column in the nth row. An input register electrically connected to the processor element or the intermediate register is referred to as an n-th row input register, and each side register device of the side register unit includes:
The first row and the (H1-N + 1) -th row are electrically connected to the processor element, the intermediate register, or the input register, respectively.
The side register device electrically connected to the processor element or the intermediate register in the row is referred to as the m-th column side register device, and is electrically connected to the input registers in the first and (H1-N + 1) th rows. When the obtained side register device is referred to as a (L1-M + 2) -th column side register device, the input registers in the nth and subsequent rows are electrically connected to the input registers in the (n-1) th row. The side register devices in the m th and subsequent columns are electrically connected to the side register devices in the (m−1) th column, i is a natural number equal to or less than (H 2 −N + 1), and j is (L 2 −
(M + 1) or less, and when the second operation mode is selected by the operation mode selection means, from the first line (H1-N1) to correspond to the (H2-N + 1) line indicating the search range of the second search window. (H1-N) up to the (N + 1) th line
(H2-N + 1) rows consisting of a processor element including at least one processor element and an intermediate register from (+1) rows are counted as the number of rows of the matrix, and indicate a search range of the second search window ( A processor element including at least one processor element from (L1-M + 1) columns from the first column to the (L1-M + 1) column and an intermediate register corresponding to the (L2-M + 1) column (L2-
M + 1) columns are counted as the number of columns in the matrix, and each row is represented by i rows and each column is represented by j columns. When the first operation mode is selected by the operation mode selection means, the search window is displayed. In synchronization with the timing at which the pixel data of the first search window is transferred from the data supply unit, each side register device sends the same 1
The pixel data is transferred to each processor element in the row, each intermediate register, or the input register, and at the same time, each of the processor elements in the nth row from the first row to the (H1-N) th row, and Transfer pixel data to the processor element or each intermediate register,
Pixel data is transferred from each intermediate register in the nth row from the (H1-N) th row to each processor element or each intermediate register in the (n + 1) th row in the same column, and at the same time, from the first row to (H1-N) ) The pixel data is transferred from the input register on the nth row up to the row to the input register on the (n + 1) th row in the same column, and at the same time, from each processor element, each intermediate register and the input register on the (H1-N + 1) th row, While the pixel data is transferred to the side register device, when the second operation mode is selected by the operation mode selection unit, the pixel data of the second search window is transferred from the search window data supply unit in synchronization with the timing. , From each side register device
The pixel data is transferred to each processor element in the row, each intermediate register or input register, and at the same time, each processor element in the i-th row from the first row to the (H1-N) th row, and Transfer pixel data to the processor element or each intermediate register,
Pixel data is transferred from each intermediate register on the i-th row from the (H1-N) th row to each processor element or each intermediate register on the (i + 1) -th row in the same column, and at the same time, from the first row on to the (H1-N) ) The pixel data is transferred from the input register of the i-th row up to the row to the input register of the (i + 1) -th row in the same column, and at the same time, the side of the same column from each processor element, intermediate register and input register of the (H1-N + 1) th row First transfer control means for transferring pixel data to a register device; and when the first operation mode is selected by the operation mode selection means, the search window data supply unit after transferring the pixel data by the first transfer means. From first
In synchronism with the timing at which the pixel data of the search window is transferred, m from the second column to the (L1-M + 1) th column
The pixel data is transferred from each processor element in the column to each processor element in the (m-1) th column or each intermediate register in the same row, and at the same time, each intermediate data in the mth column from the second column to the (L1-M + 1) th column. The pixel data is transferred from the register to each processor element in the m-1st column or each intermediate register in the same row, and at the same time, from the second column onward (L1-M + 2)
The pixel data is transferred from each side register device in the m-th column up to the column to each side register device in the (m-1) -th column in the same row.
While the pixel data is transferred to each processor element or each intermediate register in the (M + 1) th column, if the second operation mode is selected by the operation mode selection means, the pixel data is transferred by the first transfer means. Second from search window data supply unit
In synchronization with the timing at which the pixel data of the search window is transferred, j from the second column to the (L1-M + 1) th column
The pixel data is transferred from each processor element in the column to each processor element in the j-1st column or each intermediate register in the same row, and at the same time, each intermediate data in the jth column from the second column to the (L1-M + 1) th column. The pixel data is transferred from the register to each processor element in the j-1th column or each intermediate register in the same row, and at the same time, from the second column onward (L1-M + 2)
The pixel data is transferred from each side register device in the j-th column up to the column to each side register device in the j-1st column in the same row, and at the same time, from each input register, the (L1-
Second transfer control means for transferring each processor element or each intermediate register pixel data in the (M + 1) th column; and when the first operation mode is selected by the operation mode selection means, the second transfer means transfers pixel data. After the search window data supply unit
In synchronization with the timing at which the pixel data of the search window is transferred, the pixel data is transferred from each processor element, each intermediate register, and the input register in the first row to the side register device in the same column. −N + 1) Pixel data is transferred from each processor element in the nth row up to the row to each processor element in the (n−1) th row or each intermediate register in the same column.
Pixel data is transferred from each intermediate register in the nth row from the second row to the (H1-N + 1) th row to each processor element or each intermediate register in the (n-1) th row in the same column. The pixel data is transferred from the input registers on the n-th row up to the (H1-N + 1) th row to the input registers on the (n-1) -th row in the same column. While the pixel data is transferred to the processor element, each intermediate register or the input register, if the second operation mode is selected by the operation mode selection means, the search window data is transferred after the pixel data is transferred by the second transfer means. Second from supply unit
In synchronization with the timing at which the pixel data of the search window is transferred, the pixel data is transferred from each processor element, each intermediate register, and the input register in the first row to the side register device in the same column. −N + 1) The pixel data is transferred from each processor element on the i-th row up to the row to each processor element on the (i−1) -th row in the same column or each intermediate register.
Pixel data is transferred from each intermediate register in the i-th row from the second row to the (H1-N + 1) th row to each processor element or each intermediate register in the i-1th row in the same column, and at the same time, from the second row to (H1-N + 1). The pixel data is transferred from the i-th row input register up to the (H1-N + 1) th row to the (i-1) th row input register in the same row, and at the same time, each processor in the same row (H1-N + 1) -row from the side register device The transfer operation by the third transfer control means for transferring the pixel data to the element, each intermediate register or the input register, and the transfer operation by the first transfer control means are repeated (N-1) times, and then the transfer operation by the second transfer control means is repeated by one. The transfer operation by the third transfer control means (N-
1) repeating the transfer operation, and then performing a single transfer operation by the second transfer control unit as one cycle, a fourth transfer control unit that repeats this cycle sequentially, and the first operation mode selected by the operation mode selection unit When the image data of the first search window is transferred to the processor element in the first column for the first time, the pixel data of one pixel of the current coding block is supplied to each processor element by the current coding block data supply unit. And thereafter, in synchronization with the transfer operation of the fourth transfer control means, the input of the pixel data is repeated until all the pixel data of the current coding block is input to each processor element for each pixel. When the second operation mode is selected by the operation mode selection means, the second search window is added to the processor element in the first column. When the image data of c is transferred for the first time, pixel data for one pixel of the current coding block is input to each processor element from the current coding block data supply unit, and thereafter, the transfer operation of the fourth transfer control means is performed. A fifth transfer control unit that repeats input of pixel data until all the pixel data of the current encoding block is input to each processor element in synchronization with each pixel, and the first operation mode is set by the operation mode selection unit. When selected, a distortion is calculated for each processor element based on the pixel data of each candidate block and the pixel data of the current coding block in the first search window input to each processor element by the fifth transfer control means. On the other hand, when the second operation mode is selected by the operation mode selection means, the fifth transfer control is performed. Distortion calculation control means for causing each processor element to calculate distortion based on the pixel data of each candidate block in the second search window and the pixel data of the current coding block input to each processor element by the stage. A motion vector search device characterized by the following.
【請求項9】前記動作モード選択手段は、現画像と前符
号化画像との時間的隔たりが所定値より大きい場合、第
1動作モードを選択し、現画像と前符号化画像との時間
的隔たりが所定値以下の場合、第2動作モードを選択す
ることを特徴とする請求項8記載の動きベクトル探索装
置。
9. The operation mode selection means selects a first operation mode when a time difference between a current image and a previous coded image is larger than a predetermined value, and selects a first operation mode between the current image and the previous coded image. 9. The motion vector search device according to claim 8, wherein the second operation mode is selected when the distance is equal to or less than a predetermined value.
【請求項10】前記ディストーション算出ユニットは、
1行目から(H1−N+1)行目までの(H1−N+
1)個の行の中の(H2−N+1)個の行と1列目から
(L1−M+1)行目までの(L1−M+1)個の列の
中の(L2−M+1)個の列とが前記マトリックス状で
交差する位置に(H2−N+1)×(L2−M+1)個
のプロセッサエレメントが配置され、前記動作モード選
択手段で第2動作モードが選択された場合、これらの
(H2−N+1)×(L2−M+1)個のプロセッサエ
レメントに前記第1〜第5の転送制御手段によって第2
サーチウィンドウ内の各候補ブロックの画素データと現
符号化ブロックの画素データを入力し、入力された画素
データに基づいてこれらの(H2−N+1)×(L2−
M+1)個のプロセッサエレメントで前記ディストーシ
ョン算出制御手段によりディストーションを算出するこ
とを特徴とする請求項8記載の動きベクトル探索装置。
10. The distortion calculation unit,
(H1-N +) from the first line to the (H1-N + 1) th line
(H2-N + 1) rows in (1) rows and (L2-M + 1) columns in (L1-M + 1) columns from the first column to the (L1-M + 1) th row; (H2-N + 1) * (L2-M + 1) processor elements are arranged at positions where they intersect in the matrix form, and when the second operation mode is selected by the operation mode selection means, these (H2-N + 1) ) × (L2−M + 1) processor elements by the first to fifth transfer control means.
The pixel data of each candidate block and the pixel data of the current coding block in the search window are input, and based on the input pixel data, these (H2-N + 1) * (L2-
The motion vector search device according to claim 8, wherein the distortion is calculated by the distortion calculation control means using (M + 1) processor elements.
【請求項11】前記サイドレジスタユニットの各サイド
レジスタデバイスは、それぞれ同列の1行目のプロセッ
サエレメント、中間レジスタまたは入力レジスタに電気
的に接続された第1サイドレジスタデバイスと、それぞ
れ同列の(H1−N+1)行目のプロセッサエレメン
ト、中間レジスタまたは入力レジスタに電気的に接続さ
れた第2サイドレジスタデバイスと、から構成され、該
第1サイドレジスタデバイスは、互いに直列に電気的に
接続された(N−1)個の前記記憶転送器を有し、一端
の記憶転送器が同列の1行目のプロセッサエレメントま
たは中間レジスタに電気的に接続され、前記第2サイド
レジスタデバイスは、互いに直列に電気的に接続された
(N−1)個の前記記憶転送器を有し、一端の記憶転送
器が同列の(H1−N+1)行目のプロセッサエレメン
トまたは中間レジスタに電気的に接続されることを特徴
とする請求項8〜10記載の動きベクトル探索装置。
11. Each side register device of the side register unit is connected to a first side register device electrically connected to a processor element, an intermediate register, or an input register in a first row of the same column, and to a first side register device of the same column. -N + 1) -th processor element, a second side register device electrically connected to the intermediate register or the input register, and the first side register device is electrically connected to each other in series ( N-1) memory transfer devices, one of which is electrically connected to a processor element or an intermediate register in the first row in the same column, and wherein the second side register devices are electrically connected to each other in series. (N-1) storage transfer units connected in series, and one end of the storage transfer units in the same row (H1- +1) th row of the motion vector search apparatus according to claim 8-10, wherein a is electrically connected to the processor elements or the intermediate register.
【請求項12】前記サイドレジスタユニットの各サイド
レジスタデバイスは、互いに直列に電気的に接続された
(N−1)個の前記記憶転送器を有し、一端の記憶転送
器が同列の1行目のプロセッサエレメント、中間レジス
タまたは入力レジスタに電気的に接続され、他端の記憶
転送器が同列の(H1−N+1)行目のプロセッサエレ
メント、中間レジスタまたは入力レジスタに電気的に接
続されることを特徴とする請求項8〜10記載の動きベ
クトル探索装置。
12. Each side register device of the side register unit includes (N-1) storage transfer units electrically connected in series with each other, and one end of the storage transfer units in the same column. Electrically connected to the processor element, the intermediate register or the input register of the first row, and the storage transfer device at the other end is electrically connected to the processor element, the intermediate register or the input register of the (H1-N + 1) th row in the same column The motion vector search device according to claim 8, wherein:
【請求項13】前記ディストーション算出ユニットで算
出されたすべてのディストーションの中から最小の値を
示すディストーションを検出するとともに、最小ディス
トーションが算出されたプロセッサエレメントのマトリ
ックス状の配置位置に基づいて、最小ディストーション
が算出されたプロセッサエレメントに対応する候補ブロ
ックから現符号化ブロックへの動きベクトルを特定する
候補ブロック特定ユニットを有し、該候補ブロック特定
ユニットは、少なくとも1つのプロセッサエレメントを
含むプロセッサエレメントおよび中間レジスタからなる
(H2−N+1)行のそれぞれの行の一端に位置するプ
ロセッサエレメントに電気的に接続され、 さらに、前記ディストーション算出ユニットで算出され
たすべてのディストーションを候補ブロック特定ユニッ
トに転送するディストーション転送手段を有し、該最小
ディストーション転送手段は、前記候補ブロック特定ユ
ニットに電気的に接続されたそれぞれのプロセッサエレ
メントから前記候補ブロック特定ユニットにそれぞれの
ディストーションを転送するとともに、候補ブロック特
定ユニットに向けて各プロセッサエレメントから同行の
プロセッサエレメントに順次ディストーションを転送す
ることを特徴とする請求項8〜10記載の動きベクトル
探索装置。
13. A minimum distortion is detected from all distortions calculated by the distortion calculating unit, and the minimum distortion is calculated based on a matrix-like arrangement position of the processor elements for which the minimum distortion is calculated. Has a candidate block specifying unit for specifying a motion vector from the candidate block corresponding to the calculated processor element to the current coding block, the candidate block specifying unit including at least one processor element and an intermediate register. And electrically connected to a processor element located at one end of each of the (H2-N + 1) rows, and further calculates all the distortions calculated by the distortion calculation unit. Distortion transfer means for transferring to the candidate block specifying unit, wherein the minimum distortion transfer means transfers each distortion from each processor element electrically connected to the candidate block specifying unit to the candidate block specifying unit. 11. The motion vector search device according to claim 8, wherein the distortion is sequentially transferred from each processor element to a processor element in the same row toward the candidate block specifying unit.
【請求項14】前記サーチウィンドウデータ供給ユニッ
トは、 前記動作モード選択手段によって第1動作モードが選択
された場合、第1サーチウィンドウをM画素分列方向に
シフトした第3サーチウィンドウの範囲の画素データ
で、第1サーチウィンドウと第3サーチウィンドウで共
通する画素データを除いた残りの画素データを、第1サ
ーチウィンドウの画素データに続けて順次前記ディスト
ーション算出ユニットに供給する一方、 前記動作モード選択手段によって第2動作モードが選択
された場合、第2サーチウィンドウをM画素分列方向に
シフトした第4サーチウィンドウの範囲の画素データ
で、第2サーチウィンドウと第4サーチウィンドウで共
通する画素データを除いた残りの画素データを、第2サ
ーチウィンドウの画素データに続けて順次前記ディスト
ーション算出ユニットに供給し、 前記現符号化ブロックデータ供給ユニットは、 前記動作モード選択手段によって第1動作モードが選択
された場合、前記現符号化ブロックの列方向に隣接し、
前記第3サーチウィンドウに対応するもうひとつの現符
号化ブロックの画素データを前記第5転送制御手段の転
送動作に基づいて第1サーチウィンドウの現符号化ブロ
ックに続けて順次前記ディストーション算出ユニットに
供給する一方、 前記動作モード選択手段によって第2動作モードが選択
された場合、前記現符号化ブロックの列方向に隣接し、
前記第4サーチウィンドウに対応するもうひとつの現符
号化ブロックの画素データを前記第5転送制御手段の転
送動作に基づいて第2サーチウィンドウの現符号化ブロ
ックに続けて順次前記ディストーション算出ユニットに
供給し、 前記動作モード選択手段によって第1動作モードが選択
された場合、前記ディストーション算出制御手段により
前記第3サーチウィンドウと第3サーチウィンドウに対
応する現符号化ブロックとのディストーションの算出が
終了する前に、前記ディストーション転送手段による前
記第1サーチウィンドウと第1サーチウィンドウに対応
する現符号化ブロックとで算出されたディストーション
の転送動作が終了する一方、 前記動作モード選択手段によって第2動作モードが選択
された場合、前記ディストーション算出制御手段により
前記第4サーチウィンドウと第4サーチウィンドウに対
応する現符号化ブロックとのディストーションの算出が
終了する前に、前記ディストーション転送手段による前
記第2サーチウィンドウと第2サーチウィンドウに対応
する現符号化ブロックとで算出されたディストーション
の転送動作が終了することを特徴とする請求項13記載
の動きベクトル探索装置。
14. The search window data supply unit, wherein when the first operation mode is selected by the operation mode selection means, pixels in a range of the third search window shifted in the column direction by M pixels in the first search window. The remaining pixel data excluding the pixel data common to the first search window and the third search window is sequentially supplied to the distortion calculation unit following the pixel data of the first search window. When the second operation mode is selected by the means, the pixel data in the range of the fourth search window obtained by shifting the second search window by M pixels in the column direction, and the pixel data common to the second search window and the fourth search window The remaining pixel data except for the pixel data of the second search window Continued sequentially supplied to the distortion calculation unit, the current coding block data supply unit, when the first operation mode is selected by the operation mode selecting means, adjacent in the column direction of the current coding block,
Pixel data of another current coded block corresponding to the third search window is sequentially supplied to the distortion calculation unit following the current coded block of the first search window based on the transfer operation of the fifth transfer control means. On the other hand, when the second operation mode is selected by the operation mode selection unit, the current operation block is adjacent in the column direction,
The pixel data of another current coded block corresponding to the fourth search window is sequentially supplied to the distortion calculation unit following the current coded block of the second search window based on the transfer operation of the fifth transfer control means. When the first operation mode is selected by the operation mode selection means, before the distortion calculation control means completes the calculation of the distortion between the third search window and the current coding block corresponding to the third search window. The operation of transferring the distortion calculated by the first search window and the current coded block corresponding to the first search window by the distortion transfer unit ends, while the second operation mode is selected by the operation mode selection unit The distortion Before the calculation control means finishes calculating the distortion between the fourth search window and the current coded block corresponding to the fourth search window, the distortion transfer means corresponds to the second search window and the second search window. 14. The motion vector search device according to claim 13, wherein the operation of transferring the distortion calculated with the current coded block ends.
【請求項15】前記ディストーション算出ユニットで算
出されたすべてのディストーションの中から最小の値を
示すディストーションを検出するとともに、最小ディス
トーションが算出されたプロセッサエレメントのマトリ
ックス状の配置位置に基づいて、最小ディストーション
が算出されたプロセッサエレメントに対応する候補ブロ
ックから現符号化ブロックへの動きベクトルを特定する
候補ブロック特定ユニットを有し、該候補ブロック特定
ユニットは、少なくとも1つのプロセッサエレメントを
含むプロセッサエレメントおよび中間レジスタからなる
(L2−M+1)列のそれぞれの列の一端に位置するプ
ロセッサエレメントに電気的に接続され、 さらに、前記ディストーション算出ユニットで算出され
たすべてのディストーションを候補ブロック特定ユニッ
トに転送するディストーション転送手段を有し、該最小
ディストーション転送手段は、前記候補ブロック特定ユ
ニットに電気的に接続されたそれぞれのプロセッサエレ
メントから前記候補ブロック特定ユニットにそれぞれの
ディストーションを転送するとともに、候補ブロック特
定ユニットに向けて各プロセッサエレメントから同列の
プロセッサエレメントに順次ディストーションを転送す
ることを特徴とする請求項8〜10記載の動きベクトル
探索装置。
15. A minimum distortion is detected from all the distortions calculated by the distortion calculation unit, and the minimum distortion is calculated based on a matrix-like arrangement position of the processor elements for which the minimum distortion is calculated. Has a candidate block specifying unit for specifying a motion vector from the candidate block corresponding to the calculated processor element to the current coding block, the candidate block specifying unit including at least one processor element and an intermediate register. Are electrically connected to the processor element located at one end of each of the (L2-M + 1) columns, and furthermore, all distortions calculated by the distortion calculation unit are Distortion transfer means for transferring to the candidate block specifying unit, wherein the minimum distortion transfer means transfers each distortion from each processor element electrically connected to the candidate block specifying unit to the candidate block specifying unit. 11. The motion vector search device according to claim 8, wherein the distortion is sequentially transferred from each processor element to the same processor element toward the candidate block specifying unit.
【請求項16】前記サーチウィンドウデータ供給ユニッ
トは、 前記動作モード選択手段によって第1動作モードが選択
された場合、第1サーチウィンドウをM画素分列方向に
シフトした第3サーチウィンドウの範囲の画素データ
で、第1サーチウィンドウと第3サーチウィンドウで共
通する画素データを除いた残りの画素データを、第1サ
ーチウィンドウの画素データに続けて順次前記ディスト
ーション算出ユニットに供給する一方、 前記動作モード選択手段によって第2動作モードが選択
された場合、第2サーチウィンドウをM画素分列方向に
シフトした第4サーチウィンドウの範囲の画素データ
で、第2サーチウィンドウと第4サーチウィンドウで共
通する画素データを除いた残りの画素データを、第2サ
ーチウィンドウの画素データに続けて順次前記ディスト
ーション算出ユニットに供給し、 前記現符号化ブロックデータ供給ユニットは、 前記動作モード選択手段によって第1動作モードが選択
された場合、前記現符号化ブロックの列方向に隣接し、
前記第3サーチウィンドウに対応するもうひとつの現符
号化ブロックの画素データを前記第5転送制御手段の転
送動作に基づいて第1サーチウィンドウの現符号化ブロ
ックに続けて順次前記ディストーション算出ユニットに
供給する一方、 前記動作モード選択手段によって第2動作モードが選択
された場合、前記現符号化ブロックの列方向に隣接し、
前記第4サーチウィンドウに対応するもうひとつの現符
号化ブロックの画素データを前記第5転送制御手段の転
送動作に基づいて第2サーチウィンドウの現符号化ブロ
ックに続けて順次前記ディストーション算出ユニットに
供給し、 前記動作モード選択手段によって第1動作モードが選択
された場合、前記ディストーション算出制御手段により
前記第3サーチウィンドウと第3サーチウィンドウに対
応する現符号化ブロックとのディストーションの算出が
終了する前に、前記ディストーション転送手段による前
記第1サーチウィンドウと第1サーチウィンドウに対応
する現符号化ブロックとで算出されたディストーション
の転送動作が終了する一方、 前記動作モード選択手段によって第2動作モードが選択
された場合、前記ディストーション算出制御手段により
前記第4サーチウィンドウと第4サーチウィンドウに対
応する現符号化ブロックとのディストーションの算出が
終了する前に、前記ディストーション転送手段による前
記第2サーチウィンドウと第2サーチウィンドウに対応
する現符号化ブロックとで算出されたディストーション
の転送動作が終了することを特徴とする請求項15記載
の動きベクトル探索装置。
16. The search window data supply unit according to claim 1, wherein when the first operation mode is selected by the operation mode selection means, pixels in a range of the third search window shifted in the column direction by M pixels in the first search window. The remaining pixel data excluding the pixel data common to the first search window and the third search window is sequentially supplied to the distortion calculation unit following the pixel data of the first search window. When the second operation mode is selected by the means, the pixel data in the range of the fourth search window obtained by shifting the second search window by M pixels in the column direction, and the pixel data common to the second search window and the fourth search window The remaining pixel data except for the pixel data of the second search window Continued sequentially supplied to the distortion calculation unit, the current coding block data supply unit, when the first operation mode is selected by the operation mode selecting means, adjacent in the column direction of the current coding block,
Pixel data of another current coded block corresponding to the third search window is sequentially supplied to the distortion calculation unit following the current coded block of the first search window based on the transfer operation of the fifth transfer control means. On the other hand, when the second operation mode is selected by the operation mode selection unit, the current operation block is adjacent in the column direction,
The pixel data of another current coded block corresponding to the fourth search window is sequentially supplied to the distortion calculation unit following the current coded block of the second search window based on the transfer operation of the fifth transfer control means. When the first operation mode is selected by the operation mode selection means, before the distortion calculation control means completes the calculation of the distortion between the third search window and the current coding block corresponding to the third search window. The operation of transferring the distortion calculated by the first search window and the current coded block corresponding to the first search window by the distortion transfer unit ends, while the second operation mode is selected by the operation mode selection unit The distortion Before the calculation control means finishes calculating the distortion between the fourth search window and the current coded block corresponding to the fourth search window, the distortion transfer means corresponds to the second search window and the second search window. 16. The motion vector search device according to claim 15, wherein the transfer operation of the distortion calculated with the current coded block ends.
JP14705095A 1995-06-14 1995-06-14 Motion vector search method and apparatus Expired - Lifetime JP2866321B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14705095A JP2866321B2 (en) 1995-06-14 1995-06-14 Motion vector search method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14705095A JP2866321B2 (en) 1995-06-14 1995-06-14 Motion vector search method and apparatus

Publications (2)

Publication Number Publication Date
JPH08340538A JPH08340538A (en) 1996-12-24
JP2866321B2 true JP2866321B2 (en) 1999-03-08

Family

ID=15421373

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14705095A Expired - Lifetime JP2866321B2 (en) 1995-06-14 1995-06-14 Motion vector search method and apparatus

Country Status (1)

Country Link
JP (1) JP2866321B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0896300B1 (en) 1997-08-07 2002-01-30 Matsushita Electric Industrial Co., Ltd. Device and method for motion vector detection

Also Published As

Publication number Publication date
JPH08340538A (en) 1996-12-24

Similar Documents

Publication Publication Date Title
US4937666A (en) Circuit implementation of block matching algorithm with fractional precision
JP3089165B2 (en) Motion vector search device
JP3009674B2 (en) Motion detector
KR0160618B1 (en) Device and method for real time moving estimation
JPH10285602A (en) Dynamic sprite for encoding video data
JPH0568155B2 (en)
US6516031B1 (en) Motion vector detecting device
JP2897761B2 (en) Block-matching arithmetic unit and machine-readable recording medium recording program
JP3161467B2 (en) Method for temporal interpolation of images and apparatus for implementing this method
JPS61201581A (en) Method and apparatus for detecting dynamic vector
JP2866321B2 (en) Motion vector search method and apparatus
JP2768646B2 (en) Motion vector search method and search device
JPH08315151A (en) Method and circuit arrangement for undersampling in case of movement evaluation
JP2866325B2 (en) Motion vector search device
JP2866324B2 (en) Motion vector search device
JP2866326B2 (en) Motion vector search device
JP2868457B2 (en) Motion vector search device
JP2963369B2 (en) Motion vector search device
JP2868441B2 (en) Motion vector search method and search device
JP2872105B2 (en) Distortion calculator
JP3337515B2 (en) Motion vector detection device
JP2868440B2 (en) Motion vector search method and search device
JP2003023638A (en) Motion vector detector and self-test method for the motion vector detector
JP2931783B2 (en) Motion vector search device
JP3698501B2 (en) Motion vector detection device