Image decoding device, image decoding method, and program

The image decoding device and method address the limitations of existing technologies by using corrected block vectors and advanced prediction techniques, enhancing encoding efficiency and accuracy in image decoding.

WO2024214435A1PCT designated stage expired Publication Date: 2024-10-17KDDI CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/008384
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-13
Filing Date
2024-03-05
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

Current image decoding technologies, such as IBC and IntraTMP, have limited encoding efficiency due to restricted block vector signaling and reliance on block copying, which restricts the improvement of encoding efficiency.

Method used

An image decoding device and method that includes a decoding unit, inverse quantization, inverse transformation, and intra-frame prediction units to generate predicted pixels using corrected block vectors, improving encoding efficiency by allowing multiple block vectors and enhanced prediction methods like IBC BVP, IBC merge, and IBC GPM.

Benefits of technology

The solution enhances encoding efficiency by deriving multiple block vectors and applying advanced prediction methods, leading to improved accuracy and reduced processing load in image decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024008384_17102024_PF_FP_ABST
    Figure JP2024008384_17102024_PF_FP_ABST
Patent Text Reader

Abstract

An image decoding device 200 according to the present invention comprises: a first intra-frame prediction unit 204 that generates a first prediction pixel on the basis of a decoded pixel and control information; a second intra-frame prediction unit 205 that generates a second prediction pixel from one or more corrected block vectors for a decoding target block on the basis of the decoded pixel and the control information; a storage unit 208 that stores therein decoded pixels; an inter-frame prediction unit 206 that generates a third prediction pixel on the basis of the stored decoded pixels and the control information; and an adder 207 that adds the prediction residual and the first to third prediction pixels to obtain a decoded pixel.
Need to check novelty before this filing date? Find Prior Art

Description

Image decoding device, image decoding method, and program

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

[0002] Non-Patent Documents 1 and 2 disclose intra block copy (IBC) and intra template matching prediction (IntraTMP).

[0003] IBC and IntraTMP refer to pixels from the decoded pixel area of ​​the frame to be decoded and use them as predicted pixels for the block to be decoded.

[0004] The difference between IBC and IntraTMP is that IBC explicitly signals control signals for decoding block vectors representing the coordinates to be referenced, whereas IntraTMP does not signal control signals for decoding block vectors by searching for similar areas using nearby pixels as templates.

[0005] Although there are differences in the signaling of block vectors, in both cases, pixels are used as prediction pixels by copying them from a reference block indicated by the block vector of the block to be decoded, as shown in FIG.

[0006] ITU-T H.266 / VVCM.Coban et al., “Algorithm description of Enhanced Compression Model 7 (ECM 7)”, JVET-AB2025, 2022

[0007] However, in both Non-Patent Documents 1 and 2, the number of block vectors is limited to one, so there is room for improvement in terms of coding efficiency. Also, in Non-Patent Documents 1 and 2, there is room for improvement in terms of coding efficiency, because blocks are simply copied.

[0008] Therefore, the present invention has been made in consideration of the above-mentioned problems, and an object of the present invention is to provide an image decoding device, an image decoding method, and a program with high coding efficiency.

[0009] a first intra-frame prediction unit that generates a first predicted pixel based on decoded pixels and the control information; a second intra-frame prediction unit that generates a second predicted pixel from one or more corrected block vectors for a block to be decoded based on the decoded pixels and the control information; a storage unit that accumulates the decoded pixels; an inter-frame prediction unit that generates a third predicted pixel based on the accumulated decoded pixels and the control information; and an adder that adds the prediction residual and the first to third predicted pixels to obtain the decoded pixel.

[0010] A second feature of the present invention is summarized as an image decoding method comprising the steps of: decoding control information and quantized values; inversely quantizing the quantized values ​​to obtain transform coefficients; inversely transforming the transform coefficients to obtain prediction residuals; generating a first predicted pixel based on decoded pixels and the control information; generating a second predicted pixel from one or more corrected block vectors for a block to be decoded based on the decoded pixels and the control information; accumulating the decoded pixels; generating a third predicted pixel based on the accumulated decoded pixels and the control information; and adding the prediction residual and the first to third predicted pixels to obtain the decoded pixel.

[0011] a second intra-frame prediction unit that generates a second predicted pixel from one or more corrected block vectors for a block to be decoded, based on the decoded pixels and the control information; a storage unit that accumulates the decoded pixels; an inter-frame prediction unit that generates a third predicted pixel based on the accumulated decoded pixels and the control information; and an adder that adds the prediction residual and the first to third predicted pixels to obtain the decoded pixel.

[0012] According to the present invention, it is possible to provide an image decoding device, an image decoding method, and a program with high coding efficiency.

[0013] FIG. 1 is a diagram illustrating an example of functional blocks of an image decoding device 200 according to an embodiment. FIG. 2 is a diagram illustrating IBC and IntraTMP. FIG. 3 is a diagram illustrating an example of functional blocks of a second intra-frame prediction unit 205 of an image decoding device 200 according to an embodiment. FIG. 4 is a diagram illustrating an example of a BV derivation method in the BV derivation unit 205A of the second intra-frame prediction unit 205 of an image decoding device 200 according to an embodiment. FIG. 5 is a diagram illustrating an example of a BV derivation method in the BV derivation unit 205A of the second intra-frame prediction unit 205 of an image decoding device 200 according to an embodiment. FIG. 6 is a diagram illustrating an example of a BV derivation method in the BV derivation unit 205A of the second intra-frame prediction unit 205 of an image decoding device 200 according to an embodiment. FIG. 7 is a diagram illustrating an example of a BV derivation method in the BV derivation unit 205A of the second intra-frame prediction unit 205 of an image decoding device 200 according to an embodiment. FIG. 8 is a diagram illustrating an example of a BV derivation method in the BV derivation unit 205A of the second intra-frame prediction unit 205 of the image decoding device 200 according to an embodiment. FIG. 9 is a diagram illustrating an example of a BV derivation method using IBC GPM in the BV derivation unit 205A of the second intra-frame prediction unit 205 of the image decoding device 200 according to an embodiment. FIG. 10 is a diagram illustrating an example of a method of synthesizing predicted pixels of a block to be decoded in the second intra-frame predicted pixel generation unit 205B of the second intra-frame prediction unit 205 of the image decoding device 200 according to an embodiment. FIG. 11 is a diagram illustrating an example of a method of synthesizing predicted pixels of a block to be decoded in the second intra-frame predicted pixel generation unit 205B of the second intra-frame prediction unit 205 of the image decoding device 200 according to an embodiment. FIG. 12 is a diagram illustrating an example of a method of synthesizing predicted pixels of a block to be decoded in the second intra-frame predicted pixel generation unit 205B of the second intra-frame prediction unit 205 of the image decoding device 200 according to an embodiment. Figure 13 is a diagram illustrating an example of a method for synthesizing predicted pixels of a block to be decoded in the second intra-frame predicted pixel generation unit 205B of the second intra-frame prediction unit 205 of an image decoding device 200 according to one embodiment.FIG. 14 is a diagram illustrating an example of a method for synthesizing predicted pixels of a block to be decoded in the second intra-frame predicted pixel generation unit 205B of the second intra-frame prediction unit 205 of the image decoding device 200 according to an embodiment. FIG. 15 is a flowchart illustrating an example of a method for controlling decoding of a predetermined flag related to IBC on a sequence-by-sequence basis. FIG. 16 is a diagram illustrating examples of various flags related to IBC. FIG. 17 is a flowchart illustrating an example of a method for decoding a flag that controls whether or not bi-predictive IBC is applicable in the decoding unit 201 of the image decoding device 200 according to an embodiment. FIG. 18 is a flowchart illustrating an example of a method for decoding a flag that controls whether or not bi-predictive IBC is applicable in the decoding unit 201 of the image decoding device 200 according to an embodiment. FIG. 19 is a flowchart illustrating an example of a method for decoding pred_mode_ibc_flag, which is a flag that controls whether or not IBC is applicable in units of a block to be decoded in the decoding unit 201 of the image decoding device 200 according to an embodiment. FIG. 20 is a flowchart illustrating an example of a method for selecting an IBC mode in the decoding unit 201 of the image decoding device 200 according to an embodiment. FIG. 21 is a flowchart showing an example of a method for decoding a flag for controlling whether bi-predictive IBC merging is enabled for each block to be decoded in the decoding unit 201 of an image decoding device 200 according to an embodiment. FIG. 22 is a flowchart showing an example of a method for decoding control information related to IBC merging in the decoding unit 201 of an image decoding device 200 according to an embodiment. FIG. 23 is a flowchart showing an example of a method for decoding control information related to IBC merging in the decoding unit 201 of an image decoding device 200 according to an embodiment. FIG. 24 is a flowchart showing an example of a method for decoding a flag for controlling whether IBC BVP / merging is enabled for each block to be decoded in the decoding unit 201 of an image decoding device 200 according to an embodiment. FIG. 25 is a flowchart showing an example of a method for decoding control information related to IBC BVP / merging in the decoding unit 201 of an image decoding device 200 according to an embodiment. FIG. 26 is a flowchart showing an example of a method for decoding control information related to the above-mentioned MBVD that corrects the BV of the IBC in the decoding unit 201 of an image decoding device 200 according to an embodiment.Fig. 27 is a flowchart showing an example of a method for applying second intra-frame prediction on a block-by-block basis in the decoding unit 201 of the image decoding device 200 according to an embodiment. Fig. 28 is a flowchart showing a case where a corrected BV is applied to a BV in the decoding unit 201 of the image decoding device 200 according to an embodiment. Fig. 29 is a flowchart showing an example of a method for decoding a flag for controlling whether a bi-predictive IBC BVP is enabled on a block-to-be-decoded basis in the decoding unit 201 of the image decoding device 200 according to an embodiment. Fig. 30 is a flowchart showing an example of a method for decoding control information related to a bi-predictive IBC BVP in the decoding unit 201 of the image decoding device 200 according to an embodiment. Fig. 31 is a diagram showing an example of a method for binarizing an IBC merge index in the decoding unit 201 of the image decoding device 200 according to an embodiment.

[0014] Hereinafter, 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, etc., 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.

[0015] First Embodiment An image decoding device 200 according to this embodiment will be described below with reference to Figures 1 to 29. Figure 1 is a diagram showing an example of functional blocks of the image decoding device 200 according to this embodiment.

[0016] As shown in FIG. 1, the image decoding device 200 includes a code input unit 210, a decoding unit 201, an inverse quantization unit 202, an inverse transform unit 203, a first intra-frame prediction unit 204, a second intra-frame prediction unit 205, an inter-frame prediction unit 206, an adder 207, a storage unit 208, and an image output unit 220.

[0017] The code input unit 210 is configured to obtain code information coded by the image coding device.

[0018] The decoding unit 201 is configured to decode the control information and the quantized value from the code information input from the code input unit 210. For example, the decoding unit 201 is configured to output the control information and the quantized value by performing variable length decoding on the code information.

[0019] Here, the quantized value is sent to the inverse quantization unit 202, and the control information is sent to the first intra-frame prediction unit 204, the second intra-frame prediction unit 205, and the inter-frame prediction unit 206. Note that this control information includes information necessary for controlling the first intra-frame prediction unit 204, the second intra-frame prediction unit 205, the inter-frame prediction unit 206, etc., and may also include header information such as a sequence parameter set, a picture parameter set, a picture header, and a slice header.

[0020] The inverse quantization unit 202 is configured to inversely quantize the quantized values ​​sent from the decoding unit 201 to generate transform coefficients. The transform coefficients are sent to the inverse transform unit 203.

[0021] The inverse transform unit 203 is configured to inversely transform the transform coefficients sent from the inverse quantization unit 202 to generate prediction residuals. The prediction residuals are sent to an adder 207.

[0022] The first intra-frame prediction unit 204 is configured to generate a first predicted pixel to be added to the prediction residual by the adder 207, based on the decoded pixel obtained via the adder 207 and the control information decoded by the decoding unit 201. The first predicted pixel is sent to the adder 207.

[0023] The inter-frame prediction unit 206 is configured to generate a third predicted pixel to be added to the prediction residual by the adder 207, based on the decoded pixel obtained by referring to the storage unit 208 and the control information decoded by the decoding unit 201. The third predicted pixel is sent to the adder 207.

[0024] The storage unit 208 is configured to cumulatively store the decoded pixels sent from the adder 207. The decoded pixels are referenced by the inter-frame prediction unit 206 via the storage unit 208.

[0025] The adder 207 is configured to obtain decoded pixels by adding the prediction residual sent from the inverse transform unit 203 to any one of the first to third predicted pixels sent from the first intra-frame prediction unit 204, the second intra-frame prediction unit 205, and the inter-frame prediction unit 206. These decoded pixels are sent to the image output unit 220, the storage unit 208, and the inter-frame prediction unit 206.

[0026] (Second Intra-frame Prediction Unit 205) Hereinafter, an example of a prediction method performed by the second intra-frame prediction unit 205 will be described.

[0027] <Deriving Block Vectors> The role of the second intra-frame prediction unit 205 is to derive one or more block vectors (hereinafter, BV: Block Vector) for the block to be decoded as shown in FIG. 2 and predict pixels of the block referenced by the BV (second intra-frame prediction), in order to predict the block to be decoded with high accuracy in the adder 207 at the subsequent stage.

[0028] Examples of such second intra-frame prediction include intra block copy (hereinafter referred to as IBC) and intra template matching prediction (hereinafter referred to as IntraTMP), which are disclosed in Non-Patent Documents 1 and 2.

[0029] Although the second intra-frame prediction can be applied when the current block references another region in BV, IBC will be described below as an example of the second intra-frame prediction. Note that other examples include modes that reference predicted pixels within a frame, such as IntraTMP.

[0030] Fig. 3 shows an example of functional blocks of the second intra-frame prediction unit 205. As shown in Fig. 3, the second intra-frame prediction unit 205 includes a block vector derivation unit (hereinafter referred to as BV derivation unit) 205A and a second intra-frame predicted pixel generation unit 205B.

[0031] The BV derivation unit 205A is configured to derive one or more BVs for the block to be decoded.

[0032] In this embodiment, the BV derivation unit 205A may derive one or more BVs using at least one of the following four methods for deriving IBC BVs. The method for deriving the BVs will be described in detail in the signaling (control information decoding process) of the decoding unit 201, which will be described later. A. IBC Block Vector Prediction (hereinafter, IBC BVP) B. IBC Merge C. IBC BVP / Merge D. IBC GPM The above-mentioned BV derivation methods A and B are disclosed in Non-Patent Documents 1 and 2, but both of the derivation methods disclosed in Non-Patent Documents 1 and 2 are methods that assume the derivation of one BV.

[0033] Since the object (effect) of the present invention is to improve the accuracy of second intra-frame prediction by deriving two or more BVs and, ultimately, to improve coding efficiency, the following description of BV derivation methods A and B will focus on the differences when two or more BVs are derived. Note that the above-mentioned BV derivation methods C and D are new techniques that assume the derivation of two or more BVs. Furthermore, as an example of such second intra-frame prediction by deriving two or more BVs (multi-predictive IBC or multi-predictive IBC), an IBC by deriving two BVs (bi-predictive IBC or bi-predictive IBC) will be described below.

[0034] (A. IBC BVP) Hereinafter, an example of a method for deriving a BV using an IBC BVP in the BV derivation unit 205A will be described with reference to FIGS.

[0035] FIG. 4 shows an example in which BV is composed of block vector prediction (BVP) and block vector difference (BVD).

[0036] In IBC BVP, the BV derivation unit 205A derives a BV by deriving a block vector prediction (BVP) and a block vector difference (BVD) based on the values ​​of control information related to the BVP and BVD decoded by the decoding unit 201. The control information related to the BVP and BVD will be described in detail in the description of signaling in the decoding unit 201.

