JP2020074624A - Moving picture coding device and moving picture decoding method - Google Patents

Moving picture coding device and moving picture decoding method Download PDF

Info

Publication number
JP2020074624A
JP2020074624A JP2020016204A JP2020016204A JP2020074624A JP 2020074624 A JP2020074624 A JP 2020074624A JP 2020016204 A JP2020016204 A JP 2020016204A JP 2020016204 A JP2020016204 A JP 2020016204A JP 2020074624 A JP2020074624 A JP 2020074624A
Authority
JP
Japan
Prior art keywords
motion information
unit
prediction
information
motion
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
JP2020016204A
Other languages
Japanese (ja)
Other versions
JP2020074624A5 (en
JP6871447B2 (en
Inventor
太一郎 塩寺
Taiichiro Shiodera
太一郎 塩寺
昭行 谷沢
Akiyuki Tanizawa
昭行 谷沢
山影 朋夫
Tomoo Yamakage
朋夫 山影
中條 健
Takeshi Nakajo
健 中條
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2020016204A priority Critical patent/JP6871447B2/en
Publication of JP2020074624A publication Critical patent/JP2020074624A/en
Publication of JP2020074624A5 publication Critical patent/JP2020074624A5/ja
Application granted granted Critical
Publication of JP6871447B2 publication Critical patent/JP6871447B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

To provide a moving picture coding device including a motion information compression device capable of improving coding efficiency, and a moving picture decoding method.SOLUTION: A method of dividing an input image signal 151 into pixel blocks and performing inter prediction on the divided pixel blocks in an image coding device 100 includes a step of selecting the motion prediction information from a motion information memory 110 that holds motion information in an encoded area, and predicting motion information of an encoded target block using the predictive motion information, and a step of obtaining representative motion information according to first information indicating a method of selecting the motion vector predictor information from among a plurality of pieces of motion information in the area in which the encoding has been ended, and obtaining only the representative motion information.SELECTED DRAWING: Figure 1

Description

本発明の実施形態は、動画像の符号化及び復号化における動き情報圧縮方法、動画像符号化方法及び動画像復号化方法に関する。   Embodiments of the present invention relate to a motion information compression method, a moving image coding method, and a moving image decoding method in moving image coding and decoding.

近年、大幅に符号化効率を向上させた画像符号化方法が、ITU-TとISO/IECとの共同で、ITU-T Rec. H.264及びISO/IEC 14496-10(以下、H.264という)として勧告されている。H.264では、予測処理、変換処理及びエントロピー符号化処理は、矩形ブロック単位(例えば、16×16画素ブロック単位、8×8画素ブロック単位等)で行われる。予測処理においては、符号化対象の矩形ブロック(符号化対象ブロック)に対して、既に符号化済みのフレーム(参照フレーム)を参照して、時間方向の予測を行う動き補償が行われる。このような動き補償では、符号化対象ブロックと参照フレーム内において参照されるブロックとの空間的シフト情報としての動きベクトルを含む動き情報を符号化して復号化側に送る必要がある。さらに、複数の参照フレームを用いて動き補償を行う場合、動き情報とともに参照フレーム番号も符号化する必要がある。このため、動き情報及び参照フレーム番号に関する符号量が増大する場合がある。また、参照フレームの動き情報メモリに格納されている動き情報を参照して、符号化対象ブロックの予測動き情報を導出する動き情報予測方法があり(特許文献1及び非特許文献2)、動き情報を格納する動き情報メモリの容量が増加する場合がある。   In recent years, an image coding method with greatly improved coding efficiency has been developed by ITU-T and ISO / IEC in cooperation with ITU-T Rec. H.264 and ISO / IEC 14496-10 (hereinafter H.264). Is said). In H.264, prediction processing, conversion processing, and entropy coding processing are performed in rectangular block units (for example, 16 × 16 pixel block units, 8 × 8 pixel block units, etc.). In the prediction process, motion compensation is performed on a rectangular block to be coded (block to be coded) by referring to a frame that has already been coded (reference frame) and performing prediction in the time direction. In such motion compensation, it is necessary to encode the motion information including the motion vector as the spatial shift information of the block to be coded and the block referred to in the reference frame and send it to the decoding side. Furthermore, when performing motion compensation using a plurality of reference frames, it is necessary to encode the reference frame number together with the motion information. For this reason, the code amount for the motion information and the reference frame number may increase. In addition, there is a motion information prediction method for deriving predicted motion information of an encoding target block by referring to motion information stored in a motion information memory of a reference frame (Patent Document 1 and Non-Patent Document 2). May increase the capacity of the motion information memory for storing.

動き情報メモリの容量を削減する方法の一例として、(非特許文献2)では、予め定められたブロック内で代表する動き情報を導出し、代表する動き情報のみを動き情報メモリに格納する。   As an example of a method for reducing the capacity of the motion information memory, (Non-Patent Document 2) derives representative motion information within a predetermined block and stores only the representative motion information in the motion information memory.

特許第4020789号Patent No. 4020789 J. Jung et al, “Temporal MV predictor modification for MV-Comp, Skip, Direct and Merge schemes”, Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11 Document, JCTVC-D164, January 20110.J. Jung et al, “Temporal MV predictor modification for MV-Comp, Skip, Direct and Merge schemes”, Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11 Document, JCTVC-D164, January 20110. Yeping Su et al, “CE9: Reduced resolution storage of motion vector data”, Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11 Document, JCTVC-D072, January 20110.Yeping Su et al, “CE9: Reduced resolution storage of motion vector data”, Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11 Document, JCTVC-D072, January 20110.

しかしながら、非特許文献1で示される予測動き情報の導出方法と非特許文献2で示される代表動き情報の導出方法が異なる場合に、予測動き情報の時間相関が低減するために、動き情報に関する符号量が増加される問題がある。   However, when the method of deriving the predicted motion information shown in Non-Patent Document 1 and the method of deriving the representative motion information shown in Non-Patent Document 2 are different, the time correlation of the predicted motion information is reduced, and therefore, the code related to the motion information There is a problem that the quantity is increased.

本発明が解決しようとする課題は、上記問題点を解決するためになされたものであり、符号化効率を向上可能な動き情報圧縮装置を含んだ動画像符号化装置及び動画像復号化装置を提供することである。   The problems to be solved by the present invention have been made to solve the above problems, and provide a moving picture coding apparatus and a moving picture decoding apparatus including a motion information compression apparatus capable of improving coding efficiency. Is to provide.

実施形態によれば、動画像符号化方法は、入力画像信号を画素ブロックに分割し、これら分割した画素ブロックに対してインター予測を行う方法である。この方法は、符号化済み領域における動き情報を保持する動き情報バッファの中から、予測動き情報を選択し、前記予測動き情報を用いて、符号化対象ブロックの動き情報を予測することを含み。さらに、この方法は符号化が終了した領域内の複数の動き情報の中から、前記予測動き情報の選択方法を示す第1情報に従って代表動き情報を取得し、前記代表動き情報のみを得ることを含む。   According to the embodiment, the moving image coding method is a method of dividing an input image signal into pixel blocks and performing inter prediction on the divided pixel blocks. This method includes selecting predicted motion information from a motion information buffer that holds motion information in a coded area, and predicting motion information of a current block using the predicted motion information. Furthermore, this method is to obtain representative motion information from a plurality of pieces of motion information in an area in which coding has been completed in accordance with first information indicating a method of selecting the predicted motion information, and obtain only the representative motion information. Including.

第1の実施形態に係る画像符号化装置の構成を概略的に示すブロック図。The block diagram which shows roughly the structure of the image coding apparatus which concerns on 1st Embodiment. 画素ブロックの予測符号化順の説明図。Explanatory drawing of the predictive coding order of a pixel block. 画素ブロックサイズの一例の説明図。Explanatory drawing of an example of a pixel block size. 画素ブロックサイズの別の例の説明図。Explanatory drawing of another example of a pixel block size. 画素ブロックサイズの別の例の説明図。Explanatory drawing of another example of a pixel block size. コーディングツリーユニットにおける画素ブロックの一例の説明図。Explanatory drawing of an example of the pixel block in a coding tree unit. コーディングツリーユニットにおける画素ブロックの別の例の説明図。Explanatory drawing of another example of the pixel block in a coding tree unit. コーディングツリーユニットにおける画素ブロックの別の例の説明図。Explanatory drawing of another example of the pixel block in a coding tree unit. コーディングツリーユニットにおける画素ブロックの別の例の説明図。Explanatory drawing of another example of the pixel block in a coding tree unit. 図1のエントロピー符号化部の構成を概略的に示すブロック図。FIG. 2 is a block diagram schematically showing a configuration of an entropy coding unit in FIG. 1. 図1の動き情報メモリの構成を概略的に示す説明図。FIG. 3 is an explanatory diagram schematically showing the configuration of the motion information memory of FIG. 1. 図1のインター予測部が実行するインター予測処理の一例の説明図。Explanatory drawing of an example of the inter prediction process which the inter prediction part of FIG. 1 performs. 図1のインター予測部が実行するインター予測処理の別の例の説明図。Explanatory drawing of another example of the inter prediction process which the inter prediction part of FIG. 1 performs. プレディクションユニットの一例の説明図。Explanatory drawing of an example of a prediction unit. プレディクションユニットの別の例の説明図。Explanatory drawing of another example of a prediction unit. プレディクションユニットの別の例の説明図。Explanatory drawing of another example of a prediction unit. プレディクションユニットの別の例の説明図。Explanatory drawing of another example of a prediction unit. プレディクションユニットの別の例の説明図。Explanatory drawing of another example of a prediction unit. プレディクションユニットの別の例の説明図。Explanatory drawing of another example of a prediction unit. プレディクションユニットの別の例の説明図。Explanatory drawing of another example of a prediction unit. スキップモード、マージモード、インターモードを示す説明図。Explanatory drawing which shows a skip mode, a merge mode, and an inter mode. 図4の動き情報符号化部の構成を概略的に示すブロック図。FIG. 5 is a block diagram schematically showing the configuration of a motion information encoding unit in FIG. 4. 符号化対象プレディクションユニットに対する、予測動き情報候補の位置の例を示す説明図。Explanatory drawing which shows the example of the position of the prediction motion information candidate with respect to the encoding target prediction unit. 符号化対象プレディクションユニットに対する、予測動き情報候補の位置の更に別の例を示す説明図。Explanatory drawing which shows another example of the position of the prediction motion information candidate with respect to the encoding target prediction unit. 複数の予測動き情報候補のブロック位置とインデクスMvpidxの関係を示すリストの例を示す説明図。Explanatory drawing which shows the example of the list | wrist which shows the relationship between the block position of several prediction motion information candidates, and index Mvpidx. 符号化対象プレディクションユニットのサイズが32x32の場合の、プレディクションユニットの中心を示す参照動き情報取得位置の例を示す説明図。Explanatory drawing which shows the example of the reference motion information acquisition position which shows the center of a prediction unit in case the size of the encoding target prediction unit is 32x32. 符号化対象プレディクションユニットのサイズが32x16の場合の、プレディクションユニットの中心を示す参照動き情報取得位置の例を示す説明図。Explanatory drawing which shows the example of the reference motion information acquisition position which shows the center of a prediction unit in case the size of the encoding target prediction unit is 32x16. 符号化対象プレディクションユニットのサイズが16x32の場合の、プレディクションユニットの中心を示す参照動き情報取得位置の例を示す説明図。Explanatory drawing which shows the example of the reference motion information acquisition position which shows the center of a prediction unit when the size of the encoding target prediction unit is 16x32. 符号化対象プレディクションユニットのサイズが16x16の場合の、プレディクションユニットの中心を示す参照動き情報取得位置の例を示す説明図。Explanatory drawing which shows the example of the reference motion information acquisition position which shows the center of a prediction unit, when the size of the encoding target prediction unit is 16x16. 符号化対象プレディクションユニットのサイズが16x8の場合の、プレディクションユニットの中心を示す参照動き情報取得位置の例を示す説明図。Explanatory drawing which shows the example of the reference motion information acquisition position which shows the center of a prediction unit, when the size of the encoding target prediction unit is 16x8. 符号化対象プレディクションユニットのサイズが8x16の場合の、プレディクションユニットの中心を示す参照動き情報取得位置の例を示す説明図。Explanatory drawing which shows the example of the reference motion information acquisition position which shows the center of a prediction unit when the size of the encoding target prediction unit is 8x16. 符号化対象プレディクションユニットのサイズが32x32の場合の、プレディクションユニットの中心を示す参照動き情報取得位置の更に別の例を示す説明図。Explanatory drawing which shows another example of the reference motion information acquisition position which shows the center of a prediction unit when the size of the encoding target prediction unit is 32x32. 符号化対象プレディクションユニットのサイズが32x16の場合の、プレディクションユニットの中心を示す参照動き情報取得位置の更に別の例を示す説明図。Explanatory drawing which shows another example of the reference motion information acquisition position which shows the center of a prediction unit in case the size of the encoding target prediction unit is 32x16. 符号化対象プレディクションユニットのサイズが16x32の場合の、プレディクションユニットの中心を示す参照動き情報取得位置の更に別の例を示す説明図。Explanatory drawing which shows another example of the reference motion information acquisition position which shows the center of a prediction unit, when the size of the encoding target prediction unit is 16x32. 符号化対象プレディクションユニットのサイズが16x16の場合の、プレディクションユニットの中心を示す参照動き情報取得位置の更に別の例を示す説明図。Explanatory drawing which shows another example of the reference motion information acquisition position which shows the center of a prediction unit when the size of the encoding target prediction unit is 16x16. 符号化対象プレディクションユニットのサイズが16x8の場合の、プレディクションユニットの中心を示す参照動き情報取得位置の更に別の例を示す説明図。Explanatory drawing which shows another example of the reference motion information acquisition position which shows the center of a prediction unit, when the size of the encoding target prediction unit is 16x8. 符号化対象プレディクションユニットのサイズが8x16の場合の、プレディクションユニットの中心を示す参照動き情報取得位置の更に別の例を示す説明図。Explanatory drawing which shows another example of the reference motion information acquisition position which shows the center of a prediction unit, when the size of the encoding target prediction unit is 8x16. 空間方向参照動き情報メモリ501及び時間方向参照動き情報メモリ502に関する説明図。Explanatory drawing regarding the space direction reference motion information memory 501 and the time direction reference motion information memory 502. 図1の動き情報圧縮部の動作の一例を示すフローチャート。3 is a flowchart showing an example of the operation of the motion information compression unit in FIG. 1. 符号化対象プレディクションユニットのサイズが32x32の場合の、プレディクションユニットの左上端を示す参照動き情報取得位置の例を示す説明図。Explanatory drawing which shows the example of the reference motion information acquisition position which shows the upper left end of a prediction unit when the size of the encoding target prediction unit is 32x32. 符号化対象プレディクションユニットのサイズが32x16の場合の、プレディクションユニットの左上端を示す参照動き情報取得位置の例を示す説明図。Explanatory drawing which shows the example of the reference motion information acquisition position which shows the upper left end of a prediction unit when the size of the encoding target prediction unit is 32x16. 符号化対象プレディクションユニットのサイズが16x32の場合の、プレディクションユニットの左上端を示す参照動き情報取得位置の例を示す説明図。Explanatory drawing which shows the example of the reference motion information acquisition position which shows the upper left end of a prediction unit when the size of the encoding target prediction unit is 16x32. 符号化対象プレディクションユニットのサイズが16x16の場合の、プレディクションユニットの左上端を示す参照動き情報取得位置の例を示す説明図。Explanatory drawing which shows the example of the reference motion information acquisition position which shows the upper left end of a prediction unit when the size of the encoding target prediction unit is 16x16. 符号化対象プレディクションユニットのサイズが16x8の場合の、プレディクションユニットの左上端を示す参照動き情報取得位置の例を示す説明図。Explanatory drawing which shows the example of the reference motion information acquisition position which shows the upper left corner of a prediction unit in case the size of the encoding target prediction unit is 16x8. 符号化対象プレディクションユニットのサイズが8x16の場合の、プレディクションユニットの左上端を示す参照動き情報取得位置の例を示す説明図。Explanatory drawing which shows the example of the reference motion information acquisition position which shows the upper left end of a prediction unit in case the size of the encoding target prediction unit is 8x16. 代表動き情報位置の例を示す説明図。Explanatory drawing which shows the example of a representative motion information position. 代表動き情報位置の別の例を示す説明図。Explanatory drawing which shows another example of a representative motion information position. 各プレディクションサイズにおけるプレディクションユニットの中心の例を示す説明図。Explanatory drawing which shows the example of the center of the prediction unit in each prediction size. 動き情報圧縮ブロック毎の複数の参照動き情報取得位置の重心を代表動き情報位置と設定した場合の代表動き情報位置の例を示す説明図。Explanatory drawing which shows the example of a representative motion information position when the gravity center of several reference motion information acquisition positions for every motion information compression block is set as a representative motion information position. 動き情報圧縮ブロック毎の複数の参照動き情報取得位置の重心を代表動き情報位置と設定した場合の代表動き情報位置の別例を示す説明図。FIG. 9 is an explanatory diagram showing another example of representative motion information positions when the center of gravity of a plurality of reference motion information acquisition positions for each motion information compression block is set as the representative motion information position. 代表動き情報位置の例を示す説明図。Explanatory drawing which shows the example of a representative motion information position. 代表動き情報位置の別の例を示す説明図。Explanatory drawing which shows another example of a representative motion information position. 一実施形態に従うシンタクス構造を示す図である。FIG. 6 illustrates a syntax structure according to one embodiment. 一実施形態に従うシーケンスパラメータセットシンタクスの一例を示す図である。FIG. 6 is a diagram showing an example of a sequence parameter set syntax according to one embodiment. 一実施形態に従うシーケンスパラメータセットシンタクスの別例を示す図である。It is a figure which shows another example of the sequence parameter set syntax according to one embodiment. 一実施形態に従うプレディクションユニットシンタクスの一例を示す図である。It is a figure which shows an example of the prediction unit syntax according to one embodiment. 第2の実施形態に係る画像復号化装置を概略的に示すブロック図。The block diagram which shows the image decoding apparatus which concerns on 2nd Embodiment roughly. 図25のエントロピー復号化部を概略的に示すブロック図。FIG. 26 is a block diagram schematically showing the entropy decoding unit of FIG. 25. 図26の動き情報復号化部を概略的に示すブロック図。FIG. 27 is a block diagram schematically showing the motion information decoding unit of FIG. 26.

以下、図面を参照して、各実施形態に係る動画像符号化装置及び動画像復号化装置について詳細に説明する。なお、以降の説明において、「画像」という用語は、「映像」「画素」「画像信号」、「画像データ」などの用語として適宜読み替えることができる。また、以下の実施形態では、同一の番号を付した部分については同様の動作を行うものとして、重ねての説明を省略する。
(第1の実施形態)
第1の実施形態は画像符号化装置に関する。本実施形態に係る画像符号化装置に対応する動画像復号化装置は、第2の実施形態において説明する。この画像符号化装置は、LSI(Large-Scale Integration)チップやDSP(Digital Signal Processor)、FPGA(Field Programmable Gate Array)などのハードウェアにより実現可能である。また、この画像符号化装置は、コンピュータに画像符号化プログラムを実行させることによっても実現可能である。
Hereinafter, the moving image encoding device and the moving image decoding device according to each embodiment will be described in detail with reference to the drawings. Note that in the following description, the term "image" can be appropriately read as the terms "video", "pixel", "image signal", "image data", and the like. Further, in the following embodiments, the same operation is performed for the parts to which the same numbers are assigned, and the overlapping description will be omitted.
(First embodiment)
The first embodiment relates to an image encoding device. A moving picture decoding apparatus corresponding to the image coding apparatus according to this embodiment will be described in the second embodiment. This image encoding device can be realized by hardware such as an LSI (Large-Scale Integration) chip, a DSP (Digital Signal Processor), and an FPGA (Field Programmable Gate Array). The image coding apparatus can also be realized by causing a computer to execute the image coding program.

図1に示すように、本実施形態に係る画像符号化装置100は、減算部101、直交変換部102、量子化部103、逆量子化部104、逆直交変換部105、加算部106、参照画像メモリ107、インター予測部108、動き情報圧縮部109、動き情報メモリ110、及びエントロピー符号化部112を含む。符号化制御部114、及び出力バッファ113は通常、画像符号化装置100の外部に設置される。   As shown in FIG. 1, the image encoding device 100 according to the present embodiment refers to a subtraction unit 101, an orthogonal transformation unit 102, a quantization unit 103, an inverse quantization unit 104, an inverse orthogonal transformation unit 105, an addition unit 106. An image memory 107, an inter prediction unit 108, a motion information compression unit 109, a motion information memory 110, and an entropy coding unit 112 are included. The coding control unit 114 and the output buffer 113 are usually installed outside the image coding apparatus 100.

図1の画像符号化装置100は、入力画像信号151を構成する各フレームまたは各フィールドまたは各スライスを複数の画素ブロックに分割し、これら分割した画素ブロックに対して予測符号化を行って、符号化データ163を出力する。以降の説明では、簡単化のために、図2Aに示されるように左上から右下に向かって画素ブロックの予測符号化が行われることを仮定する。図2Aでは、符号化処理対象のフレームfにおいて、符号化対象画素ブロックcよりも左側及び上側に符号化済み画素ブロックpが位置している。   The image coding apparatus 100 of FIG. 1 divides each frame, each field, or each slice forming the input image signal 151 into a plurality of pixel blocks, performs predictive coding on these divided pixel blocks, and codes the pixel blocks. The converted data 163 is output. In the following description, for simplification, it is assumed that pixel blocks are predictively encoded from upper left to lower right as shown in FIG. 2A. In FIG. 2A, the encoded pixel block p is located on the left side and the upper side of the encoding target pixel block c in the encoding target frame f.

ここで、画素ブロックは、例えば、M×Nサイズのブロック(N及びMは自然数)、コーディングユニット、マクロブロック、サブブロック、1画素などの画像を処理する単位を指す。なお、以降の説明では、画素ブロックをコーディングユニットの意味で基本的に使用するが、説明を適宜読み替えることにより画素ブロックを上述した意味で解釈することも可能である。コーディングユニットは、典型的には、例えば図2Bに示す16×16画素ブロックであるが、図2Cに示す32×32画素ブロック、図2Dに示す64×64画素ブロックであってもよいし、図示しない8×8画素ブロック、4×4画素ブロックであってもよい。また、コーディングユニットは必ずしも正方形である必要はない。以下、入力画像信号151の符号化対象ブロックもしくはコーディングニットを「予測対象ブロック」と称することもある。また、符号化単位には、コーディングユニットのような画素ブロックに限らず、フレームまたはフィールド、スライス、或いはこれらの組み合わせを用いることができる。   Here, the pixel block refers to a unit for processing an image, such as an M × N size block (N and M are natural numbers), a coding unit, a macro block, a sub block, and one pixel. In the following description, the pixel block is basically used in the meaning of a coding unit, but the pixel block can be interpreted in the above meaning by appropriately reading the description. The coding unit is typically, for example, a 16 × 16 pixel block shown in FIG. 2B, but may be a 32 × 32 pixel block shown in FIG. 2C or a 64 × 64 pixel block shown in FIG. 2D. It may be an 8 × 8 pixel block or a 4 × 4 pixel block. Also, the coding unit does not necessarily have to be square. Hereinafter, the coding target block or coding unit of the input image signal 151 may be referred to as a “prediction target block”. The coding unit is not limited to the pixel block like the coding unit, but a frame, a field, a slice, or a combination thereof can be used.

図3Aから図3Dまでは、コーディングユニットの具体例を示した図である。図3Aは、コーディングユニットのサイズが64×64(N=32)の場合の例を示している。ここでNは、基準となるコーディングユニットのサイズを表しており、分割された場合のサイズをNと定義し、分割されない場合を2Nと定義する。コーディングツリーユニットは四分木構造を持ち、分割された場合は、4つの画素ブロックに対してZスキャン順でインデックスが付される。図3Bに、図3Aの64x64画素ブロックを四分木分割した例を示す。図中に示される番号がZスキャンの順番を表している。また、コーディングユニットの1つの四分木のインデックス内でさらに四分木分割することが可能である。分割の深さをDepthで定義する。つまり、図3AはDepth=0の例を示している。図3CにDepth=1の場合の32×32(N=16)サイズのコーディングツリーユニットの例を示す。このようなコーディングツリーユニットの最も大きいユニットをラージコーディングツリーユニット若しくはツリーブロックと呼び、図2Aに示すように、この単位で入力画像信号がラスタースキャン順に符号化される。   3A to 3D are diagrams showing specific examples of the coding unit. FIG. 3A shows an example in which the size of the coding unit is 64 × 64 (N = 32). Here, N represents the size of the reference coding unit, and the size when divided is defined as N, and the case where it is not divided is defined as 2N. The coding tree unit has a quad tree structure, and when divided, four pixel blocks are indexed in the Z scan order. FIG. 3B shows an example in which the 64 × 64 pixel block of FIG. 3A is divided into quadtrees. The numbers shown in the figure represent the order of Z scanning. Further, it is possible to perform further quadtree partitioning within the index of one quadtree of the coding unit. The depth of division is defined by Depth. That is, FIG. 3A shows an example where Depth = 0. FIG. 3C shows an example of a 32 × 32 (N = 16) size coding tree unit when Depth = 1. The largest unit of such a coding tree unit is called a large coding tree unit or a tree block, and as shown in FIG. 2A, an input image signal is encoded in this unit in raster scan order.

図1の画像符号化装置100は、符号化制御部114から入力される符号化パラメータに基づいて、画素ブロックに対するインター予測(画面間予測、フレーム間予測、動き補償予測などとも称される)または図示されないイントラ予測(画面内予測、フレーム内予測などとも称される)を行って、予測画像信号159を生成する。この画像符号化装置100は、画素ブロック(入力画像信号151)と予測画像信号159との間の予測誤差信号152を直交変換及び量子化し、エントロピー符号化を行って符号化データ163を生成して出力する。   The image coding apparatus 100 in FIG. 1 is based on a coding parameter input from the coding control unit 114, and is inter prediction (also referred to as inter-frame prediction, inter-frame prediction, motion compensation prediction, etc.) for a pixel block, or Intra prediction (not shown) (also referred to as intra-frame prediction, intra-frame prediction, etc.) is performed to generate a predicted image signal 159. The image coding apparatus 100 orthogonally transforms and quantizes a prediction error signal 152 between a pixel block (input image signal 151) and a predicted image signal 159, performs entropy coding, and generates coded data 163. Output.

図1の画像符号化装置100は、ブロックサイズ及び予測画像信号159の生成方法の異なる複数の予測モードを選択的に適用して符号化を行う。予測画像信号159の生成方法は、大別すると、符号化対象フレーム内で予測を行うイントラ予測と、時間的に異なる1つまたは複数の参照フレームを用いて予測を行うインター予測との2種類である。   The image coding apparatus 100 in FIG. 1 performs coding by selectively applying a plurality of prediction modes having different block sizes and different generation methods of the predicted image signal 159. The method of generating the predicted image signal 159 is roughly classified into two types, that is, intra prediction that performs prediction within a frame to be coded and inter prediction that performs prediction using one or more temporally different reference frames. is there.

以下、図1の画像符号化装置100に含まれる各要素を説明する。
減算部101は、入力画像信号151の符号化対象ブロックから、対応する予測画像信号159を減算して予測誤差信号152を得る。減算部101は、予測誤差信号152を直交変換部102に入力する。
Hereinafter, each element included in the image encoding device 100 of FIG. 1 will be described.
The subtraction unit 101 subtracts the corresponding prediction image signal 159 from the encoding target block of the input image signal 151 to obtain the prediction error signal 152. The subtraction unit 101 inputs the prediction error signal 152 to the orthogonal transformation unit 102.

直交変換部102は、減算部101からの予測誤差信号152に対して、例えば離散コサイン変換(DCT)のような直交変換を行い、変換係数153を得る。直交変換部102は、変換係数153を量子化部103に出力する。   The orthogonal transform unit 102 performs an orthogonal transform such as a discrete cosine transform (DCT) on the prediction error signal 152 from the subtraction unit 101 to obtain a transform coefficient 153. The orthogonal transformation unit 102 outputs the transformation coefficient 153 to the quantization unit 103.

量子化部103は、直交変換部102からの変換係数153に対して量子化を行い、量子化変換係数154を得る。具体的には、量子化部103は、符号化制御部114によって指定される量子化パラメータ、量子化マトリクスなどの量子化情報に従って量子化を行う。量子化パラメータは、量子化の細かさを示す。量子化マトリクスは、量子化の細かさを変換係数の成分毎に重み付けするために使用されるが、量子化マトリクスの使用・不使用は本発明の実施形態の本質部分ではない。量子化部103は、量子化変換係数154をエントロピー符号化部112及び逆量子化部104に出力する。   The quantization unit 103 quantizes the transform coefficient 153 from the orthogonal transform unit 102 to obtain a quantized transform coefficient 154. Specifically, the quantization unit 103 performs quantization according to quantization information such as a quantization parameter and a quantization matrix designated by the encoding control unit 114. The quantization parameter indicates the fineness of quantization. The quantization matrix is used for weighting the fineness of the quantization for each component of the transform coefficient, but the use / non-use of the quantization matrix is not an essential part of the embodiment of the present invention. The quantization unit 103 outputs the quantized transform coefficient 154 to the entropy coding unit 112 and the inverse quantization unit 104.

エントロピー符号化部112は、量子化部103からの量子化変換係数154、インター予測部108からの動き情報160、符号化制御部114によって指定される予測情報165、符号化制御部114からの参照位置情報164、量子化情報などの様々な符号化パラメータに対してエントロピー符号化(例えば、ハフマン符号化、算術符号化など)を行い、符号化データ163を生成する。なお、符号化パラメータとは、予測情報165、変換係数に関する情報、量子化に関する情報、などの復号に必要となるパラメータである。例えば、符号化制御部114が内部メモリ(図示しない)を持ち、このメモリに符号化パラメータが保持され、予測対象ブロックを符号化する際に隣接する既に符号化済みの画素ブロックの符号化パラメータを用いる。   The entropy coding unit 112 has quantized transform coefficients 154 from the quantization unit 103, motion information 160 from the inter prediction unit 108, prediction information 165 designated by the coding control unit 114, and reference from the coding control unit 114. Entropy coding (for example, Huffman coding and arithmetic coding) is performed on various coding parameters such as position information 164 and quantization information to generate coded data 163. Note that the coding parameters are parameters necessary for decoding the prediction information 165, information about transform coefficients, information about quantization, and the like. For example, the encoding control unit 114 has an internal memory (not shown), the encoding parameter is held in this memory, and the encoding parameter of the already encoded pixel block adjacent to the prediction target block is encoded. To use.

具体的には、エントロピー符号化部112は、図4に示すように、パラメータ符号化部401、変換係数符号化部402、動き情報符号化部403、並びに多重化部404を備える。パラメータ符号化部401は、符号化制御部114から受け取った予測情報165などの符号化パラメータを符号化して符号化データ451Aを生成する。変換係数符号化部402は、量子化部103から受け取った量子化後の変換係数154を符号化して符号化データ451Bを生成する。   Specifically, the entropy coding unit 112 includes a parameter coding unit 401, a transform coefficient coding unit 402, a motion information coding unit 403, and a multiplexing unit 404, as shown in FIG. The parameter coding unit 401 codes the coding parameter such as the prediction information 165 received from the coding control unit 114 to generate the coded data 451A. The transform coefficient coding unit 402 codes the quantized transform coefficient 154 received from the quantizing unit 103 to generate coded data 451B.

動き情報符号化部403は、動き情報メモリ110から受け取った参照動き情報166、符号化制御部114から受け取った参照位置情報164を参照して、インター予測部108から受け取った動き情報160を符号化して符号化データ451Cを生成する。動き情報符号化部403に関してはその詳細を後述する。   The motion information coding unit 403 codes the motion information 160 received from the inter prediction unit 108 with reference to the reference motion information 166 received from the motion information memory 110 and the reference position information 164 received from the coding control unit 114. To generate encoded data 451C. Details of the motion information encoding unit 403 will be described later.

多重化部404は、符号化データ451A、451B、451Cを多重化して符号化データ163を生成する。生成された符号化データ163は、動き情報160、予測情報165とともに、変換係数に関する情報、量子化に関する情報などの復号の際に必要になるあらゆるパラメータを含む。   The multiplexing unit 404 multiplexes the coded data 451A, 451B, and 451C to generate coded data 163. The generated encoded data 163 includes the motion information 160 and the prediction information 165 as well as all parameters necessary for decoding such as information about transform coefficients and information about quantization.

エントロピー符号化部112によって生成された符号化データ163は、例えば多重化を経て出力バッファ113に一時的に蓄積され、符号化制御部114が管理する適切な出力タイミングに従って符号化データ163として出力される。符号化データ163は、例えば、図示しない蓄積系(蓄積メディア)または伝送系(通信回線)へ出力される。   The encoded data 163 generated by the entropy encoding unit 112 is temporarily stored in the output buffer 113 through, for example, multiplexing, and is output as the encoded data 163 according to an appropriate output timing managed by the encoding control unit 114. It The encoded data 163 is output to, for example, a storage system (storage medium) or a transmission system (communication line) not shown.

逆量子化部104は、量子化部103からの量子化変換係数154に対して逆量子化を行い、復元変換係数155を得る。具体的には、逆量子化部104は、量子化部103において使用された量子化情報に従って逆量子化を行う。量子化部103において使用された量子化情報は、符号化制御部114の内部メモリからロードされる。逆量子化部104は、復元変換係数155を逆直交変換部105に出力する。   The inverse quantization unit 104 inversely quantizes the quantized transform coefficient 154 from the quantizer 103 to obtain a restored transform coefficient 155. Specifically, the inverse quantization unit 104 performs inverse quantization according to the quantization information used by the quantization unit 103. The quantization information used in the quantization unit 103 is loaded from the internal memory of the encoding control unit 114. The inverse quantization unit 104 outputs the restoration transform coefficient 155 to the inverse orthogonal transform unit 105.

逆直交変換部105は、逆量子化部104からの復元変換係数155に対して、例えば逆離散コサイン変換などのような直交変換部102において行われた直交変換に対応する逆直交変換を行い、復元予測誤差信号156を得る。逆直交変換部105は、復元予測誤差信号156を加算部106に出力する。   The inverse orthogonal transform unit 105 performs an inverse orthogonal transform corresponding to the orthogonal transform performed in the orthogonal transform unit 102, such as an inverse discrete cosine transform, on the restored transform coefficient 155 from the inverse quantization unit 104, A reconstruction prediction error signal 156 is obtained. The inverse orthogonal transformation unit 105 outputs the restoration prediction error signal 156 to the addition unit 106.

加算部106は、復元予測誤差信号156と、対応する予測画像信号159とを加算し、局所的な復号画像信号157を生成する。復号画像信号157は図示しないデブロッキングフィルタやウィナーフィルタなどを施し、参照画像メモリ107へと入力される。   The addition unit 106 adds the restored prediction error signal 156 and the corresponding predicted image signal 159 to generate a local decoded image signal 157. The decoded image signal 157 is input to the reference image memory 107 after being subjected to a deblocking filter, a Wiener filter or the like (not shown).

参照画像メモリ107は、メモリに局部復号後の被フィルタ画像信号158を蓄積しておりインター予測部108によって必要に応じて予測画像を生成する際に、参照画像信号158として参照される。   The reference image memory 107 stores the locally decoded filtered image signal 158 in the memory and is referred to as the reference image signal 158 when the inter prediction unit 108 generates a predicted image as necessary.

インター予測部108は、参照画像メモリ107に保存されている参照画像信号158を利用してインター予測を行う。具体的には、インター予測部108は、予測対象ブロックと参照画像信号158との間でブロックマッチング処理を行って動きのズレ量(動きベクトル)を導出する。インター予測部108は、この動きベクトルに基づいて動き補償(小数精度の動きの場合は補間処理)を行ってインター予測画像を生成する。H.264では、1/4画素精度までの補間処理が可能である。導出された動きベクトルは動き情報160の一部としてエントロピー符号化される。   The inter prediction unit 108 uses the reference image signal 158 stored in the reference image memory 107 to perform inter prediction. Specifically, the inter prediction unit 108 performs block matching processing between the prediction target block and the reference image signal 158 to derive a motion shift amount (motion vector). The inter prediction unit 108 performs motion compensation (interpolation processing in the case of decimal precision motion) based on this motion vector to generate an inter prediction image. H. With H.264, interpolation processing up to ¼ pixel precision is possible. The derived motion vector is entropy coded as a part of the motion information 160.

動き情報メモリ110は、動き情報圧縮部109を有し、動き情報160に対して適宜圧縮処理を行い情報量を削減し、参照動き情報166として一時的に格納する。図5に示されるように、動き情報メモリ110がフレーム(またはスライス)単位で保持されており、同一フレーム上の動き情報160を参照動き情報166として格納する空間方向参照動き情報メモリ501及び、既に符号化が終了したフレームの動き情報160を参照動き情報166として格納する時間方向参照動き情報メモリ502を更に有する。時間方向参照動き情報メモリ502は符号化対象フレームが予測に用いる参照フレームの数に応じて、複数有しても構わない。   The motion information memory 110 includes a motion information compression unit 109, appropriately compresses the motion information 160 to reduce the amount of information, and temporarily stores it as reference motion information 166. As shown in FIG. 5, the motion information memory 110 is held in units of frames (or slices), and the spatial direction reference motion information memory 501 that stores the motion information 160 on the same frame as reference motion information 166, and It further has a temporal direction reference motion information memory 502 which stores the motion information 160 of the encoded frame as reference motion information 166. A plurality of temporal direction reference motion information memories 502 may be provided according to the number of reference frames used for prediction by the encoding target frame.

また、空間方向参照動き情報メモリ501及び時間方向参照動き情報メモリ502は、物理的に同一のメモリを論理的に区切っても構わない。更に、空間方向参照動き情報メモリ501は、現在符号化を行っているフレームで必要な空間方向動き情報のみを保持し、参照が不要となった空間方向動き情報を順次圧縮して時間方向参照動き情報メモリ502に格納しても構わない。   Further, the spatial direction reference motion information memory 501 and the temporal direction reference motion information memory 502 may logically partition the physically same memory. Further, the spatial-direction reference motion information memory 501 holds only the spatial-direction motion information necessary for the frame currently being encoded, sequentially compresses the spatial-direction motion information for which reference is no longer necessary, and temporally references the reference motion. It may be stored in the information memory 502.

参照動き情報166は、所定の領域単位(例えば、4×4画素ブロック単位)で空間方向参照動き情報メモリ501及び時間方向参照動き情報メモリ502内に保持される。参照動き情報166は、その領域が後述するインター予測で符号化されたのか或いは後述するイントラ予測で符号化されたのかを示す情報をさらに有する。また、コーディングユニット(又はプレディクションユニット)がH.264で規定されるスキップモード、ダイレクトモード若しくは後述するマージモードのように、動き情報160内の動きベクトルの値が符号化されず、符号化済みの領域から予測された動き情報160を用いてインター予測される場合においても、当該コーディングユニット(又はプレディクションユニット)の動き情報が参照動き情報166として保持される。   The reference motion information 166 is held in the spatial direction reference motion information memory 501 and the time direction reference motion information memory 502 in units of a predetermined area (for example, in units of 4 × 4 pixel blocks). The reference motion information 166 further includes information indicating whether the area is coded by inter prediction described below or coded by intra prediction described below. In addition, the coding unit (or prediction unit) is an H.264 standard. Like the skip mode, the direct mode, or the merge mode described later, which is defined by H.264, the value of the motion vector in the motion information 160 is not coded, and the motion information 160 predicted from the coded area is used to interleave. Even in the case of prediction, the motion information of the coding unit (or the prediction unit) is held as the reference motion information 166.

符号化対象のフレーム又はスライスの符号化処理が終了したら、当該フレームの空間方向参照動き情報メモリ501は、次に符号化処理を行うフレームに用いる時間方向参照動き情報メモリ502としてその扱いが変更される。この際、時間方向参照動き情報メモリ502のメモリ容量を削減するために、後述する動き情報圧縮部109によって圧縮された動き情報160を時間方向参照動き情報メモリ502に格納する。   When the encoding process of the frame or slice to be encoded is completed, the spatial direction reference motion information memory 501 of the frame is changed in its treatment as the temporal direction reference motion information memory 502 used for the frame to be encoded next. It At this time, in order to reduce the memory capacity of the time-direction reference motion information memory 502, the motion information 160 compressed by the motion information compression unit 109 described later is stored in the time-direction reference motion information memory 502.

予測情報165は符号化制御部114が制御する予測モードに従っており、前述のように、予測画像信号159の生成のためにインター予測または図示されないイントラ予測またはインター予測が選択可能であるが、イントラ予測及びインター予測の夫々に複数のモードがさらに選択可能である。符号化制御部114はイントラ予測及びインター予測の複数の予測モードのうちの1つを最適な予測モードとして判定し、予測情報165を設定する。   The prediction information 165 is in accordance with the prediction mode controlled by the encoding control unit 114, and as described above, inter prediction or intra prediction (not shown) or inter prediction (not shown) for generating the predicted image signal 159 can be selected. Further, a plurality of modes can be further selected for each of the inter prediction and the inter prediction. The encoding control unit 114 determines one of a plurality of prediction modes of intra prediction and inter prediction as the optimum prediction mode, and sets the prediction information 165.

例えば、符号化制御部114は、次の数式(1)に示すコスト関数を用いて最適な予測モードを判定する。   For example, the encoding control unit 114 determines the optimal prediction mode using the cost function shown in the following mathematical expression (1).

数式(1)(以下、簡易符号化コストと呼ぶ)において、OHは予測情報160(例えば、動きベクトル情報、予測ブロックサイズ情報)に関する符号量を示し、SADは予測対象ブロックと予測画像信号159との間の差分絶対値和(即ち、予測誤差信号152の絶対値の累積和)を示す。また、λは量子化情報(量子化パラメータ)の値に基づいて決定されるラグランジュ未定乗数を示し、Kは符号化コストを示す。数式(1)を用いる場合には、符号化コストKを最小化する予測モードが発生符号量及び予測誤差の観点から最適な予測モードとして判定される。数式(1)の変形として、OHのみまたはSADのみから符号化コストを見積もってもよいし、SADにアダマール変換を施した値またはその近似値を利用して符号化コストを見積もってもよい。   In Expression (1) (hereinafter, referred to as a simple coding cost), OH indicates the code amount regarding the prediction information 160 (for example, motion vector information, prediction block size information), and SAD indicates the prediction target block and the prediction image signal 159. The sum of absolute differences (i.e., cumulative sum of absolute values of the prediction error signal 152) is shown. Further, λ indicates a Lagrange undetermined multiplier determined based on the value of the quantization information (quantization parameter), and K indicates the coding cost. When Equation (1) is used, the prediction mode that minimizes the coding cost K is determined as the optimum prediction mode from the viewpoint of the generated code amount and prediction error. As a modification of Expression (1), the coding cost may be estimated from only OH or only SAD, or the coding cost may be estimated using a value obtained by subjecting SAD to Hadamard transform or its approximate value.

また、図示しない仮符号化ユニットを用いることにより最適な予測モードを判定することも可能である。例えば、符号化制御部114は、次の数式(2)に示すコスト関数を用いて最適な予測モードを判定する。   It is also possible to determine the optimum prediction mode by using a temporary coding unit (not shown). For example, the encoding control unit 114 determines the optimum prediction mode using the cost function shown in the following mathematical expression (2).

数式(2)において、Dは予測対象ブロックと局所復号画像との間の二乗誤差和(即ち、符号化歪)を示し、Rは予測対象ブロックと予測モードの予測画像信号159との間の予測誤差について仮符号化によって見積もられた符号量を示し、Jは符号化コストを示す。数式(2)の符号化コストJ(以後、詳細符号化コストと呼ぶ)を導出する場合には予測モード毎に仮符号化処理及び局部復号化処理が必要なので、回路規模または演算量が増大する。反面、より正確な符号化歪と符号量とに基づいて符号化コストJが導出されるので、最適な予測モードを高精度に判定して高い符号化効率を維持しやすい。なお、数式(2)の変形として、RのみまたはDのみから符号化コストを見積もってもよいし、RまたはDの近似値を利用して符号化コストを見積もってもよい。また、これらのコストを階層的に用いてもよい。符号化制御部114は、予測対象ブロックに関して事前に得られる情報(周囲の画素ブロックの予測モード、画像解析の結果など)に基づいて、数式(1)または数式(2)を用いた判定を行う予測モードの候補の数を、予め絞り込んでおいてもよい。   In Expression (2), D indicates the sum of squared errors (that is, coding distortion) between the prediction target block and the locally decoded image, and R indicates the prediction between the prediction target block and the prediction image signal 159 in the prediction mode. The code amount estimated by tentative coding for the error is shown, and J shows the coding cost. When deriving the coding cost J (hereinafter, referred to as detailed coding cost) of the mathematical expression (2), provisional coding processing and local decoding processing are required for each prediction mode, so that the circuit scale or the amount of calculation increases. .. On the other hand, since the coding cost J is derived based on more accurate coding distortion and code amount, it is easy to determine the optimum prediction mode with high accuracy and maintain high coding efficiency. As a modification of Equation (2), the coding cost may be estimated from only R or D, or the coding cost may be estimated using an approximate value of R or D. Also, these costs may be used hierarchically. The encoding control unit 114 makes a determination using Expression (1) or Expression (2) based on information obtained in advance regarding the prediction target block (a prediction mode of surrounding pixel blocks, a result of image analysis, etc.). The number of prediction mode candidates may be narrowed down in advance.

本実施形態の変形例として、数式(1)と数式(2)を組み合わせた二段階のモード判定を行うことで、符号化性能を維持しつつ、予測モードの候補数をさらに削減することが可能となる。ここで、数式(1)で示される簡易符号化コストは、数式(2)と異なり局部復号化処理が必要ないため、高速に演算が可能である。本実施形態の動画像符号化装置では、H.264と比較しても予測モード数が多いため、詳細符号化コストを用いたモード判定は現実的ではない。そこで、第一ステップとして、簡易符号化コストを用いたモード判定を、当該画素ブロックで利用可能な予測モードに対して行い、予測モード候補を導出する。   As a modified example of the present embodiment, by performing a two-step mode determination that combines Equation (1) and Equation (2), it is possible to further reduce the number of prediction mode candidates while maintaining the coding performance. Becomes Here, unlike the mathematical expression (2), the simple coding cost represented by the mathematical expression (1) does not require local decoding processing, and thus can be calculated at high speed. In the moving image encoding device according to the present embodiment, the Even if compared with H.264, the number of prediction modes is large, and therefore mode determination using the detailed coding cost is not realistic. Therefore, as the first step, the mode determination using the simple coding cost is performed for the prediction modes available in the pixel block, and the prediction mode candidates are derived.

ここで、量子化の粗さを定めた量子化パラメータの値が大きくなるほど、簡易符号化コストと詳細符号化コストの相関が高くなる性質を利用して、予測モード候補数を変更する。   Here, the number of prediction mode candidates is changed by utilizing the property that the correlation between the simple coding cost and the detailed coding cost increases as the value of the quantization parameter that defines the roughness of quantization increases.

次に、画像符号化装置100の予測処理について説明する。
図1の画像符号化装置100には、図示していないが、複数の予測モードが用意されており、各予測モードでは、予測画像信号159の生成方法及び動き補償ブロックサイズが互いに異なる。予測部108が予測画像信号159を生成する方法としては、具体的には大きく分けて、符号化対象フレーム(又は、フィールド)の参照画像信号158を用いて予測画像を生成するイントラ予測(フレーム内予測)と、1以上の符号化済みの参照フレーム(又は、参照フィールド)の参照画像信号158を用いて予測画像を生成するインター予測(フレーム間予測)とがある。予測部108は、イントラ予測及びインター予測を選択的に切り替えて、符号化対象ブロックの予測画像信号159を生成する。
Next, the prediction process of the image encoding device 100 will be described.
Although not shown, the image coding apparatus 100 of FIG. 1 is provided with a plurality of prediction modes, and the prediction image signal 159 generation method and the motion compensation block size are different in each prediction mode. The method for the prediction unit 108 to generate the predicted image signal 159 is specifically broadly divided into intra prediction (intra-frame) for generating a predicted image using the reference image signal 158 of the encoding target frame (or field). Prediction) and inter-prediction (inter-frame prediction) in which a predicted image is generated using the reference image signal 158 of one or more coded reference frames (or reference fields). The prediction unit 108 selectively switches between intra prediction and inter prediction to generate the predicted image signal 159 of the current block.

