JP2016178592A - Video encoder, video encoding device, video encoding method and video encoding program - Google Patents

Video encoder, video encoding device, video encoding method and video encoding program Download PDF

Info

Publication number
JP2016178592A
JP2016178592A JP2015059181A JP2015059181A JP2016178592A JP 2016178592 A JP2016178592 A JP 2016178592A JP 2015059181 A JP2015059181 A JP 2015059181A JP 2015059181 A JP2015059181 A JP 2015059181A JP 2016178592 A JP2016178592 A JP 2016178592A
Authority
JP
Japan
Prior art keywords
motion vector
compensation
vector
prediction
circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2015059181A
Other languages
Japanese (ja)
Other versions
JP6596864B2 (en
Inventor
磊 孫
Lei Son
磊 孫
慶一 蝶野
Keiichi Chono
慶一 蝶野
健太 徳満
Kenta Tokumitsu
健太 徳満
紀章 鈴木
Kisho Suzuki
紀章 鈴木
誠也 柴田
Seiya Shibata
誠也 柴田
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2015059181A priority Critical patent/JP6596864B2/en
Publication of JP2016178592A publication Critical patent/JP2016178592A/en
Application granted granted Critical
Publication of JP6596864B2 publication Critical patent/JP6596864B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a video encoder, and the like, capable of enhancing the prediction accuracy, even when there is one reference picture.SOLUTION: A video encoder 1A includes detection means 11 for detecting whether the number of succession motion vector, received by refine means 30 as a reference of search of a prediction motion vector representing the prediction of motion of a processing object block in a picture included in a coding object video, is one or two, prosthetic vector selection means 12 for selecting a prosthetic vector according to a predetermined selection method, when the number of succession motion vector is one, and transmission means 13 for transmitting a selected prosthetic motion vector to the refine means for detecting the prediction motion vector of the processing object block, based on the prosthetic motion vector and the received prosthetic vector.SELECTED DRAWING: Figure 10

Description

本発明は、映像を符号化する技術に関する。   The present invention relates to a technique for encoding video.

特許文献1及び2には、ビデオをコード化する技術の一例が記載されている。特許文献1に記載されているビデオコード化装置は、2つの参照ピクチャに関する双方向予測、及び、1つの参照ピクチャに関する単方向予測のうちの1つを使用して、ビデオブロックをコード化する。   Patent Documents 1 and 2 describe examples of techniques for encoding video. The video encoding apparatus described in Patent Document 1 encodes a video block using one of bidirectional prediction for two reference pictures and unidirectional prediction for one reference picture.

特表2014−506084号公報Special table 2014-506084 gazette

特許文献1の技術では、参照ピクチャが1つである場合、単方向予測のみが使用される。そのため、必ずしも精度よく予測を行えるとは限らない。   In the technique of Patent Literature 1, when there is one reference picture, only unidirectional prediction is used. Therefore, it is not always possible to predict with high accuracy.

本発明の目的の1つは、参照ピクチャが1つである場合であっても、予測の精度を向上させることができる映像符号化装置などを提供することにある。   One of the objects of the present invention is to provide a video encoding device and the like that can improve the accuracy of prediction even when there is only one reference picture.

本発明の一態様に係る映像符号化装置は、符号化対象映像に含まれるピクチャにおける処理対象ブロックの動きの予測を表す予測動きベクトルの探索の基準としてリファイン手段が受信する継承動きベクトルの数が、1つであるか又は2つであるかを検出する検出手段と、前記継承動きベクトルの数が1つである場合、所定の選択方法に従って補填動きベクトル選択する補填ベクトル選択手段と、前記継承動きベクトルと受信した前記補填ベクトルとに基づいて、処理対象ブロックの予測動きベクトルを検出する前記リファイン手段に、選択した前記補填動きベクトルを送信する送信手段と、を備える。   In the video encoding device according to an aspect of the present invention, the number of inherited motion vectors received by the refinement unit as a reference for searching for a predicted motion vector representing prediction of motion of a processing target block in a picture included in an encoding target video is Detecting means for detecting whether the number is one or two; if the number of the inherited motion vectors is one, the compensating vector selecting means for selecting a compensating motion vector according to a predetermined selecting method; and the inheritance Transmitting means for transmitting the selected compensation motion vector to the refinement means for detecting the predicted motion vector of the processing target block based on the motion vector and the received compensation vector.

本発明の一態様に係る映像符号化方法は、符号化対象映像に含まれるピクチャにおける処理対象ブロックの動きの予測を表す予測動きベクトルの探索の基準としてリファイン手段が受信する継承動きベクトルの数が、1つであるか又は2つであるかを検出し、前記継承動きベクトルの数が1つである場合、所定の選択方法に従って補填動きベクトル選択し、前記継承動きベクトルと受信した前記補填ベクトルとに基づいて、処理対象ブロックの予測動きベクトルを検出する前記リファイン手段に、選択した前記補填動きベクトルを送信する。   In the video encoding method according to one aspect of the present invention, the number of inherited motion vectors received by the refiner as a reference for searching for a predicted motion vector representing prediction of motion of a block to be processed in a picture included in a video to be encoded is calculated. If the number of the inherited motion vectors is one, the compensation motion vector is selected according to a predetermined selection method, and the inherited motion vector and the received compensation vector are detected. Based on the above, the selected compensation motion vector is transmitted to the refiner that detects the predicted motion vector of the processing target block.

本発明の一態様に係る映像符号化プログラムは、コンピュータを、符号化対象映像に含まれるピクチャにおける処理対象ブロックの動きの予測を表す予測動きベクトルの探索の基準としてリファイン手段が受信する継承動きベクトルの数が、1つであるか又は2つであるかを検出する検出手段と、前記継承動きベクトルの数が1つである場合、所定の選択方法に従って補填動きベクトル選択する補填ベクトル選択手段と、前記継承動きベクトルと受信した前記補填ベクトルとに基づいて、処理対象ブロックの予測動きベクトルを検出する前記リファイン手段に、選択した前記補填動きベクトルを送信する送信手段と、して動作させる。   A video encoding program according to an aspect of the present invention is a computer-readable recording medium including an inherited motion vector received by a refinement unit as a reference for a search for a predicted motion vector representing a motion prediction of a processing target block in a picture included in an encoding target video Detecting means for detecting whether the number of motion vectors is one or two; and, when the number of inherited motion vectors is one, compensation vector selection means for selecting a compensation motion vector according to a predetermined selection method; Based on the inherited motion vector and the received compensation vector, the refinement unit that detects the predicted motion vector of the processing target block is operated as a transmission unit that transmits the selected compensation motion vector.

本発明には、参照ピクチャが1つである場合であっても、予測の精度を向上させることができるという効果がある。   The present invention has an effect that the accuracy of prediction can be improved even when there is only one reference picture.

図1は、本発明の第1の実施形態の映像符号化装置1の全体像を表すブロック図である。FIG. 1 is a block diagram showing an overall image of a video encoding device 1 according to the first embodiment of the present invention. 図2は、本発明の第1の実施形態の映像符号化装置1全体の実装例を表すブロック図である。FIG. 2 is a block diagram showing an implementation example of the entire video encoding device 1 according to the first embodiment of the present invention. 図3は、本発明の第1の実施形態の映像符号化装置1の動き補償部100の構成の例を表すブロック図である。FIG. 3 is a block diagram illustrating an example of a configuration of the motion compensation unit 100 of the video encoding device 1 according to the first embodiment of the present invention. 図4は、本発明の第1の実施形態の映像符号化装置1の動き補償部100の実装例である、動き補償回路200の構成の例を表すブロック図である。FIG. 4 is a block diagram illustrating an example of a configuration of a motion compensation circuit 200 that is an implementation example of the motion compensation unit 100 of the video encoding device 1 according to the first embodiment of the present invention. 図5は、AMVP生成回路260によって動きベクトルが選択されるブロックの位置を模式的に表す図である。FIG. 5 is a diagram schematically showing the position of a block from which a motion vector is selected by the AMVP generation circuit 260. 図6は、本発明の第1の実施形態の動きベクトル補填部10の構成の例を表すブロック図である。FIG. 6 is a block diagram illustrating an example of a configuration of the motion vector compensation unit 10 according to the first embodiment of this invention. 図7は、本発明の第1の実施形態の動きベクトル補填部10の実装例である動きベクトル補填回路210の構成の例を表すブロック図である。FIG. 7 is a block diagram illustrating an example of a configuration of a motion vector compensation circuit 210 that is an implementation example of the motion vector compensation unit 10 according to the first embodiment of this invention. 図8は、本発明の第1の実施形態の映像符号化装置1の、符号化対象画像の予測画像を生成する動作の例を表すフローチャートである。FIG. 8 is a flowchart illustrating an example of an operation of generating a predicted image of the encoding target image in the video encoding device 1 according to the first embodiment of the present invention. 図9は、本発明の第1の実施形態の映像符号化装置1の、動きベクトル補填処理の動作の例を表すフローチャートである。FIG. 9 is a flowchart showing an example of motion vector compensation processing in the video encoding device 1 according to the first embodiment of the present invention. 図10は、本発明の第2の実施形態の映像符号化装置1Aの構成の例を表すブロック図である。FIG. 10 is a block diagram illustrating an example of a configuration of a video encoding device 1A according to the second embodiment of the present invention. 図11は、本発明の各実施形態に係る映像符号化装置を実現することができる、コンピュータ1000のハードウェア構成の一例を表す図である。FIG. 11 is a diagram illustrating an example of a hardware configuration of a computer 1000 that can realize the video encoding device according to each embodiment of the present invention. 図12は、本発明の比較例の映像符号化装置1Cの全体像の例を表すブロック図である。FIG. 12 is a block diagram illustrating an example of an overall image of a video encoding device 1C of a comparative example of the present invention. 図13は、本発明の比較例の動き補償回路300の構成の例を表すブロック図である。FIG. 13 is a block diagram showing an example of the configuration of a motion compensation circuit 300 according to a comparative example of the present invention.

次に、本発明の実施の形態について、図面を参照して詳細に説明する。   Next, embodiments of the present invention will be described in detail with reference to the drawings.

<比較例>
まず、本発明の実施の形態と比較する対象としての比較例について、図面を参照して詳細に説明する。
<Comparative example>
First, a comparative example as an object to be compared with the embodiment of the present invention will be described in detail with reference to the drawings.

図12は、本発明の比較例の映像符号化装置1Cの全体像の例を表すブロック図である。映像符号化装置1Cは、受信した映像を符号化する装置である。具体的には、映像符号化装置1Cは、映像を受信し、受信した映像を、例えば、いずれかの符号化の方式に従って符号化する。そして、映像符号化装置1Cは、映像が符号化されたビットストリームを出力する装置である。符号化の方式は、例えば、H.265/HEVC(High Efficiency Video Coding)である。符号化の方式は、例えば、H.264/MPEG−4 AVC(Moving Picture Experts Group Advanced Video Coding))であってもよい。以下では、符号化の方式がH.265/HEVCである場合について説明する。   FIG. 12 is a block diagram illustrating an example of an overall image of a video encoding device 1C of a comparative example of the present invention. The video encoding device 1C is a device that encodes received video. Specifically, the video encoding device 1C receives video, and encodes the received video in accordance with, for example, any encoding method. The video encoding device 1C is a device that outputs a bitstream in which video is encoded. The encoding method is, for example, H.264. H.265 / HEVC (High Efficiency Video Coding). The encoding method is, for example, H.264. H.264 / MPEG-4 AVC (Moving Picture Experts Group Advanced Video Coding). In the following, the encoding method is H.264. The case of H.265 / HEVC will be described.

図12を参照すると、映像符号化装置1Cは、ブロック分割回路201と、事前解析回路202と、動き補償回路300と、イントラ予測回路203と、切替回路204と、整数変換回路205と、量子化回路206と、逆量子化回路207と、逆変換回路208と、符号化回路209とを含む。映像符号化装置1Cは、さらに、フィルタ回路216と、フレームバッファ217と、減算回路218と、加算回路219とを含む。   Referring to FIG. 12, the video encoding device 1C includes a block division circuit 201, a pre-analysis circuit 202, a motion compensation circuit 300, an intra prediction circuit 203, a switching circuit 204, an integer conversion circuit 205, a quantization, and the like. A circuit 206, an inverse quantization circuit 207, an inverse transformation circuit 208, and an encoding circuit 209 are included. The video encoding device 1C further includes a filter circuit 216, a frame buffer 217, a subtraction circuit 218, and an addition circuit 219.

ブロック分割回路201は、デジタル化された映像のピクチャをブロックに分割する。イントラ予測回路203は、イントラ予測を行う。切替回路204は、後述される動き補償回路300からの出力と、イントラ予測回路203からの出力とを切り替える。減算回路218は、入力された映像と、切替回路204による切替によって選択された、動き補償回路300からの出力又はイントラ予測回路203からの出力との差分を計算する。整数変換回路205は、整数変換を行う。量子化回路206は、量子化を行う。符号化回路209は、符号化を行い、符号化によって得られるビットストリームを出力する。逆量子化回路207は、逆量子化を行う。逆整数変換回路208は、逆整数変換を行う。加算回路219は、逆整数変換回路208の出力と、切替回路204による切替によって選択された、動き補償回路300からの出力又はイントラ予測回路203からの出力とを加算する。フィルタ回路216は、デブロッキングフィルタなどによるフィルタリングを行う。フレームバッファ217は、符号化済みのピクチャを記憶する。以上の各要素は、上述の規格に応じた動作を行う。従って、以上の各要素についての詳細な説明を省略する。   The block division circuit 201 divides a digitized video picture into blocks. The intra prediction circuit 203 performs intra prediction. The switching circuit 204 switches between an output from a motion compensation circuit 300 described later and an output from the intra prediction circuit 203. The subtraction circuit 218 calculates the difference between the input video and the output from the motion compensation circuit 300 or the output from the intra prediction circuit 203 selected by the switching by the switching circuit 204. The integer conversion circuit 205 performs integer conversion. The quantization circuit 206 performs quantization. The encoding circuit 209 performs encoding and outputs a bit stream obtained by encoding. The inverse quantization circuit 207 performs inverse quantization. The inverse integer conversion circuit 208 performs inverse integer conversion. The adder circuit 219 adds the output of the inverse integer conversion circuit 208 and the output from the motion compensation circuit 300 or the output from the intra prediction circuit 203 selected by the switching by the switching circuit 204. The filter circuit 216 performs filtering using a deblocking filter or the like. The frame buffer 217 stores the encoded picture. Each of the above elements performs an operation according to the above-mentioned standard. Therefore, detailed description of the above elements is omitted.

