JP2021097368A - Image coding method and image decoding method - Google Patents

Image coding method and image decoding method Download PDF

Info

Publication number
JP2021097368A
JP2021097368A JP2019228713A JP2019228713A JP2021097368A JP 2021097368 A JP2021097368 A JP 2021097368A JP 2019228713 A JP2019228713 A JP 2019228713A JP 2019228713 A JP2019228713 A JP 2019228713A JP 2021097368 A JP2021097368 A JP 2021097368A
Authority
JP
Japan
Prior art keywords
prediction
image
intra
inter
coding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2019228713A
Other languages
Japanese (ja)
Inventor
清水 拓也
Takuya Shimizu
拓也 清水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maxell Ltd
Original Assignee
Maxell Holdings Ltd
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 Maxell Holdings Ltd filed Critical Maxell Holdings Ltd
Priority to JP2019228713A priority Critical patent/JP2021097368A/en
Priority to PCT/JP2020/046290 priority patent/WO2021125085A1/en
Priority to CN202080087366.0A priority patent/CN114830643A/en
Publication of JP2021097368A publication Critical patent/JP2021097368A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

To provide a more suitable image coding technology and an image decoding technology.SOLUTION: An image coding method of coding an image includes a prediction image generation step of generating a prediction image of synthesis prediction by performing a synthesis process for synthesizing a prediction image of the inter-prediction and a prediction image of the intra-prediction for a coded target block, and a coding step of encoding a difference between a pixel value of the prediction image generated in the prediction image generation step and a pixel value of the image of the coded target block, and a plurality of types of intra-prediction can be used for the intra-prediction used in the synthesis process, and the plurality of types of intra-prediction include a matrix-weighted intra-prediction. In the synthesis process, the prediction image of the inter prediction and the prediction image of the intra-prediction are weighted, and a weighting parameter of the weighting process is determined according to the type of the intra-prediction.SELECTED DRAWING: Figure 13

Description

本発明は画像を符号化する画像符号化技術または画像を復号する画像復号技術に関する。 The present invention relates to an image coding technique for encoding an image or an image decoding technique for decoding an image.

画像、音声情報をデジタルデータ化して記録、伝達する手法として、H.264/AVC(Advanced Video Coding)やH.265/HEVC(High Efficiency Video Coding)規格等がこれまでに策定されてきた。ISO/IEC MPEGとITU−T VCEGは、さらにこれらを超える圧縮率を実現するVVC(Versatile Video Coding)と呼ばれる次世代方式の検討を行っている(非特許文献1参照)。 As a method of converting image and audio information into digital data, recording and transmitting it, H. 264 / AVC (Advanced Video Coding) and H.A. 265 / HEVC (High Efficiency Video Coding) standards and the like have been formulated so far. ISO / IEC MPEG and ITU-T VCEG are studying a next-generation method called VVC (Versatile Video Coding) that realizes a compression ratio exceeding these (see Non-Patent Document 1).

Xiaozhong Xu and Shan Liu,“Recent advances in video coding beyond the HEVC standard”SIP (2019),vol.8Xiaozhong Xu and Shan Liu, “Recent advances in video coding beyond the HEVC standard” SIP (2019), vol.8

VVCの技術候補の1つとして、同一の符号化/復号対象ブロックについてのインター予測画像とイントラ予測画像とを合成した予測画像を用いることが検討されている。 As one of the technical candidates of VVC, it is considered to use a predicted image obtained by synthesizing an inter-predicted image and an intra-predicted image for the same coded / decoded target block.

しかしながら、インター予測画像とイントラ予測画像とを単に平均して合成した予測画像を用いるだけでは符号量の低減が十分ではなかった。 However, the reduction of the code amount was not sufficient by simply using the predicted image obtained by averaging the inter-predicted image and the intra-predicted image.

本発明は上記課題を鑑みてなされたものであり、本発明の目的は、より好適な画像符号化技術、画像復号技術を提供することにある。 The present invention has been made in view of the above problems, and an object of the present invention is to provide a more suitable image coding technique and image decoding technique.

上記目的を達成するために、本発明の一実施の態様は、例えば、符号化対象ブロックについてインター予測の予測画像とイントラ予測の予測画像とを合成する合成処理を行って合成予測の予測画像を生成する予測画像生成ステップと、前記予測画像生成ステップで生成した予測画像と前記符号化対象ブロックの画像の画素値との差分を符号化する符号化ステップとを備え、前記合成処理に用いる前記イントラ予測には複数の種類のイントラ予測を用いることができ、前記複数の種類のイントラ予測には、マトリクス重みづけイントラ予測が含まれるものであり、前記合成処理では、前記インター予測の予測画像と前記イントラ予測の予測画像とに重みづけ処理を行うものであり、前記重みづけ処理の重みづけパラメータを前記イントラ予測の種類に応じて決定するように構成すればよい。 In order to achieve the above object, in one embodiment of the present invention, for example, a composite process of synthesizing an inter-prediction prediction image and an intra-prediction prediction image is performed on a coded target block to obtain a composite prediction prediction image. The intra is provided with a predicted image generation step to be generated and a coding step for encoding the difference between the predicted image generated in the predicted image generation step and the pixel value of the image of the coded target block. A plurality of types of intra-prediction can be used for the prediction, and the plurality of types of intra-prediction includes a matrix-weighted intra-prediction. The weighting process is performed on the predicted image of the intra prediction, and the weighting parameter of the weighting process may be configured to be determined according to the type of the intra prediction.

本発明によれば、より好適な画像符号化技術、画像復号技術を提供することができる。 According to the present invention, it is possible to provide a more suitable image coding technique and image decoding technique.

本発明の実施例1に係る画像符号化装置の一例の説明図である。It is explanatory drawing of an example of the image coding apparatus which concerns on Example 1 of this invention. 本発明の実施例2に係る画像復号装置の一例の説明図である。It is explanatory drawing of an example of the image decoding apparatus which concerns on Example 2 of this invention. 本発明の実施例1に係る画像符号化方法の一例の説明図である。It is explanatory drawing of an example of the image coding method which concerns on Example 1 of this invention. 本発明の実施例2に係る画像復号方法の一例の説明図である。It is explanatory drawing of an example of the image decoding method which concerns on Example 2 of this invention. 本発明の実施例3に係るデータ記録媒体の一例の説明図である。It is explanatory drawing of an example of the data recording medium which concerns on Example 3 of this invention. 本発明の一実施例に係るイントラ予測の種類の一例の説明図である。It is explanatory drawing of an example of the type of intra prediction which concerns on one Example of this invention. 本発明の一実施例に係るプラナー予測の一例の説明図である。It is explanatory drawing of an example of Planar prediction which concerns on one Example of this invention. 本発明の一実施例に係る合成予測の処理の一例の説明図である。It is explanatory drawing of an example of the process of synthetic prediction which concerns on one Example of this invention. 本発明の一実施例に係る合成予測の処理の一例の説明図である。It is explanatory drawing of an example of the process of synthetic prediction which concerns on one Example of this invention. 本発明の一実施例に係る合成予測の処理の一例の説明図である。It is explanatory drawing of an example of the process of synthetic prediction which concerns on one Example of this invention. 本発明の一実施例に係る合成予測の処理の一例の説明図である。It is explanatory drawing of an example of the process of synthetic prediction which concerns on one Example of this invention. 本発明の一実施例に係るマトリクス重みづけイントラ予測の一例の説明図である。It is explanatory drawing of an example of matrix weighting intra prediction which concerns on one Example of this invention. 本発明の一実施例に係る合成予測の処理の一例の説明図である。It is explanatory drawing of an example of the process of synthetic prediction which concerns on one Example of this invention.

以下、本発明の実施例を、図面を参照して説明する。 Hereinafter, examples of the present invention will be described with reference to the drawings.

また、各図面において、同一の符号が付されている構成要素は同一の機能を有することとする。 Further, in each drawing, the components having the same reference numerals have the same functions.

本明細書の各記載および各図面における「0vec」または「0ベクトル」とは、各成分の値が0のベクトル、またはそのようなベクトルに変換、設定することを示す。 The "0 vc" or "0 vector" in each description and each drawing of the present specification means a vector in which the value of each component is 0, or conversion and setting to such a vector.

また、本明細書の各記載および各図面における「参照不可」とはブロック位置が画面の範囲外にある等のためにブロックの情報が取得できないことを示す。「参照可能」とはブロックの情報が取得できることであり、ブロックの情報には画素値、ベクトル、参照フレーム番号、および/または予測モード等の情報が含まれる。 In addition, "not referenceable" in each description and each drawing of the present specification means that the block information cannot be acquired because the block position is outside the range of the screen. “Referenceable” means that block information can be acquired, and the block information includes information such as a pixel value, a vector, a reference frame number, and / or a prediction mode.

また、本明細書の各記載および各図面における「残差成分」という表現は、「予測誤差」と同様の意味も含む。 In addition, the expression "residual component" in each description and each drawing of the present specification also includes the same meaning as "prediction error".

また、本明細書の各記載および各図面における「領域」という表現は、「画像」と同様の意味も含む。 In addition, the expression "area" in each description and each drawing of the present specification also includes the same meaning as "image".

また、本明細書の各記載および各図面における「フラグとともに伝送」という表現は、「フラグに含めて伝送」という意味も含む。 In addition, the expression "transmission with flag" in each description and each drawing of the present specification also includes the meaning of "transmission included in the flag".

(実施例1)
まず、本発明の実施例1について図面を参照して説明する。
(Example 1)
First, Example 1 of the present invention will be described with reference to the drawings.

図1に本発明の実施例1に係る画像符号化装置のブロック図の一例を示す。 FIG. 1 shows an example of a block diagram of the image coding apparatus according to the first embodiment of the present invention.

画像符号化装置は、例えば画像入力部101、ブロック分割部102、モード管理部103、イントラ予測部104、インター予測部105、合成予測部120、ブロック処理部106、変換・量子化部107、逆量子化・逆変換部108、画像合成・フィルタ部109、復号画像管理部110、エントロピー符号化部111、データ出力部112を備える。 The image coding device includes, for example, an image input unit 101, a block division unit 102, a mode management unit 103, an intra prediction unit 104, an inter prediction unit 105, a synthesis prediction unit 120, a block processing unit 106, a conversion / quantization unit 107, and a reverse. It includes a quantization / inverse conversion unit 108, an image composition / filter unit 109, a decoded image management unit 110, an entropy coding unit 111, and a data output unit 112.

以下に画像符号化装置の各構成要素の動作を詳細に説明する。 The operation of each component of the image coding apparatus will be described in detail below.

なお、画像符号化装置の各構成要素の動作は、例えば、以下の記載の通り各構成要素の自律的な動作としてもよい。また、例えば制御部や記憶部が記憶するソフトウェアと協働することにより実現しても構わない。 The operation of each component of the image coding device may be, for example, an autonomous operation of each component as described below. Further, for example, it may be realized by cooperating with software stored in the control unit or the storage unit.

まず、画像入力部101は符号化対象である原画像を取得し入力する。次に、ブロック分割部102は、入力した原画像を、CTU(Coding Tree Unit)と呼ばれる一定サイズのブロックに分割し、さらに、入力される画像を分析することによって、各CTUをその特徴に応じてさらに詳細なブロックに分割する。これら符号化の単位となるブロックはCU(Coding Unit)と呼ばれる。CTUのCUへの分割は、四分木(Quadtree)、三分木(Ternary tree)、二分木(Binary tree)等のツリー構造によって管理される。CUの内部をさらに予測のためのサブブロックや、周波数変換、量子化等のためのTU(Transform Unit)に分割してもよい。 First, the image input unit 101 acquires and inputs the original image to be encoded. Next, the block division unit 102 divides the input original image into blocks of a certain size called a CTU (Coding Tree Unit), and further analyzes the input image to make each CTU according to its characteristics. And divide it into more detailed blocks. The block that is the unit of these coding is called a CU (Coding Unit). The division of the CTU into CUs is managed by a tree structure such as a quadtree, a ternary tree, or a binary tree. The inside of the CU may be further divided into subblocks for prediction and TUs (Transform Units) for frequency conversion, quantization, and the like.

モード管理部103は、各CUの符号化の方法を決めるモードを管理する。複数のイントラ予測方式、インター予測方式、合成予測方式を用いて符号化処理を行い、そのCUを符号化するのに最も効率的なモードを決定する。最も効率的なモードとは、一定の符号量に対して最も符号化誤差を小さくすることができるモードである。最適なモードは複数存在する場合があり、状況に応じて適宜選択すればよい。どのモードが効率的かの判定は、イントラ予測部104、インター予測部105、または合成予測部120による複数モードの予測処理、さらに他の処理部を利用した残差成分および各種フラグの符号量計測、また復号時の再生画像誤差予測を組み合わせて行われる。一般にモードはCU単位で決定されるが、CUをサブブロックに分割し、それぞれにモードを決定してもよい。 The mode management unit 103 manages a mode that determines a coding method for each CU. The coding process is performed using a plurality of intra-prediction methods, inter-prediction methods, and synthetic prediction methods, and the most efficient mode for coding the CU is determined. The most efficient mode is a mode in which the coding error can be minimized for a certain amount of code. There may be a plurality of optimum modes, which may be selected as appropriate according to the situation. To determine which mode is efficient, the intra-prediction unit 104, the inter-prediction unit 105, or the composite prediction unit 120 determines the prediction processing of a plurality of modes, and the residual component and the code amount measurement of various flags using other processing units. , Also, it is performed in combination with the reproduction image error prediction at the time of decoding. Generally, the mode is determined in units of CU, but the CU may be divided into sub-blocks and the mode may be determined for each.

符号化対象ブロック(CUまたはサブブロック)の予測方法については、イントラ(フレーム内)予測、インター(フレーム間)予測、およびイントラ予測とインター予測を組み合わせた合成予測があり、これらはそれぞれイントラ予測部104、インター予測部105、合成予測部120によって行われる。イントラ予測は符号化対象ブロックよりも前に符号化された同じフレームの情報を用い、インター予測は符号化対象フレームよりも前に符号化された、再生時間としては前または後ろのフレームの情報を用いる。ここで、イントラ予測部104、インター予測部105および合成予測部120は、説明のため1つだけ記載したが、符号化モードごと、フレームごとにそれぞれ備えてもよい。 For the prediction method of the coded block (CU or subblock), there are intra (intra-frame) prediction, inter (inter-frame) prediction, and synthetic prediction that combines intra prediction and inter prediction, and these are the intra prediction units. It is performed by 104, an inter-prediction unit 105, and a synthetic prediction unit 120. The intra prediction uses the information of the same frame encoded before the coded block, and the inter prediction uses the information of the frame before or after the coded frame before the coded frame. Use. Here, although only one intra prediction unit 104, an inter prediction unit 105, and a composite prediction unit 120 are described for the sake of explanation, they may be provided for each coding mode and each frame.

イントラ予測部104は画面内予測処理を行う。なお、「予測処理」においては、予測画像の生成を行う。画面内予測処理は、符号化対象ブロックよりも前に符号化された同じフレームの情報を用いて符号化対象ブロックの画素を予測する。イントラ予測には、DC予測、アングラー予測、プラナー予測、マトリクス予測、クロスコンポーネント予測、複数ライン予測、画面内ブロックコピー等を含む。イントラ予測モードの伝送は、符号化済みブロックのイントラ予測モードから最も可能性の高いモードの推定等を行う。 The intra prediction unit 104 performs in-screen prediction processing. In the "prediction processing", a prediction image is generated. The in-screen prediction process predicts the pixels of the coded block using the information of the same frame encoded before the coded block. Intra prediction includes DC prediction, angler prediction, planner prediction, matrix prediction, cross-component prediction, multi-line prediction, in-screen block copy, and the like. In the transmission of the intra prediction mode, the most probable mode is estimated from the intra prediction mode of the encoded block.

インター予測部105は画面間予測処理を行う。なお、「予測処理」においては、予測画像の生成を行う。画面間予測処理は、符号化対象フレームよりも前に符号化された、再生時間としては前または後ろのフレームの情報を用いて符号化対象ブロックの画素を予測する。インター予測には、動き補償予測、マージモード予測、アフィン変換による予測、三角形ブロック分割による予測、オプティカルフロー予測、デコーダ側動き予測による予測等を含む。 The inter-screen prediction unit 105 performs inter-screen prediction processing. In the "prediction processing", a prediction image is generated. The inter-screen prediction process predicts the pixels of the coded block by using the information of the frame before or after the coded frame, which is coded before the coded frame. Inter-prediction includes motion compensation prediction, merge mode prediction, affine transformation prediction, triangle block division prediction, optical flow prediction, decoder-side movement prediction, and the like.

