Image decoding device, image decoding method, and program

By integrating intra-prediction modes into the Geometric Partitioning Mode (GPM) using methods like DIMD, TIMD, and BIMD, the image decoding process achieves enhanced inter prediction and encoding performance.

JP2024133387AActive Publication Date: 2024-10-01KDDI CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2024118276
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-01
Estimated Expiration
2041-09-27

AI Technical Summary

Technical Problem

The existing Geometric Partitioning Mode (GPM) in image decoding is limited to inter prediction, leading to suboptimal encoding performance.

Method used

Incorporating intra prediction modes into the GPM by deriving multiple intra-prediction modes for each partitioned region of a block, utilizing methods like DIMD, TIMD, and BIMD to enhance prediction performance.

Benefits of technology

Improves inter prediction and encoding performance by leveraging intra-prediction modes, resulting in more efficient image decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024133387000001_ABST
    Figure 2024133387000001_ABST
Patent Text Reader

Abstract

To improve inter-prediction performance and improve coding performance when adding an intra-prediction mode to a GPM.SOLUTION: An image decoding device 200 according to the present invention comprises an intra-prediction unit 242 configured to derive a plurality of intra-prediction modes from each division area of a decoding target block to which a geometric partitioning mode is applied, thereby generating intra-prediction pixels.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image decoding device, an image decoding method, and a program. [Background technology]

[0002] Non-Patent Document 1 discloses GPM (Geometric Partitioning Mode).

[0003] GPM divides a rectangular block diagonally into two and motion compensates each of them. Specifically, in GPM, the two divided regions are motion compensated using merge mode motion vectors and then combined using weighted averaging. There are 64 diagonal division patterns available, depending on the angle and position. [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] ITU-T H.266 / VVC [Non-Patent Document 2] JVET-U0100, “Compression efficiency methods beyond VVC” [Non-Patent Document 3] JVET-W0024, “EE2:Summary Report on Enhanced Compression beyond VVC capability” Summary of the Invention [Problem to be solved by the invention]

[0005] However, the GPM disclosed in Non-Patent Document 1 is limited to inter prediction, and therefore has a problem that there is room for improvement in coding performance. Therefore, the present invention has been made in consideration of the above-mentioned problems, and aims to provide an image decoding device, an image decoding method, and a program that can improve inter prediction performance and improve coding performance when an intra prediction mode is added in GPM. [Means for solving the problem]

[0006] A first feature of the present invention is summarized as including an intra prediction unit configured to derive a plurality of intra prediction modes and generate intra predicted pixels for each divided area of ​​a block to be decoded to which a geometric partitioning mode is applied.

[0007] A second feature of the present invention is summarized as an image decoding method including a step of deriving a plurality of intra prediction modes for each divided area of ​​a block to be decoded to which a geometric partitioning mode is applied, and generating intra prediction pixels.

[0008] A third feature of the present invention is a program for causing a computer to function as an image decoding device, the image decoding device including an intra prediction unit configured to derive a plurality of intra prediction modes for each divided area of ​​a block to be decoded to which a geometric partitioning mode is applied, and generate intra predicted pixels. Effect of the Invention

[0009] According to the present invention, it is possible to provide an image decoding device, an image decoding method, and a program that can improve inter prediction performance and improve encoding performance when an intra prediction mode is added in GPM. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a diagram showing an example of the configuration of an image processing system 1 according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of functional blocks of the image encoding device 100 according to an embodiment. [Diagram 3] FIG. 3 is a diagram showing an example of functional blocks of an image decoding device 200 according to an embodiment. [Figure 4] FIG. 4 is a diagram showing an example of a case in which a rectangular block to be decoded is divided into two geometrically shaped division areas A and B by a division line in the geometric division mode using the geometric division mode disclosed in non-patent document 1. [Diagram 5] FIG. 5 illustrates an example of application of intra prediction modes to the GPM according to the present embodiment. [Figure 6] FIG. 6 illustrates an example of application of intra prediction modes to the GPM according to this embodiment. [Figure 7] FIG. 7 is a diagram showing an example of an intra prediction mode candidate list according to this embodiment. [Figure 8] Figure 8 is a diagram showing an example of a method for deriving an intra prediction mode based on adjacent reference pixels for normal intra prediction according to non-patent document 2, and a method 1 for deriving an intra prediction mode based on adjacent reference pixels for a geometric partitioning mode according to this embodiment in which such a derivation method is applied. [Figure 9] FIG. 9 is a diagram showing a table for limiting the area of ​​a template (adjacent reference pixels) to be referenced based on a division line of a GPM in the technique of template matching for GPM disclosed in Non-Patent Document 2. [Figure 10] Figure 10 is a diagram showing an example of a method for deriving an intra prediction mode based on adjacent reference pixels for normal intra prediction according to non-patent document 3, and an example of method 2 for deriving an intra prediction mode based on adjacent reference pixels for a geometric partitioning mode according to this embodiment, which applies such a derivation method. [Figure 11]Figure 11 is a diagram showing an example of a method for deriving an intra prediction mode based on adjacent reference blocks for normal intra prediction according to non-patent document 1 and non-patent document 2, and a method for deriving an intra prediction mode based on adjacent reference blocks for a geometric partitioning mode according to this embodiment to which such a derivation method is applied. [Figure 12] FIG. 12 is a diagram showing a method of constructing a merge candidate list disclosed in Non-Patent Document 1. [Figure 13] FIG. 13 is a diagram showing an example of values ​​of weighting coefficients w for predicted pixels in each divided area A / B of the GPM according to Non-Patent Document 1 and this embodiment. [Figure 14] FIG. 14 is a diagram showing an example of angleIdx that defines the angle of the division line of the GPM. [Figure 15] FIG. 15 is a diagram showing an example of disLut. [Figure 16] FIG. 16 is a diagram showing an example in which the stored prediction information type disclosed in Non-Patent Document 1 and the stored prediction information type according to this embodiment are specified for each 4×4 pixel sub-block. [Figure 17] FIG. 17 is a diagram showing a list of motion information disclosed in Non-Patent Document 1 and prediction information according to this embodiment, which is stored according to the value of sType of a sub-block that constitutes a GPM-applied block. [Figure 18] FIG. 18 is a diagram showing an example of prediction information stored for a GPM configured with two different inter predictions as shown in FIG. [Figure 19] FIG. 19 is a diagram showing an example of prediction information stored for a GPM configured with intra prediction and inter prediction as shown in FIG. [Figure 20] FIG. 20 is a diagram showing an example of prediction information stored for a GPM configured with two different intra predictions as shown in FIG. [Figure 21] FIG. 21 is a diagram showing an example of prediction information stored for a GPM configured with two different intra predictions as shown in FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, the embodiments of the present invention will be described with reference to the drawings. Note that the components in the following embodiments can be appropriately replaced with existing components, and various variations including combinations with other existing components are possible. Therefore, the description of the following embodiments does not limit the content of the invention described in the claims.

[0012] First Embodiment An image processing system 10 according to a first embodiment of the present invention will be described below with reference to Figures 1 to 21. Figure 1 is a diagram showing an image processing system 10 according to this embodiment.

[0013] (Image Processing System 10) As shown in FIG. 1, an image processing system 10 according to this embodiment includes an image encoding device 100 and an image decoding device 200.

[0014] The image coding device 100 is configured to generate coded data by coding an input image signal (picture). The image decoding device 200 is configured to generate an output image signal by decoding the coded data.

[0015] Here, the encoded data may be transmitted from the image encoding device 100 to the image decoding device 200 via a transmission path. Alternatively, the encoded data may be stored in a storage medium and then provided from the image encoding device 100 to the image decoding device 200.

[0016] (Image encoding device 100) The image encoding device 100 according to this embodiment will be described below with reference to Fig. 2. Fig. 2 is a diagram showing an example of functional blocks of the image encoding device 100 according to this embodiment.

[0017] As shown in FIG. 2, the image encoding device 100 includes an inter prediction unit 111, an intra prediction unit 112, a synthesis unit 113, a prediction information buffer 114, a subtractor 121, an adder 122, a transform / quantization unit 131, an inverse transform / inverse quantization unit 132, an encoding unit 140, an in-loop filter processing unit 150, and a frame buffer 160.

[0018] The inter prediction unit 111 is configured to generate an inter prediction signal by inter prediction (inter-frame prediction).

[0019] Specifically, the inter prediction unit 111 is configured to identify a reference block included in a reference frame by comparing a frame to be coded (target frame) with a reference frame stored in the frame buffer 160, and to determine a motion vector (MV) for the identified reference block. Here, the reference frame is a frame different from the target frame.

[0020] Furthermore, the inter prediction unit 111 is configured to generate, for each current block to be coded (hereinafter, current block), an inter prediction signal included in the current block, based on the reference block and the motion vector.

[0021] Furthermore, the inter prediction unit 111 is configured to output the inter prediction signal to the synthesis unit 113.

[0022] In addition, although not shown in Figure 2, the inter prediction unit 111 is configured to output information regarding the control of inter prediction (specifically, information such as the inter prediction mode, motion vector, reference frame list, reference frame number, etc.) to the encoding unit 140.

[0023] The intra prediction unit 112 is configured to generate an intra prediction signal by intra prediction (intra-frame prediction).

[0024] Specifically, the intra prediction unit 112 is configured to identify a reference block included in a target frame, and generate an intra prediction signal for each target block based on the identified reference block. Here, the reference block is a block referenced for the target block. For example, the reference block is a block adjacent to the target block.

[0025] Moreover, the intra prediction unit 112 is configured to output the intra prediction signal to the synthesis unit 113 .

[0026] Although not shown in FIG. 2, the intra prediction unit 112 is configured to output information relating to control of intra prediction (specifically, information such as an intra prediction mode) to the encoding unit 140.

[0027] The synthesis unit 113 is configured to synthesize the inter prediction signal input from the inter prediction unit 111 and / or the intra prediction signal input from the intra prediction unit 112 using a preset weighting coefficient, and output the synthesized prediction signal (hereinafter collectively referred to as prediction signal) to the subtractor 121 and the adder 122.

[0028] The prediction information buffer 114 is configured to store prediction information input from the inter prediction unit 111 or the intra prediction unit 112, or to output the stored prediction information to the inter prediction unit 111, the intra prediction unit 112, the synthesis unit 113, or the in-loop filter processing unit 150. Details of the prediction information will be described later.

[0029] Here, with regard to the synthesis process of the synthesizing unit 113 for the inter-prediction signal and / or the intra-prediction signal, a configuration similar to that of Non-Patent Document 1 can be adopted in the present embodiment, and therefore a description thereof will be omitted.

[0030] The subtractor 121 is configured to subtract the prediction signal from the input image signal, and output the prediction residual signal to the transformation and quantization unit 131. Here, the subtractor 121 is configured to generate a prediction residual signal that is the difference between the prediction signal generated by intra prediction or inter prediction and the input image signal.