事前解析回路202は、例えば、フレームバッファ217に格納されている符号化済みのピクチャを使用して、入力されたピクチャ(すなわち符号化対象ピクチャ)における動きベクトルを検出する。例えば、符号化対象ピクチャがPピクチャである場合、事前解析回路202は、1つの動きベクトルを、動き補償回路300に送信する。符号化対象ピクチャがBピクチャである場合、事前解析回路202は、1つ又は2つの動きベクトルを、動き補償回路300に送信する。符号化対象ピクチャがBピクチャである場合、事前解析回路202は、例えば、2つの動きベクトルを導出する。事前解析回路202は、いずれかの動きベクトルが、所定の判定基準に基づいて最適であると判定した場合、最適であると判定された動きベクトルのみを、動き補償回路300に送信してもよい。その場合、事前解析回路202は、1つの動きベクトルを、動き補償回路300に送信する。事前解析回路202によって最適であると判定された動きベクトルが存在しない場合、事前解析回路202は、2つの動きベクトルを動き補償回路300に送信する。   For example, the pre-analysis circuit 202 detects a motion vector in an input picture (that is, a picture to be encoded) using an encoded picture stored in the frame buffer 217, for example. For example, when the encoding target picture is a P picture, the pre-analysis circuit 202 transmits one motion vector to the motion compensation circuit 300. When the encoding target picture is a B picture, the pre-analysis circuit 202 transmits one or two motion vectors to the motion compensation circuit 300. When the encoding target picture is a B picture, the pre-analysis circuit 202 derives, for example, two motion vectors. When the pre-analysis circuit 202 determines that any of the motion vectors is optimal based on a predetermined determination criterion, the pre-analysis circuit 202 may transmit only the motion vector determined to be optimal to the motion compensation circuit 300. . In that case, the pre-analysis circuit 202 transmits one motion vector to the motion compensation circuit 300. If there is no motion vector determined to be optimal by the pre-analysis circuit 202, the pre-analysis circuit 202 transmits two motion vectors to the motion compensation circuit 300.

2つの動きベクトルに関する参照画像は、符号化対象画像より後のピクチャと前のピクチャの組み合わせであっても、符号化対象画像より前の2枚のピクチャの組み合わせであっても、符号化対象画像より後の2枚のピクチャの組み合わせであってもよい。以下の説明において、事前解析回路202から動き補償回路300に送信される動きベクトルを、継承動きベクトルと表記する。   The reference image related to the two motion vectors may be a combination of a picture after the encoding target image and a preceding picture, or a combination of two pictures before the encoding target image. It may be a combination of two later pictures. In the following description, a motion vector transmitted from the pre-analysis circuit 202 to the motion compensation circuit 300 is referred to as an inherited motion vector.

事前解析回路202と動き補償回路300との間には、2つの継承動きベクトルを別々に送信できる、2つの信号線が設けられていてもよい。そして、2つの継承動きベクトルは、異なる信号線によって、動き補償回路300に送信されてもよい。事前解析回路202は、1つの継承動きベクトルを動き補償回路300に送信する場合、いずれか一方の信号線によって継承動きベクトルを送信すればよい。そして、事前解析回路202は、継承動きベクトルの送信に使用する信号線の系統を表す信号を、動き補償回路300に送信してもよい。例えば、2つの信号線を、第1の信号線及び第2の信号線と表記する。以下の説明では、第1の信号線を介して送信される継承動きベクトルを、「mMV」と表記する。同様に、第2の信号線を介して送信される継承動きベクトルを「mMV」と表記する。 Two signal lines capable of separately transmitting two inherited motion vectors may be provided between the pre-analysis circuit 202 and the motion compensation circuit 300. Then, the two inherited motion vectors may be transmitted to the motion compensation circuit 300 through different signal lines. When the pre-analysis circuit 202 transmits one inherited motion vector to the motion compensation circuit 300, the prior analysis circuit 202 may transmit the inherited motion vector through one of the signal lines. Then, the pre-analysis circuit 202 may transmit a signal representing a signal line system used for transmission of the inherited motion vector to the motion compensation circuit 300. For example, the two signal lines are referred to as a first signal line and a second signal line. In the following description, the inherited motion vector transmitted through the first signal line is denoted as “mMV 0 ”. Similarly, the inherited motion vector transmitted via the second signal line is denoted as “mMV 1 ”.

事前解析回路202は、例えば、mMVを送信し、mMVを送信しない場合、mMVを送信し、mMVを送信しないことを表す信号を、動き補償回路300に送信する。事前解析回路202は、例えば、mMVを送信せず、mMVを送信する場合、mMVを送信せず、mMVを送信することを表す信号を、動き補償回路300に送信する。事前解析回路202は、例えば、mMVとmMVとを送信する場合、mMVとmMVとを送信することを表す信号を、動き補償回路300に送信する。以下の説明では、送信される継承動きベクトルを表す信号を、「mDir」(または信号「mDir」)と表記する。さらに、信号mDirを、「予測方向」とも表記する。本発明の各実施形態の説明では、信号mDirの、mMVを送信し、mMVを送信しないことを表す値を、「L0」とも表記する。信号mDirの、mMVを送信せず、mMVを送信することを表す値を、に「L1」とも表記する。さらに、信号mDirの、mMVとmMVとを送信することを表す値を、「Bi」とも表記する。 Pre-analysis circuit 202, for example, send the MMV 0, to not send the MMV 1 transmits the MMV 0, a signal indicating not to send the MMV 1, and transmits to the motion compensation circuit 300. For example, when the pre-analysis circuit 202 does not transmit mMV 0 but transmits mMV 1 , the pre-analysis circuit 202 transmits a signal indicating that the mMV 1 is transmitted without transmitting the mMV 0 to the motion compensation circuit 300. For example, when transmitting the mMV 0 and the mMV 1 , the pre-analysis circuit 202 transmits a signal indicating that the mMV 0 and the mMV 1 are transmitted to the motion compensation circuit 300. In the following description, the signal representing the inherited motion vector to be transmitted is denoted as “mDir” (or signal “mDir”). Further, the signal mDir is also expressed as “prediction direction”. In the description of each embodiment of the present invention, the value indicating that the signal mDir transmits mMV 0 and does not transmit mMV 1 is also expressed as “L0”. The value indicating that the signal mDir does not transmit mMV 0 but transmits mMV 1 is also expressed as “L1”. Further, a value representing transmission of mMV 0 and mMV 1 of the signal mDir is also expressed as “Bi”.

一般に、L0及びL1は、それぞれ、Bピクチャにおける2つの参照画像リストを指す。上述の継承動きベクトルmMVは、例えば、参照画像リストL0の参照画像における動きベクトルであってもよい。継承動きベクトルmMVは、例えば、参照画像リストL1の参照画像における動きベクトルであってもよい。 In general, L0 and L1 respectively indicate two reference image lists in a B picture. The above-described inherited motion vector MMV 0 may be a motion vector in a reference image in the reference image list L0, for example. The inherited motion vector MMV 1 may be, for example, a motion vector in a reference image in the reference image list L1.

図13は、本比較例の動き補償回路300の構成の例を表すブロック図である。   FIG. 13 is a block diagram illustrating an example of the configuration of the motion compensation circuit 300 of the comparative example.

図13を参照すると、本変形例の動き補償回路300は、スイッチ回路220と、リファイン回路230と、双予測生成回路240と、予測選択回路250とを含む。スイッチ回路320は、第1スイッチ回路321と第2スイッチ回路322とを含む。リファイン回路230は、第1リファイン回路231と第2リファイン回路232とを含む。リファイン回路230は、図13においては明示されていないが、図12に示すように、フレームバッファ217に格納されている、符号化済みのピクチャを読み出すことができる。   Referring to FIG. 13, the motion compensation circuit 300 according to the present modification includes a switch circuit 220, a refinement circuit 230, a bi-prediction generation circuit 240, and a prediction selection circuit 250. The switch circuit 320 includes a first switch circuit 321 and a second switch circuit 322. The refinement circuit 230 includes a first refinement circuit 231 and a second refinement circuit 232. Although not shown in FIG. 13, the refinement circuit 230 can read the encoded picture stored in the frame buffer 217, as shown in FIG.

第1スイッチ回路321の入力には、第1の信号線が接続される。そして、第1スイッチ回路321の入力には、第1の信号線を介してmMVが入力される。第1スイッチ回路321の出力は、第1リファイン回路231に接続されている。第2スイッチ回路322の入力には、第2の信号線が接続される。そして、第2スイッチ回路322の入力には、第2の信号線を介してmMVが入力される。第2スイッチ回路322の出力は、第2リファイン回路232に接続されている。第1スイッチ回路321及び第2スイッチ回路322には、信号mDirが入力される。 A first signal line is connected to the input of the first switch circuit 321. Then, mMV 0 is input to the input of the first switch circuit 321 through the first signal line. The output of the first switch circuit 321 is connected to the first refinement circuit 231. A second signal line is connected to the input of the second switch circuit 322. Then, mMV 1 is input to the input of the second switch circuit 322 via the second signal line. The output of the second switch circuit 322 is connected to the second refinement circuit 232. A signal mDir is input to the first switch circuit 321 and the second switch circuit 322.

第1スイッチ回路321及び第2スイッチ回路322は、信号mDirの値に応じて、入力と出力との間が接続されている状態であるオン状態と、入力と接続との間が切断されている状態であるオフ状態との間で切り替わるよう設計されている。具体的には、mDirの値がL0である場合、第1スイッチ回路321は、オン状態になり、第2スイッチ回路322、オフ状態になる。mDirの値がL1である場合、第1スイッチ回路321は、オフ状態になり、第2スイッチ回路322、オン状態になる。mDirの値がBiである場合、第1スイッチ回路321及び第2スイッチ回路322は、共にオン状態になる。   In the first switch circuit 321 and the second switch circuit 322, the ON state, which is a state where the input and the output are connected, and the input and the connection are disconnected according to the value of the signal mDir. It is designed to switch between the off state, which is a state. Specifically, when the value of mDir is L0, the first switch circuit 321 is turned on and the second switch circuit 322 is turned off. When the value of mDir is L1, the first switch circuit 321 is turned off and the second switch circuit 322 is turned on. When the value of mDir is Bi, both the first switch circuit 321 and the second switch circuit 322 are turned on.

第1リファイン回路231は、入力された動きベクトルmMVによって参照される参照画像の、動きベクトルmMVに基づく所定の範囲において、符号化対象ブロックの符号化コストが最小になる領域(すなわち予測画像)を示す点を検出する。符号化コストは、既存の符号化コストから選択された符号化コストであればよい。符号化コストは、例えば、符号化対象ブロックと予測画像との誤差の絶対値の和(SAD;Sum of Absolute Difference)と、動きベクトルの重み付きビット量との和であってもよい。動きベクトルmMVに基づく所定の範囲は、例えば、動きベクトルmMVが示す位置を中心とする所定半径の円の内部であってもよい。動きベクトルmMVに基づく所定の範囲は、例えば、動きベクトルmMVが示す位置を中心とする所定形状の図形の内部であってもよい。動きベクトルmMVに基づく所定の範囲は、例えば、動きベクトルmMVが参照する参照画像全体であってもよい。第1リファイン回路231は、符号化対象ブロックが含まれるピクチャにおける符号化対象ブロックの座標から、その符号化対象コストが最小になる領域を示す点の座標へのベクトルを、予測動きベクトルrMVとして検出する。第1リファイン回路231は、検出した符号化対象コストが最小になる領域の画像を、符号化対象領域の予測を表す予測信号「pred(rMV)」として、予測選択回路250に出力する。なお、第1リファイン回路231は、信号mDirがL1である場合、すなわち、継承動きベクトルmMVが入力されない場合、動作しない。 The first refinement circuit 231 is a region in which the coding cost of the block to be coded is minimized (that is, the predicted image) in a predetermined range based on the motion vector MMV 0 of the reference image referenced by the input motion vector MMV 0 . ) Is detected. The encoding cost may be an encoding cost selected from existing encoding costs. The encoding cost may be, for example, the sum of the sum of absolute values of errors (SAD: Sum of Absolute Difference) between the encoding target block and the predicted image and the weighted bit amount of the motion vector. The predetermined range based on the motion vector MMV 0 may be, for example, inside a circle with a predetermined radius centered on the position indicated by the motion vector MMV 0 . The predetermined range based on the motion vector MMV 0 may be, for example, inside a figure having a predetermined shape centered on the position indicated by the motion vector MMV 0 . The predetermined range based on the motion vector MMV 0 may be, for example, the entire reference image referred to by the motion vector MMV 0 . The first refinement circuit 231 sets a vector from the coordinates of the encoding target block in the picture including the encoding target block to the coordinates of the point indicating the region where the encoding target cost is minimum as the predicted motion vector rMV 0. To detect. The first refinement circuit 231 outputs the detected image of the region where the encoding target cost is minimized to the prediction selection circuit 250 as a prediction signal “pred (rMV 0 )” indicating the prediction of the encoding target region. The first refinement circuit 231 does not operate when the signal mDir is L1, that is, when the inherited motion vector MMV 0 is not input.

第2リファイン回路232は、入力された動きベクトルmMVによって参照される参照画像の、動きベクトルmMVに基づく所定の範囲において、符号化対象ブロックの符号化コストが最小になる領域(すなわち予測画像)を示す点を検出する。動きベクトルmMVに基づく所定の範囲は、例えば、動きベクトルmMVが示す位置を中心とする所定半径の円の内部であってもよい。動きベクトルmMVに基づく所定の範囲は、例えば、動きベクトルmMVが示す位置を中心とする所定形状の図形の内部であってもよい。動きベクトルmMVに基づく所定の範囲は、例えば、動きベクトルmMVが参照する参照画像全体であってもよい。第2リファイン回路232は、符号化対象ブロックが含まれるピクチャにおける符号化対象ブロックの座標から、その符号化対象コストが最小になる領域を示す点の座標へのベクトルを、予測動きベクトルrMVとして検出する。第2リファイン回路232は、検出した符号化対象コストが最小になる領域の画像を、符号化対象領域の予測を表す予測信号「pred(rMV)」として、予測選択回路250に出力する。なお、第2リファイン回路232は、信号mDirがL2である場合、すなわち、継承動きベクトルmMVが入力されない場合、動作しない。 The second refinement circuit 232 is a region in which the coding cost of the coding target block is minimized (that is, the predicted image) in a predetermined range based on the motion vector MMV 1 of the reference image referenced by the input motion vector MMV 1 . ) Is detected. The predetermined range based on the motion vector MMV 1 may be, for example, inside a circle with a predetermined radius centered on the position indicated by the motion vector MMV 1 . The predetermined range based on the motion vector MMV 1 may be, for example, inside a figure having a predetermined shape centered on the position indicated by the motion vector MMV 1 . The predetermined range based on the motion vector MMV 1 may be, for example, the entire reference image referred to by the motion vector MMV 1 . The second refinement circuit 232 sets a vector from the coordinates of the encoding target block in the picture including the encoding target block to the coordinates of the point indicating the region where the encoding target cost is minimized as a predicted motion vector rMV 1. To detect. The second refinement circuit 232 outputs the detected image of the region where the encoding target cost is minimized to the prediction selection circuit 250 as a prediction signal “pred (rMV 1 )” indicating the prediction of the encoding target region. The second refinement circuit 232 does not operate when the signal mDir is L2, that is, when the inherited motion vector MMV 1 is not input.