合成予測部120は、イントラ予測による予測画像とインター予測による予測画像とを合成した合成予測画像を生成する合成予測を行う。合成予測部120で用いるイントラ予測による予測画像は上記イントラ予測部104が行いうる各種画面内予測処理の予測画像を用いればよい。合成予測部120で用いるインター予測による予測画像は上記インター予測部105が行いうる各種画面内予測処理の予測画像を用いればよい。合成方法の詳細は後述する。 The composite prediction unit 120 performs composite prediction to generate a composite prediction image in which a prediction image by intra-prediction and a prediction image by inter-prediction are combined. As the prediction image by intra-prediction used in the composite prediction unit 120, the prediction image of various in-screen prediction processing that can be performed by the intra-prediction unit 104 may be used. As the prediction image by inter-prediction used in the composite prediction unit 120, the prediction image of various in-screen prediction processing that can be performed by the inter-prediction unit 105 may be used. Details of the synthesis method will be described later.

ブロック処理部106は、各符号化対象ブロックに対して、イントラ予測部104によるイントラ予測により生成された予測画像、インター予測部105によるインター予測により生成された予測画像、または合成予測部120による合成予測により生成された予測画像と、ブロック分割部102から得られる符号化対象ブロックの原画像との差分を取って残差成分を計算し出力する。 For each coded block, the block processing unit 106 synthesizes a prediction image generated by the intra prediction by the intra prediction unit 104, a prediction image generated by the inter prediction by the inter prediction unit 105, or a composition by the synthesis prediction unit 120. The residual component is calculated and output by taking the difference between the predicted image generated by the prediction and the original image of the coded block obtained from the block dividing unit 102.

変換・量子化部107は、ブロック処理部106から入力された残差成分に対して周波数変換と量子化処理を行い、係数列を出力する。周波数変換はDCT(Discrete Cosine Transform)やDST(Discrete Sine Transform)や、これらを整数演算によって処理可能なように変換したもの等を用いればよい。係数列は、予測に用いる復号画像を作成するために画像を復元するプロセスと、データを出力するためのプロセスの両方に送られる。変換や量子化はモードの指定によりスキップされてもよい。 The conversion / quantization unit 107 performs frequency conversion and quantization processing on the residual component input from the block processing unit 106, and outputs a coefficient sequence. For frequency conversion, DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), or those converted so that they can be processed by integer arithmetic may be used. The coefficient sequence is sent to both the process of restoring the image to create the decoded image used for prediction and the process of outputting the data. Conversion and quantization may be skipped by specifying the mode.

逆量子化・逆変換部108は、変換・量子化部107から取得された係数列を予測に用いる復号画像を作成するために逆量子化と逆変換を行い、復元された残差成分を出力する。逆量子化、逆変換は、それぞれ変換・量子化部の量子化、変換に対応する逆方向の処理を行えばよい。逆量子化や逆変換はモードの指定によりスキップされてもよい。 The inverse quantization / inverse transformation unit 108 performs inverse quantization and inverse transformation in order to create a decoded image using the coefficient sequence obtained from the transformation / quantization unit 107 for prediction, and outputs the restored residual component. To do. Inverse quantization and inverse transformation may be performed in the opposite directions corresponding to the quantization and transformation of the transformation / quantization unit, respectively. Inverse quantization and inverse transformation may be skipped by specifying the mode.

画像合成・フィルタ部109は、イントラ予測部104により生成された予測画像、インター予測部105により生成された予測画像、または合成予測部120により生成された予測画像と、逆量子化・逆変換部108により復元された残差成分を合成し、さらにループフィルタ等の処理を行って復号画像を生成する。 The image composition / filter unit 109 includes a prediction image generated by the intra prediction unit 104, a prediction image generated by the inter prediction unit 105, or a prediction image generated by the composition prediction unit 120, and an inverse quantization / inverse conversion unit. The residual component restored by 108 is synthesized, and further processing such as a loop filter is performed to generate a decoded image.

復号画像管理部110は、復号画像を保持し、イントラ予測、インター予測または合成予測のために参照される画像、モードの情報等を管理する。 The decoded image management unit 110 holds the decoded image and manages the image referred for the intra prediction, the inter prediction, the composite prediction, the mode information, and the like.

エントロピー符号化部111は、モードの情報や係数列の情報をエントロピー符号化処理してビット列として出力する。エントロピー符号化方式としては、CABAC(Context Adaptive Binary Arithmetic Code)等の方式を用いればよい。可変長符号、固定長符号を組み合わせて用いてもよい。コンテキストの判定には定められたテーブルを参照すればよい。 The entropy coding unit 111 performs entropy coding processing on the mode information and the coefficient string information and outputs the bit string. As the entropy coding method, a method such as CABAC (Context Adaptive Binary Arithmetic Code) may be used. A variable length code and a fixed length code may be used in combination. The specified table may be referred to for determining the context.

データ出力部112は符号化されたデータを記録媒体や伝送路に対して出力する。 The data output unit 112 outputs the encoded data to the recording medium or the transmission line.

次に、図3を用いて、本発明の実施例1に係る画像符号化装置における符号化方法の流れについて説明する。 Next, the flow of the coding method in the image coding apparatus according to the first embodiment of the present invention will be described with reference to FIG.

まず、ステップ301で符号化対象となる原画像を入力し、画像の内容を解析して分割方法を決定し、ブロックに分割する。画像内容の解析は、画像全体で行ってもよいし、複数フレームを組み合わせて行ってもよいし、画像を分割したスライスやタイル、ブリック、CTU等各ブロック単位で行ってもよい。ブロックの分割は、一般に一定サイズのCTUに分割した後、ツリー構造によってCUに分割される。 First, in step 301, the original image to be encoded is input, the content of the image is analyzed, the division method is determined, and the image is divided into blocks. The analysis of the image content may be performed on the entire image, may be performed by combining a plurality of frames, or may be performed in units of blocks such as slices, tiles, bricks, and CTUs in which the image is divided. The block is generally divided into CTUs of a certain size and then divided into CUs by a tree structure.

次に、ステップ302では、ステップ301で取得した原画像の符号化対象ブロックについてイントラ予測を行う。イントラ予測モードについては前述の通りである。各イントラ予測モードに従って複数のモードについて予測を行う。 Next, in step 302, intra-prediction is performed for the coded target block of the original image acquired in step 301. The intra prediction mode is as described above. Prediction is performed for a plurality of modes according to each intra prediction mode.

次に、ステップ303では、ステップ301で取得した原画像の符号化対象ブロックについてインター予測を行う。インター予測モードについては前述の通りである。各インター予測モードに従って複数のモードについて予測を行う。 Next, in step 303, inter-prediction is performed for the coded target block of the original image acquired in step 301. The inter-prediction mode is as described above. Prediction is performed for a plurality of modes according to each inter-prediction mode.

次に、ステップ320では、ステップ301で取得した原画像の符号化対象ブロックについて合成予測を行う。合成予測モードの詳細については後述する。 Next, in step 320, synthesis prediction is performed for the coded target block of the original image acquired in step 301. The details of the composite prediction mode will be described later.

次に、ステップ304では、各モードに対して、イントラ予測、インター予測、合成予測された符号化対象ブロックの画素について残差成分を分離し、残差成分の変換処理と量子化処理、エントロピー符号化処理とを行い、符号化データを算出する。 Next, in step 304, for each mode, the residual components are separated from the pixels of the coded target block predicted by intra-prediction, inter-prediction, and synthetic prediction, and the residual component conversion processing, quantization processing, and entropy code are performed. The coding process is performed to calculate the coded data.

次に、ステップ305では、各モードに対して、逆量子化、逆変換処理を行い、残差成分を予測画像と合成することにより、復号画像の作成を行う。復号画像は、イントラ予測やインター予測における予測データおよび各種符号化データとともに管理され、他の符号化対象ブロックの予測に利用される。 Next, in step 305, a decoded image is created by performing inverse quantization and inverse transformation processing for each mode and synthesizing the residual component with the predicted image. The decoded image is managed together with the prediction data and various coding data in the intra prediction and the inter prediction, and is used for the prediction of other coding target blocks.

次に、ステップ306では、各モードを比較して、最も効率的に符号化できるモードを決定する。モードには、イントラ予測モード、インター予測モード、合成予測モード等があり、これらを総称して符号化モードと呼ぶ。モード選択方法については前述の通りである。 Next, in step 306, each mode is compared to determine the mode that can be most efficiently encoded. The modes include an intra prediction mode, an inter prediction mode, a composite prediction mode, and the like, and these are collectively called a coding mode. The mode selection method is as described above.

ステップ307では、決定された符号化モードに従い、符号化対象ブロックの符号化データを出力する。上記の各符号化対象ブロックの符号化プロセスを画像全体に対して繰り返し行い、画像の符号化が行われる。 In step 307, the coded data of the coded block is output according to the determined coding mode. The coding process of each of the above coding target blocks is repeated for the entire image to encode the image.

次に、本実施例に係る合成予測モードについて説明する。なお、当該合成予測モードによる予測画像生成処理は、符号化側、復号側で同じ処理を行う。従って、本実施例に係る合成予測モードに関する以下の説明は、特に断りがない限り符号化側と復号側で同じ処理を行うものである。 Next, the synthetic prediction mode according to this embodiment will be described. The prediction image generation process in the composite prediction mode is the same on the coding side and the decoding side. Therefore, in the following description regarding the synthesis prediction mode according to this embodiment, the same processing is performed on the coding side and the decoding side unless otherwise specified.

本実施例に係る合成予測モードは、イントラ予測によるイントラ予測画像とインター予測によるインター予測画像とを重みづけ平均することにより、合成予測による予測画像を生成する。具体的には、インター予測画素Pinter, イントラ予測画素Pintraとして、予測画像の各予測画素Pcom(以下、合成予測画素と称する)を以下の式1により算出する。 The composite prediction mode according to the present embodiment generates a prediction image by synthesis prediction by weighting and averaging the intra prediction image by intra prediction and the inter prediction image by inter prediction. Specifically, as the inter prediction pixel Pinter and the intra prediction pixel Pintra, each prediction pixel Pcom (hereinafter referred to as a composite prediction pixel) of the prediction image is calculated by the following formula 1.

Pcom = (w * Pintra + (4 - w) * Pinter) / 4 …式1
すなわち、式1の処理は、重みづけパラメータであるwを用いた、インター予測画素とイントラ予測画素の重みづけ平均処理である。なお、当該処理は重みづけ加算と表現してもよい。
Pcom = (w * Pintra + (4-w) * Pinter) / 4… Equation 1
That is, the process of Equation 1 is a weighted averaging process of the inter-predicted pixel and the intra-predicted pixel using the weighting parameter w. The process may be expressed as weighted addition.

本実施例に係る合成予測モードで用いるインター予測画像は、上述のインター予測モードで用いうるすべてのインター予測による予測画像を候補としても構わない。また、上述のインター予測モードのうち、マージモードによる予測画像のみを対象としても構わない。 As the inter-prediction image used in the composite prediction mode according to the present embodiment, all the inter-prediction prediction images that can be used in the above-mentioned inter-prediction mode may be used as candidates. Further, among the above-mentioned inter-prediction modes, only the predicted image by the merge mode may be targeted.

本実施例に係る合成予測モードで用いるイントラ予測画像は、上述のイントラ予測モードで用いうるすべてのイントラ予測による予測画像を候補としても構わない。また、上述のイントラ予測モードのうち、アングラー予測、DC予測、プラナー予測による予測画像のみを対象としても構わない。 As the intra-prediction image used in the synthetic prediction mode according to the present embodiment, all the prediction images by intra-prediction that can be used in the above-mentioned intra-prediction mode may be used as candidates. Further, among the above-mentioned intra prediction modes, only the predicted images by angler prediction, DC prediction, and planner prediction may be targeted.

ここで、本実施例に係る合成予測モードでは、合成予測画素の算出に用いる重みづけパラメータwを、合成予測モードで用いるイントラ予測画像を生成するイントラ予測の種類に応じて決定する。すなわち、異なるイントラ予測のそれぞれの特徴に応じて、イントラ予測画像とインター予測画像との重みづけ平均における、イントラ予測画像の重みを変更することにより、より好適な予測画像の生成を図る。 Here, in the composite prediction mode according to the present embodiment, the weighting parameter w used for calculating the composite prediction pixel is determined according to the type of intra prediction for generating the intra prediction image used in the composite prediction mode. That is, a more suitable prediction image is generated by changing the weight of the intra prediction image in the weighted average of the intra prediction image and the inter prediction image according to each feature of the different intra prediction.

以下、本実施例に係る合成予測モードにおける重みづけパラメータwの決定処理の具体的な例を説明する。 Hereinafter, a specific example of the determination process of the weighting parameter w in the synthetic prediction mode according to this embodiment will be described.

まず、本実施例に係る合成予測モードで用いるイントラ予測画像の生成に用いる候補に含まれるイントラ予測である、アングラー予測、DC予測、プラナー予測について、図6および図7を用いて説明する。 First, angler prediction, DC prediction, and planner prediction, which are intra predictions included in the candidates used for generating the intra prediction image used in the synthetic prediction mode according to the present embodiment, will be described with reference to FIGS. 6 and 7.

図6に、アングラー予測の予測方向を示す。アングラー予測は予測対象画素のそれぞれについて、図示する各予測方向により指し示される隣接画素を参照して予測する予測方法である。当該予測は一方向予測であり、隣接画素値を各予測方向の反対方向にコピーする予測ということもできる。各予測方向は番号で識別可能であり、例えば、図示する予測方向2〜66のように設定する。本図では、代表的な予測方向である2(左下方向)、18(左水平方向(水平方向))、34(左上方向)、50(上方向(垂直方向))、66(右上方向)を示している。本図では、説明を簡単にするために他の予測方向の表記は省略するが、予測方向2から予測方向66まで、予測方向番号が増えるごとに時計回りの回転方向に予測方向が定義されている。アングラー予測では隣接画素値に基づく一方向予測である。 FIG. 6 shows the prediction direction of the angler prediction. Angler prediction is a prediction method in which each of the prediction target pixels is predicted by referring to the adjacent pixels pointed out by each prediction direction shown in the figure. The prediction is a one-way prediction, and can be said to be a prediction in which adjacent pixel values are copied in the opposite directions of each prediction direction. Each prediction direction can be identified by a number, and is set as, for example, the prediction directions 2 to 66 shown in the figure. In this figure, typical prediction directions 2 (lower left direction), 18 (left horizontal direction (horizontal direction)), 34 (upper left direction), 50 (upward direction (vertical direction)), 66 (upper right direction) are shown. Shown. In this figure, the notation of other prediction directions is omitted for the sake of simplicity, but the prediction direction is defined in the clockwise rotation direction from the prediction direction 2 to the prediction direction 66 as the prediction direction number increases. There is. Angler prediction is a one-way prediction based on adjacent pixel values.

よって、ストライプ柄など所定方向に絵柄が延伸する画像に対して、予測残差を小さくできる傾向がある。予測残差が小さくなるとはすなわち圧縮率が高くなることである。符号化側でアングラー予測を選択するときは、アングラー予測で予測残差が小さくなる画像を符号化するときであるが、これは所定方向に絵柄が延伸する画像である可能性が高い。すると、符号化側で符号化対象ブロックにアングラー予測を選択するときは、隣接するブロックにおいても、符号化対象ブロックと同じ予測方向または符号化対象ブロックの予測方向に近い予測方向を用いたアングラー予測を採用している可能性が高くなる。所定方向に絵柄が延伸する画像における、絵柄の延伸が継続する限り、符号化対象ブロックと同じ予測方向または符号化対象ブロックの予測方向に近い予測方向のアングラー予測で予測残差か小さくなる可能性が高いからである。これは、予測精度が高い可能性が高い、と表現することもできる。 Therefore, there is a tendency that the predicted residual can be reduced for an image in which the pattern is stretched in a predetermined direction such as a striped pattern. A smaller predicted residual means a higher compression ratio. When angler prediction is selected on the coding side, it is when encoding an image in which the prediction residual is small in angler prediction, but this is likely to be an image in which the pattern extends in a predetermined direction. Then, when the coding side selects the angler prediction for the coding target block, the angler prediction using the same prediction direction as the coding target block or the prediction direction close to the prediction direction of the coding target block even in the adjacent block. Is more likely to be adopted. In an image in which the pattern is stretched in a predetermined direction, as long as the pattern is stretched continuously, the prediction residual may be smaller in the angler prediction in the same prediction direction as the coded block or in the prediction direction close to the predicted direction of the coded block. Is high. This can also be expressed as having a high probability of high prediction accuracy.

この場合、隣接する複数のブロックで、同じ予測方向のアングラー予測または当該方向に近い予測方向のアングラー予測が繰り返し選択される可能性が高い。すなわち、アングラー予測は隣接ブロックとの予測方法の近似性が比較的高いイントラ予測であるといえる。なお、「符号化対象ブロックの予測方向に近い予測方向」とは、具体的には、予測方向の番号が符号化対象ブロックの予測方向の番号の±1の予測方向と定義してもよい。または、具体的には、予測方向の番号が符号化対象ブロックの予測方向の番号の±2の予測方向と定義してもよい。 In this case, it is highly possible that the angler prediction in the same prediction direction or the angler prediction in the prediction direction close to the prediction direction is repeatedly selected in a plurality of adjacent blocks. That is, it can be said that the angler prediction is an intra prediction with a relatively high approximation of the prediction method with the adjacent block. The "prediction direction close to the prediction direction of the coded block" may be specifically defined as a prediction direction in which the number of the prediction direction is ± 1 of the number of the prediction direction of the coded block. Alternatively, specifically, the number in the prediction direction may be defined as ± 2 of the number in the prediction direction of the coded block.