[0031] The adder 122 is configured to add the prediction signal output from the synthesis unit 113 to the prediction residual signal output from the inverse transformation / inverse quantization unit 132 to generate a pre-filtered decoded signal, and to output the pre-filtered decoded signal to the intra prediction unit 112 and the in-loop filter processing unit 150.

[0032] Here, the unfiltered decoded signal forms a reference block used by the intra prediction unit 112 .

[0033] The transform / quantization unit 131 is configured to perform a transform process on the prediction residual signal and to obtain a coefficient level value. Furthermore, the transform / quantization unit 131 may be configured to quantize the coefficient level value.

[0034] Here, the transform process is a process of transforming a prediction residual signal into a frequency component signal. For such a transform process, a basis pattern (transformation matrix) corresponding to a discrete cosine transform (hereinafter, abbreviated as DCT) may be used, or a basis pattern (transformation matrix) corresponding to a discrete sine transform (hereinafter, abbreviated as DST) may be used.

[0035] As a transform process, MTS (Multiple Transform Selection), which is disclosed in Non-Patent Document 1 and enables selection of a transform base suitable for the bias of coefficients of a prediction residual signal from among a plurality of transform bases for each horizontal and vertical direction, or LFNST (Low Frequency Non-Separable Transform), which improves coding performance by concentrating transform coefficients after a primary transform in a further low frequency region, may be used.

[0036] The inverse transform / inverse quantization unit 132 is configured to perform an inverse transform process on the coefficient level values ​​output from the transform / quantization unit 131. Here, the inverse transform / inverse quantization unit 132 may be configured to perform inverse quantization of the coefficient level values ​​prior to the inverse transform process.

[0037] Here, the inverse transformation process and inverse quantization are performed in the reverse order to the transformation process and quantization performed by the transformation and quantization unit 131 .

[0038] The encoding unit 140 is configured to encode the coefficient level values ​​output from the transform / quantization unit 131, and output encoded data.

[0039] Here, for example, the coding is entropy coding, which assigns codes of different lengths based on the probability of occurrence of coefficient level values.

[0040] The encoding unit 140 is also configured to encode control data for use in the decoding process in addition to the coefficient level values.

[0041] Here, the control data may include information (flags and indexes) regarding block sizes such as an encoding block size, a prediction block size, and a transform block size.

[0042] The control data may also include information (flags and indexes) necessary for controlling the inverse transform / inverse quantization process of the inverse transform / inverse quantization unit 220 in the image decoding device 200 described later, the inter prediction signal generation process of the inter prediction unit 241, the intra prediction signal generation process of the intra prediction unit 242, the synthesis process of the inter prediction signal and / or intra prediction signal of the synthesis unit 243, and the filtering process of the in-loop filter processing unit 250.

[0043] In Non-Patent Document 1, this control data is called syntax, and its definition is called semantics.

[0044] The control data may also include header information such as a sequence parameter set (SPS), a picture parameter set (PPS), a picture header (PH), and a slice header (SH), which will be described later.

[0045] The in-loop filtering unit 150 is configured to perform filtering on the unfiltered decoded signal output from the adder 122 , and to output the filtered decoded signal to the frame buffer 160 .

[0046] Here, for example, the filter processing is a deblocking filter processing that reduces distortion occurring at the boundary portions of blocks (encoding blocks, prediction blocks, or transformation blocks), or an adaptive loop filter processing that switches filters based on filter coefficients and filter selection information transmitted from the image encoding device 100, local properties of the image pattern, etc.

[0047] The frame buffer 160 is configured to store reference frames used by the inter prediction unit 111 .

[0048] Here, the filtered decoded signal forms a reference frame used in the inter prediction unit 111.

[0049] (Image Decoding Device 200) Hereinafter, the image decoding device 200 according to this embodiment will be described with reference to Fig. 3. Fig. 3 is a diagram showing an example of functional blocks of the image decoding device 200 according to this embodiment.

[0050] As shown in FIG. 3, the image decoding device 200 includes a decoding unit 210, an inverse transform / inverse quantization unit 220, an adder 230, an inter prediction unit 241, an intra prediction unit 242, a synthesis unit 243, a prediction information buffer 224, an in-loop filtering unit 250, and a frame buffer 260.

[0051] The decoding unit 210 is configured to decode the coded data generated by the image coding device 100, and to decode the coefficient level values.

[0052] Here, the decoding is, for example, entropy decoding that is the reverse procedure of the entropy encoding performed by the encoding unit 140.

[0053] The decoding unit 210 may also be configured to obtain the control data by decoding the encoded data.

[0054] Here, the control data may include information regarding the block size of the above-mentioned decoded block (synonymous with the encoding target block in the above-mentioned image encoding device 100; hereinafter, collectively referred to as the target block).

[0055] The control data may also include information (flags and indexes) necessary for controlling the inverse transform / inverse quantization process of the inverse transform / inverse quantization unit 220, the predicted pixel generation process of the inter prediction unit 241 and the intra prediction unit 242, the filtering process of the in-loop filtering unit 250, and the like.

[0056] The control data may also include header information such as the above-mentioned sequence parameter set (SPS: Sequence Parameter Set), picture parameter set (PPS: Picture Parameter Set), picture header (PH: Picture Header), and slice header (SH: Slice Header).

[0057] The inverse transform / inverse quantization unit 220 is configured to perform an inverse transform process on the coefficient level values ​​output from the decoding unit 210. Here, the inverse transform / inverse quantization unit 220 may be configured to perform an inverse quantization process on the coefficient level values ​​prior to the inverse transform process.

[0058] Here, the inverse transformation process and inverse quantization are performed in the reverse order to the transformation process and quantization performed by the transformation and quantization unit 131 .

[0059] Similar to the inter prediction unit 111, the inter prediction unit 241 is configured to generate an inter prediction signal by inter prediction (inter-frame prediction).

[0060] Specifically, the inter prediction unit 241 is configured to generate an inter prediction signal based on a motion vector decoded from encoded data and a reference signal included in a reference frame. The inter prediction unit 241 is configured to output the inter prediction signal to the synthesis unit 243.

[0061] Similar to the intra prediction unit 112, the intra prediction unit 242 is configured to generate an intra prediction signal by intra prediction (intra-frame prediction).

[0062] Specifically, the intra prediction unit 242 is configured to identify a reference block included in the target frame, and generate an intra prediction signal for each prediction block based on the identified reference block. The intra prediction unit 242 is configured to output the intra prediction signal to the synthesis unit 243.

[0063] Similar to the synthesis unit 113, the synthesis unit 243 is configured to synthesize the inter prediction signal input from the inter prediction unit 241 and / or the intra prediction signal input from the intra prediction unit 242 using a preset weighting coefficient, and output the synthesized prediction signal (hereinafter collectively referred to as the prediction signal) to the adder 230.

[0064] The prediction information buffer 244 is configured to store prediction information input from the inter prediction unit 221 or the intra prediction unit 222, similarly to the prediction information buffer 114, or to output the stored prediction information to the inter prediction unit 241, the intra prediction unit 242, the synthesis unit 243, or the in-loop filter processing unit 250. Here, the prediction information will be described in detail later.

[0065] The adder 230 is configured to add the prediction signal output from the synthesis unit 243 to the prediction residual signal output from the inverse transform / inverse quantization unit 220 to generate a pre-filtered decoded signal, and output the pre-filtered decoded signal to the in-loop filter processing unit 250.

[0066] Here, the unfiltered decoded signal forms a reference block used by the intra prediction unit 242 .

[0067] Similar to in-loop filter processing unit 150, in-loop filter processing unit 250 is configured to perform filtering on the unfiltered decoded signal output from adder 230, and to output the filtered decoded signal to frame buffer 260.

[0068] Here, for example, the filter processing is a deblocking filter processing that reduces distortion occurring at the boundary parts of blocks (encoding blocks, prediction blocks, transformation blocks, or subblocks obtained by dividing them), or an adaptive loop filter processing that switches filters based on filter coefficients, filter selection information, and local properties of the image pattern transmitted from the image encoding device 100.

[0069] Similar to the frame buffer 160, the frame buffer 260 is configured to store reference frames used by the inter prediction unit 241.

[0070] Here, the filtered decoded signal forms a reference frame used by the inter prediction unit 241.

[0071] (Geometry division mode) Hereinafter, the geometric partitioning mode (GPM) disclosed in Non-Patent Document 1 related to the decoding unit 210, the inter prediction unit 241, and the intra prediction unit 242 will be described with reference to FIG.

[0072] FIG. 4 shows an example of a case in which a rectangular block to be decoded is divided into two geometrically shaped division areas A and B by a division line L in the geometric division mode disclosed in Non-Patent Document 1.

[0073] Here, the division line L in the geometric division mode disclosed in Non-Patent Document 1 has 64 patterns prepared depending on the angle and position.

[0074] Furthermore, the GPM according to Non-Patent Document 1 applies inter prediction to each of the divided regions A and B, and generates inter predicted (motion compensated) pixels.

[0075] Specifically, in this GPM, a merge candidate list as disclosed in Non-Patent Document 1 is constructed, and based on this merge candidate list and two merge indexes (merge_gpm_idx0, merge_gpm_idx1) for each divided area A / B transmitted from the image encoding device 100, a motion vector (mvA, mvB) and a reference frame for each divided area A / B are derived to generate a reference block, i.e., an inter-prediction (or motion compensation) block, and finally, the inter-prediction pixels of each divided area A / B are weighted-averaged using preset weights and synthesized.

[0076] (Application of intra-prediction to GPM) Below, using Figures 5 and 6, we will explain the application of the geometric partitioning mode (GPM) disclosed in Non-Patent Document 1 relating to the decoding unit 210, the inter prediction unit 241, and the intra prediction unit 242 to the intra prediction mode, and the first geometric partitioning mode (GPM) according to this embodiment.

[0077] 5 and 6 show an example of application of intra prediction modes to the GPM according to this embodiment.

[0078] Specifically, Fig. 5 shows a configuration example of the GPM according to the present embodiment when intra prediction (modeX) and inter prediction are applied to each divided region A / B. Fig. 6 shows a configuration example of the GPM according to the present embodiment when two different intra predictions (modeX, modeY) are applied to each divided region A / B.

[0079] Here, in the first GPM according to the present embodiment, either inter prediction or intra prediction mode can be applied to each divided region A / B. Furthermore, the type of intra prediction mode applied in intra prediction is limited based on the division shape (division line) of the GPM applied to the target block. That is, the applicable intra prediction mode is derived based on the division shape (division line) of the GPM applied to the target block.

