JP2010200147A - Motion compensation prediction device and image encoding device - Google Patents

Motion compensation prediction device and image encoding device Download PDF

Info

Publication number
JP2010200147A
JP2010200147A JP2009044456A JP2009044456A JP2010200147A JP 2010200147 A JP2010200147 A JP 2010200147A JP 2009044456 A JP2009044456 A JP 2009044456A JP 2009044456 A JP2009044456 A JP 2009044456A JP 2010200147 A JP2010200147 A JP 2010200147A
Authority
JP
Japan
Prior art keywords
vector
representative
information
motion
difference information
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.)
Pending
Application number
JP2009044456A
Other languages
Japanese (ja)
Inventor
Takayuki Itsui
貴之 井對
Kanji Sakate
寛治 坂手
Shinichi Hattori
伸一 服部
Nobuaki Motoyama
信明 本山
Yukinari Matsuda
幸成 松田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2009044456A priority Critical patent/JP2010200147A/en
Publication of JP2010200147A publication Critical patent/JP2010200147A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To compensate motion in a time direct mode in partial time direct blocks even when a memory having enough capacity to secure motion vectors of all anchor blocks in an anchor picture can not be secured. <P>SOLUTION: A representative vector RV defined for a plurality of anchor blocks B<SB>A</SB>in common is input to calculate differential information DI of a motion vector MV of the anchor blocks B<SB>A</SB>from the representative vector RV; the differential information DI is expressed with a bit width smaller than the bit width of the motion vector MV; and time direct vector information TDVI is calculated from the differential information DI and the representative vector RV. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

この発明は、Bピクチャ内の時間ダイレクトブロックの動きベクトルの情報を示す時間ダイレクトベクトル情報を算出する動き補償予測装置と、その動き補償予測装置を実装している画像符号化装置とに関するものである。   The present invention relates to a motion compensated prediction apparatus that calculates temporal direct vector information indicating information on motion vectors of temporal direct blocks in a B picture, and an image coding apparatus that implements the motion compensated prediction apparatus. .