また、図6には、さらにDC予測の番号が1と示されている。DC予測とは、周波数領域のDC成分のみに相当する予測画像を生成する予測方法である。すなわち、DC予測の予測画像内の画素値がすべて一定値である。DC予測は隣接画素値に基づかない予測方法である。しかしながら、DC予測で予測残差を小さくできる傾向がある画像は一定輝度が広く続く平面的な絵柄などである。すると、符号化側で符号化対象ブロックにDC予測を選択するときは、隣接するブロックにおいても、符号化対象ブロックと同じDC予測を採用している可能性が高くなる。一定輝度の平面的な絵柄が周囲方向に繋がっている限り、同じDC予測で予測残差か小さくなる可能性が高いからである。 Further, in FIG. 6, the DC prediction number is further shown as 1. The DC prediction is a prediction method that generates a prediction image corresponding only to the DC component in the frequency domain. That is, all the pixel values in the predicted image of DC prediction are constant values. DC prediction is a prediction method that is not based on adjacent pixel values. However, an image in which the prediction residual tends to be reduced by DC prediction is a flat pattern in which constant brightness continues widely. Then, when DC prediction is selected for the coding target block on the coding side, there is a high possibility that the same DC prediction as the coding target block is adopted even in the adjacent block. This is because as long as a flat pattern having a constant brightness is connected in the peripheral direction, there is a high possibility that the predicted residual will be smaller with the same DC prediction.

これは、予測精度が高い可能性が高い、と表現することもできる。この場合、隣接する複数のブロックで、同じDC予測が繰り返し選択される可能性が高い。すなわち、DC予測は隣接画素値に基づかない予測方法であるにも関わらず、隣接ブロックとの予測方法の近似性が比較的高いイントラ予測であるといえる。 This can also be expressed as having a high probability of high prediction accuracy. In this case, it is highly likely that the same DC prediction is repeatedly selected in a plurality of adjacent blocks. That is, although the DC prediction is a prediction method that is not based on the adjacent pixel value, it can be said that the DC prediction is an intra-prediction with a relatively high approximation of the prediction method with the adjacent block.

また、図6には、さらにプラナー予測の番号が0と示されている。プラナー予測の具体的な予測方法を図7に示す。プラナー予測では、符号化対象ブロックの右上隣接画素を用いて(処理710)、符号化対象ブロックの右側境界に参照画素を生成する(処理711)。次に、当該右側参照画素と、当該右側参照画素に対向する左側隣接画素とを用いた線形補間により各予測画素を生成して第1の予測画像(図7(A))を生成する(処理712)。 Further, in FIG. 6, the number of the planner prediction is further shown as 0. A specific prediction method for planner prediction is shown in FIG. In the planner prediction, the reference pixel is generated at the right boundary of the coded block by using the upper right adjacent pixel of the coded block (process 710) (process 711). Next, each predicted pixel is generated by linear interpolation using the right-side reference pixel and the left-side adjacent pixel facing the right-side reference pixel to generate a first predicted image (FIG. 7 (A)) (process). 712).

また、符号化対象ブロックの左下隣接画素を用いて(処理720)、符号化対象ブロックの下側境界に参照画素を生成する(処理721)。次に、当該下側参照画素と、当該下側参照画素に対向する上側隣接画素とを用いた線形補間により各予測画素を生成して第2の予測画像(図7(B))を生成する(処理722)。そして、このように生成した第1の予測画像(図7(A))と第2の予測画像(図7(B))を平均して最終予測画像を生成する。プラナー予測は、このように、線形補間で生成した第1の予測画像(図7(A))と第2の予測画像(図7(B))を平均することで非線形曲面の予測画像を生成する点で特徴のあるイントラ予測である。 Further, the reference pixel is generated at the lower boundary of the coded block by using the lower left adjacent pixel of the coded block (process 720) (process 721). Next, each predicted pixel is generated by linear interpolation using the lower reference pixel and the upper adjacent pixel facing the lower reference pixel to generate a second predicted image (FIG. 7B). (Processing 722). Then, the first predicted image (FIG. 7 (A)) and the second predicted image (FIG. 7 (B)) generated in this way are averaged to generate the final predicted image. In the planer prediction, a prediction image of a nonlinear curved surface is generated by averaging the first prediction image (FIG. 7 (A)) and the second prediction image (FIG. 7 (B)) generated by linear interpolation in this way. It is an intra-prediction that is characteristic in that it does.

プラナー予測は、隣接画素値に基づく予測である。しかしながら、プラナー予測で生成される予測画像が特徴的な非線形曲面になるため、隣接ブロックとの予測方法の近似性は決して高くない。上述のように、アングラー予測やDC予測で予測残差が小さくなる場合は、隣接ブロックと同じ予測方法が繰り返される可能性が高い。これに対して、プラナー予測の予測画像の特徴的な非線形曲面が繰り返される必要のある絵柄の画像は、多くない。 Planar prediction is a prediction based on adjacent pixel values. However, since the predicted image generated by the planner prediction has a characteristic non-linear curved surface, the approximation of the prediction method with the adjacent block is not high at all. As described above, when the prediction residual becomes small in the angler prediction or the DC prediction, there is a high possibility that the same prediction method as that of the adjacent block is repeated. On the other hand, there are not many images of a pattern in which the characteristic nonlinear curved surface of the predicted image of the planner prediction needs to be repeated.

よって、プラナー予測は、隣接ブロックとの予測方法の近似性が比較的低いイントラ予測であるといえる。また、符号化側で符号化対象ブロックにプラナー予測を選択するときは、アングラー予測やDC予測では予測残差が十分に小さくならなかった画像である可能性が高い。アングラー予測やDC予測では予測残差が十分に小さくならない画像は、単純な絵柄ではない可能性が高いため、アングラー予測やDC予測で予測残差か小さくならなかった画像に対するプラナー予測による予測残差は、アングラー予測やDC予測で予測残差が小さくなるときの予測残差に比べて大きい可能性が高い。これは、予測精度が低い可能性が高い、と表現することもできる。 Therefore, it can be said that the planner prediction is an intra prediction with a relatively low approximation of the prediction method with the adjacent block. Further, when the planner prediction is selected for the coded target block on the coding side, there is a high possibility that the prediction residual is not sufficiently small in the angler prediction and the DC prediction. An image whose prediction residual is not sufficiently small by angler prediction or DC prediction is likely not a simple pattern, so the prediction residual by planner prediction for an image whose prediction residual is not small by angler prediction or DC prediction. Is more likely to be larger than the predicted residual when the predicted residual becomes smaller in the angler prediction or the DC prediction. This can also be expressed as a high possibility that the prediction accuracy is low.

図6および図7を用いて説明したように、本実施例に係る合成予測モードで用いることができる、アングラー予測、DC予測、プラナー予測はそれぞれ異なる特徴を有するイントラ予測である。そこで、本実施例に係る合成予測モードでは、このようなイントラ予測の種類ごとの特徴に注目して、イントラ予測の種類に応じて式1の重みづけパラメータwの値を決定する制御を行う。図8を用いて、本実施例に係る合成予測モードにおけるw決定処理を説明する。 As described with reference to FIGS. 6 and 7, the angler prediction, DC prediction, and planner prediction that can be used in the synthetic prediction mode according to the present embodiment are intra predictions having different characteristics. Therefore, in the synthetic prediction mode according to the present embodiment, attention is paid to the characteristics of each type of intra-prediction, and control is performed to determine the value of the weighting parameter w of Equation 1 according to the type of intra-prediction. The w determination process in the synthetic prediction mode according to this embodiment will be described with reference to FIG.

図8は、本実施例に係る合成予測モードにおけるw決定例を示したものである。図8には、w決定例1、w決定例2、w決定例3の3つの例を示している。それぞれ異なる決定方法の例である。それぞれの決定方法において、条件ごとに、wの値を1、2、3のいずれかから決定する。式1では、wの値が多い大きいほど、合成予測モードにおけるイントラ予測の重みづけが大きくなる。逆に、式1では、wの値が多い小さいほど、合成予測モードにおけるイントラ予測の重みづけが小さくなる。以下これらの決定例について説明する。 FIG. 8 shows an example of w determination in the synthetic prediction mode according to this embodiment. FIG. 8 shows three examples of w determination example 1, w determination example 2, and w determination example 3. These are examples of different determination methods. In each determination method, the value of w is determined from one of 1, 2, and 3 for each condition. In Equation 1, the larger the value of w, the greater the weighting of the intra prediction in the synthetic prediction mode. On the contrary, in Equation 1, the larger and smaller the value of w, the smaller the weight of the intra prediction in the synthetic prediction mode. Examples of these determinations will be described below.

w決定例1は、合成予測モードで用いるイントラ予測がプラナー予測の場合w=1と決定する。合成予測モードで用いるイントラ予測がアングラー予測で予測方向が水平方向(18)または垂直方向(50)の場合はw=3と決定する。合成予測モードで用いるイントラ予測がアングラー予測で予測方向が2〜17または51〜66の場合はw=3と決定する。合成予測モードで用いるイントラ予測がアングラー予測で予測方向が19〜49の場合はw=3と決定する。合成予測モードで用いるイントラ予測がDC予測の場合はw=3と決定する。 In the w determination example 1, when the intra prediction used in the synthetic prediction mode is the planner prediction, w = 1 is determined. When the intra prediction used in the composite prediction mode is an angler prediction and the prediction direction is the horizontal direction (18) or the vertical direction (50), w = 3 is determined. When the intra prediction used in the synthetic prediction mode is an angler prediction and the prediction direction is 2 to 17 or 51 to 66, w = 3 is determined. When the intra prediction used in the synthetic prediction mode is an angler prediction and the prediction direction is 19 to 49, w = 3 is determined. When the intra prediction used in the synthetic prediction mode is DC prediction, it is determined that w = 3.

すなわち、w決定例1では、隣接ブロックとの予測方法の近似性が比較的低いイントラ予測であるプラナー予測は、アングラー予測およびDC予測に比べて小さいwの値を取りうるようにした決定方法である。プラナー予測の予測画像が特徴的な非線形曲面であり、予測精度が低い可能性が高いため、合成予測モードにおける最も小さい重みづけを取りうるようにした方が好適である、という表現もできる。 That is, in w determination example 1, the planner prediction, which is an intra-prediction with a relatively low approximation of the prediction method with the adjacent block, is a determination method in which a smaller w value can be taken as compared with the angler prediction and the DC prediction. is there. Since the predicted image of the planner prediction is a characteristic non-linear curved surface and the prediction accuracy is likely to be low, it can be expressed that it is preferable to allow the smallest weighting in the synthetic prediction mode.

これに対し、w決定例1では、隣接ブロックとの予測方法の近似性が比較的高いイントラ予測であるアングラー予測は、いずれの予測方向でも、プラナー予測におけるwの値よりも大きいwの値である3を選択する。隣接ブロックとの予測方法の近似性が比較的高いイントラ予測であるアングラー予測は、プラナー予測に比べて大きいwの値を取りうるようにした決定方法である。アングラー予測の予測画像がシンプルな一方向予測面であり、予測精度が高い可能性が高いため、合成予測モードにおいて比較的大きい重みづけを取りうるようにした方が好適である、という表現もできる。 On the other hand, in w determination example 1, the angler prediction, which is an intra-prediction with a relatively high approximation of the prediction method with the adjacent block, has a w value larger than the w value in the planner prediction in any prediction direction. Select a certain 3. The angler prediction, which is an intra-prediction with a relatively high approximation of the prediction method with the adjacent block, is a determination method that allows a larger value of w than the planner prediction. Since the prediction image of the angler prediction is a simple one-way prediction surface and the prediction accuracy is likely to be high, it can be expressed that it is preferable to be able to take a relatively large weight in the composite prediction mode. ..

また、w決定例1では、隣接ブロックとの予測方法の近似性が比較的高いイントラ予測であるDC予測は、プラナー予測におけるwの値よりも大きいwの値である3を選択する。隣接ブロックとの予測方法の近似性が比較的高いイントラ予測であるDC予測は、プラナー予測に比べて大きいwの値を取りうるようにした決定方法である。DC予測の予測画像がシンプルな一定値平面であり、予測精度が高い可能性が高いため、合成予測モードにおいて比較的大きい重みづけを取りうるようにした方が好適である、という表現もできる。 Further, in the w determination example 1, the DC prediction, which is an intra-prediction with a relatively high approximation of the prediction method with the adjacent block, selects 3 which is a w value larger than the w value in the planner prediction. The DC prediction, which is an intra-prediction with a relatively high approximation of the prediction method with the adjacent block, is a determination method that can take a larger value of w than the planner prediction. Since the prediction image of DC prediction is a simple constant value plane and the prediction accuracy is likely to be high, it can be expressed that it is preferable to be able to take a relatively large weight in the composite prediction mode.

このように、w決定例1は、イントラ予測の種類に応じて、wの値を決定する。このとき、プラナー予測が最も小さい値になりうるように設定されるものである。また、アングラー予測においては、いずれの予測方向であってもwの値が一定になるように設定されている。すなわちw決定例1では、アングラー予測の予測方向に応じてwの値が変化することはない。 In this way, the w determination example 1 determines the value of w according to the type of intra prediction. At this time, the planner prediction is set so as to be the smallest value. Further, in the angler prediction, the value of w is set to be constant in any prediction direction. That is, in w determination example 1, the value of w does not change according to the prediction direction of the angler prediction.

次に、w決定例2では、合成予測モードで用いるイントラ予測がプラナー予測の場合w=1と決定する。合成予測モードで用いるイントラ予測がアングラー予測で予測方向が水平方向(18)または垂直方向(50)の場合はw=2と決定する。合成予測モードで用いるイントラ予測がアングラー予測で予測方向が2〜17または51〜66の場合はw=3と決定する。合成予測モードで用いるイントラ予測がアングラー予測で予測方向が19〜49の場合はw=3と決定する。合成予測モードで用いるイントラ予測がDC予測の場合はw=3と決定する。 Next, in w determination example 2, when the intra prediction used in the synthetic prediction mode is the planner prediction, w = 1 is determined. When the intra prediction used in the composite prediction mode is an angler prediction and the prediction direction is the horizontal direction (18) or the vertical direction (50), w = 2 is determined. When the intra prediction used in the synthetic prediction mode is an angler prediction and the prediction direction is 2 to 17 or 51 to 66, w = 3 is determined. When the intra prediction used in the synthetic prediction mode is an angler prediction and the prediction direction is 19 to 49, w = 3 is determined. When the intra prediction used in the synthetic prediction mode is DC prediction, it is determined that w = 3.

すなわち、w決定例2では、w決定例1と同様に、隣接ブロックとの予測方法の近似性が比較的低いイントラ予測であるプラナー予測は、アングラー予測およびDC予測に比べて小さいwの値を取りうるようにした決定方法である。理由はw決定例1と同様である。w決定例2では、隣接ブロックとの予測方法の近似性が比較的高いイントラ予測であるアングラー予測は、いずれの予測方向でも、プラナー予測におけるwの値よりも大きいwの値である2または3を選択する。隣接ブロックとの予測方法の近似性が比較的高いイントラ予測であるアングラー予測は、プラナー予測に比べて大きいwの値を取りうるようにした決定方法である。 That is, in w determination example 2, as in w determination example 1, the planner prediction, which is an intra prediction with a relatively low approximation of the prediction method with the adjacent block, has a smaller w value than the angler prediction and the DC prediction. This is a decision method that can be taken. The reason is the same as that of w determination example 1. In the w determination example 2, the angler prediction, which is an intra prediction with a relatively high approximation of the prediction method to the adjacent block, is a w value larger than the w value in the planner prediction in any prediction direction, 2 or 3. Select. The angler prediction, which is an intra-prediction with a relatively high approximation of the prediction method with the adjacent block, is a determination method that allows a larger value of w than the planner prediction.

アングラー予測の予測画像がシンプルな一方向予測面であり、予測精度が高い可能性が高いため、合成予測モードにおいて比較的大きい重みづけを取りうるようにした方が好適である、という表現もできる。ただし、w決定例2では、w決定例1と異なり、同じアングラー予測であっても予測方向に応じて、wの値を変化させる。 Since the prediction image of the angler prediction is a simple one-way prediction surface and the prediction accuracy is likely to be high, it can be expressed that it is preferable to be able to take a relatively large weight in the composite prediction mode. .. However, in the w determination example 2, unlike the w determination example 1, the value of w is changed according to the prediction direction even if the angler prediction is the same.