[0037] The outline of the method for deriving the BVP in the IBC BVP is as follows.

[0038] In step S1, the BV derivation unit 205A checks whether the adjacent blocks of the block to be decoded shown in Figure 5 have already been decoded, and if such adjacent blocks have already been decoded, checks whether they have a BV (whether the BV can be used).

[0039] In step S2, the BV derivation unit 205A registers the BVs of the adjacent blocks having the BVs in a list (hereinafter referred to as a BVP candidate list) as BVP candidates shown in FIG.

[0040] In step S3, the BV derivation unit 205A selects a BVP from the BVP candidate list based on the value of the control information (IBC BVP flag or IBC BVP index) related to the BVP decoded by the decoding unit 201.

[0041] Here, the number (position) of adjacent blocks to be checked in step S1 to see whether they have been decoded or not and whether they have BV may be two types ("A" and "L" in Figure 5), as in Non-Patent Document 1, or may be five types ("A", "L", "AR", "LB", and "AL" in Figure 5), as in Non-Patent Document 2.

[0042] The order of checking the neighboring blocks may be the same as that in Non-Patent Documents 1 and 2. Here, "A", "L", "AR", "LB", and "AL" are "Above", "Left", "AboveRight", "LeftBottom", and "AboveLeft" in Non-Patent Documents 1 and 2, respectively.

[0043] Here, the BV derivation unit 205A can use BVs of neighboring blocks (referred to as spatial BVPs in Non-Patent Document 2) and BVs used in the past (referred to as history BVPs in Non-Patent Document 2) as BVP candidates.

[0044] Furthermore, in step S1, if the BV whose availability is to be newly confirmed is the same as the BV whose availability has already been confirmed, the BV whose availability is to be newly confirmed may be determined to be unavailable.

[0045] Furthermore, the order in which the BVs (BVP candidates) determined to be available in step S1 are registered in the BVP candidate list may be rearranged using a predetermined rearrangement method, the details of which will be described later.

[0046] The outline of the method for deriving the BVD in the IBC BVP is as follows.

[0047] In step S1, the BV derivation unit 205A derives the BVD based on control information related to the BVD.

[0048] In step S2, the BV derivation unit 205A rounds the BVD derived in step S1 based on control information related to the pixel precision of the BVD.

[0049] Here, the method of deriving the BVD based on the control information related to the BVD can be configured in the same manner as in Non-Patent Document 1. Specifically, the decoding unit 201 decodes (or estimates) the magnitude (absolute value) of the BVD and the value of the control information related to the code of the BVD, and the BV derivation unit 205A derives the BVD from these values.

[0050] Finally, the BV derivation unit 205A adds the derived BVP and BVD to derive the BV.

[0051] The above is an outline of the method for deriving BV in IBC BVP.

[0052] As another example, in the case of IBC BVP, when the BV derivation unit 205A derives two or more BVs, the BV derivation unit 205A may derive the BVPs and BVDs required to derive each BV in the following manner.

[0053] In step S1, the BV derivation unit 205A checks whether the adjacent blocks of the block to be decoded shown in Figure 5 have already been decoded, and if such adjacent blocks have already been decoded, checks whether they have a BV (whether the BV can be used).

[0054] In step S2, the BV derivation unit 205A registers the BVs of the adjacent blocks having the BVs in a list (hereinafter referred to as a BVP candidate list) as BVP candidates shown in FIG.

[0055] In step S3, the BV derivation unit 205A selects two or more different BVPs from the BVP candidate list based on the values ​​of control information (IBC BVP flags or IBC BVP indexes) related to the two or more different BVPs decoded by the decoding unit 201.

[0056] When the BV derivation unit 205A derives a BV corresponding to one or more indexes for the BVP candidate list, it is desirable that the second and subsequent indexes be relative indexes that start from the immediately preceding index. Details will be described later.

[0057] Here, the number (position) of adjacent blocks to be checked in step S1 to see whether they have been decoded or not and whether they have BV may be two types ("A" and "L" in Figure 5), as in Non-Patent Document 1, or may be five types ("A", "L", "AR", "LB", and "AL" in Figure 5), as in Non-Patent Document 2.

[0058] The order of checking the neighboring blocks may be the same as that in Non-Patent Documents 1 and 2. Here, "A", "L", "AR", "LB", and "AL" are "Above", "Left", "AboveRight", "LeftBottom", and "AboveLeft" in Non-Patent Documents 1 and 2, respectively.

[0059] Here, the BV derivation unit 205A can use BVs of neighboring blocks (referred to as spatial BVPs in Non-Patent Document 2) and BVs used in the past (referred to as history BVPs in Non-Patent Document 2) as BVP candidates.

[0060] In addition, in step S1, if the BV whose usability is being newly confirmed is the same as the BV whose usability has already been confirmed as being usable, the BV derivation unit 205A may determine that the BV whose usability is being newly confirmed is not usable.

[0061] Furthermore, the BV derivation unit 205A may rearrange the order in which the BVs (BVP candidates) determined to be available in step S1 are registered in the BVP candidate list using a predetermined rearrangement method, the details of which will be described later.

[0062] The outline of the method for deriving the BVD in the IBC BVP is as follows.

[0063] In step S1, the BV derivation unit 205A derives a BVD based on control information relating to two or more different BVDs.

[0064] In step S2, the BV derivation unit 205A rounds the two or more different BVDs derived in step S1 based on control information related to the pixel precision of the BVDs.

[0065] Here, the method of deriving the BVD based on the control information related to the BVD can be configured in the same manner as in Non-Patent Document 1. Specifically, the decoding unit 201 decodes or estimates the magnitude (absolute value) of the BVD and the value of the control information related to the code of the BVD, and the BV derivation unit 205A derives the BVD from these values.

[0066] Finally, the BV derivation unit 205A adds the derived two or more different BVPs and BVDs to derive two or more different BVs.

[0067] The above is an overview of the BV derivation method in bi-predictive (or multi-predictive) IBC BVP that derives two or more BVs.

[0068] (B. IBC Merge) Hereinafter, an example of a method for deriving a BV by IBC merge in the BV derivation unit 205A will be described with reference to FIGS.

[0069] In the IBC merge, unlike the IBC BVP, the BV derivation unit 205A does not derive the BVD, but derives only the BVP, and derives it as the BV.

[0070] The outline of the method for deriving BV in IBC merging is as follows.

[0071] In step S1, the BV derivation unit 205A checks whether the adjacent blocks of the block to be decoded shown in Figure 5 have already been decoded, and if such adjacent blocks have already been decoded, checks whether they have a BV (whether the BV can be used).

[0072] In step S2, the BV derivation unit 205A registers the BVs of adjacent blocks having the BVs in a list (hereinafter referred to as a BVP candidate list or a merge candidate list) as BVP candidates (or merge candidates) shown in Figure 6 or Figure 7.

[0073] In step S3, the BV derivation unit 205A selects a BVP from the BVP candidate list based on the value of the control information (IBC merge index) related to the BVP decoded by the decoding unit 201, and derives the selected BVP as a BV.

[0074] Here, the number (position) of adjacent blocks to be checked in step S1 to see whether they have been decoded or not and whether they have BV may be two types ("A" and "L" in Figure 5), as in Non-Patent Document 1, or may be five types ("A", "L", "AR", "LB", and "AL" in Figure 5), as in Non-Patent Document 2.

[0075] The order of checking the neighboring blocks may be the same as that in Non-Patent Documents 1 and 2. Here, "A", "L", "AR", "LB", and "AL" are "Above", "Left", "AboveRight", "LeftBottom", and "AboveLeft" in Non-Patent Documents 1 and 2, respectively.

[0076] Here, BVP candidates can use BVs of neighboring blocks (referred to as spatial merge in Non-Patent Document 2), BVs used in the past (referred to as history merge in Non-Patent Document 2), or the average of BVs (referred to as pairwise average merge in Non-Patent Document 2).

[0077] In addition, in step S1, if the BV whose usability is being newly confirmed is the same as the BV whose usability has already been confirmed as being usable, the BV derivation unit 205A may determine that the BV whose usability is being newly confirmed is not usable.

[0078] Furthermore, the BV derivation unit 205A may rearrange the order in which the BVs (BVP candidates) determined to be available in step S1 are registered in the BVP candidate list using a predetermined rearrangement method, the details of which will be described later.

[0079] The above is an outline of the method for deriving BV in IBC merging.

[0080] Here, when deriving two or more BVs in an IBC merge, the BV derivation unit 205A may derive the two or more BVs in the following manner.

[0081] As an example, the BV derivation unit 205A may create one BVP candidate list (or merge candidate list) as shown in Figure 6, and then select two or more BVP candidates from the BVP candidate list according to the values ​​of two or more control information (IBC merge indexes) indicating the BVP candidates (or merge candidates) in the BVP candidate list decoded by the decoding unit 201, and derive each of them as a BV.

[0082] When the BV derivation unit 205A derives a BV corresponding to one or more indexes for the BVP candidate list, it is desirable that the second and subsequent indexes be relative indexes that start from the immediately preceding index. Details will be described later.

[0083] Alternatively, the BV derivation unit 205A may derive a BV by fixedly selecting one or more BVs at the top of the BVP candidate list. In this case, it is desirable that the BV derivation unit 205A rearranges the BVP candidates in the BVP candidate list, as described below. With this configuration, by fixedly selecting some BVs from among two or more BVs, the amount of coding required for indexes to derive two or more BVs is eliminated, thereby improving coding efficiency.

[0084] As another example, the BV derivation unit 205A may construct separate BVP candidate lists for the number of BVs held by the block to be decoded, as shown in Figure 7, and then derive two or more BVs using one index.

[0085] For example, when a neighboring block holds multiple BVs as BVP candidates, the BV derivation unit 205A registers each BV in a corresponding BVP candidate list. In this way, by constructing multiple BVP candidate lists and sharing indexes, it is possible to derive one or more BVs from one index. For example, when a current block holds up to two BVs, the BV derivation unit 205A may prepare two lists (e.g., an L0 list and an L1 list similar to normal intraframe prediction) and derive one BV from the L0 list and one BV from the L1 list corresponding to the index. If a BV corresponding to an index is present in only one of the L0 list and the L1 list, the BV derivation unit 205A may use one of them.

[0086] (C. IBC BVP / Merge) Hereinafter, an example of a method for deriving a BV by IBC BVP / merge in the BV derivation unit 205A will be described with reference to FIGS.

[0087] IBC BVP / merge is a method for deriving two (or more) BVs by deriving one BV based on the BV derivation method in IBC BVP described above, and deriving the other (or two or more remaining) BVs based on the BV derivation method in IBC merge described above. The specific derivation method is as follows:

[0088] First, in IBC BVP / merge, the BV derivation unit 205A derives the BVP and BVD based on the values ​​of control information related to each of the BVP and BVD decoded by the decoding unit 201, using the same derivation method as for the IBC BVP, and then adds up the derived BVP and BVD to derive the first BV.

[0089] Second, in the IBC BVP / merge, the BV derivation unit 205A selects a BVP from the BVP candidate list based on the value of control information (IBC merge index) related to the BVP decoded by the decoding unit 201, using the same derivation method as for the IBC BVP, and derives it as the second BV.

[0090] As another example, as shown in FIG. 8 , the BV derivation unit 205A may create a template (i.e., a predetermined neighboring pixel of the reference block referenced by the BV) based on the first derived BV, and evaluate (compare template costs) the similarity of each BVP candidate (each IBC merge candidate) in the BVP candidate list for the IBC merge with the template (a predetermined neighboring pixel of the reference block), thereby deriving the BVP candidate (IBC merge candidate) with the highest similarity (minimum template cost) as the second BV for the IBC BVP / merge.

[0091] Alternatively, as another example, the BV derivation unit 205A may select a BVP from the BVP candidate list in the IBC merge based on the value of control information (IBC merge index) related to the BVP decoded by the decoding unit 201, and derive the selected BVP as the second BV.

[0092] Here, the BV derivation unit 205A may use the template of the block to be decoded as the target for similarity evaluation with the template of each IBC merge candidate, instead of the template based on the BV derived by the IBC BVP.

[0093] The BV derivation unit 205A can use the sum of squared errors (SSE) or the sum of absolute differences (SAD) to evaluate the similarity of templates (comparison of template costs).

[0094] Furthermore, the predetermined pixels of the template created in the similarity evaluation of the template may be decoded pixels of one pixel line adjacent to the left or top of each block.

[0095] When there is no adjacent decoded pixel on the left or top at a picture boundary or slice boundary, the BV derivation unit 205A may perform template similarity evaluation using a decoded pixel at an available position.

[0096] Furthermore, when there are two or more BVs to be derived, the BV derivation unit 205A may derive BVP candidates in descending order of template similarity (lowest template cost).

[0097] A more detailed procedure for deriving BV by IBC BVP / merge is as follows.

[0098] The outline of the method for deriving a BVP based on the method for deriving a BV by an IBC BVP in an IBC BVP / merge is as follows.

[0099] In step S1, the BV derivation unit 205A checks whether the adjacent blocks of the block to be decoded shown in Figure 5 have already been decoded, and if such adjacent blocks have already been decoded, checks whether they have a BV (whether the BV can be used).

[0100] In step S2, the BV derivation unit 205A registers the BVs of the adjacent blocks having the BVs in a list (hereinafter referred to as a BVP candidate list) as BVP candidates shown in FIG.

[0101] In step S3, the BV derivation unit 205A selects a BVP from the BVP candidate list based on the value of the control information (IBC BVP flag or IBC BVP index) related to the BVP decoded by the decoding unit 201.

[0102] Here, the number (position) of adjacent blocks to be checked in step S1 to see whether they have been decoded or not and whether they have BV may be two types ("A" and "L" in Figure 5), as in Non-Patent Document 1, or may be five types ("A", "L", "AR", "LB", and "AL" in Figure 5), as in Non-Patent Document 2.

[0103] The order of checking the neighboring blocks may be the same as that in Non-Patent Documents 1 and 2. Here, "A", "L", "AR", "LB", and "AL" are "Above", "Left", "AboveRight", "LeftBottom", and "AboveLeft" in Non-Patent Documents 1 and 2, respectively.

[0104] Here, the BV derivation unit 205A can use BVs of neighboring blocks (referred to as spatial BVPs in Non-Patent Document 2) and BVs used in the past (referred to as history BVPs in Non-Patent Document 2) as BVP candidates.

[0105] In addition, in step S1, if the BV whose usability is being newly confirmed is the same as the BV whose usability has already been confirmed as being usable, the BV derivation unit 205A may determine that the BV whose usability is being newly confirmed is not usable.

[0106] Furthermore, the BV derivation unit 205A may rearrange the order in which the BVs (BVP candidates) determined to be available in step S1 are registered in the BVP candidate list using a predetermined rearrangement method, the details of which will be described later.

[0107] The outline of the method for deriving BVD based on the method for deriving BV by IBC BVP in IBC BVP / merge is as follows.

[0108] In step S1, the BV derivation unit 205A derives the BVD based on control information related to the BVD.

[0109] In step S2, the BV derivation unit 205A rounds the BVD derived in step S1 based on control information related to the pixel precision of the BVD.

[0110] Here, the method of deriving the BVD based on the control information related to the BVD can be configured in the same manner as in Non-Patent Document 1. Specifically, the decoding unit 201 decodes or estimates the magnitude (absolute value) of the BVD and the value of the control information related to the code of the BVD, and the BV derivation unit 205A derives the BVD from these values.

[0111] The BVD derivation unit 205A adds the derived BVP and BVD to derive the first BV.

[0112] The outline of the second BV derivation method based on the BV derivation method by IBC merge in IBC BVP / merge is as follows.

[0113] In the case of an IBC BVP / merge, the BV derivation unit 205A may construct two different BV candidate lists (i.e., one BVP candidate list for the IBC BVP and the other merge candidate list for the IBC BVP / merge) in the BV derivation of the IBC BVP and the BV derivation of the IBC merge.

