Image decoding device, image decoding method and program
Patent Information
- Application Number
- JP2021131823
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-08-12
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2039-12-26
Smart Images

Figure 0007564068000001 
Figure 0007564068000002 
Figure 0007564068000003
Abstract
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 Documents 1 and 2 disclose a rectangular block division technique (rectangular division technique) called QTBTTT (Quad-Tree-Binary-Tree-Ternary-Tree). [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Versatile Video Coding (Draft 7), JVET-N1001 [Non-Patent Document 2] ITU-T H.265 High Efficiency Video Coding Summary of the Invention [Problem to be solved by the invention]
[0004] However, when the above-mentioned conventional technique only divides blocks into rectangles, there is a problem in that when an object boundary appears in any direction relative to the block boundary, there is a possibility that an appropriate block division for the object boundary may not be selected.
[0005] Therefore, the present invention has been made in consideration of the above-mentioned problems, and aims to provide an image decoding device, image decoding method and program that can achieve an effect of improving coding performance by applying geometric block partition merging to a target block that has been partitioned into rectangles, thereby enabling an appropriate block partition shape to be selected for object boundaries that appear in any direction, thereby resulting in a reduction in prediction error and an effect of improving subjective image quality by selecting appropriate block partition boundaries for object boundaries. [Means for solving the problem]
[0006] A first feature of the present invention is summarized as an image decoding device including a merging unit configured to apply a geometric block partition merge to a rectangularly divided target block, the merging unit including a merge mode identification unit configured to identify whether or not to apply the geometric block partition merge, a geometric block partitioning unit configured to identify a geometric block partition pattern and to further divide the rectangularly divided target block into geometric blocks using the identified geometric block partition pattern, and a merge list construction unit configured to construct a merge list for the geometric block divided target block and decode motion information.
[0007] A second feature of the present invention is an image decoding method having a step of applying geometric block partition merging to a target block partitioned into rectangles, the step comprising: a step of determining whether or not to apply the geometric block partition merging; a step of determining a geometric block partition pattern and further partitioning the rectangularly divided target block into geometric blocks using the determined geometric block partition pattern; and a step of constructing a merge list for the geometric block partitioned target block and decoding motion information.
[0008] A third feature of the present invention is summarized as a program for causing a computer to function as an image decoding device, the image decoding device including a merging unit configured to apply a geometric block partition merge to a rectangularly divided target block, the merging unit including a merge mode identification unit configured to identify whether or not to apply the geometric block partition merge, a geometric block partitioning unit configured to identify a geometric block partition pattern and to further geometrically partition the rectangularly divided target block using the identified geometric block partition pattern, and a merge list construction unit configured to construct a merge list for the geometric block divided target block and decode motion information. Effect of the Invention
[0009] According to the present invention, by applying geometric block partition merging to a target block that has been partitioned into rectangles, an appropriate block partition shape can be selected for object boundaries that appear in any direction, thereby providing an image decoding device, image decoding method and program that can achieve an improved coding performance effect by reducing prediction error and an improved subjective image quality effect by selecting appropriate block partition boundaries for object boundaries. [Brief description of the drawings]
[0010] [Figure 1] 1 is a diagram illustrating an example of a 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 an image encoding device 100 according to an embodiment. [Diagram 3] FIG. 2 is a diagram illustrating an example of functional blocks of an inter prediction unit 111 of an image encoding device 100 according to an embodiment. [Figure 4] FIG. 2 is a diagram illustrating an example of functional blocks of an image decoding device 200 according to an embodiment. [Diagram 5] FIG. 2 is a diagram illustrating an example of functional blocks of an inter prediction unit 241 of an image decoding device 200 according to an embodiment. [Figure 6] FIG. 2 is a diagram illustrating an example of functional blocks of a merge unit 111A2 of an inter prediction unit 111 of an image encoding device 100 according to an embodiment. [Figure 7] 13 is a diagram illustrating an example of functional blocks of a merge unit 241A2 of an inter prediction unit 241 of an image decoding device 200 according to an embodiment. FIG. [Figure 8] 13 is a flowchart showing an example of a method for specifying whether or not geometric block partition merging is applied in a merge mode specifying unit 241A21 of the inter predictor 241 of the image decoding device 200 according to an embodiment. [Figure 9] 13 is a flowchart showing an example of a method for specifying whether or not geometric block partition merging is applied in a merge mode specifying unit 241A21 of the inter predictor 241 of the image decoding device 200 according to an embodiment. [Figure 10] 13 is a flowchart showing an example of a method for specifying whether or not geometric block partition merging is applied in a merge mode specifying unit 241A21 of the inter predictor 241 of the image decoding device 200 according to an embodiment. [Figure 11] FIG. 13 is a diagram showing an example of a method for defining a geometric block division pattern according to a modified example. [Figure 12] FIG. 13 is a diagram showing an example of an elevation angle φ that defines a geometric block division pattern according to a modified example. [Figure 13] FIG. 13 is a diagram showing an example of a position (distance ρ) that defines a geometric block division pattern according to a modified example. [Figure 14] 13A and 13B are diagrams illustrating an example of a method for defining the elevation angle φ and the distance ρ according to a modified example. [Figure 15] FIG. 13 is a diagram showing an example of an index table indicating combinations of elevation angles φ and distances (positions) ρ that define a geometric block division pattern according to a modified example. [Figure 16] FIG. 13 is a diagram for explaining an example of control of a decoding method of "partition#idx" according to the block size or block aspect ratio of a target block in one modified example. [Figure 17]13 is a flowchart illustrating an example of a process of registering and pruning motion information in a merge list according to an embodiment. [Figure 18] FIG. 13 is a diagram showing an example of a merge list constructed as a result of a process of registering and pruning motion information in the merge list according to an embodiment; [Figure 19] FIG. 13 is a diagram illustrating a spatial merge according to an embodiment. [Figure 20] FIG. 13 is a diagram for explaining a time merge according to an embodiment. [Figure 21] 11 is a diagram illustrating an example of a scaling process of a motion vector inherited in a temporal merge according to an embodiment. FIG. [Figure 22] FIG. 13 is a diagram illustrating history merging according to an embodiment. [Figure 23] 13A and 13B are diagrams illustrating an example of a geometric block partitioning pattern in a target block when a geometric block partitioning merge is enabled according to a modified example, and an example of a positional relationship between a spatial merge and a temporal merge for the target block. [Figure 24] 13A and 13B are diagrams illustrating an example of a geometric block partitioning pattern in a target block when a geometric block partitioning merge is enabled according to a modified example, and an example of a positional relationship between a spatial merge and a temporal merge for the target block. 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 10. Figure 1 is a diagram showing an image processing system 10 according to this embodiment.
[0013] 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 encoding device 100 is configured to generate encoded data by encoding an input image signal. The image decoding device 200 is configured to generate an output image signal by decoding the encoded data.
[0015] The encoded data may be transmitted from the image encoding device 100 to the image decoding device 200 via a transmission path. The encoded data may be provided from the image encoding device 100 to the image decoding device 200 after being stored in a storage medium.
[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 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 a prediction signal by inter prediction (inter-frame prediction).
[0019] Specifically, the inter prediction unit 111 is configured to identify a reference block contained in the reference frame by comparing a frame to be encoded (hereinafter, the target frame) with a reference frame stored in the frame buffer 160, and to determine a motion vector (mv) for the identified reference block.
[0020] Moreover, the inter prediction unit 111 is configured to generate a prediction signal included in a block to be coded (hereinafter, a target block) for each target block based on the reference block and the motion vector. The inter prediction unit 111 is configured to output the prediction signal to the subtractor 121 and the adder 122. Here, the reference frame is a frame different from the target frame.
[0021] The intra prediction unit 112 is configured to generate a prediction signal by intra prediction (intra-frame prediction).
[0022] Specifically, the intra prediction unit 112 is configured to identify a reference block included in a target frame, and generate a prediction signal for each target block based on the identified reference block. The intra prediction unit 112 is also configured to output the prediction signal to the subtractor 121 and the adder 122.
[0023] Here, the reference block is a block that is referenced for the current block, for example, a block adjacent to the current block.
[0024] 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.
[0025] The adder 122 is configured to add the prediction signal to the prediction residual signal output from the inverse transform / inverse quantization unit 132 to generate a pre-filtered decoded signal, and output the pre-filtered decoded signal to the intra prediction unit 112 and the in-loop filter processing unit 150.
[0026] Here, the unfiltered decoded signal forms a reference block used by the intra prediction unit 112 .
[0027] 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.
[0028] Here, the transform process is a process of transforming a prediction residual signal into a frequency component signal. In the transform process, a basis pattern (transformation matrix) corresponding to a discrete cosine transform (DCT) may be used, or a basis pattern (transformation matrix) corresponding to a discrete sine transform (DST) may be used.
[0029] 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.
[0030] 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 .
[0031] The encoding unit 140 is configured to encode the coefficient level values output from the transform / quantization unit 131, and output encoded data.
[0032] Here, for example, the coding is entropy coding, which assigns codes of different lengths based on the probability of occurrence of coefficient level values.
[0033] The encoding unit 140 is also configured to encode control data for use in the decoding process in addition to the coefficient level values.
[0034] Here, the control data may include size data such as a coding block (CU: Coding Unit) size, a prediction block (PU: Prediction Unit) size, a transform block (TU: Transform Unit) size, and the like.
[0035] Furthermore, the control data may include header information such as a sequence parameter set (SPS), a picture parameter set (PPS), and a slice header, as will be described later.
[0036] 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 .
[0037] Here, for example, the filtering process is a deblocking filtering process that reduces distortion occurring at the boundary portions of blocks (encoded blocks, predicted blocks, or transformed blocks).
[0038] The frame buffer 160 is configured to store reference frames used by the inter prediction unit 111 .
[0039] Here, the filtered decoded signal forms a reference frame used in the inter prediction unit 111.
[0040] (Inter prediction unit 111) Hereinafter, the inter prediction unit 111 of the image encoding device 100 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 inter prediction unit 111 of the image encoding device 100 according to this embodiment.
[0041] As shown in FIG. 3, the inter prediction unit 111 has an mv derivation unit 111A, an AMVR unit 111B, an mv refinement unit 111B, and a predicted signal generation unit 111D.
[0042] The inter prediction unit 111 is an example of a prediction unit configured to generate a prediction signal to be included in a current block based on a motion vector.
[0043] As shown in FIG. 3, the mv derivation unit 111A has an AMVP (Adaptive Motion Vector Prediction) unit 111A1 and a merge unit 111A2, and is configured to receive a target frame and a reference frame from the frame buffer 160 as input and obtain a motion vector.
[0044] The AMVP unit 111A1 is configured to identify a reference block included in the reference frame by comparing the target frame with the reference frame, and to search for a motion vector for the identified reference block.
[0045] Moreover, the above-mentioned search process is performed on a plurality of reference frame candidates, a reference frame and a motion vector to be used for prediction of the current block are determined, and output to the subsequent predicted signal generating unit 111D.
[0046] A maximum of two reference frames and two motion vectors can be used for one block. When only one set of reference frames and motion vectors is used for one block, it is called "uni-prediction," and when two sets of reference frames and motion vectors are used, it is called "bi-prediction." Hereinafter, the first set will be called "L0" and the second set will be called "L1."
[0047] Furthermore, when the AMVP unit 111A finally transmits the above-mentioned determined motion vector to the image decoding device 200, in order to reduce the amount of coding, it selects an mvp from among candidates of motion vector predictors (mvp) derived from adjacent encoded motion vectors, which has a small difference from the motion vector of the target block, i.e., a small motion vector difference (mvd).
[0048] The index indicating the selected mvp and mvd and the index indicating the reference frame (hereinafter, Refidx) are coded by the coding unit 140 and transmitted to the image decoding device 200. This process is generally called adaptive motion vector prediction coding (AMVP: Adaptive: Motion Vector Prediction).
[0049] Note that the above-mentioned motion vector search method, reference frame and motion vector determination method, MVP selection method, and MVD calculation method can adopt known techniques, so details thereof will be omitted.
[0050] The merge unit 111A2 is configured to search for and derive motion information of the target block as in the AMVP unit 111A1, and not to transmit mvd as a difference with adjacent blocks, but to take the target frame and the reference frame as input, and to inherit and use the motion information of the reference block as it is, using an adjacent block in the same frame as the target block or a block at the same position in a frame different from the target frame as the reference block. Such processing is generally called merge coding (hereinafter, merge).
[0051] If the block is a merge block, a merge list for the block is first constructed. The merge list is a list of a plurality of combinations of reference frames and motion vectors. Each combination is assigned an index (hereinafter, a merge index), and the image encoding device 100 encodes only the merge index and transmits it to the image decoding device 200, instead of encoding the combination information of Refidx and the motion vector (hereinafter, motion information) separately.
[0052] By sharing the same method of constructing a merge list between the image encoding device 100 and the image decoding device 200, the image decoding device 200 can decode motion information from only merge index information. The method of constructing a merge list and the method of geometrically dividing an inter prediction block according to this embodiment will be described later.
[0053] The mv refinement unit 111B is configured to perform a refinement process to correct the motion vector output from the merge unit 111A2. For example, as a refinement process to correct a motion vector, DMVR (Decoder side Motion Vector Refinement) described in Non-Patent Document 1 is known. In this embodiment, since it is possible to use the known method described in Non-Patent Document 1 as such a refinement process, a description thereof will be omitted.
[0054] The prediction signal generation unit 111C is configured to output an MC prediction image signal using a reference frame and a motion vector as input. Since the known method described in Non-Patent Document 1 can be used as the processing in the prediction signal generation unit 111C, a description thereof will be omitted.
[0055] (Image Decoding Device 200) Hereinafter, the image decoding device 200 according to this embodiment will be described with reference to Fig. 4. Fig. 4 is a diagram showing an example of functional blocks of the image decoding device 200 according to this embodiment.
[0056] As shown in FIG. 4, 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, an in-loop filtering unit 250, and a frame buffer 260.
[0057] 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.
[0058] Here, the decoding is, for example, entropy decoding that is the reverse procedure of the entropy encoding performed by the encoding unit 140.
[0059] The decoding unit 210 may also be configured to obtain the control data by decoding the encoded data.
[0060] As mentioned above, the control data may include size data such as coding block size, prediction block size, transform block size, etc.
[0061] 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.
[0062] 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 .
[0063] The adder 230 is configured to add the prediction signal 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 intra prediction unit 242 and the in-loop filter processing unit 250.
[0064] Here, the unfiltered decoded signal forms a reference block used by the intra prediction unit 242 .
[0065] Similar to the inter prediction unit 111, the inter prediction unit 241 is configured to generate a prediction signal by inter prediction (inter-frame prediction).
[0066] Specifically, the inter prediction unit 241 is configured to generate a prediction signal for each prediction block 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 prediction signal to the adder 230.
[0067] Similar to the intra prediction unit 112, the intra prediction unit 242 is configured to generate a prediction signal by intra prediction (intra-frame prediction).
[0068] Specifically, the intra prediction unit 242 is configured to identify a reference block included in the target frame, and generate a prediction signal for each prediction block based on the identified reference block. The intra prediction unit 242 is configured to output the prediction signal to the adder 230.
[0069] 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.
[0070] Here, for example, the filtering process is a deblocking filtering process that reduces distortion occurring at the boundary between blocks (encoded blocks, predicted blocks, transformed blocks, or subblocks obtained by dividing these blocks).
[0071] Similar to the frame buffer 160, the frame buffer 260 is configured to store reference frames used by the inter prediction unit 241.
[0072] Here, the filtered decoded signal forms a reference frame used by the inter prediction unit 241.
[0073] (Inter prediction unit 241) Hereinafter, the inter prediction unit 241 according to this embodiment will be described with reference to Fig. 5. Fig. 5 is a diagram showing an example of functional blocks of the inter prediction unit 241 according to this embodiment.
[0074] As shown in FIG. 5, the inter prediction unit 241 has an mv decoding unit 241A, an mv refinement unit 241B, and a prediction signal generation unit 241C.
[0075] The inter prediction unit 241 is an example of a prediction unit configured to generate a prediction signal included in a prediction block based on a motion vector.
[0076] The mv decoding unit 241A has an AMVP unit 241A1 and a merge unit 241A2, and is configured to obtain motion vectors by decoding the target frame and reference frame input from the frame buffer 260, and the control data received from the image encoding device 100.
[0077] The AMVP unit 241A1 is configured to receive the target frame, the reference frame, and the indexes indicating mvp and mvd, Refidx, from the image encoding device 100, and decode the motion vector. Since a known method can be adopted for the method of decoding the motion vector, the details thereof will be omitted.
[0078] The merging unit 241A2 is configured to receive a merge index from the image encoding device 100 and decode a motion vector.
[0079] Specifically, the merging unit 241A2 is configured to construct a merge list and obtain a motion vector corresponding to the received merge index from the constructed merge list in the same manner as in the image encoding device 100. The method of constructing the merge list will be described later in detail.
[0080] The mv refinement unit 241B is configured to execute a refinement process to modify a motion vector, similar to the mv refinement unit 111B.
[0081] The prediction signal generation unit 241C is configured to generate a prediction signal based on a motion vector, similar to the prediction signal generation unit 111C.
[0082] Details of the prediction signal generation process when the geometric block division merge is enabled will be described later. As for the prediction signal generation process when the other merge modes are enabled, the known technology described in Non-Patent Document 1 can be used in this embodiment, so the description will be omitted.
[0083] (Merge section) Hereinafter, the merging unit 111A2 of the inter prediction unit 111 of the image encoding device 100 according to this embodiment and the merging unit 241A2 of the inter prediction unit 241 of the image decoding device 200 will be described with reference to Fig. 6 and Fig. 7. Fig. 6 and Fig. 7 are diagrams showing an example of functional blocks of the merging unit 111A2 of the inter prediction unit 111 of the image encoding device 100 according to this embodiment and the merging unit 241A2 of the inter prediction unit 241 of the image decoding device 200.
[0084] As shown in FIG. 6, the merging unit 111A2 includes a merge mode specifying unit 111A21, a geometric block dividing unit 111A22, and a merge list constructing unit 111A23.
[0085] As shown in FIG. 7, the merging unit 241A2 includes a merge mode specifying unit 241A21, a geometric block dividing unit 241A22, and a merge list constructing unit 241A23.
[0086] The difference between the merge unit 111A2 and the merge unit 241A2 is that the input and output of various indexes described below are reversed in the merge mode identification unit 111A21 and the merge mode identification unit 241A21, the geometric block division unit 111A22 and the geometric block division unit 241A22, and the merge list construction unit 111A23 and the merge list construction unit 241A23.
[0087] That is, various indexes output from the merge unit 111A2 are input to the merge unit 241A2. Other than that, the functions of the merge unit 111A2 and the merge unit 241A2 are the same, so in the following, for simplicity of explanation, the functions of the merge unit 241A2 will be representatively explained.
[0088] The merge mode specification unit 241A21 is configured to specify whether or not the geometric block merge mode is applied to the target block that has been divided into rectangular shapes.
[0089] In addition to the geometric block division merge, the merge modes include, for example, the normal merge adopted in Non-Patent Document 1, the sub-block merge, MMVD (Merge mode with MVD), CIIP (Combined inter and intra prediction), and IBC (Intra Block Copy).
[0090] In this embodiment, in addition to these merge modes, a new geometric block partition merge is applied, so that even if an object boundary appears in any direction for a target block that has been partitioned into rectangles, an appropriate block partition shape is selected using geometric block partitioning.As a result, prediction errors are reduced, thereby improving coding performance and improving subjective image quality near object boundaries.
[0091] The geometric block division unit 241A22 is configured to identify a geometric block division pattern of the target block that has been divided into rectangles, and divide the target block into geometric blocks using the identified division pattern. A method for identifying the geometric block division pattern will be described in detail later.
[0092] The merge list constructing unit 241A23 is configured to construct a merge list for the current block and decode the motion information.
[0093] The process of constructing a merge list consists of three stages: a process of checking whether motion information is available, a process of registering and pruning motion information, and a process of decoding motion information. The details of each stage will be described later.
[0094] (Method of Determining Whether or Not to Apply Geometric Block Division Merge in Merge Mode Determining Unit 241A21) Hereinafter, a method for specifying whether or not to apply geometric block division merging in the merge mode specifying unit 241A21 will be described with reference to Figures 8 to 10. Figures 8 to 10 are flowcharts showing an example of a method for specifying whether or not to apply geometric block division merging in the merge mode specifying unit 241A21.
[0095] As shown in FIG. 8, the merge mode specification unit 241A21 is configured to specify that the geometric block partition merge is to be applied (the merge mode of the target block is the geometric block partition merge) when the normal merge is not applied and the CIIP is not applied.
[0096] Specifically, as shown in FIG. 8, in step S7-1, the merge mode determination unit 241A21 determines whether or not to apply a normal merge, and if it determines that a normal merge is to be applied, it proceeds to step S7-5, and if it determines that a normal merge is not to be applied, it proceeds to step S7-2.
[0097] In step S7-2, merge mode specification section 241A21 specifies whether or not CIIP is to be applied, and if it specifies that CIIP is to be applied, the process proceeds to step S7-3, and if it specifies that CIIP is not to be applied, the process proceeds to step S7-4.
[0098] The merge mode specifying unit 241A21 may skip step S7-2 and proceed directly to step S7-4, which means that if normal merging is not applicable, the merge mode of the target block is specified as geometric block division merging.
[0099] In step S7-3, the merge mode specifying unit 241A21 specifies that CIIP is to be applied to the target block (the merge mode of the target block is CIIP), and ends this process.
[0100] Note that the image encoding device 100 and the image decoding device 200 each store, as an internal parameter, a result of specifying whether or not geometric block partition merging is to be applied to the current block.
[0101] In step S7-4, the merge mode specifying unit 241A21 specifies that the geometric block division merge is to be applied to the target block (the merge mode of the target block is the geometric block division merge), and ends this process.
[0102] In step S7-5, the merge mode specifying unit 241A21 specifies that normal merge is to be applied to the target block (the merge mode of the target block is normal merge), and ends this process.
[0103] In addition, in the flowchart of Figure 8, even if step S7-2 is replaced with a merge other than CIIP in the future, the merge mode identification unit 241A21 may identify whether or not to apply the geometric block division merge depending on the determination result of whether the replaced merge can be applied.
[0104] Also, in the flowchart of FIG. 8A, even if a merge other than CIIP is added between steps S7-2 and S7-4 in the future, the merge mode determination unit 241A21 may determine whether or not to apply a geometric block division merge depending on the result of determining whether or not the added merge is applicable.
[0105] Next, the conditions for determining whether or not to apply normal merging in step S7-1 will be described with reference to FIG.
[0106] As shown in FIG. 9, in step S7-1-1, the merge mode specifying unit 241A21 determines whether or not the normal merge flag needs to be decoded.
[0107] If the merge mode identification unit 241A21 determines that the judgment condition of step S7-1-1 is met, i.e., that normal merge decoding is necessary, it proceeds to step S7-1-2, and if the merge mode identification unit 241A21 determines that the judgment condition of step S7-1-1 is not met, i.e., that normal merge decoding is not necessary, it proceeds to step S7-1-3.
[0108] Here, if the merge mode identification unit 241A21 determines that the normal merge flag does not need to be decoded, it can estimate the value of the normal merge flag based on ``general_merge_flag'' indicating whether the target block is inter-predicted by merging and the sub-block merge flag indicating whether sub-block merging is applied, as in the method described in non-patent document 1.
[0109] Regarding such an estimation method, the same method as that described in Non-Patent Document 1 can be used in this embodiment, and therefore a description thereof will be omitted.
[0110] The condition for determining whether or not decoding of the normal merge flag in step S7-1-1 is made up of a condition for determining whether or not CIIP is applicable and a condition for determining whether or not geometric block merging is applicable. - Criteria for determining whether CIIP is applicable: (1) The area of the target block is 64 pixels or more. (2) The SPS-level CIIP enable flag is enabled (has a value of 1). (3) The skip mode flag of the target block is disabled (its value is 0). (4) The width of the target block is less than 128 pixels. (5) The height of the target block is less than 128 pixels. - Geometry block merging applicability criteria: (1) The area of the target block is 64 pixels or more. (6) The SPS level geometric block division merge enable flag is enabled (its value is 1). (7) The maximum number of merge indexes that can be registered in the merge list for the geometry block partition merge (hereinafter, the maximum number of geometry block partition merge candidates) is greater than 1. (8) The width of the target block is 8 pixels or more. (9) The height of the target block is 8 pixels or more. (10) The slice type in which the target block is included is a B slice (bi-predictive slice).
[0111] The merge mode determination unit 241A21 determines that the CIIP is applicable when all of the above conditional expressions (1) to (5) in the CIIP applicability determination conditions are satisfied, and otherwise determines that the CIIP is not applicable.
[0112] Note that, with regard to each conditional expression of the CIIP applicability determination conditions, the same conditional expressions described in Non-Patent Document 1 can be used in this embodiment, so the explanation will be omitted.
[0113] In addition, the merge mode identification unit 241A21 determines that the geometric block division merge is applicable when all of the above-mentioned conditional expressions (1) and (6) to (10) are satisfied in the conditions for determining whether the geometric block merge is applicable, and determines that the geometric block division merge is not applicable in other cases.
[0114] The conditions (1) and (6) to (10) will be described in detail later.
[0115] If the merge mode determination unit 241A21 determines in step S7-1-1 whether or not the normal merge flag needs to be decoded, and if either the above-mentioned CIIP applicability determination condition or the geometric block division merge applicability determination condition is satisfied, the merge mode determination unit 241A21 proceeds to step S7-1-2; if neither is satisfied, the merge mode determination unit 241A21 proceeds to step S7-1-3.
[0116] In addition, the CIIP applicability determination condition may be removed from the decoding necessity determination condition of the normal merge flag in step S7-1-1, which means that only the geometric block division merge applicability determination condition is added to the decoding necessity determination condition of the normal merge flag.
[0117] In step S7-1-2, the merge mode identification unit 241A21 decodes the normal merge flag, and the process proceeds to step S7-1-3.
[0118] In step S7-1-3, the merge mode identification unit 241A21 determines whether the value of the normal merge flag is 1, and if it is 1, proceeds to step S7-5, and if it is not 1, proceeds to step S7-2.
[0119] Next, the conditions for determining whether or not the CIIP is applied in step S7-2 will be described with reference to FIG.
[0120] As shown in FIG. 10, in step S7-2-1, the merge mode identification unit 241A21 determines whether or not the CIIP flag needs to be decoded.
[0121] If the merge mode identification unit 241A21 determines that step S7-2-1 is satisfied, i.e., that decoding of the CIIP flag is necessary, it proceeds to step S7-2-2; if the merge mode identification unit 241A21 determines that step S7-2-1 is not satisfied, i.e., that decoding of the CIIP flag is not necessary, it proceeds to step S7-2-3.
[0122] Here, if the merge mode identification unit 241A21 determines that the CIIP flag does not need to be decrypted, it estimates the value of the CIIP flag as follows.
[0123] If all of the following conditions are met, the merge mode identification unit 241A21 treats the CIIP as valid, i.e., the value of the CIIP flag is 1; otherwise, the merge mode identification unit 241A21 treats the CIIP as invalid, i.e., the value of the CIIP flag is 0.
[0124] (1) The area of the target block is 64 pixels or more. (2) The normal merge flag is 0. (3) The SPS-level CIIP enable flag is enabled (has a value of 1). (4) The skip mode flag of the target block is enabled (its value is 0). (5) The width of the target block is less than 128 pixels. (6) The height of the target block is less than 128 pixels. (12) “general#merge#flag” is 1. (13) The subblock merge flag is 0.
[0125] The condition for determining whether or not the CIIP flag needs to be decoded in step S7-2-1 is made up of the above-mentioned CIIP applicability condition and geometric block division merging applicability condition.
[0126] If both the CIIP applicability condition and the geometric block division merge applicability determination condition are satisfied, the merge mode specification unit 241A21 proceeds to step S7-2-2, and if either one is not satisfied, the merge mode specification unit 241A21 proceeds to step S7-2-3.
[0127] Here, since it has already been determined that conditional expression (1) is satisfied in the normal merge flag decoding necessity determination condition before entering the CIIP flag decoding necessity determination condition, it may be omitted from step S7-2-1.
[0128] In step S7-2-2, the merge mode identification unit 241A21 decodes the CIIP flag, and the process proceeds to step S7-1-3.
[0129] In step S7-2-3, the merge mode identification section 241A21 determines whether the value of the CIIP flag is 1, and if it is 1, the process proceeds to step S7-3, and if it is not 1, the process proceeds to step S7-4.
[0130] (Explanation of the conditions for determining whether or not geometric block division and merging is possible) The following describes in detail (1) and (6) to (10) related to the geometric block division merge feasibility determination conditions. (1) In order to limit the target blocks to which geometric block division merging can be applied to relatively large blocks, the area of the target block is set to 64 pixels or more. (6) A new flag is provided to indicate whether or not geometric block division merging is applicable at the SPS level. If the flag is invalid, it is possible to identify that geometric block merging is not applicable to the target block, so the flag is added to the geometric block division merging applicability determination condition formula. (7) In order to avoid the worst-case excess of the memory bandwidth required for motion compensation prediction of inter-prediction blocks in Non-Patent Document 1, the lower limit of the width of a target block is set to 8 pixels or more. (8) In order to avoid the worst-case excess of memory bandwidth required for motion compensation prediction of inter-prediction blocks in Non-Patent Document 1, the lower limit of the height of a target block is set to 8 pixels or more. (9) A target block to which geometric block partition merging is applicable has two different motion information across a partition boundary. Therefore, if the target block is included in a B slice, it is possible to identify that geometric block partition merging is applicable to the target block. On the other hand, if the target block is included in a slice other than the B slice, that is, if the target block cannot have two different motion vectors, it is possible to identify that geometric block partition merging is not applicable to the target block. (10) As described above, the geometric block division merge requires two different pieces of motion information, and the two different pieces of motion information are identified (decoded) from the motion information associated with two different merge indexes registered in the merge list in the merge list construction unit. Therefore, when the geometric block division merge maximum number of candidates is designed or specified to be 1 or less, it is possible to specify that the geometric block division merge is not applicable to the target block, so a parameter for calculating the geometric block division merge maximum number of candidates is provided inside the geometric block division unit. This geometric block division merge maximum number of candidates may use the same value as the maximum number of merge indexes that can be registered in the merge list for normal merge (hereinafter, the maximum number of merge candidates), or, in order to use a different value, for example, a flag that specifies how many candidates to reduce from the maximum number of merge candidates may be transmitted from the image encoding device 100 to the image decoding device 200, and the flag may be decoded to calculate the number of candidates.
[0131] [Modification example 1: Addition of a condition based on block aspect ratio to the conditions for determining whether or not geometric block division and merging is possible] Hereinafter, a first modified example of the present invention will be described with reference to FIG. 11, focusing on differences from the above-described first embodiment.
[0132] In this modification example 1, in order to further restrict the application of geometric block division merging to the target block, a judgment based on the block size (upper limit) or block aspect ratio of the target block may be added to the above-mentioned geometric block division merging feasibility judgment conditions.
[0133] First, consider adding a conditional expression that sets the upper limit of each of the height and width of a target block identified as being applicable to geometric block division merging to, for example, 64 pixels or less.
[0134] The reason for setting the upper limit of the height and width to 64 pixels or less is to avoid violation of the constraints for maintaining the pipeline processing units of the image decoding device 200 called Virtual Pipeline Data Units (VPDUs), which are adopted in Non-Patent Document 1.
[0135] In Non-Patent Document 1, since the size of the VPDU is set to 64×64 pixels, the upper limit of the applicable range of geometric block division and merging is set to 64 pixels.
[0136] On the other hand, the designer may set an even smaller upper limit, for example, 32 pixels or less, at his / her discretion.
[0137] In geometric block partition merging, when generating an MC predicted image signal, the MC predicted image signal is generated based on two different motion vectors that straddle a geometric block partition boundary, and is generated using a blending mask table that is weighted by the distance from the geometric block partition boundary.
[0138] By reducing the upper limits of the width and height of the target block, the size of the blending mask table can be reduced, and it is desirable from an implementation standpoint to reduce the size of the blending mask table that needs to be stored in the memory of the image encoding device 100 and the image decoding device 200, thereby reducing the memory storage capacity.
[0139] Secondly, it is considered to add a conditional expression that specifies that the aspect ratio of a target block specified as being applicable to geometric block division and merging is 4 or less, for example.
[0140] Such elongated rectangular blocks with an aspect ratio of 8 or more are unlikely to occur in natural images. Therefore, if the application of geometric block division merging to such rectangular blocks is prohibited, it becomes possible to reduce the number of variations in the division shape of the geometric block division (the number of variations in parameters that define the positions and directions of the geometric block division boundaries in the rectangular block), which will be described later, and this has the effect of reducing the storage capacity of the parameters for defining the variations in the image encoding device 100 and the image decoding device 200.
[0141] (Method of defining geometric block division pattern in geometric block division section) Hereinafter, a method for defining a geometric block division pattern in the geometric block division unit 241A22 according to this embodiment will be described with reference to Fig. 11. Fig. 11 is a diagram showing an example of a method for defining a geometric block division pattern according to this embodiment.
[0142] The geometric block division pattern may be defined, for example, as shown in FIG. 11, by two parameters: the position of the geometric block division boundary line, i.e., the distance ρ from the center point (hereinafter referred to as the center point) of the rectangularly divided target block to the geometric block division boundary line (hereinafter referred to as the division boundary line), and the elevation angle φ from the horizontal direction of the perpendicular line from the center point to the division boundary line.
[0143] Furthermore, the combination of the distance ρ and the elevation angle φ may be transmitted from the image encoding device 100 (the merging unit 111A2) to the image decoding device 200 (the merging unit 241A2) using an index.
[0144] The greater the variation in the combinations of distance ρ and angle φ that define the geometric block division pattern, the greater the expected reduction in prediction error. However, there is a trade-off between the increased processing time required to identify combinations of distance ρ and elevation angle φ and the increased code length of the index to indicate such combinations. Therefore, quantized distance ρ and elevation angle φ may be used at the designer's discretion.
[0145] Here, the quantized distance ρ may be designed in units of a predetermined number of pixels, and the quantized elevation angle φ may be designed as an angle obtained by equally dividing 360 degrees.
[0146] [Modification 2: Method of defining the elevation angle ρ] Hereinafter, a modified example 2 of the present invention will be described with reference to Fig. 12, focusing on differences from the above-mentioned first embodiment and modified example 1. Fig. 12 is a diagram showing a modified example of the elevation angle φ that defines the above-mentioned geometric block division pattern.
[0147] In the above-mentioned modification example 1, as an example of a method for determining the elevation angle φ, a method for determining the elevation angle φ using angles equally divided into 360 degrees was shown. However, in this modification example, the elevation angle φ may also be determined using the possible block aspect ratio and horizontal and vertical directions of the target block, as shown in Figure 12(b).
[0148] For example, as shown in Fig. 12(c), the elevation angle φ can be expressed using an arctangent function. In this modification, as shown in Fig. 12(a), an example is shown in which a total of 24 elevation angles φ are defined.
[0149] [Modification 3: How to specify the position of the division boundary line (distance ρ)] Hereinafter, a third modified example of the present invention will be described with reference to Fig. 13, focusing on differences from the first embodiment and modified examples 1 and 2. Fig. 13 is a diagram showing a modified example of the position (distance ρ) that defines the above-mentioned geometric block division pattern.
[0150] In the above-mentioned modified examples 1 and 2, the distance ρ was defined as the perpendicular distance from the center point of the target block to the division boundary line, but in this modified example, the distance ρ may be defined as a specified distance (specified position) in the horizontal or vertical direction from the center point, including the center point, as shown in Figure 13.
[0151] In the example of FIG. 13, two different distances ρ are defined depending on the block aspect ratio of the target block.
[0152] First, as shown in FIG. 13(a), for a landscape block, the distance ρ may be defined only in the horizontal direction.
[0153] Secondly, as shown in FIG. 13(b), the distance ρ may be defined only in the vertical direction for a vertically elongated block.
[0154] However, the vertical and horizontal distances ρ may be defined as long as the elevation angle φ is 0 degrees (180 degrees) for horizontal blocks and as long as the elevation angle is 90 degrees (270 degrees) for vertical blocks.
[0155] For square blocks, the distance ρ may be defined in either the horizontal direction or the vertical direction, or in both directions. Also, the distance ρ may vary with respect to a predetermined distance (predetermined position) obtained by dividing the width or height of the target block into eight equal parts, as shown in FIG. 13.
[0156] In the example of Figure 13, the distance ρ is defined as a distance (position) from the center point in the horizontal (left-right) or vertical (up-down) direction that is 0 / 8, 1 / 8, 2 / 8, or 3 / 8 times the width or height of the target block.
[0157] Here, the reason why the vertical and horizontal distances (distance in the short side direction) are not specified for elevation angles other than 0 degrees (180 degrees) for horizontal blocks and elevation angles other than 90 degrees (270 degrees) for vertical blocks is that the effect of increasing the number of variations of the geometric block division pattern by specifying the distance ρ in the short side direction is smaller than the effect of increasing the number of variations of the geometric block division pattern by specifying the distance ρ in the long side direction.
[0158] As shown in FIG. 13, the division boundary line based on the geometric block division can be designed as a perpendicular line to the elevation angle φ that passes through the division boundary line and a point at the predetermined distance (predetermined position) ρ defined as described above.
[0159] This modified example 3 can be combined with the above modified example 2, and for angles that are 180 degrees apart in elevation angle φ, the perpendicular line to the above distance ρ is the same, that is, the division boundary line is the same.
[0160] Therefore, for example, the use of elevation angles φ in the range of 0 degrees or more and less than 180 degrees and elevation angles φ in the range of 180 degrees or more and less than 360 degrees can be restricted with respect to the distance ρ in the left-right or up-down direction, respectively, with the center point being linearly symmetrical, as shown in Figure 13, thereby making it possible to avoid duplication of geometric block division patterns.
[0161] The combination of the range of the elevation angle φ and the distance ρ in the horizontal (left-right) and vertical (up-down) directions will show the same variations of the geometric block division pattern even if they are reversed, so the implementation may be freely changed according to the designer's intention.
[0162] [Change Example 4: Change in the method of specifying the elevation angle φ and position (distance) ρ, reducing variations] 14 and 15, a fourth modified example of the present invention will be described below focusing on differences from the first embodiment and the first to third modified examples. Fig. 14 is a diagram showing a modified example relating to the method of defining the elevation angle φ and the distance ρ.
[0163] In the above-mentioned modified example 2, a method for determining the elevation angle φ using the block aspect ratio was explained, and in the above-mentioned modified example 3, a method for determining the distance (position) ρ using a specified distance (specified position) in the horizontal and vertical directions from the center point was explained.
[0164] In this modified example, in order to simplify the implementation of the elevation angle φ and the distance (position) ρ, as shown in Figures 14(a) to (c), the line that passes through a point at a predetermined distance (position) ρ and is indicated by the elevation angle φ may be defined as the division boundary line itself and implemented.
[0165] Furthermore, in order to reduce the geometric block division patterns, the variations in distance ρ and the variations in elevation angle φ may be reduced as shown in FIGS. 14(a) to (c).
[0166] Specifically, in FIGS. 14(a) to (c), the variations of the distance ρ shown in the above-mentioned modification example 3 are limited to two types: 0 / 8 and 2 / 8 times the width or height of the target block.
[0167] In addition, in the examples of Figures 14(a) to 14(c), the possible values of the variations in the elevation angle φ are limited according to the position where the division boundary line passes and the block aspect ratio of the target block. As a result, in the examples of Figures 14(a) to 14(c), the variations in the geometric block division pattern are limited to a total of 16 ways.
[0168] (Method of identifying geometric block division patterns) Hereinafter, a method for identifying a geometric block division pattern will be described with reference to Fig. 15. Fig. 15 is a diagram showing an example of an index table showing combinations of elevation angles φ and distances (positions) ρ that define the above-described geometric block division patterns.
[0169] In FIG. 15, the elevation angle φ and distance ρ that define the geometric block partition pattern are associated with each other by "angle#idx" and "distance#idx", and further, the combination of these is defined by "partition#idx".
[0170] For example, the elevation angle φ and distance ρ shown in the above-mentioned modified example 2 and modified example 3 are defined as integers from 0 to 23 and 0 to 3, respectively, by "angle#idx" and "distance#idx" as shown in the table of Figure 12, and by decoding "partition#idx" indicating this combination, the elevation angle φ and distance ρ are uniquely determined, and the geometric block partition pattern can be uniquely identified.
[0171] The image encoding device 100 and the image decoding device 200 each have an index table indicating such geometric block partitioning patterns, and the image encoding device 100 transmits to the image decoding device 200 a "partition#idx" corresponding to the geometric block partitioning pattern that has the smallest encoding cost when geometric block partitioning is enabled, and the geometric block partitioning unit 241A22 of the image decoding device 200 decodes this "partition#idx".
[0172] [Modification example 5: Controlling the decoding method of "partition#idx" according to the size or aspect ratio of the target block] Hereinafter, the fifth modified example of the present invention will be described with reference to Fig. 16, focusing on the differences from the first embodiment and the first to fourth modified examples. Fig. 16 is a diagram for explaining an example of control of the decoding method of "partition#idx" according to the block size or block aspect ratio of the target block.
[0173] In the above example, as an example of a method for identifying a geometric block partitioning pattern, a decoding method of "partition#idx" that does not depend on the block size or aspect ratio of the target block (a method for identifying a geometric block partitioning pattern using a fixed index table) was shown.
[0174] On the other hand, in this modified example, a method of controlling the decoding method of "partition#idx" in accordance with the block size or aspect ratio of the current block and further improving the coding efficiency can be considered as follows.
[0175] When focusing on the block size or aspect ratio of the target block, as shown in FIG. 16, even if the number of variations of the partition boundary line is the same, the density of the partition boundary line relative to the area of the block may differ between a relatively small block such as an 8x8 pixel block and a relatively large block such as a 32x32 pixel block.
[0176] Similarly, as shown in FIG. 16, the density of the division boundary lines may differ between horizontal and vertical directions of a landscape block and a portrait block.
[0177] In such a case, for example, the index table used to identify the elevation angle φ and the distance ρ from "partition_idx" may be changed depending on the block size or block aspect ratio of the target block.
[0178] For example, for target blocks with small block sizes, an index table with a small number of geometric block partitioning patterns, i.e., a small maximum value of "partition#idx", is used, and for target blocks with large block sizes, an index table with a large number of geometric block partitioning patterns, i.e., a large maximum value of "partition#idx", is used, thereby making it possible to improve coding efficiency compared to the above example in which a fixed index table is used.
[0179] Furthermore, the correlation between the block size and the number of geometric block division patterns (proportional relationship between block size and the number of geometric block division patterns) may be reversed.
[0180] In other words, for target blocks with small block sizes, an index table with a large number of geometric block partition patterns, i.e., a large maximum value of "partition#idx", may be used, and for target blocks with large block sizes, an index table with a small number of geometric block partition patterns, i.e., a small maximum value of "partition#idx", may be used.
[0181] When the block size of the target block and the number of geometric block division patterns are in a proportional relationship, the density of the division boundary lines can be made uniform even if the block sizes of the target blocks are different.
[0182] Therefore, it is expected that the probability of aligning the division boundary line generated by the geometric block division with respect to the object boundary occurring within the target block can be made uniform for each block size.
[0183] On the other hand, when the block size of the target block and the number of geometric block division patterns are inversely proportional to each other, the above-mentioned effect cannot be expected, but it is possible to expect an effect of further increasing the probability of aligning the division boundary line with the object boundary, limited to small block sizes.
[0184] Generally, in natural images, areas where object boundaries run in complex directions (appear in multiple arbitrary directions) are often coded using small blocks, while areas where object boundaries run in a direction close to horizontal or vertical are often coded using large blocks because the error with rectangular block division is small.
[0185] Therefore, based on this idea, by increasing the number of geometric block division patterns for small blocks, it is expected that the probability of aligning the division boundary line with the object boundary will be increased, and as a result, the prediction error can be reduced.
[0186] Similarly, for a landscape block, the number of geometric block division patterns may be increased in the horizontal direction, and conversely, the number of geometric block division patterns may be decreased in the vertical direction.
[0187] On the other hand, for vertically elongated blocks, the number of geometric block division patterns may be increased in the horizontal direction, and conversely, the number of geometric block division patterns may be decreased in the vertical direction.
[0188] Furthermore, the correlation between the size of the block aspect ratio and the number of geometric block division patterns may be reversed, as explained above in relation to the size of the block size and the number of geometric block division patterns.
[0189] In other words, for a landscape block, the number of geometric block division patterns may be reduced in the horizontal direction, and conversely, the number of geometric block division patterns may be increased in the vertical direction.
[0190] On the other hand, for vertically elongated blocks, the number of geometric block division patterns may be reduced in the horizontal direction, and conversely, the number of geometric block division patterns may be increased in the vertical direction.
[0191] The reason for reversing the correlation in this way is the same as the idea shown in the explanation of the correlation between the block size and the number of geometric block divisions, and therefore the explanation will be omitted.
[0192] Incidentally, the method of controlling the number of geometric block division patterns according to the block aspect ratio can be realized by changing the index table to be used, similarly to the above-mentioned case.
[0193] Another possible implementation example is to limit the range of "partition#idx" values that can be decoded on the index table depending on the block size or aspect ratio of the target block, while the index table itself is fixed.
[0194] This does not contribute to improving the coding efficiency because the code length state is not shortened, but from the perspective of the image coding device 100, it can contribute to speeding up the coding process because it makes it possible to omit the process up to cost calculation for unnecessary geometric block division patterns.
[0195] <Second embodiment> Hereinafter, the second embodiment of the present invention will be described with reference to FIGS. 17 to 22, focusing on the differences from the above-described first embodiment.
[0196] (Motion information availability check process) The motion information availability confirmation process in this embodiment will be described below.
[0197] As described above, the motion information availability confirmation process is the first processing step constituting the merge list construction process.
[0198] Specifically, the motion information availability confirmation process confirms whether or not motion information is present in a reference block that is spatially or temporally adjacent to the target block. Here, the method of confirming motion information is omitted because the known method described in Non-Patent Document 1 can be used in this embodiment.
[0199] (Registering movement information to the merge list and pruning processing) Hereinafter, the process of registering and pruning motion information in the merge list according to this embodiment will be described with reference to FIG.
[0200] FIG. 17 is a flowchart showing an example of a process of registering and pruning motion information in a merge list according to this embodiment.
[0201] As shown in FIG. 17, the process of registering and pruning motion information in a merge list according to this embodiment may be configured by a total of five processes of registering and pruning motion information, similar to Non-Patent Document 1.
[0202] Specifically, the motion information registration and pruning process may include spatial merging in step S14-1, temporal merging in step S14-2, history merging in step S14-3, pairwise average merging in step S14-4, and zero merging in step S14-5. Details of each process will be described later.
[0203] 18 is a diagram showing an example of a merge list constructed as a result of the process of registering and pruning motion information in the merge list. As described above, the merge list is a list in which motion information corresponding to a merge index is registered.
[0204] Here, the maximum number of merge indexes is set to 5 in Non-Patent Document 1, but may be freely set according to the designer's intention.
[0205] Also, mvL0, mvL1, RefIdxL0, and RefIdxL1 in FIG. 18 indicate the motion vectors and reference image indexes of the reference image lists L0 and L1, respectively.
[0206] Here, the reference image lists L0 and L1 indicate lists in which reference frames are registered, and the reference frames are identified by RefIdx.
[0207] In addition, although the merge list shown in FIG. 18 shows motion vectors and reference image indexes for both L0 and L1, some reference blocks may be unidirectionally predicted.
[0208] In this case, one (uni-predictive) motion vector and one reference image index are registered in the list. Note that, before each process from step S15-1 to step S15-4, if it is confirmed that there is no motion information in the reference block by the above-mentioned motion information availability confirmation process, each process is skipped.
[0209] (Spatial Merge) FIG. 19 is a diagram for explaining the spatial merge.
[0210] Spatial merging is a technique for inheriting mv, RefIdx, and hpelIfIdx from adjacent blocks that exist in the same frame as the target block.
[0211] Specifically, the merge list constructor 241A23 is configured to inherit the above-mentioned mv, Refidx, and hpelfIdx from adjacent blocks in the positional relationship shown in Fig. 15, and register them in the merge list. The processing order may be B1->A1->B0->A0->B2 as shown in Fig. 19, similar to Non-Patent Document 1.
[0212] (Motion information pruning process) The process of registering motion information in the merge list may be performed in the processing order described above, but a motion information pruning process may be implemented as in non-patent document 1 to prevent motion information that is identical to motion information that has already been registered in the merge list from being registered.
[0213] The purpose of implementing the motion information pruning process is to increase the variety of motion information registered in the merge list, and from the perspective of the image encoding device 100, the purpose is to be able to select the motion information that has the smallest specified cost according to the image characteristics.
[0214] On the other hand, in the image decoding device 200, a prediction signal with high prediction accuracy can be generated using the motion information selected by the image encoding device 100, and as a result, an improvement in encoding performance can be expected.
[0215] In the motion information pruning process for spatial merge, for example, when motion information corresponding to B1 is registered in the merge list, the identity of the registered motion information corresponding to B1 is confirmed during the registration process of motion information corresponding to A1 in the next processing order. Here, confirmation of the identity of the motion information is a comparison of whether mv and RefIdx are the same. Here, if the identity is confirmed, the motion information corresponding to A1 is configured not to be registered in the merge list.
[0216] The motion information corresponding to B0 is compared with the motion information corresponding to B1, the motion information corresponding to A0 is compared with the motion information corresponding to A1, and the motion information corresponding to B2 is compared with the motion information corresponding to B1 and A1. If there is no motion information corresponding to the position to be compared, the confirmation of identity may be skipped and the corresponding motion information may be registered.
[0217] In addition, in Non-Patent Document 1, the maximum number of merge indexes that can be registered by spatial merging is set to 4, and for adjacent block B2, if four pieces of motion information have already been registered in the merge list by the previous spatial merging process, the process for adjacent block B2 is skipped. In this embodiment, similar to Non-Patent Document 1, the process for adjacent block B2 may be determined based on the number of existing registered motion information.
[0218] (Time Merge) FIG. 20 is a diagram for explaining the time merge.
[0219] Temporal merge is a technique in which a block that exists in a different frame from the target block but is located to the lower left (C1 in Figure 17) or in the same position (C0 in Figure 17) is identified as a reference block and the motion vector and reference image index are inherited.
[0220] In Non-Patent Document 1, the maximum number of motion information that can be registered in a merge list by a temporal merge list is 1, and in this embodiment, a similar value may be used, or it may be changed according to the designer's intention.
[0221] Moreover, the motion vectors inherited in the temporal merge are scaled, as shown in FIG.
[0222] Specifically, as shown in FIG. 21, mv of the reference block is scaled as follows based on the distance tb between the reference frame of the target block and the frame in which the target frame is located and the distance td between the reference frame of the reference block and the reference frame of the reference block:
[0223] mv' = (td / tb) × mv In the temporal merge, this scaled mv' is registered in the merge list as the motion vector corresponding to the merge index.
[0224] (History Merge) FIG. 22 is a diagram for explaining the history merge.
[0225] History merge is a technique in which motion information of inter-prediction blocks that have been coded earlier than the target block is recorded separately in a recording area called a history merge table, and if the number of motion information registered in the merge list has not reached the maximum number at the end of the above-mentioned spatial merge and temporal merge processes, the motion information registered in the history merge table is sequentially registered in the merge list.
[0226] FIG. 22 is a diagram showing an example of a process in which motion information is registered in a merge list using a history merge table.
[0227] The motion information registered in this history merge table is managed by a history merge index, and the maximum number of registrations is set to 6 in non-patent document 1, but a similar value may be used or it may be changed according to the designer's intention.
[0228] Furthermore, in Non-Patent Document 1, the registration process of motion information in the history merge table employs FIFO processing. In other words, when the number of registered motion information in the history merge table reaches the maximum number, the motion information linked to the last registered history merge index is deleted, and motion information linked to new history merge indexes is registered in sequence.
[0229] As in Non-Patent Document 1, the motion information registered in the history merge table may be initialized (all motion information may be deleted from the history merge table) when the current block crosses a CTU.
[0230] (pairwise average merging) Pairwise average merging is a technique for generating new motion information using motion information associated with two pairs of merge indexes already registered in a merge list, and registering the new motion information in the merge list.
[0231] As for the two sets of merge indexes used for pairwise average merging, as in Non-Patent Document 1, the 0th and 1st merge indexes registered in the merge list may be used as fixed, or the designer may change them to another combination of two sets.
[0232] In pairwise average merging, new motion information is generated by averaging the motion information associated with two pairs of merge indexes already registered in the merge list.
[0233] Specifically, for example, when there are two motion vectors corresponding to two sets of merge indexes (i.e., in the case of bi-prediction), the pair-wise average merge motion vectors mvL0Avg / mvL1Avg are calculated as follows using the motion vectors mvL0P0 / mvL0P1 and mvL1P0 / mvL1P1 in the L0 and L1 directions, respectively:
[0234] mvL0Avg=(mvL0P0+mvL0P1) / 2 mvL1Avg=(mvL1P0+mvL1P1) / 2 Here, if either mvL0P0 and mvL1P0 or mvL0P1 and mvL1P1 do not exist, the non-existent vector is treated as a zero vector and calculated as described above.
[0235] At this time, Non-Patent Document 1 specifies that the reference image index RefIdxL0P0 / RefIdxL0P1 associated with the merge index P0 should always be used as the reference image index associated with the pairwise average merge index.
[0236] (Zero Merge) The zero merge is a process of adding a zero vector to the merge list when the number of registered motion information in the merge list has not reached the maximum number at the time when the above-mentioned pairwise average merge process is completed. Since the known method described in Non-Patent Document 1 can be used in this embodiment, the description of the registration method is omitted.
[0237] (Motion information decoding from merge list) The merge list construction unit 241A23 is configured to decode the motion information from the merge list constructed after the above-mentioned motion information registration and pruning process is completed.
[0238] For example, the merge list constructing unit 241A23 is configured to select, from the merge list, motion information corresponding to the merge index transmitted from the merge list constructing unit 111A23, and decode the selected motion information.
[0239] On the other hand, the method of selecting a merge index in the merge list constructor 111A23 is not shown, but is configured to transmit motion information that results in the smallest coding cost to the merge list constructor 241A23.
[0240] Here, the merge index that is registered earlier in the merge list, i.e., the smaller the index number, the shorter the code length (the lower the coding cost), so the merge list construction unit 111A23 tends to select the merge index with the smaller index number.
[0241] Here, in the merge list construction unit 241A23, when the geometric block partition merge is disabled, one merge index is decoded for the target block, but when the geometric block merge is enabled, two regions m / n exist for the target block that straddle the geometric block partition boundary, so two different merge indexes m / n are decoded.
[0242] For example, by decoding such a merge index m / n as follows, even if the merge index for m / n transmitted from the merge list construction unit 111A2 is the same, it is possible to assign a different merge index to m / n.
[0243] m=merge#idx0[xCb][yCb] n=merge#idx1[xCb][yCb]+(merge#idx1[xCb][yCb]>=m)?1:0 Here, xCb, yCb are position information of the pixel value located at the top left corner of the target block.
[0244] Note that merge#idx1 does not need to be decoded if the maximum number of merge candidates for geometry block partition merge is 2 or less. This is because, if the maximum number of merge candidates for geometry block partition merge is 2 or less, the merge index in the merge list corresponding to merge#idx1 is identified as another merge index different from the merge index in the merge list selected by merge#idx0.
[0245] [Modification Example 6: Control of merge list construction when geometric block division merge is enabled] Hereinafter, the sixth modified example of the present invention will be described with reference to Fig. 23 and Fig. 24, focusing on the differences from the second embodiment. Specifically, the control of the merge list construction when the geometric block division merge according to this modified example is enabled will be described with reference to Fig. 23 and Fig. 24.
[0246] 23 and 24 are diagrams showing an example of a geometric block division pattern in a target block when the geometric block division merge is enabled, and an example of a positional relationship between the spatial merge and the temporal merge for the target block.
[0247] If the target block has the geometric block partitioning pattern shown in Figure 23, the adjacent blocks with the closest motion information for the two regions m / n across the block partition boundary are B2 for m and B1 / A1 / A0 / B0 / C1 for n.
[0248] Furthermore, when the target block has the geometric block partitioning pattern shown in Figure 21, the adjacent blocks with the closest motion information for the two regions m / n across the partition boundary are C1 for m and B1 / A0 / A1 / B0 / B2 for n.
[0249] When geometric block division is effective, it is expected that prediction accuracy can be improved by making it easier to register the motion information of the adjacent block that is closest to the above m / n in the merge list.
[0250] In addition, from the perspective of improving prediction accuracy, lowering the registration priority of motion information at similar spatial positions, such as B1 / B0 and A1 / A0, in the merge list and adding motion information at different spatial positions, such as B2 and C1, to the merge list can be expected to further improve prediction accuracy.
[0251] In addition, as described above, if the motion information of the nearest neighboring block is registered in the merge list as a merge index with a small index number, the coding efficiency can be improved.
[0252] In the above-described configuration, for example, when the motion information for which one wishes to change the registration priority in the merge list is the motion information of B0 and A0, even if the motion information usability confirmation process confirms that motion information exists at these positions, the motion information is treated as unavailable, thereby increasing the probability of registering motion information corresponding to B2 and C1 following B0 and A0 in the merge list.
[0253] [Modification Example 7: How to change the registration priority of other movement information] Modification 7 of the present invention will be described below, focusing on the differences from the above-mentioned second embodiment and Modification 6. In the above-mentioned Modification 6, the process of changing the registration priority of motion information when geometric block division merging is enabled is performed by treating motion information at a predetermined position in the spatial merging process, for example, motion information of B0 and A0, as unavailable even if motion information exists or if it is confirmed that the motion information is not identical to already registered motion information, thereby indirectly increasing the probability (priority) of registration of subsequent spatially or temporally adjacent motion information, for example, motion information of B2 or C1 (C0).
[0254] Meanwhile, a method for changing the registration priority of other motion information will be described below. For example, the order of registration of motion information may be changed directly by decomposing the processing order of spatial merge in step S14-1 and temporal merge in step S14-2 of the merge list shown in Fig. 17. For example, when the geometric block division merge is applied, the motion information C1 or C0 (hereinafter, referred to as Col) registered in the spatial merge and the temporal merge is executed before B0 and A0 during the spatial merge process.
[0255] For example, the following two implementation examples are possible.
[0256] Implementation example 1: A method of branching the merge list into a normal merge and a merge list depending on whether or not geometric block split merging is applied. if ( !merge#geo#flag ) i = 0 if( availableFlagB1 ) mergeCandList[ i++ ] = B1 if( availableFlagA1 ) mergeCandList[ i++ ] = A1 if( availableFlagB0 ) mergeCandList[ i++ ] = B0 if( availableFlagA0 ) mergeCandList[ i++ ] = A0 if( availableFlagB2 ) mergeCandList[ i++ ] = B2 if( availableFlagC1 ) mergeCandList[ i++ ] = Col else i = 0 if( availableFlagB1 ) mergeCandList[ i++ ] = B1 if( availableFlagA1 ) mergeCandList[ i++ ] = A1 if( availableFlagB2 ) mergeCandList[ i++ ] = B2 if( availableFlagC1 mergeCandList[ i++ ] = Col if( availableFlagB0 ) mergeCandList[ i++ ] = B0 if( availableFlagA0 ) mergeCandList[ i++ ] = A0 Here, merge_geo_flag is an internal parameter that holds the result of determining whether or not geometric block division merging is applied. When this parameter is 0, it indicates that geometric block division merging is not applied, and when it is 1, it indicates that it is applied.
[0257] Also, availableFlag is an internal parameter that holds the result of the motion information availability check process for each spatial merge candidate and temporal merge candidate. When this parameter is 0, motion information does not exist, and when it is 1, motion information exists.
[0258] Also, mergeCandList indicates the registration process of motion information at each position. In the first if statement, merge#geo#flag determines whether or not geometric block division merge is applied. If it is determined that it is not applied, the process enters the same merge list construction process as for normal merge. If it is determined that it is applied, the process enters the merge list construction process for geometric block division merge, which replaces the normal merge with the process of checking whether motion information is available and the process of registering and pruning motion information.
[0259] Implementation example 2: A method of partially sharing the merge list construction between normal merge and geometric block split merge i = 0 if( availableFlagB1 ) mergeCandList[ i++ ] = B1 if( availableFlagA1 ) mergeCandList[ i++ ] = A1 if( availableFlagB0 && !merge#geo#flag ) mergeCandList[ i++ ] = B0 if( availableFlagA0 && !merge#geo#flag) mergeCandList[ i++ ] = A0 if( availableFlagB2 ) mergeCandList[ i++ ] = B2 if( availableFlagC1 ) mergeCandList[ i++ ] = Col if( availableFlagB0 && merge#geo#flag ) mergeCandList[ i++ ] = B0 if( availableFlagA0 && merge#geo#flag) mergeCandList[ i++ ] = A0 Although this implementation example 2 increases the total number of processing stages compared to implementation example 1, it has the advantage that it does not require the resources of a completely independent merge list construction processing circuit as in implementation example 1 because the merge list for geometric block partition merging is partially shared with the normal merge list.
[0260] In the above configuration, the registration priority of B2 and Col is higher than that of B0 and A0, but the registration priority of B2 and Col may be higher than that of B1 and A1. As another configuration example, for example, either B2 or Col may be higher in priority than that of B0 and A0, or higher in priority than that of B1 and A1.
[0261] In addition, when B2 is registered in the merge list before B1, A1, B0, and A0, the above-described confirmation of identity (comparison condition) of B2 with the motion information corresponding to B1, A1, B0, and A may be eliminated. On the other hand, when the motion information corresponding to B1 and A1 is registered, confirmation of identity with the motion information corresponding to B2 may be added.
[0262] Furthermore, in the above, a method for changing the registration priority of motion information while the merge list is being constructed has been described. However, after the merge list is constructed, the registration priority may be changed by the method described below.
[0263] Specifically, when motion information is registered in the merge list, which merge process and which position the motion information corresponding to is registered are stored as internal parameters until the motion vector is decoded (selected). As a result, after the merge list is constructed, the order of the merge index numbers of the motion information for a specific merge process and a specific position, for example, the motion information registered by the spatial merges B0 and A0, can be changed with the merge index numbers of the temporal merge Col, so that the temporal merge Col can be given a higher priority than the spatial merges B0 and A0 (association with a smaller merge index number can be realized). Using a similar method, the above-mentioned example of changing the order of registration priority of indirect or direct motion information may be realized.
[0264] As described above, as a secondary effect of changing the registration priority of motion information after the merge list construction process, the merge list construction process when the geometric block division merge is enabled can be made common with the merge list construction process for normal merging.
[0265] Specifically, the processing order of each merge process in the motion availability confirmation process in the merge list construction process in normal merge and geometric block division merge, and in the motion information registration and pruning process, can be standardized.
[0266] [Modification Example 8: Changing the merge list construction order according to block size] The eighth modified example of the present invention will be described below, focusing on the differences from the second embodiment and the sixth and seventh modified examples.
[0267] In the above-described sixth and seventh modifications, the criterion for determining whether or not to change the registration priority of motion information is determined based on whether or not geometric block division and merging is applied.
[0268] On the other hand, in this modification, the determination criterion may be based on a geometric block division pattern, or may be based on the block size and aspect ratio of the target block.
[0269] According to this configuration, by checking even the geometric block division pattern and changing the registration priority of the motion information in the merge list, it is possible to expect a further improvement in prediction accuracy.
[0270] (Method of selecting (decoding) two different pieces of motion information) A method of selecting (decoding) two different pieces of motion information when geometric block division merging is enabled according to this embodiment will be described below.
[0271] As described above, when the geometric block partition merge is enabled, the target block has two different pieces of motion information across the partition boundary. In addition, as described above, the two different pieces of motion information are selected by the encoding device 100 from the above-mentioned merge list with the smallest coding cost, and the merge index numbers of the merge list are specified using two merge indexes merge#geo#idx0 and merge#geo#idx1 for each partition area m / n, and are transmitted to the image decoding device 200, where the corresponding motion information is decoded.
[0272] On the other hand, if two pieces of motion information are registered for a specified merge index number, specifically if the adjacent blocks registered in the above-mentioned merge process are bi-predictive (having motion information in both L0 and L1), it is possible that the two pieces of motion information are registered for one merge index, so one of them must be selected.
[0273] An example of the selection method will be described below.
[0274] For example, one configuration example is a method of setting the priority of motion information to be decoded in advance in the order of merge index numbers in the merge list. Specifically, in the order of processing of merge index numbers, for example, even numbers 0, 2, and 4 give priority to decoding motion information registered in merge index L0, and odd numbers 1, 3, and 5 give priority to decoding motion information registered in L1.
[0275] In the above configuration example, if there is no motion information of L0 or L1 corresponding to each number order, the existing motion information may be decoded. Also, L0 and L1 for even and odd numbers may be reversed.
[0276] Other configuration examples are also shown below. For example, for a target frame including a target block, the distances of reference frames indicated by reference indexes corresponding to L0 and L1 may be compared, and motion information including a reference frame having a closer distance may be preferentially decoded.
[0277] As described above, when geometric block partition merge is enabled, if two different motion information are registered in the merge list for the merge index of the partitioned area, the motion information including the reference frame that is close to the target frame is preferentially decoded, which is expected to reduce prediction errors.
[0278] In addition, when the distance difference between the reference frame and the target frame for two different motion information is the same, as described above, a priority may be set in advance for the merge index numbers of the merge list, i.e., even numbers 0, 2, and 4 give priority to the motion information registered in L0, and odd numbers 1, 3, and 5 give priority to the motion information registered in L1.
[0279] Depending on the picture order count (POC) of the target frame, the distance difference between the target frame and the reference frames included in L0 and L1 may be the same, so the priority may be determined as described above.
[0280] Alternatively, the merge index number of the merge list may select the opposite list to the one selected by the previous index number. For example, when L0 is selected by merge index 0, the first merge index of the merge list may select L1, which is the opposite list. Note that when the frame distance difference is the same at merge index 0 of the merge list, L0 may be referenced.
[0281] In the above description, a configuration example has been shown in which motion information for a frame close to the target frame and a reference frame is preferentially decoded, but conversely, motion information for a frame farther from the target frame and a reference frame may be decoded.
[0282] Furthermore, the decoding priority of the motion information may be changed for each of the two merge indexes merge_geo_idx0 and merge_geo_idx1 for each divided area m / n, such that the motion information for the closer distance and the farther distance are decoded.
[0283] (Prediction signal generation process for geometric block division merging) A prediction signal generation processing method when geometric block division merging is enabled according to this embodiment will be described below.
[0284] As mentioned above, when the geometric block partition merge is enabled, the target block has two different motion information across the partition boundary. In this case, the motion compensation prediction signal generated for the target block based on these two different motion vectors is weighted averaged (blended) with a weight that depends on the distance from the partition boundary, which is expected to have a smoothing effect on the pixel values on the partition boundary.
[0285] For example, the image encoding device 100 and the image decoding device 200 have one weight table (blending table) for one geometric block partitioning pattern, so that if the geometric block partitioning pattern can be identified, a blending process suitable for the geometric block partitioning pattern can be realized.
[0286] According to the above-described embodiment, by applying geometric block partition merging to a target block that has been partitioned into rectangles, an appropriate block partition shape can be selected for object boundaries that appear in any direction, thereby achieving an effect of improving coding performance by reducing prediction errors and an effect of improving subjective image quality by selecting appropriate block partition boundaries for object boundaries.
[0287] In addition, the merge list construction unit 111A2 may be configured to treat the above-mentioned motion information as unusable during the motion information usability confirmation process, regardless of whether motion information exists for a specified merge process, depending on whether geometric block division merging is applied or not.
[0288] In addition, depending on whether or not geometric block partition merging is applied, the merge list construction unit 111A2 may be configured to treat motion information for a specified merge process as a pruning target during the motion information registration / pruning process, regardless of its identity with motion information already registered in the merge list, i.e., not to newly register it in the merge list.
[0289] 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).
[0290] 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. [Explanation of symbols]
[0291] 10. Image processing system 100...Image encoding device 111, 241…Inter prediction section 111A…mv derivation part 111A1, 241A1…AMVP section 111A2, 241A2…Merge section 111B, 241B…mv refinement department 111C, 241C...Prediction signal generation unit 111A21, 241A21...Merge mode specification section 111A22, 241A22...Geometric block division section 111A23, 241A23…Merge list construction section 112, 242...Intra prediction section 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, A merging unit configured to apply a geometric block division merging to a target block divided into rectangles, The merging unit includes: a merge mode specification unit configured to specify whether or not the geometric block partition merge is applied; a geometric block division unit configured to identify a geometric block division pattern and further divide the rectangularly divided target block into geometric blocks using the identified geometric block division pattern; a merge list construction unit configured to construct a merge list for the target block divided into geometric blocks and decode motion information, The merge mode specification unit is configured to add a determination condition for specifying whether or not the geometric block division merge is applicable to a decoding necessity determination condition of a normal merge flag that specifies whether or not a normal merge is applied, The determination condition for specifying whether or not the geometric block division and merging is applicable includes a determination condition based on an upper limit of a height and a width of the target block, An image decoding device characterized in that the judgment condition based on the upper limit of the height and width of the target block is such that if the height and width of the target block are equal to or greater than the upper limit, it is judged that the geometric partition merge cannot be applied.
2. The image decoding device according to claim 1 , wherein the merge mode specification unit is configured to specify the merge mode of the current block as the geometric block partition merge when a normal merge is not applied.
3. The image decoding device according to claim 1 or 2, characterized in that the judgment condition based on the upper limit of the height and width of the target block includes a condition that prohibits the application of the geometric block division merging to the target block if the upper limit of the block size of the target block is 128 pixels or more.
4. 1. An image decoding method comprising a step of applying geometric block division merging to a target block divided into rectangles, The process comprises: determining whether or not the geometric block partition merge is applied; identifying a geometric block division pattern, and further dividing the rectangularly divided target block into geometric blocks using the identified geometric block division pattern; and constructing a merge list for the target block divided into geometric blocks and decoding motion information. In the decoding necessity determination condition of the normal merge flag that specifies whether or not the normal merge is applied, a determination condition that specifies whether or not the geometric block division merge is applicable is added; The determination condition for specifying whether or not the geometric block division and merging is applicable includes a determination condition based on an upper limit of a height and a width of the target block, An image decoding method characterized in that the judgment condition based on the upper limit of the height and width of the target block is such that if the height and width of the target block are equal to or greater than the upper limit, it is judged that the geometric partition merge cannot be applied.
5. A program for causing a computer to function as an image decoding device, The image decoding device includes a merging unit configured to apply a geometric block partition merging to a target block partitioned into rectangles, The merging unit includes: a merge mode specification unit configured to specify whether or not the geometric block partition merge is applied; a geometric block division unit configured to identify a geometric block division pattern and further divide the rectangularly divided target block into geometric blocks using the identified geometric block division pattern; a merge list construction unit configured to construct a merge list for the target block divided into geometric blocks and decode motion information, The merge mode specification unit is configured to add a determination condition for specifying whether or not the geometric block division merge is applicable to a decoding necessity determination condition of a normal merge flag that specifies whether or not a normal merge is applied, The determination condition for specifying whether or not the geometric block division and merging is applicable includes a determination condition based on an upper limit of a height and a width of the target block, A program characterized in that the judgment condition based on the upper limit of the height and width of the target block is such that if the height and width of the target block are equal to or greater than the upper limit, it is judged that the geometric division merge cannot be applied.