具体的には、予測方向が水平方向(18)または垂直方向(50)の場合はw=2とし、アングラー予測における他の予測方向のw=3に比べて低い重みづけに設定している。これは、水平方向(18)の予測方向は参照画素が左隣接ブロックの画素のみであり、隣接ブロックとの予測方法の近似性が左隣接ブロックに限定される可能性が高く、総合的な隣接ブロックとの予測方法の近似性が、他の予測方向よりも低いと考えられるためである。 Specifically, when the prediction direction is the horizontal direction (18) or the vertical direction (50), w = 2 is set, and the weight is set to be lower than w = 3 in the other prediction directions in the angler prediction. This is because the prediction direction in the horizontal direction (18) is that the reference pixel is only the pixel of the left adjacent block, and the approximation of the prediction method with the adjacent block is likely to be limited to the left adjacent block, and the overall adjacency is high. This is because the closeness of the prediction method to the block is considered to be lower than that of other prediction directions.

また、同様に、これは、垂直方向(50)の予測方向は参照画素が上隣接ブロックの画素のみであり、隣接ブロックとの予測方法の近似性が上隣接ブロックに限定される可能性が高く、総合的な隣接ブロックとの予測方法の近似性が、他の予測方向よりも低いと考えられるためである。また、w決定例2では、w決定例1と同様に、隣接ブロックとの予測方法の近似性が比較的高いイントラ予測であるDC予測は、プラナー予測におけるwの値よりも大きいwの値である3を選択する。理由はw決定例1と同様である。 Similarly, in the vertical direction (50), the reference pixel is only the pixel of the upper adjacent block, and the approximation of the prediction method with the adjacent block is likely to be limited to the upper adjacent block. This is because the closeness of the prediction method with the comprehensive adjacent block is considered to be lower than that of other prediction directions. Further, in the w determination example 2, as in the w determination example 1, the DC prediction, which is an intra-prediction with a relatively high approximation of the prediction method with the adjacent block, has a w value larger than the w value in the planner prediction. Select a certain 3. The reason is the same as that of w determination example 1.

このように、w決定例2は、イントラ予測の種類に応じて、wの値を決定する。また、イントラ予測がアングラー予測である場合は、予測方向も考慮してwの値を決定する。また、プラナー予測が最も小さい値になりうるように設定されるものである。 In this way, the w determination example 2 determines the value of w according to the type of intra prediction. When the intra prediction is an angler prediction, the value of w is determined in consideration of the prediction direction. In addition, the planner prediction is set so that it can be the smallest value.

w決定例3は、w決定例2に対して、合成予測モードで用いるイントラ予測がアングラー予測で予測方向2〜17または51〜66の場合はw=2と決定する点で相違し、その他の点は共通である。アングラー予測で予測方向2〜17または51〜66の場合は、予測方向の角度が、完全な水平方向または完全な垂直方向ではないため、上隣接ブロックと左側隣接ブロックのいずれにも予測方法の近似性が認められる。 The w determination example 3 differs from the w determination example 2 in that w = 2 is determined when the intra prediction used in the synthetic prediction mode is the angler prediction and the prediction directions are 2 to 17 or 51 to 66. The points are common. In the case of angler prediction in the prediction direction 2 to 17 or 51 to 66, the angle of the prediction direction is not a perfect horizontal direction or a perfect vertical direction, so the prediction method is approximate to both the upper adjacent block and the left adjacent block. Sex is recognized.

しかしながら、参照画素に含まれている画素は、上隣接ブロックの画素または左側隣接ブロックの画素のいずれか一方である。予測方向2〜17または51〜66の場合は、上隣接ブロックの画素および左側隣接ブロックの画素の両者を参照画素に含む予測方向19〜49の場合に比べて、総合的な隣接ブロックとの予測方法の近似性が低い可能性がある。そこで、w決定例3では、予測方向2〜17または51〜66の場合は、w=2と決定し、予測方向19〜49の場合よりも重みづけを小さくしている。 However, the pixel included in the reference pixel is either the pixel of the upper adjacent block or the pixel of the left adjacent block. In the case of the prediction directions 2 to 17 or 51 to 66, the prediction is a comprehensive adjacent block as compared with the case of the prediction directions 19 to 49 in which both the pixels of the upper adjacent block and the pixels of the left adjacent block are included in the reference pixels. The method may be less close. Therefore, in the w determination example 3, w = 2 is determined in the case of the prediction directions 2 to 17 or 51 to 66, and the weighting is smaller than that in the case of the prediction directions 19 to 49.

以上説明した図8の合成予測モードにおけるwの決定例によれば、合成予測モードに用いるイントラ予測の種類ごとの特徴に応じて、イントラ予測画像とインター予測画像の合成におけるイントラ予測画像の重みづけをより好適に決定することが可能となる。 According to the determination example of w in the composite prediction mode of FIG. 8 described above, the weight of the intra prediction image in the synthesis of the intra prediction image and the inter prediction image is weighted according to the characteristics of each type of intra prediction used in the composite prediction mode. Can be determined more preferably.

以上説明したように、本願の一実施例における符号化処理が行われる。 As described above, the coding process according to the embodiment of the present application is performed.

以上説明した実施例1に係る画像符号化装置および画像符号化方法によれば、より好適な合成予測モードを実現することができる。 According to the image coding apparatus and the image coding method according to the first embodiment described above, a more suitable synthesis prediction mode can be realized.

また、実施例1に係る画像符号化装置および画像符号化方法は、これらを用いた記録装置、携帯電話、デジタルカメラ等に適用することが可能である。 Further, the image coding device and the image coding method according to the first embodiment can be applied to a recording device, a mobile phone, a digital camera, or the like using them.

以上説明した本発明の実施例1に係る画像符号化装置および画像符号化方法によれば、符号化データの符号量を低減し、当該符号化データを復号した場合の復号画像の画質の劣化を防ぐことが可能となる。すなわち、高い圧縮率とより良い画質とを実現することができる。 According to the image coding apparatus and the image coding method according to the first embodiment of the present invention described above, the amount of coded data is reduced and the image quality of the decoded image is deteriorated when the coded data is decoded. It becomes possible to prevent. That is, a high compression rate and a better image quality can be realized.

すなわち、本発明の実施例1に係る画像符号化装置および画像符号化方法によれば、より好適な画像符号化技術を提供することができる。 That is, according to the image coding apparatus and the image coding method according to the first embodiment of the present invention, a more suitable image coding technique can be provided.

(実施例2)
次に、図2に本発明の実施例2に係る画像復号装置のブロック図の一例を示す。
(Example 2)
Next, FIG. 2 shows an example of a block diagram of the image decoding apparatus according to the second embodiment of the present invention.

画像復号装置は例えば、ストリーム解析部201、ブロック管理部202、モード判定部203、イントラ予測部204、インター予測部205、合成予測部220、係数解析部206、逆量子化・逆変換部207、画像合成・フィルタ部208、復号画像管理部209、画像出力部210を備える。 The image decoding device includes, for example, a stream analysis unit 201, a block management unit 202, a mode determination unit 203, an intra prediction unit 204, an inter prediction unit 205, a synthesis prediction unit 220, a coefficient analysis unit 206, an inverse quantization / inverse conversion unit 207, and the like. It includes an image composition / filter unit 208, a decoded image management unit 209, and an image output unit 210.

以下に画像復号装置の各構成要素の動作を詳細に説明する。 The operation of each component of the image decoding device will be described in detail below.

なお、画像復号装置の各構成要素の動作は、例えば、以下の記載の通り各構成要素の自律的な動作としてもよい。また、例えば制御部や記憶部が記憶するソフトウェアと協働することにより実現しても構わない。 The operation of each component of the image decoding device may be, for example, an autonomous operation of each component as described below. Further, for example, it may be realized by cooperating with software stored in the control unit or the storage unit.

まず、ストリーム解析部201が、入力された符号化ストリームを解析する。ここで、ストリーム解析部201は、パケットからのデータ抽出処理や各種ヘッダ、フラグの情報取得処理も行う。 First, the stream analysis unit 201 analyzes the input coded stream. Here, the stream analysis unit 201 also performs data extraction processing from packets and information acquisition processing of various headers and flags.

また、このとき、ストリーム解析部201に入力される符号化ストリームは、例えば、実施例1に係る画像符号化装置および画像符号化方法により生成された符号化ストリームである。その生成方法は、実施例1に示した通りであるので説明を省略する。実施例3に示すデータ記録媒体から読み出した符号化ストリームであってもよい。その記録方法は後述する。 Further, at this time, the coded stream input to the stream analysis unit 201 is, for example, a coded stream generated by the image coding device and the image coding method according to the first embodiment. Since the generation method is as shown in the first embodiment, the description thereof will be omitted. It may be a coded stream read from the data recording medium shown in Example 3. The recording method will be described later.

次に、ブロック管理部202は、ストリーム解析部201によって解析されたブロック分割の情報に従ってブロックの処理を管理する。一般に符号化された画像はブロックに分割され、それぞれの符号化対象ブロックはツリー構造等によって管理されている。ブロックの処理順序はラスタースキャン順に行われることが多いが、ジグザグスキャンなど任意の決められた順序によって処理すればよい。ブロックの分割方法は実施例1で述べた通りである。 Next, the block management unit 202 manages the block processing according to the block division information analyzed by the stream analysis unit 201. Generally, the coded image is divided into blocks, and each coded block is managed by a tree structure or the like. The block processing order is often the raster scan order, but it may be processed in an arbitrary predetermined order such as a zigzag scan. The block division method is as described in the first embodiment.

次に、モード判定部203は、各符号化対象ブロックについて、フラグ等によって指定された符号化モードの判別を行う。以下の復号処理は、当該判別結果の符号化モードに対応する処理が行われる。以下にそれぞれの符号化モードについての処理を説明する。 Next, the mode determination unit 203 determines the coding mode specified by the flag or the like for each coding target block. The following decoding process is performed according to the coding mode of the determination result. The processing for each coding mode will be described below.

まず、符号化モードがイントラ符号化である場合には、イントラ予測部204がイントラ予測による予測画像の生成を行う。イントラ予測モードについては実施例1で述べた通りである。予測による予測画像の生成処理は原則として符号化側と復号側で同じ処理である。 First, when the coding mode is intra coding, the intra prediction unit 204 generates a prediction image by intra prediction. The intra prediction mode is as described in the first embodiment. In principle, the process of generating a predicted image by prediction is the same on the coding side and the decoding side.

符号化モードがインター予測による符号化である場合には、インター予測部205がインター予測による予測画像の生成を行う。インター予測モードについては実施例1で述べた通りである。予測による予測画像の生成処理は原則として符号化側と復号側で同じ処理である。 When the coding mode is coding by inter-prediction, the inter-prediction unit 205 generates a prediction image by inter-prediction. The inter-prediction mode is as described in the first embodiment. In principle, the process of generating a predicted image by prediction is the same on the coding side and the decoding side.

符号化モードが合成予測による符号化である場合には、合成予測部220が合成予測による予測画像の生成を行う。合成予測モードについては実施例1で述べた通りである。予測による予測画像の生成処理は原則として符号化側と復号側で同じ処理である。 When the coding mode is coding by synthetic prediction, the synthetic prediction unit 220 generates a predicted image by synthetic prediction. The synthetic prediction mode is as described in Example 1. In principle, the process of generating a predicted image by prediction is the same on the coding side and the decoding side.

一方、係数解析部206は、入力符号化ストリームに含まれる各符号化対象ブロックの符号化データを解析し、エントロピー符号化されたデータの復号を行い、残差成分の係数列を含む符号化データを出力する。このとき、モード判定部203の判別結果の符号化モードに対応する処理が行われる。 On the other hand, the coefficient analysis unit 206 analyzes the coded data of each coded block included in the input coded stream, decodes the entropy coded data, and encodes the coded data including the coefficient sequence of the residual component. Is output. At this time, the process corresponding to the coding mode of the determination result of the mode determination unit 203 is performed.

逆量子化・逆変換部207は残差成分の係数列を含む符号化データに逆量子化処理と逆変換を行い、残差成分を復元する。逆量子化、逆変換の方法は前述の通りである。逆量子化や逆変換はモードの指定によりスキップされてもよい。 The inverse quantization / inverse transformation unit 207 performs an inverse quantization process and an inverse transformation on the coded data including the coefficient sequence of the residual component, and restores the residual component. The methods of inverse quantization and inverse transformation are as described above. Inverse quantization and inverse transformation may be skipped by specifying the mode.

上記のようにして復元された残差成分は、画像合成・フィルタ部208によってイントラ予測部204、インター予測部205、または合成予測部220から出力される予測画像と合成され、さらにループフィルタ等の処理が行われ復号画像として出力される。 The residual component restored as described above is combined with the prediction image output from the intra prediction unit 204, the inter prediction unit 205, or the composition prediction unit 220 by the image composition / filter unit 208, and further, a loop filter or the like is used. It is processed and output as a decoded image.

復号画像管理部209は、復号画像を保持し、イントラ予測、インター予測、または合成予測のために参照される画像、モードの情報等を管理する。 The decoded image management unit 209 holds the decoded image and manages the image, the mode information, and the like referred to for the intra prediction, the inter prediction, or the composite prediction.

最後に復号された画像が画像出力部210によって出力され、画像の復号が行われる。 The last decoded image is output by the image output unit 210, and the image is decoded.

次に、図4を用いて、本発明の実施例2に係る画像復号装置における画像復号方法の流れについて説明する。 Next, the flow of the image decoding method in the image decoding apparatus according to the second embodiment of the present invention will be described with reference to FIG.

まず、ステップ401で、復号対象となる符号化ストリームを取得し、データの解析を行う。また解析されたブロック分割の情報に従ってブロックの処理を管理する。ブロックの分割方法は実施例1で述べた通りである。 First, in step 401, the coded stream to be decoded is acquired and the data is analyzed. It also manages block processing according to the analyzed block division information. The block division method is as described in the first embodiment.

次に、ステップ402では、ステップ401において解析した符号化モードの情報を用いて、当該符号化データに含まれる1つの符号化単位(ブロック単位や画素単位など)についての符号化モードを判定する。ここでイントラ符号化モードである場合にはステップ403に進み、インター符号化モードである場合にはステップ404に進み、合成符号化モードである場合にはステップ420に進む。 Next, in step 402, the coding mode for one coding unit (block unit, pixel unit, etc.) included in the coded data is determined by using the coding mode information analyzed in step 401. Here, in the case of the intra-coding mode, the process proceeds to step 403, in the case of the inter-coding mode, the process proceeds to step 404, and in the case of the synthetic coding mode, the process proceeds to step 420.

ステップ403では、符号化モードによって指定された方法に従ってイントラ予測により予測画像の生成を行う。イントラ予測モードについては実施例1で述べた通りである。 In step 403, the predicted image is generated by intra-prediction according to the method specified by the coding mode. The intra prediction mode is as described in the first embodiment.

ステップ404では、符号化モードによって指定された方法に従ってインター予測により予測画像の生成を行う。インター予測モードについては実施例1で述べた通りである。 In step 404, the predicted image is generated by inter-prediction according to the method specified by the coding mode. The inter-prediction mode is as described in the first embodiment.

ステップ420では、符号化モードによって指定された方法に従って合成予測により予測画像の生成を行う。合成予測モードについては実施例1で述べた通りである。 In step 420, a predicted image is generated by synthetic prediction according to the method specified by the coding mode. The synthetic prediction mode is as described in Example 1.

ステップ405では、符号化モードによって指定された方法に従って各符号化対象ブロックの符号化データを解析し、エントロピー符号化されたデータの復号を行い、残差成分の係数列を含む符号化データを出力する。さらに、残差成分の係数列を含む符号化データに逆量子化処理と逆変換を行い、残差成分を復元する。逆量子化、逆変換の方法は前述の通りである。逆量子化や逆変換はモードの指定によりスキップされてもよい。 In step 405, the coded data of each coded block is analyzed according to the method specified by the coding mode, the entropy-coded data is decoded, and the coded data including the coefficient sequence of the residual component is output. To do. Further, the coded data including the coefficient sequence of the residual component is subjected to the inverse quantization processing and the inverse transformation to restore the residual component. The methods of inverse quantization and inverse transformation are as described above. Inverse quantization and inverse transformation may be skipped by specifying the mode.

ステップ406では、各符号化対象ブロックに対して、イントラ予測、インター予測または、合成予測等によって生成された予測画像と、復元された残差成分を合成し、さらにループフィルタ等の処理を行うことによって復号画像を作成する。上記の符号化対象ブロック単位で行われる復号のプロセスを画像全体に対して行うことによって、復号画像が作成される。 In step 406, the predicted image generated by intra-prediction, inter-prediction, composite prediction, or the like is combined with the restored residual component for each coded block, and further processing such as a loop filter is performed. Create a decoded image by. A decoded image is created by performing the decoding process performed for each coded block for the entire image.

ステップ407では生成された復号画像を出力、表示する。 In step 407, the generated decoded image is output and displayed.