双予測生成回路240は、信号mDirの値がBiである場合、すなわち、継承動きベクトルmMV及びmMVが入力される場合、継承動きベクトルmMV及びmMVに基づく双予測を生成する。双予測生成回路240は、生成した双予測を表す双予測信号bipred(rMV,rMV)を予測選択回路250に出力する。次の説明において、入力された継承動きベクトルmMVによって参照される参照画像の、継承動きベクトルmMVに基づく所定の範囲から選択された点が示す領域、第1参照領域と表記する。入力された継承動きベクトルmMVによって参照される参照画像の、継承動きベクトルmMVに基づく所定の範囲から選択された点が示す領域、第2参照領域と表記する。双予測生成回路240は、符号化対象ブロックの符号化コストが最小である、第1参照領域及び第2参照領域の平均画像のうち、上述の符号化コストが最小である平均画像を、上述の双予測として検出する。そして、双予測生成回路240は、符号化コストが最小である平均画像が算出される、第1参照領域及び第2参照領域を特定する。さらに、双予測生成回路240は、符号化対象ブロックを示す座標から、特定された第1参照領域を示す座標への動きベクトルを、予測動きベクトルrMVとする。同様に、双予測生成回路240は、符号化対象ブロックを示す座標から、特定された第2参照領域を示す座標への動きベクトルを、予測動きベクトルrMVとする。双予測生成回路240は、継承動きベクトルmMV又は継承動きベクトルmMVが入力されない場合、動作しない。 Bi-predictive generating circuit 240, when the value of the signal mDir is Bi, that is, when the inheritance motion vector MMV 0 and MMV 1 are inputted, generates the bi-prediction based on the inherited motion vector MMV 0 and MMV 1. The bi-prediction generation circuit 240 outputs a bi-prediction signal bipred (rMV 0 , rMV 1 ) representing the generated bi-prediction to the prediction selection circuit 250. In the following description, a region indicated by a point selected from a predetermined range based on the inherited motion vector MMV 0 of the reference image referred to by the input inherited motion vector MMV 0 is referred to as a first reference region. An area indicated by a point selected from a predetermined range based on the inherited motion vector MMV 1 of the reference image referenced by the input inherited motion vector MMV 1 is referred to as a second reference area. The bi-prediction generation circuit 240 calculates the average image having the minimum encoding cost as described above from the average images of the first reference area and the second reference area where the encoding cost of the encoding target block is minimum. Detect as bi-prediction. Then, the bi-prediction generation circuit 240 identifies the first reference region and the second reference region in which the average image with the lowest coding cost is calculated. Further, the bi-prediction generation circuit 240 sets the motion vector from the coordinate indicating the encoding target block to the coordinate indicating the identified first reference area as the predicted motion vector rMV 0 . Similarly, the bi-prediction generation circuit 240 sets the motion vector from the coordinate indicating the encoding target block to the coordinate indicating the identified second reference region as the predicted motion vector rMV 1 . The bi-prediction generation circuit 240 does not operate when the inherited motion vector mMV 0 or the inherited motion vector mMV 1 is not input.

なお、継承動きベクトルmMV0及びmMV1のいずれか一方の参照画像が、符号化対象画像より時間的に前のピクチャであり、他方の参照画像が符号化対象画像より時間的に前のピクチャであってもよい。その場合、上述の、符号化対象ブロックの符号化コストが最小である、第1参照領域及び第2参照領域の平均画像のうち、符号化コストが最小である平均画像は、双方向予測と呼ばれる。言い換えると、双予測生成回路240は、双予測ではなく双方向予測を導出し、導出した双方向予測を出力してもよい。   Note that one of the reference images of the inherited motion vectors MMV0 and mMV1 is a picture temporally preceding the encoding target image, and the other reference image is a picture temporally preceding the encoding target image. Also good. In that case, the average image with the minimum encoding cost among the average images of the first reference region and the second reference region, where the encoding cost of the encoding target block is the minimum, is called bi-directional prediction. . In other words, the bi-prediction generation circuit 240 may derive bi-directional prediction instead of bi-prediction and output the derived bi-directional prediction.

予測選択回路250は、予測信号pred(rMV)が表す予測画像、予測信号pred(rMV)が表す予測画像、及び双予測信号bipred(rMV,rMV)が表す予測画像のうち、符号化対象コストが最も小さくなる予測画像を特定する。そして、特定した予測画像を表す予測信号predと、その予測信号predが表す予測画像を示す予測動きベクトルとを出力する。予測選択回路250は、さらに、信号mDirを信号rDirとして出力する。以下の説明では、信号rDirも、「予測方向」と表記することがある。選択された予測画像を表す信号が予測信号pred(rMV)である場合、予測選択回路250は、予測動きベクトルとして、rMVを出力する。選択された予測画像を表す信号が予測信号pred(rMV)である場合、予測選択回路250は、予測動きベクトルとして、rMVを出力する。択された予測画像を表す信号が双予測信号bipred(rMV,rMV)である場合、予測選択回路250は、予測動きベクトルとして、rMVとrMVとを出力する。 The prediction selection circuit 250 has a code among the prediction image represented by the prediction signal pred (rMV 0 ), the prediction image represented by the prediction signal pred (rMV 1 ), and the prediction image represented by the bi-prediction signal bipred (rMV 0 , rMV 1 ). The predicted image with the smallest cost to be converted is identified. And the prediction signal pred showing the identified prediction image and the prediction motion vector which shows the prediction image which the prediction signal pred represents are output. The prediction selection circuit 250 further outputs the signal mDir as the signal rDir. In the following description, the signal rDir may also be expressed as “prediction direction”. When the signal representing the selected prediction image is the prediction signal pred (rMV 0 ), the prediction selection circuit 250 outputs rMV 0 as the prediction motion vector. When the signal representing the selected prediction image is the prediction signal pred (rMV 1 ), the prediction selection circuit 250 outputs rMV 1 as a prediction motion vector. When the signal representing the selected prediction image is the bi-prediction signal bipred (rMV 0 , rMV 1 ), the prediction selection circuit 250 outputs rMV 0 and rMV 1 as prediction motion vectors.

以上で説明した比較例では、符号化対象ブロックがPピクチャに含まれる場合、第2リファイン回路232及び双予測生成回路240は動作せず、休眠状態となる。さらに、符号化対象ブロックがBピクチャに含まれる場合であっても、2つではなく1つの継承動きベクトルが入力されれば、第2リファイン回路232及び双予測生成回路240は動作せず、休眠状態となる。   In the comparative example described above, when the encoding target block is included in the P picture, the second refinement circuit 232 and the bi-prediction generation circuit 240 do not operate and enter a sleep state. Further, even when the encoding target block is included in the B picture, if one inherited motion vector is input instead of two, the second refinement circuit 232 and the bi-prediction generation circuit 240 do not operate and sleep. It becomes a state.

<第1の実施形態>
次に、本発明の第1の実施形態について、図面を参照して詳細に説明する。
<First Embodiment>
Next, a first embodiment of the present invention will be described in detail with reference to the drawings.

図1は、本実施形態の映像符号化装置1の全体像を表すブロック図である。図1を参照すると、本実施形態の映像符号化装置1は、ブロック分割部101と、事前解析部102と、イントラ予測部103と、切替部104と、整数変換部105と、量子化部106と、逆量子化部107と、逆整数変換部108と、符号化部109とを含む。本実施形態の符号化装置1は、さらに、フィルタ部116と、フレーム記憶部117と、減算部118と、加算部119とを含む。本実施形態の映像符号化装置1は、さらに、動き補償部100を含む。   FIG. 1 is a block diagram showing an overall image of the video encoding device 1 of the present embodiment. Referring to FIG. 1, the video encoding apparatus 1 according to the present embodiment includes a block dividing unit 101, a prior analysis unit 102, an intra prediction unit 103, a switching unit 104, an integer conversion unit 105, and a quantization unit 106. And an inverse quantization unit 107, an inverse integer transform unit 108, and an encoding unit 109. The encoding apparatus 1 according to the present embodiment further includes a filter unit 116, a frame storage unit 117, a subtraction unit 118, and an addition unit 119. The video encoding device 1 according to the present embodiment further includes a motion compensation unit 100.

図2は、本実施形態の映像符号化装置1全体の実装例を表すブロック図である。図2と図12とを比較すると、本実施形態の実装例の映像符号化装置1は、動き補償回路300の代わりに動き補償回路200を含む。本実施形態の実装例の映像符号化装置1の他の構成要素は、前述の比較例の映像符号化装置1Cの、同じ符号が付与されている構成要素と同じである。従って、以下では、図2に示す映像符号化装置1の構成要素のうち、動き補償回路200以外の構成要素の説明を省略する。   FIG. 2 is a block diagram showing an implementation example of the entire video encoding device 1 of the present embodiment. Comparing FIG. 2 with FIG. 12, the video encoding device 1 of the implementation example of the present embodiment includes a motion compensation circuit 200 instead of the motion compensation circuit 300. Other components of the video encoding device 1 of the implementation example of the present embodiment are the same as those of the video encoding device 1C of the comparative example to which the same reference numerals are given. Therefore, below, description of components other than the motion compensation circuit 200 among the components of the video encoding device 1 shown in FIG. 2 is omitted.

そして、図2に示す例では、ブロック分割回路201が、ブロック分割部101として動作する。事前解析回路202が、事前解析部102として動作する。イントラ予測回路203が、イントラ予測部103として動作する。切替回路204が、切替部104として動作する。整数変換回路205が、整数変換部105として動作する。量子化回路206が、量子化部106として動作する。逆量子化回路207が、逆量子化部107として動作する。逆整数変換回路208が、逆整数変換部108として動作する。符号化回路209が、符号化部109として動作する。フィルタ回路216が、フィルタ部116として動作する。フレームバッファ217が、フレーム記憶部117として動作する。減算回路218が、減算部118として動作する。加算回路219が、加算部119として動作する。動き補償回路200が、動き補償部100として動作する。従って、以下では、図1に示す映像符号化装置1の構成要素のうち、動き補償部100以外の構成要素の説明を省略する。   In the example illustrated in FIG. 2, the block division circuit 201 operates as the block division unit 101. The pre-analysis circuit 202 operates as the pre-analysis unit 102. The intra prediction circuit 203 operates as the intra prediction unit 103. The switching circuit 204 operates as the switching unit 104. The integer conversion circuit 205 operates as the integer conversion unit 105. The quantization circuit 206 operates as the quantization unit 106. The inverse quantization circuit 207 operates as the inverse quantization unit 107. The inverse integer conversion circuit 208 operates as the inverse integer conversion unit 108. The encoding circuit 209 operates as the encoding unit 109. The filter circuit 216 operates as the filter unit 116. The frame buffer 217 operates as the frame storage unit 117. The subtraction circuit 218 operates as the subtraction unit 118. The adder circuit 219 operates as the adder 119. The motion compensation circuit 200 operates as the motion compensation unit 100. Therefore, below, description of components other than the motion compensation unit 100 among the components of the video encoding device 1 illustrated in FIG. 1 is omitted.

図3は、本実施形態の映像符号化装置1の動き補償部100の構成の例を表すブロック図である。図3を参照すると、動き補償部100は、動きベクトル補填部10と、スイッチ部20と、リファイン部30と、双予測生成部40と、予測選択部50と、AMVP生成部60(Advanced Motion Vector Prediction)と、モード決定部70とを含む。以下の説明ではAMVP生成部60を、「高度動きベクトル予測部60」と表記することもある。   FIG. 3 is a block diagram illustrating an example of the configuration of the motion compensation unit 100 of the video encoding device 1 of the present embodiment. Referring to FIG. 3, the motion compensation unit 100 includes a motion vector compensation unit 10, a switch unit 20, a refinement unit 30, a bi-prediction generation unit 40, a prediction selection unit 50, and an AMVP generation unit 60 (Advanced Motion Vector). Prediction) and a mode determination unit 70. In the following description, the AMVP generation unit 60 may be referred to as an “altitude motion vector prediction unit 60”.

AMVP生成部60は、符号化対象ブロックの周辺のブロックにおける予測動きベクトル、又は、符号化対象ブロックが含まれるピクチャの直前ピクチャの予測動きベクトルを選択し、選択した動きベクトルを、動きベクトル補填部10に送信する。   The AMVP generation unit 60 selects a prediction motion vector in a block around the encoding target block or a prediction motion vector of a picture immediately before the picture including the encoding target block, and uses the selected motion vector as a motion vector compensation unit 10 to send.

モード決定部70は、後述される補填モードを表す信号を、動きベクトル補填部10に送信する。補填モードは、あらかじめ実験的に定められていてもよい。その場合、モード決定部70は、あらかじめ実験的に定められている補填モードを表す信号を、動きベクトル補填部10に送信してもよい。補填モードは、ピクチャのタイプ毎に、あらかじめ決められていてもよい。その場合、モード決定部70は、符号化対象ブロックが含まれるピクチャのタイプについて決められている補填モードを表す信号を、動きベクトル補填部10に送信してもよい。補填モードは、符号化処理を実行中に、動的に決められてもよい。その場合、例えばモード決定部70が、例えば、ピクチャと、そのピクチャが符号化され、復号された画像とを比較することによって、符号化の誤差を評価してもよい。そしてモード決定部70が、誤差の評価の結果を使用して、誤差が減少するように補填モードを動的に選択してもよい。   The mode determination unit 70 transmits a signal representing a compensation mode to be described later to the motion vector compensation unit 10. The compensation mode may be experimentally determined in advance. In that case, the mode determination unit 70 may transmit a signal representing a compensation mode determined experimentally in advance to the motion vector compensation unit 10. The compensation mode may be determined in advance for each picture type. In this case, the mode determination unit 70 may transmit a signal representing the compensation mode determined for the type of picture including the encoding target block to the motion vector compensation unit 10. The compensation mode may be determined dynamically during the encoding process. In this case, for example, the mode determination unit 70 may evaluate the encoding error by comparing, for example, a picture and an image in which the picture is encoded and decoded. Then, the mode determination unit 70 may dynamically select the compensation mode so that the error is reduced by using the error evaluation result.

動きベクトル補填部10は、AMVP生成部60から受信した動きベクトルから、受信した補填モードにおける選択方法に従って、補填動きベクトルを選択する。補填モードとその選択方法については、後で詳細に説明する。動きベクトル補填部10は、継承動きベクトルmMV及び継承動きベクトルmMVのいずれか一方が入力されない場合補填動きベクトルを選択すればよい。 The motion vector compensation unit 10 selects a compensation motion vector from the motion vectors received from the AMVP generation unit 60 according to the selection method in the received compensation mode. The compensation mode and the selection method will be described later in detail. Motion vector compensation unit 10, one of the inherited motion vector MMV 0 and inheritance motion vector MMV 0 may be selected if compensation motion vector not input.

