JP2017092651A - Video coding device, video decoding device, video coding method, video decoding method, video coding program, and video decoding program - Google Patents

Video coding device, video decoding device, video coding method, video decoding method, video coding program, and video decoding program Download PDF

Info

Publication number
JP2017092651A
JP2017092651A JP2015218588A JP2015218588A JP2017092651A JP 2017092651 A JP2017092651 A JP 2017092651A JP 2015218588 A JP2015218588 A JP 2015218588A JP 2015218588 A JP2015218588 A JP 2015218588A JP 2017092651 A JP2017092651 A JP 2017092651A
Authority
JP
Japan
Prior art keywords
motion vector
candidate
block
prediction
target block
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
JP2015218588A
Other languages
Japanese (ja)
Other versions
JP6491587B2 (en
Inventor
忍 工藤
Shinobu Kudo
忍 工藤
正樹 北原
Masaki Kitahara
正樹 北原
淳 清水
Atsushi Shimizu
淳 清水
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.)
Nippon Telegraph and Telephone Corp
Original Assignee
Nippon Telegraph and Telephone 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 Nippon Telegraph and Telephone Corp filed Critical Nippon Telegraph and Telephone Corp
Priority to JP2015218588A priority Critical patent/JP6491587B2/en
Publication of JP2017092651A publication Critical patent/JP2017092651A/en
Application granted granted Critical
Publication of JP6491587B2 publication Critical patent/JP6491587B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To suppress reduction of accuracy of a prediction image while suppressing deterioration of coding efficiency.SOLUTION: A video coding device coding a video per block unit by using an intra-prediction and an inter-prediction, comprises: prediction motion vector conducting means of conducting a prediction motion vector candidate from a candidate block surrounding a target block; and prediction motion vector setting means of, when an intra-prediction mode is selected in the target block, setting the prediction motion vector conducted by the prediction motion vector guiding means as motion vector of the target block.SELECTED DRAWING: Figure 1

Description

本発明は、映像符号化装置、映像復号装置、映像符号化方法、映像復号方法、映像符号化プログラム及び映像復号プログラムに関する。   The present invention relates to a video encoding device, a video decoding device, a video encoding method, a video decoding method, a video encoding program, and a video decoding program.

映像符号化の標準規格としてH.264/AVCやH.265/HEVCと呼ばれる映像符号化方式が策定されている。以下ではHEVC(非特許文献1、以降従来技術と称する)を例に説明する。HEVCでは符号化対象ピクチャをLCU(Largest Coding Unit)と呼ばれるブロックに分割し、LCUごとに符号化を行う。LCUは更に四分木で最大3回まで分割することができ、最大64画素×64画素(以下、n画素×n画素をnxn(nは8,16,32,64)と略記)から8x8までのCU(Coding Unit)と呼ばれるブロックで構成される。   H.264 is a standard for video coding. H.264 / AVC and H.264 A video encoding method called H.265 / HEVC has been formulated. Hereinafter, HEVC (Non-Patent Document 1, hereinafter referred to as “prior art”) will be described as an example. In HEVC, an encoding target picture is divided into blocks called LCUs (Largest Coding Units), and encoding is performed for each LCU. The LCU can be further divided into a maximum of 3 times by a quadtree, from a maximum of 64 pixels × 64 pixels (hereinafter, n pixels × n pixels are abbreviated as nxn (n is 8, 16, 32, 64)) to 8 × 8. It is composed of blocks called CU (Coding Unit).

CUごとに異なる予測モードの符号化を行うことができ、HEVCでは符号化対象ブロックの隣接符号化済み画素から予測するイントラ予測モード、符号化済みフレームから予測するインター予測モードが規定されている。インター予測モードでは差分動きベクトルを伝送する適応動きベクトル予測符号化と差分動きベクトルを伝送しないマージ符号化の2種類の動き情報符号化モードが採用されている。以下、2つの符号化モードについて説明する。   Different prediction modes can be encoded for each CU. In HEVC, an intra prediction mode for predicting from adjacent encoded pixels of an encoding target block and an inter prediction mode for predicting from an encoded frame are defined. In the inter prediction mode, two types of motion information encoding modes are employed, that is, adaptive motion vector predictive encoding that transmits a differential motion vector and merge encoding that does not transmit a differential motion vector. Hereinafter, the two encoding modes will be described.

(適応動きベクトル予測符号化)
適応動きベクトル予測符号化では予測方向を特定する参照画像リスト、参照先フレームを特定する参照画像インデックス、符号化対象ブロックの周囲或いは符号化済みフレームの符号化済みブロックから導出する2つの予測動きベクトル候補リストの中から使用する予測動きベクトル候補を特定する予測動きベクトルインデックス、予測動きベクトルとの差分である差分動きベクトルを参照画像リスト(L0/L1)ごとにそれぞれ符号化する。
(Adaptive motion vector predictive coding)
In adaptive motion vector predictive coding, a reference image list for specifying a prediction direction, a reference image index for specifying a reference frame, two prediction motion vectors derived from a block around an encoding target block or an encoded block of an encoded frame A prediction motion vector index that identifies a prediction motion vector candidate to be used from the candidate list and a difference motion vector that is a difference from the prediction motion vector are encoded for each reference image list (L0 / L1).

予測動きベクトル候補リストは図19に示す符号化対象ブロックに隣接する空間予測動きベクトル候補と図20に示す符号化済みフレームの時間予測動きベクトル候補、ゼロ予測動きベクトル候補の優先順位でそれぞれ導出される。空間予測動きベクトル候補はブロック群A(A0,A1)、ブロック群B(B0,B1,B2)からそれぞれ1つずつ導出され、A0⇒A1、B0⇒B1⇒B2の優先順位でそれぞれスキャンされる。また、候補ブロックがインター予測モードであるか否かを判定し、インター予測モードの場合にのみ導出される。更に符号化対象ブロックの参照画像と同一の参照画像を持つ候補が優先され、参照画像が異なる場合は参照画像間距離によってスケーリングされる。ただし、スケーリングが必要となる候補は予測動きベクトル候補リストに追加される最初の1つのみに限定される。   The motion vector predictor candidate list is derived in the priority order of the spatial motion vector predictor candidate adjacent to the encoding target block shown in FIG. 19 and the temporal motion vector candidate candidate and the zero motion vector predictor candidate of the encoded frame shown in FIG. The One spatial prediction motion vector candidate is derived from each of the block group A (A0, A1) and the block group B (B0, B1, B2), and scanned with the priority order of A0⇒A1, B0⇒B1⇒B2. . Further, it is determined whether or not the candidate block is in the inter prediction mode, and is derived only in the case of the inter prediction mode. Further, a candidate having the same reference image as the reference image of the block to be encoded is prioritized, and when the reference images are different, scaling is performed by the distance between the reference images. However, the candidates that require scaling are limited to the first one added to the motion vector predictor candidate list.

また、各ブロック群の中で同一の動きベクトルが導出された場合は優先順位の高い候補のみを追加し、優先順位の低い候補は追加しない。空間予測動きベクトル候補の合計数が2に満たない場合は時間予測動きベクトル候補が導出される。時間予測動きベクトル候補はスライスヘッダで指定された符号化済みフレーム(ColPic)上から導出され、H⇒C3の優先順位でスキャンされる。ここでも同様に候補ブロックがインター予測モードである場合にのみ導出され、動きベクトルは参照画像間距離に応じてスケーリングされる。空間予測動きベクトル候補、時間予測動きベクトル候補の合計数が2に満たない場合はゼロ予測動きベクトル(水平成分、垂直成分が0のベクトル)が2つに満たすまで追加される。   Further, when the same motion vector is derived in each block group, only candidates with high priority are added, and candidates with low priority are not added. If the total number of spatial prediction motion vector candidates is less than 2, temporal prediction motion vector candidates are derived. The temporal prediction motion vector candidate is derived from the encoded frame (ColPic) specified by the slice header, and scanned with the priority order of H⇒C3. Here, similarly, only when the candidate block is in the inter prediction mode, the motion vector is scaled according to the distance between the reference images. If the total number of spatially predicted motion vector candidates and temporally predicted motion vector candidates is less than 2, it is added until zero predicted motion vectors (vectors having zero horizontal component and zero vertical component) are satisfied.

(マージ符号化)
マージ符号化では符号化対象ブロックの周囲或いは符号化済みフレームの符号化済みブロックから導出される最大5つのマージ候補リストの中から使用する候補のインデックスのみを符号化する。マージ候補リストは空間マージ候補、時間マージ候補、結合双予測候補、ゼロマージ候補の優先順位で導出される。空間マージ候補、時間マージ候補の候補ブロックは図19及び図20と同一である。空間マージ候補はA1⇒B1⇒B0⇒A0⇒B2の優先順位でスキャンされ、候補ブロックがインター予測モードの場合にのみ導出される。ただし、マージ候補リストへの追加において、重複して追加されにくくするために以下の場合には優先順位の高い候補のみを追加し、優先順位の低い候補は追加しない。
・B1の動き情報=A1の動き情報
・B0の動き情報=B1の動き情報
・A0の動き情報=A1の動き情報
・B2の動き情報=A1又はB1の動き情報
(Merge encoding)
In merge encoding, only the index of a candidate to be used is encoded from a maximum of five merge candidate lists derived from the encoded block around the encoding target block or the encoded frame. The merge candidate list is derived in the priority order of the spatial merge candidate, temporal merge candidate, combined bi-prediction candidate, and zero merge candidate. The candidate blocks of the spatial merge candidate and the temporal merge candidate are the same as those in FIGS. Spatial merge candidates are scanned with priorities of A1⇒B1⇒B0⇒A0⇒B2, and are derived only when the candidate block is in the inter prediction mode. However, in order to make it difficult to add duplicates to the merge candidate list, only candidates with high priority are added in the following cases, and candidates with low priority are not added.
-B1 motion information = A1 motion information-B0 motion information = B1 motion information-A0 motion information = A1 motion information-B2 motion information = A1 or B1 motion information

時間マージ候補は適応動きベクトル予測符号化と同一で、参照画像インデックスは0となる。結合双予測候補はL0/L1それぞれの動き情報を異なるマージインデックスの組み合わせで最大2つ導出される。空間マージ候補、予測マージ候補、結合双予測候補の合計が5に満たない場合にはゼロマージ候補(双方向でそれぞれ参照画像インデックスが0で水平成分、垂直成分が0のベクトル)が5つに満たすまで追加される。   The temporal merge candidate is the same as the adaptive motion vector predictive coding, and the reference image index is 0. Up to two combined bi-prediction candidates are derived for each of the L0 / L1 motion information with different merge index combinations. When the sum of the spatial merge candidate, the prediction merge candidate, and the combined bi-prediction candidate is less than 5, zero merge candidates (vectors in which the bi-directional reference image index is 0, the horizontal component, and the vertical component are 0) satisfy 5 Will be added.

株式会社インプレスジャパン,”インプレス標準教科書シリーズ H.265/HEVC教科書,” 2013年Impress Japan Co., Ltd., “Impress Standard Textbook Series H.265 / HEVC Textbook,” 2013