図6Aは、インター予測の一例を示している。インター予測は、典型的にはプレディクションユニットの単位で実行され、プレディクションユニット単位で異なる動き情報160を有することが可能となる。インター予測では、図6Aに示されるように、既に符号化が完了している参照フレーム(例えば、1フレーム前の符号化済みフレーム)内の画素ブロックであって、符号化対象のプレディクションユニットと同じ位置のブロック601から、動き情報160に含まれる動きベクトルに応じて空間的にシフトした位置のブロック602の参照画像信号158を使用して、予測画像信号159が生成される。即ち、予測画像信号159の生成では、符号化対象ブロックの位置(座標)及び動き情報160に含まれる動きベクトルで特定される、参照フレーム内のブロック602の参照画像信号158が使用される。   FIG. 6A shows an example of inter prediction. The inter prediction is typically performed in units of prediction units, and it is possible to have different motion information 160 in units of prediction units. In inter prediction, as shown in FIG. 6A, a pixel block in a reference frame that has already been encoded (for example, an encoded frame that is one frame before), and a prediction unit that is an encoding target. The predicted image signal 159 is generated from the block 601 at the same position using the reference image signal 158 of the block 602 at the position spatially shifted according to the motion vector included in the motion information 160. That is, in the generation of the predicted image signal 159, the reference image signal 158 of the block 602 in the reference frame, which is specified by the position (coordinates) of the encoding target block and the motion vector included in the motion information 160, is used.