スイッチ部20は、継承動きベクトルmMVが入力されない場合、継承動きベクトルmMVの代わりに、補填動きベクトルをリファイン部30に入力する。スイッチ部20は、継承動きベクトルmMVが入力されない場合、継承動きベクトルmMVの代わりに、補填動きベクトルをリファイン部30に入力する。 When the inherited motion vector MMV 0 is not input, the switch unit 20 inputs the compensation motion vector to the refiner 30 instead of the inherited motion vector MMV 0 . When the inherited motion vector MMV 1 is not input, the switch unit 20 inputs the compensation motion vector to the refinement unit 30 instead of the inherited motion vector MMV 1 .

リファイン部30は、上述の比較例のリファイン回路230と同様に動作する。双予測生成部40は、上述の比較例の双予測生成回路240と同様に動作する。予測選択部50は、上述の比較例の予測選択回路250と同様に動作する。   The refiner 30 operates in the same manner as the refiner circuit 230 of the comparative example described above. The bi-prediction generation unit 40 operates in the same manner as the bi-prediction generation circuit 240 of the comparative example described above. The prediction selection unit 50 operates in the same manner as the prediction selection circuit 250 of the above-described comparative example.

図4は、本実施形態の映像符号化装置1の動き補償部100の実装例である、動き補償回路200の構成の例を表すブロック図である。本実装例の動き補償回路200は、動きベクトル補填回路210と、スイッチ回路220と、リファイン回路230と、双予測生成回路240と、予測選択回路250と、AMVP生成回路260と、モード決定回路270とを含む。スイッチ回路220は、第1スイッチ回路221と、第2スイッチ回路222とを含む。リファイン回路230は、第1リファイン回路231と、第2リファイン回路232とを含む。図4と図13とを比較すると、本実施形態の映像符号化装置1の実装例のリファイン回路230、双予測生成回路240、及び、予測選択回路250は、それぞれ、前述の比較例の動き補償回路300の、同じ名前及び符号が付与された構成要素と同じである。動きベクトル補填部10は、例えば、図4に示す動きベクトル補填回路210によって実現される。スイッチ部20は、例えば、図4に示すスイッチ回路220によって実現される。AMVP生成部60は、例えば、図4に示すAMVP生成回路260によって実現される。モード決定部70は、例えば、図4に示すモード決定回路270によって実現される。以下では、主に、動きベクトル補填回路210、スイッチ回路220、AMVP生成回路260、及び、モード決定回路270について、詳細に説明する。   FIG. 4 is a block diagram illustrating an example of a configuration of a motion compensation circuit 200 that is an implementation example of the motion compensation unit 100 of the video encoding device 1 of the present embodiment. The motion compensation circuit 200 of the present implementation example includes a motion vector compensation circuit 210, a switch circuit 220, a refinement circuit 230, a bi-prediction generation circuit 240, a prediction selection circuit 250, an AMVP generation circuit 260, and a mode determination circuit 270. Including. The switch circuit 220 includes a first switch circuit 221 and a second switch circuit 222. The refinement circuit 230 includes a first refinement circuit 231 and a second refinement circuit 232. Comparing FIG. 4 with FIG. 13, the refinement circuit 230, the bi-prediction generation circuit 240, and the prediction selection circuit 250 of the implementation example of the video encoding device 1 of the present embodiment are each the motion compensation of the above-described comparative example. The circuit 300 is the same as the component having the same name and symbol. The motion vector compensation unit 10 is realized by, for example, a motion vector compensation circuit 210 illustrated in FIG. The switch unit 20 is realized by, for example, the switch circuit 220 illustrated in FIG. The AMVP generation unit 60 is realized by, for example, the AMVP generation circuit 260 illustrated in FIG. The mode determination unit 70 is realized by, for example, the mode determination circuit 270 illustrated in FIG. Hereinafter, mainly the motion vector compensation circuit 210, the switch circuit 220, the AMVP generation circuit 260, and the mode determination circuit 270 will be described in detail.

AMVP生成回路260は、周辺ベクトルを受信し、受信した周辺ベクトルから予測動きベクトルを選択する。周辺ベクトルは、符号化対象ブロックの隣接ブロックの予測動きベクトル、又は、符号化対象ブロックの直前ピクチャのブロックの予測動きベクトルである。符号化方式が、例えば、HEVCである場合、AMVP生成回路260は、2つの予測動きベクトルを選択する。AMVP生成回路260が予測動きベクトルを選択する方法は、映像符号化装置1が行う映像符号化の符号化方式における選択方法であればよい。AMVP生成回路260は、選択した予測動きベクトルを、動きベクトル補填回路210に送信する。   The AMVP generation circuit 260 receives the peripheral vector and selects a predicted motion vector from the received peripheral vector. The peripheral vector is a prediction motion vector of a block adjacent to the encoding target block or a prediction motion vector of a block of a picture immediately before the encoding target block. For example, when the encoding method is HEVC, the AMVP generation circuit 260 selects two prediction motion vectors. The AMVP generation circuit 260 may select a prediction motion vector as long as it is a selection method in the encoding method of video encoding performed by the video encoding device 1. The AMVP generation circuit 260 transmits the selected predicted motion vector to the motion vector compensation circuit 210.

図5は、AMVP生成回路260によって動きベクトルが選択されるブロックの位置を模式的に表す図である。AMVP生成回路260は、例えば、A0、A1、B0、B1、B2、C0、及び、C1の、いずれか2つのブロックの予測動きベクトルを選択する。以下の説明では、C0、及び、C1の、2つのブロックの予測動きベクトルを、特に「時間予測動きベクトル」と表記する。また、A0、A1、B0、B1、及び、B2、のブロックの予測動きベクトルを、特に「AMVP予測動きベクトル」と表記する。AMVP生成回路260は、例えば、A0、A1、B0、B1、及び、B2、のブロックの予測動きベクトルから、2つのAMVP予測動きベクトルを選択してもよい。A0、A1、B0、B1、及び、B2、のブロックの予測動きベクトルに、AMVP予測動きベクトルとして選択できる予測動きベクトルが存在しない場合、AMVP生成回路260は、C0のブロックの予測動きベクトルを、時間予測動きベクトルとして選択してもよい。さらに、C0のブロックの予測動きベクトルを時間予測動きベクトルとして選択できない場合、AMVP生成回路260は、C1のブロックの予測動きベクトルを、時間予測動きベクトルとして選択してもよい。そして、AMVP生成回路260は、選択したAMVP予測動きベクトル又は時間予測動きベクトルを、動きベクトル補填回路210に送信すればよい。AMVP生成回路260は、選択された2つのAMVP予測動きベクトルと、時間予測動きベクトルとを、動きベクトル補填回路210に送信してもよい。AMVP生成回路260は、AMVP予測動きベクトル及び時間予測動きベクトルを、選択せずに、動きベクトル補填回路210に送信してもよい。   FIG. 5 is a diagram schematically showing the position of a block from which a motion vector is selected by the AMVP generation circuit 260. The AMVP generation circuit 260 selects, for example, predicted motion vectors of any two blocks of A0, A1, B0, B1, B2, C0, and C1. In the following description, the prediction motion vectors of the two blocks C0 and C1 are particularly expressed as “temporal prediction motion vectors”. In addition, the prediction motion vector of the blocks A0, A1, B0, B1, and B2 is particularly expressed as “AMVP prediction motion vector”. For example, the AMVP generation circuit 260 may select two AMVP predicted motion vectors from the predicted motion vectors of the blocks A0, A1, B0, B1, and B2. When there is no predicted motion vector that can be selected as the AMVP predicted motion vector in the predicted motion vectors of the blocks A0, A1, B0, B1, and B2, the AMVP generation circuit 260 calculates the predicted motion vector of the block of C0, It may be selected as a temporal prediction motion vector. Further, when the predicted motion vector of the C0 block cannot be selected as the temporal prediction motion vector, the AMVP generation circuit 260 may select the predicted motion vector of the C1 block as the temporal prediction motion vector. Then, the AMVP generation circuit 260 may transmit the selected AMVP prediction motion vector or temporal prediction motion vector to the motion vector compensation circuit 210. The AMVP generation circuit 260 may transmit the two selected AMVP prediction motion vectors and the temporal prediction motion vector to the motion vector compensation circuit 210. The AMVP generation circuit 260 may transmit the AMVP prediction motion vector and the temporal prediction motion vector to the motion vector compensation circuit 210 without selecting them.

モード決定回路270は、後述される、動きベクトルの補填モードを決定し、決定された補填モードを示す信号を、動きベクトル補填回路210に送信する。   The mode determination circuit 270 determines a motion vector compensation mode, which will be described later, and transmits a signal indicating the determined compensation mode to the motion vector compensation circuit 210.

動きベクトル補填回路210は、信号mDirの値と、補填モード(例えば図4におけるcMode)とに基づいて、AMVP生成回路260から受信した、AMVP予測動きベクトル又は時間予測動きベクトルから、補填ベクトルcMVを選択する。補填モードcModeは、例えば、モード決定回路270から入力される。補填モードcModeは、例えば、あらかじめ実験的に定められ、動き補償回路200の外部にある記憶部(図示されない)に格納されていてもよい。動きベクトル補填回路210は、動き補償回路200の外部にあるその記憶部から補填モードcModeを読み出しても。動きベクトル補填回路210の出力は、スイッチ回路220に含まれる、第1スイッチ回路221の2つの入力端子の一方と、第2スイッチ回路222の2つの入力端子の一方とに接続される。   Based on the value of the signal mDir and the compensation mode (for example, cMode in FIG. 4), the motion vector compensation circuit 210 calculates the compensation vector cMV from the AMVP predicted motion vector or the temporally predicted motion vector received from the AMVP generation circuit 260. select. The compensation mode cMode is input from the mode determination circuit 270, for example. The compensation mode cMode may be experimentally determined in advance and stored in a storage unit (not shown) outside the motion compensation circuit 200, for example. The motion vector compensation circuit 210 may read the compensation mode cMode from the storage unit outside the motion compensation circuit 200. The output of the motion vector compensation circuit 210 is connected to one of the two input terminals of the first switch circuit 221 and one of the two input terminals of the second switch circuit 222 included in the switch circuit 220.

第1スイッチ回路221の2つの入力端子の一方は、動きベクトル補填回路210に接続されている。第1スイッチ回路221の2つの入力端子の他方は、動きベクトルmMVが入力される信号線に接続されている。さらに、第1スイッチ回路221の制御端子は、信号mDirに接続される。第1スイッチ回路221は、信号mDirの値に応じて、出力端子に接続される入力端子を、動きベクトルmMVが入力される信号線に接続されている入力端子と、動きベクトル補填回路210に接続されている信号線との間で切り替える。具体的には、信号mDirの値が、上述のL0又はBiである場合、第1スイッチ回路221は、動きベクトルmMVが入力される信号線に接続されている入力端子と、出力端子との間を接続する。信号mDirの値が上述のL1である場合、第1スイッチ回路221は、動きベクトル補填回路210に接続されている入力端子と、出力端子との間を接続する。第1スイッチ回路221の出力端子は、リファイン回路230の第1リファイン回路231に接続されている。 One of the two input terminals of the first switch circuit 221 is connected to the motion vector compensation circuit 210. The other two input terminals of the first switch circuit 221 is connected to a signal line motion vector MMV 0 is input. Further, the control terminal of the first switch circuit 221 is connected to the signal mDir. The first switch circuit 221 connects the input terminal connected to the output terminal to the input terminal connected to the signal line to which the motion vector MMV 0 is input and the motion vector compensation circuit 210 according to the value of the signal mDir. Switch between connected signal lines. Specifically, when the value of the signal mDir is the above-described L0 or Bi, the first switch circuit 221 includes an input terminal connected to a signal line to which the motion vector mMV 0 is input, and an output terminal. Connect between them. When the value of the signal mDir is L1 described above, the first switch circuit 221 connects between the input terminal connected to the motion vector compensation circuit 210 and the output terminal. The output terminal of the first switch circuit 221 is connected to the first refinement circuit 231 of the refinement circuit 230.

第2スイッチ回路222の2つの入力端子の一方は、動きベクトル補填回路210に接続されている。第2スイッチ回路222の2つの入力端子の他方は、動きベクトルmMVが入力される信号線に接続されている。さらに、第2スイッチ回路222の制御端子は、信号mDirに接続される。第2スイッチ回路222は、信号mDirの値に応じて、出力端子に接続される入力端子を、動きベクトルmMVが入力される信号線に接続されている入力端子と、動きベクトル補填回路210に接続されている信号線との間で切り替える。具体的には、信号mDirの値が、上述のL1又はBiである場合、第1スイッチ回路221は、動きベクトルmMVが入力される信号線に接続されている入力端子と、出力端子との間を接続する。信号mDirの値が上述のL0である場合、第2スイッチ回路222は、動きベクトル補填回路210に接続されている入力端子と、出力端子との間を接続する。第2のスイッチ回路222の出力端子は、リファイン回路230の第2リファイン回路232に接続されている。 One of the two input terminals of the second switch circuit 222 is connected to the motion vector compensation circuit 210. The other two input terminals of the second switch circuit 222 is connected to a signal line motion vector MMV 1 is input. Further, the control terminal of the second switch circuit 222 is connected to the signal mDir. The second switch circuit 222 has an input terminal connected to the output terminal in accordance with the value of the signal mDir, an input terminal connected to the signal line to which the motion vector MMV 0 is input, and the motion vector compensation circuit 210. Switch between connected signal lines. Specifically, when the value of the signal mDir is L1 or Bi described above, the first switch circuit 221 includes an input terminal connected to a signal line to which the motion vector MMV 1 is input, and an output terminal. Connect between them. When the value of the signal mDir is L0 described above, the second switch circuit 222 connects between the input terminal connected to the motion vector compensation circuit 210 and the output terminal. The output terminal of the second switch circuit 222 is connected to the second refinement circuit 232 of the refinement circuit 230.

動き補償回路200が以上の構成を備えることによって、継承動きベクトルmMVが第1リファイン回路231に入力されない場合、補填動きベクトルcMVが第1リファイン回路231に入力される。さらに、継承動きベクトルmMVが第2リファイン回路232に入力されない場合、補填動きベクトルcMVが第2リファイン回路232に入力される。 By the motion compensation circuit 200 having the above configuration, when the inheritance motion vector MMV 0 not input to the first refinement circuit 231, compensating the motion vector cMV is input to the first refined circuit 231. Further, when the inherited motion vector MMV 1 is not input to the second refinement circuit 232, the compensation motion vector cMV is input to the second refinement circuit 232.

本実施形態では、第1リファイン回路231及び第2リファイン回路232に、2つのベクトルが入力される。第1リファイン回路231及び第2リファイン回路232は、符号化対象ブロックが含まれるピクチャが、Bピクチャであっても、Pピクチャであっても、休止状態にならずに動作する。また、本実施形態では、双予測生成回路240は、符号化対象ブロックが含まれるピクチャがBピクチャである場合、休止状態にならずに動作する。本実施形態では、双予測生成回路240は、符号化対象ブロックが含まれるピクチャがPピクチャである場合、休止状態になる
次に、本実施形態の動きベクトル補填部10について、図面を参照して詳細に説明する。
In the present embodiment, two vectors are input to the first refinement circuit 231 and the second refinement circuit 232. The first refinement circuit 231 and the second refinement circuit 232 operate without entering a pause state regardless of whether the picture including the encoding target block is a B picture or a P picture. Further, in the present embodiment, the bi-prediction generation circuit 240 operates without entering a pause state when the picture including the encoding target block is a B picture. In the present embodiment, the bi-prediction generation circuit 240 enters a pause state when the picture including the encoding target block is a P picture. Next, the motion vector compensation unit 10 according to the present embodiment will be described with reference to the drawings. This will be described in detail.