従来技術では2種類の動き情報符号化モードはいずれも符号化対象ブロックに隣接する候補ブロック或いは符号化済みフレームの候補ブロックから予測動きベクトル候補リストを導出する際に、候補ブロックがインター予測モードでない場合は予測動きベクトルを導出することができない。特に、候補ブロックが全てイントラ予測モードで符号化されている場合には予測動きベクトル候補リスト或いはマージ候補リストには全てゼロ動きベクトル或いはゼロマージ候補が追加される。その場合、適応動きベクトル予測符号化においては差分動きベクトルの符号量を小さくすることができないため符号化効率が悪化し、マージ符号化においては予測画像がゼロマージ候補のみとなり、予測画像の精度が低下するという問題がある。   In the prior art, both of the two types of motion information encoding modes are not in the inter prediction mode when the motion vector predictor candidate list is derived from the candidate block adjacent to the encoding target block or the candidate block of the encoded frame. In this case, a predicted motion vector cannot be derived. In particular, when all candidate blocks are encoded in the intra prediction mode, zero motion vectors or zero merge candidates are added to the prediction motion vector candidate list or merge candidate list. In that case, the coding efficiency deteriorates because the code amount of the difference motion vector cannot be reduced in the adaptive motion vector predictive coding, and the prediction image becomes only the zero merge candidate in the merge coding, and the accuracy of the prediction image is lowered. There is a problem of doing.

例えば、図21に示すように動きのある物体の途中で別の物体によるオクルージョンが発生するような場合は別の物体がイントラ予測モードになりやすい。また、平坦領域や単純な模様などの場合には連続する同一物体中であってもイントラ予測モードになる可能性が高いため、上記のような問題が発生する。   For example, as shown in FIG. 21, when an occlusion due to another object occurs in the middle of a moving object, another object is likely to be in the intra prediction mode. Further, in the case of a flat region or a simple pattern, there is a high possibility that the intra prediction mode is set even in the same continuous object.

本発明は、このような事情に鑑みてなされたもので、符号化効率の悪化を抑えつつ、予測画像の精度が低下するのを防ぐことができる映像符号化装置、映像復号装置、映像符号化方法、映像復号方法、映像符号化プログラム及び映像復号プログラムを提供することを目的とする。   The present invention has been made in view of such circumstances, and a video encoding device, a video decoding device, and a video encoding that can prevent deterioration in accuracy of a predicted image while suppressing deterioration in encoding efficiency. It is an object to provide a method, a video decoding method, a video encoding program, and a video decoding program.

本発明の一態様は、イントラ予測及びインター予測を用いて映像をブロック単位で符号化する映像符号化装置であって、対象ブロックの周囲の候補ブロックから予測動きベクトル候補を導出する予測動きベクトル導出手段と、前記対象ブロックでイントラ予測モードが選択されている場合、前記予測動きベクトル導出手段によって導出した予測動きベクトルを前記対象ブロックの動きベクトルとして設定する予測動きベクトル設定手段とを備える映像符号化装置である。   One aspect of the present invention is a video encoding apparatus that encodes video in units of blocks using intra prediction and inter prediction, and derives a motion vector predictor that derives motion vector predictor candidates from candidate blocks around the target block. And a prediction motion vector setting means for setting, as the motion vector of the target block, a prediction motion vector derived by the prediction motion vector deriving means when an intra prediction mode is selected in the target block. Device.

本発明の一態様は、前記映像符号化装置であって、前記予測動きベクトル導出手段は、前記候補ブロックが前記イントラ予測モードである場合には前記予測動きベクトル設定手段で設定された動きベクトルを前記対象ブロックの予測動きベクトル候補として参照する映像符号化装置である。   One aspect of the present invention is the video encoding device, wherein the predicted motion vector deriving unit determines the motion vector set by the predicted motion vector setting unit when the candidate block is in the intra prediction mode. The video encoding apparatus refers to a motion vector predictor candidate of the target block.

本発明の一態様は、前記映像符号化装置であって、前記予測動きベクトル導出手段は、前記対象ブロックの周囲或いは符号化済みフレームの符号化済みブロックの中から所定の順序でインター予測モードであるかを判定し、インター予測モードである候補ブロックから予測動きベクトル候補を導出し、予測動きベクトル候補数が所定の値に満たない場合には、インター予測モードでない前記候補ブロックから予測動きベクトル候補を導出する。   One aspect of the present invention is the video encoding device, wherein the prediction motion vector deriving unit performs inter prediction mode in a predetermined order around the target block or from the encoded blocks of the encoded frame. A motion vector candidate is derived from a candidate block that is in the inter prediction mode, and if the number of motion vector predictor candidates is less than a predetermined value, a motion vector predictor candidate from the candidate block that is not in the inter prediction mode Is derived.

本発明の一態様は、前記映像符号化装置であって、前記予測動きベクトル設定手段は、導出した前記予測動きベクトル候補の中から動きベクトルの統計量に基づく所定の条件を満たす予測動きベクトル候補を設定する。   One aspect of the present invention is the video encoding device, wherein the motion vector predictor setting unit satisfies a motion vector predictor candidate that satisfies a predetermined condition based on a motion vector statistic among the motion vector predictor candidates derived. Set.

本発明の一態様は、前記映像符号化装置であって、前記条件は、動きベクトルの各要素の絶対値和が最大である。   One aspect of the present invention is the video encoding device, wherein the condition is that a sum of absolute values of each element of the motion vector is maximum.

本発明の一態様は、前記映像符号化装置であって、前記条件は、前記対象ブロックの周囲或いは符号化済みフレームの符号化済みブロックの中で最頻動きベクトルである。   One aspect of the present invention is the video encoding device, wherein the condition is a mode motion vector around the target block or in an encoded block of an encoded frame.

本発明の一態様は、イントラ予測及びインター予測を用いて映像をブロック単位で符号化された符号化データを復号する映像復号装置であって、対象ブロックの周囲の候補ブロックから予測動きベクトル候補を導出する予測動きベクトル導出手段と、前記対象ブロックでイントラ予測モードが選択されている場合、前記予測動きベクトル導出手段によって導出した予測動きベクトルを前記対象ブロックの動きベクトルとして設定する予測動きベクトル設定手段とを備える映像復号装置である。   One aspect of the present invention is a video decoding device that decodes encoded data obtained by encoding a video in units of blocks using intra prediction and inter prediction, and predicting motion vector candidates from candidate blocks around the target block. A prediction motion vector deriving unit for deriving and a prediction motion vector setting unit for setting the prediction motion vector derived by the prediction motion vector deriving unit as a motion vector of the target block when an intra prediction mode is selected in the target block A video decoding device.

本発明の一態様は、前記映像復号装置であって、前記予測動きベクトル導出手段は、前記候補ブロックが前記イントラ予測モードである場合には前記予測動きベクトル設定手段で設定された動きベクトルを前記対象ブロックの予測動きベクトル候補として参照する映像復号装置である。   One aspect of the present invention is the video decoding device, in which the motion vector predictor deriving unit calculates the motion vector set by the motion vector predictor setting unit when the candidate block is in the intra prediction mode. It is a video decoding apparatus referred to as a prediction motion vector candidate of a target block.

本発明の一態様は、前記映像復号装置であって、前記予測動きベクトル導出手段は、前記対象ブロックの周囲或いは符号化済みフレームの符号化済みブロックの中から所定の順序でインター予測モードであるかを判定し、インター予測モードである前記候補ブロックから予測動きベクトル候補を導出し、予測動きベクトル候補数が所定の値に満たない場合には、インター予測モードでない前記候補ブロックから予測動きベクトル候補を導出する。   One aspect of the present invention is the video decoding device, wherein the prediction motion vector deriving unit is in the inter prediction mode in a predetermined order around the target block or the encoded block of the encoded frame. And predicting motion vector candidates from the candidate block in the inter prediction mode, and if the number of motion vector predictor candidates is less than a predetermined value, predicting motion vector candidates from the candidate block not in the inter prediction mode Is derived.

本発明の一態様は、前記映像復号装置であって、前記予測動きベクトル設定手段は、導出した前記予測動きベクトル候補の中から動きベクトルの統計量に基づく所定の条件を満たす予測動きベクトル候補を設定する。   One aspect of the present invention is the video decoding device, wherein the motion vector predictor setting unit selects a motion vector predictor candidate that satisfies a predetermined condition based on a motion vector statistic from the predicted motion vector candidates. Set.

本発明の一態様は、前記映像復号装置であって、前記条件は、動きベクトルの各要素の絶対値和が最大である。   One aspect of the present invention is the video decoding device, wherein the condition is that a sum of absolute values of elements of a motion vector is maximum.

本発明の一態様は、前記映像復号装置であって、る前記条件は、前記対象ブロックの周囲或いは符号化済みフレームの符号化済みブロックの中で最頻動きベクトルである。   One aspect of the present invention is the video decoding device, wherein the condition is a mode motion vector around the target block or in an encoded block of an encoded frame.

本発明の一態様は、イントラ予測及びインター予測を用いて映像をブロック単位で符号化する映像符号化装置が行う映像符号化方法であって、対象ブロックの周囲の候補ブロックから予測動きベクトル候補を導出する予測動きベクトル導出ステップと、前記対象ブロックでイントラ予測モードが選択されている場合、前記予測動きベクトル導出ステップによって導出した予測動きベクトルを前記対象ブロックの動きベクトルとして設定する予測動きベクトル設定ステップとを有する映像符号化方法である。   One aspect of the present invention is a video encoding method performed by a video encoding apparatus that encodes video in units of blocks using intra prediction and inter prediction, and predicting motion vector candidates from candidate blocks around a target block. A prediction motion vector deriving step to be derived and a prediction motion vector setting step of setting the prediction motion vector derived by the prediction motion vector deriving step as a motion vector of the target block when the intra prediction mode is selected in the target block And a video encoding method.

本発明の一態様は、前記映像符号化方法であって、前記予測動きベクトル導出ステップでは、前記候補ブロックが前記イントラ予測モードである場合には前記予測動きベクトル設定ステップで設定された動きベクトルを前記対象ブロックの予測動きベクトル候補として参照する映像符号化方法である。   One aspect of the present invention is the video encoding method, wherein in the prediction motion vector derivation step, the motion vector set in the prediction motion vector setting step is used when the candidate block is in the intra prediction mode. The video encoding method is referred to as a predicted motion vector candidate of the target block.

本発明の一態様は、イントラ予測及びインター予測を用いて映像をブロック単位で符号化された符号化データを復号する映像復号装置が行う映像復号方法であって、対象ブロックの周囲の候補ブロックから予測動きベクトル候補を導出する予測動きベクトル導出ステップと、前記対象ブロックでイントラ予測モードが選択されている場合、前記予測動きベクトル導出ステップによって導出した予測動きベクトルを前記対象ブロックの動きベクトルとして設定する予測動きベクトル設定ステップとを有する映像復号方法である。   One aspect of the present invention is a video decoding method performed by a video decoding apparatus that decodes encoded data in which a video is encoded in units of blocks using intra prediction and inter prediction, and includes a candidate block around a target block. When a prediction motion vector derivation step for deriving a prediction motion vector candidate and an intra prediction mode is selected in the target block, the prediction motion vector derived by the prediction motion vector derivation step is set as a motion vector of the target block. A predictive motion vector setting step.