ITU(国際電気通信連合)によって勧告されている動画データの圧縮符号化方式の一つであるH.264/AVCには、Bピクチャの符号化に用いることができる予測モードの一つとして、「時間ダイレクトモード」が規格されている(例えば、非特許文献1を参照)。
時間ダイレクトモードは、Bピクチャの参照ピクチャの中の一枚であるアンカーピクチャ(通常、後方向予測に用いる参照ピクチャのうち、表示時刻が符号化対象のBピクチャに最も近いピクチャ)において、Bピクチャにおける符号化対象のブロック(以下、「時間ダイレクトブロック」と称する)と同位置のブロック(以下、「アンカーブロック」と称する)の動きベクトルを線形補正し、線形補正後の動きベクトル(以下、「時間ダイレクトベクトル」と称する)を用いて、Bピクチャにおける時間ダイレクトブロックの動き補償を行うモードである。
なお、時間ダイレクトモードで動き補償を行う場合、符号化データに動きベクトルの情報が不要になる利点がある。
H. is one of the video data compression encoding systems recommended by the ITU (International Telecommunication Union). In H.264 / AVC, “temporal direct mode” is standardized as one of prediction modes that can be used for encoding a B picture (see, for example, Non-Patent Document 1).
In the temporal direct mode, an anchor picture (usually a reference picture used for backward prediction whose display time is closest to the B picture to be encoded) is one of the reference pictures of the B picture. The motion vector of the block (hereinafter referred to as “anchor block”) at the same position as the block to be encoded (hereinafter referred to as “time direct block”) is linearly corrected, and the motion vector after linear correction (hereinafter referred to as “ This is a mode for performing motion compensation of temporal direct blocks in a B picture using a “temporal direct vector”.
In addition, when motion compensation is performed in the temporal direct mode, there is an advantage that motion vector information is not necessary for encoded data.

ただし、時間ダイレクトモードで動き補償を行う場合、予測残差を求める際に参照するブロックを指定する動きベクトルである時間ダイレクトベクトルとして、Bピクチャ内の時間ダイレクトブロックに対応するアンカーピクチャ内のアンカーブロックの動きベクトルを線形補正することで算出する必要がある。
そのため、時間ダイレクトモードにおける予測残差を正確に求めるには、アンカーピクチャ内の全てのアンカーブロックの動きベクトルを保持しておく必要がある。
However, when motion compensation is performed in the temporal direct mode, an anchor block in an anchor picture corresponding to a temporal direct block in a B picture is used as a temporal direct vector that is a motion vector for designating a block to be referred to when obtaining a prediction residual. Must be calculated by linearly correcting the motion vector.
Therefore, in order to accurately obtain the prediction residual in the temporal direct mode, it is necessary to hold the motion vectors of all anchor blocks in the anchor picture.

ITU-T Recommendation H.264 (2005),“Advanced video coding for generic audiovisual Services”, March 2005, pp. 144-146ITU-T Recommendation H.264 (2005), “Advanced video coding for generic audiovisual Services”, March 2005, pp. 144-146

従来の動き補償予測装置は以上のように構成されているので、アンカーピクチャ内の全てのアンカーブロックの動きベクトルを保持しておけば、時間ダイレクトモードで動き補償を行うことができる。しかし、アンカーピクチャ内の全てのアンカーブロックの動きベクトルを保持するには、多くのメモリ領域を必要とする。このため、アンカーピクチャ内の全てのアンカーブロックの動きベクトルを保持するのに十分な容量のメモリを確保することができない場合、時間ダイレクトモードで動き補償を行うことができなくなるなどの課題があった。   Since the conventional motion compensation prediction apparatus is configured as described above, if the motion vectors of all anchor blocks in the anchor picture are held, motion compensation can be performed in the temporal direct mode. However, in order to hold the motion vectors of all anchor blocks in the anchor picture, a large memory area is required. For this reason, there is a problem that it is impossible to perform motion compensation in the temporal direct mode when it is impossible to secure a memory having a sufficient capacity to hold the motion vectors of all anchor blocks in the anchor picture. .

この発明は上記のような課題を解決するためになされたもので、アンカーピクチャ内の全てのアンカーブロックの動きベクトルを保持するのに十分な容量のメモリを確保することができない場合でも、一部の時間ダイレクトブロックでは、時間ダイレクトモードで動き補償を行うことができる動き補償予測装置及び画像符号化装置を得ることを目的とする。   The present invention has been made to solve the above-described problems, and even when a memory having a sufficient capacity to hold the motion vectors of all anchor blocks in the anchor picture cannot be secured, a part of the invention is provided. In the temporal direct block, an object is to obtain a motion compensated prediction apparatus and an image encoding apparatus capable of performing motion compensation in the temporal direct mode.

この発明に係る動き補償予測装置は、符号化対象の複数のアンカーブロックに対して共通に定められている代表ベクトルを入力して、その代表ベクトルに対するアンカーブロックの動きベクトルの差分情報を算出し、その差分情報を動きベクトルのビット幅より小さいビット幅で表現して出力する差分情報算出手段と、その差分情報算出手段から出力された差分情報を符号化対象のアンカーブロック毎に格納する差分情報格納手段とを設け、時間ダイレクトベクトル情報算出手段が差分情報格納手段によりアンカーブロック毎に格納されている差分情報と代表ベクトルから、時間ダイレクトブロックの動きベクトルの情報を示す時間ダイレクトベクトル情報を算出するようにしたものである。   The motion compensated prediction apparatus according to the present invention inputs a representative vector defined in common for a plurality of anchor blocks to be encoded, calculates difference information of the motion vector of the anchor block with respect to the representative vector, Difference information calculation means for expressing and outputting the difference information with a bit width smaller than the bit width of the motion vector, and difference information storage for storing the difference information output from the difference information calculation means for each anchor block to be encoded Means for calculating temporal direct vector information indicating motion vector information of the temporal direct block from the difference information stored for each anchor block by the differential information storage means and the representative vector. It is a thing.

この発明によれば、符号化対象の複数のアンカーブロックに対して共通に定められている代表ベクトルを入力して、その代表ベクトルに対するアンカーブロックの動きベクトルの差分情報を算出し、その差分情報を動きベクトルのビット幅より小さいビット幅で表現して出力する差分情報算出手段と、その差分情報算出手段から出力された差分情報を符号化対象のアンカーブロック毎に格納する差分情報格納手段とを設け、時間ダイレクトベクトル情報算出手段が差分情報格納手段によりアンカーブロック毎に格納されている差分情報と代表ベクトルから、時間ダイレクトブロックの動きベクトルの情報を示す時間ダイレクトベクトル情報を算出するように構成したので、アンカーピクチャ内の全てのアンカーブロックの動きベクトルを保持するのに十分な容量のメモリを確保することができない場合でも、一部の時間ダイレクトブロックでは、時間ダイレクトモードで動き補償を行うことができる効果がある。   According to the present invention, a representative vector defined in common for a plurality of anchor blocks to be encoded is input, difference information of a motion vector of the anchor block with respect to the representative vector is calculated, and the difference information is calculated. Difference information calculating means for expressing and outputting with a bit width smaller than the bit width of the motion vector and difference information storing means for storing the difference information output from the difference information calculating means for each anchor block to be encoded are provided. Since the time direct vector information calculation means is configured to calculate time direct vector information indicating motion vector information of the time direct block from the difference information stored for each anchor block by the difference information storage means and the representative vector. , Keep motion vectors of all anchor blocks in anchor picture Even if it is not possible to secure a sufficient capacity of memory to that, in some temporal direct blocks, there is an effect that it is possible to perform motion compensation in temporal direct mode.

この発明の実施の形態1による動き補償予測装置を示す構成図である。It is a block diagram which shows the motion compensation prediction apparatus by Embodiment 1 of this invention. BピクチャP内の時間ダイレクトブロックBとアンカーピクチャP内のアンカーブロックBとの関係を示す説明図である。Is an explanatory view showing the relationship between the anchor block B A of the temporal direct block B B and the anchor pictures P A in the B-picture P B. この発明の実施の形態1による動き補償予測装置の時間ダイレクトベクトル情報算出部5を示す構成図である。It is a block diagram which shows the time direct vector information calculation part 5 of the motion compensation prediction apparatus by Embodiment 1 of this invention. 代表ベクトル算出部1の処理内容を示すフローチャートである。3 is a flowchart showing processing contents of a representative vector calculation unit 1. 差分情報算出部3の処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the difference information calculation part 3. FIG. 時間ダイレクトベクトル情報算出部5の代表時間ダイレクトベクトル算出部11及び差分時間ダイレクトベクトル情報算出部13の処理内容を示すフローチャートである。4 is a flowchart showing processing contents of a representative time direct vector calculation unit 11 and a differential time direct vector information calculation unit 13 of the time direct vector information calculation unit 5. 時間ダイレクトベクトル情報算出部5の加算器14及び切換スイッチ15の処理内容を示すフローチャートである。4 is a flowchart showing processing contents of an adder 14 and a changeover switch 15 of the temporal direct vector information calculation unit 5. この発明の実施の形態2による動き補償予測装置を実装している画像符号化装置を示す構成図である。It is a block diagram which shows the image coding apparatus which mounts the motion compensation prediction apparatus by Embodiment 2 of this invention.

実施の形態1.
図1はこの発明の実施の形態1による動き補償予測装置を示す構成図であり、図2はBピクチャP内の時間ダイレクトブロックBとアンカーピクチャP内のアンカーブロックBとの関係を示す説明図である。
図1,2において、アンカーピクチャPはBピクチャPの参照ピクチャの中の一枚であり、BピクチャP内の時間ダイレクトブロックBとアンカーピクチャP内のアンカーブロックBとは同じ位置のブロックである。
なお、アンカーピクチャPの符号化は、BピクチャPの符号化に先立って行われる。
Embodiment 1 FIG.
Figure 1 is a block diagram showing a motion compensation prediction apparatus according to the first embodiment of the invention, Figure 2 the relationship between the anchor block B A of the temporal direct block B B and the anchor pictures P A in the B-picture P B It is explanatory drawing which shows.
1 and 2, anchor picture P A is the one in the reference picture of the B picture P B, and an anchor block B A of the temporal direct block B B and the anchor pictures P A in the B-picture P B is It is a block at the same position.
Note that the encoding of the anchor picture P A is performed prior to encoding of B pictures P B.

MVはアンカーブロックBの動きベクトル、RVは符号化対象の複数のアンカーブロックBに対して共通に定められている代表ベクトルである。
DIは代表ベクトルRVに対する動きベクトルMVの差分情報である。
TDVIは時間ダイレクトブロックBの動きベクトルの情報を示す時間ダイレクトベクトル情報である。
RTDVは複数の時間ダイレクトブロックBの時間ダイレクトベクトル情報TDVIを算出する際に共通に用いられる代表時間ダイレクトベクトルである。
DTDVIは代表時間ダイレクトベクトルRTDVに対する時間ダイレクトベクトル情報TDVIの差分を示す差分時間ダイレクトベクトル情報であり、後述するように、差分情報DIが線形補正されることで算出される。
MV is a motion vector of the anchor block B A , and RV is a representative vector defined in common for a plurality of anchor blocks B A to be encoded.
DI is difference information of the motion vector MV with respect to the representative vector RV.
TDVI is time direct vector information indicating the information of the motion vector of a temporal direct block B B.
RTDV are representative temporal direct vector commonly used in calculating the temporal direct vector information TDVI multiple temporal direct block B B.
DTDVI is difference time direct vector information indicating the difference of the time direct vector information TDVI with respect to the representative time direct vector RTDV, and is calculated by linearly correcting the difference information DI, as will be described later.

代表ベクトル算出部1は符号化対象の複数のアンカーブロックBに対して共通に定められる代表ベクトルRVを算出する処理を実施する。なお、代表ベクトル算出部1は代表ベクトル算出手段を構成している。
代表ベクトル格納部2は代表ベクトル算出部1により算出された代表ベクトルRVを格納するメモリである。なお、代表ベクトル格納部2は代表ベクトル格納手段を構成している。
Representative vector calculation unit 1 carries out a process of calculating a representative vector RV defined in common to a plurality of anchor blocks B A of the encoding target. The representative vector calculation unit 1 constitutes representative vector calculation means.
The representative vector storage unit 2 is a memory that stores the representative vector RV calculated by the representative vector calculation unit 1. The representative vector storage unit 2 constitutes representative vector storage means.

差分情報算出部3は代表ベクトル格納部2により格納されている代表ベクトルRVに対する符号化対象のアンカーブロックBの動きベクトルMVの差分情報DIを算出し、その差分情報DIを動きベクトルMVのビット幅より小さいビット幅で表現して差分情報格納部4に出力する処理を実施する。なお、差分情報算出部3は差分情報算出手段を構成している。
差分情報格納部4は差分情報算出部3から出力された差分情報DIを符号化対象のアンカーブロックB毎に格納するメモリである。なお、差分情報格納部4は差分情報格納手段を構成している。
The difference information calculation unit 3 calculates the difference information DI of the motion vector MV of the anchor block B A of the coded the representative vector RV stored by the representative vector storage section 2, a bit of the motion vector MV and the difference information DI A process of expressing the bit width smaller than the width and outputting it to the difference information storage unit 4 is performed. The difference information calculation unit 3 constitutes a difference information calculation unit.
Difference information storage unit 4 is a memory for storing the difference information DI output from the difference information calculation unit 3 for each anchor block B A of the encoding target. The difference information storage unit 4 constitutes a difference information storage unit.

時間ダイレクトベクトル情報算出部5は差分情報格納部4によりアンカーブロックB毎に格納されている差分情報DIと代表ベクトル格納部2により格納されている代表ベクトルRVから、時間ダイレクトブロックBの動きベクトルの情報を示す時間ダイレクトベクトル情報TDVIを算出する処理を実施する。なお、時間ダイレクトベクトル情報算出部5は時間ダイレクトベクトル情報算出手段を構成している。 Time from the representative vector RV direct vector information calculating section 5 is stored by the anchor block B A and difference information DI stored for each representative vector storage section 2 by the difference information storing unit 4, the movement of the temporal direct block B B Processing for calculating temporal direct vector information TDVI indicating vector information is performed. The time direct vector information calculation unit 5 constitutes time direct vector information calculation means.

図3はこの発明の実施の形態1による動き補償予測装置の時間ダイレクトベクトル情報算出部5を示す構成図である。
図3において、代表時間ダイレクトベクトル算出部11は代表ベクトル格納部2により格納されている代表ベクトルRV、符号化対象のBピクチャPの表示時刻tc、BピクチャPが参照する符号化画像の表示時刻tr、BピクチャPに対するアンカーピクチャPの表示時刻t1及びアンカーピクチャPが参照する符号化画像の表示時刻t0から、代表時間ダイレクトベクトルRTDVを算出する処理を実施する。
FIG. 3 is a block diagram showing the temporal direct vector information calculation unit 5 of the motion compensated prediction apparatus according to Embodiment 1 of the present invention.
3, the representative temporal direct vector calculation unit 11 representative vector storage unit representative vector RV stored by 2, the display time tc of the B picture P B to be coded, the encoded image B picture P B refers display time tr, the display time t0 of encoded image display time t1 and anchor pictures P a of the anchor pictures P a refers to B-picture P B, carries out a process of calculating a representative temporal direct vector RTDV.

代表時間ダイレクトベクトル格納部12は代表時間ダイレクトベクトル算出部11により算出された代表時間ダイレクトベクトルRTDVを格納するメモリである。
差分時間ダイレクトベクトル情報算出部13は差分情報格納部4によりアンカーブロックB毎に格納されている差分情報DIを線形補正することで差分時間ダイレクトベクトル情報DTDVIを算出する処理を実施する。即ち、差分情報格納部4によりアンカーブロックB毎に格納されている差分情報DI、符号化対象のBピクチャPの表示時刻tc、BピクチャPが参照する符号化画像の表示時刻tr、BピクチャPに対するアンカーピクチャPの表示時刻t1及びアンカーピクチャPが参照する符号化画像の表示時刻t0から、差分時間ダイレクトベクトル情報DTDVIを算出する処理を実施する。
ただし、差分時間ダイレクトベクトル情報算出部13は差分情報DIが、後述する「ビット溢れ」を示す情報である場合、「時間ダイレクトモード禁止」を示す情報を差分時間ダイレクトベクトル情報DTDVIとして出力する。
The representative time direct vector storage unit 12 is a memory that stores the representative time direct vector RTDV calculated by the representative time direct vector calculation unit 11.
Differential time direct vector information calculating unit 13 carries out a process of calculating a differential time direct vector information DTDVI by linear correction difference information DI stored by the difference information storing unit 4 for each anchor block B A. That is, the difference information from the difference information storing unit 4 is stored for each anchor block B A DI, display time tc of the B picture P B to be coded, display time tr of the encoded image B picture P B refers, from the display time t0 encoded image display time t1 and anchor pictures P a of the anchor pictures P a refers to B-picture P B, it carries out a process of calculating a differential time direct vector information DTDVI.
However, when the difference information DI is information indicating “bit overflow” described later, the difference time direct vector information calculation unit 13 outputs information indicating “temporal direct mode prohibition” as difference time direct vector information DTDVI.

加算器14は代表時間ダイレクトベクトル格納部12により格納されている代表時間ダイレクトベクトルRTDVと差分時間ダイレクトベクトル情報算出部13により算出された差分時間ダイレクトベクトル情報DTDVIの和を時間ダイレクトベクトル情報TDVIとして算出する処理を実施する。
切換スイッチ15は差分時間ダイレクトベクトル情報算出部13から出力された差分時間ダイレクトベクトル情報DTDVIが「時間ダイレクトモード禁止」を示す情報でない場合、加算器14により算出された時間ダイレクトベクトル情報TDVIを選択して出力し、その差分時間ダイレクトベクトル情報DTDVIが「時間ダイレクトモード禁止」を示す情報である場合、「時間ダイレクトモード禁止」を示す差分時間ダイレクトベクトル情報DTDVIを時間ダイレクトベクトル情報TDVIとして出力する処理を実施する。
The adder 14 calculates the sum of the representative time direct vector RTDV stored by the representative time direct vector storage unit 12 and the difference time direct vector information DTDVI calculated by the difference time direct vector information calculation unit 13 as time direct vector information TDVI. Perform the process.
The change-over switch 15 selects the time direct vector information TDVI calculated by the adder 14 when the difference time direct vector information DTDVI output from the difference time direct vector information calculation unit 13 is not information indicating “temporal direct mode prohibited”. When the differential time direct vector information DTDVI is information indicating “temporal direct mode prohibition”, the differential time direct vector information DTDVI indicating “temporal direct mode prohibition” is output as temporal direct vector information TDVI. carry out.

次に動作について説明する。
以下、図4から図7のフローチャートを参照しながら各処理部の動作を説明する。
まず、代表ベクトル算出部1は、符号化対象の複数のアンカーブロックBに対して共通に定められている代表ベクトルRVが代表ベクトル格納部2に格納されているか否かを判定する(図4のステップST1)。
代表ベクトル算出部1は、複数のアンカーブロックBに対して共通に定められている代表ベクトルRVが代表ベクトル格納部2に格納されていない場合、差分情報算出部3が差分情報DIの算出に用いる代表ベクトルRVを算出する(ステップST2)。
代表ベクトル算出部1は、代表ベクトルRVを算出すると、その代表ベクトルRVを代表ベクトル格納部2に格納する(ステップST3)。
Next, the operation will be described.
Hereinafter, the operation of each processing unit will be described with reference to the flowcharts of FIGS.
First, the representative vector calculation unit 1 determines whether or not the representative vector RV defined in common for the plurality of anchor blocks B A to be encoded is stored in the representative vector storage unit 2 (FIG. 4). Step ST1).
When the representative vector RV defined in common for the plurality of anchor blocks B A is not stored in the representative vector storage unit 2, the representative vector calculation unit 1 calculates the difference information DI. A representative vector RV to be used is calculated (step ST2).
After calculating the representative vector RV, the representative vector calculation unit 1 stores the representative vector RV in the representative vector storage unit 2 (step ST3).