[0114] As another example, the BV derivation unit 205A may derive the second BV as follows by evaluating the similarity of the template based on the first BV described above.

[0115] In step S1, the BV derivation unit 205A sets a block referred to by the first BV or a pixel adjacent to the block to be decoded as a template.

[0116] In step S2, the BV derivation unit 205A evaluates the similarity between the template derived in step S1 and corresponding pixels in the blocks referenced by each BVP candidate in the BVP candidate list.

[0117] In step S3, the BV derivation unit 205A selects the BVP with the highest similarity and derives this BVP as the second BV.

[0118] Here, the BV derivation unit 205A does not include the BVP candidate that matches the first BV among the BVP candidates in the BVP candidate list in step S2 in the similarity evaluation.

[0119] Alternatively, the BV derivation unit 205A does not register the BVP candidate that matches the first BV in the BVP candidate list in step S2 in the list at the stage of constructing the BVP candidate list.

[0120] Alternatively, the BV derivation unit 205A may rearrange the registration order of the BVP candidates in the BVP candidate list in order of highest similarity in step S3, select a BVP based on the value of the control information (IBC merge index) related to the BVP decoded by the decoding unit 201, and derive the BVP as a BV.

[0121] The above is an outline of the method for deriving BV in IBC BVP / merge.

[0122] (D. IBC GPM) Hereinafter, an example of a method for deriving a BV by IBC GPM in the BV derivation unit 205A will be described with reference to FIG.

[0123] In IBC GPM, as shown in FIG. 9 , the BV derivation unit 205A divides a block to be decoded into two regions by an arbitrary straight line (solid line in FIG. 9 ) selected from multiple different patterns of candidate straight lines (geometric partitioning lines), in the same way as in the geometric block partitioning mode (GPM: Geometric Partitioning Mode) disclosed in Non-Patent Document 1, derives one or more different BVs for each of the divided regions, and calculates a weighted average of the reference destinations (pixels of the reference block) of each BV according to the distance from the partitioning line.

[0124] Here, the BV deriving unit 205A may derive the BV required for such IBC GPM, similar to the above-mentioned IBC merge.

[0125] Furthermore, the BV deriving unit 205A may identify candidates for the dividing line in the IBC GPM based on control information for identifying candidates for the dividing line of the GPM disclosed in Non-Patent Document 1 or 2.

[0126] <Pixel Accuracy> The BV derivation unit 205A can set the pixel accuracy of the derived BV to integer pixel accuracy or decimal pixel accuracy.

[0127] IBC was devised as an encoding technique for screen images, but when applied to natural images captured by a camera, prediction accuracy can be improved by setting the pixel accuracy of BV to decimal pixel accuracy (i.e., generating predicted pixels using an interpolation filter, as in normal inter-frame prediction).

[0128] Furthermore, the BV derivation unit 205A can adaptively select from a plurality of different pixel precisions.

[0129] That is, the BV derivation unit 205A may set the pixel precision of the BV at a plurality of different integer pixel precisions or at a plurality of different sub-pixel precisions.

[0130] For example, the BV derivation unit 205A can change the pixel precision of the BV on a sequence-by-sequence basis and / or a picture-by-picture basis and / or a slice-by-slice basis and / or a block-by-block basis.

[0131] That is, the BV derivation unit 205A may change the pixel precision of the BV for each arbitrary combination of sequence units, picture units, slice units, and block units.

[0132] Regarding the selection of pixel accuracy of BV in units of blocks, Non-Patent Document 1 discloses a technique of applying adaptive motion vector resolution (AMVR) to IBC.

[0133] Specifically, this technique is a technique in which, in deriving BV in IBC, the pixel precision of BVD is selected from either 1-pixel precision or 4-pixel precision, and BV is finally rounded to the pixel precision of the selected BVD.

[0134] The BV derivation unit 205A may add the above-mentioned sub-pixel accuracy (for example, 1 / 4 pixel accuracy and / or 1 / 2 pixel accuracy) as an option for this AMVR.

[0135] As another example, the BV derivation unit 205A can change the pixel precision of the BV depending on the number of BVs in the block to be decoded.

[0136] For example, the BV derivation unit 205A can set the pixel precision of the BV to decimal pixel precision when there is one BV, and can set the pixel precision of the BV to integer pixel precision when there are two or more BVs.

[0137] As the number of BVs increases, the accuracy of the second intra-frame prediction generally increases, but the processing load required to derive the BVs also increases. Therefore, by reducing the pixel accuracy of the BVs as the number of BVs increases, the effect of reducing the decoding processing load while maintaining the prediction accuracy of the second intra-frame prediction can be obtained.

[0138] For example, when there are two or more BVs, the BV derivation unit 205A may set the pixel precision of the BVs to integer precision (limiting the selectable pixel precision to only integer precision).

[0139] On the other hand, when there is one BV, the BV derivation unit 205A may set the pixel precision of the BV to integer pixel precision or decimal pixel precision (selectable pixel precision does not have to be limited to integer precision).

[0140] <BVP Candidate List> As described above, the BV derivation unit 205A may configure the BVP candidate list in the same number as the number of BVs held by the current block to be decoded.

[0141] To reiterate the examples of the L0 list and the L1 list, they can be divided into cases where only a single list (the L0 list) is used and cases where multiple lists (for example, an L0 list and an L1 list when the BV derivation unit 205A derives a maximum of two BVs) are used.

[0142] In either case, the BV derivation unit 205A may configure the BVP candidates to be registered in the BVP candidate list using BVs of neighboring blocks of the block to be decoded as shown in Figure 5, BVs used in the past, an average of BVs, etc.

[0143] Alternatively, the BV derivation unit 205A may configure the BVP candidates to be registered in the BVP candidate list using BVs derived by IntraTMP as disclosed in Non-Patent Document 2.

[0144] The order in which BVP candidates are registered in these BVP candidate lists may conform to the order disclosed in Non-Patent Documents 1 and 2.

[0145] The BV derivation unit 205A searches for and registers the above-mentioned BVP candidates until the BVP candidate list is filled with BVP candidates.

[0146] As another example, the BV derivation unit 205A may check the availability of BVP candidates that exceed the maximum number of BVP candidates that can be registered in the BVP candidate list, and select BVP candidates to register in the BVP candidate list from among those candidates.

[0147] For example, the BV derivation unit 205A may register the BVP candidates in the BVP candidate list in the order of search of the BVP candidate list, or may register the BVP candidates after rearranging the order of the BVP candidates that can be registered using a rearrangement method described later.

[0148] The maximum number of BVP candidates may be set to a fixed value, or may be adaptively set using control information for each sequence, picture, or slice, as will be described later.

[0149] Furthermore, the BV derivation unit 205A may or may not share the BVP candidate lists for the IBC BVP, IBC merge, and IBC BVP / merge (different BVP candidate lists may be used for the IBC BVP, IBC merge, and IBC BVP / merge).

[0150] As an example of the former, the BV derivation unit 205A may set the maximum number of BVP candidates that can be registered in a BVP candidate list that derives a BVP using an IBC BVP flag or an IBC BVP index in an IBC BVP or IBC BVP / merge to be the same as the maximum number of BVP candidates that can be registered in a BVP candidate list that derives a BVP (BV) using an IBC merge or an IBC merge index in an IBC BVP / merge.

[0151] In this way, by sharing the BVP candidate list, the circuit scale of the image decoding device 200 can be reduced.

[0152] As an example of the latter, the BV derivation unit 205A may set a larger maximum number of BVP candidates (IBC merge candidates) that can be registered in a BVP candidate list (merge candidate list) that derives a BVP (merge candidate or BV) using an IBC merge or an IBC merge index in an IBC BVP / merge, compared to the maximum number of BVP candidates that can be registered in a BVP candidate list that derives a BVP using an IBC BVP flag or an IBC BVP index in an IBC BVP or an IBC BVP / merge.

[0153] For example, as in non-patent document 2, the BV derivation unit 205A may fix the maximum number of BVP candidates that can be registered in the BVP candidate list to two, and set the maximum number of merge candidates that can be registered in the merge candidate list to six.

[0154] In this way, by setting the maximum number of merging candidates that can be registered in the merging candidate list to be larger than that in the BVD candidate list, the number of decodable BV patterns increases, and improvement in coding efficiency can be expected.

[0155] When the BV derivation unit 205A checks the availability of BVs of neighboring blocks, etc., in order to search for BVP candidates (or merge candidates) that can be registered in the BVP candidate list (or merge candidate list), if the BV whose availability is to be newly checked is the same as a BVP candidate (or merge candidate) that has already been confirmed as available, the BV whose availability is to be newly checked may be determined (prune) to be unavailable.

[0156] The BV derivation unit 205A can improve the coding efficiency of the control information related to the BVP for selecting a BVP from the BVP candidate list by preventing two or more completely matching BVP candidates from being registered in the BVP candidate list.

[0157] In addition, when AMVR or the like, which changes the pixel accuracy of the BV, is applied to the block to be decoded and the pixel accuracy of the BV finally derived is greater than when AMVR or the like is not applied, the BV derivation unit 205A may determine whether or not to use the pixel accuracy of the BVP candidate extracted from a neighboring block of the block to be decoded after rounding it to the pixel accuracy of the BV finally derived in order to determine whether or not it can be used in the BVP candidate list.

[0158] For example, if each BV (1 pixel accuracy) of a neighboring block extracted to determine whether it can be used for the BVP candidate list is ultimately rounded to 4 pixel accuracy by AMVR or the like, the BV derivation unit 205A may determine whether to use each BV in the BVP candidate list after rounding it to 4 pixel accuracy.

[0159] In addition, when the BV derivation unit 205A uses two or more BVP candidate lists (or merge candidate lists) for BV derivation, if the pixel precision of the BVP candidates (or merge candidates) in at least one list is rounded by AMVR or the like, the pixel precision of the BVP candidates (or merge candidates) in the other lists may also be rounded in the same way (to the same pixel precision) and then the BVP candidate list (or merge candidate list) may be constructed.

[0160] As another example, the BV derivation unit 205A may use two or more BVP candidate lists (or merge candidate lists) when deriving a BV, and if the pixel accuracy of the BVP candidates (or merge candidates) in at least one list is rounded by AMVR or the like, the BVP candidate list (or merge candidate list) may be constructed without rounding the pixel accuracy of the BVP candidates (or merge candidates) in the other lists.

[0161] For example, AMVR is a technology that reduces the amount of code for BVD by coarsening the pixel precision of BVD required for deriving BV of IBC. Therefore, when IBC and AMVR are used in combination, it is natural that the pixel precision of BVPs derived by the above-mentioned IBC BVP or IBC BVP BV derivation method in IBC BVP / merge, and therefore the pixel precision of BVs, are rounded to the pixel precision of BVD.

[0162] On the other hand, the pixel precision of the BVP (or merge candidate) derived by the BV derivation method of the IBC merge in the IBC BVP / merge, and hence the BV, may or may not be rounded to the pixel precision of the BVD.

[0163] Therefore, for IBC BVP / merge, when AMVR or the like is applied to the block to be decoded, the BV derivation unit 205A may determine whether to use the pixel precision of each BVP candidate that can be registered in the BVP candidate list of the IBC BVP / merge after rounding it, or may determine whether to use the pixel precision of the BVP candidate (or merge candidate) that can be registered in the merge candidate list without rounding it.

[0164] Furthermore, the BV derivation unit 205A may rearrange the registration order of the BVP candidates in the BVP candidate list using a predetermined method.

[0165] Specifically, the BV derivation unit 205A uses neighboring pixels of the block to be decoded as a template to evaluate the similarity between the BV of each BVP candidate and neighboring pixels (of the same size as the template of the block to be decoded) of the reference block referenced by the BV, and sorts the BVP candidates in the BVP candidate list in order of highest similarity.

[0166] Here, the BV deriving unit 205A may evaluate the similarity of such templates using the sum of squared differences (SSE), sum of absolute differences (SAD), or the like.

[0167] Alternatively, the BV derivation unit 205A can use the similarity between blocks referenced by BVs to sort the BVP candidates in the BVP candidate list.

[0168] The BV deriving unit 205A can use the sum of absolute transformed differences (SATD) or the like as the similarity.

[0169] When using a plurality of lists such as the L0 list and the L1 list, the BV derivation unit 205A may combine the neighborhoods of the blocks referenced by both lists and then evaluate the similarity.

[0170] The range in which the order of registration of BVs to be registered in the BVP candidate list is rearranged may be all available BVP candidates or may be limited to a part of them.

[0171] The BV derivation unit 205A can derive highly accurate BVPs from the BVP candidate list by registering the BVP candidates in the BVP candidate list in the order of highest similarity described above, which results in higher accuracy of second intra-frame prediction and, ultimately, improved coding efficiency.

[0172] <Correction> The BV derivation unit 205A may correct the reference position of the BVP derived by the IBC BVP, the BVP (BV) derived by the IBC merge, or the BVP (BV) derived by the IBC BVP / merge, using a predetermined method.

[0173] The specified methods can be broadly divided into a method of adding BVD to the derived BVP (BV) as a correction block vector, and a method of searching for a new reference position using a specified search method described below starting from BVP (BV) without adding BVD.

[0174] The former BV correction method (hereinafter referred to as the BVD addition method) does not apply to IBC BVPs because the BV derivation unit 205A adds a new BVD, and may apply it only to BVPs (BVs) associated with an IBC merge index of an IBC merge or an IBC BVP / merge.

[0175] The latter BV correction method (hereinafter referred to as the BV search method) is a method in which the BV derivation unit 205A does not add BVD, and therefore may be applied to any of IBC BVP, IBC merge, or IBC BVP / merge.

[0176] As an example of the BVD addition method, the BV derivation unit 205A may apply the merge mode with block vector difference (MBVD) disclosed in Non-Patent Document 2.

[0177] Specifically, when MBVD is applied, the BV derivation unit 205A derives (specifies) the value of the correction block vector based on the control information.

[0178] Furthermore, when MBVD is applied, the BV derivation unit 205A may set restrictions on the possible values ​​(reference positions) of the correction block vector in order to reduce the amount of code for the correction block vector.

[0179] For example, when MBVD is applied, the BV derivation unit 205A may limit the distance and direction of the possible values ​​(reference positions) of the correction block vector to discrete values. For example, when MBVD is applied, the BV derivation unit 205A may limit the distance of the possible values ​​(reference positions) of the correction block vector to a power of 2, and / or may limit the possible values ​​of the correction block vector to the top, bottom, left, right, and right of the reference positions.

[0180] In addition, the decoding unit 201 and the BV derivation unit 205A may control whether or not to include candidates for correction block vectors with decimal pixel accuracy (or whether to include only integer pixel accuracy) in the candidates for correction block vectors in MBVD using control information on a sequence basis and / or a picture basis and / or a slice basis.

[0181] Alternatively, the BV derivation unit 205A may set constraints on the values ​​(reference positions) of the correction block vectors according to the number of block vectors included in the block to be decoded.

[0182] For example, if the current block to be decoded has two or more block vectors, the BV derivation unit 205A may limit the value (reference position) of the correction block vector to integer pixel accuracy only.

[0183] As another example, the BV derivation unit 205A may be controlled by control information that determines whether to enable derivation of multiple BVs for an IBC on a sequence-by-sequence basis and / or a picture-by-picture basis and / or a slice-by-slice basis.

[0184] As an example of the BVD addition method, the BV derivation unit 205A may apply template matching disclosed in Non-Patent Document 2.

[0185] Template Matching, similar to the above-mentioned method of rearranging BVP candidates, is a method in which neighboring pixels of the block to be decoded are used as a template, and the reference position of a new BVP (BV) is searched for starting from the derived BVP (BV) while checking the similarity with neighboring pixels of the reference block.