本発明の一態様は、前記映像復号方法であって、前記予測動きベクトル導出ステップでは、前記候補ブロックが前記イントラ予測モードである場合には前記予測動きベクトル設定ステップで設定された動きベクトルを前記対象ブロックの予測動きベクトル候補として参照する映像復号方法である。   One aspect of the present invention is the video decoding method, wherein, in the prediction motion vector derivation step, the motion vector set in the prediction motion vector setting step is used when the candidate block is in the intra prediction mode. This is a video decoding method that is referred to as a predicted motion vector candidate of a target block.

本発明の一態様は、コンピュータを、前記映像符号化装置として機能させるための映像符号化プログラムである。   One aspect of the present invention is a video encoding program for causing a computer to function as the video encoding device.

本発明の一態様は、コンピュータを、前記映像復号装置として機能させるための映像復号プログラムである。   One aspect of the present invention is a video decoding program for causing a computer to function as the video decoding device.

本発明によれば、符号化効率の悪化を抑えつつ、予測画像の精度が低下するのを防ぐことができるという効果が得られる。   According to the present invention, it is possible to obtain an effect that the accuracy of a predicted image can be prevented from being lowered while suppressing deterioration in encoding efficiency.

本発明の第1の実施形態における映像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the video coding apparatus in the 1st Embodiment of this invention. 従来技術における映像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the video coding apparatus in a prior art. 本発明の第1の実施形態における映像復号装置の構成を示すブロック図である。It is a block diagram which shows the structure of the video decoding apparatus in the 1st Embodiment of this invention. 第1の実施形態の映像符号化装置におけるインター動き情報生成部23の構成を示すブロック図である。It is a block diagram which shows the structure of the inter motion information generation part 23 in the video coding apparatus of 1st Embodiment. 第1の実施形態の映像復号装置におけるインター動き情報生成部51の構成を示すブロック図である。It is a block diagram which shows the structure of the inter motion information generation part 51 in the video decoding apparatus of 1st Embodiment. 第1の実施形態におけるイントラ動き情報生成部24の構成を示すブロック図である。It is a block diagram which shows the structure of the intra motion information generation part 24 in 1st Embodiment. 第1の実施形態における動きベクトル設定処理動作を示すフローチャートである。It is a flowchart which shows the motion vector setting process operation in 1st Embodiment. 図4、図5及び図6に示す予測動きベクトル候補リスト生成部232、511、241の処理動作を示すフローチャートである。7 is a flowchart showing processing operations of predicted motion vector candidate list generation units 232, 511, and 241 shown in FIGS. 4, 5, and 6. 従来技術における予測動きベクトル候補リスト生成部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the prediction motion vector candidate list production | generation part in a prior art. 本発明の第2の実施形態における映像符号化装置の構成を示すブロック図である。It is a block diagram which shows the structure of the video coding apparatus in the 2nd Embodiment of this invention. 本発明の第2の実施形態における映像復号装置の構成を示すブロック図である。It is a block diagram which shows the structure of the video decoding apparatus in the 2nd Embodiment of this invention. 第2の実施形態におけるインター動き情報生成部23の構成を示すブロック図である。It is a block diagram which shows the structure of the inter motion information generation part 23 in 2nd Embodiment. 第2の実施形態におけるインター動き情報生成部51の構成を示すブロック図である。It is a block diagram which shows the structure of the inter motion information generation part 51 in 2nd Embodiment. 第2の実施形態におけるイントラ動き情報生成部24、50の構成を示すブロック図である。It is a block diagram which shows the structure of the intra motion information production | generation parts 24 and 50 in 2nd Embodiment. 図12、図13及び図14に示す予測動きベクトル候補リスト生成部231、512、241の処理動作を示すフローチャートである。It is a flowchart which shows the processing operation of the motion vector predictor candidate list production | generation part 231,512,241 shown in FIG.12, FIG13 and FIG.14. 図12、図13及び図14に示す予測動きベクトル候補リスト生成部231、512、241の処理動作を示すフローチャートである。It is a flowchart which shows the processing operation of the motion vector predictor candidate list production | generation part 231,512,241 shown in FIG.12, FIG13 and FIG.14. 第3の実施形態におけるイントラ動き情報生成部24、50の構成を示すブロック図である。It is a block diagram which shows the structure of the intra motion information production | generation parts 24 and 50 in 3rd Embodiment. 第3の実施形態における動きベクトル設定処理動作を示すフローチャートである。It is a flowchart which shows the motion vector setting process operation in 3rd Embodiment. 符号化対象ブロックに隣接する空間予測動きベクトル候補を示す説明図である。It is explanatory drawing which shows the spatial prediction motion vector candidate adjacent to an encoding object block. 符号化済みフレームの時間予測動きベクトル候補を示す説明図である。It is explanatory drawing which shows the temporal motion vector predictor candidate of an encoded frame. 動きのある物体の途中で別の物体によるオクルージョンが発生するような場合は別の物体がイントラ予測モードになりやすい状況を示す説明図である。It is explanatory drawing which shows the condition where another object tends to be in intra prediction mode when the occlusion by another object occurs in the middle of a moving object.

以下では一例としてHEVCに準拠した映像符号化装置及び映像復号装置に本発明を適用した場合の実施形態を説明するが、以下で説明する実施形態は、必ずしもHEVCに準拠したものでなくてもよい。なお、説明を簡単にするため、LCU及びCUサイズは固定(例えば64x64)として記載するが、ブロック分割した場合においても各CUに対して同様の処理を行うことで本発明を適用可能である。   In the following, an embodiment in which the present invention is applied to a video encoding device and a video decoding device compliant with HEVC will be described as an example, but the embodiment described below may not necessarily be compliant with HEVC. . In order to simplify the explanation, the LCU and the CU size are described as being fixed (for example, 64 × 64), but the present invention can be applied by performing the same processing for each CU even when the blocks are divided.

<第1の実施形態>
図1を参照して、第1の実施形態における映像符号化装置を説明する。図1は第1の実施形態における映像符号化装置の構成を示すブロック図である。参考までに図2に従来技術における映像符号化装置を示す。図1と図2において、同じ構成要素には、同じ符号を付与してある。図1に示す構成が従来技術と異なるのはイントラ動き情報生成部24が新たに追加されている点である。符号化装置には符号化対象入力映像の符号化対象ピクチャについてCUブロックごとに入力され、このブロックに対応する符号化データが出力される。これが符号化対象ピクチャの各ブロックについてラスタスキャン順に繰り返し実行されることで、符号化対象ピクチャが符号化される。
<First Embodiment>
With reference to FIG. 1, a video encoding apparatus according to the first embodiment will be described. FIG. 1 is a block diagram showing a configuration of a video encoding apparatus according to the first embodiment. For reference, FIG. 2 shows a conventional video encoding apparatus. In FIG. 1 and FIG. 2, the same code | symbol is provided to the same component. The configuration shown in FIG. 1 is different from the prior art in that an intra motion information generation unit 24 is newly added. The encoding target picture of the input video to be encoded is input to the encoding apparatus for each CU block, and encoded data corresponding to this block is output. This is repeatedly executed for each block of the encoding target picture in the raster scan order, thereby encoding the encoding target picture.

減算器11は映像符号化装置1に入力された入力画像とイントラ予測部17またはインター予測部19から出力される予測画像との差分を直交変換/量子化部12へ出力する。一方、直交変換/量子化部12は減算器11から出力された差分に対して直交変換と量子化を施し、可変長符号化部13と逆量子化/逆直交変換部14へ出力する。   The subtractor 11 outputs the difference between the input image input to the video encoding device 1 and the predicted image output from the intra prediction unit 17 or the inter prediction unit 19 to the orthogonal transform / quantization unit 12. On the other hand, the orthogonal transform / quantization unit 12 performs orthogonal transform and quantization on the difference output from the subtracter 11 and outputs the result to the variable length coding unit 13 and the inverse quantization / inverse orthogonal transform unit 14.

可変長符号化部13は直交変換/量子化部12から出力された量子化係数を可変長符号化し、符号化データとして映像符号化装置1から出力する。逆量子化/逆直交変換部は直交変換/量子化部12から出力された量子化係数に対して逆量子化と逆直交変換を施し、加算器15へ出力する。   The variable length encoding unit 13 performs variable length encoding on the quantization coefficient output from the orthogonal transform / quantization unit 12 and outputs the encoded coefficient from the video encoding device 1 as encoded data. The inverse quantization / inverse orthogonal transform unit performs inverse quantization and inverse orthogonal transform on the quantization coefficient output from the orthogonal transform / quantization unit 12 and outputs the result to the adder 15.

加算器15は逆量子化/逆直交変換部14から出力された画像と予測画像との和をイントラ予測部17及びループフィルタ部16へ出力する。ループフィルタ部16は逆量子化/逆直交変換部14から出力された画像とイントラ予測部17またはインター予測部19から出力される予測画像との和にループフィルタを適用し、復号ピクチャメモリ18へ出力する。   The adder 15 outputs the sum of the image output from the inverse quantization / inverse orthogonal transform unit 14 and the predicted image to the intra prediction unit 17 and the loop filter unit 16. The loop filter unit 16 applies a loop filter to the sum of the image output from the inverse quantization / inverse orthogonal transform unit 14 and the predicted image output from the intra prediction unit 17 or the inter prediction unit 19, and supplies the decoded picture memory 18. Output.

復号ピクチャメモリ18はループフィルタ部16の出力を格納し、インター予測部19と動きベクトル検出部21に出力され、後の符号化対象ブロックのインター予測及び動きベクトル検出時に参照画像として利用される。イントラ予測部17は逆量子化/逆直交変換部14から出力された画像とイントラ予測部17またはインター予測部か19ら出力される予測画像との和を参照画像として符号化対象ブロックのイントラ予測画像を生成する。   The decoded picture memory 18 stores the output of the loop filter unit 16, is output to the inter prediction unit 19 and the motion vector detection unit 21, and is used as a reference image at the time of inter prediction and motion vector detection of the subsequent encoding target block. The intra prediction unit 17 uses the sum of the image output from the inverse quantization / inverse orthogonal transform unit 14 and the prediction image output from the intra prediction unit 17 or the inter prediction unit 19 as a reference image to perform intra prediction of the block to be encoded. Generate an image.

インター予測部19は復号ピクチャメモリの参照画像を用いて符号化対象ブロックのインター予測画像を生成する。イントラ/インター切り替えスイッチ20は符号化対象ブロックの予測モードに応じてイントラ予測部17或いはインター予測部19を切り替え、予測画像を減算器11と加算器15へ出力する。   The inter prediction unit 19 generates an inter prediction image of the encoding target block using the reference image of the decoded picture memory. The intra / inter switch 20 switches the intra prediction unit 17 or the inter prediction unit 19 according to the prediction mode of the encoding target block, and outputs the predicted image to the subtracter 11 and the adder 15.