以下、代表ベクトルRVの算出例を具体的に説明する。
(1)代表ベクトル例1
代表ベクトル算出部1は、アンカーピクチャP(または、アンカーピクチャPのサブピクチャの画像データ及びアンカーピクチャPの符号化の際に参照される符号化画像(または、符号化画像の原画)の画像データに基づいて、アンカーピクチャPの大域動きベクトル(アンカーピクチャPの全体の動きベクトル)を代表ベクトルRVとして算出する。
例えば、アンカーピクチャPや符号化画像における各ブロックの動きベクトルの平均をアンカーピクチャPの大域動きベクトルとして算出する。
Hereinafter, a calculation example of the representative vector RV will be specifically described.
(1) Representative vector example 1
Representative vector calculation unit 1, the anchor pictures P A (or encoded image referred to when the coded image data and the anchor pictures P A subpicture of anchor pictures P A (or original encoded image) based on the image data, and calculates the global motion vector of the anchor picture P a (the whole motion vector of the anchor picture P a) as a representative vector RV.
For example, an average of the motion vectors of each block in an anchor picture P A and the encoded image as a global motion vector of the anchor picture P A.

(2)代表ベクトル例2
代表ベクトル算出部1は、アンカーピクチャP内に存在しているエッジの検出処理を実施することで、そのエッジによって区切られているアンカーピクチャP内の各領域を認識し、アンカーピクチャP内の領域毎に、代表ベクトルを算出する。
アンカーピクチャP内の領域に、代表ベクトルを算出する方法は特に問わないが、例えば、上記の代表ベクトル例1と同様の方法を用いる場合には、アンカーピクチャP内の各領域の大域動きベクトルをそれぞれ代表ベクトルとして算出する。
(2) Representative vector example 2
Representative vector calculation unit 1, by performing the detection processing of an edge is present in the anchor picture P A, it recognizes each region of the anchor pictures P A which is delimited by the edge, an anchor picture P A A representative vector is calculated for each area.
The area within the anchor picture P A, representative but vector no particular limitation on how to calculate, for example, when using the same method as the representative vector Example 1 above, global motion of each region in the anchor picture P A Each vector is calculated as a representative vector.

(3)代表ベクトル例3
代表ベクトル算出部1は、一定ブロックおきに、符号化対象のアンカーブロックBの動きベクトルMVを新規の代表ベクトルRVとして代表ベクトル格納部2に格納する。
例えば、符号化対象のアンカーブロックBが所定のライン数(例えば、10ライン)だけ移動すると、移動後のアンカーブロックBの動きベクトルを新規の代表ベクトルRVとして代表ベクトル格納部2に格納する。
(3) Representative vector example 3
The representative vector calculation unit 1 stores the motion vector MV of the anchor block B A to be encoded in the representative vector storage unit 2 as a new representative vector RV every certain block.
For example, when the encoding target anchor block B A moves by a predetermined number of lines (for example, 10 lines), the motion vector of the anchor block B A after the movement is stored in the representative vector storage unit 2 as a new representative vector RV. .

(4)代表ベクトル例4
代表ベクトル算出部1は、一定時間おきに、符号化対象のアンカーブロックBの動きベクトルMVを新規の代表ベクトルRVとして代表ベクトル格納部2に格納する。
例えば、一定時間経過する毎に、そのときの符号化対象のアンカーブロックBの動きベクトルMVを新規の代表ベクトルRVとして代表ベクトル格納部2に格納する。
(4) Representative vector example 4
Representative vector calculation unit 1, the predetermined time interval, and stores the representative vector storage unit 2 a motion vector MV of the anchor block B A of the coded as a new representative vector RV.
For example, every time a predetermined time elapses, and stores the representative vector storage unit 2 a motion vector MV of the anchor block B A of the encoding target at that time as a new representative vector RV.

(5)代表ベクトル例5
常に零ベクトルを代表ベクトルRVとして使用する。
この場合、代表ベクトル算出部1や代表ベクトル格納部2は不要になる。
(5) Representative vector example 5
The zero vector is always used as the representative vector RV.
In this case, the representative vector calculation unit 1 and the representative vector storage unit 2 are not necessary.

(6)代表ベクトル例6
代表ベクトル算出部1は、詳細は後述するが、差分情報算出部3により算出される差分ベクトルの水平方向成分又は垂直方向成分の少なくとも一方がNビットで表現することができない場合、符号化対象のアンカーブロックBの動きベクトルMVを新規の代表ベクトルRVとして代表ベクトル格納部2に格納する。
(6) Representative vector example 6
As will be described in detail later, the representative vector calculation unit 1 will not be able to express N bits of at least one of the horizontal direction component and the vertical direction component of the difference vector calculated by the difference information calculation unit 3. The motion vector MV of the anchor block B A is stored in the representative vector storage unit 2 as a new representative vector RV.

(7)代表ベクトル例7
代表ベクトル算出部1は、符号化対象のアンカーブロックBの近隣ブロックの動きベクトルMVを代表ベクトルRVとして代表ベクトル格納部2に格納する。
即ち、代表ベクトル算出部1は、代表ベクトル格納部2により格納されている代表ベクトルRVに、既に符号化されているアンカーブロックBのうち、差分情報算出時に代表ベクトル格納部2により格納されている代表ベクトルRVを代表ベクトルとして用いたブロックから上記の近隣ブロックまでの差分情報DIを累積加算することで、符号化対象のアンカーブロックBの代表ベクトルRVを算出する。
(7) Representative vector example 7
Representative vector calculation unit 1 is stored in the representative vector storage unit 2 a motion vector MV of the neighboring block of the anchor block B A of the coded as representative vector RV.
That is, the representative vector calculation unit 1, the representative vector RV stored by the representative vector storage section 2, already out of the anchor block B A being coded, stored by the representative vector storage section 2 in calculating difference information by cumulatively adding the difference information DI from the block to the neighboring blocks of the using representative vectors RV that are as representative vector, calculates a representative vector RV of the anchor block B a of the encoding target.

差分情報算出部3は、符号化対象のアンカーブロックBの動きベクトルMVを入力すると、代表ベクトル格納部2から代表ベクトルRVを取得する(図5のステップST11)。
差分情報算出部3は、代表ベクトル格納部2から代表ベクトルRVを取得すると、その代表ベクトルRVに対する動きベクトルMVの差分ベクトルを算出する(ステップST12)。
When the difference information calculation unit 3 inputs the motion vector MV of the anchor block B A to be encoded, the difference information calculation unit 3 acquires the representative vector RV from the representative vector storage unit 2 (step ST11 in FIG. 5).
When the difference information calculation unit 3 acquires the representative vector RV from the representative vector storage unit 2, the difference information calculation unit 3 calculates a difference vector of the motion vector MV with respect to the representative vector RV (step ST12).

差分情報算出部3は、差分ベクトルを算出すると、例えば、差分情報格納部4により格納される差分情報DIに割り当てられるビット数が2Nビットであるとするとき、その差分ベクトルの水平方向成分及び垂直方向成分の双方がNビットで表現することが可能であるか否かを判定する(ステップST13)。
即ち、差分情報算出部3は、その差分ベクトルの水平方向成分及び垂直方向成分の双方が、X以上で、Y以下であるか否かを判定する。
X=−2(N−1)+1
Y= 2(N−1)−1
When the difference information calculation unit 3 calculates the difference vector, for example, when the number of bits allocated to the difference information DI stored by the difference information storage unit 4 is 2N bits, the horizontal component and the vertical direction of the difference vector are calculated. It is determined whether or not both directional components can be expressed by N bits (step ST13).
That is, the difference information calculation unit 3 determines whether or not both the horizontal direction component and the vertical direction component of the difference vector are X or more and Y or less.
X = -2 (N-1) +1
Y = 2 (N−1) −1

差分情報算出部3は、差分ベクトルの水平方向成分及び垂直方向成分の双方がNビットで表現することが可能であれば(X≦水平方向成分≦Y、かつ、X≦垂直方向成分≦Y)、その動きベクトルMVから代表ベクトルRVを引いた差分を差分情報DIとして差分情報格納部4に出力する(ステップST14)。
即ち、差分情報算出部3は、差分ベクトルの水平方向成分と垂直方向成分をそれぞれNビットで表現し、Nビット表現の水平方向成分と垂直方向成分を差分情報格納部4に出力する。
If the difference information calculation unit 3 can express both the horizontal component and the vertical component of the difference vector with N bits (X ≦ horizontal component ≦ Y and X ≦ vertical component ≦ Y). The difference obtained by subtracting the representative vector RV from the motion vector MV is output to the difference information storage unit 4 as difference information DI (step ST14).
That is, the difference information calculation unit 3 represents the horizontal direction component and the vertical direction component of the difference vector with N bits, respectively, and outputs the horizontal direction component and the vertical direction component of the N bit representation to the difference information storage unit 4.

差分情報算出部3は、差分ベクトルの水平方向成分又は垂直方向成分の少なくとも一方がNビットで表現することができなければ(水平方向成分<X、または、水平方向成分>Y、あるいは、垂直方向成分<X、または、垂直方向成分>Y)、「ビット溢れ」を示す情報を差分情報DIとして差分情報格納部4に出力する(ステップST15)。
差分情報格納部4は、差分情報算出部3から出力された差分情報DIを符号化対象のアンカーブロックB毎に格納する。
If at least one of the horizontal direction component and the vertical direction component of the difference vector cannot be expressed by N bits, the difference information calculation unit 3 (horizontal direction component <X or horizontal direction component> Y or vertical direction Component <X or vertical component> Y) and information indicating “bit overflow” are output to the difference information storage unit 4 as difference information DI (step ST15).
Difference information storage unit 4 stores the difference information DI output from the difference information calculation unit 3 for each anchor block B A of the encoding target.

時間ダイレクトベクトル情報算出部5は、差分情報格納部4によりアンカーブロックB毎に格納されている差分情報DIと代表ベクトル格納部2により格納されている代表ベクトルRVから、時間ダイレクトブロックBの動きベクトルの情報を示す時間ダイレクトベクトル情報TDVIを算出する。
以下、時間ダイレクトベクトル情報算出部5の処理内容を具体的に説明する。
The temporal direct vector information calculation unit 5 calculates the temporal direct block B B from the differential information DI stored for each anchor block B A by the differential information storage unit 4 and the representative vector RV stored by the representative vector storage unit 2. Temporal direct vector information TDVI indicating motion vector information is calculated.
Hereinafter, the processing content of the time direct vector information calculation part 5 is demonstrated concretely.

まず、時間ダイレクトベクトル情報算出部5の代表時間ダイレクトベクトル算出部11は、符号化対象の時間ダイレクトブロックBに対応する代表時間ダイレクトベクトルRTDVが代表時間ダイレクトベクトル格納部12に格納されているか否かを判定する(図6のステップST21)。 First, whether or not time representative temporal direct vector calculation unit 11 of the direct vector information calculation section 5, a representative temporal direct vector RTDV corresponding to time direct block B B to be coded is stored in the representative temporal direct vector storage section 12 Is determined (step ST21 in FIG. 6).

代表時間ダイレクトベクトル算出部11は、符号化対象の時間ダイレクトブロックBに対応する代表時間ダイレクトベクトルRTDVが格納されていない場合、代表ベクトル格納部2により格納されている代表ベクトルRVなどを下記の式(1)に代入することで、複数の時間ダイレクトブロックBの時間ダイレクトベクトル情報TDVIを算出する際に共通に用いられる代表時間ダイレクトベクトルRTDVを算出する(ステップST22)。
RTDV=RV×(tr−tc)/(t1−t0) (1)
ただし、tc:符号化対象のBピクチャPの表示時刻
tr:BピクチャPが参照する符号化画像の表示時刻
t1:BピクチャPに対するアンカーピクチャPの表示時刻
t0:アンカーピクチャPが参照する符号化画像の表示時刻
Representative temporal direct vector calculation unit 11, when the representative temporal direct vector RTDV corresponding to time direct block B B to be coded is not stored, such as the following representative vector RV stored by the representative vector storage section 2 by substituting the equation (1), it calculates a representative temporal direct vector RTDV commonly used in calculating the temporal direct vector information TDVI multiple temporal direct block B B (step ST22).
RTDV = RV × (tr−tc) / (t1−t0) (1)
Where tc: display time of the B picture P B to be encoded
tr: Display time of the encoded image referred to by the B picture P B
t1: display time of anchor pictures P A for the B picture P B
t0: display time of the encoded image anchor picture P A refers

代表時間ダイレクトベクトル算出部11は、代表時間ダイレクトベクトルRTDVを算出すると、その代表時間ダイレクトベクトルRTDVを代表時間ダイレクトベクトル格納部12に格納する(ステップST23)。   After calculating the representative time direct vector RTDV, the representative time direct vector calculation unit 11 stores the representative time direct vector RTDV in the representative time direct vector storage unit 12 (step ST23).

時間ダイレクトベクトル情報算出部5の差分時間ダイレクトベクトル情報算出部13は、差分情報格納部4によりアンカーブロックB毎に格納されている差分情報DIが「ビット溢れ」を示す情報であるか否かを判定する(ステップST24)。
差分時間ダイレクトベクトル情報算出部13は、その差分情報DIが「ビット溢れ」を示す情報でなければ、その差分情報DIを線形補正することで、差分時間ダイレクトベクトル情報DTDVIを算出する(ステップST25)。
即ち、差分時間ダイレクトベクトル情報算出部13は、その差分情報DIなどを下記の式(2)に代入することで、差分時間ダイレクトベクトル情報DTDVIを算出する。
DTDVI=DI×(tr−tc)/(t1−t0) (2)
Differential time direct vector information calculating unit 13 of the temporal direct vector information calculation unit 5, whether or not the difference information DI to the difference information storage unit 4 are stored in each anchor block B A is information indicating "overflow bits" Is determined (step ST24).
If the difference information DI is not information indicating “bit overflow”, the difference time direct vector information calculation unit 13 linearly corrects the difference information DI to calculate difference time direct vector information DTDVI (step ST25). .
That is, the difference time direct vector information calculation unit 13 calculates the difference time direct vector information DTDVI by substituting the difference information DI and the like into the following equation (2).
DTDVI = DI × (tr−tc) / (t1−t0) (2)

ただし、差分時間ダイレクトベクトル情報算出部13は、その差分情報DIが「ビット溢れ」を示す情報である場合、「時間ダイレクトモード禁止」を示す情報を差分時間ダイレクトベクトル情報DTDVIとして出力する(ステップST25)。   However, if the difference information DI is information indicating “bit overflow”, the difference time direct vector information calculation unit 13 outputs information indicating “temporal direct mode prohibited” as difference time direct vector information DTDVI (step ST25). ).

時間ダイレクトベクトル情報算出部5の加算器14は、差分時間ダイレクトベクトル情報算出部13から出力された差分時間ダイレクトベクトル情報DTDVIが「時間ダイレクトモード禁止」を示す情報でなければ(図7のステップST31)、その差分時間ダイレクトベクトル情報DTDVIと代表時間ダイレクトベクトル格納部12により格納されている代表時間ダイレクトベクトルRTDVを加算し、その加算結果を時間ダイレクトベクトル情報TDVIとして切換スイッチ15に出力する(ステップST32)。   The adder 14 of the time direct vector information calculation unit 5 does not include the difference time direct vector information DTDVI output from the difference time direct vector information calculation unit 13 as information indicating “prohibit time direct mode” (step ST31 in FIG. 7). The difference time direct vector information DTDVI and the representative time direct vector RTDV stored in the representative time direct vector storage unit 12 are added, and the addition result is output to the changeover switch 15 as time direct vector information TDVI (step ST32). ).

