Image decoding device, image decoding method, and program
The image decoding device and method address the limitation of single block vectors by employing multiple block vector techniques, enhancing encoding efficiency and prediction accuracy in image decoding.
Patent Information
- Application Number
- JP2023065989
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-13
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2043-04-13
AI Technical Summary
Existing image decoding technologies, such as ITU-T H.266/VVC and M. Coban et al.'s ECM 7, are limited by the use of a single block vector, which hinders encoding efficiency and requires improvement in block copying methods.
The proposed image decoding device and method enhance encoding efficiency by employing multiple block vectors through techniques like IBC BVP, IBC merge, IBC BVP/merge, and IBC GPM, which derive two or more block vectors for improved prediction accuracy and coding efficiency.
The use of multiple block vectors significantly improves encoding efficiency by enhancing prediction accuracy and reducing the amount of code required for block vector signaling, thereby optimizing image decoding processes.
Smart Images

Figure 2024152061000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an image decoding device, an image decoding method, and a program. [Background technology]
[0002] Non-Patent Documents 1 and 2 disclose intra block copy (IBC) and intra template matching prediction (IntraTMP).
[0003] IBC and IntraTMP refer to pixels from a decoded pixel area of a frame to be decoded and use them as predicted pixels for a block to be decoded.
[0004] The difference between IBC and IntraTMP is that IBC explicitly signals a control signal for decoding a block vector representing the referenced coordinate, whereas IntraTMP does not signal a control signal for decoding a block vector by searching for a similar area using nearby pixels as a template.
[0005] Although there are differences in the signaling of block vectors, in both cases, pixels are copied from a reference block indicated by the block vector of the block to be decoded as shown in Figure 2 and used as prediction pixels. [Prior art documents] [Non-patent literature]
[0006] [Non-Patent Document 1] ITU-T H.266 / VVC [Non-Patent Document 2] M. Coban et al., “Algorithm description of Enhanced Compression Model 7 (ECM 7)”, JVET-AB2025, 2022 Summary of the Invention [Problem to be solved by the invention]
[0007] However, in both Non-Patent Documents 1 and 2, the block vector is limited to one, so there is room for improvement in the encoding efficiency. Also, in Non-Patent Documents 1 and 2, the blocks are simply copied, so there is room for improvement in the encoding efficiency.
[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. [Means for solving the problem]
[0009] A first feature of the present invention is 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 predictive 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 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 predictive residuals and the first to third predicted pixels to obtain the decoded pixels.
[0010] A second feature of the present invention is an image decoding method comprising the steps of: decoding control information and quantization values; inversely quantizing the quantization values to obtain transform coefficients; inversely transforming the transform coefficients to obtain predictive residuals; generating a first predicted pixel based on decoded pixels and the control information; generating a second predicted pixel from one or more 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 predictive residuals and the first to third predicted pixels to obtain the decoded pixel.
[0011] A third feature of the present invention is a program for causing a computer to function as an image decoding device, the image decoding device comprising: a decoding unit that decodes control information and quantization values; an inverse quantization unit that inversely quantizes the quantization values to obtain transform coefficients; an inverse transform unit that inversely transforms the transform coefficients to obtain predictive 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 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 predictive residuals and the first to third predicted pixels to obtain the decoded pixels. Effect of the Invention
[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. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a diagram showing an example of functional blocks of an image decoding device 200 according to an embodiment. [Diagram 2]FIG. 2 is a diagram for explaining IBC and IntraTMP. [Diagram 3] FIG. 3 is a diagram showing an example of functional blocks of the second intra-frame predictor 205 of the image decoding device 200 according to an embodiment. [Figure 4] FIG. 4 is a diagram illustrating an example of a BV derivation method in the BV derivation section 205A of the second intra-frame prediction section 205 of the image decoding device 200 according to an embodiment. [Diagram 5] FIG. 5 is a diagram illustrating an example of a BV derivation method in the BV derivation section 205A of the second intra-frame prediction section 205 of the image decoding device 200 according to an embodiment. [Figure 6] FIG. 6 is a diagram illustrating an example of a BV derivation method in the BV derivation section 205A of the second intra-frame prediction section 205 of the image decoding device 200 according to an embodiment. [Figure 7] FIG. 7 is a diagram illustrating an example of a BV derivation method in the BV derivation section 205A of the second intra-frame prediction section 205 of the image decoding device 200 according to an embodiment. [Figure 8] FIG. 8 is a diagram illustrating an example of a BV derivation method in the BV derivation section 205A of the second intra-frame prediction section 205 of the image decoding device 200 according to an embodiment. [Figure 9] FIG. 9 is a diagram illustrating an example of a method for deriving a BV according to IBC GPM in the BV derivation unit 205A of the second intra-frame prediction unit 205 of the image decoding device 200 according to one embodiment. [Figure 10] FIG. 10 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 one embodiment. [Figure 11] FIG. 11 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 one embodiment. [Figure 12]FIG. 12 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 one embodiment. [Figure 13] FIG. 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 the image decoding device 200 according to one embodiment. [Figure 14] 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 one embodiment. [Figure 15] FIG. 15 is a flowchart showing an example of a method for controlling decoding of a predetermined flag related to an IBC on a sequence-by-sequence basis. [Figure 16] FIG. 16 is a diagram showing an example of various flags related to the IBC. [Figure 17] FIG. 17 is a flowchart showing 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 an image decoding device 200 according to an embodiment. [Figure 18] FIG. 18 is a flowchart showing 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 an image decoding device 200 according to one embodiment. [Figure 19] FIG. 19 is a flowchart showing an example of a decoding method for pred_mode_ibc_flag, which is a flag that controls whether or not to apply IBC for each block to be decoded in the decoding unit 201 of the image decoding device 200 according to one embodiment. [Figure 20] FIG. 20 is a flowchart showing 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. [Figure 21]FIG. 21 is a flowchart showing an example of a method for decoding a flag for controlling whether or not bi-predictive IBC merging is enabled for each block to be decoded in the decoding unit 201 of the image decoding device 200 according to one embodiment. [Figure 22] 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 the image decoding device 200 according to one embodiment. [Diagram 23] 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 the image decoding device 200 according to one embodiment. [Figure 24] FIG. 24 is a flowchart showing an example of a method for decoding a flag for controlling whether or not IBC BVP / merge is enabled for each block to be decoded in the decoding unit 201 of the image decoding device 200 according to one embodiment. [Diagram 25] 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 the image decoding device 200 according to one embodiment. [Figure 26] FIG. 26 is a flowchart showing an example of a method for decoding control information related to the above-mentioned MBVD for correcting BV of IBC in the decoding unit 201 of the image decoding device 200 according to one embodiment. [Figure 27] FIG. 27 is a flowchart showing an example of a method for applying the 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. [Figure 28] FIG. 28 is a flowchart showing a case where the corrected BV is applied to the BV in the decoding unit 201 of the image decoding device 200 according to one embodiment. [Figure 29] FIG. 29 is a flowchart showing an example of a method for decoding a flag for controlling whether or not the bi-predictive IBC BVP is enabled for each block to be decoded in the decoding unit 201 of the image decoding device 200 according to one embodiment. [Diagram 30]FIG. 30 is a flowchart showing an example of a method for decoding control information related to bi-predictive IBC BVP in the decoding unit 201 of the image decoding device 200 according to one embodiment. [Diagram 31] FIG. 31 is a diagram showing an example of a binarization method of an IBC merge index in the decoding unit 201 of the image decoding device 200 according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, the embodiments of the present invention will be described with reference to the drawings. Note that the components in the following embodiments can be appropriately replaced with existing components, and various variations including combinations with other existing components are possible. Therefore, the description of the following embodiments does not limit the content of the invention described in the claims.
[0015] First Embodiment Hereinafter, an image decoding device 200 according to this embodiment will be described with reference to Fig. 1 to Fig. 29. Fig. 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 transformation 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, an accumulation unit 208, and an image output unit 220.
[0017] The code input unit 210 is configured to obtain code information coded by an 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 such 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 include header information such as a sequence parameter set, a picture parameter set, a picture header, a slice header, etc.
[0020] The inverse quantization unit 202 is configured to inverse 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 inter-frame prediction unit 206 refers to the decoded pixels via the storage unit 208.
[0025] The adder 207 is configured to add the prediction residual sent from the inverse transform unit 203 to any one of the first to third predicted pixels sent from the first intraframe prediction unit 204, the second intraframe prediction unit 205, and the interframe prediction unit 206 to obtain a decoded pixel. The decoded pixel is sent to the image output unit 220, the storage unit 208, and the interframe prediction unit 206.
[0026] (Second frame intra prediction unit 205) An example of a prediction method performed by the second intra-frame prediction section 205 will be described below.
[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 Figure 2, and to predict the 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 downstream adder 207.
[0028] Examples of such second intra-frame prediction include intra block copy (hereinafter, IBC: Intra Block Copy) and intra template matching prediction (hereinafter, IntraTMP: Intra Template Matching Prediction), which are disclosed in Non-Patent Documents 1 and 2.
[0029] The second intra-frame prediction can be applied when the block to be decoded refers to another region in the BV, but in the following, IBC is described as an example of the second intra-frame prediction. Other examples include a mode that refers to a predicted pixel 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, 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 a 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 the BV of the IBC. The method for deriving the BV will be described in detail in the signaling of the decoding unit 201 (decoding process of control information) described later. A. IBC Block Vector Prediction (hereinafter, IBC BVP) B. IBC Merge C. IBC BVP / Merge D. IBC GPM Here, 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 purpose (effect) of the present invention is to improve the accuracy of the second intraframe prediction by deriving two or more BVs, and thus to improve the coding efficiency, the following description of the BV derivation methods A and B will focus on the difference when deriving two or more BVs. Note that the above-mentioned BV derivation methods C and D are new methods premised on the derivation of two or more BVs. In addition, as an example of the second intraframe prediction by deriving two or more BVs (multi-predictive IBC or multi-predictive IBC), the following description will be given of IBC by deriving two BVs (bi-predictive IBC or bi-predictive IBC).
[0034] (A. IBC BVP) Hereinafter, an example of a method for deriving a BV using an IBC BVP in BV derivation unit 205A will be described with reference to FIGS.
[0035] FIG. 4 shows an example in which the BV is composed of a block vector prediction (BVP) and a block vector difference (BVD).
[0036] In the IBC BVP, the BV derivation unit 205A derives 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, to derive the BV. Here, the control information related to the BVP and BVD will be described in detail in the description of the 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 an adjacent block of the block to be decoded shown in FIG. 5 has already been decoded, and if the adjacent block has already been decoded, checks whether it has a BV (whether the BV can be used).
[0039] In step S2, the BV derivation unit 205A registers the BV of the neighboring block having the BV in a list (hereinafter, 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 as to whether they have been decoded and whether they have BV may be two types ("A" and "L" in FIG. 5) as in Non-Patent Document 1, or may be five types ("A", "L", "AR", "LB", and "AL" in FIG. 5) as in Non-Patent Document 2.
[0042] The order of checking the adjacent blocks may be the same as 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, as BVP candidates, BVs of nearby 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).
[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 unusable.
[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 how BVD is derived 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 overview of how BV is derived in IBC BVP.
[0052] As another example, in the IBC BVP, when the BV derivation unit 205A derives two or more BVs, the BV derivation unit 205A may derive the BVP and BVD required to derive each BV in the following manner.
[0053] In step S1, the BV derivation unit 205A checks whether an adjacent block of the block to be decoded shown in FIG. 5 has already been decoded, and if the adjacent block has already been decoded, checks whether it has a BV (whether the BV can be used).
[0054] In step S2, the BV derivation unit 205A registers the BV of the neighboring block having the BV in a list (hereinafter, 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 preferable that the second and subsequent indexes are relative indexes with the previous index as the starting point. Details will be described later.
[0057] Here, the number (position) of adjacent blocks to be checked in step S1 as to whether they have been decoded and whether they have BV may be two types ("A" and "L" in FIG. 5) as in Non-Patent Document 1, or may be five types ("A", "L", "AR", "LB", and "AL" in FIG. 5) as in Non-Patent Document 2.
[0058] The order of checking the adjacent blocks may be the same as 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, as BVP candidates, BVs of nearby 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).
[0060] Furthermore, in step S1, if the BV for which usability is to be newly confirmed is the same as the BV that has already been confirmed as usable, the BV derivation unit 205A may determine that the BV for which usability is to be newly confirmed is not usable.
[0061] Furthermore, the BV derivation unit 205A may rearrange the order of registration of the BVs (BVP candidates) determined to be available in step S1 in the BVP candidate list using a predetermined rearrangement method, the details of which will be described later.
[0062] The outline of how BVD is derived in the IBC BVP is as follows:
[0063] In step S1, the BV derivation unit 205A derives a BVD based on control information related to two or more different BVDs.
[0064] In step S2, the BV derivation unit 205A rounds 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 method for deriving BVs in a 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 merging 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 a BVD, but derives only the BVP, and derives it as it is as the BV.
[0070] The outline of how BV is derived in IBC merging is as follows:
[0071] In step S1, the BV derivation unit 205A checks whether an adjacent block of the block to be decoded shown in FIG. 5 has already been decoded, and if the adjacent block has already been decoded, checks whether it has 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 FIG. 6 or FIG.
[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 as to whether they have been decoded and whether they have BV may be two types ("A" and "L" in FIG. 5) as in Non-Patent Document 1, or may be five types ("A", "L", "AR", "LB", and "AL" in FIG. 5) as in Non-Patent Document 2.
[0075] The order of checking the adjacent blocks may be the same as 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, the BVP candidates can be the BVs of neighboring blocks (referred to as spatial merge in non-patent document 2), previously used BVs (referred to as history merge in non-patent document 2), or the average of the BVs (referred to as pairwise average merge in non-patent document 2).
[0077] Furthermore, in step S1, if the BV for which usability is to be newly confirmed is the same as the BV that has already been confirmed as usable, the BV derivation unit 205A may determine that the BV for which usability is to be newly confirmed is not usable.
[0078] Furthermore, the BV derivation unit 205A may rearrange the order of registration of the BVs (BVP candidates) determined to be available in step S1 in the BVP candidate list using a predetermined rearrangement method, the details of which will be described later.
[0079] The above is an overview of how to derive 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 FIG. 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 preferable that the second and subsequent indexes are relative indexes with the previous index as the starting point. Details will be described later.
[0083] Alternatively, the BV derivation unit 205A may derive a BV by selecting one or more BVP candidates from the top of the BVP candidate list in a fixed manner. In this case, it is preferable that the BV derivation unit 205A rearranges the BVP candidates in the BVP candidate list, which will be described later. According to this configuration, by selecting some BVs from among two or more BVs in a fixed manner, the coding amount of the index required to derive two or more BVs is not required, and therefore the coding efficiency can be improved.
[0084] As another example, the BV derivation unit 205A may construct BVP candidate lists individually for the number of BVs held by the block to be decoded, as shown in FIG. 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 the corresponding BVP candidate list. In this way, by constructing multiple BVP candidate lists and sharing the index, one or more BVs can be derived from one index. For example, when a block to be decoded holds up to two BVs, the BV derivation unit 205A may prepare two lists (for example, an L0 list and an L1 list similar to normal intraframe prediction) and derive one BV corresponding to the index from the L0 list and one BV from the L1 list. 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 / merging in the BV derivation unit 205A will be described with reference to FIGS.
[0087] In IBC BVP / Merge, in order to derive two (or more) BVs, a first BV is derived based on the BV derivation method in the IBC BVP described above, and another (or two or more remaining) BVs are derived based on the BV derivation method in the 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 for each of the BVP and BVD decoded by the decoding unit 201 using the same derivation method as for the IBC BVP, and adds up the derived BVP and BVD to derive the first BV.
[0089] Secondly, in 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, and derives it as the second BV, using the same derivation method as for the IBC BVP.
[0090] As another example, as shown in FIG. 8, the BV derivation unit 205A may create a template (i.e., a specified 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 specified neighboring pixel of the reference block referenced by the BV), thereby deriving the BVP candidate (IBC merge candidate) with the highest similarity (smallest 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 a 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 a template of the block to be decoded as a target for evaluating the similarity between each IBC merging candidate template and the template, instead of a template based on the BV derived by the IBC BVP.
[0093] Note that 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 (to compare 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 (in ascending order of template cost).
[0097] A more detailed procedure for deriving BV using IBC BVP / Merge is as follows:
[0098] The outline of the method of deriving BVP based on the method of deriving BV by IBC BVP in IBC BVP / Merge is as follows:
[0099] In step S1, the BV derivation unit 205A checks whether an adjacent block of the block to be decoded shown in FIG. 5 has already been decoded, and if the adjacent block has already been decoded, checks whether it has a BV (whether the BV can be used).
[0100] In step S2, the BV derivation unit 205A registers the BV of the neighboring block having the BV in a list (hereinafter, 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 as to whether they have been decoded and whether they have BV may be two types ("A" and "L" in FIG. 5) as in Non-Patent Document 1, or may be five types ("A", "L", "AR", "LB", and "AL" in FIG. 5) as in Non-Patent Document 2.
[0103] The order of checking the adjacent blocks may be the same as 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, as BVP candidates, BVs of nearby 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).
[0105] Furthermore, in step S1, if the BV for which usability is to be newly confirmed is the same as the BV that has already been confirmed as usable, the BV derivation unit 205A may determine that the BV for which usability is to be newly confirmed is not usable.
[0106] Furthermore, the BV derivation unit 205A may rearrange the order of registration of the BVs (BVP candidates) determined to be available in step S1 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 IBC BVP BV derivation method 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 second method of derivation of BV based on the IBC merge method of derivation of BV in IBC BVP / merge is outlined below.
[0113] In addition, in the case of IBC BVP / merge, the BV derivation unit 205A may construct two different BV candidate lists (i.e., one is a BVP candidate list for IBC BVP, and the other is a merge candidate list for IBC BVP / merge) in the BV derivation of IBC BVP and the BV derivation of IBC merge.
[0114] As another example, in order to derive the second BV, 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 neighboring pixels of 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 target of 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, in step S3, the BV derivation unit 205A may rearrange the registration order of the BVP candidates in the BVP candidate list in order of highest similarity, 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 selected BVP as the BV.
[0121] The above is an overview of how to derive BV in IBC BVP / Merge.
[0122] (D. IBC GPM) Hereinafter, an example of a method for deriving the BV by the 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 the block to be decoded into two by an arbitrary straight line (solid line in FIG. 9) selected from multiple different patterns of straight line (geometric partitioning line) candidates, similar to the geometric block partitioning mode (GPM) disclosed in Non-Patent Document 1, and then 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 derivation unit 205A may derive the BV required for the IBC GPM in the same manner as in the above-mentioned IBC merge.
[0125] In addition, the BV derivation unit 205A may identify candidates for the division line in the IBC GPM based on control information that identifies candidates for the division line of the GPM disclosed in Non-Patent Document 1 or 2.
[0126] <Pixel accuracy> It should be noted that the BV derivation unit 205A can set the pixel accuracy of the BV to be derived with either 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, the prediction accuracy can be improved by setting the pixel accuracy of the BV to decimal pixel accuracy (i.e., generating predicted pixels with 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 may set the pixel precision of the BV 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 basis and / or a picture basis and / or a slice basis and / or a 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 on a block-by-block basis, Non-Patent Document 1 discloses a technique for applying Adaptive Motion Vector Resolution (AMVR) to IBC.
[0133] Specifically, this technique is a technique in which, in deriving the BV in IBC, the pixel precision of the BVD is selected from either 1-pixel precision or 4-pixel precision, and the BV is finally rounded to the pixel precision of the selected BVD.
[0134] As an option for this AMVR, the BV derivation unit 205A may add the above-described sub-pixel accuracy (e.g., 1 / 4 pixel accuracy and / or 1 / 2 pixel accuracy).
[0135] As another example, the BV derivation unit 205A can also change the pixel accuracy of the BV according to the number of BVs of the block to be decoded.
[0136] For example, when there is one BV, the BV derivation unit 205A can set the pixel accuracy of the BV to sub-pixel accuracy, and when there are two or more BVs, the BV derivation unit 205A can set the pixel accuracy of the BV to integer pixel accuracy.
[0137] As the number of BVs increases, the intra-prediction in the second frame generally becomes more accurate, while the processing load required for BV derivation increases. Therefore, as the number of BVs increases, by coarsening the pixel accuracy of the BV, an effect can be obtained of suppressing the decoding processing load while maintaining the prediction accuracy of the intra-prediction in the second frame.
[0138] For example, when there are two or more BVs, the BV derivation unit 205A may set (limit the selectable pixel accuracy to only integer accuracy) the pixel accuracy of the BV to integer accuracy.
[0139] On the other hand, when there is one BV, the BV derivation unit 205A may set the pixel accuracy of the BV to integer pixel accuracy or sub-pixel accuracy (it is not necessary to limit the selectable pixel accuracy to only integer accuracy).
[0140] <BVP candidate list> As described above, the BV derivation unit 205A may configure the BVP candidate list by the number of BVs held by the block to be decoded.
[0141] Repeating the examples of the L0 list and the L1 list, it can be divided into a case of using only a single list (L0 list) and a case of using a plurality of lists (for example, when the BV derivation unit 205A derives a maximum of two BVs, the L0 list and the L1 list).
[0142] In either case, the BV derivation unit 205A may configure the BVP candidates to be registered in the BVP candidate list using the BVs of neighboring blocks of the block to be decoded as shown in FIG. 5, BVs used in the past, an average of BVs, or the like.
[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 disclosed in Non-Patent Document 2.
[0144] The order in which the 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 the 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 be registered 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] Furthermore, the maximum number of BVP candidates may be set to a fixed value, or may be adaptively set by control information for each sequence, picture, or slice, which will be described later.
[0149] In addition, the BV derivation unit 205A may or may not share the BVP candidate lists for IBC BVP, IBC merge, and IBC BVP / merge (different BVP candidate lists may be used for IBC BVP, IBC merge, and IBC BVP / merge).
[0150] As an example of the former, for example, 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 or an IBC BVP flag or an IBC BVP index in an 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, for example, the BV derivation unit 205A may set the 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 IBC BVP / merge to be larger than the maximum number of BVP candidates that can be registered in a BVP candidate list that derives a BVP using an IBC BVP or an IBC BVP flag or an IBC BVP index in IBC BVP / merge.
[0153] For example, as in Non-Patent Document 2, 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 merging candidates that can be registered in the merging 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 the BVD candidate list, the number of decodable BV patterns increases, which is expected to improve coding efficiency.
[0155] When the BV derivation unit 205A checks the usability of BVs of neighboring blocks, etc. in order to search for BVP candidates (or merging candidates) that can be registered in the BVP candidate list (or merging candidate list), if the BV whose usability is being newly checked is identical to a BVP candidate (or merging candidate) that has already been confirmed as usable, the BV derivation unit 205A may determine (prune) that the BV whose usability is being newly checked is unusable.
[0156] The BV derivation unit 205A can improve the coding efficiency of the control information regarding 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 that 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 a BVP candidate extracted from a neighboring block of the block to be decoded, etc., after rounding it to the pixel accuracy of the BV finally derived in order to determine whether it can be used in the BVP candidate list.
[0158] For example, when 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 merging candidate lists) for BV derivation, if the pixel accuracy of the BVP candidates (or merging candidates) in at least one list is rounded by AMVR or the like, the pixel accuracy of the BVP candidates (or merging candidates) in the other lists may also be rounded in the same manner (to the same pixel accuracy) before constructing the BVP candidate list (or merging candidate list).
[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 merging candidates) in the other lists.
[0161] For example, since AMVR is a technology that reduces the amount of coding for BVD by coarsening the pixel precision of BVD required for IBC BV derivation, when IBC and AMVR are applied in combination, it is natural that the BVP derived by the BV derivation method of IBC BVP or IBC BVP / Merge described above, and furthermore, the pixel precision of the BV, 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 therefore 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 accuracy of each BVP candidate that can be registered in the BVP candidate list of IBC BVP / merge after rounding, but may also determine whether to use the pixel accuracy of the BVP candidate (or merge candidate) that can be registered in the merge candidate list without rounding.
[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 rearranges the BVP candidates in the BVP candidate list in order of highest similarity.
[0166] Here, the BV derivation unit 205A may evaluate the similarity of such templates using the sum of squared differences (SSE), the sum of absolute differences (SAD), or the like.
[0167] Alternatively, the BV derivation unit 205A can use the similarity between blocks referenced by the BVs to sort the BVP candidates in the BVP candidate list.
[0168] The BV derivation unit 205A can use the Sum of Absolute Transformed Difference (SATD) or the like as such a similarity.
[0169] When using a plurality of lists such as the L0 list and the L1 list, the BV derivation unit 205A may evaluate the similarity after synthesizing the neighborhood of the blocks referenced by both lists.
[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 portion of them.
[0171] By registering the BVP candidates in the BVP candidate list in the order of similarity described above, the BV derivation unit 205A can derive a highly accurate BVP from the BVP candidate list, which can result in improved accuracy of the 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 above-mentioned 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 starting from BVP (BV) using a specified search method described later without adding BVD.
[0174] As for the former BV correction method (hereinafter referred to as the BVD addition method), the BV derivation unit 205A may not apply it to IBC BVPs due to the nature of adding a new BVD, but may apply it only to BVPs (BVs) corresponding to the IBC merge index of an IBC merge or an IBC BVP / merge.
[0175] As for the latter BV correction method (hereinafter, BV search method), BV derivation unit 205A is a method that 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 a correction block vector based on the control information.
[0178] Furthermore, when MBVD is applied, the BV derivation unit 205A may set restrictions on possible values (reference positions) of the correction block vector in order to reduce the amount of code of 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 (reference positions) of the correction block vector to the top, bottom, left, right, and right.
[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 only include 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 a constraint on the value (reference position) of the correction block vector according to the number of block vectors included in the block to be decoded.
[0182] For example, when the current block has two or more block vectors, the BV derivation unit 205A may limit the value (reference position) of the correction block vector to only integer pixel accuracy.
[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 and / or picture-by-picture and / or 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] Similar to the above-mentioned method of sorting BVP candidates, template matching is a method in which the neighboring pixels of the block to be decoded are used as a template, and the derived BVP (BV) is used as a starting point to search for the reference position of a new BVP (BV) while checking the similarity with the neighboring pixels of the reference block.
[0186] The BV derivation unit 205A may limit the search range to a size similar to that in 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 when searching, taking into account the pixel precision selected by the AMVR or the like for the above-mentioned IBC (for example, if one-pixel precision is selected by the AMVR or the like, the search pixel precision by Template Matching may also be adjusted to match the 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 the decoder-side motion vector refinement (DMVR) of non-patent document 1, i.e., decoder-side block vector refinement (DBVR).
[0189] Specifically, the BV derivation unit 205A applies a preset group 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 similarity of DBVR. In addition, DBVR is based on a search method using two or more BVs, so it is not applied when one BV is derived.
[0191] <Save> 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, it is possible to apply IBC to another block to be decoded that is decoded after the block to be decoded, using the BV and reference image of the block to be decoded, thereby increasing the application rate of IBC and improving the 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, in a memory, one or more BVs and reference images derived for the current block to be decoded, depending on the number of block vector candidate lists.
[0196] For example, when there is one derived BV, the BV derivation unit 205A 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 the BVs and the corresponding reference images in each of the L0 list and the L1 list used in normal inter-frame prediction.
[0198] Furthermore, when the derived BVs are 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 referred to 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] When 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, when 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) 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 there is one derived BV, the BV derivation unit 205A 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, when 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, when the same BV already exists in the history, the BV derivation unit 205A does not register the BV.
[0205] In addition, when the BV stored in the memory or history described above has been corrected as described above, the BV derivation unit 205A may store the corrected BV, or may store the uncorrected BV.
[0206] In such a case, the BV derivation unit 205A can obtain an effect of being able to omit the sign indicating before and after the correction by determining in advance whether the BV after the correction or the BV before the 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 obtaining the effect of improving the coding efficiency.
[0208] <Synthesis> The second intra-frame predicted pixel generation unit 205B is configured to generate a second predicted pixel by synthesizing a predicted pixel of a block to be decoded using pixels (reference pixels) of a reference block referred to by one or more BVs.
[0209] When there is one BV, the second intra-frame predicted pixel generation unit 205B may directly use the reference pixels of the reference block as the predicted pixels of 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 that uses 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) in 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 a plurality of reference pixels Q1, Q2, . . . Qn in a block referenced by one BV for one predicted pixel.
[0213] The following is an example of a polynomial defined in a 3x3 region centered on the coordinates (x,y).
[0214] 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)+C5× 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 Figure 10 shows an example with 10 weighting factors. For simplicity, however, we use Q(x+i,y+j) 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 manner, 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 formula is an example of a polynomial having two types of coefficients defined at 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, or the second intra-frame predicted pixel generation unit 205B may simplify the threshold value and use an average value.
[0219] If the above-mentioned distribution of 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 a second predicted pixel by taking a weighted average of pixels (reference pixels) of 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 taking a simple 1:1 average of reference pixels referenced by two or more BVs in the block to be decoded.
[0222] That is, the second intra-frame predicted pixel generation section 205B may fix the above-mentioned predetermined weighting value at 1:1, or may set it adaptively.
[0223] When the second intra-frame predicted pixel generation unit 205B adaptively sets the above-mentioned specified weighting value, it can set a weighting value other than 1:1 based on the length of the BV and an evaluation of the similarity between the block to be decoded and neighboring pixels (templates) of each reference block.
[0224] Here, by taking a simple 1:1 average for the predetermined weighting value, the processing load can be reduced, while by adaptively setting the predetermined weighting value, the coding efficiency can be improved.
[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. Therefore, 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] In addition, since a reference block with high similarity (low template cost) in the template similarity evaluation is considered to have a small error with the block to be decoded, 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 weighting value to be used in the weighted average, such as the bidirectional coding block-based 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 the 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 performing similarity evaluation using a template for the block to be decoded and the reference block described above, 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 by 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) in 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, C3.
[0232] P(x,y)=C1×Q(x,y)+C2×R(x,y)+C3 According to the above-mentioned configuration, the calculation load can be reduced by simplifying the polynomial, whereas the prediction accuracy can be improved by complicating the polynomial.
[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 be selectable from them. With this configuration, an appropriate polynomial can be used, and the effect of improving the coding efficiency can be obtained.
[0234] The second intra-frame predicted pixel generation unit 205B may be configured to derive 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 FIG. 11, the second intra-frame predicted pixel generation unit 205B derives a weighting coefficient C such that a neighboring pixel P' of the block to be decoded and a neighboring pixel Q' of the reference block match each other through correction (see X1 in FIG. 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 FIG. 11), and sets this as a predicted pixel (second predicted pixel) of the block to be decoded (X3 in FIG. 11).
[0240] According to this configuration, compared to the case where the weighting coefficients are stored as control information, by deriving the weighting coefficients from neighboring pixels, it is not necessary to decode the weighting coefficients, thereby achieving the effect of improving coding efficiency.
[0241] Furthermore, applying weighting coefficients to multiple reference pixels is equivalent to adaptively deriving a BV with more precise decimal precision, which has the effect of improving coding efficiency by reducing the amount of coding for the BV.
[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 (polynomial coefficients) described above.
[0243] For example, as shown in FIG. 12(a), the second intra-frame predicted pixel generation unit 205B may be set to use neighboring pixels within four pixel lines from the block to be decoded in deriving the weighting coefficients (polynomial coefficients) described above.
[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 coefficients using only neighboring pixels in the area located above the block to be decoded, as shown in Figure 12(b), or may derive weighting coefficients 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 generator 205B may be configured to select a plurality of ranges for specifying the above-mentioned neighboring pixels. With this configuration, it is possible to derive an appropriate weighting factor, and thus to improve the coding efficiency.
[0247] (Basic Concepts 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 between the reference pixels in the reference block of the block to be decoded and nearby pixels in the reference block of an adjacent block, rather than using the reference pixels themselves of the block to be decoded.
[0248] This provides the effect of smoothly connecting block boundaries between a prediction block generated by IBC and its adjacent adjacent blocks, similar to the overlapped block motion compensation (OBMC) for inter-frame prediction means disclosed in Non-Patent Document 2.
[0249] FIG. 13 shows a case where an adjacent block to a block to be decoded has BV.
[0250] As shown in FIG. 13, first, the second intra-frame predicted pixel generation unit 205B acquires neighboring pixels (hereinafter, adjacent reference neighboring pixels) corresponding to the relative position of the block to be decoded in an adjacent reference block referred to by the adjacent block BV.
[0251] In the example of FIG. 13, since the adjacent block is located to the left of the block to be decoded, the second intra-frame predicted pixel generation unit 205B obtains adjacent reference neighborhood pixels to the right of the adjacent reference block.
[0252] The range of adjacent reference neighboring 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 is referred to as "IBC OBMC".
[0255] (IBC OBMC Applicability Judgment and Applicability 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-based basis (hereinafter, a sub-block) that is smaller than the block to be decoded within the block to be decoded, or may make the determination in two stages, on a block-to-decoded basis and on 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 4x4 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 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 IBC OBMC is applied.
[0260] (IBC OBMC application conditions) The second intra-frame predicted pixel generation unit 205B may determine to apply IBC OBMC when a predetermined condition is satisfied for each block to be decoded and / or each sub-block, and may determine not to apply IBC OBMC when the predetermined condition is 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. The control information (IBC OBMC flag) that enables IBC OBMC to be applied on a sequence and / or picture and / or slice basis is valid. 2. The control information (IBC OBMC flag) that enables IBC OBMC to be applied to each block 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. The adjacent block adjacent to the block (or sub-block) to be decoded has a BV or a motion vector. 5. The BV of the block (or sub-block) to be decoded is different from the BV or motion vector of an adjacent block. 6. The local luminance compensation disclosed in Non-Patent Document 2 is not applied (is invalid) to the block to be decoded. 7. The maximum error between the pixel values of the reference pixels based on the BV of the block (or sub-block) to be decoded and the pixel values of the adjacent reference pixels 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 pixels of the block to be decoded. 9. The block (or sub-block) to be decoded has one BV. 10. The number of BVs or motion vectors of adjacent blocks of the block (or sub-block) to be decoded is one. Below, examples of modifications of the above-mentioned predetermined conditions will be described.
[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-mentioned 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, instead of using the reference pixels themselves.
[0264] Furthermore, the second intra-frame predicted pixel generation unit 205B can set different application restrictions for IBC OBMC according to the number of derived BVs for the current block (or sub-block) to be decoded or for the adjacent blocks. Specifically, the restrictions are as follows.
[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 to 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 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 to only when there is one BV or motion vector of an adjacent block of the block (or sub-block) to be decoded, thereby suppressing an increase in memory bandwidth for obtaining 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 or template cost of the BVs or motion vectors of the adjacent blocks.
[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] Providing 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 clear in the original image, and block boundaries tend to be discontinuous. Therefore, in such images, it is easier to suppress prediction errors near block boundaries by not applying IBC OBMC.
[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 limitations and IntraTMP does not apply slice limitations.
[0276] IntraTMP requires less BV search processing and has lower prediction accuracy than IBC, so by increasing the number of targets for application, it is possible to improve coding efficiency.
[0277] (IBC OBMC weighted average) Alternatively, the second intra-frame predicted pixel generation unit 205B may apply the correction used in the above-mentioned correction of the reference pixels to the neighboring pixels.
[0278] The second intra-frame predicted pixel generation unit 205B derives weighting coefficients from all or some of the pixels of the adjacent blocks and the pixels of the adjacent reference blocks.
[0279] That is, as shown in FIG. 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 FIG. 14), applies it to the nearby pixel Q of the adjacent reference block to obtain a correction value P (Y2 in FIG. 14), and calculates a weighted average with the predicted pixel of the block to be decoded (Y3 in FIG. 14).
[0280] According to such a configuration, in either case, the neighboring 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.
[0281] In addition, when 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 greater number of BVs to the number of BVs in the block with the fewer number of BVs (reducing the number of BVs in the block to be decoded and the adjacent blocks to the minimum number of BVs).
[0282] Similarly, when the pixel accuracy of the BVs of the block to be decoded and the reference block differ, 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 blocks to the maximum pixel accuracy).
[0283] (IBC GPM) When the 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 the reference pixels (reference pixels) of one or more BVs for each divided area divided into two by a dividing line of the IBC GPM, according to the distance from the dividing line of the IBC GPM.
[0284] As a modified example, the second intra-frame predicted pixel generation unit 205B may set the number of pixels in the area where the weighted average is performed, that is, in the direction from the division line of the IBC GPM to each divided area, either fixedly or adaptively.
[0285] As a method of fixedly setting, the second intra-frame predicted pixel generation section 205B may set values such as 0 pixel, 1 / 4 pixel, 1 / 2 pixel, 1 pixel, 2 pixels, 4 pixels, and 8 pixels.
[0286] For example, for screen images, by using a small number of pixels such as 0 or 1 / 4 of a pixel for 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 screen images can be maintained without excessive smoothing, making it easier to reduce prediction errors.
[0287] 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.
[0288] For example, for natural images, it is easy to reduce prediction errors near the division lines of the IBC GPM 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.
[0289] <Conversion> 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 current block to which IBC (or IntraTMP) is applied.
[0290] 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.
[0291] Furthermore, the MTS disclosed in Non-Patent Document 1 includes an MTS for intra-frame prediction and an MTS for inter-frame prediction.
[0292] The inverse transform unit 203 may apply the MTS for intra-frame prediction disclosed in Non-Patent Document 1, or may apply the MTS for inter-frame prediction disclosed in Non-Patent Document 1.
[0293] The inverse transform unit 203 may identify and apply a transform base based on the value of control information for identifying candidates for the transform base of the MTS decoded or estimated by the decoding unit 201 from among candidates for the transform base in the MTS.
[0294] 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.
[0295] Here, as an example of two-stage inverse transformation processing using different transformation bases, the inverse transformation unit 203 may use the Low-Frequency Non-Separable Transform (LFNST) disclosed in Non-Patent Document 1.
[0296] The decoding unit 201 may select one transform base from among a plurality of different transform bases, and decode control information for specifying whether to inverse transform the transform coefficients, and the inverse transform unit 203 may identify and apply the transform base from among the transform base candidates in the LFNST, based on the value of the control information for identifying the transform base candidate for the LFNST decoded or estimated by the decoding unit 201.
[0297] The reason for applying MTS or LFNST to a current block to which IBC (or IntraTMP) is applied is as follows.
[0298] 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.
[0299] For such a distribution of transform coefficients, adaptively selecting and applying an effective inverse transform base from among multiple different transform bases, or applying a two-stage inverse transform using different or the same transform bases, is expected to reduce the redundancy between transform coefficients (and thus the spatial redundancy of prediction errors), and as a result, is expected to improve coding efficiency.
[0300] <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 a color difference signal (UV signal or CbCr signal) and then decoded (or encoded).
[0301] 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.
[0302] Furthermore, non-patent document 1 discloses a technology for making the partitioning structures of decoding (or encoding) tree blocks within the same decoding (or encoding) tree block identical (single tree structure) and a technology for changing the partitioning structures (dual tree structure) in a luminance signal image and a color difference signal image.
[0303] 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 including 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 ratios of the luminance signal and the color difference signal.
[0304] More specifically, the BV derivation unit 205A may reduce the size (horizontal component and vertical component) of one or more BVs derived for the decoding target block of the luminance signal in accordance with the downsampling ratio of the luminance signal and the color difference signal.
[0305] 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 including 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.
[0306] <Signaling> Hereinafter, the control information (syntax) for decoding a mode in which BV is held (hereinafter, BV mode) by the decoding unit 201 will be described.
[0307] The encoded information input to the decoding unit 201 may include a sequence parameter set (SPS) that collects control information (syntax) for each sequence to be decoded.
[0308] Moreover, the coded information may include a picture parameter set (PPS) or a picture header (PH) that summarizes control information for each picture to be decoded.
[0309] Alternatively, the coded information may include a slice header (SH) that summarizes control information for each slice to be decoded.
[0310] Hereinafter, a method for controlling decoding of 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.
[0311] 15 is a diagram showing a method of controlling decoding of a predetermined flag related to IBC on a sequence-by-sequence basis. Specifically, the decoding unit 201 operates as follows.
[0312] As shown in Fig. 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.
[0313] Here, sps_ibc_enabled_flag is a flag that controls (specifies) whether IBC is applicable on a sequence-by-sequence basis, and when sps_ibc_enabled_flag is 1, the decoding unit 201 specifies that IBC is applicable, and when sps_ibc_enabled_flag is 0, the decoding unit 201 specifies that IBC is not applicable.
[0314] The decoding unit 201 decodes the predetermined flag in step S101, and ends this process without decoding the predetermined flag in step S102.
[0315] Here, the decoding unit 201 may decode, as the predetermined flag, various flags related to the IBC as shown in Fig. 16. More specifically, the following is performed.
[0316] sps_biibc_enabled_flag shown in Figure 16 is a flag (first syntax) that controls (specifies) whether bi-predictive IBC is applicable on a sequence-by-sequence basis, and when sps_biibc_enabled_flag is 1, decoding unit 201 specifies that bi-predictive IBC is applicable, and when sps_biibc_enabled_flag is 0, specifies that bi-predictive IBC is not applicable.
[0317] The decoding unit 201 may decode sps_multiibc_enabled_flag as a modification of sps_biibc_enabled_flag.
[0318] sps_multiibc_enabled_flag is a flag that controls (specifies) whether or not the multi-prediction IBC can be applied on a sequence-by-sequence basis. If sps_multiibc_enabled_flag is 1, the decoding unit 201 specifies that the multi-prediction IBC is applicable, and if sps_multiibc_enabled_flag is 0, the decoding unit 201 specifies that the multi-prediction IBC is not applicable.
[0319] The sps_ibcmbvd_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether IBC MBVD is applicable on a sequence-by-sequence basis. If sps_ibcmbvd_enabled_flag is 1, the decoding unit 201 specifies that IBC MBVD is applicable, and if sps_ibcmbvd_enabled_flag is 0, the decoding unit 201 specifies that IBC MBVD is not applicable.
[0320] Sps_six_minus_max_num_ibc_merge_cand shown in FIG. 16 is control information that sets the maximum value of the candidate list of the IBC merge (or IBC BVP) described above on a sequence-by-sequence basis.
[0321] 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.
[0322] Specifically, the decoding unit 201 may control (change the setting of) the maximum value of the candidate list of the IBC merge (or IBC BVP) of the image decoding device 200 on a sequence-by-sequence basis as follows.
[0323] 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 on a sequence (or picture, slice, or current block to be decoded) basis.
[0324] The sps_ibctm_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether TM (IBC TM) for IBC is applicable on a sequence-by-sequence basis. If sps_ibctm_enabled_flag is 1, the decoding unit 201 specifies that IBC TM is applicable, and if sps_ibctm_enabled_flag is 0, the decoding unit 201 specifies that IBC TM is not applicable.
[0325] The sps_ibcdbvr_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether or not DBVR (IBC DBVR) for IBC 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.
[0326] The 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 on a sequence-by-sequence basis. When sps_ibcciip_enabled_flag is 1, the decoding unit 201 specifies that IBC CIIP is applicable, and when sps_ibcciip_enabled_flag is 0, the decoding unit 201 specifies that IBC CIIP is not applicable.
[0327] The sps_ibcgpm_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether or not IBC GPM is applicable on a sequence-by-sequence basis. When sps_ibcgpm_enabled_flag is 1, the decoding unit 201 specifies that IBC GPM is applicable, and when sps_ibcgpm_enabled_flag is 0, the decoding unit 201 specifies that IBC GPM is not applicable.
[0328] sps_ibcobmc_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether 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.
[0329] The sps_ibcflm_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether or not the application of weighting coefficients defined by the above-mentioned polynomial to IBC on a sequence-by-sequence basis (IBC Filtered Linear Model: IBC FLM) is applicable. 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.
[0330] The sps_ibcmts_enabled_flag shown in FIG. 16 is a flag that controls (specifies) whether or not MTS (IBC MTS) for IBC is applicable on a sequence-by-sequence basis. If sps_ibcmts_enabled_flag is 1, the decoding unit 201 specifies that the IBC MTS is applicable, and if sps_ibcmts_enabled_flag is 0, the decoding unit 201 specifies that the IBC MTS is not applicable.
[0331] 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. When sps_ibclfnst_enabled_flag is 1, the decoding unit 201 specifies that IBC LFNST is applicable, and when sps_ibclfnst_enabled_flag is 0, the decoding unit 201 specifies that IBC FLNST is not applicable.
[0332] If the various flags described above are not decoded, the decryption unit 201 may specify the values of these flags as 0.
[0333] 15 and 16, the method of controlling the decoding of various flags in units of sequences has been described, but the control may be performed in a smaller unit, that is, in units of pictures or slices. The control may be performed only in these specific layers, or in multiple stages across multiple layers.
[0334] 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.
[0335] 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, as described below, without setting these. In this case, the increase in header information described above can be avoided.
[0336] Below, using Figures 17 and 18, we will explain the decoding method of a flag that controls whether or not IBC (bipredictive IBC) using two BVs can be applied in slice units (or picture units or sequence units) in decoding unit 201, and the definition (meaning) of the flag.
[0337] Note that, hereinafter, a decoding method will be described using IBC using two BVs (Bipredictive IBC) as an example, but a similar decoding method may be realized by interpreting it as IBC using two or more BVs (Multipredictive IBC).
[0338] 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.
[0339] 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.
[0340] As shown in FIG. 17, in step S200, the decoding unit 201 determines whether or not sps_ibc_enabled_flag is 1 and sh_slice_type is I (I slice).
[0341] If Yes, the operation proceeds to step S201, and if No, the operation proceeds to step S202.
[0342] 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.
[0343] Slice types include I slices (slices to which the first intraframe prediction or the second intraframe prediction can be applied), B slices (slices to which the first intraframe prediction, the second intraframe prediction or the interframe prediction can be applied), and P slices (slices to which the first intraframe prediction, the second intraframe prediction or the interframe prediction can be applied; however, only one-way prediction is applicable for interframe prediction).
[0344] In step S201, the decryption unit 201 decrypts the sh_biibc_enabled_flag, and ends this process.
[0345] In step S202, the decryption unit 201 ends this process without decrypting sh_biibc_enabled_flag.
[0346] Here, sh_biibc_enabled_flag (third syntax) is a flag that controls whether or not bi-predictive IBC is applicable on a slice-by-slice basis.
[0347] When sh_biibc_enabled_flag is 1, the decoding unit 201 determines that the bi-predictive IBC is applicable, and when sh_biibc_enabled_flag is 0, the decoding unit 201 determines that the bi-predictive IBC is not applicable.
[0348] When 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.
[0349] Specifically, the decoding unit 201 may estimate the sh_biibc_enabled_flag to be 1 when the sh_slice_type is B (a B slice), and may estimate the sh_biibc_enabled_flag to be 0 when the sh_slice_type is P (a P slice). The decoding unit 201 may estimate sh_biibc_enabled_flag according to the following formula:
[0350] sh_biibc_enabled_flag=(sh_slice_type==B?):1 or 0 The reason why the flag that controls whether or not the bi-predictive IBC is applicable is decoded or estimated on a slice-by-slice basis as described above is as follows.
[0351] Since I-slices may have image characteristics in 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 where second-frame intra-prediction is particularly effective, improving coding efficiency. On the other hand, bi-predictive IBC cannot be applied to slices where second-frame intra-prediction is not effective. This reduces the amount of coding required for the control information required for bi-predictive IBC, as described below, and is expected to result in improved coding efficiency.
[0352] The reason why sh_biibc_enabled_flag is not decoded and sh_biibc_enabled_flag is estimated to be 1 in B slices is that normal inter-frame prediction (including bi-prediction using two motion vectors) can be applied in B slices, so by making bi-predictive IBC always applicable, it is possible to standardize the design with normal inter-frame prediction and it is also expected to improve coding efficiency.
[0353] The reason for not decoding sh_biibc_enabled_flag and instead estimating sh_biibc_enabled_flag to 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.
[0354] Fig. 18 is a modification of Fig. 17. The difference between Fig. 17 and Fig. 16 is step S200A.
[0355] 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).
[0356] If Yes, the operation proceeds to step S201, and if No, the operation proceeds to step S202.
[0357] Here, in step S200A, by adding that sh_slice_type is B (B slice) in addition to being I (I 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.
[0358] Hereinafter, a method for controlling decoding of various flags related to IBC in units of a block to be decoded (decoded block, predicted block, or transformed block) in the decoding unit 201 and definitions (meanings) of the various flags will be described with reference to FIGS.
[0359] 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 in units of blocks to be decoded (decoded blocks, predicted blocks, or transform blocks) in the decoding unit 201. In FIG.
[0360] 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, the decoding unit 201 may specify that IBC is not to be applied.
[0361] If pred_mode_ibc_flag has not been decoded, the decoding unit 201 may estimate that pred_mode_ibc_flag is 0.
[0362] 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.
[0363] Specifically, the decoding unit 201 may determine that IBC is to be applied in the case of a single tree, and may determine that IBC is not to be applied in the case of a dual tree.
[0364] As a modification, the decoding unit 201 may determine to apply IBC to a luminance block even in the case of a dual tree.
[0365] Furthermore, the decoding unit 201 may control whether the current block to be decoded (decoded block, predicted block, or transformed block) is IBC using CuPredMode, which is an internal parameter indicating the prediction mode of the current block to be decoded, as in Non-Patent Document 1.
[0366] Specifically, if CuPredMode is MODE_IBC, the decoding unit 201 may determine that the block to be decoded (decoded block, prediction block, or transform block) is IBC, and if not, may determine that the block to be decoded (decoded block, prediction block, or transform block) is not IBC.
[0367] The operation of FIG. 19 will be described below.
[0368] As shown in FIG. 19, in step S300, the decoding unit 201 determines whether or not a predetermined condition is satisfied.
[0369] If Yes, the operation proceeds to step S301, and if No, the operation proceeds to step S302.
[0370] In step S301, the decoding unit 201 decodes pred_mode_ibc_flag, and ends this process.
[0371] In step S302, the decoding unit 201 does not decode pred_mode_ibc_flag, and ends this process.
[0372] 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 that is the threshold for condition 1 may be changed to 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 in the dual tree. Hereinafter, a method of selecting an IBC mode (the above-mentioned IBC BVP, IBC merge, or IBC BVP / merge) after the decoding process of FIG. 19 in the decoding unit 201 will be described with reference to FIGS.
[0373] 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. In FIG.
[0374] 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 following is performed.
[0375] As shown in FIG. 20, in step S400, the decoding unit 201 determines whether or not general_merge_flag is 1.
[0376] If yes, the operation proceeds to step S401; if no, the operation proceeds to step S402.
[0377] 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.
[0378] 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.
[0379] In step S401, the decoding unit 201 determines whether or not CuPredMode is MODE_IBC.
[0380] If yes, the operation proceeds to step S403; if no, the operation proceeds to step S404.
[0381] In step S403, the decoding unit 201 transitions to a decoding process related to IBC merging, which will be described later (with reference to FIGS. 21 to 23).
[0382] In step S404, the decoding unit 201 transitions to a decoding process other than IBC merging, which will be described later.
[0383] In step S402, the decoding unit 201 determines whether or not CuPredMode is MODE_IBC.
[0384] If Yes, the operation proceeds to step S405; if No, the operation proceeds to step S406.
[0385] In step S405, the decoding unit 201 transitions to a decoding process related to the IBC BVP, which will be described later (with reference to FIG. 23).
[0386] In step S406, the decoding unit 201 transitions to decoding processing related to items other than the IBC BVP, which will be described later.
[0387] Hereinafter, using Figure 21, we will explain a method of decoding a flag for controlling (determining) whether or not bi-predictive IBC merge is enabled for each block to be decoded in decoding unit 201 (i.e., whether or not bi-predictive IBC merge is applied for each block to be decoded).
[0388] Figure 21 is a diagram showing an example of a decoding method of a flag for controlling (determining) whether or not bi-predictive IBC merge is enabled on a per-block basis to be decoded in decoding unit 201 (i.e., whether or not bi-predictive IBC merge is applied on a per-block basis to be decoded).
[0389] As shown in Fig. 21, the decoding unit 201 may decode a flag for controlling (specifying) whether or not bi-predictive IBC merge is enabled for each block to be decoded (i.e., whether or not bi-predictive IBC merge is applied for each block to be decoded). Specifically, the flag is as follows.
[0390] As shown in FIG. 21, in step S500, the decoding unit 201 determines whether or not a predetermined condition 2 is satisfied.
[0391] If Yes, the operation proceeds to step S501; if No, the operation proceeds to step S502.
[0392] In step S501, the decoding unit 201 decodes biibc_merge_flag, and ends this process.
[0393] In step S502, the decoding unit 201 ends this process without decoding biibc_merge_flag.
[0394] Here, biibc_merge_flag is a flag (fourth syntax) that controls (specifies) whether or not bi-predictive IBC merge is applied for each block to be decoded.
[0395] When biibc_merge_flag is 1, the decoding unit 201 specifies that bi-predictive IBC merge is to be applied to the current block, and when biibc_merge_flag is 0, the decoding unit 201 specifies that bi-predictive IBC merge is not to be applied to the current block.
[0396] If biibc_merge_flag has not been decoded, the decoding unit 201 may estimate that biibc_merge_flag is 0.
[0397] Furthermore, the 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 modification, 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 the predetermined condition 2.
[0398] 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).
[0399] 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.
[0400] On the other hand, a condition that the number of pixels is smaller than a threshold used in the determination conditions for determining whether or not to apply IBC merge in unidirectional prediction, such as that the block size of the block to be decoded is 32 pixels or less or 16 pixels or less, may be added.
[0401] 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.
[0402] Hereinafter, a method for decoding control information related to IBC merging in decoding section 201 will be described with reference to FIG.
[0403] In IBC merging, 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.
[0404] FIG. 22 is a diagram showing an example of a method for decoding control information related to IBC merging in decoding section 201. In FIG.
[0405] As shown in Fig. 22, the decoding unit 201 may control the decoding of the control information related to IBC merging, as follows.
[0406] As shown in FIG. 22, in step S600, the decoding unit 201 determines whether biibc_merge_flag is 1 or not.
[0407] If yes, the operation proceeds to step S601; if no, the operation proceeds to step S602.
[0408] In step S601, the decoding unit 201 determines whether MaxNumIbcMergeCand is greater than two.
[0409] If the answer is Yes (MaxNumIbcMergeCand is greater than 2), the operation proceeds to step S603, and if the answer is No (MaxNumIbcMergeCand is equal to or less than 2), the operation proceeds to step S607.
[0410] In step S603, the decoding unit 201 decodes ibc_merge_idx0.
[0411] Here, ibc_merge_idx0 is the first IBC merge index (sixth syntax) in bi-predictive IBC merging.
[0412] In step S604, the decoding unit 201 determines whether or not ibc_merge_idx0 is not MaxNumIbcMergeCand-2 (ibc_merge_idx0!=MaxNumIbcMergeCand-2).
[0413] If yes, the operation proceeds to step S605; if no, the operation proceeds to step S606.
[0414] In step S605, the decoding unit 201 decodes ibc_merge_idx1, and ends this process.
[0415] In step S606, the decoding unit 201 ends this process without decoding ibc_merge_idx1.
[0416] Here, ibc_merge_idx1 is the second IBC merge index (seventh syntax) in bi-predictive IBC merging.
[0417] 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 self-evident that ibc_merge_idx1 is MaxNumIbcMergeCand-1, as will be described later.
[0418] Therefore, in step S606, the decoding unit 201 is expected to reduce the amount of code by not decoding ibc_merge_idx1.
[0419] In step S607, the decoding unit 201 ends this process without decoding ibc_merge_idx0 and ibc_merge_idx1.
[0420] Here, as described above, MaxNumIbcMergeCand is the maximum number of merge candidates that can be registered in the merge candidate list for IBC merge. If, in step S601, it is 2 or less, the IBC merge candidate to be used in bi-predictive IBC merge is self-evident, even if the two merge indexes are not decoded.
[0421] Therefore, in step S607, the decoding unit 201 does not decode ibc_merge_idx0 and ibc_merge_idx1, so that a reduction in the amount of code can be expected.
[0422] In step S602, the decoding unit 201 determines whether MaxNumIbcMergeCand is greater than one.
[0423] If yes, the operation proceeds to step S608; if no, the operation proceeds to step S609.
[0424] In step S608, the decoding unit 201 decodes ibc_merge_idx, and then ends this process.
[0425] In step S609, the decoding unit 201 ends this process without decoding ibc_merge_idx.
[0426] Here, if MaxNumIbcMergeCand is not greater than 1 in step S602, that is, if MaxNumIbcMergeCand is 1, the IBC merge candidates to be used are obvious even if the merge index selected in the unidirectional IBC merge is not decoded.
[0427] Therefore, in step S609, the decoding unit 201 does not decode ibc_merge_idx, so that a reduction in the amount of code can be expected.
[0428] In the above description, the bi-predictive IBC merge merge indexes (ibc_merge_idx0 and ibc_merge_idx1) and the uni-predictive IBC merge merge index (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.
[0429] 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.
[0430] FIG. 23 is a diagram showing a modified example of the method of decoding control information related to IBC merging described with reference to FIG. 22 (constructing different lists as shown in FIG. 7 for the number of block vectors).
[0431] 23, the decoding unit 201 may decode the control information related to IBC merging. Specifically, the process is as follows.
[0432] As shown in FIG. 23, in step S600, the decoding unit 201 determines whether biibc_merge_flag is 1 or not.
[0433] If yes, the operation proceeds to step S601A, if no, the operation proceeds to step S602.
[0434] In step S601A, the decoding unit 201 determines whether MaxNumIbcMergeCand is greater than one.
[0435] If Yes, the operation proceeds to step S608A, and if No (MaxNumIbcMergeCand is equal to or less than 1), the operation proceeds to step S609A.
[0436] In step S608A, the decoding unit 201 decodes ibc_merge_idx, and ends this process.
[0437] In step S609A, the decoding unit 201 ends this process without decoding ibc_merge_idx.
[0438] Steps S602, S608 and S609 are the same as those in FIG.
[0439] 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 .
[0440] FIG. 24 is a diagram illustrating 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).
[0441] As shown in Fig. 24, the decoding unit 201 may decode a flag for controlling (specifying) whether or not the IBC BVP / merge is enabled for each block to be decoded (i.e., whether or not the IBC BVP / merge is applied for each block to be decoded).
[0442] As shown in FIG. 24, in step S700, the decoding unit 201 determines whether or not a predetermined condition 3 is satisfied.
[0443] If yes, the operation proceeds to step S701; if no, the operation proceeds to step S702.
[0444] In step S701, the decoding unit 201 decodes ibc_bvpmerge_flag, and ends this process.
[0445] In step S702, the decoding unit 201 ends this process without decoding ibc_bvpmerge_flag.
[0446] Here, ibc_bvpmerge_flag is a flag (syntax number 8) that controls (specifies) whether or not IBC BVP / merge is enabled for each block to be decoded (that is, whether or not IBC BVP / merge is applied for each block to be decoded).
[0447] If ibc_bvpmerge_flag is 1, the decoding unit 201 specifies that IBC BVP / merge is to be applied to the block to be decoded, and if ibc_bvpmerge_flag is 0, the decoding unit 201 specifies that IBC BVP / merge is not to be applied to the block to be decoded.
[0448] If ibc_bvpmerge_flag has not been decoded, the decoding unit 201 may estimate ibc_bvpmerge_flag to be 0.
[0449] Furthermore, the 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 9. sh_slice_type is I or B As a modification, 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 the predetermined condition 3.
[0450] 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).
[0451] This makes it possible to suppress the application of IBC BVP / merging to relatively small blocks to be decoded, which is expected to reduce the amount of processing.
[0452] On the other hand, a condition may be added that the number of pixels is smaller than a threshold used in the determination conditions for determining whether or not to apply IBC merge in unidirectional prediction, such as that the block size of the block to be decoded is 32 pixels or less or 16 pixels or less.
[0453] This makes it possible to suppress application of IBC BVP / merge to a relatively large block 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 decoding unit 201 will be described with reference to FIG.
[0454] FIG. 25 is a diagram showing an example of a method for decoding control information related to IBC BVP / merging in decoding section 201. In FIG.
[0455] 25, the decoding unit 201 may decode the control information related to the IBC BVP / merge. Specifically, the process is as follows.
[0456] As shown in FIG. 25, in step S800, the decoding unit 201 determines whether ibc_bvpmerge_flag is 1 or not.
[0457] If the answer is Yes, the operation proceeds to step S801, and if the answer is No, the operation ends the process.
[0458] In step S801, the decoding unit 201 decodes the control information related to the BVP and BVD, and the process proceeds to step S802.
[0459] In step S802, the decoding unit 201 determines whether MaxNumIbcMergeCand is greater than one.
[0460] If Yes, the operation proceeds to step S803, and if No (MaxNumIbcMergeCand is equal to or less than 1), the operation proceeds to step S804.
[0461] In step S803, the decoding unit 201 decodes ibc_merge_idx, and then ends this process.
[0462] In step S804, the decoding unit 201 ends this process without decoding ibc_merge_idx.
[0463] Here, as described above, MaxNumIbcMergeCand is the maximum number of merge candidates that can be registered in the merge candidate list in IBC merge. If the number is 1 or less in step S801, the IBC merge candidate to be used is self-evident, even if the merge index is not decoded in IBC BVP / merge.
[0464] Therefore, in step S804, the decoding unit 201 does not decode ibc_merge_idx, so that a reduction in the amount of code can be expected.
[0465] Hereinafter, a method for decoding control information related to the above-mentioned MBVD for correcting the BV of an IBC in decoding section 201 will be described with reference to FIG.
[0466] FIG. 26 is a diagram showing an example of a method for decoding control information related to the above-mentioned MBVD for correcting the BV of an IBC in the decoding section 201. In FIG.
[0467] As shown in Fig. 26, the decoding unit 201 may decode the control information related to the above-mentioned MBVD that corrects the BV of the IBC. Specifically, the control information is as follows.
[0468] As shown in FIG. 26, in step S901, the decoding unit 201 determines whether biibc_merge_flag is 1 or not.
[0469] If Yes, the operation proceeds to step S902; if No, the operation proceeds to step S903.
[0470] In step S902, the decoding unit 201 determines whether ibc_mbvd_flag is 1 or not.
[0471] If yes, the operation proceeds to step S904; if no, the operation proceeds to step S905.
[0472] Here, ibc_mbvd_flag is a flag for controlling whether or not MBVD is applied for each block to be decoded.
[0473] If ibc_mbvd_flag is 1, the decoding unit 201 determines that MBVD is to be applied, and if ibc_mbvd_flag is 0, it determines that MBVD is not to be applied.
[0474] If ibc_mbvd_flag has not been decoded, the decoding unit 201 may estimate that ibc_mbvd_flag is 0.
[0475] In step S904, the decoding unit 201 determines whether bimbvd_flag is 1 or not.
[0476] If yes, the operation proceeds to step S906; if no, the operation proceeds to step S907.
[0477] 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.
[0478] When bimbvd_flag is 1, the decoding unit 201 determines that MBVD should be applied to two sets of merge candidates (BVs), and when bimbvd_flag is 0, the decoding unit 201 determines that MBVD should not be applied to two sets of merge candidates (BVs) (i.e., that MBVD should be applied to only one set of merge candidates (BVs) in a bi-predictive IBC merge).
[0479] If bimbvd_flag has not been decoded, the decoding unit 201 may estimate bimbvd_flag to be 0.
[0480] In step S906, the decoding unit 201 decodes mbvd_merge_cand_idx0 and mbvd_merge_cand_idx1.
[0481] Here, mbvd_merge_cand_idx0 is an index for selecting, from a merge candidate list, a first pair of merge candidates (BVs) to which MBVD is applied, out of two pairs of merge candidates (BVs) in bi-predictive IBC merging, for each block to be decoded.
[0482] If mbvd_merge_cand_idx0 has not been decoded, the decoding unit 201 may estimate that mbvd_merge_cand_idx0 is 0.
[0483] Furthermore, mbvd_merge_cand_idx1 is an index for selecting, from the merge candidate list, a second pair of merge candidates (BVs) to which MBVD is applied, out of two pairs of merge candidates (BVs) in bi-predictive IBC merging, for each decoding target block.
[0484] If mbvd_merge_cand_idx1 has not been decoded, the decoding unit 201 may assume mbvd_merge_cand_idx1 to be 0.
[0485] Note that when decoding mbvd_merge_cand_idx0 and mbvd_merge_cand_idx1, the decoding unit 201 does not have to give a magnitude relationship to them in advance, or may give a magnitude relationship such that mbvd_merge_cand_idx0 < mbvd_merge_cand_idx1.
[0486] When no magnitude relationship is given, after the decoding unit 201 decodes mbvd_merge_cand_idx0, excludes the merge candidate corresponding to mbvd_merge_cand_idx0 from the merge candidate list, and then decodes mbvd_merge_cand_idx1, different merge candidates can be derived even if mbvd_merge_cand_idx0 and mbvd_merge_cand_idx1 are the same, so an improvement in coding efficiency can be expected. It is an index for selecting the first set of merge candidates (BV) to which MBVD is applied from among two sets of merge candidates (BV) in the dual-prediction IBC merge for each decoding target block unit.
[0487] If mbvd_merge_cand_idx0 has not been decoded, the decoding unit 201 may assume mbvd_merge_cand_idx0 to be 0.
[0488] In step S908, the decoding unit 201 decodes mbvd_idx0 and mbvd_idx1 and ends this process.
[0489] Here, mbvd_idx0 and mbvd_idx1 are indexes for deriving correction vectors for the first and second sets of merge candidates (BV) among two sets of merge candidates in the dual-prediction IBC merge, respectively.
[0490] 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.
[0491] The discrete reference positions are defined by the direction and distance of a correction vector whose origin is the BV of the merging candidate.
[0492] The directions may be configured as up, down, left, right (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, including up, down, left, right, and four diagonal directions of 45 degrees, 135 degrees, 225 degrees, and 315 degrees.
[0493] In addition, with regard to the distance, when the pixel precision of 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, as in non-patent document 2, 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.
[0494] As another example, when the pixel precision of IBC is not limited to integer precision (i.e., both fractional pixel precision 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 to the integer pixel options mentioned above.
[0495] In step S909, the decoding unit 201 proceeds to step S601 in FIG. 22, and when this operation is completed, ends this process.
[0496] In step S907, the decoding unit 201 decodes mbvd_merge_cand_idx0.
[0497] In step S910, the decoding unit 201 decodes mbvd_idx0.
[0498] In step S911, the decoding unit 201 proceeds to step S601 in FIG. 22, and when this operation is completed, ends this process.
[0499] In step S905, the decoding unit 201 proceeds to step S601 in FIG. 22, and when this operation is completed, ends this process.
[0500] In step S903, the decoding unit 201 proceeds to step S602 in FIG. 22, and when this operation is completed, ends this process.
[0501] Hereinafter, with reference to FIG. 27, a modification of the method of applying the second intra-frame prediction on a block-by-block basis will be described.
[0502] As shown in FIG. 27, in step S1001, the decoding unit 201 determines whether the current block to be decoded is in a mode that retains BV.
[0503] If yes, the operation proceeds to step S1002; if no, the operation ends.
[0504] 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.
[0505] Here, by setting the maximum number of BVs to 2, when cu_ibc_flag is 0, the decoding unit 201 decodes the number of BVs as 1, and when cu_ibc_flag is 1, the decoding unit 201 decodes the number of BVs as 2.
[0506] In step S1003, the decoding unit 201 determines whether the BV is one or two.
[0507] In other words, in step S1003, the decoding unit 201 determines whether cu_ibc_flag is 0 or not.
[0508] 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.
[0509] If there is not one BV (cu_ibc_flag !=0) and the BVP candidate list is composed of only the L0 list, in steps S1004 and S1005, decoding unit 201 decodes cu_ibc_idx0 and cu_ibc_idx1, which are control signals that specify a BV from the BVP candidate list.
[0510] 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.
[0511] FIG. 28 shows a flowchart for applying the correction BV to the BV.
[0512] 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.
[0513] If yes, the operation proceeds to step S1102; if no, the operation ends.
[0514] 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.
[0515] Here, by setting the maximum number of BVs to 2, when cu_ibc_flag is 0, the decoding unit 201 decodes the number of BVs as 1, and when cu_ibc_flag is 1, the decoding unit 201 decodes the number of BVs as 2.
[0516] In step S1103, the decoding unit 201 determines whether the BV is one or two.
[0517] In other words, in step S1103, the decoding unit 201 determines whether cu_ibc_flag is 0 or not.
[0518] 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.
[0519] 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.
[0520] If there is not one BV (cu_ibc_flag !=0) and the BVP candidate list is composed of only the L0 list, in steps S1106 and S1107, decoding unit 201 decodes cu_ibc_idx0 and cu_ibc_idx1, which are control signals that specify a BV from the BVP candidate list.
[0521] 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.
[0522] In steps S1108 and S1109, the decoding unit 201 decodes cu_ibc_dmv0 and cu_ibc_dmv1, which are control information representing the corrected BV, and adds cu_ibc_dmv0 and cu_ibc_dmv1 to the corresponding BVs, respectively.
[0523] Hereinafter, a method for decoding a flag for controlling (specifying) whether or not the bi-predictive IBC BVP is enabled for each block to be decoded in the decoding unit 201 (i.e., whether or not the bi-predictive IBC BVP is applied for each block to be decoded) will be described with reference to FIG. 29 .
[0524] FIG. 29 is a flowchart illustrating an example of a method for decoding a flag for controlling (specifying) whether or not the bi-predictive IBC BVP is enabled for each block to be decoded in the decoding unit 201 (i.e., whether or not the bi-predictive IBC BVP is applied for each block to be decoded).
[0525] 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). Specifically, the flag is as follows.
[0526] As shown in FIG. 29, in step S1200, the decoding unit 201 determines whether or not a predetermined condition 4 is satisfied.
[0527] If yes, the operation proceeds to step S1201; if no, the operation proceeds to step S1202.
[0528] In step S1201, the decoding unit 201 decodes biibc_bvp_flag, and ends this process.
[0529] In step S1202, the decoding unit 201 ends this process without decoding biibc_bvp_flag.
[0530] Here, biibc_bvp_flag is a flag (syntax 9) that controls (specifies) whether or not the bi-predictive IBC BVP is applied for each block to be decoded.
[0531] When biibc_bvp_flag is 1, the decoding unit 201 specifies that the bi-predictive IBC BVP is applied to the current block, and when biibc_bvp_flag is 0, the decoding unit 201 specifies that the bi-predictive IBC BVP is not applied to the current block.
[0532] If biibc_bvp_flag has not been decoded, the decoding unit 201 may estimate that biibc_bvp_flag is 0.
[0533] Furthermore, the 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, 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 the predetermined condition 4.
[0534] 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).
[0535] 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.
[0536] On the other hand, a condition that the number of pixels is smaller than a threshold used in the determination conditions for determining whether or not to apply the IBC BVP for unidirectional prediction, such as that the block size of the block to be decoded is 32 pixels or less or 16 pixels or less, may be added.
[0537] This makes it possible to suppress the application of bi-predictive IBC BVP to relatively large blocks to be decoded, which is expected to reduce the amount of processing.
[0538] Hereinafter, a method for decoding control information related to IBC BVP in decoding section 201 will be described with reference to FIG.
[0539] FIG. 30 is a flowchart showing an example of a method for decoding control information related to IBC BVP in decoding section 201.
[0540] As shown in Fig. 30, the decoding unit 201 may control the decoding of the control information related to the IBC BVP. Specifically, the process is as follows.
[0541] As shown in FIG. 30, in step S1300, the decoding unit 201 determines whether biibc_bvp_flag is 1 or not.
[0542] If Yes, the operation proceeds to step S1301; if No, the operation proceeds to step S1302.
[0543] In step S1301, the decoding unit 201 decodes control information related to a first pair of BVP and BVD out of two pairs of BVP and BVD in a bi-predictive IBC BVP.
[0544] In step S1303, the decoding unit 201 decodes control information related to the second pair of BVP and BVD out of the two pairs of BVP and BVD in the bi-predictive IBC BVP, and ends this process.
[0545] In step S1302, the decoding unit 201 decodes the control information related to a pair of BVP and BVD in the IBC BVP, and ends this process.
[0546] (Bi-predictive IBC binarization) A method of binarizing the above-mentioned IBC merge index in decoding section 201 will be described with reference to FIG.
[0547] FIG. 31 is a diagram showing an example of a binarization method of the above-mentioned IBC merge index in decoding section 201. In FIG.
[0548] As shown in Fig. 31, the decoding unit 201 may binarize the IBC merge index. Specifically, the process is as follows.
[0549] First, the decoding unit 201 may set the value of cMax for ibc_merge_idx to MaxNumIbcMerge-1.
[0550] Here, cMax is the maximum value that the target control information can have before binarization.
[0551] Secondly, the decoding unit 201 may set the value of cMax for ibc_merge_idx0 to MaxNumIbcMerge-1.
[0552] 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.
[0553] Specifically, when biibc_merge_flag is not 1, the decoding unit 201 may set the value of cMax to MaxNumIbcMerge-2.
[0554] 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.
[0555] In other words, 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.
[0556] 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.
[0557] The above-described image decoding device 200 may be realized as a program that causes a computer to execute each function (each process). [Industrial Applicability]
[0558] According to this embodiment, for example, it is possible to improve the overall service quality in video communication, which makes it possible to contribute to Goal 9 of the Sustainable Development Goals (SDGs) led by the United Nations, which is to "build resilient infrastructure, promote sustainable industrialization and foster innovation." [Explanation of symbols]
[0559] 200...Image decoding device 201…Decoding section 202...Inverse quantization section 203…Inverse conversion unit 204...First frame intra prediction unit 205...Second frame intra prediction unit 205A...Block vector derivation unit (BV derivation unit) 205B...Second frame intra-prediction pixel generation unit 206...Interframe prediction unit 207…Adder 208…Storage section 210...Code input section 220...Image output unit
Claims
1. An image decoding device, comprising: a decoding unit for decoding the control information and the quantization value; an inverse quantization unit that inversely quantizes the quantized values to generate transform coefficients; an inverse transform unit that inversely transforms the transform coefficients to generate prediction residuals; a first intra-frame prediction unit that generates a first predicted pixel based on a decoded pixel and the control information; a second intra-frame prediction unit that generates a second predicted pixel from one or more block vectors for a block to be decoded, based on the decoded pixels and the control information; a storage unit that stores the decoded pixels; an inter-frame prediction unit that generates a third predicted pixel based on the accumulated decoded pixels and the control information; an adder that adds the prediction residual and the first to third predicted pixels to obtain the decoded pixel.
2. 2 . The image decoding device according to claim 1 , wherein the second intra-frame prediction section generates the second predicted pixel from one or two block vectors for the block to be decoded.
3. 2 . The image decoding device according to claim 1 , wherein in the second intra-frame prediction section, for the block to be decoded, the decoded pixels are referenced by a block vector in intra block copying.
4. 2 . The image decoding device according to claim 1 , wherein in the second intra-frame prediction section, for the block to be decoded, the decoded pixels are referenced by a block vector in intra template matching prediction.
5. The image decoding device according to claim 1, characterized in that the second intra-frame prediction unit decodes one or more indices of a block vector candidate list to derive the one or more block vectors corresponding to the indexes from the block vector candidate list.
6. 6. The image decoding device according to claim 5, wherein the second and subsequent indexes are relative indexes with the immediately preceding index as a starting point.
7. The image decoding device according to claim 1 , wherein the second intra-frame prediction section derives the one or more block vectors without decoding an index of a block vector candidate list.
8. The image decoding device according to claim 7, characterized in that the second intra-frame prediction unit derives the one or more block vectors by fixedly selecting one or more block vector candidates at the top of the block vector candidate list.
9. 2 . The image decoding device according to claim 1 , wherein the second intra-frame prediction section configures a block vector candidate list the number of which is equal to the number of block vectors held by the current block to be decoded.
10. The image decoding device described in claim 9, characterized in that the second intra-frame prediction unit constructs multiple block vector candidate lists and shares a common index used to derive the one or more block vectors, thereby deriving the one or more block vectors from a single index.
11. The image decoding device described in claim 1, characterized in that the second intra-frame prediction unit derives a first block vector from block vector prediction and block vector difference, and derives a second block vector based on the derived first block vector.
12. The image decoding device described in claim 11, characterized in that the second intra-frame prediction unit derives the first block vector from the block vector prediction and the block vector difference, and derives the second block vector from the block vector candidate list by comparing the similarity between a reference of the derived first block vector and a reference of each block vector candidate in the block vector candidate list.
13. The image decoding device described in claim 1, characterized in that the second intra-frame prediction unit derives a first block vector from a block vector prediction and a block vector difference, and derives a second block vector based on an index from a block vector candidate in a block vector candidate list.
14. 2 . The image decoding device according to claim 1 , wherein, when the block to be decoded is divided into two by a straight line, the second intra-frame prediction section derives a different block vector for each of the two divided areas.
15. The image decoding device according to claim 1 , wherein when the block to be decoded is divided into two areas by a straight line in a geometric shape, the second intra-frame prediction unit derives a different block vector for each of the divided areas.
16. The image decoding device according to claim 1, characterized in that the inverse transform unit inverse transforms the transform coefficients using a plurality of different transform bases when a second intra-frame prediction based on the one or more block vectors is applied to the block to be decoded.
17. The image decoding device according to claim 16 , wherein the inverse transform unit inversely transforms the transform coefficients using a plurality of different transform bases for first intra-frame prediction.
18. The image decoding device according to claim 16 , wherein the inverse transform unit inversely transforms the transform coefficients using a plurality of different transform bases for inter-frame prediction.
19. The decoding unit decodes control information for specifying whether or not to select one transform base from among the plurality of different transform bases and to inverse transform the transform coefficients; The image decoding device according to claim 16 , wherein the inverse transform unit selects one transform base from the plurality of different transform bases based on the control information and specifies whether or not to inverse transform the transform coefficients.
20. The image decoding device according to claim 1, characterized in that when a second intra-frame prediction based on the one or more block vectors is applied to the block to be decoded, the inverse transform unit inverse transforms the transform coefficients in two stages using different or the same transform bases.
21. The decoding unit decodes control information for specifying whether the transform coefficients are inverse transformed in two steps using different or the same transform bases; The image decoding device according to claim 20 , wherein the inverse transform unit selects one transform base from the plurality of different transform bases based on the control information and specifies whether or not to inverse transform the transform coefficients.
22. The image decoding device according to claim 1, characterized in that, when a color difference signal image is downsampled relative to a luminance signal image and a decoding tree block including the block to be decoded has a single tree structure, the second intra-frame prediction unit is further provided with a block vector derivation unit that derives a block vector for the block to be decoded of the color difference signal based on the size of one or more blocks derived for the block to be decoded of the luminance signal and the downsampling ratio of the luminance signal and the color difference signal.
23. The image decoding device according to claim 1, characterized in that the second intra-frame prediction unit is provided with a block vector derivation unit that does not derive a block vector for the block to be decoded of the color difference signal when an image of the color difference signal is downsampled relative to an image of the luminance signal and a decoding tree block including the block to be decoded has a dual tree structure.
24. 1. An image decoding method, comprising: decoding the control information and the quantized values; dequantizing the quantized values to obtain transform coefficients; inverse transforming the transform coefficients to obtain a prediction residual; generating a first predicted pixel based on the decoded pixel and the control information; generating second predicted pixels from one or more block vectors for a current block based on the decoded pixels and the control information; storing the decoded pixels; generating a third predicted pixel based on the accumulated decoded pixels and the control information; and adding the prediction residual to the first to third predicted pixels to obtain the decoded pixel.
25. A program for causing a computer to function as an image decoding device, The image decoding device comprises: a decoding unit for decoding the control information and the quantization value; an inverse quantization unit that inversely quantizes the quantized values to generate transform coefficients; an inverse transform unit that inversely transforms the transform coefficients to generate prediction residuals; a first intra-frame prediction unit that generates a first predicted pixel based on a decoded pixel and the control information; a second intra-frame prediction unit that generates a second predicted pixel from one or more block vectors for a block to be decoded, based on the decoded pixels and the control information; a storage unit that stores the decoded pixels; an inter-frame prediction unit that generates a third predicted pixel based on the accumulated decoded pixels and the control information; an adder that adds the prediction residual and the first to third predicted pixels to obtain the decoded pixel.
Citation Information
Patent Citations
Video signal processing method and apparatus using multiple hypothesis prediction
JP2022502972A
ITTH.266/