動きベクトル検出部21は入力画像と復号ピクチャメモリ18から出力される参照画像を用いて動きベクトルを検出し、動きベクトルメモリ22及びインター動き情報生成部23へ出力する。動きベクトルメモリ22は動きベクトル検出部21或いはイントラ動き情報生成部24からの出力を格納し、予測動きベクトル導出時にインター動き情報生成部23或いはイントラ動き情報生成部24から参照される。   The motion vector detection unit 21 detects a motion vector using the input image and the reference image output from the decoded picture memory 18 and outputs the detected motion vector to the motion vector memory 22 and the inter motion information generation unit 23. The motion vector memory 22 stores the output from the motion vector detection unit 21 or the intra motion information generation unit 24, and is referred to by the inter motion information generation unit 23 or the intra motion information generation unit 24 when deriving a predicted motion vector.

インター動き情報生成部23は動きベクトル検出部21と動きベクトルメモリ22から入力されたデータを基にインター予測モードの動き情報を生成し、可変長符号化部13へ出力する。イントラ動き情報生成部24は動きベクトルメモリ22から入力されたデータを基にイントラ予測モードの動き情報を生成し、動きベクトルメモリ22へ出力する。   The inter motion information generation unit 23 generates motion information in the inter prediction mode based on the data input from the motion vector detection unit 21 and the motion vector memory 22 and outputs the motion information to the variable length encoding unit 13. The intra motion information generation unit 24 generates motion information in the intra prediction mode based on the data input from the motion vector memory 22 and outputs the motion information to the motion vector memory 22.

次に、図3を参照して、第1の実施形態における映像復号装置を説明する。この映像復号装置は図1に示す映像符号化装置により符号化された符号化データを復号する。図3は第1の実施形態における映像復号装置の構成を示すブロック図である。映像復号装置4には復号対象入力符号化データが入力され、復号対象ブロック毎に繰り返し復号され、復号信号が出力される。   Next, the video decoding apparatus in the first embodiment will be described with reference to FIG. This video decoding apparatus decodes the encoded data encoded by the video encoding apparatus shown in FIG. FIG. 3 is a block diagram showing the configuration of the video decoding apparatus in the first embodiment. The decoding target input encoded data is input to the video decoding device 4, and is repeatedly decoded for each decoding target block, and a decoded signal is output.

可変長復号部41は入力された符号化データを可変長復号し、変換量子化係数及び差分動きベクトルを含む復号パラメータを得て、変換量子化係数は逆量子化/逆直交変換部42へ、差分動きベクトルはインター動き情報生成部51へ出力される。逆量子化/逆量子化部42は可変長復号部41から出力された変換量子化係数を逆量子化/逆直交変換し、復号残差画像を加算器43に出力する。   The variable length decoding unit 41 performs variable length decoding on the input encoded data to obtain a decoding parameter including a transform quantization coefficient and a difference motion vector, and the transform quantization coefficient is sent to the inverse quantization / inverse orthogonal transform unit 42. The difference motion vector is output to the inter motion information generation unit 51. The inverse quantization / inverse quantization unit 42 performs inverse quantization / inverse orthogonal transform on the transform quantization coefficient output from the variable length decoding unit 41, and outputs a decoded residual image to the adder 43.

加算器43は逆量子化/逆直交変換部42から出力された復号残差画像とイントラ予測部45又はインター予測部46から得られる予測画像との和から復号画像を得て、復号映像として出力すると同時に、ループフィルタ部47及びイントラ予測部45へ出力する。ループフィルタ部47は加算器43から得られる復号画像にループフィルタを適用し、復号ピクチャメモリへ出力する。   The adder 43 obtains a decoded image from the sum of the decoded residual image output from the inverse quantization / inverse orthogonal transform unit 42 and the predicted image obtained from the intra prediction unit 45 or the inter prediction unit 46, and outputs the decoded image as a decoded video. At the same time, the data is output to the loop filter unit 47 and the intra prediction unit 45. The loop filter unit 47 applies a loop filter to the decoded image obtained from the adder 43 and outputs it to the decoded picture memory.

復号ピクチャメモリ48はループフィルタ部47の出力を格納し、インター予測部46に入力され、後の復号対象ブロックのインター予測時に参照画像として利用される。イントラ予測部45は加算器43から出力される復号画像を参照画像として後の復号対象ブロックのイントラ予測画像を生成する。インター予測部46は復号ピクチャメモリ48の参照画像と動きベクトルメモリ49から得られる動きベクトルを用いて復号対象ブロックのインター予測画像を生成する。   The decoded picture memory 48 stores the output of the loop filter unit 47, is input to the inter prediction unit 46, and is used as a reference image at the time of subsequent inter prediction of the decoding target block. The intra prediction unit 45 generates an intra prediction image of a later decoding target block using the decoded image output from the adder 43 as a reference image. The inter prediction unit 46 generates an inter prediction image of the decoding target block using the reference image in the decoded picture memory 48 and the motion vector obtained from the motion vector memory 49.

イントラ/インター切り替えスイッチ44は復号対象ブロックの予測モードに応じてイントラ予測部45或いはインター予測部46を切り替え、予測画像を加算器43へ出力する。動きベクトルメモリ49はインター動き情報生成部51或いはイントラ動き情報生成部50からの出力を格納し、インター予測部46での予測及び予測動きベクトル導出時にインター動き情報生成部51或いはイントラ動き情報生成部50から参照される。   The intra / inter switch 44 switches the intra prediction unit 45 or the inter prediction unit 46 according to the prediction mode of the decoding target block, and outputs the predicted image to the adder 43. The motion vector memory 49 stores the output from the inter motion information generating unit 51 or the intra motion information generating unit 50, and the inter motion information generating unit 51 or the intra motion information generating unit at the time of prediction and prediction motion vector derivation by the inter prediction unit 46. 50.

インター動き情報生成部51は可変長復号部41から入力される差分動きベクトルと動きベクトルメモリから入力されるデータを基にインター予測モードの動き情報を生成し、動きベクトルメモリ49へ出力する。イントラ動き情報生成部50は動きベクトルメモリ49から入力されたデータを基にイントラ予測モードの動き情報を生成し、動きベクトルメモリ49へ出力する。   The inter motion information generation unit 51 generates inter prediction mode motion information based on the difference motion vector input from the variable length decoding unit 41 and the data input from the motion vector memory, and outputs the motion information to the motion vector memory 49. The intra motion information generation unit 50 generates motion information in the intra prediction mode based on the data input from the motion vector memory 49 and outputs the motion information to the motion vector memory 49.

次に、図4及び図5を参照して、第1の実施形態におけるインター動き情報生成部について説明する。図4は第1の実施形態の映像符号化装置におけるインター動き情報生成部23の構成を示すブロック図である。予測動きベクトル候補リスト生成部231は動きベクトルメモリ22から入力された符号化対象ブロックの周囲或いは符号化済みフレームの候補ブロックの動きベクトルから予測動きベクトル候補リストを生成し、予測動きベクトル決定部232へ出力する。予測動きベクトル決定部232は予測動きベクトル候補リスト生成部231から入力された予測動きベクトル候補リストの中から予測動きベクトルを決定する。   Next, the inter motion information generation unit in the first embodiment will be described with reference to FIGS. 4 and 5. FIG. 4 is a block diagram illustrating a configuration of the inter motion information generation unit 23 in the video encoding device according to the first embodiment. The predicted motion vector candidate list generation unit 231 generates a predicted motion vector candidate list from the motion vectors of the candidate blocks around the encoding target block or the encoded frame input from the motion vector memory 22, and the predicted motion vector determination unit 232. Output to. The predicted motion vector determination unit 232 determines a predicted motion vector from the predicted motion vector candidate list input from the predicted motion vector candidate list generation unit 231.

予測動きベクトルの決定では対象ブロックの動きベクトルと予測動きベクトル候補リストの各候補との差分動きベクトルを算出し、差分動きベクトルの各成分の符号量の和が最も小さくなる予測動きベクトルインデックス及び予測動きベクトルを決定する。減算部233は動きベクトル検出部21から入力された動きベクトルと予測動きベクトル決定部232で決定された予測動きベクトルの差分動きベクトルを算出し、参照画像リスト、参照画像インデックス、予測動きベクトルインデックスと共に可変長符号化部13へ出力する。   In the determination of the motion vector predictor, a motion vector difference between the motion vector of the target block and each candidate of the motion vector predictor candidate list is calculated, and the motion vector predictor index and the prediction with the smallest sum of the code amount of each component of the motion vector difference are calculated. A motion vector is determined. The subtraction unit 233 calculates a differential motion vector between the motion vector input from the motion vector detection unit 21 and the predicted motion vector determined by the predicted motion vector determination unit 232, and together with the reference image list, the reference image index, and the predicted motion vector index. The data is output to the variable length coding unit 13.

図5は第1の実施形態の映像復号装置におけるインター動き情報生成部51の構成を示すブロック図である。予測動きベクトル候補リスト生成部511は動きベクトルメモリ49から入力された復号対象ブロックの周囲或いは復号済みフレームの候補ブロックの動きベクトルから予測動きベクトル候補リストを生成し、予測動きベクトル出力部512へ出力する。予測動きベクトル出力部512は予測動きベクトル候補リスト生成部511から入力された予測動きベクトル候補リストの中から可変長復号部41で復号された予測動きベクトルインデックスに対応する予測動きベクトルを出力する。加算部513は可変長復号部41から入力された差分動きベクトルと予測動きベクトル出力部512から出力された予測動きベクトルの和となる動きベクトルを算出し、動きベクトルメモリ49へ出力する。   FIG. 5 is a block diagram illustrating a configuration of the inter motion information generation unit 51 in the video decoding apparatus according to the first embodiment. The motion vector predictor candidate list generation unit 511 generates a motion vector predictor candidate list from the motion vector of the candidate block around the decoding target block or the decoded frame input from the motion vector memory 49 and outputs the motion vector candidate list to the motion vector predictor output unit 512. To do. The motion vector predictor output unit 512 outputs a motion vector predictor corresponding to the motion vector predictor index decoded by the variable length decoding unit 41 from the motion vector predictor candidate list input from the motion vector predictor candidate list generation unit 511. The adding unit 513 calculates a motion vector that is the sum of the differential motion vector input from the variable length decoding unit 41 and the predicted motion vector output from the predicted motion vector output unit 512, and outputs the motion vector to the motion vector memory 49.

続いて、図6を参照して、本発明の特徴となるイントラ動き情報生成部24について説明する。図6は第1の実施形態におけるイントラ動き情報生成部24の構成を示すブロック図である。イントラ動き情報生成部24は従来技術にはない構成要素である。予測動きベクトル候補リスト生成部241は動きベクトルメモリ22から入力された符号化或いは復号対象ブロックの周囲或いは符号化或いは復号済みフレームの候補ブロックの動きベクトルから予測動きベクトル候補リストを生成し、設定予測動きベクトル決定部242へ出力する。設定予測動きベクトル決定部242は予測動きベクトル候補リストの中から所定の予測動きベクトルを動きベクトルメモリ22へ出力する。   Next, the intra motion information generation unit 24 that is a feature of the present invention will be described with reference to FIG. FIG. 6 is a block diagram illustrating a configuration of the intra motion information generation unit 24 in the first embodiment. The intra motion information generation unit 24 is a component that is not present in the prior art. The predicted motion vector candidate list generation unit 241 generates a predicted motion vector candidate list from the motion vector of the candidate block of the encoded or decoded target block around the encoded or decoded block input from the motion vector memory 22, and sets prediction The result is output to the motion vector determination unit 242. The set predicted motion vector determination unit 242 outputs a predetermined predicted motion vector from the predicted motion vector candidate list to the motion vector memory 22.