[0080] In addition, the second GPM according to this embodiment specifies whether or not a GPM that additionally applies an intra prediction mode to a block to be decoded can be applied, and a method for identifying the prediction mode type in each divided area A / B when the GPM is applied.

[0081] As a result, the GPM to which an intra prediction mode is additionally applied is appropriately applied to the block to be decoded, and the optimal prediction mode is identified, thereby achieving room for further improvement in encoding performance.

[0082] In the following, a GPM consisting of two different inter predictions as shown in Figure 4, a GPM consisting of intra prediction and inter prediction as shown in Figure 5, and a GPM consisting of two intra predictions as shown in Figure 6 will be referred to as Inter / Inter-GPM, Intra / Inter-GPM, and Intra / Intra-GPM, respectively.

[0083] Furthermore, in this embodiment, for intra prediction that is additionally applied to the GPM, in addition to the method of deriving an intra prediction mode based on the division shape (division line) of the GPM applied to the block to be decoded described above, a method of deriving an intra prediction mode based on adjacent reference pixels or adjacent reference blocks adjacent to the block to be decoded is specified.

[0084] Here, the adjacent reference pixels or adjacent reference blocks adjacent to the block to be decoded refer to reference pixels or reference blocks adjacent to the block to be decoded and for which the decoding process has been completed at the start of the decoding process of the block to be decoded.

[0085] Since the intra prediction mode applied to intra prediction of GPM can be derived based on adjacent reference pixels or adjacent reference blocks, the intra prediction performance in GPM is improved, and as a result, room for further improvement in coding performance can be realized.

[0086] [Method of deriving and selecting intra prediction mode in the intra prediction unit 242] Hereinafter, a method of deriving and selecting an intra prediction mode for Intra / Inter-GPM and Intra / Intra-GPM among application patterns of intra prediction to GPM proposed in this embodiment in the intra prediction unit 242 will be described.

[0087] (Intra prediction mode candidate list) A method for constructing an intra prediction mode candidate list for GPM (hereinafter, referred to as an intra prediction mode candidate list) in the intra prediction unit 242 according to this embodiment will be described below with reference to Fig. 7. Fig. 7 is a diagram showing an example of the intra prediction mode candidate list according to this embodiment.

[0088] In this embodiment, the list size of the intra prediction mode candidate list may be a fixed value. For example, the list size may be "3", "4", and "5", or "6", which is the maximum size of an intra prediction mode candidate list for intra prediction blocks not using GPM as disclosed in Non-Patent Document 1, or "22", which is the maximum size of an intra prediction mode candidate list for intra prediction blocks not using GPM as disclosed in Non-Patent Document 3. Alternatively, the list size may be a positive number between "7" and "21".

[0089] Alternatively, the list size of the intra prediction mode candidate list may be a variable value. For example, an index that specifies the maximum value of the list size is included in the control data for each sequence, picture, or slice, and the control data is decoded by the decoding unit 210, thereby making it possible to specify the maximum value of the list size for each sequence, picture, or slice.

[0090] In the intra prediction mode candidate list, a plurality of intra prediction modes derived based on the division shape of the GPM (described later) or the adjacent reference pixel adjacent reference block adjacent to the block to be decoded are registered. The method of deriving these intra prediction modes will be described later in detail.

[0091] After completing the derivation of the above intra prediction mode (constructing the intra prediction mode candidate list), the intra prediction unit may select which of the intra prediction modes in the intra prediction mode candidate list to use for generating intra prediction pixels for each of the divided areas A / B based on the values ​​of the two intra prediction mode indexes (intra_gpm_idx0 and intra_gpm_idx1) for each of the divided areas A / B decoded or estimated by the decoding unit 210.

[0092] Note that for Intra / Intra-GPM, if the two intra-prediction mode indices have the same value, this will be the same as intra-prediction without GPM being applied, and therefore the two intra-prediction mode indices are configured to always have different values.

[0093] As a modified example, in deriving an intra-prediction mode for the divided areas A / B of the Intra / Intra-GPM, instead of the intra-prediction mode candidate list commonly used for the divided areas A / B described above, a different intra-prediction mode candidate list may be constructed for the divided areas A / B, and the respective intra-prediction modes for the divided areas A / B may be derived using the respective intra-prediction mode candidate lists and respective intra-prediction mode indexes for the divided areas A / B.

[0094] The method of constructing these two different intra prediction mode candidate lists may be controlled by the division shape of the GPM.

[0095] For example, in a method of deriving an intra-prediction mode based on the division shape of the GPM described below, if there is a division area that includes the pixel located in the upper leftmost position of the block to be decoded and a division area that does not include the pixel located in the upper leftmost position, the intra-prediction mode candidate list for the former division area may be configured to allow angular prediction or angular prediction or planar prediction that is close to vertical with respect to the GPM division line to be registered, but the intra-prediction mode candidate list for the latter division area may be configured to prohibit angular prediction or angular prediction or planar prediction or DC prediction that is perpendicular to the GPM division line to be registered.

[0096] In this case, angular prediction or angular prediction close to the vertical direction or planar prediction with respect to the GPM division line registered in the intra prediction mode candidate list for the former division area may be registered with the smallest list number or the next highest list number in the intra prediction mode candidate list.

[0097] Alternatively, the intra-prediction mode candidate list for the former divided area may be configured to not allow angular prediction parallel to the dividing line of the GPM, and the intra-prediction mode candidate list for the latter divided area may be configured to allow angular prediction parallel to the dividing line of the GPM.

[0098] In this case, the angular prediction in the direction parallel to the division line of the GPM registered in the intra prediction mode candidate list for the latter divided region may be registered in the intra prediction mode candidate list with the smallest list number.

[0099] With the above configuration, the latter division area can avoid predicting adjacent reference pixels adjacent to the block to be decoded across the former division area, i.e., performing angular prediction perpendicular to the GPM division line, or angular prediction close to perpendicular, or planar prediction, or DC prediction with respect to the GPM division line, and the latter division area can predict adjacent reference pixels adjacent to the block to be decoded without crossing the former division area, i.e., performing angular prediction parallel to the GPM division line, so improved prediction performance can be expected.

[0100] Furthermore, for these two different intra prediction mode candidate lists, a method of deriving an intra prediction mode based on adjacent reference pixels or adjacent reference blocks adjacent to the block to be decoded, which will be described later, may be partially changed.

[0101] For example, depending on the division shape of the GPM, the derived intra prediction mode candidates may be registered in each intra prediction mode candidate list using only adjacent reference pixels or adjacent reference blocks adjacent to each divided region.

[0102] In addition, the decoding unit 210 may determine whether or not to decode an intra-prediction mode index for selecting an intra-prediction mode to be used to generate intra-predicted pixels from the intra-prediction mode candidate list, depending on the total number of applications of intra-prediction that constitutes the GPM.

[0103] Here, as a modification of the above, the intra prediction section 242 may select multiple intra prediction modes in the intra prediction mode candidate list according to the value of the above-mentioned intra prediction mode index, and generate intra predicted pixels.

[0104] According to such a configuration, in the hardware-implemented image decoding device 200, the circuit scale required for generating intra-predicted pixels increases; however, since intra-predicted pixels can be generated using multiple intra-prediction modes, intra-prediction performance is improved, and as a result, improved coding performance can be expected.

[0105] When intra-predicted pixels are generated (synthesized) using a plurality of intra-prediction modes, the intra-predicted pixels may be synthesized on average.

[0106] Alternatively, intra-prediction pixels may be synthesized by weighted averaging using a predetermined weight value. For example, as a method of setting such a predetermined weight value, the weight value may be set to be larger for an intra-prediction mode that is registered earlier in the intra-prediction mode candidate list (has a smaller list number). Conversely, the weight value may be set to be smaller for an intra-prediction mode that is registered later in the intra-prediction mode candidate list (has a larger list number).

[0107] Since an intra-prediction mode with a smaller intra-prediction mode candidate list number has a higher improvement rate in intra-prediction performance applied to the GPM, setting in this manner is expected to result in improved coding performance.

[0108] (Method of deriving intra prediction mode based on partition shape) In this embodiment, the intra prediction unit 242 derives an intra prediction mode based on the division shape (division line) of the GPM, and registers the intra prediction mode in the above-mentioned intra prediction mode candidate list.

[0109] Here, the derived intra prediction mode may be configured to be, for example, an angular prediction that is parallel to the division shape (division line) of the GPM from among the 67 types of angular prediction provided for intra prediction without applying GPM (hereinafter, normal intra prediction) disclosed in Non-Patent Document 1.

[0110] Alternatively, as a modified example, the derived intra prediction mode may be configured to be an angular prediction that is perpendicular to the division shape (division line) of the GPM from among the 67 types of angular prediction provided for normal intra prediction disclosed in non-patent document 1.

[0111] The intra prediction unit 242 may register the derived angular prediction at the top of the above-mentioned intra prediction mode candidate list, even after completion of derivation of other intra prediction modes described below.

[0112] Since the intra prediction mode derived based on the partition shape of the GPM can generate intra prediction pixels while reflecting textures such as edges according to the partition shape of the GPM, a high improvement in intra prediction performance can be expected. Therefore, since the selection rate of the intra prediction mode for the intra prediction region of the GPM can be expected to be high, if it is linked to the smallest list number in the intra prediction mode candidate list, the total code length of the required intra prediction mode index can be shortened, and as a result, an improvement in coding performance can be expected.

[0113] (Method 1 for deriving intra prediction mode based on adjacent reference pixels) Below, using Figures 8 and 9, we will explain a method for deriving an intra prediction mode based on adjacent reference pixels for normal intra prediction according to Non-Patent Document 2, and a method 1 for deriving an intra prediction mode based on adjacent reference pixels for a geometric partitioning mode according to this embodiment, which applies such a derivation method.

[0114] 8 is a diagram showing an example of a method for deriving an intra prediction mode based on adjacent reference pixels for normal intra prediction according to Non-Patent Document 2, and a method 1 for deriving an intra prediction mode based on adjacent reference pixels for a geometric partitioning mode according to this embodiment to which the above derivation method is applied. Hereinafter, these derivation methods are collectively referred to as "DIMD (Decoder-side Intra Mode Derivation)".

[0115] In Non-Patent Document 2, in such a DIMD, a Sobel filter in the horizontal and vertical directions with a window size of 3×3 pixels is applied to adjacent reference pixels adjacent to a block to be decoded, and a histogram of pixel values ​​for all angular prediction modes for normal intra prediction is calculated, as shown in Fig. 8. Here, the same configuration as in Non-Patent Document 2 can be adopted in the present embodiment as for the method of calculating the angles and pixel values ​​of adjacent reference pixels to associate them with each angular prediction mode, and therefore detailed description thereof will be omitted.