[0186] The BV derivation unit 205A may limit the search range to a size similar to that of Non-Patent Document 2 (for example, a range of 8 pixels in the up, down, left, and right directions with the BVP (BV) as the origin).

[0187] In addition, the BV derivation unit 205A may adaptively limit the pixel precision used in the search, taking into account the pixel precision selected by AMVR or the like for the above-mentioned IBC (for example, if one-pixel precision is selected by AMVR or the like, the search pixel precision by Template Matching may also be adjusted to one-pixel precision).

[0188] As an example of another BVD addition method, when there are two or more derived BVs, the BV derivation unit 205A may apply a BV search method such as decoder-side motion vector refinement (DMVR) in Non-Patent Document 1, i.e., decoder-side block vector refinement (DBVR).

[0189] Specifically, the BV derivation unit 205A applies a predetermined set of correction block vector candidates to two or more derived BVPs (BVs) and corrects the BVs (BVPs) by searching for a correction block vector that has high similarity between multiple reference blocks.

[0190] Here, the BV derivation unit 205A can use the above-mentioned sum of squared differences (SSE), sum of absolute differences (SAD), Hadamard transform sum of absolute differences (SATD), etc. to calculate the DBVR similarity. Furthermore, DBVR is based on a search method using two or more BVs, and therefore is not applicable when one BV is derived.

[0191] <Storage> The BV derivation unit 205A stores one or more BVs derived for the block to be decoded and reference images in the memory of the image decoding device 200 in units of a predetermined number of pixels so that the subsequent block to be decoded can refer to them.

[0192] By storing the BV and reference image derived for the block to be decoded in memory by the BV derivation unit 205A, the BV and reference image of the block to be decoded can be used to apply IBC to another block to be decoded that is decoded after the block to be decoded, thereby increasing the application rate of IBC and improving coding efficiency.

[0193] The BV derivation unit 205A may store in memory one or more BVs and reference images derived for the block to be decoded in a predetermined pixel unit, for example, in 4x4 pixel sub-blocks obtained by further dividing the block to be decoded in 4x4 pixel units, as in Non-Patent Document 1.

[0194] Alternatively, the BV derivation unit 205A may store in memory one or more BVs and reference images derived for the block to be decoded in pixel units smaller or larger than a 4x4 pixel sub-block (powers of 2 or 4).

[0195] The BV derivation unit 205A may store one or more BVs derived for the current block and reference images in memory, depending on the number of block vector candidate lists.

[0196] For example, when the BV derivation unit 205A derives one BV, it stores the BV and the corresponding reference image in the L0 list used in normal inter-frame prediction.

[0197] Furthermore, when there are two derived BVs, the BV derivation unit 205A stores one BV and one corresponding reference image in each of the L0 list and L1 list used in normal inter-frame prediction.

[0198] Furthermore, if the number of derived BVs is three or more, the BV derivation unit 205A adds an Ln list in addition to the L0 list and L1 list used in normal inter-frame prediction, and stores one such BV and one corresponding reference image in each list.

[0199] When the BV stored in the memory as described above is referenced as a BVP candidate in another block to be decoded, the BV derivation unit 205A expands the BV as a usable BVP candidate in the BVP candidate list as follows.

[0200] If there is one BV stored in the memory, the BV derivation unit 205A expands the BV into a BVP candidate as one list number (one BVP candidate).

[0201] On the other hand, if there are two or more BVs stored in the memory, the BV derivation unit 205A expands the BVs as two or more list numbers (two or more BVP candidates).

[0202] In addition, the BV derivation unit 205A may store one or more BVs and reference images derived for the block to be decoded in a separate FIFO (First In First Out) type memory (hereinafter referred to as history) for reference by a history BVP or history BV merge that references the previously used BVs described above.

[0203] Here, if the BV derivation unit 205A derives only one BV, it stores the BV and the corresponding reference image in the history as is. However, if the same BV already exists in the history, the BV derivation unit 205A does not store the BV.

[0204] On the other hand, if the number of derived BVs is two or more, the BV derivation unit 205A stores the two or more BVs and the corresponding reference images in the history. However, as in the case where the number of derived BVs is one, if the same BV already exists in the history, the BV derivation unit 205A does not register the BV.

[0205] In addition, if the BV stored in the above-mentioned memory or history has been corrected as described above, the BV derivation unit 205A may store the corrected BV, or it may store the BV before correction.

[0206] In such a case, the BV derivation unit 205A can obtain the effect of being able to omit the symbols indicating the before and after correction by determining in advance whether the BV after correction or the BV before correction is to be registered.

[0207] Conversely, the BV derivation unit 205A can adaptively determine whether to register the corrected BV or the uncorrected BV, thereby achieving the effect of improving coding efficiency.

[0208] <Synthesis> The second intra-frame predicted pixel generation unit 205B is configured to generate a second predicted pixel by synthesizing predicted pixels of a block to be decoded using pixels (reference pixels) of a reference block referenced by one or more BVs.

[0209] When there is one BV, the second intra-frame predicted pixel generation unit 205B may use the reference pixels of the reference block as they are as predicted pixels for the block to be decoded, or may correct the pixels of the reference block.

[0210] For example, the second intra-frame predicted pixel generation unit 205B may perform such correction using a polynomial using the above-mentioned reference pixels.

[0211] Specifically, the second intra-frame predicted pixel generation unit 205B may be configured to generate a correction value P(x, y) as a predicted pixel at coordinates (x, y) within the block to be decoded using a polynomial (see the following equation) defined using the above-mentioned reference pixel Q(x, y) and weighting coefficients C1 and C2.

[0212] P(x, y) = C1 × Q(x, y) + C2 Alternatively, the second intra-frame predicted pixel generation unit 205B may define the above polynomial using multiple reference pixels Q1, Q2, ... Qn in a block that one BV references for one predicted pixel.

[0213] The following equation is an example of a polynomial defined in a 3×3 area centered on the coordinates (x, y).

[0214] P(x, y) = C1 x Q(x-1, y-1) + C2 x Q(x, y-1) + C3 x Q(x+1, y-1) + C4 x Q(x-1, y) + C5 x Q(x, y) + C6 x Q(x+1, y) + C7 x Q(x-1, y+1) + C8 x Q(x, y+1) + C9 x Q(x+1, y+1) + C10. Figure 10 shows an example with 10 weighting coefficients. However, for the sake of simplicity, Q(x+i, y+j) is expressed as Q i,j It is expressed as:

[0215] When the second intra-frame predicted pixel generation unit 205B defines a polynomial using a plurality of reference pixels in this way, it is preferable to use nearby pixels.

[0216] Alternatively, the second intra-frame predicted pixel generation unit 205B may define a plurality of polynomials according to the distribution of the reference pixels described above.

[0217] The following equation is an example of a polynomial having two types of coefficients defined by the threshold value Th when the histogram of the reference pixels is bimodal.

[0218] P(x, y) = C1 × Q(x, y) + C2 P(x, y) > Th P(x, y) = C3 × Q(x, y) + C4 P(x, y) <= Th Here, the second intra-frame predicted pixel generation unit 205B may set the threshold value to a value that separates the two peaks. Alternatively, the second intra-frame predicted pixel generation unit 205B may simplify the threshold value and use an average value.

[0219] If the distribution of the reference pixels is multi-modal, the second intra-frame predicted pixel generation unit 205B can also apply a polynomial having more types of coefficients.

[0220] The second intra-frame predicted pixel generation unit 205B may be configured to generate the second predicted pixel by taking a weighted average of the pixels (reference pixels) of the two reference blocks referenced by the BVs using a predetermined weight value when the block to be decoded has two BVs.

[0221] For example, the second intra-frame predicted pixel generation unit 205B may be configured to generate the second predicted pixel by simply averaging the reference pixels referenced by two or more BVs in the block to be decoded in a 1:1 ratio.

[0222] That is, the second intra-frame predicted pixel generation unit 205B may fix the above-mentioned predetermined weight value at 1:1, or may set it adaptively.

[0223] When adaptively setting the above-mentioned predetermined weight value, the second intra-frame predicted pixel generation unit 205B can set a weight value that is not 1:1 based on the length of the BV and an evaluation of the similarity between the block to be decoded and the neighboring pixels (templates) of each reference block.

[0224] Here, the effect of reducing the processing load can be obtained by using a simple 1:1 average for the predetermined weight value, while the effect of improving the coding efficiency can be obtained by adaptively setting the predetermined weight value.

[0225] Furthermore, among multiple BVs, a reference block with a short BV length is considered to have a small error with the block to be decoded, so by increasing the weight of the reference block with a short BV length, the prediction accuracy can be improved when generating predicted pixels based on two or more BVs.

[0226] Furthermore, in the template similarity evaluation, a reference block with high similarity (low template cost) is considered to have a small error with the block to be decoded, so by increasing the weight of a reference block with a short BV length, the prediction accuracy can be improved when generating predicted pixels based on two or more BVs.

[0227] As another example, the second intra-frame predicted pixel generation unit 205B may perform a weighted average of reference pixels of reference blocks referenced by two BVs according to control information (hereinafter, BCW index) that specifies the weight value used in the weighted average, such as bidirectional coding block-by-block weighting (BCW: Bidirectional with CU based Weighting) disclosed in Non-Patent Document 1 and Non-Patent Document 2.

[0228] The decoding unit 201 may decode the BCW index for a bi-predictive IBC BVP (or an IBC BVP / merge), or may not decode the BCW index for a bi-predictive IBC merge (or an IBC BVP / merge), and may inherit the BCW index of a merge candidate in the merge candidate list.

[0229] Furthermore, the second intra-frame predicted pixel generation unit 205B may correct the weight value of the BCW corresponding to the value of the inherited BCW index by similarity evaluation using a template for the above-mentioned block to be decoded and the reference block, as in non-patent document 2.

[0230] Alternatively, the second intra-frame predicted pixel generation unit 205B may be configured to generate the second predicted pixel using a polynomial defined using a plurality of reference pixels.

[0231] Specifically, the second intra-frame predicted pixel generation unit 205B may be configured to generate a correction value P(x, y) as a predicted pixel at coordinates (x, y) within the block to be decoded using a polynomial (see the following equation) defined using a plurality of different reference pixels Q(x, y), R(x, y) and weighting coefficients C1, C2, and C3.

[0232] P(x, y) = C1 × Q(x, y) + C2 × R(x, y) + C3 According to the above configuration, simplifying the polynomial has the effect of reducing the calculation load. Conversely, complicating the polynomial has the effect of improving the prediction accuracy.

[0233] The second intra-frame predicted pixel generation unit 205B may be configured to define a plurality of polynomials as the above-mentioned polynomial and to enable selection from them. With this configuration, an appropriate polynomial can be used, thereby improving coding efficiency.

[0234] The second intra-frame predicted pixel generation unit 205B may be configured to derive the coefficients (weighting coefficients) of the above-mentioned polynomial from neighboring pixels of the block to be decoded and neighboring pixels of the reference block.

[0235] Specifically, as shown in Figure 11, the second intra-frame predicted pixel generation unit 205B derives a weighting coefficient C such that the neighboring pixel P' of the block to be decoded and the neighboring pixel Q' of the reference block match through correction (see X1 in Figure 11).

[0236] For example, the second intra-frame predicted pixel generation unit 205B defines an error function E shown in the following equation, and derives a weighting factor C that minimizes E.

[0237] E=Σ(P'(x,y)-(C1×Q'(x-1,y-1)+C2×Q'(x,y-1)+C3×Q'(x+1,y-1)+C4×Q'(x-1,y)+C 5×Q'(x,y)+C6×Q'(x+1,y)+C7×Q'(x-1,y+1)+C8×Q'(x,y+1)+C9×Q'(x+1,y+1)+C10)) 2 The second intra-frame predicted pixel generating unit 205B can use the least squares method or the like to derive such weighting coefficients.

[0238] Alternatively, the second intra-frame predicted pixel generation unit 205B can derive such weight values ​​using robust estimation such as principal component regression or partial least squares regression in order to reduce the influence of outliers.

[0239] The second intra-frame predicted pixel generation unit 205B applies the derived weighting coefficient C to the neighboring pixel Q of the reference block to obtain a correction value P (X2 in Figure 11), and sets this as the predicted pixel (second predicted pixel) of the block to be decoded (X3 in Figure 11).

[0240] With this configuration, compared to when such weighting factors are stored as control information, by deriving such weighting factors from neighboring pixels, it is not necessary to decode such weighting factors, thereby achieving the effect of improving coding efficiency.

[0241] Furthermore, applying weighting coefficients to a plurality of reference pixels is equivalent to adaptively deriving a BV with more precise decimal precision, and therefore has the effect of improving coding efficiency by reducing the amount of BV code.

[0242] Here, the second intra-frame predicted pixel generation unit 205B may be configured to use neighboring pixels P' and Q' within a certain range to derive the weighting coefficients (coefficients of the polynomial) described above.

[0243] For example, as shown in Figure 12(a), the second intra-frame predicted pixel generation unit 205B may be configured to use neighboring pixels within four pixel lines from the block to be decoded to derive the above-mentioned weighting coefficients (coefficients of the polynomial).

[0244] Conversely, the second intra-frame predicted pixel generation unit 205B can also limit the neighboring pixels used to derive the weighting coefficients described above.

[0245] For example, the second intra-frame predicted pixel generation unit 205B may derive weighting factors using only neighboring pixels in the area located above the block to be decoded, as shown in Figure 12(b), or may derive weighting factors using only neighboring pixels in the area located to the left of the block to be decoded, as shown in Figure 12(c).

[0246] The second intra-frame predicted pixel generation unit 205B may be configured to allow selection of multiple ranges for specifying the neighboring pixels. With this configuration, appropriate weighting coefficients can be derived, thereby improving coding efficiency.

[0247] (Basic concept of IBC OBMC) The second intra-frame predicted pixel generation unit 205B may perform correction to the reference pixels in the reference block of the block to be decoded by calculating a weighted average of the reference pixels in the reference block of the block to be decoded and the neighboring pixels in the reference block of the adjacent block, rather than the reference pixels themselves of the block to be decoded.

[0248] This provides the effect of smoothly connecting block boundaries between a predicted block generated by IBC and its adjacent blocks, similar to overlapped block motion compensation (OBMC) for inter-frame prediction means disclosed in Non-Patent Document 2.

[0249] FIG. 13 shows a case where the adjacent block to the block to be decoded has BV.

[0250] As shown in Figure 13, first, the second intra-frame predicted pixel generation unit 205B obtains neighboring pixels (hereinafter referred to as neighboring reference neighboring pixels) corresponding to the relative position of the block to be decoded in the neighboring reference block referenced by the BV of the neighboring block.

[0251] In the example of FIG. 13, the adjacent block is located to the left of the current block, so the second intra-frame predicted pixel generation unit 205B obtains adjacent reference neighborhood pixels on the right side of the adjacent reference block.

[0252] The range of adjacent reference neighborhood pixels may be set to a fixed value or may be set to a variable value.

[0253] For example, the second intra-frame predicted pixel generation unit 205B may change the range of adjacent reference neighboring pixels according to the block size and aspect ratio.

[0254] Second, the second intra-frame predicted pixel generation unit 205B calculates a weighted average of adjacent reference neighboring pixels and reference pixels of the block to be decoded. Hereinafter, this process will be referred to as "IBC OBMC."

[0255] (Determination of IBC OBMC Application and Application Processing Unit) The second intra-frame predicted pixel generation unit 205B may determine whether or not to apply IBC OBMC on a block-to-be-decoded basis, or on a block-to-be-decoded-block-by-block basis that is smaller than the block to be decoded (hereinafter, referred to as a sub-block), or may make the determination in two stages, on a block-to-decoded-block basis and a sub-block basis.

[0256] As an example of a sub-block-by-sub-block determination, the second intra-frame predicted pixel generation unit 205B may determine whether or not to apply IBC OBMC for each 4×4 pixel sub-block facing the block boundary between the left and top of the block to be decoded, as disclosed in Non-Patent Document 2.