本実施例に係る復号側の合成予測モードにおける処理は、実施例1において、式1、図6、図7、および図8を用いて説明した合成予測モードにおける処理と実質的に同一であるため、繰り返しの説明を省略する。なお、実施例1の合成予測モードの説明における「符号化対象ブロック」という表現は、復号側の合成予測モードの処理においては、「復号対象ブロック」と読み替えればよい。 Since the processing in the synthesis prediction mode on the decoding side according to this embodiment is substantially the same as the processing in the synthesis prediction mode described with reference to Equation 1, FIG. 6, FIG. 7, and FIG. 8 in Example 1. , The repeated description is omitted. The expression "encoded block" in the description of the synthetic prediction mode of the first embodiment may be read as "decoding target block" in the processing of the synthetic prediction mode on the decoding side.

本実施例に係る復号側の合成予測モードでは、上述の通り、式1を用いたインター予測画素とイントラ予測画素の重みづけ平均処理を行う。また、本実施例に係る復号側の合成予測モードでは、上述の通り、重みづけパラメータwを、図8に示すような決定処理により決定する。これにより、合成予測モードに用いるイントラ予測の種類ごとの特徴に応じて、イントラ予測画像とインター予測画像の合成におけるイントラ予測画像の重みづけをより好適に決定することが可能となる。 In the synthesis prediction mode on the decoding side according to the present embodiment, as described above, the weighted averaging processing of the inter prediction pixel and the intra prediction pixel using the equation 1 is performed. Further, in the synthesis prediction mode on the decoding side according to the present embodiment, as described above, the weighting parameter w is determined by the determination process as shown in FIG. This makes it possible to more preferably determine the weighting of the intra-prediction image in the composition of the intra-prediction image and the inter-prediction image according to the characteristics of each type of intra-prediction used in the composite prediction mode.

なお、本実施例においても、例に示す以外にも、符号化モードで用いるブロックのサイズなどをパラメータとして、各符号化モードを細分化して規定した符号化ストリームを、復号対象ストリームとしてもよい。 In this embodiment as well, in addition to the examples, a coded stream in which each coded mode is subdivided and defined with the size of the block used in the coded mode as a parameter may be used as the decoding target stream.

以上説明したように、本願の一実施例における復号処理が行われる。 As described above, the decoding process according to the embodiment of the present application is performed.

また、実施例2に係る画像復号装置および画像復号方法は、これらを用いた再生装置、携帯電話、デジタルカメラ等に適用することが可能である。 Further, the image decoding device and the image decoding method according to the second embodiment can be applied to a reproduction device, a mobile phone, a digital camera, or the like using them.

以上説明した本発明の実施例2に係る画像復号装置および画像復号方法によれば、符号量の少ない符号化データをより高画質に復号することが可能となる。 According to the image decoding apparatus and the image decoding method according to the second embodiment of the present invention described above, it is possible to decode coded data having a small amount of code with higher image quality.

すなわち、本発明の実施例2に係る画像復号装置および画像復号方法によれば、より好適な画像復号技術を提供することができる。 That is, according to the image decoding apparatus and the image decoding method according to the second embodiment of the present invention, a more suitable image decoding technique can be provided.

(実施例3)
次に、図5に本発明の実施例3に係るデータ記録媒体の一例を示す。
(Example 3)
Next, FIG. 5 shows an example of the data recording medium according to the third embodiment of the present invention.

本発明の本実施例に係る符号化ストリームは、実施例1に係る実施例1に係る画像符号化装置または画像符号化方法により生成された符号化ストリームである。その生成方法は、実施例1に示した通りであるので、説明を省略する。 The coded stream according to the present embodiment of the present invention is a coded stream generated by the image coding apparatus or the image coding method according to the first embodiment according to the first embodiment. Since the generation method is as shown in the first embodiment, the description thereof will be omitted.

ここで、本実施例に係る符号化ストリームは、例えば、データ記録媒体501上にデータ列502として記録される。データ列502は、例えば、所定の文法に従う符号化ストリームとして記録されている。 Here, the coded stream according to this embodiment is recorded as a data string 502 on the data recording medium 501, for example. The data string 502 is recorded, for example, as a coded stream according to a predetermined grammar.

まず、符号化ストリームはNAL(Network Abstraction Layer)ユニット503と呼ばれる一定サイズの単位に区切られたビット列として取り出される。NALユニットのビット列は、可変長符号等の一定のルールに従って読み出され、RBSP(Raw Byte Sequence Payload)として変換される。RBSPのデータは、シーケンスパラメータセット504、ピクチャパラメータセット505、デコーディングパラメータセット、ビデオパラメータセット等の情報や、スライスデータ506から構成される。 First, the coded stream is taken out as a bit string divided into units of a certain size called a NAL (Network Abstraction Layer) unit 503. The bit string of the NAL unit is read according to a certain rule such as a variable length code and converted as an RBSP (Raw Byte Sequence Payload). The RBSP data is composed of information such as a sequence parameter set 504, a picture parameter set 505, a decoding parameter set, a video parameter set, and slice data 506.

各スライスの内部には、例えば、それぞれのブロックに関する情報507が含まれている。ブロックに関する情報の内部には、例えば、ブロックごとにそれぞれの符号化モードを記録する領域があり、これを符号化モードフラグ508とする。 Inside each slice, for example, information 507 about each block is contained. Inside the information about the block, for example, there is an area for recording each coding mode for each block, and this is set as a coding mode flag 508.

以上説明した本発明の実施例3に係るデータ記録媒体によれば、符号量を低減し、画質の劣化を防ぐことができる。すなわち、圧縮率が高く、画質のより良い符号化ストリームを記録するデータ記録媒体を実現することができる。 According to the data recording medium according to the third embodiment of the present invention described above, the code amount can be reduced and the deterioration of the image quality can be prevented. That is, it is possible to realize a data recording medium that has a high compression rate and records a coded stream having better image quality.

なお、以降に説明する各実施例における画像符号化装置または画像符号化方法により生成された符号化ストリームも、本実施例で上述した構成により本実施例に係るデータ記録媒体に記録することができる。 The coded stream generated by the image coding apparatus or the image coding method in each of the examples described below can also be recorded on the data recording medium according to the present embodiment by the configuration described above in the present embodiment. ..

(実施例4)
次に、本発明の実施例4について図面を参照して説明する。
(Example 4)
Next, Example 4 of the present invention will be described with reference to the drawings.

本発明の実施例4は、実施例1に係る画像符号化装置および画像符号化方法において、合成予測の処理における重みづけパラメータwの決定処理を変更したものである。 In the fourth embodiment of the present invention, in the image coding apparatus and the image coding method according to the first embodiment, the processing for determining the weighting parameter w in the processing of the synthesis prediction is changed.

具体的には、重みづけパラメータwの決定処理を図8に示す重みづけパラメータwの決定処理から図9に示す重みづけパラメータwの決定処理に変更する。実施例4に係る画像符号化装置および画像符号化方法は、図9に示す重みづけパラメータwの決定処理以外のその他の構成、動作、処理はいずれも実施例1に係る画像符号化装置および画像符号化方法と同様である。よって、これら実施例1に係る画像符号化装置および画像符号化方法と同様の点は繰り返しの説明を省略する。 Specifically, the determination process of the weighting parameter w is changed from the determination process of the weighting parameter w shown in FIG. 8 to the determination process of the weighting parameter w shown in FIG. In the image coding apparatus and the image coding method according to the fourth embodiment, the image coding apparatus and the image according to the first embodiment all have other configurations, operations, and processes other than the determination processing of the weighting parameter w shown in FIG. It is the same as the coding method. Therefore, the same points as the image coding apparatus and the image coding method according to the first embodiment will not be repeated.

図9に本発明の実施例4に係る画像符号化装置および画像符号化方法における合成予測の処理における重みづけパラメータwの決定処理の一例を示す。なお、復号側でも同様の重みづけパラメータwの決定処理を行うので、予測対象ブロックは「符号化(復号)対象ブロック」という表現で説明する。 FIG. 9 shows an example of a weighting parameter w determination process in the synthetic prediction process in the image coding apparatus and the image coding method according to the fourth embodiment of the present invention. Since the same weighting parameter w is determined on the decoding side, the prediction target block will be described by the expression “encoding (decoding) target block”.

図9の例では、図8の例と異なり、重みづけパラメータwの決定する処理を行うにあたり、符号化(復号)対象ブロックのイントラ予測モードだけではなく、複数の隣接ブロックの予測モードの組み合わせも考慮する。ここで、本実施例では、複数の隣接ブロックの一例として、符号化(復号)対象ブロックの直上に隣接するブロックと符号化(復号)対象ブロックの直左に隣接するブロックの2つの隣接ブロックの予測モードの組み合わせを考慮する。 In the example of FIG. 9, unlike the example of FIG. 8, when performing the process of determining the weighting parameter w, not only the intra prediction mode of the coded (decoded) target block but also the combination of the prediction modes of a plurality of adjacent blocks is used. Consider. Here, in this embodiment, as an example of a plurality of adjacent blocks, two adjacent blocks, a block immediately above the coding (decoding) target block and a block immediately adjacent to the left side of the coding (decoding) target block, are used. Consider the combination of prediction modes.

すなわち、図8の例では、符号化(復号)対象ブロックのイントラ予測モードのみに応じて、重みづけパラメータwを決定していたが、図9の例は、符号化(復号)対象ブロックのイントラ予測モードが同じであっても、複数の隣接ブロックの予測モードの組み合わせが異なれば重みづけパラメータwを変化させる。 That is, in the example of FIG. 8, the weighting parameter w is determined only according to the intra prediction mode of the coded (decoded) target block, but in the example of FIG. 9, the intra of the coded (decoded) target block is determined. Even if the prediction modes are the same, the weighting parameter w is changed if the combination of prediction modes of a plurality of adjacent blocks is different.

実施例1において、符号化(復号)対象ブロックのイントラ予測モードの種類によって、隣接ブロックとの予測方法の近似性がそれぞれ異なることを既に説明した。具体的には、プラナー予測、アングラー予測で予測方向18または50の場合、アングラー予測で予測方向2〜17または51〜66の場合、アングラー予測で予測方向2〜17または51〜66の場合、アングラー予測で予測方向が19〜49の場合、DC予測のそれぞれについて、隣接ブロックとの予測方法の近似性の特徴を説明した。 In the first embodiment, it has already been described that the approximation of the prediction method with the adjacent block differs depending on the type of the intra prediction mode of the coded (decoded) target block. Specifically, in the case of planner prediction and angler prediction in the prediction direction 18 or 50, in the case of angler prediction in the prediction direction 2 to 17 or 51 to 66, and in the case of angler prediction in the prediction direction 2 to 17 or 51 to 66, the angler When the prediction direction is 19 to 49 in the prediction, the characteristics of the closeness of the prediction method with the adjacent block are explained for each of the DC predictions.

図9では、これらのイントラ予測モードの種類の特徴ごとに複数の隣接ブロックの予測モードの組み合わせに応じて重みづけパラメータwを決定する。 In FIG. 9, the weighting parameter w is determined according to the combination of the prediction modes of the plurality of adjacent blocks for each feature of these intra prediction mode types.

複数の隣接ブロックの予測モードの組み合わせの具体的条件としては、(1)符号化(復号)対象ブロックの直上に隣接するブロックと符号化(復号)対象ブロックの直左に隣接するブロックの2つの隣接ブロックのいずれもが利用不可の場合、(2)符号化(復号)対象ブロックの直上に隣接するブロックと符号化(復号)対象ブロックの直左に隣接するブロックの2つの隣接ブロックの一方が利用不可で他方がインター予測の場合、(3)符号化(復号)対象ブロックの直上に隣接するブロックと符号化(復号)対象ブロックの直左に隣接するブロックの2つの隣接ブロックの両方ともインター予測の場合、(4)符号化(復号)対象ブロックの直上に隣接するブロックと符号化(復号)対象ブロックの直左に隣接するブロックの2つの隣接ブロックの一方が利用不可で他方がイントラ予測の場合、(5)符号化(復号)対象ブロックの直上に隣接するブロックと符号化(復号)対象ブロックの直左に隣接するブロックの2つの隣接ブロックの一方がインター予測で他方がイントラ予測の場合、(6)符号化(復号)対象ブロックの直上に隣接するブロックと符号化(復号)対象ブロックの直左に隣接するブロックの2つの隣接ブロックの両方ともイントラ予測の場合の(1)〜(6)の条件を考慮する。 Specific conditions for combining the prediction modes of a plurality of adjacent blocks are (1) a block immediately above the coding (decoding) target block and a block immediately adjacent to the coding (decoding) target block. If neither of the adjacent blocks is available, (2) one of the two adjacent blocks, the block immediately above the coded (decoded) target block and the block immediately to the left of the coded (decoded) target block, If it is not available and the other is an inter-prediction, (3) both the two adjacent blocks, the block immediately above the coded (decoded) target block and the block immediately to the left of the coded (decoded) target block, are inter. In the case of prediction, (4) one of the two adjacent blocks, the block directly above the coded (decoded) target block and the block directly to the left of the coded (decoded) target block, is unavailable and the other is intra-predicted. In the case of (5), one of the two adjacent blocks, the block immediately above the coded (decoded) target block and the block immediately to the left of the coded (decoded) target block, is the inter-prediction and the other is the intra-prediction. In the case of (6), both the block immediately above the coded (decoded) target block and the two adjacent blocks immediately to the left of the coded (decoded) target block are the two adjacent blocks in the case of intra-prediction (1) to Consider the condition (6).

具体的には上記(1)〜(6)の条件ごとに以下の通りに決定する。 Specifically, it is determined as follows for each of the above conditions (1) to (6).

まず、符号化(復号)対象ブロックのイントラ予測モードがプラナー予測である場合は、図9に示すようにwを決定すればよい。具体的には、条件(1)〜(3)ではw=1とし、条件(4)〜(6)ではw=2とする。実施例1で説明した通りプラナー予測は隣接ブロックとの予測方法の近似性が比較的低いイントラ予測である。 First, when the intra prediction mode of the coded (decoded) target block is planner prediction, w may be determined as shown in FIG. Specifically, w = 1 under the conditions (1) to (3), and w = 2 under the conditions (4) to (6). As described in the first embodiment, the planner prediction is an intra prediction with a relatively low approximation of the prediction method with the adjacent block.

しかしながら、隣接ブロックに利用可能なイントラ予測ブロックが存在する場合には、符号化(復号)対象ブロックと同様のプラナー予測の可能性もあるので、若干ではあるが隣接ブロックとの予測方法の近似性が改善する。従って、条件(4)〜(6)について、条件(1)〜(3)よりも重みづけを大きくするのが好適である。なお、変形例として、条件(1)〜(5)ではw=1とし、条件(6)のみw=2としてもよい。プラナー予測はその処理の中で対象ブロックの上側隣接画素、左側隣接画素の両者を用いるので、複数の隣接ブロックの予測モードの両者がイントラ予測の場合のみ予測方法の近似性が改善するという考え方を用いた変形例である。 However, if there is an intra-prediction block that can be used in the adjacent block, there is a possibility of planer prediction similar to that of the coded (decoded) target block. Improves. Therefore, it is preferable that the weighting of the conditions (4) to (6) is larger than that of the conditions (1) to (3). As a modification, w = 1 may be set in the conditions (1) to (5), and w = 2 may be set only in the condition (6). Since the planner prediction uses both the upper adjacent pixel and the left adjacent pixel of the target block in the processing, the idea that the approximation of the prediction method is improved only when both of the prediction modes of a plurality of adjacent blocks are intra predictions. This is a modified example used.

次に、符号化(復号)対象ブロックのイントラ予測モードがアングラー予測で予測方向18または50の場合は、図9に示すようにwを決定すればよい。具体的には、条件(1)〜(3)ではw=1とし、条件(4)〜(6)ではw=2とする。イントラ予測モードがアングラー予測で予測方向18または50の場合は、水平方向または垂直方向のいずれか一方の隣接ブロックと予測方法の近似性を有するイントラ予測である。 Next, when the intra prediction mode of the coded (decoded) target block is angler prediction and the prediction direction is 18 or 50, w may be determined as shown in FIG. Specifically, w = 1 under the conditions (1) to (3), and w = 2 under the conditions (4) to (6). When the intra prediction mode is angler prediction and the prediction direction is 18 or 50, the intra prediction has an approximation of the prediction method to the adjacent block in either the horizontal direction or the vertical direction.

よって、利用可能なイントラ予測ブロックが存在する条件(4)〜(6)について、条件(1)〜(3)よりも重みづけを大きくするのが好適である。ただし、隣接ブロックと予測方法の近似性の効果が水平方向または垂直方向のいずれか一方に限定される。よって、複数の隣接ブロックの両方ともが利用可能なイントラ予測である条件(6)であっても、複数の隣接ブロックのうち一方のみが利用可能なイントラ予測である条件(4)(5)と比べても隣接ブロックと予測方法の近似性の効果は変わらない。従って、本図の例では、条件(6)でもw=2とした。 Therefore, it is preferable that the conditions (4) to (6) in which the available intra prediction block exists are weighted more than the conditions (1) to (3). However, the effect of approximation between adjacent blocks and the prediction method is limited to either the horizontal or vertical direction. Therefore, even if the condition (6) is an intra prediction that both of the plurality of adjacent blocks can be used, the condition (4) (5) that only one of the plurality of adjacent blocks can be used is the intra prediction. Even if compared, the effect of the closeness between the adjacent block and the prediction method does not change. Therefore, in the example of this figure, w = 2 was set even in the condition (6).