時間ダイレクトベクトル情報算出部5の切換スイッチ15は、差分時間ダイレクトベクトル情報算出部13から出力された差分時間ダイレクトベクトル情報DTDVIが「時間ダイレクトモード禁止」を示す情報でなければ、加算器14から出力された時間ダイレクトベクトル情報TDVIを選択して出力する(ステップST33)。
切換スイッチ15は、差分時間ダイレクトベクトル情報算出部13から出力された差分時間ダイレクトベクトル情報DTDVIが「時間ダイレクトモード禁止」を示す情報である場合、その差分時間ダイレクトベクトル情報DTDVIを時間ダイレクトベクトル情報TDVIとして出力する(ステップST34)。
The changeover switch 15 of the time direct vector information calculation unit 5 outputs from the adder 14 if the difference time direct vector information DTDVI output from the difference time direct vector information calculation unit 13 is not information indicating “temporal direct mode prohibited”. The selected time direct vector information TDVI is selected and output (step ST33).
When the difference time direct vector information DTDVI output from the difference time direct vector information calculation unit 13 is information indicating “prohibit time direct mode”, the changeover switch 15 converts the difference time direct vector information DTDVI into time direct vector information TDVI. (Step ST34).

以上で明らかなように、この実施の形態1によれば、符号化対象の複数のアンカーブロックBに対して共通に定められている代表ベクトルRVを入力して、その代表ベクトルRVに対するアンカーブロックBの動きベクトルMVの差分情報DIを算出し、その差分情報DIを動きベクトルMVのビット幅より小さいビット幅で表現して出力する差分情報算出部3と、その差分情報算出部3から出力された差分情報DIを符号化対象のアンカーブロックB毎に格納する差分情報格納部4とを設け、時間ダイレクトベクトル情報算出部5が差分情報格納部4によりアンカーブロックB毎に格納されている差分情報DIと代表ベクトルRVから、時間ダイレクトブロックBの動きベクトルの情報を示す時間ダイレクトベクトル情報TDVIを算出するように構成したので、アンカーピクチャP内の全てのアンカーブロックBの動きベクトルMVを保持するのに十分な容量のメモリを確保することができない場合でも、一部の時間ダイレクトブロックBでは、時間ダイレクトモードで動き補償を行うことができる効果を奏する。 As is apparent from the above, according to the first embodiment, a representative vector RV that is commonly defined for a plurality of anchor blocks B A to be encoded is input, and an anchor block for the representative vector RV is input. A difference information calculation unit 3 that calculates difference information DI of the motion vector MV of B A , expresses the difference information DI with a bit width smaller than the bit width of the motion vector MV, and outputs from the difference information calculation unit 3 A difference information storage unit 4 that stores the difference information DI for each anchor block B A to be encoded, and the temporal direct vector information calculation unit 5 is stored by the difference information storage unit 4 for each anchor block B A. from the difference information are DI representative vector RV, a temporal direct block B temporal direct vector information indicating the information of the motion vector T of B Since it is configured to calculate the VI, even if it is not possible to secure a memory of sufficient capacity to hold the motion vector MV of all anchor blocks B A in the anchor picture P A, a portion of the temporal direct The block B B has an effect that motion compensation can be performed in the temporal direct mode.