[0116] In Non-Patent Document 2, the adjacent reference pixel area used for calculating the histogram is controlled according to the block size of the block to be decoded, as shown in Fig. 8. Specifically, in a 4x4 pixel block, the histogram is calculated using only the 3x3 pixel areas above and to the left of the top leftmost pixel of the block to be decoded.

[0117] In non-patent document 2, intra-prediction pixels are generated using the intra-prediction mode and planar mode which are the highest and second highest pixel values ​​in the calculated histogram, and the generated intra-prediction pixels are then weighted-averaged using a predetermined weight value to generate the final intra-prediction pixel.

[0118] In this embodiment, the intra prediction unit 242 may apply the DIMD disclosed in the above-mentioned Non-Patent Document 2 only to the derivation of the intra prediction mode of the GPM. In other words, the synthesis / generation process of intra prediction pixels using the derived multiple intra prediction modes is not performed.

[0119] This enables intra-prediction pixels to be generated in one intra-prediction mode for the intra-prediction region of the GPM (two intra-prediction regions in the case of Intra / Intra-GPM), thereby avoiding the increase in circuit size required for generating intra-prediction pixels of the GPM in the hardware-implemented image decoding device 200, while enabling intra-prediction that reflects textures such as edges that are suitable for the division shape of the GPM to be applied by analyzing the histogram of adjacent reference pixels of the block to be decoded, thereby improving intra-prediction performance and, as a result, improving coding performance.

[0120] In this embodiment, similarly to Non-Patent Document 2, the decoding unit 210 may be configured to determine whether or not to derive an intra prediction mode by decoding or estimating a flag that determines whether or not DIMD is applicable.

[0121] In addition, the intra prediction unit 242 according to this embodiment may be configured to register an intra prediction mode derived by the DIMD if the same intra prediction mode is not already included in the intra prediction mode candidate list for GPM, and to not register an intra prediction mode derived by the DIMD if the same intra prediction mode is already included in the intra prediction mode candidate list for GPM.

[0122] This configuration makes it possible to prevent the same intra prediction mode from being registered more than once in the intra prediction mode candidate list.

[0123] Hereinafter, when a new intra-prediction mode is registered in the intra-prediction mode candidate list, the process of comparing the consistency with existing intra-prediction modes and pruning the new intra-prediction mode if the two match is referred to as the "intra-prediction mode candidate selection process."

[0124] Furthermore, the intra prediction unit 242 according to the present embodiment may limit the number of intra prediction modes to be registered in the intra prediction mode candidate list, among the intra prediction modes derived by the DIMD, to 1. In this case, the intra prediction unit 242 derives the angular prediction mode, which is the maximum pixel value (luminance value), from the histogram.

[0125] In addition, when the angular prediction mode with the highest pixel value (brightness value) (hereinafter referred to as the 1st angular prediction mode) is pruned in the above-mentioned intra-prediction mode candidate selection process, the mode may be compared with existing intra-prediction modes starting from the highest histogram, and those in which the two do not match may be registered.

[0126] Alternatively, if the 1st Angular prediction mode is pruned in the above-described intra prediction mode candidate selection process, the process of deriving an intra prediction mode using DIMD may be terminated.

[0127] As a modified example, the number of intra prediction modes to be registered in the intra prediction mode candidate list, among the intra prediction modes derived by DIMD, may be limited to 2. In such a case, the intra prediction unit 242 derives, from the histogram, the 1st Angular prediction mode and the 2nd Angular prediction mode that is the next highest pixel value (luminance value).

[0128] In addition, when the 1st Angular prediction mode or the 2nd Angular prediction mode is pruned, as in the case described above, the mode with the next highest histogram may be compared with the existing intra prediction mode and the one for which the two do not match may be registered, or the process of deriving the intra prediction mode using DIMD may be terminated.

[0129] Furthermore, the intra prediction unit 242 according to this embodiment may limit adjacent reference pixels used in the above-mentioned DIMD histogram calculation to a predetermined area based on the division shape of the GPM (that is, the angle of the GPM division line).

[0130] FIG. 9 is a diagram showing a table for limiting the area of ​​the template (adjacent reference pixels) to be referenced based on the angle of the GPM division line (specifically, the index indicating the angle, angleIdx) in the technique of template matching for GPM disclosed in Non-Patent Document 2.

[0131] Specifically, A and L shown in FIG. 9 respectively indicate the upper and left parts of the decoding target block.

[0132] In this embodiment, a table of adjacent reference pixels defined (restricted) based on the division line of the GPM disclosed in Non-Patent Document 2 may be applied to the calculation of the DIMD histogram. For example, when the division shape (angleIdx) of the geometric division mode is "0", the division area A calculates a histogram using adjacent reference pixels adjacent only to the upper part of the block to be decoded, while the division area B calculates a histogram using adjacent reference pixels adjacent to the upper and left parts of the block to be decoded. This restriction of the reference position of adjacent reference pixels in the calculation of the DIMD histogram based on the division shape of the geometric division mode makes it possible to derive angular prediction using adjacent reference pixels that exist only in the direction of the division line of the GPM while avoiding the use of all adjacent reference pixels adjacent to the block to be decoded in the calculation, thereby reducing the processing load of deriving the intra prediction mode by DIMD for the inter prediction of GPM.

[0133] (Method 2 for deriving intra prediction mode based on adjacent reference pixels) Below, using Figures 9 and 10, we will explain a method for deriving an intra prediction mode based on adjacent reference pixels for normal intra prediction according to non-patent document 3, and method 2 for deriving an intra prediction mode based on adjacent reference pixels for a geometric partitioning mode according to this embodiment, which applies such a derivation method.

[0134] 10 is a diagram showing an example of a method for deriving an intra prediction mode based on neighboring reference pixels for normal intra prediction according to Non-Patent Document 3, and a method 2 for deriving an intra prediction mode based on neighboring reference pixels for a geometric partitioning mode according to this embodiment to which the above derivation method is applied. Hereinafter, these derivation methods are collectively referred to as "Template-based Intra Mode Derivation (TIMD)."

[0135] In non-patent document 3, in TIMD, as shown in Figure 10, the SATD (Sum of Absolute Transformed Difference) of adjacent reference pixels (hereinafter referred to as template) of a specific line adjacent to the block to be decoded and template-oriented intra-prediction pixels (hereinafter referred to as template-oriented intra-prediction pixels) generated using the adjacent reference pixels for the template and a specific intra-prediction mode is calculated, and the intra-prediction modes with the smallest and second smallest SATD among the specific intra-prediction modes are derived as the intra-prediction modes of the TIMD, thereby generating intra-prediction pixels.

[0136] Here, the intra prediction mode used in the calculation of the SATD of the TIMD described above is an intra prediction mode included in the intra prediction mode candidate list for normal intra prediction.

[0137] In the TIMD in non-patent document 3, if the intra-prediction mode candidate list for normal intra-prediction does not include the vertical prediction mode, horizontal prediction mode, and DC prediction mode, the SATD is calculated while including these modes to derive the intra-prediction mode.

[0138] In this embodiment, the intra prediction unit 242 may derive an intra prediction mode by applying the TIMD disclosed in Non-Patent Document 3. That is, the intra prediction unit 242 does not perform synthesis / generation processing of intra prediction pixels using the derived multiple intra prediction modes.

[0139] According to this configuration, intra-prediction pixels can be generated in one intra-prediction mode for the intra-prediction region of the GPM (two intra-prediction regions in the case of Intra / Intra-GPM), thereby avoiding the increase in circuit size required for generating intra-prediction pixels of the GPM in the hardware-implemented image decoding device 200, while analyzing the histogram of adjacent reference pixels of the block to be decoded to apply intra-prediction that reflects textures such as edges that are suitable for the division shape of the GPM, thereby improving intra-prediction performance and, as a result, improving coding performance can be expected.

[0140] In this embodiment, similarly to Non-Patent Document 2, the decoding unit 210 may be configured to determine whether or not to derive an intra prediction mode by decoding or estimating a flag that determines whether or not TIMD is applicable.

[0141] In addition, the intra prediction unit 242 according to this embodiment may be configured to register an intra prediction mode derived by TIMD if the same intra prediction mode is not already included in the intra prediction mode candidate list for GPM, and to not register the intra prediction mode derived by TIMD if the same intra prediction mode is already included in the intra prediction mode candidate list for GPM.

[0142] This configuration makes it possible to prevent the same intra prediction mode from being registered more than once in the intra prediction mode candidate list.

[0143] Hereinafter, the process of comparing a new intra-prediction mode with existing intra-prediction modes when registering the new intra-prediction mode in the intra-prediction mode candidate list and pruning the existing intra-prediction mode if the two match will be referred to as the "intra-prediction mode candidate selection process."

[0144] Furthermore, the intra prediction unit 242 according to the present embodiment may limit the number of intra prediction modes to be registered in the intra prediction mode candidate list, among the intra prediction modes derived by TIMD, to 1. In this case, the intra prediction unit 242 derives the intra prediction mode (angular prediction) with the smallest SATD cost from the SATD calculation.

[0145] However, in this embodiment, unlike Non-Patent Document 3, in the calculation of the SATD in such TIMD processing, the DC prediction mode may be excluded from the calculation of the SATD.

[0146] This is because DC prediction, which generates intra-predicted pixels using all of the adjacent reference pixels adjacent to the block to be decoded, may generate intra-predicted pixels that cannot properly reflect textures such as edges that correspond to the division shape of the GPM. Therefore, by excluding DC prediction from the calculation of SATD in TIMD processing, it is possible to avoid deriving a DC prediction mode in TIMD.

[0147] In the above-described intra prediction mode candidate selection process, when the angular prediction mode with the smallest SATD cost (hereinafter, 1st angular prediction mode) is pruned, the existing intra prediction modes may be compared in order from lowest SATD cost, and those that do not match may be registered. Alternatively, when the 1st angular prediction mode is pruned, the process of deriving intra prediction modes using TIMD may be terminated.

[0148] As a modified example, the number of intra prediction modes to be registered in the intra prediction mode candidate list, among the intra prediction modes derived by TIMD, may be limited to 2. In such a case, the intra prediction unit 242 derives, from the SATD costs, the 1st Angular prediction mode and the 2nd Angular prediction mode that is the next smallest SATD cost.

[0149] In addition, when the 1st Angular prediction mode or the 2nd Angular prediction mode is pruned, as in the case described above, the mode with the next lowest SATD cost may be compared with existing intra prediction modes and the one for which the two do not match may be registered, or the process of deriving the intra prediction mode using TIMD may be terminated.

[0150] Furthermore, the intra prediction unit 242 according to this embodiment may limit adjacent reference pixels used in the calculation of the SATD cost of the above-mentioned TIMD to a predetermined area based on the division shape of the GPM (that is, the angle of the GPM division line).

