JP7441638B2 - Encoding device, decoding device, and program - Google Patents

Encoding device, decoding device, and program Download PDF

Info

Publication number
JP7441638B2
JP7441638B2 JP2019221549A JP2019221549A JP7441638B2 JP 7441638 B2 JP7441638 B2 JP 7441638B2 JP 2019221549 A JP2019221549 A JP 2019221549A JP 2019221549 A JP2019221549 A JP 2019221549A JP 7441638 B2 JP7441638 B2 JP 7441638B2
Authority
JP
Japan
Prior art keywords
intra prediction
unit
block
priority
syntax
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.)
Active
Application number
JP2019221549A
Other languages
Japanese (ja)
Other versions
JP2021093575A (en
Inventor
慎平 根本
俊輔 岩村
和久 井口
敦郎 市ヶ谷
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.)
Japan Broadcasting Corp
Original Assignee
Japan Broadcasting Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Japan Broadcasting Corp filed Critical Japan Broadcasting Corp
Priority to JP2019221549A priority Critical patent/JP7441638B2/en
Publication of JP2021093575A publication Critical patent/JP2021093575A/en
Application granted granted Critical
Publication of JP7441638B2 publication Critical patent/JP7441638B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

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

静止画像や動画像の伝送時や保存時のデータ量を圧縮するための映像符号化方式の研究が行われている。近年、8K-SHVに代表されるような超高解像度映像の普及が進んでおり、膨大なデータ量の動画像を伝送するための手法としてAVC/H.264やHEVC/H.265などの符号化方式が知られている。 Research is being conducted on video encoding methods to compress the amount of data when transmitting and storing still images and moving images. In recent years, ultra-high resolution videos such as 8K-SHV have become increasingly popular, and AVC/H. 264 and HEVC/H. Encoding systems such as H.265 are known.