インター予測では、少数画素精度(例えば、1/2画素精度又は1/4画素精度)の動き補償が可能であり、参照画像信号158に対してフィルタリング処理を行うことによって、補間画素の値が生成される。例えば、H.264では、輝度信号に対して1/4画素精度までの補間処理が可能である。当該補間処理は、H.264で規定されるフィルタリングの他に、任意のフィルタリングを用いることにより実行可能である。   In inter prediction, motion compensation with a small number of pixels (for example, 1/2 pixel accuracy or 1/4 pixel accuracy) is possible, and the value of the interpolated pixel is generated by performing filtering processing on the reference image signal 158. To be done. For example, H.264. In H.264, interpolation processing up to ¼ pixel accuracy is possible for luminance signals. The interpolation processing is based on H.264. This can be performed by using any filtering other than the filtering defined by H.264.

なお、インター予測では、図6Aに示されるような1フレーム前の参照フレームを使用する例に限らず、図6Bに示されるように、いずれの符号化済みの参照フレームが使用されてもよい。時間位置が異なる複数の参照フレームの参照画像信号158が保持されている場合、どの時間位置の参照画像信号158から予測画像信号159を生成したかを示す情報は、参照フレーム番号で表わされる。参照フレーム番号は、動き情報160に含まれる。参照フレーム番号は、領域単位(ピクチャ、スライス、ブロック単位など)で変更することができる。即ち、プレディクションユニット毎に異なる参照フレームが使用されることができる。一例として、符号化済みの1フレーム前の参照フレームを予測に使用した場合、この領域の参照フレーム番号は、0に設定され、符号化済みの2フレーム前の参照フレームを予測に使用した場合、この領域の参照フレーム番号は、1に設定される。他の例として、1フレーム分だけの参照画像信号158が参照画像メモリ107に保持されている(保持されている参照フレームの数が1つのみである)場合、参照フレーム番号は、常に0に設定される。   It should be noted that in inter prediction, not only the example of using the reference frame one frame before as shown in FIG. 6A, but any coded reference frame may be used as shown in FIG. 6B. When the reference image signals 158 of a plurality of reference frames having different time positions are held, information indicating which time position of the reference image signal 158 the predicted image signal 159 is generated is represented by a reference frame number. The reference frame number is included in the motion information 160. The reference frame number can be changed in area units (pictures, slices, block units, etc.). That is, a different reference frame may be used for each prediction unit. As an example, when the coded reference frame one frame before is used for prediction, the reference frame number of this area is set to 0, and when the coded reference frame two frames before is used for prediction, The reference frame number of this area is set to 1. As another example, when the reference image signal 158 for only one frame is held in the reference image memory 107 (the number of held reference frames is only one), the reference frame number is always 0. Is set.

さらに、インター予測では、予め用意される複数のプレディクションユニットのサイズの中から符号化対象ブロックに適したサイズを選択して用いることができる。例えば、図7Aから図7Gに示されるようなコーディングツリーユニットを分割して得られるプレディクションユニット毎に動き補償を行うことが可能である。また、図7F、図7Gに示されるような矩形以外に分割して得られるプレディクションユニット毎に動き補償を行うことが可能である。   Furthermore, in the inter prediction, a size suitable for the encoding target block can be selected and used from the sizes of a plurality of prediction units prepared in advance. For example, it is possible to perform motion compensation for each prediction unit obtained by dividing a coding tree unit as shown in FIGS. 7A to 7G. Further, it is possible to perform motion compensation for each prediction unit obtained by dividing into a rectangle other than the rectangle as shown in FIGS. 7F and 7G.

前述したように、インター予測に使用する符号化対象フレーム内の符号化済みの画素ブロック(例えば、4×4画素ブロック)の動き情報160は参照動き情報166として保持されているので、入力画像信号151の局所的な性質に従って、最適な動き補償ブロックの形状及び動きベクトル、参照フレーム番号を利用することができる。また、コーディングユニット及びプレディクションユニットは任意に組み合わせることができる。コーディングツリーユニットが64×64画素ブロックである場合、64×64画素ブロックを分割した4つのコーディングツリーユニット(32×32画素ブロック)の各々に対して、さらにコーディングツリーユニットを4つに分割することで階層的に64×64画素ブロックから16×16画素ブロックを利用することができる。同様にして、階層的に64×64画素ブロックから8×8画素ブロックを利用することができる。ここで、プレディクションユニットがコーディングツリーユニットを4つに分割したものであるとすれば、64×64画素ブロックから4×4画素ブロックまでの階層的な動き補償処理を実行することが可能となる。   As described above, since the motion information 160 of the coded pixel block (for example, 4 × 4 pixel block) in the coding target frame used for inter prediction is held as the reference motion information 166, the input image signal According to the local property of 151, the optimum motion compensation block shape and motion vector, and reference frame number can be used. Further, the coding unit and the prediction unit can be arbitrarily combined. When the coding tree unit is a 64 × 64 pixel block, for each of the four coding tree units (32 × 32 pixel blocks) obtained by dividing the 64 × 64 pixel block, further dividing the coding tree unit into four. Thus, it is possible to hierarchically use a 16 × 16 pixel block from a 64 × 64 pixel block. Similarly, it is possible to hierarchically use a block of 64 × 64 pixels to a block of 8 × 8 pixels. Here, if the prediction unit is a coding tree unit divided into four, it is possible to perform hierarchical motion compensation processing from a 64 × 64 pixel block to a 4 × 4 pixel block. ..

また、インター予測では、符号化対象画素ブロックに対して2種類の動き補償を用いた双方向予測を実行することができる。H.264では、符号化対象画素ブロックに対し2種類の動き補償を行い、2種類の予測画像信号を加重平均することで、新しい予測画像信号を得る(図示せず)。双方向予測において2種類の動き補償をそれぞれリスト0予測、リスト1予測と称する。   In addition, in inter prediction, bidirectional prediction using two types of motion compensation can be performed on a pixel block to be encoded. H. In H.264, two types of motion compensation are performed on the pixel block to be encoded, and two types of predicted image signals are weighted and averaged to obtain a new predicted image signal (not shown). In bidirectional prediction, two types of motion compensation are called list 0 prediction and list 1 prediction, respectively.

<スキップモード、マージモード、インターモードの説明>
本実施形態に係る画像符号化装置100は、図8に示す符号化処理の異なる複数の予測モードを使用する。図中のスキップモードは後述する予測動き情報位置954に関するシンタクスのみを符号化し、その他のシンタクスは符号化しないモードである。マージモードは予測動き情報位置954に関するシンタクス、変換係数情報153のみを符号化し、その他のシンタクスは符号化しないモードである。インターモードは、予測動き情報位置954に関するシンタクス、後述する差分動き情報953、変換係数情報153を符号化するモードである。これらのモードは符号化制御部114が制御する予測情報165によって切り替えられる。
<Explanation of skip mode, merge mode, and inter mode>
The image coding apparatus 100 according to the present embodiment uses a plurality of prediction modes having different coding processes shown in FIG. The skip mode in the drawing is a mode in which only the syntax relating to the motion vector predictor information position 954, which will be described later, is coded and the other syntaxes are not coded. The merge mode is a mode in which only the syntax related to the motion vector predictor position 954 and the transform coefficient information 153 are coded, and the other syntaxes are not coded. The inter mode is a mode in which the syntax related to the predicted motion information position 954, differential motion information 953, and transform coefficient information 153, which will be described later, are encoded. These modes are switched by the prediction information 165 controlled by the encoding control unit 114.