[0151] In this embodiment, a table of adjacent reference pixel regions defined based on the division line of the GPM disclosed in Non-Patent Document 2 shown in FIG. 9 may be applied to the calculation of the SATD cost in the TIMD process. For example, when the division shape (angleIdx) of the geometric division mode is "0", the division region A calculates the SATD cost using only adjacent reference pixels adjacent only to the top of the block to be decoded and adjacent reference pixels adjacent to the adjacent reference pixels further above, while the division region B calculates the SATD cost using adjacent reference pixels adjacent to the top and left of the block to be decoded and adjacent reference pixels adjacent to these. This restriction of the reference position of adjacent reference pixels in the calculation of the SATD cost in the TIMD process based on the division shape of the geometric division mode makes it possible to avoid using all adjacent reference pixels adjacent to the block to be decoded in the calculation, and to derive the angular prediction using adjacent reference pixels that exist only in the direction of the division line of the GPM, thereby reducing the load of the process of deriving the intra prediction mode by TIMD for the inter prediction of the GPM.

[0152] Furthermore, the intra prediction unit 242 according to this embodiment may be configured not to perform any processing beyond the calculation of the SATD of an intra prediction mode if the same intra prediction mode as that used to calculate the SATD in TIMD processing is already registered in the intra prediction mode candidate list.

[0153] With this configuration, it is possible to prevent the same intra prediction mode from being registered through TIMD processing for an intra prediction mode that has already been registered in the intra prediction mode, thereby reducing the load of TIMD processing for GPM inter prediction.

[0154] (Method of deriving intra prediction mode based on adjacent reference blocks) Below, using Figures 9 and 11, we will explain the method of deriving an intra prediction mode based on adjacent reference blocks for normal intra prediction according to Non-Patent Document 1 and Non-Patent Document 2, and the method of deriving an intra prediction mode based on adjacent reference blocks for a geometric partitioning mode according to this embodiment, which applies such derivation method.

[0155] 11 is a diagram showing an example of a method for deriving an intra prediction mode based on adjacent reference blocks for normal intra prediction according to Non-Patent Document 1 and Non-Patent Document 2, and a method for deriving an intra prediction mode based on adjacent reference blocks for a geometric partitioning mode according to this embodiment to which the above derivation methods are applied. Hereinafter, these derivation methods are collectively referred to as "Block-based Intra Mode Derivation (BIMD)."

[0156] In Non-Patent Document 3, in BIMD, as shown in FIG. 11, the intra prediction mode of an adjacent reference block at a predetermined position adjacent to the block to be decoded is derived as the intra prediction mode of BIMD to generate intra predicted pixels.

[0157] In addition, when the adjacent reference block is an intra-prediction block, the intra-prediction mode of the adjacent reference block derived here is directly referenced; however, when the adjacent reference block is an inter-prediction block or an inter-prediction block and a GPM-applied block to which intra-prediction is applied, the intra-prediction mode stored in 4x4 sub-block pixel units described below is referenced.

[0158] Here, in Non-Patent Document 1 and Non-Patent Document 2, the adjacent reference blocks referenced in the above-mentioned BIMD are set to the left (A0), bottom left (A1), top (B0), top right (B1) and top left (B2) of the block to be decoded, as shown in Figure 11.

[0159] In this embodiment, the intra prediction unit 242 may derive an intra prediction mode by applying BIMD disclosed in Non-Patent Document 1 and Non-Patent Document 2. That is, the intra prediction unit 242 does not perform synthesis / generation processing of intra prediction pixels using the derived multiple intra prediction modes.

[0160] With this configuration, for the intra prediction region of the GPM (two intra prediction regions in the case of Intra / Intra-GPM), an intra prediction mode can be selected from a candidate intra prediction mode list that may include the intra prediction modes of adjacent reference blocks of the block to be decoded, and intra prediction pixels can be generated. This makes it possible to apply intra prediction that reflects textures such as edges that are suitable for the division shape of the GPM, thereby improving intra prediction performance and, as a result, improving coding performance.

[0161] In addition, the intra prediction unit 242 according to this embodiment may be configured to register an intra prediction mode derived by BIMD if the same intra prediction mode is not already included in the intra prediction mode candidate list for GPM, and to not register the intra prediction mode derived by BIMD if the same intra prediction mode is already included in the intra prediction mode candidate list for GPM.

[0162] This configuration makes it possible to prevent the same intra prediction mode from being registered more than once in the intra prediction mode candidate list.

[0163] Hereinafter, the process of comparing the consistency with existing intra prediction modes when registering a new intra prediction mode to the intra prediction mode candidate list and pruning the existing intra prediction mode if the two match will be referred to as the "intra prediction mode candidate selection process."

[0164] In addition, unlike Non-Patent Documents 1 and 2, the intra prediction unit 242 according to this embodiment may be configured not to register the intra prediction mode derived by BIMD in the intra prediction mode candidate list when the intra prediction mode is a DC prediction mode.

[0165] This is because DC prediction, which generates intra-predicted pixels using all of the adjacent reference pixels adjacent to the block to be decoded, may generate intra-predicted pixels that cannot properly reflect textures such as edges that correspond to the division shape of the GPM. Therefore, by excluding DC prediction from the intra-prediction modes of BIMD, it is possible to prevent the DC prediction modes from being used to generate intra-predicted pixels.

[0166] Furthermore, the intra prediction unit 242 according to this embodiment may configure the order of up to five adjacent reference blocks shown in FIG. 11 to be referenced in deriving an intra prediction mode by BIMD in the same manner as in Non-Patent Document 1 and Non-Patent Document 2. Note that the reference order is disclosed in Non-Patent Document 1 and Non-Patent Document 2, and therefore a detailed description thereof will be omitted in this embodiment.

[0167] As a modified example, in this embodiment, a table of adjacent reference pixel areas defined (restricted) based on the division line of GPM disclosed in Non-Patent Document 2 shown in Fig. 9 may be applied to the reference of adjacent reference blocks of BIMD. For example, when the division shape (angleIdx) of the geometric division mode is "0", the division area A refers to the intra prediction modes of only the adjacent reference blocks (B0, B1, B2 in Fig. 11) adjacent only to the upper part of the block to be decoded, while the division area B refers to the intra prediction modes of the adjacent reference blocks (A0, A1 on the left, B0, B1, B2 on the upper part) adjacent to the upper and left parts of the block to be decoded. By restricting the reference position of adjacent reference blocks when deriving the intra prediction mode of BIMD based on the division shape of this geometric division mode, it is possible to avoid referring to the intra prediction modes of all adjacent reference blocks adjacent to the block to be decoded, and to derive the intra prediction mode by referring only to the intra prediction mode (angular prediction) of adjacent reference blocks that exist only in the direction of the GPM division line, thereby reducing the load of the process of deriving the intra prediction mode by BIMD for GPM inter prediction.

[0168] (Order of derivation of each intra prediction mode) The intra prediction unit 242 according to the present embodiment may be configured to derive an intra prediction mode by combining an intra prediction mode based on the above-mentioned GPM division shape (hereinafter, GIMD: GPM-angle-based Intra Mode Derivation) and three types of intra prediction mode derivation methods based on adjacent reference pixels or adjacent reference blocks (DIMD, TIMD, BIMD). An example of a configuration that is considered to be effective is shown below. Configuration example 1. GIMD → DIMD Configuration example 2. GIMD → TIMD Configuration example 3. GIMD → BIMD Configuration example 4. GIMD → DIMD → TIMD Configuration example 5. GIMD → DIMD → BIMD Configuration example 6. GIMD → TIMD → BIMD Configuration example 7. GIMD → DIMD → TIMD → BIMD First, configuration examples 1 to 3 are methods in which GIMD is combined with only DIMD, TIMD, and BIMD, respectively. The intra prediction mode derived by GIMD has a possibility of deriving an intra prediction mode that reflects texture such as edges based on the division line of the GPM more directly than the intra prediction mode derived by DIMD, TIMD, and BIMD, so it is configured to be derived before DIMD, TIMD, and BIMD.

[0169] Next, configuration examples 4 and 5 are configuration examples in which the DIMD is placed before the TIMD or BIMD.

[0170] The reason why the DIMD is arranged before the TIMD is that the process of deriving the intra prediction mode using the DIMD is lighter than the process of deriving the intra prediction mode using the TIMD, which includes relatively heavy calculation processes such as the calculation of the SATD.

[0171] On the other hand, the reason for placing DIMD before BIMD is that although the process of deriving an intra-prediction mode using DIMD, which includes histogram calculation, is not as light as the process of deriving an intra-prediction mode using BIMD, it is considered that the intra-prediction mode derived by DIMD is more effective in improving intra-prediction performance than the intra-prediction mode derived by BIMD, because it has the potential to derive an intra-prediction mode that better reflects textures such as edges based on the GPM division lines through histogram calculation.

[0172] In configuration example 6, the TIMD is placed before the BIMD. The reason for this placement is the same as the reason for placing the DIMD before the BIMD described above.

[0173] Configuration example 7 is a configuration example that combines all of GIMD, DIMD, TIMD, and BIMD. For the reasons described above, it is expected that deriving an intra-prediction mode in this order will enable more efficient derivation of an intra-prediction mode with higher prediction performance.

[0174] (Starting Limits for Each Intra Prediction Mode Derivation Method) The intra prediction unit 242 in this embodiment starts each derivation process if the number of intra prediction mode candidates included in the intra prediction mode candidate list has not reached the maximum value of the intra prediction mode candidate list size at the start of each intra prediction mode derivation process for the above-mentioned geometric block partition mode, and does not start each derivation process if the number of candidates has reached the maximum value of the intra prediction mode candidate list size.

[0175] According to this configuration, it is possible to avoid unnecessary execution of the process of deriving an intra prediction mode, and it is expected that the overall processing load on the intra prediction unit 242 can be reduced.

[0176] (Method of registering intra prediction mode candidate list after intra prediction mode derivation is completed) The intra prediction unit 242 in this embodiment may be configured not to register a specific intra prediction mode if the intra prediction mode candidate list already includes an identical prediction mode when the number of intra prediction mode candidates included in the intra prediction mode candidate list has not reached the maximum value of the intra prediction mode candidate list size at the time when the intra prediction mode derivation process for the above-mentioned geometric block partition mode is completed.

[0177] For example, when an angular prediction mode in a direction parallel to the GPM division line is registered, the intra prediction unit 242 may register an angular prediction mode in a direction perpendicular to the GPM division line as the predetermined intra prediction mode.

[0178] As a modification, for example, when an angular prediction mode in a direction perpendicular to the GPM division line is registered, the intra prediction unit 242 may register an angular prediction mode in a direction parallel to the GPM division line.

[0179] As a modified example, the intra prediction unit 242 may register the planar mode after the angular prediction mode described above, and then an intra prediction mode near the intra prediction mode registered first in the intra prediction mode candidate list.