[0257] In this way, by determining whether or not IBC OBMC is applied for each block to be decoded, it is possible to suppress an increase in the amount of processing required for the determination.

[0258] On the other hand, by determining whether or not to apply IBC OBMC on a sub-block basis, when IBC is applied to a block to be decoded, IBC OBMC can be applied to parts of the block to be decoded where IBC OBMC works effectively, thereby improving prediction accuracy.

[0259] Furthermore, the second intra-frame predicted pixel generation unit 205B may apply IBC OBMC to blocks (hereinafter, sub-blocks) smaller than the current block to be decoded within the current block to be decoded, based on the result of determining whether or not to apply IBC OBMC.

[0260] (Conditions for Applying IBC OBMC) The second intra-frame predicted pixel generation unit 205B may determine to apply IBC OBMC when predetermined conditions are satisfied for each block to be decoded and / or each sub-block, and may determine not to apply IBC OBMC when the predetermined conditions are not satisfied.

[0261] The second intra-frame predicted pixel generation unit 205B may configure the predetermined condition to be at least one of the following conditions: 1. Control information (IBC OBMC flag) that enables IBC OBMC to be applied in units of sequences and / or pictures and / or slices is valid. 2. Control information (IBC OBMC flag) that enables IBC OBMC to be applied in units of blocks to be decoded is valid. 3. The area (number of pixels) of the block to be decoded is 32 pixels or more. * Here, condition 3 may be 16 pixels, 64 pixels, or 128 pixels instead of 32 pixels. 4. An adjacent block adjacent to the block to be decoded (or sub-block) has a BV or motion vector. 5. The BV of the block to be decoded (or sub-block) is different from the BV or motion vector of the adjacent block. 6. Local luminance compensation disclosed in Non-Patent Document 2 is not applied (is disabled) to the block to be decoded. 7. 7. The maximum error between the reference pixel based on the BV of the block (or sub-block) to be decoded and the pixel value of the adjacent reference neighborhood pixel based on the BV or motion vector of the adjacent block is equal to or less than a predetermined threshold value. 8. There are many dominant gradients in the gradient histogram of the reference pixel of the block to be decoded. 9. There is one BV of the block (or sub-block) to be decoded. 10. There is one BV or motion vector of the adjacent block of the block (or sub-block) to be decoded. Below, we will describe examples of modifications of the above-mentioned predetermined conditions.

[0262] Regarding the above-mentioned condition 5, if the reference frame referred to by the BV of the block (or sub-block) to be decoded is different from the reference frame referred to by the BV or motion vector of the adjacent block, the second intra-frame predicted pixel generation unit 205B may determine that the BV of the block (or sub-block) to be decoded is different from the BV or motion vector of the adjacent block.

[0263] For the above conditions 6 and 7, the second intra-frame predicted pixel generation unit 205B may use predicted pixels obtained by applying an interpolation filter to the reference pixels, rather than using the reference pixels themselves.

[0264] Furthermore, the second intra-frame predicted pixel generation unit 205B can set different application restrictions for IBC OBMC depending on the number of derived BVs for the current block (or sub-block) to be decoded or for an adjacent block.

[0265] The second intra-frame predicted pixel generation unit 205B may add a condition that the BV of the current block (or sub-block) to be decoded is one to the above-mentioned predetermined conditions.

[0266] The second intra-frame predicted pixel generation unit 205B limits the application of IBC OBMC only when the BV of the block (or sub-block) to be decoded is one, thereby suppressing an increase in memory bandwidth for obtaining adjacent reference neighboring pixels required when applying IBC OBMC.

[0267] The second intra-frame predicted pixel generation unit 205B may add a condition that the number of BVs or motion vectors of the adjacent blocks of the current block (or sub-block) to be decoded is one to the above-mentioned predetermined conditions.

[0268] The second intra-frame predicted pixel generation unit 205B limits the application of IBC OBMC only when there is one BV or motion vector in the adjacent blocks of the block (or sub-block) to be decoded, thereby suppressing an increase in memory bandwidth for obtaining the adjacent reference neighboring pixels required when applying IBC OBMC.

[0269] When there are two or more BVs or motion vectors of adjacent blocks of the block (or sub-block) to be decoded, the second intra-frame predicted pixel generation unit 205B may select one BV or motion vector by comparing the size of the BVs or motion vectors of such adjacent blocks or the template cost.

[0270] For example, the second intra-frame predicted pixel generation unit 205B may select the BV or motion vector of the adjacent block that has the smallest magnitude or the smallest template cost.

[0271] Setting the above-described conditions for applying IBC OBMC in units of a block to be decoded and / or in units of a sub-block has the following aims (expected effects).

[0272] For example, in CG images and screen images, edges are often clearly defined in the original image, and block boundaries tend to be discontinuous. Therefore, in such images, not applying IBC OBMC makes it easier to suppress prediction errors near block boundaries.

[0273] Furthermore, the second intra-frame predicted pixel generation unit 205B can apply IBC OBMC only to specific slices or specific block sizes.

[0274] In this way, by limiting the application of IBC OBMC depending on the slice and / or block size, it is possible to obtain the effect of reducing the amount of coding processing.

[0275] For example, IBC applies slice restrictions, and IntraTMP does not apply slice restrictions.

[0276] IntraTMP requires less BV search processing and has lower prediction accuracy than IBC, so increasing the number of pixels to which it can be applied can improve coding efficiency (weighted average of IBC and OBMC). Alternatively, the second intra-frame predicted pixel generation unit 205B may apply the correction used in the correction of the reference pixels described above to the neighboring pixels.

[0277] The second intra-frame predicted pixel generation unit 205B derives weighting factors from all or some of the pixels of the adjacent block and the pixels of the adjacent reference block.

[0278] That is, as shown in Figure 14, the second intra-frame predicted pixel generation unit 205B designates the pixel of the adjacent block as P' and the pixel of the adjacent reference block as Q', derives a weighting coefficient C (Y1 in Figure 14), applies it to the nearby pixel Q of the adjacent reference block to obtain a correction value P (Y2 in Figure 14), and calculates a weighted average with the predicted pixel of the block to be decoded (Y3 in Figure 14).

[0279] According to this configuration, in either case, the nearby pixels of the adjacent reference blocks are reflected in the predicted pixels of the block to be decoded, thereby reducing prediction errors and improving coding efficiency.

[0280] In addition, if the number of BVs differs between the block to be decoded and the reference block, the second intra-frame predicted pixel generation unit 205B adjusts the number of BVs in the block with the larger number of BVs to the number of BVs in the block with the smaller number of BVs (reducing the number of BVs in the block to be decoded and the adjacent block to the minimum number of BVs).

[0281] Similarly, when the pixel accuracy of the BVs differs between the block to be decoded and the reference block, the second intra-frame predicted pixel generation unit 205B adjusts the pixel accuracy of the BV with finer pixel accuracy to the pixel accuracy of the BV with coarser pixel accuracy (rounding the pixel accuracy of each BV of the block to be decoded and the adjacent block to the maximum pixel accuracy).

[0282] (IBC GPM) When IBC GPM is applied to the block to be decoded, the second intra-frame predicted pixel generation unit 205B may perform a weighted average of reference pixels (reference pixels) of one or more BVs for each divided area divided into two by a dividing line of the IBC GPM, in accordance with the distance from the dividing line of the IBC GPM.

[0283] As a modified example, the second intra-frame predicted pixel generation unit 205B may set the area where the weighted average is performed, that is, the number of pixels in the direction from the division line of the IBC GPM to each divided area, either fixedly or adaptively.

[0284] The second intra-frame predicted pixel generation unit 205B may set values ​​such as 0 pixel, 1 / 4 pixel, 1 / 2 pixel, 1 pixel, 2 pixels, 4 pixels, and 8 pixels as a fixed setting method.

[0285] For example, for a screen image, by using a small number of pixels, such as 0 pixel or 1 / 4 pixel, as the number of pixels in the weighted average region width of the IBC GPM, the division lines of the IBC GPM can be easily applied, and the pixel values ​​of the edge boundaries specific to the screen image can be maintained without being excessively smoothed, making it easy to reduce prediction errors.

[0286] Furthermore, the second intra-frame predicted pixel generating unit 205B can use the GPM adaptive blending method disclosed in Non-Patent Document 2 as a method for adaptively setting.

[0287] For example, for natural images, the prediction error near the dividing line of the IBC GPM can be easily reduced by adaptively setting the number of pixels of the weighted average region width of the IBC GPM based on control information and block size, as in the adaptive blending method of GPM disclosed in Non-Patent Document 2.

[0288] <Transform> The inverse transform unit 203 may adaptively select one transform base from a plurality of different transform bases and apply inverse transform processing to the transform coefficients of the block to be decoded to which IBC (or IntraTMP) is applied.

[0289] Here, as an example of a plurality of different transform bases, the inverse transform unit 203 may use Multiple Transform Selection (MTS) disclosed in Non-Patent Document 1.

[0290] Furthermore, the MTS disclosed in Non-Patent Document 1 includes an MTS for intra-frame prediction and an MTS for inter-frame prediction.

[0291] The inverse transform unit 203 may apply MTS for intra-frame prediction disclosed in Non-Patent Document 1, or may apply MTS for inter-frame prediction disclosed in Non-Patent Document 1.

[0292] The inverse transform unit 203 may identify and apply a transform base from among the candidate transform bases in the MTS based on the value of control information for identifying candidate transform bases for the MTS decoded or estimated by the decoding unit 201.

[0293] As a modified example, the inverse transform unit 203 may apply two-stage inverse transform processing using different or the same transform bases to the transform coefficients of the current block to which IBC (or IntraTMP) is applied.

[0294] Here, as an example of two-stage inverse transform processing using different transform bases, the inverse transform unit 203 may use the low-frequency non-separable transform (LFNST) disclosed in Non-Patent Document 1.

[0295] The decoding unit 201 selects one transform base from among a plurality of different transform bases and decodes control information for specifying whether or not to inverse transform the transform coefficients, and the inverse transform unit 203 may identify and apply a transform base based on the value of the control information for identifying a candidate transform base for the LFNST decoded or estimated by the decoding unit 201 from among the candidate transform bases in the LFNST.

[0296] The reason for applying MTS or LFNST to a block to be decoded to which IBC (or IntraTMP) is applied is as follows.

[0297] In IBC (or IntraTMP), due to the above-mentioned signal processing characteristics, the blocks to which IBC (or IntraTMP) is applied often have complex image characteristics such as edges, stripes, etc. Therefore, the transform coefficients derived after transforming the prediction error of the block to be decoded to which IBC (or IntraTMP) is applied tend to be distributed in high-frequency components, or have a bias toward horizontal, vertical, or diagonal components.

[0298] For such a distribution of transform coefficients, adaptively selecting and applying an effective inverse transform base from a plurality of different transform bases, or applying a two-stage inverse transform using different or the same transform bases, is expected to have the effect of reducing redundancy between transform coefficients (and thus spatial redundancy of prediction errors), and as a result, is expected to improve coding efficiency.

[0299] <Color Difference> In decoding (or encoding) moving images, in order to reduce the amount of information, the RGB signals that make up the moving images may be converted into a luminance signal (Y signal) and color difference signals (UV signal or CbCr signal) and then decoded (or encoded).

[0300] To further reduce the amount of information, the number of pixels of the color difference signals may be thinned out (downsampled) at regular intervals (for example, halved in the horizontal and / or vertical directions) relative to the number of pixels of the luminance signal.

[0301] Furthermore, Non-Patent Document 1 discloses a technique for making the division structures of decoding (or encoding) tree blocks within the same decoding (or encoding) tree block the same (single tree structure) and a technique for changing the division structures (dual tree structure) in a luminance signal image and a color difference signal image.

[0302] In the above cases, for example, when the image of the color difference signal is downsampled relative to the image of the luminance signal and the decoding (or encoding) tree block containing the block to be decoded has a single tree structure, the BV derivation unit 205A may derive a BV for the block to be decoded of the color difference signal based on the magnitude (horizontal component and vertical component) of one or more BVs derived for the block to be decoded of the luminance signal and the downsampling ratio of the luminance signal and the color difference signal.

[0303] More specifically, the BV derivation unit 205A may reduce the size (horizontal component and vertical component) of one or more BVs derived for the block to be decoded of the luminance signal in accordance with the downsampling ratio of the luminance signal and the color difference signal.

[0304] Furthermore, among the above cases, for example, when the image of the color difference signal is downsampled relative to the image of the luminance signal and the decoding (or encoding) tree block containing the block to be decoded has a dual tree structure, the BV derivation unit 205A does not need to derive a BV for the block to be decoded of the color difference signal.

[0305] <Signaling> Hereinafter, the control information (syntax) used by the decoder 201 to decode the mode in which BV is maintained (hereinafter, referred to as BV mode) will be described.

[0306] The coded information input to the decoding unit 201 can include a sequence parameter set (SPS) that compiles control information (syntax) for each sequence to be decoded.

[0307] The coded information may also include a picture parameter set (PPS) or a picture header (PH) that summarizes control information for each picture to be decoded.

[0308] Alternatively, the coded information may include a slice header (SH) that summarizes control information for each slice to be decoded.

[0309] Hereinafter, a decoding control method for various flags related to IBC in units of sequences, pictures, or slices in the decoding unit 201 and definitions (meanings) of the various flags will be described with reference to FIGS. 15 and 16. FIG.

[0310] 15 is a diagram showing a method for controlling the decoding of a predetermined flag related to the IBC in units of sequences. Specifically, the decoding unit 201 operates as follows.

[0311] 15, in step S100, the decoding unit 201 determines whether or not sps_ibc_enabled_flag (second syntax) is 1. If it is 1, the operation proceeds to step S101, and if it is not 1, the operation proceeds to step S102.

[0312] Here, sps_ibc_enabled_flag is a flag that controls (specifies) whether IBC can be applied on a sequence-by-sequence basis, and the decoding unit 201 specifies that IBC can be applied if sps_ibc_enabled_flag is 1, and specifies that IBC cannot be applied if sps_ibc_enabled_flag is 0.

[0313] The decoding unit 201 decodes the predetermined flag in step S101, and ends the process without decoding the predetermined flag in step S102.

[0314] Here, the decoding unit 201 may decode, as the predetermined flag, various flags related to the IBC as shown in Fig. 16. Specifically, the following is true.

[0315] The sps_biibc_enabled_flag shown in Figure 16 is a flag (first syntax) that controls (specifies) whether or not bi-predictive IBC can be applied on a sequence-by-sequence basis, and the decoding unit 201 specifies that bi-predictive IBC is applicable when sps_biibc_enabled_flag is 1, and specifies that bi-predictive IBC is not applicable when sps_biibc_enabled_flag is 0.

[0316] The decoding unit 201 may decode sps_multiibc_enabled_flag as a modification of sps_biibc_enabled_flag.

[0317] sps_multiibc_enabled_flag is a flag that controls (specifies) whether or not multi-prediction IBC can be applied on a sequence-by-sequence basis, and the decoding unit 201 specifies that multi-prediction IBC can be applied when sps_multiibc_enabled_flag is 1, and specifies that multi-prediction IBC cannot be applied when sps_multiibc_enabled_flag is 0.

[0318] The sps_ibcmbvd_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether or not IBC MBVD is applicable on a sequence-by-sequence basis. When sps_ibcmbvd_enabled_flag is 1, the decoding unit 201 specifies that IBC MBVD is applicable, and when sps_ibcmbvd_enabled_flag is 0, the decoding unit 201 specifies that IBC MBVD is not applicable.

[0319] sps_six_minus_max_num_ibc_merge_cand shown in FIG. 16 is control information that sets the maximum value of the candidate list for the IBC merge (or IBC BVP) described above in units of sequences.