即ち、この実施の形態1によれば、差分情報算出部3が代表ベクトルRVに対するアンカーブロックBの動きベクトルMVの差分情報DIを算出し、その差分情報DIを動きベクトルMVのビット幅より小さいビット幅で表現して差分情報格納部4に格納するようにしているので、省メモリ化を図ることができる効果を奏する。
例えば、動きベクトルMVがMビットで表現される場合、アンカーピクチャPにおける動きベクトルMVの情報を保持するのに要する総メモリ量を約N/Mとすることができる。
That is, according to the first embodiment, the difference information calculation unit 3 calculates the difference information DI of the motion vector MV of the anchor block B A the representative vector RV, the bit width is smaller than the motion vector MV and the difference information DI Since it is expressed in the bit width and stored in the difference information storage unit 4, it is possible to save memory.
For example, if the motion vector MV is represented by M bits can be approximately N / M the total amount of memory required to hold the information of the motion vector MV in the anchor picture P A.

また、後述する画像符号化装置(図1の動き補償予測装置を実装している画像符号化装置)では、保有しているメモリ量に応じて、差分情報DIに割り当てるビット量を調節することが可能であるため、画像符号化装置の保有メモリ量が、アンカーピクチャP内の全てのアンカーブロックBの動きベクトルMVを保持するのに十分でない場合でも、時間ダイレクトモードを部分的に使用することが可能となる。
さらに、代表時間ダイレクトベクトルRTDVは、複数の時間ダイレクトブロックBに対して共通に用いることができる。このため、各時間ダイレクトブロックBにおける時間ダイレクトベクトル情報TDVIの算出においては、差分時間ダイレクトベクトル情報DTDVIを算出するためのNビットの演算を行えばよいので、低演算量での時間ダイレクトモードの実装が可能である。
In addition, in an image encoding device (an image encoding device in which the motion compensated prediction device of FIG. 1 is mounted) described later, the bit amount allocated to the difference information DI can be adjusted according to the amount of memory held. since possible, possess the memory capacity of the image encoding apparatus, even if not enough to hold the motion vector MV of all anchor blocks B a in the anchor picture P a, partially using temporal direct mode It becomes possible.
Further, the representative temporal direct vector RTDV can be used in common to a plurality of temporal direct block B B. Therefore, in the calculation of the temporal direct vector information TDVI at each time direct block B B, since it is sufficient to operation of N bits for calculating the differential time direct vector information DTDVI, at low calculation amount of temporal direct mode Implementation is possible.

なお、この実施の形態1では、差分情報算出部3が差分情報DIを動きベクトルMVのビット幅より小さいビット幅で表現して差分情報格納部4に格納するものについて示したが、差分情報格納部4のメモリ容量を更に小さくすることができるようにするために、差分情報算出部3が差分情報DIに関する統計情報(各差分情報DIが出現する確率)を算出し、その統計情報に基づいて差分情報DIをコンパクト符号化する符号化器を備えるようにしてもよい。
この場合、時間ダイレクトベクトル情報算出部5には、コンパクト符号化されている差分情報DIを復号する復号器(上記符号化器に対応する復号器)を備えている必要がある。
In the first embodiment, the difference information calculation unit 3 expresses the difference information DI with a bit width smaller than the bit width of the motion vector MV and stores it in the difference information storage unit 4. In order to further reduce the memory capacity of the unit 4, the difference information calculation unit 3 calculates statistical information (probability that each difference information DI appears) regarding the difference information DI, and based on the statistical information An encoder for compactly encoding the difference information DI may be provided.
In this case, the temporal direct vector information calculation unit 5 needs to include a decoder (decoder corresponding to the encoder) that decodes the differentially encoded differential information DI.

また、この実施の形態1では、代表ベクトル算出部1が代表ベクトルRVを算出するものについて示したが、例えば、固定の代表ベクトルRVを用いる場合には、代表ベクトル算出部1を省略することができる。   In the first embodiment, the representative vector calculation unit 1 calculates the representative vector RV. However, for example, when the fixed representative vector RV is used, the representative vector calculation unit 1 may be omitted. it can.

代表ベクトル算出部1により算出される代表ベクトルRVは、ピクチャ単位であってもよいが、ピクチャ単位に限定されるものではない。
したがって、例えば、ピクチャが複数に分割されているサブピクチャ単位に代表ベクトルRVを定めてもよい。また、複数のピクチャを単位にして、代表ベクトルRVを定めてもよい。
また、代表ベクトルを定める単位に対して、代表ベクトルの個数は一つでも複数でもよい。ただし、代表ベクトルの候補が複数ある場合には、差分情報DIとして、代表ベクトルRVとして用いたベクトルを表すラベルが必要である。
The representative vector RV calculated by the representative vector calculation unit 1 may be in units of pictures, but is not limited to units of pictures.
Therefore, for example, the representative vector RV may be determined in units of sub-pictures in which a picture is divided into a plurality of parts. Further, the representative vector RV may be determined in units of a plurality of pictures.
Further, the number of representative vectors may be one or more for a unit that defines the representative vector. However, if there are a plurality of representative vector candidates, a label representing the vector used as the representative vector RV is required as the difference information DI.

実施の形態2.
図8はこの発明の実施の形態2による動き補償予測装置を実装している画像符号化装置を示す構成図であり、図において、図1と同一符号は同一又は相当部分を示すので説明を省略する。
動き補償予測装置20は図1の動き補償予測装置と同じ装置であり、BピクチャP内の時間ダイレクトブロックBに対応するアンカーピクチャP内のアンカーブロックBの動きベクトルMBを線形補正して、その時間ダイレクトブロックBの動きベクトルの情報を示す時間ダイレクトベクトル情報TDVIを算出する処理を実施する。
Embodiment 2. FIG.
FIG. 8 is a block diagram showing an image coding apparatus equipped with a motion compensated prediction apparatus according to Embodiment 2 of the present invention. In the figure, the same reference numerals as those in FIG. To do.
The motion compensated prediction apparatus 20 is the same apparatus as the motion compensated prediction apparatus of FIG. 1, and linearly corrects the motion vector MB of the anchor block B A in the anchor picture P A corresponding to the temporal direct block B B in the B picture P B. to, and carries out a process of calculating a time direct vector information TDVI indicating the information of the motion vector of the temporal direct block B B.

ピクチャメモリ31は入力画像を格納するメモリである。
動き探索部32はアンカーピクチャP内のアンカーブロックBを符号化する際には、代表ベクトル格納部2により格納されている代表ベクトルに近いベクトルを探索して、そのベクトルを動きベクトルMVとして差分情報算出部3に与え、BピクチャP内の時間ダイレクトブロックBを符号化する際には、時間ダイレクトベクトル情報算出部5の代表時間ダイレクトベクトル格納部12により格納されている代表時間ダイレクトベクトルRTDVに近いベクトルを探索して、そのベクトルを動きベクトルMVとして差分情報算出部3に与える処理を実施する。なお、動き探索部32は動きベクトル探索手段を構成している。
The picture memory 31 is a memory that stores an input image.
When the motion search unit 32 for encoding an anchor block B A of the anchor pictures P A is to explore the vector close to the representative vectors stored by the representative vector storage section 2, as the motion vector MV and the vector given the difference information calculation unit 3, in coding the temporal direct block B B in B-pictures P B is the temporal direct vector information calculation unit 5 of the representative temporal direct vector storage unit 12 representative temporal direct stored by A search is made for a vector close to the vector RTDV, and a process of giving the vector as the motion vector MV to the difference information calculation unit 3 is performed. The motion search unit 32 constitutes motion vector search means.

切換スイッチ33は、BピクチャP内の時間ダイレクトブロックBを符号化する際には、動き補償予測装置20の時間ダイレクトベクトル情報算出部5から出力された時間ダイレクトベクトル情報TDVIをモード選択部34に出力し、Pピクチャ内のブロックを符号化する際には、「時間ダイレクトモード禁止」を示す情報をモード選択部34に出力する処理を実施する。
モード選択部34は、切換スイッチ33から出力された時間ダイレクトベクトル情報TDVIが「時間ダイレクトモード禁止」を示す情報でなければ、動き探索部32から出力された動きベクトルを使用する方が、切換スイッチ33から出力された時間ダイレクトベクトル情報TDVIが示す時間ダイレクトベクトルを使用するより、コスト(例えば、符号化対象の画像である入力画像と参照画像の差分)が小さくなる場合、動き探索部32から出力された動きベクトルを選択して符号化部37及び動き補償部40に出力し、その時間ダイレクトベクトル情報TDVIが示す時間ダイレクトベクトルを使用する方が、動き探索部32から出力された動きベクトルを使用するより、コスト(例えば、符号化対象の画像と参照画像の差分)が小さくなる場合、その時間ダイレクトベクトル情報TDVIが示す時間ダイレクトベクトルを選択して符号化部37及び動き補償部40に出力する処理を実施する。切換スイッチ33から出力された時間ダイレクトベクトル情報TDVIが「時間ダイレクトモード禁止」を示す情報であれば、モード選択部34は常に動き探索部32から出力された動きベクトルを符号化部37及び動き補償部40に出力する。
Changeover switch 33, when encoding the temporal direct block B B in B-pictures P B, the motion compensation prediction unit 20 of the temporal direct vector information calculating unit time that is output from the 5 direct vector information TDVI the mode selector When the block in the P picture is encoded, information indicating “temporal direct mode prohibited” is output to the mode selection unit 34.
If the time direct vector information TDVI output from the changeover switch 33 is not information indicating “temporal direct mode prohibited”, the mode selection unit 34 uses the motion vector output from the motion search unit 32 to switch the changeover switch. When the cost (for example, the difference between the input image that is the encoding target image and the reference image) is smaller than when the temporal direct vector indicated by the temporal direct vector information TDVI output from 33 is used, output from the motion search unit 32 The motion vector output from the motion search unit 32 is used when the selected motion vector is selected and output to the encoding unit 37 and the motion compensation unit 40 and the temporal direct vector indicated by the temporal direct vector information TDVI is used. The cost (for example, the difference between the image to be encoded and the reference image) is smaller than It made case, and carries out a process of outputting to the coder 37 and the motion compensation unit 40 selects the temporal direct vector indicated by the temporal direct vector information TDVI. If the temporal direct vector information TDVI output from the changeover switch 33 is information indicating “temporal direct mode prohibited”, the mode selection unit 34 always uses the encoding unit 37 and the motion compensation for the motion vector output from the motion search unit 32. To the unit 40.