[0180] [Motion information derivation and selection method in the inter prediction unit 241] Hereinafter, a method of deriving and selecting motion information for Intra / Inter-GPM and Inter / Inter-GPM among application patterns of intra prediction to GPM proposed in this embodiment in the inter prediction unit 242 will be described.

[0181] (Method of controlling whether or not GPM can be applied to chrominance signal component blocks and method of deriving intra prediction mode) Hereinafter, a method of controlling whether or not the GPM can be applied to a color difference signal component block by the intra prediction unit 242 in this embodiment and a method of deriving an intra prediction mode will be described.

[0182] In Non-Patent Document 1, only for an I slice (a slice including only intra-prediction blocks), a luminance signal component and a chrominance signal component can be divided into independent blocks (Dual Tree). Whether or not Dual Tree is applied to a block to be decoded is specified by control data decoded by the decoder 210 on a slice-by-slice basis.

[0183] In this embodiment, when the current block to be decoded is a Dual Tree, the decoding unit 210 determines that GPM (Intra / Intra-GPM) cannot be applied to the chrominance components of the current block to be decoded.

[0184] In addition, when GPM (Intra / Intra-GPM) is applied to the same position (area) of the luminance component corresponding to the chrominance component in the same slice, the intra prediction unit 241 derives the intra prediction mode stored in 4×4 pixel block units in the same position (area) of the corresponding luminance component as the intra prediction mode for the chrominance component. In other cases, the intra prediction mode of the intra prediction block of the luminance component is derived as the intra prediction mode for the chrominance component.

[0185] On the other hand, if the current block to be decoded is not a Dual Tree, the decoding unit 210 does not determine that GPM (Intra / Intra-GPM) cannot be applied to the chrominance components of the current block to be decoded.

[0186] Here, the decoding unit 210 may determine whether or not to apply GPM (Intra / Intra-GPM) to the luminance component and the chrominance component based on whether to decode or estimate the value of common control data for each block to be decoded, for example, gpm_intra_enabled_flag.

[0187] When it is determined that GPM (Intra / Intra-GPM) is to be applied to the luminance component and chrominance component of the block to be decoded, the intra prediction unit 242 may derive the intra prediction mode used in each GPM division area of ​​the luminance component block corresponding to the chrominance component block as the intra prediction mode to be used for each GPM division area of ​​the same chrominance component block.

[0188] (Merge candidate list) In this embodiment, the inter prediction unit 241 may derive motion information from a merge candidate list for GPM disclosed in Non-Patent Document 1.

[0189] Here, regarding the method of constructing a merge candidate list, the configuration disclosed in Non-Patent Document 1 can be applied to this embodiment, so a detailed description will be omitted.

[0190] After completing the derivation of the above-mentioned motion information (construction of the merge candidate list), the inter prediction unit 241 may select which motion information in the merge candidate list to use for generating inter prediction pixels based on the values ​​of two merge indices (merge_gpm_idx0 / merge_gpm_idx1) for each of the divided areas A / B decoded or estimated by the decoding unit 210.

[0191] Note that the decoding unit 210 may determine whether or not it is necessary to decode a merge index for selecting motion information to be used to generate inter-predicted pixels from the merge candidate list, depending on the total number of applications of inter prediction that constitutes the GPM.

[0192] In non-patent document 1, inter-prediction motion information for division regions A / B is derived from the values ​​of two merge indices (merge_gpm_idx0 / merge_gpm_idx1) decoded or estimated by decoding unit 210 and the merge candidate list for GPM (MergeCandList[m,n]) shown in Figure 12.

[0193] Here, in order to minimize overlap of motion information derived based on merge_gpm_idx0 and merge_gpm_idx1, the list numbers from which motion information selected by merge_gpm_idx0 and merge_gpm_idx1 is derived have a nested structure with even and odd numbers of MergeCandList, as shown by X in Figure 12.

[0194] Specifically, the following m and n are calculated based on merge_gpm_idx0 and merge_gpm_idx1.

[0195] m=merge_gpm_idx0[xCb][yCb] n=merge_gpm_idx1[xCb][yCb]+((merge_gpm_idx1[xCb][yCb]>=m)?1:0) Based on the value of m calculated in this manner, the motion vector, reference image index, and prediction list flag constituting the motion information of the divided area A are derived as follows.

[0196] First, calculate the value of X from m&0x01 (determine whether the value of m is even or not) and n&0x01 (determine whether the value of n is even or not). If the calculated value of X is 0, set the value of X to (1-X).

[0197] Finally, the motion vector mvA, reference image index refIdxA, and prediction list flag preListFlagA of the divisional area A, and the motion vector mvB, reference image index refIdxB, and prediction list flag preListFlagB of the divisional area B are derived as follows.

[0198] mvA=mvLXM refIdxA=refIdxLXM preListFlagA=X mvB=mvLXN refIdxB=refIdxLXN preListFlagB=X Here, M and N are the numbers of the merge candidates indicated by m and n in the merge candidate list, respectively, i.e., M = MergeCandList[m] N = MergeCandList[n] It is.

[0199] As a modification, in this embodiment, the merge candidate list for GPM disclosed in Non-Patent Document 2 may be used instead of the merge candidate list for GPM disclosed in Non-Patent Document 1.

[0200] Specifically, a more powerful pruning process (hereinafter, merge candidate pruning process for GPM) has been introduced into the merge candidate list for the above-mentioned normal merge mode disclosed in non-patent document 1 (hereinafter, merge candidate pruning process for normal merge mode).

[0201] Specifically, unlike the pruning process for the normal merge mode disclosed in non-patent document 1, the determination of whether or not to prune motion information is made by determining whether the reference frame held by the motion information is a perfect match, as in non-patent document 1. However, the motion vector held by the motion information is not a perfect match, and is instead determined by a threshold value based on the block size of the block to be decoded.

[0202] Specifically, when the size of the block to be decoded is less than 64 pixels, the threshold is set to 1 / 4 pixel, when the size of the block to be decoded is 64 pixels or more and less than 256 pixels, the threshold is set to 1 / 2 pixel, and when the size of the block to be decoded is 256 pixels or more, the threshold is set to 1 pixel.

[0203] The specific flow of the merge candidate pruning process for GPM is similar to the pruning process for normal merge mode in that first, the reference frames are compared to see if they are a perfect match, and if they are a perfect match, then it is determined whether the motion vectors are a perfect match.

[0204] If the reference frames are not perfectly matched, the motion vector is not considered as a pruning target even if it is less than the threshold. In such a case, the motion information of the comparison target that is not in the merge candidate list is added to the merge candidate list as a new merge candidate.

[0205] Next, if the reference frames are perfectly matched and the motion vector is less than the threshold, it is considered to be a pruning target. Otherwise, the motion information of the comparison target that is not in the merge candidate list is added to the merge candidate list as a new merge candidate.

[0206] With this configuration, motion information in cases where motion vectors are similar that would not be pruned in the normal merge mode pruning process are also included in the pruning target, so that the similarity in the motion information derived by the two merge indexes of the GPM can be eliminated, and improved coding performance can be expected.

[0207] In addition, in the merge candidate pruning process for GPM disclosed in Non-Patent Document 2, if the motion information is bi-predictive (i.e., if there is one motion vector and one reference frame each for L0 and L1), it is considered to be a pruning target if it completely matches each of the L0 and L1 reference frames of the merge candidate being compared.

[0208] In this embodiment, the inter predictor 241 may derive motion information by using the merge candidate list of the GPM to which the merge candidate pruning process for GPM has been added as a substitute for the normal merge mode.

[0209] According to this configuration, motion information can be derived from a merge candidate list that is made up of motion information with a lower degree of similarity, which is expected to result in improved coding performance.

[0210] As a further modification, the inter predictor 241 may switch, using a flag, whether to use a merge candidate list for normal merge mode or a merge candidate list for GPM as a merge candidate list to be used to derive a motion vector.

[0211] Specifically, this switching can be achieved by configuring the control data to include, for example, a 1-bit flag that is decoded by the decoding unit 210, and having the decoding unit 210 decode or estimate the value of the flag and transmit it to the inter prediction unit 241.

[0212] According to this configuration, the inter prediction unit 241 can derive motion information from a greater variety of variations, which improves prediction performance, and as a result, can be expected to improve coding performance.

[0213] (GPM weighting factor) Hereinafter, the weighting coefficient w of the GPM according to Non-Patent Document 1 and this embodiment, which is related to the decoding unit 210, the inter prediction unit 241, the intra prediction unit 242, and the synthesis unit 243, will be described with reference to Figs.

[0214] FIG. 13 is a diagram showing an example of values ​​of weighting coefficients w for predicted pixels in each divided area A / B of the GPM according to Non-Patent Document 1 and this embodiment.

[0215] The prediction pixels of each of the divided regions A / B generated by the inter prediction unit 241 or the intra prediction unit 242 are synthesized (weighted averaged) by the synthesis unit 243 using the weighting coefficient w.

[0216] In Non-Patent Document 1, the weighting coefficient w has values ​​of 0 to 8, and such values ​​of weighting coefficient w may be used in this embodiment as well. Here, weighting coefficient w values ​​of 0 and 8 indicate a non-blending region, and weighting coefficient w values ​​of 1 to 7 indicate a blending region.

[0217] In this embodiment, the weighting coefficient w can be calculated in the same manner as in Non-Patent Document 1, as follows, from an offset value (offsetX, offsetY) calculated from the pixel position (xL, yL) and the target block size, a displacement (diplacementX, diplacementY) calculated from angleIdx that specifies the angle of the division line of the geometric division mode (GPM) shown in FIG. 14, and a table value disLut calculated from diplacementX and diplacementY shown in FIG. 15.

[0218] weightIdx=(((xL+offsetX)<<1)+1)×disLut[diplacementX]+(((yL+offsetY)<<1)+1)×disLut[diplacementY] weightIdxL=partFlip?32+weightIdx:32-weightIdx w=Clip3(0,8,(weightIdxL+4)>>3)

[0219] [Prediction information storage methods in the inter prediction unit 241, the intra prediction unit 242, and the prediction information buffer 244] (Type of motion information to be stored and type of prediction information to be stored) Below, using Figure 16, we will explain the types of motion information to be stored in the decoding unit 210, inter prediction unit 241, intra prediction unit 242 and prediction information buffer 244 disclosed in Non-Patent Document 1 and the types of prediction information to be stored in this embodiment.

[0220] FIG. 16 is a diagram showing an example in which the stored prediction information type disclosed in Non-Patent Document 1 and the stored prediction information type according to this embodiment are specified for each 4×4 pixel sub-block.

[0221] The calculation methods for both are the same as described below, but the difference is that, as shown in FIG. 16, the information stored in Non-Patent Document 1 is motion information, whereas in this embodiment it is prediction information.