次に、符号化(復号)対象ブロックのイントラ予測モードがアングラー予測で予測方向2〜17または51〜66の場合およびアングラー予測で予測方向2〜17または51〜66の場合は、図9に示すようにwを決定すればよい。具体的には、条件(1)〜(3)ではw=1とし、条件(4)、(5)ではw=2とし、(6)ではw=3とする。イントラ予測モードがアングラー予測で予測方向2〜17または51〜66の場合およびアングラー予測で予測方向2〜17または51〜66の場合は、予測方向が斜め方向であるため、上側に隣接するブロックと左側に隣接するブロックの両者と予測方法の近似性を有するイントラ予測である。従って、隣接ブロックに利用可能なイントラ予測ブロックが増えれば増えるほど、隣接ブロックと予測方法の近似性が高まる傾向になる。よって、上述のように隣接ブロックに利用可能なイントラ予測ブロックが増えるほど、重みづけパラメータwの値を大きく設定するのが好適である。 Next, when the intra prediction mode of the coded (decoded) target block is the prediction direction 2 to 17 or 51 to 66 in the angler prediction and the prediction direction 2 to 17 or 51 to 66 in the angler prediction, it is shown in FIG. W may be determined as follows. Specifically, w = 1 under the conditions (1) to (3), w = 2 under the conditions (4) and (5), and w = 3 under the conditions (6). When the intra prediction mode is the prediction direction 2 to 17 or 51 to 66 in the angler prediction and the prediction direction 2 to 17 or 51 to 66 in the angler prediction, the prediction direction is an oblique direction, so that the block adjacent to the upper side is used. It is an intra-prediction that has an approximation of the prediction method to both blocks adjacent to the left side. Therefore, as the number of intra-prediction blocks available for the adjacent block increases, the approximation between the adjacent block and the prediction method tends to increase. Therefore, as described above, it is preferable to set the value of the weighting parameter w larger as the number of intra-prediction blocks available for adjacent blocks increases.

次に、符号化(復号)対象ブロックのイントラ予測モードがDC予測の場合は、図9に示すようにwを決定すればよい。具体的には、条件(1)〜(3)ではw=2とし、条件(4)〜(6)では、w=3とする。実施例1で説明した通り、符号化側の処理においてDC予測を選択するときは、符号化対象画像が、一定輝度が広く続く平面的な絵柄である可能性が高い。隣接ブロックに利用可能なイントラ予測ブロックが含まれているときは特にこの可能性が高いので、w=3とするのが好適である。ただし、本図の例では、隣接ブロックに利用可能なイントラ予測ブロックが含まれない場合は、符号化対象画像が、一定輝度が広く続く平面的な絵柄である可能性が若干下がるため、w=2としている。 Next, when the intra prediction mode of the coded (decoded) target block is DC prediction, w may be determined as shown in FIG. Specifically, w = 2 under the conditions (1) to (3), and w = 3 under the conditions (4) to (6). As described in the first embodiment, when DC prediction is selected in the processing on the coding side, it is highly possible that the image to be coded is a flat pattern in which constant brightness continues widely. This is especially likely when the adjacent block contains an available intra-prediction block, so w = 3 is preferred. However, in the example of this figure, if the adjacent block does not include the available intra-prediction block, the possibility that the image to be encoded is a flat pattern with a wide constant brightness is slightly reduced, so w = It is set to 2.

以上説明した図9の重みづけパラメータwの決定処理によれば、合成予測の処理における数式1の重みづけパラメータwの決定において、符号化(復号)対象ブロックのイントラ予測モードだけではなく、複数の隣接ブロックの予測モードの組み合わせも考慮することでより好適に重みづけパラメータwを決定することができる。 According to the determination process of the weighting parameter w of FIG. 9 described above, in the determination of the weighting parameter w of the equation 1 in the synthetic prediction process, not only the intra prediction mode of the coded (decoding) target block but also a plurality of devices are determined. The weighting parameter w can be determined more preferably by considering the combination of the prediction modes of the adjacent blocks.

また、複数の隣接ブロックの予測モードの組み合わせを条件とすることで、新たなフラグの伝送無しに好適な条件設定を行うことができる。 Further, by setting a combination of prediction modes of a plurality of adjacent blocks as a condition, it is possible to set a suitable condition without transmitting a new flag.

なお、図9の例では、符号化(復号)対象ブロックの予測モードがいずれの予測モードであっても、条件(1)よりも(6)において重みづけwを大きくする。符号化(復号)対象ブロックの予測モードがいずれの予測モードであっても、隣接ブロックに利用可能なイントラ予測ブロックが増えれば、少なからず隣接ブロックと予測方法の近似性が高まる傾向になるためである。 In the example of FIG. 9, the weighting w is made larger in (6) than in the condition (1) regardless of which prediction mode the coding (decoding) target block is. Regardless of the prediction mode of the coded (decoding) target block, if the number of intra prediction blocks that can be used for the adjacent block increases, the approximation between the adjacent block and the prediction method tends to increase. is there.

また、図9の例では、合成予測で用いるイントラ予測に、プラナー予測もDC予測も指定されていない場合、複数の隣接ブロックに利用可能なイントラ予測ブロックがない場合よりも、複数の隣接ブロックに利用可能なイントラ予測ブロックがある場合において、重みづけwを大きくする。 Further, in the example of FIG. 9, when neither the planner prediction nor the DC prediction is specified in the intra prediction used in the composite prediction, the multiple adjacent blocks are set in a plurality of adjacent blocks as compared with the case where there is no intra prediction block available in the plurality of adjacent blocks. If there are intra-prediction blocks available, increase the weighting w.

なお、図9の変形例として、図10のように、DC予測の条件(4)、(5)は、w=2としてもよい。図10の例は、DC予測でw=3となるのを条件(6)のみとした。複数の隣接ブロックの両方ともが利用可能なイントラ予測である条件(6)のみ、符号化対象画像が、一定輝度が広く続く平面的な絵柄である可能性が高いと考える例である。図10の例はDC予測の条件(4)、(5)以外は、図9と同じであるため、繰り返しの説明は省略する。 As a modification of FIG. 9, as shown in FIG. 10, the DC prediction conditions (4) and (5) may be w = 2. In the example of FIG. 10, only the condition (6) is that w = 3 in the DC prediction. Only in the condition (6), which is an intra-prediction in which both of the plurality of adjacent blocks can be used, it is an example in which it is highly likely that the image to be encoded is a flat pattern in which a constant brightness continues widely. Since the example of FIG. 10 is the same as that of FIG. 9 except for the conditions (4) and (5) for DC prediction, the repeated description will be omitted.

以上説明した、本発明の実施例4に係る画像符号化装置および画像符号化方法によれば、より好適に画像を符号化することができる。 According to the image coding apparatus and the image coding method according to the fourth embodiment of the present invention described above, the image can be more preferably encoded.

(実施例5)
次に、本発明の実施例5について説明する。
(Example 5)
Next, Example 5 of the present invention will be described.

本発明の実施例5は、実施例2に係る画像復号装置および画像復号方法において、合成予測の処理における重みづけパラメータwの決定処理を変更したものである。 In the fifth embodiment of the present invention, in the image decoding apparatus and the image decoding method according to the second embodiment, the processing for determining the weighting parameter w in the processing of the synthesis prediction is changed.

具体的には、重みづけパラメータwの決定処理を図8に示す重みづけパラメータwの決定処理から図9または図10に示す重みづけパラメータwの決定処理に変更する。実施例5に係る画像復号装置および画像復号方法は、図9または図10に示す重みづけパラメータwの決定処理を用いるものであるが、図9または図10に示す重みづけパラメータwの決定処理以外のその他の構成、動作、処理はいずれも実施例2に係る画像復号装置および画像復号方法と同様である。よって、これら実施例2に係る画像復号装置および画像復号方法と同様の点は繰り返しの説明を省略する。 Specifically, the determination process of the weighting parameter w is changed from the determination process of the weighting parameter w shown in FIG. 8 to the determination process of the weighting parameter w shown in FIG. 9 or 10. The image decoding apparatus and the image decoding method according to the fifth embodiment use the determination process of the weighting parameter w shown in FIG. 9 or 10, but other than the determination process of the weighting parameter w shown in FIG. 9 or 10. The other configurations, operations, and processes of the above are all the same as those of the image decoding apparatus and the image decoding method according to the second embodiment. Therefore, the same points as the image decoding apparatus and the image decoding method according to the second embodiment will not be repeated.

また、図9または図10の重みづけパラメータwの決定処理の詳細については、実施例4で説明した通りであるので、繰り返しの説明を省略する。 Further, since the details of the determination process of the weighting parameter w of FIG. 9 or FIG. 10 are as described in the fourth embodiment, the repeated description will be omitted.

以上説明した、本発明の実施例5に係る画像復号装置および画像復号方法では、図9または図10に示すように合成予測の処理における数式1の重みづけパラメータwの決定において、符号化(復号)対象ブロックのイントラ予測モードだけではなく、複数の隣接ブロックの予測モードの組み合わせも考慮することでより好適に重みづけパラメータwを決定することができる。 In the image decoding apparatus and image decoding method according to the fifth embodiment of the present invention described above, coding (decoding) is performed in determining the weighting parameter w of the mathematical formula 1 in the synthetic prediction processing as shown in FIG. 9 or FIG. ) The weighting parameter w can be more preferably determined by considering not only the intra prediction mode of the target block but also the combination of the prediction modes of a plurality of adjacent blocks.

以上説明した、本発明の実施例5に係る画像復号装置および画像復号方法によれば、より好適に画像を復号することができる。 According to the image decoding apparatus and the image decoding method according to the fifth embodiment of the present invention described above, the image can be more preferably decoded.

(実施例6)
次に、本発明の実施例6について図面を参照して説明する。
(Example 6)
Next, Example 6 of the present invention will be described with reference to the drawings.

本発明の実施例6は、実施例1または実施例4に係る画像符号化装置および画像符号化方法において、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードを指定するフラグを新たに設定し、当該フラグの設定制御および当該フラグを用いた予測モードの決定制御を行うものである。 In the sixth embodiment of the present invention, in the image coding apparatus and the image coding method according to the first or fourth embodiment, a flag for designating the prediction mode of the prediction image to be combined with the intra prediction image in the processing of the synthesis prediction is newly added. Is set to, and the setting control of the flag and the determination control of the prediction mode using the flag are performed.

実施例1または実施例4に係る画像符号化装置および画像符号化方法において、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードの例としてマージモードを例に挙げて説明した。また、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードの例としてマージモード以外の予測モードのインター予測を用いてもよい旨を説明した。 In the image coding apparatus and the image coding method according to the first or fourth embodiment, the merge mode has been described as an example of the prediction mode of the prediction image to be combined with the intra prediction image in the processing of the synthesis prediction. In addition, it was explained that inter-prediction in a prediction mode other than the merge mode may be used as an example of the prediction mode of the prediction image to be combined with the intra-prediction image in the processing of the synthesis prediction.

これに対し、本発明の実施例6は、当該予測モードの決定方法のより具体的な処理を提案するものである。 On the other hand, the sixth embodiment of the present invention proposes a more specific process of the method for determining the prediction mode.

具体的には、図11に示す合成予測モードのインター予測指定フラグを設定し、符号化側で当該フラグの設定を行う。また、復号側では、当該フラグを用いて合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードの決定制御を行う。 Specifically, the inter-prediction designation flag of the composite prediction mode shown in FIG. 11 is set, and the flag is set on the coding side. Further, on the decoding side, the flag is used to control the determination of the prediction mode of the prediction image to be combined with the intra prediction image in the synthesis prediction processing.

実施例6に係る画像符号化装置および画像符号化方法は、図11に示す合成予測モードのインター予測指定フラグに関連する処理以外のその他の構成、動作、処理はいずれも実施例1または実施例4に係る画像符号化装置および画像符号化方法と同様である。よって、これら実施例1または実施例4に係る画像符号化装置および画像符号化方法と同様の点は繰り返しの説明を省略する。 In the image coding apparatus and the image coding method according to the sixth embodiment, all of the other configurations, operations, and processes other than the processing related to the inter-prediction designation flag of the composite prediction mode shown in FIG. 11 are the first embodiment or the embodiment. It is the same as the image coding apparatus and the image coding method according to 4. Therefore, the same points as the image coding apparatus and the image coding method according to the first or fourth embodiment will not be repeated.

図11に本発明の実施例6に係る画像符号化装置および画像符号化方法における合成予測モードのインター予測指定フラグの設定制御および合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードの決定制御の一例を示す。 FIG. 11 shows the prediction mode of the prediction image to be combined with the intra prediction image in the setting control of the inter-prediction designation flag of the synthesis prediction mode and the processing of the synthesis prediction in the image coding apparatus and the image coding method according to the sixth embodiment of the present invention. An example of decision control is shown.

図11の例では、合成予測モードのインター予測指定フラグとして1ビットの情報を設定する。符号化側では、(1)合成予測モードのインター予測指定フラグの1ビットを伝送しない、(2)当該1ビットを0に設定して伝送する、(3)当該1ビットを1に設定して伝送する、の3種類の処理を実行することができる。 In the example of FIG. 11, 1-bit information is set as the inter-prediction designation flag of the composite prediction mode. On the coding side, (1) 1 bit of the inter-prediction specification flag in the composite prediction mode is not transmitted, (2) the 1 bit is set to 0 for transmission, and (3) the 1 bit is set to 1. It is possible to execute three types of processing, that is, transmission.

これに対し、復号側では、(1)符号化側で合成予測モードのインター予測指定フラグの1ビットを伝送しなかった場合は、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードをマージモードであると判断する。このようにすれば、1ビットの情報を追加しなくともマージモードを指定することが可能となる。マージモード自体隣接ブロックとの予測方法の近似性が非常に高い予測モードであるため、多くの場合マージモードが好適な選択肢となりうる。 On the other hand, on the decoding side, (1) when 1 bit of the inter-prediction designation flag of the composite prediction mode is not transmitted on the coding side, the prediction mode of the prediction image to be combined with the intra prediction image in the synthesis prediction processing. Is judged to be in merge mode. In this way, it is possible to specify the merge mode without adding 1-bit information. Since the merge mode itself is a prediction mode in which the prediction method is very close to the adjacent block, the merge mode can be a suitable option in many cases.

これに対し、(2)符号化側で合成予測モードのインター予測指定フラグの1ビットを0に設定して伝送した場合、復号側では、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードについて、復号対象ブロックの直左隣接ブロックが利用可能かつインター予測であれば直左隣接ブロックと同じインター予測モードを選択する。また、復号対象ブロックの直左隣接ブロックがこの条件を満たさなければ、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードとしてマージモードを選択する。 On the other hand, (2) when 1 bit of the inter-prediction specification flag of the composite prediction mode is set to 0 on the coding side and transmission is performed, the decoding side of the prediction image to be combined with the intra prediction image in the synthesis prediction processing. Regarding the prediction mode, if the immediately left adjacent block of the decoding target block is available and the inter prediction is performed, the same inter prediction mode as the immediately left adjacent block is selected. If the block immediately to the left of the block to be decoded does not satisfy this condition, the merge mode is selected as the prediction mode of the prediction image to be combined with the intra prediction image in the synthesis prediction process.

このようにすれば、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードとしてマージモード以外の予測モードとして復号対象ブロックの直左隣接ブロックの予測モードを選択することができるようになる。復号対象ブロックの直左隣接ブロックの予測モードを用いた方がマージモードよりも符号化効率が高くなる場合に好適である。 In this way, it becomes possible to select the prediction mode of the block immediately to the left of the decoding target block as the prediction mode other than the merge mode as the prediction mode of the prediction image to be combined with the intra prediction image in the synthesis prediction processing. .. It is preferable to use the prediction mode of the block immediately to the left of the block to be decoded when the coding efficiency is higher than that of the merge mode.

また、(3)符号化側で合成予測モードのインター予測指定フラグの1ビットを1に設定して伝送した場合、復号側では、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードについて、復号対象ブロックの直上隣接ブロックが利用可能かつインター予測であれば直上隣接ブロックと同じインター予測モードを選択する。 Further, (3) when 1 bit of the inter-prediction designation flag of the composite prediction mode is set to 1 on the coding side and transmission is performed, the decoding side is in the prediction mode of the prediction image to be combined with the intra prediction image in the synthesis prediction processing. For, if the block immediately above the block to be decoded is available and inter-prediction, the same inter-prediction mode as the immediately above adjacent block is selected.