減算器35はピクチャメモリ31により格納された入力画像と切換スイッチ41から出力された予測画像の差分を求め、その差分画像をDCT量子化部36に出力する処理を実施する。
DCT量子化部36は減算器35から出力された差分画像に対するDCT(離散コサイン変換)処理と量子化処理を実施する。
符号化部37はモード選択部34から出力されたベクトル、及びDCT量子化部36の出力データから符号化データを生成し、その符号化データを出力する処理を実施する。
The subtracter 35 obtains a difference between the input image stored in the picture memory 31 and the predicted image output from the changeover switch 41, and performs a process of outputting the difference image to the DCT quantization unit 36.
The DCT quantization unit 36 performs DCT (discrete cosine transform) processing and quantization processing on the difference image output from the subtractor 35.
The encoding unit 37 generates encoded data from the vector output from the mode selecting unit 34 and the output data of the DCT quantizing unit 36, and performs processing for outputting the encoded data.

イントラ予測部38は入力画像からイントラ予測モードで予測画像を生成する処理を実施する。
逆量子化逆DCT部39はDCT量子化部36の出力データに対する逆量子化処理と逆DCT処理を実施して、上記差分画像を動き補償部40に出力する処理を実施する。
動き補償部40はモード選択部34から出力されたベクトル、及び逆量子化逆DCT部39から出力されて動き補償部40の内部にある参照画像蓄積メモリによって格納されている参照画像を用いて動き補償処理を実施して、予測画像を生成する処理を実施する。
ただし、動き補償部40は、代表ベクトルRV又は代表時間ダイレクトベクトルRTDVが共通している複数の符号化ブロックの動き補償を実施する際、複数の符号化ブロックが参照するブロックの画像データを参照画像蓄積メモリから一度に読み出すようにする。
The intra prediction unit 38 performs processing for generating a prediction image from the input image in the intra prediction mode.
The inverse quantization inverse DCT unit 39 performs an inverse quantization process and an inverse DCT process on the output data of the DCT quantization unit 36 and outputs the difference image to the motion compensation unit 40.
The motion compensation unit 40 uses the vector output from the mode selection unit 34 and the reference image output from the inverse quantization inverse DCT unit 39 and stored in the reference image storage memory inside the motion compensation unit 40. Compensation processing is performed, and processing for generating a predicted image is performed.
However, when the motion compensation unit 40 performs motion compensation on a plurality of coding blocks that share the representative vector RV or the representative time direct vector RTDV, the motion compensation unit 40 uses the image data of the block referred to by the plurality of coding blocks as a reference image. Read from the storage memory at once.

切換スイッチ41はイントラ予測部38から出力された予測画像又は動き補償部40から出力された予測画像を選択して減算器35に出力する処理を実施する。
なお、モード選択部34、減算器35、DCT量子化部36、符号化部37、逆量子化逆DCT部39及び動き補償部40から画像符号化手段が構成されている。
The changeover switch 41 performs a process of selecting the prediction image output from the intra prediction unit 38 or the prediction image output from the motion compensation unit 40 and outputting it to the subtractor 35.
The mode selection unit 34, the subtractor 35, the DCT quantization unit 36, the encoding unit 37, the inverse quantization inverse DCT unit 39, and the motion compensation unit 40 constitute image encoding means.

次に動作について説明する。
減算器35、DCT量子化部36、符号化部37、イントラ予測部38、逆量子化逆DCT部39及び切換スイッチ41の処理内容は、一般的な画像符号化装置に実装されているものと同様であるため詳細な説明を省略する。
Next, the operation will be described.
The processing contents of the subtractor 35, the DCT quantization unit 36, the encoding unit 37, the intra prediction unit 38, the inverse quantization inverse DCT unit 39, and the changeover switch 41 are implemented in a general image encoding device. Since it is the same, detailed description is abbreviate | omitted.

動き探索部32は、動き補償部40が動き補償処理を実施するに際して、近隣ブロック同士で動きベクトルの相関が高まるようにするために、次のようにして、動きベクトルを選択する。
即ち、動き探索部32は、アンカーピクチャP内のアンカーブロックBを符号化する際には、代表ベクトル格納部2により格納されている代表ベクトルに近いベクトルによって指定されるブロックの中から参照画像とするブロックを探索して、参照画像とするブロックを指定するベクトルを動きベクトルMVとして差分情報算出部3に与える。
また、BピクチャP内の時間ダイレクトブロックBを符号化する際には、時間ダイレクトベクトル情報算出部5の代表時間ダイレクトベクトル格納部12により格納されている代表時間ダイレクトベクトルRTDVに近いベクトルによって指定されるブロックの中から参照画像とするブロックを探索して、参照画像とするブロックを指定するベクトルを動きベクトルMVとして差分情報算出部3に与える。
When the motion compensation unit 40 performs the motion compensation process, the motion search unit 32 selects a motion vector as follows in order to increase the correlation of motion vectors between neighboring blocks.
That is, the motion search unit 32, when encoding an anchor block B A of the anchor pictures P A is referenced from within the block that is specified by the vector close to the representative vectors stored by the representative vector storage section 2 A block that is an image is searched, and a vector that designates a block that is a reference image is given to the difference information calculation unit 3 as a motion vector MV.
Further, when coding the temporal direct block B B in B-pictures P B is the vector close to the representative temporal direct vector RTDV stored by the representative temporal direct vector storage section 12 of the temporal direct vector information calculating section 5 A block that serves as a reference image is searched from among the designated blocks, and a vector that designates a block that serves as a reference image is given to the difference information calculation unit 3 as a motion vector MV.

近隣ブロック同士で動きベクトルの相関が高まることで、周囲ブロックからの予測によって算出されたベクトルと、選択された動きベクトルが近いものとなる。その結果、時間ダイレクトモードなどの特殊なモードを使用しないブロックに対しても、動きベクトルに要する情報量を削減することができるようになる。
また、近隣ブロックが参照するブロックが隣接又は重複している可能性が高くなる。その場合、動き探索部32が複数ブロックの参照画像を一度にリードすることができるようになり、メモリ転送の効率化を図ることができる。
By increasing the correlation of motion vectors between neighboring blocks, the vector calculated by prediction from the surrounding blocks and the selected motion vector are close to each other. As a result, the amount of information required for motion vectors can be reduced even for blocks that do not use a special mode such as the temporal direct mode.
In addition, there is a high possibility that blocks referenced by neighboring blocks are adjacent or overlapping. In this case, the motion search unit 32 can read the reference images of a plurality of blocks at a time, so that the efficiency of memory transfer can be improved.

切換スイッチ33は、上記実施の形態1と同様にして、BピクチャP内の時間ダイレクトブロックBを符号化する際には、動き補償予測装置20の時間ダイレクトベクトル情報算出部5から出力された時間ダイレクトベクトル情報TDVIをモード選択部34に出力し、Pピクチャ内のブロックを符号化する際には、「時間ダイレクトモード禁止」を示す情報をモード選択部34に出力する。 The changeover switch 33 is output from the temporal direct vector information calculation unit 5 of the motion compensated prediction apparatus 20 when encoding the temporal direct block B B in the B picture P B in the same manner as in the first embodiment. The time direct vector information TDVI is output to the mode selection unit 34, and when the block in the P picture is encoded, information indicating “temporal direct mode prohibition” is output to the mode selection unit 34.

モード選択部34は、切換スイッチ33から出力された時間ダイレクトベクトル情報TDVIが「時間ダイレクトモード禁止」を示す情報でなければ、動き探索部32から出力された動きベクトルを使用する方が、切換スイッチ33から出力された時間ダイレクトベクトル情報TDVIが示す時間ダイレクトベクトルを使用するより、コスト(例えば、符号化対象の画像である入力画像と参照画像の差分)が小さくなる場合、動き探索部32から出力された動きベクトルを選択して符号化部37及び動き補償部40に出力する。
一方、その時間ダイレクトベクトル情報TDVIが示す時間ダイレクトベクトルを使用する方が、動き探索部32から出力された動きベクトルを使用するより、コスト(例えば、入力画像と参照画像の差分)が小さくなる場合、その時間ダイレクトベクトル情報TDVIが示す時間ダイレクトベクトルを選択して符号化部37及び動き補償部40に出力する。
切換スイッチ33から出力された時間ダイレクトベクトル情報TDVIが「時間ダイレクトモード禁止」を示す情報であれば、モード選択部34は常に動き探索部32から出力された動きベクトルを符号化部37及び動き補償部40に出力する。
If the time direct vector information TDVI output from the changeover switch 33 is not information indicating “temporal direct mode prohibited”, the mode selection unit 34 uses the motion vector output from the motion search unit 32 to switch the changeover switch. When the cost (for example, the difference between the input image that is the encoding target image and the reference image) is smaller than when the temporal direct vector indicated by the temporal direct vector information TDVI output from 33 is used, output from the motion search unit 32 The selected motion vector is selected and output to the encoding unit 37 and the motion compensation unit 40.
On the other hand, when the time direct vector indicated by the time direct vector information TDVI is used, the cost (for example, the difference between the input image and the reference image) is smaller than when the motion vector output from the motion search unit 32 is used. The temporal direct vector indicated by the temporal direct vector information TDVI is selected and output to the encoding unit 37 and the motion compensation unit 40.
If the temporal direct vector information TDVI output from the changeover switch 33 is information indicating “temporal direct mode prohibited”, the mode selection unit 34 always uses the encoding unit 37 and the motion compensation for the motion vector output from the motion search unit 32. To the unit 40.