次に、図7を参照して、第1の実施形態における動きベクトル設定処理動作を説明する。図7は第1の実施形態における動きベクトル設定処理動作を示すフローチャートである。まず、対象ブロックの予測モードがインター予測モードか否かを判定し(ステップS1)、判定結果がインター予測モードである場合は対象ブロックの動きベクトルを対象ブロックの動きベクトルとして動きベクトルメモリに設定する(ステップS2)。そうでない場合は予測動きベクトル候補リストの中から所定の予測動きベクトルを対象ブロックの動きベクトルとして動きベクトルメモリに設定する(ステップS3)。設定する予測動きベクトルは予め設定された予測動きベクトルインデックスに対応する予測動きベクトルなどを用いる。   Next, a motion vector setting processing operation in the first embodiment will be described with reference to FIG. FIG. 7 is a flowchart showing the motion vector setting processing operation in the first embodiment. First, it is determined whether or not the prediction mode of the target block is the inter prediction mode (step S1). If the determination result is the inter prediction mode, the motion vector of the target block is set as the motion vector of the target block in the motion vector memory. (Step S2). Otherwise, a predetermined predicted motion vector is set in the motion vector memory as the motion vector of the target block from the predicted motion vector candidate list (step S3). As the motion vector predictor to be set, a motion vector predictor corresponding to a motion vector predictor index set in advance is used.

次に、図8を参照して、図4、図5及び図6に示す予測動きベクトル候補リスト生成部232、511、241の処理動作を説明する。図8は図4、図5及び図6に示す予測動きベクトル候補リスト生成部232、511、241の処理動作を示すフローチャートである。   Next, processing operations of the motion vector predictor candidate list generation units 232, 511, and 241 illustrated in FIGS. 4, 5, and 6 will be described with reference to FIG. FIG. 8 is a flowchart showing processing operations of the motion vector predictor candidate list generation units 232, 511, and 241 shown in FIGS.

まず、候補ブロックに対して所定の優先順序でスキャンを行う(ステップS11)。候補ブロックは図19及び図20に示すブロック群である。また、優先順位は以下の通りとなる。
・A0⇒A1⇒B0⇒B1⇒B2⇒H(C3)の順でスキャン
・対象ブロックの参照画像と同一の参照画像を持つ動きベクトルを優先
First, the candidate blocks are scanned in a predetermined priority order (step S11). The candidate block is a block group shown in FIGS. The priority order is as follows.
・ Scan in the order of A0⇒A1⇒B0⇒B1⇒B2⇒H (C3) ・ Priority is given to motion vectors that have the same reference image as the reference image of the target block

予測動きベクトル候補リストの合計数が2に満たないか否かを判定する(ステップS12)。そして、合計数が2に満たない場合は対象ブロックと候補ブロックの参照画素が同じか否かを判定する(ステップS13)。この判定の結果、参照画素が同じでなければ、参照画像間距離に応じてスケーリングを行う(ステップS14)。   It is determined whether or not the total number of motion vector predictor candidate lists is less than 2 (step S12). If the total number is less than 2, it is determined whether the reference pixels of the target block and the candidate block are the same (step S13). If the reference pixels are not the same as a result of this determination, scaling is performed according to the distance between the reference images (step S14).

次に、候補ブロックの動きベクトルを各ブロック群(A0,A1をブロック群A、B0,B1,B2をブロック群Bとする)の中で同じ動きベクトルが既にリストに追加されているか否かの重複判定を行い(ステップS15)、重複しない場合には候補ブロックの動きベクトルについて、候補ブロックの参照画像が符号化(或いは復号)対象ブロックの参照画像と異なる場合には参照画像間距離に応じてスケーリング処理を行った後にリストに追加する(ステップS16)。そして、全ての候補ブロックに対してスキャンが終了したら(ステップS17)、予測動きベクトル候補リストの合計数が2に満たないか否かを判定する(ステップS18)。合計数が2に満たない場合にはリストの残りにゼロベクトルを追加する(ステップS19)。   Next, whether the motion vector of the candidate block is already added to the list in each block group (A0, A1 is the block group A, and B0, B1, B2 is the block group B). An overlap determination is made (step S15). If there is no overlap, if the reference image of the candidate block is different from the reference image of the target block to be encoded (or decoded) for the motion vector of the candidate block, depending on the distance between the reference images After performing the scaling process, it is added to the list (step S16). When scanning for all candidate blocks is completed (step S17), it is determined whether the total number of motion vector predictor candidate lists is less than 2 (step S18). If the total number is less than 2, a zero vector is added to the rest of the list (step S19).

なお、参考までに従来技術における予測動きベクトル候補リスト生成部の動作を図9に示す。図9において、図8に示す処理動作と同じ処理動作には、同じ符号を付与してある。従来技術ではスキャンされた候補ブロックの参照画像インデックスが0以上(すなわち、インター予測されている)か否かを判定する処理(ステップS111)が追加されている点が異なる。また、本実施形態ではマージ符号化の説明を省略しているが、従来技術のマージ候補リスト生成に対しても同様の手順の処理動作を実行することで本発明を適用することが可能である。   For reference, the operation of the motion vector predictor candidate list generation unit in the prior art is shown in FIG. In FIG. 9, the same reference numerals are given to the same processing operations as those shown in FIG. The conventional technique is different in that a process (step S111) for determining whether or not the reference image index of the scanned candidate block is 0 or more (that is, inter prediction) is added. Further, although description of merge encoding is omitted in the present embodiment, the present invention can be applied to the conventional merge candidate list generation by executing the processing operation of the same procedure. .

(本実施形態と従来技術との違いと得られる効果)
本実施形態が従来技術と異なるのは、本実施形態では対象ブロックがイントラ予測モードの場合には予測動きベクトルを動きベクトルメモリに設定するため、予測動きベクトルを導出する際に候補ブロックがイントラ予測モードであっても予測動きベクトル候補リストに追加することが可能となる。従来技術ではイントラ予測モードである場合には追加されない。これによって、予測動きベクトル候補リストに追加される予測動きベクトル候補がゼロベクトルでなくなる可能性が高くなり、符号化対象ブロックの動きベクトルとの差分動きベクトルを小さくすることができる。
(Difference between this embodiment and conventional technology and effects obtained)
This embodiment is different from the prior art in the present embodiment. In this embodiment, when the target block is in the intra prediction mode, the prediction motion vector is set in the motion vector memory. Therefore, when the prediction motion vector is derived, the candidate block is intra predicted. Even in the mode, it is possible to add to the motion vector predictor candidate list. In the prior art, it is not added in the case of the intra prediction mode. This increases the possibility that the motion vector predictor candidate added to the motion vector predictor candidate list is not a zero vector, and the motion vector difference from the motion vector of the block to be encoded can be reduced.

例えば、図21のような状況において、符号化対象ブロックがインター予測モードで符号化された領域と同じ動きベクトルを持っていた場合には、従来技術では導出される予測動きベクトル候補リストにはゼロベクトルしか追加されないため、対象ブロックの差分動きベクトルの符号量を小さくすることができないが、本実施形態を用いた場合には符号化対象ブロックの周囲のイントラ予測モードで符号化される領域にインター予測モードで符号化される領域の動きベクトルが設定され、それによって対象ブロックで導出される予測動きベクトル候補リストにその動きベクトルが追加されるため、符号化対象ブロックの差分動きベクトルの符号量を小さくすることができる。復号においても符号化時と同様の処理を行うため、符号化時と同じ予測動きベクトルが参照可能である。   For example, in the situation shown in FIG. 21, if the current block has the same motion vector as that of the region encoded in the inter prediction mode, the predicted motion vector candidate list derived by the conventional technique has zero. Since only the vector is added, the code amount of the differential motion vector of the target block cannot be reduced. However, when this embodiment is used, the coding is performed in the region encoded in the intra prediction mode around the encoding target block. Since the motion vector of the region to be encoded in the prediction mode is set and the motion vector is added to the prediction motion vector candidate list derived by the target block, the amount of code of the differential motion vector of the target block to be encoded is set. Can be small. Since the same processing as in encoding is performed in decoding, the same motion vector predictor as in encoding can be referred to.

このように、第1の実施形態では、対象ブロックがイントラ予測モードの場合に予測動きベクトル候補リストの中から所定の予測動きベクトルを対象ブロックの動きベクトルとして設定する。そして、予測動きベクトル候補リストの導出時に、候補ブロックがイントラ予測モードの場合についても設定されている動きベクトルを参照する。   Thus, in the first embodiment, when the target block is in the intra prediction mode, a predetermined motion vector predictor is set as the motion vector of the target block from the motion vector predictor candidate list. Then, at the time of deriving the motion vector predictor candidate list, reference is made to the motion vector set even when the candidate block is in the intra prediction mode.

<第2の実施形態>
図10及び図11を参照して、第2の実施形態における映像符号化装置及び映像復号装置を説明する。図10は第2の実施形態における映像符号化装置の構成を示すブロック図である。図11は第2の実施形態における映像復号装置の構成を示すブロック図である。本実施形態では第1の実施形態に変更を加えた点について説明する。映像符号化装置1(図10)及び映像復号装置4(図11)共に候補ブロック予測モード判定部25、52が追加されている点が異なる。以下、第1の実施形態と異なる点のみを説明する。
<Second Embodiment>
With reference to FIG.10 and FIG.11, the video encoding apparatus and video decoding apparatus in 2nd Embodiment are demonstrated. FIG. 10 is a block diagram showing the configuration of the video encoding apparatus in the second embodiment. FIG. 11 is a block diagram showing the configuration of the video decoding apparatus in the second embodiment. This embodiment demonstrates the point which added the change to 1st Embodiment. The video encoding device 1 (FIG. 10) and the video decoding device 4 (FIG. 11) are different in that candidate block prediction mode determination units 25 and 52 are added. Only differences from the first embodiment will be described below.

第2の実施形態における候補ブロック予測モード判定部25、52は符号化結果或いは復号データを基にして予測動きベクトル候補リストの生成時に各候補ブロックの予測モードの判定結果をインター動き情報生成部23、51及びイントラ動き情報生成部24、50へ出力する。   The candidate block prediction mode determination units 25 and 52 in the second embodiment use the inter motion information generation unit 23 as a prediction mode determination result of each candidate block when generating a motion vector predictor candidate list based on the encoding result or the decoded data. , 51 and the intra motion information generating units 24, 50.

次に、図12及び図13を参照して、第2の実施形態におけるインター動き情報生成部23、51について説明する。図12は第2の実施形態におけるインター動き情報生成部23の構成を示すブロック図である。図13は第2の実施形態におけるインター動き情報生成部51の構成を示すブロック図である。第1の実施形態と異なる点は予測動きベクトル候補リスト生成部231、511に候補ブロック予測モード判定部25、52から判定結果が入力されている点である。   Next, with reference to FIG.12 and FIG.13, the inter motion information generation parts 23 and 51 in 2nd Embodiment are demonstrated. FIG. 12 is a block diagram illustrating a configuration of the inter motion information generation unit 23 in the second embodiment. FIG. 13 is a block diagram illustrating a configuration of the inter motion information generation unit 51 in the second embodiment. The difference from the first embodiment is that the determination results are input from the candidate block prediction mode determination units 25 and 52 to the prediction motion vector candidate list generation units 231 and 511.