<動き情報符号化部403>
以下、動き情報符号化部403について図9を用いて説明する。
<Motion information coding unit 403>
The motion information encoding unit 403 will be described below with reference to FIG.

動き情報符号化部403は、参照動きベクトル取得部901、予測動きベクトル選択スイッチ(予測動き情報選択スイッチ、とも称す)902、減算部903、差分動き情報符号化部904、予測動き情報位置符号化部905及び多重化部906を有する。   The motion information coding unit 403 includes a reference motion vector acquisition unit 901, a motion vector predictor selection switch (also referred to as motion vector predictor selection switch) 902, a subtraction unit 903, a differential motion information coding unit 904, and motion vector predictor position coding. It has a unit 905 and a multiplexing unit 906.

参照動きベクトル取得部901は、参照動き情報166及び参照位置情報164を入力として、少なくとも一つ以上の予測動き情報候補(予測動きベクトル候補、とも称す)951(951A、951B、…)を生成する。図10、図11は、対象プレディクションユニットに対する、予測動き情報候補951の位置の一例を示している。図10は対象プレディクションユニットに空間的に隣接するプレディクションユニットの位置を示している。AX(X=0〜nA−1)は、対象プレディクションユニットに対して左に隣接するプレディクションユニット、BY(Y=0〜nB−1)は対象プレディクションユニットに対して上に隣接するプレディクションユニット、C、D、Eは対象プレディクションユニットに対してそれぞれ右上、左上、左下に隣接するプレディクションユニットを示している。また、図11は符号化対象プレディクションユニットに対して、既に符号化済みの参照フレームにおけるプレディクションユニットの位置を示している。図11中のColは、参照フレーム内であって符号化対象プレディクションユニットと同一位置にあるプレディクションユニットを示している。図12は、複数の予測動き情報候補951のブロック位置とインデクスMvpidxの関係を示すリストの一例を示す。Mvpidxが0〜2は空間方向に位置する予測動きベクトル候補951、Mvpidxが3は時間方向に位置する予測動きベクトル候補951をそれぞれ示している。プレディクションユニット位置Aは図10に示されるAXの内、インター予測である、つまり参照動き情報166を有するプレディクションユニットであって、Xの値が最も小さい位置をプレディクションユニット位置Aとする。また、プレディクションユニット位置Bは図10に示されるBYの内、インター予測である、つまり参照動き情報166を有するプレディクションユニットであって、Yの値が最も小さい位置をプレディクションユニット位置Aとする。プレディクションユニット位置Cがインター予測ではない場合、プレディクションユニット位置Dの参照動き情報166をプレディクションユニット位置Cの参照動き情報166として置き換える。プレディクションユニット位置C及びDがインター予測ではない場合、プレディクションユニット位置Eの参照動き情報166をプレディクションユニット位置Cの参照動き情報166として置き換える。   The reference motion vector acquisition unit 901 receives the reference motion information 166 and the reference position information 164 and generates at least one or more predicted motion information candidates (also referred to as predicted motion vector candidates) 951 (951A, 951B, ...). .. 10 and 11 show an example of the position of the motion vector predictor candidate 951 with respect to the target prediction unit. FIG. 10 shows the position of the prediction unit spatially adjacent to the target prediction unit. AX (X = 0 to nA-1) is a prediction unit adjacent to the left of the target prediction unit, and BY (Y = 0 to nB-1) is a prediction unit adjacent to the top of the target prediction unit. Function units C, D, and E indicate prediction units that are adjacent to the target prediction unit at the upper right, upper left, and lower left, respectively. Further, FIG. 11 shows the position of the prediction unit in the already encoded reference frame with respect to the encoding target prediction unit. Col in FIG. 11 indicates a prediction unit located at the same position as the encoding target prediction unit in the reference frame. FIG. 12 shows an example of a list showing the relationship between the block positions of the plurality of motion vector predictor information candidates 951 and the index Mvpidx. Mvpidx 0 to 2 indicates a motion vector predictor candidate 951 located in the spatial direction, and Mvpidx 3 indicates a motion vector predictor candidate 951 located in the time direction. The prediction unit position A is a prediction unit having inter-prediction, that is, the reference motion information 166 in AX shown in FIG. 10, and the position where the value of X is the smallest is the prediction unit position A. Further, the prediction unit position B is an inter prediction among BY shown in FIG. 10, that is, a prediction unit having reference motion information 166, and a position having the smallest Y value is referred to as a prediction unit position A. To do. When the prediction unit position C is not inter prediction, the reference motion information 166 of the prediction unit position D is replaced with the reference motion information 166 of the prediction unit position C. When the prediction unit positions C and D are not inter prediction, the reference motion information 166 of the prediction unit position E is replaced with the reference motion information 166 of the prediction unit position C.

符号化対象プレディクションユニットのサイズが最小プレディクションユニットより大きい場合には、プレディクションユニット位置Colは、複数の参照動き情報166を時間方向参照動き情報メモリ502に保持している可能性がある。この場合、参照位置情報164に従って位置Colのプレディクションユニット中の参照動き情報166を取得する。以降、位置Colのプレディクションユニット中の参照動き情報166の取得位置を参照動き情報取得位置と称する。図13A〜Fは、参照位置情報164が位置Colのプレディクションユニットの中心を示す場合の参照動き情報取得位置の一例を符号化対象プレディクションユニットのサイズ(32x32〜16x16)毎に示す。図中のブロックはそれぞれ4x4プレディクションユニットを示し、丸印は予測動き情報候補951として取得する4x4プレディクションユニットの位置を示している。参照動き情報取得位置の別の一例を図14A〜Fに示す。図14A〜Fにおいて、丸印の位置は4x4プレディクションユニットが存在しないため、丸印に隣接する4つの4x4プレディクションユニットにおける参照動き情報166の平均値やメディアン値といった予め定められた方式で、予測動き情報候補951を生成する。参照動き情報取得位置の更に別の一例として、位置Colのプレディクションユニットの左上端に位置する4x4プレディクションユニットの参照動き情報166を予測動き情報候補951としても構わない。上記の例以外に置いても、予め定められた方式であれば、いずれの位置及び方式を用いて予測動き情報候補951を生成しても構わない。   When the size of the prediction target prediction unit is larger than the minimum prediction unit, the prediction unit position Col may hold a plurality of reference motion information 166 in the temporal direction reference motion information memory 502. In this case, the reference motion information 166 in the prediction unit at the position Col is acquired according to the reference position information 164. Hereinafter, the acquisition position of the reference motion information 166 in the prediction unit at the position Col will be referred to as the reference motion information acquisition position. 13A to 13F show examples of reference motion information acquisition positions when the reference position information 164 indicates the center of the prediction unit at the position Col, for each size (32x32 to 16x16) of the prediction target prediction unit. Each block in the drawing indicates a 4x4 prediction unit, and a circle indicates the position of the 4x4 prediction unit acquired as the motion vector predictor candidate 951. Another example of the reference motion information acquisition position is shown in FIGS. In FIGS. 14A to F, since the 4x4 prediction unit does not exist at the position of the circle, a predetermined method such as the average value or the median value of the reference motion information 166 in the four 4x4 prediction units adjacent to the circle, The motion vector predictor candidate 951 is generated. As still another example of the reference motion information acquisition position, the reference motion information 166 of the 4 × 4 prediction unit located at the upper left end of the prediction unit at the position Col may be the predicted motion information candidate 951. Even if the method is not limited to the above example, any position and method may be used to generate the motion vector predictor candidate 951 as long as it is a predetermined method.

なお、参照動き情報166が存在しない場合、ゼロベクトルを有する動き情報160を、予測動き情報候補951として出力する。   When the reference motion information 166 does not exist, the motion information 160 having a zero vector is output as the motion vector predictor candidate 951.

以上により、少なくとも一つ以上の予測動き情報候補951が参照動きブロックから出力される。上記の予測動き情報候補951が有する参照フレーム番号と符号化対象プレディクションユニットの参照フレーム番号が異なる場合は、予測動き情報候補951を予測動き情報候補951が有する参照フレーム番号と符号化対象プレディクションユニットの参照フレーム番号に従ってスケーリングしても構わない。   By the above, at least one or more prediction motion information candidates 951 are output from the reference motion block. When the reference frame number of the motion vector predictor candidate 951 and the reference frame number of the prediction target prediction unit are different from each other, the motion vector predictor candidate 951 includes the reference frame number of the motion vector predictor candidate 951 and the prediction target prediction target. The scaling may be performed according to the reference frame number of the unit.

予測動き情報選択スイッチ902は、符号化制御部114からの指令に応じて複数の予測動き情報候補951から一つを選択し、予測動き情報952を出力する。また予測動き情報選択スイッチ902が、後述する予測動き情報位置情報954を出力してもよい。上記、選択には数式(1)や(2)といった評価関数を用いて選択しても構わない。減算部903は、動き情報160から予測動きベクトル情報952を減算し、差分動き情報953を差分動き情報符号化部904に出力する。差分動き情報符号化部904は、差分動き情報953を符号化処理し符号化データ960Aを出力する。なお、スキップモード及びマージモードでは差分動き情報符号化部904において、差分動き情報953の符号化は不要となる。   The predictive motion information selection switch 902 selects one of the plurality of predictive motion information candidates 951 according to a command from the encoding control unit 114, and outputs the predictive motion information 952. Further, the motion vector predictor selection switch 902 may output motion vector predictor position information 954, which will be described later. The selection may be performed using an evaluation function such as Equations (1) and (2). The subtraction unit 903 subtracts the predicted motion vector information 952 from the motion information 160, and outputs the difference motion information 953 to the difference motion information encoding unit 904. The differential motion information encoding unit 904 encodes the differential motion information 953 and outputs encoded data 960A. In the skip mode and the merge mode, the differential motion information coding unit 904 does not need to code the differential motion information 953.

予測動き情報位置符号化部905は、図12で示されるリストのうち、どの予測動き情報候補951を選択したかを示す予測動き情報位置情報954(Mvpidx)を符号化し、符号化データ960Bを出力する。予測動き情報位置情報954は予測動き情報候補951の総数から生成される等長符号化や可変長符号化を用いて符号化される。隣接ブロックとの相関を利用して可変長符号化しても構わない。更に、複数の予測動き情報候補951で重複する情報を有する場合、重複する予測動き情報候補951を削除した予測動き情報候補951の総数から符号表を作成し、予測動き情報位置情報954を符号化しても構わない。また、予測動き情報候補951の総数が1種類である場合、当該予測動き情報候補951が予測動き情報952と決定されるため、予測動き情報位置情報954を符号化する必要はない。   The motion vector predictor position encoding unit 905 encodes motion vector predictor position information 954 (Mvpidx) indicating which motion vector predictor candidate 951 has been selected from the list shown in FIG. 12, and outputs coded data 960B. To do. The motion vector predictor information position information 954 is coded using isometric coding or variable length coding generated from the total number of motion vector predictor candidate 951. Variable length coding may be performed using the correlation with adjacent blocks. Further, when the plurality of motion vector predictor candidates 951 have overlapping information, a code table is created from the total number of motion vector predictor information candidates 951 in which the redundant motion vector predictor information candidates 951 are deleted, and the motion vector predictor position information 954 is encoded. It doesn't matter. In addition, when the total number of motion vector predictor candidates 951 is one, the motion vector predictor information candidate 951 is determined as motion vector predictor motion information 952, and thus it is not necessary to encode the motion vector predictor position information 954.

また、スキップモード、マージモード、インターモードそれぞれにおいて、予測動き情報候補951の導出方法は同一である必要はなく、それぞれ独立に予測動き情報候補951の導出方法を設定しても構わない。本実施形態では、スキップモードとインターモードの予測動き情報候補951の導出方法は同一で、マージモードの予測動き情報候補951の導出方法は異なるものとして説明する。   Further, the derivation method of the motion vector predictor candidate 951 need not be the same in each of the skip mode, the merge mode, and the inter mode, and the derivation method of the motion vector predictor information candidate 951 may be set independently. In the present embodiment, the method of deriving the motion vector predictor information candidate 951 in the skip mode and the inter mode is the same, and the method of deriving the motion vector predictor information candidate 951 in the merge mode is different.

<動き情報圧縮部109の詳細>
まず、動き情報圧縮処理について図15を用いて説明する。図15は、空間方向参照動き情報メモリ501の参照動き情報166を圧縮し、時間方向参照動き情報メモリ502へ格納する。空間方向参照動き情報メモリ501では動き情報圧縮ブロック(同図では16x16画素ブロック)毎に代表動き情報位置に保持される参照動き情報166を時間方向参照動き情報メモリ502に格納する。上述の動き情報符号化処理を行う場合には、前述の参照動き情報取得位置に保持される参照動き情報166を予測動き情報候補951として設定する。このとき、仮想的に動き情報圧縮ブロック内は同一の参照動き情報166を持つこととして、前述の参照動き情報取得位置に保持される参照動き情報166を予測動き情報候補951として設定しても構わない(同一の予測動き情報候補951が導出される。)
次に、動き情報圧縮部109について図16に示すフローチャートを用いて説明する。動き情報圧縮部109は、フレーム(もしくはスライス、コーディングユニットなど任意の単位)の符号化処理が終了した際に、動き情報160を圧縮して時間方向参照動き情報メモリ502に動き情報160を格納する。
<Details of the motion information compression unit 109>
First, the motion information compression process will be described with reference to FIG. In FIG. 15, the reference motion information 166 in the spatial direction reference motion information memory 501 is compressed and stored in the temporal direction reference motion information memory 502. In the spatial direction reference motion information memory 501, the reference motion information 166 held at the representative motion information position is stored in the temporal direction reference motion information memory 502 for each motion information compression block (16 × 16 pixel block in the figure). When performing the above-described motion information encoding process, the reference motion information 166 held at the reference motion information acquisition position is set as the motion vector predictor candidate 951. At this time, the reference motion information 166 held at the reference motion information acquisition position described above may be set as the predicted motion information candidate 951 by assuming that the motion information compression block virtually has the same reference motion information 166. No (the same predicted motion information candidate 951 is derived).
Next, the motion information compression unit 109 will be described using the flowchart shown in FIG. The motion information compressing unit 109 compresses the motion information 160 and stores the motion information 160 in the temporal direction reference motion information memory 502 when the encoding process of a frame (or an arbitrary unit such as a slice or a coding unit) is completed. ..

まず、符号化制御部114から参照位置情報164を取得し(ステップS1601)、フレームを動き情報160の圧縮単位である動き情報圧縮ブロックに分割する(ステップS1602)。動き情報圧縮ブロックは、動き補償処理により動き情報160が保持される単位(典型的には4x4画素ブロック)より大きい画素ブロックであり、典型的には16x16画素ブロックである。動き情報圧縮ブロックは64x64画素ブロックや32x32画素ブロック、8x8画素ブロック、長方形画素ブロック、任意の形状の画素領域であっても構わない。   First, the reference position information 164 is acquired from the encoding control unit 114 (step S1601), and the frame is divided into motion information compressed blocks that are compression units of the motion information 160 (step S1602). The motion information compression block is a pixel block larger than a unit (typically a 4x4 pixel block) in which the motion information 160 is held by the motion compensation process, and is typically a 16x16 pixel block. The motion information compression block may be a 64x64 pixel block, a 32x32 pixel block, an 8x8 pixel block, a rectangular pixel block, or a pixel area of any shape.

次に、参照位置情報164に従って代表動き情報位置を生成する(ステップS1603)。代表動き情報位置を生成する一例として、動き情報圧縮ブロックが16x16画素ブロックの場合、図13D、図14D、図17Dにそれぞれ示されるプレディクションユニットのサイズが16x16の場合の参照動き情報取得位置を代表動き情報位置とする。次に、生成した代表動き情報位置の参照動き情報166を代表動き情報に設定し(ステップS1604)、当該代表動き情報を時間方向参照動き情報メモリに格納する(ステップS1605)。上記のステップS1604〜S1605をすべての動き情報圧縮ブロックに対して実行する。   Next, the representative motion information position is generated according to the reference position information 164 (step S1603). As an example of generating the representative motion information position, when the motion information compression block is a 16 × 16 pixel block, the reference motion information acquisition position when the size of the prediction unit shown in FIGS. 13D, 14D, and 17D is 16 × 16 is representative. This is the motion information position. Next, the reference motion information 166 at the generated representative motion information position is set as the representative motion information (step S1604), and the representative motion information is stored in the temporal direction reference motion information memory (step S1605). The above steps S1604 to S1605 are executed for all motion information compressed blocks.

動き情報160が保持される単位をMxMブロック、動き情報圧縮ブロックのサイズをNxN(NはMの倍数)とすると、上記動き情報圧縮処理を実行することにより、参照動き情報メモリの容量を(MxM)/(NxN)に削減することが可能となる。   When the unit for holding the motion information 160 is MxM block and the size of the motion information compression block is NxN (N is a multiple of M), the motion information compression process is executed to increase the capacity of the reference motion information memory by (MxM ) / (NxN).

<代表動き情報位置の別の実施形態>
代表動き情報位置を生成する別の例として、複数の参照動き情報取得位置の中心位置を代表動き情報位置としても構わない。図18A及び図18Bはサイズが16x16である動き圧縮ブロック毎の代表動き情報位置を示している。図18Aは、参照動き情報取得位置が図13Dに示される位置である場合の代表動き情報位置、同様に図18Bは、参照動き情報取得位置が図17Dに示される位置である場合の代表動き情報位置をそれぞれ示している。図18A及び図18B中の丸印は、プレディクションユニットが16x16ブロックである際の、参照動き情報取得位置を示しており、4点の参照動き情報取得位置の中心位置(重心位置とも称す)にバツ印で示される代表動き情報位置を配置している。
<Another Embodiment of Representative Motion Information Position>
As another example of generating the representative motion information position, the center position of the plurality of reference motion information acquisition positions may be used as the representative motion information position. 18A and 18B show representative motion information positions for each motion compression block having a size of 16 × 16. FIG. 18A is a representative motion information position when the reference motion information acquisition position is the position shown in FIG. 13D. Similarly, FIG. 18B is a representative motion information position when the reference motion information acquisition position is the position shown in FIG. 17D. Each position is shown. Circles in FIG. 18A and FIG. 18B indicate reference motion information acquisition positions when the prediction unit is a 16 × 16 block, and are set to the center position (also referred to as the center of gravity position) of the four reference motion information acquisition positions. Representative motion information positions indicated by crosses are arranged.

代表動き情報位置を生成する更に別の例として、複数のプレディクションユニットのサイズ毎の参照動き情報取得位置を参照位置情報164として有し、複数の参照動き情報取得位置から代表動き情報位置を生成しても構わない。   As still another example of generating the representative motion information position, the reference motion information acquisition position for each size of the plurality of prediction units is provided as the reference position information 164, and the representative motion information position is generated from the plurality of reference motion information acquisition positions. It doesn't matter.