図6は、本実施形態の動きベクトル補填部10の構成の例を表すブロック図である。図6を参照すると、動きベクトル補填部10は、検出部11と、補填ベクトル選択部12と、送信部13と、受信部14とを含む。   FIG. 6 is a block diagram illustrating an example of the configuration of the motion vector compensation unit 10 of the present embodiment. Referring to FIG. 6, the motion vector compensation unit 10 includes a detection unit 11, a compensation vector selection unit 12, a transmission unit 13, and a reception unit 14.

検出部11は、リファイン部30に入力される継承動きベクトルが2つであるか1つであるかを検出する。例えば、検出部11は、事前解析部102から、信号mDirを受信する。そして、信号mDirの値がL0又はL1である場合、検出部11は、リファイン部30に入力される継承動きベクトルが1つであることを検出する。信号mDirの値がBiである場合、検出部11は、リファイン部30に入力される継承動きベクトルが2つであることを検出する。   The detection unit 11 detects whether the number of inherited motion vectors input to the refinement unit 30 is two or one. For example, the detection unit 11 receives the signal mDir from the prior analysis unit 102. When the value of the signal mDir is L0 or L1, the detection unit 11 detects that the inherited motion vector input to the refinement unit 30 is one. When the value of the signal mDir is Bi, the detection unit 11 detects that there are two inherited motion vectors input to the refinement unit 30.

受信部14は、事前解析部102から、継承動きベクトルmMV及び継承動きベクトルmMVの少なくとも一方を受信する。受信部14は、さらに、モード決定部70から、補填モードcModeを受信する。受信部14は、さらに、AMVP生成部60から、例えば、選択された2つの予測動きベクトル(以下、「AMVP」及び「AMVP」と表記)と、時間予測動きベクトルとを受信する。 The receiving unit 14 receives at least one of the inherited motion vector MMV 0 and the inherited motion vector MMV 1 from the prior analysis unit 102. The receiving unit 14 further receives the compensation mode cMode from the mode determining unit 70. The receiving unit 14 further receives, for example, two selected prediction motion vectors (hereinafter referred to as “AMVP 0 ” and “AMVP 1 ”) and a temporal prediction motion vector from the AMVP generation unit 60.

補填ベクトル選択部12は、例えば入力される継承動きベクトルが1つである場合、補填モードcModeにおける選択方法に従って、予測動きベクトル及び時間予測動きベクトルから、補填動きベクトルを選択する。その際、補填ベクトル選択部12は、入力された継承動きベクトル(すなわち、継承動きベクトルmMV又は継承動きベクトルmMV)に基づいて、補填動きベクトルを選択してもよい。以下では、補填モードとその補填モードにおける選択方法の例について詳細に説明する。 For example, when only one inherited motion vector is input, the compensation vector selection unit 12 selects a compensation motion vector from the prediction motion vector and the temporal prediction motion vector according to the selection method in the compensation mode cMode. At this time, the compensation vector selection unit 12 may select a compensation motion vector based on the input inherited motion vector (that is, the inherited motion vector MMV 0 or the inherited motion vector MMV 1 ). Hereinafter, an example of the compensation mode and a selection method in the compensation mode will be described in detail.

(1)補填モード0
補填ベクトル選択部12は、補填ベクトルを生成しなくてもよい。本実施形態では、補填ベクトル選択部12は、補填モードが「補填モード0」である場合、補填ベクトルを生成しない。
(1) Compensation mode 0
The compensation vector selection unit 12 may not generate a compensation vector. In the present embodiment, the compensation vector selection unit 12 does not generate a compensation vector when the compensation mode is “compensation mode 0”.

(2)補填モード1
補填ベクトル選択部12は、継承動きベクトルとの距離が最小であるAMVP予測動きベクトルを、補填ベクトルとして選択してもよい。AMVP予測動きベクトルの数が2つである場合、補填ベクトル選択部12は、2つのAMVP予測動きベクトルのうち、承継動きベクトルとの距離が小さいAMVP予測動きベクトルを、補填ベクトルとして選択してもよい。本実施形態では、補填ベクトル選択部12は、補填モードが「補填モード1」である場合、継承動きベクトルとの距離が最小であるAMVP予測動きベクトルを、補填ベクトルとして選択する。
(2) Compensation mode 1
The compensation vector selection unit 12 may select an AMVP predicted motion vector having a minimum distance from the inherited motion vector as the compensation vector. When the number of AMVP predicted motion vectors is two, the compensation vector selection unit 12 may select an AMVP predicted motion vector having a small distance from the successor motion vector as the compensation vector from the two AMVP predicted motion vectors. Good. In the present embodiment, when the compensation mode is “compensation mode 1”, the compensation vector selection unit 12 selects an AMVP predicted motion vector having the smallest distance from the inherited motion vector as the compensation vector.

(3)補填モード2
補填ベクトル選択部12は、継承動きベクトルとの距離が最も大きいAMVP予測動きベクトルを、補填ベクトルとして選択してもよい。AMVP予測動きベクトルの数が2つである場合、補填ベクトル選択部12は、2つのAMVP予測動きベクトルのうち、承継動きベクトルとの距離が大きいAMVP予測動きベクトルを、補填ベクトルとして選択してもよい。本実施形態では、補填ベクトル選択部12は、補填モードが「補填モード2」である場合、継承動きベクトルとの距離が最も大きいAMVP予測動きベクトルを、補填ベクトルとして選択する。
(3) Compensation mode 2
The compensation vector selection unit 12 may select the AMVP predicted motion vector having the longest distance from the inherited motion vector as the compensation vector. When the number of AMVP predicted motion vectors is two, the compensation vector selection unit 12 may select an AMVP predicted motion vector having a large distance from the successor motion vector as the compensation vector from the two AMVP predicted motion vectors. Good. In the present embodiment, when the compensation mode is “compensation mode 2”, the compensation vector selection unit 12 selects an AMVP motion vector predictor having the longest distance from the inherited motion vector as the compensation vector.

(4)補填モード3
補填ベクトル選択部12は、補填ベクトルとして、ゼロベクトルを選択してもよい。本実施形態では、補填ベクトル選択部12は、補填モードが「補填モード3」である場合、ゼロベクトルを、補填ベクトルとして選択する。
(4) Compensation mode 3
The compensation vector selection unit 12 may select a zero vector as the compensation vector. In the present embodiment, the compensation vector selection unit 12 selects a zero vector as a compensation vector when the compensation mode is “compensation mode 3”.

以上で説明した、補填モード0から補填モード3までの補填モードは、符号化対象ブロックが含まれるピクチャが、Bピクチャであっても、Pピクチャであっても、選択可能である。   The compensation modes from the compensation mode 0 to the compensation mode 3 described above can be selected regardless of whether the picture including the encoding target block is a B picture or a P picture.

以下で説明する補填モード4から補填モード7までの補填モードは、符号化対象ブロックが含まれるピクチャが、Bピクチャである場合に選択可能である。補填モード4から補填モード7までの補填モードでは、補填ベクトルは、継承動きベクトルと異なる予測方向における動きベクトルとして補填される。   Compensation modes from compensation mode 4 to compensation mode 7 described below can be selected when the picture including the block to be encoded is a B picture. In the compensation modes from the compensation mode 4 to the compensation mode 7, the compensation vector is compensated as a motion vector in a prediction direction different from the inherited motion vector.

(5)補填モード4
補填ベクトル選択部12は、補填ベクトルとして、インデックスが0であるAMVP予測動きベクトルを選択してもよい。AMVP生成部60は、2つのAMVP予測動きベクトルの一方に、インデックスとして0を付与し、他方に、インデックスとして1を付与すればよい。本実施形態では、補填ベクトル選択部12は、補填モードが「補填モード4」である場合、補填ベクトルとして、インデックスが0であるAMVP予測動きベクトルを選択する。
(5) Compensation mode 4
The compensation vector selection unit 12 may select an AMVP predicted motion vector having an index of 0 as the compensation vector. The AMVP generating unit 60 may assign 0 as an index to one of the two AMVP motion vector predictors and 1 as an index to the other. In the present embodiment, when the compensation mode is “compensation mode 4”, the compensation vector selection unit 12 selects an AMVP motion vector predictor having an index of 0 as the compensation vector.

(6)補填モード5
補填ベクトル選択部12は、補填ベクトルとして、インデックスが1であるAMVP予測動きベクトルを選択してもよい。本実施形態では、補填ベクトル選択部12は、補填モードが「補填モード5」である場合、補填ベクトルとして、インデックスが1であるAMVP予測動きベクトルを選択する。
(6) Compensation mode 5
The compensation vector selection unit 12 may select an AMVP predicted motion vector having an index of 1 as a compensation vector. In the present embodiment, when the compensation mode is “compensation mode 5”, the compensation vector selection unit 12 selects an AMVP motion vector predictor having an index of 1 as the compensation vector.

(7)補填モード6
補填ベクトル選択部12は、補填ベクトルとして、ゼロベクトルを選択してもよい。本実施形態では、補填ベクトル選択部12は、補填モードが「補填モード6」である場合、填ベクトルとして、ゼロベクトルを選択する。
(7) Compensation mode 6
The compensation vector selection unit 12 may select a zero vector as the compensation vector. In the present embodiment, the compensation vector selection unit 12 selects a zero vector as a compensation vector when the compensation mode is “compensation mode 6”.

(8)補填モード7
補手ベクトル選択部12は、補填ベクトルとして、時間予測動きベクトルを選択する。上述のように、例えば図5に示す例におけるC0のブロックにおける予測動きベクトルが存在する場合、AMVP生成部60は、時間予測動きベクトルとして、C0のブロックにおける予測動きベクトルを選択する。C0のブロックにおける予測動きベクトルが存在しない場合、AMVP生成部60は、時間予測動きベクトルとして、C1のブロックにおける予測動きベクトルを選択する。本実施形態では、補填ベクトル選択部12は、補填モードが「補填モード7」である場合、補填ベクトルとして、時間予測動きベクトルを選択する。
(8) Compensation mode 7
The assistant vector selection unit 12 selects a temporal prediction motion vector as the compensation vector. As described above, for example, when a motion vector predictor in the block C0 in the example illustrated in FIG. 5 exists, the AMVP generation unit 60 selects a motion vector predictor in the block C0 as the temporal motion vector predictor. When the predicted motion vector in the C0 block does not exist, the AMVP generation unit 60 selects the predicted motion vector in the C1 block as the temporal predicted motion vector. In this embodiment, the compensation vector selection unit 12 selects a temporal prediction motion vector as a compensation vector when the compensation mode is “compensation mode 7”.

図7は、本実施形態の動きベクトル補填回路210の構成の例を表すブロック図である。動きベクトル補填回路210は、動きベクトル補填部10が回路として実装されている実装例である。動きベクトル補填回路210は、動きベクトル補填部10として動作する回路である。図7を参照すると、動きベクトル補填回路210は、検出回路211と、補填ベクトル選択回路212と、送信回路213と、受信回路214とを含む。検出回路211は、上述の検出部11として動作する。補填ベクトル選択回路212は、上述の補填ベクトル選択部12として動作する。送信回路213は、上述の送信部13として動作する。受信回路214は、上述の受信部14として動作する。従って、動きベクトル補填回路210についての詳細な説明は省略する。   FIG. 7 is a block diagram illustrating an example of the configuration of the motion vector compensation circuit 210 of the present embodiment. The motion vector compensation circuit 210 is an implementation example in which the motion vector compensation unit 10 is implemented as a circuit. The motion vector compensation circuit 210 is a circuit that operates as the motion vector compensation unit 10. Referring to FIG. 7, the motion vector compensation circuit 210 includes a detection circuit 211, a compensation vector selection circuit 212, a transmission circuit 213, and a reception circuit 214. The detection circuit 211 operates as the detection unit 11 described above. The compensation vector selection circuit 212 operates as the above-described compensation vector selection unit 12. The transmission circuit 213 operates as the transmission unit 13 described above. The receiving circuit 214 operates as the above-described receiving unit 14. Therefore, a detailed description of the motion vector compensation circuit 210 is omitted.

次に、本実施形態の動作について、図面を参照して詳細に説明する。   Next, the operation of the present embodiment will be described in detail with reference to the drawings.

図8は、本実施形態の映像符号化装置1の、符号化対象画像の予測画像を生成する動作の例を表すフローチャートである。   FIG. 8 is a flowchart illustrating an example of an operation of generating a predicted image of the encoding target image in the video encoding device 1 according to the present embodiment.

図8を参照すると、まず、事前解析部102が、継承動きベクトルを生成する(ステップS101)。次に、AMVP生成部60が、AMVP予測動きベクトルと時間予測動きベクトルとを生成する(ステップS102)。次に、動きベクトル補填部10が、動きベクトル補填処理を実行する(ステップS103)。動きベクトル補填処理については、後で詳細に説明する。次に、リファイン部30が、動きベクトルをリファインする(ステップS104)。すなわち、リファイン部30は、受信した動きベクトル(すなわち、2つの継承動きベクトル、又は、継承動きベクトル及び補填動きベクトル)に基づいて、予測動きベクトルを検出する。リファイン部30は、さらに、予測動きベクトルに基づく予測画像を生成する(ステップS105)。   Referring to FIG. 8, first, the pre-analysis unit 102 generates an inherited motion vector (step S101). Next, the AMVP generation unit 60 generates an AMVP motion vector predictor and a temporal motion vector predictor (step S102). Next, the motion vector compensation unit 10 executes motion vector compensation processing (step S103). The motion vector compensation process will be described later in detail. Next, the refiner 30 refines the motion vector (step S104). That is, the refinement unit 30 detects a predicted motion vector based on the received motion vectors (that is, two inherited motion vectors, or the inherited motion vector and the compensation motion vector). The refiner 30 further generates a predicted image based on the predicted motion vector (step S105).

符号化対象ブロックが含まれるピクチャがPピクチャである場合(ステップS106においてNO)、映像符号化装置1は、次に、ステップS108の動作を行う。この場合、予測選択部50は、2つの予測画像から、例えば符号化コストがより小さい、1つの予測画像を選択する。
符号化対象ブロックが含まれるピクチャがBピクチャである場合(ステップS106においてYES)、次に、双予測生成部40が、双予測画像を生成する(ステップS107)。そして、予測選択部50は、予測画像を選択する(ステップS108)。この場合、予測選択部50は、2つの予測画像と、1つの双予測画像とから、1つの画像を予測画像として選択する。
When the picture including the encoding target block is a P picture (NO in step S106), the video encoding device 1 next performs the operation of step S108. In this case, the prediction selection unit 50 selects, for example, one predicted image with a lower encoding cost from the two predicted images.
If the picture including the encoding target block is a B picture (YES in step S106), then the bi-prediction generation unit 40 generates a bi-prediction image (step S107). Then, the prediction selection unit 50 selects a predicted image (step S108). In this case, the prediction selection unit 50 selects one image as a predicted image from two predicted images and one bi-predicted image.