[0320] For example, if the maximum value that can be set in the candidate list of an IBC merge (or IBC BVP) designed by the image decoding device 200 is 6 (corresponding to "six" in sps_six_minus_max_num_ibc_merge_cand), the maximum value can be changed using such control information.

[0321] Specifically, the decoding unit 201 may control (change the setting of) the maximum value of the candidate list for IBC merge (or IBC BVP) of the image decoding device 200 on a sequence-by-sequence basis as follows.

[0322] if(sps_ibc_enabled_flag) MaxNumIbcMergeCand=6-sps_six_minus_max_num_ibc_merge_cand else MaxNumIbcMergeCand=0 Here, MaxNumIbcMergeCand is an internal parameter in the decoding device that represents the maximum value of a block vector candidate list for deriving one or more block vectors to be used for IBC merging (or IBC BVP) set in units of a sequence (or a picture, a slice, or a block to be decoded).

[0323] The sps_ibctm_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether or not TM (IBC TM) for IBC can be applied on a sequence-by-sequence basis. When sps_ibctm_enabled_flag is 1, the decoding unit 201 specifies that IBC TM can be applied, and when sps_ibctm_enabled_flag is 0, the decoding unit 201 specifies that IBC TM cannot be applied.

[0324] The sps_ibcdbvr_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether DBVR for IBC (IBC DBVR) is applicable on a sequence-by-sequence basis. If sps_ibcdbvr_enabled_flag is 1, the decoding unit 201 specifies that IBC DBVR is applicable, and if sps_ibcdbvr_enabled_flag is 0, the decoding unit 201 specifies that IBC DBVR is not applicable.

[0325] sps_ibcciip_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether or not combined intra-inter prediction (CIIP) (IBC CIIP) for IBC disclosed in Non-Patent Document 2 can be applied to each sequence. If sps_ibcciip_enabled_flag is 1, the decoding unit 201 specifies that IBC CIIP is applicable, and if sps_ibcciip_enabled_flag is 0, the decoding unit 201 specifies that IBC CIIP is inapplicable.

[0326] The sps_ibcgpm_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether or not the IBC GPM can be applied on a sequence-by-sequence basis. When the sps_ibcgpm_enabled_flag is 1, the decoding unit 201 specifies that the IBC GPM can be applied, and when the sps_ibcgpm_enabled_flag is 0, the decoding unit 201 specifies that the IBC GPM cannot be applied.

[0327] The sps_ibcobmc_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether or not IBC OBMC is applicable on a sequence-by-sequence basis. When sps_ibcobmc_enabled_flag is 1, the decoding unit 201 specifies that OBMC for IBC (IBC OBMC) is applicable, and when sps_ibcobmc_enabled_flag is 0, the decoding unit 201 specifies that IBC OBMC is not applicable.

[0328] sps_ibcflm_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether or not the weighting coefficients defined by the above-described polynomials can be applied to IBC on a sequence-by-sequence basis (IBC FLM: IBC Filtered Linear Model). When sps_ibcflm_enabled_flag is 1, the decoding unit 201 specifies that the IBC FLM is applicable, and when sps_ibcflm_enabled_flag is 0, the decoding unit 201 specifies that the IBC FLM is not applicable.

[0329] The sps_ibcmts_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether or not an MTS for IBC (IBC MTS) can be applied to each sequence. When sps_ibcmts_enabled_flag is 1, the decoding unit 201 specifies that the IBC MTS can be applied, and when sps_ibcmts_enabled_flag is 0, the decoding unit 201 specifies that the IBC MTS cannot be applied.

[0330] sps_ibclfnst_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether LFNST for IBC (IBC LFNST) is applicable on a sequence-by-sequence basis. If sps_ibclfnst_enabled_flag is 1, the decoding unit 201 specifies that IBC LFNST is applicable, and if sps_ibclfnst_enabled_flag is 0, the decoding unit 201 specifies that IBC LFNST is not applicable.

[0331] If the above-mentioned various flags are not decoded, the decoding unit 201 may specify the values ​​of these flags as 0.

[0332] 15 and 16, the decoding control method of various flags in units of sequences has been described, but similar control may be performed in smaller units, i.e., in units of pictures or slices. Furthermore, control may be performed only in these specific layers, or in multiple stages across multiple layers.

[0333] For example, by setting only the upper layer, it is possible to suppress an increase in the amount of code, or by setting also the lower layer and then prioritizing the setting in the lower layer, adaptive control is possible.

[0334] In the above example, the correction method is set in units of sequences, pictures, or slices, but the method may be directly selected in units of blocks (described later) without setting these. In this case, the increase in header information can be avoided.

[0335] Hereinafter, with reference to Figures 17 and 18, a decoding method of a flag that controls whether or not to apply IBC using two BVs (bipredictive IBC) in slice units (or picture units or sequence units) in the decoding unit 201, and the definition (meaning) of the flag will be described.

[0336] Note that, hereinafter, a decoding method will be described using an IBC using two BVs (bipredictive IBC) as an example, but a similar decoding method may be realized by interpreting this as an IBC using two or more BVs (multipredictive IBC).

[0337] FIG. 17 is a diagram showing an example of a method for decoding a flag that controls (specifies) whether or not bi-predictive IBC is applicable in the decoding unit 201. In FIG.

[0338] In FIG. 17, the decoding unit 201 may decode or estimate without decoding a flag that controls (specifies) whether or not bi-predictive IBC is applicable, as follows.

[0339] As shown in FIG. 17, in step S200, the decoding unit 201 determines whether sps_ibc_enabled_flag is 1 and sh_slice_type is I (whether it is an I slice).

[0340] If the answer is Yes, the operation proceeds to step S201, and if the answer is No, the operation proceeds to step S202.

[0341] Here, sh_slice_type is control information (syntax) that indicates the type of slice that includes the block to be decoded in units of slices.

[0342] Types of slices include I slices (slices to which first intra-frame prediction or second intra-frame prediction can be applied), B slices (slices to which first intra-frame prediction, second intra-frame prediction or inter-frame prediction can be applied), and P slices (slices to which first intra-frame prediction, second intra-frame prediction or inter-frame prediction can be applied; however, only one-way prediction is applicable for inter-frame prediction).

[0343] In step S201, the decoding unit 201 decodes sh_biibc_enabled_flag, and then ends this processing.

[0344] In step S202, the decoding unit 201 ends this process without decoding sh_biibc_enabled_flag.

[0345] Here, sh_biibc_enabled_flag (third syntax) is a flag that controls whether or not bi-predictive IBC is applicable in units of slices.

[0346] If sh_biibc_enabled_flag is 1, the decoding unit 201 determines that the bi-predictive IBC is applicable, and if sh_biibc_enabled_flag is 0, the decoding unit 201 determines that the bi-predictive IBC is not applicable.

[0347] If sh_biibc_enabled_flag has not been decoded, the decoding unit 201 may estimate the value of sh_biibc_enabled_flag according to the value of sh_slice_type.

[0348] Specifically, the decoding unit 201 may estimate sh_biibc_enabled_flag to be 1 when sh_slice_type is B (a B slice), and may estimate sh_biibc_enabled_flag to be 0 when sh_slice_type is P (a P slice). The decoding unit 201 may estimate sh_biibc_enabled_flag according to the following formula.

[0349] sh_biibc_enabled_flag=(sh_slice_type==B?): 1 or 0 The reason why the flag that controls whether or not bi-predictive IBC is applicable is decoded or estimated on a slice-by-slice basis as described above is as follows.

[0350] Since I slices may have image characteristics for which first-frame intra-prediction is more effective than second-frame intra-prediction such as IBC or IntraTMP, by controlling whether or not bi-predictive IBC can be applied on a slice-by-slice basis, bi-predictive IBC can be applied to slices for which second-frame intra-prediction is particularly effective, improving coding efficiency.On the other hand, bi-predictive IBC cannot be applied to slices for which second-frame intra-prediction is not effective, which reduces the amount of coding required for the bi-predictive IBC described below, and as a result, improved coding efficiency can be expected.

[0351] The reason for estimating sh_biibc_enabled_flag to be 1 without decoding it in B slices is that normal inter-frame prediction (including bi-prediction using two motion vectors) can be applied to B slices, so by making bi-predictive IBC always applicable, it is possible to standardize the design with normal inter-frame prediction and also to expect improved coding efficiency.

[0352] The reason for not decoding sh_biibc_enabled_flag and estimating sh_biibc_enabled_flag to be 0 in P slices is that bi-prediction cannot be applied to normal inter-frame prediction in P slices, so by similarly making bi-predictive IBC also inapplicable, it is possible to standardize the design with normal inter-frame prediction and is also expected to improve coding efficiency.

[0353] Fig. 18 is a modification of Fig. 17. The difference between Fig. 17 and Fig. 16 is step S200A.

[0354] Specifically, as shown in FIG. 18, in step S200A, the decoding unit 201 determines whether sps_ibc_enabled_flag is 1 and sh_slice_type is I or B (whether it is an I slice or a B slice).

[0355] If the answer is Yes, the operation proceeds to step S201, and if the answer is No, the operation proceeds to step S202.

[0356] Here, in step S200A, in addition to sh_slice_type being I (I slice), by adding that sh_slice_type is B (B slice), even if the slice containing the block to be decoded is a B slice, the applicability of bi-predictive IBC can be controlled on a slice-by-slice basis, which is expected to improve coding efficiency.

[0357] Hereinafter, using Figures 19 to 24, we will explain the decoding control method of various flags related to IBC on a block-to-be-decoded basis (decoded block, predicted block, or transform block) in the decoding unit 201, and the definitions (meanings) of the various flags.

[0358] FIG. 19 is a diagram showing an example of a decoding method of pred_mode_ibc_flag, which is a flag that controls whether or not IBC is applied for each block to be decoded (decoded block, predicted block, or transform block) in the decoding unit 201. In FIG.

[0359] Here, when pred_mode_ibc_flag is 1, the decoding unit 201 may specify that IBC is to be applied to the block to be decoded (decoded block, predicted block, or transform block), and when pred_mode_ibc_flag is 0, may specify that IBC is not to be applied.

[0360] If pred_mode_ibc_flag has not been decoded, the decoding unit 201 may estimate that pred_mode_ibc_flag is 0.

[0361] Alternatively, when pred_mode_ibc_flag is 1, the decoding unit 201 may determine whether or not IBC is applied to each block to be decoded (decoded block, predicted block, or transform block) depending on whether or not the block to be decoded is a single tree.

[0362] Specifically, the decoding unit 201 may determine that the IBC is to be applied in the case of a single tree, and may determine that the IBC is not to be applied in the case of a dual tree.

[0363] As a modification, the decoding unit 201 may determine to apply IBC to a luminance block even in the case of a dual tree.

[0364] In addition, the decoding unit 201 may control whether the block to be decoded (decoded block, predicted block, or transformed block) is IBC using CuPredMode, an internal parameter that represents the prediction mode of the block to be decoded, as in Non-Patent Document 1.

[0365] Specifically, if CuPredMode is MODE_IBC, the decoding unit 201 may determine that the block to be decoded (decoded block, predicted block, or transform block) is IBC, and if not, may determine that the block to be decoded (decoded block, predicted block, or transform block) is not IBC.

[0366] The operation of FIG. 19 will be described below.

[0367] As shown in FIG. 19, in step S300, the decoding unit 201 determines whether a predetermined condition is satisfied.

[0368] If the answer is Yes, the operation proceeds to step S301, and if the answer is No, the operation proceeds to step S302.

[0369] In step S301, the decoding unit 201 decodes pred_mode_ibc_flag, and then ends this processing.

[0370] In step S302, the decoding unit 201 does not decode pred_mode_ibc_flag, and ends this process.

[0371] Here, the predetermined condition may include at least one of the following conditions: 1. The width or height of the block to be decoded is not 128 pixels (the width or height of the block to be decoded is 64 pixels or less) *Here, the number of pixels serving as the threshold for condition 1 may be changed to a pixel number that is a power of 2, such as 128 pixels or less, 256 pixels or less, or 32 pixels or less, instead of 64 pixels. 2. The prediction mode of the block to be decoded is not inter-frame prediction or first intra-frame prediction. 3. The block to be decoded is not a chrominance block of a dual tree. Hereinafter, with reference to Figures 20 to 23, a method for selecting an IBC mode (the above-mentioned IBC BVP, IBC merge, or IBC BVP / merge) after the decoding process of Figure 19 in the decoding unit 201 will be described.

[0372] FIG. 20 is a diagram showing an example of a method for selecting an IBC mode (the above-mentioned IBC BVP, IBC merge, and IBC BVP / merge) in the decoding unit 201.

[0373] 20, the decoding unit 201 may select a unique mode from the IBC modes (the above-mentioned IBC BVP, IBC merge, and IBC BVP / merge). Specifically, the selection is as follows.

[0374] As shown in FIG. 20, in step S400, the decoding unit 201 determines whether or not general_merge_flag is 1.

[0375] If the answer is Yes, the operation proceeds to step S401, and if the answer is No, the operation proceeds to step S402.

[0376] Here, general_merge_flag is a flag that controls (specifies) whether or not inter-frame prediction or IBC merging is applied for each block to be decoded.

[0377] When general_merge_flag is 1, it indicates that application of inter-frame prediction or IBC merging is enabled, and when general_merge_flag is 0, it indicates that application of inter-frame prediction or IBC merging is disabled.

[0378] In step S401, the decoding unit 201 determines whether CuPredMode is MODE_IBC.

[0379] If the answer is Yes, the operation proceeds to step S403, and if the answer is No, the operation proceeds to step S404.

[0380] In step S403, the decoding unit 201 transitions to a decoding process related to IBC merging, which will be described later (using FIGS. 21 to 23).

[0381] In step S404, the decoding unit 201 transitions to a decoding process other than the IBC merge process, which will be described later.

[0382] In step S402, the decoding unit 201 determines whether CuPredMode is MODE_IBC.

[0383] If yes, the operation proceeds to step S405, and if no, the operation proceeds to step S406.

[0384] In step S405, the decoding unit 201 transitions to a decoding process related to the IBC BVP, which will be described later (using FIG. 23).

[0385] In step S406, the decoding unit 201 transitions to decoding processing related to a non-IBC BVP, which will be described later.

[0386] Hereinafter, using Figure 21, we will explain the decoding method of a flag for controlling (determining) whether bi-predictive IBC merging is enabled for each block to be decoded in the decoding unit 201 (i.e., whether bi-predictive IBC merging is applied for each block to be decoded).

[0387] Figure 21 is a diagram showing an example of a method for decoding a flag to control (determine) whether bi-predictive IBC merging is enabled for each block to be decoded in the decoding unit 201 (i.e., whether bi-predictive IBC merging is applied for each block to be decoded).

[0388] As shown in Fig. 21 , the decoding unit 201 may decode a flag for controlling (specifying) whether or not bi-predictive IBC merging is enabled for each block to be decoded (i.e., whether or not bi-predictive IBC merging is applied for each block to be decoded).

[0389] As shown in FIG. 21, in step S500, the decoding unit 201 determines whether or not a predetermined condition 2 is satisfied.

[0390] If the answer is Yes, the operation proceeds to step S501, and if the answer is No, the operation proceeds to step S502.

[0391] In step S501, the decoding unit 201 decodes the biibc_merge_flag, and then ends this processing.

[0392] In step S502, the decoding unit 201 ends this process without decoding biibc_merge_flag.

[0393] Here, biibc_merge_flag is a flag (fourth syntax) that controls (specifies) whether or not bi-predictive IBC merging is applied in units of the block to be decoded.

[0394] If biibc_merge_flag is 1, the decoding unit 201 applies bi-predictive IBC merging to the current block to be decoded, and if biibc_merge_flag is 0, the decoding unit 201 specifies that bi-predictive IBC merging should not be applied to the current block to be decoded.

[0395] If biibc_merge_flag has not been decoded, the decoding unit 201 may estimate that biibc_merge_flag is 0.