続いて、図14を参照して、第2の実施形態におけるイントラ動き情報生成部24、50について説明する。図14は第2の実施形態におけるイントラ動き情報生成部24、50の構成を示すブロック図である。第1の実施形態と異なる点は予測動きベクトル候補リスト生成部241に候補ブロック予測モード判定部25、52から判定結果が入力されている点である。   Next, with reference to FIG. 14, the intra motion information generation units 24 and 50 in the second embodiment will be described. FIG. 14 is a block diagram illustrating a configuration of the intra motion information generation units 24 and 50 in the second embodiment. The difference from the first embodiment is that the determination results are input from the candidate block prediction mode determination units 25 and 52 to the motion vector predictor candidate list generation unit 241.

続いて、図15、図16を参照して、図12、図13及び図14に示す予測動きベクトル候補リスト生成部231、512、241の処理動作を説明する。図15、図16は図12、図13及び図14に示す予測動きベクトル候補リスト生成部231、512、241の処理動作を示すフローチャートである。図15は、図16内の処理A部分の処理動作である。始めに、処理Aの処理動作を説明する。処理Aの処理動作は、図8に示す処理動作に似ている動作である。   Next, processing operations of the motion vector predictor candidate list generation units 231, 512, and 241 illustrated in FIGS. 12, 13, and 14 will be described with reference to FIGS. 15 and 16. FIGS. 15 and 16 are flowcharts showing processing operations of the motion vector predictor candidate list generation units 231, 512 and 241 shown in FIGS. 12, 13 and 14. FIG. 15 shows the processing operation of the process A part in FIG. First, the processing operation of processing A will be described. The processing operation of processing A is similar to the processing operation shown in FIG.

まず、候補ブロックに対して所定の優先順序でスキャンを行う(ステップS21)。候補ブロックは図19及び図20に示すブロック群である。また、優先順位は以下の通りとなる。
・A0⇒A1⇒B0⇒B1⇒B2⇒H(C3)の順でスキャン
・対象ブロックの参照画像と同一の参照画像を持つ動きベクトルを優先
First, the candidate blocks are scanned in a predetermined priority order (step S21). The candidate block is a block group shown in FIGS. The priority order is as follows.
・ Scan in the order of A0⇒A1⇒B0⇒B1⇒B2⇒H (C3) ・ Priority is given to motion vectors that have the same reference image as the reference image of the target block

予測動きベクトル候補リストの合計数が2に満たないか否かを判定する(ステップS22)。そして、合計数が2に満たない場合は対象ブロックと候補ブロックの参照画素が同じか否かを判定する(ステップS23)。この判定の結果、参照画素が同じでなければ、参照画像間距離に応じてスケーリングを行う(ステップS24)。   It is determined whether or not the total number of motion vector predictor candidate lists is less than 2 (step S22). If the total number is less than 2, it is determined whether or not the reference pixels of the target block and the candidate block are the same (step S23). If the reference pixels are not the same as a result of this determination, scaling is performed according to the distance between the reference images (step S24).

次に、候補ブロックの動きベクトルを各ブロック群(A0,A1をブロック群A、B0,B1,B2をブロック群Bとする)の中で同じ動きベクトルが既にリストに追加されているか否かの重複判定を行い(ステップS25)、重複しない場合には候補ブロックの動きベクトルについて、候補ブロックの参照画像が符号化(或いは復号)対象ブロックの参照画像と異なる場合には参照画像間距離に応じてスケーリング処理を行った後にリストに追加する(ステップS26)。そして、全ての候補ブロックに対してスキャンを行う(ステップS27)。   Next, whether the motion vector of the candidate block is already added to the list in each block group (A0, A1 is the block group A, and B0, B1, B2 is the block group B). An overlap determination is performed (step S25). If there is no overlap, if the reference image of the candidate block is different from the reference image of the target block to be encoded (or decoded) for the motion vector of the candidate block, depending on the distance between the reference images After performing the scaling process, it is added to the list (step S26). Then, all candidate blocks are scanned (step S27).

次に、図16を参照して、予測動きベクトル候補リスト生成部231、512、241の処理動作を説明する。まず、対象ブロックの周囲から導出される候補ブロックの中からインター予測モードである候補ブロック群を抽出し、これらの候補ブロック群に対して処理Aを行う(ステップS31)。処理Aは前述した処理である。予測動きベクトル候補リストの合計数が2に満たないか否かを判定し(ステップS32)、満たない場合はイントラ予測モードである候補ブロック群を抽出し、これらの候補ブロック群に対して処理Aを行う(ステップS33)。この処理の結果、予測動きベクトル候補リストの合計数が2に満たないか否かを判定し(ステップS34)、満たない場合にはリストの残りにゼロベクトルを追加する(ステップS35)。   Next, processing operations of the motion vector predictor candidate list generation units 231, 512, and 241 will be described with reference to FIG. First, candidate block groups in the inter prediction mode are extracted from candidate blocks derived from the periphery of the target block, and processing A is performed on these candidate block groups (step S31). Process A is the process described above. It is determined whether or not the total number of motion vector predictor candidate lists is less than 2 (step S32). If not, candidate block groups in the intra prediction mode are extracted, and processing A is performed on these candidate block groups. Is performed (step S33). As a result of this processing, it is determined whether or not the total number of motion vector predictor candidate lists is less than 2 (step S34), and if not, a zero vector is added to the rest of the list (step S35).

(本実施形態と従来技術との違いと得られる効果)
候補ブロックがインター予測モードであるブロックを優先してリストに追加することで、本来の動き情報を持っている信頼度の高いインター予測モードの予測動きベクトル候補が先にリストに追加されることになり、予測動きベクトルの精度向上が期待できる。
(Difference between this embodiment and conventional technology and effects obtained)
By preferentially adding a block whose candidate block is in inter prediction mode to the list, a highly reliable inter prediction mode motion vector candidate having original motion information is added to the list first. Therefore, the accuracy of the predicted motion vector can be expected to improve.

このように、第2の実施形態では、予測動きベクトル候補リストの導出時に、リストに追加する動きベクトルを候補ブロックの予測モードが「インター予測モード」⇒「イントラ予測モード」の優先度で追加する。   Thus, in the second embodiment, when the motion vector predictor candidate list is derived, motion vectors to be added to the list are added with the priority of the candidate block prediction mode “inter prediction mode” → “intra prediction mode”. .

<第3の実施形態>
第3の実施形態における映像符号化装置及び映像復号装置を説明する。本実施形態では第1の実施形態に変更を加えた場合について説明するが、第2の実施形態においても同様に本発明を適用することができる。映像符号化装置及び映像復号装置は図1及び図3においてイントラ動き情報生成部の処理動作を除いて同一である。以下、第1の実施形態と異なる点のみを説明する。
<Third Embodiment>
A video encoding device and a video decoding device according to the third embodiment will be described. In the present embodiment, a case where a change is made to the first embodiment will be described, but the present invention can be similarly applied to the second embodiment. The video encoding device and the video decoding device are the same except for the processing operation of the intra motion information generation unit in FIGS. 1 and 3. Only differences from the first embodiment will be described below.

図17を参照して、第3の実施形態におけるイントラ動き情報生成部24、50について説明する。図17は第3の実施形態におけるイントラ動き情報生成部24、50の構成を示すブロック図である。第1の実施形態と異なる点は動きベクトル統計量算出部243が追加されている点である。動きベクトル統計量算出部243は動きベクトルメモリ22、49からのデータを基に動きベクトル統計量を算出し、設定予測動きベクトル決定部242へ出力する。   With reference to FIG. 17, the intra motion information production | generation parts 24 and 50 in 3rd Embodiment are demonstrated. FIG. 17 is a block diagram illustrating the configuration of the intra motion information generation units 24 and 50 according to the third embodiment. The difference from the first embodiment is that a motion vector statistic calculation unit 243 is added. The motion vector statistic calculation unit 243 calculates a motion vector statistic based on the data from the motion vector memories 22 and 49 and outputs the motion vector statistic to the set prediction motion vector determination unit 242.

続いて、図18を参照して、第3の実施形態における動きベクトル設定処理動作を説明する。図18は第3の実施形態における動きベクトル設定処理動作を示すフローチャートである。図18に示すフローチャートは図7に示すフローチャートと異なり、対象ブロックの予測モードがインター予測モードでない場合に動作が異なる。図18において、図7に示す動作と同じ動作には、同じ符号を付与してある。対象ブロックの予測モードがインター予測モードでないか否かを判定し(ステップS1)、インター予測モードでない場合、動きベクトルの統計量を算出し(ステップS4)、算出した統計量を基に予測動きベクトル候補リストの中から対象ブロックの動きベクトルとして設定する予測動きベクトルを決定する(ステップS5)。算出する統計量及び設定する予測動きベクトルの決定方法には色々なバリエーションが考えられる。以下にそのバリエーションの一例を示す。   Subsequently, a motion vector setting processing operation in the third embodiment will be described with reference to FIG. FIG. 18 is a flowchart showing the motion vector setting processing operation in the third embodiment. The flowchart shown in FIG. 18 differs from the flowchart shown in FIG. 7 in that the operation is different when the prediction mode of the target block is not the inter prediction mode. In FIG. 18, the same reference numerals are given to the same operations as those shown in FIG. It is determined whether the prediction mode of the target block is not the inter prediction mode (step S1). If the prediction mode is not the inter prediction mode, a motion vector statistic is calculated (step S4), and a predicted motion vector is calculated based on the calculated statistic. A predicted motion vector to be set as a motion vector of the target block is determined from the candidate list (step S5). Various variations are conceivable for the method of determining the statistics to be calculated and the predicted motion vector to be set. An example of the variation is shown below.

(バリエーション1:各成分の絶対和が最大)
予測動きベクトル候補リストの各予測動きベクトルに対して各成分の絶対和(L1ノルム)を統計量として算出し、値の最も大きい予測動きベクトルを選択する。このようにすることで、設定される予測動きベクトルがゼロベクトルと異なるベクトルが選択されやすくなり、差分動きベクトルの符号量をより小さくする可能性が高くなる。
(Variation 1: Absolute sum of each component is maximum)
The absolute sum (L1 norm) of each component is calculated as a statistic for each predicted motion vector in the predicted motion vector candidate list, and the predicted motion vector having the largest value is selected. By doing so, a vector whose predicted motion vector to be set is different from the zero vector is easily selected, and the possibility that the code amount of the difference motion vector is further reduced is increased.