次に、本実施形態の映像符号化装置1の、動きベクトル補填処理の動作について、図面を参照して詳細に説明する。   Next, the motion vector compensation processing operation of the video encoding device 1 of the present embodiment will be described in detail with reference to the drawings.

図9は、本実施形態の映像符号化装置1の、動きベクトル補填処理の動作の例を表すフローチャートである。   FIG. 9 is a flowchart showing an example of motion vector compensation processing of the video encoding device 1 according to the present embodiment.

図9を参照すると、まず、検出部11が、スイッチ部20を介してリファイン部30に入力される継承動きベクトルの数を検出する(ステップS201)。具体的には、検出部11は、信号mDirの値を検出する。そして、検出部11は、信号mDirの値によって、継承動きベクトルの数が1つであるか2つであるかを検出する。検出部11は、信号mDirの値がL0又はL1である場合、継承動きベクトルの数は1つであることを検出する。検出部11は、信号mDirの値がBiである場合、継承動きベクトルの数は2つであることを検出する。   Referring to FIG. 9, first, the detection unit 11 detects the number of inherited motion vectors input to the refinement unit 30 via the switch unit 20 (step S201). Specifically, the detection unit 11 detects the value of the signal mDir. Then, the detection unit 11 detects whether the number of inherited motion vectors is one or two based on the value of the signal mDir. When the value of the signal mDir is L0 or L1, the detection unit 11 detects that the number of inherited motion vectors is one. When the value of the signal mDir is Bi, the detection unit 11 detects that the number of inherited motion vectors is two.

継承動きベクトルの数が1つではない場合(ステップS202においてNO)、すなわち、信号mDirの値が、Biである場合、映像符号化装置1は、図9に示す動きベクトル補填処理を終了する。   If the number of inherited motion vectors is not one (NO in step S202), that is, if the value of the signal mDir is Bi, the video encoding device 1 ends the motion vector compensation processing shown in FIG.

継承動きベクトルの数が1つである場合(ステップS202においてYES)、すなわち、信号mDirの値が、L0又はL1である場合、受信部14は、補填モードを受信する(ステップS203)。なお、補填モードがあらかじめ定められている場合、受信部14は、補填モードを受信しなくてよい。次に、受信部14は、AMVP予測動きベクトル及び時間予測動きベクトルの少なくともいずれかを受信する(ステップS204)。受信部14は、さらに、継承動きベクトルを受信する(ステップS205)。   If the number of inherited motion vectors is 1 (YES in step S202), that is, if the value of the signal mDir is L0 or L1, the receiving unit 14 receives the compensation mode (step S203). In addition, when the compensation mode is determined in advance, the receiving unit 14 does not have to receive the compensation mode. Next, the receiving unit 14 receives at least one of the AMVP motion vector predictor and the temporal motion vector predictor (step S204). The receiving unit 14 further receives the inherited motion vector (step S205).

次に、補填ベクトル選択部12は、受信した補填モードに基づいて、受信した、AMVP予測動きベクトル及び時間予測動きベクトルと、ゼロベクトルとの少なくともいずれかから、補填動きベクトルを選択する(ステップS206)。   Next, the compensation vector selection unit 12 selects a compensation motion vector from at least one of the received AMVP prediction motion vector, temporal prediction motion vector, and zero vector based on the received compensation mode (step S206). ).

送信部13は、選択された補填動きベクトルを、スイッチ部20を介して、リファイン部30に送信する(ステップS207)。そして、映像符号化装置1は、図9に示す動作を終了する。   The transmission unit 13 transmits the selected compensation motion vector to the refinement unit 30 via the switch unit 20 (step S207). Then, the video encoding device 1 ends the operation shown in FIG.

以上で説明した本実施形態には、参照ピクチャが1つである場合であっても、予測の精度を向上させることができるという第1の効果がある。   The present embodiment described above has the first effect that the accuracy of prediction can be improved even when there is only one reference picture.

その理由は、参照ピクチャが1つである場合、すなわち、継承動きベクトルが1つである場合、補填ベクトル選択部12によって選択された補填動きベクトルが、リファイン部30に供給されるからである。その場合、予測選択部50は、継承動きベクトルに基づく予測画像と、補填動きベクトルに基づく予測画像とから、例えば符号化コストが最も小さい画像が選択する。又は、予測選択部50は、継承動きベクトルに基づく予測画像と、補填動きベクトルに基づく予測画像と、双予測画像とから、例えば符号化コストが最も小さい画像が選択する。従って、選択された画像の符号化対象ブロックに対する予測精度が向上する。   The reason is that, when there is one reference picture, that is, when there is one inherited motion vector, the compensation motion vector selected by the compensation vector selection unit 12 is supplied to the refinement unit 30. In that case, the prediction selection unit 50 selects, for example, an image with the lowest coding cost from the predicted image based on the inherited motion vector and the predicted image based on the compensation motion vector. Alternatively, the prediction selection unit 50 selects, for example, an image with the lowest coding cost from the predicted image based on the inherited motion vector, the predicted image based on the compensation motion vector, and the bi-predicted image. Therefore, the prediction accuracy for the encoding target block of the selected image is improved.

また、事前解析器が利用できなかった動きベクトルの追加評価による動き補償予測の高精度化が期待できる。なぜならば、事前解析器が決定する継承動きベクトルmMV及びmMVの予測方向や成分は必ずしも最適とならないためである。特にBピクチャにおいて時間ダイレクトモードを考慮した動きベクトル探索がなされていないため、予測方向の選定が最適でない可能性が高い。 In addition, it is expected that the motion compensation prediction will be highly accurate by additional evaluation of motion vectors for which the preanalyzer could not be used. This is because the predicted directions and components of the inherited motion vectors mMV 0 and mMV 1 determined by the pre-analyzer are not necessarily optimal. In particular, since a motion vector search that considers the temporal direct mode is not performed in the B picture, there is a high possibility that the selection of the prediction direction is not optimal.

HEVC規格における動きベクトルの時空間適応予測(すなわちAMVPとマージ予測)に適した動きベクトル選択によるオーバヘッド削減が期待できる。なぜならば、中央値予測に基づいて事前解析器が決定する継承動きベクトルmMV及びmMVは、必ずしもAMVPとマージ予測に最適な動きベクトルとならないためである。 Reduction of overhead can be expected by selecting a motion vector suitable for space-time adaptive prediction (ie, AMVP and merge prediction) of the motion vector in the HEVC standard. This is because the inherited motion vectors MmV 0 and mMV 1 determined by the pre-analyzer based on the median prediction are not necessarily optimal motion vectors for AMVP and merge prediction.

本実施形態には、さらに、演算器(すなわち、図4に示す第1リファイン回路231、第2リファイン回路232、及び、双予測生成回路240)を活用することができるという第2の効果がある。その理由は、継承動きベクトルが1つである場合に、補填ベクトル選択部12によって選択された補填動きベクトルが、第1リファイン回路231及び第2のリファイン回路232のうち継承動きベクトルが入力されていない方に入力されるからである。さらに、符号化対象ブロックが含まれるピクチャがBピクチャであれば、継承動きベクトルの数が1である場合であっても、双予測生成回路240が双予測を生成するからである。   In the present embodiment, there is a second effect that the arithmetic unit (that is, the first refinement circuit 231, the second refinement circuit 232, and the bi-prediction generation circuit 240 shown in FIG. 4) can be utilized. . The reason is that, when there is one inherited motion vector, the inherited motion vector of the first refinement circuit 231 and the second refinement circuit 232 is input as the compensation motion vector selected by the compensation vector selection unit 12. This is because it is input to the person who does not. Furthermore, if the picture including the encoding target block is a B picture, even if the number of inherited motion vectors is 1, the bi-prediction generation circuit 240 generates bi-prediction.

<第2の実施形態>
次に、本発明の第2の実施形態について、図面を参照して詳細に説明する。
<Second Embodiment>
Next, a second embodiment of the present invention will be described in detail with reference to the drawings.

図10は、本実施形態の映像符号化装置1Aの構成の例を表すブロック図である。   FIG. 10 is a block diagram illustrating an example of the configuration of the video encoding device 1A of the present embodiment.

図10を参照すると、本実施形態の映像符号化装置1Aは、検出部11と、補填ベクトル選択部12と、送信部13と、を備える。検出部11は、リファイン部30が受信する継承動きベクトルの数が、1つであるか又は2つであるかを検出する。リファイン部30は、符号化対象映像に含まれるピクチャにおける処理対象ブロックの動きの予測を表す予測動きベクトルの探索の基準として継承動きベクトルを受信する。補填ベクトル選択部12は、前記継承動きベクトルの数が1つである場合、所定の選択方法に従って補填動きベクトル選択する。送信部13は、前記リファイン部30に、選択した前記補填動きベクトルを送信する。前記リファイン部30は、前記継承動きベクトルと受信した前記補填ベクトルとに基づいて、処理対象ブロックの予測動きベクトルを検出する。   Referring to FIG. 10, the video encoding device 1 </ b> A according to the present embodiment includes a detection unit 11, a compensation vector selection unit 12, and a transmission unit 13. The detection unit 11 detects whether the number of inherited motion vectors received by the refinement unit 30 is one or two. The refinement unit 30 receives the inherited motion vector as a reference for searching for a predicted motion vector that represents the prediction of the motion of the processing target block in the picture included in the encoding target video. When the number of inherited motion vectors is one, the compensation vector selection unit 12 selects a compensation motion vector according to a predetermined selection method. The transmission unit 13 transmits the selected compensation motion vector to the refinement unit 30. The refiner 30 detects a predicted motion vector of the processing target block based on the inherited motion vector and the received compensation vector.

以上で説明した本実施形態には、第1の実施形態の第1の効果と同じ効果がある。その理由は、第1の実施形態の第1の効果が生じる理由と同じである。   The present embodiment described above has the same effect as the first effect of the first embodiment. The reason is the same as the reason why the first effect of the first embodiment occurs.

<他の実施形態>
上述の映像符号化装置1及び1Aは、それぞれ、コンピュータ及びコンピュータを制御するプログラム、専用のハードウェア、又は、コンピュータ及びコンピュータを制御するプログラムと専用のハードウェアの組合せにより実現することができる。
<Other embodiments>
The video encoding apparatuses 1 and 1A described above can be realized by a computer and a program for controlling the computer, dedicated hardware, or a combination of the computer and the program for controlling the computer and dedicated hardware, respectively.

図11は、上述の映像符号化装置1及び1Aを実現することができる、コンピュータ1000のハードウェア構成の一例を表す図である。図11を参照すると、コンピュータ1000は、プロセッサ1001と、メモリ1002と、記憶装置1003と、I/O(Input/Output)インタフェース1004とを含む。また、コンピュータ1000は、記録媒体1005にアクセスすることができる。メモリ1002と記憶装置1003は、例えば、RAM(Random Access Memory)、ハードディスクなどの記憶装置である。記録媒体1005は、例えば、RAM、ハードディスクなどの記憶装置、ROM(Read Only Memory)、可搬記録媒体である。記憶装置1003が記録媒体1005であってもよい。プロセッサ1001は、メモリ1002と、記憶装置1003に対して、データやプログラムの読み出しと書き込みを行うことができる。プロセッサ1001は、I/Oインタフェース1004を介して、例えば、映像の送信元及びビットストリームの送信先にアクセスすることができる。プロセッサ1001は、記録媒体1005にアクセスすることができる。記録媒体1005には、コンピュータ1000を、映像符号化装置1又は映像符号化装置1Aとして動作させるプログラムが格納されている。   FIG. 11 is a diagram illustrating an example of a hardware configuration of a computer 1000 that can realize the above-described video encoding devices 1 and 1A. Referring to FIG. 11, a computer 1000 includes a processor 1001, a memory 1002, a storage device 1003, and an I / O (Input / Output) interface 1004. The computer 1000 can access the recording medium 1005. The memory 1002 and the storage device 1003 are storage devices such as a RAM (Random Access Memory) and a hard disk, for example. The recording medium 1005 is, for example, a storage device such as a RAM or a hard disk, a ROM (Read Only Memory), or a portable recording medium. The storage device 1003 may be the recording medium 1005. The processor 1001 can read and write data and programs from and to the memory 1002 and the storage device 1003. The processor 1001 can access, for example, a video transmission source and a bitstream transmission destination via the I / O interface 1004. The processor 1001 can access the recording medium 1005. The recording medium 1005 stores a program that causes the computer 1000 to operate as the video encoding device 1 or the video encoding device 1A.

プロセッサ1001は、記録媒体1005に格納されている、コンピュータ1000を、映像符号化装置1又は映像符号化装置1Aとして動作させるプログラムを、メモリ1002にロードする。そして、プロセッサ1001が、メモリ1002にロードされたプログラムを実行することにより、コンピュータ1000は、映像符号化装置1又は映像符号化装置1Aとして動作する。   The processor 1001 loads a program stored in the recording medium 1005 and causing the computer 1000 to operate as the video encoding device 1 or the video encoding device 1A into the memory 1002. Then, when the processor 1001 executes the program loaded in the memory 1002, the computer 1000 operates as the video encoding device 1 or the video encoding device 1A.

以下の第1リストに含まれる部は、例えば、プログラムを記憶する記録媒体1005からメモリ1002に読み込まれた、各部の機能を実現することができる専用のプログラムと、そのプログラムを実行するプロセッサ1001により実現することができる。第1リストは、検出部11と、補填ベクトル選択部12と、送信部13と、受信部14とを含む。第1リストは、さらに、動きベクトル補填部10と、スイッチ部20と、リファイン部30と、双予測生成部40と、予測選択部50と、AMVP生成部60と、モード決定部70とを含む。第1リストは、さらに、動き補償部100と、ブロック分割部101と、事前解析部102と、イントラ予測部103と、切替部104と、整数変換部105と、量子化部106と、逆量子化部107と、逆整数変換部108と、符号化部109とを含む。第1リストは、さらに、フィルタ部116と、減算部118と、加算部119とを含む。また、以下の第2リストに含まれる部は、コンピュータ1000が含むメモリ1002やハードディスク装置等の記憶装置1003により実現することができる。第2リストは、フレーム記憶部117を含む。あるいは、第1リストに含まれる部及び第2リストに含まれる部の一部又は全部を、各部の機能を実現する専用の回路によって実現することもできる。   The units included in the first list below are, for example, a dedicated program that can be read from the recording medium 1005 that stores the program into the memory 1002 and that can realize the function of each unit, and a processor 1001 that executes the program. Can be realized. The first list includes a detection unit 11, a compensation vector selection unit 12, a transmission unit 13, and a reception unit 14. The first list further includes a motion vector compensation unit 10, a switch unit 20, a refinement unit 30, a bi-prediction generation unit 40, a prediction selection unit 50, an AMVP generation unit 60, and a mode determination unit 70. . The first list further includes a motion compensation unit 100, a block division unit 101, a prior analysis unit 102, an intra prediction unit 103, a switching unit 104, an integer conversion unit 105, a quantization unit 106, and an inverse quantum. The encoding unit 107, the inverse integer conversion unit 108, and the encoding unit 109 are included. The first list further includes a filter unit 116, a subtracting unit 118, and an adding unit 119. Further, the units included in the second list below can be realized by the memory 1002 included in the computer 1000 and the storage device 1003 such as a hard disk device. The second list includes a frame storage unit 117. Alternatively, some or all of the units included in the first list and the units included in the second list can be realized by a dedicated circuit that realizes the function of each unit.