また、復号対象ブロックの直上隣接ブロックがこの条件を満たさなければ、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードとしてマージモードを選択する。このようにすれば、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードとしてマージモード以外の予測モードとして復号対象ブロックの直上隣接ブロックの予測モードを選択することができるようになる。復号対象ブロックの直上隣接ブロックの予測モードを用いた方がマージモードよりも符号化効率が高くなる場合に好適である。 If the block immediately above the block to be decoded does not satisfy this condition, the merge mode is selected as the prediction mode of the prediction image to be combined with the intra prediction image in the synthesis prediction process. In this way, it becomes possible to select the prediction mode of the block immediately above the decoding target block as the prediction mode other than the merge mode as the prediction mode of the prediction image to be combined with the intra prediction image in the synthesis prediction processing. It is preferable to use the prediction mode of the block immediately above the block to be decoded when the coding efficiency is higher than that of the merge mode.

以上説明した、図11の合成予測モードのインター予測指定フラグの設定制御および合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードの決定制御によれば、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードとしてマージモードとその他の予測モードをより好適に設定および決定することができる。特に、1ビットのフラグの設定のみで、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードとしてマージモード以外の予測モードを導入することができ、好適である。また、隣接ブロックとの予測方法の近似性が非常に高いマージモードは、合成予測モードにおけるインター予測を指定する特別な(または専用の)フラグの伝送無しに設定および決定することができ、伝送情報の増加の抑制として好適である。 According to the setting control of the inter-prediction designation flag of the composite prediction mode and the determination control of the prediction mode of the prediction image to be combined with the intra-prediction image in the processing of the synthesis prediction described above, the intra-prediction image in the processing of the synthesis prediction The merge mode and other prediction modes can be more preferably set and determined as the prediction mode of the prediction image to be combined with. In particular, it is preferable to introduce a prediction mode other than the merge mode as a prediction mode of the prediction image to be combined with the intra prediction image in the processing of the synthesis prediction only by setting the 1-bit flag. In addition, the merge mode, which is very close to the prediction method with the adjacent block, can be set and determined without the transmission of a special (or dedicated) flag that specifies the inter-prediction in the composite prediction mode, and the transmission information. It is suitable for suppressing the increase of.

以上説明した、本発明の実施例6に係る画像符号化装置および画像符号化方法によれば、より好適に画像を符号化することができる。 According to the image coding apparatus and the image coding method according to the sixth embodiment of the present invention described above, the image can be more preferably encoded.

(実施例7)
次に、本発明の実施例7について説明する。
(Example 7)
Next, Example 7 of the present invention will be described.

本発明の実施例7は、実施例2または実施例5に係る画像復号装置および画像復号方法において、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードを指定するフラグを新たに設定し、当該フラグの設定制御および当該フラグを用いた予測モードの決定制御を行うものである。 In the seventh embodiment of the present invention, in the image decoding apparatus and the image decoding method according to the second or fifth embodiment, a flag for designating the prediction mode of the predicted image to be combined with the intra prediction image in the synthetic prediction process is newly set. Then, the setting control of the flag and the determination control of the prediction mode using the flag are performed.

具体的には、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードを図11に示す方法で決定する。図11に示す合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードを指定するフラグを用いた予測モードの決定処理以外のその他の構成、動作、処理はいずれも実施例2または実施例5に係る画像復号装置および画像復号方法と同様である。よって、これら実施例2または実施例5に係る画像復号装置および画像復号方法と同様の点は繰り返しの説明を省略する。 Specifically, the prediction mode of the predicted image to be combined with the intra prediction image in the synthetic prediction process is determined by the method shown in FIG. In the composite prediction process shown in FIG. 11, any other configuration, operation, and process other than the prediction mode determination process using the flag that specifies the prediction mode of the intra-prediction image and the predicted image to be combined is Example 2 or Example. It is the same as the image decoding apparatus and the image decoding method according to 5. Therefore, the same points as the image decoding apparatus and the image decoding method according to the second or fifth embodiment will not be repeated.

また、図11に示す合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードを指定するフラグを用いた予測モードの決定処理の詳細については、実施例6で説明した通りであるので、繰り返しの説明を省略する。 Further, the details of the prediction mode determination process using the flag for specifying the prediction mode of the intra prediction image and the prediction image to be combined in the synthesis prediction process shown in FIG. 11 are as described in the sixth embodiment. The repetitive description will be omitted.

以上説明した、本発明の実施例7に係る画像復号装置および画像復号方法では、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードとしてマージモードとその他の予測モードをより好適に決定することができる。特に、1ビットのフラグの設定のみで、合成予測の処理においてイントラ予測画像と合成する予測画像の予測モードとしてマージモード以外の予測モードを導入することができ、好適である。また、隣接ブロックとの予測方法の近似性が非常に高いマージモードは、合成予測モードにおけるインター予測を指定する特別な(または専用の)フラグの伝送がなくとも決定することができ、符号化側からの伝送情報の増加の抑制として好適である。 In the image decoding apparatus and image decoding method according to the seventh embodiment of the present invention described above, the merge mode and other prediction modes are more preferably determined as the prediction modes of the prediction image to be combined with the intra prediction image in the synthesis prediction processing. can do. In particular, it is preferable to introduce a prediction mode other than the merge mode as a prediction mode of the prediction image to be combined with the intra prediction image in the processing of the synthesis prediction only by setting the 1-bit flag. In addition, the merge mode, which is very close to the prediction method with the adjacent block, can be determined without the transmission of a special (or dedicated) flag that specifies the inter-prediction in the composite prediction mode, and the coding side. It is suitable for suppressing an increase in transmission information from.

以上説明した、本発明の実施例7に係る画像復号装置および画像復号方法によれば、より好適に画像を復号することができる。 According to the image decoding apparatus and the image decoding method according to the seventh embodiment of the present invention described above, the image can be more preferably decoded.

(実施例8)
次に、本発明の実施例8について図面を参照して説明する。
(Example 8)
Next, Example 8 of the present invention will be described with reference to the drawings.

本発明の実施例8は、実施例1に係る画像符号化装置および画像符号化方法において、合成予測の処理に用いるイントラ予測画像として、マトリクス重みづけイントラ予測による予測画像にも対応したものである。なお、本実施例におけるマトリクス重みづけイントラ予測とは、実施例1で「マトリクス予測」と説明した予測処理の一例である。 In the eighth embodiment of the present invention, in the image coding apparatus and the image coding method according to the first embodiment, as the intra-prediction image used for the processing of the composite prediction, the prediction image by the matrix weighted intra-prediction is also supported. .. The matrix weighted intra-prediction in this embodiment is an example of the prediction process described as “matrix prediction” in the first embodiment.

具体的には、図12により説明するマトリクス重みづけイントラ予測を合成予測の処理のイントラ予測画像として用いる。さらに、重みづけパラメータwの決定処理を図8に示す重みづけパラメータwの決定処理から図13に示す重みづけパラメータwの決定処理に変更する。実施例8に係る画像符号化装置および画像符号化方法は、図12により説明するマトリクス重みづけイントラ予測および図13に示す重みづけパラメータwの決定処理以外のその他の構成、動作、処理はいずれも実施例1に係る画像符号化装置および画像符号化方法と同様である。よって、これら実施例1に係る画像符号化装置および画像符号化方法と同様の点は繰り返しの説明を省略する。 Specifically, the matrix-weighted intra-prediction described with reference to FIG. 12 is used as the intra-prediction image for the synthetic prediction process. Further, the determination process of the weighting parameter w is changed from the determination process of the weighting parameter w shown in FIG. 8 to the determination process of the weighting parameter w shown in FIG. The image coding apparatus and the image coding method according to the eighth embodiment have all other configurations, operations, and processes other than the matrix weighted intra prediction described with reference to FIG. 12 and the determination process of the weighting parameter w shown in FIG. It is the same as the image coding apparatus and the image coding method according to the first embodiment. Therefore, the same points as the image coding apparatus and the image coding method according to the first embodiment will not be repeated.

まず、図12を用いて、マトリクス重みづけイントラ予測について説明する。なお、復号側でも同様のマトリクス重みづけイントラ予測を行うので、予測対象ブロックは「符号化(復号)対象ブロック」という表現で説明する。
マトリクス重みづけイントラ予測は符号化(復号)対象ブロックの隣接ブロックの境界画素と、モードで指定されたマトリクスによるベクトル演算により画素の予測を行うものである。マトリクス重みづけイントラ予測の処理は、境界画素準備処理ののち(1)ダウンサンプリング処理、(2)ベクトル演算(重みづけマトリクス演算)処理、(3)アップサンプリング処理を経て予測画像を生成する。
First, the matrix weighted intra-prediction will be described with reference to FIG. Since the same matrix-weighted intra-prediction is performed on the decoding side, the prediction target block will be described by the expression “coding (decoding) target block”.
Matrix weighted intra-prediction predicts pixels by vector calculation using the boundary pixels of adjacent blocks of the block to be coded (decoded) and the matrix specified in the mode. The matrix weighted intra-prediction process generates a predicted image through (1) downsampling process, (2) vector operation (weighted matrix operation) process, and (3) upsampling process after boundary pixel preparation process.

まず、境界画素準備処理として、符号化(復号)対象ブロックに対し、直左の隣接するブロックから1ラインの境界画素を取得し、直左境界画素列とする。また直上の隣接するブロックから1ラインの境界画素を取得し、直上境界画素列とする。ここで、境界画素が利用不可の場合、既存のイントラ予測と同様の手法で作成する。直左、直上の境界画素に1つも復号画素がなければ、1<<(Bitdepth-1)による中央値とする。左下の画素から上方向、右方向の順に右上にスキャンして、初めて存在した画素を左下の画素にコピーする。再度、左下から上方向にスキャンし、画素がなければその下の画素をコピーする。同様に左上から右方向にスキャンし、画素がなければその左の画素をコピーする。 First, as the boundary pixel preparation process, one line of boundary pixels is acquired from the adjacent block on the immediate left with respect to the block to be encoded (decoded), and the boundary pixel is formed into the immediate left boundary pixel string. Further, the boundary pixels of one line are acquired from the adjacent blocks directly above, and the boundary pixels are obtained as the boundary pixels directly above. Here, when the boundary pixel is not available, it is created by the same method as the existing intra prediction. If there is no decoding pixel in the boundary pixel directly to the left or directly above, the median value is set to 1 << (Bitdepth-1). Scan from the lower left pixel to the upper right in the order of upward and right, and copy the pixel that existed for the first time to the lower left pixel. Scan from the lower left to the upper again, and if there are no pixels, copy the pixels below it. Similarly, scan from the upper left to the right, and if there is no pixel, copy the pixel to the left.

次に、(1)ダウンサンプリング処理として、直左境界画素列と、直上境界画素列に対し、それぞれ2画素ごとに平均を取り、縮小直左境界画素列と縮小直上境界画素列とする。 Next, as (1) downsampling processing, the immediate left boundary pixel string and the immediate upper boundary pixel string are averaged every two pixels, respectively, and the reduced direct left boundary pixel string and the reduced direct upper boundary pixel string are obtained.

次に、(2)ベクトル演算(重みづけマトリクス演算)として、縮小直左境界画素列と縮小直上境界画素列を、符号化(復号)対象ブロックのサイズと指定されたモードによって決められる方法により合成して、縮小境界ベクトルを生成する。次に、マトリクス重みづけイントラ予測モードによって指定されたマトリクスによるベクトル演算を、上述の縮小境界ベクトルに行い、縮小予測ベクトルを生成する。縮小予測ベクトルを元の復号対象ブロックのサブサンプル位置の予測画素を生成する。 Next, as (2) vector calculation (weighting matrix calculation), the reduced direct left boundary pixel string and the reduced direct upper boundary pixel string are combined by a method determined by the size of the block to be encoded (decoded) and the specified mode. To generate a reduced boundary vector. Next, the vector operation by the matrix specified by the matrix weighted intra prediction mode is performed on the above-mentioned reduction boundary vector to generate the reduction prediction vector. The reduction prediction vector is used to generate the prediction pixel of the subsample position of the original decoding target block.

次に、(3)アップサンプリング処理として、境界画素列と縮小境界画素列と、サブサンプル位置の予測画素から線形補間を行い、符号化(復号)対象ブロックの予測画素全体を生成する。 Next, as (3) upsampling processing, linear interpolation is performed from the boundary pixel string, the reduced boundary pixel string, and the predicted pixel of the subsample position to generate the entire predicted pixel of the coded (decoded) target block.

次に、図13に本発明の実施例8に係る画像符号化装置および画像符号化方法における合成予測の処理における重みづけパラメータwの決定処理の一例を示す。なお、復号側でも同様の重みづけパラメータwの決定処理を行うので、予測対象ブロックは「符号化(復号)対象ブロック」という表現で説明する。 Next, FIG. 13 shows an example of a weighting parameter w determination process in the synthetic prediction process in the image coding apparatus and the image coding method according to the eighth embodiment of the present invention. Since the same weighting parameter w is determined on the decoding side, the prediction target block will be described by the expression “encoding (decoding) target block”.

図13における合成予測の処理における重みづけパラメータwの決定処理では、図8における重みづけパラメータwの決定処理に、合成予測の処理に用いるイントラ予測がマトリクス重みづけイントラ予測である場合の重みづけパラメータwの決定処理を追加したものである。具体的には、図13の表の一番右の列が追加されている。ここで、マトリクス重みづけイントラ予測は、マトリクス重みづけイントラ予測モードで符号化(復号)対象ブロックに対して、フラグが指定する重みづけマトリクス次第で予測画像が変化する。前記フラグは符号化側で指定し、復号側へ伝送する。これにより符号化側で指定した重みづけマトリクスを復号側でも判別できるものである。よって、マトリクス重みづけイントラ予測は、隣接ブロックとの予測方法の近似性が決して高くないイントラ予測である。しかしながら、直上の隣接ブロックの境界画素列と直差の隣接ブロックの境界画素列の両者を用いるため、マトリクス重みづけイントラ予測の予測画像と隣接ブロックの予測画像の近似性自体は比較的高い。また、マトリクス重みづけイントラ予測は、フラグで指定する重みづけマトリクス次第で画像に応じて予測精度を高めることができるため、予測精度を高めにくいプラナー予測とは傾向が相違する。従って、合成予測に用いるイントラ予測として、マトリクス重みづけイントラ予測を用いる場合は、図13に示すように、重みづけパラメータwをw=3として決定すればよい。すなわち、プラナー予測におけるwの値よりも大きいwの値を選択すればよい。 In the process of determining the weighting parameter w in the processing of the composite prediction in FIG. 13, the weighting parameter when the intra prediction used in the processing of the composite prediction is the matrix weighted intra prediction in the process of determining the weighting parameter w in FIG. The determination process of w is added. Specifically, the rightmost column of the table in FIG. 13 has been added. Here, in the matrix weighted intra prediction, the predicted image changes depending on the weighted matrix specified by the flag for the coded (decoded) target block in the matrix weighted intra prediction mode. The flag is specified on the coding side and transmitted to the decoding side. As a result, the weighting matrix specified on the coding side can be discriminated on the decoding side as well. Therefore, the matrix weighted intra-prediction is an intra-prediction in which the approximation of the prediction method with the adjacent block is not high. However, since both the boundary pixel array of the adjacent block directly above and the boundary pixel array of the adjacent block directly above are used, the approximation of the predicted image of the matrix weighted intra prediction and the predicted image of the adjacent block is relatively high. Further, the matrix weighted intra prediction has a different tendency from the planner prediction in which it is difficult to improve the prediction accuracy because the prediction accuracy can be increased according to the image depending on the weighting matrix specified by the flag. Therefore, when matrix weighted intra-prediction is used as the intra-prediction used for the composite prediction, the weighting parameter w may be determined as w = 3 as shown in FIG. That is, the value of w that is larger than the value of w in the planner prediction may be selected.

以上説明した図13の合成予測モードにおけるwの決定例によれば、合成予測モードに用いるイントラ予測の種類の選択肢としてマトリクス重みづけイントラ予測を用いた場合でも、イントラ予測画像とインター予測画像の合成におけるイントラ予測画像の重みづけをより好適に決定することが可能となる。 According to the determination example of w in the synthetic prediction mode of FIG. 13 described above, even when matrix weighted intra prediction is used as an option of the type of intra prediction used in the synthetic prediction mode, the intra prediction image and the inter prediction image are combined. It becomes possible to more preferably determine the weighting of the intra-predicted image in.

以上説明した実施例8に係る画像符号化装置および画像符号化方法によれば、より好適な合成予測モードを実現することができ、より好適に画像を符号化することができる。 According to the image coding apparatus and the image coding method according to the eighth embodiment described above, a more suitable synthesis prediction mode can be realized, and an image can be more preferably encoded.

(実施例9)
次に、本発明の実施例9について説明する。
(Example 9)
Next, Example 9 of the present invention will be described.