代表動き情報位置を生成する一例として、複数のプレディクションユニットのサイズ毎の参照動き情報取得位置を参照位置情報164として有し、複数の参照動き情報取得位置から代表動き情報位置を生成しても構わない。図19は、ツリーブロックが64x64画素ブロックである場合の、プレディクションユニットのサイズが16x16以上の各サイズにおけるプレディクションユニットの中心(参照動き情報取得位置)をそれぞれ示している。   As an example of generating the representative motion information position, even if the reference motion information acquisition position for each size of the plurality of prediction units is provided as the reference position information 164 and the representative motion information position is generated from the plurality of reference motion information acquisition positions. I do not care. FIG. 19 shows the center (reference motion information acquisition position) of the prediction unit in each size of 16 × 16 or more when the tree block is a 64 × 64 pixel block.

代表動き情報位置を生成する別の一例として、代表動き情報位置は動き情報圧縮ブロック毎に配置される参照動き情報取得位置を用いて設定されても構わない。図20Aは、動き情報圧縮ブロック毎の複数の参照動き情報取得位置の重心を代表動き情報位置と設定した場合の例を示す。重心位置が4x4ブロックの位置と一致しない場合には、最近傍の4x4ブロックを代表動き情報位置としてもよいし、共一次内挿法などの内挿法を用いて重心位置の参照動きベクトル166を生成しても構わない。   As another example of generating the representative motion information position, the representative motion information position may be set using the reference motion information acquisition position arranged for each motion information compression block. FIG. 20A shows an example in which the center of gravity of a plurality of reference motion information acquisition positions for each motion information compression block is set as the representative motion information position. When the position of the center of gravity does not match the position of the 4x4 block, the nearest 4x4 block may be used as the representative motion information position, or the reference motion vector 166 of the position of the center of gravity may be determined by using an interpolation method such as bilinear interpolation. You can generate it.

また、図20Bは動き情報圧縮ブロック毎に複数の参照動き情報取得位置のいずれかを選択し、代表動き情報位置と設定した場合の例を示す。   Also, FIG. 20B shows an example in which one of the plurality of reference motion information acquisition positions is selected for each motion information compressed block and set as the representative motion information position.

更に、図21A、図21Bにツリーブロック内で各動き情報圧縮ブロックで参照動き情報取得位置を同一にした場合の例を更に示す。全ての動き情報圧縮ブロック内で同一の代表動き情報位置であるため、ツリーブロック内の位置に応じて、代表動き情報位置を切り替える必要はない。また、代表動き情報位置は図21A、図21B以外にも、動き情報圧縮ブロック内の左上端や右上端など、いずれの位置にあっても構わない。   Further, FIGS. 21A and 21B further show an example in which the reference motion information acquisition positions are made the same in each motion information compression block in the tree block. Since the representative motion information position is the same in all motion information compression blocks, it is not necessary to switch the representative motion information position according to the position in the tree block. 21A and 21B, the representative motion information position may be at any position such as the upper left end or the upper right end in the motion information compression block.

代表動き情報位置を生成する一例、動き情報圧縮ブロック内の4x4ブロック位置をZスキャン順で示すBlkIdxを用いて代表動き情報位置を示しても構わない。動き情報圧縮ブロックのサイズが16x16である場合に、図21Aに示される代表動き情報位置はBlkIdx=12の位置に相当する。また、図21Bに示される代表動き情報位置はBlkIdx=15の位置に相当する。   As an example of generating the representative motion information position, BlkIdx indicating the 4x4 block position in the motion information compression block in Z scan order may be used to indicate the representative motion information position. When the size of the motion information compression block is 16 × 16, the representative motion information position shown in FIG. 21A corresponds to the position of BlkIdx = 12. The representative motion information position shown in FIG. 21B corresponds to the position of BlkIdx = 15.

動き情報圧縮処理における別の一例として、参照フレーム番号に関するメモリ容量を削減するために、動き情報圧縮処理に参照フレーム番号を含めても構わない。この場合、代表動き情報位置に保持される参照フレーム番号を参照フレーム番号に関するメモリ容量に格納する。従って、図5に示される空間方向参照動き情報メモリ501及び空間方向参照動き情報メモリ502は動きベクトル情報に追加して参照フレーム番号を格納する。   As another example of the motion information compression process, the reference frame number may be included in the motion information compression process in order to reduce the memory capacity related to the reference frame number. In this case, the reference frame number held at the representative motion information position is stored in the memory capacity related to the reference frame number. Therefore, the spatial direction reference motion information memory 501 and the spatial direction reference motion information memory 502 shown in FIG. 5 store the reference frame number in addition to the motion vector information.

動き情報圧縮処理における更に別の一例として、動き情報圧縮処理に参照フレーム番号を含めない場合に、代表動き情報位置にある動き情報内の動きベクトル情報を、参照フレーム番号を用いてスケーリング処理を施して、動き情報メモリ110に格納しても構わない。スケーリング処理の典型例として、参照フレーム番号ゼロを基準とした線形スケーリング処理がある。これは、参照フレーム番号がゼロ以外の値である場合に、動きベクトル情報が参照フレーム番号ゼロに対応する参照フレームを参照するように線形スケーリング処理するものである。上述のスケーリング処理の基準は参照フレーム番号がゼロ以外の値であっても構わない。上述の線形スケーリング処理を行う場合に除算が発生する場合には、予め除算処理をテーブル化しておき、都度テーブルを引くことで上記除算を実現しても構わない。   As still another example of the motion information compression processing, when the reference frame number is not included in the motion information compression processing, the motion vector information in the motion information at the representative motion information position is subjected to scaling processing using the reference frame number. Then, it may be stored in the motion information memory 110. A typical example of the scaling process is a linear scaling process with reference frame number zero as a reference. This is to perform linear scaling processing so that when the reference frame number is a value other than zero, the motion vector information refers to the reference frame corresponding to the reference frame number zero. The reference of the reference frame number may be a value other than zero as the standard for the above-described scaling processing. When division occurs when performing the above-described linear scaling processing, the division processing may be made into a table in advance and the table may be drawn each time to realize the division.

動き情報圧縮ブロックのサイズが16x16ブロック以外の場合、上述と同様の処理を用いて代表動き情報位置を生成する。一例では、動き情報圧縮ブロックのサイズが64x64の場合、プレディクションユニットのサイズが64x64における参照動き情報取得位置を代表動き情報位置とする。更に別の一例では、図21A、図21B等で示される動き情報圧縮ブロックのサイズが16x16ブロックにおける代表動き情報位置を、動き情報圧縮ブロックのサイズに従って水平方向及び垂直方向でスケーリングした位置を代表動き情報位置としても構わない。   If the size of the motion information compression block is other than 16 × 16 blocks, the representative motion information position is generated using the same processing as described above. In one example, when the size of the motion information compression block is 64x64, the reference motion information acquisition position when the size of the prediction unit is 64x64 is set as the representative motion information position. In yet another example, the representative motion information position in which the size of the motion information compression block shown in FIG. 21A, FIG. 21B, etc. is 16 × 16 blocks is scaled in the horizontal direction and the vertical direction according to the size of the motion information compression block. It may be an information position.

代表動き情報位置が、ピクチャやスライスの外であるとして参照動き情報が存在しない場合には、動き情報圧縮ブロックの左上端といった動き情報圧縮ブロック内で参照動き情報が取得可能な位置を新しい代表動き情報位置として置き換えても構わない。また、代表動き情報位置が、イントラ予測が適用された領域であって、参照動き情報が存在しない場合にも同様の処理を実行して、新しい代表動き情報位置として置き換えても構わない。   If the reference motion information does not exist because the representative motion information position is outside the picture or slice, the position at which the reference motion information can be acquired in the motion information compression block, such as the upper left end of the motion information compression block, is set as the new representative motion. The information position may be replaced. Also, when the representative motion information position is an area to which intra prediction is applied and reference motion information does not exist, the same process may be executed to replace it with a new representative motion information position.

<シンタクス構成>
以下、図1の画像符号化装置100が利用するシンタクスについて説明する。
シンタクスは、画像符号化装置が動画像データを符号化する際の符号化データ(例えば、図1の符号化データ163)の構造を示している。この符号化データを復号化する際に、同じシンタクス構造を参照して動画像復号化装置がシンタクス解釈を行う。図1の動画像符号化装置が利用するシンタクス2200を図22に例示する。
<Syntax configuration>
The syntax used by the image coding apparatus 100 in FIG. 1 will be described below.
The syntax indicates the structure of the coded data (for example, the coded data 163 in FIG. 1) when the image coding apparatus codes the moving image data. When decoding this encoded data, the moving image decoding apparatus performs syntax interpretation by referring to the same syntax structure. A syntax 2200 used by the moving picture coding apparatus of FIG. 1 is illustrated in FIG.

シンタクス2200は、ハイレベルシンタクス2201、スライスレベルシンタクス2202及びコーディングツリーレベルシンタクス2203の3つのパートを含む。ハイレベルシンタクス2201は、スライスよりも上位のレイヤのシンタクス情報を含む。スライスとは、フレームまたはフィールドに含まれる矩形領域もしくは連続領域を指す。スライスレベルシンタクス2202は、各スライスを復号化するために必要な情報を含む。コーディングツリーレベルシンタクス2203は、各コーディングツリー(即ち、各コーディングツリーユニット)を復号化するために必要な情報を含む。これら各パートは、さらに詳細なシンタクスを含む。   The syntax 2200 includes three parts of a high level syntax 2201, a slice level syntax 2202 and a coding tree level syntax 2203. The high level syntax 2201 includes syntax information of a layer higher than the slice. A slice refers to a rectangular area or a continuous area included in a frame or field. The slice level syntax 2202 contains the information needed to decode each slice. The coding tree level syntax 2203 includes information necessary for decoding each coding tree (that is, each coding tree unit). Each of these parts contains more detailed syntax.

ハイレベルシンタクス2201は、シーケンスパラメータセットシンタクス2204及びピクチャパラメータセットシンタクス2205などの、シーケンス及びピクチャレベルのシンタクスを含む。スライスレベルシンタクス2202は、スライスヘッダーシンタクス2206及びスライスデータシンタクス2207などを含む。コーディングツリーレベルシンタクス2203は、コーディングツリーユニットシンタクス2208、トランスフォームユニットシンタクス2209及びプレディクションユニットシンタクス2210などを含む。   High-level syntax 2201 includes sequence and picture-level syntax, such as sequence parameter set syntax 2204 and picture parameter set syntax 2205. The slice level syntax 2202 includes a slice header syntax 2206 and a slice data syntax 2207. The coding tree level syntax 2203 includes a coding tree unit syntax 2208, a transform unit syntax 2209, a prediction unit syntax 2210, and the like.

コーディングツリーユニットシンタクス2208は、四分木構造を持つことができる。具体的には、コーディングツリーユニットシンタクス2208のシンタクス要素として、さらにコーディングツリーユニットシンタクス2208を再帰呼び出しすることができる。即ち、1つのコーディングツリーユニットを四分木で細分化することができる。また、コーディングツリーユニットシンタクス2208内にはトランスフォームユニットシンタクス2209及びプレディクッションユニットシンタクス2210が含まれている。トランスフォームユニットシンタクス2209及びプレディクッションユニットシンタクス2210は、四分木の最末端の各コーディングツリーユニットシンタクス2208において呼び出される。プレディクッションユニットシンタクス2210は予測に関わる情報、トランスフォームユニットシンタクス2209は、逆直交変換及び量子化などに関わる情報がそれぞれ記述されている。   The coding tree unit syntax 2208 may have a quadtree structure. Specifically, the coding tree unit syntax 2208 can be recursively called as a syntax element of the coding tree unit syntax 2208. That is, one coding tree unit can be subdivided into quadtrees. Further, the coding tree unit syntax 2208 includes a transform unit syntax 2209 and a pre-cushion unit syntax 2210. The transform unit syntax 2209 and the pre-cushion unit syntax 2210 are called in each coding tree unit syntax 2208 at the end of the quadtree. The predicate cushion unit syntax 2210 describes information related to prediction, and the transform unit syntax 2209 describes information related to inverse orthogonal transform and quantization.

図23は、本実施形態に係るシーケンスパラメータセットシンタクス2204を例示する。図23A及び図23Bに示されるmotion_vector_buffer_comp_flagは、当該シーケンスに関して本実施形態に係る動き情報圧縮の有効/無効を示すシンタクスである。motion_vector_buffer_comp_flagが0である場合、当該シーケンスに関して本実施形態に係る動き情報圧縮は無効である。従って、図1に示される動き情報圧縮部の処理はスキップされる。一例として、motion_vector_buffer_comp_flagが1である場合、当該シーケンスに関して本実施携帯に係る動き情報圧縮は有効である。図23及び図23Bに示されるmotion_vector_buffer_comp_ratio_log2は、動き情報圧縮処理の単位を示す情報であり、motion_vector_buffer_comp_flagが1である場合に示される。motion_vector_buffer_comp_ratio_log2は、例えば本実施形態に係る動き情報圧縮ブロックのサイズの情報を示し、motion_vector_buffer_comp_ratio_log2は、動き補償の最小単位に2(motion_vector_buffer_comp_ratio_log2)を乗じた値が動き情報圧縮ブロックのサイズとなる。動き補償の最小単位が4x4画素ブロックである、つまり参照動き情報メモリが4x4画素ブロック単位に保持される場合の例を以下に示す。motion_vector_buffer_comp_ratio_log2が1の場合、本実施形態に係る動き情報圧縮ブロックのサイズは8x8画素ブロックとなる。同様に、motion_vector_buffer_comp_ratio_log2が2の場合、本実施形態に係る動き情報圧縮ブロックのサイズは16x16画素ブロックとなる。図23Bに示されるmotion_vector_buffer_comp_positionは、動き情報圧縮ブロック内の代表動き情報位置を示す情報であり、motion_vector_buffer_comp_flagが1である場合に示される。motion_vector_buffer_comp_positionは、例えば図21A、図21Bに示されるような動き情報圧縮ブロック内の参照動き情報位置を示したり、図20A、図20Bに示されるように動き情報圧縮ブロック毎の参照動き情報位置を示しても構わない。また、複数のブロックの中心にあっても構わない。 FIG. 23 illustrates a sequence parameter set syntax 2204 according to this embodiment. The motion_vector_buffer_comp_flag shown in FIG. 23A and FIG. 23B is a syntax indicating whether the motion information compression according to the present embodiment is valid or invalid for the sequence. When the motion_vector_buffer_comp_flag is 0, the motion information compression according to the present embodiment is invalid for the sequence. Therefore, the processing of the motion information compression unit shown in FIG. 1 is skipped. As an example, when the motion_vector_buffer_comp_flag is 1, the motion information compression according to the present embodiment is effective for the sequence. The motion_vector_buffer_comp_ratio_log2 shown in FIGS. 23 and 23B is information indicating a unit of the motion information compression process, and is indicated when the motion_vector_buffer_comp_flag is 1. The motion_vector_buffer_comp_ratio_log2 indicates, for example, information on the size of the motion information compression block according to the present embodiment, and the motion_vector_buffer_comp_ratio_log2 is motion_compress_block2_motion_complex_value 2 which is the minimum unit of the motion compensation and the motion compensation vector_buffer_buffer_comp_r_buffer2_motion_buffer_buffer_comp_value . An example in which the minimum unit of motion compensation is a 4x4 pixel block, that is, the reference motion information memory is held in a 4x4 pixel block unit, is shown below. When motion_vector_buffer_comp_ratio_log2 is 1, the size of the motion information compression block according to the present embodiment is 8 × 8 pixel block. Similarly, when motion_vector_buffer_comp_ratio_log2 is 2, the size of the motion information compression block according to this embodiment is 16 × 16 pixel blocks. The motion_vector_buffer_comp_position shown in FIG. 23B is information indicating the representative motion information position in the motion information compression block, and is indicated when the motion_vector_buffer_comp_flag is 1. The motion_vector_buffer_comp_position indicates the reference motion information position in the motion information compression block as shown in FIGS. 21A and 21B, or the reference motion information position for each motion information compression block as shown in FIGS. 20A and 20B. It doesn't matter. It may also be located at the center of a plurality of blocks.

また、別の例として、motion_vector_buffer_comp_flag、motion_vector_buffer_comp_ratio_log2、motion_vector_buffer_comp_positionより下位のレイヤ(ピクチャパラメータセットシンタクス、スライスレベルシンタクス、コーディングツリーユニット、トランスフォームユニットなど)のシンタクスにおいて当該スライス内部の局所領域毎に本実施形態に係る予測の有効/無効が規定されてもよい。   Further, as another example, a layer lower than the motion_vector_buffer_comp_flag_motion, motion_vector_buffer_comp_ratio_log2, motion_vector_buffer_comp_position_localization region, a layer lower than the motion element vector syntax, slice level syntax, or a unit of a slice unit syntax of the motion parameter vector buffer_compress_position local slice unit, a coding unit tree, a slice tree syntax unit, a coding unit tree, and the like. The validity / invalidity of such prediction may be defined.

図24に、プレディクションユニットシンタクスの一例を示す。図中のskip_flagは、プレディクションユニットシンタクスが属するコーディングユニットの予測モードがスキップモードであるか否かを示すフラグである。skip_flagが1である場合、予測動き情報位置情報954以外のシンタクス(コーディングユニットシンタクス、プレディクションユニットシンタクス、トランスフォームユニットシンタクス)を符号化しないことを示す。NumMVPCand(L0)、NumMVPCand(L1)は、それぞれリスト0予測、リスト1予測における予測動き情報候補951の数を示す。予測動き情報候補951が存在する(NumMVPCand(LX)>0、X=0若しくは1)場合、予測動き情報位置情報954を示すmvp_idx_lXが符号化される。   FIG. 24 shows an example of the prediction unit syntax. Skip_flag in the figure is a flag indicating whether or not the prediction mode of the coding unit to which the prediction unit syntax belongs is the skip mode. When the skip_flag is 1, it indicates that the syntax (coding unit syntax, prediction unit syntax, transform unit syntax) other than the predicted motion information position information 954 is not coded. NumMVPCand (L0) and NumMVPCand (L1) indicate the numbers of motion vector predictor information candidates 951 in the list 0 prediction and the list 1 prediction, respectively. When the motion vector predictor candidate 951 exists (NumMVPCand (LX)> 0, X = 0 or 1), mvp_idx_lX indicating the motion vector predictor position information 954 is encoded.