MPEG及びITUが合同で標準化を行っている次世代映像符号化方式であるVVCの評価用ソフトウェア(VTM)では、フレーム内の空間的な相関を利用したイントラ予測が利用されている(例えば、非特許文献1参照)。 The evaluation software (VTM) for VVC, which is a next-generation video coding system jointly standardized by MPEG and ITU, uses intra prediction that uses spatial correlation within a frame (for example, (See Patent Document 1).

イントラ予測では、符号化対象ブロックの周辺の復号済み参照画素を利用して、Planar予測、DC予測、及び65通りの方向性予測の、計67通りの予測モードから符号化装置側で最適なモードが選択され、その情報が復号装置側へ送られる。 In intra prediction, the encoding device selects the optimal mode from a total of 67 prediction modes, including planar prediction, DC prediction, and 65 types of directional prediction, using decoded reference pixels around the block to be encoded. is selected and the information is sent to the decoding device.

また、符号化対象ブロック及びその周辺ブロックにおいて利用される予測モードは高い相関があるため、符号化対象ブロックの左及び上のブロックで利用された予測モードと、それらの予測モードに近い方向の予測モードに優先順位をつけて、他の予測モードに対して相対的に少ないデータ量を割り当てる優先イントラ予測モード(MPM:Most Probable Modes)の適用を可能としている。 In addition, since the prediction modes used in the block to be encoded and its surrounding blocks have a high correlation, the prediction modes used in the blocks to the left and above the block to be encoded, and the predictions in the direction close to those prediction modes. It is possible to apply a priority intra prediction mode (MPM: Most Probable Modes) in which modes are prioritized and a relatively small amount of data is allocated relative to other prediction modes.

HEVCにおいては、所定サイズの符号化対象ブロックについて、変換係数の二値化の際の符号化及び復号順を示すスキャン順がイントラ予測モードに応じて切り替えられる。具体的には、イントラ予測モードに応じた予測残差の分布の統計的な偏りを利用し、適応的にスキャン順を切り替えることにより、符号化効率の改善が可能である。 In HEVC, for a block to be encoded of a predetermined size, the scan order indicating the encoding and decoding order during binarization of transform coefficients is switched according to the intra prediction mode. Specifically, it is possible to improve the encoding efficiency by adaptively switching the scan order using statistical bias in the distribution of prediction residuals depending on the intra prediction mode.

JVET-O2001 Versatile Video Coding (Draft 6)JVET-O2001 Versatile Video Coding (Draft 6)

上述のように、イントラ予測モードに応じて予測残差の分布に統計的な偏りが生じる。例えば、イントラ予測モードが垂直に近い方向性予測モードである場合、ブロック上部に大きな値の変換係数が現れる可能性が高い。その場合は水平方向スキャンでブロック下部から上部にかけてスキャンすることで効率が改善する。 As described above, statistical bias occurs in the distribution of prediction residuals depending on the intra prediction mode. For example, when the intra prediction mode is a nearly vertical directional prediction mode, there is a high possibility that a large value transform coefficient will appear at the top of the block. In that case, efficiency can be improved by scanning horizontally from the bottom to the top of the block.

しかしながら、従来の符号化方式ではストリーミングの構文解析時にイントラ予測モードの特定が必要になる場合、その時点で次の構文解析処理を続けられないため、復号装置側のスループットの低減を招くという問題がある。 However, with conventional encoding methods, when it is necessary to identify the intra prediction mode during streaming syntax analysis, the next syntax analysis process cannot be continued at that point, resulting in a reduction in throughput on the decoding device side. be.

そこで、本発明は、復号装置側のスループット低減を抑制しつつ、符号化効率の改善が可能な符号化装置、復号装置、及びプログラムを提供することを目的とする。 Therefore, an object of the present invention is to provide an encoding device, a decoding device, and a program that can improve encoding efficiency while suppressing reduction in throughput on the decoding device side.

第1の態様に係る符号化装置は、画像を構成するブロック単位で符号化を行う符号化装置であって、符号化対象ブロックの周辺の復号済み画素を用いるイントラ予測によって、前記符号化対象ブロックに対応する予測ブロックを生成するイントラ予測部と、前記符号化対象ブロックと前記予測ブロックとの差を表す予測残差に対して変換処理及び量子化処理を行う変換・量子化部と、前記変換・量子化部が出力する変換係数を符号化するエントロピー符号化部と、前記イントラ予測に用いたイントラ予測モードを示すシンタックスに応じて、前記エントロピー符号化部が前記変換係数を符号化するときのスキャン順を複数のスキャン順候補の中から決定するスキャン制御部と、を備え、前記スキャン制御部は、前記シンタックスから前記イントラ予測モードを特定することなく、前記シンタックスから前記スキャン順を直接的に決定することを要旨とする。 The encoding device according to the first aspect is an encoding device that performs encoding in units of blocks constituting an image, and the encoding device performs encoding on a block-by-block basis that constitutes an image, and performs intra prediction using decoded pixels surrounding the encoding target block. an intra prediction unit that generates a prediction block corresponding to the block; a transformation/quantization unit that performs transformation processing and quantization processing on a prediction residual representing a difference between the encoding target block and the prediction block; - An entropy encoding unit that encodes the transform coefficients output by the quantization unit, and when the entropy encoding unit encodes the transform coefficients according to a syntax indicating the intra prediction mode used for the intra prediction. a scan control unit that determines the scan order from among a plurality of scan order candidates, the scan control unit determining the scan order from the syntax without specifying the intra prediction mode from the syntax. The gist is to make decisions directly.

第2の態様に係る復号装置は、画像を構成するブロック単位で復号を行う復号装置であって、符号化ストリームを復号することで、復号対象ブロックのイントラ予測に用いるイントラ予測モードを示すシンタックスと、前記復号対象ブロックの変換係数とを出力するエントロピー復号部と、前記シンタックスに応じて、前記エントロピー復号部が前記変換係数を復号するときのスキャン順を複数のスキャン順候補の中から決定するスキャン制御部と、前記復号対象ブロックの周辺の復号済み画素を用いるイントラ予測によって、前記復号対象ブロックに対応する予測ブロックを生成するイントラ予測部と、前記エントロピー復号部が出力する前記変換係数に対して逆量子化処理及び逆変換処理を行って予測残差を復元する逆量子化・逆変換部と、前記復元した予測残差と前記予測ブロックとを合成して前記復号対象ブロックを復元する合成部と、を備え、前記スキャン制御部は、前記シンタックスから前記イントラ予測モードを特定することなく、前記シンタックスから前記スキャン順を直接的に決定することを要旨とする。 The decoding device according to the second aspect is a decoding device that performs decoding in units of blocks constituting an image, and by decoding the encoded stream, a syntax indicating an intra prediction mode used for intra prediction of the block to be decoded is provided. and an entropy decoding unit that outputs a transform coefficient of the block to be decoded, and a scan order in which the entropy decoder decodes the transform coefficient is determined from among a plurality of scan order candidates according to the syntax. an intra prediction unit that generates a prediction block corresponding to the block to be decoded by intra prediction using decoded pixels surrounding the block to be decoded; an inverse quantization/inverse transform unit that performs an inverse quantization process and an inverse transform process to restore a prediction residual, and combines the restored prediction residual and the prediction block to restore the decoding target block. The scan control unit directly determines the scan order from the syntax without specifying the intra prediction mode from the syntax.

第3の態様に係るプログラムは、コンピュータを第1の態様に係る符号化装置として機能させることを要旨とする。 The gist of the program according to the third aspect is to cause a computer to function as the encoding device according to the first aspect.

第4の態様に係るプログラムは、コンピュータを第2の態様に係る復号装置として機能させることを要旨とする。 The gist of the program according to the fourth aspect is to cause a computer to function as the decoding device according to the second aspect.

本発明によれば、復号装置側のスループット低減を抑制しつつ、符号化効率の改善が可能な符号化装置、復号装置、及びプログラムを提供できる。 According to the present invention, it is possible to provide an encoding device, a decoding device, and a program that can improve encoding efficiency while suppressing reduction in throughput on the decoding device side.

実施形態に係る符号化装置の構成を示す図である。FIG. 1 is a diagram showing the configuration of an encoding device according to an embodiment. 実施形態に係るスキャン順を示す図である。FIG. 3 is a diagram showing a scan order according to an embodiment. 実施形態に係る非MPMモード番号の一例を示す図である。It is a figure showing an example of a non-MPM mode number concerning an embodiment. 実施形態に係るイントラ予測モードの候補を示す図である。FIG. 3 is a diagram showing intra prediction mode candidates according to the embodiment. 実施形態に係る対応付け情報を示す図である。FIG. 3 is a diagram showing association information according to an embodiment. 実施形態に係る復号装置の構成を示す図である。FIG. 1 is a diagram showing the configuration of a decoding device according to an embodiment. 実施形態に係るスキャン制御部の動作を示す図である。FIG. 3 is a diagram showing the operation of the scan control unit according to the embodiment.

図面を参照して、実施形態に係る符号化装置及び復号装置について説明する。実施形態に係る符号化装置及び復号装置は、MPEGに代表される動画像の符号化及び復号をそれぞれ行う。以下の図面の記載において、同一又は類似の部分には同一又は類似の符号を付している。 An encoding device and a decoding device according to an embodiment will be described with reference to the drawings. The encoding device and the decoding device according to the embodiment encode and decode moving images represented by MPEG, respectively. In the description of the drawings below, the same or similar parts are designated by the same or similar symbols.

<符号化装置の構成>
まず、本実施形態に係る符号化装置の構成について説明する。図1は、本実施形態に係る符号化装置1の構成を示す図である。
<Configuration of encoding device>
First, the configuration of the encoding device according to this embodiment will be explained. FIG. 1 is a diagram showing the configuration of an encoding device 1 according to this embodiment.

図1に示すように、符号化装置1は、ブロック分割部100と、減算部110と、変換・量子化部120と、エントロピー符号化部130と、スキャン制御部131と、逆量子化・逆変換部140と、合成部150と、メモリ160と、予測部170とを有する。 As shown in FIG. 1, the encoding device 1 includes a block division section 100, a subtraction section 110, a transform/quantization section 120, an entropy encoding section 130, a scan control section 131, and an inverse quantization/inverse It includes a converting section 140, a combining section 150, a memory 160, and a predicting section 170.

ブロック分割部100は、動画像を構成するフレーム(或いはピクチャ)単位の入力画像である原画像を複数の画像ブロックに分割し、分割により得た画像ブロックを減算部110に出力する。画像ブロックのサイズは、例えば32×32画素、16×16画素、8×8画素、又は4×4画素等である。画像ブロックの形状は正方形に限らず長方形(非正方形)であってもよい。画像ブロックは、符号化装置1が符号化を行う単位(すなわち、符号化対象ブロック)であり、且つ復号装置が復号を行う単位(すなわち、復号対象ブロック)である。このような画像ブロックはCU(Coding Unit)と呼ばれることがある。 The block division unit 100 divides an original image, which is an input image in units of frames (or pictures) constituting a moving image, into a plurality of image blocks, and outputs the image blocks obtained by the division to the subtraction unit 110. The size of the image block is, for example, 32×32 pixels, 16×16 pixels, 8×8 pixels, or 4×4 pixels. The shape of the image block is not limited to a square, but may be rectangular (non-square). The image block is a unit that is encoded by the encoding device 1 (that is, a block to be encoded), and is a unit that is decoded by the decoding device (that is, a block to be decoded). Such an image block is sometimes called a CU (Coding Unit).

例えば、ブロック分割部100は、画像を構成する輝度信号及び色差信号に対してブロック分割を行うことで、輝度ブロック及び色差ブロックを出力する。輝度信号と色差信号とで分割を独立に制御可能であってもよい。輝度ブロック及び色差ブロックを特に区別しないときは単に符号化対象ブロックと呼ぶ。 For example, the block division unit 100 outputs a luminance block and a chrominance block by performing block division on a luminance signal and a chrominance signal that constitute an image. The division may be independently controllable for the luminance signal and the color difference signal. When a luminance block and a chrominance block are not particularly distinguished, they are simply referred to as encoding target blocks.

減算部110は、ブロック分割部100から出力される符号化対象ブロックと、符号化対象ブロックを予測部170が予測して得た予測ブロックとの差分(誤差)を表す予測残差を算出する。具体的には、減算部110は、ブロックの各画素値から予測ブロックの各画素値を減算することにより予測残差を算出し、算出した予測残差を変換・量子化部120に出力する。 The subtraction unit 110 calculates a prediction residual representing the difference (error) between the current block to be encoded output from the block division unit 100 and the prediction block obtained by predicting the current block to be encoded by the prediction unit 170. Specifically, the subtraction unit 110 calculates a prediction residual by subtracting each pixel value of the prediction block from each pixel value of the block, and outputs the calculated prediction residual to the conversion/quantization unit 120.

変換・量子化部120は、ブロック単位で変換処理及び量子化処理を行う。変換・量子化部120は、変換部121と、量子化部122とを有する。 The conversion/quantization unit 120 performs conversion processing and quantization processing on a block-by-block basis. The conversion/quantization unit 120 includes a conversion unit 121 and a quantization unit 122.

変換部121は、減算部110から出力される予測残差に対して変換処理を行って変換係数を算出し、算出した変換係数を量子化部122に出力する。変換処理とは、例えば、離散コサイン変換(DCT)や離散サイン変換(DST)、カルーネンレーブ変換(KLT)等をいう。但し、変換処理には、画素領域の信号を周波数領域の信号に変換することなくスケーリング等により調整する変換スキップを含んでもよい。変換部121は、符号化対象ブロックに適用する変換処理に関する情報をエントロピー符号化部130に出力する。 The transformer 121 performs transform processing on the prediction residual output from the subtracter 110 to calculate transform coefficients, and outputs the calculated transform coefficients to the quantizer 122 . The transformation processing refers to, for example, discrete cosine transform (DCT), discrete sine transform (DST), Karhunenloeb transform (KLT), or the like. However, the conversion process may include a conversion skip that adjusts the pixel domain signal by scaling or the like without converting the pixel domain signal to a frequency domain signal. The transform unit 121 outputs information regarding the transform process applied to the block to be encoded to the entropy encoder 130.

変換部121は、複数の変換基底を切り替えるMTSを輝度信号の符号化において用いてもよい。具体的には、変換部121は、水平方向及び垂直方向のそれぞれについて、DCT-2、DST-7、DCT-8の中から選択した変換基底(変換タイプ)を適用してもよい。 The conversion unit 121 may use MTS that switches between a plurality of conversion bases in encoding the luminance signal. Specifically, the conversion unit 121 may apply a conversion base (conversion type) selected from among DCT-2, DST-7, and DCT-8 in each of the horizontal direction and the vertical direction.

量子化部122は、変換部121から出力される変換係数を量子化パラメータ(Qp)及び量子化行列を用いて量子化し、量子化した変換係数をエントロピー符号化部130及び逆量子化・逆変換部140に出力する。 The quantization unit 122 quantizes the transformation coefficients output from the transformation unit 121 using a quantization parameter (Qp) and a quantization matrix, and subjects the quantized transformation coefficients to an entropy encoding unit 130 and inverse quantization/inverse transformation. 140.

エントロピー符号化部130は、量子化部122から出力される変換係数に対してエントロピー符号化を行い、データ圧縮を行って符号化データ(ビットストリーム)を生成し、符号化データを符号化装置1の外部に出力する。エントロピー符号化には、ハフマン符号やCABAC(Context-based Adaptive Binary Arithmetic Coding;コンテキスト適応型2値算術符号)等を用いることができる。 The entropy encoding unit 130 performs entropy encoding on the transform coefficients output from the quantization unit 122, performs data compression to generate encoded data (bitstream), and transmits the encoded data to the encoding device 1. Output to the outside of. For entropy encoding, a Huffman code, CABAC (Context-based Adaptive Binary Arithmetic Coding), or the like can be used.

具体的には、エントロピー符号化部130は、2次元に配列された変換係数を所定のスキャン順で読み出し、サブブロック単位で符号化を行う。図2は、本実施形態に係るスキャン順を示す図である。 Specifically, the entropy encoding unit 130 reads out the two-dimensionally arranged transform coefficients in a predetermined scanning order and encodes them in sub-block units. FIG. 2 is a diagram showing the scan order according to this embodiment.

図2において、符号化対象ブロックが水平方向に8画素且つ垂直方向に8画素(すなわち、8×8画素)のサイズを有し、各サブブロックSB1乃至SB4が水平方向に4画素且つ垂直方向に4画素(すなわち、4×4画素)のサイズを有する一例を示している。 In FIG. 2, the encoding target block has a size of 8 pixels in the horizontal direction and 8 pixels in the vertical direction (that is, 8 × 8 pixels), and each sub-block SB1 to SB4 has a size of 4 pixels in the horizontal direction and 8 pixels in the vertical direction. An example having a size of 4 pixels (ie, 4×4 pixels) is shown.

図2に示すように、スキャン順の候補には、斜め方向スキャン、垂直方向スキャン、及び水平方向スキャンの3つがある。斜め方向スキャンは、図2(a)に示すように、各サブブロック内において高域側から低域側に向けて、斜め方向にスキャンを行うスキャン順である。垂直方向スキャンは、図2(b)に示すように、各サブブロック内において高域側から低域側に向けて、垂直方向にスキャンを行うスキャン順である。水平方向スキャンは、図2(c)に示すように、各サブブロック内において高域側から低域側に向けて、水平方向にスキャンを行うスキャン順である。 As shown in FIG. 2, there are three scan order candidates: diagonal scan, vertical scan, and horizontal scan. As shown in FIG. 2A, the diagonal scan is a scan order in which scanning is performed diagonally from the high frequency side to the low frequency side within each sub-block. As shown in FIG. 2B, the vertical scan is a scan order in which scanning is performed in the vertical direction from the high frequency side to the low frequency side within each subblock. As shown in FIG. 2C, the horizontal scan is a scan order in which scanning is performed in the horizontal direction from the high frequency side to the low frequency side within each subblock.

エントロピー符号化部130は、このような変換係数のスキャン処理及び符号化処理に加えて、変換部121から出力される変換処理に関する情報の符号化や、予測部170から出力される予測処理に関する情報の符号化も行う。 In addition to such scan processing and encoding processing of transform coefficients, the entropy encoding section 130 encodes information regarding the transformation processing output from the transformation section 121 and information regarding the prediction processing output from the prediction section 170. Also performs encoding.

ここで、予測処理に関する情報は、予測部170が符号化対象ブロックのイントラ予測に用いたイントラ予測モードを示すシンタックス(以下、「イントラ予測モードシンタックス」と呼ぶ)を含む。輝度ブロックについてイントラ予測モードを示すイントラ予測モードシンタックスには、例えば、intra_luma_mpm_flag、intra_luma_not_planar_flag、intra_luma_mpm_idx、及びintra_luma_mpm_remainderがある。 Here, the information regarding the prediction process includes syntax (hereinafter referred to as "intra prediction mode syntax") indicating the intra prediction mode used by the prediction unit 170 for intra prediction of the current block to be encoded. Examples of intra prediction mode syntax indicating an intra prediction mode for a luminance block include intra_luma_mpm_flag, intra_luma_not_planar_flag, intra_luma_mpm_idx, and intra_luma_mpm_remainder.

intra_luma_mpm_flagは、イントラ予測に用いたイントラ予測モードが複数の優先イントラ予測モード(以下、「MPMモード」と呼ぶ)に含まれるか否かを示すフラグである。intra_luma_mpm_flagが“1”である場合、イントラ予測モードがMPMモードに含まれることを示す。一方、intra_luma_mpm_flagが“0”である場合、イントラ予測モードがMPMモードに含まれない、すなわち、イントラ予測モードが複数の非優先イントラ予測モード(以下、「非MPMモード」と呼ぶ)に含まれることを示す。 intra_luma_mpm_flag is a flag indicating whether the intra prediction mode used for intra prediction is included in a plurality of priority intra prediction modes (hereinafter referred to as "MPM mode"). When intra_luma_mpm_flag is “1”, it indicates that the intra prediction mode is included in the MPM mode. On the other hand, when intra_luma_mpm_flag is "0", the intra prediction mode is not included in the MPM mode, that is, the intra prediction mode is included in multiple non-priority intra prediction modes (hereinafter referred to as "non-MPM mode"). shows.

intra_luma_not_planar_flagは、intra_luma_mpm_flagが“1”である場合において、イントラ予測モードがPlanarモードであるか否かを示すフラグである。intra_luma_not_planar_flagが“1”である場合、イントラ予測モードがPlanarモードではないことを示す。一方、intra_luma_not_planar_flagが“0”である場合、イントラ予測モードがPlanarモードであることを示す。 intra_luma_not_planar_flag is a flag indicating whether the intra prediction mode is the planar mode when the intra_luma_mpm_flag is “1”. When intra_luma_not_planar_flag is “1”, it indicates that the intra prediction mode is not Planar mode. On the other hand, when intra_luma_not_planar_flag is "0", it indicates that the intra prediction mode is Planar mode.

intra_luma_mpm_idxは、intra_luma_not_planar_flagが“1”である場合において、イントラ予測モードがMPMの何番目であるかを示すインデックスである。なお、intra_luma_mpm_idxはTruncated Unary encodingを用いてMPM1からMPM5までのいずれかの番号を示す。 intra_luma_mpm_idx is an index indicating which MPM the intra prediction mode is when the intra_luma_not_planar_flag is “1”. Note that intra_luma_mpm_idx indicates any number from MPM1 to MPM5 using Truncated Unary encoding.

intra_luma_mpm_remainderは、intra_luma_mpm_flagが“0”である場合において、非MPMのイントラ予測モードのいずれかを示す非MPMモード番号である。図3は、本実施形態に係る非MPMモード番号の一例を示す図である。 intra_luma_mpm_remainder is a non-MPM mode number indicating any non-MPM intra prediction mode when intra_luma_mpm_flag is “0”. FIG. 3 is a diagram showing an example of non-MPM mode numbers according to the present embodiment.

図3に示すように、intra_luma_mpm_remainderは、Truncated binary encodingを用いて61モードの中のいずれかの番号を示す。この61モードは、MPMモード以外の61のイントラ予測モードについて、参照方向が左下から右上にかけて小さい番号から順に割り当てて表している。 As shown in FIG. 3, intra_luma_mpm_remainder indicates any number among 61 modes using Truncated binary encoding. The 61 modes represent 61 intra prediction modes other than the MPM mode by assigning reference directions in ascending order from the lower left to the upper right.

スキャン制御部131は、エントロピー符号化部130が変換係数を符号化するときのスキャン順を制御する。具体的には、スキャン制御部131は、符号化対象ブロックのイントラ予測に用いたイントラ予測モードを示すイントラ予測モードシンタックスに応じて複数のスキャン順候補の中からスキャン順を決定し、決定したスキャン順に応じてエントロピー符号化部130を制御する。本実施形態において、複数のスキャン順候補は、図2に示すように、斜め方向スキャン、垂直方向スキャン、及び水平方向スキャンの3つであるものとする。スキャン制御部131の詳細については後述する。 The scan control unit 131 controls the scan order when the entropy encoding unit 130 encodes transform coefficients. Specifically, the scan control unit 131 determines a scan order from among a plurality of scan order candidates according to the intra prediction mode syntax indicating the intra prediction mode used for intra prediction of the block to be encoded. The entropy encoding unit 130 is controlled according to the scan order. In this embodiment, as shown in FIG. 2, the plurality of scan order candidates are assumed to be three: diagonal direction scan, vertical direction scan, and horizontal direction scan. Details of the scan control unit 131 will be described later.

逆量子化・逆変換部140は、ブロック単位で逆量子化処理及び逆変換処理を行う。逆量子化・逆変換部140は、逆量子化部141と、逆変換部142とを有する。 The inverse quantization/inverse transform unit 140 performs inverse quantization processing and inverse transform processing on a block-by-block basis. The inverse quantization/inverse transformation section 140 includes an inverse quantization section 141 and an inverse transformation section 142.

逆量子化部141は、量子化部122が行う量子化処理に対応する逆量子化処理を行う。具体的には、逆量子化部141は、量子化部122から出力される変換係数を、量子化パラメータ(Qp)及び量子化行列を用いて逆量子化することにより変換係数を復元し、復元した変換係数を逆変換部142に出力する。 The dequantization unit 141 performs dequantization processing corresponding to the quantization processing performed by the quantization unit 122. Specifically, the dequantization unit 141 restores the transform coefficients by dequantizing the transform coefficients output from the quantization unit 122 using a quantization parameter (Qp) and a quantization matrix. The obtained transform coefficients are output to the inverse transform section 142.

逆変換部142は、変換部121が行う変換処理に対応する逆変換処理を行う。例えば、変換部121が離散コサイン変換を行った場合には、逆変換部142は逆離散コサイン変換を行う。逆変換部142は、逆量子化部141から出力される変換係数に対して逆変換処理を行って予測残差を復元し、復元した予測残差である復元予測残差を合成部150に出力する。 The inverse transform unit 142 performs an inverse transform process corresponding to the transform process performed by the transform unit 121. For example, if the transform unit 121 performs a discrete cosine transform, the inverse transform unit 142 performs an inverse discrete cosine transform. The inverse transform unit 142 performs inverse transform processing on the transform coefficients output from the inverse quantization unit 141 to restore the prediction residual, and outputs the restored prediction residual, which is the restored prediction residual, to the synthesis unit 150. do.

合成部150は、逆変換部142から出力される復元予測残差を、予測部170から出力される予測ブロックと画素単位で合成する。合成部150は、復元予測残差の各画素値と予測ブロックの各画素値を加算して符号化対象ブロックを復号(再構成)し、復号済みブロックをメモリ160に出力する。なお、復号済みブロックは、再構成ブロックと呼ばれることもある。 The combining unit 150 combines the restored prediction residual output from the inverse transform unit 142 with the prediction block output from the prediction unit 170 on a pixel-by-pixel basis. The combining unit 150 decodes (reconfigures) the current block by adding each pixel value of the restored prediction residual and each pixel value of the prediction block, and outputs the decoded block to the memory 160. Note that the decoded block is sometimes called a reconstructed block.

メモリ160は、合成部150から出力される復号済みブロックを記憶し、復号済みブロックをフレーム単位で復号済み画像として蓄積する。メモリ160は、記憶している復号済みブロック若しくは復号済み画像を予測部170に出力する。なお、合成部150とメモリ160との間にループフィルタが設けられてもよい。 The memory 160 stores the decoded blocks output from the combining unit 150, and accumulates the decoded blocks as decoded images in frame units. The memory 160 outputs the stored decoded blocks or decoded images to the prediction unit 170. Note that a loop filter may be provided between the synthesis section 150 and the memory 160.

予測部170は、ブロック単位で予測処理を行う。予測部170は、インター予測部171と、イントラ予測部172と、切替部173とを有する。 The prediction unit 170 performs prediction processing on a block-by-block basis. The prediction unit 170 includes an inter prediction unit 171, an intra prediction unit 172, and a switching unit 173.

インター予測部171は、フレーム間の相関を利用したインター予測を行う。具体的には、インター予測部171は、メモリ160に記憶された復号済み画像を参照画像として用いて、ブロックマッチングなどの手法により動きベクトルを算出し、インター予測の対象ブロックを予測してインター予測ブロックを生成し、生成したインター予測ブロックを切替部173に出力する。ここで、インター予測部171は、複数の参照画像を用いるインター予測(典型的には、双予測)や、1つの参照画像を用いるインター予測(片方向予測)の中から最適なインター予測方法を選択し、選択したインター予測方法を用いてインター予測を行う。インター予測部171は、インター予測に関する情報(動きベクトル等)をエントロピー符号化部130に出力する。 The inter prediction unit 171 performs inter prediction using correlation between frames. Specifically, the inter prediction unit 171 uses the decoded image stored in the memory 160 as a reference image, calculates a motion vector by a method such as block matching, predicts a target block for inter prediction, and performs inter prediction. A block is generated, and the generated inter prediction block is output to the switching unit 173. Here, the inter prediction unit 171 selects the optimal inter prediction method from among inter prediction using multiple reference images (typically, bi-prediction) and inter prediction using one reference image (unidirectional prediction). Inter prediction is performed using the selected inter prediction method. The inter prediction unit 171 outputs information related to inter prediction (motion vectors, etc.) to the entropy encoding unit 130.

イントラ予測部172は、フレーム内の空間的な相関を利用したイントラ予測を行う。具体的には、イントラ予測部172は、メモリ160に記憶された復号済み画像のうち、イントラ予測の対象ブロックの周辺にある復号済み画素を参照してイントラ予測ブロックを生成し、生成したイントラ予測ブロックを切替部173に出力する。イントラ予測部172は、複数のイントラ予測モードの中から、イントラ予測の対象ブロックに適用するイントラ予測モードを選択し、選択したイントラ予測モードを用いて対象ブロックを予測する。イントラ予測部172は、選択したイントラ予測モードを示すイントラ予測モードシンタックスをエントロピー符号化部130に出力する。 The intra prediction unit 172 performs intra prediction using spatial correlation within a frame. Specifically, the intra prediction unit 172 generates an intra prediction block by referring to decoded pixels around the target block for intra prediction among the decoded images stored in the memory 160, and generates an intra prediction block. The block is output to the switching unit 173. The intra prediction unit 172 selects an intra prediction mode to be applied to the target block of intra prediction from among the plurality of intra prediction modes, and predicts the target block using the selected intra prediction mode. Intra prediction section 172 outputs intra prediction mode syntax indicating the selected intra prediction mode to entropy encoding section 130.

図4は、本実施形態に係るイントラ予測モードの候補を示す図である。図4に示すように、輝度ブロックについて、イントラ予測モードの候補は、0から66までの67通りがある。イントラ予測モードのモード「0」はPlanar予測であり、イントラ予測モードのモード「1」はDC予測であり、イントラ予測モードのモード「2」乃至「66」は方向性予測である。方向性予測において、矢印の方向は参照方向を示し、矢印の起点は予測対象の画素の位置を示し、矢印の終点はこの予測対象画素の予測に用いる参照画素の位置を示す。ブロックの右上頂点及び左下頂点を通る対角線に平行な参照方向として、左下方向を参照するイントラ予測モードであるモード「2」と、右上方向を参照するイントラ予測モードであるモード「66」とがあり、モード「2」からモード「66」まで時計回りに所定角度ごとにモード番号が割り振られている。 FIG. 4 is a diagram showing intra prediction mode candidates according to this embodiment. As shown in FIG. 4, there are 67 intra prediction mode candidates from 0 to 66 for the luminance block. Mode "0" of the intra prediction mode is planar prediction, mode "1" of the intra prediction mode is DC prediction, and modes "2" to "66" of the intra prediction mode are directional prediction. In directional prediction, the direction of the arrow indicates the reference direction, the starting point of the arrow indicates the position of the pixel to be predicted, and the end point of the arrow indicates the position of the reference pixel used to predict the pixel to be predicted. There are two modes: mode "2", which is an intra prediction mode that refers to the lower left direction, and mode "66", which is an intra prediction mode that refers to the upper right direction, as the reference direction parallel to the diagonal line passing through the upper right and lower left vertices of the block. , mode numbers are assigned clockwise from mode "2" to mode "66" for each predetermined angle.

切替部173は、インター予測部171から出力されるインター予測ブロックとイントラ予測部172から出力されるイントラ予測ブロックとを切り替えて、いずれかの予測ブロックを減算部110及び合成部150に出力する。 The switching unit 173 switches between the inter prediction block output from the inter prediction unit 171 and the intra prediction block output from the intra prediction unit 172, and outputs one of the prediction blocks to the subtraction unit 110 and the combination unit 150.

このように、本実施形態に係る符号化装置1は、符号化対象ブロックの周辺の復号済み画素を用いるイントラ予測によって、符号化対象ブロックに対応する予測ブロックを生成するイントラ予測部172と、符号化対象ブロックと予測ブロックとの差を表す予測残差に対して変換処理及び量子化処理を行う変換・量子化部120と、変換・量子化部120が出力する変換係数を符号化するエントロピー符号化部130と、イントラ予測に用いたイントラ予測モードを示すイントラ予測モードシンタックスに応じて、エントロピー符号化部130が変換係数を符号化するときのスキャン順を複数のスキャン順候補の中から決定するスキャン制御部131と、を有する。 In this way, the encoding device 1 according to the present embodiment includes an intra prediction unit 172 that generates a prediction block corresponding to the current block to be encoded by intra prediction using decoded pixels surrounding the current block, and a A transformation/quantization unit 120 that performs transformation processing and quantization processing on the prediction residual representing the difference between the target block and the prediction block, and an entropy code that encodes the transformation coefficients output by the transformation/quantization unit 120. The entropy encoding unit 130 determines the scan order when encoding the transform coefficients from among a plurality of scan order candidates according to the encoding unit 130 and the intra prediction mode syntax indicating the intra prediction mode used for intra prediction. A scan control unit 131 is provided.

本実施形態において、符号化装置1は、符号化対象ブロックの左及び上のブロックで利用された予測モードと、それらの予測モードに近い方向の予測モードに優先順位をつけて、他の予測モードに対して相対的に少ないデータ量を割り当てるMPMを適用する。 In this embodiment, the encoding device 1 prioritizes prediction modes used in blocks to the left and above the block to be encoded and prediction modes in a direction close to these prediction modes, and selects other prediction modes. MPM is applied to allocate a relatively small amount of data to.

具体的には、本実施形態に係るイントラ予測部172は、MPM決定部1721と、シンタックス生成部1722とを有する。MPM決定部1721は、優先モード決定部に相当する。 Specifically, the intra prediction unit 172 according to this embodiment includes an MPM determination unit 1721 and a syntax generation unit 1722. The MPM determining section 1721 corresponds to a priority mode determining section.

MPM決定部1721は、符号化対象ブロックの周辺のブロックに適用されたイントラ予測モードに基づいて、符号化対象ブロックに優先的に適用する複数の優先イントラ予測モード(MPMモード)と、複数の優先イントラ予測モード以外の複数の非優先イントラ予測モード(非MPMモード)とを決定する。MPM決定部1721は、決定したMPMモードからなるリストを生成する。このようなリストは、MPMリストと呼ばれることがある。例えば、MPMリストは、6つの優先イントラ予測モードからなる。 The MPM determining unit 1721 selects a plurality of priority intra prediction modes (MPM modes) to be preferentially applied to the block to be encoded, and a plurality of priority intra prediction modes (MPM modes) to be preferentially applied to the block to be encoded, based on intra prediction modes applied to blocks surrounding the block to be encoded. A plurality of non-priority intra prediction modes (non-MPM modes) other than the intra prediction mode are determined. The MPM determining unit 1721 generates a list consisting of the determined MPM modes. Such a list is sometimes called an MPM list. For example, the MPM list consists of six preferred intra prediction modes.

シンタックス生成部1722は、イントラ予測部172が符号化対象ブロックのイントラ予測に用いたイントラ予測モードを示すイントラ予測モードシンタックスを生成し、生成したイントラ予測モードシンタックスをエントロピー符号化部130及びスキャン制御部131に出力する。上述したように、輝度ブロックについてイントラ予測モードを示すイントラ予測モードシンタックスは、intra_luma_mpm_flag、intra_luma_not_planar_flag、intra_luma_mpm_idx、及びintra_luma_mpm_remainderを含む。 The syntax generation unit 1722 generates intra prediction mode syntax indicating the intra prediction mode used by the intra prediction unit 172 for intra prediction of the current block to be encoded, and transmits the generated intra prediction mode syntax to the entropy encoding unit 130 and It is output to the scan control section 131. As described above, the intra prediction mode syntax indicating the intra prediction mode for the luminance block includes intra_luma_mpm_flag, intra_luma_not_planar_flag, intra_luma_mpm_idx, and intra_luma_mpm_remainder.

特に、シンタックス生成部1722は、イントラ予測に用いたイントラ予測モードがMPMモード及び非MPMモードのいずれに含まれるかを示すフラグであるintra_luma_mpm_flagを有するイントラ予測モードシンタックスを生成する。また、シンタックス生成部1722は、イントラ予測に用いたイントラ予測モードが非MPMモードに含まれる場合、イントラ予測に用いたイントラ予測モードを示す非MPMモード番号であるintra_luma_mpm_remainderをさらに含むイントラ予測モードシンタックスを生成する。 In particular, the syntax generation unit 1722 generates intra prediction mode syntax having intra_luma_mpm_flag, which is a flag indicating whether the intra prediction mode used for intra prediction is included in the MPM mode or the non-MPM mode. Furthermore, when the intra prediction mode used for intra prediction is included in a non-MPM mode, the syntax generation unit 1722 generates an intra prediction mode syntax that further includes intra_luma_mpm_remainder, which is a non-MPM mode number indicating the intra prediction mode used for intra prediction. Generate taxes.

本実施形態において、スキャン制御部131は、符号化対象ブロックのイントラ予測に用いたイントラ予測モードを示すイントラ予測モードシンタックスに応じて複数のスキャン順候補の中からスキャン順を決定する。ここで、スキャン制御部131は、イントラ予測モードを示すイントラ予測モードシンタックスからイントラ予測モードを特定することなく、イントラ予測モードを示すイントラ予測モードシンタックスからスキャン順を直接的に決定する。 In the present embodiment, the scan control unit 131 determines a scan order from among a plurality of scan order candidates according to an intra prediction mode syntax indicating an intra prediction mode used for intra prediction of a block to be encoded. Here, the scan control unit 131 directly determines the scan order from the intra prediction mode syntax indicating the intra prediction mode, without specifying the intra prediction mode from the intra prediction mode syntax indicating the intra prediction mode.

具体的には、スキャン制御部131は、イントラ予測に用いたイントラ予測モードが非MPMモードに含まれることをintra_luma_mpm_flagが示す場合、すなわち、intra_luma_mpm_flagが“0”である場合、イントラ予測モードを示すイントラ予測モードシンタックスからスキャン順を直接的に決定する。 Specifically, when the intra_luma_mpm_flag indicates that the intra prediction mode used for intra prediction is included in the non-MPM mode, that is, when the intra_luma_mpm_flag is "0", the scan control unit 131 uses the intra prediction mode indicating the intra prediction mode. Determine scan order directly from prediction mode syntax.

例えば、スキャン制御部131は、イントラ予測に用いたイントラ予測モードが非MPMモードに含まれることをintra_luma_mpm_flagが示す場合、各非MPMモード番号をスキャン順候補と対応付ける対応付け情報を用いて、イントラ予測モードを示すイントラ予測モードシンタックスに含まれる非MPMモード番号(intra_luma_mpm_remainder)に対応するスキャン順候補をスキャン順として決定する。 For example, when intra_luma_mpm_flag indicates that the intra prediction mode used for intra prediction is included in a non-MPM mode, the scan control unit 131 performs intra prediction using association information that associates each non-MPM mode number with a scan order candidate. A scan order candidate corresponding to the non-MPM mode number (intra_luma_mpm_remainder) included in the intra prediction mode syntax indicating the mode is determined as the scan order.

図5は、本実施形態に係る対応付け情報を示す図である。 FIG. 5 is a diagram showing association information according to this embodiment.

図5に示すように、6つのMPMモード以外の61の非MPMモード(non-MPM mode)について、参照方向が左下から右上にかけて小さい番号から順に番号を割り当てて表している。各非MPMモード番号には、スキャン順候補(scan)が対応付けられている。 As shown in FIG. 5, 61 non-MPM modes (non-MPM modes) other than the six MPM modes are represented by assigning numbers in ascending order from the lower left to the upper right in the reference direction. Each non-MPM mode number is associated with a scan order candidate (scan).

具体的には、非MPMモード番号は、第1グループ乃至第3グループにグループ分けされている。第1グループは、方向性予測モードであって、予測方向が垂直方向よりも水平方向に近いイントラ予測モードと対応付けられたグループである。第2グループは、方向性予測モードであって、予測方向が水平方向よりも垂直方向に近いイントラ予測モードと対応付けられたグループである。第3グループは、第1グループ及び第2グループ以外のグループである。 Specifically, the non-MPM mode numbers are grouped into first to third groups. The first group is a directional prediction mode, and is a group associated with an intra prediction mode in which the prediction direction is closer to the horizontal direction than the vertical direction. The second group is a directional prediction mode, and is a group associated with an intra prediction mode in which the prediction direction is closer to the vertical direction than the horizontal direction. The third group is a group other than the first group and the second group.

図5において、非MPMモード番号“9”乃至“20”が第1グループに相当し、非MPMモード番号“39”乃至“52”が第2グループに相当し、それ以外の非MPMモード番号が第3グループに相当する。対応付け情報は、第1グループを垂直方向スキャン(scan=1)と対応付け、第2グループを垂直方向スキャン(scan=2)と対応付け、第3グループを斜め方向スキャン(scan=0)と対応付ける。 In FIG. 5, non-MPM mode numbers "9" to "20" correspond to the first group, non-MPM mode numbers "39" to "52" correspond to the second group, and other non-MPM mode numbers Corresponds to the third group. The association information associates the first group with vertical scan (scan=1), the second group with vertical scan (scan=2), and the third group with diagonal scan (scan=0). Match.

ここで、どのようなイントラ予測モードがMPMモードに選択されても、水平方向又は垂直方向にある程度近い非MPMモードがscan=1又はscan=2に含まれるように範囲を設定している。また、この範囲は図5に示す例に固定されるものではなく、範囲は可変であるものとする。 Here, the range is set so that no matter what intra prediction mode is selected as the MPM mode, a non-MPM mode that is somewhat close to the horizontal or vertical direction is included in scan=1 or scan=2. Further, this range is not fixed to the example shown in FIG. 5, but is variable.

スキャン制御部131は、イントラ予測モードが非MPMモードに含まれることをintra_luma_mpm_flagが示す場合、図5に示すようなテーブル(対応付け情報)を用いて、イントラ予測モードシンタックスに含まれる非MPMモード番号(intra_luma_mpm_remainder)をスキャン順の番号(“0”、“1”、“2”のいずれか)に変換できるため、非MPMモード番号からスキャン順を直接的に決定できる。 When the intra_luma_mpm_flag indicates that the intra prediction mode is included in the non-MPM mode, the scan control unit 131 uses a table (correlation information) as shown in FIG. 5 to select the non-MPM mode included in the intra prediction mode syntax. Since the number (intra_luma_mpm_remainder) can be converted into a scan order number (any one of "0", "1", and "2"), the scan order can be directly determined from the non-MPM mode number.

<復号装置の構成>
次に、本実施形態に係る復号装置の構成について、符号化装置1との相違点を主として説明する。図6は、本実施形態に係る復号装置2の構成を示す図である。
<Decoding device configuration>
Next, the configuration of the decoding device according to the present embodiment will be mainly described with respect to the differences from the encoding device 1. FIG. 6 is a diagram showing the configuration of the decoding device 2 according to this embodiment.

図6に示すように、復号装置2は、エントロピー復号部200と、スキャン制御部201と、逆量子化・逆変換部210と、合成部220と、メモリ230と、予測部240とを有する。 As shown in FIG. 6, the decoding device 2 includes an entropy decoding section 200, a scan control section 201, an inverse quantization/inverse transformation section 210, a combining section 220, a memory 230, and a prediction section 240.

エントロピー復号部200は、符号化装置1により生成された符号化データを構文解析し、符号化装置1がイントラ予測に用いたイントラ予測モードを示すイントラ予測モードシンタックスを取得し、取得したイントラ予測モードシンタックスをスキャン制御部201及び予測部240に出力する。輝度ブロックについてイントラ予測モードシンタックスには、intra_luma_mpm_flag、intra_luma_not_planar_flag、intra_luma_mpm_idx、及びintra_luma_mpm_remainderがある。 The entropy decoding unit 200 parses the encoded data generated by the encoding device 1, acquires an intra prediction mode syntax indicating the intra prediction mode used by the encoding device 1 for intra prediction, and uses the acquired intra prediction. The mode syntax is output to the scan control section 201 and the prediction section 240. Intra prediction mode syntax for the luminance block includes intra_luma_mpm_flag, intra_luma_not_planar_flag, intra_luma_mpm_idx, and intra_luma_mpm_remainder.

イントラ予測モードシンタックスの復号においては、エントロピー復号部200は、intra_luma_mpm_flagを復号し、“1”の場合にはイントラ予測モードがPlanarモードか否かを示すintra_luma_not_planar_flagを復号する。intra_luma_not_planar_flagが“0”の場合はイントラ予測モードとしてPlanarモードを特定する。また、エントロピー復号部200は、intra_luma_not_planar_flagが“1”の場合は、次にintra_luma_mpm_idxを復号し、MPMの何番目かを特定する。一方、エントロピー復号部200は、intra_luma_mpm_flagが“0”の場合にはintra_luma_mpm_remainderを復号し、MPMに含まれないいずれのイントラ予測モードであるかを特定する。 In decoding the intra prediction mode syntax, the entropy decoding unit 200 decodes intra_luma_mpm_flag, and in the case of "1", decodes intra_luma_not_planar_flag which indicates whether or not the intra prediction mode is Planar mode. When intra_luma_not_planar_flag is “0”, Planar mode is specified as the intra prediction mode. Further, if the intra_luma_not_planar_flag is "1", the entropy decoding unit 200 next decodes the intra_luma_mpm_idx and identifies the number of the MPM. On the other hand, when the intra_luma_mpm_flag is "0", the entropy decoding unit 200 decodes the intra_luma_mpm_remainder and identifies which intra prediction mode not included in the MPM is the one.

また、エントロピー復号部200は、変換処理に関する情報を取得し、取得した情報を逆量子化・逆変換部210に出力する。 Further, the entropy decoding unit 200 acquires information regarding the transformation process, and outputs the acquired information to the inverse quantization/inverse transformation unit 210.

さらに、エントロピー復号部200は、符号化データに対する算術復号処理が行われた後の変換係数の多値化処理において、スキャン順に応じたスキャン処理を行うことにより、復号対象ブロックに対応する変換係数(具体的には、量子化された変換係数)を逆量子化・逆変換部210に出力する。 Furthermore, the entropy decoding unit 200 performs scan processing according to the scan order in the multi-value processing of the transform coefficients after the arithmetic decoding processing has been performed on the encoded data, so that the transform coefficients ( Specifically, the quantized transform coefficients are output to the inverse quantization/inverse transform section 210.

スキャン制御部201は、エントロピー復号部200から出力されるイントラ予測モードシンタックスに応じて、エントロピー復号部200が変換係数を復号するときのスキャン順を複数のスキャン順候補の中から決定する。具体的には、スキャン制御部201は、復号対象ブロックのイントラ予測に用いるべきイントラ予測モードシンタックスに応じて複数のスキャン順候補の中からスキャン順を決定し、決定したスキャン順に応じてエントロピー符号化部130を制御する。上述したように、スキャン順の候補には、斜め方向スキャン、垂直方向スキャン、及び水平方向スキャンの3つがある。スキャン制御部201の詳細については後述する。 Scan control section 201 determines the scan order in which entropy decoding section 200 decodes transform coefficients from among a plurality of scan order candidates, according to the intra prediction mode syntax output from entropy decoding section 200. Specifically, the scan control unit 201 determines a scan order from among a plurality of scan order candidates according to the intra prediction mode syntax to be used for intra prediction of the block to be decoded, and sets the entropy code according to the determined scan order. control unit 130. As described above, there are three scan order candidates: diagonal scan, vertical scan, and horizontal scan. Details of the scan control unit 201 will be described later.

逆量子化・逆変換部210は、ブロック単位で逆量子化処理及び逆変換処理を行う。逆量子化・逆変換部210は、逆量子化部211と、逆変換部212とを有する。 The inverse quantization/inverse transformation unit 210 performs inverse quantization processing and inverse transformation processing on a block-by-block basis. The inverse quantization/inverse transformation section 210 includes an inverse quantization section 211 and an inverse transformation section 212.

逆量子化部211は、符号化装置1の量子化部122が行う量子化処理に対応する逆量子化処理を行う。逆量子化部211は、エントロピー復号部200から出力される量子化変換係数を、量子化パラメータ(Qp)及び量子化行列を用いて逆量子化することにより、復号対象ブロックの変換係数を復元し、復元した変換係数を逆変換部212に出力する。 The dequantization unit 211 performs dequantization processing corresponding to the quantization processing performed by the quantization unit 122 of the encoding device 1. The dequantization unit 211 restores the transform coefficients of the block to be decoded by dequantizing the quantized transform coefficients output from the entropy decoding unit 200 using a quantization parameter (Qp) and a quantization matrix. , the restored transform coefficients are output to the inverse transform unit 212.

逆変換部212は、符号化装置1の変換部121が行う変換処理に対応する逆変換処理を行う。逆変換部212は、逆量子化部211から出力される変換係数に対して逆変換処理を行って予測残差を復元し、復元した予測残差(復元予測残差)を合成部220に出力する。 The inverse transform unit 212 performs an inverse transform process corresponding to the transform process performed by the transform unit 121 of the encoding device 1. The inverse transform unit 212 performs inverse transform processing on the transform coefficients output from the inverse quantization unit 211 to restore the prediction residual, and outputs the restored prediction residual (restored prediction residual) to the synthesis unit 220. do.

合成部220は、逆変換部212から出力される予測残差と、予測部240から出力される予測ブロックとを画素単位で合成することにより、元のブロックを復号(再構成)し、復号済みブロックをメモリ230に出力する。 The combining unit 220 decodes (reconfigures) the original block by combining the prediction residual output from the inverse transform unit 212 and the prediction block output from the prediction unit 240 pixel by pixel. Output the block to memory 230.

メモリ230は、合成部220から出力される復号済みブロックを記憶し、復号済みブロックをフレーム単位で復号済み画像として蓄積する。メモリ230は、復号済みブロック若しくは復号済み画像を予測部240に出力する。また、メモリ230は、フレーム単位の復号済み画像を復号装置2の外部に出力する。なお、合成部220とメモリ230との間にループフィルタが設けられてもよい。 The memory 230 stores the decoded blocks output from the combining unit 220, and accumulates the decoded blocks as decoded images in units of frames. The memory 230 outputs the decoded block or decoded image to the prediction unit 240. Furthermore, the memory 230 outputs the decoded image in units of frames to the outside of the decoding device 2 . Note that a loop filter may be provided between the synthesis section 220 and the memory 230.

予測部240は、ブロック単位で予測を行う。予測部240は、インター予測部241と、イントラ予測部242と、切替部243とを有する。 The prediction unit 240 performs prediction on a block-by-block basis. The prediction unit 240 includes an inter prediction unit 241, an intra prediction unit 242, and a switching unit 243.

インター予測部241は、フレーム間の相関を利用したインター予測を行う。具体的には、インター予測部241は、エントロピー復号部200から出力されるインター予測に関する情報(例えば、動きベクトル情報)に基づいて、メモリ230に記憶された復号済み画像を参照画像として用いてインター予測の対象ブロックを予測してインター予測ブロックを生成し、生成したインター予測ブロックを切替部243に出力する。 The inter prediction unit 241 performs inter prediction using correlation between frames. Specifically, the inter prediction unit 241 performs inter prediction using the decoded image stored in the memory 230 as a reference image based on information regarding inter prediction (for example, motion vector information) output from the entropy decoding unit 200. The prediction target block is predicted to generate an inter prediction block, and the generated inter prediction block is output to the switching unit 243.

イントラ予測部242は、フレーム内の空間的な相関を利用したイントラ予測を行う。具体的には、イントラ予測部242は、エントロピー復号部200から出力されるイントラ予測に関する情報(すなわち、イントラ予測モードシンタックス)に応じたイントラ予測モードを用いて、メモリ230に記憶された復号済み画像のうちイントラ予測の対象ブロックの周辺にある復号済み画素を参照してイントラ予測ブロックを生成し、生成したイントラ予測ブロックを切替部243に出力する。 The intra prediction unit 242 performs intra prediction using spatial correlation within a frame. Specifically, the intra prediction unit 242 uses the intra prediction mode according to the information regarding intra prediction output from the entropy decoding unit 200 (i.e., the intra prediction mode syntax) to generate the decoded data stored in the memory 230. An intra prediction block is generated by referring to decoded pixels around the target block for intra prediction in the image, and the generated intra prediction block is output to the switching unit 243.

本実施形態において、復号装置2は、符号化対象ブロックの左及び上のブロックで利用された予測モードと、それらの予測モードに近い方向の予測モードに優先順位をつけて、他の予測モードに対して相対的に少ないデータ量を割り当てるMPMを適用する。 In the present embodiment, the decoding device 2 prioritizes the prediction modes used in the left and upper blocks of the block to be encoded and the prediction modes in the direction close to these prediction modes, and MPM is applied to allocate a relatively small amount of data.

具体的には、本実施形態に係るイントラ予測部242は、MPM決定部2421を有する。MPM決定部2421は、優先モード決定部に相当する。 Specifically, the intra prediction unit 242 according to this embodiment includes an MPM determination unit 2421. The MPM determining unit 2421 corresponds to a priority mode determining unit.

MPM決定部2421は、復号対象ブロックの周辺のブロックに適用されたイントラ予測モードに基づいて、復号対象ブロックに優先的に適用するMPMモードと、MPMモード以外の非MPMモードとを決定する。MPM決定部2421は、決定したMPMモードからなるリスト(MPMリスト)を生成する。例えば、MPMリストは、6つの優先イントラ予測モードからなる。 The MPM determining unit 2421 determines an MPM mode to be preferentially applied to the block to be decoded and a non-MPM mode other than the MPM mode, based on the intra prediction modes applied to blocks surrounding the block to be decoded. The MPM determining unit 2421 generates a list (MPM list) consisting of the determined MPM modes. For example, the MPM list consists of six preferred intra prediction modes.

イントラ予測部242は、intra_luma_mpm_flagが“1”の場合において、intra_luma_not_planar_flagが“0”の場合はイントラ予測モードとしてPlanarモードを特定する。また、イントラ予測部242は、intra_luma_not_planar_flagが“1”の場合は、次にintra_luma_mpm_idxを復号し、MPM決定部2421が決定したMPMの何番目かを特定する。一方、イントラ予測部242は、intra_luma_mpm_flagが“0”の場合には、intra_luma_mpm_remainderに基づいて、MPMに含まれないいずれのイントラ予測モードであるかを特定する。 The intra prediction unit 242 specifies Planar mode as the intra prediction mode when intra_luma_mpm_flag is "1" and when intra_luma_not_planar_flag is "0". Further, when intra_luma_not_planar_flag is “1”, the intra prediction unit 242 next decodes the intra_luma_mpm_idx and identifies the number of the MPM determined by the MPM determination unit 2421. On the other hand, when intra_luma_mpm_flag is "0", the intra prediction unit 242 identifies which intra prediction mode is not included in MPM based on intra_luma_mpm_remainder.

切替部243は、インター予測部241から出力されるインター予測ブロックとイントラ予測部242から出力されるイントラ予測ブロックとを切り替えて、いずれかの予測ブロックを合成部220に出力する。 The switching unit 243 switches between the inter prediction block output from the inter prediction unit 241 and the intra prediction block output from the intra prediction unit 242, and outputs one of the prediction blocks to the synthesis unit 220.

このように、本実施形態に係る復号装置2は、符号化ストリームを復号することで、復号対象ブロックのイントラ予測に用いるイントラ予測モードを示すイントラ予測モードシンタックスと、復号対象ブロックの変換係数とを出力するエントロピー復号部200と、イントラ予測モードシンタックスに応じて、エントロピー復号部200が変換係数を復号するときのスキャン順を複数のスキャン順候補の中から決定するスキャン制御部201と、復号対象ブロックの周辺の復号済み画素を用いるイントラ予測によって、復号対象ブロックに対応する予測ブロックを生成するイントラ予測部242と、エントロピー復号部200が出力する変換係数に対して逆量子化処理及び逆変換処理を行って予測残差を復元する逆量子化・逆変換部210と、復元した予測残差と予測ブロックとを合成して復号対象ブロックを復元する合成部220とを有する。 In this way, by decoding the encoded stream, the decoding device 2 according to the present embodiment obtains the intra prediction mode syntax indicating the intra prediction mode used for intra prediction of the block to be decoded, and the transform coefficients of the block to be decoded. an entropy decoding unit 200 that outputs a transform coefficient, a scan control unit 201 that determines a scan order from among a plurality of scan order candidates when the entropy decoder 200 decodes transform coefficients according to the intra prediction mode syntax; The intra prediction unit 242 generates a prediction block corresponding to the decoded target block by intra prediction using decoded pixels around the target block, and the entropy decoding unit 200 performs inverse quantization processing and inverse transformation on the transform coefficients output. It has an inverse quantization/inverse transform unit 210 that performs processing to restore a prediction residual, and a combination unit 220 that combines the restored prediction residual and the prediction block to restore a block to be decoded.

本実施形態において、スキャン制御部201は、符号化装置1のスキャン制御部131と同様にして、イントラ予測モードシンタックスからイントラ予測モードを特定することなく、イントラ予測モードシンタックスからスキャン順を直接的に決定する。 In this embodiment, the scan control unit 201 directly determines the scan order from the intra prediction mode syntax without specifying the intra prediction mode from the intra prediction mode syntax, similarly to the scan control unit 131 of the encoding device 1. Determine exactly.

具体的には、スキャン制御部201は、イントラ予測に用いるべきイントラ予測モードが非MPMモードに含まれることをintra_luma_mpm_flagが示す場合、すなわち、intra_luma_mpm_flagが“0”である場合、イントラ予測モードを示すイントラ予測モードシンタックスからスキャン順を直接的に決定する。 Specifically, when the intra_luma_mpm_flag indicates that the intra prediction mode to be used for intra prediction is included in the non-MPM mode, that is, when the intra_luma_mpm_flag is “0”, the scan control unit 201 uses the intra prediction mode indicating the intra prediction mode. Determine scan order directly from prediction mode syntax.

例えば、スキャン制御部201は、イントラ予測に用いるべきイントラ予測モードが非MPMモードに含まれることをintra_luma_mpm_flagが示す場合、各非MPMモード番号をスキャン順候補と対応付ける対応付け情報(図5参照)を用いて、イントラ予測モードを示すイントラ予測モードシンタックスに含まれる非MPMモード番号(intra_luma_mpm_remainder)に対応するスキャン順候補をスキャン順として決定する。スキャン制御部201は、非MPMモード番号(intra_luma_mpm_remainder)をスキャン順の番号(“0”、“1”、“2”のいずれか)に変換できるため、非MPMモード番号からスキャン順を直接的に決定できる。 For example, when intra_luma_mpm_flag indicates that the intra prediction mode to be used for intra prediction is included in the non-MPM mode, the scan control unit 201 generates association information (see FIG. 5) that associates each non-MPM mode number with a scan order candidate. The scan order candidate corresponding to the non-MPM mode number (intra_luma_mpm_remainder) included in the intra prediction mode syntax indicating the intra prediction mode is determined as the scan order. The scan control unit 201 can convert the non-MPM mode number (intra_luma_mpm_remainder) to a scan order number (one of "0", "1", or "2"), so it can directly change the scan order from the non-MPM mode number. You can decide.

これにより、スキャン制御部201は、イントラ予測モードシンタックスを構文解析するだけで、エントロピー復号部200におけるスキャン順を適応的に切り替えることができる。言い換えると、イントラ予測モードシンタックスに対する復号処理によってイントラ予測モードを特定するのを待たずにスキャン処理を開始できる。よって、復号装置2側のスループット低減を抑制しつつ、符号化効率の改善が可能である。 Thereby, the scan control unit 201 can adaptively switch the scan order in the entropy decoding unit 200 simply by parsing the intra prediction mode syntax. In other words, the scan process can be started without waiting for the intra prediction mode to be specified by the decoding process for the intra prediction mode syntax. Therefore, it is possible to improve encoding efficiency while suppressing reduction in throughput on the decoding device 2 side.

<スキャン制御部の動作>
次に、本実施形態に係るスキャン制御部131及び201の動作について説明する。スキャン制御部131及び201は同様な動作を行うため、ここではスキャン制御部201の動作を例に挙げて説明する。図7は、本実施形態に係るスキャン制御部201の動作を示す図である。
<Operation of scan control unit>
Next, the operations of the scan control units 131 and 201 according to this embodiment will be explained. Since the scan control units 131 and 201 perform similar operations, the operation of the scan control unit 201 will be described here as an example. FIG. 7 is a diagram showing the operation of the scan control unit 201 according to this embodiment.

図7に示すように、ステップS1において、スキャン制御部201は、エントロピー復号部200が出力するイントラ予測モードシンタックスに含まれるintra_luma_mpm_flagが“0”であるか又は“1”であるかを判定する。 As shown in FIG. 7, in step S1, the scan control unit 201 determines whether intra_luma_mpm_flag included in the intra prediction mode syntax output by the entropy decoding unit 200 is “0” or “1”. .

intra_luma_mpm_flagが“0”である場合(ステップS1:YES)、ステップS2において、スキャン制御部201は、エントロピー復号部200が出力するイントラ予測モードシンタックスに含まれるintra_luma_mpm_remainderと、図5に示すようなテーブルとに基づいて、スキャン順を直接的に決定する。 When intra_luma_mpm_flag is “0” (step S1: YES), in step S2, the scan control unit 201 generates intra_luma_mpm_remainder included in the intra prediction mode syntax output by the entropy decoding unit 200 and a table as shown in FIG. directly determines the scan order based on the

具体的には、スキャン制御部201は、intra_luma_mpm_remainderをスキャン順の番号(“0”、“1”、“2”のいずれか)に変換することにより、intra_luma_mpm_remainderからスキャン順を直接的に決定する。スキャン順を決定すると、スキャン制御部201は、決定したスキャン順で処理を行うようにエントロピー復号部200を制御する。 Specifically, the scan control unit 201 directly determines the scan order from the intra_luma_mpm_remainder by converting the intra_luma_mpm_remainder into a scan order number (one of "0", "1", and "2"). After determining the scan order, the scan control unit 201 controls the entropy decoding unit 200 to perform processing in the determined scan order.

<その他の実施形態>
符号化装置1が行う各処理をコンピュータに実行させるプログラムが提供されてもよい。復号装置2が行う各処理をコンピュータに実行させるプログラムが提供されてもよい。プログラムは、コンピュータ読取り可能媒体に記録されていてもよい。コンピュータ読取り可能媒体を用いれば、コンピュータにプログラムをインストールすることが可能である。ここで、プログラムが記録されたコンピュータ読取り可能媒体は、非一過性の記録媒体であってもよい。非一過性の記録媒体は、特に限定されるものではないが、例えば、CD-ROMやDVD-ROM等の記録媒体であってもよい。
<Other embodiments>
A program that causes a computer to execute each process performed by the encoding device 1 may be provided. A program that causes a computer to execute each process performed by the decoding device 2 may be provided. The program may be recorded on a computer readable medium. Computer-readable media allow programs to be installed on a computer. Here, the computer-readable medium on which the program is recorded may be a non-transitory recording medium. The non-transitory recording medium is not particularly limited, and may be, for example, a recording medium such as a CD-ROM or a DVD-ROM.

符号化装置1が行う各処理を実行する回路を集積化し、符号化装置1を半導体集積回路(チップセット、SoC)により構成してもよい。復号装置2が行う各処理を実行する回路を集積化し、復号装置2を半導体集積回路(チップセット、SoC)により構成してもよい。 The circuits that execute each process performed by the encoding device 1 may be integrated, and the encoding device 1 may be constituted by a semiconductor integrated circuit (chip set, SoC). The circuits that execute each process performed by the decoding device 2 may be integrated, and the decoding device 2 may be constituted by a semiconductor integrated circuit (chip set, SoC).

以上、図面を参照して実施形態について詳しく説明したが、具体的な構成は上述のものに限られることはなく、要旨を逸脱しない範囲内において様々な設計変更等をすることが可能である。 Although the embodiments have been described above in detail with reference to the drawings, the specific configuration is not limited to that described above, and various design changes can be made without departing from the scope of the invention.

1 :符号化装置
2 :復号装置
100 :ブロック分割部
110 :減算部
120 :変換・量子化部
121 :変換部
122 :量子化部
130 :エントロピー符号化部
131 :スキャン制御部
140 :逆量子化・逆変換部
141 :逆量子化部
142 :逆変換部
150 :合成部
160 :メモリ
170 :予測部
171 :インター予測部
172 :イントラ予測部
173 :切替部
200 :エントロピー復号部
201 :スキャン制御部
210 :逆量子化・逆変換部
211 :逆量子化部
212 :逆変換部
220 :合成部
230 :メモリ
240 :予測部
241 :インター予測部
242 :イントラ予測部
243 :切替部
1721 :MPM決定部
1722 :シンタックス生成部
2421 :MPM決定部
1: Encoding device 2: Decoding device 100: Block division unit 110: Subtraction unit 120: Transformation/quantization unit 121: Transformation unit 122: Quantization unit 130: Entropy encoding unit 131: Scan control unit 140: Inverse quantization - Inverse transform unit 141 : Inverse quantization unit 142 : Inverse transform unit 150 : Combining unit 160 : Memory 170 : Prediction unit 171 : Inter prediction unit 172 : Intra prediction unit 173 : Switching unit 200 : Entropy decoding unit 201 : Scan control unit 210: Inverse quantization/inverse transformation unit 211: Inverse quantization unit 212: Inverse transformation unit 220: Combining unit 230: Memory 240: Prediction unit 241: Inter prediction unit 242: Intra prediction unit 243: Switching unit 1721: MPM determination unit 1722: Syntax generation unit 2421: MPM determination unit

Claims (8)

画像を構成するブロック単位で符号化を行う符号化装置であって、
符号化対象ブロックの周辺の復号済み画素を用いるイントラ予測によって、前記符号化対象ブロックに対応する予測ブロックを生成するイントラ予測部と、
前記符号化対象ブロックと前記予測ブロックとの差を表す予測残差に対して変換処理及び量子化処理を行う変換・量子化部と、
前記変換・量子化部が出力する変換係数を符号化するエントロピー符号化部と、
前記イントラ予測に用いたイントラ予測モードを示すシンタックスに応じて、前記エントロピー符号化部が前記変換係数を符号化するときのスキャン順を複数のスキャン順候補の中から決定するスキャン制御部と、を備え、
前記スキャン制御部は、前記シンタックスから前記イントラ予測モードを特定することなく、前記シンタックスから前記スキャン順を直接的に決定することを特徴とする符号化装置。
An encoding device that performs encoding in units of blocks constituting an image,
an intra prediction unit that generates a prediction block corresponding to the current block by intra prediction using decoded pixels surrounding the current block;
a transformation/quantization unit that performs transformation processing and quantization processing on a prediction residual representing a difference between the encoding target block and the prediction block;
an entropy encoding unit that encodes the transformation coefficients output by the transformation/quantization unit;
a scan control unit that determines a scan order from among a plurality of scan order candidates when the entropy encoding unit encodes the transform coefficients according to a syntax indicating an intra prediction mode used for the intra prediction; Equipped with
The encoding device is characterized in that the scan control unit directly determines the scan order from the syntax without specifying the intra prediction mode from the syntax.
前記イントラ予測部は、
前記符号化対象ブロックの周辺のブロックに適用されたイントラ予測モードに基づいて、前記符号化対象ブロックに優先的に適用する複数の優先イントラ予測モードと、前記複数の優先イントラ予測モード以外の複数の非優先イントラ予測モードとを決定する優先モード決定部と、
前記イントラ予測に用いたイントラ予測モードが前記複数の優先イントラ予測モード及び前記複数の非優先イントラ予測モードのいずれに含まれるかを示すフラグを有する前記シンタックスを生成するシンタックス生成部と、を有し、
前記スキャン制御部は、前記イントラ予測に用いたイントラ予測モードが前記複数の非優先イントラ予測モードに含まれることを前記フラグが示す場合、前記シンタックスから前記スキャン順を直接的に決定することを特徴とする請求項1に記載の符号化装置。
The intra prediction unit is
A plurality of priority intra prediction modes that are preferentially applied to the block to be encoded based on intra prediction modes applied to blocks surrounding the block to be encoded, and a plurality of priority intra prediction modes other than the plurality of priority intra prediction modes. a priority mode determining unit that determines a non-priority intra prediction mode;
a syntax generation unit that generates the syntax having a flag indicating which of the plurality of priority intra prediction modes and the plurality of non-priority intra prediction modes the intra prediction mode used for the intra prediction is included in; have,
When the flag indicates that the intra prediction mode used for the intra prediction is included in the plurality of non-priority intra prediction modes, the scan control unit may directly determine the scan order from the syntax. The encoding device according to claim 1.
前記シンタックス生成部は、前記イントラ予測に用いたイントラ予測モードが前記複数の非優先イントラ予測モードに含まれる場合、前記イントラ予測に用いたイントラ予測モードを示す非優先イントラ予測モード番号をさらに含む前記シンタックスを生成し、
前記スキャン制御部は、前記イントラ予測に用いたイントラ予測モードが前記複数の非優先イントラ予測モードに含まれることを前記フラグが示す場合、各非優先イントラ予測モード番号をスキャン順候補と対応付ける対応付け情報を用いて、前記シンタックスに含まれる前記非優先イントラ予測モード番号に対応するスキャン順候補を前記スキャン順として決定することを特徴とする請求項2に記載の符号化装置。
When the intra prediction mode used for the intra prediction is included in the plurality of non-priority intra prediction modes, the syntax generation unit further includes a non-priority intra prediction mode number indicating the intra prediction mode used for the intra prediction. generate the syntax;
When the flag indicates that the intra prediction mode used for the intra prediction is included in the plurality of non-priority intra prediction modes, the scan control unit associates each non-priority intra prediction mode number with a scan order candidate. The encoding device according to claim 2, wherein a scan order candidate corresponding to the non-priority intra prediction mode number included in the syntax is determined as the scan order using information.
画像を構成するブロック単位で復号を行う復号装置であって、
符号化ストリームを復号することで、復号対象ブロックのイントラ予測に用いるイントラ予測モードを示すシンタックスと、前記復号対象ブロックの変換係数とを出力するエントロピー復号部と、
前記シンタックスに応じて、前記エントロピー復号部が前記変換係数を復号するときのスキャン順を複数のスキャン順候補の中から決定するスキャン制御部と、
前記復号対象ブロックの周辺の復号済み画素を用いるイントラ予測によって、前記復号対象ブロックに対応する予測ブロックを生成するイントラ予測部と、
前記エントロピー復号部が出力する前記変換係数に対して逆量子化処理及び逆変換処理を行って予測残差を復元する逆量子化・逆変換部と、
前記復元した予測残差と前記予測ブロックとを合成して前記復号対象ブロックを復元する合成部と、を備え、
前記スキャン制御部は、前記シンタックスから前記イントラ予測モードを特定することなく、前記シンタックスから前記スキャン順を直接的に決定することを特徴とする復号装置。
A decoding device that performs decoding in units of blocks constituting an image,
an entropy decoding unit that outputs syntax indicating an intra prediction mode used for intra prediction of the block to be decoded and transform coefficients of the block to be decoded by decoding the encoded stream;
a scan control unit that determines a scan order from among a plurality of scan order candidates when the entropy decoding unit decodes the transform coefficients according to the syntax;
an intra prediction unit that generates a prediction block corresponding to the decoding target block by intra prediction using decoded pixels surrounding the decoding target block;
an inverse quantization/inverse transform unit that performs inverse quantization processing and inverse transform processing on the transform coefficients output by the entropy decoding unit to restore a prediction residual;
a combining unit that combines the restored prediction residual and the prediction block to restore the decoding target block,
The decoding device is characterized in that the scan control unit directly determines the scan order from the syntax without specifying the intra prediction mode from the syntax.
前記イントラ予測部は、前記復号対象ブロックの周辺のブロックに適用されたイントラ予測モードに基づいて、前記復号対象ブロックに優先的に適用する複数の優先イントラ予測モードと、前記複数の優先イントラ予測モード以外の複数の非優先イントラ予測モードとを決定する優先モード決定部を有し、
前記シンタックスは、前記復号対象ブロックのイントラ予測に用いるイントラ予測モードが前記複数の優先イントラ予測モード及び前記複数の非優先イントラ予測モードのいずれに含まれるかを示すフラグを有し、
前記スキャン制御部は、前記復号対象ブロックのイントラ予測に用いるイントラ予測モードが前記複数の非優先イントラ予測モードに含まれることを前記フラグが示す場合、前記シンタックスから前記スキャン順を直接的に決定することを特徴とする請求項4に記載の復号装置。
The intra prediction unit includes a plurality of priority intra prediction modes that are preferentially applied to the block to be decoded based on intra prediction modes applied to blocks surrounding the block to be decoded, and a plurality of priority intra prediction modes that are preferentially applied to the block to be decoded. a priority mode determination unit that determines a plurality of non-priority intra prediction modes other than
The syntax includes a flag indicating which of the plurality of priority intra prediction modes and the plurality of non-priority intra prediction modes the intra prediction mode used for intra prediction of the block to be decoded is included,
When the flag indicates that an intra prediction mode used for intra prediction of the block to be decoded is included in the plurality of non-priority intra prediction modes, the scan control unit directly determines the scan order from the syntax. The decoding device according to claim 4, characterized in that:
前記シンタックスは、前記復号対象ブロックのイントラ予測に用いるイントラ予測モードが前記複数の非優先イントラ予測モードに含まれる場合、前記イントラ予測に用いるイントラ予測モードを示す非優先イントラ予測モード番号をさらに有し、
前記スキャン制御部は、前記イントラ予測に用いるイントラ予測モードが前記複数の非優先イントラ予測モードに含まれることを前記フラグが示す場合、各非優先イントラ予測モード番号をスキャン順候補と対応付ける対応付け情報を用いて、前記シンタックスに含まれる前記非優先イントラ予測モード番号に対応するスキャン順候補を前記スキャン順として決定することを特徴とする請求項5に記載の復号装置。
When the intra prediction mode used for intra prediction of the block to be decoded is included in the plurality of non-priority intra prediction modes, the syntax further includes a non-priority intra prediction mode number indicating the intra prediction mode used for the intra prediction. death,
When the flag indicates that the intra prediction mode used for the intra prediction is included in the plurality of non-priority intra prediction modes, the scan control unit generates association information that associates each non-priority intra prediction mode number with a scan order candidate. 6. The decoding device according to claim 5, wherein a scan order candidate corresponding to the non-priority intra prediction mode number included in the syntax is determined as the scan order using .
コンピュータを請求項1乃至3のいずれか1項に記載の符号化装置として機能させることを特徴とするプログラム。 A program that causes a computer to function as the encoding device according to any one of claims 1 to 3. コンピュータを請求項4乃至6のいずれか1項に記載の復号装置として機能させることを特徴とするプログラム。 A program for causing a computer to function as the decoding device according to any one of claims 4 to 6.
JP2019221549A 2019-12-06 2019-12-06 Encoding device, decoding device, and program Active JP7441638B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019221549A JP7441638B2 (en) 2019-12-06 2019-12-06 Encoding device, decoding device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019221549A JP7441638B2 (en) 2019-12-06 2019-12-06 Encoding device, decoding device, and program

Publications (2)

Publication Number Publication Date
JP2021093575A JP2021093575A (en) 2021-06-17
JP7441638B2 true JP7441638B2 (en) 2024-03-01

Family

ID=76310805

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019221549A Active JP7441638B2 (en) 2019-12-06 2019-12-06 Encoding device, decoding device, and program

Country Status (1)

Country Link
JP (1) JP7441638B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013003581A1 (en) 2011-06-28 2013-01-03 Qualcomm Incorporated Coding of last significant transform coefficient
WO2013099892A1 (en) 2011-12-28 2013-07-04 シャープ株式会社 Arithmetic decoding device, image decoding device, and arithmetic encoding device
US20180027236A1 (en) 2015-02-17 2018-01-25 Lg Electronics Inc. Method and device for encoding/decoding video signal by using adaptive scan order

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013003581A1 (en) 2011-06-28 2013-01-03 Qualcomm Incorporated Coding of last significant transform coefficient
WO2013099892A1 (en) 2011-12-28 2013-07-04 シャープ株式会社 Arithmetic decoding device, image decoding device, and arithmetic encoding device
US20180027236A1 (en) 2015-02-17 2018-01-25 Lg Electronics Inc. Method and device for encoding/decoding video signal by using adaptive scan order

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Jani Lainema, et al.,Intra Coding of the HEVC Standard,IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY,IEEE,2012年12月,VOL. 22, NO. 12,pp.1792 - 1801
Thomas Davies,BBC’s Response to the Call for Proposals on Video Compression Technology,Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11,JCTVC-A125,1st Meeting: Dresden, DE,2010年04月,pp.1-6,19

Also Published As

Publication number Publication date
JP2021093575A (en) 2021-06-17

Similar Documents

Publication Publication Date Title
WO2018061588A1 (en) Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method, and image decoding program
US11695955B2 (en) Image encoding device, image decoding device and program
JP7047777B2 (en) Image data coding and decoding
JP7357736B2 (en) Encoding device, decoding device, and program
JP2023168518A (en) Prediction block generation device, image encoder, image decoder, and program
KR20230035009A (en) The method of encoding and decoding of quantization matrix and the apparatus for using the same
JP2024053019A (en) Encoding device, decoding device, and program
JP7415067B2 (en) Intra prediction device, image decoding device, and program
JP2023138826A (en) Intra prediction device, image coding device, image decoding device, and program
JP7441638B2 (en) Encoding device, decoding device, and program
JP7412343B2 (en) Image encoding device, image decoding device, and program
JP7396883B2 (en) Encoding device, decoding device, and program
JP7388900B2 (en) Encoding device, decoding device, and program
JP7361498B2 (en) Intra prediction device, image encoding device, image decoding device, and program
JP7449690B2 (en) Inter prediction device, image encoding device, image decoding device, and program
WO2021132404A1 (en) Encoding device, decoding device, and program
JP7069421B2 (en) Encoding device, decoding device, and program
KR20220163342A (en) Encoding device, decoding device and program

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20200529

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20200612

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20221104

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231024

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231225

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20240123

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240219

R150 Certificate of patent or registration of utility model

Ref document number: 7441638

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150