[0222] First, the value of the type of motion information to be stored and the value of the type of prediction information to be stored (since the calculation method is the same, for convenience, both values ​​will be defined as sType hereinafter) are calculated as follows, as in Non-Patent Document 1, from the index (xSbIdx, ySbIdx) of the 4x4 pixel sub-block unit, the offset value (offsetX, offsetY) calculated in the same manner as the above-mentioned weighting coefficient w, the displacement (displacementX, displacementY), and the table (disLut):

[0223] motionIdx=(((4×xSbIdx+offsetX)<<1)+5)×disLut[diplacementX]+(((4×ySbIdx+offsetY)<<1)+5)×disLut[diplacementY] sType=Abs(motionIdx)<32?2:(motionIdx<=0?(1-isFlip):isFlip) Here, the value of sType is composed of three values, 0, 1, and 2, as shown in Figure 16, and depending on each value, the motion information and prediction information stored in the prediction information buffer 244 are controlled by the inter prediction unit 241 and the intra prediction unit 242 as follows.

[0224] When the value of sType is 0, the motion information of the divided region A is stored in Non-Patent Document 1, and the prediction information of the divided region A is stored in this embodiment.

[0225] When the value of sType is 1, the motion information of the divided region B is stored in Non-Patent Document 1, and the prediction information of the divided region B is stored in this embodiment.

[0226] When the value of sType is 2, non-patent document 1 stores motion information of division area A and division area B or motion information of only division area B, while in this embodiment, prediction information of division area A and division area B or prediction information of only division area B is stored.

[0227] The motion information and prediction information to be stored will be described later.

[0228] The calculation unit of the above-mentioned sType and the storage unit of motion information or prediction information described later may be changed from the above-mentioned 4×4 pixel sub-block unit at the designer's discretion.

[0229] Specifically, in order to reduce the amount of information to be stored, the calculation unit of the above-mentioned sType and the storage unit of the motion information or prediction information described below may be increased to 8×8 pixels, 16×16 pixels, or the like.

[0230] Alternatively, although the amount of information to be stored will increase, in order to improve the accuracy of the motion information or prediction information when referenced from other blocks or frames, the calculation unit of the above-mentioned sType and the storage unit of the motion information or prediction information described below may be reduced to 2 x 2 pixels, etc.

[0231] (Motion Information and Prediction Information Stored in Prediction Information Buffer 244) Hereinafter, the motion information disclosed in Non-Patent Document 1 and the prediction information according to this embodiment, which are stored in the prediction information buffer 244 from the inter prediction unit 241, will be described with reference to FIG.

[0232] FIG. 17 is a diagram showing a list of motion information disclosed in Non-Patent Document 1 and prediction information according to this embodiment, which is stored according to the value of sType of a sub-block that constitutes a GPM-applied block.

[0233] First, the motion information finally stored in the GPM disclosed in Non-Patent Document 1 is composed of the following parameters: Prediction direction (predFlagL0, predFlagL1) · Motion vectors for L0 and L1 (mvL0, mvL1) · Reference image indexes for L0 and L1 (refIdxL0, refIdxL1) ·BcwIdx The prediction direction (predFlagL0, predFlagL1) is a parameter indicating the prediction direction of a sub-block saved according to the sType described below, and is classified into three types: L0 unidirectional prediction, L1 unidirectional prediction, and L0 / L1 bidirectional prediction, based on the values ​​of predFlagL0 and predFlagL1.

[0234] Here, L0 single prediction is inter prediction using one motion vector derived from the L0 list, and the cases where predFlagL0 is 1 and predFlagL1 is 0 are stored as values ​​indicating this condition.

[0235] Furthermore, L1 single prediction is inter prediction using one motion vector derived from the L1 list, and the cases where predFlagL0 is 0 and predFlagL1 is 1 are stored as values ​​indicating this condition.

[0236] Furthermore, L0 / L1 bi-prediction is inter prediction using two motion vectors derived from the L0 list and the L1 list, respectively, and the cases where predFlagL0 is 1 and predFlagL1 is 1 are each saved as a value indicating this condition.

[0237] Moreover, the motion vectors of L0 and L1 (mvL0, mvL1) are motion vectors for the above-mentioned list numbers L0 and L1.

[0238] Furthermore, the reference image indices (refIdxL0, refIdxL1) of L0 and L1 are indexes that indicate the reference frames referred to by mvL0 and mvL1, respectively.

[0239] Also, BcwIdx is an index that specifies the value of a weighting coefficient of BCW (Bi-prediction with CU-level weights) disclosed in Non-Patent Document 1.

[0240] In contrast to the motion information stored in the prediction information buffer 244 disclosed in Non-Patent Document 1, in this embodiment, the prediction type and intra prediction mode are added as parameters to be stored in the prediction information buffer 244, as shown in Figure 17.

[0241] Here, the prediction type is an internal parameter indicating either inter prediction (Inter) or intra prediction (Intra) as shown in FIG.

[0242] Furthermore, as shown in FIG. 17, hpeIfIdx, IBC Flag, and LIC Flag may be added as prediction information according to this embodiment.

[0243] Here, hpeIfIdx and IBC Flag are flags that specify whether or not SIF (Switchable Interpolation Filter) and IBC (Intra Block Copy) disclosed in Non-Patent Document 1, and LIC (Local Illumination Compensation) disclosed in Non-Patent Document 2 are applied.

[0244] (Details of forecast information to be saved according to the type of saved forecast information) Hereinafter, with reference to Figs. 18 to 21, details of the prediction information stored in the prediction information buffer 244 by the inter prediction unit 241 or the intra prediction unit 242 according to this embodiment will be described in accordance with the type of stored prediction information sType.

[0245] Fig. 18 is a diagram showing an example of prediction information stored for a GPM configured with two different inter predictions as shown in Fig. 4. Details of each prediction information stored according to the value of sType will be described below.

[0246] First, the prediction type is preserved as inter prediction (Inter) in all sType regions.

[0247] Secondly, predFlagL0, predFlagL1, mvL0, mvL1, refIdxL0 and refIdxL1 are stored as follows, similar to the method disclosed in non-patent document 1, depending on the value of sType and the values ​​of predListFlagA and predListFlagB, which indicate the list numbers of the merge candidate list indicating the destination to which the motion vector of the above-mentioned divided areas A / B is derived.

[0248] First, when sType=0, the calculation is as follows:

[0249] predFlagL0=(predListFlagA==0)?1:0 predFlagL1=(predListFlagA==0)?0:1 refIdxL0=(predListFlagA==0)?refIdxA:-1 refIdxL1=(predListFlagA==0)?-1:refIdxA mvL0=(predListFlagA==0)?mvA:0 mvL1=(predListFlagA==0)?0:mvA Next, when sType=1, or when sType=2 and predListFlagA+predListFlagB≠1, the following calculation is performed.

[0250] predFlagL0=(predListFlagB==0)?1:0 predFlagL1=(predListFlagB==0)?0:1 refIdxL0=(predListFlagB==0)?refIdxB:-1 refIdxL1=(predListFlagB==0)?-1:refIdxB mvL0=(predListFlagB==0)?mvB:0 mvL1=(predListFlagB==0)?0:mvB Here, predListFlagA+predListFlagB≠1 indicates that the list numbers of the divided areas A and B match. In this case, in order to avoid duplication of motion vectors, only the motion vector of the divided area B is stored even when sType=2.

[0251] Next, if sType=2 and predListFlagA+predListFlagB=1, the calculation is as follows:

[0252] predFlagL0=1 predFlagL1=1 refIdxL0=(predListFlagA==0)?refIdxA:refIdxB refIdxL1=(predListFlagA==0)?refIdxB:refIdxA mvL0=(predListFlagA==0)?mvA:mvB mvL1=(predListFlagA==0)?mvB:mvA Here, predListFlagA+predListFlagB=1 indicates a case where the list numbers of the divided areas A and B do not match. In this case, the two motion vectors of the divided areas A and B are stored as they are.

[0253] Although not shown in Figure 18, the above-mentioned mvL0 and mvL1 may store the motion vectors before being corrected by MMVD (Merge with Motion Vector Difference) or Inter TM (Template Matching) for GPM disclosed in Non-Patent Document 2.

[0254] Alternatively, the above-mentioned mvL0 and mvL1 may be motion vectors after being corrected by MMVD or Inter TM for GPM disclosed in Non-Patent Document 2.

[0255] When the corrected motion vector is stored, the prediction accuracy of the prediction block in which the motion vector is obtained from the GPM-applied block and prediction pixels are generated is improved.

[0256] On the other hand, if the motion vector before correction is preserved, it is not expected that the prediction accuracy of the predicted block that references the motion vector from the GPM will improve; however, it is expected that the decoding processing time will be reduced because it will be possible to start deriving the motion vector of the reference block of the GPM-applied block without waiting for the completion of MMVD and Inter TM processing for the GPM block.

[0257] It should be noted that which motion vector, before or after the correction, is to be saved can be selected in the same manner for Figs. 18 to 15 described later.

[0258] Next, the intra prediction mode may not be stored in all sType regions. Alternatively, a value indicating that intra prediction is disabled may be stored in all sType regions. This is because, in the configuration shown in FIG. 18, all regions are inter prediction, so there cannot be an intra prediction mode applied to the current block.

[0259] On the other hand, as the intra prediction mode stored in each sType area, when the reference destination of the motion information stored in each sType area is an intra prediction block, the intra prediction mode of the reference block may be stored as the intra prediction mode of the target block. Also, when the reference destination of the motion information stored in each sType area is an inter prediction block, the intra prediction mode of the target block may be stored as a planar mode, or the intra prediction mode may be tracked recursively using the reference destination of the motion information stored in the reference inter prediction block. However, since there is a limit to the tracking range, if the reference destination of the intra prediction mode is not found when the tracking upper limit is reached, the planar mode may be stored as the intra prediction mode of the target block. This allows intra prediction to be referenced when the prediction type of a specific area of ​​the target block is inter prediction, when the target block is referred to from another block (for example, an adjacent block) in the frame.

[0260] Next, values ​​indicating that the BcwIdx, hpeIfIdx, IBC Flag, and LIC Flag are invalid in all sType fields may be stored because BCW, SIF, IBC, and LIC are all encoding tools exclusive to GPM, and therefore it is self-evident that these encoding tools are invalid in a target block to which GPM is applied.

[0261] In relation to this, although not shown in Figures 18 to 20, the motion vector used in IBC may not be stored, or a zero vector may be stored. These parameters can have a similar configuration in Figures 19 and 20 described later, so detailed description of these parameters in Figures 19 and 20 will be omitted hereafter.

[0262] Figures 19 and 20 are diagrams showing an example of prediction information stored for a GPM configured with intra prediction and inter prediction as in Figure 6. Details of each prediction information stored according to the value of sType will be described below.