動き補償部40は、モード選択部34から出力されたベクトル、及び逆量子化逆DCT部39から出力されて動き補償部40の内部にある参照画像蓄積メモリによって格納されている参照画像を用いて動き補償処理を実施して、予測画像を生成する処理を実施する。
ただし、動き補償部40は、代表ベクトルRV又は代表時間ダイレクトベクトルRTDVが共通している複数の符号化ブロックの動き補償を実施する際、上述したように、近隣ブロック同士で動きベクトルの相関が高まっているので、複数の符号化ブロックが参照するブロックの画像データを参照画像蓄積メモリから一度に読み出すようにする。
The motion compensation unit 40 uses the vector output from the mode selection unit 34 and the reference image output from the inverse quantization inverse DCT unit 39 and stored in the reference image storage memory inside the motion compensation unit 40. A motion compensation process is performed to generate a predicted image.
However, as described above, when the motion compensation unit 40 performs motion compensation for a plurality of encoded blocks that share the representative vector RV or the representative time direct vector RTDV, the correlation between motion vectors increases between neighboring blocks. Therefore, the image data of the block referred to by the plurality of coding blocks is read out from the reference image storage memory at a time.

1 代表ベクトル算出部(代表ベクトル算出手段)、2 代表ベクトル格納部(代表ベクトル格納手段)、3 差分情報算出部(差分情報算出手段)、4 差分情報格納部(差分情報格納手段)、5 時間ダイレクトベクトル情報算出部(時間ダイレクトベクトル情報算出手段)、11 代表時間ダイレクトベクトル算出部、12 代表時間ダイレクトベクトル格納部、13 差分時間ダイレクトベクトル情報算出部、14 加算器、15 切換スイッチ、20 動き補償予測装置、31 ピクチャメモリ、32 動き探索部(動きベクトル探索手段)、33 切換スイッチ、34 モード選択部(画像符号化手段)、35 減算器(画像符号化手段)、36 DCT量子化部(画像符号化手段)、37 符号化部(画像符号化手段)、38 イントラ予測部、39 逆量子化逆DCT部(画像符号化手段)、40 動き補償部(画像符号化手段)、41 切換スイッチ。   1 representative vector calculation unit (representative vector calculation unit), 2 representative vector storage unit (representative vector storage unit), 3 difference information calculation unit (difference information calculation unit), 4 difference information storage unit (difference information storage unit), 5 hours Direct vector information calculation unit (temporal direct vector information calculation means), 11 representative time direct vector calculation unit, 12 representative time direct vector storage unit, 13 differential time direct vector information calculation unit, 14 adder, 15 changeover switch, 20 motion compensation Prediction device, 31 picture memory, 32 motion search unit (motion vector search unit), 33 changeover switch, 34 mode selection unit (image encoding unit), 35 subtractor (image encoding unit), 36 DCT quantization unit (image Encoding means), 37 encoding section (image encoding means), 38 intra prediction Parts, 39 inverse quantization inverse DCT section (image encoding means), 40 a motion compensation unit (image encoding means), 41 changeover switch.

Claims (18)

Bピクチャ内の時間ダイレクトブロックに対応するアンカーピクチャ内のアンカーブロックのうち、符号化対象の複数のアンカーブロックに対して共通に定められているベクトルである代表ベクトルを入力して、上記代表ベクトルに対する上記アンカーブロックの動きベクトルの差分情報を算出し、上記差分情報を上記動きベクトルのビット幅より小さいビット幅で表現して出力する差分情報算出手段と、上記差分情報算出手段から出力された差分情報を符号化対象のアンカーブロック毎に格納する差分情報格納手段と、上記差分情報格納手段によりアンカーブロック毎に格納されている差分情報と上記代表ベクトルから、上記時間ダイレクトブロックの動きベクトルの情報を示す時間ダイレクトベクトル情報を算出する時間ダイレクトベクトル情報算出手段とを備えた動き補償予測装置。   Of the anchor blocks in the anchor picture corresponding to the temporal direct block in the B picture, a representative vector that is a vector defined in common for a plurality of anchor blocks to be encoded is input, and the representative vector Difference information calculation means for calculating difference information of the motion vector of the anchor block, expressing the difference information with a bit width smaller than the bit width of the motion vector, and difference information output from the difference information calculation means Is stored for each anchor block to be encoded, and the difference information stored for each anchor block by the difference information storage means and the representative vector are used to indicate the motion vector information of the temporal direct block. Time direct vector to calculate time direct vector information Motion compensation prediction apparatus comprising a Le-information obtaining means. 代表ベクトルを格納する代表ベクトル格納手段を設けたことを特徴とする請求項1記載の動き補償予測装置。   2. The motion compensated prediction apparatus according to claim 1, further comprising representative vector storage means for storing the representative vector. 代表ベクトル格納手段は、一定ブロックおき、あるいは、一定時間おきに、符号化対象のアンカーブロックの動きベクトルを新規の代表ベクトルとして格納することを特徴とする請求項2記載の動き補償予測装置。   3. The motion compensated prediction apparatus according to claim 2, wherein the representative vector storage means stores the motion vector of the anchor block to be encoded as a new representative vector at regular intervals or at regular intervals. 代表ベクトルを算出する代表ベクトル算出手段を設けたことを特徴とする請求項1から請求項3のうちのいずれか1項記載の動き補償予測装置。   4. The motion compensated prediction apparatus according to claim 1, further comprising a representative vector calculation unit that calculates a representative vector. 代表ベクトル算出手段は、アンカーピクチャの全体の動きベクトルを代表ベクトルとして算出することを特徴とする請求項4記載の動き補償予測装置。   5. The motion compensated prediction apparatus according to claim 4, wherein the representative vector calculation means calculates the entire motion vector of the anchor picture as a representative vector. 代表ベクトル算出手段は、エッジによって区切られているアンカーピクチャ内の領域毎に、代表ベクトルを算出することを特徴とする請求項4記載の動き補償予測装置。   5. The motion compensated prediction apparatus according to claim 4, wherein the representative vector calculation means calculates a representative vector for each region in the anchor picture divided by edges. 代表ベクトル算出手段は、代表ベクトル格納手段により格納されている代表ベクトルに、既に符号化されているアンカーブロックの差分情報を累積加算することで、符号化対象のアンカーブロックの代表ベクトルを算出することを特徴とする請求項4記載の動き補償予測装置。   The representative vector calculating means calculates the representative vector of the anchor block to be encoded by cumulatively adding the difference information of the already encoded anchor block to the representative vector stored by the representative vector storing means. The motion compensation prediction apparatus according to claim 4. 差分情報算出手段は、差分情報格納手段により格納される差分情報に割り当てられるビット数が2Nビットである場合、アンカーブロックの動きベクトルと代表ベクトルの差分ベクトルを算出し、上記差分ベクトルの水平方向成分及び垂直方向成分の双方がNビットで表現することが可能であれば、上記動きベクトルから上記代表ベクトルを引いた差分を差分情報として上記差分情報格納手段に出力し、上記差分ベクトルの水平方向成分又は垂直方向成分の少なくとも一方がNビットで表現することができなければ、ビット溢れを示す情報を差分情報として上記差分情報格納手段に出力することを特徴とする請求項1から請求項7のうちのいずれか1項記載の動き補償予測装置。   The difference information calculation means calculates the difference vector between the motion vector of the anchor block and the representative vector when the number of bits allocated to the difference information stored by the difference information storage means is 2N bits, and calculates the horizontal direction component of the difference vector. If both the vertical direction component and the vertical direction component can be expressed by N bits, the difference obtained by subtracting the representative vector from the motion vector is output as difference information to the difference information storage means, and the horizontal direction component of the difference vector is output. Alternatively, if at least one of the vertical components cannot be expressed by N bits, information indicating bit overflow is output as difference information to the difference information storage means. The motion compensated prediction apparatus according to any one of the above. 代表ベクトル格納手段は、差分ベクトルの水平方向成分又は垂直方向成分の少なくとも一方がNビットで表現することができなければ、符号化対象のアンカーブロックの動きベクトルを新規の代表ベクトルとして格納することを特徴とする請求項8記載の動き補償予測装置。   If at least one of the horizontal direction component and the vertical direction component of the difference vector cannot be expressed by N bits, the representative vector storage means stores the motion vector of the anchor block to be encoded as a new representative vector. The motion compensation prediction apparatus according to claim 8, wherein the apparatus is a motion compensation prediction apparatus. 時間ダイレクトベクトル情報算出手段は、符号化対象のBピクチャの表示時刻、上記Bピクチャが参照する符号化画像の表示時刻、上記Bピクチャに対するアンカーピクチャの表示時刻及び上記アンカーピクチャが参照する符号化画像の表示時刻を考慮して、時間ダイレクトベクトル情報を算出することを特徴とする請求項1から請求項9のうちのいずれか1項記載の動き補償予測装置。   The temporal direct vector information calculation means includes a display time of a B picture to be encoded, a display time of an encoded image referred to by the B picture, a display time of an anchor picture relative to the B picture, and an encoded image referred to by the anchor picture. The motion compensated prediction apparatus according to any one of claims 1 to 9, wherein temporal direct vector information is calculated in consideration of the display time. 時間ダイレクトベクトル情報算出手段は、代表ベクトル、符号化対象のBピクチャの表示時刻、上記Bピクチャが参照する符号化画像の表示時刻、上記Bピクチャに対するアンカーピクチャの表示時刻及び上記アンカーピクチャが参照する符号化画像の表示時刻から、複数の時間ダイレクトブロックの時間ダイレクトベクトル情報を算出する際に共通に用いられるベクトルである代表時間ダイレクトベクトルを算出し、上記代表時間ダイレクトベクトルと差分情報格納手段によりアンカーブロック毎に格納されている差分情報から、時間ダイレクトベクトル情報を算出することを特徴とする請求項10記載の動き補償予測装置。   The temporal direct vector information calculating means refers to the representative vector, the display time of the B picture to be encoded, the display time of the encoded image referenced by the B picture, the display time of the anchor picture for the B picture, and the anchor picture. A representative time direct vector, which is a vector used in common when calculating time direct vector information of a plurality of time direct blocks, is calculated from the display time of the encoded image, and anchored by the representative time direct vector and the difference information storage means. The motion compensation prediction apparatus according to claim 10, wherein temporal direct vector information is calculated from difference information stored for each block. 時間ダイレクトベクトル情報算出手段は、差分情報格納手段によりアンカーブロック毎に格納されている差分情報、符号化対象のBピクチャの表示時刻、上記Bピクチャが参照する符号化画像の表示時刻、上記Bピクチャに対するアンカーピクチャの表示時刻及び上記アンカーピクチャが参照する符号化画像の表示時刻から差分時間ダイレクトベクトル情報を算出し、上記差分時間ダイレクトベクトル情報と代表時間ダイレクトベクトルから時間ダイレクトベクトル情報を算出することを特徴とする請求項11記載の動き補償予測装置。   The temporal direct vector information calculation means includes difference information stored for each anchor block by the difference information storage means, a display time of a B picture to be encoded, a display time of an encoded image referred to by the B picture, and the B picture Calculating the difference time direct vector information from the display time of the anchor picture for the image and the display time of the encoded image referred to by the anchor picture, and calculating the time direct vector information from the difference time direct vector information and the representative time direct vector. The motion compensation prediction apparatus according to claim 11, wherein the apparatus is a motion compensation prediction apparatus. 時間ダイレクトベクトル情報算出手段は、差分情報格納手段によりアンカーブロック毎に格納されている差分情報がビット溢れを示す情報でない場合、差分時間ダイレクトベクトル情報と代表時間ダイレクトベクトルの和を時間ダイレクトベクトル情報として出力し、上記差分情報がビット溢れを示す情報である場合、時間ダイレクトモード禁止を示す情報を時間ダイレクトベクトル情報として出力することを特徴とする請求項12記載の動き補償予測装置。   If the difference information stored for each anchor block by the difference information storage means is not information indicating bit overflow, the time direct vector information calculation means uses the sum of the difference time direct vector information and the representative time direct vector as time direct vector information. 13. The motion compensated prediction apparatus according to claim 12, wherein when the difference information is information indicating bit overflow, information indicating temporal direct mode inhibition is output as temporal direct vector information. 時間ダイレクトベクトル情報算出手段は、代表時間ダイレクトベクトルを格納するメモリを備えていることを特徴とする請求項11から請求項13のうちのいずれか1項記載の動き補償予測装置。   The motion compensation prediction apparatus according to any one of claims 11 to 13, wherein the temporal direct vector information calculation means includes a memory for storing a representative temporal direct vector. 差分情報算出手段が差分情報格納手段に出力する差分情報をコンパクト符号化する符号化器を備え、時間ダイレクトベクトル情報算出手段がコンパクト符号化されている差分情報を復号する復号器を備えていることを特徴とする請求項1から請求項14のうちのいずれか1項記載の動き補償予測装置。   The difference information calculation means includes an encoder that compactly encodes the difference information output to the difference information storage means, and the temporal direct vector information calculation means includes a decoder that decodes the difference information that is compactly encoded. The motion compensation prediction apparatus according to claim 1, wherein: Bピクチャ内の時間ダイレクトブロックに対応するアンカーピクチャ内のアンカーブロックの動きベクトルを線形補正して、上記時間ダイレクトブロックの動きベクトルの情報を示す時間ダイレクトベクトル情報を算出する動き補償予測装置と、上記動き補償予測装置により算出された時間ダイレクトベクトル情報が示す動きベクトルの情報を用いて、上記Bピクチャの動き補償を実施することで、上記Bピクチャを符号化する画像符号化手段とを備えた画像符号化装置において、上記動き補償予測装置が、符号化対象の複数のアンカーブロックに対して共通に定められているベクトルである代表ベクトルを入力して、上記代表ベクトルに対する上記アンカーブロックの動きベクトルの差分情報を算出し、上記差分情報を上記動きベクトルのビット幅より小さいビット幅で表現して出力する差分情報算出手段と、上記差分情報算出手段から出力された差分情報を符号化対象のアンカーブロック毎に格納する差分情報格納手段と、上記差分情報格納手段によりアンカーブロック毎に格納されている差分情報と上記代表ベクトルから、上記時間ダイレクトブロックの動きベクトルの情報を示す時間ダイレクトベクトル情報を算出する時間ダイレクトベクトル情報算出手段とを備えていることを特徴とする画像符号化装置。   A motion compensated prediction apparatus for linearly correcting a motion vector of an anchor block in an anchor picture corresponding to a temporal direct block in a B picture and calculating temporal direct vector information indicating motion vector information of the temporal direct block; An image provided with image encoding means for encoding the B picture by performing motion compensation of the B picture using the motion vector information indicated by the temporal direct vector information calculated by the motion compensated prediction apparatus In the encoding apparatus, the motion compensated prediction apparatus inputs a representative vector which is a vector commonly defined for a plurality of anchor blocks to be encoded, and the motion vector of the anchor block with respect to the representative vector is input. The difference information is calculated, and the difference information is calculated from the motion vector. Difference information calculation means for expressing and outputting with a bit width smaller than the bit width, difference information storage means for storing the difference information output from the difference information calculation means for each anchor block to be encoded, and the difference information Temporal direct vector information calculating means for calculating temporal direct vector information indicating motion vector information of the temporal direct block from the difference information stored for each anchor block by the storage means and the representative vector. An image encoding device. アンカーピクチャ内のアンカーブロックを符号化する際には、代表ベクトルに近いベクトルを動きベクトルとして差分情報算出手段に与え、Bピクチャ内の時間ダイレクトブロックを符号化する際には、複数の時間ダイレクトブロックの時間ダイレクトベクトル情報を算出する際に共通に用いられるベクトルである代表時間ダイレクトベクトルに近いベクトルを動きベクトルとして差分情報算出手段に与える動きベクトル探索手段を備えていることを特徴とする請求項16記載の画像符号化装置。   When encoding an anchor block in an anchor picture, a vector close to a representative vector is given to the difference information calculation means as a motion vector, and when encoding a temporal direct block in a B picture, a plurality of temporal direct blocks 17. A motion vector search means for providing a vector close to a representative time direct vector, which is a vector used in common when calculating the time direct vector information, as a motion vector to the difference information calculation means. The image encoding device described. 画像符号化手段は、代表ベクトル、あるいは、複数の時間ダイレクトブロックの時間ダイレクトベクトル情報を算出する際に共通に用いられるベクトルである代表時間ダイレクトベクトルが共通している複数の符号化ブロックが参照するブロックの画像データを一度に読み出すことを特徴とする請求項16または請求項17記載の画像符号化装置。   The image encoding means refers to a representative vector or a plurality of encoded blocks having a common representative time direct vector which is a vector used in common when calculating temporal direct vector information of a plurality of temporal direct blocks. 18. The image encoding apparatus according to claim 16, wherein the image data of the block is read at a time.
JP2009044456A 2009-02-26 2009-02-26 Motion compensation prediction device and image encoding device Pending JP2010200147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009044456A JP2010200147A (en) 2009-02-26 2009-02-26 Motion compensation prediction device and image encoding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009044456A JP2010200147A (en) 2009-02-26 2009-02-26 Motion compensation prediction device and image encoding device