[0396] Furthermore, predetermined condition 2 may include at least one of the following conditions: 1. sps_ibc_enabled_flag is 1 2. sh_biibc_enabled_flag is 1 (and / or sps_biibc_enabled_flag is 1) 3. general_merge_flag is 1 4. CuPredMode is IBC 5. sh_slice_type is I or B As a modified example, a condition based on the block size (product of the number of vertical and horizontal pixels) of the block to be decoded may be added to predetermined condition 2.

[0397] For example, a condition may be added that the block size of the block to be decoded is 16 pixels or more or 32 pixels or more (or the width or height of the block to be decoded is 8 pixels or more).

[0398] This makes it possible to suppress the application of bi-predictive IBC merging to relatively small blocks to be decoded, which is expected to reduce the amount of processing.

[0399] On the other hand, a condition that the block size of the block to be decoded is smaller than the threshold value used in the determination conditions for determining whether or not to apply IBC merge for unidirectional prediction, such as 32 pixels or less or 16 pixels or less, may be added.

[0400] This makes it possible to suppress the application of bi-predictive IBC merging to relatively large blocks to be decoded, which is expected to reduce the amount of processing.

[0401] Hereinafter, a method for decoding control information related to IBC merging in decoding section 201 will be described with reference to FIG.

[0402] In IBC merging, the decoding unit 201 decodes an IBC merge index (fifth syntax), which is control information for identifying a merge candidate in the merge candidate list, in order to select one or more merge candidates from the above-mentioned merge candidate list.

[0403] FIG. 22 is a diagram showing an example of a method for decoding control information related to IBC merging in the decoder 201. In FIG.

[0404] As shown in Fig. 22, the decoding unit 201 may control the decoding of the control information related to the IBC merge. Specifically, this is as follows.

[0405] As shown in FIG. 22, in step S600, the decoding unit 201 determines whether biibc_merge_flag is 1 or not.

[0406] If yes, the operation proceeds to step S601; if no, the operation proceeds to step S602.

[0407] In step S601, the decoding unit 201 determines whether MaxNumIbcMergeCand is greater than two.

[0408] If the answer is Yes (if MaxNumIbcMergeCand is greater than 2), the operation proceeds to step S603; if the answer is No (if MaxNumIbcMergeCand is 2 or less), the operation proceeds to step S607.

[0409] In step S603, the decoding unit 201 decodes ibc_merge_idx0.

[0410] Here, ibc_merge_idx0 is the first IBC merge index (sixth syntax) in bi-predictive IBC merging.

[0411] In step S604, the decoding unit 201 determines whether ibc_merge_idx0 is not MaxNumIbcMergeCand-2 (ibc_merge_idx0!=MaxNumIbcMergeCand-2).

[0412] If yes, the operation proceeds to step S605; if no, the operation proceeds to step S606.

[0413] In step S605, the decoding unit 201 decodes ibc_merge_idx1, and then ends this processing.

[0414] In step S606, the decoding unit 201 ends this process without decoding ibc_merge_idx1.

[0415] Here, ibc_merge_idx1 is the second IBC merge index (seventh syntax) in bi-predictive IBC merging.

[0416] Here, if the condition that ibc_merge_idx0 is not MaxNumIbcMergeCand-2 is not met in step S604, that is, if ibc_merge_idx0 is MaxNumIbcMergeCand-2, it is obvious that ibc_merge_idx1 is MaxNumIbcMergeCand-1, as will be described later.

[0417] Therefore, in step S606, the decoding unit 201 does not decode ibc_merge_idx1, which is expected to reduce the amount of code.

[0418] In step S607, the decoding unit 201 ends this process without decoding ibc_merge_idx0 and ibc_merge_idx1.

[0419] Here, as described above, MaxNumIbcMergeCand is the maximum number of merge candidates that can be registered in the merge candidate list for IBC merging, and if it is 2 or less in step S601, the IBC merge candidate to be used is obvious even if the two merge indexes are not decoded in bi-predictive IBC merging.

[0420] Therefore, in step S607, the decoding unit 201 does not decode ibc_merge_idx0 and ibc_merge_idx1, which is expected to reduce the amount of code.

[0421] In step S602, the decoding unit 201 determines whether MaxNumIbcMergeCand is greater than one.

[0422] If yes, the operation proceeds to step S608, and if no, the operation proceeds to step S609.

[0423] In step S608, the decoding unit 201 decodes ibc_merge_idx, and then ends this processing.

[0424] In step S609, the decoding unit 201 ends this process without decoding ibc_merge_idx.

[0425] Here, if MaxNumIbcMergeCand is not greater than 1 in step S602, that is, if MaxNumIbcMergeCand is 1, the IBC merge candidate to be used is obvious even if the merge index selected in the unidirectional IBC merge is not decoded.

[0426] Therefore, in step S609, the decoding unit 201 does not decode ibc_merge_idx, which is expected to reduce the amount of code.

[0427] In the above description, the merge indexes for bi-predictive IBC merge (ibc_merge_idx0 and ibc_merge_idx1) and the merge index for uni-predictive IBC merge (ibc_merge_idx) have been described separately, but in the image decoding device 200, ibc_merge_idx0 and ibc_merge_idx may be made common.

[0428] That is, the design of context values ​​for decoding (encoding) and the method of decoding from binary to multi-value (encoding from multi-value to binary), such as truncated binarization, may be standardized.

[0429] FIG. 23 is a diagram showing a modified example of the method for decoding control information related to IBC merging described with reference to FIG. 22 (constructing different lists such as those shown in FIG. 7 for the number of block vectors).

[0430] As shown in Fig. 23, the decoding unit 201 may decode the control information related to the IBC merge. Specifically, the decoding unit 201 decodes the control information related to the IBC merge as follows.

[0431] As shown in FIG. 23, in step S600, the decoding unit 201 determines whether biibc_merge_flag is 1 or not.

[0432] If yes, the operation proceeds to step S601A, and if no, the operation proceeds to step S602.

[0433] In step S601A, the decoding unit 201 determines whether MaxNumIbcMergeCand is greater than one.

[0434] If the answer is Yes, the operation proceeds to step S608A, and if the answer is No (MaxNumIbcMergeCand is 1 or less), the operation proceeds to step S609A.

[0435] In step S608A, the decoding unit 201 decodes ibc_merge_idx, and then ends this processing.

[0436] In step S609A, the decoding unit 201 ends this process without decoding ibc_merge_idx.

[0437] Steps S602, S608 and S609 are the same as those in FIG.

[0438] Hereinafter, a method for decoding a flag for controlling (specifying) whether or not IBC BVP / merge is enabled for each block to be decoded in the decoding unit 201 (i.e., whether or not IBC BVP / merge is applied for each block to be decoded) will be described with reference to FIG. 24 .

[0439] FIG. 24 is a diagram showing an example of a method for decoding a flag for controlling (specifying) whether or not IBC BVP / merge is enabled for each block to be decoded in the decoding unit 201 (i.e., whether or not IBC BVP / merge is applied for each block to be decoded).

[0440] As shown in Fig. 24, the decoding unit 201 may decode a flag for controlling (specifying) whether or not IBC BVP / merge is enabled for each block to be decoded (i.e., whether or not IBC BVP / merge is applied for each block to be decoded).

[0441] As shown in FIG. 24, in step S700, the decoding unit 201 determines whether or not predetermined condition 3 is satisfied.

[0442] If the answer is Yes, the operation proceeds to step S701, and if the answer is No, the operation proceeds to step S702.

[0443] In step S701, the decoding unit 201 decodes ibc_bvpmerge_flag, and then ends this processing.

[0444] In step S702, the decoding unit 201 ends this process without decoding ibc_bvpmerge_flag.

[0445] Here, ibc_bvpmerge_flag is a flag (eighth syntax) that controls (specifies) whether or not IBC BVP / merge is enabled for each block to be decoded (i.e., whether or not IBC BVP / merge is applied for each block to be decoded).

[0446] If ibc_bvpmerge_flag is 1, the decoding unit 201 applies IBC BVP / merge to the block to be decoded, and if ibc_bvpmerge_flag is 0, the decoding unit 201 specifies that IBC BVP / merge should not be applied to the block to be decoded.

[0447] If ibc_bvpmerge_flag has not been decoded, the decoding unit 201 may estimate that ibc_bvpmerge_flag is 0.

[0448] Furthermore, predetermined condition 3 may include at least one of the following conditions: 6. sps_ibc_enabled_flag is 1; 7. general_merge_flag is 1; 8. CuPredMode is IBC; and 9. sh_slice_type is I or B. As a modification, predetermined condition 3 may be modified by adding a condition based on the block size (product of the number of vertical and horizontal pixels) of the block to be decoded.

[0449] For example, a condition may be added that the block size of the block to be decoded is 16 pixels or more or 32 pixels or more (or the width or height of the block to be decoded is 8 pixels or more).

[0450] This makes it possible to suppress the application of IBC BVP / merge to relatively small blocks to be decoded, which is expected to reduce the amount of processing.

[0451] On the other hand, a condition that the block size of the block to be decoded is smaller than the threshold value used in the determination conditions for determining whether or not to apply IBC merge for unidirectional prediction, such as 32 pixels or less or 16 pixels or less, may be added.

[0452] This makes it possible to suppress the application of IBC BVP / merge to relatively large blocks to be decoded, which is expected to reduce the amount of processing. Hereinafter, a method for decoding control information related to IBC BVP / merge in the decoding unit 201 will be described with reference to FIG. 25 .

[0453] FIG. 25 is a diagram showing an example of a method for decoding control information related to IBC BVP / merge in the decoding section 201.

[0454] As shown in Fig. 25, the decoding unit 201 may decode the control information related to the IBC BVP / merge. Specifically, the decoding unit 201 decodes the control information as follows.

[0455] As shown in FIG. 25, in step S800, the decoding unit 201 determines whether ibc_bvpmerge_flag is 1 or not.

[0456] If the answer is Yes, the operation proceeds to step S801, and if the answer is No, the operation ends the processing.

[0457] In step S801, the decoding unit 201 decodes the control information related to the BVP and BVD, and the process proceeds to step S802.

[0458] In step S802, the decoding unit 201 determines whether MaxNumIbcMergeCand is greater than one.

[0459] If the answer is Yes, the operation proceeds to step S803, and if the answer is No (MaxNumIbcMergeCand is 1 or less), the operation proceeds to step S804.

[0460] In step S803, the decoding unit 201 decodes ibc_merge_idx, and then ends this processing.

[0461] In step S804, the decoding unit 201 ends this process without decoding ibc_merge_idx.

[0462] Here, as described above, MaxNumIbcMergeCand is the maximum number of merge candidates that can be registered in the merge candidate list in the IBC merge. If MaxNumIbcMergeCand is 1 or less in step S801, the IBC merge candidate to be used is obvious even if the merge index is not decoded in the IBC BVP / merge.

[0463] Therefore, in step S804, the decoding unit 201 does not decode ibc_merge_idx, which is expected to reduce the amount of code.

[0464] Hereinafter, a method for decoding control information relating to the above-mentioned MBVD for correcting the BV of the IBC in the decoding section 201 will be described with reference to FIG.

[0465] FIG. 26 is a diagram showing an example of a method for decoding control information relating to the above-mentioned MBVD for correcting the BV of the IBC in the decoding section 201.

[0466] As shown in Fig. 26, the decoding unit 201 may decode the control information related to the MBVD described above that corrects the BV of the IBC. Specifically, the control information is as follows.

[0467] As shown in FIG. 26, in step S901, the decoding unit 201 determines whether biibc_merge_flag is 1 or not.

[0468] If yes, the operation proceeds to step S902; if no, the operation proceeds to step S903.

[0469] In step S902, the decoding unit 201 determines whether ibc_mbvd_flag is 1.

[0470] If yes, the operation proceeds to step S904; if no, the operation proceeds to step S905.

[0471] Here, ibc_mbvd_flag is a flag for controlling whether or not MBVD is applied for each block to be decoded.

[0472] If ibc_mbvd_flag is 1, the decoding unit 201 determines that MBVD is to be applied, and if ibc_mbvd_flag is 0, the decoding unit 201 determines that MBVD is not to be applied.

[0473] If ibc_mbvd_flag has not been decoded, the decoding unit 201 may estimate that ibc_mbvd_flag is 0.

[0474] In step S904, the decoding unit 201 determines whether bimbvd_flag is 1.

[0475] If the answer is Yes, the operation proceeds to step S906, and if the answer is No, the operation proceeds to step S907.

[0476] Here, bimbvd_flag is a flag for controlling, for each block to be decoded, whether or not MBVD is applied to two pairs of merge candidates (BVs) in bi-predictive IBC merging.

[0477] The decoding unit 201 determines that MBVD is to be applied to two sets of merge candidates (BVs) when bimbvd_flag is 1, and determines that MBVD is not to be applied to two sets of merge candidates (BVs) when bimbvd_flag is 0 (i.e., MBVD is to be applied to only one set of merge candidates (BVs) in a bi-predictive IBC merge).

[0478] If bimbvd_flag has not been decoded, the decoding unit 201 may estimate that bimbvd_flag is 0.

[0479] In step S906, the decoding unit 201 decodes mbvd_merge_cand_idx0 and mbvd_merge_cand_idx1.

[0480] Here, mbvd_merge_cand_idx0 is an index for selecting, from the merge candidate list, the first set of merge candidates (BVs) to which MBVD is applied, out of two sets of merge candidates (BVs) in a bi-predictive IBC merge, for each block to be decoded.

[0481] If mbvd_merge_cand_idx0 has not been decoded, the decoding unit 201 may estimate that mbvd_merge_cand_idx0 is 0.

[0482] Furthermore, mbvd_merge_cand_idx1 is an index for selecting, from the merge candidate list, the second set of merge candidates (BVs) to which MBVD is applied, out of two sets of merge candidates (BVs) in a bi-predictive IBC merge, for each block to be decoded.

[0483] If mbvd_merge_cand_idx1 has not been decoded, the decoding unit 201 may estimate that mbvd_merge_cand_idx1 is 0.

[0484] When decoding mbvd_merge_cand_idx0 and mbvd_merge_cand_idx1, the decoding unit 201 may not assign a magnitude relationship between them in advance, or may assign a magnitude relationship such that mbvd_merge_cand_idx0<mbvd_merge_cand_idx1.

[0485]

[0047] When a magnitude relationship is not provided, the decoding unit 201 decodes mbvd_merge_cand_idx0, then excludes the merge candidate corresponding to mbvd_merge_cand_idx0 from the merge candidate list, and then decodes mbvd_merge_cand_idx1, thereby making it possible to derive different merge candidates even if mbvd_merge_cand_idx0 and mbvd_merge_cand_idx1 are the same, and therefore improvement in coding efficiency can be expected. This is an index for selecting, for each block to be decoded, from the merge candidate list, a first set of merge candidates (BVs) to which MBVD is applied, out of two sets of merge candidates (BVs) in a bi-predictive IBC merge.

[0486] If mbvd_merge_cand_idx0 has not been decoded, the decoding unit 201 may estimate that mbvd_merge_cand_idx0 is 0.

[0487] In step S908, the decoding unit 201 decodes mbvd_idx0 and mbvd_idx1, and ends this processing.

[0488] Here, mbvd_idx0 and mbvd_idx1 are indexes for deriving correction vectors for the first and second sets of merge candidates (BVs) of two sets of merge candidates in bi-predictive IBC merging.

[0489] Specifically, the values ​​of mbvd_idx0 and mbvd_idx1 correspond to discrete reference positions that the correction vector can take, as disclosed in Non-Patent Document 2.

[0490] The discrete reference positions are defined by the direction and distance of a correction vector with the BV of the merge candidate as its origin.