[0263] First, in this embodiment, prediction information stored in a partition area to which inter prediction is applied when sTyper=1 (Inter partition area) is unidirectionally applied when the target block is not included in a B slice (when included in a P slice), but when the target block is included in a B slice, bidirectional prediction is applied depending on the motion information of the merge candidate corresponding to the merge index as described above. The prediction information stored in a partition area to which inter prediction is applied when sTyper=1 in these two cases (Inter partition area) is shown below.

[0264] First, Fig. 19 shows an example of prediction information stored in a case where one-way prediction is applied when the target block is not included in a B slice (when the target block is included in a P slice). As shown in Fig. 19, the stored prediction information can have the same configuration as the example of prediction information stored in a partitioned region (Inter partitioned region) to which inter prediction is applied when sTyper=1 in Fig. 18.

[0265] In contrast to Fig. 19, Fig. 20 shows an example of prediction information stored when the current block is included in a B slice and bi-prediction is applied. As shown in Fig. 20, the stored prediction information is different from the configuration example of prediction information stored in a partitioned region (Inter partitioned region) to which inter prediction is applied when sTyper=1 in Fig. 18. Specifically, from motion information held by a merge candidate corresponding to one merge index for the region, motion vectors MVL0 and MVL1 of L0 and L1, respectively, and indexes RefIdxL0 and RefIdxL1 indicating reference frames of L0 and L1, respectively, are stored.

[0266] In the case of Figure 20, the intra prediction mode of the prediction information to be stored may have the same configuration as the example of the prediction information stored in the division area (Inter division area) to which inter prediction is applied when sTyper = 1 in Figure 18.

[0267] Secondly, when sTyper=0, prediction information stored in a division area to which intra prediction is applied (Intra division area) is stored as follows, as shown in FIGS.

[0268] Forecast Type=Intra predFlag0=0 predFlag1=0 mvL0=0 mvL1=0 refIdxL0=-1 refIdxL1=-1 Intra prediction mode = modeX Here, since intra prediction is applied to this divided region, as described above, Intra is saved as the prediction type and modeX is saved as the intra prediction mode.

[0269] As a modification, for example, in the case where an encoding tool is included that only refers to the intra prediction type on a sub-block basis from adjacent blocks and does not refer to the intra prediction mode, as in Non-Patent Document 1, a configuration may be adopted in which Intra is stored as the prediction type but the intra prediction mode is not stored.

[0270] As a further modification, even if an intra-prediction mode is applied to the GPM, any applied intra-prediction mode may not be saved.

[0271] On the other hand, since there is no motion information, it is possible to store 0 as predFlag0 and predFlagL1, 0 (meaning a zero vector) as mvL0 and mvL1, and -1 (meaning no reference frame) as refIdxL0 and refIdxL1 as described above.

[0272] Alternatively, as a modified example, in order to avoid the buffer area of ​​the prediction information buffer 244 becoming overloaded, a configuration may be adopted in which the motion information is not stored.

[0273] Thirdly, when sTyper=2, the prediction information stored in a partitioned area where intra prediction and inter prediction are applied (Intra+Inter partitioned area) differs depending on the configuration of the prediction information stored in the aforementioned sTyper=1, as shown in Figures 19 and 20.

[0274] In the case shown in Figure 19, the data is saved as follows:

[0275] Forecast Type=Inter predFlag0=(predListFlagB==0)?1:0 predFlag1=(predListFlagB==0)?0:1 refIdxL0=(predListFlagB==0)?refIdxB:-1 refIdxL1=(predListFlagB==0)?-1:refIdxB mvL0=(predListFlagB==0)?mvB:0 mvL1=(predListFlagB==0)?0:mvB Intra prediction mode = modeX On the other hand, in the case shown in FIG. 19, it is saved as follows:

[0276] Forecast Type=Inter predFlag0=1 predFlag1=1 refIdxL0=RefIdxL0 refIdxL1=RefIdxL1 mvL0=MVL0 mvL1=MVL1 Intra prediction mode = modeX Here, since intra prediction of sType=1 is applied to this divided region, as described above, the prediction type and intra prediction mode of the prediction information are the same parameters as those saved for sType=1. If there are two types of intra prediction modes that can be saved in the future, the intra prediction mode of sType=0 may be additionally saved in this divided region.

[0277] Furthermore, since inter prediction of sType=2 is applied to this divided region, the parameters related to the motion field information among the prediction information are the same as those saved for sType=2, as described above.

[0278] Fig. 21 is a diagram showing an example of prediction information stored for a GPM configured with two different intra predictions as shown in Fig. 7. Details of each prediction information stored according to the value of sType will be described below.

[0279] First, among the prediction information stored in all sType areas, parameters other than the intra prediction mode can have the same configuration as the parameters stored in the Intra division area when sType = 0 described in Figure 19, so the description will be omitted.

[0280] Secondly, as the intra prediction modes for the regions with sType=0 and the regions with sType=1, two different intra prediction modes modeX and modeY applied to each region are stored, as shown in FIG. 20 .

[0281] Thirdly, in an area where sType=2, as shown in FIG. 20, both the intra prediction modes of the area where sType=0 and the area where sType=1 are stored may be stored, or either one of the intra prediction modes may be stored.

[0282] Regarding the former, for example, when two intra prediction modes are available in the image encoding device 100 and the image decoding device 200, a configuration may be adopted in which the two intra prediction modes are stored.

[0283] In the latter case, for example, an intra-prediction mode of sType=0 may be selected as an intra-prediction mode of sType=2 by default.

[0284] Alternatively, for example, the intra prediction mode from which a 4x4 pixel sub-block is predominantly generated may be calculated, for example, in units of 2x2 pixel sub-blocks which are further subdivided from the 4x4 pixel sub-block, and the predominant intra prediction mode may be selected as the intra prediction mode for the region with sType=2.

[0285] Alternatively, the intra prediction mode having the shortest distance between the sub-block and adjacent reference pixels in the directions indicated by the two intra prediction modes of the sub-block may be selected as the intra prediction mode of sType=2.

[0286] As a further modification, as shown in FIG. 21, even if two intra prediction modes are applied to two GPMs, neither of the two applied intra prediction modes may be stored.

[0287] By using the prediction information and the method for storing prediction information described above, the prediction information when adding intra prediction to the GPM can be appropriately referenced from within or outside the frame, which is expected to result in improved coding performance.

[0288] In addition, among the prediction information stored in the prediction information buffer 244 described above, parameters other than the intra prediction mode may be deleted from the prediction information buffer 244 when they are no longer referenced within or outside the frame.

[0289] Also, if a storage area for the parameters is secured in the prediction information buffer 244, it may be initialized. Here, the timing at which the parameters are no longer referenced from outside the frame is the same as the timing at which the frame including the GPM-applied block is deleted from the frame buffer 260 (frame buffer 160).

[0290] Furthermore, among the prediction information stored in the prediction information buffer 244, when an intra prediction mode is no longer referenced within a frame, it may be deleted from the prediction information buffer 244. Also, when a storage area for the intra prediction mode is secured in the prediction information buffer 244, it may be initialized.

[0291] In the above, we have referred to a case in which a rectangular block is divided into two geometric shapes by the GPM, and explained the signaling method when applying an intra-prediction mode to the GPM in that case. However, the signaling method described in this embodiment can also be applied with a similar concept to a case in which a rectangular block is divided into three or more geometric shapes by the GPM.

[0292] The above-described image encoding device 100 and image decoding device 200 may be realized as a program that causes a computer to execute each function (each process).

[0293] In each of the above-described embodiments, the present invention has been described by taking as an example its application to the image encoding device 100 and the image decoding device 200. However, the present invention is not limited to this, and can be similarly applied to an image encoding system and an image decoding system having the functions of the image encoding device 100 and the image decoding device 200. [Industrial Applicability]

[0294] According to this embodiment, for example, it is possible to improve the overall service quality in video communication, which makes it possible to contribute to Goal 9 of the Sustainable Development Goals (SDGs) led by the United Nations, which is to "build resilient infrastructure, promote sustainable industrialization and foster innovation." [Explanation of symbols]

[0295] 10. Image processing system 100...Image encoding device 111, 241…Inter prediction section 112, 242...Intra prediction section 113, 243…synthetic section 114, 224... Prediction information buffer 121…Subtractor 122, 230…Adder 131...Transformation and quantization section 132, 220...Inverse transform and inverse quantization unit 140...encoding section 150, 250...In-loop filter processing section 160, 260... frame buffer 200...Image decoding device 210…Decoding section

Claims

1. An image decoding device, comprising: An image decoding device comprising an intra prediction unit configured to derive a plurality of intra prediction modes for each divided area of ​​a block to be decoded to which a geometric partitioning mode is applied, and generate intra prediction pixels.

2. The image decoding device according to claim 1, characterized in that the intra prediction unit is configured to derive an intra prediction mode based on adjacent reference pixels or adjacent reference blocks adjacent to the block to be decoded, and to generate intra predicted pixels for the block to be decoded using the derived intra prediction mode.

3. The image decoding device according to claim 1 , wherein the intra prediction unit is configured to derive two different intra prediction modes for a geometric partition mode to generate intra predicted pixels.

4. 4. The image decoding device according to claim 3, further comprising a synthesis unit that synthesizes a predicted pixel of a block to be decoded by taking a weighted average of two different intra predicted pixels for the geometric partitioning mode generated by the intra prediction unit.

5. A decoding unit configured to decode control data of a slice or a block to be decoded, The decoding unit decodes control data of the current slice or the current block, When the block to be decoded is included in an I slice and is identified as a dual tree, even if it is determined that a geometric partitioning mode is applied to a luminance component of the block to be decoded, it is determined that a geometric partitioning mode is not applicable to a chrominance component block corresponding to the luminance component of the block to be decoded; 2. The image decoding device according to claim 1, wherein, in other cases, it is not determined that the geometric partitioning mode for the color difference component block is inapplicable.

6. 1. An image decoding method, comprising:

1. An image decoding method comprising the steps of: deriving a plurality of intra prediction modes for each divided area of ​​a block to be decoded to which a geometric partitioning mode is applied, and generating intra prediction pixels.

7. A program for causing a computer to function as an image decoding device, The image decoding device comprises: A program comprising an intra prediction unit configured to derive a plurality of intra prediction modes for each divided area of ​​a block to be decoded to which a geometric partitioning mode is applied, and generate intra predicted pixels.

Citation Information

Patent Citations

  • Motion and apparatus for motion field storage in video coding

    US20200404267A1

  • Encoder, a decoder and corresponding methods for sub-block partitioning mode

    US20210144374A1

  • An encoder, a decoder and corresponding methods for inter prediction

    WO2020106190A1

  • Image decoding device, image decoding method, and program

    WO2023013667A1

  • Geometric partition based intra prediction

    WO2023044254A1