skip_flagが0である場合、プレディクションユニットシンタクスが属するコーディングユニットの予測モードがスキップモードではないことを示す。NumMergeCandidatesは、図12などで導出される予測動き情報候補951の数を示す。予測動き情報候補951が存在する(NumMergeCandidates>0)場合、プレディクションユニットがマージモードであるか否かを示すフラグであるmerge_flagが符号化される。merge_flagは、その値が1である場合、プレディクションユニットがマージモードであることを示し、その値が0である場合、プレディクションユニットがインターモードを用いることを示す。merge_flagが1且つ予測動き情報候補951が2つ以上存在する(NumMergeCandidates>1)場合、予測動き情報候補951の内、どのブロックからマージするかを示す予測動き情報952であるmerge_idxが符号化される。   When skip_flag is 0, it indicates that the prediction mode of the coding unit to which the prediction unit syntax belongs is not the skip mode. NumMergeCandidates indicates the number of motion vector predictor information candidates 951 derived in FIG. When the motion vector predictor candidate 951 exists (NumMergeCandidates> 0), merge_flag, which is a flag indicating whether or not the prediction unit is in the merge mode, is encoded. The merge_flag indicates that the prediction unit is in the merge mode when the value is 1, and indicates that the prediction unit uses the inter mode when the value is 0. When the merge_flag is 1 and there are two or more prediction motion information candidates 951 (NumMergeCandidates> 1), the prediction motion information 952, ie, the merge_idx, indicating which block is to be merged from among the prediction motion information candidates 951 is coded. ..

merge_flagが1である場合、merge_flag、merge_idx以外のプレディクションユニットシンタクスは符号化する必要はない。   When the merge_flag is 1, it is not necessary to encode the prediction unit syntax other than the merge_flag and the merge_idx.

merge_flagが0である場合、プレディクションユニットがインターモードであることを示す。インターモードでは差分動き情報953が含む差分動きベクトル情報を示すmvd_lX(X=0若しくは1)や参照フレーム番号ref_idx_lX、Bスライスの場合、プレディクションユニットが単方向予測(リスト0若しくはリスト1)であるか双方向予測であるかを示すinter_pred_idcが符号化される。また、スキップモードと同様にNumMVPCand(L0)、NumMVPCand(L1)を取得し、予測動き情報候補951が存在する(NumMVPCand(LX)>0、X=0若しくは1)場合、予測動き情報位置情報954を示すmvp_idx_lXが符号化される。   When the merge_flag is 0, it indicates that the prediction unit is in the inter mode. In the inter mode, in the case of mvd_lX (X = 0 or 1) indicating the differential motion vector information included in the differential motion information 953, the reference frame number ref_idx_lX, or the B slice, the prediction unit is unidirectional prediction (list 0 or list 1). Or inter_pred_idc indicating whether the prediction is bi-directional prediction is encoded. Also, similar to the skip mode, NumMVPCand (L0) and NumMVPCand (L1) are acquired, and when the motion prediction information candidate 951 exists (NumMVPCand (LX)> 0, X = 0 or 1), the motion prediction information position information 954. Is coded.

以上が、本実施形態に係るシンタクス構成である。   The above is the syntax configuration according to the present embodiment.

(第2の実施形態)
第2の実施形態は動画像復号化装置に関する。本実施形態に係る動画像復号化装置に対応する動画像符号化装置は、第1の実施形態において説明した通りである。即ち、本実施形態に係る動画像復号化装置は、例えば第1の実施形態に係る動画像符号化装置によって生成された符号化データを復号化する。
(Second embodiment)
The second embodiment relates to a moving picture decoding device. The moving picture coding apparatus corresponding to the moving picture decoding apparatus according to this embodiment is as described in the first embodiment. That is, the moving picture decoding apparatus according to the present embodiment decodes the coded data generated by the moving picture coding apparatus according to the first embodiment, for example.

図25に示すように、本実施形態に係る動画像復号化装置は、エントロピー復号化部2501、逆量子化部2502、逆直交変換部2503、加算部2504、参照画像メモリ2505、インター予測部2506、参照動き情報メモリ2507、参照動き情報圧縮部2508及び復号化制御部2510を含む。   As shown in FIG. 25, the moving image decoding apparatus according to this embodiment includes an entropy decoding unit 2501, an inverse quantization unit 2502, an inverse orthogonal transformation unit 2503, an addition unit 2504, a reference image memory 2505, and an inter prediction unit 2506. , A reference motion information memory 2507, a reference motion information compression unit 2508, and a decoding control unit 2510.

図25の動画像復号化装置は、符号化データ2550を復号し、復号画像信号2554を出力バッファ2511に蓄積して出力画像として出力する。符号化データ2550は、例えば図1の動画像符号化装置などから出力され、図示しない蓄積系または伝送系を経て、動画像復号化装置2500に入力される。   The moving picture decoding apparatus in FIG. 25 decodes the encoded data 2550, accumulates the decoded image signal 2554 in the output buffer 2511, and outputs it as an output image. The coded data 2550 is output from, for example, the moving picture coding apparatus in FIG. 1, and is input to the moving picture decoding apparatus 2500 via a storage system or a transmission system (not shown).

エントロピー復号化部2501は、符号化データ2550の復号化のために、シンタクスに基づいて解読を行う。エントロピー復号化部2501は、各シンタクスの符号列を順次エントロピー復号化し、動き情報2559、量子化変換係数2551などの符号化対象ブロックの符号化パラメータを再生する。符号化パラメータとは、予測情報、変換係数に関する情報、量子化に関する情報、などの復号に必要となるパラメータである。   The entropy decoding unit 2501 decodes the encoded data 2550 based on the syntax for decoding. The entropy decoding unit 2501 sequentially entropy-decodes the code string of each syntax, and reproduces the coding parameters of the coding target block such as the motion information 2559 and the quantized transform coefficient 2551. The coding parameters are parameters necessary for decoding prediction information, transform coefficient information, quantization information, and the like.

具体的には、エントロピー復号化部2501は、図26に示すように、分離部2601、パラメータ復号化部2602、変換係数復号化部2603、並びに動き情報復号化部2604を備える。分離部2601は符号化データ2550を分離し、パラメータに関する符号化データ2651Aをパラメータ復号化部2602、変換係数に関する符号化データ2651Bを変換係数復号化部2603、動き情報に関する符号化データ2651Cを動き情報復号化部2604にそれぞれ出力する。パラメータ復号化部2602は、予測情報などの符号化パラメータ2570を復号化し符号化パラメータ2570を出力し復号化制御部2510に出力する。変換係数復号化部2603は、符号化データ2651Bを入力し、変換係数情報2551を復号化して逆量子化部2502に出力する。   Specifically, the entropy decoding unit 2501 includes a separation unit 2601, a parameter decoding unit 2602, a transform coefficient decoding unit 2603, and a motion information decoding unit 2604, as shown in FIG. The separation unit 2601 separates the encoded data 2550, the encoded data 2651A regarding the parameter into the parameter decoding unit 2602, the encoded data 2651B regarding the transform coefficient into the transform coefficient decoding unit 2603, and the encoded data 2651C regarding the motion information into the motion information. It outputs to each of the decoding units 2604. The parameter decoding unit 2602 decodes the coding parameter 2570 such as prediction information, outputs the coding parameter 2570, and outputs the coding parameter 2570 to the decoding control unit 2510. The transform coefficient decoding unit 2603 receives the encoded data 2651B as input, decodes the transform coefficient information 2551 and outputs it to the inverse quantization unit 2502.

動き情報復号化部2604は、分離部2601から符号化データ2651C、復号化制御部2510から参照位置情報2560、参照動き情報メモリ2507から参照動き情報2558をそれぞれ受け取り、動き情報2559を出力する。出力された動き情報2559はインター予測部2506に入力される。   The motion information decoding unit 2604 receives the encoded data 2651C from the separation unit 2601, the reference position information 2560 from the decoding control unit 2510, the reference motion information 2558 from the reference motion information memory 2507, and outputs the motion information 2559. The output motion information 2559 is input to the inter prediction unit 2506.

動き情報復号化部2604は、図27に示すように、分離部2701、差分動き情報復号化部2702、予測動き情報位置復号化部2503、参照動き情報取得部2704、予測動き情報選択スイッチ2705及び加算部2706を含む。   As shown in FIG. 27, the motion information decoding unit 2604 includes a separation unit 2701, a differential motion information decoding unit 2702, a motion vector predictor position decoding unit 2503, a reference motion information acquisition unit 2704, a motion vector selection switch 2705, and The adding unit 2706 is included.

動き情報に関する符号化データ2651Cを分離部2701に入力し、差分動き情報に関する符号化データ2751と予測動き情報位置に関する符号化データ2752に分離する。差分動き情報符号化部2702は、差分動き情報に関する符号化データ2751を入力し、差分動き情報2753を復号化する。差分動き情報2753は加算部2706にて後述する予測動き情報2756と加算され、動き情報2759が出力される。予測動き情報位置復号化部2703は予測動き情報位置に関する符号化データ2752を入力し、予測動き情報位置2754を復号化する。   The encoded data 2651C regarding the motion information is input to the separation unit 2701, and is separated into the encoded data 2751 regarding the differential motion information and the encoded data 2752 regarding the predicted motion information position. The differential motion information coding unit 2702 inputs the coded data 2751 related to the differential motion information, and decodes the differential motion information 2753. The differential motion information 2753 is added to the prediction motion information 2756 described later by the adding unit 2706, and the motion information 2759 is output. The motion vector predictor position decoding unit 2703 receives the encoded data 2752 relating to the motion vector predictor position and decodes the motion vector predictor position 2754.

予測動き情報位置2754は予測動き情報選択スイッチ2705に入力され、予測動き情報候補2755の中から予測動き情報2756を選択する。予測動き情報位置情報2560は予測動き情報候補2755の数から生成される等長復号化や可変長復号化を用いて復号化される。隣接ブロックとの相関を利用して可変長復号化しても構わない。更に、複数の予測動き情報候補2755で重複する場合、重複を削除した予測動き情報候補2755の総数から生成される符号表から、予測動き情報位置情報2560を復号化しても構わない。また、予測動き情報候補2755の総数が1種類である場合、当該予測動き情報候補2755が予測動き情報2556と決定されるため、予測動き情報位置情報2754を復号化する必要はない。   The predicted motion information position 2754 is input to the predicted motion information selection switch 2705, and the predicted motion information 2756 is selected from the predicted motion information candidates 2755. The predicted motion information position information 2560 is decoded using isometric decoding or variable length decoding generated from the number of predicted motion information candidates 2755. Variable length decoding may be performed using the correlation with adjacent blocks. Furthermore, when a plurality of motion vector predictor information candidates 2755 overlap, the motion vector predictor information position information 2560 may be decoded from the code table generated from the total number of motion vector predictor information candidates 2755 with the duplication removed. Also, when the total number of motion vector predictor candidates 2755 is one, the motion vector predictor information candidate 2755 is determined as motion vector predictor information 2556, and thus it is not necessary to decode the motion vector predictor position information 2754.

参照動き情報取得部2704は第1の実施形態で説明した参照動き情報取得部901とその構成、処理内容は同一である。   The reference motion information acquisition unit 2704 has the same configuration and processing content as the reference motion information acquisition unit 901 described in the first embodiment.

参照動き情報取得部2704は、参照動き情報2558及び参照位置情報2560を入力として、少なくとも一つ以上の予測動き情報候補2755(2755A、2755B、…)を生成する。図10、図11は、復号化対象プレディクションユニットに対する、予測動き情報候補2755の位置の一例を示している。図10は復号化対象プレディクションユニットに空間的に隣接するプレディクションユニットの位置を示している。AX(X=0〜nA−1)は、対象プレディクションユニットに対して左に隣接するプレディクションユニット、BY(Y=0〜nB−1)は対象プレディクションユニットに対して上に隣接するプレディクションユニット、C、D、Eは復号化対象プレディクションユニットに対してそれぞれ右上、左上、左下に隣接するプレディクションユニットを示している。また、図11は復号化対象プレディクションユニットに対して、既に復号化済みの参照フレームにおけるプレディクションユニットの位置を示している。図中のColは、参照フレーム内であって復号化対象プレディクションユニットと同一位置にあるプレディクションユニットを示している。図12は、複数の予測動き情報候補2755のブロック位置とインデクスMvpidxの関係を示すリストの一例を示す。Mvpidxが0〜2は空間方向に位置する予測動き情報候補2755、Mvpidxが3は時間方向に位置する測動きベクトル候補2755をそれぞれ示している。プレディクションユニット位置Aは図10に示されるAXの内、インター予測である、つまり参照動き情報2558を有するプレディクションユニットであって、Xの値が最も小さい位置をプレディクションユニット位置Aとする。また、プレディクションユニット位置Bは図10に示されるBYの内、インター予測である、つまり参照動き情報2558を有するプレディクションユニットであって、Yの値が最も小さい位置をプレディクションユニット位置Aとする。プレディクションユニット位置Cがインター予測ではない場合、プレディクションユニット位置Dの参照動き情報2558をプレディクションユニット位置Cの参照動き情報2558として置き換える。プレディクションユニット位置C及びDがインター予測ではない場合、プレディクションユニット位置Eの参照動き情報2558をプレディクションユニット位置Cの参照動き情報2558として置き換える。   The reference motion information acquisition unit 2704 receives the reference motion information 2558 and the reference position information 2560 and generates at least one or more predicted motion information candidates 2755 (2755A, 2755B, ...). FIG. 10 and FIG. 11 show an example of the positions of the motion vector predictor candidates 2755 with respect to the decoding target prediction unit. FIG. 10 shows the position of the prediction unit spatially adjacent to the decoding target prediction unit. AX (X = 0 to nA-1) is a prediction unit that is adjacent to the left of the target prediction unit, and BY (Y = 0 to nB-1) is a prediction unit that is adjacent to the target prediction unit above. Function units, C, D, and E, indicate prediction units that are adjacent to the decoding target prediction unit at the upper right, upper left, and lower left, respectively. Further, FIG. 11 shows the position of the prediction unit in the reference frame that has already been decoded with respect to the decoding target prediction unit. Col in the figure indicates a prediction unit located at the same position as the decoding target prediction unit in the reference frame. FIG. 12 shows an example of a list showing the relationship between the block positions of the plurality of motion vector predictor information candidates 2755 and the index Mvpidx. Mvpidx 0 to 2 indicate the predicted motion information candidate 2755 located in the spatial direction, and Mvpidx 3 indicates the motion vector predictor candidate 2755 located in the time direction. The prediction unit position A is a prediction unit having inter-prediction, that is, the reference motion information 2558 in AX shown in FIG. 10, and the position where the value of X is the smallest is the prediction unit position A. Further, the prediction unit position B is an inter prediction among BY shown in FIG. 10, that is, a prediction unit having reference motion information 2558, and a position having the smallest Y value is referred to as a prediction unit position A. To do. When the prediction unit position C is not inter prediction, the reference motion information 2558 of the prediction unit position D is replaced with the reference motion information 2558 of the prediction unit position C. When the prediction unit positions C and D are not inter prediction, the reference motion information 2558 of the prediction unit position E is replaced with the reference motion information 2558 of the prediction unit position C.

復号化対象プレディクションユニットのサイズが最小プレディクションユニットより大きい場合には、プレディクションユニット位置Colは、複数の参照動き情報2558を時間方向参照動き情報メモリ2507に保持している可能性がある。この場合、参照位置情報2560に従って位置Colのプレディクションユニット中の参照動き情報2558を取得する。以降、位置Colのプレディクションユニット中の参照動き情報2558の取得位置を参照動き情報取得位置と称する。図13A〜Fは、参照位置情報2560が位置Colのプレディクションユニットの中心を示す場合の参照動き情報取得位置の一例を復号化対象プレディクションユニットのサイズ(32x32〜16x16)毎に示す。図中のブロックはそれぞれ4x4プレディクションユニットを示し、丸印は予測動き情報候補2755として取得する4x4プレディクションユニットの位置を示している。参照動き情報取得位置の別の一例を図14A〜Fに示す。図14A〜Fにおいて、丸印の位置は4x4プレディクションユニットが存在しないため、丸印に隣接する4つのx4プレディクションユニットにおける参照動き情報2558の平均値やメディアン値といった予め定められた方式で、予測動き情報候補2755を生成する。参照動き情報取得位置の更に別の一例として、位置Colのプレディクションユニットの左上端に位置する4x4プレディクションユニットの参照動き情報2558を予測動き情報候補2755としても構わない。上記の例以外に置いても、予め定められた方式であれば、いずれの位置及び方式を用いて予測動き情報候補2755を生成しても構わない。   When the size of the decoding target prediction unit is larger than the minimum prediction unit, the prediction unit position Col may hold a plurality of reference motion information 2558 in the temporal reference motion information memory 2507. In this case, the reference motion information 2558 in the prediction unit at the position Col is acquired according to the reference position information 2560. Hereinafter, the acquisition position of the reference motion information 2558 in the prediction unit at the position Col will be referred to as the reference motion information acquisition position. 13A to 13F show an example of the reference motion information acquisition position when the reference position information 2560 indicates the center of the prediction unit at the position Col, for each size (32x32 to 16x16) of the prediction target prediction unit. Each block in the figure indicates a 4x4 prediction unit, and a circle indicates the position of the 4x4 prediction unit acquired as the motion vector predictor candidate 2755. Another example of the reference motion information acquisition position is shown in FIGS. In FIGS. 14A to 14F, since the 4x4 prediction unit does not exist at the position of the circle, in a predetermined method such as the average value or the median value of the reference motion information 2558 in the four x4 prediction units adjacent to the circle, The predicted motion information candidate 2755 is generated. As still another example of the reference motion information acquisition position, the reference motion information 2558 of the 4 × 4 prediction unit located at the upper left end of the prediction unit at the position Col may be used as the predicted motion information candidate 2755. Even if it puts besides the above-mentioned example, if it is a predetermined system, you may generate prediction motion information candidate 2755 using any position and a system.

なお、参照動き情報2558が存在しない場合、ゼロベクトルを有する動き情報2559を、予測動き情報候補2755として出力する。   If the reference motion information 2558 does not exist, the motion information 2559 having the zero vector is output as the motion vector predictor candidate 2755.

以上により、少なくとも一つ以上の予測動き情報候補2755が参照動きブロックから出力される。上記の予測動き情報候補2755が有する参照フレーム番号と復号化対象プレディクションユニットの参照フレーム番号が異なる場合、予測動き情報候補2755を予測動き情報候補2755が有する参照フレーム番号と復号化対象プレディクションユニットの参照フレーム番号に従ってスケーリングしても構わない。予測動き情報選択スイッチ2705は、複数の予測動き情報候補2755から予測動き情報位置2754に従って一つを選択し、予測動き情報952を出力する。   By the above, at least one or more prediction motion information candidates 2755 are output from the reference motion block. When the reference frame number of the motion vector predictor candidate 2755 and the reference frame number of the decoding target prediction unit are different, the motion vector predictor candidate 2755 is set to the reference frame number of the motion vector predictor candidate 2755 and the prediction target prediction unit. The scaling may be performed according to the reference frame number of. The motion vector predictor selection switch 2705 selects one of the motion vector predictor information candidates 2755 according to the motion vector predictor information position 2754 and outputs motion vector predictor information 952.

逆量子化部2502は、エントロピー復号化部2501からの量子化変換係数2551に逆量子化を行って、復元変換係数2552を得る。具体的には、逆量子化部2502は、エントロピー復号化部2501によって復号化された量子化に関する情報に従って逆量子化を行う。逆量子化部2502は、復元変換係数2552を逆直交変換部2503に出力する。   The dequantization unit 2502 dequantizes the quantized transform coefficient 2551 from the entropy decoding unit 2501 to obtain a restored transform coefficient 2552. Specifically, the dequantization unit 2502 performs dequantization in accordance with the quantization information decoded by the entropy decoding unit 2501. The inverse quantization unit 2502 outputs the restoration transform coefficient 2552 to the inverse orthogonal transform unit 2503.