(バリエーション2:候補ブロックの中での最頻値)
候補ブロック群の中で最も頻出する予測動きベクトルを統計量として算出し、その予測動きベクトルを設定する予測動きベクトルとして選択する。ただし、全て異なる場合には予測動きベクトルインデックスの小さい方とする。最頻値は候補ブロック群の中で周囲の領域が同一である動きベクトルであると考えられるため信頼できるベクトルを選択することが可能となり、差分動きベクトルの符号量をより小さくする可能性が高くなる。
(Variation 2: Mode value among candidate blocks)
A predicted motion vector that appears most frequently in the candidate block group is calculated as a statistic, and the predicted motion vector is selected as a predicted motion vector to be set. However, if they are all different, the smaller predicted motion vector index is used. Since the mode value is considered to be a motion vector having the same surrounding area in the candidate block group, it is possible to select a reliable vector, and there is a high possibility that the code amount of the difference motion vector is made smaller. Become.

(バリエーション3:候補ブロックの中での中央値)
候補ブロック群の中で各成分の中央値を統計量として算出し、それらの値を予測動きベクトルとして設定する。このようにすることで候補ブロック群の中で外れ値があった場合にも適切な予測動きベクトルを設定することが可能となり、差分動きベクトルの符号量をより小さくする可能性が高くなる。
(Variation 3: Median value among candidate blocks)
The median value of each component in the candidate block group is calculated as a statistic, and those values are set as a predicted motion vector. In this way, it is possible to set an appropriate predicted motion vector even when there is an outlier in the candidate block group, and the possibility of further reducing the code amount of the difference motion vector is increased.

(本実施形態と従来技術との違いと得られる効果)
対象ブロックの予測モードがイントラ予測モードであった場合に予測動きベクトルの中から動きベクトルの統計量に基づく条件によって信頼度の高い予測動きベクトルを設定することができるため、予測動きベクトルの精度向上が期待できる。
(Difference between this embodiment and conventional technology and effects obtained)
When the prediction mode of the target block is the intra prediction mode, it is possible to set a highly reliable predicted motion vector according to the condition based on the motion vector statistic from the predicted motion vectors, so the accuracy of the predicted motion vector is improved. Can be expected.

このように、第3の実施形態では、対象ブロックがイントラ予測モードの場合に設定する予測動きベクトルを動きベクトルの統計量に基づく所定の条件を満たす予測動きベクトルとする。   Thus, in the third embodiment, the predicted motion vector set when the target block is in the intra prediction mode is a predicted motion vector that satisfies a predetermined condition based on the statistics of the motion vector.

なお、前述した映像符号化装置によって符号化されたものを選択して、復号するようにしてもよい。また、伝送により符号化されたブロックに係るデータ欠損が発生した際に1つ前のブロックの動きベクトルを利用すること、代替で0ベクトルを挿入するようにしてもよい。   In addition, you may make it select and decode what was encoded by the video encoding apparatus mentioned above. Further, when a data loss related to a block encoded by transmission occurs, the motion vector of the previous block may be used, or a zero vector may be inserted instead.

以上説明したように、動画像の符号化及び復号、特にインター予測を行う際に従来技術においてはあるブロックをイントラ予測モードで符号化される場合は動きベクトルが保存されず、別のブロックをインター予測モードで符号化を行う際に前記イントラ予測モードで符号化されたブロックを予測に使うことができない。本実施形態はあるブロックをイントラ予測を行う場合でも隣接ブロックを参照し動きベクトルの情報を残すことで別のブロックがインター予測モードで符号化される場合でも参照を可能とし、符号化効率を向上させることができる。   As described above, when encoding and decoding moving images, particularly inter prediction, if a block is encoded in the intra prediction mode in the prior art, a motion vector is not stored, and another block is When encoding is performed in the prediction mode, a block encoded in the intra prediction mode cannot be used for prediction. In this embodiment, even when intra prediction is performed on a block, it is possible to refer to an adjacent block and leave the motion vector information so that reference can be made even when another block is encoded in the inter prediction mode, thereby improving encoding efficiency. Can be made.

前述した実施形態における映像符号化装置、映像復号装置の全部または一部をコンピュータで実現するようにしてもよい。その場合、この機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現してもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間の間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでもよい。また上記プログラムは、前述した機能の一部を実現するためのものであってもよく、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよく、PLD(Programmable Logic Device)やFPGA(Field Programmable Gate Array)等のハードウェアを用いて実現されるものであってもよい。   You may make it implement | achieve all or one part of the video encoding apparatus and video decoding apparatus in embodiment mentioned above with a computer. In that case, a program for realizing this function may be recorded on a computer-readable recording medium, and the program recorded on this recording medium may be read into a computer system and executed. Here, the “computer system” includes an OS and hardware such as peripheral devices. The “computer-readable recording medium” refers to a storage device such as a flexible medium, a magneto-optical disk, a portable medium such as a ROM and a CD-ROM, and a hard disk incorporated in a computer system. Furthermore, the “computer-readable recording medium” dynamically holds a program for a short time like a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line. In this case, a volatile memory inside a computer system serving as a server or a client in that case may be included and a program held for a certain period of time. Further, the program may be a program for realizing a part of the above-described functions, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system. It may be realized using hardware such as PLD (Programmable Logic Device) or FPGA (Field Programmable Gate Array).

以上、図面を参照して本発明の実施の形態を説明してきたが、上記実施の形態は本発明の例示に過ぎず、本発明が上記実施の形態に限定されるものではないことは明らかである。したがって、本発明の技術思想及び範囲を逸脱しない範囲で構成要素の追加、省略、置換、その他の変更を行ってもよい。   As mentioned above, although embodiment of this invention has been described with reference to drawings, the said embodiment is only the illustration of this invention, and it is clear that this invention is not limited to the said embodiment. is there. Therefore, additions, omissions, substitutions, and other modifications of the components may be made without departing from the technical idea and scope of the present invention.

符号化効率の悪化を抑えつつ、予測画像の精度が低下するのを防ぐことが不可欠な用途に適用できる。   The present invention can be applied to an application in which it is indispensable to prevent deterioration of the accuracy of a predicted image while suppressing deterioration in encoding efficiency.

1・・・映像符号化装置、11・・・減算器、12・・・直交変換/量子化部、13・・・可変長符号化部、14・・・逆量子化/逆直交変換部、15・・・加算器、16・・・ループフィルタ部、17・・・イントラ予測部、18・・・復号ピクチャメモリ、19・・・インター予測部、20・・・イントラ/インター切替スイッチ、21・・・動きベクトル検出部、22・・・動きベクトルメモリ、23・・・インター動き情報生成部、24・・・イントラ動き情報生成部、4・・・映像復号装置、41・・・可変長復号部、42・・・逆量子化/逆直交変換部、43・・・加算部、44・・・イントラ/インター切替スイッチ、45・・・イントラ予測部、46・・・インター予測部、47・・・ループフィルタ部、48・・・復号ピクチャメモリ、49・・・動きベクトルメモリ、50・・・イントラ動き情報生成部、51・・・インター動き情報生成部   DESCRIPTION OF SYMBOLS 1 ... Video coding apparatus, 11 ... Subtractor, 12 ... Orthogonal transformation / quantization part, 13 ... Variable length coding part, 14 ... Dequantization / inverse orthogonal transformation part, DESCRIPTION OF SYMBOLS 15 ... Adder, 16 ... Loop filter part, 17 ... Intra prediction part, 18 ... Decoded picture memory, 19 ... Inter prediction part, 20 ... Intra / inter changeover switch, 21 ... Motion vector detection unit, 22 ... Motion vector memory, 23 ... Inter motion information generation unit, 24 ... Intra motion information generation unit, 4 ... Video decoding device, 41 ... Variable length Decoding unit, 42... Inverse quantization / inverse orthogonal transform unit, 43... Adder unit, 44... Intra / inter changeover switch, 45. ... Loop filter unit, 48 ... Decoding pin Chamemori, 49 ... motion vector memory, 50 ... intra motion information generation unit, 51 ... inter motion information generating unit

Claims (18)