Publications (1)

Publication Number Publication Date
JP2010200147A true JP2010200147A (en) 2010-09-09

Family

ID=42824370

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009044456A Pending JP2010200147A (en) 2009-02-26 2009-02-26 Motion compensation prediction device and image encoding device

Country Status (1)

Country Link
JP (1) JP2010200147A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019168244A1 (en) * 2018-02-28 2019-09-06 삼성전자 주식회사 Encoding method and device thereof, and decoding method and device thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019168244A1 (en) * 2018-02-28 2019-09-06 삼성전자 주식회사 Encoding method and device thereof, and decoding method and device thereof
US11095903B2 (en) 2018-02-28 2021-08-17 Samsung Electronics Co., Ltd. Encoding method and device thereof, and decoding method and device thereof
US11611762B2 (en) 2018-02-28 2023-03-21 Samsung Electronics Co., Ltd. Encoding method and device thereof, and decoding method and device thereof
US11825100B2 (en) 2018-02-28 2023-11-21 Samsung Electronics Co., Ltd. Encoding method and device thereof, and decoding method and device thereof

Similar Documents

Publication Publication Date Title
US20210084320A1 (en) Method and apparatus for decoding a video signal
US9894378B2 (en) Moving picture encoding apparatus, moving picture decoding apparatus, moving picture encoding method, moving picture decoding method, moving picture encoding program, and moving picture decoding program
US8873633B2 (en) Method and apparatus for video encoding and decoding
JP5061179B2 (en) Illumination change compensation motion prediction encoding and decoding method and apparatus
KR100619377B1 (en) Motion estimation method and device
CN111034194A (en) Intra-picture merge prediction
KR101103723B1 (en) Video encoding method, decoding method, device thereof, program thereof, and recording medium containing the program
US20080304569A1 (en) Method and apparatus for encoding and decoding image using object boundary based partition
US20080187044A1 (en) Method and apparatus for encoding and decoding based on inter prediction
US20090092188A1 (en) Method and apparatus for inter prediction encoding/decoding an image using sub-pixel motion estimation
WO2011048903A1 (en) Video encoding device, video decoding device, and data structure
JP2013225892A (en) Direct mode coding and decoding device
KR20110008653A (en) Method and apparatus for predicting motion vector and method and apparatus of encoding/decoding a picture using the same
US8306342B2 (en) Method and apparatus to encode/decode image efficiently
JP2006279573A (en) Encoder and encoding method, and decoder and decoding method
US20110135006A1 (en) Moving image encoding device and moving image decoding device
JP4284265B2 (en) Moving picture coding apparatus, moving picture coding method, moving picture decoding apparatus, and moving picture decoding method
US8139643B2 (en) Motion estimation apparatus and method for moving picture coding
WO2012056924A1 (en) Image processing device and image processing method
JP2010200147A (en) Motion compensation prediction device and image encoding device
WO2012090425A1 (en) Moving image encoding device, moving image encoding method, and moving image encoding program, as well as moving image decoding device, moving image decoding method, and moving image decoding program
WO2011099242A1 (en) Image encoding device, image decoding device, image encoding method, and image decoding method
JP4301495B2 (en) Video compression encoding device
JP2005236459A (en) Motion picture encoder, encoding method, and program
JP2012138838A (en) Moving image decoding apparatus, moving image decoding method and moving image decoding program