以上、実施形態を参照して本発明を説明したが、本発明は上記実施形態に限定されるものではない。本発明の構成や詳細には、本発明のスコープ内で当業者が理解し得る様々な変更をすることができる。   The present invention has been described above with reference to the embodiments, but the present invention is not limited to the above embodiments. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention.

また、上記の実施形態の一部又は全部は、以下の付記のようにも記載されうるが、以下には限られない。   Moreover, although a part or all of said embodiment can be described also as the following additional remarks, it is not restricted to the following.

(付記1)
符号化対象映像に含まれるピクチャにおける処理対象ブロックの動きの予測を表す予測動きベクトルの探索の基準としてリファイン手段が受信する継承動きベクトルの数が、1つであるか又は2つであるかを検出する検出手段と、
前記継承動きベクトルの数が1つである場合、所定の選択方法に従って補填動きベクトル選択する補填ベクトル選択手段と、
前記継承動きベクトルと受信した前記補填ベクトルとに基づいて、処理対象ブロックの予測動きベクトルを検出する前記リファイン手段に、選択した前記補填動きベクトルを送信する送信手段と、
を備える映像符号化装置。
(Appendix 1)
Whether the number of inherited motion vectors received by the refiner is one or two as a reference for searching for a predicted motion vector representing prediction of motion of a processing target block in a picture included in an encoding target video. Detecting means for detecting;
When the number of inherited motion vectors is one, compensation vector selection means for selecting a compensation motion vector according to a predetermined selection method;
Transmitting means for transmitting the selected compensation motion vector to the refinement means for detecting a predicted motion vector of the processing target block based on the inherited motion vector and the received compensation vector;
A video encoding device comprising:

(付記2)
前記補填ベクトル選択手段は、前記処理対象ブロックの隣接ブロックにおける前記予測動きベクトルのいずれか、前記補填動きベクトルとして選択する
付記1に記載の映像符号化装置。
(Appendix 2)
The video encoding apparatus according to claim 1, wherein the compensation vector selection unit selects one of the predicted motion vectors in an adjacent block of the processing target block as the compensation motion vector.

(付記3)
前記補填ベクトル選択手段は、前記処理対象ブロックの隣接ブロックにおける前記予測動きベクトルに加えて、前記符号化対象映像における前記ピクチャの直前ピクチャの前記時間予測動きベクトルと、ゼロベクトルとのいずれかを、前記補填動きベクトルとして選択する
付記2に記載の映像符号化装置。
(Appendix 3)
The compensation vector selection means, in addition to the predicted motion vector in the adjacent block of the processing target block, any one of the temporal prediction motion vector of the picture immediately before the picture in the encoding target video and a zero vector, The video encoding device according to attachment 2, wherein the video encoding device is selected as the compensation motion vector.

(付記4)
複数の前記選択方法のいずれかを示す補填モードを受信する受信手段をさらに備え、
前記補填ベクトル選択手段は、前記補填モードが示す前記選択方法に従って前記補填動きベクトルを選択する
付記1乃至3のいずれか1項に記載の映像符号化装置。
(Appendix 4)
Receiving means for receiving a compensation mode indicating any of the plurality of selection methods;
The video encoding device according to any one of claims 1 to 3, wherein the compensation vector selection unit selects the compensation motion vector according to the selection method indicated by the compensation mode.

(付記5)
受信した前記継承動きベクトルに基づく第1の参照画像の探索範囲において前記符号化対象ブロックを最もよく予測する、第1の予測画像を検出し、前記補填ベクトルに基づく第2の参照画像の探索範囲において前記符号化対象ブロックを最もよく予測する、第2の予測画像を検出する前記リファイン手段と、
前記第1の予測画像及び前記第2の予測画像から、1つの予測画像を選択する予測選択手段と、
をさらに備える付記1乃至4のいずれか1項に記載の映像符号化装置。
(Appendix 5)
A first prediction image that best predicts the block to be encoded in the search range of the first reference image based on the received inherited motion vector is detected, and the search range of the second reference image based on the compensation vector is detected. The refinement means for detecting a second predicted image that best predicts the block to be encoded in
Prediction selection means for selecting one prediction image from the first prediction image and the second prediction image;
The video encoding device according to any one of appendices 1 to 4, further comprising:

(付記6)
受信した前記継承動きベクトルに基づく第1の参照画像の探索範囲における領域と、前記補填ベクトルに基づく第2の参照画像の探索範囲における領域との平均画像のうち、前記符号化対象ブロックを最もよく予測する前記平均画像を、第3の予測画像として検出する双予測生成手段を備え、
前記予測選択手段は、前記第1の予測画像、前記第2の予測画像及び前記第3の予測画像から、1つの予測画像を選択する
付記5に記載の映像符号化装置。
(Appendix 6)
Of the average images of the region in the search range of the first reference image based on the received inherited motion vector and the region in the search range of the second reference image based on the compensation vector, the coding target block is best. Bi-prediction generating means for detecting the average image to be predicted as a third predicted image;
The video encoding device according to claim 5, wherein the prediction selection unit selects one prediction image from the first prediction image, the second prediction image, and the third prediction image.

(付記7)
符号化対象映像に含まれるピクチャにおける処理対象ブロックの動きの予測を表す予測動きベクトルの探索の基準としてリファイン手段が受信する継承動きベクトルの数が、1つであるか又は2つであるかを検出し、
前記継承動きベクトルの数が1つである場合、所定の選択方法に従って補填動きベクトル選択し、
前記継承動きベクトルと受信した前記補填ベクトルとに基づいて、処理対象ブロックの予測動きベクトルを検出する前記リファイン手段に、選択した前記補填動きベクトルを送信する、
映像符号化方法。
(Appendix 7)
Whether the number of inherited motion vectors received by the refiner is one or two as a reference for searching for a predicted motion vector representing prediction of motion of a processing target block in a picture included in an encoding target video. Detect
If the number of inherited motion vectors is one, select a compensation motion vector according to a predetermined selection method,
Based on the inherited motion vector and the received compensation vector, the selected compensation motion vector is transmitted to the refinement unit that detects a predicted motion vector of the processing target block.
Video encoding method.

(付記8)
前記処理対象ブロックの隣接ブロックにおける前記予測動きベクトルのいずれか、前記補填動きベクトルとして選択する
付記7に記載の映像符号化方法。
(Appendix 8)
The video encoding method according to claim 7, wherein one of the predicted motion vectors in a block adjacent to the processing target block is selected as the compensation motion vector.

(付記9)
前記処理対象ブロックの隣接ブロックにおける前記予測動きベクトルに加えて、前記符号化対象映像における前記ピクチャの直前ピクチャの前記時間予測動きベクトルと、ゼロベクトルとのいずれかを、前記補填動きベクトルとして選択する
付記8に記載の映像符号化方法。
(Appendix 9)
In addition to the predicted motion vector in the block adjacent to the processing target block, either the temporally predicted motion vector of the picture immediately before the picture in the encoding target video or the zero vector is selected as the supplemental motion vector. The video encoding method according to appendix 8.

(付記10)
複数の前記選択方法のいずれかを示す補填モードを受信し、
前記補填モードが示す前記選択方法に従って前記補填動きベクトルを選択する
付記7乃至9のいずれか1項に記載の映像符号化方法。
(Appendix 10)
Receiving a compensation mode indicating one of a plurality of the selection methods;
The video encoding method according to any one of appendices 7 to 9, wherein the compensation motion vector is selected according to the selection method indicated by the compensation mode.

(付記11)
受信した前記継承動きベクトルに基づく第1の参照画像の探索範囲において前記符号化対象ブロックを最もよく予測する、第1の予測画像を検出し、前記補填ベクトルに基づく第2の参照画像の探索範囲において前記符号化対象ブロックを最もよく予測する、第2の予測画像を検出し、
前記第1の予測画像及び前記第2の予測画像から、1つの予測画像を選択する、
付記7乃至10のいずれか1項に記載の映像符号化方法。
(Appendix 11)
A first prediction image that best predicts the block to be encoded in the search range of the first reference image based on the received inherited motion vector is detected, and the search range of the second reference image based on the compensation vector is detected. A second predicted image that best predicts the block to be encoded at
Selecting one predicted image from the first predicted image and the second predicted image;
The video encoding method according to any one of appendices 7 to 10.

(付記12)
受信した前記継承動きベクトルに基づく第1の参照画像の探索範囲における領域と、前記補填ベクトルに基づく第2の参照画像の探索範囲における領域との平均画像のうち、前記符号化対象ブロックを最もよく予測する前記平均画像を、第3の予測画像として検出し、
前記第1の予測画像、前記第2の予測画像及び前記第3の予測画像から、1つの予測画像を選択する
付記11に記載の映像符号化方法。
(Appendix 12)
Of the average images of the region in the search range of the first reference image based on the received inherited motion vector and the region in the search range of the second reference image based on the compensation vector, the coding target block is best. Detecting the average image to be predicted as a third predicted image;
The video encoding method according to claim 11, wherein one predicted image is selected from the first predicted image, the second predicted image, and the third predicted image.

(付記13)
コンピュータを、
符号化対象映像に含まれるピクチャにおける処理対象ブロックの動きの予測を表す予測動きベクトルの探索の基準としてリファイン手段が受信する継承動きベクトルの数が、1つであるか又は2つであるかを検出する検出手段と、
前記継承動きベクトルの数が1つである場合、所定の選択方法に従って補填動きベクトル選択する補填ベクトル選択手段と、
前記継承動きベクトルと受信した前記補填ベクトルとに基づいて、処理対象ブロックの予測動きベクトルを検出する前記リファイン手段に、選択した前記補填動きベクトルを送信する送信手段と、
して動作させる映像符号化プログラム。
(Appendix 13)
Computer
Whether the number of inherited motion vectors received by the refiner is one or two as a reference for searching for a predicted motion vector representing prediction of motion of a processing target block in a picture included in an encoding target video. Detecting means for detecting;
When the number of inherited motion vectors is one, compensation vector selection means for selecting a compensation motion vector according to a predetermined selection method;
Transmitting means for transmitting the selected compensation motion vector to the refinement means for detecting a predicted motion vector of the processing target block based on the inherited motion vector and the received compensation vector;
Video coding program to be operated.

(付記14)
コンピュータを、
前記処理対象ブロックの隣接ブロックにおける前記予測動きベクトルのいずれか、前記補填動きベクトルとして選択する前記補填ベクトル選択手段と
して動作させる付記13に記載の映像符号化プログラム。
(Appendix 14)
Computer
14. The video encoding program according to appendix 13, which is operated as the compensation vector selection unit that selects any one of the predicted motion vectors in a block adjacent to the processing target block as the compensation motion vector.

(付記15)
コンピュータを、
前記処理対象ブロックの隣接ブロックにおける前記予測動きベクトルに加えて、前記符号化対象映像における前記ピクチャの直前ピクチャの前記時間予測動きベクトルと、ゼロベクトルとのいずれかを、前記補填動きベクトルとして選択する前記補填ベクトル選択手段と
して動作させる付記14に記載の映像符号化プログラム。
(Appendix 15)
Computer
In addition to the predicted motion vector in the block adjacent to the processing target block, either the temporally predicted motion vector of the picture immediately before the picture in the encoding target video or the zero vector is selected as the supplemental motion vector. 15. The video encoding program according to appendix 14, which is operated as the compensation vector selection unit.

(付記16)
コンピュータを、
複数の前記選択方法のいずれかを示す補填モードを受信する受信手段と、
前記補填モードが示す前記選択方法に従って前記補填動きベクトルを選択する前記補填ベクトル選択手段と、
して動作させる付記13乃至15のいずれか1項に記載の映像符号化プログラム。
(Appendix 16)
Computer
Receiving means for receiving a compensation mode indicating any of the plurality of selection methods;
The compensation vector selection means for selecting the compensation motion vector according to the selection method indicated by the compensation mode;
The video encoding program according to any one of supplementary notes 13 to 15, which is operated as described above.

(付記17)
コンピュータを、
受信した前記継承動きベクトルに基づく第1の参照画像の探索範囲において前記符号化対象ブロックを最もよく予測する、第1の予測画像を検出し、前記補填ベクトルに基づく第2の参照画像の探索範囲において前記符号化対象ブロックを最もよく予測する、第2の予測画像を検出する前記リファイン手段と、
前記第1の予測画像及び前記第2の予測画像から、1つの予測画像を選択する予測選択手段と、
して動作させる付記13乃至16のいずれか1項に記載の映像符号化プログラム。
(Appendix 17)
Computer
A first prediction image that best predicts the block to be encoded in the search range of the first reference image based on the received inherited motion vector is detected, and the search range of the second reference image based on the compensation vector is detected. The refinement means for detecting a second predicted image that best predicts the block to be encoded in
Prediction selection means for selecting one prediction image from the first prediction image and the second prediction image;
The video encoding program according to any one of supplementary notes 13 to 16, which is operated as described above.

コンピュータを、
(付記18)
受信した前記継承動きベクトルに基づく第1の参照画像の探索範囲における領域と、前記補填ベクトルに基づく第2の参照画像の探索範囲における領域との平均画像のうち、前記符号化対象ブロックを最もよく予測する前記平均画像を、第3の予測画像として検出する双予測生成手段と、
前記第1の予測画像、前記第2の予測画像及び前記第3の予測画像から、1つの予測画像を選択する前記予測選択手段と
して動作させる付記17に記載の映像符号化プログラム。
Computer
(Appendix 18)
Of the average images of the region in the search range of the first reference image based on the received inherited motion vector and the region in the search range of the second reference image based on the compensation vector, the coding target block is best. Bi-prediction generating means for detecting the average image to be predicted as a third predicted image;
18. The video encoding program according to appendix 17, which is operated as the prediction selection unit that selects one prediction image from the first prediction image, the second prediction image, and the third prediction image.

以上、実施形態を参照して本発明を説明したが、本発明は上記実施形態に限定されるものではない。本発明の構成や詳細には、本発明のスコープ内で当業者が理解し得る様々な変更をすることができる。   The present invention has been described above with reference to the embodiments, but the present invention is not limited to the above embodiments. Various changes that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention.