イントラ予測及びインター予測を用いて映像をブロック単位で符号化する映像符号化装置であって、
対象ブロックの周囲の候補ブロックから予測動きベクトル候補を導出する予測動きベクトル導出手段と、
前記対象ブロックでイントラ予測モードが選択されている場合、前記予測動きベクトル導出手段によって導出した予測動きベクトルを前記対象ブロックの動きベクトルとして設定する予測動きベクトル設定手段と
を備える映像符号化装置。
A video encoding device that encodes video in units of blocks using intra prediction and inter prediction,
Predicted motion vector deriving means for deriving predicted motion vector candidates from candidate blocks around the target block;
A video encoding device comprising: a prediction motion vector setting unit configured to set a prediction motion vector derived by the prediction motion vector deriving unit as a motion vector of the target block when an intra prediction mode is selected in the target block.
前記予測動きベクトル導出手段は、前記候補ブロックが前記イントラ予測モードである場合には前記予測動きベクトル設定手段で設定された動きベクトルを前記対象ブロックの予測動きベクトル候補として参照する請求項1に記載の映像符号化装置。   The predicted motion vector deriving unit refers to a motion vector set by the predicted motion vector setting unit as a predicted motion vector candidate of the target block when the candidate block is in the intra prediction mode. Video encoding device. 前記予測動きベクトル導出手段は、前記対象ブロックの周囲或いは符号化済みフレームの符号化済みブロックの中から所定の順序でインター予測モードであるかを判定し、インター予測モードである候補ブロックから予測動きベクトル候補を導出し、予測動きベクトル候補数が所定の値に満たない場合には、インター予測モードでない前記候補ブロックから予測動きベクトル候補を導出する請求項2に記載の映像符号化装置。   The prediction motion vector deriving unit determines whether the prediction mode is the inter prediction mode in a predetermined order from the surrounding of the target block or the encoded block of the encoded frame, and predicts motion from the candidate block that is the inter prediction mode. The video encoding apparatus according to claim 2, wherein a vector candidate is derived, and when the number of motion vector predictor candidates is less than a predetermined value, a motion vector predictor candidate is derived from the candidate block that is not in the inter prediction mode. 前記予測動きベクトル設定手段は、導出した前記予測動きベクトル候補の中から動きベクトルの統計量に基づく所定の条件を満たす予測動きベクトル候補を設定する請求項2または3に記載の映像符号化装置。   4. The video encoding apparatus according to claim 2, wherein the predicted motion vector setting means sets a predicted motion vector candidate that satisfies a predetermined condition based on a motion vector statistic from the derived predicted motion vector candidates. 前記条件は、動きベクトルの各要素の絶対値和が最大である請求項4に記載の映像符号化装置。   The video encoding apparatus according to claim 4, wherein the condition is that a sum of absolute values of each element of the motion vector is maximum. 前記条件は、前記対象ブロックの周囲或いは符号化済みフレームの符号化済みブロックの中で最頻動きベクトルである請求項4に記載の映像符号化装置。   The video encoding device according to claim 4, wherein the condition is a mode motion vector around the target block or in an encoded block of an encoded frame. イントラ予測及びインター予測を用いて映像をブロック単位で符号化された符号化データを復号する映像復号装置であって、
対象ブロックの周囲の候補ブロックから予測動きベクトル候補を導出する予測動きベクトル導出手段と、
前記対象ブロックでイントラ予測モードが選択されている場合、前記予測動きベクトル導出手段によって導出した予測動きベクトルを前記対象ブロックの動きベクトルとして設定する予測動きベクトル設定手段と
を備える映像復号装置。
A video decoding device that decodes encoded data obtained by encoding a video block by block using intra prediction and inter prediction,
Predicted motion vector deriving means for deriving predicted motion vector candidates from candidate blocks around the target block;
When the intra prediction mode is selected in the target block, a video decoding device comprising: a predicted motion vector setting unit that sets a predicted motion vector derived by the predicted motion vector deriving unit as a motion vector of the target block.
前記予測動きベクトル導出手段は、前記候補ブロックが前記イントラ予測モードである場合には前記予測動きベクトル設定手段で設定された動きベクトルを前記対象ブロックの予測動きベクトル候補として参照する請求項7に記載の映像復号装置。   8. The predicted motion vector deriving unit refers to a motion vector set by the predicted motion vector setting unit as a predicted motion vector candidate of the target block when the candidate block is in the intra prediction mode. Video decoding device. 前記予測動きベクトル導出手段は、前記対象ブロックの周囲或いは符号化済みフレームの符号化済みブロックの中から所定の順序でインター予測モードであるかを判定し、インター予測モードである前記候補ブロックから予測動きベクトル候補を導出し、予測動きベクトル候補数が所定の値に満たない場合には、インター予測モードでない前記候補ブロックから予測動きベクトル候補を導出する請求項8に記載の映像復号装置。   The prediction motion vector deriving unit determines whether the prediction mode is the inter prediction mode in a predetermined order from the surrounding of the target block or the encoded block of the encoded frame, and predicts from the candidate block that is the inter prediction mode. 9. The video decoding apparatus according to claim 8, wherein a motion vector candidate is derived, and when the number of motion vector predictor candidates is less than a predetermined value, a motion vector predictor candidate is derived from the candidate block that is not in the inter prediction mode. 前記予測動きベクトル設定手段は、導出した前記予測動きベクトル候補の中から動きベクトルの統計量に基づく所定の条件を満たす予測動きベクトル候補を設定する請求項8または9に記載の映像復号装置。   10. The video decoding apparatus according to claim 8, wherein the predicted motion vector setting means sets a predicted motion vector candidate that satisfies a predetermined condition based on a motion vector statistic from the derived predicted motion vector candidates. 前記条件は、動きベクトルの各要素の絶対値和が最大である請求項10に記載の映像復号装置。   The video decoding apparatus according to claim 10, wherein the condition is that a sum of absolute values of each element of the motion vector is maximum. 前記条件は、前記対象ブロックの周囲或いは符号化済みフレームの符号化済みブロックの中で最頻動きベクトルである請求項10に記載の映像復号装置。   The video decoding apparatus according to claim 10, wherein the condition is a mode motion vector around the target block or in an encoded block of an encoded frame. イントラ予測及びインター予測を用いて映像をブロック単位で符号化する映像符号化装置が行う映像符号化方法であって、
対象ブロックの周囲の候補ブロックから予測動きベクトル候補を導出する予測動きベクトル導出ステップと、
前記対象ブロックでイントラ予測モードが選択されている場合、前記予測動きベクトル導出ステップによって導出した予測動きベクトルを前記対象ブロックの動きベクトルとして設定する予測動きベクトル設定ステップと
を有する映像符号化方法。
A video encoding method performed by a video encoding device that encodes video in units of blocks using intra prediction and inter prediction,
A prediction motion vector derivation step for deriving a prediction motion vector candidate from candidate blocks around the target block;
A prediction motion vector setting step of setting a prediction motion vector derived by the prediction motion vector derivation step as a motion vector of the target block when an intra prediction mode is selected in the target block;
前記予測動きベクトル導出ステップでは、前記候補ブロックが前記イントラ予測モードである場合には前記予測動きベクトル設定ステップで設定された動きベクトルを前記対象ブロックの予測動きベクトル候補として参照する請求項13に記載の映像符号化方法。   The prediction motion vector derivation step refers to the motion vector set in the prediction motion vector setting step as a prediction motion vector candidate of the target block when the candidate block is in the intra prediction mode. Video encoding method. イントラ予測及びインター予測を用いて映像をブロック単位で符号化された符号化データを復号する映像復号装置が行う映像復号方法であって、
対象ブロックの周囲の候補ブロックから予測動きベクトル候補を導出する予測動きベクトル導出ステップと、
前記対象ブロックでイントラ予測モードが選択されている場合、前記予測動きベクトル導出ステップによって導出した予測動きベクトルを前記対象ブロックの動きベクトルとして設定する予測動きベクトル設定ステップと
を有する映像復号方法。
A video decoding method performed by a video decoding device that decodes encoded data obtained by encoding a video block by block using intra prediction and inter prediction,
A prediction motion vector derivation step for deriving a prediction motion vector candidate from candidate blocks around the target block;
And a prediction motion vector setting step of setting a prediction motion vector derived by the prediction motion vector derivation step as a motion vector of the target block when an intra prediction mode is selected in the target block.
前記予測動きベクトル導出ステップでは、前記候補ブロックが前記イントラ予測モードである場合には前記予測動きベクトル設定ステップで設定された動きベクトルを前記対象ブロックの予測動きベクトル候補として参照する請求項15に記載の映像復号方法。   16. The prediction motion vector deriving step refers to the motion vector set in the prediction motion vector setting step as a prediction motion vector candidate of the target block when the candidate block is in the intra prediction mode. Video decoding method. コンピュータを、請求項1から6のいずれか1項に記載の映像符号化装置として機能させるための映像符号化プログラム。   A video encoding program for causing a computer to function as the video encoding device according to any one of claims 1 to 6. コンピュータを、請求項7から12のいずれか1項に記載の映像復号装置として機能させるための映像復号プログラム。   A video decoding program for causing a computer to function as the video decoding device according to any one of claims 7 to 12.
JP2015218588A 2015-11-06 2015-11-06 Video encoding apparatus, video decoding apparatus, video encoding method, video decoding method, video encoding program, and video decoding program Active JP6491587B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015218588A JP6491587B2 (en) 2015-11-06 2015-11-06 Video encoding apparatus, video decoding apparatus, video encoding method, video decoding method, video encoding program, and video decoding program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015218588A JP6491587B2 (en) 2015-11-06 2015-11-06 Video encoding apparatus, video decoding apparatus, video encoding method, video decoding method, video encoding program, and video decoding program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2019023944A Division JP6694086B2 (en) 2019-02-13 2019-02-13 Video coding device, video decoding device, video coding method, video decoding method, and program

Publications (2)

Publication Number Publication Date
JP2017092651A true JP2017092651A (en) 2017-05-25
JP6491587B2 JP6491587B2 (en) 2019-03-27

Family

ID=58771119

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015218588A Active JP6491587B2 (en) 2015-11-06 2015-11-06 Video encoding apparatus, video decoding apparatus, video encoding method, video decoding method, video encoding program, and video decoding program

Country Status (1)

Country Link
JP (1) JP6491587B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005244503A (en) * 2004-02-25 2005-09-08 Sony Corp Apparatus and method for coding image information
WO2006101126A1 (en) * 2005-03-22 2006-09-28 Matsushita Electric Industrial Co., Ltd. Encoding device and dynamic image recording system using the encoding device
JP2010517405A (en) * 2007-01-29 2010-05-20 サムスン エレクトロニクス カンパニー リミテッド Video encoding method and apparatus, video decoding method and apparatus
JP2011061302A (en) * 2009-09-07 2011-03-24 Hitachi Kokusai Electric Inc Moving picture encoder
JP2012191513A (en) * 2011-03-11 2012-10-04 Sony Corp Image processing apparatus and method
US20150264386A1 (en) * 2014-03-17 2015-09-17 Qualcomm Incorporated Block vector predictor for intra block copying

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005244503A (en) * 2004-02-25 2005-09-08 Sony Corp Apparatus and method for coding image information
WO2006101126A1 (en) * 2005-03-22 2006-09-28 Matsushita Electric Industrial Co., Ltd. Encoding device and dynamic image recording system using the encoding device
JP2010517405A (en) * 2007-01-29 2010-05-20 サムスン エレクトロニクス カンパニー リミテッド Video encoding method and apparatus, video decoding method and apparatus
JP2011061302A (en) * 2009-09-07 2011-03-24 Hitachi Kokusai Electric Inc Moving picture encoder
JP2012191513A (en) * 2011-03-11 2012-10-04 Sony Corp Image processing apparatus and method
US20150264386A1 (en) * 2014-03-17 2015-09-17 Qualcomm Incorporated Block vector predictor for intra block copying

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JIANLE CHEN AND TAMMY LEE: "MVP index parsing with fixed number of candidates", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11, vol. JCTVC-F402r1, JPN6018023673, July 2011 (2011-07-01), pages 1 - 17, ISSN: 0003944441 *
TOSHIYASU SUGIO AND TAKAHIRO NISHI: "Parsing Robustness for Merge/AMVP", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11, vol. JCTVC-F470_r4, JPN6018023677, July 2011 (2011-07-01), pages 1 - 33, ISSN: 0003944442 *

Also Published As

Publication number Publication date
JP6491587B2 (en) 2019-03-27

Similar Documents

Publication Publication Date Title
JP7271768B2 (en) Candidate list sharing method and apparatus using such method
US11284067B2 (en) Method and apparatus for setting reference picture index of temporal merging candidate
TWI803563B (en) Improved decoder-side motion vector derivation
KR102042276B1 (en) Method for video encoding and computer readable redording meduim thereof
KR102132409B1 (en) Method and apparatus for video encoding/decoding using error compensation
JP6495835B2 (en) Video encoding apparatus, video decoding apparatus, video encoding method, video decoding method, video encoding program, and video decoding program
KR102070719B1 (en) Method for inter prediction and apparatus thereof
KR101965287B1 (en) Method for inter prediction and apparatus thereof
WO2013009104A2 (en) Inter prediction method and apparatus for same
JP2015195575A (en) Moving picture encoding device and method
JP6032367B2 (en) Moving picture coding apparatus, moving picture coding method, moving picture decoding apparatus, and moving picture decoding method
JP6491587B2 (en) Video encoding apparatus, video decoding apparatus, video encoding method, video decoding method, video encoding program, and video decoding program
JP6694086B2 (en) Video coding device, video decoding device, video coding method, video decoding method, and program
JP6438376B2 (en) Video encoding apparatus, video decoding apparatus, video encoding method, video decoding method, video encoding program, and video decoding program
JP2015111774A (en) Video coding device and video coding program
WO2012044118A2 (en) Method and apparatus for encoding / decoding video using error compensation
JP6696889B2 (en) IMAGE ENCODING DEVICE, IMAGE ENCODING METHOD, AND COMPUTER PROGRAM
JP2016187134A (en) Prediction mode determination method and prediction mode determination program
KR20200126954A (en) Method for inter prediction and apparatus thereof
JP6849781B2 (en) Image coding device, image coding method and computer program
JP6841709B2 (en) Image coding device, image decoding device, image coding program and image decoding program
KR20150112470A (en) Video encoding and decoding method and apparatus using the same
KR20230031862A (en) Method for inter prediction and apparatus thereof
JP5990133B2 (en) Video encoding apparatus and video encoding method
KR20120095794A (en) Fast video coding method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180920

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181002

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181221

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190208

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: 20190226

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190301

R150 Certificate of patent or registration of utility model

Ref document number: 6491587

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150