逆直交変換部2503は、逆量子化部2502からの復元変換係数2552に対して、符号化側において行われた直交変換に対応する逆直交変換を行い、復元予測誤差信号2553を得る。逆直交変換部2503は、復元予測誤差信号2553を加算部2504に入力する。   The inverse orthogonal transform unit 2503 performs an inverse orthogonal transform corresponding to the orthogonal transform performed on the encoding side on the restored transform coefficient 2552 from the inverse quantization unit 2502, and obtains a restored prediction error signal 2553. The inverse orthogonal transformation unit 2503 inputs the restoration prediction error signal 2553 to the addition unit 2504.

加算部2504は、復元予測誤差信号2553と、対応する予測画像信号2556とを加算し、復号画像信号2554を生成する。復号画像信号2554は、図示されないデブロッキングフィルタやウィナーフィルタなどを施し、出力画像のために出力バッファ2511に一時的に蓄積されると共に、参照画像信号2555のために参照画像メモリ2505にも保存される。参照画像メモリ2505に保存された復号画像信号2554は、参照画像信号2555としインター予測部2506によって必要に応じてフレーム単位またはフィールド単位で参照される。出力バッファ2511に一時的に蓄積された復号画像信号2554は、復号化制御部2510によって管理される出力タイミングに従って出力される。   The addition unit 2504 adds the restored prediction error signal 2553 and the corresponding predicted image signal 2556 to generate a decoded image signal 2554. The decoded image signal 2554 is subjected to a deblocking filter or a Wiener filter (not shown), is temporarily stored in the output buffer 2511 for the output image, and is also stored in the reference image memory 2505 for the reference image signal 2555. It The decoded image signal 2554 stored in the reference image memory 2505 is referred to as a reference image signal 2555 by the inter prediction unit 2506 in a frame unit or a field unit as needed. The decoded image signal 2554 temporarily stored in the output buffer 2511 is output according to the output timing managed by the decoding control unit 2510.

インター予測部2506は、参照画像メモリ2505に保存されている参照画像信号2555を利用してインター予測を行う。具体的には、インター予測部2506は、予測対象ブロックと参照画像信号2555との間の動きのズレ量(動きベクトル)を含む動き情報2559をエントロピー復号化部2501から取得し、この動きベクトルに基づいて補間処理(動き補償)を行ってインター予測画像を生成する。インター予測画像の生成に関しては、第一の実施形態と同一であるので、説明を省略する。   The inter prediction unit 2506 performs inter prediction using the reference image signal 2555 stored in the reference image memory 2505. Specifically, the inter prediction unit 2506 acquires, from the entropy decoding unit 2501, motion information 2559 including the amount of motion deviation (motion vector) between the prediction target block and the reference image signal 2555, and uses this motion vector as the motion vector. Interpolation processing (motion compensation) is performed based on this to generate an inter prediction image. The generation of the inter-predicted image is the same as that in the first embodiment, so the description thereof will be omitted.

復号化制御部2510は、図25の動画像復号化装置の各要素を制御する。具体的には、復号化制御部2510は、後述する参照位置情報2560をエントロピー復号化部2501に出力したり、上述の動作を含む復号化処理のための種々の制御を行う。   The decoding control unit 2510 controls each element of the moving picture decoding apparatus in FIG. Specifically, the decoding control unit 2510 outputs reference position information 2560 described below to the entropy decoding unit 2501 and performs various controls for the decoding process including the above-described operation.

<スキップモード、マージモード、インターモードの説明>
本実施形態に係る画像復号化装置2500は、図8に示す復号化処理の異なる複数の予測モードを使用する。図中のスキップモードは後述する予測動き情報位置2754に関するシンタクスのみを復号化し、その他のシンタクスは復号化しないモードである。マージモードは予測動き情報位置2754に関するシンタクス、変換係数情報2551のみを復号化し、その他のシンタクスは復号化しないモードである。インターモードは、予測動き情報位置2754に関するシンタクス、後述する差分動き情報2753、変換係数情報2551を復号化するモードである。これらのモードは復号化制御部2510が制御する予測情報2571によって切り替えられる。
<Explanation of skip mode, merge mode, and inter mode>
The image decoding apparatus 2500 according to this embodiment uses a plurality of prediction modes having different decoding processes shown in FIG. The skip mode in the drawing is a mode in which only the syntax related to the motion vector predictor position 2754 described below is decoded and the other syntaxes are not decoded. The merge mode is a mode in which only the syntax related to the motion vector predictor position 2754 and the transform coefficient information 2551 are decoded, and the other syntaxes are not decoded. The inter mode is a mode for decoding the syntax regarding the predicted motion information position 2754, differential motion information 2753, and transform coefficient information 2551 described later. These modes are switched by the prediction information 2571 controlled by the decoding control unit 2510.

また、図25の動画像復号化装置は、図28説明したシンタクスと同一または類似のシンタクスを利用するのでその詳細な説明を省略する。   Further, since the moving picture decoding apparatus in FIG. 25 uses the same or similar syntax as the syntax described in FIG. 28, detailed description thereof will be omitted.

<動き情報圧縮部2508の詳細>
次に、動き情報圧縮部2508について図16に示すフローチャートを用いて説明する。動き情報圧縮部2508は、フレーム(もしくはスライス、コーディングユニットなど任意の単位)の復号化処理が終了した際に、動き情報2559を圧縮して時間方向参照動き情報メモリ502に動き情報2559を格納する。
<Details of the motion information compression unit 2508>
Next, the motion information compression unit 2508 will be described using the flowchart shown in FIG. The motion information compressing unit 2508 compresses the motion information 2559 and stores the motion information 2559 in the temporal direction reference motion information memory 502 when the decoding process of a frame (or an arbitrary unit such as a slice or a coding unit) is completed. ..

まず、復号化制御部2510から参照位置情報2560を取得し(ステップS1601)、フレームを動き情報2559の圧縮単位である動き情報圧縮ブロックに分割する(ステップS1602)。動き情報圧縮ブロックは、動き補償処理により動き情報2559が保持される単位(典型的には4x4画素ブロック)より大きい画素ブロックであり、典型的には16x16画素ブロックである。動き情報圧縮ブロックは32x32画素ブロックや8x8画素ブロック、長方形画素ブロック、任意の形状の画素領域であっても構わない。   First, the reference position information 2560 is acquired from the decoding control unit 2510 (step S1601), and the frame is divided into motion information compressed blocks that are compression units of the motion information 2559 (step S1602). The motion information compression block is a pixel block larger than a unit (typically a 4x4 pixel block) in which the motion information 2559 is held by the motion compensation process, and is typically a 16x16 pixel block. The motion information compression block may be a 32x32 pixel block, an 8x8 pixel block, a rectangular pixel block, or a pixel area of any shape.

次に、参照位置情報2560に従って代表動き情報位置を生成する(ステップS1603)。代表動き情報位置を生成する一例として、動き情報圧縮ブロックが16x16画素ブロックの場合、図13D、図14D、図17Dにそれぞれ示されるプレディクションユニットのサイズが16x16の場合の参照動き情報取得位置を代表動き情報位置とする。次に、生成した代表動き情報位置の参照動き情報2558を代表動き情報に設定し(ステップS1605)、当該代表動き情報を時間方向参照動き情報メモリに格納する(ステップS1606)。上記のステップS1604〜S1605をすべての動き情報圧縮ブロックに対して実行する。   Next, the representative motion information position is generated according to the reference position information 2560 (step S1603). As an example of generating the representative motion information position, when the motion information compression block is a 16 × 16 pixel block, the reference motion information acquisition position when the size of the prediction unit shown in FIGS. 13D, 14D, and 17D is 16 × 16 is representative. This is the motion information position. Next, the reference motion information 2558 at the generated representative motion information position is set as the representative motion information (step S1605), and the representative motion information is stored in the temporal direction reference motion information memory (step S1606). The above steps S1604 to S1605 are executed for all motion information compressed blocks.

動き情報2559が保持される単位をMxMブロック、動き情報圧縮ブロックのサイズをNxN(NはMの倍数)とすると、上記動き情報圧縮処理を実行することにより、参照動き情報メモリの容量を(MxM)/(NxN)に削減することが可能となる。   If the unit in which the motion information 2559 is held is MxM blocks and the size of the motion information compression block is NxN (N is a multiple of M), the above-mentioned motion information compression processing is executed to increase the capacity of the reference motion information memory by (MxM ) / (NxN).

<代表動き情報位置の別の実施形態>
代表動き情報位置を生成する別の例として、複数の参照動き情報取得位置の中心位置を代表動き情報位置としても構わない。図18A及び図18Bはサイズが16x16である動き圧縮ブロック毎の代表動き情報位置を示している。図18Aは、参照動き情報取得位置が図13Dに示される位置である場合の代表動き情報位置、同様に図18Bは、参照動き情報取得位置が図17Dに示される位置である場合の代表動き情報位置をそれぞれ示している。図18A及び図18B中の丸印は、プレディクションユニットが16x16である際の、参照動き情報取得位置を示しており、4点の参照動き情報取得位置の中心位置にバツ印で示される代表動き情報位置を配置している。
<Another Embodiment of Representative Motion Information Position>
As another example of generating the representative motion information position, the center position of the plurality of reference motion information acquisition positions may be used as the representative motion information position. 18A and 18B show representative motion information positions for each motion compression block having a size of 16 × 16. FIG. 18A is a representative motion information position when the reference motion information acquisition position is the position shown in FIG. 13D. Similarly, FIG. 18B is a representative motion information position when the reference motion information acquisition position is the position shown in FIG. 17D. Each position is shown. Circles in FIG. 18A and FIG. 18B indicate reference motion information acquisition positions when the prediction unit is 16 × 16, and representative motions indicated by crosses at the center positions of the four reference motion information acquisition positions. The information position is arranged.

代表動き情報位置を生成する更に別の例として、複数のプレディクションユニットのサイズ毎の参照動き情報取得位置を参照位置情報2560として有し、複数の参照動き情報取得位置から代表動き情報位置を生成しても構わない。図19は、ツリーブロックが64x64画素ブロックである場合の、プレディクションユニットのサイズが16x16以上の各サイズにおけるプレディクションユニットの中心(参照動き情報取得位置)をそれぞれ示している。   As still another example of generating the representative motion information position, reference motion information acquisition positions for each size of a plurality of prediction units are provided as reference position information 2560, and the representative motion information position is generated from the plurality of reference motion information acquisition positions. It doesn't matter. FIG. 19 shows the center (reference motion information acquisition position) of the prediction unit in each size of 16 × 16 or more when the tree block is a 64 × 64 pixel block.

代表動き情報位置を生成する別の一例として、代表動き情報位置は動き情報圧縮ブロック毎に配置される参照動き情報取得位置を用いて設定されても構わない。図20Aは、動き情報圧縮ブロック毎の複数の参照動き情報取得位置の重心を代表動き情報位置と設定した場合の例を示す。重心位置が4x4ブロックの位置と一致しない場合には、最近傍の4x4ブロックを代表動き情報位置としてもよいし、共一次内挿法などの内挿法を用いて重心位置の参照動きベクトル166を生成しても構わない。   As another example of generating the representative motion information position, the representative motion information position may be set using the reference motion information acquisition position arranged for each motion information compression block. FIG. 20A shows an example in which the center of gravity of a plurality of reference motion information acquisition positions for each motion information compression block is set as the representative motion information position. When the position of the center of gravity does not match the position of the 4x4 block, the nearest 4x4 block may be used as the representative motion information position, or the reference motion vector 166 of the position of the center of gravity may be determined by using an interpolation method such as bilinear interpolation. You can generate it.

また、図20Bは動き情報圧縮ブロック毎に複数の参照動き情報取得位置のいずれかを選択し、代表動き情報位置と設定した場合の例を示す。   Also, FIG. 20B shows an example in which one of the plurality of reference motion information acquisition positions is selected for each motion information compressed block and set as the representative motion information position.

更に、図21A、Bにツリーブロック内で各動き情報圧縮ブロックで参照動き情報取得位置を同一にした場合の例を更に示す。全ての動き情報圧縮ブロック内で同一の代表動き情報位置であるため、ツリーブロック内の位置に応じて、代表動き情報位置を切り替える必要はない。また、代表動き情報位置は図21A、B以外にも、動き情報圧縮ブロック内の左上端や右上端等いずれの位置にあっても構わない。   Further, FIGS. 21A and 21B further show an example in which the reference motion information acquisition positions are made the same in each motion information compression block in the tree block. Since the representative motion information position is the same in all motion information compression blocks, it is not necessary to switch the representative motion information position according to the position in the tree block. Further, the representative motion information position may be at any position such as the upper left end or the upper right end in the motion information compression block in addition to FIGS. 21A and 21B.

代表動き情報位置を生成する一例、動き情報圧縮ブロック内の4x4ブロック位置をZスキャン順で示すBlkIdxを用いて代表動き情報位置を示しても構わない。動き情報圧縮ブロックのサイズが16x16である場合に、図21Aに示される代表動き情報位置はBlkIdx=12の位置に相当する。また、図21Bに示される代表動き情報位置はBlkIdx=15の位置に相当する。   As an example of generating the representative motion information position, BlkIdx indicating the 4x4 block position in the motion information compression block in Z scan order may be used to indicate the representative motion information position. When the size of the motion information compression block is 16 × 16, the representative motion information position shown in FIG. 21A corresponds to the position of BlkIdx = 12. The representative motion information position shown in FIG. 21B corresponds to the position of BlkIdx = 15.

動き情報圧縮処理における別の一例として、参照フレーム番号に関するメモリ容量を削減するために、動き情報圧縮処理に参照フレーム番号を含めても構わない。この場合、代表動き情報位置に保持される参照フレーム番号を参照フレーム番号に関するメモリ容量に格納する。従って、図5に示される空間方向参照動き情報メモリ501及び空間方向参照動き情報メモリ502は動きベクトル情報に追加して参照フレーム番号を格納する。   As another example of the motion information compression process, the reference frame number may be included in the motion information compression process in order to reduce the memory capacity related to the reference frame number. In this case, the reference frame number held at the representative motion information position is stored in the memory capacity related to the reference frame number. Therefore, the spatial direction reference motion information memory 501 and the spatial direction reference motion information memory 502 shown in FIG. 5 store the reference frame number in addition to the motion vector information.

動き情報圧縮処理における更に別の一例として、動き情報圧縮処理に参照フレーム番号を含めない場合に、代表動き情報位置にある動き情報内の動きベクトル情報を、参照フレーム番号を用いてスケーリング処理を施して、動き情報メモリ110に格納しても構わない。スケーリング処理の典型例として、参照フレーム番号ゼロを基準とした線形スケーリング処理がある。これは、参照フレーム番号がゼロ以外の値である場合に、動きベクトル情報が参照フレーム番号ゼロに対応する参照フレームを参照するように線形スケーリング処理するものである。上述のスケーリング処理の基準は参照フレーム番号がゼロ以外の値であっても構わない。上述の線形スケーリング処理を行う場合に除算が発生する場合には、予め除算処理をテーブル化しておき、都度テーブルを引くことで上記除算を実現しても構わない。   As still another example of the motion information compression processing, when the reference frame number is not included in the motion information compression processing, the motion vector information in the motion information at the representative motion information position is subjected to scaling processing using the reference frame number. Then, it may be stored in the motion information memory 110. A typical example of the scaling process is a linear scaling process with reference frame number zero as a reference. This is to perform linear scaling processing so that when the reference frame number is a value other than zero, the motion vector information refers to the reference frame corresponding to the reference frame number zero. The reference of the reference frame number may be a value other than zero as the standard for the above-described scaling processing. When division occurs when performing the above-described linear scaling processing, the division processing may be made into a table in advance and the table may be drawn each time to realize the division.

動き情報圧縮ブロックのサイズが16x16ブロック以外の場合、上述と同様の処理を用いて代表動き情報位置を生成する。一例では、動き情報圧縮ブロックのサイズが64x64の場合、プレディクションユニットのサイズが64x64における参照動き情報取得位置を代表動き情報位置とする。更に別の一例では、図21A、図21B等で示される動き情報圧縮ブロックのサイズが16x16ブロックにおける代表動き情報位置を、動き情報圧縮ブロックのサイズに従って水平方向及び垂直方向でスケーリングした位置を代表動き情報位置としても構わない。   If the size of the motion information compression block is other than 16 × 16 blocks, the representative motion information position is generated using the same processing as described above. In one example, when the size of the motion information compression block is 64x64, the reference motion information acquisition position when the size of the prediction unit is 64x64 is set as the representative motion information position. In yet another example, the representative motion information position in which the size of the motion information compression block shown in FIG. 21A, FIG. 21B, etc. is 16 × 16 blocks is scaled in the horizontal direction and the vertical direction according to the size of the motion information compression block. It may be an information position.

代表動き情報位置が、ピクチャやスライスの外であるとして参照動き情報が存在しない場合には、動き情報圧縮ブロックの左上端といった動き情報圧縮ブロック内で参照動き情報が取得可能な位置を新しい代表動き情報位置として置き換えても構わない。また、代表動き情報位置がイントラ予測が適用された領域であって、参照動き情報が存在しない場合にも同様の処理を実行して、新しい代表動き情報位置として置き換えても構わない。   If the reference motion information does not exist because the representative motion information position is outside the picture or slice, the position at which the reference motion information can be acquired in the motion information compression block, such as the upper left end of the motion information compression block, is set as the new representative motion. The information position may be replaced. Also, when the representative motion information position is an area to which intra prediction is applied and reference motion information does not exist, the same process may be executed to replace it with a new representative motion information position.

以下、各実施形態の変形例を列挙して紹介する。
第1及び第2の実施形態において、フレームを16×16画素サイズなどの矩形ブロックに分割し、画面左上のブロックから右下に向かって順に符号化/復号化を行う例について説明している(図2Aを参照)。しかしながら、符号化順序及び復号化順序はこの例に限定されない。例えば、右下から左上に向かって順に符号化及び復号化が行われてもよいし、画面中央から画面端に向かって渦巻を描くように符号化及び復号化が行われてもよい。さらに、右上から左下に向かって順に符号化及び復号化が行われてもよいし、画面端から画面中央に向かって渦巻きを描くように符号化及び復号化が行われてもよい。
Hereinafter, modifications of each embodiment will be listed and introduced.
In the first and second embodiments, an example in which a frame is divided into rectangular blocks of 16 × 16 pixel size and the encoding / decoding is performed in order from the block at the upper left of the screen to the lower right ( See FIG. 2A). However, the encoding order and the decoding order are not limited to this example. For example, the encoding and decoding may be performed in order from the lower right to the upper left, or the encoding and decoding may be performed so as to draw a spiral from the center of the screen to the end of the screen. Further, the encoding and decoding may be performed in order from the upper right to the lower left, or the encoding and decoding may be performed so as to draw a spiral from the screen edge toward the screen center.