本発明の実施例9は、実施例2に係る画像復号装置および画像復号方法において、合成予測の処理に用いるイントラ予測画像として、マトリクス重みづけイントラ予測による予測画像にも対応したものである。なお、本実施例におけるマトリクス重みづけイントラ予測とは、実施例2で「マトリクス予測」と説明した予測処理の一例である。マトリクス重みづけイントラ予測の処理の詳細については、実施例8で説明した通りであるので、繰り返しの説明は省略する。 In the image decoding apparatus and the image decoding method according to the second embodiment, the ninth embodiment of the present invention also corresponds to the predicted image by the matrix weighted intra-prediction as the intra-predicted image used for the processing of the composite prediction. The matrix weighted intra prediction in this embodiment is an example of the prediction process described as “matrix prediction” in the second embodiment. Since the details of the matrix weighted intra-prediction processing are as described in the eighth embodiment, the repeated description will be omitted.

具体的には、重みづけパラメータwの決定処理を図8に示す重みづけパラメータwの決定処理から図13に示す重みづけパラメータwの決定処理に変更する。実施例9に係る画像復号装置および画像復号方法は、図13に示す重みづけパラメータwの決定処理を用いるものであるが、図13に示す重みづけパラメータwの決定処理以外のその他の構成、動作、処理はいずれも実施例2に係る画像復号装置および画像復号方法と同様である。よって、これら実施例2に係る画像復号装置および画像復号方法と同様の点は繰り返しの説明を省略する。 Specifically, the determination process of the weighting parameter w is changed from the determination process of the weighting parameter w shown in FIG. 8 to the determination process of the weighting parameter w shown in FIG. The image decoding apparatus and the image decoding method according to the ninth embodiment use the determination process of the weighting parameter w shown in FIG. 13, but other configurations and operations other than the determination process of the weighting parameter w shown in FIG. 13 are used. , The processing is the same as the image decoding apparatus and the image decoding method according to the second embodiment. Therefore, the same points as the image decoding apparatus and the image decoding method according to the second embodiment will not be repeated.

また、図13の重みづけパラメータwの決定処理の詳細については、実施例8で説明した通りであるので、繰り返しの説明を省略する。 Further, since the details of the determination process of the weighting parameter w in FIG. 13 are as described in the eighth embodiment, the repeated description will be omitted.

以上説明した、本発明の実施例9に係る画像復号装置および画像復号方法では、図13に示すように、合成予測モードに用いるイントラ予測の種類の選択肢としてマトリクス重みづけイントラ予測を用いた場合でも、イントラ予測画像とインター予測画像の合成におけるイントラ予測画像の重みづけをより好適に決定することが可能となる。 In the image decoding apparatus and image decoding method according to the ninth embodiment of the present invention described above, as shown in FIG. 13, even when matrix-weighted intra-prediction is used as an option of the type of intra-prediction used in the composite prediction mode. , It becomes possible to more preferably determine the weighting of the intra-prediction image in the synthesis of the intra-prediction image and the inter-prediction image.

以上説明した、本発明の実施例9に係る画像復号装置および画像復号方法によれば、より好適な合成予測モードを実現することができ、より好適に画像を復号することができる。 According to the image decoding apparatus and the image decoding method according to the ninth embodiment of the present invention described above, a more suitable synthesis prediction mode can be realized, and an image can be more preferably decoded.

なお、以上説明した各図、各方法等の実施例のいずれを組み合わせても、本発明の一実施の形態となりうる。 It should be noted that any combination of the above-described drawings and examples of each method and the like can be an embodiment of the present invention.

以上説明した本発明の各実施例によれば、符号量を低減し、画質の劣化を防ぐことができる。すなわち、高い圧縮率とより良い画質とを実現することができる。 According to each embodiment of the present invention described above, the amount of code can be reduced and deterioration of image quality can be prevented. That is, a high compression rate and a better image quality can be realized.

101…画像入力部、102…ブロック分割部、103…モード管理部、104…イントラ予測部、105…インター予測部、106…ブロック処理部、107…変換・量子化部、108…逆量子化・逆変換部、109…画像合成・フィルタ部、110…復号画像管理部、111…エントロピー符号化部、112…データ出力部、201…ストリーム解析部、202…ブロック管理部、203…モード判定部、204…イントラ予測部、205…インター予測部、206…係数解析部、207…逆量子化・逆変換部、208…画像合成・フィルタ部、209…復号画像管理部、210…画像出力部、120…合成予測部、220…合成予測部。 101 ... Image input unit, 102 ... Block division unit, 103 ... Mode management unit, 104 ... Intra prediction unit, 105 ... Inter prediction unit, 106 ... Block processing unit, 107 ... Conversion / quantization unit, 108 ... Inverse quantization / Inverse conversion unit, 109 ... image composition / filter unit, 110 ... decoded image management unit, 111 ... entropy coding unit, 112 ... data output unit, 201 ... stream analysis unit, 202 ... block management unit, 203 ... mode determination unit, 204 ... Intra prediction unit, 205 ... Inter prediction unit, 206 ... Coefficient analysis unit, 207 ... Inverse quantization / inverse conversion unit, 208 ... Image composition / filter unit, 209 ... Decoded image management unit, 210 ... Image output unit, 120 ... Synthetic prediction unit, 220 ... Synthetic prediction unit.

Claims (6)

画像を符号化する画像符号化方法であって、
符号化対象ブロックについてインター予測の予測画像とイントラ予測の予測画像とを合成する合成処理を行って合成予測の予測画像を生成する予測画像生成ステップと、
前記予測画像生成ステップで生成した予測画像と前記符号化対象ブロックの画像の画素値との差分を符号化する符号化ステップと、を備え、
前記合成処理に用いる前記イントラ予測には複数の種類のイントラ予測を用いることができ、前記複数の種類のイントラ予測には、マトリクス重みづけイントラ予測が含まれるものであり、前記合成処理では、前記インター予測の予測画像と前記イントラ予測の予測画像とに重みづけ処理を行うものであり、前記重みづけ処理における前記イントラ予測の予測画像の重みづけパラメータを前記イントラ予測の種類に応じて決定する、画像符号化方法。
An image coding method that encodes an image.
A prediction image generation step of generating a prediction image of the composite prediction by performing a synthesis process for synthesizing the prediction image of the inter-prediction and the prediction image of the intra-prediction for the coded target block.
A coding step for encoding the difference between the predicted image generated in the predicted image generation step and the pixel value of the image of the coded target block is provided.
A plurality of types of intra-prediction can be used for the intra-prediction used in the synthesis process, and the plurality of types of intra-prediction include a matrix-weighted intra-prediction. The prediction image of the inter prediction and the prediction image of the intra prediction are weighted, and the weighting parameters of the prediction image of the intra prediction in the weighting process are determined according to the type of the intra prediction. Image coding method.
画像を符号化する画像符号化方法であって、
符号化対象ブロックについてインター予測の予測画像とイントラ予測の予測画像とを合成する合成処理を行って合成予測の予測画像を生成する予測画像生成ステップと、
前記予測画像生成ステップで生成した予測画像と前記符号化対象ブロックの画像の画素値との差分を符号化する符号化ステップと、を備え、
前記予測画像生成ステップで用いることのできるイントラ予測の種類には、プラナー予測と、マトリクス重みづけイントラ予測とが含まれており、
前記合成処理では、前記インター予測の予測画像と前記イントラ予測の予測画像とに重みづけ処理を行うものであり、前記重みづけ処理の処理状態には、前記イントラ予測の予測画像の重みづけについて、前記イントラ予測の種類のうちプラナー予測がマトリクス重みづけイントラ予測よりも小さい重みづけを設定される状態がある、画像符号化方法。
An image coding method that encodes an image.
A prediction image generation step of generating a prediction image of the composite prediction by performing a synthesis process for synthesizing the prediction image of the inter-prediction and the prediction image of the intra-prediction for the coded target block.
A coding step for encoding the difference between the predicted image generated in the predicted image generation step and the pixel value of the image of the coded target block is provided.
The types of intra-prediction that can be used in the prediction image generation step include planner prediction and matrix-weighted intra-prediction.
In the synthesis processing, the prediction image of the inter-prediction and the prediction image of the intra-prediction are weighted, and in the processing state of the weighting processing, the weighting of the prediction image of the intra-prediction is set. An image coding method in which, among the types of intra-prediction, the planner prediction is set to be weighted smaller than the matrix-weighted intra-prediction.
画像を符号化する画像符号化方法であって、
符号化対象ブロックについてインター予測の予測画像とイントラ予測の予測画像とを合成する合成処理を行って合成予測の予測画像を生成する予測画像生成ステップと、
前記予測画像生成ステップで生成した予測画像と前記符号化対象ブロックの画像の画素値との差分を符号化する符号化ステップと、を備え、
前記予測画像生成ステップで用いることのできるイントラ予測の種類には、プラナー予測と、マトリクス重みづけイントラ予測とが含まれており、
前記合成処理では、前記インター予測の予測画像と前記イントラ予測の予測画像とに重みづけ処理を行うものであり、前記重みづけ処理の処理状態には、前記イントラ予測の種類がプラナー予測であって、前記イントラ予測の予測画像の重みづけが最も小さく設定される状態がある、画像符号化方法。
An image coding method that encodes an image.
A prediction image generation step of generating a prediction image of the composite prediction by performing a synthesis process for synthesizing the prediction image of the inter-prediction and the prediction image of the intra-prediction for the coded target block.
A coding step for encoding the difference between the predicted image generated in the predicted image generation step and the pixel value of the image of the coded target block is provided.
The types of intra-prediction that can be used in the prediction image generation step include planner prediction and matrix-weighted intra-prediction.
In the synthesis processing, the prediction image of the inter-prediction and the prediction image of the intra-prediction are weighted, and in the processing state of the weighting processing, the type of the intra-prediction is planner prediction. , An image coding method in which the weighting of the predicted image of the intra prediction is set to the minimum.
画像を符号化した符号化ストリームを復号する画像復号方法であって、
復号対象ブロックについてインター予測の予測画像とイントラ予測の予測画像とを合成する合成処理を行って合成予測の予測画像を生成する予測画像生成ステップと、
前記予測画像生成ステップで生成した予測画像と前記復号対象ブロックの差分画像とに基づいて復号画像を生成する復号画像生成ステップと、を備え、
前記合成処理に用いる前記イントラ予測には複数の種類のイントラ予測を用いることができ、前記複数の種類のイントラ予測には、マトリクス重みづけイントラ予測が含まれるものであり、
前記合成処理では、前記インター予測の予測画像と前記イントラ予測の予測画像とに重みづけ処理を行うものであり、前記重みづけ処理における前記イントラ予測の予測画像の重みづけパラメータを前記イントラ予測の種類に応じて決定する、画像復号方法。
An image decoding method that decodes a coded stream that encodes an image.
A predictive image generation step of generating a predicted image of the composite prediction by performing a composite process of synthesizing the predicted image of the inter-prediction and the predicted image of the intra-prediction for the block to be decoded.
A decoded image generation step of generating a decoded image based on the predicted image generated in the predicted image generation step and the difference image of the decoding target block is provided.
A plurality of types of intra-prediction can be used for the intra-prediction used in the synthesis process, and the plurality of types of intra-prediction includes a matrix-weighted intra-prediction.
In the synthesis process, the prediction image of the inter-prediction and the prediction image of the intra-prediction are weighted, and the weighting parameter of the prediction image of the intra-prediction in the weighting process is the type of the intra-prediction. Image decoding method determined according to.
画像を符号化した符号化ストリームを復号する画像復号方法であって、
復号対象ブロックについてインター予測の予測画像とイントラ予測の予測画像とを合成する合成処理を行って合成予測の予測画像を生成する予測画像生成ステップと、
前記予測画像生成ステップで生成した予測画像と前記復号対象ブロックの差分画像とに基づいて復号画像を生成する復号画像生成ステップと、を備え、
前記予測画像生成ステップで用いることのできるイントラ予測の種類には、プラナー予測と、マトリクス重みづけイントラ予測とが含まれており、
前記合成処理では、前記インター予測の予測画像と前記イントラ予測の予測画像とに重みづけ処理を行うものであり、前記重みづけ処理の処理状態には、前記イントラ予測の予測画像の重みづけについて、前記イントラ予測の種類のうちプラナー予測がマトリクス重みづけイントラ予測よりも小さい重みづけを設定される状態がある、画像復号方法。
An image decoding method that decodes a coded stream that encodes an image.
A predictive image generation step of generating a predicted image of the composite prediction by performing a composite process of synthesizing the predicted image of the inter-prediction and the predicted image of the intra-prediction for the block to be decoded.
A decoded image generation step of generating a decoded image based on the predicted image generated in the predicted image generation step and the difference image of the decoding target block is provided.
The types of intra-prediction that can be used in the prediction image generation step include planner prediction and matrix-weighted intra-prediction.
In the synthesis processing, the prediction image of the inter-prediction and the prediction image of the intra-prediction are weighted, and in the processing state of the weighting processing, the weighting of the prediction image of the intra-prediction is set. An image decoding method in which, among the types of intra-prediction, the planner prediction is set to be weighted smaller than the matrix-weighted intra-prediction.
画像を符号化した符号化ストリームを復号する画像復号方法であって、
復号対象ブロックについてインター予測の予測画像とイントラ予測の予測画像とを合成する合成処理を行って合成予測の予測画像を生成する予測画像生成ステップと、
前記予測画像生成ステップで生成した予測画像と前記復号対象ブロックの差分画像とに基づいて復号画像を生成する復号画像生成ステップと、を備え、
前記予測画像生成ステップで用いることのできるイントラ予測の種類には、プラナー予測と、マトリクス重みづけイントラ予測とが含まれており、
前記合成処理では、前記インター予測の予測画像と前記イントラ予測の予測画像とに重みづけ処理を行うものであり、前記重みづけ処理の処理状態には、前記イントラ予測の種類がプラナー予測であって、前記イントラ予測の予測画像の重みづけが最も小さく設定される状態がある、画像復号方法。
An image decoding method that decodes a coded stream that encodes an image.
A predictive image generation step of generating a predicted image of the composite prediction by performing a composite process of synthesizing the predicted image of the inter-prediction and the predicted image of the intra-prediction for the block to be decoded.
A decoded image generation step of generating a decoded image based on the predicted image generated in the predicted image generation step and the difference image of the decoding target block is provided.
The types of intra-prediction that can be used in the prediction image generation step include planner prediction and matrix-weighted intra-prediction.
In the synthesis processing, the prediction image of the inter prediction and the prediction image of the intra prediction are weighted, and in the processing state of the weighting processing, the type of the intra prediction is planner prediction. , An image decoding method in which the weighting of the predicted image of the intra prediction is set to the minimum.
JP2019228713A 2019-12-19 2019-12-19 Image coding method and image decoding method Pending JP2021097368A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2019228713A JP2021097368A (en) 2019-12-19 2019-12-19 Image coding method and image decoding method
PCT/JP2020/046290 WO2021125085A1 (en) 2019-12-19 2020-12-11 Image coding method and image decoding method
CN202080087366.0A CN114830643A (en) 2019-12-19 2020-12-11 Image encoding method and image decoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019228713A JP2021097368A (en) 2019-12-19 2019-12-19 Image coding method and image decoding method

Publications (1)

Publication Number Publication Date
JP2021097368A true JP2021097368A (en) 2021-06-24

Family

ID=76431924

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019228713A Pending JP2021097368A (en) 2019-12-19 2019-12-19 Image coding method and image decoding method

Country Status (3)

Country Link
JP (1) JP2021097368A (en)
CN (1) CN114830643A (en)
WO (1) WO2021125085A1 (en)

Also Published As

Publication number Publication date
WO2021125085A1 (en) 2021-06-24
CN114830643A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
KR102093205B1 (en) Methods of determination for chroma quantization parameter and apparatuses for using the same
US20240007662A1 (en) Coding enhancement in cross-component sample adaptive offset
US20230336785A1 (en) Coding enhancement in cross-component sample adaptive offset
US20230319315A1 (en) Coding enhancement in cross-component sample adaptive offset
WO2021131796A1 (en) Image encoding method and image decoding method
WO2021125082A1 (en) Image coding method and image decoding method
WO2021125085A1 (en) Image coding method and image decoding method
WO2021125086A1 (en) Image encoding method and image decoding method
WO2021131795A1 (en) Image encoding method and image decoding method
WO2021125084A1 (en) Image encoding method and image decoding method
WO2021125083A1 (en) Image encoding method and image decoding method
WO2021132490A1 (en) Picture encoding method and picture decoding method
WO2021132568A1 (en) Image encoding method and image decoding method
WO2021060345A1 (en) Image encoding method and image decoding method
JP2021129148A (en) Prediction device, encoding device, decoding device, and program
WO2021065655A1 (en) Image encoding method, image encoding device, image decoding method, and image decoding device
WO2021065656A1 (en) Image encoding method, image encoding device, image decoding method, and image decoding device
US20240137546A1 (en) Coding enhancement in cross-component sample adaptive offset

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20211022