1 映像符号化装置
1A 映像符号化装置
1C 映像符号化装置
10 動きベクトル補填部
11 検出部
12 補填ベクトル選択部
13 送信部
14 受信部
20 スイッチ部
30 リファイン部
40 双予測生成部
50 予測選択部
60 AMVP生成部
70 モード決定部
100 動き補償部
101 ブロック分割部
102 事前解析部
103 イントラ予測部
104 切替部
105 整数変換部
106 量子化部
107 逆量子化部
108 逆整数変換部
109 符号化部
116 フィルタ部
117 フレーム記憶部
118 減算部
119 加算部
200 動き補償回路
210 動きベクトル補填回路
211 検出回路
212 補填ベクトル選択回路
213 送信回路
214 受信回路
216 フィルタ回路
217 フレームバッファ
218 減算回路
219 加算回路
220 スイッチ回路
221 第1スイッチ回路
222 第2スイッチ回路
230 リファイン回路
231 第1リファイン回路
232 第2リファイン回路
240 双予測生成回路
250 予測選択回路
260 AMVP生成回路
270 モード決定回路
300 動き補償回路
320 スイッチ回路
321 第1スイッチ回路
322 第2スイッチ回路
1000 コンピュータ
1001 プロセッサ
1002 メモリ
1003 記憶装置
1004 I/Oインタフェース
1005 記録媒体
DESCRIPTION OF SYMBOLS 1 Video coding apparatus 1A Video coding apparatus 1C Video coding apparatus 10 Motion vector compensation part 11 Detection part 12 Compensation vector selection part 13 Transmission part 14 Reception part 20 Switch part 30 Refinement part 40 Bi-prediction production | generation part 50 Prediction selection part 60 AMVP generation unit 70 mode determination unit 100 motion compensation unit 101 block division unit 102 pre-analysis unit 103 intra prediction unit 104 switching unit 105 integer conversion unit 106 quantization unit 107 inverse quantization unit 108 inverse integer conversion unit 109 encoding unit 116 filter Unit 117 frame storage unit 118 subtraction unit 119 addition unit 200 motion compensation circuit 210 motion vector compensation circuit 211 detection circuit 212 compensation vector selection circuit 213 transmission circuit 214 reception circuit 216 filter circuit 217 frame buffer 218 subtraction circuit 219 addition Circuit 220 switch circuit 221 first switch circuit 222 second switch circuit 230 refinement circuit 231 first refinement circuit 232 second refinement circuit 240 bi-prediction generation circuit 250 prediction selection circuit 260 AMVP generation circuit 270 mode determination circuit 300 motion compensation circuit 320 switch Circuit 321 First switch circuit 322 Second switch circuit 1000 Computer 1001 Processor 1002 Memory 1003 Storage device 1004 I / O interface 1005 Recording medium

Claims (12)

符号化対象映像に含まれるピクチャにおける処理対象ブロックの動きの予測を表す予測動きベクトルの探索の基準としてリファイン手段が受信する継承動きベクトルの数が、1つであるか又は2つであるかを検出する検出手段と、
前記継承動きベクトルの数が1つである場合、所定の選択方法に従って補填動きベクトル選択する補填ベクトル選択手段と、
前記継承動きベクトルと受信した前記補填ベクトルとに基づいて、処理対象ブロックの予測動きベクトルを検出する前記リファイン手段に、選択した前記補填動きベクトルを送信する送信手段と、
を備える映像符号化装置。
Whether the number of inherited motion vectors received by the refiner is one or two as a reference for searching for a predicted motion vector representing prediction of motion of a processing target block in a picture included in an encoding target video. Detecting means for detecting;
When the number of inherited motion vectors is one, compensation vector selection means for selecting a compensation motion vector according to a predetermined selection method;
Transmitting means for transmitting the selected compensation motion vector to the refinement means for detecting a predicted motion vector of the processing target block based on the inherited motion vector and the received compensation vector;
A video encoding device comprising:
前記補填ベクトル選択手段は、前記処理対象ブロックの隣接ブロックにおける前記予測動きベクトルのいずれか、前記補填動きベクトルとして選択する
請求項1に記載の映像符号化装置。
The video encoding apparatus according to claim 1, wherein the compensation vector selection unit selects one of the predicted motion vectors in an adjacent block of the processing target block as the compensation motion vector.
前記補填ベクトル選択手段は、前記処理対象ブロックの隣接ブロックにおける前記予測動きベクトルに加えて、前記符号化対象映像における前記ピクチャの直前ピクチャの前記時間予測動きベクトルと、ゼロベクトルとのいずれかを、前記補填動きベクトルとして選択する
請求項2に記載の映像符号化装置。
The compensation vector selection means, in addition to the predicted motion vector in the adjacent block of the processing target block, any one of the temporal prediction motion vector of the picture immediately before the picture in the encoding target video and a zero vector, The video encoding device according to claim 2, wherein the video encoding device is selected as the compensation motion vector.
複数の前記選択方法のいずれかを示す補填モードを受信する受信手段をさらに備え、
前記補填ベクトル選択手段は、前記補填モードが示す前記選択方法に従って前記補填動きベクトルを選択する
請求項1乃至3のいずれか1項に記載の映像符号化装置。
Receiving means for receiving a compensation mode indicating any of the plurality of selection methods;
4. The video encoding device according to claim 1, wherein the compensation vector selection unit selects the compensation motion vector according to the selection method indicated by the compensation mode. 5.
受信した前記継承動きベクトルに基づく第1の参照画像の探索範囲において前記符号化対象ブロックを最もよく予測する、第1の予測画像を検出し、前記補填ベクトルに基づく第2の参照画像の探索範囲において前記符号化対象ブロックを最もよく予測する、第2の予測画像を検出する前記リファイン手段と、
前記第1の予測画像及び前記第2の予測画像から、1つの予測画像を選択する予測選択手段と、
をさらに備える請求項1乃至4のいずれか1項に記載の映像符号化装置。
A first prediction image that best predicts the block to be encoded in the search range of the first reference image based on the received inherited motion vector is detected, and the search range of the second reference image based on the compensation vector is detected. The refinement means for detecting a second predicted image that best predicts the block to be encoded in
Prediction selection means for selecting one prediction image from the first prediction image and the second prediction image;
The video encoding device according to any one of claims 1 to 4, further comprising:
受信した前記継承動きベクトルに基づく第1の参照画像の探索範囲における領域と、前記補填ベクトルに基づく第2の参照画像の探索範囲における領域との平均画像のうち、前記符号化対象ブロックを最もよく予測する前記平均画像を、第3の予測画像として検出する双予測生成手段を備え、
前記予測選択手段は、前記第1の予測画像、前記第2の予測画像及び前記第3の予測画像から、1つの予測画像を選択する
請求項5に記載の映像符号化装置。
Of the average images of the region in the search range of the first reference image based on the received inherited motion vector and the region in the search range of the second reference image based on the compensation vector, the coding target block is best. Bi-prediction generating means for detecting the average image to be predicted as a third predicted image;
The video encoding device according to claim 5, wherein the prediction selection unit selects one prediction image from the first prediction image, the second prediction image, and the third prediction image.
符号化対象映像に含まれるピクチャにおける処理対象ブロックの動きの予測を表す予測動きベクトルの探索の基準としてリファイン手段が受信する継承動きベクトルの数が、1つであるか又は2つであるかを検出し、
前記継承動きベクトルの数が1つである場合、所定の選択方法に従って補填動きベクトル選択し、
前記継承動きベクトルと受信した前記補填ベクトルとに基づいて、処理対象ブロックの予測動きベクトルを検出する前記リファイン手段に、選択した前記補填動きベクトルを送信する、
映像符号化方法。
Whether the number of inherited motion vectors received by the refiner is one or two as a reference for searching for a predicted motion vector representing prediction of motion of a processing target block in a picture included in an encoding target video. Detect
If the number of inherited motion vectors is one, select a compensation motion vector according to a predetermined selection method,
Based on the inherited motion vector and the received compensation vector, the selected compensation motion vector is transmitted to the refinement unit that detects a predicted motion vector of the processing target block.
Video encoding method.
前記処理対象ブロックの隣接ブロックにおける前記予測動きベクトルのいずれか、前記補填動きベクトルとして選択する
請求項7に記載の映像符号化方法。
The video encoding method according to claim 7, wherein one of the predicted motion vectors in a block adjacent to the processing target block is selected as the compensation motion vector.
前記処理対象ブロックの隣接ブロックにおける前記予測動きベクトルに加えて、前記符号化対象映像における前記ピクチャの直前ピクチャの前記時間予測動きベクトルと、ゼロベクトルとのいずれかを、前記補填動きベクトルとして選択する
請求項8に記載の映像符号化方法。
In addition to the predicted motion vector in the block adjacent to the processing target block, either the temporally predicted motion vector of the picture immediately before the picture in the encoding target video or the zero vector is selected as the supplemental motion vector. The video encoding method according to claim 8.
コンピュータを、
符号化対象映像に含まれるピクチャにおける処理対象ブロックの動きの予測を表す予測動きベクトルの探索の基準としてリファイン手段が受信する継承動きベクトルの数が、1つであるか又は2つであるかを検出する検出手段と、
前記継承動きベクトルの数が1つである場合、所定の選択方法に従って補填動きベクトル選択する補填ベクトル選択手段と、
前記継承動きベクトルと受信した前記補填ベクトルとに基づいて、処理対象ブロックの予測動きベクトルを検出する前記リファイン手段に、選択した前記補填動きベクトルを送信する送信手段と、
して動作させる映像符号化プログラム。
Computer
Whether the number of inherited motion vectors received by the refiner is one or two as a reference for searching for a predicted motion vector representing prediction of motion of a processing target block in a picture included in an encoding target video. Detecting means for detecting;
When the number of inherited motion vectors is one, compensation vector selection means for selecting a compensation motion vector according to a predetermined selection method;
Transmitting means for transmitting the selected compensation motion vector to the refinement means for detecting a predicted motion vector of the processing target block based on the inherited motion vector and the received compensation vector;
Video coding program to be operated.
コンピュータを、
前記処理対象ブロックの隣接ブロックにおける前記予測動きベクトルのいずれか、前記補填動きベクトルとして選択する前記補填ベクトル選択手段と
して動作させる請求項10に記載の映像符号化プログラム。
Computer
The video encoding program according to claim 10, wherein the video encoding program is operated as the compensation vector selection unit that selects any one of the predicted motion vectors in a block adjacent to the processing target block as the compensation motion vector.
コンピュータを、
前記処理対象ブロックの隣接ブロックにおける前記予測動きベクトルに加えて、前記符号化対象映像における前記ピクチャの直前ピクチャの前記時間予測動きベクトルと、ゼロベクトルとのいずれかを、前記補填動きベクトルとして選択する前記補填ベクトル選択手段と
して動作させる請求項11に記載の映像符号化プログラム。
Computer
In addition to the predicted motion vector in the block adjacent to the processing target block, either the temporally predicted motion vector of the picture immediately before the picture in the encoding target video or the zero vector is selected as the supplemental motion vector. 12. The video encoding program according to claim 11, wherein said video encoding program is operated as said supplement vector selection means.
JP2015059181A 2015-03-23 2015-03-23 Video encoding apparatus, video encoding method, and video encoding program Active JP6596864B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015059181A JP6596864B2 (en) 2015-03-23 2015-03-23 Video encoding apparatus, video encoding method, and video encoding program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015059181A JP6596864B2 (en) 2015-03-23 2015-03-23 Video encoding apparatus, video encoding method, and video encoding program

Publications (2)

Publication Number Publication Date
JP2016178592A true JP2016178592A (en) 2016-10-06
JP6596864B2 JP6596864B2 (en) 2019-10-30

Family

ID=57069366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015059181A Active JP6596864B2 (en) 2015-03-23 2015-03-23 Video encoding apparatus, video encoding method, and video encoding program

Country Status (1)

Country Link
JP (1) JP6596864B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017112416A (en) * 2015-12-14 2017-06-22 日本電気株式会社 Video encoder, video coding method and video coding program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000308064A (en) * 1999-04-22 2000-11-02 Mitsubishi Electric Corp Motion vector detecting device
JP2007166545A (en) * 2005-12-16 2007-06-28 Canon Inc Motion vector detection device and method
JP2011528533A (en) * 2008-07-16 2011-11-17 ソニー株式会社 Selective starting point selection for motion estimation iterative search

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000308064A (en) * 1999-04-22 2000-11-02 Mitsubishi Electric Corp Motion vector detecting device
JP2007166545A (en) * 2005-12-16 2007-06-28 Canon Inc Motion vector detection device and method
JP2011528533A (en) * 2008-07-16 2011-11-17 ソニー株式会社 Selective starting point selection for motion estimation iterative search

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
K. MCCANN, ET AL.: "High Efficiency Video Coding (HEVC) Test Model 16 (HM 16) Improved Encoder Description", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11, JPN6018050990, 6 February 2015 (2015-02-06), pages pp. 19-26, 44-48, 52 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017112416A (en) * 2015-12-14 2017-06-22 日本電気株式会社 Video encoder, video coding method and video coding program

Also Published As

Publication number Publication date
JP6596864B2 (en) 2019-10-30

Similar Documents

Publication Publication Date Title
CN111034194B (en) Method for coding and decoding video image and electronic equipment
CN111937391B (en) Video processing method and apparatus for sub-block motion compensation in video codec systems
US20180199054A1 (en) Multi-Hypotheses Merge Mode
WO2017148345A1 (en) Method and apparatus of video coding with affine motion compensation
TWI621352B (en) Motion vector prediction decoding method and prediction decoding device
JP2019134455A (en) Encoder, encoding method, decoder, decoding method and program
KR20110008653A (en) Method and apparatus for predicting motion vector and method and apparatus of encoding/decoding a picture using the same
US20180343462A1 (en) Moving picture coding device, moving picture coding method, and moving picture coding program, and moving picture decoding device, moving picture decoding method, and moving picture decoding program
CN110832862B (en) Error tolerant and parallel processing of motion vector derivation at decoding end
JP5835521B1 (en) Moving picture decoding apparatus, moving picture decoding method, moving picture decoding program, receiving apparatus, receiving method, and receiving program
JP5725006B2 (en) Moving picture decoding apparatus, moving picture decoding method, moving picture decoding program, receiving apparatus, receiving method, and receiving program
JP6596864B2 (en) Video encoding apparatus, video encoding method, and video encoding program
WO2015008339A1 (en) Video image encoding device, video image encoding method, video image decoding device, and video image decoding method
JP5725009B2 (en) Moving picture decoding apparatus, moving picture decoding method, moving picture decoding program, receiving apparatus, receiving method, and receiving program
JP2011205212A (en) Moving image encoding device, and motion vector detection method
JP6638366B2 (en) Video coding apparatus, video coding method, and video coding program
JP5843040B1 (en) Moving picture decoding apparatus, moving picture decoding method, moving picture decoding program, receiving apparatus, receiving method, and receiving program
JP2013077897A (en) Image decoding device, image decoding method and image decoding program
JP2013077896A (en) Image encoding device, image encoding method and image encoding program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190108

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190304

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190903

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190916

R150 Certificate of patent or registration of utility model

Ref document number: 6596864

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150