第1及び第2の実施形態において、4×4画素ブロック、8×8画素ブロック、16×16画素ブロックなどの予測対象ブロックサイズを例示して説明を行ったが、予測対象ブロックは均一なブロック形状でなくてもよい。例えば、予測対象ブロック(プレディクションユニット)サイズは、16×8画素ブロック、8×16画素ブロック、8×4画素ブロック、4×8画素ブロックなどであってもよい。また、1つのコーディングツリーユニット内で全てのブロックサイズを統一させる必要はなく、複数の異なるブロックサイズを混在させてもよい。1つのコーディングツリーユニット内で複数の異なるブロックサイズを混在させる場合、分割数の増加に伴って分割情報を符号化または復号化するための符号量も増加する。そこで、分割情報の符号量と局部復号画像または復号画像の品質との間のバランスを考慮して、ブロックサイズを選択することが望ましい。   In the first and second embodiments, the prediction target block size such as the 4 × 4 pixel block, the 8 × 8 pixel block, and the 16 × 16 pixel block has been described as an example, but the prediction target block is a uniform block. It does not have to be a shape. For example, the prediction target block (prediction unit) size may be a 16 × 8 pixel block, an 8 × 16 pixel block, an 8 × 4 pixel block, a 4 × 8 pixel block, or the like. Further, it is not necessary to unify all block sizes in one coding tree unit, and a plurality of different block sizes may be mixed. When a plurality of different block sizes are mixed in one coding tree unit, the code amount for encoding or decoding the division information increases as the number of divisions increases. Therefore, it is desirable to select the block size in consideration of the balance between the code amount of the division information and the locally decoded image or the quality of the decoded image.

第1及び第2の実施形態において、簡単化のために、輝度信号と色差信号とを区別せず、色信号成分に関して包括的な説明を記述した。しかしながら、予測処理が輝度信号と色差信号との間で異なる場合には、同一または異なる予測方法が用いられてよい。輝度信号と色差信号との間で異なる予測方法が用いられるならば、色差信号に対して選択した予測方法を輝度信号と同様の方法で符号化または復号化できる。   In the first and second embodiments, for simplification, the luminance signal and the color difference signal are not distinguished from each other, and the comprehensive description is given regarding the color signal component. However, if the prediction process differs between the luminance signal and the color difference signal, the same or different prediction method may be used. If different prediction methods are used between the luminance signal and the chrominance signal, the prediction method selected for the chrominance signal can be encoded or decoded in the same manner as the luminance signal.

第1及び第2の実施形態において、簡単化のために、輝度信号と色差信号とを区別せず、色信号成分に関して包括的な説明を記述した。しかしながら、直交変換処理が輝度信号と色差信号との間で異なる場合には、同一または異なる直交変換方法が用いられてよい。輝度信号と色差信号との間で異なる直交変換方法が用いられるならば、色差信号に対して選択した直交変換方法を輝度信号と同様の方法で符号化または復号化できる。   In the first and second embodiments, for simplification, the luminance signal and the color difference signal are not distinguished from each other, and the comprehensive description is given regarding the color signal component. However, if the orthogonal transform processing differs between the luminance signal and the color difference signal, the same or different orthogonal transform method may be used. If different orthogonal transform methods are used between the luminance signal and the color difference signal, the orthogonal transform method selected for the color difference signal can be encoded or decoded in the same manner as the luminance signal.

第1及び第2までの実施形態において、シンタクス構成に示す表の行間には、実施形態で規定していないシンタクス要素が挿入されることも可能であるし、それ以外の条件分岐に関する記述が含まれていても構わない。或いは、シンタクステーブルを複数のテーブルに分割、統合することも可能である。また、必ずしも同一の用語を用いる必要は無く、利用する形態によって任意に変更しても構わない。   In the first and second embodiments, syntax elements not specified in the embodiment may be inserted between the rows of the table shown in the syntax configuration, and a description regarding other conditional branching is included. It doesn't matter. Alternatively, the syntax table can be divided and integrated into a plurality of tables. Further, it is not always necessary to use the same term, and the term may be arbitrarily changed depending on the form used.

以上説明したように、各実施形態は、ハードウェア実装及びソフトウェア実装における困難性を緩和しつつ、高効率な直交変換及び逆直交変換を実現することができる。故に、各実施形態によれば、符号化効率が向上し、ひいては主観画質も向上する。   As described above, each of the embodiments can realize highly efficient orthogonal transform and inverse orthogonal transform while alleviating the difficulty in hardware implementation and software implementation. Therefore, according to each embodiment, the coding efficiency is improved and the subjective image quality is also improved.

また、上述の実施形態の中で示した処理手順に示された指示は、ソフトウェアであるプログラムに基づいて実行されることが可能である。汎用の計算機システムが、このプログラムを予め記憶しておき、このプログラムを読み込むことにより、上述した実施形態の動画像符号化装置及び動画像復号化装置による効果と同様な効果を得ることも可能である。上述の実施形態で記述された指示は、コンピュータに実行させることのできるプログラムとして、磁気ディスク(フレキシブルディスク、ハードディスクなど)、光ディスク(CD−ROM、CD−R、CD−RW、DVD−ROM、DVD±R、DVD±RWなど)、半導体メモリ、またはこれに類する記録媒体に記録される。コンピュータまたは組み込みシステムが読み取り可能な記録媒体であれば、その記憶形式は何れの形態であってもよい。コンピュータは、この記録媒体からプログラムを読み込み、このプログラムに基づいてプログラムに記述されている指示をCPUで実行させれば、上述した実施形態の動画像符号化装置及び動画像復号化装置と同様な動作を実現することができる。もちろん、コンピュータがプログラムを取得する場合または読み込む場合はネットワークを通じて取得または読み込んでもよい。
また、記録媒体からコンピュータや組み込みシステムにインストールされたプログラムの指示に基づきコンピュータ上で稼働しているOS(オペレーティングシステム)や、データベース管理ソフト、ネットワーク等のMW(ミドルウェア)等が本実施形態を実現するための各処理の一部を実行してもよい。
さらに、本願発明の実施形態における記録媒体は、コンピュータあるいは組み込みシステムと独立した媒体に限らず、LANやインターネット等により伝達されたプログラムをダウンロードして記憶または一時記憶した記録媒体も含まれる。また、上記各実施形態の処理を実現するプログラムを、インターネットなどのネットワークに接続されたコンピュータ(サーバ)上に格納し、ネットワーク経由でコンピュータ(クライアント)にダウンロードさせてもよい。
また、記録媒体は1つに限られず、複数の媒体から本実施形態における処理が実行される場合も、本発明の実施形態における記録媒体に含まれ、媒体の構成は何れの構成であってもよい。
Further, the instructions shown in the processing procedure shown in the above-described embodiment can be executed based on a program that is software. A general-purpose computer system may store this program in advance, and by reading this program, it is possible to obtain the same effects as the effects of the moving picture coding apparatus and the moving picture decoding apparatus of the above-described embodiments. is there. The instructions described in the above embodiments are magnetic disks (flexible disks, hard disks, etc.), optical disks (CD-ROM, CD-R, CD-RW, DVD-ROM, DVD) as programs that can be executed by a computer. ± R, DVD ± RW, etc.), a semiconductor memory, or a recording medium similar thereto. The storage format may be any form as long as it is a recording medium readable by a computer or an embedded system. If the computer reads the program from this recording medium and causes the CPU to execute the instructions described in the program based on this program, the computer will be similar to the moving picture coding apparatus and the moving picture decoding apparatus of the above-described embodiment. The operation can be realized. Of course, when the computer acquires or loads the program, it may be acquired or loaded via a network.
In addition, an OS (operating system) running on a computer, database management software, MW (middleware) such as a network, etc., which realizes the present embodiment, based on instructions of a program installed in a computer or an embedded system from a recording medium. You may perform a part of each process for doing.
Further, the recording medium in the embodiments of the present invention is not limited to a medium independent of a computer or an embedded system, but includes a recording medium in which a program transmitted via a LAN, the Internet or the like is downloaded and stored or temporarily stored. Further, the program that implements the processing of each of the above embodiments may be stored on a computer (server) connected to a network such as the Internet and may be downloaded by a computer (client) via the network.
Further, the number of recording media is not limited to one, and even when the processing in this embodiment is executed from a plurality of media, it is included in the recording media in the embodiments of the present invention, and the structure of the medium may be any one. Good.

なお、本願発明の実施形態におけるコンピュータまたは組み込みシステムは、記録媒体に記憶されたプログラムに基づき、本実施形態における各処理を実行するためのものであって、パソコン、マイコン等の1つからなる装置、複数の装置がネットワーク接続されたシステム等の何れの構成であってもよい。
また、本願発明の実施形態におけるコンピュータとは、パソコンに限らず、情報処理機器に含まれる演算処理装置、マイコン等も含み、プログラムによって本発明の実施形態における機能を実現することが可能な機器、装置を総称している。
The computer or the embedded system in the embodiment of the present invention is for executing each processing in the present embodiment based on the program stored in the recording medium, and is an apparatus including one such as a personal computer and a microcomputer. It may have any configuration such as a system in which a plurality of devices are network-connected.
Further, the computer in the embodiment of the present invention is not limited to a personal computer, and includes an arithmetic processing unit, a microcomputer, etc. included in an information processing device, and a device capable of realizing the function in the embodiment of the present invention by a program, It is a generic term for devices.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and gist of the invention, and are also included in the invention described in the claims and the scope equivalent thereto.

100…画像符号化装置、101…減算部、102…直交変換部、103…量子化部、104、2502…逆量子化部、105、2503…逆直交変換部、106、2504、2706…加算部、107、2505…参照画像メモリ、108、2506…インター予測部、109…動き情報圧縮部、110…動き情報メモリ、112…エントロピー符号化部、113…出力バッファ、114…符号化制御部、401…パラメータ符号化部、402…変換係数符号化部、403…動き情報符号化部、404…多重化部、901…参照動きベクトル取得部、902…予測動きベクトル選択スイッチ、903…減算部、904…差分動き情報符号化部、905…予測動き情報位置符号化部、906…多重化部、2500…動画像復号化装置、2501…エントロピー復号化部、2507…参照動き情報メモリ、2508…参照動き情報圧縮部、2510…復号化制御部、2601、2701…分離部、2602…パラメータ復号化部、2603…変換係数復号化部、2604…動き情報復号化部、2702…差分動き情報復号化部、2503…予測動き情報位置復号化部、2704…参照動き情報取得部、2705…予測動き情報選択スイッチ。 100 ... Image coding device, 101 ... Subtraction unit, 102 ... Orthogonal transformation unit, 103 ... Quantization unit, 104, 2502 ... Inverse quantization unit, 105, 2503 ... Inverse orthogonal transformation unit, 106, 2504, 2706 ... Addition unit , 107, 2505 ... Reference image memory, 108, 2506 ... Inter prediction unit, 109 ... Motion information compression unit, 110 ... Motion information memory, 112 ... Entropy coding unit, 113 ... Output buffer, 114 ... Coding control unit, 401 ... Parameter coding unit, 402 ... Transform coefficient coding unit, 403 ... Motion information coding unit, 404 ... Multiplexing unit, 901 ... Reference motion vector acquisition unit, 902 ... Prediction motion vector selection switch, 903 ... Subtraction unit, 904 ... Differential motion information coding unit, 905 ... Predictive motion information position coding unit, 906 ... Multiplexing unit, 2500 ... Moving image decoding device, 250 Entropy decoding unit, 2507 ... Reference motion information memory, 2508 ... Reference motion information compression unit, 2510 ... Decoding control unit, 2601, 2701 ... Separation unit, 2602 ... Parameter decoding unit, 2603 ... Transform coefficient decoding unit, 2604 ... Motion information decoding unit, 2702 ... Differential motion information decoding unit, 2503 ... Prediction motion information position decoding unit, 2704 ... Reference motion information acquisition unit, 2705 ... Prediction motion information selection switch.

Claims (2)

入力画像信号を画素ブロックに分割し、これら分割した画素ブロックに対してインター予測を行う動画像符号化方法において、
符号化済み領域における動き情報から、予測動き情報を選択する方法を示す情報に従って取得された情報に基づいて、予測動き情報を選択することと、
前記予測動き情報を用いて、符号化対象ブロックの動き情報を予測することと、
符号化が終了した領域内の複数の動き情報の中から、前記予測動き情報の選択方法を示す第1情報に従って代表動き情報を取得する、
ことを具備し、
前記第1情報は、
前記動き情報を選択するための、前記符号化対象ブロック内の位置を特定する第2情報を含む、動画像符号化方法。
In a moving image coding method of dividing an input image signal into pixel blocks and performing inter prediction on these divided pixel blocks,
From the motion information in the coded region, based on the information obtained according to the information indicating the method of selecting the motion vector predictor, selecting the motion vector predictor,
Predicting motion information of a current block using the predicted motion information;
Representative motion information is acquired from a plurality of pieces of motion information in the region where encoding has been completed, in accordance with first information indicating a method of selecting the predicted motion information.
Equipped with
The first information is
A moving picture coding method including second information for specifying a position within the coding target block for selecting the motion information.
入力画像信号を画素ブロックに分割し、これら分割した画素ブロックに対してインター予測を行う動画像復号化方法において、
復号化済み領域における動き情報から、予測動き情報を選択する方法を示す情報に従って取得された情報に基づいて、予測動き情報を選択し、
前記予測動き情報を用いて、復号化対象ブロックの動き情報を予測することと、
復号化が終了した領域内の複数の動き情報の中から、前記予測動き情報の選択方法を示す第1情報に従って代表動き情報を取得する、
ことを具備し、
前記第1情報は、
前記動き情報を選択するための、前記復号化対象ブロック内の位置を特定する第2情報を含む、動画像復号化方法。
In the moving image decoding method of dividing the input image signal into pixel blocks and performing inter prediction on these divided pixel blocks,
From the motion information in the decoded area, based on the information obtained according to the information indicating the method of selecting the motion vector predictor, select the motion vector predictor,
Predicting motion information of a block to be decoded using the predicted motion information,
Representative motion information is obtained from a plurality of pieces of motion information in the region where decoding has been completed, according to first information indicating a method of selecting the predicted motion information.
Equipped with
The first information is
A moving picture decoding method, comprising: second information for specifying a position within the decoding target block for selecting the motion information.
JP2020016204A 2020-02-03 2020-02-03 Moving image coding method and moving image decoding method Active JP6871447B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020016204A JP6871447B2 (en) 2020-02-03 2020-02-03 Moving image coding method and moving image decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020016204A JP6871447B2 (en) 2020-02-03 2020-02-03 Moving image coding method and moving image decoding method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2019215251A Division JP6871343B2 (en) 2019-11-28 2019-11-28 Moving image coding method and moving image decoding method

Publications (3)

Publication Number Publication Date
JP2020074624A true JP2020074624A (en) 2020-05-14
JP2020074624A5 JP2020074624A5 (en) 2020-12-03
JP6871447B2 JP6871447B2 (en) 2021-05-12

Family

ID=70610323

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020016204A Active JP6871447B2 (en) 2020-02-03 2020-02-03 Moving image coding method and moving image decoding method

Country Status (1)

Country Link
JP (1) JP6871447B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024043628A1 (en) * 2022-08-23 2024-02-29 삼성전자 주식회사 Image decoding method and device, and image encoding method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011019247A2 (en) * 2009-08-13 2011-02-17 Samsung Electronics Co., Ltd. Method and apparatus for encoding/decoding motion vector
WO2012119776A1 (en) * 2011-03-09 2012-09-13 Canon Kabushiki Kaisha Video encoding and decoding
JP2012186760A (en) * 2011-03-08 2012-09-27 Jvc Kenwood Corp Video decoding device, video decoding method, and video decoding program
JP2013009302A (en) * 2011-03-08 2013-01-10 Jvc Kenwood Corp Video encoding device, video encoding method, and video encoding program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011019247A2 (en) * 2009-08-13 2011-02-17 Samsung Electronics Co., Ltd. Method and apparatus for encoding/decoding motion vector
JP2012186760A (en) * 2011-03-08 2012-09-27 Jvc Kenwood Corp Video decoding device, video decoding method, and video decoding program
JP2013009302A (en) * 2011-03-08 2013-01-10 Jvc Kenwood Corp Video encoding device, video encoding method, and video encoding program
WO2012119776A1 (en) * 2011-03-09 2012-09-13 Canon Kabushiki Kaisha Video encoding and decoding

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
AKIRA FUJIBAYASHI AND FRANK BOSSEN: "CE9 3.2d Simplified Motion vector prediction", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11, vol. JCTVC-D231, JPN6018022327, January 2011 (2011-01-01), pages 1 - 5, ISSN: 0004428494 *
EDOUARD FRANCOIS ET AL.: "On memory compression for motion vector prediction", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11, vol. JCTVC-E221_r1, JPN6018009370, March 2011 (2011-03-01), pages 1 - 11, ISSN: 0004428496 *
J. JUNG AND G. CLARE: "Temporal MV predictor modification for MV-Comp, Skip, Direct and Merge schemes", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11, vol. JCTVC-D164, JPN6018009364, January 2011 (2011-01-01), pages 1 - 5, ISSN: 0004428493 *
TAICHIRO SHIODERA ET AL.: "Modified motion vector memory compression", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11, vol. JCTVC-E211_r1, JPN6018009369, March 2011 (2011-03-01), pages 1 - 7, ISSN: 0004428495 *
TAKESHI CHUJOH, AKIYUKI TANIZAWA AND TOMOO YAMAKAGE: "Description of video coding technology proposal by TOSHIBA", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11, vol. JCTVC-A117r1, JPN6018022325, April 2010 (2010-04-01), pages 1 - 6, XP008169779, ISSN: 0004428491 *
YEPING SU AND ANDREW SEGALL: "CE9: Reduced resolution storage of motion vector data", JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11, vol. JCTVC-D072, JPN6018009367, January 2011 (2011-01-01), pages 1 - 3, ISSN: 0004428492 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024043628A1 (en) * 2022-08-23 2024-02-29 삼성전자 주식회사 Image decoding method and device, and image encoding method and device

Also Published As

Publication number Publication date
JP6871447B2 (en) 2021-05-12

Similar Documents

Publication Publication Date Title
US11303918B2 (en) Image encoding and decoding method with a merge flag and motion vectors
JP6503014B2 (en) Moving picture coding method and moving picture decoding method
JP6871447B2 (en) Moving image coding method and moving image decoding method
JP6510084B2 (en) Moving picture decoding method and electronic apparatus
JP6871442B2 (en) Moving image coding method and moving image decoding method
JP6871343B2 (en) Moving image coding method and moving image decoding method
JP2016106494A (en) Moving image encoding method and moving image decoding method
JP5893178B2 (en) Video encoding method and video decoding method
JP5680778B2 (en) Video encoding method and video decoding method
CN105933709B (en) Moving image encoding method, moving image encoding device, moving image decoding method, and moving image decoding device
RU2615677C1 (en) Images encoding method and images decoding method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200203

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20201023

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210126

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210225

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210415

R151 Written notification of patent or utility model registration

Ref document number: 6871447

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151