[0491] The directions may be configured as up, down, left, right, and vertical (a total of four directions, vertical and horizontal), as in Non-Patent Document 1, or as in Non-Patent Document 2, as in eight directions, adding four diagonal directions of 45 degrees, 135 degrees, 225 degrees, and 315 degrees to up, down, left, and right.

[0492] Furthermore, with regard to the distance, if the pixel precision of the IBC is limited to integer precision (i.e., only integer precision pixels can be selected) in units of a sequence, picture, slice, or block to be decoded, the distance may be configured as 1 pixel, 4 pixels, 8 pixels, 12 pixels, 16 pixels, 24 pixels, 32 pixels, 40 pixels, 48 ​​pixels, 56 pixels, 72 pixels, 80 pixels, 88 pixels, 96 pixels, 104 pixels, 112 pixels, 120 pixels, or 128 pixels, as in Non-Patent Document 2.

[0493] As another example, if the pixel precision of the IBC is not limited to integer precision (i.e., both fractional precision pixel and integer pixel precision are selectable) for a sequence, picture, slice, or block to be decoded, 1 / 4 pixel and 1 / 8 pixel may be added in addition to the integer pixel options described above.

[0494] In step S909, the decoding unit 201 proceeds to step S601 in FIG. 22, and when this operation is completed, this process is terminated.

[0495] In step S907, the decoding unit 201 decodes mbvd_merge_cand_idx0.

[0496] In step S910, the decoding unit 201 decodes mbvd_idx0.

[0497] In step S911, the decoding unit 201 proceeds to step S601 in FIG. 22, and when this operation is completed, this process is terminated.

[0498] In step S905, the decoding unit 201 proceeds to step S601 in FIG. 22, and when this operation is completed, this process is terminated.

[0499] In step S903, the decoding unit 201 proceeds to step S602 in FIG. 22, and when this operation is completed, ends this processing.

[0500] Hereinafter, a modification of the method of applying the second intra-frame prediction in units of blocks will be described with reference to FIG.

[0501] As shown in FIG. 27, in step S1001, the decoding unit 201 determines whether the block to be decoded is in a mode that retains BV.

[0502] If the answer is Yes, the operation proceeds to step S1002, and if the answer is No, the operation ends.

[0503] In step S1002, the decoding unit 201 decodes cu_ibc_flag, which is a control signal indicating the number of BVs used in the second intra-frame prediction.

[0504] Here, by setting the maximum number of BVs to 2, the decoding unit 201 decodes the data with one BV when cu_ibc_flag is 0, and decodes the data with two BVs when cu_ibc_flag is 1.

[0505] In step S1003, the decoding unit 201 determines whether the number of BVs is one or two.

[0506] In other words, in step S1003, the decoding unit 201 determines whether cu_ibc_flag is 0 or not.

[0507] If there is one BV (cu_ibc_flag == 0) or if the BVP candidate list uses the L0 list and the L1 list, in step S1004, the decoding unit 201 decodes cu_ibc_idx0, which is a control signal that specifies a BV from the BVP candidate list.

[0508] If there is more than one BV (cu_ibc_flag!=0) and the BVP candidate list consists of only the L0 list, in steps S1004 and S1005, the decoding unit 201 decodes cu_ibc_idx0 and cu_ibc_idx1, which are control signals that specify a BV from the BVP candidate list.

[0509] When cu_ibc_idx1 is expressed in relative coordinates, the decoding unit 201 decodes cu_ibc_idx0+cu_ibc_idx1 as cu_ibc_idx1 in absolute coordinates.

[0510] FIG. 28 shows a flowchart for applying the corrected BV to the BV.

[0511] As shown in FIG. 28, in step S1101, the decoding unit 201 determines whether the current block to be decoded is in a mode that retains BV.

[0512] If the answer is Yes, the operation proceeds to step S1102, and if the answer is No, the operation ends.

[0513] In step S1102, the decoding unit 201 decodes cu_ibc_flag, which is a control signal indicating the number of BVs used in the second intra-frame prediction.

[0514] Here, by setting the maximum number of BVs to 2, the decoding unit 201 decodes the data with one BV when cu_ibc_flag is 0, and decodes the data with two BVs when cu_ibc_flag is 1.

[0515] In step S1103, the decoding unit 201 determines whether the number of BVs is one or two.

[0516] In other words, in step S1103, the decoding unit 201 determines whether cu_ibc_flag is 0 or not.

[0517] If there is one BV (cu_ibc_flag == 0) or if the BVP candidate list uses the L0 list and the L1 list, in step S1104, the decoding unit 201 decodes cu_ibc_idx0, which is a control signal that specifies a BV from the BVP candidate list.

[0518] In step S1105, the decoding unit 201 decodes cu_ibc_dmv0, which is control information representing the corrected BV, and adds cu_ibc_dmv0 to the BV.

[0519] If there is more than one BV (cu_ibc_flag!=0) and the BVP candidate list consists of only the L0 list, in steps S1106 and S1107, the decoding unit 201 decodes cu_ibc_idx0 and cu_ibc_idx1, which are control signals that specify a BV from the BVP candidate list.

[0520] When cu_ibc_idx1 is expressed in relative coordinates, the decoding unit 201 decodes cu_ibc_idx0+cu_ibc_idx1 as cu_ibc_idx1 in absolute coordinates.

[0521] In steps S1108 and S1109, the decoding unit 201 decodes cu_ibc_dmv0 and cu_ibc_dmv1, which are control information indicating the corrected BV, and adds cu_ibc_dmv0 and cu_ibc_dmv1 to the corresponding BVs, respectively.

[0522] Hereinafter, a method for decoding a flag for controlling (specifying) whether or not bi-predictive IBC BVP is valid for each block to be decoded in the decoding unit 201 (i.e., whether or not bi-predictive IBC BVP is applied for each block to be decoded) will be described with reference to FIG. 29 .

[0523] FIG. 29 is a flowchart showing an example of a method for decoding a flag for controlling (specifying) whether or not bi-predictive IBC BVP is enabled for each block to be decoded in the decoding unit 201 (i.e., whether or not bi-predictive IBC BVP is applied for each block to be decoded).

[0524] As shown in Fig. 29 , the decoding unit 201 may decode a flag for controlling (specifying) whether or not the bi-predictive IBC BVP is enabled for each block to be decoded (i.e., whether or not the bi-predictive IBC BVP is applied for each block to be decoded).

[0525] As shown in FIG. 29, in step S1200, the decoding unit 201 determines whether or not predetermined condition 4 is satisfied.

[0526] If the answer is Yes, the operation proceeds to step S1201; if the answer is No, the operation proceeds to step S1202.

[0527] In step S1201, the decoding unit 201 decodes biibc_bvp_flag, and then ends this processing.

[0528] In step S1202, the decoding unit 201 ends this process without decoding biibc_bvp_flag.

[0529] Here, biibc_bvp_flag is a flag (ninth syntax) that controls (specifies) whether or not bi-predictive IBC BVP is applied in units of the block to be decoded.

[0530] If biibc_bvp_flag is 1, the decoding unit 201 applies bi-predictive IBC BVP to the block to be decoded, and if biibc_bvp_flag is 0, the decoding unit 201 specifies that bi-predictive IBC BVP is not to be applied to the block to be decoded.

[0531] If biibc_bvp_flag has not been decoded, the decoding unit 201 may estimate biibc_bvp_flag to be 0.

[0532] Furthermore, predetermined condition 4 may include at least one of the following conditions: 1. sps_ibc_enabled_flag is 1 2. sh_biibc_enabled_flag is 1 (and / or sps_biibc_enabled_flag is 1) 3. general_merge_flag is 0 4. CuPredMode is IBC 5. sh_slice_type is I or B As a modification, predetermined condition 4 may be modified by adding a condition based on the block size (product of the number of vertical and horizontal pixels) of the block to be decoded.

[0533] For example, a condition may be added that the block size of the block to be decoded is 16 pixels or more or 32 pixels or more (or the width or height of the block to be decoded is 8 pixels or more).

[0534] This makes it possible to suppress the application of bi-predictive IBC merging to relatively small blocks to be decoded, which is expected to reduce the amount of processing.

[0535] On the other hand, a condition may be added that the block size of the block to be decoded is 32 pixels or less or 16 pixels or less, that is, the number of pixels is smaller than the threshold used in the determination condition for determining whether or not to apply IBC BVP for unidirectional prediction.

[0536] This makes it possible to suppress the application of bi-predictive IBC BVP to relatively large blocks to be decoded, and is therefore expected to reduce the amount of processing.

[0537] Hereinafter, a method for decoding control information related to IBC BVP in decoding section 201 will be described with reference to FIG.

[0538] FIG. 30 is a flowchart showing an example of a method for decoding control information related to an IBC BVP in the decoding section 201.

[0539] As shown in Fig. 30, the decoding unit 201 may control the decoding of the control information related to the IBC BVP. Specifically, the decoding unit 201 controls the decoding of the control information related to the IBC BVP as follows.

[0540] As shown in FIG. 30, in step S1300, the decoding unit 201 determines whether biibc_bvp_flag is 1 or not.

[0541] If the answer is Yes, the operation proceeds to step S1301; if the answer is No, the operation proceeds to step S1302.

[0542] In step S1301, the decoding unit 201 decodes control information related to the first pair of BVPs and BVDs out of two pairs of BVPs and BVDs in the bi-predictive IBC BVP.

[0543] In step S1303, the decoding unit 201 decodes the control information related to the second pair of BVPs and BVDs out of the two pairs of BVPs and BVDs in the bi-predictive IBC BVP, and then ends this process.

[0544] In step S1302, the decoding unit 201 decodes the control information related to a pair of BVP and BVD in the IBC BVP, and then ends this process.

[0545] (Bi-predictive IBC Binarization) A method of binarizing the above-described IBC merge index in the decoding unit 201 will be described with reference to FIG.

[0546] FIG. 31 is a diagram showing an example of a method for binarizing the above-mentioned IBC merge index in the decoding unit 201.

[0547] As shown in Fig. 31, the decoding unit 201 may binarize the IBC merge index. Specifically, this is as follows.

[0548] First, the decoding unit 201 may set the value of cMax for ibc_merge_idx to MaxNumIbcMerge-1.

[0549] Here, cMax is the maximum value of the multi-values ​​that the target control information can take before binarization.

[0550] Secondly, the decoding unit 201 may set the value of cMax for ibc_merge_idx0 to MaxNumIbcMerge-1.

[0551] Thirdly, for ibc_merge_idx1, the decoding unit 201 may change the value of cMax depending on whether biibc_merge_flag is 1 or not.

[0552] Specifically, when biibc_merge_flag is not 1, the decoding unit 201 may set the value of cMax to MaxNumIbcMerge-2.

[0553] On the other hand, when biibc_merge_flag is 1, the decoding unit 201 may set the value of cMax to MaxNumIbcMerge-ibc_merge_idx0-2.

[0554] That is, when two different indexes (ibc_merge_idx0 and ibc_merge_idx1) are used to derive two BVs, the range of values ​​that ibc_merge_idx1 can take is from 0 (minimum value) to the maximum value of the BVP candidate list (in the example above, MaxNumIbcMerge-2) minus the value of idx0.

[0555] By designing the binarization method as described above, the decoding unit 201 can decode the second and subsequent indexes as relative indexes with the immediately preceding index as the starting point.

[0556] The above-described image decoding device 200 may be realized as a program that causes a computer to execute each function (each step).

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

[0558] 200...Image decoding device 201...Decoding unit 202...Inverse quantization unit 203...Inverse transformation unit 204...First intra-frame prediction unit 205...Second intra-frame prediction unit 205A...Block vector derivation unit (BV derivation unit) 205B...Second intra-frame predicted pixel generation unit 206...Inter-frame prediction unit 207...Adder 208...Storage unit 210...Code input unit 220...Image output unit

Claims

1. An image decoding device comprising: a decoding unit that decodes control information and quantized values; an inverse quantization unit that inversely quantizes the quantized values ​​to obtain transform coefficients; an inverse transform unit that inversely transforms the transform coefficients to obtain predicted residuals; a first intra-frame prediction unit that generates a first predicted pixel based on decoded pixels and the control information; a second intra-frame prediction unit that generates a second predicted pixel from one or more corrected block vectors for a block to be decoded based on the decoded pixels and the control information; a storage unit that accumulates the decoded pixels; an inter-frame prediction unit that generates a third predicted pixel based on the accumulated decoded pixels and the control information; and an adder that adds the predicted residuals and the first to third predicted pixels to obtain the decoded pixels.

2. The image decoding device according to claim 1, characterized in that the second intra-frame prediction unit corrects the block vectors by adding corresponding correction block vectors to the one or more block vectors.

3. The image decoding device according to claim 1, characterized in that the second intra-frame prediction unit corrects the block vector by adding a single correction block vector corresponding to the one or more block vectors.

4. The image decoding device according to claim 2 or 3, wherein the second intra-frame prediction section derives the value of the correction block vector based on control information.

5. An image decoding device according to claim 2 or 3, characterized in that the second intra-frame prediction section sets constraints on possible values ​​of the correction block vector.

6. An image decoding device as described in claim 2 or 3, characterized in that the second intra-frame prediction unit sets constraints on the possible directions and distances of the correction block vectors with the one or more block vectors as the origin.

7. An image decoding device as described in claim 2 or 3, characterized in that the second intra-frame prediction unit changes the pixel accuracy of the possible values ​​of the correction block vector for each arbitrary combination of sequence units, picture units, slice units, and block units.

8. An image decoding device as described in claim 2 or 3, characterized in that the second intra-frame prediction unit changes the pixel accuracy of the possible values ​​of the correction block vector according to the number of block vectors held by the block to be decoded.

9. An image decoding device as described in claim 2 or 3, characterized in that when the block to be decoded has two or more block vectors, the second intra-frame prediction unit limits the possible values ​​of the correction block vector to integer pixel accuracy only.

10. The image decoding device according to claim 2 or 3, characterized in that the second intra-frame prediction section searches for the correction block vector on the image decoding device side.

11. The image decoding device described in claim 1, characterized in that the second intra-frame prediction unit searches for a reference position of a correction block vector for the one or more block vectors by evaluating similarity using neighboring pixels of the block to be decoded within a pixel range that is preset with the one or more block vectors as the origin.

12. The image decoding device described in claim 1, characterized in that the second intra-frame prediction unit searches for a reference position of a correction block vector for the one or more block vectors by evaluating similarity using the block to be decoded within a pixel range that is preset with the one or more block vectors as the origin.

13. An image decoding method comprising the steps of: decoding control information and quantization values; inverse quantizing the quantization values ​​to obtain transform coefficients; inversely transforming the transform coefficients to obtain prediction residuals; generating a first predicted pixel based on decoded pixels and the control information; generating a second predicted pixel from one or more corrected block vectors for a block to be decoded based on the decoded pixels and the control information; accumulating the decoded pixels; generating a third predicted pixel based on the accumulated decoded pixels and the control information; and obtaining the decoded pixel by adding the prediction residual to the first to third predicted pixels.

14. A program causing a computer to function as an image decoding device, the image decoding device comprising: a decoding unit that decodes control information and quantized values; an inverse quantization unit that inversely quantizes the quantized values ​​to obtain transform coefficients; an inverse transform unit that inversely transforms the transform coefficients to obtain predicted residuals; a first intra-frame prediction unit that generates a first predicted pixel based on decoded pixels and the control information; a second intra-frame prediction unit that generates a second predicted pixel from one or more corrected block vectors for a block to be decoded based on the decoded pixels and the control information; a storage unit that accumulates the decoded pixels; an inter-frame prediction unit that generates a third predicted pixel based on the accumulated decoded pixels and the control information; and an adder that adds the predicted residual and the first to third predicted pixels to obtain the decoded pixels.

Citation Information

Patent Citations

  • Video signal processing method and apparatus using multiple hypothesis prediction

    JP2022502972A

  • Template matching on IBC merge candidates

    WO2023034782A1